@loadsmart/miranda-wc 2.0.1 → 3.0.0-alpha.1
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/dist/components/accordion/accordion-content.d.ts +18 -0
- package/dist/components/accordion/accordion-title.d.ts +18 -0
- package/dist/components/accordion/accordion.d.ts +51 -0
- package/dist/components/accordion/accordion.styles.d.ts +4 -0
- package/dist/components/accordion/index.d.ts +4 -0
- package/dist/components/back-button/back-button.d.ts +20 -0
- package/dist/components/{radio-group/radio-button.styles.d.ts → back-button/back-button.styles.d.ts} +0 -1
- package/dist/components/back-button/index.d.ts +1 -0
- package/dist/components/badge/badge.d.ts +45 -0
- package/dist/components/badge/badge.styles.d.ts +2 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/banner/banner-action-primary.d.ts +0 -1
- package/dist/components/banner/banner-action-secondary.d.ts +0 -1
- package/dist/components/banner/banner-actions.d.ts +0 -1
- package/dist/components/banner/banner-actions.styles.d.ts +0 -1
- package/dist/components/banner/banner-description.d.ts +0 -1
- package/dist/components/banner/banner-description.styles.d.ts +0 -1
- package/dist/components/banner/banner-icon.d.ts +0 -1
- package/dist/components/banner/banner-title.d.ts +0 -1
- package/dist/components/banner/banner-title.styles.d.ts +0 -1
- package/dist/components/banner/banner.d.ts +2 -3
- package/dist/components/banner/banner.styles.d.ts +0 -1
- package/dist/components/banner/index.d.ts +0 -1
- package/dist/components/body/body.d.ts +18 -0
- package/dist/components/body/body.styles.d.ts +2 -0
- package/dist/components/body/index.d.ts +1 -0
- package/dist/components/button/base-button.styles.d.ts +1 -2
- package/dist/components/button/button.d.ts +67 -40
- package/dist/components/button/button.styles.d.ts +0 -1
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/card/card-action-primary.d.ts +9 -0
- package/dist/components/card/card-action-secondary.d.ts +9 -0
- package/dist/components/card/card-action-tertiary.d.ts +9 -0
- package/dist/components/card/card-body.d.ts +2 -2
- package/dist/components/card/card-divider.d.ts +0 -1
- package/dist/components/card/card-footer.d.ts +35 -0
- package/dist/components/card/card-subtitle.d.ts +2 -2
- package/dist/components/card/card-title.d.ts +2 -2
- package/dist/components/card/card.d.ts +45 -7
- package/dist/components/card/card.styles.d.ts +0 -1
- package/dist/components/card/index.d.ts +5 -2
- package/dist/components/checkbox/checkbox.d.ts +35 -48
- package/dist/components/checkbox/checkbox.styles.d.ts +0 -1
- package/dist/components/checkbox/index.d.ts +1 -2
- package/dist/components/close-button/close-button.d.ts +8 -2
- package/dist/components/close-button/close-button.styles.d.ts +0 -1
- package/dist/components/close-button/index.d.ts +0 -1
- package/dist/components/component/component.d.ts +4 -3
- package/dist/components/component/form-component.d.ts +5 -0
- package/dist/components/component/form-component.mixin.d.ts +17 -0
- package/dist/components/component/index.d.ts +3 -1
- package/dist/components/dialog/dialog-action-primary.d.ts +0 -1
- package/dist/components/dialog/dialog-action-secondary.d.ts +0 -1
- package/dist/components/dialog/dialog-action-tertiary.d.ts +0 -1
- package/dist/components/dialog/dialog-actions.d.ts +0 -1
- package/dist/components/dialog/dialog-body.d.ts +0 -1
- package/dist/components/dialog/dialog-body.styles.d.ts +0 -1
- package/dist/components/dialog/dialog-close.d.ts +0 -1
- package/dist/components/dialog/dialog-footer.d.ts +0 -1
- package/dist/components/dialog/dialog-header.d.ts +0 -1
- package/dist/components/dialog/dialog-header.styles.d.ts +0 -1
- package/dist/components/dialog/dialog.context.d.ts +0 -1
- package/dist/components/dialog/dialog.d.ts +1 -2
- package/dist/components/dialog/dialog.styles.d.ts +0 -1
- package/dist/components/dialog/dialog.types.d.ts +0 -1
- package/dist/components/dialog/index.d.ts +0 -1
- package/dist/components/divider/divider.d.ts +0 -1
- package/dist/components/divider/divider.styles.d.ts +0 -1
- package/dist/components/divider/index.d.ts +0 -1
- package/dist/components/drawer/drawer-action-primary.d.ts +9 -0
- package/dist/components/drawer/drawer-action-secondary.d.ts +9 -0
- package/dist/components/drawer/drawer-action-tertiary.d.ts +9 -0
- package/dist/components/drawer/drawer-actions.d.ts +11 -0
- package/dist/components/drawer/drawer-actions.styles.d.ts +1 -0
- package/dist/components/drawer/drawer-body.d.ts +11 -0
- package/dist/components/drawer/drawer-body.styles.d.ts +1 -0
- package/dist/components/drawer/drawer-close.d.ts +10 -0
- package/dist/components/drawer/drawer-header.d.ts +20 -0
- package/dist/components/drawer/drawer-header.styles.d.ts +1 -0
- package/dist/components/drawer/drawer.d.ts +49 -0
- package/dist/components/drawer/drawer.styles.d.ts +1 -0
- package/dist/components/drawer/drawer.types.d.ts +16 -0
- package/dist/components/drawer/index.d.ts +10 -0
- package/dist/components/dropdown/dropdown-item.d.ts +39 -0
- package/dist/components/dropdown/dropdown-menu.d.ts +12 -0
- package/dist/components/dropdown/dropdown-trigger.d.ts +28 -0
- package/dist/components/dropdown/dropdown.constants.d.ts +3 -0
- package/dist/components/dropdown/dropdown.d.ts +69 -0
- package/dist/components/dropdown/dropdown.styles.d.ts +3 -0
- package/dist/components/dropdown/index.d.ts +7 -0
- package/dist/components/empty-state/empty-state-action.d.ts +12 -0
- package/dist/components/empty-state/empty-state-header.d.ts +12 -0
- package/dist/components/empty-state/empty-state-illustration.d.ts +10 -0
- package/dist/components/empty-state/empty-state-message.d.ts +12 -0
- package/dist/components/empty-state/empty-state.context.d.ts +7 -0
- package/dist/components/empty-state/empty-state.d.ts +46 -0
- package/dist/components/empty-state/empty-state.styles.d.ts +2 -0
- package/dist/components/empty-state/empty-state.types.d.ts +2 -0
- package/dist/components/empty-state/empty-state.utils.d.ts +3 -0
- package/dist/components/empty-state/index.d.ts +7 -0
- package/dist/components/field/field-hint.d.ts +2 -2
- package/dist/components/field/field-label.d.ts +7 -32
- package/dist/components/field/field.context.d.ts +2 -3
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/field.styles.d.ts +2 -0
- package/dist/components/field/field.types.d.ts +0 -1
- package/dist/components/field/index.d.ts +0 -1
- package/dist/components/header/header-actions.d.ts +18 -0
- package/dist/components/header/header-content.d.ts +18 -0
- package/dist/components/header/header-title.d.ts +18 -0
- package/dist/components/header/header.d.ts +18 -0
- package/dist/components/header/header.styles.d.ts +6 -0
- package/dist/components/header/index.d.ts +5 -0
- package/dist/components/header/sub-header.d.ts +19 -0
- package/dist/components/icon/index.d.ts +1 -4
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/label.d.ts +33 -0
- package/dist/components/{icon/icon.styles.d.ts → label/label.styles.d.ts} +0 -1
- package/dist/components/labeled-value/index.d.ts +3 -0
- package/dist/components/labeled-value/labeled-value-label.d.ts +35 -0
- package/dist/components/labeled-value/labeled-value-value.d.ts +9 -0
- package/dist/components/labeled-value/labeled-value.d.ts +126 -0
- package/dist/components/layout/base-layout/base-layout.d.ts +1 -2
- package/dist/components/layout/base-layout/base-layout.styles.d.ts +0 -1
- package/dist/components/layout/base-layout/base-layout.types.d.ts +0 -1
- package/dist/components/layout/base-layout/index.d.ts +0 -1
- package/dist/components/layout/box/box.constants.d.ts +0 -1
- package/dist/components/layout/box/box.d.ts +1 -3
- package/dist/components/layout/box/box.styles.d.ts +0 -1
- package/dist/components/layout/box/box.types.d.ts +0 -1
- package/dist/components/layout/box/index.d.ts +0 -1
- package/dist/components/layout/grid/grid.constants.d.ts +0 -1
- package/dist/components/layout/grid/grid.d.ts +1 -3
- package/dist/components/layout/grid/grid.styles.d.ts +0 -1
- package/dist/components/layout/grid/grid.types.d.ts +0 -1
- package/dist/components/layout/grid/index.d.ts +0 -1
- package/dist/components/layout/group/group.constants.d.ts +0 -1
- package/dist/components/layout/group/group.d.ts +1 -3
- package/dist/components/layout/group/group.styles.d.ts +0 -1
- package/dist/components/layout/group/group.types.d.ts +0 -1
- package/dist/components/layout/group/index.d.ts +0 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/layout.constants.d.ts +1 -2
- package/dist/components/layout/layout.types.d.ts +0 -1
- package/dist/components/layout/row/column.d.ts +50 -0
- package/dist/components/layout/row/container.d.ts +11 -0
- package/dist/components/layout/row/index.d.ts +4 -0
- package/dist/components/layout/row/row.constants.d.ts +5 -0
- package/dist/components/layout/row/row.d.ts +31 -0
- package/dist/components/layout/row/row.styles.d.ts +3 -0
- package/dist/components/layout/row/row.types.d.ts +24 -0
- package/dist/components/layout/sidebar/index.d.ts +0 -1
- package/dist/components/layout/sidebar/sidebar.constants.d.ts +0 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +1 -2
- package/dist/components/layout/sidebar/sidebar.styles.d.ts +0 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts +0 -1
- package/dist/components/layout/stack/index.d.ts +0 -1
- package/dist/components/layout/stack/stack.constants.d.ts +0 -1
- package/dist/components/layout/stack/stack.d.ts +1 -3
- package/dist/components/layout/stack/stack.styles.d.ts +0 -1
- package/dist/components/layout/stack/stack.types.d.ts +0 -1
- package/dist/components/layout/switcher/index.d.ts +0 -1
- package/dist/components/layout/switcher/switcher.constants.d.ts +0 -1
- package/dist/components/layout/switcher/switcher.d.ts +1 -3
- package/dist/components/layout/switcher/switcher.styles.d.ts +0 -1
- package/dist/components/layout/switcher/switcher.types.d.ts +0 -1
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/link.d.ts +127 -0
- package/dist/components/link/link.styles.d.ts +2 -0
- package/dist/components/logo-loader/index.d.ts +2 -0
- package/dist/components/logo-loader/logo-loader.d.ts +24 -0
- package/dist/components/logo-loader/logo-loader.styles.d.ts +2 -0
- package/dist/components/page-content/index.d.ts +1 -0
- package/dist/components/page-content/page-content.d.ts +10 -0
- package/dist/components/page-content/page-content.styles.d.ts +2 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +74 -0
- package/dist/components/pagination/pagination.styles.d.ts +2 -0
- package/dist/components/popover/index.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +13 -5
- package/dist/components/popover/popover.helpers.d.ts +14 -0
- package/dist/components/popover/popover.styles.d.ts +4 -2
- package/dist/components/popover/popover.types.d.ts +1 -1
- package/dist/components/progress-bar/index.d.ts +0 -1
- package/dist/components/progress-bar/progress-bar.d.ts +1 -2
- package/dist/components/progress-bar/progress-bar.styles.d.ts +0 -1
- package/dist/components/progress-bar-countdown/index.d.ts +0 -1
- package/dist/components/progress-bar-countdown/progress-bar-countdown.d.ts +2 -3
- package/dist/components/radio-group/index.d.ts +0 -1
- package/dist/components/radio-group/radio-group.context.d.ts +6 -0
- package/dist/components/radio-group/radio-group.d.ts +44 -29
- package/dist/components/radio-group/radio-group.styles.d.ts +2 -3
- package/dist/components/radio-group/radio.d.ts +17 -20
- package/dist/components/section/index.d.ts +0 -1
- package/dist/components/section/section-title.d.ts +9 -7
- package/dist/components/section/section.d.ts +1 -2
- package/dist/components/section/section.styles.d.ts +0 -1
- package/dist/components/spinner-wheel/index.d.ts +2 -0
- package/dist/components/spinner-wheel/spinner-wheel.d.ts +21 -0
- package/dist/components/spinner-wheel/spinner-wheel.styles.d.ts +2 -0
- package/dist/components/steps/index.d.ts +4 -0
- package/dist/components/steps/steps-step.d.ts +45 -0
- package/dist/components/steps/steps.d.ts +33 -0
- package/dist/components/steps/steps.styles.d.ts +2 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.d.ts +57 -0
- package/dist/components/{toggle-group/toggle.styles.d.ts → switch/switch.styles.d.ts} +0 -1
- package/dist/components/table/index.d.ts +11 -0
- package/dist/components/table/table-actions.d.ts +27 -0
- package/dist/components/table/table-body.d.ts +21 -0
- package/dist/components/table/table-cell.d.ts +42 -0
- package/dist/components/table/table-feedback.d.ts +16 -0
- package/dist/components/table/table-foot.d.ts +21 -0
- package/dist/components/table/table-head-cell.d.ts +65 -0
- package/dist/components/table/table-head.d.ts +21 -0
- package/dist/components/table/table-row.d.ts +21 -0
- package/dist/components/table/table-toolbar.d.ts +17 -0
- package/dist/components/table/table.d.ts +27 -0
- package/dist/components/table/table.styles.d.ts +9 -0
- package/dist/components/table/table.types.d.ts +58 -0
- package/dist/components/tabs/index.d.ts +0 -1
- package/dist/components/tabs/tab-panel.d.ts +1 -2
- package/dist/components/tabs/tab-panel.styles.d.ts +0 -1
- package/dist/components/tabs/tab.d.ts +1 -2
- package/dist/components/tabs/tab.styles.d.ts +0 -1
- package/dist/components/tabs/tabs.constants.d.ts +0 -1
- package/dist/components/tabs/tabs.context.d.ts +0 -1
- package/dist/components/tabs/tabs.d.ts +2 -3
- package/dist/components/tabs/tabs.styles.d.ts +0 -1
- package/dist/components/tabs/tabs.types.d.ts +1 -2
- package/dist/components/tag/actionable-tag.d.ts +96 -0
- package/dist/components/tag/actionable-tag.styles.d.ts +1 -0
- package/dist/components/tag/base-tag.styles.d.ts +1 -0
- package/dist/components/tag/index.d.ts +2 -1
- package/dist/components/tag/tag.d.ts +3 -4
- package/dist/components/tag/tag.styles.d.ts +1 -3
- package/dist/components/text/index.d.ts +0 -1
- package/dist/components/text/text.d.ts +17 -6
- package/dist/components/text/text.styles.d.ts +0 -1
- package/dist/components/text-area/index.d.ts +2 -0
- package/dist/components/text-area/text-area.d.ts +188 -0
- package/dist/components/text-area/text-area.styles.d.ts +2 -0
- package/dist/components/text-field/index.d.ts +0 -1
- package/dist/components/text-field/text-field.d.ts +57 -39
- package/dist/components/text-field/text-field.styles.d.ts +0 -1
- package/dist/components/timeline/index.d.ts +10 -0
- package/dist/components/timeline/timeline-expandable-item.d.ts +76 -0
- package/dist/components/timeline/timeline-item-body.d.ts +11 -0
- package/dist/components/timeline/timeline-item-footer.d.ts +11 -0
- package/dist/components/timeline/timeline-item-header-subtitle.d.ts +9 -0
- package/dist/components/timeline/timeline-item-header-title.d.ts +11 -0
- package/dist/components/timeline/timeline-item-header.d.ts +28 -0
- package/dist/components/timeline/timeline-item-icon.d.ts +11 -0
- package/dist/components/timeline/timeline-item.context.d.ts +9 -0
- package/dist/components/timeline/timeline-item.d.ts +57 -0
- package/dist/components/timeline/timeline.d.ts +15 -0
- package/dist/components/timeline/timeline.styles.d.ts +7 -0
- package/dist/components/toggle-group/index.d.ts +1 -2
- package/dist/components/toggle-group/toggle-group.constants.d.ts +0 -1
- package/dist/components/toggle-group/toggle-group.d.ts +49 -30
- package/dist/components/toggle-group/toggle-group.styles.d.ts +2 -3
- package/dist/components/toggle-group/toggle.d.ts +17 -17
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/tooltip/tooltip.constants.d.ts +0 -1
- package/dist/components/tooltip/tooltip.d.ts +23 -11
- package/dist/components/tooltip/tooltip.helpers.d.ts +1 -2
- package/dist/components/tooltip/tooltip.styles.d.ts +0 -1
- package/dist/controllers/boundary/boundary.controller.d.ts +15 -0
- package/dist/controllers/boundary/index.d.ts +1 -0
- package/dist/controllers/focus-manager/focus-manager.controller.d.ts +88 -0
- package/dist/controllers/focus-manager/index.d.ts +2 -0
- package/dist/controllers/keyboard-support/index.d.ts +1 -0
- package/dist/controllers/keyboard-support/keyboard-support.controller.d.ts +54 -0
- package/dist/controllers/selection/index.d.ts +5 -3
- package/dist/controllers/selection/legacy-selection.controller.d.ts +36 -0
- package/dist/controllers/selection/selection-control.d.ts +5 -0
- package/dist/controllers/selection/selection-control.mixin.d.ts +13 -0
- package/dist/controllers/selection/selection.controller.d.ts +25 -27
- package/dist/index.d.ts +24 -2
- package/dist/index.js +13832 -2
- package/dist/mixins/polymorphic-tag/index.d.ts +0 -1
- package/dist/mixins/polymorphic-tag/polymorphic-tag.constants.d.ts +4 -0
- package/dist/mixins/polymorphic-tag/polymorphic-tag.d.ts +11 -3
- package/dist/mixins/polymorphic-tag/polymorphic-tag.types.d.ts +1 -10
- package/dist/mixins/with-id/index.d.ts +1 -0
- package/dist/mixins/with-id/with-id.mixin.d.ts +6 -0
- package/dist/stories/story-utils.d.ts +16 -1
- package/dist/styles/index.d.ts +7 -14
- package/dist/styles/margin.d.ts +1 -3
- package/dist/styles/media.d.ts +17 -0
- package/dist/styles/on.d.ts +63 -0
- package/dist/styles/padding.d.ts +1 -3
- package/dist/styles/skeleton.d.ts +3 -3
- package/dist/styles/transition.d.ts +1 -3
- package/dist/styles/typography.d.ts +3 -4
- package/dist/styles/variables.css +2 -0
- package/dist/styles/variables.scss +2 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +303 -0
- package/dist/utils/chunk/chunk.d.ts +15 -0
- package/dist/utils/chunk/index.d.ts +1 -0
- package/dist/utils/clamp/clamp.d.ts +0 -1
- package/dist/utils/clamp/index.d.ts +0 -1
- package/dist/utils/conditional.d.ts +21 -0
- package/dist/utils/context-root.d.ts +0 -1
- package/dist/utils/events.d.ts +5 -1
- package/dist/utils/generate-id.d.ts +6 -0
- package/dist/utils/get-color-token.d.ts +0 -1
- package/dist/utils/get-token.d.ts +2 -3
- package/dist/utils/product/index.d.ts +1 -0
- package/dist/utils/product/product.d.ts +14 -0
- package/dist/utils/range.d.ts +9 -0
- package/dist/utils/selection/index.d.ts +2 -0
- package/dist/utils/selection/selection-strategy.d.ts +17 -0
- package/dist/utils/selection/selection-strategy.types.d.ts +52 -0
- package/dist/utils/to-array/index.d.ts +1 -0
- package/dist/utils/to-array/to-array.d.ts +9 -0
- package/dist/utils/to-rem.d.ts +2 -2
- package/dist/utils/types.d.ts +6 -1
- package/dist/utils/wait-for-animations.d.ts +8 -0
- package/package.json +23 -16
- package/dist/attention-2fc489b7.js +0 -2
- package/dist/attention-2fc489b7.js.map +0 -1
- package/dist/bell-0851530f.js +0 -2
- package/dist/bell-0851530f.js.map +0 -1
- package/dist/check-32afc80d.js +0 -2
- package/dist/check-32afc80d.js.map +0 -1
- package/dist/close-5f1aed21.js +0 -2
- package/dist/close-5f1aed21.js.map +0 -1
- package/dist/components/banner/banner-action-primary.d.ts.map +0 -1
- package/dist/components/banner/banner-action-secondary.d.ts.map +0 -1
- package/dist/components/banner/banner-actions.d.ts.map +0 -1
- package/dist/components/banner/banner-actions.styles.d.ts.map +0 -1
- package/dist/components/banner/banner-description.d.ts.map +0 -1
- package/dist/components/banner/banner-description.styles.d.ts.map +0 -1
- package/dist/components/banner/banner-icon.d.ts.map +0 -1
- package/dist/components/banner/banner-title.d.ts.map +0 -1
- package/dist/components/banner/banner-title.styles.d.ts.map +0 -1
- package/dist/components/banner/banner.d.ts.map +0 -1
- package/dist/components/banner/banner.styles.d.ts.map +0 -1
- package/dist/components/banner/index.d.ts.map +0 -1
- package/dist/components/button/base-button.styles.d.ts.map +0 -1
- package/dist/components/button/button.d.ts.map +0 -1
- package/dist/components/button/button.styles.d.ts.map +0 -1
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/card/card-body.d.ts.map +0 -1
- package/dist/components/card/card-divider.d.ts.map +0 -1
- package/dist/components/card/card-subtitle.d.ts.map +0 -1
- package/dist/components/card/card-title.d.ts.map +0 -1
- package/dist/components/card/card.d.ts.map +0 -1
- package/dist/components/card/card.styles.d.ts.map +0 -1
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.constants.d.ts +0 -3
- package/dist/components/checkbox/checkbox.constants.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/checkbox.styles.d.ts.map +0 -1
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/close-button/close-button.d.ts.map +0 -1
- package/dist/components/close-button/close-button.styles.d.ts.map +0 -1
- package/dist/components/close-button/index.d.ts.map +0 -1
- package/dist/components/component/component.d.ts.map +0 -1
- package/dist/components/component/index.d.ts.map +0 -1
- package/dist/components/dialog/dialog-action-primary.d.ts.map +0 -1
- package/dist/components/dialog/dialog-action-secondary.d.ts.map +0 -1
- package/dist/components/dialog/dialog-action-tertiary.d.ts.map +0 -1
- package/dist/components/dialog/dialog-actions.d.ts.map +0 -1
- package/dist/components/dialog/dialog-body.d.ts.map +0 -1
- package/dist/components/dialog/dialog-body.styles.d.ts.map +0 -1
- package/dist/components/dialog/dialog-close.d.ts.map +0 -1
- package/dist/components/dialog/dialog-footer.d.ts.map +0 -1
- package/dist/components/dialog/dialog-header.d.ts.map +0 -1
- package/dist/components/dialog/dialog-header.styles.d.ts.map +0 -1
- package/dist/components/dialog/dialog.context.d.ts.map +0 -1
- package/dist/components/dialog/dialog.d.ts.map +0 -1
- package/dist/components/dialog/dialog.styles.d.ts.map +0 -1
- package/dist/components/dialog/dialog.types.d.ts.map +0 -1
- package/dist/components/dialog/index.d.ts.map +0 -1
- package/dist/components/divider/divider.d.ts.map +0 -1
- package/dist/components/divider/divider.styles.d.ts.map +0 -1
- package/dist/components/divider/index.d.ts.map +0 -1
- package/dist/components/field/field-hint.d.ts.map +0 -1
- package/dist/components/field/field-hint.styles.d.ts +0 -3
- package/dist/components/field/field-hint.styles.d.ts.map +0 -1
- package/dist/components/field/field-label.d.ts.map +0 -1
- package/dist/components/field/field-label.styles.d.ts +0 -3
- package/dist/components/field/field-label.styles.d.ts.map +0 -1
- package/dist/components/field/field.context.d.ts.map +0 -1
- package/dist/components/field/field.d.ts.map +0 -1
- package/dist/components/field/field.types.d.ts.map +0 -1
- package/dist/components/field/index.d.ts.map +0 -1
- package/dist/components/focus-trap/focus-trap.d.ts +0 -43
- package/dist/components/focus-trap/focus-trap.d.ts.map +0 -1
- package/dist/components/focus-trap/focus-trap.helpers.d.ts +0 -2
- package/dist/components/focus-trap/focus-trap.helpers.d.ts.map +0 -1
- package/dist/components/focus-trap/focus-trap.styles.d.ts +0 -3
- package/dist/components/focus-trap/focus-trap.styles.d.ts.map +0 -1
- package/dist/components/focus-trap/index.d.ts +0 -3
- package/dist/components/focus-trap/index.d.ts.map +0 -1
- package/dist/components/form-control/form-control.d.ts +0 -20
- package/dist/components/form-control/form-control.d.ts.map +0 -1
- package/dist/components/form-control/index.d.ts +0 -2
- package/dist/components/form-control/index.d.ts.map +0 -1
- package/dist/components/icon/available-icons.d.ts +0 -4
- package/dist/components/icon/available-icons.d.ts.map +0 -1
- package/dist/components/icon/icon.d.ts +0 -59
- package/dist/components/icon/icon.d.ts.map +0 -1
- package/dist/components/icon/icon.styles.d.ts.map +0 -1
- package/dist/components/icon/icons/attention.d.ts +0 -3
- package/dist/components/icon/icons/attention.d.ts.map +0 -1
- package/dist/components/icon/icons/bell.d.ts +0 -3
- package/dist/components/icon/icons/bell.d.ts.map +0 -1
- package/dist/components/icon/icons/check.d.ts +0 -3
- package/dist/components/icon/icons/check.d.ts.map +0 -1
- package/dist/components/icon/icons/close.d.ts +0 -3
- package/dist/components/icon/icons/close.d.ts.map +0 -1
- package/dist/components/icon/icons/indeterminate.d.ts +0 -3
- package/dist/components/icon/icons/indeterminate.d.ts.map +0 -1
- package/dist/components/icon/icons/info-circle.d.ts +0 -3
- package/dist/components/icon/icons/info-circle.d.ts.map +0 -1
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/layout/base-layout/base-layout.d.ts.map +0 -1
- package/dist/components/layout/base-layout/base-layout.styles.d.ts.map +0 -1
- package/dist/components/layout/base-layout/base-layout.types.d.ts.map +0 -1
- package/dist/components/layout/base-layout/index.d.ts.map +0 -1
- package/dist/components/layout/box/box.constants.d.ts.map +0 -1
- package/dist/components/layout/box/box.d.ts.map +0 -1
- package/dist/components/layout/box/box.styles.d.ts.map +0 -1
- package/dist/components/layout/box/box.types.d.ts.map +0 -1
- package/dist/components/layout/box/index.d.ts.map +0 -1
- package/dist/components/layout/grid/grid.constants.d.ts.map +0 -1
- package/dist/components/layout/grid/grid.d.ts.map +0 -1
- package/dist/components/layout/grid/grid.styles.d.ts.map +0 -1
- package/dist/components/layout/grid/grid.types.d.ts.map +0 -1
- package/dist/components/layout/grid/index.d.ts.map +0 -1
- package/dist/components/layout/group/group.constants.d.ts.map +0 -1
- package/dist/components/layout/group/group.d.ts.map +0 -1
- package/dist/components/layout/group/group.styles.d.ts.map +0 -1
- package/dist/components/layout/group/group.types.d.ts.map +0 -1
- package/dist/components/layout/group/index.d.ts.map +0 -1
- package/dist/components/layout/index.d.ts.map +0 -1
- package/dist/components/layout/layout.constants.d.ts.map +0 -1
- package/dist/components/layout/layout.types.d.ts.map +0 -1
- package/dist/components/layout/sidebar/index.d.ts.map +0 -1
- package/dist/components/layout/sidebar/sidebar.constants.d.ts.map +0 -1
- package/dist/components/layout/sidebar/sidebar.d.ts.map +0 -1
- package/dist/components/layout/sidebar/sidebar.styles.d.ts.map +0 -1
- package/dist/components/layout/sidebar/sidebar.types.d.ts.map +0 -1
- package/dist/components/layout/stack/index.d.ts.map +0 -1
- package/dist/components/layout/stack/stack.constants.d.ts.map +0 -1
- package/dist/components/layout/stack/stack.d.ts.map +0 -1
- package/dist/components/layout/stack/stack.styles.d.ts.map +0 -1
- package/dist/components/layout/stack/stack.types.d.ts.map +0 -1
- package/dist/components/layout/switcher/index.d.ts.map +0 -1
- package/dist/components/layout/switcher/switcher.constants.d.ts.map +0 -1
- package/dist/components/layout/switcher/switcher.d.ts.map +0 -1
- package/dist/components/layout/switcher/switcher.styles.d.ts.map +0 -1
- package/dist/components/layout/switcher/switcher.types.d.ts.map +0 -1
- package/dist/components/popover/index.d.ts.map +0 -1
- package/dist/components/popover/popover.d.ts.map +0 -1
- package/dist/components/popover/popover.styles.d.ts.map +0 -1
- package/dist/components/popover/popover.types.d.ts.map +0 -1
- package/dist/components/progress-bar/index.d.ts.map +0 -1
- package/dist/components/progress-bar/progress-bar.d.ts.map +0 -1
- package/dist/components/progress-bar/progress-bar.styles.d.ts.map +0 -1
- package/dist/components/progress-bar-countdown/index.d.ts.map +0 -1
- package/dist/components/progress-bar-countdown/progress-bar-countdown.d.ts.map +0 -1
- package/dist/components/radio-group/index.d.ts.map +0 -1
- package/dist/components/radio-group/radio-button.styles.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.constants.d.ts +0 -2
- package/dist/components/radio-group/radio-group.constants.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group/radio-group.styles.d.ts.map +0 -1
- package/dist/components/radio-group/radio.d.ts.map +0 -1
- package/dist/components/section/index.d.ts.map +0 -1
- package/dist/components/section/section-title.d.ts.map +0 -1
- package/dist/components/section/section.d.ts.map +0 -1
- package/dist/components/section/section.styles.d.ts.map +0 -1
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/tab-panel.d.ts.map +0 -1
- package/dist/components/tabs/tab-panel.styles.d.ts.map +0 -1
- package/dist/components/tabs/tab.d.ts.map +0 -1
- package/dist/components/tabs/tab.styles.d.ts.map +0 -1
- package/dist/components/tabs/tabs.constants.d.ts.map +0 -1
- package/dist/components/tabs/tabs.context.d.ts.map +0 -1
- package/dist/components/tabs/tabs.d.ts.map +0 -1
- package/dist/components/tabs/tabs.styles.d.ts.map +0 -1
- package/dist/components/tabs/tabs.types.d.ts.map +0 -1
- package/dist/components/tag/index.d.ts.map +0 -1
- package/dist/components/tag/tag.d.ts.map +0 -1
- package/dist/components/tag/tag.styles.d.ts.map +0 -1
- package/dist/components/text/index.d.ts.map +0 -1
- package/dist/components/text/text.d.ts.map +0 -1
- package/dist/components/text/text.styles.d.ts.map +0 -1
- package/dist/components/text-field/index.d.ts.map +0 -1
- package/dist/components/text-field/text-field.d.ts.map +0 -1
- package/dist/components/text-field/text-field.styles.d.ts.map +0 -1
- package/dist/components/toggle-group/index.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.constants.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle-group.styles.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle.d.ts.map +0 -1
- package/dist/components/toggle-group/toggle.styles.d.ts.map +0 -1
- package/dist/components/tooltip/index.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.constants.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.helpers.d.ts.map +0 -1
- package/dist/components/tooltip/tooltip.styles.d.ts.map +0 -1
- package/dist/controllers/selection/index.d.ts.map +0 -1
- package/dist/controllers/selection/selection.controller.d.ts.map +0 -1
- package/dist/indeterminate-c7f04ceb.js +0 -2
- package/dist/indeterminate-c7f04ceb.js.map +0 -1
- package/dist/index-d8f66065.js +0 -2173
- package/dist/index-d8f66065.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/info-circle-f4e6c52a.js +0 -2
- package/dist/info-circle-f4e6c52a.js.map +0 -1
- package/dist/mixins/polymorphic-tag/index.d.ts.map +0 -1
- package/dist/mixins/polymorphic-tag/polymorphic-tag.d.ts.map +0 -1
- package/dist/mixins/polymorphic-tag/polymorphic-tag.types.d.ts.map +0 -1
- package/dist/stories/story-utils.d.ts.map +0 -1
- package/dist/styles/activable.d.ts +0 -8
- package/dist/styles/activable.d.ts.map +0 -1
- package/dist/styles/disableable.d.ts +0 -9
- package/dist/styles/disableable.d.ts.map +0 -1
- package/dist/styles/focusable.d.ts +0 -8
- package/dist/styles/focusable.d.ts.map +0 -1
- package/dist/styles/hoverable.d.ts +0 -8
- package/dist/styles/hoverable.d.ts.map +0 -1
- package/dist/styles/index.d.ts.map +0 -1
- package/dist/styles/margin.d.ts.map +0 -1
- package/dist/styles/padding.d.ts.map +0 -1
- package/dist/styles/skeleton.d.ts.map +0 -1
- package/dist/styles/transition.d.ts.map +0 -1
- package/dist/styles/typography.d.ts.map +0 -1
- package/dist/utils/clamp/clamp.d.ts.map +0 -1
- package/dist/utils/clamp/index.d.ts.map +0 -1
- package/dist/utils/context-root.d.ts.map +0 -1
- package/dist/utils/events.d.ts.map +0 -1
- package/dist/utils/get-color-token.d.ts.map +0 -1
- package/dist/utils/get-token.d.ts.map +0 -1
- package/dist/utils/to-rem.d.ts.map +0 -1
- package/dist/utils/types.d.ts.map +0 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on the `HTMLElementTagNameMap`, from lib.dom.d.ts
|
|
3
|
+
*/
|
|
4
|
+
export declare const HTML_TAGS: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { LitElement } from 'lit';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StaticValue } from 'lit/static-html.js';
|
|
3
|
+
import type { HTMLTag } from './polymorphic-tag.types';
|
|
4
|
+
import type { Constructor } from '../../utils/types';
|
|
3
5
|
/**
|
|
4
6
|
* This mixin allows a component to render with different types of tags, based on the provided `allowedTags`.
|
|
5
7
|
* Be aware that, this mixin does **NOT** change the type (TS-wise) of your component, so, for tags that have their specific
|
|
@@ -9,5 +11,11 @@ import type { Constructor, HTMLTag, PolymorphicTagInterface } from './polymorphi
|
|
|
9
11
|
* TL;DR; either limit the tags you will allow for component, or add the additional attributes to your component to
|
|
10
12
|
* comply with the tags that will be supported.
|
|
11
13
|
*/
|
|
12
|
-
export declare const PolymorphicTagMixin: <T extends Constructor<LitElement
|
|
13
|
-
|
|
14
|
+
export declare const PolymorphicTagMixin: <T extends Constructor<LitElement>, AllowedTags extends readonly ("object" | "small" | "link" | "sub" | "sup" | "map" | "input" | "progress" | "select" | "label" | "button" | "title" | "slot" | "style" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "legend" | "li" | "main" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "source" | "span" | "strong" | "summary" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr")[] = readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"]>({ superClass, allowedTags, fallbackTag, }: {
|
|
15
|
+
superClass: T;
|
|
16
|
+
allowedTags?: AllowedTags | undefined;
|
|
17
|
+
fallbackTag?: "object" | "small" | "link" | "sub" | "sup" | "map" | "input" | "progress" | "select" | "label" | "button" | "title" | "slot" | "style" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "ins" | "kbd" | "legend" | "li" | "main" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "source" | "span" | "strong" | "summary" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | undefined;
|
|
18
|
+
}) => Constructor<{
|
|
19
|
+
as: AllowedTags[number];
|
|
20
|
+
readonly tag: StaticValue;
|
|
21
|
+
}> & T;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
/**
|
|
3
|
-
* Based on the `HTMLElementTagNameMap`, from lib.dom.d.ts
|
|
4
|
-
*/
|
|
5
|
-
export declare const HTML_TAGS: readonly ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "menu", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"];
|
|
1
|
+
import type { HTML_TAGS } from './polymorphic-tag.constants';
|
|
6
2
|
export type HTMLTag = (typeof HTML_TAGS)[number];
|
|
7
3
|
export type Constructor<T = {}> = new (...args: any[]) => T;
|
|
8
|
-
export declare class PolymorphicTagInterface {
|
|
9
|
-
as: HTMLTag;
|
|
10
|
-
readonly tag: StaticValue;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=polymorphic-tag.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WithIdElementMixin } from './with-id.mixin';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LitElement } from 'lit';
|
|
2
|
+
import type { Constructor } from '../../utils/types';
|
|
3
|
+
/**
|
|
4
|
+
* Sets the element id with a random value, in case it is not already set.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WithIdElementMixin: <T extends Constructor<LitElement>>(superClass: T, prefix?: string) => T;
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import type { Token } from '@loadsmart/miranda-tokens';
|
|
2
2
|
export declare function toDesignToken(token: Token): string;
|
|
3
3
|
export declare function getHexColor(token: Token): string;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Convert the provided value from `rem` to `px`.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```js
|
|
9
|
+
* // Considering 1rem = 16px
|
|
10
|
+
* toPx('0.625rem'); // returns '10px'
|
|
11
|
+
* toPx('1rem'); // returns '16px'
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param value - value, in rem, to convert.
|
|
15
|
+
* @param base - value, in pixels, to be considered for `1rem`.
|
|
16
|
+
* @returns value converted to `px`.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export declare function toPx(value: number | string, base?: number): string;
|
package/dist/styles/index.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export { default as disabled } from './disableable';
|
|
9
|
-
export declare const on: {
|
|
10
|
-
active: typeof active;
|
|
11
|
-
focus: typeof focus;
|
|
12
|
-
hover: typeof hover;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './margin';
|
|
2
|
+
export * from './media';
|
|
3
|
+
export * from './on';
|
|
4
|
+
export * from './padding';
|
|
5
|
+
export * from './skeleton';
|
|
6
|
+
export * from './transition';
|
|
7
|
+
export * from './typography';
|
package/dist/styles/margin.d.ts
CHANGED
|
@@ -34,6 +34,4 @@ export declare function my(margin: MarginValue): CSSResult;
|
|
|
34
34
|
* Apply right/left/top/bottom margins.
|
|
35
35
|
* @param {MarginValue} margin
|
|
36
36
|
*/
|
|
37
|
-
declare function m(margin: MarginValue): CSSResult;
|
|
38
|
-
export default m;
|
|
39
|
-
//# sourceMappingURL=margin.d.ts.map
|
|
37
|
+
export declare function m(margin: MarginValue): CSSResult;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CSSResult } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Convert a screen media query config to its CSS equivalent.
|
|
4
|
+
*
|
|
5
|
+
* Receives the style content to be applied inside this media query setup.
|
|
6
|
+
* Notice that we consume the raw token value for the media query because variables do not work in media or container queries.
|
|
7
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties MDN, Using CSS Custom Properties}
|
|
8
|
+
*/
|
|
9
|
+
export declare function mediaDesktop(content: CSSResult): CSSResult;
|
|
10
|
+
/**
|
|
11
|
+
* Convert a screen media query config to its CSS equivalent.
|
|
12
|
+
*
|
|
13
|
+
* Receives the style content to be applied inside this media query setup.
|
|
14
|
+
* Notice that we consume the raw token value for the media query because variables do not work in media or container queries.
|
|
15
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties MDN, Using CSS Custom Properties}
|
|
16
|
+
*/
|
|
17
|
+
export declare function mediaTablet(content: CSSResult): CSSResult;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { CSSResult } from 'lit';
|
|
2
|
+
declare const pseudoClassMap: {
|
|
3
|
+
active: string[];
|
|
4
|
+
disabled: string[];
|
|
5
|
+
focus: string[];
|
|
6
|
+
hover: string[];
|
|
7
|
+
visited: string[];
|
|
8
|
+
};
|
|
9
|
+
type PosPseudoClass = keyof typeof pseudoClassMap;
|
|
10
|
+
type AugumentedCSSResult = CSSResult & {
|
|
11
|
+
not: AugumentedCSSResult;
|
|
12
|
+
} & {
|
|
13
|
+
[key in PosPseudoClass]: AugumentedCSSResult;
|
|
14
|
+
};
|
|
15
|
+
type AdjacentSiblingCombinator = '+';
|
|
16
|
+
type ChildCombinator = '>';
|
|
17
|
+
type ColumnCombinator = '||';
|
|
18
|
+
type DescendantCombinator = ' ';
|
|
19
|
+
type GeneralSiblingCombinator = '~';
|
|
20
|
+
type NamespaceCombinator = '|';
|
|
21
|
+
type Combinator = AdjacentSiblingCombinator | ChildCombinator | ColumnCombinator | DescendantCombinator | GeneralSiblingCombinator | NamespaceCombinator;
|
|
22
|
+
/**
|
|
23
|
+
* # on
|
|
24
|
+
*
|
|
25
|
+
* Style utility to compose pseudo-classes.
|
|
26
|
+
*
|
|
27
|
+
* ## List of supported pseudo-classes
|
|
28
|
+
* - active
|
|
29
|
+
* - disabled
|
|
30
|
+
* - focus
|
|
31
|
+
* - hover
|
|
32
|
+
* - visited
|
|
33
|
+
*
|
|
34
|
+
* ## Usage
|
|
35
|
+
* You can compose multiple pseudo-classes by chaining them. You can also negate
|
|
36
|
+
* some pseudo-class calling `.not` before it. The order that they are chained
|
|
37
|
+
* will be respected.
|
|
38
|
+
*
|
|
39
|
+
* ```js
|
|
40
|
+
* css`
|
|
41
|
+
* ${on('.button').not.disabled.not.active.focus} {
|
|
42
|
+
* color: tomato;
|
|
43
|
+
* }
|
|
44
|
+
* `;
|
|
45
|
+
* ```
|
|
46
|
+
* Will result in:
|
|
47
|
+
* ```css
|
|
48
|
+
* .button:not(.is-disabled, :disabled):not(:active):is(.is-focused, :focus, :focus-visible, :focus-within) {
|
|
49
|
+
* color: tomato;
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param selectors A single selector or a list of selectors that will have the
|
|
54
|
+
* pseudo-classes concatenated to it.
|
|
55
|
+
* @param subSelectors A single selector or a list of selectors that will be
|
|
56
|
+
* combined with the resulting selectors.
|
|
57
|
+
* @param combinator Will be used to combine the resulting selectors with the
|
|
58
|
+
* subSelectors. The default value is the [Descendant Combinator (`' '`)](https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator).
|
|
59
|
+
* If `null` is provided, no combinator will be used, i.e., they will be joined
|
|
60
|
+
* without any character between them.
|
|
61
|
+
*/
|
|
62
|
+
export declare function on(selectors: string | Array<string>, subSelectors?: string | Array<string>, combinator?: Combinator | null): AugumentedCSSResult;
|
|
63
|
+
export {};
|
package/dist/styles/padding.d.ts
CHANGED
|
@@ -34,6 +34,4 @@ export declare function py(padding: PaddingValue): CSSResult;
|
|
|
34
34
|
* Apply right/left/top/bottom paddings.
|
|
35
35
|
* @param {string | number} padding
|
|
36
36
|
*/
|
|
37
|
-
declare function p(padding: PaddingValue): CSSResult;
|
|
38
|
-
export default p;
|
|
39
|
-
//# sourceMappingURL=padding.d.ts.map
|
|
37
|
+
export declare function p(padding: PaddingValue): CSSResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function skeletonStyles(): import("lit").CSSResult;
|
|
2
1
|
export declare function skeleton(): import("lit").CSSResult;
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
export declare namespace skeleton {
|
|
3
|
+
var styles: () => import("lit").CSSResult;
|
|
4
|
+
}
|
|
@@ -12,6 +12,4 @@ export type TransitionConfig = {
|
|
|
12
12
|
* Convert a transition config to its CSS equivalent.
|
|
13
13
|
* @param {TransitionConfig | TransitionConfig[]} configs
|
|
14
14
|
*/
|
|
15
|
-
declare function transition(configs: TransitionConfig | TransitionConfig[]): CSSResult;
|
|
16
|
-
export default transition;
|
|
17
|
-
//# sourceMappingURL=transition.d.ts.map
|
|
15
|
+
export declare function transition(configs: TransitionConfig | TransitionConfig[]): CSSResult;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
|
-
export
|
|
2
|
+
export declare const typographyVariants: readonly ["body-lg-bold", "body-lg", "body-md-bold-underline", "body-md-bold", "body-md-underline", "body-md", "body-sm-bold-underline", "body-sm-bold", "body-sm-underline", "body-sm", "button-lg", "button-md", "button-sm", "chips-md", "chips-sm", "heading-lg-bold", "heading-lg", "heading-md-bold", "heading-md", "heading-sm-bold", "heading-sm", "hero-lg-bold", "hero-lg", "hero-md-bold", "hero-md", "hero-sm-bold", "hero-sm", "number-md", "number-sm", "table-header-md", "table-header-sm"];
|
|
3
|
+
export type TypographyVariant = (typeof typographyVariants)[number];
|
|
3
4
|
/**
|
|
4
5
|
* Apply set of tokens for a given typography `variant`.
|
|
5
6
|
* @param {TypographyVariant} [variant]
|
|
6
7
|
* @returns {CSSResult}
|
|
7
8
|
*/
|
|
8
|
-
declare function typography(variant?: TypographyVariant): CSSResult;
|
|
9
|
-
export default typography;
|
|
10
|
-
//# sourceMappingURL=typography.d.ts.map
|
|
9
|
+
export declare function typography(variant?: TypographyVariant): CSSResult;
|
package/dist/tokens.d.ts
ADDED
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
var themes$1 = {};
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Auto-generated file
|
|
5
|
+
* Do not edit directly
|
|
6
|
+
*/
|
|
7
|
+
var LoadsmartTheme = {
|
|
8
|
+
"brand-color-brand": "20, 214, 77",
|
|
9
|
+
"brand-color-brand-accent-1": "0, 215, 215",
|
|
10
|
+
"brand-color-brand-accent-2": "132, 241, 30",
|
|
11
|
+
"border-radius-none": "0px",
|
|
12
|
+
"border-radius-s": "4px",
|
|
13
|
+
"border-radius-m": "8px",
|
|
14
|
+
"border-radius-l": "16px",
|
|
15
|
+
"border-radius-circle": "50%",
|
|
16
|
+
"border-none": 0,
|
|
17
|
+
"border-thin": "1px",
|
|
18
|
+
"border-medium": "2px",
|
|
19
|
+
"border-thick": "4px",
|
|
20
|
+
"color-background-primary": "252, 252, 255",
|
|
21
|
+
"color-background-secondary": "248, 249, 251",
|
|
22
|
+
"color-background-tertiary": "230, 237, 242",
|
|
23
|
+
"color-background-highlight": "202, 219, 221",
|
|
24
|
+
"color-background-inverted": "32, 41, 49",
|
|
25
|
+
"color-background-secondary-inverted": "61, 74, 85",
|
|
26
|
+
"color-border-input": "193, 206, 217",
|
|
27
|
+
"color-border": "230, 237, 242",
|
|
28
|
+
"color-divider": "230, 237, 242",
|
|
29
|
+
"color-brand": "20, 214, 77",
|
|
30
|
+
"color-brand-accent-1": "0, 215, 215",
|
|
31
|
+
"color-brand-accent-2": "132, 241, 30",
|
|
32
|
+
"color-primary-20": "202, 219, 221",
|
|
33
|
+
"color-primary-60": "0, 84, 84",
|
|
34
|
+
"color-primary-100": "0, 51, 51",
|
|
35
|
+
"color-accent-20": "229, 245, 255",
|
|
36
|
+
"color-accent-60": "0, 98, 159",
|
|
37
|
+
"color-accent-100": "15, 66, 97",
|
|
38
|
+
"color-neutral-0": "252, 252, 255",
|
|
39
|
+
"color-neutral-10": "248, 249, 251",
|
|
40
|
+
"color-neutral-20": "230, 237, 242",
|
|
41
|
+
"color-neutral-40": "193, 206, 217",
|
|
42
|
+
"color-neutral-60": "94, 118, 138",
|
|
43
|
+
"color-neutral-80": "92, 106, 118",
|
|
44
|
+
"color-neutral-90": "61, 74, 85",
|
|
45
|
+
"color-neutral-100": "32, 41, 49",
|
|
46
|
+
"color-success-20": "227, 247, 239",
|
|
47
|
+
"color-success-60": "3, 124, 94",
|
|
48
|
+
"color-success-100": "0, 94, 71",
|
|
49
|
+
"color-danger-20": "255, 233, 230",
|
|
50
|
+
"color-danger-60": "186, 27, 27",
|
|
51
|
+
"color-danger-100": "104, 0, 3",
|
|
52
|
+
"color-warning-20": "255, 243, 214",
|
|
53
|
+
"color-warning-60": "248, 182, 14",
|
|
54
|
+
"color-warning-100": "102, 63, 25",
|
|
55
|
+
"color-text-primary": "32, 41, 49",
|
|
56
|
+
"color-text-secondary": "61, 74, 85",
|
|
57
|
+
"color-text-tertiary": "92, 106, 118",
|
|
58
|
+
"color-text-placeholder": "94, 118, 138",
|
|
59
|
+
"color-text-disabled": "193, 206, 217",
|
|
60
|
+
"color-text-inverted": "252, 252, 255",
|
|
61
|
+
"color-text-secondary-inverted": "193, 206, 217",
|
|
62
|
+
"color-text-error": "186, 27, 27",
|
|
63
|
+
"color-text-highlight": "0, 98, 159",
|
|
64
|
+
"color-text-link": "0, 84, 84",
|
|
65
|
+
"font-family-default": "'Manrope', sans-serif",
|
|
66
|
+
"font-family-title": "'Plus Jakarta Sans', 'Manrope', sans-serif",
|
|
67
|
+
"font-size-1": "0.625rem",
|
|
68
|
+
"font-size-2": "0.75rem",
|
|
69
|
+
"font-size-3": "0.875rem",
|
|
70
|
+
"font-size-4": "1rem",
|
|
71
|
+
"font-size-5": "1.25rem",
|
|
72
|
+
"font-size-6": "1.625rem",
|
|
73
|
+
"font-size-7": "2.375rem",
|
|
74
|
+
"font-size-8": "3rem",
|
|
75
|
+
"font-size-9": "3.625rem",
|
|
76
|
+
"font-weight-regular": 500,
|
|
77
|
+
"font-weight-medium": 600,
|
|
78
|
+
"font-weight-bold": 700,
|
|
79
|
+
"line-height-1": "100%",
|
|
80
|
+
"line-height-2": "125%",
|
|
81
|
+
"line-height-3": "130%",
|
|
82
|
+
"line-height-4": "140%",
|
|
83
|
+
"line-height-5": "150%",
|
|
84
|
+
"line-height-6": "180%",
|
|
85
|
+
"media-screen-desktop": "1025px",
|
|
86
|
+
"media-screen-tablet": "481px",
|
|
87
|
+
"opacity-0": "0%",
|
|
88
|
+
"opacity-20": "20%",
|
|
89
|
+
"opacity-40": "40%",
|
|
90
|
+
"opacity-60": "60%",
|
|
91
|
+
"opacity-100": "100%",
|
|
92
|
+
"elevation-1": "0px 0px 2px rgba(94, 118, 138, 0.1), 0px 1px 6px 2px rgba(61, 74, 85, 0.15)",
|
|
93
|
+
"elevation-2": "0px 1px 3px rgba(94, 118, 138, 0.2), 0px 4px 8px 3px rgba(61, 74, 85, 0.15)",
|
|
94
|
+
"elevation-3": "0px 0px 4px rgba(94, 118, 138, 0.2), 0px 6px 12px 6px rgba(61, 74, 85, 0.15)",
|
|
95
|
+
"elevation-4": "0px 5px 6px 4px rgba(94, 118, 138, 0.2), 0px 8px 10px rgba(61, 74, 85, 0.1)",
|
|
96
|
+
"glow-primary": "0.0px 0.0px 4.0px 0px rgb(3, 124, 94, .5)",
|
|
97
|
+
"glow-warning": "0.0px 0.0px 4.0px 0px rgba(255, 206, 79, 1.0)",
|
|
98
|
+
"spacing-1": "4px",
|
|
99
|
+
"spacing-2": "8px",
|
|
100
|
+
"spacing-3": "12px",
|
|
101
|
+
"spacing-4": "16px",
|
|
102
|
+
"spacing-5": "20px",
|
|
103
|
+
"spacing-6": "24px",
|
|
104
|
+
"spacing-8": "32px",
|
|
105
|
+
"spacing-10": "40px",
|
|
106
|
+
"spacing-12": "48px",
|
|
107
|
+
"spacing-14": "56px",
|
|
108
|
+
"spacing-16": "64px",
|
|
109
|
+
"spacing-20": "80px",
|
|
110
|
+
"spacing-30": "120px",
|
|
111
|
+
"spacing-0-5": "2px",
|
|
112
|
+
"global-height-small": "1.75rem",
|
|
113
|
+
"global-height-default": "2.5rem",
|
|
114
|
+
"global-height-large": "3rem",
|
|
115
|
+
"platform-font-default": "'Manrope', sans-serif",
|
|
116
|
+
"platform-font-title": "'Plus Jakarta Sans', 'Manrope', sans-serif"
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var LoadsmartTheme_1 = themes$1.LoadsmartTheme = LoadsmartTheme;
|
|
120
|
+
|
|
121
|
+
var themes = themes$1;
|
|
122
|
+
|
|
123
|
+
/******************************************************************************
|
|
124
|
+
Copyright (c) Microsoft Corporation.
|
|
125
|
+
|
|
126
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
127
|
+
purpose with or without fee is hereby granted.
|
|
128
|
+
|
|
129
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
130
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
131
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
132
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
133
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
134
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
135
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
136
|
+
***************************************************************************** */
|
|
137
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
function __spreadArray(to, from, pack) {
|
|
141
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
142
|
+
if (ar || !(i in from)) {
|
|
143
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
144
|
+
ar[i] = from[i];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
151
|
+
var e = new Error(message);
|
|
152
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Sort an array of strings in a special way that considers numeric parts within the strings.
|
|
157
|
+
*
|
|
158
|
+
* @param values - An array of strings to be sorted.
|
|
159
|
+
* @returns - A new array containing the sorted strings.
|
|
160
|
+
*/
|
|
161
|
+
function sortNumericValues(values) {
|
|
162
|
+
// Create a copy of the input array to avoid modifying the original array.
|
|
163
|
+
return __spreadArray([], values, true).sort(function (a, b) {
|
|
164
|
+
return a.localeCompare(b, undefined, {
|
|
165
|
+
numeric: true,
|
|
166
|
+
sensitivity: 'base',
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function extractTokens(tokens, prefix) {
|
|
172
|
+
return tokens.filter(function (token) {
|
|
173
|
+
return token.startsWith(prefix);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function excludeTokens(tokens, prefix) {
|
|
177
|
+
return tokens.filter(function (token) {
|
|
178
|
+
return !token.startsWith(prefix);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
var ALL_TOKENS = Object.keys(themes.LoadsmartTheme);
|
|
182
|
+
// We strip brand and platform-specific tokens as they should not be used directly.
|
|
183
|
+
var TOKENS = sortNumericValues(excludeTokens(excludeTokens(ALL_TOKENS, 'brand-'), 'platform-'));
|
|
184
|
+
var BACKGROUND_COLOR_TOKENS = extractTokens(TOKENS, 'color-background-');
|
|
185
|
+
var BORDER_RADIUS_TOKENS = extractTokens(TOKENS, 'border-radius-');
|
|
186
|
+
var BORDER_TOKENS = extractTokens(TOKENS, 'border-');
|
|
187
|
+
var BORDER_WIDTH_TOKENS = [
|
|
188
|
+
'border-none',
|
|
189
|
+
'border-thin',
|
|
190
|
+
'border-medium',
|
|
191
|
+
'border-thick',
|
|
192
|
+
];
|
|
193
|
+
var COLOR_TOKENS = extractTokens(TOKENS, 'color-');
|
|
194
|
+
var ELEVATION_TOKENS = extractTokens(TOKENS, 'elevation-');
|
|
195
|
+
var FONT_FAMILY_TOKENS = extractTokens(TOKENS, 'font-family-');
|
|
196
|
+
var FONT_SIZE_TOKENS = extractTokens(TOKENS, 'font-size-');
|
|
197
|
+
var FONT_WEIGHT_TOKENS = extractTokens(TOKENS, 'font-weight-');
|
|
198
|
+
var GLOBAL_TOKENS = extractTokens(TOKENS, 'global-');
|
|
199
|
+
var GLOW_TOKENS = extractTokens(TOKENS, 'glow-');
|
|
200
|
+
var LINE_HEIGHT_TOKENS = extractTokens(TOKENS, 'line-height-');
|
|
201
|
+
var OPACITY_TOKENS = extractTokens(TOKENS, 'opacity-');
|
|
202
|
+
var SPACING_TOKENS = extractTokens(TOKENS, 'spacing-');
|
|
203
|
+
var MEDIA_QUERY_TOKENS = extractTokens(TOKENS, 'media-');
|
|
204
|
+
var SPACING_TOKENS_WITH_NONE = __spreadArray(['none'], SPACING_TOKENS, true);
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Get token value.
|
|
208
|
+
*
|
|
209
|
+
* @example
|
|
210
|
+
* ```js
|
|
211
|
+
* getToken('color-primary')
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @param token - Token whose value should be retrieved.
|
|
215
|
+
* @returns {TokenValue | undefined} Token value or `undefined` otherwise.
|
|
216
|
+
*/
|
|
217
|
+
function getToken(token) {
|
|
218
|
+
return themes.LoadsmartTheme[token];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
function toCSSVariable(token) {
|
|
222
|
+
var value = getToken(token);
|
|
223
|
+
if (value == null) {
|
|
224
|
+
return value;
|
|
225
|
+
}
|
|
226
|
+
return "--m-".concat(token);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function toCSSValue(token, alpha) {
|
|
230
|
+
var value = getToken(token);
|
|
231
|
+
if (value == null) {
|
|
232
|
+
return '';
|
|
233
|
+
}
|
|
234
|
+
if (token.startsWith('color-')) {
|
|
235
|
+
return "rgba(var(".concat(toCSSVariable(token), ", ").concat(value, "), ").concat(alpha !== null && alpha !== void 0 ? alpha : 1, ")");
|
|
236
|
+
}
|
|
237
|
+
return "var(".concat(toCSSVariable(token), ", ").concat(value, ")");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Get css value for spacing token validating 'none'.
|
|
242
|
+
*
|
|
243
|
+
* @param spacing - Spacing token or 'none'
|
|
244
|
+
* @param defaultSpacing - Default spacing token if the provided spacing is not valid
|
|
245
|
+
* @returns The css value for the spacing token
|
|
246
|
+
*/
|
|
247
|
+
function toSpacingCSSValue(spacing, defaultSpacing) {
|
|
248
|
+
var _a;
|
|
249
|
+
var defaultValue = defaultSpacing ? toCSSValue(defaultSpacing) : '';
|
|
250
|
+
if (!spacing) {
|
|
251
|
+
return defaultValue;
|
|
252
|
+
}
|
|
253
|
+
return (_a = (spacing === 'none' ? '0' : toCSSValue(spacing))) !== null && _a !== void 0 ? _a : defaultValue;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Get the hex value for a color token.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* ```js
|
|
261
|
+
* getHexColor('color-primary')
|
|
262
|
+
* ```
|
|
263
|
+
*
|
|
264
|
+
* @param token - Color token whose value should be retrieved.
|
|
265
|
+
* @returns {string | undefined} Hexadecimal color value or undefined
|
|
266
|
+
*/
|
|
267
|
+
function getHexColor(token) {
|
|
268
|
+
var tokenValue = String(getToken(token) || '');
|
|
269
|
+
if (!tokenValue)
|
|
270
|
+
return undefined;
|
|
271
|
+
var colors = tokenValue.split(', ').map(Number);
|
|
272
|
+
if (colors.length !== 3)
|
|
273
|
+
throw new Error('color token must be in the `R, G, B` format');
|
|
274
|
+
return colors.reduce(function (hexColor, current) {
|
|
275
|
+
var hexValue = current.toString(16).padStart(2, '0');
|
|
276
|
+
return hexColor.concat(hexValue);
|
|
277
|
+
}, '#');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
var BACKGROUND_COLOR_TOKENS_1 = BACKGROUND_COLOR_TOKENS;
|
|
281
|
+
var BORDER_RADIUS_TOKENS_1 = BORDER_RADIUS_TOKENS;
|
|
282
|
+
var BORDER_TOKENS_1 = BORDER_TOKENS;
|
|
283
|
+
var BORDER_WIDTH_TOKENS_1 = BORDER_WIDTH_TOKENS;
|
|
284
|
+
var COLOR_TOKENS_1 = COLOR_TOKENS;
|
|
285
|
+
var ELEVATION_TOKENS_1 = ELEVATION_TOKENS;
|
|
286
|
+
var FONT_FAMILY_TOKENS_1 = FONT_FAMILY_TOKENS;
|
|
287
|
+
var FONT_SIZE_TOKENS_1 = FONT_SIZE_TOKENS;
|
|
288
|
+
var FONT_WEIGHT_TOKENS_1 = FONT_WEIGHT_TOKENS;
|
|
289
|
+
var GLOBAL_TOKENS_1 = GLOBAL_TOKENS;
|
|
290
|
+
var GLOW_TOKENS_1 = GLOW_TOKENS;
|
|
291
|
+
var LINE_HEIGHT_TOKENS_1 = LINE_HEIGHT_TOKENS;
|
|
292
|
+
var MEDIA_QUERY_TOKENS_1 = MEDIA_QUERY_TOKENS;
|
|
293
|
+
var OPACITY_TOKENS_1 = OPACITY_TOKENS;
|
|
294
|
+
var SPACING_TOKENS_1 = SPACING_TOKENS;
|
|
295
|
+
var SPACING_TOKENS_WITH_NONE_1 = SPACING_TOKENS_WITH_NONE;
|
|
296
|
+
var TOKENS_1 = TOKENS;
|
|
297
|
+
var getHexColor_1 = getHexColor;
|
|
298
|
+
var getToken_1 = getToken;
|
|
299
|
+
var toCSSValue_1 = toCSSValue;
|
|
300
|
+
var toCSSVariable_1 = toCSSVariable;
|
|
301
|
+
var toSpacingCSSValue_1 = toSpacingCSSValue;
|
|
302
|
+
|
|
303
|
+
export { BACKGROUND_COLOR_TOKENS_1 as BACKGROUND_COLOR_TOKENS, BORDER_RADIUS_TOKENS_1 as BORDER_RADIUS_TOKENS, BORDER_TOKENS_1 as BORDER_TOKENS, BORDER_WIDTH_TOKENS_1 as BORDER_WIDTH_TOKENS, COLOR_TOKENS_1 as COLOR_TOKENS, ELEVATION_TOKENS_1 as ELEVATION_TOKENS, FONT_FAMILY_TOKENS_1 as FONT_FAMILY_TOKENS, FONT_SIZE_TOKENS_1 as FONT_SIZE_TOKENS, FONT_WEIGHT_TOKENS_1 as FONT_WEIGHT_TOKENS, GLOBAL_TOKENS_1 as GLOBAL_TOKENS, GLOW_TOKENS_1 as GLOW_TOKENS, LINE_HEIGHT_TOKENS_1 as LINE_HEIGHT_TOKENS, LoadsmartTheme_1 as LoadsmartTheme, MEDIA_QUERY_TOKENS_1 as MEDIA_QUERY_TOKENS, OPACITY_TOKENS_1 as OPACITY_TOKENS, SPACING_TOKENS_1 as SPACING_TOKENS, SPACING_TOKENS_WITH_NONE_1 as SPACING_TOKENS_WITH_NONE, TOKENS_1 as TOKENS, getHexColor_1 as getHexColor, getToken_1 as getToken, toCSSValue_1 as toCSSValue, toCSSVariable_1 as toCSSVariable, toSpacingCSSValue_1 as toSpacingCSSValue };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns chunks of an array.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* Consider the following sequence:
|
|
6
|
+
* chunk([1, 2, 3, 4], 2);
|
|
7
|
+
* The result would be [[1, 2], [3, 4]].
|
|
8
|
+
*
|
|
9
|
+
* @template T
|
|
10
|
+
* @param {T[]} array
|
|
11
|
+
* @param {number} chunkSize
|
|
12
|
+
* @returns {T[][]}
|
|
13
|
+
*/
|
|
14
|
+
declare const chunk: <T>(array: T[], chunkSize: number) => T[][];
|
|
15
|
+
export default chunk;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './chunk';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type ObjectConditionDefinition = {
|
|
2
|
+
[key: string]: boolean | undefined;
|
|
3
|
+
};
|
|
4
|
+
export type ConditionDefinition = string | ObjectConditionDefinition;
|
|
5
|
+
/**
|
|
6
|
+
* Concatenate style properties or class names conditionally.
|
|
7
|
+
* Conditions can be functions that consume components props,
|
|
8
|
+
* objects, strings, or numbers (that will be coerced to strings).
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* // returns 'some-class class-a'
|
|
12
|
+
* conditional('some-class', {
|
|
13
|
+
* 'class-a': true,
|
|
14
|
+
* 'class-b': false,
|
|
15
|
+
* })
|
|
16
|
+
* ```
|
|
17
|
+
* @param conditions
|
|
18
|
+
* @returns {string}
|
|
19
|
+
*/
|
|
20
|
+
declare function conditional(...conditions: ConditionDefinition[]): string;
|
|
21
|
+
export default conditional;
|
package/dist/utils/events.d.ts
CHANGED
|
@@ -22,4 +22,8 @@
|
|
|
22
22
|
* @return Whether or not the event was dispatched (if cancelable).
|
|
23
23
|
*/
|
|
24
24
|
export declare function redispatchEvent(element: Element, event: Event): boolean;
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Check if `event` happened on the given `element`.
|
|
27
|
+
* @returns `true` if the event happened on the given element, `false` otherwise.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isInsideElement(event: Event, element: HTMLElement): boolean;
|