@devalok/shilp-sutra 0.1.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/dist/composed/avatar-group.d.ts +17 -0
- package/dist/composed/avatar-group.d.ts.map +1 -0
- package/dist/composed/avatar-group.js +103 -0
- package/dist/composed/command-palette.d.ts +29 -0
- package/dist/composed/command-palette.d.ts.map +1 -0
- package/dist/composed/command-palette.js +215 -0
- package/dist/composed/content-card.d.ts +15 -0
- package/dist/composed/content-card.d.ts.map +1 -0
- package/dist/composed/content-card.js +108 -0
- package/dist/composed/date-picker/calendar-grid.d.ts +21 -0
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -0
- package/dist/composed/date-picker/calendar-grid.js +173 -0
- package/dist/composed/date-picker/date-picker.d.ts +14 -0
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-picker.js +123 -0
- package/dist/composed/date-picker/date-range-picker.d.ts +23 -0
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-range-picker.js +166 -0
- package/dist/composed/date-picker/date-time-picker.d.ts +24 -0
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/date-time-picker.js +192 -0
- package/dist/composed/date-picker/index.d.ts +18 -0
- package/dist/composed/date-picker/index.d.ts.map +1 -0
- package/dist/composed/date-picker/month-picker.d.ts +10 -0
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/month-picker.js +52 -0
- package/dist/composed/date-picker/presets.d.ts +9 -0
- package/dist/composed/date-picker/presets.d.ts.map +1 -0
- package/dist/composed/date-picker/presets.js +83 -0
- package/dist/composed/date-picker/time-picker.d.ts +24 -0
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/time-picker.js +180 -0
- package/dist/composed/date-picker/use-calendar.d.ts +9 -0
- package/dist/composed/date-picker/use-calendar.d.ts.map +1 -0
- package/dist/composed/date-picker/use-calendar.js +16 -0
- package/dist/composed/date-picker/year-picker.d.ts +10 -0
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -0
- package/dist/composed/date-picker/year-picker.js +44 -0
- package/dist/composed/empty-state.d.ts +12 -0
- package/dist/composed/empty-state.d.ts.map +1 -0
- package/dist/composed/empty-state.js +74 -0
- package/dist/composed/error-boundary.d.ts +8 -0
- package/dist/composed/error-boundary.d.ts.map +1 -0
- package/dist/composed/error-boundary.js +114 -0
- package/dist/composed/global-loading.d.ts +7 -0
- package/dist/composed/global-loading.d.ts.map +1 -0
- package/dist/composed/global-loading.js +43 -0
- package/dist/composed/index.d.ts +28 -0
- package/dist/composed/index.d.ts.map +1 -0
- package/dist/composed/index.js +54 -0
- package/dist/composed/lib/string-utils.d.ts +6 -0
- package/dist/composed/lib/string-utils.d.ts.map +1 -0
- package/dist/composed/lib/string-utils.js +7 -0
- package/dist/composed/loading-skeleton.d.ts +22 -0
- package/dist/composed/loading-skeleton.d.ts.map +1 -0
- package/dist/composed/loading-skeleton.js +164 -0
- package/dist/composed/member-picker.d.ts +17 -0
- package/dist/composed/member-picker.d.ts.map +1 -0
- package/dist/composed/member-picker.js +81 -0
- package/dist/composed/page-header.d.ts +15 -0
- package/dist/composed/page-header.d.ts.map +1 -0
- package/dist/composed/page-header.js +65 -0
- package/dist/composed/page-skeletons.d.ts +6 -0
- package/dist/composed/page-skeletons.d.ts.map +1 -0
- package/dist/composed/page-skeletons.js +128 -0
- package/dist/composed/priority-indicator.d.ts +12 -0
- package/dist/composed/priority-indicator.d.ts.map +1 -0
- package/dist/composed/priority-indicator.js +86 -0
- package/dist/composed/rich-text-editor.d.ts +16 -0
- package/dist/composed/rich-text-editor.d.ts.map +1 -0
- package/dist/composed/rich-text-editor.js +222 -0
- package/dist/composed/status-badge.d.ts +13 -0
- package/dist/composed/status-badge.d.ts.map +1 -0
- package/dist/composed/status-badge.js +69 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/use-color-mode.d.ts +7 -0
- package/dist/hooks/use-color-mode.d.ts.map +1 -0
- package/dist/hooks/use-color-mode.js +23 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +14 -0
- package/dist/hooks/use-toast.d.ts +46 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/hooks/use-toast.js +97 -0
- package/dist/primitives/_internal/number.d.ts +7 -0
- package/dist/primitives/_internal/number.d.ts.map +1 -0
- package/dist/primitives/_internal/number.js +6 -0
- package/dist/primitives/_internal/primitive.d.ts +17 -0
- package/dist/primitives/_internal/primitive.d.ts.map +1 -0
- package/dist/primitives/_internal/primitive.js +9 -0
- package/dist/primitives/_internal/react-arrow.d.ts +14 -0
- package/dist/primitives/_internal/react-arrow.d.ts.map +1 -0
- package/dist/primitives/_internal/react-arrow.js +24 -0
- package/dist/primitives/_internal/react-collection.d.ts +22 -0
- package/dist/primitives/_internal/react-collection.d.ts.map +1 -0
- package/dist/primitives/_internal/react-collection.js +48 -0
- package/dist/primitives/_internal/react-compose-refs.d.ts +10 -0
- package/dist/primitives/_internal/react-compose-refs.d.ts.map +1 -0
- package/dist/primitives/_internal/react-compose-refs.js +29 -0
- package/dist/primitives/_internal/react-context.d.ts +25 -0
- package/dist/primitives/_internal/react-context.d.ts.map +1 -0
- package/dist/primitives/_internal/react-context.js +74 -0
- package/dist/primitives/_internal/react-direction.d.ts +16 -0
- package/dist/primitives/_internal/react-direction.d.ts.map +1 -0
- package/dist/primitives/_internal/react-direction.js +10 -0
- package/dist/primitives/_internal/react-dismissable-layer.d.ts +30 -0
- package/dist/primitives/_internal/react-dismissable-layer.d.ts.map +1 -0
- package/dist/primitives/_internal/react-dismissable-layer.js +131 -0
- package/dist/primitives/_internal/react-focus-guards.d.ts +12 -0
- package/dist/primitives/_internal/react-focus-guards.d.ts.map +1 -0
- package/dist/primitives/_internal/react-focus-guards.js +17 -0
- package/dist/primitives/_internal/react-focus-scope.d.ts +18 -0
- package/dist/primitives/_internal/react-focus-scope.d.ts.map +1 -0
- package/dist/primitives/_internal/react-focus-scope.js +137 -0
- package/dist/primitives/_internal/react-id.d.ts +7 -0
- package/dist/primitives/_internal/react-id.d.ts.map +1 -0
- package/dist/primitives/_internal/react-id.js +14 -0
- package/dist/primitives/_internal/react-popper.d.ts +50 -0
- package/dist/primitives/_internal/react-popper.d.ts.map +1 -0
- package/dist/primitives/_internal/react-popper.js +199 -0
- package/dist/primitives/_internal/react-portal.d.ts +15 -0
- package/dist/primitives/_internal/react-portal.d.ts.map +1 -0
- package/dist/primitives/_internal/react-portal.js +16 -0
- package/dist/primitives/_internal/react-presence.d.ts +16 -0
- package/dist/primitives/_internal/react-presence.d.ts.map +1 -0
- package/dist/primitives/_internal/react-presence.js +71 -0
- package/dist/primitives/_internal/react-primitive.d.ts +20 -0
- package/dist/primitives/_internal/react-primitive.d.ts.map +1 -0
- package/dist/primitives/_internal/react-primitive.js +36 -0
- package/dist/primitives/_internal/react-use-callback-ref.d.ts +7 -0
- package/dist/primitives/_internal/react-use-callback-ref.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-callback-ref.js +13 -0
- package/dist/primitives/_internal/react-use-controllable-state.d.ts +16 -0
- package/dist/primitives/_internal/react-use-controllable-state.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-controllable-state.js +44 -0
- package/dist/primitives/_internal/react-use-effect-event.d.ts +8 -0
- package/dist/primitives/_internal/react-use-effect-event.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-escape-keydown.d.ts +7 -0
- package/dist/primitives/_internal/react-use-escape-keydown.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-escape-keydown.js +14 -0
- package/dist/primitives/_internal/react-use-is-hydrated.d.ts +7 -0
- package/dist/primitives/_internal/react-use-is-hydrated.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-is-hydrated.js +15 -0
- package/dist/primitives/_internal/react-use-layout-effect.d.ts +8 -0
- package/dist/primitives/_internal/react-use-layout-effect.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-layout-effect.js +6 -0
- package/dist/primitives/_internal/react-use-previous.d.ts +7 -0
- package/dist/primitives/_internal/react-use-previous.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-previous.js +8 -0
- package/dist/primitives/_internal/react-use-rect.d.ts +4 -0
- package/dist/primitives/_internal/react-use-rect.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-size.d.ts +10 -0
- package/dist/primitives/_internal/react-use-size.d.ts.map +1 -0
- package/dist/primitives/_internal/react-use-size.js +27 -0
- package/dist/primitives/_internal/rect.d.ts +12 -0
- package/dist/primitives/_internal/rect.d.ts.map +1 -0
- package/dist/primitives/react-accordion.js +239 -0
- package/dist/primitives/react-alert-dialog.js +127 -0
- package/dist/primitives/react-aspect-ratio.js +43 -0
- package/dist/primitives/react-avatar.js +75 -0
- package/dist/primitives/react-checkbox.js +251 -0
- package/dist/primitives/react-collapsible.js +120 -0
- package/dist/primitives/react-context-menu.js +240 -0
- package/dist/primitives/react-dialog.js +262 -0
- package/dist/primitives/react-dropdown-menu.js +227 -0
- package/dist/primitives/react-hover-card.js +187 -0
- package/dist/primitives/react-label.js +20 -0
- package/dist/primitives/react-menu.js +652 -0
- package/dist/primitives/react-menubar.js +355 -0
- package/dist/primitives/react-navigation-menu.js +607 -0
- package/dist/primitives/react-popover.js +243 -0
- package/dist/primitives/react-progress.js +84 -0
- package/dist/primitives/react-radio-group.js +238 -0
- package/dist/primitives/react-roving-focus.js +183 -0
- package/dist/primitives/react-select.js +862 -0
- package/dist/primitives/react-separator.js +24 -0
- package/dist/primitives/react-slider.js +437 -0
- package/dist/primitives/react-slot.d.ts +27 -0
- package/dist/primitives/react-slot.d.ts.map +1 -0
- package/dist/primitives/react-slot.js +70 -0
- package/dist/primitives/react-switch.js +132 -0
- package/dist/primitives/react-tabs.js +163 -0
- package/dist/primitives/react-toast.js +446 -0
- package/dist/primitives/react-toggle-group.js +137 -0
- package/dist/primitives/react-toggle.js +33 -0
- package/dist/primitives/react-tooltip.js +338 -0
- package/dist/primitives/react-visually-hidden.js +32 -0
- package/dist/shell/app-command-palette.d.ts +35 -0
- package/dist/shell/app-command-palette.d.ts.map +1 -0
- package/dist/shell/app-command-palette.js +196 -0
- package/dist/shell/bottom-navbar.d.ts +35 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -0
- package/dist/shell/bottom-navbar.js +160 -0
- package/dist/shell/index.d.ts +7 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +14 -0
- package/dist/shell/notification-center.d.ts +50 -0
- package/dist/shell/notification-center.d.ts.map +1 -0
- package/dist/shell/notification-center.js +221 -0
- package/dist/shell/notification-preferences.d.ts +41 -0
- package/dist/shell/notification-preferences.d.ts.map +1 -0
- package/dist/shell/notification-preferences.js +183 -0
- package/dist/shell/sidebar.d.ts +51 -0
- package/dist/shell/sidebar.d.ts.map +1 -0
- package/dist/shell/sidebar.js +101 -0
- package/dist/shell/top-bar.d.ts +33 -0
- package/dist/shell/top-bar.d.ts.map +1 -0
- package/dist/shell/top-bar.js +140 -0
- package/dist/tailwind/index.d.ts +2 -0
- package/dist/tailwind/index.d.ts.map +1 -0
- package/dist/tailwind/index.js +4 -0
- package/dist/tailwind/preset.d.ts +4 -0
- package/dist/tailwind/preset.d.ts.map +1 -0
- package/dist/tailwind/preset.js +310 -0
- package/dist/tokens/index.css +3 -0
- package/dist/tokens/primitives.css +189 -0
- package/dist/tokens/semantic.css +426 -0
- package/dist/tokens/typography-semantic.css +100 -0
- package/dist/tokens/typography.css +393 -0
- package/dist/ui/accordion.d.ts +53 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.js +46 -0
- package/dist/ui/alert-dialog.d.ts +21 -0
- package/dist/ui/alert-dialog.d.ts.map +1 -0
- package/dist/ui/alert-dialog.js +117 -0
- package/dist/ui/alert.d.ts +47 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +52 -0
- package/dist/ui/aspect-ratio.d.ts +4 -0
- package/dist/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/ui/aspect-ratio.js +6 -0
- package/dist/ui/autocomplete.d.ts +49 -0
- package/dist/ui/autocomplete.d.ts.map +1 -0
- package/dist/ui/autocomplete.js +124 -0
- package/dist/ui/avatar.d.ts +51 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.js +91 -0
- package/dist/ui/badge.d.ts +43 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +64 -0
- package/dist/ui/banner.d.ts +43 -0
- package/dist/ui/banner.d.ts.map +1 -0
- package/dist/ui/banner.js +50 -0
- package/dist/ui/breadcrumb.d.ts +20 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -0
- package/dist/ui/breadcrumb.js +83 -0
- package/dist/ui/button-group.d.ts +51 -0
- package/dist/ui/button-group.d.ts.map +1 -0
- package/dist/ui/button-group.js +41 -0
- package/dist/ui/button.d.ts +63 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +105 -0
- package/dist/ui/card.d.ts +64 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.js +79 -0
- package/dist/ui/charts/_internal/animation.d.ts +5 -0
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -0
- package/dist/ui/charts/_internal/animation.js +17 -0
- package/dist/ui/charts/_internal/axes.d.ts +17 -0
- package/dist/ui/charts/_internal/axes.d.ts.map +1 -0
- package/dist/ui/charts/_internal/axes.js +41 -0
- package/dist/ui/charts/_internal/colors.d.ts +8 -0
- package/dist/ui/charts/_internal/colors.d.ts.map +1 -0
- package/dist/ui/charts/_internal/colors.js +20 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts +16 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts.map +1 -0
- package/dist/ui/charts/_internal/grid-lines.js +42 -0
- package/dist/ui/charts/_internal/legend.d.ts +15 -0
- package/dist/ui/charts/_internal/legend.d.ts.map +1 -0
- package/dist/ui/charts/_internal/legend.js +28 -0
- package/dist/ui/charts/_internal/scales.d.ts +5 -0
- package/dist/ui/charts/_internal/scales.d.ts.map +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts +23 -0
- package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -0
- package/dist/ui/charts/_internal/tooltip.js +38 -0
- package/dist/ui/charts/_internal/types.d.ts +17 -0
- package/dist/ui/charts/_internal/types.d.ts.map +1 -0
- package/dist/ui/charts/_internal/types.js +9 -0
- package/dist/ui/charts/area-chart.d.ts +39 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -0
- package/dist/ui/charts/area-chart.js +244 -0
- package/dist/ui/charts/bar-chart.d.ts +41 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -0
- package/dist/ui/charts/bar-chart.js +152 -0
- package/dist/ui/charts/chart-container.d.ts +20 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -0
- package/dist/ui/charts/chart-container.js +26 -0
- package/dist/ui/charts/gauge-chart.d.ts +32 -0
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -0
- package/dist/ui/charts/gauge-chart.js +71 -0
- package/dist/ui/charts/index.d.ts +10 -0
- package/dist/ui/charts/index.d.ts.map +1 -0
- package/dist/ui/charts/line-chart.d.ts +37 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -0
- package/dist/ui/charts/line-chart.js +162 -0
- package/dist/ui/charts/pie-chart.d.ts +37 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -0
- package/dist/ui/charts/pie-chart.js +131 -0
- package/dist/ui/charts/radar-chart.d.ts +34 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -0
- package/dist/ui/charts/radar-chart.js +222 -0
- package/dist/ui/charts/sparkline.d.ts +22 -0
- package/dist/ui/charts/sparkline.d.ts.map +1 -0
- package/dist/ui/charts/sparkline.js +123 -0
- package/dist/ui/checkbox.d.ts +36 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.js +33 -0
- package/dist/ui/chip.d.ts +66 -0
- package/dist/ui/chip.d.ts.map +1 -0
- package/dist/ui/chip.js +105 -0
- package/dist/ui/code.d.ts +30 -0
- package/dist/ui/code.d.ts.map +1 -0
- package/dist/ui/code.js +32 -0
- package/dist/ui/collapsible.d.ts +7 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.js +21 -0
- package/dist/ui/combobox.d.ts +76 -0
- package/dist/ui/combobox.d.ts.map +1 -0
- package/dist/ui/combobox.js +286 -0
- package/dist/ui/container.d.ts +10 -0
- package/dist/ui/container.d.ts.map +1 -0
- package/dist/ui/container.js +24 -0
- package/dist/ui/context-menu.d.ts +28 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +145 -0
- package/dist/ui/data-table-toolbar.d.ts +16 -0
- package/dist/ui/data-table-toolbar.d.ts.map +1 -0
- package/dist/ui/data-table-toolbar.js +136 -0
- package/dist/ui/data-table.d.ts +111 -0
- package/dist/ui/data-table.d.ts.map +1 -0
- package/dist/ui/data-table.js +491 -0
- package/dist/ui/dialog.d.ts +74 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +110 -0
- package/dist/ui/dropdown-menu.d.ts +88 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +144 -0
- package/dist/ui/file-upload.d.ts +67 -0
- package/dist/ui/file-upload.d.ts.map +1 -0
- package/dist/ui/file-upload.js +226 -0
- package/dist/ui/form.d.ts +56 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/form.js +46 -0
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -0
- package/dist/ui/hover-card.js +23 -0
- package/dist/ui/icon-button.d.ts +46 -0
- package/dist/ui/icon-button.d.ts.map +1 -0
- package/dist/ui/icon-button.js +26 -0
- package/dist/ui/index.d.ts +68 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +344 -0
- package/dist/ui/input-otp.d.ts +35 -0
- package/dist/ui/input-otp.d.ts.map +1 -0
- package/dist/ui/input-otp.js +48 -0
- package/dist/ui/input.d.ts +44 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +58 -0
- package/dist/ui/label.d.ts +8 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +23 -0
- package/dist/ui/lib/motion.d.ts +10 -0
- package/dist/ui/lib/motion.d.ts.map +1 -0
- package/dist/ui/lib/motion.js +32 -0
- package/dist/ui/lib/slot.d.ts +8 -0
- package/dist/ui/lib/slot.d.ts.map +1 -0
- package/dist/ui/lib/use-reduced-motion.d.ts +3 -0
- package/dist/ui/lib/use-reduced-motion.d.ts.map +1 -0
- package/dist/ui/lib/use-reduced-motion.js +14 -0
- package/dist/ui/lib/use-ripple.d.ts +13 -0
- package/dist/ui/lib/use-ripple.d.ts.map +1 -0
- package/dist/ui/lib/use-ripple.js +13 -0
- package/dist/ui/lib/utils.d.ts +3 -0
- package/dist/ui/lib/utils.d.ts.map +1 -0
- package/dist/ui/lib/utils.js +15 -0
- package/dist/ui/link.d.ts +8 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +24 -0
- package/dist/ui/menubar.d.ts +29 -0
- package/dist/ui/menubar.d.ts.map +1 -0
- package/dist/ui/menubar.js +176 -0
- package/dist/ui/navigation-menu.d.ts +12 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -0
- package/dist/ui/navigation-menu.js +103 -0
- package/dist/ui/number-input.d.ts +40 -0
- package/dist/ui/number-input.d.ts.map +1 -0
- package/dist/ui/number-input.js +80 -0
- package/dist/ui/pagination.d.ts +74 -0
- package/dist/ui/pagination.d.ts.map +1 -0
- package/dist/ui/pagination.js +159 -0
- package/dist/ui/popover.d.ts +8 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.js +24 -0
- package/dist/ui/progress.d.ts +49 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.js +75 -0
- package/dist/ui/radio.d.ts +6 -0
- package/dist/ui/radio.d.ts.map +1 -0
- package/dist/ui/radio.js +29 -0
- package/dist/ui/search-input.d.ts +44 -0
- package/dist/ui/search-input.d.ts.map +1 -0
- package/dist/ui/search-input.js +63 -0
- package/dist/ui/segmented-control.d.ts +122 -0
- package/dist/ui/segmented-control.d.ts.map +1 -0
- package/dist/ui/segmented-control.js +270 -0
- package/dist/ui/select.d.ts +49 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.js +132 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +24 -0
- package/dist/ui/sheet.d.ts +108 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.js +110 -0
- package/dist/ui/sidebar.d.ts +67 -0
- package/dist/ui/sidebar.d.ts.map +1 -0
- package/dist/ui/sidebar.js +562 -0
- package/dist/ui/skeleton.d.ts +40 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.js +36 -0
- package/dist/ui/slider.d.ts +5 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.js +29 -0
- package/dist/ui/spinner.d.ts +38 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +47 -0
- package/dist/ui/stack.d.ts +15 -0
- package/dist/ui/stack.d.ts.map +1 -0
- package/dist/ui/stack.js +41 -0
- package/dist/ui/stat-card.d.ts +54 -0
- package/dist/ui/stat-card.d.ts.map +1 -0
- package/dist/ui/stat-card.js +52 -0
- package/dist/ui/stepper.d.ts +57 -0
- package/dist/ui/stepper.d.ts.map +1 -0
- package/dist/ui/stepper.js +90 -0
- package/dist/ui/switch.d.ts +5 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +27 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +91 -0
- package/dist/ui/tabs.d.ts +81 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +74 -0
- package/dist/ui/text.d.ts +47 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/text.js +59 -0
- package/dist/ui/textarea.d.ts +40 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.js +47 -0
- package/dist/ui/toast.d.ts +32 -0
- package/dist/ui/toast.d.ts.map +1 -0
- package/dist/ui/toast.js +98 -0
- package/dist/ui/toaster.d.ts +42 -0
- package/dist/ui/toaster.d.ts.map +1 -0
- package/dist/ui/toaster.js +23 -0
- package/dist/ui/toggle-group.d.ts +13 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle-group.js +40 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/dist/ui/toggle.js +37 -0
- package/dist/ui/tooltip.d.ts +8 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +23 -0
- package/dist/ui/transitions.d.ts +16 -0
- package/dist/ui/transitions.d.ts.map +1 -0
- package/dist/ui/transitions.js +100 -0
- package/dist/ui/tree-view/index.d.ts +4 -0
- package/dist/ui/tree-view/index.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-item.d.ts +22 -0
- package/dist/ui/tree-view/tree-item.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-item.js +136 -0
- package/dist/ui/tree-view/tree-view.d.ts +29 -0
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -0
- package/dist/ui/tree-view/tree-view.js +139 -0
- package/dist/ui/tree-view/use-tree.d.ts +26 -0
- package/dist/ui/tree-view/use-tree.d.ts.map +1 -0
- package/dist/ui/tree-view/use-tree.js +37 -0
- package/dist/ui/visually-hidden.d.ts +6 -0
- package/dist/ui/visually-hidden.d.ts.map +1 -0
- package/dist/ui/visually-hidden.js +10 -0
- package/fonts/GoogleSans-Italic-Variable.ttf +0 -0
- package/fonts/GoogleSans-Variable.ttf +0 -0
- package/fonts/Ranade-Variable.ttf +0 -0
- package/fonts/Ranade-VariableItalic.ttf +0 -0
- package/package.json +83 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as f, useMemo as s } from "react";
|
|
3
|
+
import { IconPackage as g, IconLink as S, IconVideo as L, IconMessage as M, IconUsers as P, IconLayoutKanban as u, IconListCheck as E, IconFileText as $, IconLayoutDashboard as D, IconCalendarCheck as y, IconUmbrella as T, IconBook as O, IconAdjustmentsHorizontal as U, IconUserCircle as B, IconShieldCheck as K, IconClipboardList as N, IconUserPlus as w, IconSettings as G } from "@tabler/icons-react";
|
|
4
|
+
import { CommandPalette as V } from "../composed/command-palette.js";
|
|
5
|
+
const v = {
|
|
6
|
+
TASK: E,
|
|
7
|
+
PROJECT: u,
|
|
8
|
+
USER: P,
|
|
9
|
+
COMMENT: M,
|
|
10
|
+
MEETING: L,
|
|
11
|
+
LINK: S,
|
|
12
|
+
DELIVERABLE: g
|
|
13
|
+
};
|
|
14
|
+
function x(e) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
id: "nav-dashboard",
|
|
18
|
+
label: "Dashboard",
|
|
19
|
+
icon: D,
|
|
20
|
+
onSelect: () => e("/")
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "nav-attendance",
|
|
24
|
+
label: "Attendance",
|
|
25
|
+
icon: y,
|
|
26
|
+
onSelect: () => e("/attendance")
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "nav-breaks",
|
|
30
|
+
label: "Breaks",
|
|
31
|
+
icon: T,
|
|
32
|
+
onSelect: () => e("/breaks")
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: "nav-projects",
|
|
36
|
+
label: "Projects",
|
|
37
|
+
icon: u,
|
|
38
|
+
onSelect: () => e("/projects")
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: "nav-my-tasks",
|
|
42
|
+
label: "My Tasks",
|
|
43
|
+
icon: E,
|
|
44
|
+
onSelect: () => e("/my-tasks")
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "nav-devsabha",
|
|
48
|
+
label: "Devsabha",
|
|
49
|
+
icon: O,
|
|
50
|
+
onSelect: () => e("/devsabha")
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "nav-adjustments",
|
|
54
|
+
label: "Adjustments",
|
|
55
|
+
icon: U,
|
|
56
|
+
onSelect: () => e("/adjustments")
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: "nav-profile",
|
|
60
|
+
label: "Profile",
|
|
61
|
+
icon: B,
|
|
62
|
+
onSelect: () => e("/profile")
|
|
63
|
+
}
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
function J(e) {
|
|
67
|
+
return [
|
|
68
|
+
{
|
|
69
|
+
id: "nav-admin-dashboard",
|
|
70
|
+
label: "Admin Dashboard",
|
|
71
|
+
icon: K,
|
|
72
|
+
onSelect: () => e("/admin")
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "nav-admin-breaks",
|
|
76
|
+
label: "Manage Breaks",
|
|
77
|
+
icon: T,
|
|
78
|
+
onSelect: () => e("/admin/breaks")
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: "nav-admin-attendance",
|
|
82
|
+
label: "Manage Attendance",
|
|
83
|
+
icon: y,
|
|
84
|
+
onSelect: () => e("/admin/attendance")
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "nav-admin-lokwasi",
|
|
88
|
+
label: "Lokwasi",
|
|
89
|
+
icon: N,
|
|
90
|
+
onSelect: () => e("/admin/lokwasi")
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: "nav-admin-onboarding",
|
|
94
|
+
label: "Onboarding",
|
|
95
|
+
icon: w,
|
|
96
|
+
onSelect: () => e("/admin/onboarding")
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "nav-admin-config",
|
|
100
|
+
label: "System Config",
|
|
101
|
+
icon: G,
|
|
102
|
+
onSelect: () => e("/admin/system-config")
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
function Y({
|
|
107
|
+
user: e,
|
|
108
|
+
extraGroups: r = [],
|
|
109
|
+
onNavigate: i,
|
|
110
|
+
onSearch: c,
|
|
111
|
+
searchResults: l = [],
|
|
112
|
+
isSearching: b = !1,
|
|
113
|
+
onSearchResultSelect: d
|
|
114
|
+
}) {
|
|
115
|
+
const p = (e == null ? void 0 : e.role) === "Admin" || (e == null ? void 0 : e.role) === "SuperAdmin", o = f(
|
|
116
|
+
(n) => {
|
|
117
|
+
i == null || i(n);
|
|
118
|
+
},
|
|
119
|
+
[i]
|
|
120
|
+
), I = s(
|
|
121
|
+
() => ({
|
|
122
|
+
label: "Pages",
|
|
123
|
+
items: x(o)
|
|
124
|
+
}),
|
|
125
|
+
[o]
|
|
126
|
+
), k = s(
|
|
127
|
+
() => ({
|
|
128
|
+
label: "Admin",
|
|
129
|
+
items: J(o)
|
|
130
|
+
}),
|
|
131
|
+
[o]
|
|
132
|
+
), m = s(() => {
|
|
133
|
+
if (l.length === 0) return null;
|
|
134
|
+
const n = l.map((a) => {
|
|
135
|
+
var j;
|
|
136
|
+
let t = "/";
|
|
137
|
+
switch (a.entityType) {
|
|
138
|
+
case "TASK":
|
|
139
|
+
t = a.projectId ? `/projects/${a.projectId}?taskId=${a.id}` : "/";
|
|
140
|
+
break;
|
|
141
|
+
case "PROJECT":
|
|
142
|
+
t = `/projects/${a.id}`;
|
|
143
|
+
break;
|
|
144
|
+
case "USER":
|
|
145
|
+
t = "/teammates";
|
|
146
|
+
break;
|
|
147
|
+
case "COMMENT":
|
|
148
|
+
t = a.projectId && ((j = a.metadata) != null && j.taskId) ? `/projects/${a.projectId}?taskId=${a.metadata.taskId}` : "/";
|
|
149
|
+
break;
|
|
150
|
+
case "MEETING":
|
|
151
|
+
t = a.projectId ? `/projects/${a.projectId}?tab=meetings` : "/";
|
|
152
|
+
break;
|
|
153
|
+
case "LINK":
|
|
154
|
+
t = a.projectId ? `/projects/${a.projectId}?tab=karyakram` : "/";
|
|
155
|
+
break;
|
|
156
|
+
case "DELIVERABLE":
|
|
157
|
+
t = a.projectId ? `/projects/${a.projectId}?tab=deliverables` : "/";
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
id: `search-${a.entityType}-${a.id}`,
|
|
162
|
+
label: a.title,
|
|
163
|
+
description: a.snippet,
|
|
164
|
+
icon: v[a.entityType] ?? $,
|
|
165
|
+
onSelect: () => {
|
|
166
|
+
d == null || d(a), o(t);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
return {
|
|
171
|
+
label: b ? "Searching..." : "Search Results",
|
|
172
|
+
items: n
|
|
173
|
+
};
|
|
174
|
+
}, [l, b, o, d]), A = s(() => {
|
|
175
|
+
const n = [];
|
|
176
|
+
return m && n.push(m), n.push(I), p && n.push(k), n.push(...r), n;
|
|
177
|
+
}, [m, I, p, k, r]), C = f(
|
|
178
|
+
(n) => {
|
|
179
|
+
c == null || c(n);
|
|
180
|
+
},
|
|
181
|
+
[c]
|
|
182
|
+
);
|
|
183
|
+
return /* @__PURE__ */ h(
|
|
184
|
+
V,
|
|
185
|
+
{
|
|
186
|
+
groups: A,
|
|
187
|
+
placeholder: "Search or jump to...",
|
|
188
|
+
onSearch: C,
|
|
189
|
+
emptyMessage: "No results found. Try a different search term."
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
Y.displayName = "AppCommandPalette";
|
|
194
|
+
export {
|
|
195
|
+
Y as default
|
|
196
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BottomNavbar -- Mobile bottom navigation bar.
|
|
3
|
+
*
|
|
4
|
+
* Props-driven: accepts currentPath, user, navItems instead of
|
|
5
|
+
* reading from Remix hooks or Zustand stores.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
export interface BottomNavItem {
|
|
9
|
+
title: string;
|
|
10
|
+
href: string;
|
|
11
|
+
icon: React.ComponentType<{
|
|
12
|
+
className?: string;
|
|
13
|
+
}>;
|
|
14
|
+
/** When true, the route matches only when the path is exactly equal */
|
|
15
|
+
exact?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface BottomNavbarUser {
|
|
18
|
+
name: string;
|
|
19
|
+
role?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface BottomNavbarProps extends React.HTMLAttributes<HTMLElement> {
|
|
22
|
+
/** Currently active pathname */
|
|
23
|
+
currentPath?: string;
|
|
24
|
+
/** User information (used to determine admin status, presence) */
|
|
25
|
+
user?: BottomNavbarUser | null;
|
|
26
|
+
/** Primary nav items shown directly in the bottom bar (max 4 recommended) */
|
|
27
|
+
primaryItems?: BottomNavItem[];
|
|
28
|
+
/** Additional items shown in the "More" overflow menu */
|
|
29
|
+
moreItems?: BottomNavItem[];
|
|
30
|
+
/** Additional className for the nav element */
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
declare const BottomNavbar: React.ForwardRefExoticComponent<BottomNavbarProps & React.RefAttributes<HTMLElement>>;
|
|
34
|
+
export { BottomNavbar };
|
|
35
|
+
//# sourceMappingURL=bottom-navbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-navbar.d.ts","sourceRoot":"","sources":["../../src/shell/bottom-navbar.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAU9B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACjD,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzC,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC9B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,aAAa,EAAE,CAAA;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAiDD,QAAA,MAAM,YAAY,uFAyIjB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as u, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as v from "react";
|
|
3
|
+
import { useState as N } from "react";
|
|
4
|
+
import f from "next/link";
|
|
5
|
+
import { IconX as g, IconDots as y } from "@tabler/icons-react";
|
|
6
|
+
import { cn as s } from "../ui/lib/utils.js";
|
|
7
|
+
function w({
|
|
8
|
+
item: r,
|
|
9
|
+
isActive: l,
|
|
10
|
+
onClick: n
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ t(
|
|
13
|
+
f,
|
|
14
|
+
{
|
|
15
|
+
href: r.href,
|
|
16
|
+
onClick: n,
|
|
17
|
+
"aria-label": r.title,
|
|
18
|
+
"aria-current": l ? "page" : void 0,
|
|
19
|
+
className: s(
|
|
20
|
+
"flex h-16 max-w-[70px] flex-1 cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm",
|
|
21
|
+
l ? "font-semibold text-interactive" : "text-text-helper"
|
|
22
|
+
),
|
|
23
|
+
children: /* @__PURE__ */ a("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
|
|
24
|
+
/* @__PURE__ */ t(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: s(
|
|
28
|
+
"absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-interactive p-0 transition-opacity duration-slow-01",
|
|
29
|
+
l ? "opacity-100" : "opacity-0"
|
|
30
|
+
),
|
|
31
|
+
"aria-hidden": "true"
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ t("div", { className: "p-ds-03", children: /* @__PURE__ */ t(r.icon, { className: "h-ico-md w-ico-md", "aria-hidden": "true" }) }),
|
|
35
|
+
/* @__PURE__ */ t("span", { className: "text-center", children: r.title })
|
|
36
|
+
] })
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
const k = v.forwardRef(
|
|
41
|
+
({
|
|
42
|
+
currentPath: r = "/",
|
|
43
|
+
user: l,
|
|
44
|
+
primaryItems: n = [],
|
|
45
|
+
moreItems: d = [],
|
|
46
|
+
className: p,
|
|
47
|
+
...x
|
|
48
|
+
}, h) => {
|
|
49
|
+
const [i, o] = N(!1), c = (e, b = !1) => b || e === "/" ? r === e : r.startsWith(e), m = d.some(
|
|
50
|
+
(e) => c(e.href, e.exact)
|
|
51
|
+
);
|
|
52
|
+
return l ? /* @__PURE__ */ a(u, { children: [
|
|
53
|
+
i && /* @__PURE__ */ a(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
role: "button",
|
|
57
|
+
tabIndex: 0,
|
|
58
|
+
className: "fixed inset-0 z-overlay md:hidden",
|
|
59
|
+
onClick: () => o(!1),
|
|
60
|
+
onKeyDown: (e) => {
|
|
61
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), o(!1));
|
|
62
|
+
},
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ t("div", { className: "absolute inset-0 bg-overlay" }),
|
|
65
|
+
/* @__PURE__ */ a(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
className: "absolute bottom-[72px] left-0 right-0 rounded-t-ds-2xl border-t border-border bg-layer-01 p-ds-05 pb-ds-03",
|
|
69
|
+
onClick: (e) => e.stopPropagation(),
|
|
70
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ a("div", { className: "mb-ds-04 flex items-center justify-between", children: [
|
|
73
|
+
/* @__PURE__ */ t("span", { className: "text-ds-md font-semibold text-text-primary", children: "More" }),
|
|
74
|
+
/* @__PURE__ */ t(
|
|
75
|
+
"button",
|
|
76
|
+
{
|
|
77
|
+
onClick: () => o(!1),
|
|
78
|
+
"aria-label": "Close more menu",
|
|
79
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-full hover:bg-layer-02",
|
|
80
|
+
children: /* @__PURE__ */ t(g, { className: "h-ico-sm w-ico-sm text-text-secondary", "aria-hidden": "true" })
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-4 gap-ds-03", children: d.map((e) => /* @__PURE__ */ a(
|
|
85
|
+
f,
|
|
86
|
+
{
|
|
87
|
+
href: e.href,
|
|
88
|
+
onClick: () => o(!1),
|
|
89
|
+
className: s(
|
|
90
|
+
"flex flex-col items-center gap-ds-02b rounded-ds-xl p-ds-04 text-ds-sm transition-colors",
|
|
91
|
+
c(e.href, e.exact) ? "bg-layer-02 text-interactive" : "text-text-helper hover:bg-layer-02"
|
|
92
|
+
),
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ t(e.icon, { className: "h-ico-md w-ico-md" }),
|
|
95
|
+
/* @__PURE__ */ t("span", { className: "text-center", children: e.title })
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
e.href
|
|
99
|
+
)) })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
/* @__PURE__ */ a(
|
|
107
|
+
"nav",
|
|
108
|
+
{
|
|
109
|
+
...x,
|
|
110
|
+
ref: h,
|
|
111
|
+
"aria-label": "Mobile navigation",
|
|
112
|
+
className: s(
|
|
113
|
+
"fixed bottom-0 left-0 right-0 z-sticky flex w-full flex-row items-start justify-between border-t border-border bg-layer-01 px-ds-05 pb-ds-05b pt-0 md:hidden",
|
|
114
|
+
p
|
|
115
|
+
),
|
|
116
|
+
children: [
|
|
117
|
+
n.map((e) => /* @__PURE__ */ t(
|
|
118
|
+
w,
|
|
119
|
+
{
|
|
120
|
+
item: e,
|
|
121
|
+
isActive: c(e.href, e.exact)
|
|
122
|
+
},
|
|
123
|
+
e.href
|
|
124
|
+
)),
|
|
125
|
+
d.length > 0 && /* @__PURE__ */ t(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
onClick: () => o(!i),
|
|
129
|
+
"aria-label": "More navigation options",
|
|
130
|
+
"aria-expanded": i,
|
|
131
|
+
className: s(
|
|
132
|
+
"flex h-16 max-w-[70px] flex-1 cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm",
|
|
133
|
+
i || m ? "font-semibold text-interactive" : "text-text-helper"
|
|
134
|
+
),
|
|
135
|
+
children: /* @__PURE__ */ a("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
|
|
136
|
+
/* @__PURE__ */ t(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: s(
|
|
140
|
+
"absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-interactive p-0 transition-opacity duration-slow-01",
|
|
141
|
+
i || m ? "opacity-100" : "opacity-0"
|
|
142
|
+
),
|
|
143
|
+
"aria-hidden": "true"
|
|
144
|
+
}
|
|
145
|
+
),
|
|
146
|
+
/* @__PURE__ */ t("div", { className: "p-ds-03", children: /* @__PURE__ */ t(y, { className: "h-ico-md w-ico-md", "aria-hidden": "true" }) }),
|
|
147
|
+
/* @__PURE__ */ t("span", { className: "text-center", children: "More" })
|
|
148
|
+
] })
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] }) : null;
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
k.displayName = "BottomNavbar";
|
|
158
|
+
export {
|
|
159
|
+
k as BottomNavbar
|
|
160
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AppSidebar, type NavItem, type NavGroup, type SidebarUser, type AppSidebarProps, } from './sidebar';
|
|
2
|
+
export { TopBar, type TopBarUser, type TopBarProps, } from './top-bar';
|
|
3
|
+
export { BottomNavbar, type BottomNavItem, type BottomNavbarUser, type BottomNavbarProps, } from './bottom-navbar';
|
|
4
|
+
export { NotificationCenter, type Notification, type NotificationCenterProps, } from './notification-center';
|
|
5
|
+
export { default as NotificationPreferences, type NotificationPreference, type NotificationProject, type NotificationPreferencesProps, } from './notification-preferences';
|
|
6
|
+
export { default as AppCommandPalette, type SearchResult, type AppCommandPaletteUser, type AppCommandPaletteProps, } from './app-command-palette';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shell/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,MAAM,EACN,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,uBAAuB,GAC7B,MAAM,uBAAuB,CAAA;AAE9B,OAAO,EACL,OAAO,IAAI,uBAAuB,EAClC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,GAClC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,OAAO,IAAI,iBAAiB,EAC5B,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,GAC5B,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppSidebar as e } from "./sidebar.js";
|
|
2
|
+
import { TopBar as a } from "./top-bar.js";
|
|
3
|
+
import { BottomNavbar as p } from "./bottom-navbar.js";
|
|
4
|
+
import { NotificationCenter as i } from "./notification-center.js";
|
|
5
|
+
import { default as n } from "./notification-preferences.js";
|
|
6
|
+
import { default as c } from "./app-command-palette.js";
|
|
7
|
+
export {
|
|
8
|
+
c as AppCommandPalette,
|
|
9
|
+
e as AppSidebar,
|
|
10
|
+
p as BottomNavbar,
|
|
11
|
+
i as NotificationCenter,
|
|
12
|
+
n as NotificationPreferences,
|
|
13
|
+
a as TopBar
|
|
14
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationCenter -- Popover-based notification panel.
|
|
3
|
+
*
|
|
4
|
+
* Props-driven: accepts notifications array and callbacks instead of
|
|
5
|
+
* reading from Zustand stores or using Remix useNavigate.
|
|
6
|
+
*/
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
export interface Notification {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
body?: string | null;
|
|
12
|
+
tier: 'INFO' | 'IMPORTANT' | 'CRITICAL';
|
|
13
|
+
isRead: boolean;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
entityType?: string | null;
|
|
16
|
+
entityId?: string | null;
|
|
17
|
+
projectId?: string | null;
|
|
18
|
+
project?: {
|
|
19
|
+
title: string;
|
|
20
|
+
} | null;
|
|
21
|
+
}
|
|
22
|
+
export interface NotificationCenterProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
|
+
/** List of notifications to display */
|
|
24
|
+
notifications?: Notification[];
|
|
25
|
+
/** Count of unread notifications (derived from notifications if not provided) */
|
|
26
|
+
unreadCount?: number;
|
|
27
|
+
/** Whether the popover is open (controlled mode) */
|
|
28
|
+
open?: boolean;
|
|
29
|
+
/** Called when the popover open state changes */
|
|
30
|
+
onOpenChange?: (open: boolean) => void;
|
|
31
|
+
/** Whether more notifications are loading */
|
|
32
|
+
isLoading?: boolean;
|
|
33
|
+
/** Whether there are more notifications to fetch */
|
|
34
|
+
hasMore?: boolean;
|
|
35
|
+
/** Called when the user scrolls near the bottom to load more */
|
|
36
|
+
onFetchMore?: () => void;
|
|
37
|
+
/** Called to mark a single notification as read */
|
|
38
|
+
onMarkRead?: (id: string) => void;
|
|
39
|
+
/** Called to mark all notifications as read */
|
|
40
|
+
onMarkAllRead?: () => void;
|
|
41
|
+
/** Called when the user clicks a notification (e.g., navigate to entity) */
|
|
42
|
+
onNavigate?: (path: string) => void;
|
|
43
|
+
/** Resolve a notification to a navigation path. Return null if no navigation. */
|
|
44
|
+
getNotificationRoute?: (notification: Notification) => string | null;
|
|
45
|
+
/** Additional className */
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
declare const NotificationCenter: React.ForwardRefExoticComponent<NotificationCenterProps & React.RefAttributes<HTMLButtonElement>>;
|
|
49
|
+
export { NotificationCenter };
|
|
50
|
+
//# sourceMappingURL=notification-center.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-center.d.ts","sourceRoot":"","sources":["../../src/shell/notification-center.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAmB9B,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,UAAU,CAAA;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACnC;AAED,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,uCAAuC;IACvC,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,iDAAiD;IACjD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oDAAoD;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,mDAAmD;IACnD,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,+CAA+C;IAC/C,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,iFAAiF;IACjF,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,MAAM,GAAG,IAAI,CAAA;IACpE,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAgLD,QAAA,MAAM,kBAAkB,mGA2KvB,CAAA;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|