@passui/react 0.1.17 → 0.1.20
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 +140 -1
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/types/src/appearance/index.d.ts +2 -0
- package/dist/types/src/appearance/platform.d.ts +9 -0
- package/dist/types/src/appearance/theme.d.ts +71 -0
- package/dist/types/src/components/accordion/accordion.d.ts +19 -0
- package/dist/types/src/components/ambient/ambient.d.ts +12 -0
- package/dist/types/src/components/ambient/index.d.ts +1 -0
- package/dist/types/src/components/aspect-ratio/aspect-ratio.d.ts +7 -0
- package/dist/types/src/components/breadcrumb/breadcrumb.d.ts +16 -0
- package/dist/types/src/components/button/button-styles.d.ts +12 -0
- package/dist/types/src/components/button/button.d.ts +32 -0
- package/dist/types/src/components/button/icon-button.d.ts +10 -0
- package/dist/types/src/components/button/pending-spinner.d.ts +5 -0
- package/dist/types/src/components/button/use-pending-indicator.d.ts +2 -0
- package/dist/types/src/components/chip/chip.d.ts +7 -0
- package/dist/types/src/components/code-block/code-block.d.ts +10 -0
- package/dist/types/src/components/combo-box/combo-box.d.ts +9 -0
- package/dist/types/src/components/command/command.d.ts +18 -0
- package/dist/types/src/components/compact-date-picker/calendar-month.d.ts +25 -0
- package/dist/types/src/components/compact-date-picker/compact-date-picker.d.ts +27 -0
- package/dist/types/src/components/compact-time-picker/compact-time-picker.d.ts +26 -0
- package/dist/types/src/components/compact-time-picker/time-value.d.ts +18 -0
- package/dist/types/src/components/content-unavailable-view/content-unavailable-view.d.ts +9 -0
- package/dist/types/src/components/content-view/content-view.d.ts +48 -0
- package/dist/types/src/components/content-view/index.d.ts +1 -0
- package/dist/types/src/components/context-menu/conceal-menu-source.d.ts +2 -0
- package/dist/types/src/components/context-menu/context-menu-host.d.ts +2 -0
- package/dist/types/src/components/context-menu/context-menu-store.d.ts +57 -0
- package/dist/types/src/components/context-menu/menu-navigation.d.ts +6 -0
- package/dist/types/src/components/context-menu/menu-position.d.ts +21 -0
- package/dist/types/src/components/context-menu/menu-reveal.d.ts +17 -0
- package/dist/types/src/components/context-menu/use-context-menu.d.ts +14 -0
- package/dist/types/src/components/conversation/conversation.d.ts +43 -0
- package/dist/types/src/components/conversation/index.d.ts +1 -0
- package/dist/types/src/components/date-picker/date-picker.d.ts +16 -0
- package/dist/types/src/components/date-picker/date-value.d.ts +2 -0
- package/dist/types/src/components/dialog/dialog-host.d.ts +6 -0
- package/dist/types/src/components/dialog/dialog-store.d.ts +23 -0
- package/dist/types/src/components/dialog/dialog.d.ts +30 -0
- package/dist/types/src/components/dialog/index.d.ts +1 -0
- package/dist/types/src/components/disclosure-group/disclosure-group.d.ts +15 -0
- package/dist/types/src/components/divider/divider.d.ts +9 -0
- package/dist/types/src/components/inline-disclosure/inline-disclosure.d.ts +15 -0
- package/dist/types/src/components/keyboard-shortcut/keyboard-shortcut.d.ts +5 -0
- package/dist/types/src/components/labeled-content/labeled-content.d.ts +19 -0
- package/dist/types/src/components/locale-switcher/index.d.ts +1 -0
- package/dist/types/src/components/locale-switcher/locale-switcher.d.ts +10 -0
- package/dist/types/src/components/menu/menu.d.ts +16 -0
- package/dist/types/src/components/one-time-code/one-time-code.d.ts +18 -0
- package/dist/types/src/components/picker/picker-trigger.d.ts +2 -0
- package/dist/types/src/components/picker/picker.d.ts +43 -0
- package/dist/types/src/components/popover/anchored-surface.d.ts +13 -0
- package/dist/types/src/components/popover/popover-fit.d.ts +21 -0
- package/dist/types/src/components/popover/popover.d.ts +18 -0
- package/dist/types/src/components/profile-image/profile-image.d.ts +4 -0
- package/dist/types/src/components/progress-view/progress-view.d.ts +13 -0
- package/dist/types/src/components/progress-view/use-liquid-progress.d.ts +3 -0
- package/dist/types/src/components/radio-group/radio-group.d.ts +17 -0
- package/dist/types/src/components/search-field/expanding-search-field.d.ts +5 -0
- package/dist/types/src/components/search-field/search-field.d.ts +6 -0
- package/dist/types/src/components/search-list/search-list.d.ts +19 -0
- package/dist/types/src/components/section/section.d.ts +15 -0
- package/dist/types/src/components/secure-field/secure-field.d.ts +4 -0
- package/dist/types/src/components/segmented-control/segmented-control.d.ts +20 -0
- package/dist/types/src/components/sheet/modal-environment.d.ts +2 -0
- package/dist/types/src/components/sheet/sheet-portal.d.ts +5 -0
- package/dist/types/src/components/sheet/sheet.d.ts +21 -0
- package/dist/types/src/components/sheet/use-sheet-focus.d.ts +3 -0
- package/dist/types/src/components/sidebar/sidebar.d.ts +19 -0
- package/dist/types/src/components/skeleton/skeleton.d.ts +6 -0
- package/dist/types/src/components/slider/slider.d.ts +14 -0
- package/dist/types/src/components/slosh-slider/liquid-step.d.ts +6 -0
- package/dist/types/src/components/slosh-slider/slosh-slider.d.ts +18 -0
- package/dist/types/src/components/stat-tile/index.d.ts +1 -0
- package/dist/types/src/components/stat-tile/stat-tile.d.ts +15 -0
- package/dist/types/src/components/status-indicator/status-indicator.d.ts +14 -0
- package/dist/types/src/components/stepper/rolling-digit.d.ts +11 -0
- package/dist/types/src/components/stepper/stepper.d.ts +19 -0
- package/dist/types/src/components/swatch-picker/swatch-picker.d.ts +17 -0
- package/dist/types/src/components/tab-bar/tab-bar.d.ts +40 -0
- package/dist/types/src/components/tab-view/tab-view.d.ts +24 -0
- package/dist/types/src/components/table/table.d.ts +10 -0
- package/dist/types/src/components/text-editor/text-editor.d.ts +2 -0
- package/dist/types/src/components/text-field/text-field.d.ts +20 -0
- package/dist/types/src/components/toast/toast-store.d.ts +47 -0
- package/dist/types/src/components/toast/toaster.d.ts +10 -0
- package/dist/types/src/components/toggle/toggle.d.ts +17 -0
- package/dist/types/src/components/tooltip/tooltip-host.d.ts +6 -0
- package/dist/types/src/components/view-controller/index.d.ts +1 -0
- package/dist/types/src/components/view-controller/view-controller.d.ts +21 -0
- package/dist/types/src/components/wake-slider/wake-slider.d.ts +12 -0
- package/dist/types/src/hooks/scroll/minimize-decision.d.ts +2 -0
- package/dist/types/src/hooks/use-anchored-disclosure.d.ts +9 -0
- package/dist/types/src/hooks/use-anchored-placement.d.ts +7 -0
- package/dist/types/src/hooks/use-dismiss.d.ts +9 -0
- package/dist/types/src/hooks/use-floating-dismiss.d.ts +3 -0
- package/dist/types/src/hooks/use-media-query.d.ts +21 -0
- package/dist/types/src/hooks/use-minimize-on-scroll.d.ts +6 -0
- package/dist/types/src/hooks/use-visual-viewport.d.ts +4 -0
- package/dist/types/src/hooks/viewport/types.d.ts +19 -0
- package/dist/types/src/hooks/viewport/viewport-metrics.d.ts +3 -0
- package/dist/types/src/icons/icons.d.ts +612 -0
- package/dist/types/src/index.d.ts +71 -0
- package/dist/types/src/lib/anchored-placement.d.ts +39 -0
- package/dist/types/src/lib/class-names.d.ts +2 -0
- package/dist/types/src/lib/clipboard.d.ts +6 -0
- package/dist/types/src/lib/date.d.ts +50 -0
- package/dist/types/src/lib/floating-layers.d.ts +8 -0
- package/dist/types/src/lib/haptics.d.ts +8 -0
- package/dist/types/src/lib/language.d.ts +4 -0
- package/dist/types/src/lib/range-value.d.ts +4 -0
- package/dist/types/src/lib/screen-edges.d.ts +12 -0
- package/dist/types/src/lib/shapes.d.ts +17 -0
- package/dist/types/src/motion/transitions.d.ts +97 -0
- package/dist/types/src/tokens.d.ts +1 -0
- package/package.json +248 -40
- package/src/appearance/platform.tsx +10 -47
- package/src/appearance/theme.tsx +42 -142
- package/src/components/accordion/accordion.tsx +48 -0
- package/src/components/ambient/ambient.tsx +2 -10
- package/src/components/aspect-ratio/aspect-ratio.tsx +22 -0
- package/src/components/breadcrumb/breadcrumb.tsx +53 -0
- package/src/components/button/button-styles.ts +13 -31
- package/src/components/button/button.tsx +24 -15
- package/src/components/button/icon-button.tsx +14 -56
- package/src/components/button/use-pending-indicator.ts +2 -7
- package/src/components/chip/chip.tsx +8 -13
- package/src/components/code-block/code-block.tsx +41 -0
- package/src/components/combo-box/combo-box.tsx +13 -0
- package/src/components/command/command.tsx +119 -0
- package/src/components/compact-date-picker/calendar-month.ts +13 -57
- package/src/components/compact-date-picker/compact-date-picker.tsx +72 -195
- package/src/components/compact-time-picker/compact-time-picker.tsx +74 -195
- package/src/components/compact-time-picker/time-value.ts +4 -16
- package/src/components/content-unavailable-view/content-unavailable-view.tsx +37 -0
- package/src/components/content-view/content-view.tsx +13 -56
- package/src/components/context-menu/conceal-menu-source.ts +1 -4
- package/src/components/context-menu/context-menu-host.tsx +132 -198
- package/src/components/context-menu/context-menu-store.ts +5 -14
- package/src/components/context-menu/menu-navigation.ts +29 -0
- package/src/components/context-menu/menu-position.ts +6 -27
- package/src/components/context-menu/menu-reveal.ts +14 -52
- package/src/components/context-menu/use-context-menu.ts +6 -30
- package/src/components/conversation/conversation.tsx +26 -72
- package/src/components/date-picker/date-picker.tsx +8 -37
- package/src/components/date-picker/date-value.ts +5 -30
- package/src/components/dialog/dialog-host.tsx +37 -76
- package/src/components/dialog/dialog-store.ts +16 -7
- package/src/components/dialog/dialog.tsx +23 -80
- package/src/components/disclosure-group/disclosure-group.tsx +79 -0
- package/src/components/divider/divider.tsx +31 -0
- package/src/components/inline-disclosure/inline-disclosure.tsx +49 -0
- package/src/components/keyboard-shortcut/keyboard-shortcut.tsx +17 -0
- package/src/components/labeled-content/labeled-content.tsx +24 -18
- package/src/components/locale-switcher/locale-switcher.tsx +20 -70
- package/src/components/menu/menu.tsx +68 -0
- package/src/components/one-time-code/one-time-code.tsx +168 -0
- package/src/components/picker/picker-trigger.ts +10 -0
- package/src/components/picker/picker.tsx +165 -283
- package/src/components/popover/anchored-surface.tsx +223 -0
- package/src/components/popover/popover-fit.ts +69 -0
- package/src/components/popover/popover.tsx +209 -63
- package/src/components/profile-image/profile-image.tsx +6 -28
- package/src/components/progress-view/progress-view.tsx +70 -0
- package/src/components/progress-view/use-liquid-progress.ts +43 -0
- package/src/components/radio-group/radio-group.tsx +63 -0
- package/src/components/search-field/expanding-search-field.tsx +183 -0
- package/src/components/search-field/search-field.tsx +25 -7
- package/src/components/search-list/search-list.tsx +58 -75
- package/src/components/section/section.tsx +18 -17
- package/src/components/secure-field/secure-field.tsx +5 -7
- package/src/components/segmented-control/segmented-control.tsx +20 -29
- package/src/components/sheet/modal-environment.ts +16 -54
- package/src/components/sheet/sheet-portal.tsx +10 -42
- package/src/components/sheet/sheet.tsx +17 -25
- package/src/components/sheet/use-sheet-focus.ts +15 -51
- package/src/components/sidebar/sidebar.tsx +44 -38
- package/src/components/skeleton/skeleton.tsx +19 -0
- package/src/components/slider/slider.tsx +76 -0
- package/src/components/slosh-slider/liquid-step.ts +42 -0
- package/src/components/slosh-slider/slosh-slider.tsx +251 -0
- package/src/components/stat-tile/stat-tile.tsx +9 -30
- package/src/components/status-indicator/status-indicator.tsx +12 -19
- package/src/components/stepper/rolling-digit.tsx +77 -0
- package/src/components/stepper/stepper.tsx +101 -0
- package/src/components/swatch-picker/swatch-picker.tsx +19 -15
- package/src/components/tab-bar/tab-bar.tsx +59 -59
- package/src/components/tab-view/tab-view.tsx +52 -57
- package/src/components/table/table.tsx +14 -62
- package/src/components/text-editor/text-editor.tsx +2 -12
- package/src/components/text-field/text-field.tsx +53 -44
- package/src/components/toast/toast-store.ts +9 -30
- package/src/components/toast/toaster.tsx +90 -104
- package/src/components/toggle/toggle.tsx +165 -44
- package/src/components/tooltip/tooltip-host.tsx +70 -67
- package/src/components/view-controller/view-controller.tsx +4 -21
- package/src/components/wake-slider/wake-slider.tsx +237 -0
- package/src/hooks/scroll/minimize-decision.ts +1 -5
- package/src/hooks/use-anchored-disclosure.ts +23 -0
- package/src/hooks/use-anchored-placement.ts +7 -14
- package/src/hooks/use-dismiss.ts +5 -23
- package/src/hooks/use-floating-dismiss.ts +28 -0
- package/src/hooks/use-media-query.ts +12 -31
- package/src/hooks/use-minimize-on-scroll.ts +10 -34
- package/src/hooks/use-visual-viewport.ts +5 -14
- package/src/hooks/viewport/viewport-metrics.ts +4 -16
- package/src/icons/icons.tsx +229 -183
- package/src/index.ts +27 -1
- package/src/lib/anchored-placement.ts +12 -18
- package/src/lib/class-names.ts +1 -2
- package/src/lib/clipboard.ts +14 -0
- package/src/lib/date.ts +4 -15
- package/src/lib/floating-layers.ts +18 -8
- package/src/lib/haptics.ts +1 -3
- package/src/lib/language.ts +2 -7
- package/src/lib/range-value.ts +32 -0
- package/src/lib/screen-edges.ts +2 -6
- package/src/lib/shapes.ts +5 -20
- package/src/motion/transitions.ts +18 -12
- package/src/styles/code-block.css +33 -0
- package/src/styles/motion-controls.css +189 -0
- package/src/styles/styles.css +3 -0
- package/src/components/ambient/ambient.docs.tsx +0 -68
- package/src/components/ambient/examples/ambient-images.tsx +0 -30
- package/src/components/ambient/examples/ambient-now-playing.tsx +0 -55
- package/src/components/ambient/examples/ambient-showcase.tsx +0 -33
- package/src/components/ambient/examples/ambient-usage.tsx +0 -19
- package/src/components/button/button.docs.tsx +0 -116
- package/src/components/button/examples/button-disabled.tsx +0 -19
- package/src/components/button/examples/button-icon.tsx +0 -39
- package/src/components/button/examples/button-link.tsx +0 -12
- package/src/components/button/examples/button-pending.tsx +0 -27
- package/src/components/button/examples/button-showcase.tsx +0 -115
- package/src/components/button/examples/button-sizes.tsx +0 -12
- package/src/components/button/examples/button-usage.tsx +0 -12
- package/src/components/button/examples/button-variants.tsx +0 -15
- package/src/components/button/examples/button-with-icon.tsx +0 -32
- package/src/components/button/examples/icon-button-player.tsx +0 -38
- package/src/components/button/examples/icon-button-showcase.tsx +0 -83
- package/src/components/button/examples/icon-button-usage.tsx +0 -11
- package/src/components/button/examples/icon-button-variants.tsx +0 -39
- package/src/components/button/icon-button.docs.tsx +0 -68
- package/src/components/chip/chip.docs.tsx +0 -37
- package/src/components/chip/examples/chip-in-rows.tsx +0 -19
- package/src/components/chip/examples/chip-showcase.tsx +0 -51
- package/src/components/chip/examples/chip-tones.tsx +0 -13
- package/src/components/chip/examples/chip-usage.tsx +0 -5
- package/src/components/compact-date-picker/compact-date-picker.docs.tsx +0 -81
- package/src/components/compact-date-picker/examples/compact-date-picker-showcase.tsx +0 -35
- package/src/components/compact-date-picker/examples/compact-date-picker-usage.tsx +0 -22
- package/src/components/compact-time-picker/compact-time-picker.docs.tsx +0 -80
- package/src/components/compact-time-picker/examples/compact-time-picker-showcase.tsx +0 -31
- package/src/components/compact-time-picker/examples/compact-time-picker-usage.tsx +0 -21
- package/src/components/content-view/content-view.docs.tsx +0 -61
- package/src/components/content-view/examples/content-view-header-action.tsx +0 -33
- package/src/components/content-view/examples/content-view-showcase.tsx +0 -65
- package/src/components/content-view/examples/content-view-stats.tsx +0 -35
- package/src/components/content-view/examples/content-view-usage.tsx +0 -14
- package/src/components/context-menu/context-menu.docs.tsx +0 -92
- package/src/components/context-menu/examples/context-menu-checked.tsx +0 -37
- package/src/components/context-menu/examples/context-menu-list.tsx +0 -85
- package/src/components/context-menu/examples/context-menu-showcase.tsx +0 -56
- package/src/components/context-menu/examples/context-menu-toolbar.tsx +0 -63
- package/src/components/context-menu/examples/context-menu-usage.tsx +0 -24
- package/src/components/conversation/conversation.docs.tsx +0 -88
- package/src/components/conversation/examples/conversation-composer.tsx +0 -36
- package/src/components/conversation/examples/conversation-days.tsx +0 -48
- package/src/components/conversation/examples/conversation-showcase.tsx +0 -71
- package/src/components/conversation/examples/conversation-usage.tsx +0 -28
- package/src/components/date-picker/date-picker.docs.tsx +0 -88
- package/src/components/date-picker/examples/date-picker-locales.tsx +0 -41
- package/src/components/date-picker/examples/date-picker-past-only.tsx +0 -29
- package/src/components/date-picker/examples/date-picker-showcase.tsx +0 -49
- package/src/components/date-picker/examples/date-picker-usage.tsx +0 -22
- package/src/components/dialog/dialog.docs.tsx +0 -114
- package/src/components/dialog/examples/dialog-confirm.tsx +0 -24
- package/src/components/dialog/examples/dialog-form.tsx +0 -46
- package/src/components/dialog/examples/dialog-inline.tsx +0 -48
- package/src/components/dialog/examples/dialog-showcase.tsx +0 -53
- package/src/components/dialog/examples/dialog-usage.tsx +0 -31
- package/src/components/labeled-content/examples/labeled-content-descriptions.tsx +0 -37
- package/src/components/labeled-content/examples/labeled-content-showcase.tsx +0 -54
- package/src/components/labeled-content/examples/labeled-content-usage.tsx +0 -22
- package/src/components/labeled-content/examples/labeled-content-values.tsx +0 -26
- package/src/components/labeled-content/examples/labeled-content-wide.tsx +0 -46
- package/src/components/labeled-content/labeled-content.docs.tsx +0 -69
- package/src/components/locale-switcher/examples/locale-switcher-native-names.tsx +0 -30
- package/src/components/locale-switcher/examples/locale-switcher-showcase.tsx +0 -46
- package/src/components/locale-switcher/examples/locale-switcher-translated-page.tsx +0 -35
- package/src/components/locale-switcher/examples/locale-switcher-usage.tsx +0 -20
- package/src/components/locale-switcher/locale-switcher.docs.tsx +0 -91
- package/src/components/picker/examples/picker-details.tsx +0 -44
- package/src/components/picker/examples/picker-searchable.tsx +0 -48
- package/src/components/picker/examples/picker-showcase.tsx +0 -66
- package/src/components/picker/examples/picker-usage.tsx +0 -20
- package/src/components/picker/picker.docs.tsx +0 -68
- package/src/components/popover/examples/popover-help.tsx +0 -57
- package/src/components/popover/examples/popover-menu.tsx +0 -51
- package/src/components/popover/examples/popover-showcase.tsx +0 -61
- package/src/components/popover/examples/popover-usage.tsx +0 -31
- package/src/components/popover/popover.docs.tsx +0 -84
- package/src/components/profile-image/examples/profile-image-fallbacks.tsx +0 -29
- package/src/components/profile-image/examples/profile-image-group.tsx +0 -34
- package/src/components/profile-image/examples/profile-image-showcase.tsx +0 -30
- package/src/components/profile-image/examples/profile-image-usage.tsx +0 -14
- package/src/components/profile-image/profile-image.docs.tsx +0 -81
- package/src/components/search-field/examples/search-field-filter.tsx +0 -53
- package/src/components/search-field/examples/search-field-showcase.tsx +0 -56
- package/src/components/search-field/examples/search-field-toolbar.tsx +0 -27
- package/src/components/search-field/examples/search-field-usage.tsx +0 -18
- package/src/components/search-field/search-field.docs.tsx +0 -58
- package/src/components/search-list/examples/search-list-dropdown.tsx +0 -53
- package/src/components/search-list/examples/search-list-groups.tsx +0 -64
- package/src/components/search-list/examples/search-list-showcase.tsx +0 -67
- package/src/components/search-list/examples/search-list-usage.tsx +0 -27
- package/src/components/search-list/search-list.docs.tsx +0 -87
- package/src/components/section/examples/section-actions.tsx +0 -35
- package/src/components/section/examples/section-groups.tsx +0 -41
- package/src/components/section/examples/section-showcase.tsx +0 -63
- package/src/components/section/examples/section-usage.tsx +0 -19
- package/src/components/section/section.docs.tsx +0 -51
- package/src/components/secure-field/examples/secure-field-new-password.tsx +0 -56
- package/src/components/secure-field/examples/secure-field-reveal.tsx +0 -20
- package/src/components/secure-field/examples/secure-field-showcase.tsx +0 -62
- package/src/components/secure-field/examples/secure-field-usage.tsx +0 -19
- package/src/components/secure-field/secure-field.docs.tsx +0 -72
- package/src/components/segmented-control/examples/segmented-control-overflow.tsx +0 -28
- package/src/components/segmented-control/examples/segmented-control-showcase.tsx +0 -59
- package/src/components/segmented-control/examples/segmented-control-usage.tsx +0 -20
- package/src/components/segmented-control/examples/segmented-control-views.tsx +0 -32
- package/src/components/segmented-control/segmented-control.docs.tsx +0 -61
- package/src/components/sheet/examples/sheet-choices.tsx +0 -58
- package/src/components/sheet/examples/sheet-share.tsx +0 -51
- package/src/components/sheet/examples/sheet-showcase.tsx +0 -74
- package/src/components/sheet/examples/sheet-usage.tsx +0 -32
- package/src/components/sheet/sheet.docs.tsx +0 -75
- package/src/components/sidebar/examples/sidebar-groups.tsx +0 -133
- package/src/components/sidebar/examples/sidebar-showcase.tsx +0 -123
- package/src/components/sidebar/examples/sidebar-unread.tsx +0 -66
- package/src/components/sidebar/examples/sidebar-usage.tsx +0 -52
- package/src/components/sidebar/sidebar.docs.tsx +0 -135
- package/src/components/stat-tile/examples/stat-tile-filters.tsx +0 -32
- package/src/components/stat-tile/examples/stat-tile-grid.tsx +0 -21
- package/src/components/stat-tile/examples/stat-tile-showcase.tsx +0 -52
- package/src/components/stat-tile/examples/stat-tile-usage.tsx +0 -13
- package/src/components/stat-tile/stat-tile.docs.tsx +0 -60
- package/src/components/status-indicator/examples/status-indicator-live.tsx +0 -34
- package/src/components/status-indicator/examples/status-indicator-showcase.tsx +0 -39
- package/src/components/status-indicator/examples/status-indicator-states.tsx +0 -17
- package/src/components/status-indicator/examples/status-indicator-usage.tsx +0 -9
- package/src/components/status-indicator/status-indicator.docs.tsx +0 -43
- package/src/components/swatch-picker/examples/swatch-picker-accents.tsx +0 -42
- package/src/components/swatch-picker/examples/swatch-picker-labels.tsx +0 -45
- package/src/components/swatch-picker/examples/swatch-picker-showcase.tsx +0 -70
- package/src/components/swatch-picker/examples/swatch-picker-usage.tsx +0 -39
- package/src/components/swatch-picker/swatch-picker.docs.tsx +0 -60
- package/src/components/tab-bar/examples/tab-bar-five-tabs.tsx +0 -66
- package/src/components/tab-bar/examples/tab-bar-minimize.tsx +0 -71
- package/src/components/tab-bar/examples/tab-bar-showcase.tsx +0 -82
- package/src/components/tab-bar/examples/tab-bar-usage.tsx +0 -54
- package/src/components/tab-bar/tab-bar.docs.tsx +0 -136
- package/src/components/tab-view/examples/tab-view-keyboard.tsx +0 -39
- package/src/components/tab-view/examples/tab-view-settings.tsx +0 -56
- package/src/components/tab-view/examples/tab-view-showcase.tsx +0 -53
- package/src/components/tab-view/examples/tab-view-usage.tsx +0 -23
- package/src/components/tab-view/tab-view.docs.tsx +0 -77
- package/src/components/table/examples/table-empty.tsx +0 -53
- package/src/components/table/examples/table-invoices.tsx +0 -102
- package/src/components/table/examples/table-selection.tsx +0 -150
- package/src/components/table/examples/table-showcase.tsx +0 -115
- package/src/components/table/examples/table-usage.tsx +0 -67
- package/src/components/table/examples/table-wide.tsx +0 -75
- package/src/components/table/table.docs.tsx +0 -131
- package/src/components/text-editor/examples/text-editor-comment.tsx +0 -48
- package/src/components/text-editor/examples/text-editor-count.tsx +0 -38
- package/src/components/text-editor/examples/text-editor-showcase.tsx +0 -58
- package/src/components/text-editor/examples/text-editor-usage.tsx +0 -25
- package/src/components/text-editor/text-editor.docs.tsx +0 -61
- package/src/components/text-field/examples/text-field-icons.tsx +0 -72
- package/src/components/text-field/examples/text-field-showcase.tsx +0 -50
- package/src/components/text-field/examples/text-field-usage.tsx +0 -18
- package/src/components/text-field/examples/text-field-validation.tsx +0 -27
- package/src/components/text-field/text-field.docs.tsx +0 -118
- package/src/components/toast/examples/toast-action.tsx +0 -32
- package/src/components/toast/examples/toast-promise.tsx +0 -45
- package/src/components/toast/examples/toast-showcase.tsx +0 -49
- package/src/components/toast/examples/toast-usage.tsx +0 -13
- package/src/components/toast/toast.docs.tsx +0 -79
- package/src/components/toggle/examples/toggle-checkboxes.tsx +0 -43
- package/src/components/toggle/examples/toggle-settings.tsx +0 -31
- package/src/components/toggle/examples/toggle-showcase.tsx +0 -59
- package/src/components/toggle/examples/toggle-usage.tsx +0 -13
- package/src/components/toggle/toggle.docs.tsx +0 -69
- package/src/components/tooltip/examples/tooltip-icon-buttons.tsx +0 -27
- package/src/components/tooltip/examples/tooltip-shortcuts.tsx +0 -38
- package/src/components/tooltip/examples/tooltip-showcase.tsx +0 -44
- package/src/components/tooltip/examples/tooltip-usage.tsx +0 -13
- package/src/components/tooltip/tooltip.docs.tsx +0 -56
- package/src/components/view-controller/examples/view-controller-action.tsx +0 -27
- package/src/components/view-controller/examples/view-controller-settings.tsx +0 -31
- package/src/components/view-controller/examples/view-controller-showcase.tsx +0 -45
- package/src/components/view-controller/examples/view-controller-usage.tsx +0 -19
- package/src/components/view-controller/view-controller.docs.tsx +0 -71
- package/src/docs/index.ts +0 -3
- package/src/docs/registry.ts +0 -113
- package/src/docs/snippet.ts +0 -17
- package/src/docs/types.ts +0 -180
package/src/icons/icons.tsx
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
+
LanguagesIcon,
|
|
3
|
+
Logout01Icon,
|
|
4
|
+
MoreVertical,
|
|
5
|
+
SentIcon,
|
|
6
|
+
InboxIcon as InboxGlyph,
|
|
7
|
+
LaptopIcon as LaptopGlyph,
|
|
8
|
+
SmartPhone01Icon,
|
|
9
|
+
Tablet01Icon,
|
|
10
|
+
Home01Icon,
|
|
11
|
+
LibraryIcon as LibraryGlyph,
|
|
12
|
+
UserIcon,
|
|
13
|
+
Analytics01Icon,
|
|
14
|
+
CustomerSupportIcon,
|
|
15
|
+
Key01Icon,
|
|
16
|
+
LockPasswordIcon,
|
|
2
17
|
Add01Icon,
|
|
3
18
|
AiMagicIcon,
|
|
4
19
|
AlarmClockIcon,
|
|
5
20
|
Alert02Icon,
|
|
21
|
+
Archive01Icon,
|
|
6
22
|
ArrowDown01Icon,
|
|
7
23
|
ArrowLeft01Icon,
|
|
8
24
|
ArrowRight01Icon,
|
|
9
25
|
ArrowUp01Icon,
|
|
10
26
|
BirthdayCakeIcon,
|
|
27
|
+
Bookmark02Icon,
|
|
11
28
|
Book02Icon,
|
|
12
29
|
BookOpen01Icon,
|
|
13
30
|
BubbleChatIcon,
|
|
@@ -43,6 +60,7 @@ import {
|
|
|
43
60
|
ThumbsUpIcon as HugeThumbsUpIcon,
|
|
44
61
|
UndoIcon as HugeUndoIcon,
|
|
45
62
|
Image01Icon,
|
|
63
|
+
InformationCircleIcon,
|
|
46
64
|
Invoice03Icon,
|
|
47
65
|
LayoutGridIcon,
|
|
48
66
|
LeftToRightListBulletIcon,
|
|
@@ -50,6 +68,9 @@ import {
|
|
|
50
68
|
Location01Icon,
|
|
51
69
|
LockIcon as LockIconSvg,
|
|
52
70
|
Mic01Icon,
|
|
71
|
+
Menu01Icon,
|
|
72
|
+
Mail01Icon,
|
|
73
|
+
MailReply01Icon,
|
|
53
74
|
Moon02Icon,
|
|
54
75
|
MoreHorizontalIcon,
|
|
55
76
|
Mortarboard01Icon,
|
|
@@ -74,6 +95,11 @@ import {
|
|
|
74
95
|
Share08Icon,
|
|
75
96
|
Store01Icon,
|
|
76
97
|
Task01Icon,
|
|
98
|
+
TextAlignCenterIcon,
|
|
99
|
+
TextAlignLeftIcon,
|
|
100
|
+
TextBoldIcon,
|
|
101
|
+
TextItalicIcon,
|
|
102
|
+
TextUnderlineIcon,
|
|
77
103
|
Tick02Icon,
|
|
78
104
|
Time04Icon,
|
|
79
105
|
Touch01Icon,
|
|
@@ -84,28 +110,61 @@ import {
|
|
|
84
110
|
ViewOffSlashIcon,
|
|
85
111
|
Wallet01Icon,
|
|
86
112
|
} from "@hugeicons/core-free-icons"
|
|
113
|
+
import { HugeiconsIcon, type IconSvgElement } from "@hugeicons/react"
|
|
87
114
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
115
|
+
Analytics01Icon as CatalogAnalyticsGlyph,
|
|
116
|
+
Calendar03Icon as CatalogCalendarGlyph,
|
|
117
|
+
Clock01Icon as CatalogClockGlyph,
|
|
118
|
+
ColorsIcon as CatalogColorsGlyph,
|
|
119
|
+
InputTextIcon as CatalogInputTextGlyph,
|
|
120
|
+
LabelIcon as CatalogLabelGlyph,
|
|
121
|
+
LayoutTwoColumnIcon as CatalogColumnsGlyph,
|
|
122
|
+
ListViewIcon as CatalogListGlyph,
|
|
123
|
+
LockPasswordIcon as CatalogPasswordGlyph,
|
|
124
|
+
Search01Icon as CatalogSearchGlyph,
|
|
125
|
+
SearchList01Icon as CatalogSearchListGlyph,
|
|
126
|
+
Settings02Icon as CatalogSettingsGlyph,
|
|
127
|
+
StatusIcon as CatalogStatusGlyph,
|
|
128
|
+
Tag01Icon as CatalogTagGlyph,
|
|
129
|
+
Tap01Icon as CatalogTapGlyph,
|
|
130
|
+
TextAlignLeftIcon as CatalogTextGlyph,
|
|
131
|
+
ToggleOnIcon as CatalogToggleGlyph,
|
|
132
|
+
UnfoldMoreIcon as CatalogUnfoldGlyph,
|
|
133
|
+
UserCircleIcon as CatalogUserGlyph,
|
|
134
|
+
LayoutTopIcon as CatalogLayoutTopGlyph,
|
|
135
|
+
LayoutBottomIcon as CatalogLayoutBottomGlyph,
|
|
136
|
+
SidebarLeftIcon as CatalogSidebarGlyph,
|
|
137
|
+
BrowserIcon as CatalogBrowserGlyph,
|
|
138
|
+
Table01Icon as CatalogTableGlyph,
|
|
139
|
+
CardsIcon as CatalogCardsGlyph,
|
|
140
|
+
Message01Icon as CatalogMessageGlyph,
|
|
141
|
+
Sun03Icon as CatalogSunGlyph,
|
|
142
|
+
AlertSquareIcon as CatalogAlertGlyph,
|
|
143
|
+
PanelBottomIcon as CatalogPanelGlyph,
|
|
144
|
+
BubbleChatIcon as CatalogBubbleGlyph,
|
|
145
|
+
Notification03Icon as CatalogNotificationGlyph,
|
|
146
|
+
MenuSquareIcon as CatalogMenuGlyph,
|
|
147
|
+
HelpCircleIcon as CatalogHelpGlyph,
|
|
148
|
+
TranslateIcon as CatalogTranslateGlyph,
|
|
149
|
+
PaintBoardIcon as GuidePaintGlyph,
|
|
150
|
+
TextIcon as GuideTextGlyph,
|
|
151
|
+
Layers01Icon as GuideLayersGlyph,
|
|
152
|
+
ArrowUp02Icon as UploadGlyph,
|
|
153
|
+
PlusSignIcon as AttachGlyph,
|
|
154
|
+
} from "@hugeicons/core-free-icons"
|
|
91
155
|
import type { SVGProps } from "react"
|
|
92
156
|
import { cn } from "../lib/class-names"
|
|
93
157
|
|
|
94
|
-
export type IconProps = Omit<
|
|
95
|
-
|
|
96
|
-
"ref"
|
|
97
|
-
> & {
|
|
158
|
+
export type IconProps = Omit<SVGProps<SVGSVGElement>, "ref"> & {
|
|
159
|
+
/** Width and height in CSS pixels. @default 20 */
|
|
98
160
|
size?: number
|
|
161
|
+
/** Stroke weight shared across Passui icons. @default 1.6 */
|
|
99
162
|
strokeWidth?: number
|
|
100
163
|
}
|
|
101
164
|
|
|
102
|
-
/**
|
|
165
|
+
/** Rounded stroke icons with Passui's default size, weight, and decorative semantics. */
|
|
103
166
|
function icon(svg: IconSvgElement, displayName: string) {
|
|
104
|
-
const Icon = ({
|
|
105
|
-
size = 20,
|
|
106
|
-
strokeWidth = 1.6,
|
|
107
|
-
...props
|
|
108
|
-
}: IconProps) => (
|
|
167
|
+
const Icon = ({ size = 20, strokeWidth = 1.6, ...props }: IconProps) => (
|
|
109
168
|
<HugeiconsIcon
|
|
110
169
|
icon={svg}
|
|
111
170
|
size={size}
|
|
@@ -119,180 +178,167 @@ function icon(svg: IconSvgElement, displayName: string) {
|
|
|
119
178
|
}
|
|
120
179
|
|
|
121
180
|
/** A filled variant for toggled states (hearted, starred). */
|
|
122
|
-
function toggleIcon(
|
|
123
|
-
svg
|
|
124
|
-
|
|
125
|
-
) {
|
|
126
|
-
const Base = icon(svg, displayName)
|
|
127
|
-
const Icon = ({
|
|
128
|
-
filled = false,
|
|
129
|
-
className,
|
|
130
|
-
...props
|
|
131
|
-
}: IconProps & { filled?: boolean }) => (
|
|
132
|
-
<Base
|
|
133
|
-
className={cn(
|
|
134
|
-
filled && "[&_path]:fill-current",
|
|
135
|
-
className
|
|
136
|
-
)}
|
|
137
|
-
{...props}
|
|
138
|
-
/>
|
|
181
|
+
function toggleIcon(svg: IconSvgElement, displayName: string) {
|
|
182
|
+
const Base = /* @__PURE__ */ icon(svg, displayName)
|
|
183
|
+
const Icon = ({ filled = false, className, ...props }: IconProps & { filled?: boolean }) => (
|
|
184
|
+
<Base className={cn(filled && "[&_path]:fill-current", className)} {...props} />
|
|
139
185
|
)
|
|
140
186
|
Icon.displayName = displayName
|
|
141
187
|
return Icon
|
|
142
188
|
}
|
|
143
189
|
|
|
144
|
-
|
|
145
|
-
export const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
"
|
|
154
|
-
)
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"
|
|
161
|
-
)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"
|
|
172
|
-
)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
)
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
export const
|
|
183
|
-
export const
|
|
184
|
-
export const
|
|
185
|
-
export const
|
|
186
|
-
export const
|
|
187
|
-
export const
|
|
188
|
-
export const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
)
|
|
192
|
-
export const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
)
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const
|
|
199
|
-
export const
|
|
200
|
-
export const
|
|
201
|
-
export const
|
|
202
|
-
export const
|
|
203
|
-
export const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
)
|
|
207
|
-
export const
|
|
208
|
-
export const
|
|
209
|
-
export const
|
|
210
|
-
export const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
)
|
|
214
|
-
export const
|
|
215
|
-
export const
|
|
216
|
-
export const
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
)
|
|
220
|
-
export const
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
)
|
|
224
|
-
export const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
)
|
|
228
|
-
export const
|
|
229
|
-
export const
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
)
|
|
233
|
-
export const
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
)
|
|
237
|
-
export const
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
)
|
|
241
|
-
export const
|
|
242
|
-
export const
|
|
243
|
-
export const
|
|
244
|
-
export const
|
|
245
|
-
export const
|
|
246
|
-
export const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
)
|
|
250
|
-
export const
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
)
|
|
254
|
-
export const
|
|
255
|
-
export const
|
|
256
|
-
export const
|
|
257
|
-
export const
|
|
258
|
-
export const
|
|
259
|
-
export const
|
|
260
|
-
export const
|
|
261
|
-
export const
|
|
262
|
-
export const
|
|
263
|
-
export const
|
|
264
|
-
export const
|
|
265
|
-
export const
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
)
|
|
269
|
-
export const
|
|
270
|
-
export const
|
|
271
|
-
export const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
)
|
|
275
|
-
export const
|
|
276
|
-
export const
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
)
|
|
280
|
-
export const
|
|
281
|
-
export const
|
|
282
|
-
export const RecentIcon = icon(Time04Icon, "RecentIcon")
|
|
283
|
-
export const ThumbsUpIcon = toggleIcon(
|
|
284
|
-
HugeThumbsUpIcon,
|
|
285
|
-
"ThumbsUpIcon"
|
|
286
|
-
)
|
|
287
|
-
export const HeartIcon = toggleIcon(
|
|
288
|
-
FavouriteIcon,
|
|
289
|
-
"HeartIcon"
|
|
290
|
-
)
|
|
291
|
-
export const StarIcon = toggleIcon(HugeStarIcon, "StarIcon")
|
|
190
|
+
/** Existing catalog glyphs rendered through PassUI's common icon contract. */
|
|
191
|
+
export const catalogIcons = {
|
|
192
|
+
tap: /* @__PURE__ */ icon(CatalogTapGlyph, "CatalogTapIcon"),
|
|
193
|
+
settings: /* @__PURE__ */ icon(CatalogSettingsGlyph, "CatalogSettingsIcon"),
|
|
194
|
+
tag: /* @__PURE__ */ icon(CatalogTagGlyph, "CatalogTagIcon"),
|
|
195
|
+
input: /* @__PURE__ */ icon(CatalogInputTextGlyph, "CatalogInputIcon"),
|
|
196
|
+
password: /* @__PURE__ */ icon(CatalogPasswordGlyph, "CatalogPasswordIcon"),
|
|
197
|
+
search: /* @__PURE__ */ icon(CatalogSearchGlyph, "CatalogSearchIcon"),
|
|
198
|
+
toggle: /* @__PURE__ */ icon(CatalogToggleGlyph, "CatalogToggleIcon"),
|
|
199
|
+
columns: /* @__PURE__ */ icon(CatalogColumnsGlyph, "CatalogColumnsIcon"),
|
|
200
|
+
unfold: /* @__PURE__ */ icon(CatalogUnfoldGlyph, "CatalogUnfoldIcon"),
|
|
201
|
+
colors: /* @__PURE__ */ icon(CatalogColorsGlyph, "CatalogColorsIcon"),
|
|
202
|
+
calendar: /* @__PURE__ */ icon(CatalogCalendarGlyph, "CatalogCalendarIcon"),
|
|
203
|
+
clock: /* @__PURE__ */ icon(CatalogClockGlyph, "CatalogClockIcon"),
|
|
204
|
+
text: /* @__PURE__ */ icon(CatalogTextGlyph, "CatalogTextIcon"),
|
|
205
|
+
searchList: /* @__PURE__ */ icon(CatalogSearchListGlyph, "CatalogSearchListIcon"),
|
|
206
|
+
list: /* @__PURE__ */ icon(CatalogListGlyph, "CatalogListIcon"),
|
|
207
|
+
label: /* @__PURE__ */ icon(CatalogLabelGlyph, "CatalogLabelIcon"),
|
|
208
|
+
table: /* @__PURE__ */ icon(CatalogTableGlyph, "CatalogTableIcon"),
|
|
209
|
+
cards: /* @__PURE__ */ icon(CatalogCardsGlyph, "CatalogCardsIcon"),
|
|
210
|
+
message: /* @__PURE__ */ icon(CatalogMessageGlyph, "CatalogMessageIcon"),
|
|
211
|
+
sun: /* @__PURE__ */ icon(CatalogSunGlyph, "CatalogSunIcon"),
|
|
212
|
+
status: /* @__PURE__ */ icon(CatalogStatusGlyph, "CatalogStatusIcon"),
|
|
213
|
+
analytics: /* @__PURE__ */ icon(CatalogAnalyticsGlyph, "CatalogAnalyticsIcon"),
|
|
214
|
+
alert: /* @__PURE__ */ icon(CatalogAlertGlyph, "CatalogAlertIcon"),
|
|
215
|
+
panel: /* @__PURE__ */ icon(CatalogPanelGlyph, "CatalogPanelIcon"),
|
|
216
|
+
bubble: /* @__PURE__ */ icon(CatalogBubbleGlyph, "CatalogBubbleIcon"),
|
|
217
|
+
notification: /* @__PURE__ */ icon(CatalogNotificationGlyph, "CatalogNotificationIcon"),
|
|
218
|
+
menu: /* @__PURE__ */ icon(CatalogMenuGlyph, "CatalogMenuIcon"),
|
|
219
|
+
help: /* @__PURE__ */ icon(CatalogHelpGlyph, "CatalogHelpIcon"),
|
|
220
|
+
translate: /* @__PURE__ */ icon(CatalogTranslateGlyph, "CatalogTranslateIcon"),
|
|
221
|
+
layoutTop: /* @__PURE__ */ icon(CatalogLayoutTopGlyph, "CatalogLayoutTopIcon"),
|
|
222
|
+
layoutBottom: /* @__PURE__ */ icon(CatalogLayoutBottomGlyph, "CatalogLayoutBottomIcon"),
|
|
223
|
+
sidebar: /* @__PURE__ */ icon(CatalogSidebarGlyph, "CatalogSidebarIcon"),
|
|
224
|
+
browser: /* @__PURE__ */ icon(CatalogBrowserGlyph, "CatalogBrowserIcon"),
|
|
225
|
+
user: /* @__PURE__ */ icon(CatalogUserGlyph, "CatalogUserIcon"),
|
|
226
|
+
} as const
|
|
227
|
+
|
|
228
|
+
export const NoteIcon = /* @__PURE__ */ icon(Note01Icon, "NoteIcon")
|
|
229
|
+
export const LanguageIcon = /* @__PURE__ */ icon(LanguagesIcon, "LanguageIcon")
|
|
230
|
+
export const SignOutIcon = /* @__PURE__ */ icon(Logout01Icon, "SignOutIcon")
|
|
231
|
+
export const MoreVerticalIcon = /* @__PURE__ */ icon(MoreVertical, "MoreVerticalIcon")
|
|
232
|
+
export const SendIcon = /* @__PURE__ */ icon(SentIcon, "SendIcon")
|
|
233
|
+
export const InboxIcon = /* @__PURE__ */ icon(InboxGlyph, "InboxIcon")
|
|
234
|
+
export const LaptopIcon = /* @__PURE__ */ icon(LaptopGlyph, "LaptopIcon")
|
|
235
|
+
export const SmartphoneIcon = /* @__PURE__ */ icon(SmartPhone01Icon, "SmartphoneIcon")
|
|
236
|
+
export const TabletIcon = /* @__PURE__ */ icon(Tablet01Icon, "TabletIcon")
|
|
237
|
+
export const HomeIcon = /* @__PURE__ */ icon(Home01Icon, "HomeIcon")
|
|
238
|
+
export const LibraryIcon = /* @__PURE__ */ icon(LibraryGlyph, "LibraryIcon")
|
|
239
|
+
export const PersonIcon = /* @__PURE__ */ icon(UserIcon, "PersonIcon")
|
|
240
|
+
export const ChartIcon = /* @__PURE__ */ icon(Analytics01Icon, "ChartIcon")
|
|
241
|
+
export const SupportIcon = /* @__PURE__ */ icon(CustomerSupportIcon, "SupportIcon")
|
|
242
|
+
export const KeyIcon = /* @__PURE__ */ icon(Key01Icon, "KeyIcon")
|
|
243
|
+
export const PasswordIcon = /* @__PURE__ */ icon(LockPasswordIcon, "PasswordIcon")
|
|
244
|
+
export const JournalIcon = /* @__PURE__ */ icon(NotebookIcon, "JournalIcon")
|
|
245
|
+
export const PenIcon = /* @__PURE__ */ icon(PencilEdit02Icon, "PenIcon")
|
|
246
|
+
export const StoryIcon = /* @__PURE__ */ icon(QuillWrite02Icon, "StoryIcon")
|
|
247
|
+
export const BookIcon = /* @__PURE__ */ icon(BookOpen01Icon, "BookIcon")
|
|
248
|
+
export const ArticleIcon = /* @__PURE__ */ icon(Book02Icon, "ArticleIcon")
|
|
249
|
+
export const CanvasIcon = /* @__PURE__ */ icon(HugeCanvasIcon, "CanvasIcon")
|
|
250
|
+
export const LessonIcon = /* @__PURE__ */ icon(Mortarboard01Icon, "LessonIcon")
|
|
251
|
+
export const PlanIcon = /* @__PURE__ */ icon(CheckListIcon, "PlanIcon")
|
|
252
|
+
export const MicIcon = /* @__PURE__ */ icon(Mic01Icon, "MicIcon")
|
|
253
|
+
export const GlobeIcon = /* @__PURE__ */ icon(Globe02Icon, "GlobeIcon")
|
|
254
|
+
export const ChecklistIcon = /* @__PURE__ */ icon(CheckmarkCircle02Icon, "ChecklistIcon")
|
|
255
|
+
export const DrawIcon = /* @__PURE__ */ icon(PencilIcon, "DrawIcon")
|
|
256
|
+
export const ShareIcon = /* @__PURE__ */ icon(Share08Icon, "ShareIcon")
|
|
257
|
+
export const SearchIcon = /* @__PURE__ */ icon(Search01Icon, "SearchIcon")
|
|
258
|
+
export const ChevronLeftIcon = /* @__PURE__ */ icon(ArrowLeft01Icon, "ChevronLeftIcon")
|
|
259
|
+
export const ChevronRightIcon = /* @__PURE__ */ icon(ArrowRight01Icon, "ChevronRightIcon")
|
|
260
|
+
export const ChevronUpIcon = /* @__PURE__ */ icon(ArrowUp01Icon, "ChevronUpIcon")
|
|
261
|
+
export const ChevronDownIcon = /* @__PURE__ */ icon(ArrowDown01Icon, "ChevronDownIcon")
|
|
262
|
+
export const CloseIcon = /* @__PURE__ */ icon(Cancel01Icon, "CloseIcon")
|
|
263
|
+
export const MenuIcon = /* @__PURE__ */ icon(Menu01Icon, "MenuIcon")
|
|
264
|
+
export const ThemingIcon = /* @__PURE__ */ icon(GuidePaintGlyph, "ThemingIcon")
|
|
265
|
+
export const TypesetIcon = /* @__PURE__ */ icon(GuideTextGlyph, "TypesetIcon")
|
|
266
|
+
export const LayersIcon = /* @__PURE__ */ icon(GuideLayersGlyph, "LayersIcon")
|
|
267
|
+
export const UploadIcon = /* @__PURE__ */ icon(UploadGlyph, "UploadIcon")
|
|
268
|
+
export const AttachIcon = /* @__PURE__ */ icon(AttachGlyph, "AttachIcon")
|
|
269
|
+
export const PlusIcon = /* @__PURE__ */ icon(Add01Icon, "PlusIcon")
|
|
270
|
+
export const LinkIcon = /* @__PURE__ */ icon(Link01Icon, "LinkIcon")
|
|
271
|
+
export const CommentIcon = /* @__PURE__ */ icon(Comment01Icon, "CommentIcon")
|
|
272
|
+
export const TrashIcon = /* @__PURE__ */ icon(Delete02Icon, "TrashIcon")
|
|
273
|
+
export const PinIcon = /* @__PURE__ */ icon(Pin02Icon, "PinIcon")
|
|
274
|
+
export const SidebarIcon = /* @__PURE__ */ icon(PanelLeftIcon, "SidebarIcon")
|
|
275
|
+
export const SettingsIcon = /* @__PURE__ */ icon(Settings02Icon, "SettingsIcon")
|
|
276
|
+
export const DragHandleIcon = /* @__PURE__ */ icon(DragDropVerticalIcon, "DragHandleIcon")
|
|
277
|
+
export const VisibleIcon = /* @__PURE__ */ icon(ViewIcon, "VisibleIcon")
|
|
278
|
+
export const HiddenIcon = /* @__PURE__ */ icon(ViewOffSlashIcon, "HiddenIcon")
|
|
279
|
+
export const CheckIcon = /* @__PURE__ */ icon(Tick02Icon, "CheckIcon")
|
|
280
|
+
export const InvoiceIcon = /* @__PURE__ */ icon(Invoice03Icon, "InvoiceIcon")
|
|
281
|
+
export const QrCodeGlyph = /* @__PURE__ */ icon(QrCodeIcon, "QrCodeGlyph")
|
|
282
|
+
export const WalletIcon = /* @__PURE__ */ icon(Wallet01Icon, "WalletIcon")
|
|
283
|
+
export const ScanCodeIcon = /* @__PURE__ */ icon(ScanIcon, "ScanCodeIcon")
|
|
284
|
+
export const VerifiedIcon = /* @__PURE__ */ icon(CheckmarkBadge01Icon, "VerifiedIcon")
|
|
285
|
+
export const WarningIcon = /* @__PURE__ */ icon(Alert02Icon, "WarningIcon")
|
|
286
|
+
export const PrintIcon = /* @__PURE__ */ icon(PrinterIcon, "PrintIcon")
|
|
287
|
+
export const ImportIcon = /* @__PURE__ */ icon(FileImportIcon, "ImportIcon")
|
|
288
|
+
export const DownloadIcon = /* @__PURE__ */ icon(Download01Icon, "DownloadIcon")
|
|
289
|
+
export const PlayIcon = /* @__PURE__ */ icon(HugePlayIcon, "PlayIcon")
|
|
290
|
+
export const PauseIcon = /* @__PURE__ */ icon(HugePauseIcon, "PauseIcon")
|
|
291
|
+
export const SkipBackIcon = /* @__PURE__ */ icon(GoBackward15SecIcon, "SkipBackIcon")
|
|
292
|
+
export const SkipForwardIcon = /* @__PURE__ */ icon(GoForward30SecIcon, "SkipForwardIcon")
|
|
293
|
+
export const PreviousTrackIcon = /* @__PURE__ */ icon(PreviousIcon, "PreviousTrackIcon")
|
|
294
|
+
export const NextTrackIcon = /* @__PURE__ */ icon(NextIcon, "NextTrackIcon")
|
|
295
|
+
export const HeadphonesIcon = /* @__PURE__ */ icon(HugeHeadphonesIcon, "HeadphonesIcon")
|
|
296
|
+
export const HighlighterIcon = /* @__PURE__ */ icon(HugeHighlighterIcon, "HighlighterIcon")
|
|
297
|
+
export const ChaptersIcon = /* @__PURE__ */ icon(LeftToRightListBulletIcon, "ChaptersIcon")
|
|
298
|
+
export const SleepIcon = /* @__PURE__ */ icon(Moon02Icon, "SleepIcon")
|
|
299
|
+
export const ExpandIcon = /* @__PURE__ */ icon(FullScreenIcon, "ExpandIcon")
|
|
300
|
+
export const SparkleIcon = /* @__PURE__ */ icon(AiMagicIcon, "SparkleIcon")
|
|
301
|
+
export const BellIcon = /* @__PURE__ */ icon(Notification03Icon, "BellIcon")
|
|
302
|
+
export const BusinessIcon = /* @__PURE__ */ icon(Store01Icon, "BusinessIcon")
|
|
303
|
+
export const CalendarIcon = /* @__PURE__ */ icon(Calendar03Icon, "CalendarIcon")
|
|
304
|
+
export const BirthdayIcon = /* @__PURE__ */ icon(BirthdayCakeIcon, "BirthdayIcon")
|
|
305
|
+
export const AlarmIcon = /* @__PURE__ */ icon(AlarmClockIcon, "AlarmIcon")
|
|
306
|
+
export const RepeatIcon = /* @__PURE__ */ icon(HugeRepeatIcon, "RepeatIcon")
|
|
307
|
+
export const UndoIcon = /* @__PURE__ */ icon(HugeUndoIcon, "UndoIcon")
|
|
308
|
+
export const RedoIcon = /* @__PURE__ */ icon(HugeRedoIcon, "RedoIcon")
|
|
309
|
+
export const PointerIcon = /* @__PURE__ */ icon(Cursor01Icon, "PointerIcon")
|
|
310
|
+
export const EraserIcon = /* @__PURE__ */ icon(Eraser01Icon, "EraserIcon")
|
|
311
|
+
export const TouchIcon = /* @__PURE__ */ icon(Touch01Icon, "TouchIcon")
|
|
312
|
+
export const BubbleIcon = /* @__PURE__ */ icon(BubbleChatIcon, "BubbleIcon")
|
|
313
|
+
export const BrushIcon = /* @__PURE__ */ icon(PaintBrush02Icon, "BrushIcon")
|
|
314
|
+
export const LayoutIcon = /* @__PURE__ */ icon(LayoutGridIcon, "LayoutIcon")
|
|
315
|
+
export const ZoomIcon = /* @__PURE__ */ icon(SearchAddIcon, "ZoomIcon")
|
|
316
|
+
export const SelectorIcon = /* @__PURE__ */ icon(UnfoldMoreIcon, "SelectorIcon")
|
|
317
|
+
export const MoreIcon = /* @__PURE__ */ icon(MoreHorizontalIcon, "MoreIcon")
|
|
318
|
+
export const PeopleIcon = /* @__PURE__ */ icon(UserMultipleIcon, "PeopleIcon")
|
|
319
|
+
export const AddPersonIcon = /* @__PURE__ */ icon(UserAdd01Icon, "AddPersonIcon")
|
|
320
|
+
export const ClockIcon = /* @__PURE__ */ icon(Clock01Icon, "ClockIcon")
|
|
321
|
+
export const LocationIcon = /* @__PURE__ */ icon(Location01Icon, "LocationIcon")
|
|
322
|
+
export const TaskIcon = /* @__PURE__ */ icon(Task01Icon, "TaskIcon")
|
|
323
|
+
export const FolderIcon = /* @__PURE__ */ icon(Folder01Icon, "FolderIcon")
|
|
324
|
+
export const RecentIcon = /* @__PURE__ */ icon(Time04Icon, "RecentIcon")
|
|
325
|
+
export const ThumbsUpIcon = /* @__PURE__ */ toggleIcon(HugeThumbsUpIcon, "ThumbsUpIcon")
|
|
326
|
+
export const HeartIcon = /* @__PURE__ */ toggleIcon(FavouriteIcon, "HeartIcon")
|
|
327
|
+
export const StarIcon = /* @__PURE__ */ toggleIcon(HugeStarIcon, "StarIcon")
|
|
292
328
|
|
|
293
329
|
// Wallet: adding, copying and protecting cards.
|
|
294
|
-
export const CameraIcon = icon(Camera01Icon, "CameraIcon")
|
|
295
|
-
export const CopyIcon = icon(Copy01Icon, "CopyIcon")
|
|
296
|
-
export const LockIcon = icon(LockIconSvg, "LockIcon")
|
|
297
|
-
export const NfcReadIcon = icon(NfcIcon, "NfcReadIcon")
|
|
298
|
-
export const PhotoIcon = icon(Image01Icon, "PhotoIcon")
|
|
330
|
+
export const CameraIcon = /* @__PURE__ */ icon(Camera01Icon, "CameraIcon")
|
|
331
|
+
export const CopyIcon = /* @__PURE__ */ icon(Copy01Icon, "CopyIcon")
|
|
332
|
+
export const LockIcon = /* @__PURE__ */ icon(LockIconSvg, "LockIcon")
|
|
333
|
+
export const NfcReadIcon = /* @__PURE__ */ icon(NfcIcon, "NfcReadIcon")
|
|
334
|
+
export const PhotoIcon = /* @__PURE__ */ icon(Image01Icon, "PhotoIcon")
|
|
335
|
+
export const BookmarkIcon = /* @__PURE__ */ icon(Bookmark02Icon, "BookmarkIcon")
|
|
336
|
+
export const MailIcon = /* @__PURE__ */ icon(Mail01Icon, "MailIcon")
|
|
337
|
+
export const ReplyIcon = /* @__PURE__ */ icon(MailReply01Icon, "ReplyIcon")
|
|
338
|
+
export const ArchiveIcon = /* @__PURE__ */ icon(Archive01Icon, "ArchiveIcon")
|
|
339
|
+
export const InfoIcon = /* @__PURE__ */ icon(InformationCircleIcon, "InfoIcon")
|
|
340
|
+
export const AlignCenterIcon = /* @__PURE__ */ icon(TextAlignCenterIcon, "AlignCenterIcon")
|
|
341
|
+
export const AlignLeftIcon = /* @__PURE__ */ icon(TextAlignLeftIcon, "AlignLeftIcon")
|
|
342
|
+
export const BoldIcon = /* @__PURE__ */ icon(TextBoldIcon, "BoldIcon")
|
|
343
|
+
export const ItalicIcon = /* @__PURE__ */ icon(TextItalicIcon, "ItalicIcon")
|
|
344
|
+
export const UnderlineIcon = /* @__PURE__ */ icon(TextUnderlineIcon, "UnderlineIcon")
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./components/button/button"
|
|
2
|
+
export * from "./components/accordion/accordion"
|
|
2
3
|
export * from "./components/text-field/text-field"
|
|
3
4
|
export * from "./components/secure-field/secure-field"
|
|
4
5
|
export * from "./components/text-editor/text-editor"
|
|
@@ -30,6 +31,9 @@ export * from "./components/picker/picker"
|
|
|
30
31
|
export * from "./components/popover/popover"
|
|
31
32
|
export * from "./components/search-field/search-field"
|
|
32
33
|
export * from "./components/section/section"
|
|
34
|
+
export * from "./components/inline-disclosure/inline-disclosure"
|
|
35
|
+
export * from "./components/disclosure-group/disclosure-group"
|
|
36
|
+
export * from "./components/menu/menu"
|
|
33
37
|
export * from "./components/segmented-control/segmented-control"
|
|
34
38
|
export * from "./components/sheet/sheet"
|
|
35
39
|
export * from "./components/sidebar/sidebar"
|
|
@@ -43,15 +47,19 @@ export {
|
|
|
43
47
|
} from "./components/toast/toast-store"
|
|
44
48
|
export * from "./components/toast/toaster"
|
|
45
49
|
export * from "./components/toggle/toggle"
|
|
50
|
+
export * from "./components/slider/slider"
|
|
51
|
+
export * from "./components/stepper/stepper"
|
|
52
|
+
export * from "./components/progress-view/progress-view"
|
|
53
|
+
export * from "./components/divider/divider"
|
|
46
54
|
export * from "./components/tooltip/tooltip-host"
|
|
47
55
|
export * from "./hooks/use-anchored-placement"
|
|
48
56
|
export * from "./hooks/use-dismiss"
|
|
49
57
|
export * from "./hooks/use-media-query"
|
|
50
|
-
export * from "./hooks/use-minimize-on-scroll"
|
|
51
58
|
export * from "./icons/icons"
|
|
52
59
|
export * from "./lib/anchored-placement"
|
|
53
60
|
export * from "./lib/class-names"
|
|
54
61
|
export * from "./lib/haptics"
|
|
62
|
+
export * from "./lib/clipboard"
|
|
55
63
|
export * from "./lib/screen-edges"
|
|
56
64
|
export * from "./motion/transitions"
|
|
57
65
|
export * from "./appearance"
|
|
@@ -62,6 +70,7 @@ export * from "./components/compact-time-picker/compact-time-picker"
|
|
|
62
70
|
|
|
63
71
|
export { Dialog } from "./components/dialog"
|
|
64
72
|
export type {
|
|
73
|
+
DialogProps,
|
|
65
74
|
DialogPresentation,
|
|
66
75
|
DialogTone,
|
|
67
76
|
} from "./components/dialog/dialog"
|
|
@@ -76,3 +85,20 @@ export * from "./hooks/use-visual-viewport"
|
|
|
76
85
|
export { registerFloatingLayer } from "./lib/floating-layers"
|
|
77
86
|
|
|
78
87
|
export * from "./hooks/use-minimize-on-scroll"
|
|
88
|
+
|
|
89
|
+
export * from "./components/code-block/code-block"
|
|
90
|
+
export * from "./components/keyboard-shortcut/keyboard-shortcut"
|
|
91
|
+
export * from "./components/content-unavailable-view/content-unavailable-view"
|
|
92
|
+
export * from "./components/combo-box/combo-box"
|
|
93
|
+
export * from "./components/radio-group/radio-group"
|
|
94
|
+
export * from "./components/breadcrumb/breadcrumb"
|
|
95
|
+
export * from "./components/skeleton/skeleton"
|
|
96
|
+
|
|
97
|
+
export * from "./components/command/command"
|
|
98
|
+
|
|
99
|
+
export * from "./components/slosh-slider/slosh-slider"
|
|
100
|
+
export * from "./components/wake-slider/wake-slider"
|
|
101
|
+
|
|
102
|
+
export * from "./components/one-time-code/one-time-code"
|
|
103
|
+
|
|
104
|
+
export * from "./components/aspect-ratio/aspect-ratio"
|
|
@@ -35,18 +35,13 @@ export function placeInViewport(
|
|
|
35
35
|
{ anchor, viewport, edges }: PlacementFrame,
|
|
36
36
|
width: number,
|
|
37
37
|
needed: number,
|
|
38
|
-
gap = 6
|
|
38
|
+
gap = 6,
|
|
39
|
+
overlap = false
|
|
39
40
|
): AnchoredPlacement {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const left = Math.min(
|
|
45
|
-
Math.max(edges.left, anchor.left),
|
|
46
|
-
viewport.width - fitted - edges.right
|
|
47
|
-
)
|
|
48
|
-
const roomBelow =
|
|
49
|
-
viewport.height - anchor.bottom - gap - edges.bottom
|
|
41
|
+
if (overlap) gap = anchor.top - anchor.bottom
|
|
42
|
+
const fitted = Math.min(width, viewport.width - edges.left - edges.right)
|
|
43
|
+
const left = Math.min(Math.max(edges.left, anchor.left), viewport.width - fitted - edges.right)
|
|
44
|
+
const roomBelow = viewport.height - anchor.bottom - gap - edges.bottom
|
|
50
45
|
const roomAbove = anchor.top - gap - edges.top
|
|
51
46
|
const above = roomBelow < needed && roomAbove > roomBelow
|
|
52
47
|
const room = above ? roomAbove : roomBelow
|
|
@@ -54,9 +49,7 @@ export function placeInViewport(
|
|
|
54
49
|
left,
|
|
55
50
|
width: fitted,
|
|
56
51
|
above,
|
|
57
|
-
...(above
|
|
58
|
-
? { bottom: viewport.height - anchor.top + gap }
|
|
59
|
-
: { top: anchor.bottom + gap }),
|
|
52
|
+
...(above ? { bottom: viewport.height - anchor.top + gap } : { top: anchor.bottom + gap }),
|
|
60
53
|
}
|
|
61
54
|
if (room < needed) placement.maxHeight = room
|
|
62
55
|
return placement
|
|
@@ -67,7 +60,8 @@ export function placeAnchored(
|
|
|
67
60
|
anchor: HTMLElement,
|
|
68
61
|
width: number,
|
|
69
62
|
needed: number,
|
|
70
|
-
gap = 6
|
|
63
|
+
gap = 6,
|
|
64
|
+
overlap = false
|
|
71
65
|
): AnchoredPlacement {
|
|
72
66
|
const rect = anchor.getBoundingClientRect()
|
|
73
67
|
const viewport = window.visualViewport
|
|
@@ -80,13 +74,13 @@ export function placeAnchored(
|
|
|
80
74
|
},
|
|
81
75
|
viewport: {
|
|
82
76
|
width: viewport?.width ?? window.innerWidth,
|
|
83
|
-
height:
|
|
84
|
-
viewport?.height ?? window.innerHeight,
|
|
77
|
+
height: viewport?.height ?? window.innerHeight,
|
|
85
78
|
},
|
|
86
79
|
edges: screenEdges(),
|
|
87
80
|
},
|
|
88
81
|
width,
|
|
89
82
|
needed,
|
|
90
|
-
gap
|
|
83
|
+
gap,
|
|
84
|
+
overlap
|
|
91
85
|
)
|
|
92
86
|
}
|
package/src/lib/class-names.ts
CHANGED
|
@@ -4,8 +4,7 @@ import { extendTailwindMerge } from "tailwind-merge"
|
|
|
4
4
|
import { textStyles } from "@passui/tokens/typography"
|
|
5
5
|
|
|
6
6
|
const textStyleClasses = Object.keys(textStyles).map(
|
|
7
|
-
(name) =>
|
|
8
|
-
`text-${name.replace(/[A-Z]/g, (character) => `-${character.toLowerCase()}`)}`
|
|
7
|
+
(name) => `text-${name.replace(/[A-Z]/g, (character) => `-${character.toLowerCase()}`)}`
|
|
9
8
|
)
|
|
10
9
|
|
|
11
10
|
const twMerge = extendTailwindMerge({
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copies text after a user action. Returns true only after the browser confirms
|
|
3
|
+
* the write. Returns false when unavailable or denied, so the app can offer
|
|
4
|
+
* manual copying. This helper never reads the clipboard or adds feedback.
|
|
5
|
+
*/
|
|
6
|
+
export async function copyText(text: string): Promise<boolean> {
|
|
7
|
+
try {
|
|
8
|
+
if (typeof navigator === "undefined" || !navigator.clipboard?.writeText) return false
|
|
9
|
+
await navigator.clipboard.writeText(text)
|
|
10
|
+
return true
|
|
11
|
+
} catch {
|
|
12
|
+
return false
|
|
13
|
+
}
|
|
14
|
+
}
|