GithubHelp home page GithubHelp logo

audi / audi-ui Goto Github PK

View Code? Open in Web Editor NEW
312.0 312.0 50.0 3.49 MB

Audi UI components in CSS, Vanilla JavaScript, and HTML

Home Page: http://www.audi.com/ci

JavaScript 36.05% HTML 25.60% SCSS 38.35%

audi-ui's People

Contributors

kai-ziefle avatar mnlmaier avatar sejka avatar thomaseckhardt avatar thomasmichelbach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

audi-ui's Issues

[FeatureRequest]: response.js vertical freedom without beeing a button

Hey,

just tried to apply an response effect on some element which isnt a button.
Problem here is in the response.js you check only for button classes for free y-position.

Maybe you can implement some class you can apply so you also get free-y-position without beeing a button element.

let boxedButton = this._element.classList.contains(CLASS_BUTTON_PRIMARY) || this._element.classList.contains(CLASS_BUTTON_SECONDARY) || this._element.classList.contains(CLASS_BUTTON_FLOATING);

    this._useTriggerX = boxedButton || !this._element.classList.contains(CLASS_BUTTON_ICON);
    this._useTriggerY = boxedButton;

Update slider value

Setting the value of the slider does not change the position of the handle. It just stays where it was before the change.

HTML:

<div class="aui-slider aui-js-slider" data-min="0" data-max="100">
   <input id="slider" type="hidden" class="aui-slider__hidden-field" value="30.00">
</div>
<button id="reset">Reset</button>

JavaScript:

const slider = document.getElementById('slider');
const button = document.getElementById('reset');

reset.addEventListener('click', reset);

function reset() {
   slider.value = 50;  // handle should move to the middle, but stays where it was
}

Upgrade node to 7.x

We have had to downgrade our project's node version when integrating the audi-ui, audi-icon, and audi-type repositories. Please upgrade the node dependency to allow version 7.x.

Update node engine

"node": "^6.0.0"

Hi,

do you think you can update the package to a more recent node version? We want to use this dependency in numerous React applications which require node >= 8.9.

Thanks

Modal layout broken

It seems that some of the modal layouts are broken.

The "Morph Modal" colors are not fitting:
modal-morph

The "modal as window" closing button is sometimes hidden:
modal-window

Tested on macOS 10.12.3 on Chrome 56.0.2924.87 and Safari 10.0.3 on current Demo-Page.

Webpack Encore ?

Hello, is it possible to use it with Webpack Encore or it's 100% Gulp ? Thanks for your answer !

Importing with Angular 2

We have the following problem with using the audi-ui in our Angular 2 project.

Installing via:
npm install @audi/audi-ui
works fine.
After that it is existing in the node_modules folder, and in the package json the following line is added.

"@audi/audi-ui": "^1.0.0-alpha.1",

So importing
import aui from 'audi-ui';
should work, but it doesnt. It returns:

"cannot find module 'audi-ui'".

Did someone have the same problem? And how did you solve this issue?

ReactJS Support

Is there a known way to integrate this library into a react project?

License

Is there any license you can provide for this code? Some people might want to use some components but are not allowed to right now.

The same applies to the audi-icon repository.

Nice work by @audi ๐Ÿ‘

Calling a function

I have installed and tested the ui kit with gulp and it all works nicely.

However for certain projects we need to use the compiled js file without gulp.

I have compiled the audi-ui.min.js with gulp and would now like to use it with a standard front end website.

The only problem is i cannot call or init a plugin function from outside of the web pack ui file.

I had to run the call from within the componentHandler function to get it to work, but this is not ideal for a permanent solution.

I see we must call a function like this
Nav.upgradeElements();

The call doesn't work if I run it from a separate index.html file. The file cannot find the variable Nav for example.

Can you help me understand how to call this from another file?

Do I need to call it differently

Regards

Modals and Nav do not work with Angular

Hi,

After the Import the most Compnents are working. Only the Modals and Nav are not working.

  • The Navigation needs a reset of underlining because the Browser sets his own stylesheet.
  • The whole Modals do not response when i click on the button.

In the Index.js Modal was commented out. After I uncommented Modal again, the modals still didn't work.

I use Angular 8.

_response.scss and parent-selector-referencing character '&'

The _response.scss contains '&' parent-selector-referencing without any parent:

`.aui-js-response.aui-theme-light &.is-animating &__effect {
animation: aui-response-light $aui-response-duration $aui-easing both;
}

.aui-button--primary &.is-animating &__effect {
animation: aui-response-light $aui-response-duration $aui-easing both;
}

.aui-button--primary.aui-theme-light &.is-animating &__effect {
animation: aui-response-dark $aui-response-duration $aui-easing both;
}`

Errormessage: Base-level rules cannot contain the parent-selector-referencing character '&'.

No User Agent Style overwrite

When you include the audi ui in an React App there are missing User Agent Style overwrites, for example when you use a nav-list , included buttons got a false font-size and links are underlinded.

Let's get rid of the IE ?

As the IE is already dead and is not used anymore maybe let's rewrite/refactor the code to let the audi-ui library work with the modern js frameworks and tools?

Parcel build failed at @-moz-viewport

I am using the latest version and getting the following error when build with the parceljs:

@parcel/transformer-css: Unknown at rule: @-moz-viewport
328 |

329 | @-moz-viewport {
| ^
330 | width: device-width;
331 | }

It seems that is already a legacy code which is no longer compilable.
The eslint is saying: Unknown at rule @-moz-viewportscss(unknownAtRules)

I see in the code:
// Make viewport responsive
//
// @Viewport is needed because IE 10+ doesn't honor in
// some cases. See http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/.
// Eventually @Viewport will replace . It's been manually
// prefixed for forward-compatibility.
@-moz-viewport {
width: device-width;
}

@-moz-viewport {

Can anyone help here? Do we need a change in the code?

Btw.: Is this project still maintanable? Maybe let's get rid of already not supported IE ?

Use with React (create-react-app)

I am trying to integrate it with a react app and as I want to import certain elements, I get a module dependency error.

Any advice on using it with React will be more than userful.

Thanks

Continuous spinner component not started on initialization

When a continuous spinner is initialized, it is not started/looped. Since a continuous spinner is supposed to loop indefinitely and there exists no stop, it should be started automatically.

Also, the spinner is not automatically initialized via upgradeAllElements() for no apparent reason (?).

Cannot import module

Hi,

after npm install @audi/audi-ui the package is in node_modules. In packages.json stands: "@audi/audi-ui": "1.0.0-alpha.2",
but cannot import module.
Error:
"couldn't find a declaration file for module"

Best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.