@infonomic/uikit 5.16.0 → 5.17.0
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.d.ts.map +1 -1
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/accordion.module.css +1 -2
- package/dist/components/animation/fade-in-lift.d.ts.map +1 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.module.css +7 -4
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/badge.module.css +7 -2
- package/dist/components/button/@types/button.d.ts +1 -2
- package/dist/components/button/@types/button.d.ts.map +1 -1
- package/dist/components/button/button-group.d.ts +1 -1
- package/dist/components/button/button-group.d.ts.map +1 -1
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button-group.module.css +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.module.css +52 -18
- package/dist/components/button/control-buttons.d.ts.map +1 -1
- package/dist/components/button/control-buttons.module.css +1 -2
- package/dist/components/button/copy-button.d.ts.map +1 -1
- package/dist/components/button/copy-button.js +1 -1
- package/dist/components/button/copy-button.module.css +7 -2
- package/dist/components/button/icon-button.d.ts.map +1 -1
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.js +3 -3
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.module.css +8 -3
- package/dist/components/chips/chip.d.ts.map +1 -1
- package/dist/components/chips/chip.js +1 -1
- package/dist/components/chips/chip.module.css +34 -12
- package/dist/components/chips/index.js +1 -1
- package/dist/components/container/container.module.css +7 -2
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.module.css +7 -5
- package/dist/components/forms/calendar.d.ts +7 -0
- package/dist/components/forms/calendar.d.ts.map +1 -1
- package/dist/components/forms/calendar.js +1 -1
- package/dist/components/forms/calendar.module.css +19 -15
- package/dist/components/forms/checkbox.d.ts.map +1 -1
- package/dist/components/forms/checkbox.js +1 -1
- package/dist/components/forms/checkbox.module.css +9 -4
- package/dist/components/forms/error-text.d.ts.map +1 -1
- package/dist/components/forms/error-text.module.css +8 -3
- package/dist/components/forms/help-text.d.ts.map +1 -1
- package/dist/components/forms/help-text.module.css +8 -3
- package/dist/components/forms/index.js +2 -2
- package/dist/components/forms/input-adornment.d.ts.map +1 -1
- package/dist/components/forms/input-adornment.module.css +7 -2
- package/dist/components/forms/input.d.ts +1 -1
- package/dist/components/forms/input.d.ts.map +1 -1
- package/dist/components/forms/input.module.css +8 -5
- package/dist/components/forms/label.d.ts.map +1 -1
- package/dist/components/forms/label.module.css +8 -3
- package/dist/components/forms/radio-group.d.ts +1 -1
- package/dist/components/forms/radio-group.d.ts.map +1 -1
- package/dist/components/forms/radio-group.module.css +8 -5
- package/dist/components/forms/select.d.ts +1 -1
- package/dist/components/forms/select.d.ts.map +1 -1
- package/dist/components/forms/select.module.css +7 -2
- package/dist/components/forms/text-area.d.ts.map +1 -1
- package/dist/components/forms/text-area.module.css +11 -5
- package/dist/components/notifications/@types/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.js +1 -1
- package/dist/components/notifications/alert.module.css +7 -2
- package/dist/components/notifications/toast.d.ts +1 -1
- package/dist/components/notifications/toast.d.ts.map +1 -1
- package/dist/components/notifications/toast.js +1 -1
- package/dist/components/notifications/toast.module.css +7 -5
- package/dist/components/overlay/overlay.d.ts.map +1 -1
- package/dist/components/overlay/overlay.module.css +1 -1
- package/dist/components/pager/ellipses.d.ts.map +1 -1
- package/dist/components/pager/first-button.d.ts.map +1 -1
- package/dist/components/pager/icons/index.js +2 -2
- package/dist/components/pager/index.js +2 -2
- package/dist/components/pager/last-button.d.ts.map +1 -1
- package/dist/components/pager/next-button.d.ts.map +1 -1
- package/dist/components/pager/number-button.d.ts.map +1 -1
- package/dist/components/pager/number-button.js +2 -4
- package/dist/components/pager/pagination.d.ts +1 -1
- package/dist/components/pager/pagination.d.ts.map +1 -1
- package/dist/components/pager/pagination.js +1 -1
- package/dist/components/pager/pagination.module.css +8 -6
- package/dist/components/pager/previous-button.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area/scroll-area.module.css +7 -2
- package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -1
- package/dist/components/scroll-to-top/scroll-to-top.js +12 -6
- package/dist/components/scroll-to-top/scroll-to-top.module.css +6 -2
- package/dist/components/section/section.module.css +7 -2
- package/dist/components/shimmer/shimmer.d.ts.map +1 -1
- package/dist/components/shimmer/shimmer.js +0 -1
- package/dist/components/shimmer/shimmer.module.css +9 -10
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.module.css +8 -4
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/components/tabs/tabs.module.css +7 -3
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.module.css +7 -4
- package/dist/icons/activity-icon.d.ts.map +1 -1
- package/dist/icons/calendar-icon.d.ts.map +1 -1
- package/dist/icons/check-icon.d.ts.map +1 -1
- package/dist/icons/chevron-down-icon.d.ts.map +1 -1
- package/dist/icons/chevron-left-double-icon.d.ts.map +1 -1
- package/dist/icons/chevron-left-icon.d.ts.map +1 -1
- package/dist/icons/chevron-right-double-icon.d.ts.map +1 -1
- package/dist/icons/chevron-right-icon.d.ts.map +1 -1
- package/dist/icons/chevrons-up-down.d.ts.map +1 -1
- package/dist/icons/close-icon.d.ts.map +1 -1
- package/dist/icons/copy-icon.d.ts.map +1 -1
- package/dist/icons/danger-icon.d.ts.map +1 -1
- package/dist/icons/dashboard-icon.d.ts.map +1 -1
- package/dist/icons/delete-icon.d.ts.map +1 -1
- package/dist/icons/document-icon.d.ts.map +1 -1
- package/dist/icons/download-icon.d.ts.map +1 -1
- package/dist/icons/edit-icon.d.ts.map +1 -1
- package/dist/icons/ellipsis-icon.d.ts.map +1 -1
- package/dist/icons/email-icon.d.ts.map +1 -1
- package/dist/icons/external-link-icon.d.ts.map +1 -1
- package/dist/icons/github-icon.d.ts.map +1 -1
- package/dist/icons/globe-icon.d.ts.map +1 -1
- package/dist/icons/google-icon.d.ts.map +1 -1
- package/dist/icons/gripper-vertical-icon.d.ts.map +1 -1
- package/dist/icons/history-icon.d.ts.map +1 -1
- package/dist/icons/home-icon.d.ts.map +1 -1
- package/dist/icons/icon-element.d.ts +1 -1
- package/dist/icons/icon-element.d.ts.map +1 -1
- package/dist/icons/icon-element.js +1 -1
- package/dist/icons/icon-sprite.js +10 -5
- package/dist/icons/icons.module.css +1 -2
- package/dist/icons/index.d.ts +27 -27
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +27 -27
- package/dist/icons/info-icon.d.ts.map +1 -1
- package/dist/icons/infonomic-icon.d.ts.map +1 -1
- package/dist/icons/light-icon.d.ts.map +1 -1
- package/dist/icons/location-pin-icon.d.ts.map +1 -1
- package/dist/icons/moon-icon.d.ts.map +1 -1
- package/dist/icons/plus-icon.d.ts.map +1 -1
- package/dist/icons/primary-icon.d.ts.map +1 -1
- package/dist/icons/refresh-icon.d.ts.map +1 -1
- package/dist/icons/return-icon.d.ts.map +1 -1
- package/dist/icons/roles-icon.d.ts.map +1 -1
- package/dist/icons/search-icon.d.ts.map +1 -1
- package/dist/icons/search-menu-icon.d.ts.map +1 -1
- package/dist/icons/settings-gear-icon.d.ts.map +1 -1
- package/dist/icons/settings-sliders-icon.d.ts.map +1 -1
- package/dist/icons/sign-out-icon.d.ts.map +1 -1
- package/dist/icons/stopwatch-icon.d.ts.map +1 -1
- package/dist/icons/success-icon.d.ts.map +1 -1
- package/dist/icons/user-icon.d.ts.map +1 -1
- package/dist/icons/users-icon.d.ts.map +1 -1
- package/dist/icons/wallet-icon.d.ts.map +1 -1
- package/dist/icons/warning-icon.d.ts.map +1 -1
- package/dist/icons/x-icon.d.ts.map +1 -1
- package/dist/react.d.ts +3 -3
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +3 -3
- package/dist/styles/styles.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/utils/getPortalRoot.js +1 -1
- package/dist/utils/isTouchDevice.js +1 -1
- package/dist/utils/objectsToArray.js +3 -9
- package/dist/widgets/datepicker/datepicker.d.ts +6 -0
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.js +3 -3
- package/dist/widgets/datepicker/datepicker.module.css +3 -4
- package/dist/widgets/drawer/drawer-container.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-content.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-context.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-header.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-top-actions.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-wrapper.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer-wrapper.js +1 -1
- package/dist/widgets/drawer/drawer.d.ts +4 -5
- package/dist/widgets/drawer/drawer.d.ts.map +1 -1
- package/dist/widgets/drawer/drawer.js +3 -3
- package/dist/widgets/drawer/drawer.module.css +2 -3
- package/dist/widgets/drawer/motionDomAnimation.d.ts.map +1 -1
- package/dist/widgets/drawer/motionDomMax.d.ts.map +1 -1
- package/dist/widgets/modal/modal-actions.d.ts.map +1 -1
- package/dist/widgets/modal/modal-container.d.ts.map +1 -1
- package/dist/widgets/modal/modal-content.d.ts.map +1 -1
- package/dist/widgets/modal/modal-header.d.ts.map +1 -1
- package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -1
- package/dist/widgets/modal/modal.d.ts.map +1 -1
- package/dist/widgets/modal/modal.js +1 -1
- package/dist/widgets/modal/modal.module.css +1 -1
- package/dist/widgets/modal/motionDomAnimation.d.ts.map +1 -1
- package/dist/widgets/modal/motionDomMax.d.ts.map +1 -1
- package/dist/widgets/search/search.d.ts.map +1 -1
- package/dist/widgets/timeline/timeline.module.css +7 -2
- package/package.json +23 -19
- package/src/astro.js +2 -3
- package/src/components/accordion/accordion.module.css +1 -2
- package/src/components/accordion/accordion.stories.tsx +1 -2
- package/src/components/accordion/accordion.tsx +2 -2
- package/src/components/animation/fade-in-lift.tsx +1 -0
- package/src/components/avatar/avatar.module.css +7 -4
- package/src/components/avatar/avatar.stories.tsx +2 -1
- package/src/components/avatar/avatar.tsx +2 -1
- package/src/components/badge/badge.module.css +7 -2
- package/src/components/badge/badge.stories.tsx +1 -2
- package/src/components/badge/badge.tsx +11 -6
- package/src/components/button/@types/button.ts +1 -3
- package/src/components/button/button-group.module.css +1 -1
- package/src/components/button/button-group.tsx +3 -3
- package/src/components/button/button-intents.stories.tsx +29 -5
- package/src/components/button/button-overrides.stories.tsx +25 -8
- package/src/components/button/button-test.stories.tsx +25 -7
- package/src/components/button/button-variants.stories.tsx +28 -30
- package/src/components/button/button.module.css +52 -18
- package/src/components/button/button.tsx +5 -4
- package/src/components/button/control-buttons.module.css +1 -2
- package/src/components/button/control-buttons.stories.tsx +1 -1
- package/src/components/button/control-buttons.tsx +5 -2
- package/src/components/button/copy-button.module.css +7 -2
- package/src/components/button/copy-button.tsx +3 -3
- package/src/components/button/icon-button.stories.tsx +82 -86
- package/src/components/button/icon-button.tsx +4 -3
- package/src/components/button/index.ts +3 -3
- package/src/components/card/card.module.css +8 -3
- package/src/components/card/card.stories.tsx +0 -1
- package/src/components/card/card.tsx +2 -1
- package/src/components/chips/chip.module.css +34 -12
- package/src/components/chips/chip.stories.tsx +21 -9
- package/src/components/chips/chip.tsx +162 -154
- package/src/components/chips/index.ts +1 -1
- package/src/components/container/container.module.css +7 -2
- package/src/components/dropdown/dropdown.module.css +7 -5
- package/src/components/dropdown/dropdown.tsx +2 -1
- package/src/components/forms/calendar.module.css +19 -15
- package/src/components/forms/calendar.stories.tsx +8 -6
- package/src/components/forms/calendar.tsx +4 -2
- package/src/components/forms/checkbox.module.css +9 -4
- package/src/components/forms/checkbox.stories.tsx +21 -25
- package/src/components/forms/checkbox.tsx +6 -5
- package/src/components/forms/error-text.module.css +8 -3
- package/src/components/forms/error-text.tsx +2 -1
- package/src/components/forms/help-text.module.css +8 -3
- package/src/components/forms/help-text.tsx +2 -1
- package/src/components/forms/index.tsx +2 -2
- package/src/components/forms/input-adornment.module.css +7 -2
- package/src/components/forms/input-adornment.tsx +2 -1
- package/src/components/forms/input.module.css +8 -5
- package/src/components/forms/input.stories.tsx +110 -117
- package/src/components/forms/input.tsx +5 -5
- package/src/components/forms/label.module.css +8 -3
- package/src/components/forms/label.tsx +2 -1
- package/src/components/forms/radio-group.module.css +8 -5
- package/src/components/forms/radio-group.stories.tsx +1 -1
- package/src/components/forms/radio-group.tsx +5 -2
- package/src/components/forms/select.module.css +7 -2
- package/src/components/forms/select.stories.tsx +9 -11
- package/src/components/forms/select.tsx +6 -5
- package/src/components/forms/text-area.module.css +11 -5
- package/src/components/forms/text-area.stories.tsx +25 -30
- package/src/components/forms/text-area.tsx +3 -2
- package/src/components/notifications/@types/alert.ts +0 -3
- package/src/components/notifications/alert.module.css +7 -2
- package/src/components/notifications/alert.stories.tsx +21 -4
- package/src/components/notifications/alert.tsx +4 -4
- package/src/components/notifications/toast.module.css +7 -5
- package/src/components/notifications/toast.stories.tsx +2 -2
- package/src/components/notifications/toast.tsx +5 -3
- package/src/components/overlay/index.stories.tsx +0 -3
- package/src/components/overlay/overlay.module.css +1 -1
- package/src/components/overlay/overlay.tsx +7 -6
- package/src/components/pager/ellipses.tsx +2 -2
- package/src/components/pager/event-pager.tsx +3 -1
- package/src/components/pager/first-button.tsx +4 -3
- package/src/components/pager/icons/index.tsx +2 -2
- package/src/components/pager/index.ts +2 -2
- package/src/components/pager/last-button.tsx +4 -3
- package/src/components/pager/next-button.tsx +4 -3
- package/src/components/pager/number-button.tsx +5 -5
- package/src/components/pager/pagination.module.css +8 -6
- package/src/components/pager/pagination.stories.tsx +3 -3
- package/src/components/pager/pagination.tsx +4 -3
- package/src/components/pager/previous-button.tsx +4 -3
- package/src/components/scroll-area/scroll-area.module.css +7 -2
- package/src/components/scroll-area/scroll-area.tsx +2 -1
- package/src/components/scroll-to-top/scroll-to-top.module.css +6 -2
- package/src/components/scroll-to-top/scroll-to-top.tsx +5 -2
- package/src/components/section/section.module.css +7 -2
- package/src/components/shimmer/shimmer.module.css +9 -10
- package/src/components/shimmer/shimmer.tsx +3 -2
- package/src/components/table/table.module.css +8 -4
- package/src/components/table/table.tsx +2 -1
- package/src/components/tabs/tabs.module.css +7 -3
- package/src/components/tabs/tabs.tsx +2 -2
- package/src/components/tooltip/tooltip.module.css +7 -4
- package/src/components/tooltip/tooltip.stories.tsx +35 -37
- package/src/components/tooltip/tooltip.tsx +2 -1
- package/src/hooks/use-media-query.ts +1 -1
- package/src/icons/activity-icon.tsx +2 -1
- package/src/icons/calendar-icon.tsx +1 -3
- package/src/icons/check-icon.tsx +1 -3
- package/src/icons/chevron-down-icon.tsx +1 -3
- package/src/icons/chevron-left-double-icon.tsx +2 -1
- package/src/icons/chevron-left-icon.tsx +2 -1
- package/src/icons/chevron-right-double-icon.tsx +2 -1
- package/src/icons/chevron-right-icon.tsx +2 -1
- package/src/icons/chevrons-up-down.tsx +2 -1
- package/src/icons/close-icon.tsx +13 -11
- package/src/icons/copy-icon.tsx +1 -3
- package/src/icons/danger-icon.tsx +2 -1
- package/src/icons/dashboard-icon.tsx +1 -3
- package/src/icons/delete-icon.tsx +1 -3
- package/src/icons/document-icon.tsx +1 -3
- package/src/icons/download-icon.tsx +1 -3
- package/src/icons/edit-icon.tsx +1 -3
- package/src/icons/ellipsis-icon.tsx +1 -3
- package/src/icons/email-icon.tsx +1 -3
- package/src/icons/external-link-icon.tsx +1 -3
- package/src/icons/github-icon.tsx +2 -1
- package/src/icons/globe-icon.tsx +1 -3
- package/src/icons/google-icon.tsx +0 -1
- package/src/icons/gripper-vertical-icon.tsx +1 -3
- package/src/icons/history-icon.tsx +2 -1
- package/src/icons/home-icon.tsx +1 -3
- package/src/icons/icon-element.tsx +3 -3
- package/src/icons/icon-sprite.tsx +2 -2
- package/src/icons/icons.module.css +1 -2
- package/src/icons/index.ts +27 -27
- package/src/icons/info-icon.tsx +2 -1
- package/src/icons/infonomic-icon.tsx +0 -1
- package/src/icons/light-icon.tsx +1 -3
- package/src/icons/location-pin-icon.tsx +1 -3
- package/src/icons/moon-icon.tsx +1 -3
- package/src/icons/plus-icon.tsx +1 -3
- package/src/icons/primary-icon.tsx +3 -3
- package/src/icons/refresh-icon.tsx +1 -3
- package/src/icons/return-icon.tsx +1 -3
- package/src/icons/roles-icon.tsx +1 -3
- package/src/icons/search-icon.tsx +1 -3
- package/src/icons/search-menu-icon.tsx +1 -3
- package/src/icons/settings-gear-icon.tsx +1 -3
- package/src/icons/settings-sliders-icon.tsx +1 -3
- package/src/icons/sign-out-icon.tsx +1 -3
- package/src/icons/stopwatch-icon.tsx +1 -3
- package/src/icons/success-icon.tsx +2 -1
- package/src/icons/user-icon.tsx +1 -3
- package/src/icons/users-icon.tsx +1 -3
- package/src/icons/wallet-icon.tsx +1 -3
- package/src/icons/warning-icon.tsx +2 -1
- package/src/icons/x-icon.tsx +1 -3
- package/src/loaders/loaders.stories.tsx +5 -7
- package/src/react.ts +3 -5
- package/src/styles/base/animations.css +1 -3
- package/src/styles/base/base.css +0 -1
- package/src/styles/base/borders.css +1 -1
- package/src/styles/base/breakpoints.css +2 -2
- package/src/styles/base/colors.css +1 -1
- package/src/styles/base/opacity.css +2 -2
- package/src/styles/base/reset.css +9 -7
- package/src/styles/base/shadows.css +1 -1
- package/src/styles/base/size.css +21 -21
- package/src/styles/base/spacing.css +21 -21
- package/src/styles/base/transitions.css +1 -1
- package/src/styles/base/typography.css +1 -2
- package/src/styles/base/z-index.css +1 -1
- package/src/styles/components/components.css +1 -1
- package/src/styles/components/fade-in-lift.css +3 -1
- package/src/styles/components/hamburger.css +20 -7
- package/src/styles/functional/borders.css +1 -1
- package/src/styles/functional/colors.css +37 -17
- package/src/styles/functional/functional.css +1 -1
- package/src/styles/functional/grid-flex.css +1 -1
- package/src/styles/functional/surfaces.css +11 -12
- package/src/styles/functional/typography.css +2 -3
- package/src/styles/local-fonts.css +1 -1
- package/src/styles/styles.css +7 -2
- package/src/styles/theme/autofill.css +15 -15
- package/src/styles/theme/defaults.css +1 -1
- package/src/styles/theme/scrollers.css +1 -1
- package/src/styles/theme/theme.css +3 -3
- package/src/styles/theme/theme.stories.tsx +14 -15
- package/src/styles/typography/article.stories.tsx +22 -23
- package/src/styles/typography/code.stories.tsx +16 -19
- package/src/styles/typography/default.stories.tsx +31 -33
- package/src/styles/typography/fonts.css +10 -7
- package/src/styles/typography/lists.stories.tsx +30 -32
- package/src/styles/typography/prose.css +14 -7
- package/src/styles/typography/quote.stories.tsx +20 -19
- package/src/styles/typography.css +1 -1
- package/src/styles/utils/utility-classes.css +9 -14
- package/src/theme/theme-provider/provider.tsx +2 -2
- package/src/utils/externalLinkProps.ts +1 -1
- package/src/utils/objectsToArray.ts +3 -5
- package/src/utils/polymorphic.ts +1 -1
- package/src/widgets/datepicker/datepicker.module.css +3 -4
- package/src/widgets/datepicker/datepicker.tsx +15 -5
- package/src/widgets/drawer/drawer-container.tsx +1 -0
- package/src/widgets/drawer/drawer-content.tsx +1 -0
- package/src/widgets/drawer/drawer-context.tsx +1 -3
- package/src/widgets/drawer/drawer-header.tsx +1 -0
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -0
- package/src/widgets/drawer/drawer-wrapper.tsx +3 -4
- package/src/widgets/drawer/drawer.module.css +2 -3
- package/src/widgets/drawer/drawer.stories.tsx +38 -41
- package/src/widgets/drawer/drawer.tsx +6 -9
- package/src/widgets/drawer/motionDomAnimation.ts +1 -0
- package/src/widgets/drawer/motionDomMax.ts +1 -0
- package/src/widgets/modal/modal-actions.tsx +1 -0
- package/src/widgets/modal/modal-container.tsx +1 -0
- package/src/widgets/modal/modal-content.tsx +1 -0
- package/src/widgets/modal/modal-header.tsx +1 -0
- package/src/widgets/modal/modal-wrapper.tsx +2 -2
- package/src/widgets/modal/modal.module.css +1 -1
- package/src/widgets/modal/modal.stories.tsx +0 -1
- package/src/widgets/modal/modal.tsx +2 -2
- package/src/widgets/modal/motionDomAnimation.ts +1 -0
- package/src/widgets/modal/motionDomMax.ts +1 -0
- package/src/widgets/search/search.tsx +1 -1
- package/src/widgets/timeline/timeline.module.css +7 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
@layer infonomic-base,
|
|
1
|
+
@layer infonomic-base,
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
2
7
|
|
|
3
8
|
@layer infonomic-components {
|
|
4
|
-
|
|
5
9
|
.button,
|
|
6
10
|
:global(.button) {
|
|
7
11
|
border: none;
|
|
@@ -16,7 +20,9 @@
|
|
|
16
20
|
justify-content: center;
|
|
17
21
|
outline: 2px solid transparent;
|
|
18
22
|
outline-offset: 2px;
|
|
19
|
-
transition:
|
|
23
|
+
transition:
|
|
24
|
+
background-color var(--transition-normal),
|
|
25
|
+
box-shadow var(--transition-normal);
|
|
20
26
|
border-radius: var(--border-radius-sm);
|
|
21
27
|
}
|
|
22
28
|
|
|
@@ -110,8 +116,14 @@
|
|
|
110
116
|
.filled[disabled],
|
|
111
117
|
:global(.button-filled):disabled,
|
|
112
118
|
:global(.button-filled)[disabled] {
|
|
113
|
-
background-color: var(
|
|
114
|
-
|
|
119
|
+
background-color: var(
|
|
120
|
+
--button-variant-filled-disabled,
|
|
121
|
+
oklch(from var(--button-variant-filled) calc(l * 1.1) calc(c * 0.85) h)
|
|
122
|
+
);
|
|
123
|
+
color: var(
|
|
124
|
+
--button-variant-filled-foreground-disabled,
|
|
125
|
+
oklch(from var(--button-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
126
|
+
);
|
|
115
127
|
}
|
|
116
128
|
|
|
117
129
|
/* -------------------------------------------------------- */
|
|
@@ -139,8 +151,14 @@
|
|
|
139
151
|
.filled-weak[disabled],
|
|
140
152
|
:global(.button-filled-weak):disabled,
|
|
141
153
|
:global(.button-filled-weak)[disabled] {
|
|
142
|
-
background-color: var(
|
|
143
|
-
|
|
154
|
+
background-color: var(
|
|
155
|
+
--button-variant-filled-weak-disabled,
|
|
156
|
+
oklch(from var(--button-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h)
|
|
157
|
+
);
|
|
158
|
+
color: var(
|
|
159
|
+
--button-variant-filled-weak-foreground-disabled,
|
|
160
|
+
oklch(from var(--button-variant-filled-weak-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
161
|
+
);
|
|
144
162
|
}
|
|
145
163
|
|
|
146
164
|
.outlined,
|
|
@@ -154,8 +172,14 @@
|
|
|
154
172
|
.outlined[disabled],
|
|
155
173
|
:global(.button-outlined):disabled,
|
|
156
174
|
:global(.button-outlined)[disabled] {
|
|
157
|
-
border-color: var(
|
|
158
|
-
|
|
175
|
+
border-color: var(
|
|
176
|
+
--button-variant-outlined-border-disabled,
|
|
177
|
+
oklch(from var(--button-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h)
|
|
178
|
+
);
|
|
179
|
+
color: var(
|
|
180
|
+
--button-variant-outlined-foreground-disabled,
|
|
181
|
+
oklch(from var(--button-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7) h)
|
|
182
|
+
);
|
|
159
183
|
}
|
|
160
184
|
|
|
161
185
|
.outlined:hover,
|
|
@@ -173,9 +197,11 @@
|
|
|
173
197
|
.gradient,
|
|
174
198
|
:global(.button-gradient) {
|
|
175
199
|
color: var(--button-variant-gradient-foreground);
|
|
176
|
-
background: linear-gradient(
|
|
177
|
-
|
|
178
|
-
|
|
200
|
+
background: linear-gradient(
|
|
201
|
+
45deg,
|
|
202
|
+
var(--button-variant-gradient-start),
|
|
203
|
+
var(--button-variant-gradient-end)
|
|
204
|
+
);
|
|
179
205
|
}
|
|
180
206
|
|
|
181
207
|
.gradient:disabled,
|
|
@@ -183,16 +209,24 @@
|
|
|
183
209
|
:global(.button-gradient):disabled,
|
|
184
210
|
:global(.button-gradient)[disabled] {
|
|
185
211
|
background: unset;
|
|
186
|
-
background-color: var(
|
|
187
|
-
|
|
212
|
+
background-color: var(
|
|
213
|
+
--button-variant-gradient-disabled,
|
|
214
|
+
oklch(from var(--button-variant-gradient-end) calc(l * 1.2) calc(c * 0.85) h)
|
|
215
|
+
);
|
|
216
|
+
color: var(
|
|
217
|
+
--button-variant-gradient-foreground-disabled,
|
|
218
|
+
oklch(from var(--button-variant-gradient-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
219
|
+
);
|
|
188
220
|
}
|
|
189
221
|
|
|
190
222
|
.gradient:hover,
|
|
191
223
|
:global(.button-gradient):hover {
|
|
192
224
|
color: var(--button-variant-gradient-foreground);
|
|
193
|
-
background: linear-gradient(
|
|
194
|
-
|
|
195
|
-
|
|
225
|
+
background: linear-gradient(
|
|
226
|
+
45deg,
|
|
227
|
+
var(--button-variant-gradient-start),
|
|
228
|
+
var(--button-variant-gradient-end)
|
|
229
|
+
);
|
|
196
230
|
}
|
|
197
231
|
|
|
198
232
|
.gradient:focus,
|
|
@@ -507,4 +541,4 @@
|
|
|
507
541
|
width: 100%;
|
|
508
542
|
display: flex;
|
|
509
543
|
}
|
|
510
|
-
}
|
|
544
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
|
|
3
|
+
import type React from 'react'
|
|
4
|
+
|
|
2
5
|
import { Slot } from '@radix-ui/react-slot'
|
|
3
6
|
import cx from 'classnames'
|
|
4
|
-
// @ts-
|
|
7
|
+
// @ts-expect-error
|
|
5
8
|
import Ripple from 'material-ripple-effects'
|
|
6
|
-
import type React from 'react'
|
|
7
|
-
|
|
8
|
-
import type { Intent, Size, Variant } from './@types/button.js'
|
|
9
9
|
|
|
10
10
|
import styles from './button.module.css'
|
|
11
|
+
import type { Intent, Size, Variant } from './@types/button.js'
|
|
11
12
|
|
|
12
13
|
export type ButtonRefType<C extends React.ElementType> = React.ComponentPropsWithRef<C>['ref']
|
|
13
14
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
|
-
|
|
5
4
|
.stop-button,
|
|
6
5
|
.play-button,
|
|
7
6
|
.directional-button {
|
|
@@ -129,4 +128,4 @@
|
|
|
129
128
|
/* No dark theme overrides needed!
|
|
130
129
|
* Tokens automatically switch in .dark and respect .not-dark
|
|
131
130
|
*/
|
|
132
|
-
}
|
|
131
|
+
}
|
|
@@ -6,7 +6,7 @@ type Story = StoryObj<typeof DirectionalButton>
|
|
|
6
6
|
|
|
7
7
|
const ControlsDemo = (): React.JSX.Element => {
|
|
8
8
|
return (
|
|
9
|
-
|
|
9
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
10
10
|
<div className="ml-12 mb-6">
|
|
11
11
|
<h2 style={{ fontSize: '1.2rem', margin: '1rem 0' }}>Small</h2>
|
|
12
12
|
<div className="flex items-center gap-4 mb-6">
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import type React from 'react'
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
import cx from 'classnames'
|
|
6
|
+
|
|
5
7
|
import styles from './control-buttons.module.css'
|
|
8
|
+
import type { Size } from './@types/button.js'
|
|
6
9
|
|
|
7
10
|
type ButtonType = React.JSX.IntrinsicElements['button']
|
|
8
11
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
@layer infonomic-base,
|
|
1
|
+
@layer infonomic-base,
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
2
7
|
|
|
3
8
|
@layer infonomic-components {
|
|
4
9
|
.copy-button-container,
|
|
@@ -53,4 +58,4 @@
|
|
|
53
58
|
min-height: 54px;
|
|
54
59
|
padding: 0.65rem;
|
|
55
60
|
}
|
|
56
|
-
}
|
|
61
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import cx from 'classnames'
|
|
4
3
|
import type React from 'react'
|
|
5
4
|
import { useEffect, useState } from 'react'
|
|
6
5
|
|
|
6
|
+
import cx from 'classnames'
|
|
7
|
+
|
|
7
8
|
import { Tooltip } from '../tooltip/tooltip.js'
|
|
8
|
-
import type { ButtonProps } from './button.js'
|
|
9
9
|
import { Button } from './button.js'
|
|
10
|
-
|
|
11
10
|
import styles from './copy-button.module.css'
|
|
11
|
+
import type { ButtonProps } from './button.js'
|
|
12
12
|
|
|
13
13
|
interface CopyButtonProps extends Omit<ButtonProps, 'children'> {
|
|
14
14
|
text: string
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
|
-
import type { Meta
|
|
5
|
-
import { UserIcon } from '../../icons/user-icon.js'
|
|
4
|
+
import type { Meta } from '@storybook/react-vite'
|
|
6
5
|
|
|
6
|
+
import { UserIcon } from '../../icons/user-icon.js'
|
|
7
7
|
import { size } from '../@types/shared.js'
|
|
8
8
|
import { variant } from './@types/button.js'
|
|
9
9
|
import { IconButton } from './icon-button.js'
|
|
@@ -27,109 +27,105 @@ const getUserIconSize = (size: string) => {
|
|
|
27
27
|
|
|
28
28
|
export const IconButtonsRound = (): React.JSX.Element => {
|
|
29
29
|
return (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
31
|
+
{variant.map((variant: any) => {
|
|
32
|
+
return (
|
|
33
|
+
<div
|
|
34
|
+
key={variant}
|
|
35
|
+
style={{
|
|
36
|
+
display: 'grid',
|
|
37
|
+
gridTemplateColumns: 'repeat(4, minmax(0, 1fr))',
|
|
38
|
+
gap: '32px',
|
|
39
|
+
marginBottom: '32px',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
{size.map((size: any) => {
|
|
45
|
+
const iconSize = getUserIconSize(size)
|
|
46
|
+
return (
|
|
47
|
+
<div
|
|
48
|
+
key={`${variant}=${size}`}
|
|
49
|
+
style={{
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
justifyContent: 'center',
|
|
53
|
+
}}
|
|
54
|
+
>
|
|
55
|
+
<IconButton size={size} variant={variant}>
|
|
56
|
+
<UserIcon width={iconSize.width} height={iconSize.height} />
|
|
57
|
+
</IconButton>
|
|
58
|
+
</div>
|
|
59
|
+
)
|
|
60
|
+
})}
|
|
34
61
|
<div
|
|
35
|
-
key={variant}
|
|
62
|
+
key={`${variant}=${size}`}
|
|
36
63
|
style={{
|
|
37
|
-
display: '
|
|
38
|
-
gridTemplateColumns: 'repeat(4, minmax(0, 1fr))',
|
|
39
|
-
gap: '32px',
|
|
40
|
-
marginBottom: '32px',
|
|
64
|
+
display: 'flex',
|
|
41
65
|
alignItems: 'center',
|
|
42
66
|
justifyContent: 'center',
|
|
43
67
|
}}
|
|
44
68
|
>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<div
|
|
49
|
-
key={`${variant}=${size}`}
|
|
50
|
-
style={{
|
|
51
|
-
display: 'flex',
|
|
52
|
-
alignItems: 'center',
|
|
53
|
-
justifyContent: 'center',
|
|
54
|
-
}}
|
|
55
|
-
>
|
|
56
|
-
<IconButton size={size} variant={variant}>
|
|
57
|
-
<UserIcon width={iconSize.width} height={iconSize.height} />
|
|
58
|
-
</IconButton>
|
|
59
|
-
</div>
|
|
60
|
-
)
|
|
61
|
-
})}
|
|
62
|
-
<div
|
|
63
|
-
key={`${variant}=${size}`}
|
|
64
|
-
style={{
|
|
65
|
-
display: 'flex',
|
|
66
|
-
alignItems: 'center',
|
|
67
|
-
justifyContent: 'center',
|
|
68
|
-
}}
|
|
69
|
-
>
|
|
70
|
-
<IconButton disabled variant={variant}>
|
|
71
|
-
<UserIcon width="22px" height="22px" />
|
|
72
|
-
</IconButton>
|
|
73
|
-
</div>
|
|
69
|
+
<IconButton disabled variant={variant}>
|
|
70
|
+
<UserIcon width="22px" height="22px" />
|
|
71
|
+
</IconButton>
|
|
74
72
|
</div>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
</div>
|
|
74
|
+
)
|
|
75
|
+
})}
|
|
76
|
+
</div>
|
|
79
77
|
)
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
export const IconButtonsSquare = (): React.JSX.Element => {
|
|
83
81
|
return (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
83
|
+
{variant.map((variant: any) => {
|
|
84
|
+
return (
|
|
85
|
+
<div
|
|
86
|
+
key={variant}
|
|
87
|
+
style={{
|
|
88
|
+
display: 'grid',
|
|
89
|
+
gridTemplateColumns: 'repeat(4, minmax(0, 1fr))',
|
|
90
|
+
gap: '32px',
|
|
91
|
+
marginBottom: '32px',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
justifyContent: 'center',
|
|
94
|
+
}}
|
|
95
|
+
>
|
|
96
|
+
{size.map((size: any) => {
|
|
97
|
+
const iconSize = getUserIconSize(size)
|
|
98
|
+
return (
|
|
99
|
+
<div
|
|
100
|
+
key={`${variant}=${size}`}
|
|
101
|
+
style={{
|
|
102
|
+
display: 'flex',
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
<IconButton size={size} square={true} variant={variant}>
|
|
108
|
+
<UserIcon width={iconSize.width} height={iconSize.height} />
|
|
109
|
+
</IconButton>
|
|
110
|
+
</div>
|
|
111
|
+
)
|
|
112
|
+
})}
|
|
88
113
|
<div
|
|
89
|
-
key={variant}
|
|
114
|
+
key={`${variant}=${size}`}
|
|
90
115
|
style={{
|
|
91
|
-
display: '
|
|
92
|
-
gridTemplateColumns: 'repeat(4, minmax(0, 1fr))',
|
|
93
|
-
gap: '32px',
|
|
94
|
-
marginBottom: '32px',
|
|
116
|
+
display: 'flex',
|
|
95
117
|
alignItems: 'center',
|
|
96
118
|
justifyContent: 'center',
|
|
97
119
|
}}
|
|
98
120
|
>
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<div
|
|
103
|
-
key={`${variant}=${size}`}
|
|
104
|
-
style={{
|
|
105
|
-
display: 'flex',
|
|
106
|
-
alignItems: 'center',
|
|
107
|
-
justifyContent: 'center',
|
|
108
|
-
}}
|
|
109
|
-
>
|
|
110
|
-
<IconButton size={size} square={true} variant={variant}>
|
|
111
|
-
<UserIcon width={iconSize.width} height={iconSize.height} />
|
|
112
|
-
</IconButton>
|
|
113
|
-
</div>
|
|
114
|
-
)
|
|
115
|
-
})}
|
|
116
|
-
<div
|
|
117
|
-
key={`${variant}=${size}`}
|
|
118
|
-
style={{
|
|
119
|
-
display: 'flex',
|
|
120
|
-
alignItems: 'center',
|
|
121
|
-
justifyContent: 'center',
|
|
122
|
-
}}
|
|
123
|
-
>
|
|
124
|
-
<IconButton disabled square={true} variant={variant}>
|
|
125
|
-
<UserIcon width="22px" height="22px" />
|
|
126
|
-
</IconButton>
|
|
127
|
-
</div>
|
|
121
|
+
<IconButton disabled square={true} variant={variant}>
|
|
122
|
+
<UserIcon width="22px" height="22px" />
|
|
123
|
+
</IconButton>
|
|
128
124
|
</div>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
125
|
+
</div>
|
|
126
|
+
)
|
|
127
|
+
})}
|
|
128
|
+
</div>
|
|
133
129
|
)
|
|
134
130
|
}
|
|
135
131
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import cx from 'classnames'
|
|
4
3
|
import type React from 'react'
|
|
5
|
-
import { Button } from './button'
|
|
6
|
-
import type { ButtonProps } from './button.js'
|
|
7
4
|
|
|
5
|
+
import cx from 'classnames'
|
|
6
|
+
|
|
7
|
+
import { Button } from './button'
|
|
8
8
|
import styles from './button.module.css'
|
|
9
|
+
import type { ButtonProps } from './button.js'
|
|
9
10
|
|
|
10
11
|
type IconButtonProps<C extends React.ElementType = 'button'> = ButtonProps<C> & {
|
|
11
12
|
square?: boolean
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
@layer infonomic-base,
|
|
1
|
+
@layer infonomic-base,
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
2
7
|
|
|
3
8
|
@layer infonomic-components {
|
|
4
9
|
.card,
|
|
@@ -14,7 +19,7 @@
|
|
|
14
19
|
border-color: var(--border-color);
|
|
15
20
|
border-style: var(--border-style-solid);
|
|
16
21
|
border-radius: var(--border-radius-md);
|
|
17
|
-
box-shadow: var(--shadow-sm)
|
|
22
|
+
box-shadow: var(--shadow-sm);
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
.card:is(:global(.dark) *),
|
|
@@ -74,4 +79,4 @@
|
|
|
74
79
|
padding: 1rem;
|
|
75
80
|
padding-top: 0;
|
|
76
81
|
}
|
|
77
|
-
}
|
|
82
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
@layer infonomic-base,
|
|
1
|
+
@layer infonomic-base,
|
|
2
|
+
infonomic-functional,
|
|
3
|
+
infonomic-utilities,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-typography,
|
|
6
|
+
infonomic-components;
|
|
2
7
|
|
|
3
8
|
@layer infonomic-components {
|
|
4
|
-
|
|
5
9
|
.chip,
|
|
6
10
|
:global(.chip) {
|
|
7
11
|
--chip-font-size: 0.9rem;
|
|
@@ -24,7 +28,9 @@
|
|
|
24
28
|
min-height: var(--chip-height);
|
|
25
29
|
padding: var(--chip-padding-y) var(--chip-padding-x);
|
|
26
30
|
font-size: var(--chip-font-size);
|
|
27
|
-
transition:
|
|
31
|
+
transition:
|
|
32
|
+
background-color var(--transition-normal),
|
|
33
|
+
box-shadow var(--transition-normal);
|
|
28
34
|
}
|
|
29
35
|
|
|
30
36
|
.chip:disabled,
|
|
@@ -143,8 +149,14 @@
|
|
|
143
149
|
.filled[disabled],
|
|
144
150
|
:global(.chip-filled):disabled,
|
|
145
151
|
:global(.chip-filled)[disabled] {
|
|
146
|
-
background-color: var(
|
|
147
|
-
|
|
152
|
+
background-color: var(
|
|
153
|
+
--chip-variant-filled-disabled,
|
|
154
|
+
oklch(from var(--chip-variant-filled) calc(l * 1.1) calc(c * 0.85) h)
|
|
155
|
+
);
|
|
156
|
+
color: var(
|
|
157
|
+
--chip-variant-filled-foreground-disabled,
|
|
158
|
+
oklch(from var(--chip-variant-filled-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
159
|
+
);
|
|
148
160
|
}
|
|
149
161
|
|
|
150
162
|
/* -------------------------------------------------------- */
|
|
@@ -172,8 +184,14 @@
|
|
|
172
184
|
.filled-weak[disabled],
|
|
173
185
|
:global(.chip-filled-weak):disabled,
|
|
174
186
|
:global(.chip-filled-weak)[disabled] {
|
|
175
|
-
background-color: var(
|
|
176
|
-
|
|
187
|
+
background-color: var(
|
|
188
|
+
--chip-variant-filled-weak-disabled,
|
|
189
|
+
oklch(from var(--chip-variant-filled-weak) calc(l * 1.1) calc(c * 0.85) h)
|
|
190
|
+
);
|
|
191
|
+
color: var(
|
|
192
|
+
--chip-variant-filled-weak-foreground-disabled,
|
|
193
|
+
oklch(from var(--chip-variant-filled-weak-foreground) calc(l * 0.9) calc(c * 0.85) h)
|
|
194
|
+
);
|
|
177
195
|
}
|
|
178
196
|
|
|
179
197
|
/* -------------------------------------------------------- */
|
|
@@ -190,8 +208,14 @@
|
|
|
190
208
|
.outlined[disabled],
|
|
191
209
|
:global(.chip-outlined):disabled,
|
|
192
210
|
:global(.chip-outlined)[disabled] {
|
|
193
|
-
border-color: var(
|
|
194
|
-
|
|
211
|
+
border-color: var(
|
|
212
|
+
--chip-variant-outlined-border-disabled,
|
|
213
|
+
oklch(from var(--chip-variant-outlined-border) calc(l * 1.5) calc(c * 0.8) h)
|
|
214
|
+
);
|
|
215
|
+
color: var(
|
|
216
|
+
--chip-variant-outlined-foreground-disabled,
|
|
217
|
+
oklch(from var(--chip-variant-outlined-foreground) calc(l * 1.1) calc(c * 0.7) h)
|
|
218
|
+
);
|
|
195
219
|
}
|
|
196
220
|
|
|
197
221
|
.outlined:hover,
|
|
@@ -277,7 +301,6 @@
|
|
|
277
301
|
--chip-variant-filled-weak-disabled: var(--fill-secondary-weak-disabled);
|
|
278
302
|
--chip-variant-filled-weak-foreground-disabled: var(--text-on-secondary-disabled);
|
|
279
303
|
|
|
280
|
-
|
|
281
304
|
/* Outlined */
|
|
282
305
|
--chip-variant-outlined: transparent;
|
|
283
306
|
--chip-variant-outlined-foreground: var(--text-secondary-strong);
|
|
@@ -332,7 +355,6 @@
|
|
|
332
355
|
--chip-variant-filled-weak-disabled: var(--fill-success-weak-disabled);
|
|
333
356
|
--chip-variant-filled-weak-foreground-disabled: var(--text-on-success-disabled);
|
|
334
357
|
|
|
335
|
-
|
|
336
358
|
/* Outlined */
|
|
337
359
|
--chip-variant-outlined: transparent;
|
|
338
360
|
--chip-variant-outlined-foreground: var(--text-success-strong);
|
|
@@ -422,4 +444,4 @@
|
|
|
422
444
|
--chip-variant-outlined-border-disabled: var(--stroke-danger-disabled);
|
|
423
445
|
--chip-variant-outlined-foreground-disabled: var(--text-danger-disabled);
|
|
424
446
|
}
|
|
425
|
-
}
|
|
447
|
+
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
1
|
import { useState } from 'react'
|
|
3
2
|
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
4
|
+
|
|
5
|
+
import { CalendarIcon } from '../../icons/calendar-icon.js'
|
|
4
6
|
import { capitalize } from '../../utils/capitalize.js'
|
|
5
7
|
import { intent, size } from '../@types/shared.js'
|
|
6
|
-
import { CalendarIcon } from '../../icons/calendar-icon.js'
|
|
7
|
-
import { Chip } from './chip.js'
|
|
8
8
|
import { chipVariant } from './@types/chip.js'
|
|
9
|
+
import { Chip } from './chip.js'
|
|
9
10
|
|
|
10
11
|
type Story = StoryObj<typeof Chip>
|
|
11
12
|
|
|
12
13
|
const Row = ({ children }: { children: React.ReactNode }) => (
|
|
13
|
-
<div style={{ display: 'flex', gap: '12px', flexWrap: 'wrap', alignItems: 'center' }}>
|
|
14
|
+
<div style={{ display: 'flex', gap: '12px', flexWrap: 'wrap', alignItems: 'center' }}>
|
|
15
|
+
{children}
|
|
16
|
+
</div>
|
|
14
17
|
)
|
|
15
18
|
|
|
16
19
|
export const Intents: Story = {
|
|
17
20
|
render: () => (
|
|
18
|
-
|
|
21
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
19
22
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '12px' }}>
|
|
20
23
|
{intent.map((i) => (
|
|
21
24
|
<Row key={i}>
|
|
@@ -32,10 +35,15 @@ export const Intents: Story = {
|
|
|
32
35
|
|
|
33
36
|
export const Sizes: Story = {
|
|
34
37
|
render: () => (
|
|
35
|
-
|
|
38
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
36
39
|
<Row>
|
|
37
40
|
{size.map((s) => (
|
|
38
|
-
<Chip
|
|
41
|
+
<Chip
|
|
42
|
+
variant={'selectable-removable'}
|
|
43
|
+
selected={true}
|
|
44
|
+
key={s}
|
|
45
|
+
size={s}
|
|
46
|
+
>{`Size ${s}`}</Chip>
|
|
39
47
|
))}
|
|
40
48
|
</Row>
|
|
41
49
|
</div>
|
|
@@ -49,7 +57,11 @@ export const Variants: Story = {
|
|
|
49
57
|
{chipVariant.map((variant) => (
|
|
50
58
|
<Row key={variant}>
|
|
51
59
|
<Chip variant={variant}>{capitalize(variant)} chip</Chip>
|
|
52
|
-
<Chip
|
|
60
|
+
<Chip
|
|
61
|
+
variant={variant}
|
|
62
|
+
startIcon={<CalendarIcon height="16px" width="16px" />}
|
|
63
|
+
selected={true}
|
|
64
|
+
>{`${capitalize(variant)} with icon`}</Chip>
|
|
53
65
|
{(variant === 'removable' || variant === 'selectable-removable') && (
|
|
54
66
|
<Chip variant={variant} onRemove={() => {}}>
|
|
55
67
|
{`${capitalize(variant)} with remove`}
|
|
@@ -85,7 +97,7 @@ export const Selectable: Story = {
|
|
|
85
97
|
|
|
86
98
|
export const Removable: Story = {
|
|
87
99
|
render: () => (
|
|
88
|
-
|
|
100
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
89
101
|
<Row>
|
|
90
102
|
<Chip
|
|
91
103
|
variant="removable"
|