@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-actions.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-actions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-actions.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-actions.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAMnC,KAAK,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACpE,MAAM,WAAW,iBAAkB,SAAQ,0BAA0B;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAyB,uCAK/C,iBAAiB,GAAG;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,sBAMA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-container.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-container.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-container.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-container.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAMnC,KAAK,4BAA4B,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACtE,MAAM,WAAW,mBAAoB,SAAQ,4BAA4B;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,GAA2B,uCAKnD,mBAAmB,GAAG;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,sBAMA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-content.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAMnC,KAAK,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACpE,MAAM,WAAW,iBAAkB,SAAQ,0BAA0B;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,GAAyB,uCAK/C,iBAAiB,GAAG;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,sBAMA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-header.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-header.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAMnC,KAAK,yBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACnE,MAAM,WAAW,gBAAiB,SAAQ,yBAAyB;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,WAAW,GAAwB,uCAK7C,gBAAgB,GAAG;IACpB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,sBAOA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-wrapper.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-wrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-wrapper.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal-wrapper.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAKnD,MAAM,WAAW,iBAAkB,SAAQ,eAAe,CAAC,KAAK,CAAC;IAC/D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAA;CAC/B;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,WAAW,EACX,GAAG,IAAI,EACR,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4BvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAoB9B,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,eAAO,MAAM,YAAY;gBACX,MAAM,IAAI;EAClB,CAAA;AAEN,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEvD,wBAAgB,QAAQ,IAAI;IAC1B,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;CACzD,CAiBA;AAED,iBAAS,KAAK,CAAC,EACb,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,GAAG,KAAK,CAAC,WAAW,GAAG,IAAI,CAkCvC;kBAxCQ,KAAK;;;WAjDK,CAAC;;;WAAnB,CAAC;;;WAAK,CAAC;;;WAAD,CAAC;;;AAkGR,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, useCallback, useState } from "react";
|
|
4
|
-
import { createPortal } from "react-dom";
|
|
5
4
|
import { AnimatePresence, LazyMotion } from "motion/react";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
6
6
|
import { Overlay } from "../../components/overlay/index.js";
|
|
7
7
|
import { useMediaQuery } from "../../hooks/use-media-query.js";
|
|
8
8
|
import { getPortalRoot } from "../../utils/getPortalRoot.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motionDomAnimation.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/motionDomAnimation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"motionDomAnimation.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/motionDomAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motionDomMax.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/motionDomMax.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"motionDomMax.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/motionDomMax.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,eAAe,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/widgets/search/search.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/widgets/search/search.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAA;AAE9F,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,cAAc,CAAC,EAAE,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAC/B,KAAK,EAAE,OAAO,CAAA;QACd,KAAK,EAAE,GAAG,CAAA;KACX,CAAA;IACD,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAgBD,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,SAAS,EACT,cAAc,EACd,MAAM,EACN,SAAS,EACT,OAAO,EACP,OAAO,EACP,QAAQ,EACR,WAAW,EACX,eAA0B,EAC1B,kBAA6B,EAC7B,iBAA2B,EAC3B,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiIjC"}
|
|
@@ -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
|
.timeline {
|
|
@@ -84,4 +89,4 @@
|
|
|
84
89
|
border-color: var(--canvas-600);
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
|
-
}
|
|
92
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infonomic/uikit",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.17.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Infonomic UI kit is a collection of reusable UI components and utilities for React and Astro.",
|
|
8
8
|
"keywords": [
|
|
@@ -64,39 +64,43 @@
|
|
|
64
64
|
"npm-run-all": "^4.1.5",
|
|
65
65
|
"prism-react-renderer": "^2.4.1",
|
|
66
66
|
"radix-ui": "^1.4.3",
|
|
67
|
-
"react": "
|
|
68
|
-
"
|
|
69
|
-
"react-dom": "19.2.3",
|
|
70
|
-
"zod": "^4.1.13",
|
|
67
|
+
"react-day-picker": "^9.13.0",
|
|
68
|
+
"zod": "^4.2.1",
|
|
71
69
|
"zod-form-data": "^3.0.1"
|
|
72
70
|
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "^19.0.0",
|
|
73
|
+
"react-dom": "^19.0.0"
|
|
74
|
+
},
|
|
73
75
|
"devDependencies": {
|
|
74
76
|
"@astrojs/check": "0.9.6",
|
|
75
77
|
"@astrojs/node": "9.5.1",
|
|
76
|
-
"@biomejs/biome": "2.3.
|
|
78
|
+
"@biomejs/biome": "2.3.10",
|
|
77
79
|
"@rsbuild/plugin-react": "^1.4.2",
|
|
78
|
-
"@rslib/core": "^0.
|
|
79
|
-
"@storybook/addon-a11y": "^10.1.
|
|
80
|
-
"@storybook/addon-docs": "^10.1.
|
|
81
|
-
"@storybook/addon-links": "^10.1.
|
|
82
|
-
"@storybook/addon-themes": "^10.1.
|
|
83
|
-
"@storybook/react-vite": "^10.1.
|
|
80
|
+
"@rslib/core": "^0.19.0",
|
|
81
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
82
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
83
|
+
"@storybook/addon-links": "^10.1.11",
|
|
84
|
+
"@storybook/addon-themes": "^10.1.11",
|
|
85
|
+
"@storybook/react-vite": "^10.1.11",
|
|
84
86
|
"@types/lodash": "^4.17.21",
|
|
85
|
-
"@types/node": "^25.0.
|
|
87
|
+
"@types/node": "^25.0.3",
|
|
86
88
|
"@types/react": "19.2.7",
|
|
87
89
|
"@types/react-dom": "19.2.3",
|
|
88
90
|
"@vitejs/plugin-react": "^5.1.2",
|
|
89
|
-
"astro": "5.16.
|
|
91
|
+
"astro": "5.16.6",
|
|
90
92
|
"chokidar": "^5.0.0",
|
|
91
|
-
"eslint-plugin-storybook": "^10.1.
|
|
93
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
92
94
|
"lightningcss": "^1.30.2",
|
|
93
95
|
"lightningcss-cli": "^1.30.2",
|
|
96
|
+
"react": "19.2.3",
|
|
97
|
+
"react-dom": "19.2.3",
|
|
94
98
|
"rimraf": "^6.1.2",
|
|
95
|
-
"storybook": "^10.1.
|
|
99
|
+
"storybook": "^10.1.11",
|
|
96
100
|
"typescript": "5.9.3",
|
|
97
101
|
"typescript-plugin-css-modules": "^5.2.0",
|
|
98
|
-
"vite": "^7.
|
|
99
|
-
"vitest": "^4.0.
|
|
102
|
+
"vite": "^7.3.0",
|
|
103
|
+
"vitest": "^4.0.16"
|
|
100
104
|
},
|
|
101
105
|
"publishConfig": {
|
|
102
106
|
"access": "public",
|
|
@@ -120,7 +124,7 @@
|
|
|
120
124
|
"build:vanilla-components-css": "node ./scripts/task-merge-vanilla-components-css.js",
|
|
121
125
|
"typecheck": "tsc --noEmit",
|
|
122
126
|
"clean": "rimraf node_modules dist build types .turbo",
|
|
123
|
-
"lint": "biome check
|
|
127
|
+
"lint": "biome check --write --unsafe --diagnostic-level=error",
|
|
124
128
|
"storybook": "storybook dev -p 6007",
|
|
125
129
|
"build-storybook": "storybook build",
|
|
126
130
|
"test": "vitest"
|
package/src/astro.js
CHANGED
|
@@ -7,7 +7,6 @@ import CardFooterComponent from './components/card/card-footer.astro'
|
|
|
7
7
|
import CardHeaderComponent from './components/card/card-header.astro'
|
|
8
8
|
import CardTitleComponent from './components/card/card-title.astro'
|
|
9
9
|
import ContainerComponent from './components/container/container.astro'
|
|
10
|
-
import HamburgerComponent from './components/hamburger/hamburger.astro'
|
|
11
10
|
import CheckboxComponent from './components/forms/checkbox.astro'
|
|
12
11
|
import ErrorTextComponent from './components/forms/error-text.astro'
|
|
13
12
|
import HelpTextComponent from './components/forms/help-text.astro'
|
|
@@ -15,8 +14,9 @@ import InputComponent from './components/forms/input.astro'
|
|
|
15
14
|
import InputAdornmentComponent from './components/forms/input-adornment.astro'
|
|
16
15
|
import LabelComponent from './components/forms/label.astro'
|
|
17
16
|
import TextAreaComponent from './components/forms/text-area.astro'
|
|
18
|
-
import
|
|
17
|
+
import HamburgerComponent from './components/hamburger/hamburger.astro'
|
|
19
18
|
import ScrollToTopComponent from './components/scroll-to-top/scroll-to-top.astro'
|
|
19
|
+
import SectionComponent from './components/section/section.astro'
|
|
20
20
|
import CheckIconComponent from './icons/check-icon.astro'
|
|
21
21
|
import CloseIconComponent from './icons/close-icon.astro'
|
|
22
22
|
import IconElementComponent from './icons/icon-element.astro'
|
|
@@ -24,7 +24,6 @@ import LightIconComponent from './icons/light-icon.astro'
|
|
|
24
24
|
import MoonIconComponent from './icons/moon-icon.astro'
|
|
25
25
|
import SearchIconComponent from './icons/search-icon.astro'
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
export const Button = ButtonComponent
|
|
29
28
|
export const Hamburger = HamburgerComponent
|
|
30
29
|
export const IconButton = IconButtonComponent
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* NOTE: An accordion can be used in a variety of ways, including
|
|
4
5
|
* simple FAQs, complex navigation, and more. As such, we minimally
|
|
@@ -7,9 +8,8 @@
|
|
|
7
8
|
|
|
8
9
|
import type React from 'react'
|
|
9
10
|
|
|
10
|
-
import { Accordion as AccordionPrimitive } from 'radix-ui'
|
|
11
|
-
|
|
12
11
|
import cx from 'classnames'
|
|
12
|
+
import { Accordion as AccordionPrimitive } from 'radix-ui'
|
|
13
13
|
|
|
14
14
|
import styles from './accordion.module.css'
|
|
15
15
|
|
|
@@ -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
|
/* relative inline-flex h-10 w-10 rounded-full */
|
|
6
10
|
.avatar-root {
|
|
7
11
|
position: relative;
|
|
@@ -29,7 +33,6 @@
|
|
|
29
33
|
background-color: var(--color-white);
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
|
|
33
36
|
.avatar-text {
|
|
34
37
|
font-size: var(--font-size-sm);
|
|
35
38
|
font-weight: var(--font-weight-medium);
|
|
@@ -51,4 +54,4 @@
|
|
|
51
54
|
color: var(--gray-400);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
}
|
|
57
|
+
}
|
|
@@ -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
|
.badge,
|
|
@@ -58,4 +63,4 @@
|
|
|
58
63
|
|
|
59
64
|
/* Dark mode - All intents now handled by semantic tokens in theme layer */
|
|
60
65
|
/* No overrides needed! Tokens automatically switch in .dark and respect .not-dark */
|
|
61
|
-
}
|
|
66
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
3
|
import { capitalize } from '../../utils/capitalize.js'
|
|
4
|
-
|
|
5
4
|
import { intent } from '../@types/shared.js'
|
|
6
5
|
import { Badge } from './badge.js'
|
|
7
6
|
|
|
@@ -18,7 +17,7 @@ const AllIntents = (): React.JSX.Element => {
|
|
|
18
17
|
marginBottom: '12px',
|
|
19
18
|
}}
|
|
20
19
|
>
|
|
21
|
-
|
|
20
|
+
<Badge key={`${i}`} intent={i}>{`${capitalize(i)}`}</Badge>
|
|
22
21
|
</div>
|
|
23
22
|
)
|
|
24
23
|
})}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Slot } from '@radix-ui/react-slot'
|
|
2
2
|
import cx from 'classnames'
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
import styles from './badge.module.css'
|
|
5
|
+
import type { Intent } from '../@types/shared'
|
|
5
6
|
|
|
6
7
|
type AsDiv = {
|
|
7
8
|
asChild?: false
|
|
@@ -27,14 +28,18 @@ export const Badge = <C extends React.ElementType = 'div'>({
|
|
|
27
28
|
children,
|
|
28
29
|
asChild,
|
|
29
30
|
ref,
|
|
30
|
-
...rest
|
|
31
|
-
|
|
31
|
+
...rest
|
|
32
|
+
}: BadgeProps<C>): React.JSX.Element => {
|
|
33
|
+
const Comp: React.ElementType = asChild === true ? Slot : 'div'
|
|
32
34
|
return (
|
|
33
|
-
<Comp
|
|
34
|
-
ref={ref}
|
|
35
|
+
<Comp
|
|
36
|
+
ref={ref}
|
|
37
|
+
className={cx('badge', intent, styles.badge, styles[intent], className)}
|
|
38
|
+
{...rest}
|
|
39
|
+
>
|
|
35
40
|
{children}
|
|
36
41
|
</Comp>
|
|
37
42
|
)
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
Badge.displayName = 'Badge'
|
|
45
|
+
Badge.displayName = 'Badge'
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// generic types
|
|
2
|
-
import type { Intent as t } from '../../@types/shared.js'
|
|
3
|
-
|
|
4
|
-
import type { Size as s } from '../../@types/shared.js'
|
|
2
|
+
import type { Size as s, Intent as t } from '../../@types/shared.js'
|
|
5
3
|
|
|
6
4
|
/**
|
|
7
5
|
* This file contains the types and prop-types for Button and IconButton component.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import React, { type ComponentPropsWithoutRef, type Ref } from 'react'
|
|
4
|
+
|
|
3
5
|
import cx from 'classnames'
|
|
4
6
|
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui'
|
|
5
|
-
import React, { type ComponentPropsWithoutRef, type Ref, useState } from 'react'
|
|
6
7
|
|
|
7
|
-
import type { EnableRipple, Intent, Size, Variant } from './@types/button'
|
|
8
8
|
import { Button } from './button'
|
|
9
|
-
|
|
10
9
|
import styles from './button-group.module.css'
|
|
10
|
+
import type { EnableRipple, Intent, Size, Variant } from './@types/button'
|
|
11
11
|
|
|
12
12
|
interface ButtonGroupContextType {
|
|
13
13
|
variant?: Variant
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
2
2
|
|
|
3
3
|
import { capitalize } from '../../utils/capitalize.js'
|
|
4
|
-
|
|
5
4
|
import { intent } from '../@types/shared.js'
|
|
6
5
|
import { variant } from './@types/button.js'
|
|
7
6
|
import { Button } from './button.js'
|
|
@@ -11,7 +10,15 @@ type Story = StoryObj<typeof Button>
|
|
|
11
10
|
const AllIntents = (): React.JSX.Element => {
|
|
12
11
|
return (
|
|
13
12
|
<>
|
|
14
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
style={{
|
|
15
|
+
maxWidth: '1100px',
|
|
16
|
+
margin: '2rem auto',
|
|
17
|
+
padding: '2rem',
|
|
18
|
+
borderRadius: '6px',
|
|
19
|
+
backgroundColor: 'var(--background)',
|
|
20
|
+
}}
|
|
21
|
+
>
|
|
15
22
|
{intent.map((i) => {
|
|
16
23
|
return (
|
|
17
24
|
<div
|
|
@@ -25,14 +32,27 @@ const AllIntents = (): React.JSX.Element => {
|
|
|
25
32
|
>
|
|
26
33
|
{variant.map((v) => {
|
|
27
34
|
return (
|
|
28
|
-
<Button
|
|
35
|
+
<Button
|
|
36
|
+
key={`${i}-${v}`}
|
|
37
|
+
intent={i}
|
|
38
|
+
variant={v}
|
|
39
|
+
>{`${capitalize(i)} ${v}`}</Button>
|
|
29
40
|
)
|
|
30
41
|
})}
|
|
31
42
|
</div>
|
|
32
43
|
)
|
|
33
44
|
})}
|
|
34
45
|
</div>
|
|
35
|
-
<div
|
|
46
|
+
<div
|
|
47
|
+
className="dark"
|
|
48
|
+
style={{
|
|
49
|
+
maxWidth: '1100px',
|
|
50
|
+
margin: '2rem auto',
|
|
51
|
+
padding: '2rem',
|
|
52
|
+
borderRadius: '6px',
|
|
53
|
+
backgroundColor: 'var(--theme-800)',
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
36
56
|
{intent.map((i) => {
|
|
37
57
|
return (
|
|
38
58
|
<div
|
|
@@ -46,7 +66,11 @@ const AllIntents = (): React.JSX.Element => {
|
|
|
46
66
|
>
|
|
47
67
|
{variant.map((v) => {
|
|
48
68
|
return (
|
|
49
|
-
<Button
|
|
69
|
+
<Button
|
|
70
|
+
key={`${i}-${v}`}
|
|
71
|
+
intent={i}
|
|
72
|
+
variant={v}
|
|
73
|
+
>{`${capitalize(i)} ${v}`}</Button>
|
|
50
74
|
)
|
|
51
75
|
})}
|
|
52
76
|
</div>
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
5
|
-
import { capitalize } from '../../utils/capitalize.js'
|
|
6
5
|
|
|
7
|
-
import { size } from '../@types/shared.js'
|
|
8
|
-
import { variant } from './@types/button.js'
|
|
9
6
|
import { Button } from './button.js'
|
|
10
7
|
|
|
11
8
|
type Story = StoryObj<typeof Button>
|
|
@@ -14,13 +11,33 @@ const AllOverrides = (): React.JSX.Element => {
|
|
|
14
11
|
return (
|
|
15
12
|
<>
|
|
16
13
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
17
|
-
<div
|
|
18
|
-
|
|
14
|
+
<div
|
|
15
|
+
style={{
|
|
16
|
+
width: '300px',
|
|
17
|
+
padding: '1rem',
|
|
18
|
+
borderRadius: '8px',
|
|
19
|
+
border: '1px solid var(--stroke-primary)',
|
|
20
|
+
backgroundColor: 'var(--gray-25)',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<Button className="not-dark" variant="filled" size="sm" style={{ marginRight: '1rem' }}>
|
|
24
|
+
Force Light
|
|
25
|
+
</Button>
|
|
19
26
|
</div>
|
|
20
27
|
</div>
|
|
21
|
-
<div className="dark" style={{ maxWidth: '600px', margin: '2rem auto' }}
|
|
22
|
-
<div
|
|
23
|
-
|
|
28
|
+
<div className="dark" style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
29
|
+
<div
|
|
30
|
+
style={{
|
|
31
|
+
width: '300px',
|
|
32
|
+
padding: '1rem',
|
|
33
|
+
borderRadius: '8px',
|
|
34
|
+
border: '1px solid var(--stroke-primary)',
|
|
35
|
+
backgroundColor: 'var(--canvas-800)',
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<Button variant="filled" size="sm" style={{ marginRight: '1rem' }}>
|
|
39
|
+
Force Dark
|
|
40
|
+
</Button>
|
|
24
41
|
</div>
|
|
25
42
|
</div>
|
|
26
43
|
</>
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
5
|
-
import { capitalize } from '../../utils/capitalize.js'
|
|
6
|
-
|
|
7
5
|
|
|
8
6
|
import { Button } from './button.js'
|
|
9
7
|
|
|
@@ -13,13 +11,33 @@ const AllTests = (): React.JSX.Element => {
|
|
|
13
11
|
return (
|
|
14
12
|
<>
|
|
15
13
|
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
16
|
-
<div
|
|
17
|
-
|
|
14
|
+
<div
|
|
15
|
+
style={{
|
|
16
|
+
width: '300px',
|
|
17
|
+
padding: '1rem',
|
|
18
|
+
borderRadius: '8px',
|
|
19
|
+
border: '1px solid var(--stroke-primary)',
|
|
20
|
+
backgroundColor: 'var(--gray-25)',
|
|
21
|
+
}}
|
|
22
|
+
>
|
|
23
|
+
<Button className="not-dark" variant="outlined" size="md" style={{ marginRight: '1rem' }}>
|
|
24
|
+
Force Light
|
|
25
|
+
</Button>
|
|
18
26
|
</div>
|
|
19
27
|
</div>
|
|
20
|
-
<div className="dark" style={{ maxWidth: '600px', margin: '2rem auto' }}
|
|
21
|
-
<div
|
|
22
|
-
|
|
28
|
+
<div className="dark" style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
29
|
+
<div
|
|
30
|
+
style={{
|
|
31
|
+
width: '300px',
|
|
32
|
+
padding: '1rem',
|
|
33
|
+
borderRadius: '8px',
|
|
34
|
+
border: '1px solid var(--stroke-primary)',
|
|
35
|
+
backgroundColor: 'var(--primary-800)',
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
<Button variant="outlined" size="md" style={{ marginRight: '1rem' }}>
|
|
39
|
+
Force Dark
|
|
40
|
+
</Button>
|
|
23
41
|
</div>
|
|
24
42
|
</div>
|
|
25
43
|
</>
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type React from 'react'
|
|
3
3
|
|
|
4
4
|
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
5
|
-
import { capitalize } from '../../utils/capitalize.js'
|
|
6
5
|
|
|
6
|
+
import { capitalize } from '../../utils/capitalize.js'
|
|
7
7
|
import { size } from '../@types/shared.js'
|
|
8
8
|
import { variant } from './@types/button.js'
|
|
9
9
|
import { Button } from './button.js'
|
|
@@ -12,35 +12,33 @@ type Story = StoryObj<typeof Button>
|
|
|
12
12
|
|
|
13
13
|
const AllVariants = (): React.JSX.Element => {
|
|
14
14
|
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</div>
|
|
43
|
-
</>
|
|
15
|
+
<div style={{ maxWidth: '800px', margin: '2rem auto' }}>
|
|
16
|
+
{variant.map((variant: any) => {
|
|
17
|
+
return (
|
|
18
|
+
<div
|
|
19
|
+
key={variant}
|
|
20
|
+
style={{
|
|
21
|
+
display: 'grid',
|
|
22
|
+
gridTemplateColumns: 'repeat(4, minmax(0, 1fr)',
|
|
23
|
+
gap: '32px',
|
|
24
|
+
marginBottom: '32px',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
28
|
+
{size.map((size: any) => {
|
|
29
|
+
return (
|
|
30
|
+
<Button key={`${variant}=${size}`} size={size} variant={variant}>
|
|
31
|
+
{`${capitalize(variant)} ${size.toUpperCase()}`}
|
|
32
|
+
</Button>
|
|
33
|
+
)
|
|
34
|
+
})}
|
|
35
|
+
<Button key={`${variant}=${size}`} disabled variant={variant}>
|
|
36
|
+
{`${capitalize(variant)} Disabled`}
|
|
37
|
+
</Button>
|
|
38
|
+
</div>
|
|
39
|
+
)
|
|
40
|
+
})}
|
|
41
|
+
</div>
|
|
44
42
|
)
|
|
45
43
|
}
|
|
46
44
|
|