@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
import type React from 'react'
|
|
3
|
-
import { useState } from 'react'
|
|
4
3
|
|
|
5
4
|
import { TextArea } from './index.js'
|
|
6
5
|
|
|
@@ -12,40 +11,36 @@ export default {
|
|
|
12
11
|
|
|
13
12
|
export const Default = (): React.JSX.Element => {
|
|
14
13
|
return (
|
|
15
|
-
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</div>
|
|
28
|
-
</>
|
|
14
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
15
|
+
<TextArea
|
|
16
|
+
required
|
|
17
|
+
id="message"
|
|
18
|
+
name="message"
|
|
19
|
+
rows={5}
|
|
20
|
+
label="Message"
|
|
21
|
+
helpText="Please enter a message."
|
|
22
|
+
disabled={false}
|
|
23
|
+
error={false}
|
|
24
|
+
/>
|
|
25
|
+
</div>
|
|
29
26
|
)
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
// biome-ignore lint/suspicious/noShadowRestrictedNames: <explanation>
|
|
33
30
|
export const Error = (): React.JSX.Element => {
|
|
34
31
|
return (
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</div>
|
|
49
|
-
</>
|
|
32
|
+
<div style={{ maxWidth: '600px', margin: '2rem auto' }}>
|
|
33
|
+
<TextArea
|
|
34
|
+
required
|
|
35
|
+
id="message"
|
|
36
|
+
name="message"
|
|
37
|
+
rows={5}
|
|
38
|
+
label="Message"
|
|
39
|
+
helpText="Please enter a message."
|
|
40
|
+
disabled={false}
|
|
41
|
+
error={true}
|
|
42
|
+
errorText="Messages must be longer than 15 characers..."
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
50
45
|
)
|
|
51
46
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import cx from 'classnames'
|
|
2
1
|
import type * as React from 'react'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import cx from 'classnames'
|
|
4
|
+
|
|
5
5
|
import { ErrorText } from './error-text.js'
|
|
6
6
|
import { HelpText } from './help-text.js'
|
|
7
7
|
import inputStyles from './input.module.css'
|
|
8
8
|
import { Label } from './label.js'
|
|
9
9
|
import styles from './text-area.module.css'
|
|
10
|
+
import type { Intent, Variant } from './@types/input.js'
|
|
10
11
|
|
|
11
12
|
export interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
12
13
|
id: string
|
|
@@ -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
|
.alert {
|
|
@@ -112,4 +117,4 @@
|
|
|
112
117
|
--alert-border: var(--stroke-danger);
|
|
113
118
|
--alert-background: var(--fill-danger-weak);
|
|
114
119
|
}
|
|
115
|
-
}
|
|
120
|
+
}
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react-vite'
|
|
2
1
|
import type React from 'react'
|
|
3
2
|
|
|
4
|
-
import
|
|
3
|
+
import type { Meta } from '@storybook/react-vite'
|
|
5
4
|
|
|
5
|
+
import { type Intent, intent } from '../@types/shared.js'
|
|
6
6
|
import { Alert as AlertComponent } from './alert.js'
|
|
7
7
|
|
|
8
8
|
export const Alerts = (): React.JSX.Element => {
|
|
9
9
|
return (
|
|
10
10
|
<>
|
|
11
|
-
<div
|
|
11
|
+
<div
|
|
12
|
+
style={{
|
|
13
|
+
maxWidth: '600px',
|
|
14
|
+
margin: '2rem auto',
|
|
15
|
+
borderRadius: '6px',
|
|
16
|
+
backgroundColor: 'var(--background)',
|
|
17
|
+
padding: '1rem',
|
|
18
|
+
}}
|
|
19
|
+
>
|
|
12
20
|
{intent.map((intent: Intent) => {
|
|
13
21
|
if (intent !== 'noeffect') {
|
|
14
22
|
return (
|
|
@@ -25,7 +33,16 @@ export const Alerts = (): React.JSX.Element => {
|
|
|
25
33
|
This is an info alert with a title and with some additional text here.
|
|
26
34
|
</AlertComponent>
|
|
27
35
|
</div>
|
|
28
|
-
<div
|
|
36
|
+
<div
|
|
37
|
+
className="dark"
|
|
38
|
+
style={{
|
|
39
|
+
maxWidth: '600px',
|
|
40
|
+
margin: '2rem auto',
|
|
41
|
+
borderRadius: '6px',
|
|
42
|
+
backgroundColor: 'var(--theme-800)',
|
|
43
|
+
padding: '1rem',
|
|
44
|
+
}}
|
|
45
|
+
>
|
|
29
46
|
{intent.map((intent: Intent) => {
|
|
30
47
|
if (intent !== 'noeffect') {
|
|
31
48
|
return (
|
|
@@ -1,18 +1,18 @@
|
|
|
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'
|
|
5
|
+
|
|
6
|
+
import cx from 'classnames'
|
|
7
|
+
|
|
6
8
|
import { CloseIcon } from '../../icons/close-icon'
|
|
7
9
|
import { DangerIcon } from '../../icons/danger-icon'
|
|
8
10
|
import { InfoIcon } from '../../icons/info-icon'
|
|
9
11
|
import { SuccessIcon } from '../../icons/success-icon'
|
|
10
12
|
import { WarningIcon } from '../../icons/warning-icon'
|
|
11
13
|
import { Button } from '../button/button.js'
|
|
12
|
-
|
|
13
|
-
import type { Intent } from './@types/alert.js'
|
|
14
|
-
|
|
15
14
|
import styles from './alert.module.css'
|
|
15
|
+
import type { Intent } from './@types/alert.js'
|
|
16
16
|
|
|
17
17
|
export interface AlertProps {
|
|
18
18
|
intent?: Intent
|
|
@@ -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
|
/* Positions are relative to the toast viewport which is set
|
|
@@ -76,7 +81,6 @@
|
|
|
76
81
|
fill: white;
|
|
77
82
|
}
|
|
78
83
|
|
|
79
|
-
|
|
80
84
|
.title {
|
|
81
85
|
display: flex;
|
|
82
86
|
padding: 0 12px 0 8px;
|
|
@@ -128,7 +132,6 @@
|
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
@media (min-width: 48rem) {
|
|
131
|
-
|
|
132
135
|
.root.top-right[data-state="open"],
|
|
133
136
|
.root.bottom-right[data-state="open"] {
|
|
134
137
|
animation: slideInFromRight 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
@@ -172,7 +175,6 @@
|
|
|
172
175
|
width: 100%;
|
|
173
176
|
max-width: 390px;
|
|
174
177
|
}
|
|
175
|
-
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
@keyframes slideInFromRight {
|
|
@@ -234,4 +236,4 @@
|
|
|
234
236
|
opacity: 0;
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
|
-
}
|
|
239
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2
2
|
|
|
3
|
-
import type { Meta } from '@storybook/react-vite'
|
|
4
3
|
import React from 'react'
|
|
5
4
|
|
|
6
|
-
import {
|
|
5
|
+
import type { Meta } from '@storybook/react-vite'
|
|
7
6
|
|
|
7
|
+
import { Button } from '../button/button.js'
|
|
8
8
|
import { Toast as ToastComponent } from './toast.js'
|
|
9
9
|
|
|
10
10
|
export const Toast = (): React.JSX.Element => {
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import React from 'react'
|
|
4
|
+
|
|
3
5
|
import { useFocusTrap, useMergedRef } from '@mantine/hooks'
|
|
4
6
|
import cx from 'classnames'
|
|
5
7
|
import { Toast as ToastPrimitive } from 'radix-ui'
|
|
6
|
-
|
|
8
|
+
|
|
7
9
|
import { CloseIcon } from '../../icons/close-icon'
|
|
8
10
|
import { DangerIcon } from '../../icons/danger-icon'
|
|
9
11
|
import { InfoIcon } from '../../icons/info-icon'
|
|
10
12
|
import { SuccessIcon } from '../../icons/success-icon'
|
|
11
13
|
import { WarningIcon } from '../../icons/warning-icon'
|
|
12
14
|
import { Button } from '../button/button.js'
|
|
13
|
-
import type { IconType, Intent, OnOpenChange, Position } from './@types/toast.js'
|
|
14
15
|
import styles from './toast.module.css'
|
|
16
|
+
import type { IconType, Intent, OnOpenChange, Position } from './@types/toast.js'
|
|
15
17
|
|
|
16
18
|
const toastIcons = {
|
|
17
19
|
success: SuccessIcon,
|
|
@@ -63,7 +65,7 @@ export const Toast = function Toast({
|
|
|
63
65
|
if (onOpenChange != null) onOpenChange(false)
|
|
64
66
|
}
|
|
65
67
|
|
|
66
|
-
const
|
|
68
|
+
const _handleOnChange = (open: boolean): void => {
|
|
67
69
|
console.log('handleOnChange', { open })
|
|
68
70
|
if (open) {
|
|
69
71
|
timerRef.current = window.setTimeout(() => {
|
|
@@ -21,24 +21,25 @@ const BodyLock = (): null => {
|
|
|
21
21
|
const classList = document.body.classList
|
|
22
22
|
appBar = document.getElementById('app-bar')
|
|
23
23
|
classList.add('overlay-shown')
|
|
24
|
-
if(appBar != null) appBar.classList.add('app-bar-overlay-shown')
|
|
25
|
-
if (mediaMatch.matches) {
|
|
24
|
+
if (appBar != null) appBar.classList.add('app-bar-overlay-shown')
|
|
25
|
+
if (mediaMatch.matches) {
|
|
26
26
|
classList.add('overlay-shown--desktop')
|
|
27
27
|
if (appBar != null) {
|
|
28
28
|
appBar.classList.add('app-bar-overlay-shown--desktop')
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
} else {
|
|
31
31
|
classList.add('overlay-shown--mobile')
|
|
32
32
|
if (appBar != null) {
|
|
33
|
-
|
|
33
|
+
appBar.classList.add('app-bar-overlay-shown--mobile')
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
return () => {
|
|
37
37
|
classList.remove('overlay-shown')
|
|
38
|
-
if(appBar != null) appBar.classList.remove('app-bar-overlay-shown')
|
|
38
|
+
if (appBar != null) appBar.classList.remove('app-bar-overlay-shown')
|
|
39
39
|
if (mediaMatch.matches) {
|
|
40
40
|
classList.remove('overlay-shown--desktop')
|
|
41
|
-
if (appBar != null)
|
|
41
|
+
if (appBar != null)
|
|
42
|
+
appBar.classList.remove('app-bar-overlay-shown', 'app-bar-overlay-shown--desktop')
|
|
42
43
|
} else {
|
|
43
44
|
classList.remove('overlay-shown--mobile')
|
|
44
45
|
if (appBar != null) appBar.classList.remove('app-bar-overlay-shown--mobile')
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import cx from 'classnames'
|
|
4
3
|
import type React from 'react'
|
|
5
4
|
|
|
6
|
-
import
|
|
5
|
+
import cx from 'classnames'
|
|
7
6
|
|
|
7
|
+
import { usePager } from './pagination'
|
|
8
8
|
import styles from './pagination.module.css'
|
|
9
9
|
|
|
10
10
|
export function Ellipses(): React.JSX.Element {
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
4
4
|
|
|
5
|
+
import type React from 'react'
|
|
6
|
+
|
|
5
7
|
import { DoubleArrowLeftIcon } from '@radix-ui/react-icons'
|
|
6
8
|
import { Slot } from '@radix-ui/react-slot'
|
|
7
9
|
import cx from 'classnames'
|
|
8
|
-
import type React from 'react'
|
|
9
|
-
import type { PagerButtonProps, RefType } from './pagination'
|
|
10
|
-
import { usePager } from './pagination'
|
|
11
10
|
|
|
11
|
+
import { usePager } from './pagination'
|
|
12
12
|
import styles from './pagination.module.css'
|
|
13
|
+
import type { PagerButtonProps, RefType } from './pagination'
|
|
13
14
|
|
|
14
15
|
export const FirstButton = ({
|
|
15
16
|
ref,
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
4
4
|
|
|
5
|
+
import type React from 'react'
|
|
6
|
+
|
|
5
7
|
import { DoubleArrowRightIcon } from '@radix-ui/react-icons'
|
|
6
8
|
import { Slot } from '@radix-ui/react-slot'
|
|
7
9
|
import cx from 'classnames'
|
|
8
|
-
import type React from 'react'
|
|
9
|
-
import type { PagerButtonProps, RefType } from './pagination'
|
|
10
|
-
import { usePager } from './pagination'
|
|
11
10
|
|
|
11
|
+
import { usePager } from './pagination'
|
|
12
12
|
import styles from './pagination.module.css'
|
|
13
|
+
import type { PagerButtonProps, RefType } from './pagination'
|
|
13
14
|
|
|
14
15
|
export type LastButtonProps = PagerButtonProps & {
|
|
15
16
|
count: number
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type React from 'react'
|
|
4
|
+
|
|
3
5
|
import { ChevronRightIcon } from '@radix-ui/react-icons'
|
|
4
6
|
import { Slot } from '@radix-ui/react-slot'
|
|
5
7
|
import cx from 'classnames'
|
|
6
|
-
import type React from 'react'
|
|
7
|
-
import type { PagerButtonProps, RefType } from './pagination'
|
|
8
|
-
import { usePager } from './pagination'
|
|
9
8
|
|
|
9
|
+
import { usePager } from './pagination'
|
|
10
10
|
import styles from './pagination.module.css'
|
|
11
|
+
import type { PagerButtonProps, RefType } from './pagination'
|
|
11
12
|
|
|
12
13
|
export type NextButtonProps = PagerButtonProps & {
|
|
13
14
|
page: number | null
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type React from 'react'
|
|
4
|
+
|
|
3
5
|
import { Slot } from '@radix-ui/react-slot'
|
|
4
6
|
import cx from 'classnames'
|
|
5
|
-
import type React from 'react'
|
|
6
|
-
import { useMediaQuery } from '../../hooks/use-media-query'
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import { useMediaQuery } from '../../hooks/use-media-query'
|
|
9
9
|
import { usePager } from './pagination'
|
|
10
|
-
|
|
11
10
|
import styles from './pagination.module.css'
|
|
11
|
+
import type { PagerButtonProps, RefType } from './pagination'
|
|
12
12
|
|
|
13
13
|
export type NumberButtonProps = PagerButtonProps & {
|
|
14
14
|
page: number | null
|
|
@@ -74,7 +74,7 @@ export const NumberButton = ({
|
|
|
74
74
|
aria-label={currentPage === page ? `Current Page, Page ${page}` : `Page ${page}`}
|
|
75
75
|
{...rest}
|
|
76
76
|
>
|
|
77
|
-
{(asChild ?? false) ? children :
|
|
77
|
+
{(asChild ?? false) ? children : page}
|
|
78
78
|
</Comp>
|
|
79
79
|
</li>
|
|
80
80
|
)
|
|
@@ -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
|
.pagination-root {
|
|
@@ -78,7 +83,6 @@
|
|
|
78
83
|
font-size: var(--font-size-sm);
|
|
79
84
|
}
|
|
80
85
|
|
|
81
|
-
|
|
82
86
|
.previous-button,
|
|
83
87
|
.last-button,
|
|
84
88
|
.next-button,
|
|
@@ -118,14 +122,12 @@
|
|
|
118
122
|
background-color: var(--fill-primary-strong);
|
|
119
123
|
}
|
|
120
124
|
|
|
121
|
-
|
|
122
125
|
/* Opinionated mobile */
|
|
123
126
|
.mobile-toggle {
|
|
124
127
|
display: none;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
|
-
@media(min-width: 40rem) {
|
|
128
|
-
|
|
130
|
+
@media (min-width: 40rem) {
|
|
129
131
|
.mobile-toggle {
|
|
130
132
|
display: flex;
|
|
131
133
|
}
|
|
@@ -146,4 +148,4 @@
|
|
|
146
148
|
border-color: var(--canvas-700);
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
|
-
}
|
|
151
|
+
}
|
|
@@ -19,7 +19,7 @@ export default meta
|
|
|
19
19
|
const DefaultPager = (): React.JSX.Element => {
|
|
20
20
|
const [page, setPage] = React.useState(1)
|
|
21
21
|
|
|
22
|
-
const handlePageChange = (
|
|
22
|
+
const handlePageChange = (_event: any, number: number): void => {
|
|
23
23
|
setPage(number)
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -70,7 +70,7 @@ const DefaultPager = (): React.JSX.Element => {
|
|
|
70
70
|
const ClassicPager = (): React.JSX.Element => {
|
|
71
71
|
const [page, setPage] = React.useState(1)
|
|
72
72
|
|
|
73
|
-
const handlePageChange = (
|
|
73
|
+
const handlePageChange = (_event: any, number: number): void => {
|
|
74
74
|
setPage(number)
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -124,7 +124,7 @@ const ClassicPager = (): React.JSX.Element => {
|
|
|
124
124
|
const DashboardPager = (): React.JSX.Element => {
|
|
125
125
|
const [page, setPage] = React.useState(1)
|
|
126
126
|
|
|
127
|
-
const handlePageChange = (
|
|
127
|
+
const handlePageChange = (_event: any, number: number): void => {
|
|
128
128
|
setPage(number)
|
|
129
129
|
}
|
|
130
130
|
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
-
import cx from 'classnames'
|
|
4
3
|
// usePagination hook from...
|
|
5
4
|
// https://github.com/mui/material-ui/blob/master/packages/mui-material/src/usePagination/usePagination.js
|
|
6
5
|
// https://github.com/mui/material-ui/blob/master/LICENSE
|
|
7
6
|
/* eslint-disable react/jsx-pascal-case */
|
|
8
7
|
import React, { useContext } from 'react'
|
|
9
|
-
|
|
8
|
+
|
|
9
|
+
import cx from 'classnames'
|
|
10
10
|
|
|
11
11
|
import { Ellipses } from './ellipses.js'
|
|
12
12
|
import { FirstButton } from './first-button'
|
|
13
|
-
import type { UsePaginationItem, UsePaginationProps } from './hooks/types/usePagination'
|
|
14
13
|
import { usePagination } from './hooks/usePagination'
|
|
15
14
|
import { LastButton } from './last-button'
|
|
16
15
|
import { NextButton } from './next-button'
|
|
17
16
|
import { NumberButton } from './number-button'
|
|
18
17
|
import styles from './pagination.module.css'
|
|
19
18
|
import { PreviousButton } from './previous-button'
|
|
19
|
+
import type { Variant } from './@types'
|
|
20
|
+
import type { UsePaginationItem, UsePaginationProps } from './hooks/types/usePagination'
|
|
20
21
|
|
|
21
22
|
const PAGINATION_NAME = 'Pagination'
|
|
22
23
|
const ROOT_NAME = 'Root'
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import type React from 'react'
|
|
4
|
+
|
|
3
5
|
import { ChevronLeftIcon } from '@radix-ui/react-icons'
|
|
4
6
|
import { Slot } from '@radix-ui/react-slot'
|
|
5
7
|
import cx from 'classnames'
|
|
6
|
-
import type React from 'react'
|
|
7
|
-
import type { PagerButtonProps, RefType } from './pagination'
|
|
8
|
-
import { usePager } from './pagination'
|
|
9
8
|
|
|
9
|
+
import { usePager } from './pagination'
|
|
10
10
|
import styles from './pagination.module.css'
|
|
11
|
+
import type { PagerButtonProps, RefType } from './pagination'
|
|
11
12
|
|
|
12
13
|
export const PreviousButton = ({
|
|
13
14
|
ref,
|
|
@@ -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
|
.root {
|
|
@@ -61,4 +66,4 @@
|
|
|
61
66
|
.corner {
|
|
62
67
|
background: var(--surface-panel-scrollbar);
|
|
63
68
|
}
|
|
64
|
-
}
|
|
69
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type React from 'react'
|
|
2
|
+
|
|
1
3
|
import cx from 'classnames'
|
|
2
4
|
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui'
|
|
3
5
|
|
|
4
|
-
import type React from 'react'
|
|
5
6
|
import styles from './scroll-area.module.css'
|
|
6
7
|
|
|
7
8
|
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@layer infonomic-base,
|
|
1
|
+
@layer infonomic-base,
|
|
2
|
+
infonomic-utilities,
|
|
3
|
+
infonomic-theme,
|
|
4
|
+
infonomic-typography,
|
|
5
|
+
infonomic-components;
|
|
2
6
|
|
|
3
7
|
@layer infonomic-components {
|
|
4
8
|
.scroll-to-top,
|
|
@@ -83,4 +87,4 @@
|
|
|
83
87
|
right: 22px;
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
|
-
}
|
|
90
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
|
+
import { type ComponentProps, type MouseEvent, useEffect, useState } from 'react'
|
|
4
|
+
|
|
3
5
|
import cx from 'classnames'
|
|
4
|
-
import { type ComponentProps, useEffect, useState } from 'react'
|
|
5
6
|
|
|
6
7
|
import styles from './scroll-to-top.module.css'
|
|
7
8
|
|
|
@@ -28,8 +29,9 @@ export function ScrollToTop({
|
|
|
28
29
|
...props
|
|
29
30
|
}: ScrollToTopProps) {
|
|
30
31
|
const [show, setShow] = useState(false)
|
|
32
|
+
const iconTitle = ariaLabel.trim() ? ariaLabel : 'Scroll to top'
|
|
31
33
|
|
|
32
|
-
const handleOnClick = (e:
|
|
34
|
+
const handleOnClick = (e: MouseEvent<HTMLButtonElement>): void => {
|
|
33
35
|
window.scrollTo({ top: offset, left: 0, behavior: 'smooth' })
|
|
34
36
|
onClick?.(e)
|
|
35
37
|
}
|
|
@@ -76,6 +78,7 @@ export function ScrollToTop({
|
|
|
76
78
|
focusable="false"
|
|
77
79
|
viewBox="0 0 51 32"
|
|
78
80
|
>
|
|
81
|
+
<title>{iconTitle}</title>
|
|
79
82
|
<path d="M25.4,9.8L45.6,30l4.5-4.5L25.4,0.8L0.8,25.4L5.3,30L25.4,9.8z" />
|
|
80
83
|
</svg>
|
|
81
84
|
</span>
|
|
@@ -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
|
.section,
|
|
@@ -6,4 +11,4 @@
|
|
|
6
11
|
width: 100%;
|
|
7
12
|
position: relative;
|
|
8
13
|
}
|
|
9
|
-
}
|
|
14
|
+
}
|