@infonomic/uikit 6.8.1 → 6.9.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/README.md +183 -19
- package/dist/components/accordion/accordion.js +11 -11
- package/dist/components/accordion/accordion.module.css +11 -1
- package/dist/components/accordion/accordion_module.css +3 -1
- package/dist/components/avatar/avatar.js +5 -5
- package/dist/components/avatar/avatar.module.css +9 -4
- package/dist/components/avatar/avatar_module.css +3 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/badge/badge.module.css +9 -4
- package/dist/components/badge/badge_module.css +3 -1
- package/dist/components/button/button-group.d.ts +1 -1
- package/dist/components/button/button-group.js +2 -2
- package/dist/components/button/button-group.module.css +11 -1
- package/dist/components/button/button-group_module.css +4 -2
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/button.module.css +9 -4
- package/dist/components/button/button_module.css +3 -1
- package/dist/components/button/combo-button.d.ts +1 -1
- package/dist/components/button/combo-button.js +8 -8
- package/dist/components/button/combo-button.module.css +11 -1
- package/dist/components/button/combo-button_module.css +3 -1
- package/dist/components/button/control-buttons.js +4 -4
- package/dist/components/button/control-buttons.module.css +11 -1
- package/dist/components/button/control-buttons_module.css +3 -1
- package/dist/components/button/copy-button.js +3 -3
- package/dist/components/button/copy-button.module.css +9 -4
- package/dist/components/button/copy-button_module.css +3 -1
- package/dist/components/button/icon-button.js +2 -2
- package/dist/components/button/index.d.ts +5 -5
- package/dist/components/card/card.js +7 -7
- package/dist/components/card/card.module.css +9 -4
- package/dist/components/card/card_module.css +3 -1
- package/dist/components/chips/chip.js +6 -6
- package/dist/components/chips/chip.module.css +9 -4
- package/dist/components/chips/chip_module.css +3 -1
- package/dist/components/container/container.js +2 -2
- package/dist/components/container/container.module.css +9 -4
- package/dist/components/container/container_module.css +6 -4
- package/dist/components/dropdown/dropdown.js +20 -20
- package/dist/components/dropdown/dropdown.module.css +9 -4
- package/dist/components/dropdown/dropdown_module.css +3 -1
- package/dist/components/hamburger/hamburger.js +4 -4
- package/dist/components/hamburger/hamburger.module.css +9 -4
- package/dist/components/hamburger/hamburger_module.css +3 -1
- package/dist/components/inputs/autocomplete.js +10 -10
- package/dist/components/inputs/autocomplete.module.css +9 -4
- package/dist/components/inputs/autocomplete_module.css +3 -1
- package/dist/components/inputs/calendar.js +24 -24
- package/dist/components/inputs/calendar.module.css +9 -4
- package/dist/components/inputs/calendar_module.css +4 -2
- package/dist/components/inputs/checkbox-group.js +2 -2
- package/dist/components/inputs/checkbox-group.module.css +9 -4
- package/dist/components/inputs/checkbox-group_module.css +3 -1
- package/dist/components/inputs/checkbox.js +6 -6
- package/dist/components/inputs/checkbox.module.css +9 -4
- package/dist/components/inputs/checkbox_module.css +3 -1
- package/dist/components/inputs/error-text.js +2 -2
- package/dist/components/inputs/error-text.module.css +9 -4
- package/dist/components/inputs/error-text_module.css +3 -1
- package/dist/components/inputs/help-text.js +2 -2
- package/dist/components/inputs/help-text.module.css +9 -4
- package/dist/components/inputs/help-text_module.css +3 -1
- package/dist/components/inputs/input-adornment.js +2 -2
- package/dist/components/inputs/input-adornment.module.css +9 -4
- package/dist/components/inputs/input-adornment_module.css +3 -1
- package/dist/components/inputs/input-password.d.ts +18 -2
- package/dist/components/inputs/input-password.d.ts.map +1 -1
- package/dist/components/inputs/input-password.js +19 -11
- package/dist/components/inputs/input-password.module.css +55 -0
- package/dist/components/inputs/input-password.module.js +5 -0
- package/dist/components/inputs/input-password_module.css +25 -0
- package/dist/components/inputs/input.d.ts +1 -1
- package/dist/components/inputs/input.js +6 -6
- package/dist/components/inputs/input.module.css +9 -4
- package/dist/components/inputs/input_module.css +3 -1
- package/dist/components/inputs/label.js +2 -2
- package/dist/components/inputs/label.module.css +9 -4
- package/dist/components/inputs/label_module.css +3 -1
- package/dist/components/inputs/radio-group.d.ts +1 -1
- package/dist/components/inputs/radio-group.js +3 -3
- package/dist/components/inputs/radio-group.module.css +9 -4
- package/dist/components/inputs/radio-group_module.css +3 -1
- package/dist/components/inputs/select.js +6 -6
- package/dist/components/inputs/select.module.css +9 -4
- package/dist/components/inputs/select_module.css +3 -1
- package/dist/components/inputs/text-area.js +3 -3
- package/dist/components/inputs/text-area.module.css +9 -4
- package/dist/components/inputs/text-area_module.css +3 -1
- package/dist/components/notifications/alert.js +11 -11
- package/dist/components/notifications/alert.module.css +9 -4
- package/dist/components/notifications/alert_module.css +4 -2
- package/dist/components/notifications/toast.js +8 -8
- package/dist/components/notifications/toast.module.css +9 -4
- package/dist/components/notifications/toast_module.css +5 -3
- package/dist/components/pager/ellipses.js +2 -2
- package/dist/components/pager/first-button.d.ts +1 -1
- package/dist/components/pager/first-button.js +2 -2
- package/dist/components/pager/hooks/usePagination.d.ts +1 -1
- package/dist/components/pager/last-button.d.ts +1 -1
- package/dist/components/pager/last-button.js +2 -2
- package/dist/components/pager/next-button.d.ts +1 -1
- package/dist/components/pager/next-button.js +2 -2
- package/dist/components/pager/number-button.d.ts +1 -1
- package/dist/components/pager/number-button.js +3 -3
- package/dist/components/pager/pagination.d.ts +7 -7
- package/dist/components/pager/pagination.js +3 -3
- package/dist/components/pager/pagination.module.css +9 -4
- package/dist/components/pager/pagination_module.css +4 -2
- package/dist/components/pager/previous-button.d.ts +1 -1
- package/dist/components/pager/previous-button.js +2 -2
- package/dist/components/scroll-area/scroll-area.js +8 -8
- package/dist/components/scroll-area/scroll-area.module.css +9 -4
- package/dist/components/scroll-area/scroll-area_module.css +3 -1
- package/dist/components/scroll-to-top/scroll-to-top.js +2 -2
- package/dist/components/scroll-to-top/scroll-to-top.module.css +9 -3
- package/dist/components/scroll-to-top/scroll-to-top_module.css +4 -2
- package/dist/components/section/section.js +2 -2
- package/dist/components/section/section.module.css +9 -4
- package/dist/components/section/section_module.css +3 -1
- package/dist/components/shimmer/shimmer.js +4 -4
- package/dist/components/shimmer/shimmer.module.css +9 -4
- package/dist/components/shimmer/shimmer_module.css +3 -1
- package/dist/components/table/table.js +10 -10
- package/dist/components/table/table.module.css +9 -4
- package/dist/components/table/table_module.css +3 -1
- package/dist/components/tabs/tabs.js +5 -5
- package/dist/components/tabs/tabs.module.css +9 -4
- package/dist/components/tabs/tabs_module.css +3 -1
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/components/tooltip/tooltip.module.css +9 -4
- package/dist/components/tooltip/tooltip_module.css +3 -1
- package/dist/css-layers.d.ts +23 -0
- package/dist/css-layers.d.ts.map +1 -0
- package/dist/css-layers.js +14 -0
- package/dist/icons/activity-icon.js +3 -3
- package/dist/icons/ai-icon.js +3 -3
- package/dist/icons/calendar-icon.js +3 -3
- package/dist/icons/check-icon.js +3 -3
- package/dist/icons/chevron-down-icon.js +3 -3
- package/dist/icons/chevron-left-double-icon.js +3 -3
- package/dist/icons/chevron-left-icon.js +3 -3
- package/dist/icons/chevron-right-double-icon.js +3 -3
- package/dist/icons/chevron-right-icon.js +3 -3
- package/dist/icons/chevron-up-icon.js +3 -3
- package/dist/icons/chevrons-up-down.js +3 -3
- package/dist/icons/close-icon.js +3 -3
- package/dist/icons/copy-icon.js +3 -3
- package/dist/icons/danger-icon.js +3 -3
- package/dist/icons/dashboard-icon.js +3 -3
- package/dist/icons/delete-icon.js +3 -3
- package/dist/icons/document-icon.js +3 -3
- package/dist/icons/download-icon.js +3 -3
- package/dist/icons/edit-icon.js +3 -3
- package/dist/icons/ellipsis-icon.js +3 -3
- package/dist/icons/email-icon.js +3 -3
- package/dist/icons/external-link-icon.js +3 -3
- package/dist/icons/eye-closed-icon.js +3 -3
- package/dist/icons/eye-open-icon.js +3 -3
- package/dist/icons/github-icon.js +3 -3
- package/dist/icons/globe-icon.js +3 -3
- package/dist/icons/google-icon.js +2 -2
- package/dist/icons/gripper-vertical-icon.js +3 -3
- package/dist/icons/history-icon.js +3 -3
- package/dist/icons/home-icon.js +3 -3
- package/dist/icons/icon-element.js +2 -2
- package/dist/icons/icons.module.css +11 -1
- package/dist/icons/icons_module.css +3 -1
- package/dist/icons/info-icon.js +3 -3
- package/dist/icons/infonomic-icon.js +3 -3
- package/dist/icons/light-icon.js +3 -3
- package/dist/icons/location-pin-icon.js +3 -3
- package/dist/icons/markdown-icon.js +3 -3
- package/dist/icons/moon-icon.js +3 -3
- package/dist/icons/plus-icon.js +3 -3
- package/dist/icons/primary-icon.js +3 -3
- package/dist/icons/refresh-icon.js +3 -3
- package/dist/icons/return-icon.js +3 -3
- package/dist/icons/roles-icon.js +3 -3
- package/dist/icons/search-icon.js +3 -3
- package/dist/icons/search-menu-icon.js +3 -3
- package/dist/icons/settings-gear-icon.js +3 -3
- package/dist/icons/settings-sliders-icon.js +3 -3
- package/dist/icons/sign-out-icon.js +3 -3
- package/dist/icons/stop-icon.js +3 -3
- package/dist/icons/stopwatch-icon.d.ts +1 -1
- package/dist/icons/stopwatch-icon.js +3 -3
- package/dist/icons/success-icon.js +3 -3
- package/dist/icons/user-icon.js +3 -3
- package/dist/icons/users-icon.js +3 -3
- package/dist/icons/wallet-icon.js +3 -3
- package/dist/icons/warning-icon.js +3 -3
- package/dist/icons/x-icon.js +3 -3
- package/dist/loaders/ellipses.js +3 -3
- package/dist/loaders/ellipses.module.css +9 -4
- package/dist/loaders/ellipses_module.css +3 -1
- package/dist/loaders/ring.js +3 -3
- package/dist/loaders/ring.module.css +9 -4
- package/dist/loaders/ring_module.css +3 -1
- package/dist/loaders/spinner.js +4 -4
- package/dist/loaders/spinner.module.css +9 -4
- package/dist/loaders/spinner_module.css +3 -1
- package/dist/react.d.ts +14 -14
- package/dist/styles/components-vanilla.css +1 -1
- package/dist/styles/reset.css +1 -1
- package/dist/styles/styles.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/widgets/datepicker/datepicker.d.ts +42 -1
- package/dist/widgets/datepicker/datepicker.d.ts.map +1 -1
- package/dist/widgets/datepicker/datepicker.js +46 -16
- package/dist/widgets/datepicker/datepicker.module.css +21 -2
- package/dist/widgets/datepicker/datepicker.module.js +1 -0
- package/dist/widgets/datepicker/datepicker_module.css +7 -2
- package/dist/widgets/drawer/drawer-container.js +2 -2
- package/dist/widgets/drawer/drawer-content.js +2 -2
- package/dist/widgets/drawer/drawer-header.js +2 -2
- package/dist/widgets/drawer/drawer-top-actions.js +2 -2
- package/dist/widgets/drawer/drawer.d.ts +4 -4
- package/dist/widgets/drawer/drawer.js +3 -3
- package/dist/widgets/drawer/drawer.module.css +11 -1
- package/dist/widgets/drawer/drawer_module.css +4 -2
- package/dist/widgets/modal/modal-actions.js +2 -2
- package/dist/widgets/modal/modal-container.js +2 -2
- package/dist/widgets/modal/modal-content.js +2 -2
- package/dist/widgets/modal/modal-context.d.ts +20 -0
- package/dist/widgets/modal/modal-context.d.ts.map +1 -0
- package/dist/widgets/modal/modal-context.js +4 -0
- package/dist/widgets/modal/modal-header.d.ts +1 -1
- package/dist/widgets/modal/modal-header.d.ts.map +1 -1
- package/dist/widgets/modal/modal-header.js +25 -3
- package/dist/widgets/modal/modal.d.ts +13 -8
- package/dist/widgets/modal/modal.d.ts.map +1 -1
- package/dist/widgets/modal/modal.js +11 -7
- package/dist/widgets/modal/modal.module.css +11 -1
- package/dist/widgets/modal/modal_module.css +5 -3
- package/dist/widgets/timeline/timeline.js +8 -8
- package/dist/widgets/timeline/timeline.module.css +9 -4
- package/dist/widgets/timeline/timeline_module.css +3 -1
- package/package.json +46 -33
- package/src/components/accordion/accordion.module.css +11 -1
- package/src/components/accordion/accordion.tsx +1 -1
- package/src/components/avatar/avatar.module.css +9 -4
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/badge/badge.module.css +9 -4
- package/src/components/badge/badge.tsx +1 -1
- package/src/components/button/button-group.module.css +11 -1
- package/src/components/button/button-group.tsx +1 -1
- package/src/components/button/button.module.css +9 -4
- package/src/components/button/button.tsx +1 -1
- package/src/components/button/combo-button.module.css +11 -1
- package/src/components/button/combo-button.tsx +1 -1
- package/src/components/button/control-buttons.module.css +11 -1
- package/src/components/button/control-buttons.tsx +1 -1
- package/src/components/button/copy-button.module.css +9 -4
- package/src/components/button/copy-button.tsx +1 -1
- package/src/components/button/icon-button.tsx +1 -1
- package/src/components/card/card.module.css +9 -4
- package/src/components/card/card.tsx +1 -1
- package/src/components/chips/chip.module.css +9 -4
- package/src/components/chips/chip.tsx +1 -1
- package/src/components/container/container.module.css +9 -4
- package/src/components/container/container.tsx +1 -1
- package/src/components/dropdown/dropdown.module.css +9 -4
- package/src/components/dropdown/dropdown.tsx +1 -1
- package/src/components/hamburger/hamburger.module.css +9 -4
- package/src/components/hamburger/hamburger.tsx +1 -1
- package/src/components/inputs/autocomplete.module.css +9 -4
- package/src/components/inputs/autocomplete.tsx +1 -1
- package/src/components/inputs/calendar.module.css +9 -4
- package/src/components/inputs/calendar.tsx +1 -1
- package/src/components/inputs/checkbox-group.module.css +9 -4
- package/src/components/inputs/checkbox-group.tsx +1 -1
- package/src/components/inputs/checkbox.module.css +9 -4
- package/src/components/inputs/checkbox.tsx +1 -1
- package/src/components/inputs/error-text.module.css +9 -4
- package/src/components/inputs/error-text.tsx +1 -1
- package/src/components/inputs/help-text.module.css +9 -4
- package/src/components/inputs/help-text.tsx +1 -1
- package/src/components/inputs/input-adornment.module.css +9 -4
- package/src/components/inputs/input-adornment.tsx +1 -1
- package/src/components/inputs/input-password.module.css +55 -0
- package/src/components/inputs/input-password.tsx +49 -7
- package/src/components/inputs/input.module.css +9 -4
- package/src/components/inputs/input.tsx +1 -1
- package/src/components/inputs/label.module.css +9 -4
- package/src/components/inputs/label.tsx +1 -1
- package/src/components/inputs/radio-group.module.css +9 -4
- package/src/components/inputs/radio-group.tsx +1 -1
- package/src/components/inputs/select.module.css +9 -4
- package/src/components/inputs/select.tsx +1 -1
- package/src/components/inputs/text-area.module.css +9 -4
- package/src/components/inputs/text-area.tsx +1 -1
- package/src/components/notifications/alert.module.css +9 -4
- package/src/components/notifications/alert.tsx +1 -1
- package/src/components/notifications/toast.module.css +9 -4
- package/src/components/notifications/toast.tsx +1 -1
- package/src/components/pager/ellipses.tsx +1 -1
- package/src/components/pager/first-button.tsx +1 -1
- package/src/components/pager/last-button.tsx +1 -1
- package/src/components/pager/next-button.tsx +1 -1
- package/src/components/pager/number-button.tsx +1 -1
- package/src/components/pager/pagination.module.css +9 -4
- package/src/components/pager/pagination.tsx +1 -1
- package/src/components/pager/previous-button.tsx +1 -1
- package/src/components/scroll-area/scroll-area.module.css +9 -4
- package/src/components/scroll-area/scroll-area.tsx +1 -1
- package/src/components/scroll-to-top/scroll-to-top.module.css +9 -3
- package/src/components/scroll-to-top/scroll-to-top.tsx +1 -1
- package/src/components/section/section.module.css +9 -4
- package/src/components/section/section.tsx +1 -1
- package/src/components/shimmer/shimmer.module.css +9 -4
- package/src/components/shimmer/shimmer.tsx +1 -1
- package/src/components/table/table.module.css +9 -4
- package/src/components/table/table.tsx +1 -1
- package/src/components/tabs/tabs.module.css +9 -4
- package/src/components/tabs/tabs.tsx +1 -1
- package/src/components/tooltip/tooltip.module.css +9 -4
- package/src/components/tooltip/tooltip.tsx +1 -1
- package/src/css-layers.ts +34 -0
- package/src/icons/activity-icon.tsx +1 -1
- package/src/icons/ai-icon.tsx +1 -1
- package/src/icons/calendar-icon.tsx +1 -1
- package/src/icons/check-icon.tsx +1 -1
- package/src/icons/chevron-down-icon.tsx +1 -1
- package/src/icons/chevron-left-double-icon.tsx +1 -1
- package/src/icons/chevron-left-icon.tsx +1 -1
- package/src/icons/chevron-right-double-icon.tsx +1 -1
- package/src/icons/chevron-right-icon.tsx +1 -1
- package/src/icons/chevron-up-icon.tsx +1 -1
- package/src/icons/chevrons-up-down.tsx +1 -1
- package/src/icons/close-icon.tsx +1 -1
- package/src/icons/copy-icon.tsx +1 -1
- package/src/icons/danger-icon.tsx +1 -1
- package/src/icons/dashboard-icon.tsx +1 -1
- package/src/icons/delete-icon.tsx +1 -1
- package/src/icons/document-icon.tsx +1 -1
- package/src/icons/download-icon.tsx +1 -1
- package/src/icons/edit-icon.tsx +1 -1
- package/src/icons/ellipsis-icon.tsx +1 -1
- package/src/icons/email-icon.tsx +1 -1
- package/src/icons/external-link-icon.tsx +1 -1
- package/src/icons/eye-closed-icon.tsx +1 -1
- package/src/icons/eye-open-icon.tsx +1 -1
- package/src/icons/github-icon.tsx +1 -1
- package/src/icons/globe-icon.tsx +1 -1
- package/src/icons/google-icon.tsx +1 -1
- package/src/icons/gripper-vertical-icon.tsx +1 -1
- package/src/icons/history-icon.tsx +1 -1
- package/src/icons/home-icon.tsx +1 -1
- package/src/icons/icon-element.tsx +1 -1
- package/src/icons/icons.module.css +11 -1
- package/src/icons/info-icon.tsx +1 -1
- package/src/icons/infonomic-icon.tsx +1 -1
- package/src/icons/light-icon.tsx +1 -1
- package/src/icons/location-pin-icon.tsx +1 -1
- package/src/icons/markdown-icon.tsx +1 -1
- package/src/icons/moon-icon.tsx +1 -1
- package/src/icons/plus-icon.tsx +1 -1
- package/src/icons/primary-icon.tsx +1 -1
- package/src/icons/refresh-icon.tsx +1 -1
- package/src/icons/return-icon.tsx +1 -1
- package/src/icons/roles-icon.tsx +1 -1
- package/src/icons/search-icon.tsx +1 -1
- package/src/icons/search-menu-icon.tsx +1 -1
- package/src/icons/settings-gear-icon.tsx +1 -1
- package/src/icons/settings-sliders-icon.tsx +1 -1
- package/src/icons/sign-out-icon.tsx +1 -1
- package/src/icons/stop-icon.tsx +1 -1
- package/src/icons/stopwatch-icon.tsx +1 -1
- package/src/icons/success-icon.tsx +1 -1
- package/src/icons/user-icon.tsx +1 -1
- package/src/icons/users-icon.tsx +1 -1
- package/src/icons/wallet-icon.tsx +1 -1
- package/src/icons/warning-icon.tsx +1 -1
- package/src/icons/x-icon.tsx +1 -1
- package/src/loaders/ellipses.module.css +9 -4
- package/src/loaders/ellipses.tsx +1 -1
- package/src/loaders/ring.module.css +9 -4
- package/src/loaders/ring.tsx +1 -1
- package/src/loaders/spinner.module.css +9 -4
- package/src/loaders/spinner.tsx +1 -1
- package/src/styles/base/animations.css +12 -0
- package/src/styles/base/base.css +12 -0
- package/src/styles/base/borders.css +12 -0
- package/src/styles/base/breakpoints.css +12 -0
- package/src/styles/base/colors.css +12 -0
- package/src/styles/base/opacity.css +12 -0
- package/src/styles/base/shadows.css +12 -0
- package/src/styles/base/size.css +12 -0
- package/src/styles/base/spacing.css +12 -0
- package/src/styles/base/transitions.css +12 -0
- package/src/styles/base/typography.css +12 -0
- package/src/styles/base/z-index.css +12 -0
- package/src/styles/components/components.css +12 -0
- package/src/styles/components/fade-in-lift.css +27 -13
- package/src/styles/components/hamburger.css +11 -6
- package/src/styles/components/loaders.css +168 -154
- package/src/styles/functional/README.md +18 -18
- package/src/styles/functional/borders.css +12 -0
- package/src/styles/functional/colors.css +12 -0
- package/src/styles/functional/functional.css +12 -0
- package/src/styles/functional/grid-flex.css +12 -0
- package/src/styles/functional/shadcn-compat.css +12 -0
- package/src/styles/functional/surfaces.css +12 -0
- package/src/styles/functional/typography.css +12 -0
- package/src/styles/local-fonts.css +12 -0
- package/src/styles/reset.css +18 -0
- package/src/styles/styles.css +9 -4
- package/src/styles/theme/autofill.css +12 -0
- package/src/styles/theme/defaults.css +12 -0
- package/src/styles/theme/scrollers.css +12 -0
- package/src/styles/theme/theme.css +12 -0
- package/src/styles/typography/fonts.css +12 -0
- package/src/styles/typography/prose.css +12 -0
- package/src/styles/typography.css +12 -0
- package/src/styles/utils/scroll-layout-shift.css +12 -0
- package/src/styles/utils/utility-classes.css +12 -0
- package/src/styles/utils/utils.css +12 -0
- package/src/widgets/datepicker/datepicker.module.css +21 -2
- package/src/widgets/datepicker/datepicker.tsx +98 -5
- package/src/widgets/drawer/drawer-container.tsx +1 -1
- package/src/widgets/drawer/drawer-content.tsx +1 -1
- package/src/widgets/drawer/drawer-header.tsx +1 -1
- package/src/widgets/drawer/drawer-top-actions.tsx +1 -1
- package/src/widgets/drawer/drawer.module.css +11 -1
- package/src/widgets/drawer/drawer.tsx +1 -1
- package/src/widgets/modal/modal-actions.tsx +1 -1
- package/src/widgets/modal/modal-container.tsx +1 -1
- package/src/widgets/modal/modal-content.tsx +1 -1
- package/src/widgets/modal/modal-context.ts +23 -0
- package/src/widgets/modal/modal-header.tsx +30 -3
- package/src/widgets/modal/modal.module.css +11 -1
- package/src/widgets/modal/modal.tsx +16 -7
- package/src/widgets/timeline/timeline.module.css +9 -4
- package/src/widgets/timeline/timeline.tsx +1 -1
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import modal_module from "./modal.module.js";
|
|
5
|
+
import { ModalContext } from "./modal-context.js";
|
|
6
|
+
import * as __rspack_external_react from "react";
|
|
7
|
+
const HEADING_TAGS = new Set([
|
|
8
|
+
'h1',
|
|
9
|
+
'h2',
|
|
10
|
+
'h3',
|
|
11
|
+
'h4',
|
|
12
|
+
'h5',
|
|
13
|
+
'h6'
|
|
14
|
+
]);
|
|
15
|
+
function labelHeading(children, headingId) {
|
|
16
|
+
let labelled = false;
|
|
17
|
+
return __rspack_external_react.Children.map(children, (child)=>{
|
|
18
|
+
if (labelled || !/*#__PURE__*/ __rspack_external_react.isValidElement(child)) return child;
|
|
19
|
+
if ('string' != typeof child.type || !HEADING_TAGS.has(child.type)) return child;
|
|
20
|
+
labelled = true;
|
|
21
|
+
return /*#__PURE__*/ __rspack_external_react.cloneElement(child, {
|
|
22
|
+
id: headingId
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
}
|
|
5
26
|
const modal_header_ModalHeader = function({ ref, children, className, ...rest }) {
|
|
6
|
-
const
|
|
27
|
+
const { headingId } = (0, __rspack_external_react.useContext)(ModalContext);
|
|
28
|
+
const classes = clsx('infonomic-modal-header', modal_module["modal-header"], 'prose', className);
|
|
7
29
|
return /*#__PURE__*/ jsx("div", {
|
|
8
30
|
style: {
|
|
9
31
|
overflowWrap: 'anywhere'
|
|
@@ -11,7 +33,7 @@ const modal_header_ModalHeader = function({ ref, children, className, ...rest })
|
|
|
11
33
|
ref: ref,
|
|
12
34
|
...rest,
|
|
13
35
|
className: classes,
|
|
14
|
-
children: children
|
|
36
|
+
children: null == headingId ? children : labelHeading(children, headingId)
|
|
15
37
|
});
|
|
16
38
|
};
|
|
17
39
|
export { modal_header_ModalHeader as ModalHeader };
|
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { ModalActions } from './modal-actions';
|
|
3
|
-
import { ModalContainer } from './modal-container';
|
|
4
|
-
import { ModalContent } from './modal-content';
|
|
5
|
-
import {
|
|
2
|
+
import { ModalActions } from './modal-actions.js';
|
|
3
|
+
import { ModalContainer } from './modal-container.js';
|
|
4
|
+
import { ModalContent } from './modal-content.js';
|
|
5
|
+
import { ModalContext } from './modal-context.js';
|
|
6
|
+
import { ModalHeader } from './modal-header.js';
|
|
7
|
+
export { ModalContext };
|
|
6
8
|
export interface ModalProps {
|
|
7
9
|
isOpen?: boolean;
|
|
8
10
|
onDismiss?: () => void;
|
|
9
11
|
closeOnOverlayClick?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Accessible name for the dialog, for modals that carry no `Modal.Header`
|
|
14
|
+
* heading to borrow one from. Modals that do have a heading need nothing
|
|
15
|
+
* here — see `ModalContext.headingId`.
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel?: string;
|
|
10
18
|
children?: React.ReactNode;
|
|
11
19
|
}
|
|
12
|
-
export declare const ModalContext: React.Context<{
|
|
13
|
-
onDismiss?: () => void;
|
|
14
|
-
}>;
|
|
15
20
|
export type UseModalProps = ReturnType<typeof useModal>;
|
|
16
21
|
export declare function useModal(): {
|
|
17
22
|
onDismiss: () => void;
|
|
@@ -19,7 +24,7 @@ export declare function useModal(): {
|
|
|
19
24
|
isOpen: boolean;
|
|
20
25
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
21
26
|
};
|
|
22
|
-
declare function Modal({ isOpen, onDismiss, closeOnOverlayClick, children, }: ModalProps): React.JSX.Element;
|
|
27
|
+
declare function Modal({ isOpen, onDismiss, closeOnOverlayClick, ariaLabel, children, }: ModalProps): React.JSX.Element;
|
|
23
28
|
declare namespace Modal {
|
|
24
29
|
var displayName: string;
|
|
25
30
|
export { ModalContainer as Container };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,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,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/widgets/modal/modal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,EAAE,YAAY,EAAE,CAAA;AAEvB,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,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,SAAS,EACT,QAAQ,GACT,EAAE,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwDhC;kBA9DQ,KAAK;;aAkEI,cAAc;aACjB,WAAW;aACV,YAAY;aACZ,YAAY;;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { useCallback, useId, useRef, useState } from "react";
|
|
4
4
|
import { Dialog } from "@base-ui/react/dialog";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import modal_module from "./modal.module.js";
|
|
7
7
|
import { ModalActions } from "./modal-actions.js";
|
|
8
8
|
import { ModalContainer } from "./modal-container.js";
|
|
9
9
|
import { ModalContent } from "./modal-content.js";
|
|
10
|
+
import { ModalContext } from "./modal-context.js";
|
|
10
11
|
import { ModalHeader } from "./modal-header.js";
|
|
11
|
-
const ModalContext = /*#__PURE__*/ createContext({});
|
|
12
12
|
function useModal() {
|
|
13
13
|
const [isOpen, setIsOpen] = useState(false);
|
|
14
14
|
const onDismiss = useCallback(()=>{
|
|
@@ -24,7 +24,8 @@ function useModal() {
|
|
|
24
24
|
setIsOpen
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function Modal({ isOpen, onDismiss, closeOnOverlayClick, children }) {
|
|
27
|
+
function Modal({ isOpen, onDismiss, closeOnOverlayClick, ariaLabel, children }) {
|
|
28
|
+
const headingId = useId();
|
|
28
29
|
const pressStartedOnOverlay = useRef(false);
|
|
29
30
|
const handleOverlayPointerDown = (event)=>{
|
|
30
31
|
pressStartedOnOverlay.current = event.target === event.currentTarget;
|
|
@@ -38,7 +39,8 @@ function Modal({ isOpen, onDismiss, closeOnOverlayClick, children }) {
|
|
|
38
39
|
};
|
|
39
40
|
return /*#__PURE__*/ jsx(ModalContext.Provider, {
|
|
40
41
|
value: {
|
|
41
|
-
onDismiss
|
|
42
|
+
onDismiss,
|
|
43
|
+
headingId
|
|
42
44
|
},
|
|
43
45
|
children: /*#__PURE__*/ jsx(Dialog.Root, {
|
|
44
46
|
open: isOpen,
|
|
@@ -50,10 +52,12 @@ function Modal({ isOpen, onDismiss, closeOnOverlayClick, children }) {
|
|
|
50
52
|
children: /*#__PURE__*/ jsxs(Dialog.Portal, {
|
|
51
53
|
children: [
|
|
52
54
|
/*#__PURE__*/ jsx(Dialog.Backdrop, {
|
|
53
|
-
className:
|
|
55
|
+
className: clsx('infonomic-modal-backdrop', modal_module.backdrop)
|
|
54
56
|
}),
|
|
55
57
|
/*#__PURE__*/ jsx(Dialog.Popup, {
|
|
56
|
-
className:
|
|
58
|
+
className: clsx('infonomic-modal-wrapper', modal_module["modal-wrapper"]),
|
|
59
|
+
"aria-label": ariaLabel,
|
|
60
|
+
"aria-labelledby": null == ariaLabel ? headingId : void 0,
|
|
57
61
|
onPointerDown: handleOverlayPointerDown,
|
|
58
62
|
onClick: handleOverlayClick,
|
|
59
63
|
children: children
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
6
|
+
infonomic-typography,
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
2
12
|
|
|
3
13
|
@layer infonomic-components {
|
|
4
14
|
/* Backdrop overlay */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer infonomic-base, infonomic-
|
|
1
|
+
@layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
:is(.backdrop-BgKon2, .infonomic-modal-backdrop) {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
opacity: 0;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@media screen and (
|
|
45
|
+
@media screen and (width >= 40rem) {
|
|
46
46
|
:is(.modal-wrapper-wF5Mv1, .infonomic-modal-wrapper) {
|
|
47
47
|
justify-content: center;
|
|
48
48
|
}
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
display: flex;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
@media screen and (
|
|
65
|
+
@media screen and (width >= 40rem) {
|
|
66
66
|
:is(.modal-container-PPkPyj, .infonomic-modal-container) {
|
|
67
67
|
width: auto;
|
|
68
68
|
min-height: auto;
|
|
@@ -116,3 +116,5 @@
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
120
|
+
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import timeline_module from "./timeline.module.js";
|
|
5
5
|
const Timeline = ({ id, className, children, ...rest })=>/*#__PURE__*/ jsx("div", {
|
|
6
6
|
id: id,
|
|
7
|
-
className:
|
|
7
|
+
className: clsx(timeline_module.timeline, 'timeline', className),
|
|
8
8
|
...rest,
|
|
9
9
|
children: children
|
|
10
10
|
});
|
|
11
11
|
const Root = function({ ref, children, className, ...props }) {
|
|
12
|
-
const classes =
|
|
12
|
+
const classes = clsx(timeline_module["timeline-root"], 'timeline-root', className);
|
|
13
13
|
return /*#__PURE__*/ jsx("ol", {
|
|
14
14
|
ref: ref,
|
|
15
15
|
...props,
|
|
@@ -21,7 +21,7 @@ const Item = function({ ref, children, className, ...props }) {
|
|
|
21
21
|
return /*#__PURE__*/ jsx("li", {
|
|
22
22
|
ref: ref,
|
|
23
23
|
...props,
|
|
24
|
-
className:
|
|
24
|
+
className: clsx(timeline_module["timeline-item"], 'timeline-item', className),
|
|
25
25
|
children: children
|
|
26
26
|
});
|
|
27
27
|
};
|
|
@@ -29,7 +29,7 @@ const Icon = function({ ref, children, className, ...props }) {
|
|
|
29
29
|
return /*#__PURE__*/ jsx("span", {
|
|
30
30
|
ref: ref,
|
|
31
31
|
...props,
|
|
32
|
-
className:
|
|
32
|
+
className: clsx(timeline_module["timeline-icon"], 'time-line-icon', className),
|
|
33
33
|
children: /*#__PURE__*/ jsx("svg", {
|
|
34
34
|
"aria-hidden": "true",
|
|
35
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -45,7 +45,7 @@ const Heading = function({ ref, children, className, ...props }) {
|
|
|
45
45
|
return /*#__PURE__*/ jsx("h3", {
|
|
46
46
|
ref: ref,
|
|
47
47
|
...props,
|
|
48
|
-
className:
|
|
48
|
+
className: clsx(timeline_module["timeline-heading"], 'timeline-heading', className),
|
|
49
49
|
children: children
|
|
50
50
|
});
|
|
51
51
|
};
|
|
@@ -53,7 +53,7 @@ const DateItem = function({ ref, children, className, ...props }) {
|
|
|
53
53
|
return /*#__PURE__*/ jsx("time", {
|
|
54
54
|
ref: ref,
|
|
55
55
|
...props,
|
|
56
|
-
className:
|
|
56
|
+
className: clsx(timeline_module["timeline-date"], 'timeline-date', className),
|
|
57
57
|
children: children
|
|
58
58
|
});
|
|
59
59
|
};
|
|
@@ -61,7 +61,7 @@ const Content = function({ ref, children, className, ...props }) {
|
|
|
61
61
|
return /*#__PURE__*/ jsx("div", {
|
|
62
62
|
ref: ref,
|
|
63
63
|
...props,
|
|
64
|
-
className:
|
|
64
|
+
className: clsx(timeline_module["timeline-content"], 'timeline-content', className),
|
|
65
65
|
children: children
|
|
66
66
|
});
|
|
67
67
|
};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer
|
|
2
|
-
infonomic-
|
|
3
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
4
|
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
5
6
|
infonomic-typography,
|
|
6
|
-
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
7
12
|
|
|
8
13
|
@layer infonomic-components {
|
|
9
14
|
.timeline,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
|
|
2
2
|
|
|
3
3
|
@layer infonomic-components {
|
|
4
4
|
:is(.timeline-qJOU85, .infonomic-timeline) {
|
|
@@ -81,3 +81,5 @@
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
85
|
+
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@infonomic/uikit",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "6.
|
|
5
|
+
"version": "6.9.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": [
|
|
@@ -55,52 +55,59 @@
|
|
|
55
55
|
"./components.css": {
|
|
56
56
|
"import": "./dist/styles/components-vanilla.css",
|
|
57
57
|
"default": "./dist/styles/components-vanilla.css"
|
|
58
|
+
},
|
|
59
|
+
"./css-layers": {
|
|
60
|
+
"types": "./dist/css-layers.d.ts",
|
|
61
|
+
"import": "./dist/css-layers.js",
|
|
62
|
+
"default": "./dist/css-layers.js"
|
|
58
63
|
}
|
|
59
64
|
},
|
|
60
65
|
"peerDependencies": {
|
|
66
|
+
"postcss": "^8.4.0",
|
|
61
67
|
"react": "^19.0.0",
|
|
62
68
|
"react-dom": "^19.0.0"
|
|
63
69
|
},
|
|
64
70
|
"dependencies": {
|
|
65
|
-
"@base-ui/react": "^1.
|
|
66
|
-
"
|
|
71
|
+
"@base-ui/react": "^1.9.0",
|
|
72
|
+
"clsx": "^2.1.1",
|
|
67
73
|
"date-fns": "^4.4.0",
|
|
68
|
-
"motion": "^
|
|
74
|
+
"motion": "^14.14.0",
|
|
69
75
|
"npm-run-all": "^4.1.5",
|
|
70
76
|
"prism-react-renderer": "^2.4.1",
|
|
71
|
-
"react-day-picker": "^10.0.
|
|
72
|
-
"zod": "^4.
|
|
73
|
-
"zod-form-data": "^3.0.
|
|
77
|
+
"react-day-picker": "^10.0.2",
|
|
78
|
+
"zod": "^4.6.7",
|
|
79
|
+
"zod-form-data": "^3.0.4"
|
|
74
80
|
},
|
|
75
81
|
"devDependencies": {
|
|
76
|
-
"@astrojs/check": "0.9.
|
|
77
|
-
"@astrojs/node": "11.1.
|
|
78
|
-
"@biomejs/biome": "2.
|
|
79
|
-
"@rsbuild/plugin-react": "^2.1.
|
|
80
|
-
"@rslib/core": "^0.
|
|
81
|
-
"@storybook/addon-a11y": "^10.
|
|
82
|
-
"@storybook/addon-docs": "^10.
|
|
83
|
-
"@storybook/addon-links": "^10.
|
|
84
|
-
"@storybook/addon-themes": "^10.
|
|
85
|
-
"@storybook/react-vite": "^10.
|
|
86
|
-
"@types/lodash": "^4.17.
|
|
87
|
-
"@types/node": "^26.
|
|
88
|
-
"@types/react": "19.
|
|
89
|
-
"@types/react-dom": "19.
|
|
90
|
-
"@vitejs/plugin-react": "^6.0
|
|
91
|
-
"astro": "7.
|
|
92
|
-
"chokidar": "^
|
|
93
|
-
"eslint-plugin-storybook": "^10.
|
|
82
|
+
"@astrojs/check": "0.9.12",
|
|
83
|
+
"@astrojs/node": "11.1.14",
|
|
84
|
+
"@biomejs/biome": "2.6.8",
|
|
85
|
+
"@rsbuild/plugin-react": "^2.1.1",
|
|
86
|
+
"@rslib/core": "^1.0.7",
|
|
87
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
88
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
89
|
+
"@storybook/addon-links": "^10.6.7",
|
|
90
|
+
"@storybook/addon-themes": "^10.6.7",
|
|
91
|
+
"@storybook/react-vite": "^10.6.7",
|
|
92
|
+
"@types/lodash": "^4.17.27",
|
|
93
|
+
"@types/node": "^26.6.6",
|
|
94
|
+
"@types/react": "19.3.0",
|
|
95
|
+
"@types/react-dom": "19.3.0",
|
|
96
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
97
|
+
"astro": "7.4.13",
|
|
98
|
+
"chokidar": "^6.0.0",
|
|
99
|
+
"eslint-plugin-storybook": "^10.6.7",
|
|
94
100
|
"lightningcss": "^1.33.0",
|
|
95
101
|
"lightningcss-cli": "^1.33.0",
|
|
96
|
-
"
|
|
97
|
-
"react
|
|
98
|
-
"
|
|
99
|
-
"
|
|
102
|
+
"postcss": "^8.5.33",
|
|
103
|
+
"react": "^19.3.1",
|
|
104
|
+
"react-dom": "^19.3.1",
|
|
105
|
+
"rimraf": "^6.1.4",
|
|
106
|
+
"storybook": "^10.6.7",
|
|
100
107
|
"typescript": "7.0.2",
|
|
101
|
-
"typescript-plugin-css-modules": "^5.
|
|
102
|
-
"vite": "^8.
|
|
103
|
-
"vitest": "^
|
|
108
|
+
"typescript-plugin-css-modules": "^5.3.0",
|
|
109
|
+
"vite": "^8.3.8",
|
|
110
|
+
"vitest": "^5.1.1"
|
|
104
111
|
},
|
|
105
112
|
"publishConfig": {
|
|
106
113
|
"access": "public",
|
|
@@ -109,6 +116,11 @@
|
|
|
109
116
|
"src/"
|
|
110
117
|
]
|
|
111
118
|
},
|
|
119
|
+
"peerDependenciesMeta": {
|
|
120
|
+
"postcss": {
|
|
121
|
+
"optional": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
112
124
|
"scripts": {
|
|
113
125
|
"dev": "run-p dev:*",
|
|
114
126
|
"skip:astro-compose": "node ./scripts/build-astro.js",
|
|
@@ -127,6 +139,7 @@
|
|
|
127
139
|
"lint": "biome check --write --unsafe --diagnostic-level=error",
|
|
128
140
|
"storybook": "storybook dev -p 6007",
|
|
129
141
|
"build-storybook": "storybook build",
|
|
130
|
-
"test": "
|
|
142
|
+
"test": "node --test tests/*.test.mjs",
|
|
143
|
+
"test:css-build": "CSS_BUILD_CHECK=1 node --test tests/*.test.mjs"
|
|
131
144
|
}
|
|
132
145
|
}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
6
|
+
infonomic-typography,
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
2
12
|
|
|
3
13
|
@layer infonomic-components {
|
|
4
14
|
.item,
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer
|
|
2
|
-
infonomic-
|
|
3
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
4
|
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
5
6
|
infonomic-typography,
|
|
6
|
-
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
7
12
|
|
|
8
13
|
@layer infonomic-components {
|
|
9
14
|
/* relative inline-flex h-10 w-10 rounded-full */
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer
|
|
2
|
-
infonomic-
|
|
3
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
4
|
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
5
6
|
infonomic-typography,
|
|
6
|
-
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
7
12
|
|
|
8
13
|
@layer infonomic-components {
|
|
9
14
|
.badge,
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
6
|
+
infonomic-typography,
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
2
12
|
|
|
3
13
|
@layer infonomic-components {
|
|
4
14
|
.button-group,
|
|
@@ -4,7 +4,7 @@ import React, { type Ref } from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { Toggle } from '@base-ui/react/toggle'
|
|
6
6
|
import { ToggleGroup } from '@base-ui/react/toggle-group'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Button } from './button'
|
|
10
10
|
import styles from './button-group.module.css'
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer
|
|
2
|
-
infonomic-
|
|
3
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
4
|
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
5
6
|
infonomic-typography,
|
|
6
|
-
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
7
12
|
|
|
8
13
|
@layer infonomic-components {
|
|
9
14
|
.button,
|
|
@@ -4,7 +4,7 @@ import type React from 'react'
|
|
|
4
4
|
|
|
5
5
|
import { mergeProps } from '@base-ui/react/merge-props'
|
|
6
6
|
import { useRender } from '@base-ui/react/use-render'
|
|
7
|
-
import cx from '
|
|
7
|
+
import cx from 'clsx'
|
|
8
8
|
|
|
9
9
|
import { Ripple } from '../../lib/ripple.js'
|
|
10
10
|
import styles from './button.module.css'
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
6
|
+
infonomic-typography,
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
2
12
|
|
|
3
13
|
@layer infonomic-components {
|
|
4
14
|
.combo-button-wrapper,
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
|
+
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
6
|
+
infonomic-typography,
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
2
12
|
|
|
3
13
|
@layer infonomic-components {
|
|
4
14
|
.stop-button,
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@layer
|
|
2
|
-
infonomic-
|
|
3
|
-
|
|
1
|
+
@layer base,
|
|
2
|
+
infonomic-base,
|
|
3
|
+
theme,
|
|
4
4
|
infonomic-theme,
|
|
5
|
+
infonomic-functional,
|
|
5
6
|
infonomic-typography,
|
|
6
|
-
|
|
7
|
+
components,
|
|
8
|
+
infonomic-components,
|
|
9
|
+
overrides,
|
|
10
|
+
infonomic-utilities,
|
|
11
|
+
utilities;
|
|
7
12
|
|
|
8
13
|
@layer infonomic-components {
|
|
9
14
|
.copy-button-container,
|