@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@layer base, infonomic-base, theme, infonomic-theme, infonomic-functional, infonomic-typography, components;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
:is(.toggle-bNQhst, .infonomic-input-password-toggle) {
|
|
5
|
+
color: inherit;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
background: none;
|
|
8
|
+
border: none;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
min-width: 1.375rem;
|
|
12
|
+
min-height: 1.375rem;
|
|
13
|
+
padding: 0;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(.toggle-bNQhst:focus-visible, .infonomic-input-password-toggle:focus-visible) {
|
|
18
|
+
outline: 1px solid oklch(from var(--field-ring, var(--blue-500)) l c h / .6);
|
|
19
|
+
outline-offset: 1px;
|
|
20
|
+
border-radius: var(--border-radius-sm, 3px);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
25
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { Intent, Size, Variant } from './@types/input.js';
|
|
3
|
-
import type { InputAdornmentProps } from './input-adornment.
|
|
3
|
+
import type { InputAdornmentProps } from './input-adornment.js';
|
|
4
4
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import { ErrorText } from "./error-text.js";
|
|
5
5
|
import { HelpText } from "./help-text.js";
|
|
6
6
|
import input_module from "./input.module.js";
|
|
7
7
|
import { Label } from "./label.js";
|
|
8
8
|
const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize = 'md', intent = 'primary', required, label, startAdornment, endAdornment, placeHolder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', inputWrapperClassName, className, ...rest })=>/*#__PURE__*/ jsxs("div", {
|
|
9
|
-
className:
|
|
9
|
+
className: clsx('infonomic-input-wrapper', input_module["input-wrapper"], inputWrapperClassName),
|
|
10
10
|
children: [
|
|
11
11
|
null != label && /*#__PURE__*/ jsx(Label, {
|
|
12
12
|
id: id,
|
|
@@ -15,10 +15,10 @@ const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize =
|
|
|
15
15
|
label: label
|
|
16
16
|
}),
|
|
17
17
|
/*#__PURE__*/ jsxs("div", {
|
|
18
|
-
className:
|
|
18
|
+
className: clsx('infonomic-input-container', input_module["input-container"]),
|
|
19
19
|
children: [
|
|
20
20
|
null != startAdornment && /*#__PURE__*/ jsx("div", {
|
|
21
|
-
className:
|
|
21
|
+
className: clsx('infonomic-input-start-adornment', input_module["start-adornment"], input_module[variant]),
|
|
22
22
|
children: startAdornment
|
|
23
23
|
}),
|
|
24
24
|
/*#__PURE__*/ jsx("input", {
|
|
@@ -34,7 +34,7 @@ const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize =
|
|
|
34
34
|
"aria-required": required,
|
|
35
35
|
"aria-errormessage": errorText,
|
|
36
36
|
"aria-describedby": error ? `error-for-${id}` : helpText.length > 0 ? `help-for-${id}` : void 0,
|
|
37
|
-
className:
|
|
37
|
+
className: clsx('infonomic-input', `infonomic-input-${variant}`, `infonomic-input-${inputSize}`, `infonomic-input-${intent}`, input_module.input, input_module[variant], input_module[inputSize], input_module[intent], {
|
|
38
38
|
[input_module["start-adornment-padding"]]: null != startAdornment
|
|
39
39
|
}, {
|
|
40
40
|
[input_module["end-adornment-padding"]]: null != endAdornment
|
|
@@ -44,7 +44,7 @@ const Input = ({ ref, id, name, type = 'text', variant = 'outlined', inputSize =
|
|
|
44
44
|
...rest
|
|
45
45
|
}),
|
|
46
46
|
null != endAdornment && /*#__PURE__*/ jsx("div", {
|
|
47
|
-
className:
|
|
47
|
+
className: clsx('infonomic-input-end-adornment', input_module["end-adornment"], input_module[variant]),
|
|
48
48
|
children: endAdornment
|
|
49
49
|
})
|
|
50
50
|
]
|
|
@@ -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
|
.input-wrapper,
|
|
@@ -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(.input-wrapper-OJAKML, .infonomic-input-wrapper) {
|
|
@@ -257,3 +257,5 @@
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
261
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import label_module from "./label.module.js";
|
|
4
4
|
function Label({ className, id, htmlFor, label, required }) {
|
|
5
5
|
return /*#__PURE__*/ jsxs("label", {
|
|
6
6
|
id: `label-for-${id}`,
|
|
7
7
|
htmlFor: htmlFor,
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('label', label_module.label, className),
|
|
9
9
|
children: [
|
|
10
10
|
label,
|
|
11
11
|
required && /*#__PURE__*/ jsx("span", {
|
|
@@ -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
|
.label,
|
|
@@ -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(.label-pYbboO, .infonomic-label) {
|
|
@@ -12,3 +12,5 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
16
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { Radio } from '@base-ui/react/radio';
|
|
3
3
|
import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
|
|
4
|
-
import type { Intent } from '../@types/shared';
|
|
4
|
+
import type { Intent } from '../@types/shared.js';
|
|
5
5
|
export interface RadioGroupValue {
|
|
6
6
|
id: string;
|
|
7
7
|
value: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Radio } from "@base-ui/react/radio";
|
|
4
4
|
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import radio_group_module from "./radio-group.module.js";
|
|
7
7
|
const RadioGroupItem = ({ intent = 'primary', className, id, value, label, ref: forwardedRef, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
8
8
|
ref: forwardedRef,
|
|
@@ -10,7 +10,7 @@ const RadioGroupItem = ({ intent = 'primary', className, id, value, label, ref:
|
|
|
10
10
|
children: [
|
|
11
11
|
/*#__PURE__*/ jsx(Radio.Root, {
|
|
12
12
|
...props,
|
|
13
|
-
className:
|
|
13
|
+
className: clsx(radio_group_module.item, radio_group_module[intent]),
|
|
14
14
|
value: value,
|
|
15
15
|
id: id,
|
|
16
16
|
nativeButton: true,
|
|
@@ -30,7 +30,7 @@ const RadioGroupItem = ({ intent = 'primary', className, id, value, label, ref:
|
|
|
30
30
|
});
|
|
31
31
|
const radio_group_RadioGroup = ({ ref: forwardedRef, className, direction = 'column', children, ...props })=>/*#__PURE__*/ jsx(RadioGroup, {
|
|
32
32
|
ref: forwardedRef,
|
|
33
|
-
className:
|
|
33
|
+
className: clsx('infonomic-radio-group', radio_group_module[direction], className),
|
|
34
34
|
...props,
|
|
35
35
|
children: children
|
|
36
36
|
});
|
|
@@ -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
|
/* 'border-collapse w-full text-sm text-left text-gray-700 dark:text-gray-400 m-0', */
|
|
9
14
|
@layer infonomic-components {
|
|
@@ -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(.column-Ca6c3z, .infonomic-radio-group-column) {
|
|
@@ -158,3 +158,5 @@
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
162
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Select } from "@base-ui/react/select";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { CheckIcon } from "../../icons/check-icon.js";
|
|
6
6
|
import { ChevronDownIcon } from "../../icons/chevron-down-icon.js";
|
|
7
7
|
import { ChevronUpIcon } from "../../icons/chevron-up-icon.js";
|
|
@@ -10,7 +10,7 @@ import { HelpText } from "./help-text.js";
|
|
|
10
10
|
import select_module from "./select.module.js";
|
|
11
11
|
function select_Select({ id, children, placeholder, disabledValue, intent, variant, size, position, containerClassName, className, ariaLabel, helpText, items, ...rest }) {
|
|
12
12
|
return /*#__PURE__*/ jsxs("div", {
|
|
13
|
-
className:
|
|
13
|
+
className: clsx('infonomic-select-container', containerClassName),
|
|
14
14
|
children: [
|
|
15
15
|
/*#__PURE__*/ jsxs(Select.Root, {
|
|
16
16
|
items: items,
|
|
@@ -23,7 +23,7 @@ function select_Select({ id, children, placeholder, disabledValue, intent, varia
|
|
|
23
23
|
intent: intent,
|
|
24
24
|
variant: variant,
|
|
25
25
|
size: size,
|
|
26
|
-
className:
|
|
26
|
+
className: clsx('whitespace-nowrap', className)
|
|
27
27
|
}),
|
|
28
28
|
children: [
|
|
29
29
|
/*#__PURE__*/ jsx(Select.Value, {
|
|
@@ -44,7 +44,7 @@ function select_Select({ id, children, placeholder, disabledValue, intent, varia
|
|
|
44
44
|
children: /*#__PURE__*/ jsx(ChevronUpIcon, {})
|
|
45
45
|
}),
|
|
46
46
|
/*#__PURE__*/ jsx(Select.Popup, {
|
|
47
|
-
className:
|
|
47
|
+
className: clsx(select_module.popup, null != size && select_module[`popup-${size}`]),
|
|
48
48
|
children: /*#__PURE__*/ jsx(Select.List, {
|
|
49
49
|
className: select_module.list,
|
|
50
50
|
children: children ?? items?.map((item)=>/*#__PURE__*/ jsx(SelectItem, {
|
|
@@ -70,12 +70,12 @@ function select_Select({ id, children, placeholder, disabledValue, intent, varia
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
const SelectItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsxs(Select.Item, {
|
|
73
|
-
className:
|
|
73
|
+
className: clsx('infonomic-select-item', select_module["select-item"], className),
|
|
74
74
|
...props,
|
|
75
75
|
ref: forwardedRef,
|
|
76
76
|
children: [
|
|
77
77
|
/*#__PURE__*/ jsx(Select.ItemIndicator, {
|
|
78
|
-
className:
|
|
78
|
+
className: clsx('infonomic-select-item-indicator', select_module["select-item-indicator"]),
|
|
79
79
|
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
80
80
|
}),
|
|
81
81
|
/*#__PURE__*/ jsx(Select.ItemText, {
|
|
@@ -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
|
.positioner,
|
|
@@ -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(.positioner-Mjx718, .infonomic-select-positioner) {
|
|
@@ -139,3 +139,5 @@
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
143
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import { ErrorText } from "./error-text.js";
|
|
4
4
|
import { HelpText } from "./help-text.js";
|
|
5
5
|
import input_module from "./input.module.js";
|
|
@@ -7,7 +7,7 @@ import { Label } from "./label.js";
|
|
|
7
7
|
import text_area_module from "./text-area.module.js";
|
|
8
8
|
const text_area_TextArea = function({ ref, id, name, label, rows = 4, required = false, variant = 'outlined', intent = 'primary', placeHolder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', className, ...rest }) {
|
|
9
9
|
return /*#__PURE__*/ jsxs("div", {
|
|
10
|
-
className:
|
|
10
|
+
className: clsx('text-area-wrapper', input_module["input-wrapper"]),
|
|
11
11
|
children: [
|
|
12
12
|
null != label && /*#__PURE__*/ jsx(Label, {
|
|
13
13
|
id: id,
|
|
@@ -28,7 +28,7 @@ const text_area_TextArea = function({ ref, id, name, label, rows = 4, required =
|
|
|
28
28
|
"aria-required": required,
|
|
29
29
|
"aria-errormessage": errorText,
|
|
30
30
|
"aria-describedby": error ? `error-for-${id}` : helpText.length > 0 ? `help-for-${id}` : void 0,
|
|
31
|
-
className:
|
|
31
|
+
className: clsx('infonomic-text-area', `infonomic-text-area-${variant}`, `infonomic-text-area-${intent}`, input_module.input, input_module[variant], input_module[intent], text_area_module["text-area"], text_area_module[variant], {
|
|
32
32
|
[input_module.error]: error
|
|
33
33
|
}, className),
|
|
34
34
|
...rest
|
|
@@ -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
|
.text-area,
|
|
@@ -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(.text-area-TY2VVE, .infonomic-text-area) {
|
|
@@ -17,3 +17,5 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
21
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { CloseIcon } from "../../icons/close-icon.js";
|
|
6
6
|
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
7
7
|
import { InfoIcon } from "../../icons/info-icon.js";
|
|
@@ -31,21 +31,21 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
31
31
|
if (false === show) return null;
|
|
32
32
|
return /*#__PURE__*/ jsx("div", {
|
|
33
33
|
ref: ref,
|
|
34
|
-
className:
|
|
34
|
+
className: clsx('infonomic-alert', `infonomic-alert-${intent}`, alert_module.alert, alert_module[intent], className, {
|
|
35
35
|
[alert_module.fade]: fade
|
|
36
36
|
}),
|
|
37
37
|
...rest,
|
|
38
38
|
children: null != title ? /*#__PURE__*/ jsxs("div", {
|
|
39
|
-
className:
|
|
39
|
+
className: clsx('infonomic-alert-with-title', alert_module["alert-with-title"]),
|
|
40
40
|
children: [
|
|
41
41
|
/*#__PURE__*/ jsxs("div", {
|
|
42
|
-
className:
|
|
42
|
+
className: clsx('infonomic-alert-header', alert_module.header),
|
|
43
43
|
children: [
|
|
44
44
|
icon && /*#__PURE__*/ jsx(Icon, {
|
|
45
|
-
className:
|
|
45
|
+
className: clsx('infonomic-alert-icon', alert_module.icon)
|
|
46
46
|
}),
|
|
47
47
|
/*#__PURE__*/ jsx("div", {
|
|
48
|
-
className:
|
|
48
|
+
className: clsx('infonomic-alert-title', alert_module.title),
|
|
49
49
|
children: /*#__PURE__*/ jsx("span", {
|
|
50
50
|
children: title
|
|
51
51
|
})
|
|
@@ -54,7 +54,7 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
54
54
|
intent: intent,
|
|
55
55
|
variant: "filled",
|
|
56
56
|
"aria-label": "Close",
|
|
57
|
-
className:
|
|
57
|
+
className: clsx('infonomic-alert-close', alert_module.close),
|
|
58
58
|
type: "button",
|
|
59
59
|
onClick: handleOnClose,
|
|
60
60
|
...rest,
|
|
@@ -66,24 +66,24 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
66
66
|
]
|
|
67
67
|
}),
|
|
68
68
|
/*#__PURE__*/ jsx("div", {
|
|
69
|
-
className:
|
|
69
|
+
className: clsx('infonomic-alert-content', alert_module.content),
|
|
70
70
|
children: children
|
|
71
71
|
})
|
|
72
72
|
]
|
|
73
73
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
74
74
|
children: [
|
|
75
75
|
icon && /*#__PURE__*/ jsx(Icon, {
|
|
76
|
-
className:
|
|
76
|
+
className: clsx('infonomic-alert-icon', alert_module.icon)
|
|
77
77
|
}),
|
|
78
78
|
/*#__PURE__*/ jsx("div", {
|
|
79
|
-
className:
|
|
79
|
+
className: clsx('infonomic-alert-content', alert_module.content),
|
|
80
80
|
children: children
|
|
81
81
|
}),
|
|
82
82
|
true === close && /*#__PURE__*/ jsx(Button, {
|
|
83
83
|
intent: intent,
|
|
84
84
|
variant: "filled",
|
|
85
85
|
"aria-label": "Close",
|
|
86
|
-
className:
|
|
86
|
+
className: clsx('infonomic-alert-close', alert_module.close),
|
|
87
87
|
type: "button",
|
|
88
88
|
onClick: handleOnClose,
|
|
89
89
|
...rest,
|
|
@@ -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
|
.alert,
|
|
@@ -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(.alert-dXimWG, .infonomic-alert) {
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
font-size: 1.1rem;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
@media (
|
|
78
|
+
@media (width >= 40rem) {
|
|
79
79
|
:is(.content-oyoXMS, .infonomic-alert-content) {
|
|
80
80
|
padding-top: 1px;
|
|
81
81
|
font-size: 1rem;
|
|
@@ -126,3 +126,5 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
130
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import react from "react";
|
|
4
4
|
import { Toast } from "@base-ui/react/toast";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
6
|
import { CloseIcon } from "../../icons/close-icon.js";
|
|
7
7
|
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
8
8
|
import { InfoIcon } from "../../icons/info-icon.js";
|
|
@@ -30,7 +30,7 @@ function ToastViewport({ position = 'bottom-right', className }) {
|
|
|
30
30
|
const { toasts } = Toast.useToastManager();
|
|
31
31
|
return /*#__PURE__*/ jsx(Toast.Portal, {
|
|
32
32
|
children: /*#__PURE__*/ jsx(Toast.Viewport, {
|
|
33
|
-
className:
|
|
33
|
+
className: clsx('infonomic-toast-viewport', toast_module.viewport, toast_module[position], className),
|
|
34
34
|
children: toasts.map((toast)=>/*#__PURE__*/ jsx(ToastItem, {
|
|
35
35
|
toast: toast
|
|
36
36
|
}, toast.id))
|
|
@@ -48,12 +48,12 @@ function ToastItem({ toast }) {
|
|
|
48
48
|
return /*#__PURE__*/ jsx(Toast.Root, {
|
|
49
49
|
toast: toast,
|
|
50
50
|
swipeDirection: swipeDirection,
|
|
51
|
-
className:
|
|
51
|
+
className: clsx('infonomic-toast', toast_module.root),
|
|
52
52
|
children: /*#__PURE__*/ jsxs(Toast.Content, {
|
|
53
|
-
className:
|
|
53
|
+
className: clsx('infonomic-toast-content', toast_module.content),
|
|
54
54
|
children: [
|
|
55
55
|
/*#__PURE__*/ jsxs("div", {
|
|
56
|
-
className:
|
|
56
|
+
className: clsx('infonomic-toast-header', toast_module.header),
|
|
57
57
|
children: [
|
|
58
58
|
/*#__PURE__*/ jsx("time", {
|
|
59
59
|
dateTime: eventDateRef.current.toISOString(),
|
|
@@ -70,7 +70,7 @@ function ToastItem({ toast }) {
|
|
|
70
70
|
tabIndex: 0,
|
|
71
71
|
variant: "filled",
|
|
72
72
|
"aria-label": "Close",
|
|
73
|
-
className:
|
|
73
|
+
className: clsx('infonomic-toast-close', toast_module.close),
|
|
74
74
|
type: "button"
|
|
75
75
|
}),
|
|
76
76
|
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
@@ -81,14 +81,14 @@ function ToastItem({ toast }) {
|
|
|
81
81
|
]
|
|
82
82
|
}),
|
|
83
83
|
/*#__PURE__*/ jsxs(Toast.Title, {
|
|
84
|
-
className:
|
|
84
|
+
className: clsx('infonomic-toast-title', toast_module.title),
|
|
85
85
|
children: [
|
|
86
86
|
icon && Icon && /*#__PURE__*/ jsx(Icon, {}),
|
|
87
87
|
toast.title
|
|
88
88
|
]
|
|
89
89
|
}),
|
|
90
90
|
/*#__PURE__*/ jsx(Toast.Description, {
|
|
91
|
-
className:
|
|
91
|
+
className: clsx("infonomic-toast-description", toast_module.description),
|
|
92
92
|
children: toast.description
|
|
93
93
|
})
|
|
94
94
|
]
|
|
@@ -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
|
/* ============================================
|
|
@@ -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(.viewport-x4CvHl, .infonomic-toast-viewport) {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
left: var(--viewport-padding);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@media (
|
|
26
|
+
@media (width >= 48rem) {
|
|
27
27
|
:is(.bottom-right-Nzuhur, .infonomic-toast-bottom-right) {
|
|
28
28
|
bottom: var(--viewport-padding);
|
|
29
29
|
right: var(--viewport-padding);
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
@media (
|
|
89
|
+
@media (width >= 48rem) {
|
|
90
90
|
.viewport-x4CvHl.top-right-OsKbVb .root-dWN7jD[data-starting-style], .viewport-x4CvHl.bottom-right-Nzuhur .root-dWN7jD[data-starting-style] {
|
|
91
91
|
opacity: 0;
|
|
92
92
|
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
@@ -210,3 +210,5 @@
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
214
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import { usePager } from "./pagination.js";
|
|
5
5
|
import pagination_module from "./pagination.module.js";
|
|
6
6
|
function Ellipses() {
|
|
@@ -8,7 +8,7 @@ function Ellipses() {
|
|
|
8
8
|
return /*#__PURE__*/ jsx("li", {
|
|
9
9
|
className: "flex",
|
|
10
10
|
children: /*#__PURE__*/ jsx("div", {
|
|
11
|
-
className:
|
|
11
|
+
className: clsx(pagination_module.ellipses, 'pagination-ellipses'),
|
|
12
12
|
children: "..."
|
|
13
13
|
})
|
|
14
14
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PagerButtonProps, RefType } from './pagination';
|
|
2
|
+
import type { PagerButtonProps, RefType } from './pagination.js';
|
|
3
3
|
export declare function FirstButton({ ref, className, disabled, render, children, ...rest }: PagerButtonProps & {
|
|
4
4
|
ref?: React.RefObject<RefType>;
|
|
5
5
|
}): React.JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import react from "react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { ChevronLeftDoubleIcon } from "../../icons/chevron-left-double-icon.js";
|
|
6
6
|
import { usePager } from "./pagination.js";
|
|
7
7
|
import pagination_module from "./pagination.module.js";
|
|
8
8
|
const FirstButton = ({ ref, className, disabled, render, children, ...rest })=>{
|
|
9
9
|
const { variant } = usePager();
|
|
10
10
|
const sharedProps = {
|
|
11
|
-
className:
|
|
11
|
+
className: clsx(pagination_module["first-button"], pagination_module[variant], pagination_module["rounded-left"], 'pagination-first', className),
|
|
12
12
|
disabled,
|
|
13
13
|
'data-testid': 'pagination-first',
|
|
14
14
|
title: 'First',
|