@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,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import autocomplete_module from "./autocomplete.module.js";
|
|
6
6
|
import { ErrorText } from "./error-text.js";
|
|
7
7
|
import { HelpText } from "./help-text.js";
|
|
8
8
|
import { Label } from "./label.js";
|
|
9
9
|
function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize = 'md', intent = 'primary', required, placeholder = '', autoComplete = 'off', error = false, helpText = '', errorText = '', emptyText = 'No results found.', className, inputClassName, wrapperClassName, items, children, sideOffset = 4, ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className:
|
|
11
|
+
className: clsx('infonomic-autocomplete-wrapper', autocomplete_module["autocomplete-wrapper"], wrapperClassName),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs(Autocomplete.Root, {
|
|
14
14
|
items: items,
|
|
@@ -29,23 +29,23 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
29
29
|
"aria-required": required,
|
|
30
30
|
"aria-errormessage": error ? errorText : void 0,
|
|
31
31
|
"aria-describedby": error ? `error-for-${id}` : void 0,
|
|
32
|
-
className:
|
|
32
|
+
className: clsx('infonomic-autocomplete-input', `infonomic-autocomplete-input-${variant}`, `infonomic-autocomplete-input-${inputSize}`, `infonomic-autocomplete-input-${intent}`, autocomplete_module.input, autocomplete_module[variant], autocomplete_module[inputSize], autocomplete_module[intent], {
|
|
33
33
|
[autocomplete_module.error]: error
|
|
34
34
|
}, className, inputClassName)
|
|
35
35
|
}),
|
|
36
36
|
/*#__PURE__*/ jsx(Autocomplete.Portal, {
|
|
37
37
|
children: /*#__PURE__*/ jsx(Autocomplete.Positioner, {
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('infonomic-autocomplete-positioner', autocomplete_module.positioner),
|
|
39
39
|
sideOffset: sideOffset,
|
|
40
40
|
children: /*#__PURE__*/ jsxs(Autocomplete.Popup, {
|
|
41
|
-
className:
|
|
41
|
+
className: clsx('infonomic-autocomplete-popup', autocomplete_module.popup, null != inputSize && autocomplete_module[`popup-${inputSize}`]),
|
|
42
42
|
children: [
|
|
43
43
|
/*#__PURE__*/ jsx(Autocomplete.Empty, {
|
|
44
|
-
className:
|
|
44
|
+
className: clsx('infonomic-autocomplete-empty', autocomplete_module.empty),
|
|
45
45
|
children: emptyText
|
|
46
46
|
}),
|
|
47
47
|
/*#__PURE__*/ jsx(Autocomplete.List, {
|
|
48
|
-
className:
|
|
48
|
+
className: clsx('infonomic-autocomplete-list', autocomplete_module.list),
|
|
49
49
|
children: children
|
|
50
50
|
})
|
|
51
51
|
]
|
|
@@ -66,7 +66,7 @@ function autocomplete_Autocomplete({ id, label, variant = 'outlined', inputSize
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Item, {
|
|
69
|
-
className:
|
|
69
|
+
className: clsx('infonomic-autocomplete-item', autocomplete_module["autocomplete-item"], className),
|
|
70
70
|
...props,
|
|
71
71
|
ref: forwardedRef,
|
|
72
72
|
children: children
|
|
@@ -74,13 +74,13 @@ const AutocompleteItem = ({ ref: forwardedRef, children, className, ...props })=
|
|
|
74
74
|
AutocompleteItem.displayName = 'AutocompleteItem';
|
|
75
75
|
const AutocompleteGroup = Autocomplete.Group;
|
|
76
76
|
const AutocompleteGroupLabel = ({ children, className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.GroupLabel, {
|
|
77
|
-
className:
|
|
77
|
+
className: clsx('infonomic-autocomplete-group-label', autocomplete_module["group-label"], className),
|
|
78
78
|
...props,
|
|
79
79
|
children: children
|
|
80
80
|
});
|
|
81
81
|
AutocompleteGroupLabel.displayName = 'AutocompleteGroupLabel';
|
|
82
82
|
const AutocompleteSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(Autocomplete.Separator, {
|
|
83
|
-
className:
|
|
83
|
+
className: clsx('infonomic-autocomplete-separator', autocomplete_module.separator, className),
|
|
84
84
|
...props
|
|
85
85
|
});
|
|
86
86
|
AutocompleteSeparator.displayName = 'AutocompleteSeparator';
|
|
@@ -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
|
/* ── 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(.autocomplete-wrapper-JirsmI, .infonomic-autocomplete-wrapper) {
|
|
@@ -310,3 +310,5 @@
|
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
314
|
+
|
|
@@ -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 { DayPicker } from "react-day-picker";
|
|
6
6
|
import { ChevronsUpDown } from "../../icons/chevrons-up-down.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
@@ -9,26 +9,26 @@ import { ScrollArea } from "../scroll-area/scroll-area.js";
|
|
|
9
9
|
import calendar_module from "./calendar.module.js";
|
|
10
10
|
import * as __rspack_external_react from "react";
|
|
11
11
|
function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays = true, components: customComponents, ...props }) {
|
|
12
|
-
const _monthsClassName =
|
|
13
|
-
const _monthCaptionClassName =
|
|
14
|
-
const _dropdownsClassName =
|
|
15
|
-
const _footerClassName =
|
|
16
|
-
const _weekdaysClassName =
|
|
17
|
-
const _weekdayClassName =
|
|
18
|
-
const _captionLabelClassName =
|
|
19
|
-
const _monthGridClassName =
|
|
20
|
-
const _weekClassName =
|
|
21
|
-
const _dayClassName =
|
|
22
|
-
const _dayButtonClassName =
|
|
23
|
-
const buttonRangeClassName =
|
|
24
|
-
const _rangeStartClassName =
|
|
25
|
-
const _rangeEndClassName =
|
|
26
|
-
const _rangeMiddleClassName =
|
|
27
|
-
const _selectedClassName =
|
|
28
|
-
const _todayClassName =
|
|
29
|
-
const _outsideClassName =
|
|
30
|
-
const _disabledClassName =
|
|
31
|
-
const _hiddenClassName =
|
|
12
|
+
const _monthsClassName = clsx(calendar_module.months, props.monthsClassName);
|
|
13
|
+
const _monthCaptionClassName = clsx(calendar_module["months-caption"], props.monthCaptionClassName);
|
|
14
|
+
const _dropdownsClassName = clsx(calendar_module.dropdowns, props.dropdownsClassName);
|
|
15
|
+
const _footerClassName = clsx(calendar_module.footer, props.footerClassName);
|
|
16
|
+
const _weekdaysClassName = clsx(calendar_module.weekdays, props.weekdaysClassName);
|
|
17
|
+
const _weekdayClassName = clsx(calendar_module.weekday, props.weekdayClassName);
|
|
18
|
+
const _captionLabelClassName = clsx(calendar_module["caption-label"], props.captionLabelClassName);
|
|
19
|
+
const _monthGridClassName = clsx(calendar_module["month-grid"], props.monthGridClassName);
|
|
20
|
+
const _weekClassName = clsx(calendar_module.week, props.weekClassName);
|
|
21
|
+
const _dayClassName = clsx(calendar_module.day, props.dayClassName);
|
|
22
|
+
const _dayButtonClassName = clsx(calendar_module["day-button"], props.dayButtonClassName);
|
|
23
|
+
const buttonRangeClassName = clsx(calendar_module["button-range"]);
|
|
24
|
+
const _rangeStartClassName = clsx(buttonRangeClassName, calendar_module["range-start"], props.rangeStartClassName);
|
|
25
|
+
const _rangeEndClassName = clsx(buttonRangeClassName, calendar_module["range-end"], props.rangeEndClassName);
|
|
26
|
+
const _rangeMiddleClassName = clsx(calendar_module["range-middle"], props.rangeMiddleClassName);
|
|
27
|
+
const _selectedClassName = clsx(calendar_module["day-selected"], props.selectedClassName);
|
|
28
|
+
const _todayClassName = clsx(calendar_module.today, props.todayClassName);
|
|
29
|
+
const _outsideClassName = clsx(calendar_module.outside, props.outsideClassName);
|
|
30
|
+
const _disabledClassName = clsx(calendar_module.disabled, props.disabledClassName);
|
|
31
|
+
const _hiddenClassName = clsx(calendar_module.hidden, props.hiddenClassName);
|
|
32
32
|
const Dropdown = __rspack_external_react.useCallback(({ value, onChange, options })=>{
|
|
33
33
|
const selected = options?.find((option)=>option.value === value);
|
|
34
34
|
const handleChange = (newValue)=>{
|
|
@@ -49,7 +49,7 @@ function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays
|
|
|
49
49
|
render: /*#__PURE__*/ jsx(Button, {
|
|
50
50
|
variant: "outlined",
|
|
51
51
|
size: "sm",
|
|
52
|
-
className:
|
|
52
|
+
className: clsx(calendar_module["select-trigger"], props.selectTriggerClassName)
|
|
53
53
|
}),
|
|
54
54
|
children: [
|
|
55
55
|
/*#__PURE__*/ jsx(Select.Value, {
|
|
@@ -72,7 +72,7 @@ function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays
|
|
|
72
72
|
alignItemWithTrigger: false,
|
|
73
73
|
children: /*#__PURE__*/ jsx(Select.Popup, {
|
|
74
74
|
children: /*#__PURE__*/ jsx(ScrollArea, {
|
|
75
|
-
className:
|
|
75
|
+
className: clsx(calendar_module["scroll-area"]),
|
|
76
76
|
children: /*#__PURE__*/ jsx(Select.List, {
|
|
77
77
|
children: options?.map(({ value, label, disabled }, id)=>/*#__PURE__*/ jsx(Select.Item, {
|
|
78
78
|
className: calendar_module["select-item"],
|
|
@@ -95,7 +95,7 @@ function Calendar({ ref, className, classNames, hideNavigation, showOutsideDays
|
|
|
95
95
|
return /*#__PURE__*/ jsx(DayPicker, {
|
|
96
96
|
showOutsideDays: showOutsideDays,
|
|
97
97
|
hideNavigation: true,
|
|
98
|
-
className:
|
|
98
|
+
className: clsx(calendar_module["day-picker"], className),
|
|
99
99
|
classNames: {
|
|
100
100
|
caption_label: _captionLabelClassName,
|
|
101
101
|
day: _dayClassName,
|
|
@@ -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
|
.day-picker {
|
|
@@ -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
|
.day-picker-HSdX8f {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
background-color: #0000;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
@media (
|
|
202
|
+
@media (width >= 40rem) {
|
|
203
203
|
.months-C3oVse {
|
|
204
204
|
flex-direction: row;
|
|
205
205
|
}
|
|
@@ -221,3 +221,5 @@
|
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
225
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { Checkbox } from "./checkbox.js";
|
|
6
6
|
import checkbox_group_module from "./checkbox-group.module.js";
|
|
7
7
|
const CheckboxGroup = ({ groupName, className, checkBoxClasses, checkBoxes, defaultValues, controlledValue, disabled = false, onChange })=>{
|
|
@@ -30,7 +30,7 @@ const CheckboxGroup = ({ groupName, className, checkBoxClasses, checkBoxes, defa
|
|
|
30
30
|
onChange?.(s);
|
|
31
31
|
};
|
|
32
32
|
return /*#__PURE__*/ jsx("div", {
|
|
33
|
-
className:
|
|
33
|
+
className: clsx('infonomic-checkbox-group', checkbox_group_module["checkbox-group"], className),
|
|
34
34
|
children: checkBoxes.map((cb)=>/*#__PURE__*/ jsx(Checkbox, {
|
|
35
35
|
id: `${groupName}-${cb.id}`,
|
|
36
36
|
name: `${groupName}-${cb.id}`,
|
|
@@ -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
|
:global(.infonomic-checkbox-group),
|
|
@@ -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(.infonomic-checkbox-group, .checkbox-group-hPRXiQ) {
|
|
@@ -8,3 +8,5 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
12
|
+
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Checkbox as checkbox_Checkbox } from "@base-ui/react/checkbox";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
5
|
import { CheckIcon } from "../../icons/check-icon.js";
|
|
6
6
|
import checkbox_module from "./checkbox.module.js";
|
|
7
7
|
import { ErrorText } from "./error-text.js";
|
|
8
8
|
import { HelpText } from "./help-text.js";
|
|
9
9
|
const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'outlined', size = 'md', intent = 'primary', reverse = false, className, checkBoxClasses, containerClasses, componentClasses, labelClasses, error = false, helpText = '', errorText = '', ...rest }) {
|
|
10
10
|
return /*#__PURE__*/ jsxs("div", {
|
|
11
|
-
className:
|
|
11
|
+
className: clsx('infonomic-checkbox-container', checkbox_module.container, containerClasses),
|
|
12
12
|
children: [
|
|
13
13
|
/*#__PURE__*/ jsxs("div", {
|
|
14
|
-
className:
|
|
14
|
+
className: clsx('infonomic-checkbox-component', checkbox_module.component, componentClasses, {
|
|
15
15
|
[checkbox_module.reverse]: reverse
|
|
16
16
|
}),
|
|
17
17
|
children: [
|
|
@@ -23,11 +23,11 @@ const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'out
|
|
|
23
23
|
render: /*#__PURE__*/ jsx("button", {
|
|
24
24
|
type: "button"
|
|
25
25
|
}),
|
|
26
|
-
className:
|
|
26
|
+
className: clsx('infonomic-checkbox', `infonomic-checkbox-${variant}`, `infonomic-checkbox-${size}`, `infonomic-checkbox-${intent}`, checkbox_module.checkbox, checkbox_module[variant], checkbox_module[size], checkbox_module[intent], checkBoxClasses, className),
|
|
27
27
|
...rest,
|
|
28
28
|
children: /*#__PURE__*/ jsx(checkbox_Checkbox.Indicator, {
|
|
29
29
|
keepMounted: true,
|
|
30
|
-
className:
|
|
30
|
+
className: clsx('infonomic-checkbox-indicator', checkbox_module.indicator),
|
|
31
31
|
children: /*#__PURE__*/ jsx(CheckIcon, {
|
|
32
32
|
className: checkbox_module.icon
|
|
33
33
|
})
|
|
@@ -35,7 +35,7 @@ const inputs_checkbox_Checkbox = function({ ref, id, name, label, variant = 'out
|
|
|
35
35
|
}),
|
|
36
36
|
null != label && /*#__PURE__*/ jsx("label", {
|
|
37
37
|
htmlFor: id,
|
|
38
|
-
className:
|
|
38
|
+
className: clsx('infonomic-checkbox-label', checkbox_module.label, labelClasses),
|
|
39
39
|
children: label
|
|
40
40
|
})
|
|
41
41
|
]
|
|
@@ -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
|
.container,
|
|
@@ -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(.container-oQwpyX, .infonomic-checkbox-container) {
|
|
@@ -218,3 +218,5 @@
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
222
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import error_text_module from "./error-text.module.js";
|
|
4
4
|
function ErrorText({ id, className, size, text }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("p", {
|
|
6
6
|
id: id,
|
|
7
|
-
className:
|
|
7
|
+
className: clsx('error-text', error_text_module.text, size && error_text_module[size], className),
|
|
8
8
|
children: text
|
|
9
9
|
});
|
|
10
10
|
}
|
|
@@ -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,
|
|
@@ -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-DoybHX, .infonomic-error-text) {
|
|
@@ -19,3 +19,5 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
23
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import help_text_module from "./help-text.module.js";
|
|
4
4
|
function HelpText({ id, className, size, text }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("p", {
|
|
6
6
|
id: id,
|
|
7
|
-
className:
|
|
7
|
+
className: clsx('infonomic-help-text', help_text_module.text, size && help_text_module[size], className),
|
|
8
8
|
children: text
|
|
9
9
|
});
|
|
10
10
|
}
|
|
@@ -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,
|
|
@@ -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-tefb0a, .infonomic-help-text) {
|
|
@@ -19,3 +19,5 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
23
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import input_adornment_module from "./input-adornment.module.js";
|
|
4
4
|
function InputAdornment({ position = 'start', margins = true, className, children, ...rest }) {
|
|
5
5
|
return /*#__PURE__*/ jsx("div", {
|
|
6
|
-
className:
|
|
6
|
+
className: clsx('infonomic-input-adornment', `infonomic-input-adornment-${position}`, input_adornment_module.adornment, {
|
|
7
7
|
[input_adornment_module.start]: 'start' === position
|
|
8
8
|
}, {
|
|
9
9
|
[input_adornment_module.end]: 'end' === position
|
|
@@ -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
|
.adornment,
|
|
@@ -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(.adornment-JKPOkF, .infonomic-input-adornment) {
|
|
@@ -17,3 +17,5 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
@layer overrides, infonomic-utilities, utilities;
|
|
21
|
+
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import type { InputProps } from './input.
|
|
2
|
-
|
|
1
|
+
import type { InputProps } from './input.js';
|
|
2
|
+
/**
|
|
3
|
+
* `type` and `endAdornment` are the two props this component exists to
|
|
4
|
+
* control, so they are removed from the public surface rather than left
|
|
5
|
+
* to be overridden.
|
|
6
|
+
*
|
|
7
|
+
* They used to be overridable by accident: props were spread AFTER them,
|
|
8
|
+
* so a caller passing the obvious `type="password"` silently defeated the
|
|
9
|
+
* toggle — the icon swapped, the field stayed masked. Omitting them turns
|
|
10
|
+
* that into a compile error instead of a bug someone has to notice.
|
|
11
|
+
*/
|
|
12
|
+
export interface InputPasswordProps extends Omit<InputProps, 'type' | 'endAdornment'> {
|
|
13
|
+
/** Accessible name for the reveal control while the password is hidden. */
|
|
14
|
+
showPasswordLabel?: string;
|
|
15
|
+
/** Accessible name for the reveal control while the password is shown. */
|
|
16
|
+
hidePasswordLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function InputPassword({ showPasswordLabel, hidePasswordLabel, ...props }: InputPasswordProps): import("react").JSX.Element;
|
|
3
19
|
//# sourceMappingURL=input-password.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/input-password.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-password.d.ts","sourceRoot":"","sources":["../../../src/components/inputs/input-password.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;GASG;AACH,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC;IACnF,2EAA2E;IAC3E,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,wBAAgB,aAAa,CAAC,EAC5B,iBAAmC,EACnC,iBAAmC,EACnC,GAAG,KAAK,EACT,EAAE,kBAAkB,+BAkCpB"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
3
4
|
import { EyeClosedIcon } from "../../icons/eye-closed-icon.js";
|
|
4
5
|
import { EyeOpenIcon } from "../../icons/eye-open-icon.js";
|
|
5
6
|
import { Input } from "./input.js";
|
|
6
|
-
|
|
7
|
+
import input_password_module from "./input-password.module.js";
|
|
8
|
+
function InputPassword({ showPasswordLabel = 'Show password', hidePasswordLabel = 'Hide password', ...props }) {
|
|
7
9
|
const [visible, setVisible] = useState(false);
|
|
8
10
|
return /*#__PURE__*/ jsx(Input, {
|
|
11
|
+
...props,
|
|
9
12
|
type: visible ? 'text' : 'password',
|
|
10
|
-
endAdornment:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
endAdornment: /*#__PURE__*/ jsx("button", {
|
|
14
|
+
type: "button",
|
|
15
|
+
className: clsx('infonomic-input-password-toggle', input_password_module.toggle),
|
|
16
|
+
"aria-label": visible ? hidePasswordLabel : showPasswordLabel,
|
|
17
|
+
"aria-pressed": visible,
|
|
18
|
+
onMouseDown: (event)=>event.preventDefault(),
|
|
19
|
+
onClick: ()=>setVisible((current)=>!current),
|
|
20
|
+
children: visible ? /*#__PURE__*/ jsx(EyeOpenIcon, {
|
|
21
|
+
width: "18px",
|
|
22
|
+
height: "18px"
|
|
23
|
+
}) : /*#__PURE__*/ jsx(EyeClosedIcon, {
|
|
24
|
+
width: "18px",
|
|
25
|
+
height: "18px"
|
|
26
|
+
})
|
|
27
|
+
})
|
|
20
28
|
});
|
|
21
29
|
}
|
|
22
30
|
export { InputPassword };
|
|
@@ -0,0 +1,55 @@
|
|
|
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;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* InputPassword — the reveal toggle inside the input's end adornment.
|
|
15
|
+
*
|
|
16
|
+
* Override handle:
|
|
17
|
+
* .infonomic-input-password-toggle — the reveal/hide button
|
|
18
|
+
*
|
|
19
|
+
* It is a `<button>` so it is keyboard reachable and announced, which
|
|
20
|
+
* means the browser's default button chrome has to be stripped back to
|
|
21
|
+
* what the bare icon used to look like.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@layer infonomic-components {
|
|
25
|
+
.toggle,
|
|
26
|
+
:global(.infonomic-input-password-toggle) {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
padding: 0;
|
|
31
|
+
border: none;
|
|
32
|
+
background: none;
|
|
33
|
+
color: inherit;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
/* The icon is 18px; the box is padded out to a comfortable target
|
|
36
|
+
without changing where the icon sits. */
|
|
37
|
+
min-width: 1.375rem;
|
|
38
|
+
min-height: 1.375rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* A hairline ring at reduced opacity. The control is a 22px box sitting
|
|
43
|
+
* inside a 36px field, so a 2px ring at full `--ring-primary` reads as
|
|
44
|
+
* heavier than the input's own border and draws the eye away from the
|
|
45
|
+
* field. Thickness and offset are both 1px, which keeps the outer edge
|
|
46
|
+
* tight without touching the button box — so the 18px icon and the
|
|
47
|
+
* click target are unaffected.
|
|
48
|
+
*/
|
|
49
|
+
.toggle:focus-visible,
|
|
50
|
+
:global(.infonomic-input-password-toggle):focus-visible {
|
|
51
|
+
outline: 1px solid oklch(from var(--field-ring, var(--blue-500)) l c h / 0.6);
|
|
52
|
+
outline-offset: 1px;
|
|
53
|
+
border-radius: var(--border-radius-sm, 3px);
|
|
54
|
+
}
|
|
55
|
+
}
|