@infonomic/uikit 5.16.0 → 5.18.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/check-icon.js +0 -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 -4
- 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 +17 -16
- 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
|
@@ -2,40 +2,38 @@ import type { Meta } from '@storybook/react-vite'
|
|
|
2
2
|
|
|
3
3
|
export const Default = (): React.JSX.Element => {
|
|
4
4
|
return (
|
|
5
|
-
|
|
6
|
-
<div style={{
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</p>
|
|
36
|
-
</div>
|
|
5
|
+
<div style={{ marginBottom: '48px' }}>
|
|
6
|
+
<div style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
|
|
7
|
+
<h1>Heading 1 - With Some More Text to Test on Mobile</h1>
|
|
8
|
+
<p>
|
|
9
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
10
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
11
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
12
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
13
|
+
</p>
|
|
14
|
+
<h2>Heading 2 - With Some More Text to Test on Mobile</h2>
|
|
15
|
+
<p>
|
|
16
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
17
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
18
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
19
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
20
|
+
</p>
|
|
21
|
+
<h3>Heading 3 - With Some More Text to Test on Mobile</h3>
|
|
22
|
+
<p>
|
|
23
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
24
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
25
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
26
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
27
|
+
</p>
|
|
28
|
+
<h4>Heading 4 - With Some More Text to Test on Mobile</h4>
|
|
29
|
+
<p>
|
|
30
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
31
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
32
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
33
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
34
|
+
</p>
|
|
37
35
|
</div>
|
|
38
|
-
|
|
36
|
+
</div>
|
|
39
37
|
)
|
|
40
38
|
}
|
|
41
39
|
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
@layer infonomic-typography {
|
|
2
2
|
:root {
|
|
3
|
-
--font-sans:
|
|
4
|
-
"
|
|
3
|
+
--font-sans:
|
|
4
|
+
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
5
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
5
6
|
|
|
6
|
-
--font-display:
|
|
7
|
-
"
|
|
7
|
+
--font-display:
|
|
8
|
+
"Roboto", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
9
|
+
"Segoe UI Symbol", "Noto Color Emoji";
|
|
8
10
|
|
|
9
11
|
--font-serif: "Merriweather", Georgia, Cambria, "Times New Roman", Times, serif;
|
|
10
12
|
|
|
11
|
-
--font-mono:
|
|
12
|
-
"
|
|
13
|
+
--font-mono:
|
|
14
|
+
"Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
15
|
+
"Courier New", monospace;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
.sans {
|
|
@@ -27,4 +30,4 @@
|
|
|
27
30
|
.display {
|
|
28
31
|
font-family: var(--font-display);
|
|
29
32
|
}
|
|
30
|
-
}
|
|
33
|
+
}
|
|
@@ -2,39 +2,37 @@ import type { Meta } from '@storybook/react-vite'
|
|
|
2
2
|
|
|
3
3
|
export const Lists = (): React.JSX.Element => {
|
|
4
4
|
return (
|
|
5
|
-
|
|
6
|
-
<div style={{
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</ul>
|
|
35
|
-
</div>
|
|
5
|
+
<div style={{ marginBottom: '48px' }}>
|
|
6
|
+
<div style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
|
|
7
|
+
<h1>Lists</h1>
|
|
8
|
+
<p>
|
|
9
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
10
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
11
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
12
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
13
|
+
</p>
|
|
14
|
+
<ol>
|
|
15
|
+
<li>One - item in a list here</li>
|
|
16
|
+
<li>Two - item in a list here</li>
|
|
17
|
+
<li>Three - item in a list here</li>
|
|
18
|
+
<li>Four - item in a list here</li>
|
|
19
|
+
<li>Five - item in a list here</li>
|
|
20
|
+
</ol>
|
|
21
|
+
<p>
|
|
22
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
23
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
24
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
25
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
26
|
+
</p>
|
|
27
|
+
<ul>
|
|
28
|
+
<li>Item - item in a list here</li>
|
|
29
|
+
<li>Item - item in a list here</li>
|
|
30
|
+
<li>Item - item in a list here</li>
|
|
31
|
+
<li>Item - item in a list here</li>
|
|
32
|
+
<li>Item - item in a list here</li>
|
|
33
|
+
</ul>
|
|
36
34
|
</div>
|
|
37
|
-
|
|
35
|
+
</div>
|
|
38
36
|
)
|
|
39
37
|
}
|
|
40
38
|
|
|
@@ -148,7 +148,6 @@
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
152
151
|
.prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
|
|
153
152
|
font-size: 2.5rem;
|
|
154
153
|
font-weight: 600;
|
|
@@ -308,7 +307,7 @@
|
|
|
308
307
|
margin-bottom: 1.3rem;
|
|
309
308
|
margin-right: 2rem;
|
|
310
309
|
/* Font size must be em - so that it changes in articles or text that has dynamic font sizes on smaller screens */
|
|
311
|
-
font-size: 1.2em;
|
|
310
|
+
font-size: 1.2em;
|
|
312
311
|
line-height: 1.3;
|
|
313
312
|
padding-inline-start: 1rem;
|
|
314
313
|
border-inline-start-width: 0.25rem;
|
|
@@ -323,11 +322,17 @@
|
|
|
323
322
|
}
|
|
324
323
|
}
|
|
325
324
|
|
|
326
|
-
.prose
|
|
325
|
+
.prose
|
|
326
|
+
:where(blockquote p:first-of-type):not(
|
|
327
|
+
:where([class~="not-prose"], [class~="not-prose"] *)
|
|
328
|
+
)::before {
|
|
327
329
|
content: open-quote;
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
.prose
|
|
332
|
+
.prose
|
|
333
|
+
:where(blockquote p:last-of-type):not(
|
|
334
|
+
:where([class~="not-prose"], [class~="not-prose"] *)
|
|
335
|
+
)::after {
|
|
331
336
|
content: close-quote;
|
|
332
337
|
}
|
|
333
338
|
|
|
@@ -351,7 +356,9 @@
|
|
|
351
356
|
font-weight: 500;
|
|
352
357
|
font-family: inherit;
|
|
353
358
|
color: var(--prose-kbd);
|
|
354
|
-
box-shadow:
|
|
359
|
+
box-shadow:
|
|
360
|
+
0 0 0 1px rgb(var(--prose-kbd-shadows) / 10%),
|
|
361
|
+
0 3px 0 rgb(var(--prose-kbd-shadows) / 10%);
|
|
355
362
|
font-size: 0.875em;
|
|
356
363
|
border-radius: 0.3125rem;
|
|
357
364
|
padding-top: 0.1875em;
|
|
@@ -396,7 +403,7 @@
|
|
|
396
403
|
padding: 0;
|
|
397
404
|
font-weight: inherit;
|
|
398
405
|
color: inherit;
|
|
399
|
-
font-size: 1em
|
|
406
|
+
font-size: 1em;
|
|
400
407
|
font-family: inherit;
|
|
401
408
|
line-height: inherit;
|
|
402
409
|
padding-left: 0;
|
|
@@ -404,4 +411,4 @@
|
|
|
404
411
|
padding-top: 0;
|
|
405
412
|
padding-bottom: 0;
|
|
406
413
|
}
|
|
407
|
-
}
|
|
414
|
+
}
|
|
@@ -2,26 +2,27 @@ import type { Meta } from '@storybook/react-vite'
|
|
|
2
2
|
|
|
3
3
|
export const Quote = (): React.JSX.Element => {
|
|
4
4
|
return (
|
|
5
|
-
|
|
6
|
-
<div style={{
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
<div style={{ marginBottom: '48px' }}>
|
|
6
|
+
<div style={{ maxWidth: '700px', margin: '2rem auto' }} className="prose">
|
|
7
|
+
<h1>Heading 1</h1>
|
|
8
|
+
<p>
|
|
9
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
10
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
11
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
12
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
13
|
+
</p>
|
|
14
|
+
<blockquote>
|
|
15
|
+
This is some text inside a blockquote. We'll make this a little longer to see how it
|
|
16
|
+
looks when it wraps.
|
|
17
|
+
</blockquote>
|
|
18
|
+
<p>
|
|
19
|
+
This is a paragraph of text that we'll use for our typography storybook page. This is
|
|
20
|
+
a paragraph of text that we'll use for our typography storybook page. This is a
|
|
21
|
+
paragraph of text that we'll use for our typography storybook page. This is a
|
|
22
|
+
paragraph of text that we'll use for our typography storybook page.
|
|
23
|
+
</p>
|
|
23
24
|
</div>
|
|
24
|
-
|
|
25
|
+
</div>
|
|
25
26
|
)
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* UTILITY CLASSES
|
|
3
|
-
*
|
|
4
|
-
* A simple utility class collection. NOT designed as a
|
|
5
|
-
* replacement for Tailwind - but useful for small or simple
|
|
3
|
+
*
|
|
4
|
+
* A simple utility class collection. NOT designed as a
|
|
5
|
+
* replacement for Tailwind - but useful for small or simple
|
|
6
6
|
* projects as well as uikit development.
|
|
7
7
|
*/
|
|
8
8
|
@layer infonomic-utilities {
|
|
9
|
-
|
|
10
9
|
.sr-only {
|
|
11
10
|
position: absolute;
|
|
12
11
|
width: 1px;
|
|
@@ -34,7 +33,7 @@
|
|
|
34
33
|
.text {
|
|
35
34
|
color: var(--text);
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
|
|
38
37
|
.headings {
|
|
39
38
|
color: var(--headings);
|
|
40
39
|
}
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.dark .external-link::after,
|
|
61
|
-
|
|
60
|
+
[data-theme="dark"] .external-link::after {
|
|
62
61
|
background-image: url("/external-link-dark.svg");
|
|
63
62
|
}
|
|
64
63
|
|
|
@@ -132,7 +131,6 @@
|
|
|
132
131
|
color: var(--text-on-danger);
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
|
|
136
134
|
/* ========================================
|
|
137
135
|
TYPOGRAPHY UTILITIES
|
|
138
136
|
======================================== */
|
|
@@ -953,7 +951,6 @@
|
|
|
953
951
|
gap: var(--gap-12);
|
|
954
952
|
}
|
|
955
953
|
|
|
956
|
-
|
|
957
954
|
.gap-16 {
|
|
958
955
|
gap: var(--gap-16);
|
|
959
956
|
}
|
|
@@ -1041,7 +1038,6 @@
|
|
|
1041
1038
|
}
|
|
1042
1039
|
|
|
1043
1040
|
@media (min-width: 48rem) {
|
|
1044
|
-
|
|
1045
1041
|
.md\:grid {
|
|
1046
1042
|
display: grid;
|
|
1047
1043
|
}
|
|
@@ -1117,19 +1113,19 @@
|
|
|
1117
1113
|
.border {
|
|
1118
1114
|
border-width: var(--border-width-normal);
|
|
1119
1115
|
border-style: var(--border-style-solid);
|
|
1120
|
-
border-color: var(--border-color)
|
|
1116
|
+
border-color: var(--border-color);
|
|
1121
1117
|
}
|
|
1122
1118
|
|
|
1123
1119
|
.border-thin {
|
|
1124
1120
|
border-width: var(--border-width-thin);
|
|
1125
1121
|
border-style: var(--border-style-solid);
|
|
1126
|
-
border-color: var(--border-color)
|
|
1122
|
+
border-color: var(--border-color);
|
|
1127
1123
|
}
|
|
1128
1124
|
|
|
1129
1125
|
.border-thick {
|
|
1130
1126
|
border-width: var(--border-width-thick);
|
|
1131
1127
|
border-style: var(--border-style-solid);
|
|
1132
|
-
border-color: var(--border-color)
|
|
1128
|
+
border-color: var(--border-color);
|
|
1133
1129
|
}
|
|
1134
1130
|
|
|
1135
1131
|
.rounded-none {
|
|
@@ -1319,7 +1315,6 @@
|
|
|
1319
1315
|
.md\:shadow-xl {
|
|
1320
1316
|
box-shadow: var(--shadow-xl);
|
|
1321
1317
|
}
|
|
1322
|
-
|
|
1323
1318
|
}
|
|
1324
1319
|
|
|
1325
1320
|
/* ========================================
|
|
@@ -1407,4 +1402,4 @@
|
|
|
1407
1402
|
--ring-offset-shadow: var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--accent-400);
|
|
1408
1403
|
box-shadow: var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000);
|
|
1409
1404
|
}
|
|
1410
|
-
}
|
|
1405
|
+
}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* .storybook/preview.tsx
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { createContext, useContext, useMemo } from 'react'
|
|
8
7
|
import type { ReactNode } from 'react'
|
|
8
|
+
import { createContext, useContext, useMemo } from 'react'
|
|
9
9
|
|
|
10
10
|
enum Theme {
|
|
11
11
|
DARK = 'dark',
|
|
12
|
-
LIGHT = 'light'
|
|
12
|
+
LIGHT = 'light',
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
// ThemeContext
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
export default function objectsToArray(object: any): any[] {
|
|
2
|
-
|
|
2
|
+
const result: any[] = []
|
|
3
3
|
|
|
4
4
|
Object.values(object).forEach((value) => {
|
|
5
5
|
if (typeof value === 'string') {
|
|
6
|
-
result
|
|
6
|
+
result.push(value)
|
|
7
7
|
} else if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
|
8
|
-
result
|
|
8
|
+
result.push(...objectsToArray(value))
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
return undefined
|
|
12
10
|
})
|
|
13
11
|
|
|
14
12
|
return result
|
package/src/utils/polymorphic.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
will-change: transform, opacity;
|
|
26
26
|
|
|
27
27
|
&:focus {
|
|
28
|
-
box-shadow: var(--shadow-md)
|
|
28
|
+
box-shadow: var(--shadow-md);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&[data-state="open"][data-side="top"] {
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
gap: var(--spacing-8);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
|
|
59
58
|
.status-and-actions {
|
|
60
59
|
display: flex;
|
|
61
60
|
flex-direction: column;
|
|
@@ -124,7 +123,7 @@
|
|
|
124
123
|
|
|
125
124
|
.time-picker-scroll-area {
|
|
126
125
|
height: 280px;
|
|
127
|
-
padding-right: var(--spacing-16)
|
|
126
|
+
padding-right: var(--spacing-16);
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
.time-picker {
|
|
@@ -186,4 +185,4 @@
|
|
|
186
185
|
transform: translateX(0);
|
|
187
186
|
}
|
|
188
187
|
}
|
|
189
|
-
}
|
|
188
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* @file DatePicker component using react-day-picker and radix-ui
|
|
4
5
|
* Portions copyright (c) 2023 Maliksidk19 licensed under the MIT
|
|
@@ -6,21 +7,23 @@
|
|
|
6
7
|
* of https://github.com/Maliksidk19/shadcn-datetime-picker/
|
|
7
8
|
*/
|
|
8
9
|
|
|
10
|
+
import type React from 'react'
|
|
11
|
+
import { useEffect, useRef, useState } from 'react'
|
|
12
|
+
|
|
9
13
|
import cx from 'classnames'
|
|
10
14
|
import { format } from 'date-fns'
|
|
11
15
|
import { Popover } from 'radix-ui'
|
|
12
|
-
|
|
13
|
-
import { useEffect, useRef, useState } from 'react'
|
|
16
|
+
|
|
14
17
|
import { Button } from '../../components/button/button.js'
|
|
15
18
|
import { IconButton } from '../../components/button/icon-button.js'
|
|
16
19
|
import { Calendar } from '../../components/forms/calendar.js'
|
|
17
20
|
import { Input } from '../../components/forms/input.js'
|
|
18
21
|
import { InputAdornment } from '../../components/forms/input-adornment.js'
|
|
19
|
-
import type { Intent, Size, Variant } from '../../components/forms/@types/input.js'
|
|
20
22
|
import { ScrollArea } from '../../components/scroll-area/scroll-area.js'
|
|
21
23
|
import { CalendarIcon } from '../../icons/calendar-icon.js'
|
|
22
24
|
import { CloseIcon } from '../../icons/close-icon.js'
|
|
23
25
|
import styles from './datepicker.module.css'
|
|
26
|
+
import type { Intent, Size, Variant } from '../../components/forms/@types/input.js'
|
|
24
27
|
|
|
25
28
|
export interface DatePickerProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
26
29
|
id: string
|
|
@@ -208,7 +211,10 @@ export function DatePicker({
|
|
|
208
211
|
onSelect={(selectedDate: Date) => {
|
|
209
212
|
if (selectedDate) {
|
|
210
213
|
const [hours, minutes] = time.split(':')
|
|
211
|
-
selectedDate.setHours(
|
|
214
|
+
selectedDate.setHours(
|
|
215
|
+
Number.parseInt(hours, 10),
|
|
216
|
+
Number.parseInt(minutes, 10)
|
|
217
|
+
)
|
|
212
218
|
setDate(selectedDate)
|
|
213
219
|
setMonth(selectedDate)
|
|
214
220
|
handleOnDateChange(selectedDate)
|
|
@@ -243,7 +249,11 @@ export function DatePicker({
|
|
|
243
249
|
setTime(timeValue)
|
|
244
250
|
if (date) {
|
|
245
251
|
const newDate = new Date(date.getTime())
|
|
246
|
-
newDate.setHours(
|
|
252
|
+
newDate.setHours(
|
|
253
|
+
Number.parseInt(hour, 10),
|
|
254
|
+
Number.parseInt(minute, 10),
|
|
255
|
+
0
|
|
256
|
+
)
|
|
247
257
|
setDate(newDate)
|
|
248
258
|
handleOnDateChange(newDate)
|
|
249
259
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import type React from 'react'
|
|
4
|
-
|
|
5
|
-
import { createContext, useCallback, useContext, useState } from 'react'
|
|
6
|
-
|
|
7
4
|
import type { ReactNode } from 'react'
|
|
5
|
+
import { createContext, useCallback, useContext, useState } from 'react'
|
|
8
6
|
|
|
9
7
|
interface DrawerContextType {
|
|
10
8
|
drawers: string[]
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
|
|
2
3
|
/* eslint-disable @typescript-eslint/consistent-type-imports */
|
|
3
4
|
import type React from 'react'
|
|
4
5
|
import { useEffect } from 'react'
|
|
5
6
|
|
|
6
|
-
import cx from 'classnames'
|
|
7
|
-
|
|
8
7
|
import { useFocusTrap } from '@mantine/hooks'
|
|
9
|
-
import
|
|
10
|
-
|
|
8
|
+
import cx from 'classnames'
|
|
11
9
|
import type { HTMLMotionProps } from 'motion/react'
|
|
10
|
+
import { m } from 'motion/react'
|
|
12
11
|
|
|
13
12
|
import styles from './drawer.module.css'
|
|
14
13
|
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
opacity: 1;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
.drawer-container {
|
|
19
18
|
position: absolute;
|
|
20
19
|
right: 0;
|
|
@@ -59,7 +58,7 @@
|
|
|
59
58
|
|
|
60
59
|
.drawer-narrow .drawer-container {
|
|
61
60
|
width: calc(100% - 32px);
|
|
62
|
-
max-width: 400px
|
|
61
|
+
max-width: 400px;
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
.drawer-container[aria-hidden="true"] {
|
|
@@ -109,4 +108,4 @@
|
|
|
109
108
|
opacity: 1;
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
}
|
|
111
|
+
}
|