@infonomic/uikit 1.0.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/LICENSE +21 -0
- package/dist/components/@types/shared.d.ts +9 -0
- package/dist/components/@types/shared.d.ts.map +1 -0
- package/dist/components/@types/shared.js +30 -0
- package/dist/components/accordion/accordion.d.ts +32 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +51 -0
- package/dist/components/accordion/accordion.module.js +11 -0
- package/dist/components/accordion/accordion_module.css +60 -0
- package/dist/components/animation/fade-in-lift.d.ts +12 -0
- package/dist/components/animation/fade-in-lift.d.ts.map +1 -0
- package/dist/components/animation/fade-in-lift.js +27 -0
- package/dist/components/avatar/avatar.d.ts +3 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +24 -0
- package/dist/components/avatar/avatar.module.js +12 -0
- package/dist/components/avatar/avatar_module.css +44 -0
- package/dist/components/button/@types/button.d.ts +12 -0
- package/dist/components/button/@types/button.d.ts.map +1 -0
- package/dist/components/button/@types/button.js +7 -0
- package/dist/components/button/button-group.d.ts +37 -0
- package/dist/components/button/button-group.d.ts.map +1 -0
- package/dist/components/button/button-group.js +81 -0
- package/dist/components/button/button-group.module.js +6 -0
- package/dist/components/button/button-group_module.css +17 -0
- package/dist/components/button/button.d.ts +23 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +28 -0
- package/dist/components/button/button.module.js +24 -0
- package/dist/components/button/button_module.css +503 -0
- package/dist/components/button/control-buttons.d.ts +17 -0
- package/dist/components/button/control-buttons.d.ts.map +1 -0
- package/dist/components/button/control-buttons.js +88 -0
- package/dist/components/button/control-buttons.module.js +20 -0
- package/dist/components/button/control-buttons_module.css +118 -0
- package/dist/components/button/copy-button.d.ts +12 -0
- package/dist/components/button/copy-button.d.ts.map +1 -0
- package/dist/components/button/copy-button.js +57 -0
- package/dist/components/button/copy-button.module.js +13 -0
- package/dist/components/button/copy-button_module.css +30 -0
- package/dist/components/button/icon-button.d.ts +9 -0
- package/dist/components/button/icon-button.d.ts.map +1 -0
- package/dist/components/button/icon-button.js +18 -0
- package/dist/components/button/index.d.ts +6 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +5 -0
- package/dist/components/calendar/calendar.d.ts +31 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -0
- package/dist/components/calendar/calendar.js +122 -0
- package/dist/components/calendar/calendar.module.js +45 -0
- package/dist/components/calendar/calendar_module.css +256 -0
- package/dist/components/card/card.d.ts +44 -0
- package/dist/components/card/card.d.ts.map +1 -0
- package/dist/components/card/card.js +52 -0
- package/dist/components/card/card.module.js +11 -0
- package/dist/components/card/card_module.css +66 -0
- package/dist/components/container/container.d.ts +9 -0
- package/dist/components/container/container.d.ts.map +1 -0
- package/dist/components/container/container.js +12 -0
- package/dist/components/container/container.module.js +5 -0
- package/dist/components/container/container_module.css +29 -0
- package/dist/components/dropdown/dropdown.d.ts +60 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -0
- package/dist/components/dropdown/dropdown.js +92 -0
- package/dist/components/dropdown/dropdown.module.js +16 -0
- package/dist/components/dropdown/dropdown_module.css +117 -0
- package/dist/components/hamburger/hamburger.d.ts +11 -0
- package/dist/components/hamburger/hamburger.d.ts.map +1 -0
- package/dist/components/hamburger/hamburger.js +49 -0
- package/dist/components/input/@types/checkbox.d.ts +13 -0
- package/dist/components/input/@types/checkbox.d.ts.map +1 -0
- package/dist/components/input/@types/checkbox.js +10 -0
- package/dist/components/input/@types/input.d.ts +13 -0
- package/dist/components/input/@types/input.d.ts.map +1 -0
- package/dist/components/input/@types/input.js +11 -0
- package/dist/components/input/checkbox-group.d.ts +14 -0
- package/dist/components/input/checkbox-group.d.ts.map +1 -0
- package/dist/components/input/checkbox-group.js +42 -0
- package/dist/components/input/checkbox.d.ts +23 -0
- package/dist/components/input/checkbox.d.ts.map +1 -0
- package/dist/components/input/checkbox.js +47 -0
- package/dist/components/input/checkbox.module.js +25 -0
- package/dist/components/input/checkbox_module.css +248 -0
- package/dist/components/input/error-text.d.ts +9 -0
- package/dist/components/input/error-text.d.ts.map +1 -0
- package/dist/components/input/error-text.js +11 -0
- package/dist/components/input/error-text.module.js +5 -0
- package/dist/components/input/error-text_module.css +13 -0
- package/dist/components/input/errors.d.ts +14 -0
- package/dist/components/input/errors.d.ts.map +1 -0
- package/dist/components/input/errors.js +31 -0
- package/dist/components/input/help-text.d.ts +8 -0
- package/dist/components/input/help-text.d.ts.map +1 -0
- package/dist/components/input/help-text.js +10 -0
- package/dist/components/input/help-text.module.js +5 -0
- package/dist/components/input/help-text_module.css +13 -0
- package/dist/components/input/index.d.ts +9 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.js +8 -0
- package/dist/components/input/input-adornment.d.ts +11 -0
- package/dist/components/input/input-adornment.d.ts.map +1 -0
- package/dist/components/input/input-adornment.js +15 -0
- package/dist/components/input/input-adornment.module.js +7 -0
- package/dist/components/input/input-adornment_module.css +19 -0
- package/dist/components/input/input.d.ts +25 -0
- package/dist/components/input/input.d.ts.map +1 -0
- package/dist/components/input/input.js +60 -0
- package/dist/components/input/input.module.js +27 -0
- package/dist/components/input/input_module.css +283 -0
- package/dist/components/input/label.d.ts +11 -0
- package/dist/components/input/label.d.ts.map +1 -0
- package/dist/components/input/label.js +18 -0
- package/dist/components/input/label.module.js +6 -0
- package/dist/components/input/label_module.css +22 -0
- package/dist/components/input/radio-group.d.ts +23 -0
- package/dist/components/input/radio-group.d.ts.map +1 -0
- package/dist/components/input/radio-group.js +32 -0
- package/dist/components/input/radio-group.module.js +20 -0
- package/dist/components/input/radio-group_module.css +186 -0
- package/dist/components/input/select.d.ts +33 -0
- package/dist/components/input/select.d.ts.map +1 -0
- package/dist/components/input/select.js +84 -0
- package/dist/components/input/select.module.js +13 -0
- package/dist/components/input/select_module.css +77 -0
- package/dist/components/input/text-area.d.ts +20 -0
- package/dist/components/input/text-area.d.ts.map +1 -0
- package/dist/components/input/text-area.js +45 -0
- package/dist/components/input/text-area.module.js +6 -0
- package/dist/components/input/text-area_module.css +10 -0
- package/dist/components/input/utils.d.ts +3 -0
- package/dist/components/input/utils.d.ts.map +1 -0
- package/dist/components/input/utils.js +11 -0
- package/dist/components/notifications/@types/alert.d.ts +6 -0
- package/dist/components/notifications/@types/alert.d.ts.map +1 -0
- package/dist/components/notifications/@types/alert.js +0 -0
- package/dist/components/notifications/@types/toast.d.ts +9 -0
- package/dist/components/notifications/@types/toast.d.ts.map +1 -0
- package/dist/components/notifications/@types/toast.js +0 -0
- package/dist/components/notifications/alert.d.ts +14 -0
- package/dist/components/notifications/alert.d.ts.map +1 -0
- package/dist/components/notifications/alert.js +103 -0
- package/dist/components/notifications/alert.module.js +20 -0
- package/dist/components/notifications/alert_module.css +114 -0
- package/dist/components/notifications/index.js +2 -0
- package/dist/components/notifications/toast.d.ts +21 -0
- package/dist/components/notifications/toast.d.ts.map +1 -0
- package/dist/components/notifications/toast.js +82 -0
- package/dist/components/notifications/toast.module.js +24 -0
- package/dist/components/notifications/toast_module.css +207 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/index.d.ts.map +1 -0
- package/dist/components/overlay/index.js +1 -0
- package/dist/components/overlay/overlay.d.ts +9 -0
- package/dist/components/overlay/overlay.d.ts.map +1 -0
- package/dist/components/overlay/overlay.js +47 -0
- package/dist/components/overlay/overlay.module.js +13 -0
- package/dist/components/overlay/overlay_module.css +42 -0
- package/dist/components/pager/@types/index.d.ts +3 -0
- package/dist/components/pager/@types/index.d.ts.map +1 -0
- package/dist/components/pager/@types/index.js +6 -0
- package/dist/components/pager/ellipses.d.ts +3 -0
- package/dist/components/pager/ellipses.d.ts.map +1 -0
- package/dist/components/pager/ellipses.js +16 -0
- package/dist/components/pager/event-pager.js +15 -0
- package/dist/components/pager/first-button.d.ts +9 -0
- package/dist/components/pager/first-button.d.ts.map +1 -0
- package/dist/components/pager/first-button.js +31 -0
- package/dist/components/pager/hooks/types/usePagination.d.ts +75 -0
- package/dist/components/pager/hooks/types/usePagination.d.ts.map +1 -0
- package/dist/components/pager/hooks/types/usePagination.js +0 -0
- package/dist/components/pager/hooks/usePagination.d.ts +3 -0
- package/dist/components/pager/hooks/usePagination.d.ts.map +1 -0
- package/dist/components/pager/hooks/usePagination.js +80 -0
- package/dist/components/pager/icons/first.js +36 -0
- package/dist/components/pager/icons/index.js +4 -0
- package/dist/components/pager/icons/last.js +36 -0
- package/dist/components/pager/icons/next.js +24 -0
- package/dist/components/pager/icons/previous.js +24 -0
- package/dist/components/pager/index.js +4 -0
- package/dist/components/pager/last-button.d.ts +12 -0
- package/dist/components/pager/last-button.d.ts.map +1 -0
- package/dist/components/pager/last-button.js +31 -0
- package/dist/components/pager/next-button.d.ts +12 -0
- package/dist/components/pager/next-button.d.ts.map +1 -0
- package/dist/components/pager/next-button.js +35 -0
- package/dist/components/pager/number-button.d.ts +14 -0
- package/dist/components/pager/number-button.d.ts.map +1 -0
- package/dist/components/pager/number-button.js +42 -0
- package/dist/components/pager/pagination.d.ts +104 -0
- package/dist/components/pager/pagination.d.ts.map +1 -0
- package/dist/components/pager/pagination.js +134 -0
- package/dist/components/pager/pagination.module.js +29 -0
- package/dist/components/pager/pagination_module.css +98 -0
- package/dist/components/pager/previous-button.d.ts +9 -0
- package/dist/components/pager/previous-button.d.ts.map +1 -0
- package/dist/components/pager/previous-button.js +33 -0
- package/dist/components/scroll-area/scroll-area.d.ts +7 -0
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +32 -0
- package/dist/components/scroll-area/scroll-area.module.js +9 -0
- package/dist/components/scroll-area/scroll-area_module.css +79 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts +10 -0
- package/dist/components/scroll-to-top/scroll-to-top.d.ts.map +1 -0
- package/dist/components/scroll-to-top/scroll-to-top.js +43 -0
- package/dist/components/section/section.d.ts +9 -0
- package/dist/components/section/section.d.ts.map +1 -0
- package/dist/components/section/section.js +12 -0
- package/dist/components/section/section.module.js +5 -0
- package/dist/components/section/section_module.css +8 -0
- package/dist/components/shimmer/shimmer.d.ts +13 -0
- package/dist/components/shimmer/shimmer.d.ts.map +1 -0
- package/dist/components/shimmer/shimmer.js +42 -0
- package/dist/components/shimmer/shimmer.module.js +9 -0
- package/dist/components/shimmer/shimmer_module.css +47 -0
- package/dist/components/table/table.d.ts +37 -0
- package/dist/components/table/table.d.ts.map +1 -0
- package/dist/components/table/table.js +85 -0
- package/dist/components/table/table.module.js +19 -0
- package/dist/components/table/table_module.css +82 -0
- package/dist/components/tabs/tabs.d.ts +28 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +34 -0
- package/dist/components/tabs/tabs.module.js +12 -0
- package/dist/components/tabs/tabs_module.css +57 -0
- package/dist/components/timeline/timeline.d.ts +60 -0
- package/dist/components/timeline/timeline.d.ts.map +1 -0
- package/dist/components/timeline/timeline.js +74 -0
- package/dist/components/timeline/timeline.module.js +17 -0
- package/dist/components/timeline/timeline_module.css +77 -0
- package/dist/components/tooltip/tooltip.d.ts +16 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +33 -0
- package/dist/components/tooltip/tooltip.module.js +7 -0
- package/dist/components/tooltip/tooltip_module.css +51 -0
- package/dist/hooks/use-media-query.d.ts +2 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +20 -0
- package/dist/icons/activity-icon.d.ts +7 -0
- package/dist/icons/activity-icon.d.ts.map +1 -0
- package/dist/icons/activity-icon.js +45 -0
- package/dist/icons/calendar-icon.d.ts +7 -0
- package/dist/icons/calendar-icon.d.ts.map +1 -0
- package/dist/icons/calendar-icon.js +26 -0
- package/dist/icons/check-icon.d.ts +7 -0
- package/dist/icons/check-icon.d.ts.map +1 -0
- package/dist/icons/check-icon.js +25 -0
- package/dist/icons/chevron-down-icon.d.ts +7 -0
- package/dist/icons/chevron-down-icon.d.ts.map +1 -0
- package/dist/icons/chevron-down-icon.js +27 -0
- package/dist/icons/chevron-left-double-icon.d.ts +27 -0
- package/dist/icons/chevron-left-double-icon.d.ts.map +1 -0
- package/dist/icons/chevron-left-double-icon.js +28 -0
- package/dist/icons/chevron-left-icon.d.ts +27 -0
- package/dist/icons/chevron-left-icon.d.ts.map +1 -0
- package/dist/icons/chevron-left-icon.js +28 -0
- package/dist/icons/chevron-right-double-icon.d.ts +27 -0
- package/dist/icons/chevron-right-double-icon.d.ts.map +1 -0
- package/dist/icons/chevron-right-double-icon.js +28 -0
- package/dist/icons/chevron-right-icon.d.ts +27 -0
- package/dist/icons/chevron-right-icon.d.ts.map +1 -0
- package/dist/icons/chevron-right-icon.js +28 -0
- package/dist/icons/chevrons-up-down.d.ts +7 -0
- package/dist/icons/chevrons-up-down.d.ts.map +1 -0
- package/dist/icons/chevrons-up-down.js +34 -0
- package/dist/icons/close-icon.d.ts +7 -0
- package/dist/icons/close-icon.d.ts.map +1 -0
- package/dist/icons/close-icon.js +25 -0
- package/dist/icons/copy-icon.d.ts +7 -0
- package/dist/icons/copy-icon.d.ts.map +1 -0
- package/dist/icons/copy-icon.js +26 -0
- package/dist/icons/danger-icon.d.ts +4 -0
- package/dist/icons/danger-icon.d.ts.map +1 -0
- package/dist/icons/danger-icon.js +24 -0
- package/dist/icons/dashboard-icon.d.ts +7 -0
- package/dist/icons/dashboard-icon.d.ts.map +1 -0
- package/dist/icons/dashboard-icon.js +43 -0
- package/dist/icons/delete-icon.d.ts +7 -0
- package/dist/icons/delete-icon.d.ts.map +1 -0
- package/dist/icons/delete-icon.js +42 -0
- package/dist/icons/document-icon.d.ts +7 -0
- package/dist/icons/document-icon.d.ts.map +1 -0
- package/dist/icons/document-icon.js +36 -0
- package/dist/icons/download-icon.d.ts +7 -0
- package/dist/icons/download-icon.d.ts.map +1 -0
- package/dist/icons/download-icon.js +27 -0
- package/dist/icons/edit-icon.d.ts +7 -0
- package/dist/icons/edit-icon.d.ts.map +1 -0
- package/dist/icons/edit-icon.js +39 -0
- package/dist/icons/ellipsis-icon.d.ts +7 -0
- package/dist/icons/ellipsis-icon.d.ts.map +1 -0
- package/dist/icons/ellipsis-icon.js +40 -0
- package/dist/icons/email-icon.d.ts +7 -0
- package/dist/icons/email-icon.d.ts.map +1 -0
- package/dist/icons/email-icon.js +31 -0
- package/dist/icons/external-link-icon.d.ts +7 -0
- package/dist/icons/external-link-icon.d.ts.map +1 -0
- package/dist/icons/external-link-icon.js +27 -0
- package/dist/icons/github-icon.d.ts +7 -0
- package/dist/icons/github-icon.d.ts.map +1 -0
- package/dist/icons/github-icon.js +24 -0
- package/dist/icons/globe-icon.d.ts +7 -0
- package/dist/icons/globe-icon.d.ts.map +1 -0
- package/dist/icons/globe-icon.js +44 -0
- package/dist/icons/google-icon.d.ts +7 -0
- package/dist/icons/google-icon.d.ts.map +1 -0
- package/dist/icons/google-icon.js +42 -0
- package/dist/icons/gripper-vertical-icon.d.ts +7 -0
- package/dist/icons/gripper-vertical-icon.d.ts.map +1 -0
- package/dist/icons/gripper-vertical-icon.js +49 -0
- package/dist/icons/home-icon.d.ts +7 -0
- package/dist/icons/home-icon.d.ts.map +1 -0
- package/dist/icons/home-icon.js +37 -0
- package/dist/icons/icon-element.d.ts +11 -0
- package/dist/icons/icon-element.d.ts.map +1 -0
- package/dist/icons/icon-element.js +19 -0
- package/dist/icons/icon-sprite.js +10 -0
- package/dist/icons/icons.module.js +44 -0
- package/dist/icons/icons_module.css +148 -0
- package/dist/icons/index.d.ts +40 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +39 -0
- package/dist/icons/info-icon.d.ts +4 -0
- package/dist/icons/info-icon.d.ts.map +1 -0
- package/dist/icons/info-icon.js +24 -0
- package/dist/icons/infonomic-icon.d.ts +7 -0
- package/dist/icons/infonomic-icon.d.ts.map +1 -0
- package/dist/icons/infonomic-icon.js +211 -0
- package/dist/icons/light-icon.d.ts +7 -0
- package/dist/icons/light-icon.d.ts.map +1 -0
- package/dist/icons/light-icon.js +23 -0
- package/dist/icons/location-pin-icon.d.ts +7 -0
- package/dist/icons/location-pin-icon.d.ts.map +1 -0
- package/dist/icons/location-pin-icon.js +31 -0
- package/dist/icons/moon-icon.d.ts +7 -0
- package/dist/icons/moon-icon.d.ts.map +1 -0
- package/dist/icons/moon-icon.js +26 -0
- package/dist/icons/plus-icon.d.ts +7 -0
- package/dist/icons/plus-icon.d.ts.map +1 -0
- package/dist/icons/plus-icon.js +32 -0
- package/dist/icons/primary-icon.d.ts +4 -0
- package/dist/icons/primary-icon.d.ts.map +1 -0
- package/dist/icons/primary-icon.js +21 -0
- package/dist/icons/refresh-icon.d.ts +7 -0
- package/dist/icons/refresh-icon.d.ts.map +1 -0
- package/dist/icons/refresh-icon.js +31 -0
- package/dist/icons/return-icon.d.ts +7 -0
- package/dist/icons/return-icon.d.ts.map +1 -0
- package/dist/icons/return-icon.js +35 -0
- package/dist/icons/roles-icon.d.ts +7 -0
- package/dist/icons/roles-icon.d.ts.map +1 -0
- package/dist/icons/roles-icon.js +34 -0
- package/dist/icons/search-icon.d.ts +7 -0
- package/dist/icons/search-icon.d.ts.map +1 -0
- package/dist/icons/search-icon.js +23 -0
- package/dist/icons/search-menu-icon.d.ts +7 -0
- package/dist/icons/search-menu-icon.d.ts.map +1 -0
- package/dist/icons/search-menu-icon.js +42 -0
- package/dist/icons/settings-gear-icon.d.ts +7 -0
- package/dist/icons/settings-gear-icon.d.ts.map +1 -0
- package/dist/icons/settings-gear-icon.js +34 -0
- package/dist/icons/settings-sliders-icon.d.ts +7 -0
- package/dist/icons/settings-sliders-icon.d.ts.map +1 -0
- package/dist/icons/settings-sliders-icon.js +55 -0
- package/dist/icons/sign-out-icon.d.ts +7 -0
- package/dist/icons/sign-out-icon.d.ts.map +1 -0
- package/dist/icons/sign-out-icon.js +39 -0
- package/dist/icons/stopwatch-icon.d.ts +7 -0
- package/dist/icons/stopwatch-icon.d.ts.map +1 -0
- package/dist/icons/stopwatch-icon.js +26 -0
- package/dist/icons/success-icon.d.ts +4 -0
- package/dist/icons/success-icon.d.ts.map +1 -0
- package/dist/icons/success-icon.js +24 -0
- package/dist/icons/types/icon.d.ts +10 -0
- package/dist/icons/types/icon.d.ts.map +1 -0
- package/dist/icons/types/icon.js +0 -0
- package/dist/icons/user-icon.d.ts +7 -0
- package/dist/icons/user-icon.d.ts.map +1 -0
- package/dist/icons/user-icon.js +31 -0
- package/dist/icons/users-icon.d.ts +7 -0
- package/dist/icons/users-icon.d.ts.map +1 -0
- package/dist/icons/users-icon.js +37 -0
- package/dist/icons/wallet-icon.d.ts +7 -0
- package/dist/icons/wallet-icon.d.ts.map +1 -0
- package/dist/icons/wallet-icon.js +23 -0
- package/dist/icons/warning-icon.d.ts +4 -0
- package/dist/icons/warning-icon.d.ts.map +1 -0
- package/dist/icons/warning-icon.js +24 -0
- package/dist/icons/x-icon.d.ts +7 -0
- package/dist/icons/x-icon.d.ts.map +1 -0
- package/dist/icons/x-icon.js +25 -0
- package/dist/loaders/ellipses.d.ts +4 -0
- package/dist/loaders/ellipses.d.ts.map +1 -0
- package/dist/loaders/ellipses.js +23 -0
- package/dist/loaders/ring.d.ts +4 -0
- package/dist/loaders/ring.d.ts.map +1 -0
- package/dist/loaders/ring.js +25 -0
- package/dist/loaders/spinner.d.ts +6 -0
- package/dist/loaders/spinner.d.ts.map +1 -0
- package/dist/loaders/spinner.js +22 -0
- package/dist/loaders/types/index.d.ts +7 -0
- package/dist/loaders/types/index.d.ts.map +1 -0
- package/dist/loaders/types/index.js +0 -0
- package/dist/react.d.ts +97 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +92 -0
- package/dist/styles/styles.css +1 -0
- package/dist/styles/typography.css +1 -0
- package/dist/theme/theme-provider/index.js +1 -0
- package/dist/theme/theme-provider/provider.js +25 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/capitalize.js +5 -0
- package/dist/utils/externalLinkProps.js +6 -0
- package/dist/utils/findMatch.js +6 -0
- package/dist/utils/getPortalRoot.d.ts +2 -0
- package/dist/utils/getPortalRoot.d.ts.map +1 -0
- package/dist/utils/getPortalRoot.js +4 -0
- package/dist/utils/isTouchDevice.js +3 -0
- package/dist/utils/objectsToArray.js +15 -0
- package/dist/utils/objectsToString.js +5 -0
- package/dist/utils/polymorphic.js +0 -0
- package/dist/utils/to-kebab-case.js +5 -0
- package/dist/widgets/datepicker/datepicker.js +245 -0
- package/dist/widgets/datepicker/datepicker.module.js +33 -0
- package/dist/widgets/datepicker/datepicker_module.css +187 -0
- package/dist/widgets/drawer/drawer-container.d.ts +10 -0
- package/dist/widgets/drawer/drawer-container.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-container.js +14 -0
- package/dist/widgets/drawer/drawer-content.d.ts +10 -0
- package/dist/widgets/drawer/drawer-content.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-content.js +13 -0
- package/dist/widgets/drawer/drawer-context.d.ts +14 -0
- package/dist/widgets/drawer/drawer-context.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-context.js +34 -0
- package/dist/widgets/drawer/drawer-header.d.ts +10 -0
- package/dist/widgets/drawer/drawer-header.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-header.js +17 -0
- package/dist/widgets/drawer/drawer-top-actions.d.ts +10 -0
- package/dist/widgets/drawer/drawer-top-actions.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-top-actions.js +17 -0
- package/dist/widgets/drawer/drawer-wrapper.d.ts +9 -0
- package/dist/widgets/drawer/drawer-wrapper.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer-wrapper.js +37 -0
- package/dist/widgets/drawer/drawer.d.ts +27 -0
- package/dist/widgets/drawer/drawer.d.ts.map +1 -0
- package/dist/widgets/drawer/drawer.js +74 -0
- package/dist/widgets/drawer/drawer.module.js +29 -0
- package/dist/widgets/drawer/drawer_module.css +109 -0
- package/dist/widgets/drawer/motionDomAnimation.d.ts +3 -0
- package/dist/widgets/drawer/motionDomAnimation.d.ts.map +1 -0
- package/dist/widgets/drawer/motionDomAnimation.js +4 -0
- package/dist/widgets/drawer/motionDomMax.d.ts +3 -0
- package/dist/widgets/drawer/motionDomMax.d.ts.map +1 -0
- package/dist/widgets/drawer/motionDomMax.js +4 -0
- package/dist/widgets/modal/modal-actions.d.ts +10 -0
- package/dist/widgets/modal/modal-actions.d.ts.map +1 -0
- package/dist/widgets/modal/modal-actions.js +13 -0
- package/dist/widgets/modal/modal-container.d.ts +10 -0
- package/dist/widgets/modal/modal-container.d.ts.map +1 -0
- package/dist/widgets/modal/modal-container.js +13 -0
- package/dist/widgets/modal/modal-content.d.ts +10 -0
- package/dist/widgets/modal/modal-content.d.ts.map +1 -0
- package/dist/widgets/modal/modal-content.js +13 -0
- package/dist/widgets/modal/modal-header.d.ts +10 -0
- package/dist/widgets/modal/modal-header.d.ts.map +1 -0
- package/dist/widgets/modal/modal-header.js +17 -0
- package/dist/widgets/modal/modal-wrapper.d.ts +8 -0
- package/dist/widgets/modal/modal-wrapper.d.ts.map +1 -0
- package/dist/widgets/modal/modal-wrapper.js +36 -0
- package/dist/widgets/modal/modal.d.ts +35 -0
- package/dist/widgets/modal/modal.d.ts.map +1 -0
- package/dist/widgets/modal/modal.js +71 -0
- package/dist/widgets/modal/modal.module.js +14 -0
- package/dist/widgets/modal/modal_module.css +82 -0
- package/dist/widgets/modal/motionDomAnimation.d.ts +3 -0
- package/dist/widgets/modal/motionDomAnimation.d.ts.map +1 -0
- package/dist/widgets/modal/motionDomAnimation.js +4 -0
- package/dist/widgets/modal/motionDomMax.d.ts +3 -0
- package/dist/widgets/modal/motionDomMax.d.ts.map +1 -0
- package/dist/widgets/modal/motionDomMax.js +4 -0
- package/dist/widgets/search/index.js +1 -0
- package/dist/widgets/search/search.d.ts +21 -0
- package/dist/widgets/search/search.d.ts.map +1 -0
- package/dist/widgets/search/search.js +108 -0
- package/package.json +112 -0
- package/src/astro.js +43 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import { Button } from "../button/button.js";
|
|
6
|
+
import { CloseIcon } from "../../icons/close-icon.js";
|
|
7
|
+
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
8
|
+
import { InfoIcon } from "../../icons/info-icon.js";
|
|
9
|
+
import { SuccessIcon } from "../../icons/success-icon.js";
|
|
10
|
+
import { WarningIcon } from "../../icons/warning-icon.js";
|
|
11
|
+
import alert_module from "./alert.module.js";
|
|
12
|
+
const alertIcons = {
|
|
13
|
+
primary: WarningIcon,
|
|
14
|
+
secondary: InfoIcon,
|
|
15
|
+
success: SuccessIcon,
|
|
16
|
+
info: InfoIcon,
|
|
17
|
+
warning: WarningIcon,
|
|
18
|
+
danger: DangerIcon
|
|
19
|
+
};
|
|
20
|
+
const alert_Alert = function({ ref, intent = 'success', icon = true, close = true, title, className, children, ...rest }) {
|
|
21
|
+
const [show, setShow] = useState(true);
|
|
22
|
+
const [fade, setFade] = useState(false);
|
|
23
|
+
const Icon = alertIcons[intent];
|
|
24
|
+
const handleOnClose = ()=>{
|
|
25
|
+
setFade(true);
|
|
26
|
+
setTimeout(()=>setShow(false), 400);
|
|
27
|
+
};
|
|
28
|
+
useEffect(()=>{}, [
|
|
29
|
+
show
|
|
30
|
+
]);
|
|
31
|
+
if (false === show) return null;
|
|
32
|
+
return /*#__PURE__*/ jsx("div", {
|
|
33
|
+
ref: ref,
|
|
34
|
+
className: classnames(alert_module.alert, alert_module[intent], className, {
|
|
35
|
+
[alert_module.fade]: fade
|
|
36
|
+
}),
|
|
37
|
+
...rest,
|
|
38
|
+
children: null != title ? /*#__PURE__*/ jsx(Fragment, {
|
|
39
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
40
|
+
className: alert_module["alert-with-title"],
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ jsxs("div", {
|
|
43
|
+
className: classnames(alert_module.header),
|
|
44
|
+
children: [
|
|
45
|
+
icon && /*#__PURE__*/ jsx(Icon, {
|
|
46
|
+
useSprite: true,
|
|
47
|
+
className: alert_module.icon
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ jsx("div", {
|
|
50
|
+
className: classnames(alert_module.title),
|
|
51
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
52
|
+
children: title
|
|
53
|
+
})
|
|
54
|
+
}),
|
|
55
|
+
true === close && /*#__PURE__*/ jsx(Button, {
|
|
56
|
+
intent: intent,
|
|
57
|
+
variant: "filled",
|
|
58
|
+
"aria-label": "Close",
|
|
59
|
+
className: classnames(alert_module.close),
|
|
60
|
+
type: "button",
|
|
61
|
+
onClick: handleOnClose,
|
|
62
|
+
...rest,
|
|
63
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
64
|
+
height: "12px",
|
|
65
|
+
width: "12px"
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
]
|
|
69
|
+
}),
|
|
70
|
+
/*#__PURE__*/ jsx("div", {
|
|
71
|
+
className: classnames(alert_module.content),
|
|
72
|
+
children: children
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
77
|
+
children: [
|
|
78
|
+
icon && /*#__PURE__*/ jsx(Icon, {
|
|
79
|
+
useSprite: true,
|
|
80
|
+
className: alert_module.icon
|
|
81
|
+
}),
|
|
82
|
+
/*#__PURE__*/ jsx("div", {
|
|
83
|
+
className: alert_module.content,
|
|
84
|
+
children: children
|
|
85
|
+
}),
|
|
86
|
+
true === close && /*#__PURE__*/ jsx(Button, {
|
|
87
|
+
intent: intent,
|
|
88
|
+
variant: "filled",
|
|
89
|
+
"aria-label": "Close",
|
|
90
|
+
className: alert_module.close,
|
|
91
|
+
type: "button",
|
|
92
|
+
onClick: handleOnClose,
|
|
93
|
+
...rest,
|
|
94
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
95
|
+
height: "12px",
|
|
96
|
+
width: "12px"
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
export { alert_Alert as Alert };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./alert_module.css";
|
|
2
|
+
const alert_module = {
|
|
3
|
+
alert: "alert-dXimWG",
|
|
4
|
+
"alert-with-title": "alert-with-title-SylcSu",
|
|
5
|
+
alertWithTitle: "alert-with-title-SylcSu",
|
|
6
|
+
icon: "icon-RcHAGq",
|
|
7
|
+
close: "close-BUVZO7",
|
|
8
|
+
fade: "fade-VGuhOJ",
|
|
9
|
+
header: "header-y_AKgG",
|
|
10
|
+
title: "title-M6aCqW",
|
|
11
|
+
content: "content-oyoXMS",
|
|
12
|
+
primary: "primary-Y1uhvt",
|
|
13
|
+
secondary: "secondary-A_6wDq",
|
|
14
|
+
noeffect: "noeffect-4mzRDQ",
|
|
15
|
+
success: "success-FCgDMo",
|
|
16
|
+
info: "info-KZnWBW",
|
|
17
|
+
warning: "warning-UtouDH",
|
|
18
|
+
danger: "danger-QFtDqI"
|
|
19
|
+
};
|
|
20
|
+
export { alert_module as default };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
.alert-dXimWG {
|
|
5
|
+
align-items: start;
|
|
6
|
+
gap: var(--gap-2);
|
|
7
|
+
border-radius: var(--border-radius-md);
|
|
8
|
+
border: 1px solid var(--alert-border);
|
|
9
|
+
background-color: var(--alert-background);
|
|
10
|
+
width: 100%;
|
|
11
|
+
margin-bottom: 1rem;
|
|
12
|
+
padding: 16px;
|
|
13
|
+
font-family: inherit;
|
|
14
|
+
font-weight: normal;
|
|
15
|
+
transition: all .3s ease-in-out;
|
|
16
|
+
display: flex;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.alert-with-title-SylcSu {
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
width: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.icon-RcHAGq {
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: flex;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.close-BUVZO7 {
|
|
32
|
+
border-radius: 100%;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
width: 24px;
|
|
36
|
+
min-width: 24px;
|
|
37
|
+
height: 24px;
|
|
38
|
+
min-height: 24px;
|
|
39
|
+
margin-top: -2px;
|
|
40
|
+
margin-left: auto;
|
|
41
|
+
padding: 0;
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.close-BUVZO7 svg {
|
|
46
|
+
fill: #fff;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fade-VGuhOJ {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
transition: opacity .4s ease-in-out;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.header-y_AKgG {
|
|
55
|
+
width: 100%;
|
|
56
|
+
margin-bottom: var(--spacing-2);
|
|
57
|
+
align-items: start;
|
|
58
|
+
gap: var(--gap-2);
|
|
59
|
+
display: flex;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title-M6aCqW {
|
|
63
|
+
padding-top: 1px;
|
|
64
|
+
font-size: 1.2rem;
|
|
65
|
+
font-weight: bold;
|
|
66
|
+
line-height: 1;
|
|
67
|
+
display: flex;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.content-oyoXMS {
|
|
71
|
+
font-size: var(--font-size-sm);
|
|
72
|
+
padding-top: 1px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.content-oyoXMS:first-child {
|
|
76
|
+
margin-top: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.primary-Y1uhvt {
|
|
80
|
+
--alert-border: var(--primary-300);
|
|
81
|
+
--alert-background: oklch(from var(--primary-500) l c h / .1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.secondary-A_6wDq {
|
|
85
|
+
--alert-border: var(--secondary-300);
|
|
86
|
+
--alert-background: oklch(from var(--secondary-500) l c h / .1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.noeffect-4mzRDQ {
|
|
90
|
+
--alert-border: var(--gray-300);
|
|
91
|
+
--alert-background: oklch(from var(--gray-500) l c h / .1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.success-FCgDMo {
|
|
95
|
+
--alert-border: var(--green-300);
|
|
96
|
+
--alert-background: oklch(from var(--green-500) l c h / .1);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.info-KZnWBW {
|
|
100
|
+
--alert-border: var(--blue-300);
|
|
101
|
+
--alert-background: oklch(from var(--blue-500) l c h / .1);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.warning-UtouDH {
|
|
105
|
+
--alert-border: var(--yellow-300);
|
|
106
|
+
--alert-background: oklch(from var(--yellow-500) l c h / .1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.danger-QFtDqI {
|
|
110
|
+
--alert-border: var(--red-300);
|
|
111
|
+
--alert-background: oklch(from var(--red-500) l c h / .1);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Toast as ToastPrimitive } from 'radix-ui';
|
|
3
|
+
import type { IconType, Intent, OnOpenChange, Position } from './@types/toast.js';
|
|
4
|
+
export interface ToastProps extends React.InputHTMLAttributes<HTMLLIElement> {
|
|
5
|
+
intent?: Intent;
|
|
6
|
+
position?: Position;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
icon?: boolean;
|
|
10
|
+
iconType?: IconType;
|
|
11
|
+
close?: boolean;
|
|
12
|
+
open: boolean;
|
|
13
|
+
onOpenChange: OnOpenChange;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
|
|
17
|
+
export declare const ToastViewport: React.ForwardRefExoticComponent<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>>;
|
|
18
|
+
export declare const Toast: ({ ref, intent, position, title, message, icon, iconType, close, open, onOpenChange, className, }: ToastProps & {
|
|
19
|
+
ref?: React.RefObject<HTMLLIElement>;
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AAalD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AASjF,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,aAAa,CAAC;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,YAAY,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,6CAA0B,CAAA;AACpD,eAAO,MAAM,aAAa,4GAA0B,CAAA;AAIpD,eAAO,MAAM,KAAK,GAAkB,kGAYjC,UAAU,GAAG;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;CACrC,sBAqEA,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useFocusTrap, useMergedRef } from "@mantine/hooks";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import react from "react";
|
|
6
|
+
import { Toast as external_radix_ui_Toast } from "radix-ui";
|
|
7
|
+
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
8
|
+
import { InfoIcon } from "../../icons/info-icon.js";
|
|
9
|
+
import { SuccessIcon } from "../../icons/success-icon.js";
|
|
10
|
+
import { WarningIcon } from "../../icons/warning-icon.js";
|
|
11
|
+
import { Button } from "../button/button.js";
|
|
12
|
+
import toast_module from "./toast.module.js";
|
|
13
|
+
import { CloseIcon } from "../../icons/close-icon.js";
|
|
14
|
+
const toastIcons = {
|
|
15
|
+
success: SuccessIcon,
|
|
16
|
+
info: InfoIcon,
|
|
17
|
+
warning: WarningIcon,
|
|
18
|
+
danger: DangerIcon
|
|
19
|
+
};
|
|
20
|
+
const ToastProvider = external_radix_ui_Toast.Provider;
|
|
21
|
+
const ToastViewport = external_radix_ui_Toast.Viewport;
|
|
22
|
+
const toast_Toast = function({ ref, intent = 'success', position = 'bottom-right', title, message, icon = true, iconType = 'success', close = true, open, onOpenChange, className }) {
|
|
23
|
+
const eventDateRef = react.useRef(new Date());
|
|
24
|
+
react.useRef(0);
|
|
25
|
+
const focusTrapRef = useFocusTrap();
|
|
26
|
+
const mergedRef = useMergedRef(ref, focusTrapRef);
|
|
27
|
+
const Icon = toastIcons[iconType];
|
|
28
|
+
const handleOnClose = ()=>{
|
|
29
|
+
if (null != onOpenChange) onOpenChange(false);
|
|
30
|
+
};
|
|
31
|
+
return /*#__PURE__*/ jsxs(external_radix_ui_Toast.Root, {
|
|
32
|
+
ref: mergedRef,
|
|
33
|
+
className: classnames(toast_module.root, toast_module[position]),
|
|
34
|
+
open: open,
|
|
35
|
+
onOpenChange: onOpenChange,
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ jsxs("div", {
|
|
38
|
+
className: toast_module.header,
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ jsx("time", {
|
|
41
|
+
dateTime: eventDateRef.current.toISOString(),
|
|
42
|
+
className: "text-sm",
|
|
43
|
+
children: new Intl.DateTimeFormat('default', {
|
|
44
|
+
hour12: true,
|
|
45
|
+
hour: 'numeric',
|
|
46
|
+
minute: 'numeric'
|
|
47
|
+
}).format(eventDateRef.current)
|
|
48
|
+
}),
|
|
49
|
+
true === close && /*#__PURE__*/ jsx(external_radix_ui_Toast.Close, {
|
|
50
|
+
"aria-label": "Close",
|
|
51
|
+
asChild: true,
|
|
52
|
+
children: /*#__PURE__*/ jsx(Button, {
|
|
53
|
+
intent: intent,
|
|
54
|
+
tabIndex: 0,
|
|
55
|
+
variant: "filled",
|
|
56
|
+
"aria-label": "Close",
|
|
57
|
+
className: toast_module.close,
|
|
58
|
+
type: "button",
|
|
59
|
+
onClick: handleOnClose,
|
|
60
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
61
|
+
height: "12px",
|
|
62
|
+
width: "12px"
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
}),
|
|
68
|
+
/*#__PURE__*/ jsxs(external_radix_ui_Toast.Title, {
|
|
69
|
+
className: toast_module.title,
|
|
70
|
+
children: [
|
|
71
|
+
null != icon && /*#__PURE__*/ jsx(Icon, {}),
|
|
72
|
+
title
|
|
73
|
+
]
|
|
74
|
+
}),
|
|
75
|
+
/*#__PURE__*/ jsx(external_radix_ui_Toast.Description, {
|
|
76
|
+
className: toast_module.description,
|
|
77
|
+
children: message
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
export { toast_Toast as Toast, ToastProvider, ToastViewport };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import "./toast_module.css";
|
|
2
|
+
const toast_module = {
|
|
3
|
+
root: "root-dWN7jD",
|
|
4
|
+
slideInFromBottom: "slideInFromBottom-O94u9U",
|
|
5
|
+
hide: "hide-vlOoW0",
|
|
6
|
+
"top-right": "top-right-OsKbVb",
|
|
7
|
+
topRight: "top-right-OsKbVb",
|
|
8
|
+
"bottom-right": "bottom-right-Nzuhur",
|
|
9
|
+
bottomRight: "bottom-right-Nzuhur",
|
|
10
|
+
swipeOutToRight: "swipeOutToRight-FWaeVx",
|
|
11
|
+
"top-left": "top-left-dy_IMc",
|
|
12
|
+
topLeft: "top-left-dy_IMc",
|
|
13
|
+
"bottom-left": "bottom-left-_RdEZn",
|
|
14
|
+
bottomLeft: "bottom-left-_RdEZn",
|
|
15
|
+
swipeOutToLeft: "swipeOutToLeft-OI9y6O",
|
|
16
|
+
header: "header-ItoxDs",
|
|
17
|
+
close: "close-HwTMjn",
|
|
18
|
+
title: "title-qfQE8M",
|
|
19
|
+
description: "description-nQWtgX",
|
|
20
|
+
action: "action-PunqB2",
|
|
21
|
+
slideInFromRight: "slideInFromRight-G4Hu_M",
|
|
22
|
+
slideInFromLeft: "slideInFromLeft-m703fy"
|
|
23
|
+
};
|
|
24
|
+
export { toast_module as default };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
@layer infonomic-base, infonomic-utilities, infonomic-theme, infonomic-typography;
|
|
2
|
+
|
|
3
|
+
@layer infonomic-components {
|
|
4
|
+
.root-dWN7jD {
|
|
5
|
+
gap: var(--gap-1);
|
|
6
|
+
background: var(--gray-25);
|
|
7
|
+
border-width: var(--border-width-thin);
|
|
8
|
+
border-color: var(--border-color);
|
|
9
|
+
border-style: var(--border-style-solid);
|
|
10
|
+
border-radius: var(--border-radius-md);
|
|
11
|
+
box-shadow: var(--shadow-sm);
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
padding-top: 12px;
|
|
14
|
+
padding-bottom: 16px;
|
|
15
|
+
display: flex;
|
|
16
|
+
position: absolute;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.root-dWN7jD:is(.dark *) {
|
|
20
|
+
background: var(--canvas-800);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.root-dWN7jD[data-state="open"] {
|
|
24
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromBottom-O94u9U;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.root-dWN7jD[data-state="closed"] {
|
|
28
|
+
animation: .1s ease-in hide-vlOoW0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.root-dWN7jD[data-swipe="move"] {
|
|
32
|
+
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.root-dWN7jD[data-swipe="cancel"] {
|
|
36
|
+
transition: transform .2s ease-out;
|
|
37
|
+
transform: translateX(0);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.root-dWN7jD.top-right-OsKbVb[data-swipe="end"], .root-dWN7jD.bottom-right-Nzuhur[data-swipe="end"] {
|
|
41
|
+
animation: .1s ease-out swipeOutToRight-FWaeVx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.root-dWN7jD.top-left-dy_IMc[data-swipe="end"], .root-dWN7jD.bottom-left-_RdEZn[data-swipe="end"] {
|
|
45
|
+
animation: .1s ease-out swipeOutToLeft-OI9y6O;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.header-ItoxDs {
|
|
49
|
+
align-items: start;
|
|
50
|
+
gap: var(--gap-2);
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
padding: 0 16px 0 12px;
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.close-HwTMjn {
|
|
57
|
+
border-radius: 100%;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
width: 24px;
|
|
61
|
+
min-width: 24px;
|
|
62
|
+
height: 24px;
|
|
63
|
+
min-height: 24px;
|
|
64
|
+
margin-top: -2px;
|
|
65
|
+
margin-left: auto;
|
|
66
|
+
padding: 0;
|
|
67
|
+
display: flex;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.close-HwTMjn svg {
|
|
71
|
+
fill: #fff;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.title-qfQE8M {
|
|
75
|
+
align-items: start;
|
|
76
|
+
gap: var(--gap-2);
|
|
77
|
+
margin-bottom: 5px;
|
|
78
|
+
padding: 0 12px 0 8px;
|
|
79
|
+
font-size: 15px;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
display: flex;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.description-nQWtgX {
|
|
85
|
+
font-size: var(--font-size-sm);
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: 0 8px 0 12px;
|
|
88
|
+
line-height: 1.3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.action-PunqB2 {
|
|
92
|
+
justify-content: end;
|
|
93
|
+
padding: 0 12px;
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.top-left-dy_IMc, .top-right-OsKbVb {
|
|
98
|
+
top: 88px;
|
|
99
|
+
left: 16px;
|
|
100
|
+
right: 16px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bottom-left-_RdEZn, .bottom-right-Nzuhur {
|
|
104
|
+
bottom: 16px;
|
|
105
|
+
left: 16px;
|
|
106
|
+
right: 16px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (min-width: 768px) {
|
|
110
|
+
.root-dWN7jD.top-right-OsKbVb[data-state="open"], .root-dWN7jD.bottom-right-Nzuhur[data-state="open"] {
|
|
111
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromRight-G4Hu_M;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.root-dWN7jD.top-left-dy_IMc[data-state="open"], .root-dWN7jD.bottom-left-_RdEZn[data-state="open"] {
|
|
115
|
+
animation: .15s cubic-bezier(.16, 1, .3, 1) slideInFromLeft-m703fy;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.bottom-right-Nzuhur {
|
|
119
|
+
width: 100%;
|
|
120
|
+
max-width: 390px;
|
|
121
|
+
bottom: 16px;
|
|
122
|
+
left: auto;
|
|
123
|
+
right: 16px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.bottom-left-_RdEZn {
|
|
127
|
+
width: 100%;
|
|
128
|
+
max-width: 390px;
|
|
129
|
+
bottom: 16px;
|
|
130
|
+
left: 16px;
|
|
131
|
+
right: auto;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.top-left-dy_IMc {
|
|
135
|
+
width: 100%;
|
|
136
|
+
max-width: 390px;
|
|
137
|
+
inset: 88px auto auto 16px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.top-right-OsKbVb {
|
|
141
|
+
width: 100%;
|
|
142
|
+
max-width: 390px;
|
|
143
|
+
inset: 88px 16px auto auto;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes slideInFromRight-G4Hu_M {
|
|
148
|
+
from {
|
|
149
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
to {
|
|
153
|
+
transform: translateX(0);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes slideInFromLeft-m703fy {
|
|
158
|
+
from {
|
|
159
|
+
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
to {
|
|
163
|
+
transform: translateX(0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@keyframes slideInFromBottom-O94u9U {
|
|
168
|
+
from {
|
|
169
|
+
transform: translateY(calc(100% + var(--viewport-padding)));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
to {
|
|
173
|
+
transform: translateY(0);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@keyframes swipeOutToRight-FWaeVx {
|
|
178
|
+
from {
|
|
179
|
+
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
to {
|
|
183
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@keyframes swipeOutToLeft-OI9y6O {
|
|
188
|
+
from {
|
|
189
|
+
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
to {
|
|
193
|
+
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@keyframes hide-vlOoW0 {
|
|
198
|
+
from {
|
|
199
|
+
opacity: 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
to {
|
|
203
|
+
opacity: 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./overlay.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type OverlayIntrinsicProps = React.JSX.IntrinsicElements['div'];
|
|
3
|
+
export interface OverlayProps extends OverlayIntrinsicProps {
|
|
4
|
+
isUnmounting?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function Overlay(props: OverlayProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../src/components/overlay/overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,KAAK,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAA;AAC/D,MAAM,WAAW,YAAa,SAAQ,qBAAqB;IACzD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA8BD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiB9D"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect } from "react";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import overlay_module from "./overlay.module.js";
|
|
6
|
+
const BodyLock = ()=>{
|
|
7
|
+
useEffect(()=>{
|
|
8
|
+
const mediaMatch = window.matchMedia('(min-width: 960px)');
|
|
9
|
+
let appBar;
|
|
10
|
+
if (mediaMatch.matches) {
|
|
11
|
+
document.body.style.cssText = 'overflow: hidden; padding-right: 9px;';
|
|
12
|
+
document.body.style.overflow = 'hidden';
|
|
13
|
+
appBar = document.getElementById('app-bar');
|
|
14
|
+
if (null != appBar) appBar.style.cssText = 'padding-right: 9px';
|
|
15
|
+
} else {
|
|
16
|
+
document.body.style.cssText = 'overflow: hidden;';
|
|
17
|
+
document.body.style.overflow = 'hidden';
|
|
18
|
+
}
|
|
19
|
+
return ()=>{
|
|
20
|
+
document.body.style.cssText = `
|
|
21
|
+
overflow: visible;
|
|
22
|
+
overflow: overlay;
|
|
23
|
+
`;
|
|
24
|
+
if (mediaMatch.matches) {
|
|
25
|
+
if (null != appBar) appBar.style.cssText = 'padding-right: 18px';
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}, []);
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
function Overlay(props) {
|
|
32
|
+
const { isUnmounting, className, ...rest } = props;
|
|
33
|
+
const classes = classnames(overlay_module.overlay, 'animate-fade-in', {
|
|
34
|
+
'animate-fade-out': isUnmounting
|
|
35
|
+
});
|
|
36
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
37
|
+
children: [
|
|
38
|
+
/*#__PURE__*/ jsx(BodyLock, {}),
|
|
39
|
+
/*#__PURE__*/ jsx("div", {
|
|
40
|
+
role: "presentation",
|
|
41
|
+
className: classnames(classes, className),
|
|
42
|
+
...rest
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export { Overlay };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./overlay_module.css";
|
|
2
|
+
const overlay_module = {
|
|
3
|
+
overlay: "overlay-hax8h5",
|
|
4
|
+
"animate-fade-in": "animate-fade-in-oC0Zd7",
|
|
5
|
+
animateFadeIn: "animate-fade-in-oC0Zd7",
|
|
6
|
+
"fade-in": "fade-in-ODU8WG",
|
|
7
|
+
fadeIn: "fade-in-ODU8WG",
|
|
8
|
+
"animate-fade-out": "animate-fade-out-kWVP8l",
|
|
9
|
+
animateFadeOut: "animate-fade-out-kWVP8l",
|
|
10
|
+
"fade-out": "fade-out-i2NoTL",
|
|
11
|
+
fadeOut: "fade-out-i2NoTL"
|
|
12
|
+
};
|
|
13
|
+
export { overlay_module as default };
|