lion

Fundamental white label web component features for your design system.

MIT License

Downloads
208.3K
Stars
1.7K
Committers
158

Bot releases are visible (Hide)

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • 183c86af: Changed spelling/grammar of the german error message for an invalid IBAN.

Patch Changes

  • adfa29a0: [switch] remove one of the two role="switch" (nested-interactive). Only leave it on the switch-button.

  • 0d4c42ab: [listbox] allow use of arrow keys when focus is not on listbox

  • 42a463ee: Set padding of to 0 so it doesn't show a weird 1em width/height box due to user agent styles.

  • 3256892c: lion-switch: checked-changed event is no longer fired on element initialization when checked is set through attribute

  • 3f1c83a1: lion-accordion: changed selectors for invokers and content to only select slotted elements that are direct descendants. This is to prevent that slotted elements in accordion content and invokers are also selected and the amount of invokers and content is incorrect

  • a2b81b26: [combobox] Multiple improvements:

    • Allow textbox values to be entered that do not match a listbox option, via requireOptionMatch flag.
    • Added an MatchesOption validator to check if the value is matching an option.
    • Exports combobox test helpers
  • 1f018baf: feat(@lion/ui): add _invokerIconTemplate to LionInputDatepicker

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 63bb012e: fetchJSON will try to parse Response body as JSON if the content-type headers are missing, in this case it will assume JSON.
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 943618fd: [combobox] fix direct open and closing of the overlay on focus of empty input when showAllOnEmpty
  • 4226a014: [combobox] add translations
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 1c18057c: [combobox] make the first occurrence of a string highlighted, instead of the last.
  • 974e9ea4: fix(@lion/ui): declare sideEffects in package.json
lion - [email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • d40fd90b: Fixes:

    • allow absence of config file
    • remove package=lock of non-root packages
    • fix conflicting package entries
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • e871fe67: fix(@lion/ui): export types necessary for type inference of core.js
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • 9ff7cd77: fix(@lion/ui): export types necessary for type inference of mixins (fixes #1903)
  • 74b4b686: don't set unparseable for negative timezones
  • eff3259e: LocalizeManager: added allowOverridesForExistingNamespaces option to constructor argument to allow for changing data in a namespace for a given locale
  • 84173cdb: lion-select-rich: when the overlay is shown, the "autofocus" attribute is added to _listboxNode (_inputNode) to make sure that keyboard navigation continues to work when the element is inside a an element with trapsKeyboardFocus:true, like the bottomsheet created via withBottomSheetConfig(). When the overlay is closed the attribute is removed.
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • cee40e55: Side-effect-free alternative for localize (the globally shared instance of LocalizeManager).
    When this function is imported, no side-effect happened yet, i.e. no global instance was registered yet.
    The side effect-free approach generates:

    • smaller, optimized bundles
    • a predictable loading order, that allows for:
      • deduping strategies when multiple instances of the localizeManager are on a page
      • providing a customized extension of LocalizeManager

    Also see: https://github.com/ing-bank/lion/discussions/1861

    Use it like this:

    function myFunction() {
      // note that 'localizeManager' is the same as former 'localize'
      const localizeManager = getLocalizeManger();
      // ...
    }
    

    In a class, we advise a shared instance:

    class MyClass {
      constructor() {
        this._localizeManager = getLocalizeManger();
      }
      // ...
    }
    

    Make sure to always call this method inside a function or class (otherwise side effects are created)

    Do you want to register your own LocalizeManager?
    Make sure it's registered before anyone called getLocalizeManager()

    import { singletonManager } from 'singleton-manager';
    import { getLocalizeManger } from '@lion/ui/localize-no-side-effects.js';
    
    // First register your own LocalizeManager (for deduping or other reasons)
    singletonManager.set('lion/ui::localize::0.x', class MyLocalizeManager extends LocalizeManager {});
    
    // Now, all your code gets the right instance
    export function myFn() {
      const localizeManager = getLocalizeManager();
      // ...
    }
    
    export class myClass() {
      constructor() {
        this._localizeManager = getLocalizeManager();
        // ...
      }
    }
    
  • 0efce8e1: [localize] parse negative numbers

  • a47a6e61: lion-select: added test to assert that modelValue of lion-select is updated when the value or text of one or more options are changed

lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Minor Changes

  • a4ffebbd: Release @lion/ui beta 0.1.0

Patch Changes

  • 851329ee: [localize] Correct msgLit return type to include DirectiveResult
lion - @lion/[email protected]

Published by github-actions[bot] over 1 year ago

Patch Changes

  • a5330c92: Unresolved icons to not cause a fatal error, but console.error instead. Missing assets shouldn't prevent the rest of the application from rendering.
  • d204195c: Updated the return type of localizeNamespaces() of the localize mixin to allow NamespaceObject[]
  • 87e565ca: fix: overlay docs error: 'return' outside of function
lion - @lion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • fd09f652: [select-rich] solve case of having singleOption and hasNoDefaultSelected as the same time
  • af2e0293: [overlays]: fix adoptStyles fallback and make testable
  • 9f6270b3: [select-rich] set focusableNode correctly so focused and focused-visible attributes are set when invoker gets focus
  • 9fb14fa1: accordion: rearranging invokers and content for a correct tab order is now implemented by changing the slot attributes of both instead of moving them, changed css for this implementation, updated tests
  • 9a43dc4d: [input-tel-dropdown] add translations for "All countries" and "Suggested countries" labels.
lion - @lion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 7ac0a422: [overlays] fixes (responsive backdrop/select-rich/tooltip)
lion - @lion/[email protected]

Published by github-actions[bot] almost 2 years ago

Patch Changes

  • 5e707168: [tooltip] prevent infinite loops
  • 49092c97: accordion: narrowed the scope of the selectors that query [slot=invoker] and [slot=content] to prevent that any nested elements with [slot=invoker] and [slot=content] are moved to slot=_accordion as well
  • fafd9222: overlays: add adopted stylesheets once; attach correctly to body
Package Rankings
Top 1.12% on Npmjs.org
Related Projects