@lt-ui/uikit 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/base-button/base-button.d.ts +9 -0
- package/_internal/base-button/base-button.js +47 -0
- package/_internal/base-button/index.d.ts +2 -0
- package/_internal/base-button/index.js +1 -0
- package/_internal/base-button/styles.module.css +69 -0
- package/_internal/base-button/types.d.ts +42 -0
- package/_internal/base-button/types.js +1 -0
- package/_internal/collapse-box/collapse-box.d.ts +60 -0
- package/_internal/collapse-box/collapse-box.js +30 -0
- package/_internal/collapse-box/index.d.ts +2 -0
- package/_internal/collapse-box/index.js +1 -0
- package/_internal/collapse-box/styles.module.css +30 -0
- package/_internal/compat/context-provider.d.ts +17 -0
- package/_internal/compat/context-provider.js +13 -0
- package/_internal/compat/index.d.ts +4 -0
- package/_internal/compat/index.js +4 -0
- package/_internal/compat/react-version.d.ts +5 -0
- package/_internal/compat/react-version.js +6 -0
- package/_internal/compat/use-form-pending.d.ts +5 -0
- package/_internal/compat/use-form-pending.js +8 -0
- package/_internal/compat/with-ref.d.ts +10 -0
- package/_internal/compat/with-ref.js +22 -0
- package/_internal/context-selector/context-selector.d.ts +27 -0
- package/_internal/context-selector/context-selector.js +71 -0
- package/_internal/context-selector/index.d.ts +2 -0
- package/_internal/context-selector/index.js +1 -0
- package/_internal/date/date-format.d.ts +24 -0
- package/_internal/date/date-format.js +122 -0
- package/_internal/date/date-locale.d.ts +21 -0
- package/_internal/date/date-locale.js +60 -0
- package/_internal/date/date-utils.d.ts +44 -0
- package/_internal/date/date-utils.js +75 -0
- package/_internal/date/index.d.ts +3 -0
- package/_internal/date/index.js +3 -0
- package/_internal/empty-function.d.ts +1 -0
- package/_internal/empty-function.js +4 -0
- package/_internal/field/_motion.css +0 -0
- package/_internal/field/field-caption.d.ts +12 -0
- package/_internal/field/field-caption.js +5 -0
- package/_internal/field/field-clear-button.d.ts +16 -0
- package/_internal/field/field-clear-button.js +14 -0
- package/_internal/field/field-frame.d.ts +34 -0
- package/_internal/field/field-frame.js +36 -0
- package/_internal/field/field.module.css +353 -0
- package/_internal/field/index.d.ts +7 -0
- package/_internal/field/index.js +7 -0
- package/_internal/field/props.d.ts +81 -0
- package/_internal/field/props.js +1 -0
- package/_internal/field/types.d.ts +54 -0
- package/_internal/field/types.js +1 -0
- package/_internal/field/use-field-state.d.ts +38 -0
- package/_internal/field/use-field-state.js +46 -0
- package/_internal/floating/compute-position.d.ts +11 -0
- package/_internal/floating/compute-position.js +112 -0
- package/_internal/floating/index.d.ts +4 -0
- package/_internal/floating/index.js +2 -0
- package/_internal/floating/origin.d.ts +6 -0
- package/_internal/floating/origin.js +18 -0
- package/_internal/floating/types.d.ts +52 -0
- package/_internal/floating/types.js +1 -0
- package/_internal/floating/use-floating.d.ts +35 -0
- package/_internal/floating/use-floating.js +149 -0
- package/_internal/focus-trap/focus-trap.d.ts +25 -0
- package/_internal/focus-trap/focus-trap.js +111 -0
- package/_internal/focus-trap/index.d.ts +3 -0
- package/_internal/focus-trap/index.js +3 -0
- package/_internal/focus-trap/scroll-lock.d.ts +2 -0
- package/_internal/focus-trap/scroll-lock.js +32 -0
- package/_internal/focus-trap/tabbable.d.ts +2 -0
- package/_internal/focus-trap/tabbable.js +25 -0
- package/_internal/hooks/focus-when-ready.d.ts +6 -0
- package/_internal/hooks/focus-when-ready.js +21 -0
- package/_internal/hooks/index.d.ts +15 -0
- package/_internal/hooks/index.js +15 -0
- package/_internal/hooks/restore-focus.d.ts +6 -0
- package/_internal/hooks/restore-focus.js +11 -0
- package/_internal/hooks/use-arrow-navigation.d.ts +14 -0
- package/_internal/hooks/use-arrow-navigation.js +35 -0
- package/_internal/hooks/use-chips-nav.d.ts +22 -0
- package/_internal/hooks/use-chips-nav.js +100 -0
- package/_internal/hooks/use-collapse-motion.d.ts +30 -0
- package/_internal/hooks/use-collapse-motion.js +102 -0
- package/_internal/hooks/use-controllable-state.d.ts +13 -0
- package/_internal/hooks/use-controllable-state.js +28 -0
- package/_internal/hooks/use-effect-once.d.ts +2 -0
- package/_internal/hooks/use-effect-once.js +4 -0
- package/_internal/hooks/use-focus-on-context.d.ts +2 -0
- package/_internal/hooks/use-focus-on-context.js +4 -0
- package/_internal/hooks/use-focus-on-ignore.d.ts +8 -0
- package/_internal/hooks/use-focus-on-ignore.js +19 -0
- package/_internal/hooks/use-focused-state.d.ts +5 -0
- package/_internal/hooks/use-focused-state.js +8 -0
- package/_internal/hooks/use-popover-tab-flow.d.ts +18 -0
- package/_internal/hooks/use-popover-tab-flow.js +55 -0
- package/_internal/hooks/use-resize-observer.d.ts +2 -0
- package/_internal/hooks/use-resize-observer.js +24 -0
- package/_internal/hooks/use-return-focus.d.ts +15 -0
- package/_internal/hooks/use-return-focus.js +25 -0
- package/_internal/hooks/use-scroll-edges.d.ts +6 -0
- package/_internal/hooks/use-scroll-edges.js +28 -0
- package/_internal/hooks/use-synced-animation.d.ts +12 -0
- package/_internal/hooks/use-synced-animation.js +28 -0
- package/_internal/layer/index.d.ts +2 -0
- package/_internal/layer/index.js +2 -0
- package/_internal/layer/layer-manager.d.ts +47 -0
- package/_internal/layer/layer-manager.js +93 -0
- package/_internal/layer/use-layer.d.ts +13 -0
- package/_internal/layer/use-layer.js +30 -0
- package/_internal/picker/index.d.ts +5 -0
- package/_internal/picker/index.js +5 -0
- package/_internal/picker/picker-field.d.ts +77 -0
- package/_internal/picker/picker-field.js +23 -0
- package/_internal/picker/picker-field.module.css +28 -0
- package/_internal/picker/picker-sheet-search.d.ts +9 -0
- package/_internal/picker/picker-sheet-search.js +11 -0
- package/_internal/picker/picker-sheet.d.ts +30 -0
- package/_internal/picker/picker-sheet.js +14 -0
- package/_internal/picker/picker-sheet.module.css +11 -0
- package/_internal/picker/use-date-input.d.ts +27 -0
- package/_internal/picker/use-date-input.js +74 -0
- package/_internal/picker/use-picker-presentation.d.ts +25 -0
- package/_internal/picker/use-picker-presentation.js +30 -0
- package/_internal/transition/css-transition.d.ts +22 -0
- package/_internal/transition/css-transition.js +67 -0
- package/_internal/transition/index.d.ts +3 -0
- package/_internal/transition/index.js +3 -0
- package/_internal/transition/transition-group-context.d.ts +4 -0
- package/_internal/transition/transition-group-context.js +4 -0
- package/_internal/transition/transition-group.d.ts +20 -0
- package/_internal/transition/transition-group.js +126 -0
- package/_internal/transition/transition.d.ts +40 -0
- package/_internal/transition/transition.js +125 -0
- package/accordion/accordion-item.d.ts +289 -0
- package/accordion/accordion-item.js +16 -0
- package/accordion/accordion.d.ts +301 -0
- package/accordion/accordion.js +16 -0
- package/accordion/constants.d.ts +2 -0
- package/accordion/constants.js +2 -0
- package/accordion/context.d.ts +17 -0
- package/accordion/context.js +3 -0
- package/accordion/hooks/use-accordion-item-view-model.d.ts +45 -0
- package/accordion/hooks/use-accordion-item-view-model.js +223 -0
- package/accordion/hooks/use-accordion-view-model.d.ts +25 -0
- package/accordion/hooks/use-accordion-view-model.js +121 -0
- package/accordion/index.d.ts +3 -0
- package/accordion/index.js +2 -0
- package/accordion/store.d.ts +22 -0
- package/accordion/store.js +42 -0
- package/accordion/styles.module.css +182 -0
- package/accordion/types.d.ts +196 -0
- package/accordion/types.js +1 -0
- package/accordion/utils.d.ts +29 -0
- package/accordion/utils.js +111 -0
- package/accordion/views/accordion-item-view.d.ts +6 -0
- package/accordion/views/accordion-item-view.js +22 -0
- package/accordion/views/accordion-view.d.ts +7 -0
- package/accordion/views/accordion-view.js +18 -0
- package/adaptive/adaptive.d.ts +20 -0
- package/adaptive/adaptive.js +14 -0
- package/adaptive/adaptive.module.css +189 -0
- package/adaptive/index.d.ts +2 -0
- package/adaptive/index.js +1 -0
- package/adaptive/types.d.ts +35 -0
- package/adaptive/types.js +1 -0
- package/alert/alert-actions.d.ts +6 -0
- package/alert/alert-actions.js +22 -0
- package/alert/alert-content.d.ts +6 -0
- package/alert/alert-content.js +15 -0
- package/alert/alert-icon.d.ts +4 -0
- package/alert/alert-icon.js +9 -0
- package/alert/alert.d.ts +11 -0
- package/alert/alert.js +41 -0
- package/alert/index.d.ts +2 -0
- package/alert/index.js +1 -0
- package/alert/styles/alert-variants.module.css +38 -0
- package/alert/styles/alert.module.css +51 -0
- package/alert/types.d.ts +69 -0
- package/alert/types.js +1 -0
- package/alert/use-alert.d.ts +8 -0
- package/alert/use-alert.js +14 -0
- package/avatar/avatar-group.d.ts +47 -0
- package/avatar/avatar-group.js +31 -0
- package/avatar/avatar-group.module.css +13 -0
- package/avatar/avatar-inner.d.ts +2 -0
- package/avatar/avatar-inner.js +24 -0
- package/avatar/avatar.d.ts +10 -0
- package/avatar/avatar.js +68 -0
- package/avatar/constants.d.ts +6 -0
- package/avatar/constants.js +5 -0
- package/avatar/index.d.ts +3 -0
- package/avatar/index.js +2 -0
- package/avatar/styles.module.css +292 -0
- package/avatar/types.d.ts +87 -0
- package/avatar/types.js +1 -0
- package/avatar/utils.d.ts +4 -0
- package/avatar/utils.js +10 -0
- package/badge/badge.d.ts +23 -0
- package/badge/badge.js +31 -0
- package/badge/index.d.ts +2 -0
- package/badge/index.js +2 -0
- package/badge/styles.module.css +114 -0
- package/badge/types.d.ts +58 -0
- package/badge/types.js +1 -0
- package/breadcrumbs/breadcrumbs-context.d.ts +7 -0
- package/breadcrumbs/breadcrumbs-context.js +6 -0
- package/breadcrumbs/breadcrumbs-item.d.ts +6 -0
- package/breadcrumbs/breadcrumbs-item.js +18 -0
- package/breadcrumbs/breadcrumbs-menu.d.ts +12 -0
- package/breadcrumbs/breadcrumbs-menu.js +12 -0
- package/breadcrumbs/breadcrumbs.d.ts +28 -0
- package/breadcrumbs/breadcrumbs.js +61 -0
- package/breadcrumbs/index.d.ts +3 -0
- package/breadcrumbs/index.js +2 -0
- package/breadcrumbs/styles.module.css +190 -0
- package/breadcrumbs/types.d.ts +81 -0
- package/breadcrumbs/types.js +1 -0
- package/breadcrumbs/use-breadcrumbs-fit.d.ts +21 -0
- package/breadcrumbs/use-breadcrumbs-fit.js +43 -0
- package/breadcrumbs/use-breadcrumbs.d.ts +21 -0
- package/breadcrumbs/use-breadcrumbs.js +41 -0
- package/button/button.d.ts +13 -0
- package/button/button.js +45 -0
- package/button/close-button.d.ts +14 -0
- package/button/close-button.js +17 -0
- package/button/index.d.ts +7 -0
- package/button/index.js +5 -0
- package/button/styles.module.css +288 -0
- package/button/types.d.ts +95 -0
- package/button/types.js +1 -0
- package/button/use-button.d.ts +22 -0
- package/button/use-button.js +35 -0
- package/calendar/availability.d.ts +14 -0
- package/calendar/availability.js +30 -0
- package/calendar/calendar-header.d.ts +20 -0
- package/calendar/calendar-header.js +40 -0
- package/calendar/calendar.d.ts +11 -0
- package/calendar/calendar.js +35 -0
- package/calendar/day-grid.d.ts +13 -0
- package/calendar/day-grid.js +21 -0
- package/calendar/index.d.ts +6 -0
- package/calendar/index.js +3 -0
- package/calendar/labels.d.ts +4 -0
- package/calendar/labels.js +12 -0
- package/calendar/picker-grid.d.ts +15 -0
- package/calendar/picker-grid.js +63 -0
- package/calendar/selection.d.ts +17 -0
- package/calendar/selection.js +50 -0
- package/calendar/styles.module.css +283 -0
- package/calendar/types.d.ts +169 -0
- package/calendar/types.js +1 -0
- package/calendar/use-calendar.d.ts +74 -0
- package/calendar/use-calendar.js +397 -0
- package/caption/caption.d.ts +16 -0
- package/caption/caption.js +27 -0
- package/caption/index.d.ts +2 -0
- package/caption/index.js +1 -0
- package/caption/styles.module.css +33 -0
- package/caption/types.d.ts +30 -0
- package/caption/types.js +1 -0
- package/card/card.d.ts +19 -0
- package/card/card.js +31 -0
- package/card/index.d.ts +2 -0
- package/card/index.js +1 -0
- package/card/styles.module.css +80 -0
- package/card/types.d.ts +49 -0
- package/card/types.js +1 -0
- package/card/use-card.d.ts +24 -0
- package/card/use-card.js +36 -0
- package/checkbox/checkbox.d.ts +10 -0
- package/checkbox/checkbox.js +54 -0
- package/checkbox/index.d.ts +2 -0
- package/checkbox/index.js +1 -0
- package/checkbox/styles/style.module.css +257 -0
- package/checkbox/types.d.ts +68 -0
- package/checkbox/types.js +1 -0
- package/chip/chip.d.ts +40 -0
- package/chip/chip.js +63 -0
- package/chip/index.d.ts +2 -0
- package/chip/index.js +1 -0
- package/chip/styles.module.css +65 -0
- package/chip/types.d.ts +45 -0
- package/chip/types.js +1 -0
- package/chip-group/chip-group-transition-context.d.ts +9 -0
- package/chip-group/chip-group-transition-context.js +8 -0
- package/chip-group/chip-group-transition-provider.d.ts +6 -0
- package/chip-group/chip-group-transition-provider.js +11 -0
- package/chip-group/chip-group.d.ts +4 -0
- package/chip-group/chip-group.js +33 -0
- package/chip-group/index.d.ts +2 -0
- package/chip-group/index.js +1 -0
- package/chip-group/styles.module.css +4 -0
- package/chip-group/types.d.ts +5 -0
- package/chip-group/types.js +1 -0
- package/cjs/_internal/base-button/base-button.js +86 -0
- package/cjs/_internal/base-button/index.js +17 -0
- package/cjs/_internal/base-button/styles.module.css +69 -0
- package/cjs/_internal/base-button/types.js +2 -0
- package/cjs/_internal/collapse-box/collapse-box.js +69 -0
- package/cjs/_internal/collapse-box/index.js +5 -0
- package/cjs/_internal/collapse-box/styles.module.css +30 -0
- package/cjs/_internal/compat/context-provider.js +17 -0
- package/cjs/_internal/compat/index.js +11 -0
- package/cjs/_internal/compat/react-version.js +9 -0
- package/cjs/_internal/compat/use-form-pending.js +45 -0
- package/cjs/_internal/compat/with-ref.js +26 -0
- package/cjs/_internal/context-selector/context-selector.js +75 -0
- package/cjs/_internal/context-selector/index.js +6 -0
- package/cjs/_internal/date/date-format.js +129 -0
- package/cjs/_internal/date/date-locale.js +71 -0
- package/cjs/_internal/date/date-utils.js +104 -0
- package/cjs/_internal/date/index.js +19 -0
- package/cjs/_internal/empty-function.js +8 -0
- package/cjs/_internal/field/_motion.css +0 -0
- package/cjs/_internal/field/field-caption.js +12 -0
- package/cjs/_internal/field/field-clear-button.js +17 -0
- package/cjs/_internal/field/field-frame.js +42 -0
- package/cjs/_internal/field/field.module.css +353 -0
- package/cjs/_internal/field/index.js +17 -0
- package/cjs/_internal/field/props.js +2 -0
- package/cjs/_internal/field/types.js +2 -0
- package/cjs/_internal/field/use-field-state.js +49 -0
- package/cjs/_internal/floating/compute-position.js +118 -0
- package/cjs/_internal/floating/index.js +9 -0
- package/cjs/_internal/floating/origin.js +21 -0
- package/cjs/_internal/floating/types.js +2 -0
- package/cjs/_internal/floating/use-floating.js +152 -0
- package/cjs/_internal/focus-trap/focus-trap.js +148 -0
- package/cjs/_internal/focus-trap/index.js +19 -0
- package/cjs/_internal/focus-trap/scroll-lock.js +35 -0
- package/cjs/_internal/focus-trap/tabbable.js +28 -0
- package/cjs/_internal/hooks/focus-when-ready.js +24 -0
- package/cjs/_internal/hooks/index.js +31 -0
- package/cjs/_internal/hooks/restore-focus.js +14 -0
- package/cjs/_internal/hooks/use-arrow-navigation.js +38 -0
- package/cjs/_internal/hooks/use-chips-nav.js +106 -0
- package/cjs/_internal/hooks/use-collapse-motion.js +108 -0
- package/cjs/_internal/hooks/use-controllable-state.js +31 -0
- package/cjs/_internal/hooks/use-effect-once.js +8 -0
- package/cjs/_internal/hooks/use-focus-on-context.js +8 -0
- package/cjs/_internal/hooks/use-focus-on-ignore.js +23 -0
- package/cjs/_internal/hooks/use-focused-state.js +11 -0
- package/cjs/_internal/hooks/use-popover-tab-flow.js +60 -0
- package/cjs/_internal/hooks/use-resize-observer.js +28 -0
- package/cjs/_internal/hooks/use-return-focus.js +28 -0
- package/cjs/_internal/hooks/use-scroll-edges.js +31 -0
- package/cjs/_internal/hooks/use-synced-animation.js +32 -0
- package/cjs/_internal/layer/index.js +18 -0
- package/cjs/_internal/layer/layer-manager.js +96 -0
- package/cjs/_internal/layer/use-layer.js +33 -0
- package/cjs/_internal/picker/index.js +21 -0
- package/cjs/_internal/picker/picker-field.js +29 -0
- package/cjs/_internal/picker/picker-field.module.css +28 -0
- package/cjs/_internal/picker/picker-sheet-search.js +17 -0
- package/cjs/_internal/picker/picker-sheet.js +20 -0
- package/cjs/_internal/picker/picker-sheet.module.css +11 -0
- package/cjs/_internal/picker/use-date-input.js +77 -0
- package/cjs/_internal/picker/use-picker-presentation.js +35 -0
- package/cjs/_internal/transition/css-transition.js +70 -0
- package/cjs/_internal/transition/index.js +19 -0
- package/cjs/_internal/transition/transition-group-context.js +7 -0
- package/cjs/_internal/transition/transition-group.js +162 -0
- package/cjs/_internal/transition/transition.js +129 -0
- package/cjs/accordion/accordion-item.js +22 -0
- package/cjs/accordion/accordion.js +22 -0
- package/cjs/accordion/constants.js +5 -0
- package/cjs/accordion/context.js +6 -0
- package/cjs/accordion/hooks/use-accordion-item-view-model.js +227 -0
- package/cjs/accordion/hooks/use-accordion-view-model.js +127 -0
- package/cjs/accordion/index.js +7 -0
- package/cjs/accordion/store.js +45 -0
- package/cjs/accordion/styles.module.css +182 -0
- package/cjs/accordion/types.js +2 -0
- package/cjs/accordion/utils.js +123 -0
- package/cjs/accordion/views/accordion-item-view.js +28 -0
- package/cjs/accordion/views/accordion-view.js +24 -0
- package/cjs/adaptive/adaptive.js +53 -0
- package/cjs/adaptive/adaptive.module.css +189 -0
- package/cjs/adaptive/index.js +17 -0
- package/cjs/adaptive/types.js +2 -0
- package/cjs/alert/alert-actions.js +29 -0
- package/cjs/alert/alert-content.js +22 -0
- package/cjs/alert/alert-icon.js +16 -0
- package/cjs/alert/alert.js +47 -0
- package/cjs/alert/index.js +17 -0
- package/cjs/alert/styles/alert-variants.module.css +38 -0
- package/cjs/alert/styles/alert.module.css +51 -0
- package/cjs/alert/types.js +2 -0
- package/cjs/alert/use-alert.js +17 -0
- package/cjs/avatar/avatar-group.js +37 -0
- package/cjs/avatar/avatar-group.module.css +13 -0
- package/cjs/avatar/avatar-inner.js +31 -0
- package/cjs/avatar/avatar.js +107 -0
- package/cjs/avatar/constants.js +8 -0
- package/cjs/avatar/index.js +18 -0
- package/cjs/avatar/styles.module.css +292 -0
- package/cjs/avatar/types.js +2 -0
- package/cjs/avatar/utils.js +16 -0
- package/cjs/badge/badge.js +37 -0
- package/cjs/badge/index.js +18 -0
- package/cjs/badge/styles.module.css +114 -0
- package/cjs/badge/types.js +2 -0
- package/cjs/breadcrumbs/breadcrumbs-context.js +10 -0
- package/cjs/breadcrumbs/breadcrumbs-item.js +24 -0
- package/cjs/breadcrumbs/breadcrumbs-menu.js +18 -0
- package/cjs/breadcrumbs/breadcrumbs.js +100 -0
- package/cjs/breadcrumbs/index.js +7 -0
- package/cjs/breadcrumbs/styles.module.css +190 -0
- package/cjs/breadcrumbs/types.js +2 -0
- package/cjs/breadcrumbs/use-breadcrumbs-fit.js +46 -0
- package/cjs/breadcrumbs/use-breadcrumbs.js +77 -0
- package/cjs/button/button.js +51 -0
- package/cjs/button/close-button.js +24 -0
- package/cjs/button/index.js +23 -0
- package/cjs/button/styles.module.css +288 -0
- package/cjs/button/types.js +2 -0
- package/cjs/button/use-button.js +41 -0
- package/cjs/calendar/availability.js +35 -0
- package/cjs/calendar/calendar-header.js +46 -0
- package/cjs/calendar/calendar.js +41 -0
- package/cjs/calendar/day-grid.js +27 -0
- package/cjs/calendar/index.js +11 -0
- package/cjs/calendar/labels.js +16 -0
- package/cjs/calendar/picker-grid.js +69 -0
- package/cjs/calendar/selection.js +59 -0
- package/cjs/calendar/styles.module.css +283 -0
- package/cjs/calendar/types.js +2 -0
- package/cjs/calendar/use-calendar.js +400 -0
- package/cjs/caption/caption.js +66 -0
- package/cjs/caption/index.js +17 -0
- package/cjs/caption/styles.module.css +33 -0
- package/cjs/caption/types.js +2 -0
- package/cjs/card/card.js +37 -0
- package/cjs/card/index.js +17 -0
- package/cjs/card/styles.module.css +80 -0
- package/cjs/card/types.js +2 -0
- package/cjs/card/use-card.js +39 -0
- package/cjs/checkbox/checkbox.js +60 -0
- package/cjs/checkbox/index.js +17 -0
- package/cjs/checkbox/styles/style.module.css +257 -0
- package/cjs/checkbox/types.js +2 -0
- package/cjs/chip/chip.js +102 -0
- package/cjs/chip/index.js +5 -0
- package/cjs/chip/styles.module.css +65 -0
- package/cjs/chip/types.js +2 -0
- package/cjs/chip-group/chip-group-transition-context.js +14 -0
- package/cjs/chip-group/chip-group-transition-provider.js +18 -0
- package/cjs/chip-group/chip-group.js +74 -0
- package/cjs/chip-group/index.js +5 -0
- package/cjs/chip-group/styles.module.css +4 -0
- package/cjs/chip-group/types.js +2 -0
- package/cjs/container/container.js +46 -0
- package/cjs/container/index.js +17 -0
- package/cjs/container/styles.module.css +85 -0
- package/cjs/container/types.js +2 -0
- package/cjs/css-baseline/css-baseline.js +11 -0
- package/cjs/css-baseline/index.js +17 -0
- package/cjs/css-baseline/styles.css +36 -0
- package/cjs/date-picker/date-picker-panel.js +42 -0
- package/cjs/date-picker/date-picker-sheet-footer.js +16 -0
- package/cjs/date-picker/date-picker.js +76 -0
- package/cjs/date-picker/index.js +8 -0
- package/cjs/date-picker/range-time-panels.js +26 -0
- package/cjs/date-picker/styles.module.css +125 -0
- package/cjs/date-picker/types.js +2 -0
- package/cjs/date-picker/use-date-picker.js +286 -0
- package/cjs/date-picker/use-sheet-time.js +18 -0
- package/cjs/divider/divider.js +58 -0
- package/cjs/divider/index.js +17 -0
- package/cjs/divider/styles.module.css +28 -0
- package/cjs/divider/types.js +2 -0
- package/cjs/drawer/content.js +59 -0
- package/cjs/drawer/context.js +14 -0
- package/cjs/drawer/drawer.js +132 -0
- package/cjs/drawer/footer.js +67 -0
- package/cjs/drawer/header.js +66 -0
- package/cjs/drawer/index.js +21 -0
- package/cjs/drawer/normalize-padding.js +23 -0
- package/cjs/drawer/sheet-drag-config.js +16 -0
- package/cjs/drawer/sheet-drag-utils.js +39 -0
- package/cjs/drawer/styles.module.css +266 -0
- package/cjs/drawer/types.js +2 -0
- package/cjs/drawer/use-scroll-state.js +34 -0
- package/cjs/drawer/use-sheet-drag.js +163 -0
- package/cjs/dropdown-menu/dropdown-menu-button.js +61 -0
- package/cjs/dropdown-menu/dropdown-menu-context.js +14 -0
- package/cjs/dropdown-menu/dropdown-menu-item.js +16 -0
- package/cjs/dropdown-menu/dropdown-menu.js +44 -0
- package/cjs/dropdown-menu/index.js +19 -0
- package/cjs/dropdown-menu/styles.module.css +46 -0
- package/cjs/dropdown-menu/types.js +2 -0
- package/cjs/dropdown-menu/use-dropdown-menu.js +203 -0
- package/cjs/file/components/file-background-progress.js +20 -0
- package/cjs/file/components/file-emblem.js +38 -0
- package/cjs/file/components/file-interactive-shell.js +15 -0
- package/cjs/file/components/file-name.js +20 -0
- package/cjs/file/components/file-status-meta.js +20 -0
- package/cjs/file/constants.js +21 -0
- package/cjs/file/file-extensions.js +116 -0
- package/cjs/file/file.js +26 -0
- package/cjs/file/hooks/use-file-view-model.js +123 -0
- package/cjs/file/icons/file-extension-glyph-icon.js +13 -0
- package/cjs/file/icons/file-extension-glyphs.js +20 -0
- package/cjs/file/icons/file-extension-icons.js +19 -0
- package/cjs/file/image-frame-size-class.js +17 -0
- package/cjs/file/index.js +25 -0
- package/cjs/file/presets/remove-preset.js +37 -0
- package/cjs/file/presets/retry-preset.js +25 -0
- package/cjs/file/styles.module.css +565 -0
- package/cjs/file/types.js +2 -0
- package/cjs/file/utils/file-name-parts.js +25 -0
- package/cjs/file/utils/format-size.js +39 -0
- package/cjs/file/utils/get-file-presentation.js +51 -0
- package/cjs/file/utils/resolve-file-icon.js +21 -0
- package/cjs/file/utils/resolve-file-slot.js +61 -0
- package/cjs/file/utils/split-file-name.js +15 -0
- package/cjs/file/views/file-default-view.js +28 -0
- package/cjs/file/views/file-image-view.js +23 -0
- package/cjs/file-upload/components/drop-overlay.js +36 -0
- package/cjs/file-upload/components/file-upload-button-trigger.js +17 -0
- package/cjs/file-upload/components/file-upload-hint-caption.js +15 -0
- package/cjs/file-upload/components/file-upload-icon-button.js +20 -0
- package/cjs/file-upload/components/image-loader-icons.js +15 -0
- package/cjs/file-upload/components/image-loader-trigger.js +20 -0
- package/cjs/file-upload/constants.js +44 -0
- package/cjs/file-upload/file-upload.js +22 -0
- package/cjs/file-upload/hooks/use-drag-overlay.js +113 -0
- package/cjs/file-upload/hooks/use-file-list.js +191 -0
- package/cjs/file-upload/hooks/use-file-upload-view-model.js +188 -0
- package/cjs/file-upload/hooks/use-object-url.js +31 -0
- package/cjs/file-upload/index.js +40 -0
- package/cjs/file-upload/styles.module.css +345 -0
- package/cjs/file-upload/types-dropzone.js +2 -0
- package/cjs/file-upload/types-file-actions.js +2 -0
- package/cjs/file-upload/types-labels.js +2 -0
- package/cjs/file-upload/types.js +21 -0
- package/cjs/file-upload/utils/accept.js +48 -0
- package/cjs/file-upload/utils/build-file-slots.js +19 -0
- package/cjs/file-upload/utils/compute-drop-border-vertical-dash-style.js +49 -0
- package/cjs/file-upload/utils/get-drop-zone-typography.js +15 -0
- package/cjs/file-upload/utils/get-file-upload-presentation.js +68 -0
- package/cjs/file-upload/utils/max-count.js +26 -0
- package/cjs/file-upload/utils/normalize.js +67 -0
- package/cjs/file-upload/utils/render-drop-zone-hint-content.js +33 -0
- package/cjs/file-upload/utils/resolve-display-error.js +18 -0
- package/cjs/file-upload/utils/resolve-hint-content.js +59 -0
- package/cjs/file-upload/utils/resolve-labels.js +37 -0
- package/cjs/file-upload/utils/resolve-preset.js +49 -0
- package/cjs/file-upload/utils/resolve-upload-file-error.js +12 -0
- package/cjs/file-upload/utils/resolve-upload-text.js +9 -0
- package/cjs/file-upload/utils/run-before-upload.js +29 -0
- package/cjs/file-upload/utils/run-sequentially.js +7 -0
- package/cjs/file-upload/utils/uid.js +7 -0
- package/cjs/file-upload/views/file-upload-dropzone-view.js +54 -0
- package/cjs/file-upload/views/file-upload-errors-view.js +13 -0
- package/cjs/file-upload/views/file-upload-footer-view.js +23 -0
- package/cjs/file-upload/views/file-upload-list-view.js +44 -0
- package/cjs/file-upload/views/file-upload-trigger-view.js +101 -0
- package/cjs/file-upload/views/file-upload-view.js +23 -0
- package/cjs/grid/grid.js +153 -0
- package/cjs/grid/index.js +21 -0
- package/cjs/grid/presets.js +6 -0
- package/cjs/grid/styles.module.css +56 -0
- package/cjs/grid/types.js +2 -0
- package/cjs/grid-item/grid-item.js +19 -0
- package/cjs/grid-item/index.js +17 -0
- package/cjs/grid-item/types.js +2 -0
- package/cjs/hint/buttons/action-button.js +26 -0
- package/cjs/hint/buttons/close-button.js +30 -0
- package/cjs/hint/buttons/extra-button.js +26 -0
- package/cjs/hint/hint-content.js +27 -0
- package/cjs/hint/hint-provider.js +14 -0
- package/cjs/hint/hint.js +90 -0
- package/cjs/hint/index.js +21 -0
- package/cjs/hint/styles/buttons.module.css +16 -0
- package/cjs/hint/styles/hint-content.module.css +33 -0
- package/cjs/hint/styles/hint.module.css +37 -0
- package/cjs/hint/types.js +2 -0
- package/cjs/hooks/index.js +37 -0
- package/cjs/hooks/media-query/create-media-query.js +22 -0
- package/cjs/hooks/media-query/index.js +18 -0
- package/cjs/hooks/media-query/observe-media-query.js +29 -0
- package/cjs/hooks/media-query/types.js +2 -0
- package/cjs/hooks/media-query/use-media-query-listener.js +39 -0
- package/cjs/hooks/media-query/use-media-query.js +28 -0
- package/cjs/hooks/use-actual-ref.js +14 -0
- package/cjs/hooks/use-breakpoint.js +56 -0
- package/cjs/hooks/use-click-outside.js +43 -0
- package/cjs/hooks/use-component-tokens.js +20 -0
- package/cjs/hooks/use-cssvar-from-width.js +35 -0
- package/cjs/hooks/use-effect-once.js +13 -0
- package/cjs/hooks/use-isomorphic-layout-effect.js +9 -0
- package/cjs/hooks/use-keyboard-callbacks.js +124 -0
- package/cjs/hooks/use-keyboard-navigation.js +66 -0
- package/cjs/hooks/use-list-navigation/index.js +15 -0
- package/cjs/hooks/use-list-navigation/input-modality.js +59 -0
- package/cjs/hooks/use-list-navigation/store.js +70 -0
- package/cjs/hooks/use-list-navigation/types.js +2 -0
- package/cjs/hooks/use-list-navigation/use-list-navigation-item.js +39 -0
- package/cjs/hooks/use-list-navigation/use-list-navigation.js +262 -0
- package/cjs/hooks/use-list-navigation/utils.js +52 -0
- package/cjs/hooks/use-load-more.js +74 -0
- package/cjs/hooks/use-mount.js +13 -0
- package/cjs/hooks/use-persistent-callback.js +18 -0
- package/cjs/hooks/use-platform.js +38 -0
- package/cjs/hooks/use-responsive-value.js +39 -0
- package/cjs/hooks/use-uniq-id.js +21 -0
- package/cjs/hooks/use-unmount.js +16 -0
- package/cjs/hooks/use-update-effect.js +27 -0
- package/cjs/hooks/use-viewport-exit.js +33 -0
- package/cjs/hooks/use-virtual-window.js +86 -0
- package/cjs/hooks/use-window-size.js +28 -0
- package/cjs/icon/icon.js +71 -0
- package/cjs/icon/index.js +17 -0
- package/cjs/icon/pack-utils.js +33 -0
- package/cjs/icon/styles.module.css +17 -0
- package/cjs/icons/arrow-icon.js +16 -0
- package/cjs/icons/back-icon.js +10 -0
- package/cjs/icons/calendar-icon.js +10 -0
- package/cjs/icons/check-icon.js +11 -0
- package/cjs/icons/clock-icon.js +11 -0
- package/cjs/icons/close-icon.js +10 -0
- package/cjs/icons/del-icon.js +10 -0
- package/cjs/icons/double-arrow-icon.js +15 -0
- package/cjs/icons/error-icon.js +10 -0
- package/cjs/icons/eye-icon.js +12 -0
- package/cjs/icons/index.js +31 -0
- package/cjs/icons/magnifying-glass-icon.js +10 -0
- package/cjs/icons/minus-icon.js +10 -0
- package/cjs/icons/plus-icon.js +10 -0
- package/cjs/icons/reset-icon.js +10 -0
- package/cjs/icons/shopping-icon.js +10 -0
- package/cjs/icons/stars/star-fill-icon.js +10 -0
- package/cjs/icons/stars/star-half-icon.js +10 -0
- package/cjs/icons/stars/start-outline-icon.js +10 -0
- package/cjs/icons/types.js +2 -0
- package/cjs/image/image-viewer.js +47 -0
- package/cjs/image/image.js +73 -0
- package/cjs/image/index.js +17 -0
- package/cjs/image/style.module.css +65 -0
- package/cjs/image/types.js +2 -0
- package/cjs/image/use-image.js +47 -0
- package/cjs/image/viewer.module.css +80 -0
- package/cjs/index.js +87 -0
- package/cjs/input/fields/password-toggle.js +14 -0
- package/cjs/input/fields/text-field.js +29 -0
- package/cjs/input/fields/use-text-field.js +79 -0
- package/cjs/input/index.js +17 -0
- package/cjs/input/input.js +24 -0
- package/cjs/input/types.js +2 -0
- package/cjs/label/index.js +18 -0
- package/cjs/label/label.js +82 -0
- package/cjs/label/styles.module.css +25 -0
- package/cjs/label/types.js +2 -0
- package/cjs/list/clear-all-button/clear-all-button.js +47 -0
- package/cjs/list/clear-all-button/index.js +17 -0
- package/cjs/list/constants.js +4 -0
- package/cjs/list/index.js +24 -0
- package/cjs/list/list-context.js +14 -0
- package/cjs/list/list-divider/index.js +17 -0
- package/cjs/list/list-divider/list-divider.js +49 -0
- package/cjs/list/list-divider/styles.module.css +7 -0
- package/cjs/list/list-divider/use-list-divider.js +15 -0
- package/cjs/list/list-item/index.js +5 -0
- package/cjs/list/list-item/list-icon.js +61 -0
- package/cjs/list/list-item/list-item-provider.js +21 -0
- package/cjs/list/list-item/list-item.js +32 -0
- package/cjs/list/list-item/styles.module.css +216 -0
- package/cjs/list/list-item/types.js +2 -0
- package/cjs/list/list-item/use-list-item.js +78 -0
- package/cjs/list/list-item/use-nested-list.js +17 -0
- package/cjs/list/list-section/index.js +17 -0
- package/cjs/list/list-section/list-section.js +67 -0
- package/cjs/list/list-section/styles.module.css +27 -0
- package/cjs/list/list.js +39 -0
- package/cjs/list/styles.module.css +24 -0
- package/cjs/list/types.js +2 -0
- package/cjs/list/use-list.js +73 -0
- package/cjs/loader/index.js +17 -0
- package/cjs/loader/loader.js +31 -0
- package/cjs/loader/loader.module.css +80 -0
- package/cjs/locale/create-translator.js +13 -0
- package/cjs/locale/en.js +109 -0
- package/cjs/locale/index.js +13 -0
- package/cjs/locale/locale-provider.js +23 -0
- package/cjs/locale/ru.js +109 -0
- package/cjs/locale/types.js +2 -0
- package/cjs/locale/use-locale.js +11 -0
- package/cjs/masked-input/constants.js +8 -0
- package/cjs/masked-input/hooks.js +179 -0
- package/cjs/masked-input/index.js +5 -0
- package/cjs/masked-input/mask-types.js +2 -0
- package/cjs/masked-input/masked-input.js +27 -0
- package/cjs/masked-input/types.js +2 -0
- package/cjs/masked-input/use-mask.js +168 -0
- package/cjs/masked-input/utils/get-autofill-selector.js +14 -0
- package/cjs/masked-input/utils/helpers.js +61 -0
- package/cjs/masked-input/utils/index.js +20 -0
- package/cjs/masked-input/utils/mask-utils.js +211 -0
- package/cjs/masked-input/utils/parse-mask.js +61 -0
- package/cjs/masked-input/utils/validate-props.js +15 -0
- package/cjs/modal/constants.js +5 -0
- package/cjs/modal/index.js +26 -0
- package/cjs/modal/modal-close-button.js +20 -0
- package/cjs/modal/modal-content.js +43 -0
- package/cjs/modal/modal-context.js +13 -0
- package/cjs/modal/modal-footer.js +57 -0
- package/cjs/modal/modal-header.js +57 -0
- package/cjs/modal/modal.js +63 -0
- package/cjs/modal/styles/_animations.css +124 -0
- package/cjs/modal/styles/_config.css +0 -0
- package/cjs/modal/styles/modal-content.module.css +30 -0
- package/cjs/modal/styles/modal-footer.module.css +31 -0
- package/cjs/modal/styles/modal-header.module.css +56 -0
- package/cjs/modal/styles/modal.module.css +284 -0
- package/cjs/modal/types.js +2 -0
- package/cjs/modal/use-modal-refs.js +16 -0
- package/cjs/modal/use-modal.js +52 -0
- package/cjs/modal/utils.js +17 -0
- package/cjs/navigation/context.js +24 -0
- package/cjs/navigation/index.js +25 -0
- package/cjs/navigation/navigation-compact.js +122 -0
- package/cjs/navigation/navigation-control.js +89 -0
- package/cjs/navigation/navigation-item-content.js +33 -0
- package/cjs/navigation/navigation-list.js +87 -0
- package/cjs/navigation/navigation-rail.js +31 -0
- package/cjs/navigation/navigation-row.js +86 -0
- package/cjs/navigation/navigation-tree.js +100 -0
- package/cjs/navigation/navigation-views.js +114 -0
- package/cjs/navigation/navigation.js +153 -0
- package/cjs/navigation/storage.js +28 -0
- package/cjs/navigation/styles/navigation.module.css +567 -0
- package/cjs/navigation/types.js +2 -0
- package/cjs/navigation/use-item-tooltip.js +22 -0
- package/cjs/navigation/use-navigation-types.js +2 -0
- package/cjs/navigation/use-navigation.js +141 -0
- package/cjs/navigation/use-overflow.js +41 -0
- package/cjs/navigation/utils.js +102 -0
- package/cjs/number-input/format-types.js +8 -0
- package/cjs/number-input/format-utils.js +166 -0
- package/cjs/number-input/hooks/index.js +5 -0
- package/cjs/number-input/hooks/use-numeric-format.js +139 -0
- package/cjs/number-input/index.js +5 -0
- package/cjs/number-input/number-input.js +26 -0
- package/cjs/number-input/types.js +2 -0
- package/cjs/number-input/use-number-input.js +405 -0
- package/cjs/number-input/utils.js +323 -0
- package/cjs/pagination/index.js +9 -0
- package/cjs/pagination/items.js +48 -0
- package/cjs/pagination/labels.js +17 -0
- package/cjs/pagination/pagination.js +65 -0
- package/cjs/pagination/styles.module.css +125 -0
- package/cjs/pagination/types.js +2 -0
- package/cjs/pagination/use-pagination.js +27 -0
- package/cjs/pin-input/index.js +5 -0
- package/cjs/pin-input/pin-input.js +33 -0
- package/cjs/pin-input/styles.module.css +68 -0
- package/cjs/pin-input/types.js +2 -0
- package/cjs/pin-input/use-pin-input.js +137 -0
- package/cjs/pin-input/utils.js +17 -0
- package/cjs/popover/index.js +10 -0
- package/cjs/popover/popover.js +43 -0
- package/cjs/popover/styles.module.css +76 -0
- package/cjs/popover/types.js +2 -0
- package/cjs/popover/use-popover.js +125 -0
- package/cjs/portal/index.js +11 -0
- package/cjs/portal/portal-provider.js +21 -0
- package/cjs/portal/portal.js +48 -0
- package/cjs/portal/resolve-container.js +14 -0
- package/cjs/portal/types.js +2 -0
- package/cjs/portal/use-portal.js +51 -0
- package/cjs/progress-bar/index.js +17 -0
- package/cjs/progress-bar/progress-bar.js +57 -0
- package/cjs/progress-bar/styles.module.css +147 -0
- package/cjs/progress-bar/types.js +2 -0
- package/cjs/quantity-input/index.js +17 -0
- package/cjs/quantity-input/quantity-input.js +123 -0
- package/cjs/quantity-input/styles.module.css +44 -0
- package/cjs/quantity-input/types.js +2 -0
- package/cjs/quantity-input/utils.js +25 -0
- package/cjs/radio/index.js +18 -0
- package/cjs/radio/radio.js +50 -0
- package/cjs/radio/styles.module.css +161 -0
- package/cjs/radio/types.js +2 -0
- package/cjs/radio-group/index.js +20 -0
- package/cjs/radio-group/radio-group-context.js +11 -0
- package/cjs/radio-group/radio-group.js +81 -0
- package/cjs/radio-group/styles.module.css +12 -0
- package/cjs/radio-group/use-radio-group.js +8 -0
- package/cjs/segmented-control/index.js +7 -0
- package/cjs/segmented-control/segmented-control-context.js +11 -0
- package/cjs/segmented-control/segmented-control-item.js +79 -0
- package/cjs/segmented-control/segmented-control.js +75 -0
- package/cjs/segmented-control/styles/_variables.css +0 -0
- package/cjs/segmented-control/styles/segmented-control-item.module.css +194 -0
- package/cjs/segmented-control/styles/segmented-control.module.css +31 -0
- package/cjs/segmented-control/types.js +2 -0
- package/cjs/segmented-control/use-segmented-control.js +33 -0
- package/cjs/select/class-names-context.js +7 -0
- package/cjs/select/components/render-grouped-options.js +48 -0
- package/cjs/select/components/select-field-multiselect-value.js +56 -0
- package/cjs/select/components/select-field-value.js +60 -0
- package/cjs/select/components/select-field.js +221 -0
- package/cjs/select/components/select-load-more-indicator.js +13 -0
- package/cjs/select/components/select-multiselect-panel.js +202 -0
- package/cjs/select/components/select-option-list.js +111 -0
- package/cjs/select/components/select-option-row.js +79 -0
- package/cjs/select/components/select-options-scroll-area.js +14 -0
- package/cjs/select/components/select-panel-status.js +23 -0
- package/cjs/select/components/select-single-panel.js +47 -0
- package/cjs/select/hooks/use-auto-scroll-to-bottom.js +26 -0
- package/cjs/select/hooks/use-chips-row-count.js +65 -0
- package/cjs/select/hooks/use-multiselect-collapsed-display.js +137 -0
- package/cjs/select/hooks/use-select-dismiss.js +82 -0
- package/cjs/select/hooks/use-select-input-bindings.js +46 -0
- package/cjs/select/hooks/use-select-keyboard.js +174 -0
- package/cjs/select/hooks/use-select-multiselect-panel-state.js +31 -0
- package/cjs/select/hooks/use-select-search.js +261 -0
- package/cjs/select/hooks/use-select-view-model.js +169 -0
- package/cjs/select/hooks/use-select-virtual.js +35 -0
- package/cjs/select/hooks/use-select.js +438 -0
- package/cjs/select/index.js +40 -0
- package/cjs/select/presets/autocomplete.js +22 -0
- package/cjs/select/presets/index.js +17 -0
- package/cjs/select/select.js +25 -0
- package/cjs/select/styles/select-field.module.css +147 -0
- package/cjs/select/styles/select.module.css +457 -0
- package/cjs/select/types-search.js +2 -0
- package/cjs/select/types.js +2 -0
- package/cjs/select/utils/custom-search-option.js +42 -0
- package/cjs/select/utils/filter-options.js +28 -0
- package/cjs/select/utils/get-display-value.js +19 -0
- package/cjs/select/utils/get-element-content-width.js +14 -0
- package/cjs/select/utils/get-multiselect-display-labels.js +10 -0
- package/cjs/select/utils/get-status-content.js +13 -0
- package/cjs/select/utils/is-select-panel-compact-content.js +7 -0
- package/cjs/select/utils/measure-multiselect-row-width.js +19 -0
- package/cjs/select/utils/measure-text-width.js +78 -0
- package/cjs/select/utils/multiselect-collapsed-display-shared.js +156 -0
- package/cjs/select/utils/normalize-options.js +10 -0
- package/cjs/select/utils/normalize-value.js +23 -0
- package/cjs/select/utils/resolve-loading-state.js +13 -0
- package/cjs/select/utils/resolve-multiselect-collapsed-display.js +45 -0
- package/cjs/select/utils/resolve-search-content.js +9 -0
- package/cjs/select/utils/retain-combobox-focus.js +21 -0
- package/cjs/select/utils/select-keyboard-navigation.js +17 -0
- package/cjs/select/utils/select-load-more-scroll.js +24 -0
- package/cjs/select/utils/select-option-id.js +7 -0
- package/cjs/select/views/select-listbox.js +21 -0
- package/cjs/select/views/select-search-listbox.js +29 -0
- package/cjs/select/views/select-view.js +70 -0
- package/cjs/select/views/styles.module.css +45 -0
- package/cjs/show-more/hooks/use-show-more-view-model.js +79 -0
- package/cjs/show-more/index.js +5 -0
- package/cjs/show-more/show-more.js +21 -0
- package/cjs/show-more/styles.module.css +20 -0
- package/cjs/show-more/types.js +2 -0
- package/cjs/show-more/views/show-more-view.js +15 -0
- package/cjs/skeleton/index.js +18 -0
- package/cjs/skeleton/skeleton.js +50 -0
- package/cjs/skeleton/styles.module.css +300 -0
- package/cjs/skeleton/types.js +2 -0
- package/cjs/skeleton/use-skeleton.js +23 -0
- package/cjs/snackbar/index.js +21 -0
- package/cjs/snackbar/snack-button.js +57 -0
- package/cjs/snackbar/snack-view.js +105 -0
- package/cjs/snackbar/snack.js +64 -0
- package/cjs/snackbar/snackbar-context.js +13 -0
- package/cjs/snackbar/snackbar-provider.js +88 -0
- package/cjs/snackbar/snackbar.js +81 -0
- package/cjs/snackbar/styles/snack.module.css +195 -0
- package/cjs/snackbar/styles/snackbar.module.css +66 -0
- package/cjs/snackbar/types.js +2 -0
- package/cjs/snackbar/use-snack-timer.js +31 -0
- package/cjs/snackbar/use-snack.js +86 -0
- package/cjs/stack/index.js +17 -0
- package/cjs/stack/stack.js +40 -0
- package/cjs/stack/styles.module.css +46 -0
- package/cjs/stack/types.js +2 -0
- package/cjs/status/index.js +17 -0
- package/cjs/status/status-icon.js +26 -0
- package/cjs/status/styles.module.css +18 -0
- package/cjs/status/types.js +2 -0
- package/cjs/stepper/index.js +20 -0
- package/cjs/stepper/stepper.js +47 -0
- package/cjs/stepper/styles.module.css +172 -0
- package/cjs/stepper/types.js +2 -0
- package/cjs/stepper/use-stepper.js +28 -0
- package/cjs/switch/index.js +18 -0
- package/cjs/switch/styles/base.module.css +134 -0
- package/cjs/switch/switch.js +78 -0
- package/cjs/switch/types.js +2 -0
- package/cjs/tabs/context.js +13 -0
- package/cjs/tabs/index.js +23 -0
- package/cjs/tabs/styles/tab-list.module.css +23 -0
- package/cjs/tabs/styles/tab-panel.module.css +3 -0
- package/cjs/tabs/styles/tab.module.css +210 -0
- package/cjs/tabs/tab-list.js +109 -0
- package/cjs/tabs/tab-panel.js +55 -0
- package/cjs/tabs/tab.js +79 -0
- package/cjs/tabs/tabs.js +33 -0
- package/cjs/tabs/types.js +2 -0
- package/cjs/tabs/use-tabs.js +62 -0
- package/cjs/textarea/get-max-length-message.js +9 -0
- package/cjs/textarea/index.js +5 -0
- package/cjs/textarea/styles.module.css +37 -0
- package/cjs/textarea/textarea.js +26 -0
- package/cjs/textarea/types.js +2 -0
- package/cjs/textarea/use-auto-height.js +109 -0
- package/cjs/textarea/use-resize-handle.js +47 -0
- package/cjs/textarea/use-textarea.js +111 -0
- package/cjs/theme-provider/index.js +46 -0
- package/cjs/theme-provider/styles.module.css +332 -0
- package/cjs/theme-provider/theme-context.js +39 -0
- package/cjs/theme-provider/theme-provider.js +48 -0
- package/cjs/theme-provider/theme-scope.js +85 -0
- package/cjs/theme-provider/types.js +2 -0
- package/cjs/theme-provider/use-system-theme.js +26 -0
- package/cjs/theme-provider/use-theme-provider.js +28 -0
- package/cjs/time-picker/index.js +16 -0
- package/cjs/time-picker/picker-types.js +2 -0
- package/cjs/time-picker/single-time-picker.js +44 -0
- package/cjs/time-picker/styles.module.css +124 -0
- package/cjs/time-picker/time-model.js +149 -0
- package/cjs/time-picker/time-panel.js +87 -0
- package/cjs/time-picker/time-picker.js +80 -0
- package/cjs/time-picker/time-range-picker.js +51 -0
- package/cjs/time-picker/types.js +2 -0
- package/cjs/time-picker/use-time-panel.js +25 -0
- package/cjs/time-picker/use-time-picker.js +120 -0
- package/cjs/time-picker/use-time-range-picker.js +134 -0
- package/cjs/tokens/index.js +18 -0
- package/cjs/tooltip/index.js +17 -0
- package/cjs/tooltip/styles.module.css +46 -0
- package/cjs/tooltip/tooltip.js +70 -0
- package/cjs/tooltip/types.js +2 -0
- package/cjs/tooltip/use-tooltip.js +41 -0
- package/cjs/tree/check.js +106 -0
- package/cjs/tree/class-names-context.js +9 -0
- package/cjs/tree/highlight.js +29 -0
- package/cjs/tree/index.js +20 -0
- package/cjs/tree/model.js +119 -0
- package/cjs/tree/move.js +109 -0
- package/cjs/tree/styles.module.css +290 -0
- package/cjs/tree/tree-branch.js +78 -0
- package/cjs/tree/tree-placeholder.js +16 -0
- package/cjs/tree/tree-row-content.js +32 -0
- package/cjs/tree/tree-row-renderer.js +60 -0
- package/cjs/tree/tree-row.js +98 -0
- package/cjs/tree/tree-select-panel.js +15 -0
- package/cjs/tree/tree-select-selection.js +34 -0
- package/cjs/tree/tree-select-types.js +2 -0
- package/cjs/tree/tree-select.js +207 -0
- package/cjs/tree/tree-select.module.css +35 -0
- package/cjs/tree/tree.js +99 -0
- package/cjs/tree/types-row.js +2 -0
- package/cjs/tree/types.js +2 -0
- package/cjs/tree/use-tree-activate.js +17 -0
- package/cjs/tree/use-tree-checks.js +27 -0
- package/cjs/tree/use-tree-expansion.js +74 -0
- package/cjs/tree/use-tree-keyboard.js +94 -0
- package/cjs/tree/use-tree-virtual.js +76 -0
- package/cjs/tree/use-tree.js +111 -0
- package/cjs/tree/virtual-rows.js +15 -0
- package/cjs/types/size.js +2 -0
- package/cjs/typography/index.js +17 -0
- package/cjs/typography/styles.module.css +304 -0
- package/cjs/typography/types.js +2 -0
- package/cjs/typography/typography.js +30 -0
- package/cjs/utils/call-child-as-function.js +5 -0
- package/cjs/utils/class-names.js +168 -0
- package/cjs/utils/compose-event-handlers.js +18 -0
- package/cjs/utils/container-props-override.js +56 -0
- package/cjs/utils/create-id.js +13 -0
- package/cjs/utils/data-attributes.js +29 -0
- package/cjs/utils/decode-uri.js +50 -0
- package/cjs/utils/empty-function.js +7 -0
- package/cjs/utils/get-react-element-ref.js +16 -0
- package/cjs/utils/imperative-change-input-value.js +19 -0
- package/cjs/utils/index.js +38 -0
- package/cjs/utils/input-caret.js +48 -0
- package/cjs/utils/invariant.js +15 -0
- package/cjs/utils/is-browser.js +5 -0
- package/cjs/utils/is-new-theme.js +10 -0
- package/cjs/utils/merge-refs.js +39 -0
- package/cjs/utils/overridable-component.js +2 -0
- package/cjs/utils/shallow-objects-equal.js +20 -0
- package/cjs/utils/style/index.js +20 -0
- package/cjs/utils/style/props/color.js +9 -0
- package/cjs/utils/style/props/dimension.js +13 -0
- package/cjs/utils/style/props/index.js +19 -0
- package/cjs/utils/style/props/passthrough.js +5 -0
- package/cjs/utils/style/props/types.js +2 -0
- package/cjs/utils/style/types.js +2 -0
- package/cjs/utils/style/use-style-props.js +10 -0
- package/cjs/utils/style/utils/convert-style-props.js +26 -0
- package/cjs/utils/style/utils/index.js +17 -0
- package/cjs/utils/use-class-names.js +99 -0
- package/cjs/utils/utils.js +2 -0
- package/cjs/visually-hidden/index.js +17 -0
- package/cjs/visually-hidden/styles.module.css +9 -0
- package/cjs/visually-hidden/visually-hidden.js +12 -0
- package/container/container.d.ts +2 -0
- package/container/container.js +7 -0
- package/container/index.d.ts +2 -0
- package/container/index.js +1 -0
- package/container/styles.module.css +85 -0
- package/container/types.d.ts +9 -0
- package/container/types.js +1 -0
- package/css-baseline/css-baseline.d.ts +3 -0
- package/css-baseline/css-baseline.js +4 -0
- package/css-baseline/index.d.ts +1 -0
- package/css-baseline/index.js +1 -0
- package/css-baseline/styles.css +36 -0
- package/date-picker/date-picker-panel.d.ts +13 -0
- package/date-picker/date-picker-panel.js +35 -0
- package/date-picker/date-picker-sheet-footer.d.ts +6 -0
- package/date-picker/date-picker-sheet-footer.js +12 -0
- package/date-picker/date-picker.d.ts +12 -0
- package/date-picker/date-picker.js +70 -0
- package/date-picker/index.d.ts +4 -0
- package/date-picker/index.js +2 -0
- package/date-picker/range-time-panels.d.ts +16 -0
- package/date-picker/range-time-panels.js +19 -0
- package/date-picker/styles.module.css +125 -0
- package/date-picker/types.d.ts +173 -0
- package/date-picker/types.js +1 -0
- package/date-picker/use-date-picker.d.ts +56 -0
- package/date-picker/use-date-picker.js +282 -0
- package/date-picker/use-sheet-time.d.ts +8 -0
- package/date-picker/use-sheet-time.js +14 -0
- package/divider/divider.d.ts +10 -0
- package/divider/divider.js +18 -0
- package/divider/index.d.ts +2 -0
- package/divider/index.js +1 -0
- package/divider/styles.module.css +28 -0
- package/divider/types.d.ts +17 -0
- package/divider/types.js +1 -0
- package/drawer/content.d.ts +8 -0
- package/drawer/content.js +20 -0
- package/drawer/context.d.ts +13 -0
- package/drawer/context.js +11 -0
- package/drawer/drawer.d.ts +27 -0
- package/drawer/drawer.js +93 -0
- package/drawer/footer.d.ts +6 -0
- package/drawer/footer.js +28 -0
- package/drawer/header.d.ts +11 -0
- package/drawer/header.js +27 -0
- package/drawer/index.d.ts +5 -0
- package/drawer/index.js +5 -0
- package/drawer/normalize-padding.d.ts +2 -0
- package/drawer/normalize-padding.js +20 -0
- package/drawer/sheet-drag-config.d.ts +12 -0
- package/drawer/sheet-drag-config.js +13 -0
- package/drawer/sheet-drag-utils.d.ts +16 -0
- package/drawer/sheet-drag-utils.js +35 -0
- package/drawer/styles.module.css +266 -0
- package/drawer/types.d.ts +102 -0
- package/drawer/types.js +1 -0
- package/drawer/use-scroll-state.d.ts +11 -0
- package/drawer/use-scroll-state.js +31 -0
- package/drawer/use-sheet-drag.d.ts +25 -0
- package/drawer/use-sheet-drag.js +160 -0
- package/dropdown-menu/dropdown-menu-button.d.ts +8 -0
- package/dropdown-menu/dropdown-menu-button.js +22 -0
- package/dropdown-menu/dropdown-menu-context.d.ts +6 -0
- package/dropdown-menu/dropdown-menu-context.js +10 -0
- package/dropdown-menu/dropdown-menu-item.d.ts +6 -0
- package/dropdown-menu/dropdown-menu-item.js +9 -0
- package/dropdown-menu/dropdown-menu.d.ts +13 -0
- package/dropdown-menu/dropdown-menu.js +37 -0
- package/dropdown-menu/index.d.ts +4 -0
- package/dropdown-menu/index.js +3 -0
- package/dropdown-menu/styles.module.css +46 -0
- package/dropdown-menu/types.d.ts +64 -0
- package/dropdown-menu/types.js +1 -0
- package/dropdown-menu/use-dropdown-menu.d.ts +178 -0
- package/dropdown-menu/use-dropdown-menu.js +166 -0
- package/file/components/file-background-progress.d.ts +8 -0
- package/file/components/file-background-progress.js +14 -0
- package/file/components/file-emblem.d.ts +14 -0
- package/file/components/file-emblem.js +32 -0
- package/file/components/file-interactive-shell.d.ts +15 -0
- package/file/components/file-interactive-shell.js +9 -0
- package/file/components/file-name.d.ts +13 -0
- package/file/components/file-name.js +14 -0
- package/file/components/file-status-meta.d.ts +14 -0
- package/file/components/file-status-meta.js +14 -0
- package/file/constants.d.ts +32 -0
- package/file/constants.js +17 -0
- package/file/file-extensions.d.ts +2 -0
- package/file/file-extensions.js +113 -0
- package/file/file.d.ts +6 -0
- package/file/file.js +19 -0
- package/file/hooks/use-file-view-model.d.ts +31 -0
- package/file/hooks/use-file-view-model.js +117 -0
- package/file/icons/file-extension-glyph-icon.d.ts +6 -0
- package/file/icons/file-extension-glyph-icon.js +7 -0
- package/file/icons/file-extension-glyphs.d.ts +18 -0
- package/file/icons/file-extension-glyphs.js +17 -0
- package/file/icons/file-extension-icons.d.ts +3 -0
- package/file/icons/file-extension-icons.js +12 -0
- package/file/image-frame-size-class.d.ts +3 -0
- package/file/image-frame-size-class.js +11 -0
- package/file/index.d.ts +6 -0
- package/file/index.js +4 -0
- package/file/presets/remove-preset.d.ts +10 -0
- package/file/presets/remove-preset.js +29 -0
- package/file/presets/retry-preset.d.ts +9 -0
- package/file/presets/retry-preset.js +18 -0
- package/file/styles.module.css +565 -0
- package/file/types.d.ts +62 -0
- package/file/types.js +1 -0
- package/file/utils/file-name-parts.d.ts +15 -0
- package/file/utils/file-name-parts.js +21 -0
- package/file/utils/format-size.d.ts +7 -0
- package/file/utils/format-size.js +35 -0
- package/file/utils/get-file-presentation.d.ts +33 -0
- package/file/utils/get-file-presentation.js +48 -0
- package/file/utils/resolve-file-icon.d.ts +5 -0
- package/file/utils/resolve-file-icon.js +17 -0
- package/file/utils/resolve-file-slot.d.ts +10 -0
- package/file/utils/resolve-file-slot.js +52 -0
- package/file/utils/split-file-name.d.ts +6 -0
- package/file/utils/split-file-name.js +12 -0
- package/file/views/file-default-view.d.ts +6 -0
- package/file/views/file-default-view.js +22 -0
- package/file/views/file-image-view.d.ts +6 -0
- package/file/views/file-image-view.js +17 -0
- package/file-upload/components/drop-overlay.d.ts +8 -0
- package/file-upload/components/drop-overlay.js +29 -0
- package/file-upload/components/file-upload-button-trigger.d.ts +9 -0
- package/file-upload/components/file-upload-button-trigger.js +11 -0
- package/file-upload/components/file-upload-hint-caption.d.ts +8 -0
- package/file-upload/components/file-upload-hint-caption.js +9 -0
- package/file-upload/components/file-upload-icon-button.d.ts +10 -0
- package/file-upload/components/file-upload-icon-button.js +14 -0
- package/file-upload/components/image-loader-icons.d.ts +7 -0
- package/file-upload/components/image-loader-icons.js +8 -0
- package/file-upload/components/image-loader-trigger.d.ts +12 -0
- package/file-upload/components/image-loader-trigger.js +14 -0
- package/file-upload/constants.d.ts +33 -0
- package/file-upload/constants.js +39 -0
- package/file-upload/file-upload.d.ts +10 -0
- package/file-upload/file-upload.js +16 -0
- package/file-upload/hooks/use-drag-overlay.d.ts +11 -0
- package/file-upload/hooks/use-drag-overlay.js +110 -0
- package/file-upload/hooks/use-file-list.d.ts +22 -0
- package/file-upload/hooks/use-file-list.js +188 -0
- package/file-upload/hooks/use-file-upload-view-model.d.ts +51 -0
- package/file-upload/hooks/use-file-upload-view-model.js +185 -0
- package/file-upload/hooks/use-object-url.d.ts +3 -0
- package/file-upload/hooks/use-object-url.js +27 -0
- package/file-upload/index.d.ts +16 -0
- package/file-upload/index.js +10 -0
- package/file-upload/styles.module.css +345 -0
- package/file-upload/types-dropzone.d.ts +18 -0
- package/file-upload/types-dropzone.js +1 -0
- package/file-upload/types-file-actions.d.ts +13 -0
- package/file-upload/types-file-actions.js +1 -0
- package/file-upload/types-labels.d.ts +44 -0
- package/file-upload/types-labels.js +1 -0
- package/file-upload/types.d.ts +155 -0
- package/file-upload/types.js +2 -0
- package/file-upload/utils/accept.d.ts +3 -0
- package/file-upload/utils/accept.js +44 -0
- package/file-upload/utils/build-file-slots.d.ts +16 -0
- package/file-upload/utils/build-file-slots.js +16 -0
- package/file-upload/utils/compute-drop-border-vertical-dash-style.d.ts +18 -0
- package/file-upload/utils/compute-drop-border-vertical-dash-style.js +41 -0
- package/file-upload/utils/get-drop-zone-typography.d.ts +12 -0
- package/file-upload/utils/get-drop-zone-typography.js +11 -0
- package/file-upload/utils/get-file-upload-presentation.d.ts +35 -0
- package/file-upload/utils/get-file-upload-presentation.js +65 -0
- package/file-upload/utils/max-count.d.ts +6 -0
- package/file-upload/utils/max-count.js +20 -0
- package/file-upload/utils/normalize.d.ts +3 -0
- package/file-upload/utils/normalize.js +63 -0
- package/file-upload/utils/render-drop-zone-hint-content.d.ts +6 -0
- package/file-upload/utils/render-drop-zone-hint-content.js +27 -0
- package/file-upload/utils/resolve-display-error.d.ts +6 -0
- package/file-upload/utils/resolve-display-error.js +15 -0
- package/file-upload/utils/resolve-hint-content.d.ts +12 -0
- package/file-upload/utils/resolve-hint-content.js +56 -0
- package/file-upload/utils/resolve-labels.d.ts +21 -0
- package/file-upload/utils/resolve-labels.js +34 -0
- package/file-upload/utils/resolve-preset.d.ts +14 -0
- package/file-upload/utils/resolve-preset.js +39 -0
- package/file-upload/utils/resolve-upload-file-error.d.ts +1 -0
- package/file-upload/utils/resolve-upload-file-error.js +9 -0
- package/file-upload/utils/resolve-upload-text.d.ts +2 -0
- package/file-upload/utils/resolve-upload-text.js +6 -0
- package/file-upload/utils/run-before-upload.d.ts +6 -0
- package/file-upload/utils/run-before-upload.js +25 -0
- package/file-upload/utils/run-sequentially.d.ts +2 -0
- package/file-upload/utils/run-sequentially.js +4 -0
- package/file-upload/utils/uid.d.ts +1 -0
- package/file-upload/utils/uid.js +4 -0
- package/file-upload/views/file-upload-dropzone-view.d.ts +6 -0
- package/file-upload/views/file-upload-dropzone-view.js +48 -0
- package/file-upload/views/file-upload-errors-view.d.ts +8 -0
- package/file-upload/views/file-upload-errors-view.js +7 -0
- package/file-upload/views/file-upload-footer-view.d.ts +6 -0
- package/file-upload/views/file-upload-footer-view.js +17 -0
- package/file-upload/views/file-upload-list-view.d.ts +8 -0
- package/file-upload/views/file-upload-list-view.js +38 -0
- package/file-upload/views/file-upload-trigger-view.d.ts +8 -0
- package/file-upload/views/file-upload-trigger-view.js +62 -0
- package/file-upload/views/file-upload-view.d.ts +6 -0
- package/file-upload/views/file-upload-view.js +17 -0
- package/grid/grid.d.ts +23 -0
- package/grid/grid.js +111 -0
- package/grid/index.d.ts +3 -0
- package/grid/index.js +2 -0
- package/grid/presets.d.ts +1 -0
- package/grid/presets.js +1 -0
- package/grid/styles.module.css +56 -0
- package/grid/types.d.ts +52 -0
- package/grid/types.js +1 -0
- package/grid-item/grid-item.d.ts +2 -0
- package/grid-item/grid-item.js +13 -0
- package/grid-item/index.d.ts +2 -0
- package/grid-item/index.js +1 -0
- package/grid-item/types.d.ts +13 -0
- package/grid-item/types.js +1 -0
- package/hint/buttons/action-button.d.ts +9 -0
- package/hint/buttons/action-button.js +19 -0
- package/hint/buttons/close-button.d.ts +10 -0
- package/hint/buttons/close-button.js +23 -0
- package/hint/buttons/extra-button.d.ts +9 -0
- package/hint/buttons/extra-button.js +19 -0
- package/hint/hint-content.d.ts +17 -0
- package/hint/hint-content.js +21 -0
- package/hint/hint-provider.d.ts +6 -0
- package/hint/hint-provider.js +10 -0
- package/hint/hint.d.ts +12 -0
- package/hint/hint.js +50 -0
- package/hint/index.d.ts +6 -0
- package/hint/index.js +5 -0
- package/hint/styles/buttons.module.css +16 -0
- package/hint/styles/hint-content.module.css +33 -0
- package/hint/styles/hint.module.css +37 -0
- package/hint/types.d.ts +103 -0
- package/hint/types.js +1 -0
- package/hooks/index.d.ts +21 -0
- package/hooks/index.js +21 -0
- package/hooks/media-query/create-media-query.d.ts +2 -0
- package/hooks/media-query/create-media-query.js +19 -0
- package/hooks/media-query/index.d.ts +3 -0
- package/hooks/media-query/index.js +2 -0
- package/hooks/media-query/observe-media-query.d.ts +5 -0
- package/hooks/media-query/observe-media-query.js +25 -0
- package/hooks/media-query/types.d.ts +8 -0
- package/hooks/media-query/types.js +1 -0
- package/hooks/media-query/use-media-query-listener.d.ts +8 -0
- package/hooks/media-query/use-media-query-listener.js +32 -0
- package/hooks/media-query/use-media-query.d.ts +10 -0
- package/hooks/media-query/use-media-query.js +24 -0
- package/hooks/use-actual-ref.d.ts +7 -0
- package/hooks/use-actual-ref.js +11 -0
- package/hooks/use-breakpoint.d.ts +13 -0
- package/hooks/use-breakpoint.js +50 -0
- package/hooks/use-click-outside.d.ts +5 -0
- package/hooks/use-click-outside.js +40 -0
- package/hooks/use-component-tokens.d.ts +12 -0
- package/hooks/use-component-tokens.js +17 -0
- package/hooks/use-cssvar-from-width.d.ts +3 -0
- package/hooks/use-cssvar-from-width.js +31 -0
- package/hooks/use-effect-once.d.ts +6 -0
- package/hooks/use-effect-once.js +10 -0
- package/hooks/use-isomorphic-layout-effect.d.ts +2 -0
- package/hooks/use-isomorphic-layout-effect.js +6 -0
- package/hooks/use-keyboard-callbacks.d.ts +15 -0
- package/hooks/use-keyboard-callbacks.js +121 -0
- package/hooks/use-keyboard-navigation.d.ts +14 -0
- package/hooks/use-keyboard-navigation.js +63 -0
- package/hooks/use-list-navigation/index.d.ts +8 -0
- package/hooks/use-list-navigation/index.js +4 -0
- package/hooks/use-list-navigation/input-modality.d.ts +8 -0
- package/hooks/use-list-navigation/input-modality.js +52 -0
- package/hooks/use-list-navigation/store.d.ts +31 -0
- package/hooks/use-list-navigation/store.js +67 -0
- package/hooks/use-list-navigation/types.d.ts +108 -0
- package/hooks/use-list-navigation/types.js +1 -0
- package/hooks/use-list-navigation/use-list-navigation-item.d.ts +12 -0
- package/hooks/use-list-navigation/use-list-navigation-item.js +36 -0
- package/hooks/use-list-navigation/use-list-navigation.d.ts +29 -0
- package/hooks/use-list-navigation/use-list-navigation.js +257 -0
- package/hooks/use-list-navigation/utils.d.ts +12 -0
- package/hooks/use-list-navigation/utils.js +47 -0
- package/hooks/use-load-more.d.ts +48 -0
- package/hooks/use-load-more.js +69 -0
- package/hooks/use-mount.d.ts +4 -0
- package/hooks/use-mount.js +10 -0
- package/hooks/use-persistent-callback.d.ts +5 -0
- package/hooks/use-persistent-callback.js +15 -0
- package/hooks/use-platform.d.ts +5 -0
- package/hooks/use-platform.js +34 -0
- package/hooks/use-responsive-value.d.ts +20 -0
- package/hooks/use-responsive-value.js +34 -0
- package/hooks/use-uniq-id.d.ts +12 -0
- package/hooks/use-uniq-id.js +16 -0
- package/hooks/use-unmount.d.ts +4 -0
- package/hooks/use-unmount.js +13 -0
- package/hooks/use-update-effect.d.ts +8 -0
- package/hooks/use-update-effect.js +23 -0
- package/hooks/use-viewport-exit.d.ts +6 -0
- package/hooks/use-viewport-exit.js +29 -0
- package/hooks/use-virtual-window.d.ts +44 -0
- package/hooks/use-virtual-window.js +83 -0
- package/hooks/use-window-size.d.ts +7 -0
- package/hooks/use-window-size.js +23 -0
- package/icon/icon.d.ts +118 -0
- package/icon/icon.js +32 -0
- package/icon/index.d.ts +1 -0
- package/icon/index.js +1 -0
- package/icon/pack-utils.d.ts +19 -0
- package/icon/pack-utils.js +24 -0
- package/icon/styles.module.css +17 -0
- package/icons/arrow-icon.d.ts +8 -0
- package/icons/arrow-icon.js +9 -0
- package/icons/back-icon.d.ts +2 -0
- package/icons/back-icon.js +3 -0
- package/icons/calendar-icon.d.ts +2 -0
- package/icons/calendar-icon.js +3 -0
- package/icons/check-icon.d.ts +2 -0
- package/icons/check-icon.js +5 -0
- package/icons/clock-icon.d.ts +2 -0
- package/icons/clock-icon.js +5 -0
- package/icons/close-icon.d.ts +2 -0
- package/icons/close-icon.js +3 -0
- package/icons/del-icon.d.ts +2 -0
- package/icons/del-icon.js +3 -0
- package/icons/double-arrow-icon.d.ts +6 -0
- package/icons/double-arrow-icon.js +8 -0
- package/icons/error-icon.d.ts +2 -0
- package/icons/error-icon.js +3 -0
- package/icons/eye-icon.d.ts +3 -0
- package/icons/eye-icon.js +4 -0
- package/icons/index.d.ts +15 -0
- package/icons/index.js +15 -0
- package/icons/magnifying-glass-icon.d.ts +2 -0
- package/icons/magnifying-glass-icon.js +3 -0
- package/icons/minus-icon.d.ts +2 -0
- package/icons/minus-icon.js +3 -0
- package/icons/plus-icon.d.ts +2 -0
- package/icons/plus-icon.js +3 -0
- package/icons/reset-icon.d.ts +2 -0
- package/icons/reset-icon.js +3 -0
- package/icons/shopping-icon.d.ts +2 -0
- package/icons/shopping-icon.js +3 -0
- package/icons/stars/star-fill-icon.d.ts +2 -0
- package/icons/stars/star-fill-icon.js +3 -0
- package/icons/stars/star-half-icon.d.ts +4 -0
- package/icons/stars/star-half-icon.js +3 -0
- package/icons/stars/start-outline-icon.d.ts +5 -0
- package/icons/stars/start-outline-icon.js +3 -0
- package/icons/types.d.ts +2 -0
- package/icons/types.js +1 -0
- package/image/image-viewer.d.ts +17 -0
- package/image/image-viewer.js +41 -0
- package/image/image.d.ts +27 -0
- package/image/image.js +67 -0
- package/image/index.d.ts +2 -0
- package/image/index.js +1 -0
- package/image/style.module.css +65 -0
- package/image/types.d.ts +88 -0
- package/image/types.js +1 -0
- package/image/use-image.d.ts +18 -0
- package/image/use-image.js +44 -0
- package/image/viewer.module.css +80 -0
- package/index.d.ts +67 -0
- package/index.js +64 -0
- package/input/fields/password-toggle.d.ts +10 -0
- package/input/fields/password-toggle.js +10 -0
- package/input/fields/text-field.d.ts +3 -0
- package/input/fields/text-field.js +23 -0
- package/input/fields/use-text-field.d.ts +676 -0
- package/input/fields/use-text-field.js +76 -0
- package/input/index.d.ts +2 -0
- package/input/index.js +1 -0
- package/input/input.d.ts +13 -0
- package/input/input.js +18 -0
- package/input/types.d.ts +30 -0
- package/input/types.js +1 -0
- package/label/index.d.ts +2 -0
- package/label/index.js +2 -0
- package/label/label.d.ts +19 -0
- package/label/label.js +43 -0
- package/label/styles.module.css +25 -0
- package/label/types.d.ts +45 -0
- package/label/types.js +1 -0
- package/list/clear-all-button/clear-all-button.d.ts +9 -0
- package/list/clear-all-button/clear-all-button.js +11 -0
- package/list/clear-all-button/index.d.ts +1 -0
- package/list/clear-all-button/index.js +1 -0
- package/list/constants.d.ts +1 -0
- package/list/constants.js +1 -0
- package/list/index.d.ts +6 -0
- package/list/index.js +4 -0
- package/list/list-context.d.ts +15 -0
- package/list/list-context.js +10 -0
- package/list/list-divider/index.d.ts +1 -0
- package/list/list-divider/index.js +1 -0
- package/list/list-divider/list-divider.d.ts +2 -0
- package/list/list-divider/list-divider.js +10 -0
- package/list/list-divider/styles.module.css +7 -0
- package/list/list-divider/use-list-divider.d.ts +3 -0
- package/list/list-divider/use-list-divider.js +12 -0
- package/list/list-item/index.d.ts +2 -0
- package/list/list-item/index.js +1 -0
- package/list/list-item/list-icon.d.ts +11 -0
- package/list/list-item/list-icon.js +22 -0
- package/list/list-item/list-item-provider.d.ts +13 -0
- package/list/list-item/list-item-provider.js +14 -0
- package/list/list-item/list-item.d.ts +5 -0
- package/list/list-item/list-item.js +26 -0
- package/list/list-item/styles.module.css +216 -0
- package/list/list-item/types.d.ts +100 -0
- package/list/list-item/types.js +1 -0
- package/list/list-item/use-list-item.d.ts +28 -0
- package/list/list-item/use-list-item.js +75 -0
- package/list/list-item/use-nested-list.d.ts +4 -0
- package/list/list-item/use-nested-list.js +14 -0
- package/list/list-section/index.d.ts +1 -0
- package/list/list-section/index.js +1 -0
- package/list/list-section/list-section.d.ts +32 -0
- package/list/list-section/list-section.js +28 -0
- package/list/list-section/styles.module.css +27 -0
- package/list/list.d.ts +20 -0
- package/list/list.js +33 -0
- package/list/styles.module.css +24 -0
- package/list/types.d.ts +73 -0
- package/list/types.js +1 -0
- package/list/use-list.d.ts +17 -0
- package/list/use-list.js +70 -0
- package/loader/index.d.ts +1 -0
- package/loader/index.js +1 -0
- package/loader/loader.d.ts +46 -0
- package/loader/loader.js +24 -0
- package/loader/loader.module.css +80 -0
- package/locale/create-translator.d.ts +8 -0
- package/locale/create-translator.js +10 -0
- package/locale/en.d.ts +2 -0
- package/locale/en.js +106 -0
- package/locale/index.d.ts +8 -0
- package/locale/index.js +5 -0
- package/locale/locale-provider.d.ts +30 -0
- package/locale/locale-provider.js +17 -0
- package/locale/ru.d.ts +2 -0
- package/locale/ru.js +106 -0
- package/locale/types.d.ts +183 -0
- package/locale/types.js +1 -0
- package/locale/use-locale.d.ts +9 -0
- package/locale/use-locale.js +8 -0
- package/masked-input/constants.d.ts +5 -0
- package/masked-input/constants.js +5 -0
- package/masked-input/hooks.d.ts +14 -0
- package/masked-input/hooks.js +172 -0
- package/masked-input/index.d.ts +3 -0
- package/masked-input/index.js +1 -0
- package/masked-input/mask-types.d.ts +27 -0
- package/masked-input/mask-types.js +1 -0
- package/masked-input/masked-input.d.ts +12 -0
- package/masked-input/masked-input.js +21 -0
- package/masked-input/types.d.ts +27 -0
- package/masked-input/types.js +1 -0
- package/masked-input/use-mask.d.ts +648 -0
- package/masked-input/use-mask.js +164 -0
- package/masked-input/utils/get-autofill-selector.d.ts +1 -0
- package/masked-input/utils/get-autofill-selector.js +11 -0
- package/masked-input/utils/helpers.d.ts +17 -0
- package/masked-input/utils/helpers.js +50 -0
- package/masked-input/utils/index.d.ts +4 -0
- package/masked-input/utils/index.js +4 -0
- package/masked-input/utils/mask-utils.d.ts +20 -0
- package/masked-input/utils/mask-utils.js +207 -0
- package/masked-input/utils/parse-mask.d.ts +2 -0
- package/masked-input/utils/parse-mask.js +57 -0
- package/masked-input/utils/validate-props.d.ts +3 -0
- package/masked-input/utils/validate-props.js +10 -0
- package/modal/constants.d.ts +2 -0
- package/modal/constants.js +2 -0
- package/modal/index.d.ts +5 -0
- package/modal/index.js +5 -0
- package/modal/modal-close-button.d.ts +3 -0
- package/modal/modal-close-button.js +13 -0
- package/modal/modal-content.d.ts +5 -0
- package/modal/modal-content.js +37 -0
- package/modal/modal-context.d.ts +18 -0
- package/modal/modal-context.js +10 -0
- package/modal/modal-footer.d.ts +8 -0
- package/modal/modal-footer.js +18 -0
- package/modal/modal-header.d.ts +8 -0
- package/modal/modal-header.js +18 -0
- package/modal/modal.d.ts +22 -0
- package/modal/modal.js +56 -0
- package/modal/styles/_animations.css +124 -0
- package/modal/styles/_config.css +0 -0
- package/modal/styles/modal-content.module.css +30 -0
- package/modal/styles/modal-footer.module.css +31 -0
- package/modal/styles/modal-header.module.css +56 -0
- package/modal/styles/modal.module.css +284 -0
- package/modal/types.d.ts +74 -0
- package/modal/types.js +1 -0
- package/modal/use-modal-refs.d.ts +5 -0
- package/modal/use-modal-refs.js +12 -0
- package/modal/use-modal.d.ts +22 -0
- package/modal/use-modal.js +49 -0
- package/modal/utils.d.ts +11 -0
- package/modal/utils.js +12 -0
- package/navigation/context.d.ts +72 -0
- package/navigation/context.js +19 -0
- package/navigation/index.d.ts +5 -0
- package/navigation/index.js +3 -0
- package/navigation/navigation-compact.d.ts +12 -0
- package/navigation/navigation-compact.js +83 -0
- package/navigation/navigation-control.d.ts +15 -0
- package/navigation/navigation-control.js +53 -0
- package/navigation/navigation-item-content.d.ts +25 -0
- package/navigation/navigation-item-content.js +26 -0
- package/navigation/navigation-list.d.ts +15 -0
- package/navigation/navigation-list.js +51 -0
- package/navigation/navigation-rail.d.ts +9 -0
- package/navigation/navigation-rail.js +25 -0
- package/navigation/navigation-row.d.ts +8 -0
- package/navigation/navigation-row.js +47 -0
- package/navigation/navigation-tree.d.ts +11 -0
- package/navigation/navigation-tree.js +61 -0
- package/navigation/navigation-views.d.ts +23 -0
- package/navigation/navigation-views.js +72 -0
- package/navigation/navigation.d.ts +45 -0
- package/navigation/navigation.js +114 -0
- package/navigation/storage.d.ts +2 -0
- package/navigation/storage.js +23 -0
- package/navigation/styles/navigation.module.css +567 -0
- package/navigation/types.d.ts +189 -0
- package/navigation/types.js +1 -0
- package/navigation/use-item-tooltip.d.ts +14 -0
- package/navigation/use-item-tooltip.js +17 -0
- package/navigation/use-navigation-types.d.ts +33 -0
- package/navigation/use-navigation-types.js +1 -0
- package/navigation/use-navigation.d.ts +8 -0
- package/navigation/use-navigation.js +138 -0
- package/navigation/use-overflow.d.ts +16 -0
- package/navigation/use-overflow.js +38 -0
- package/navigation/utils.d.ts +30 -0
- package/navigation/utils.js +90 -0
- package/number-input/format-types.d.ts +58 -0
- package/number-input/format-types.js +5 -0
- package/number-input/format-utils.d.ts +11 -0
- package/number-input/format-utils.js +160 -0
- package/number-input/hooks/index.d.ts +2 -0
- package/number-input/hooks/index.js +1 -0
- package/number-input/hooks/use-numeric-format.d.ts +15 -0
- package/number-input/hooks/use-numeric-format.js +133 -0
- package/number-input/index.d.ts +2 -0
- package/number-input/index.js +1 -0
- package/number-input/number-input.d.ts +11 -0
- package/number-input/number-input.js +20 -0
- package/number-input/types.d.ts +47 -0
- package/number-input/types.js +1 -0
- package/number-input/use-number-input.d.ts +664 -0
- package/number-input/use-number-input.js +402 -0
- package/number-input/utils.d.ts +63 -0
- package/number-input/utils.js +300 -0
- package/package.json +361 -4
- package/pagination/index.d.ts +6 -0
- package/pagination/index.js +3 -0
- package/pagination/items.d.ts +21 -0
- package/pagination/items.js +44 -0
- package/pagination/labels.d.ts +4 -0
- package/pagination/labels.js +13 -0
- package/pagination/pagination.d.ts +30 -0
- package/pagination/pagination.js +59 -0
- package/pagination/styles.module.css +125 -0
- package/pagination/types.d.ts +99 -0
- package/pagination/types.js +1 -0
- package/pagination/use-pagination.d.ts +13 -0
- package/pagination/use-pagination.js +24 -0
- package/pin-input/index.d.ts +2 -0
- package/pin-input/index.js +1 -0
- package/pin-input/pin-input.d.ts +26 -0
- package/pin-input/pin-input.js +27 -0
- package/pin-input/styles.module.css +68 -0
- package/pin-input/types.d.ts +83 -0
- package/pin-input/types.js +1 -0
- package/pin-input/use-pin-input.d.ts +23 -0
- package/pin-input/use-pin-input.js +134 -0
- package/pin-input/utils.d.ts +7 -0
- package/pin-input/utils.js +11 -0
- package/popover/index.d.ts +5 -0
- package/popover/index.js +3 -0
- package/popover/popover.d.ts +13 -0
- package/popover/popover.js +37 -0
- package/popover/styles.module.css +76 -0
- package/popover/types.d.ts +115 -0
- package/popover/types.js +1 -0
- package/popover/use-popover.d.ts +24 -0
- package/popover/use-popover.js +121 -0
- package/portal/index.d.ts +4 -0
- package/portal/index.js +3 -0
- package/portal/portal-provider.d.ts +13 -0
- package/portal/portal-provider.js +17 -0
- package/portal/portal.d.ts +34 -0
- package/portal/portal.js +42 -0
- package/portal/resolve-container.d.ts +3 -0
- package/portal/resolve-container.js +11 -0
- package/portal/types.d.ts +25 -0
- package/portal/types.js +1 -0
- package/portal/use-portal.d.ts +14 -0
- package/portal/use-portal.js +45 -0
- package/progress-bar/index.d.ts +2 -0
- package/progress-bar/index.js +1 -0
- package/progress-bar/progress-bar.d.ts +12 -0
- package/progress-bar/progress-bar.js +50 -0
- package/progress-bar/styles.module.css +147 -0
- package/progress-bar/types.d.ts +45 -0
- package/progress-bar/types.js +1 -0
- package/quantity-input/index.d.ts +2 -0
- package/quantity-input/index.js +1 -0
- package/quantity-input/quantity-input.d.ts +22 -0
- package/quantity-input/quantity-input.js +84 -0
- package/quantity-input/styles.module.css +44 -0
- package/quantity-input/types.d.ts +54 -0
- package/quantity-input/types.js +1 -0
- package/quantity-input/utils.d.ts +10 -0
- package/quantity-input/utils.js +16 -0
- package/radio/index.d.ts +2 -0
- package/radio/index.js +2 -0
- package/radio/radio.d.ts +9 -0
- package/radio/radio.js +44 -0
- package/radio/styles.module.css +161 -0
- package/radio/types.d.ts +40 -0
- package/radio/types.js +1 -0
- package/radio-group/index.d.ts +2 -0
- package/radio-group/index.js +2 -0
- package/radio-group/radio-group-context.d.ts +14 -0
- package/radio-group/radio-group-context.js +5 -0
- package/radio-group/radio-group.d.ts +57 -0
- package/radio-group/radio-group.js +41 -0
- package/radio-group/styles.module.css +12 -0
- package/radio-group/use-radio-group.d.ts +8 -0
- package/radio-group/use-radio-group.js +4 -0
- package/scss/_functions.scss +101 -0
- package/scss/_grid.scss +89 -0
- package/scss/_index.scss +6 -0
- package/scss/_interaction.scss +36 -0
- package/scss/_mixins.scss +62 -0
- package/scss/_tokens.generated.scss +578 -0
- package/scss/_tokens.scss +2 -0
- package/scss/_typography.scss +316 -0
- package/segmented-control/index.d.ts +3 -0
- package/segmented-control/index.js +2 -0
- package/segmented-control/segmented-control-context.d.ts +13 -0
- package/segmented-control/segmented-control-context.js +8 -0
- package/segmented-control/segmented-control-item.d.ts +3 -0
- package/segmented-control/segmented-control-item.js +39 -0
- package/segmented-control/segmented-control.d.ts +21 -0
- package/segmented-control/segmented-control.js +36 -0
- package/segmented-control/styles/_variables.css +0 -0
- package/segmented-control/styles/segmented-control-item.module.css +194 -0
- package/segmented-control/styles/segmented-control.module.css +31 -0
- package/segmented-control/types.d.ts +95 -0
- package/segmented-control/types.js +1 -0
- package/segmented-control/use-segmented-control.d.ts +9 -0
- package/segmented-control/use-segmented-control.js +30 -0
- package/select/class-names-context.d.ts +18 -0
- package/select/class-names-context.js +3 -0
- package/select/components/render-grouped-options.d.ts +18 -0
- package/select/components/render-grouped-options.js +41 -0
- package/select/components/select-field-multiselect-value.d.ts +23 -0
- package/select/components/select-field-multiselect-value.js +17 -0
- package/select/components/select-field-value.d.ts +38 -0
- package/select/components/select-field-value.js +54 -0
- package/select/components/select-field.d.ts +41 -0
- package/select/components/select-field.js +182 -0
- package/select/components/select-load-more-indicator.d.ts +6 -0
- package/select/components/select-load-more-indicator.js +7 -0
- package/select/components/select-multiselect-panel.d.ts +60 -0
- package/select/components/select-multiselect-panel.js +163 -0
- package/select/components/select-option-list.d.ts +23 -0
- package/select/components/select-option-list.js +72 -0
- package/select/components/select-option-row.d.ts +19 -0
- package/select/components/select-option-row.js +40 -0
- package/select/components/select-options-scroll-area.d.ts +13 -0
- package/select/components/select-options-scroll-area.js +8 -0
- package/select/components/select-panel-status.d.ts +11 -0
- package/select/components/select-panel-status.js +17 -0
- package/select/components/select-single-panel.d.ts +27 -0
- package/select/components/select-single-panel.js +41 -0
- package/select/hooks/use-auto-scroll-to-bottom.d.ts +7 -0
- package/select/hooks/use-auto-scroll-to-bottom.js +23 -0
- package/select/hooks/use-chips-row-count.d.ts +23 -0
- package/select/hooks/use-chips-row-count.js +61 -0
- package/select/hooks/use-multiselect-collapsed-display.d.ts +8 -0
- package/select/hooks/use-multiselect-collapsed-display.js +134 -0
- package/select/hooks/use-select-dismiss.d.ts +17 -0
- package/select/hooks/use-select-dismiss.js +79 -0
- package/select/hooks/use-select-input-bindings.d.ts +37 -0
- package/select/hooks/use-select-input-bindings.js +43 -0
- package/select/hooks/use-select-keyboard.d.ts +24 -0
- package/select/hooks/use-select-keyboard.js +171 -0
- package/select/hooks/use-select-multiselect-panel-state.d.ts +8 -0
- package/select/hooks/use-select-multiselect-panel-state.js +28 -0
- package/select/hooks/use-select-search.d.ts +9 -0
- package/select/hooks/use-select-search.js +258 -0
- package/select/hooks/use-select-view-model.d.ts +58 -0
- package/select/hooks/use-select-view-model.js +166 -0
- package/select/hooks/use-select-virtual.d.ts +28 -0
- package/select/hooks/use-select-virtual.js +31 -0
- package/select/hooks/use-select.d.ts +9 -0
- package/select/hooks/use-select.js +435 -0
- package/select/index.d.ts +20 -0
- package/select/index.js +12 -0
- package/select/presets/autocomplete.d.ts +12 -0
- package/select/presets/autocomplete.js +16 -0
- package/select/presets/index.d.ts +1 -0
- package/select/presets/index.js +1 -0
- package/select/select.d.ts +25 -0
- package/select/select.js +19 -0
- package/select/styles/select-field.module.css +147 -0
- package/select/styles/select.module.css +457 -0
- package/select/types-search.d.ts +151 -0
- package/select/types-search.js +1 -0
- package/select/types.d.ts +374 -0
- package/select/types.js +1 -0
- package/select/utils/custom-search-option.d.ts +15 -0
- package/select/utils/custom-search-option.js +37 -0
- package/select/utils/filter-options.d.ts +5 -0
- package/select/utils/filter-options.js +23 -0
- package/select/utils/get-display-value.d.ts +13 -0
- package/select/utils/get-display-value.js +16 -0
- package/select/utils/get-element-content-width.d.ts +1 -0
- package/select/utils/get-element-content-width.js +11 -0
- package/select/utils/get-multiselect-display-labels.d.ts +3 -0
- package/select/utils/get-multiselect-display-labels.js +7 -0
- package/select/utils/get-status-content.d.ts +11 -0
- package/select/utils/get-status-content.js +10 -0
- package/select/utils/is-select-panel-compact-content.d.ts +3 -0
- package/select/utils/is-select-panel-compact-content.js +4 -0
- package/select/utils/measure-multiselect-row-width.d.ts +10 -0
- package/select/utils/measure-multiselect-row-width.js +15 -0
- package/select/utils/measure-text-width.d.ts +9 -0
- package/select/utils/measure-text-width.js +72 -0
- package/select/utils/multiselect-collapsed-display-shared.d.ts +40 -0
- package/select/utils/multiselect-collapsed-display-shared.js +145 -0
- package/select/utils/normalize-options.d.ts +4 -0
- package/select/utils/normalize-options.js +7 -0
- package/select/utils/normalize-value.d.ts +5 -0
- package/select/utils/normalize-value.js +18 -0
- package/select/utils/resolve-loading-state.d.ts +9 -0
- package/select/utils/resolve-loading-state.js +10 -0
- package/select/utils/resolve-multiselect-collapsed-display.d.ts +6 -0
- package/select/utils/resolve-multiselect-collapsed-display.js +42 -0
- package/select/utils/resolve-search-content.d.ts +3 -0
- package/select/utils/resolve-search-content.js +6 -0
- package/select/utils/retain-combobox-focus.d.ts +4 -0
- package/select/utils/retain-combobox-focus.js +17 -0
- package/select/utils/select-keyboard-navigation.d.ts +3 -0
- package/select/utils/select-keyboard-navigation.js +14 -0
- package/select/utils/select-load-more-scroll.d.ts +16 -0
- package/select/utils/select-load-more-scroll.js +20 -0
- package/select/utils/select-option-id.d.ts +3 -0
- package/select/utils/select-option-id.js +4 -0
- package/select/views/select-listbox.d.ts +10 -0
- package/select/views/select-listbox.js +15 -0
- package/select/views/select-search-listbox.d.ts +3 -0
- package/select/views/select-search-listbox.js +23 -0
- package/select/views/select-view.d.ts +6 -0
- package/select/views/select-view.js +64 -0
- package/select/views/styles.module.css +45 -0
- package/show-more/hooks/use-show-more-view-model.d.ts +24 -0
- package/show-more/hooks/use-show-more-view-model.js +76 -0
- package/show-more/index.d.ts +2 -0
- package/show-more/index.js +1 -0
- package/show-more/show-more.d.ts +21 -0
- package/show-more/show-more.js +15 -0
- package/show-more/styles.module.css +20 -0
- package/show-more/types.d.ts +46 -0
- package/show-more/types.js +1 -0
- package/show-more/views/show-more-view.d.ts +6 -0
- package/show-more/views/show-more-view.js +9 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/index.js +2 -0
- package/skeleton/skeleton.d.ts +13 -0
- package/skeleton/skeleton.js +44 -0
- package/skeleton/styles.module.css +300 -0
- package/skeleton/types.d.ts +85 -0
- package/skeleton/types.js +1 -0
- package/skeleton/use-skeleton.d.ts +7 -0
- package/skeleton/use-skeleton.js +20 -0
- package/snackbar/index.d.ts +6 -0
- package/snackbar/index.js +5 -0
- package/snackbar/snack-button.d.ts +10 -0
- package/snackbar/snack-button.js +19 -0
- package/snackbar/snack-view.d.ts +8 -0
- package/snackbar/snack-view.js +66 -0
- package/snackbar/snack.d.ts +14 -0
- package/snackbar/snack.js +25 -0
- package/snackbar/snackbar-context.d.ts +9 -0
- package/snackbar/snackbar-context.js +10 -0
- package/snackbar/snackbar-provider.d.ts +17 -0
- package/snackbar/snackbar-provider.js +49 -0
- package/snackbar/snackbar.d.ts +26 -0
- package/snackbar/snackbar.js +41 -0
- package/snackbar/styles/snack.module.css +195 -0
- package/snackbar/styles/snackbar.module.css +66 -0
- package/snackbar/types.d.ts +152 -0
- package/snackbar/types.js +1 -0
- package/snackbar/use-snack-timer.d.ts +5 -0
- package/snackbar/use-snack-timer.js +28 -0
- package/snackbar/use-snack.d.ts +326 -0
- package/snackbar/use-snack.js +82 -0
- package/stack/index.d.ts +1 -0
- package/stack/index.js +1 -0
- package/stack/stack.d.ts +16 -0
- package/stack/stack.js +34 -0
- package/stack/styles.module.css +46 -0
- package/stack/types.d.ts +34 -0
- package/stack/types.js +1 -0
- package/status/index.d.ts +2 -0
- package/status/index.js +1 -0
- package/status/status-icon.d.ts +18 -0
- package/status/status-icon.js +19 -0
- package/status/styles.module.css +18 -0
- package/status/types.d.ts +12 -0
- package/status/types.js +1 -0
- package/stepper/index.d.ts +3 -0
- package/stepper/index.js +2 -0
- package/stepper/stepper.d.ts +24 -0
- package/stepper/stepper.js +41 -0
- package/stepper/styles.module.css +172 -0
- package/stepper/types.d.ts +69 -0
- package/stepper/types.js +1 -0
- package/stepper/use-stepper.d.ts +11 -0
- package/stepper/use-stepper.js +25 -0
- package/switch/index.d.ts +2 -0
- package/switch/index.js +2 -0
- package/switch/styles/base.module.css +134 -0
- package/switch/switch.d.ts +14 -0
- package/switch/switch.js +39 -0
- package/switch/types.d.ts +60 -0
- package/switch/types.js +1 -0
- package/tabs/context.d.ts +21 -0
- package/tabs/context.js +9 -0
- package/tabs/index.d.ts +6 -0
- package/tabs/index.js +5 -0
- package/tabs/styles/tab-list.module.css +23 -0
- package/tabs/styles/tab-panel.module.css +3 -0
- package/tabs/styles/tab.module.css +210 -0
- package/tabs/tab-list.d.ts +14 -0
- package/tabs/tab-list.js +70 -0
- package/tabs/tab-panel.d.ts +8 -0
- package/tabs/tab-panel.js +16 -0
- package/tabs/tab.d.ts +10 -0
- package/tabs/tab.js +40 -0
- package/tabs/tabs.d.ts +18 -0
- package/tabs/tabs.js +26 -0
- package/tabs/types.d.ts +92 -0
- package/tabs/types.js +1 -0
- package/tabs/use-tabs.d.ts +7 -0
- package/tabs/use-tabs.js +59 -0
- package/textarea/get-max-length-message.d.ts +1 -0
- package/textarea/get-max-length-message.js +5 -0
- package/textarea/index.d.ts +2 -0
- package/textarea/index.js +1 -0
- package/textarea/styles.module.css +37 -0
- package/textarea/textarea.d.ts +9 -0
- package/textarea/textarea.js +20 -0
- package/textarea/types.d.ts +44 -0
- package/textarea/types.js +1 -0
- package/textarea/use-auto-height.d.ts +16 -0
- package/textarea/use-auto-height.js +106 -0
- package/textarea/use-resize-handle.d.ts +8 -0
- package/textarea/use-resize-handle.js +44 -0
- package/textarea/use-textarea.d.ts +1241 -0
- package/textarea/use-textarea.js +108 -0
- package/theme-provider/index.d.ts +9 -0
- package/theme-provider/index.js +5 -0
- package/theme-provider/styles.module.css +332 -0
- package/theme-provider/theme-context.d.ts +31 -0
- package/theme-provider/theme-context.js +33 -0
- package/theme-provider/theme-provider.d.ts +14 -0
- package/theme-provider/theme-provider.js +45 -0
- package/theme-provider/theme-scope.d.ts +33 -0
- package/theme-provider/theme-scope.js +45 -0
- package/theme-provider/types.d.ts +82 -0
- package/theme-provider/types.js +1 -0
- package/theme-provider/use-system-theme.d.ts +6 -0
- package/theme-provider/use-system-theme.js +23 -0
- package/theme-provider/use-theme-provider.d.ts +8 -0
- package/theme-provider/use-theme-provider.js +22 -0
- package/time-picker/index.d.ts +8 -0
- package/time-picker/index.js +6 -0
- package/time-picker/picker-types.d.ts +77 -0
- package/time-picker/picker-types.js +1 -0
- package/time-picker/single-time-picker.d.ts +3 -0
- package/time-picker/single-time-picker.js +37 -0
- package/time-picker/styles.module.css +124 -0
- package/time-picker/time-model.d.ts +34 -0
- package/time-picker/time-model.js +140 -0
- package/time-picker/time-panel.d.ts +20 -0
- package/time-picker/time-panel.js +81 -0
- package/time-picker/time-picker.d.ts +13 -0
- package/time-picker/time-picker.js +43 -0
- package/time-picker/time-range-picker.d.ts +3 -0
- package/time-picker/time-range-picker.js +44 -0
- package/time-picker/types.d.ts +158 -0
- package/time-picker/types.js +1 -0
- package/time-picker/use-time-panel.d.ts +12 -0
- package/time-picker/use-time-panel.js +22 -0
- package/time-picker/use-time-picker.d.ts +29 -0
- package/time-picker/use-time-picker.js +117 -0
- package/time-picker/use-time-range-picker.d.ts +36 -0
- package/time-picker/use-time-range-picker.js +131 -0
- package/tokens/index.d.ts +1 -0
- package/tokens/index.js +2 -0
- package/tooltip/index.d.ts +2 -0
- package/tooltip/index.js +1 -0
- package/tooltip/styles.module.css +46 -0
- package/tooltip/tooltip.d.ts +12 -0
- package/tooltip/tooltip.js +30 -0
- package/tooltip/types.d.ts +41 -0
- package/tooltip/types.js +1 -0
- package/tooltip/use-tooltip.d.ts +18 -0
- package/tooltip/use-tooltip.js +37 -0
- package/tree/check.d.ts +16 -0
- package/tree/check.js +99 -0
- package/tree/class-names-context.d.ts +3 -0
- package/tree/class-names-context.js +5 -0
- package/tree/highlight.d.ts +3 -0
- package/tree/highlight.js +23 -0
- package/tree/index.d.ts +11 -0
- package/tree/index.js +6 -0
- package/tree/model.d.ts +59 -0
- package/tree/model.js +110 -0
- package/tree/move.d.ts +42 -0
- package/tree/move.js +103 -0
- package/tree/styles.module.css +290 -0
- package/tree/tree-branch.d.ts +23 -0
- package/tree/tree-branch.js +41 -0
- package/tree/tree-placeholder.d.ts +11 -0
- package/tree/tree-placeholder.js +10 -0
- package/tree/tree-row-content.d.ts +27 -0
- package/tree/tree-row-content.js +25 -0
- package/tree/tree-row-renderer.d.ts +12 -0
- package/tree/tree-row-renderer.js +54 -0
- package/tree/tree-row.d.ts +30 -0
- package/tree/tree-row.js +92 -0
- package/tree/tree-select-panel.d.ts +22 -0
- package/tree/tree-select-panel.js +9 -0
- package/tree/tree-select-selection.d.ts +20 -0
- package/tree/tree-select-selection.js +28 -0
- package/tree/tree-select-types.d.ts +102 -0
- package/tree/tree-select-types.js +1 -0
- package/tree/tree-select.d.ts +32 -0
- package/tree/tree-select.js +201 -0
- package/tree/tree-select.module.css +35 -0
- package/tree/tree.d.ts +57 -0
- package/tree/tree.js +93 -0
- package/tree/types-row.d.ts +51 -0
- package/tree/types-row.js +1 -0
- package/tree/types.d.ts +192 -0
- package/tree/types.js +1 -0
- package/tree/use-tree-activate.d.ts +3 -0
- package/tree/use-tree-activate.js +14 -0
- package/tree/use-tree-checks.d.ts +17 -0
- package/tree/use-tree-checks.js +24 -0
- package/tree/use-tree-expansion.d.ts +17 -0
- package/tree/use-tree-expansion.js +71 -0
- package/tree/use-tree-keyboard.d.ts +17 -0
- package/tree/use-tree-keyboard.js +91 -0
- package/tree/use-tree-virtual.d.ts +33 -0
- package/tree/use-tree-virtual.js +72 -0
- package/tree/use-tree.d.ts +26 -0
- package/tree/use-tree.js +108 -0
- package/tree/virtual-rows.d.ts +11 -0
- package/tree/virtual-rows.js +9 -0
- package/types/size.d.ts +6 -0
- package/types/size.js +1 -0
- package/typography/index.d.ts +2 -0
- package/typography/index.js +1 -0
- package/typography/styles.module.css +304 -0
- package/typography/types.d.ts +61 -0
- package/typography/types.js +1 -0
- package/typography/typography.d.ts +21 -0
- package/typography/typography.js +24 -0
- package/utils/call-child-as-function.d.ts +1 -0
- package/utils/call-child-as-function.js +1 -0
- package/utils/class-names.d.ts +68 -0
- package/utils/class-names.js +164 -0
- package/utils/compose-event-handlers.d.ts +2 -0
- package/utils/compose-event-handlers.js +15 -0
- package/utils/container-props-override.d.ts +10 -0
- package/utils/container-props-override.js +19 -0
- package/utils/create-id.d.ts +5 -0
- package/utils/create-id.js +9 -0
- package/utils/data-attributes.d.ts +14 -0
- package/utils/data-attributes.js +23 -0
- package/utils/decode-uri.d.ts +23 -0
- package/utils/decode-uri.js +46 -0
- package/utils/empty-function.d.ts +2 -0
- package/utils/empty-function.js +4 -0
- package/utils/get-react-element-ref.d.ts +2 -0
- package/utils/get-react-element-ref.js +10 -0
- package/utils/imperative-change-input-value.d.ts +4 -0
- package/utils/imperative-change-input-value.js +15 -0
- package/utils/index.d.ts +20 -0
- package/utils/index.js +16 -0
- package/utils/input-caret.d.ts +4 -0
- package/utils/input-caret.js +42 -0
- package/utils/invariant.d.ts +5 -0
- package/utils/invariant.js +12 -0
- package/utils/is-browser.d.ts +1 -0
- package/utils/is-browser.js +1 -0
- package/utils/is-new-theme.d.ts +1 -0
- package/utils/is-new-theme.js +7 -0
- package/utils/merge-refs.d.ts +9 -0
- package/utils/merge-refs.js +36 -0
- package/utils/overridable-component.d.ts +47 -0
- package/utils/overridable-component.js +1 -0
- package/utils/shallow-objects-equal.d.ts +4 -0
- package/utils/shallow-objects-equal.js +16 -0
- package/utils/style/index.d.ts +3 -0
- package/utils/style/index.js +2 -0
- package/utils/style/props/color.d.ts +2 -0
- package/utils/style/props/color.js +6 -0
- package/utils/style/props/dimension.d.ts +2 -0
- package/utils/style/props/dimension.js +10 -0
- package/utils/style/props/index.d.ts +4 -0
- package/utils/style/props/index.js +3 -0
- package/utils/style/props/passthrough.d.ts +1 -0
- package/utils/style/props/passthrough.js +1 -0
- package/utils/style/props/types.d.ts +7 -0
- package/utils/style/props/types.js +1 -0
- package/utils/style/types.d.ts +6 -0
- package/utils/style/types.js +1 -0
- package/utils/style/use-style-props.d.ts +5 -0
- package/utils/style/use-style-props.js +7 -0
- package/utils/style/utils/convert-style-props.d.ts +4 -0
- package/utils/style/utils/convert-style-props.js +23 -0
- package/utils/style/utils/index.d.ts +1 -0
- package/utils/style/utils/index.js +1 -0
- package/utils/use-class-names.d.ts +37 -0
- package/utils/use-class-names.js +87 -0
- package/utils/utils.d.ts +9 -0
- package/utils/utils.js +1 -0
- package/visually-hidden/index.d.ts +1 -0
- package/visually-hidden/index.js +1 -0
- package/visually-hidden/styles.module.css +9 -0
- package/visually-hidden/visually-hidden.d.ts +6 -0
- package/visually-hidden/visually-hidden.js +6 -0
- package/README.md +0 -3
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Label = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
const React = __importStar(require("react"));
|
|
43
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
44
|
+
const icon_1 = require("../icon");
|
|
45
|
+
const typography_1 = require("../typography");
|
|
46
|
+
const styles_module_scss_1 = __importDefault(require("./styles.module.css"));
|
|
47
|
+
const utils_1 = require("../utils");
|
|
48
|
+
const compat_1 = require("../_internal/compat");
|
|
49
|
+
const ICON_SIZE = 16;
|
|
50
|
+
/**
|
|
51
|
+
* `<Label />` — самостоятельная текстовая метка в потоке содержимого (категория, статус, тег).
|
|
52
|
+
* Счётчик или точка в углу чужого элемента — это `Badge`.
|
|
53
|
+
*
|
|
54
|
+
* @example ```tsx
|
|
55
|
+
<Label>Best buy</Label>
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
exports.Label = (0, compat_1.withRef)(function Label({ className = '', classNames: classNamesProp, color = 'text-primary', background = 'control-minor', variant = '', children, iconLeft, iconRight, borderColor, ...props }, ref) {
|
|
59
|
+
const classNames = (0, utils_1.useClassNames)('Label', classNamesProp);
|
|
60
|
+
const styleProps = (0, utils_1.useStyleProps)({
|
|
61
|
+
color,
|
|
62
|
+
background,
|
|
63
|
+
borderColor: borderColor !== null && borderColor !== void 0 ? borderColor : background,
|
|
64
|
+
}, labelStyleProps);
|
|
65
|
+
const labelClassName = React.useMemo(() => (0, clsx_1.default)(styles_module_scss_1.default.label, styles_module_scss_1.default[variant], classNames.root, className), [variant, classNames.root, className]);
|
|
66
|
+
const title = typeof children === 'string' ? children : '';
|
|
67
|
+
const labelProps = {
|
|
68
|
+
...styleProps,
|
|
69
|
+
title,
|
|
70
|
+
className: labelClassName,
|
|
71
|
+
ref,
|
|
72
|
+
};
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)("span", { "data-lt-ui": "label", ...labelProps, ...props, children: [iconLeft && (0, jsx_runtime_1.jsx)(icon_1.Icon, { size: ICON_SIZE, children: iconLeft }), (0, jsx_runtime_1.jsx)(typography_1.Typography, { className: (0, clsx_1.default)(styles_module_scss_1.default.textStyle, classNames.text), variant: "caption", children: children }), iconRight && (0, jsx_runtime_1.jsx)(icon_1.Icon, { size: ICON_SIZE, children: iconRight })] }));
|
|
74
|
+
});
|
|
75
|
+
const labelStyleProps = {
|
|
76
|
+
background: ['backgroundColor', colorValue],
|
|
77
|
+
color: ['color', colorValue],
|
|
78
|
+
borderColor: ['borderColor', colorValue],
|
|
79
|
+
};
|
|
80
|
+
function colorValue(value) {
|
|
81
|
+
return (0, utils_1.colorToken)(value);
|
|
82
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.label {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
height: var(--lt-ui-label-height, 24px);
|
|
8
|
+
padding: var(--space-4);
|
|
9
|
+
color: var(--text-primary);
|
|
10
|
+
background-color: var(--control-minor);
|
|
11
|
+
border-style: solid;
|
|
12
|
+
border-width: 1px;
|
|
13
|
+
border-radius: var(--lt-ui-label-radius, var(--rounding-l));
|
|
14
|
+
}
|
|
15
|
+
.label.angle {
|
|
16
|
+
border-radius: 0 var(--lt-ui-label-radius, var(--rounding-l)) var(--lt-ui-label-radius, var(--rounding-l));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.textStyle {
|
|
20
|
+
width: 100%;
|
|
21
|
+
margin: 0 var(--space-4);
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.ClearAllButton = void 0;
|
|
37
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
39
|
+
const icons_1 = require("../../icons");
|
|
40
|
+
const list_item_1 = require("../list-item");
|
|
41
|
+
const list_divider_1 = require("../list-divider");
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
exports.ClearAllButton = (0, react_1.memo)(function ClearAllButton(props) {
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(list_item_1.ListItem, { iconLeft: (0, jsx_runtime_1.jsx)(icons_1.CloseIcon, {}), selectable: false, ...props }), (0, jsx_runtime_1.jsx)(list_divider_1.ListDivider, {})] }));
|
|
47
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./clear-all-button"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ListDivider = exports.ListItem = exports.List = void 0;
|
|
18
|
+
var list_1 = require("./list");
|
|
19
|
+
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return list_1.List; } });
|
|
20
|
+
var list_item_1 = require("./list-item");
|
|
21
|
+
Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return list_item_1.ListItem; } });
|
|
22
|
+
var list_divider_1 = require("./list-divider");
|
|
23
|
+
Object.defineProperty(exports, "ListDivider", { enumerable: true, get: function () { return list_divider_1.ListDivider; } });
|
|
24
|
+
__exportStar(require("./list-section"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useListContext = exports.ListProvider = void 0;
|
|
5
|
+
const context_selector_1 = require("../_internal/context-selector");
|
|
6
|
+
const invariant_1 = require("../utils/invariant");
|
|
7
|
+
const compat_1 = require("../_internal/compat");
|
|
8
|
+
const ListContext = (0, context_selector_1.createContext)(null);
|
|
9
|
+
exports.ListProvider = (0, compat_1.contextProvider)(ListContext);
|
|
10
|
+
const useListContext = (selector) => (0, context_selector_1.useContextSelector)(ListContext, ctx => {
|
|
11
|
+
(0, invariant_1.invariant)(ctx !== null, "Component can't be used outside of <List /> component");
|
|
12
|
+
return selector(ctx);
|
|
13
|
+
});
|
|
14
|
+
exports.useListContext = useListContext;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-divider"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.ListDivider = void 0;
|
|
41
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
+
const react_1 = __importStar(require("react"));
|
|
43
|
+
const divider_1 = require("../../divider");
|
|
44
|
+
const use_list_divider_1 = require("./use-list-divider");
|
|
45
|
+
const styles_module_scss_1 = __importDefault(require("./styles.module.css"));
|
|
46
|
+
exports.ListDivider = (0, react_1.memo)(function ListDivider() {
|
|
47
|
+
const { size } = (0, use_list_divider_1.useListDivider)();
|
|
48
|
+
return (0, jsx_runtime_1.jsx)(divider_1.Divider, { className: styles_module_scss_1.default[size] });
|
|
49
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.useListDivider = useListDivider;
|
|
5
|
+
const invariant_1 = require("../../utils/invariant");
|
|
6
|
+
const list_context_1 = require("../list-context");
|
|
7
|
+
function useListDivider() {
|
|
8
|
+
const size = (0, list_context_1.useListContext)(ctx => {
|
|
9
|
+
(0, invariant_1.invariant)(ctx !== null, "<ListDivider /> can't be used outside of <List/> component");
|
|
10
|
+
return ctx.size;
|
|
11
|
+
});
|
|
12
|
+
return {
|
|
13
|
+
size,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ListIcon = void 0;
|
|
40
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
42
|
+
const react_1 = __importStar(require("react"));
|
|
43
|
+
const icons_1 = require("../../icons");
|
|
44
|
+
const styles_module_scss_1 = __importDefault(require("./styles.module.css"));
|
|
45
|
+
/**
|
|
46
|
+
* @private
|
|
47
|
+
*/
|
|
48
|
+
exports.ListIcon = (0, react_1.memo)(function ListIcon(props) {
|
|
49
|
+
const { selected = false, disabled = false, icon } = props;
|
|
50
|
+
if (typeof icon === 'function')
|
|
51
|
+
return icon({ selected, disabled });
|
|
52
|
+
if (typeof icon === 'string')
|
|
53
|
+
return presetsMapper[icon]({ selected, disabled });
|
|
54
|
+
return icon;
|
|
55
|
+
});
|
|
56
|
+
const presetsMapper = {
|
|
57
|
+
radio: params => (0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.radio, params.selected && styles_module_scss_1.default.selected) }),
|
|
58
|
+
'checkbox-indeterminate': params => ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.checkboxIconContainer, params.selected && styles_module_scss_1.default.selected), children: (0, jsx_runtime_1.jsx)("svg", { fill: "var(--icon-color)", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("rect", { x: "6", y: "11", width: "12", height: "2" }) }) })),
|
|
59
|
+
checkbox: params => ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.checkboxIconContainer, params.selected && styles_module_scss_1.default.selected), children: (0, jsx_runtime_1.jsx)(icons_1.CheckIcon, {}) })),
|
|
60
|
+
check: params => ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.check, params.selected && styles_module_scss_1.default.selected), children: (0, jsx_runtime_1.jsx)(icons_1.CheckIcon, {}) })),
|
|
61
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ListItemProvider = void 0;
|
|
8
|
+
exports.useListItemContext = useListItemContext;
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
|
+
const compat_1 = require("../../_internal/compat");
|
|
11
|
+
const ListItemContext = react_1.default.createContext(null);
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
exports.ListItemProvider = (0, compat_1.contextProvider)(ListItemContext);
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
function useListItemContext() {
|
|
20
|
+
return react_1.default.useContext(ListItemContext);
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
"use strict";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ListItem = ListItem;
|
|
8
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
const clsx_1 = __importDefault(require("clsx"));
|
|
10
|
+
const badge_1 = require("../../badge");
|
|
11
|
+
const use_list_navigation_1 = require("../../hooks/use-list-navigation");
|
|
12
|
+
const icon_1 = require("../../icon");
|
|
13
|
+
const typography_1 = require("../../typography");
|
|
14
|
+
const utils_1 = require("../../utils");
|
|
15
|
+
const data_attributes_1 = require("../../utils/data-attributes");
|
|
16
|
+
const list_icon_1 = require("./list-icon");
|
|
17
|
+
const list_item_provider_1 = require("./list-item-provider");
|
|
18
|
+
const styles_module_scss_1 = __importDefault(require("./styles.module.css"));
|
|
19
|
+
const use_list_item_1 = require("./use-list-item");
|
|
20
|
+
/**
|
|
21
|
+
* Компонент `<ListItem />` используется для создания элементов внутри `<List />`
|
|
22
|
+
*/
|
|
23
|
+
function ListItem(props) {
|
|
24
|
+
const { descriptionId, itemId, textid, description, text, children, iconLeft, selected, disabled, iconRight, rightElement, currentPadding, nextPadding, onClick, badgeValue, size, selectable, onKeyDown, isInteractive, value, iconSize, } = (0, use_list_item_1.useListItem)(props);
|
|
25
|
+
const { active, highlightActiveOnly, onMouseMove, img, descriptionPosition = 'bottom', alignment = 'top', classNames: classNamesProp, } = props;
|
|
26
|
+
const classNames = (0, utils_1.useClassNames)('ListItem', classNamesProp);
|
|
27
|
+
// Внутри навигации (DropdownMenu) пункт регистрируется в ней; в обычном List — ничего не меняется
|
|
28
|
+
const { props: navigationProps } = (0, use_list_navigation_1.useListNavigationItem)({ id: String(value), disabled });
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { role: "presentation", className: (0, clsx_1.default)(styles_module_scss_1.default.listItem, styles_module_scss_1.default[size], classNames.root, props.className), ...(currentPadding && {
|
|
30
|
+
style: { '--pad-start': currentPadding },
|
|
31
|
+
}), children: [(0, jsx_runtime_1.jsxs)("li", { ...(0, data_attributes_1.getDataAttributes)(props, 'listitem'), ...navigationProps, "data-nav-active": active || navigationProps['data-nav-active'] || undefined, id: itemId, onClick: onClick, onMouseMove: onMouseMove, "data-highlight-active-only": highlightActiveOnly || undefined, role: selectable ? 'option' : 'listitem', tabIndex: isInteractive && !disabled ? 0 : undefined, onKeyDown: onKeyDown, "aria-labelledby": textid, "aria-describedby": descriptionId, "aria-selected": selectable ? selected : undefined, "aria-disabled": disabled, "data-lt-ui": "list-item", "data-dom-listitem-value": value, "data-dom-listitem-type": typeof value, "data-description-position": descriptionPosition === 'top' ? 'top' : undefined, "data-alignment": alignment === 'top' ? undefined : alignment, className: (0, clsx_1.default)(styles_module_scss_1.default.listItemClickableContent, disabled && styles_module_scss_1.default.disabled, classNames.item), children: [img ? ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.img, classNames.img), children: img })) : ((0, jsx_runtime_1.jsx)(icon_1.Icon, { size: iconSize, className: (0, clsx_1.default)(styles_module_scss_1.default.iconStart, classNames.iconStart), children: (0, jsx_runtime_1.jsx)(list_icon_1.ListIcon, { disabled: disabled, selected: selected, icon: iconLeft }) })), (0, jsx_runtime_1.jsxs)(typography_1.Typography, { as: "div", id: textid, variant: size === 'l' ? 'body-m' : 'body-s', className: (0, clsx_1.default)(styles_module_scss_1.default.title, classNames.title), children: [text, (0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.badge, classNames.badge), role: "presentation", children: badgeValue && (0, jsx_runtime_1.jsx)(badge_1.Badge, { variant: "secondary", size: "m", value: badgeValue }) })] }), (0, jsx_runtime_1.jsx)(typography_1.Typography, { as: "div", id: descriptionId, variant: size === 'l' ? 'body-m-compact' : 'body-s-compact', className: (0, clsx_1.default)(styles_module_scss_1.default.description, classNames.description), children: description }), (0, jsx_runtime_1.jsx)(icon_1.Icon, { size: iconSize, className: (0, clsx_1.default)(styles_module_scss_1.default.iconEnd, classNames.iconEnd), children: (0, jsx_runtime_1.jsx)(list_icon_1.ListIcon, { disabled: disabled, selected: selected, icon: iconRight }) })] }), rightElement && ((0, jsx_runtime_1.jsx)("div", { className: (0, clsx_1.default)(styles_module_scss_1.default.adornment, disabled && styles_module_scss_1.default.disabled, classNames.adornment), children: rightElement }))] }), children && (0, jsx_runtime_1.jsx)(list_item_provider_1.ListItemProvider, { value: { nextPaddingStart: nextPadding }, children: children })] }));
|
|
32
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
.listItem {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
padding-block: var(--list-item-py);
|
|
6
|
+
padding-inline: calc(var(--list-item-indent) * var(--pad-start, 0) + var(--list-item-px)) var(--list-item-px);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.listItemClickableContent {
|
|
10
|
+
all: initial;
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-areas: "iconStart title badge adornment iconEnd" "iconStart description description adornment iconEnd";
|
|
13
|
+
grid-template-rows: auto auto;
|
|
14
|
+
grid-template-columns: auto 1fr auto;
|
|
15
|
+
align-items: start;
|
|
16
|
+
justify-content: start;
|
|
17
|
+
width: 100%;
|
|
18
|
+
color: inherit;
|
|
19
|
+
text-align: start;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
user-select: none;
|
|
22
|
+
-webkit-tap-highlight-color: transparent;
|
|
23
|
+
box-sizing: inherit;
|
|
24
|
+
padding: 0;
|
|
25
|
+
margin: 0;
|
|
26
|
+
font: inherit;
|
|
27
|
+
list-style: none;
|
|
28
|
+
border: 0;
|
|
29
|
+
}
|
|
30
|
+
@media (hover: hover) and (min-width: 768px) {
|
|
31
|
+
.listItemClickableContent:hover::before {
|
|
32
|
+
background-color: var(--lt-ui-list-item-hover-color, var(--background-secondary));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.listItemClickableContent:active::before {
|
|
36
|
+
background-color: var(--lt-ui-list-item-hover-color, var(--background-secondary));
|
|
37
|
+
}
|
|
38
|
+
.listItemClickableContent::-moz-focus-inner {
|
|
39
|
+
border: 0;
|
|
40
|
+
}
|
|
41
|
+
.listItemClickableContent:focus {
|
|
42
|
+
outline: none;
|
|
43
|
+
}
|
|
44
|
+
.listItemClickableContent:-moz-focusring {
|
|
45
|
+
border: none;
|
|
46
|
+
}
|
|
47
|
+
.listItemClickableContent:focus-visible::before {
|
|
48
|
+
background-color: var(--lt-ui-list-item-hover-color, var(--background-secondary));
|
|
49
|
+
}
|
|
50
|
+
.listItemClickableContent:active::before {
|
|
51
|
+
background-color: var(--lt-ui-list-item-pressed-color, var(--control-minor));
|
|
52
|
+
}
|
|
53
|
+
.listItemClickableContent::before {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
z-index: 0;
|
|
57
|
+
content: "";
|
|
58
|
+
transition: background-color 0.15s ease-in-out;
|
|
59
|
+
}
|
|
60
|
+
.listItemClickableContent[data-highlight-active-only]:hover::before, .listItemClickableContent[data-highlight-active-only]:focus::before {
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
.listItemClickableContent[data-nav-active]::before, .listItemClickableContent[data-highlight-active-only][data-nav-active]:hover::before {
|
|
64
|
+
background-color: var(--lt-ui-list-item-hover-color, var(--background-secondary));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.listItemClickableContent[data-description-position=top] {
|
|
68
|
+
grid-template-areas: "iconStart description description adornment iconEnd" "iconStart title badge adornment iconEnd";
|
|
69
|
+
}
|
|
70
|
+
.listItemClickableContent[data-description-position=top] .description {
|
|
71
|
+
margin-top: 0;
|
|
72
|
+
margin-bottom: var(--space-2);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.listItemClickableContent[data-alignment=center] {
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.listItemClickableContent[data-alignment=bottom] {
|
|
80
|
+
align-items: end;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.img {
|
|
84
|
+
z-index: 0;
|
|
85
|
+
grid-area: iconStart;
|
|
86
|
+
margin-inline-end: var(--space-8);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.disabled {
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
opacity: var(--opacity-40);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.l {
|
|
95
|
+
--list-item-py: 12px;
|
|
96
|
+
--list-item-px: 16px;
|
|
97
|
+
--list-item-indent: 24px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.m {
|
|
101
|
+
--list-item-py: 8px;
|
|
102
|
+
--list-item-px: 12px;
|
|
103
|
+
--list-item-indent: 16px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.iconStart {
|
|
107
|
+
z-index: 0;
|
|
108
|
+
grid-area: iconStart;
|
|
109
|
+
margin-inline-end: var(--space-8);
|
|
110
|
+
}
|
|
111
|
+
.iconStart:empty {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.iconEnd {
|
|
116
|
+
z-index: 0;
|
|
117
|
+
grid-area: iconEnd;
|
|
118
|
+
margin-inline-start: var(--space-8);
|
|
119
|
+
}
|
|
120
|
+
.iconEnd:empty {
|
|
121
|
+
display: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.title {
|
|
125
|
+
z-index: 0;
|
|
126
|
+
grid-area: title;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.description {
|
|
130
|
+
z-index: 0;
|
|
131
|
+
grid-area: description;
|
|
132
|
+
margin-top: var(--space-2);
|
|
133
|
+
color: var(--lt-ui-list-item-description-color, var(--text-minor));
|
|
134
|
+
}
|
|
135
|
+
.description:empty {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.adornment {
|
|
140
|
+
z-index: 0;
|
|
141
|
+
margin-inline-start: var(--space-8);
|
|
142
|
+
}
|
|
143
|
+
.adornment:empty {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.badge {
|
|
148
|
+
z-index: 0;
|
|
149
|
+
display: inline-block;
|
|
150
|
+
}
|
|
151
|
+
.l .badge {
|
|
152
|
+
margin-inline-start: var(--space-8);
|
|
153
|
+
}
|
|
154
|
+
.m .badge {
|
|
155
|
+
margin-inline-start: var(--space-12);
|
|
156
|
+
}
|
|
157
|
+
.badge:empty {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.check {
|
|
162
|
+
width: 100%;
|
|
163
|
+
height: 100%;
|
|
164
|
+
color: transparent;
|
|
165
|
+
}
|
|
166
|
+
.check.selected {
|
|
167
|
+
color: var(--text-primary);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.checkboxIconContainer {
|
|
171
|
+
width: 100%;
|
|
172
|
+
height: 100%;
|
|
173
|
+
padding: 0;
|
|
174
|
+
color: var(--control-invert);
|
|
175
|
+
background: var(--control-invert);
|
|
176
|
+
border: none;
|
|
177
|
+
border-radius: var(--rounding-m);
|
|
178
|
+
box-shadow: inset 0 0 0 2px var(--control-secondary);
|
|
179
|
+
transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
180
|
+
will-change: background, border-color;
|
|
181
|
+
}
|
|
182
|
+
.checkboxIconContainer.selected {
|
|
183
|
+
background-color: var(--control-primary);
|
|
184
|
+
box-shadow: inset 0 0 0 2px var(--control-primary);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.checkbox {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.radio {
|
|
194
|
+
display: flex;
|
|
195
|
+
width: 100%;
|
|
196
|
+
height: 100%;
|
|
197
|
+
color: transparent;
|
|
198
|
+
border: 2px solid var(--control-secondary);
|
|
199
|
+
border-radius: var(--rounding-circular);
|
|
200
|
+
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
|
|
201
|
+
}
|
|
202
|
+
.radio::before {
|
|
203
|
+
width: 10px;
|
|
204
|
+
height: 10px;
|
|
205
|
+
margin: auto;
|
|
206
|
+
content: "";
|
|
207
|
+
background-color: transparent;
|
|
208
|
+
border-radius: var(--rounding-circular);
|
|
209
|
+
}
|
|
210
|
+
.radio.selected {
|
|
211
|
+
background-color: var(--control-primary);
|
|
212
|
+
border-color: var(--control-primary);
|
|
213
|
+
}
|
|
214
|
+
.radio.selected::before {
|
|
215
|
+
background-color: var(--control-invert);
|
|
216
|
+
}
|