@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,81 @@
|
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { cn as b } from "../ui/lib/utils.js";
|
|
4
|
+
import { Popover as g, PopoverTrigger as v, PopoverContent as y } from "../ui/popover.js";
|
|
5
|
+
import { Avatar as N, AvatarImage as w, AvatarFallback as k } from "../ui/avatar.js";
|
|
6
|
+
import { IconSearch as C, IconCheck as S } from "@tabler/icons-react";
|
|
7
|
+
import { getInitials as P } from "./lib/string-utils.js";
|
|
8
|
+
const I = r.forwardRef(
|
|
9
|
+
({
|
|
10
|
+
members: c,
|
|
11
|
+
selectedIds: i,
|
|
12
|
+
onSelect: d,
|
|
13
|
+
children: p,
|
|
14
|
+
multiple: m = !1,
|
|
15
|
+
placeholder: x = "Search members..."
|
|
16
|
+
}, f) => {
|
|
17
|
+
const [h, s] = r.useState(!1), [o, u] = r.useState(""), l = c.filter(
|
|
18
|
+
(e) => e.name.toLowerCase().includes(o.toLowerCase())
|
|
19
|
+
);
|
|
20
|
+
return /* @__PURE__ */ a(g, { open: h, onOpenChange: s, children: [
|
|
21
|
+
/* @__PURE__ */ t(v, { asChild: !0, children: p }),
|
|
22
|
+
/* @__PURE__ */ a(
|
|
23
|
+
y,
|
|
24
|
+
{
|
|
25
|
+
ref: f,
|
|
26
|
+
className: "w-[220px] border-border bg-layer-01 p-0",
|
|
27
|
+
align: "start",
|
|
28
|
+
sideOffset: 4,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03 border-b border-border px-ds-04 py-ds-03", children: [
|
|
31
|
+
/* @__PURE__ */ t(C, { className: "h-ico-sm w-ico-sm shrink-0 text-text-placeholder", stroke: 1.5 }),
|
|
32
|
+
/* @__PURE__ */ t(
|
|
33
|
+
"input",
|
|
34
|
+
{
|
|
35
|
+
type: "text",
|
|
36
|
+
placeholder: x,
|
|
37
|
+
value: o,
|
|
38
|
+
onChange: (e) => u(e.target.value),
|
|
39
|
+
className: "w-full bg-transparent text-ds-md font-body text-text-primary placeholder:text-text-placeholder outline-none"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ a("div", { className: "max-h-[200px] overflow-y-auto py-ds-02", children: [
|
|
44
|
+
l.map((e) => {
|
|
45
|
+
const n = i.includes(e.id);
|
|
46
|
+
return /* @__PURE__ */ a(
|
|
47
|
+
"button",
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
onClick: () => {
|
|
51
|
+
d(e.id), m || s(!1);
|
|
52
|
+
},
|
|
53
|
+
className: b(
|
|
54
|
+
"flex w-full items-center gap-ds-03 px-ds-04 py-ds-02b text-left transition-colors",
|
|
55
|
+
"hover:bg-field",
|
|
56
|
+
n && "bg-field"
|
|
57
|
+
),
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ a(N, { className: "h-ico-md w-ico-md", children: [
|
|
60
|
+
e.avatar && /* @__PURE__ */ t(w, { src: e.avatar, alt: e.name }),
|
|
61
|
+
/* @__PURE__ */ t(k, { className: "bg-layer-03 text-ds-xs font-semibold text-text-on-color", children: P(e.name) })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ t("span", { className: "flex-1 truncate text-ds-md font-body text-text-primary", children: e.name }),
|
|
64
|
+
n && /* @__PURE__ */ t(S, { className: "h-ico-sm w-ico-sm shrink-0 text-interactive" })
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
e.id
|
|
68
|
+
);
|
|
69
|
+
}),
|
|
70
|
+
l.length === 0 && /* @__PURE__ */ t("p", { className: "px-ds-04 py-ds-05 text-center text-ds-sm font-body text-text-placeholder", children: "No members found" })
|
|
71
|
+
] })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] });
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
I.displayName = "MemberPicker";
|
|
79
|
+
export {
|
|
80
|
+
I as MemberPicker
|
|
81
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface Breadcrumb {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: string;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
breadcrumbs?: Breadcrumb[];
|
|
11
|
+
titleClassName?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export { PageHeader };
|
|
15
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/composed/page-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,UAAU,wFAwEf,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { cn as s } from "../ui/lib/utils.js";
|
|
4
|
+
import { IconChevronRight as p } from "@tabler/icons-react";
|
|
5
|
+
const f = o.forwardRef(
|
|
6
|
+
({ title: i, subtitle: d, actions: c, breadcrumbs: t, titleClassName: x, className: m, ...h }, n) => /* @__PURE__ */ l(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
ref: n,
|
|
10
|
+
className: s(
|
|
11
|
+
"flex flex-col gap-ds-05 border-b border-border pb-ds-06",
|
|
12
|
+
m
|
|
13
|
+
),
|
|
14
|
+
...h,
|
|
15
|
+
children: [
|
|
16
|
+
t && t.length > 0 && /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: "flex items-center gap-ds-02b", children: t.map((a, r) => /* @__PURE__ */ l(o.Fragment, { children: [
|
|
17
|
+
r > 0 && /* @__PURE__ */ e(
|
|
18
|
+
p,
|
|
19
|
+
{
|
|
20
|
+
className: "h-ico-sm w-ico-sm text-text-placeholder",
|
|
21
|
+
stroke: 1.5
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
a.href ? /* @__PURE__ */ e(
|
|
25
|
+
"a",
|
|
26
|
+
{
|
|
27
|
+
href: a.href,
|
|
28
|
+
className: "text-ds-sm text-text-placeholder transition-colors hover:text-text-secondary",
|
|
29
|
+
children: a.label
|
|
30
|
+
}
|
|
31
|
+
) : /* @__PURE__ */ e(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className: s(
|
|
35
|
+
"text-ds-sm",
|
|
36
|
+
r === t.length - 1 ? "text-text-primary" : "text-text-placeholder"
|
|
37
|
+
),
|
|
38
|
+
children: a.label
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
] }, r)) }),
|
|
42
|
+
/* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-ds-05", children: [
|
|
43
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-ds-02b", children: [
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
"h1",
|
|
46
|
+
{
|
|
47
|
+
className: s(
|
|
48
|
+
"text-ds-2xl text-text-primary",
|
|
49
|
+
x
|
|
50
|
+
),
|
|
51
|
+
children: i
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
d && /* @__PURE__ */ e("p", { className: "text-ds-md text-text-placeholder", children: d })
|
|
55
|
+
] }),
|
|
56
|
+
c && /* @__PURE__ */ e("div", { className: "flex shrink-0 items-center gap-ds-03", children: c })
|
|
57
|
+
] })
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
);
|
|
62
|
+
f.displayName = "PageHeader";
|
|
63
|
+
export {
|
|
64
|
+
f as PageHeader
|
|
65
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const DashboardSkeleton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const ProjectListSkeleton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TaskDetailSkeleton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DashboardSkeleton, ProjectListSkeleton, TaskDetailSkeleton, };
|
|
6
|
+
//# sourceMappingURL=page-skeletons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-skeletons.d.ts","sourceRoot":"","sources":["../../src/composed/page-skeletons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAQ9B,QAAA,MAAM,iBAAiB,sEAkDtB,CAAA;AAMD,QAAA,MAAM,mBAAmB,sEA2DxB,CAAA;AAMD,QAAA,MAAM,kBAAkB,sEA8CvB,CAAA;AAID,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,CAAA"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { Skeleton as e } from "../ui/skeleton.js";
|
|
4
|
+
import { cn as d } from "../ui/lib/utils.js";
|
|
5
|
+
const l = "bg-field", h = o.forwardRef(
|
|
6
|
+
function(n, m) {
|
|
7
|
+
return /* @__PURE__ */ a("div", { ref: m, className: "flex flex-col gap-ds-06", children: [
|
|
8
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-2 lg:grid-cols-4", children: Array.from({ length: 4 }).map((c, r) => /* @__PURE__ */ a(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: "flex flex-col gap-ds-04 rounded-ds-xl border border-border bg-layer-01 p-ds-05b",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
14
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-20", l) }),
|
|
15
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-16", l) }),
|
|
18
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-03 w-28", l) })
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
`stat-${r}`
|
|
22
|
+
)) }),
|
|
23
|
+
/* @__PURE__ */ a("div", { className: "rounded-ds-xl border border-border bg-layer-01 p-ds-06", children: [
|
|
24
|
+
/* @__PURE__ */ a("div", { className: "mb-ds-06 flex items-center justify-between", children: [
|
|
25
|
+
/* @__PURE__ */ s(e, { className: d("h-5 w-32", l) }),
|
|
26
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
27
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) }),
|
|
28
|
+
/* @__PURE__ */ s(e, { className: d("h-4 w-28", l) }),
|
|
29
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm w-ds-sm rounded-ds-lg", l) })
|
|
30
|
+
] })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ s("div", { className: "mb-ds-03 grid grid-cols-7 gap-ds-03", children: Array.from({ length: 7 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("mx-auto h-3 w-8", l) }, `wh-${r}`)) }),
|
|
33
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-7 gap-ds-03", children: Array.from({ length: 35 }).map((c, r) => /* @__PURE__ */ s(
|
|
34
|
+
e,
|
|
35
|
+
{
|
|
36
|
+
className: d("mx-auto h-ds-md w-ds-md rounded-ds-full", l)
|
|
37
|
+
},
|
|
38
|
+
`cal-${r}`
|
|
39
|
+
)) })
|
|
40
|
+
] })
|
|
41
|
+
] });
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
h.displayName = "DashboardSkeleton";
|
|
45
|
+
const f = o.forwardRef(
|
|
46
|
+
function(n, m) {
|
|
47
|
+
return /* @__PURE__ */ a("div", { ref: m, className: "flex flex-col gap-ds-06", children: [
|
|
48
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-05 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
49
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-03", children: [
|
|
50
|
+
/* @__PURE__ */ s(e, { className: d("h-6 w-28", l) }),
|
|
51
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-04 w-40", l) })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm-plus w-32 rounded-ds-lg", l) })
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-04 sm:flex-row sm:items-center", children: [
|
|
56
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-sm-plus flex-1 rounded-ds-lg", l) }),
|
|
57
|
+
/* @__PURE__ */ s("div", { className: "flex gap-ds-02b", children: Array.from({ length: 4 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-ds-sm w-16 rounded-ds-lg", l) }, `f-${r}`)) })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 gap-ds-05 sm:grid-cols-2 lg:grid-cols-3", children: Array.from({ length: 6 }).map((c, r) => /* @__PURE__ */ a(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: "flex flex-col gap-ds-05 rounded-ds-xl border border-border bg-layer-01 p-ds-05b",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
|
|
65
|
+
/* @__PURE__ */ s(e, { className: d("h-5 w-16 rounded-ds-full", l) }),
|
|
66
|
+
/* @__PURE__ */ s(e, { className: d("h-4 w-20 rounded-ds-md", l) })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-ds-03", children: [
|
|
69
|
+
/* @__PURE__ */ s(e, { className: d("h-4 w-3/4", l) }),
|
|
70
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-full", l) }),
|
|
71
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-2/3", l) })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between pt-ds-02", children: [
|
|
74
|
+
/* @__PURE__ */ s("div", { className: "flex -space-x-ds-03", children: Array.from({ length: 3 }).map((N, t) => /* @__PURE__ */ s(
|
|
75
|
+
e,
|
|
76
|
+
{
|
|
77
|
+
className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-full", l)
|
|
78
|
+
},
|
|
79
|
+
`av-${r}-${t}`
|
|
80
|
+
)) }),
|
|
81
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-04 w-ds-md", l) })
|
|
82
|
+
] })
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
`proj-${r}`
|
|
86
|
+
)) })
|
|
87
|
+
] });
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
f.displayName = "ProjectListSkeleton";
|
|
91
|
+
const p = o.forwardRef(
|
|
92
|
+
function(n, m) {
|
|
93
|
+
return /* @__PURE__ */ a("div", { ref: m, className: "flex h-full flex-col gap-0 rounded-ds-xl border border-border bg-layer-01", children: [
|
|
94
|
+
/* @__PURE__ */ a("div", { className: "flex items-center justify-between border-b border-border px-ds-05b py-ds-05", children: [
|
|
95
|
+
/* @__PURE__ */ s(e, { className: d("h-5 w-48", l) }),
|
|
96
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-ds-03", children: [
|
|
97
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-lg", l) }),
|
|
98
|
+
/* @__PURE__ */ s(e, { className: d("h-ds-xs-plus w-ds-xs-plus rounded-ds-lg", l) })
|
|
99
|
+
] })
|
|
100
|
+
] }),
|
|
101
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col gap-0 border-b border-border px-ds-05b py-ds-05", children: Array.from({ length: 5 }).map((c, r) => /* @__PURE__ */ a(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: "flex items-center gap-ds-05 py-ds-03",
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-24 shrink-0", l) }),
|
|
107
|
+
/* @__PURE__ */ s(e, { className: d("h-6 w-32 rounded-ds-md", l) })
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
`prop-${r}`
|
|
111
|
+
)) }),
|
|
112
|
+
/* @__PURE__ */ s("div", { className: "border-b border-border px-ds-05b", children: /* @__PURE__ */ s("div", { className: "flex gap-ds-05 py-ds-04", children: Array.from({ length: 3 }).map((c, r) => /* @__PURE__ */ s(e, { className: d("h-4 w-16", l) }, `tab-${r}`)) }) }),
|
|
113
|
+
/* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-ds-04 px-ds-05b py-ds-05", children: [
|
|
114
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-full", l) }),
|
|
115
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-4/5", l) }),
|
|
116
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-3/5", l) }),
|
|
117
|
+
/* @__PURE__ */ s(e, { className: d("mt-ds-03 h-3 w-full", l) }),
|
|
118
|
+
/* @__PURE__ */ s(e, { className: d("h-3 w-2/3", l) })
|
|
119
|
+
] })
|
|
120
|
+
] });
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
p.displayName = "TaskDetailSkeleton";
|
|
124
|
+
export {
|
|
125
|
+
h as DashboardSkeleton,
|
|
126
|
+
f as ProjectListSkeleton,
|
|
127
|
+
p as TaskDetailSkeleton
|
|
128
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type Priority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
|
4
|
+
declare const priorityVariants: (props?: ({
|
|
5
|
+
display?: "compact" | "full" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface PriorityIndicatorProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof priorityVariants> {
|
|
8
|
+
priority: Priority;
|
|
9
|
+
}
|
|
10
|
+
declare const PriorityIndicator: React.ForwardRefExoticComponent<PriorityIndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { PriorityIndicator };
|
|
12
|
+
//# sourceMappingURL=priority-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"priority-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/priority-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAUjE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAA;AAgC3D,QAAA,MAAM,gBAAgB;;8EAarB,CAAA;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EAC5D,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,QAAA,MAAM,iBAAiB,+FA0CtB,CAAA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { cva as d } from "class-variance-authority";
|
|
4
|
+
import { cn as e } from "../ui/lib/utils.js";
|
|
5
|
+
import { IconAlertTriangle as f, IconArrowUp as g, IconMinus as b, IconArrowDown as x } from "@tabler/icons-react";
|
|
6
|
+
const p = {
|
|
7
|
+
LOW: {
|
|
8
|
+
icon: x,
|
|
9
|
+
color: "text-category-slate-text",
|
|
10
|
+
bgColor: "bg-category-slate-surface",
|
|
11
|
+
label: "Low"
|
|
12
|
+
},
|
|
13
|
+
MEDIUM: {
|
|
14
|
+
icon: b,
|
|
15
|
+
color: "text-warning-text",
|
|
16
|
+
bgColor: "bg-warning-surface",
|
|
17
|
+
label: "Medium"
|
|
18
|
+
},
|
|
19
|
+
HIGH: {
|
|
20
|
+
icon: g,
|
|
21
|
+
color: "text-error-text",
|
|
22
|
+
bgColor: "bg-error-surface",
|
|
23
|
+
label: "High"
|
|
24
|
+
},
|
|
25
|
+
URGENT: {
|
|
26
|
+
icon: f,
|
|
27
|
+
color: "text-error-text",
|
|
28
|
+
bgColor: "bg-error-surface",
|
|
29
|
+
label: "Urgent"
|
|
30
|
+
}
|
|
31
|
+
}, u = d(
|
|
32
|
+
"inline-flex items-center gap-ds-02b font-body",
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
display: {
|
|
36
|
+
compact: "",
|
|
37
|
+
full: ""
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
defaultVariants: {
|
|
41
|
+
display: "full"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
), y = m.forwardRef(
|
|
45
|
+
({ priority: s, display: t, className: i, ...c }, n) => {
|
|
46
|
+
const o = p[s], l = o.icon;
|
|
47
|
+
return t === "compact" ? /* @__PURE__ */ r(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref: n,
|
|
51
|
+
className: e(
|
|
52
|
+
"inline-flex items-center justify-center rounded-ds-md p-ds-02",
|
|
53
|
+
o.bgColor,
|
|
54
|
+
i
|
|
55
|
+
),
|
|
56
|
+
title: o.label,
|
|
57
|
+
...c,
|
|
58
|
+
children: /* @__PURE__ */ r(l, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
|
|
59
|
+
}
|
|
60
|
+
) : /* @__PURE__ */ a(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: n,
|
|
64
|
+
className: e(u({ display: t }), i),
|
|
65
|
+
...c,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ r(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: e(
|
|
71
|
+
"inline-flex items-center justify-center rounded-ds-md p-ds-01",
|
|
72
|
+
o.bgColor
|
|
73
|
+
),
|
|
74
|
+
children: /* @__PURE__ */ r(l, { className: e("h-ico-sm w-ico-sm", o.color), stroke: 2 })
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ r("span", { className: "text-ds-sm text-text-secondary", children: o.label })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
y.displayName = "PriorityIndicator";
|
|
84
|
+
export {
|
|
85
|
+
y as PriorityIndicator
|
|
86
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface RichTextEditorProps {
|
|
3
|
+
content?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
onChange?: (html: string) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const RichTextEditor: React.ForwardRefExoticComponent<RichTextEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export interface RichTextViewerProps {
|
|
11
|
+
content: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const RichTextViewer: React.ForwardRefExoticComponent<RichTextViewerProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export { RichTextEditor, RichTextViewer };
|
|
16
|
+
//# sourceMappingURL=rich-text-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-editor.d.ts","sourceRoot":"","sources":["../../src/composed/rich-text-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAqJ9B,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,4FA2DnB,CAAA;AAID,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,cAAc,4FAoCnB,CAAA;AAID,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { useEditor as h, EditorContent as x } from "@tiptap/react";
|
|
4
|
+
import u from "@tiptap/starter-kit";
|
|
5
|
+
import f from "@tiptap/extension-placeholder";
|
|
6
|
+
import { cn as l } from "../ui/lib/utils.js";
|
|
7
|
+
import { IconBold as _, IconItalic as g, IconStrikethrough as v, IconH2 as y, IconH3 as k, IconList as w, IconListNumbers as N, IconCode as A, IconArrowBackUp as I, IconArrowForwardUp as C } from "@tabler/icons-react";
|
|
8
|
+
function s({
|
|
9
|
+
onClick: t,
|
|
10
|
+
isActive: r = !1,
|
|
11
|
+
disabled: c = !1,
|
|
12
|
+
title: o,
|
|
13
|
+
children: i
|
|
14
|
+
}) {
|
|
15
|
+
return /* @__PURE__ */ e(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: t,
|
|
20
|
+
disabled: c,
|
|
21
|
+
title: o,
|
|
22
|
+
className: l(
|
|
23
|
+
"inline-flex h-ds-xs-plus w-ds-xs-plus items-center justify-center rounded-ds-md transition-colors",
|
|
24
|
+
"hover:bg-field",
|
|
25
|
+
"disabled:pointer-events-none disabled:opacity-[0.38]",
|
|
26
|
+
r ? "bg-field text-interactive" : "text-text-placeholder"
|
|
27
|
+
),
|
|
28
|
+
children: i
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function R({ editor: t }) {
|
|
33
|
+
return /* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-ds-01 border-b border-border px-ds-04 py-ds-02b", children: [
|
|
34
|
+
/* @__PURE__ */ e(
|
|
35
|
+
s,
|
|
36
|
+
{
|
|
37
|
+
onClick: () => t.chain().focus().toggleBold().run(),
|
|
38
|
+
isActive: t.isActive("bold"),
|
|
39
|
+
title: "Bold",
|
|
40
|
+
children: /* @__PURE__ */ e(_, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e(
|
|
44
|
+
s,
|
|
45
|
+
{
|
|
46
|
+
onClick: () => t.chain().focus().toggleItalic().run(),
|
|
47
|
+
isActive: t.isActive("italic"),
|
|
48
|
+
title: "Italic",
|
|
49
|
+
children: /* @__PURE__ */ e(g, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
s,
|
|
54
|
+
{
|
|
55
|
+
onClick: () => t.chain().focus().toggleStrike().run(),
|
|
56
|
+
isActive: t.isActive("strike"),
|
|
57
|
+
title: "Strikethrough",
|
|
58
|
+
children: /* @__PURE__ */ e(v, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ e("div", { className: "mx-ds-02 h-4 w-px bg-border" }),
|
|
62
|
+
/* @__PURE__ */ e(
|
|
63
|
+
s,
|
|
64
|
+
{
|
|
65
|
+
onClick: () => t.chain().focus().toggleHeading({ level: 2 }).run(),
|
|
66
|
+
isActive: t.isActive("heading", { level: 2 }),
|
|
67
|
+
title: "Heading 2",
|
|
68
|
+
children: /* @__PURE__ */ e(y, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ e(
|
|
72
|
+
s,
|
|
73
|
+
{
|
|
74
|
+
onClick: () => t.chain().focus().toggleHeading({ level: 3 }).run(),
|
|
75
|
+
isActive: t.isActive("heading", { level: 3 }),
|
|
76
|
+
title: "Heading 3",
|
|
77
|
+
children: /* @__PURE__ */ e(k, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ e("div", { className: "mx-ds-02 h-4 w-px bg-border" }),
|
|
81
|
+
/* @__PURE__ */ e(
|
|
82
|
+
s,
|
|
83
|
+
{
|
|
84
|
+
onClick: () => t.chain().focus().toggleBulletList().run(),
|
|
85
|
+
isActive: t.isActive("bulletList"),
|
|
86
|
+
title: "Bullet list",
|
|
87
|
+
children: /* @__PURE__ */ e(w, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ e(
|
|
91
|
+
s,
|
|
92
|
+
{
|
|
93
|
+
onClick: () => t.chain().focus().toggleOrderedList().run(),
|
|
94
|
+
isActive: t.isActive("orderedList"),
|
|
95
|
+
title: "Ordered list",
|
|
96
|
+
children: /* @__PURE__ */ e(N, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ e(
|
|
100
|
+
s,
|
|
101
|
+
{
|
|
102
|
+
onClick: () => t.chain().focus().toggleCodeBlock().run(),
|
|
103
|
+
isActive: t.isActive("codeBlock"),
|
|
104
|
+
title: "Code block",
|
|
105
|
+
children: /* @__PURE__ */ e(A, { className: "h-ico-sm w-ico-sm", stroke: 2.5 })
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ e("div", { className: "mx-ds-02 h-4 w-px bg-border" }),
|
|
109
|
+
/* @__PURE__ */ e(
|
|
110
|
+
s,
|
|
111
|
+
{
|
|
112
|
+
onClick: () => t.chain().focus().undo().run(),
|
|
113
|
+
disabled: !t.can().undo(),
|
|
114
|
+
title: "Undo",
|
|
115
|
+
children: /* @__PURE__ */ e(I, { className: "h-ico-sm w-ico-sm", stroke: 2 })
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ e(
|
|
119
|
+
s,
|
|
120
|
+
{
|
|
121
|
+
onClick: () => t.chain().focus().redo().run(),
|
|
122
|
+
disabled: !t.can().redo(),
|
|
123
|
+
title: "Redo",
|
|
124
|
+
children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm", stroke: 2 })
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
] });
|
|
128
|
+
}
|
|
129
|
+
const B = m.forwardRef(
|
|
130
|
+
function({
|
|
131
|
+
content: r = "",
|
|
132
|
+
placeholder: c = "Start writing...",
|
|
133
|
+
onChange: o,
|
|
134
|
+
className: i,
|
|
135
|
+
editable: n = !0
|
|
136
|
+
}, p) {
|
|
137
|
+
const d = h({
|
|
138
|
+
extensions: [
|
|
139
|
+
u.configure({
|
|
140
|
+
heading: { levels: [2, 3] }
|
|
141
|
+
}),
|
|
142
|
+
f.configure({
|
|
143
|
+
placeholder: c,
|
|
144
|
+
emptyEditorClass: "before:content-[attr(data-placeholder)] before:text-text-placeholder before:float-left before:h-0 before:pointer-events-none"
|
|
145
|
+
})
|
|
146
|
+
],
|
|
147
|
+
content: r,
|
|
148
|
+
editable: n,
|
|
149
|
+
editorProps: {
|
|
150
|
+
attributes: {
|
|
151
|
+
class: l(
|
|
152
|
+
"prose prose-sm max-w-none focus:outline-none",
|
|
153
|
+
"min-h-[120px] px-ds-04 py-ds-04",
|
|
154
|
+
"font-body text-ds-md leading-relaxed text-text-primary",
|
|
155
|
+
"[&_h2]:text-ds-xl [&_h2]:mb-ds-03 [&_h2]:mt-ds-05 [&_h2]:text-text-primary",
|
|
156
|
+
"[&_h3]:text-ds-base [&_h3]:font-semibold [&_h3]:mb-ds-02b [&_h3]:mt-ds-04 [&_h3]:text-text-primary",
|
|
157
|
+
"[&_p]:mb-ds-02b [&_p]:text-text-secondary",
|
|
158
|
+
"[&_ul]:ml-ds-05 [&_ul]:list-disc [&_ol]:ml-ds-05 [&_ol]:list-decimal",
|
|
159
|
+
"[&_li]:text-text-secondary",
|
|
160
|
+
"[&_code]:rounded [&_code]:bg-layer-02 [&_code]:px-ds-02b [&_code]:py-ds-01 [&_code]:text-ds-md [&_code]:text-interactive",
|
|
161
|
+
"[&_pre]:rounded-ds-lg [&_pre]:bg-layer-02 [&_pre]:p-ds-04",
|
|
162
|
+
"[&_strong]:font-semibold [&_strong]:text-text-primary"
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
onUpdate: ({ editor: b }) => {
|
|
167
|
+
o == null || o(b.getHTML());
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
return d ? /* @__PURE__ */ a(
|
|
171
|
+
"div",
|
|
172
|
+
{
|
|
173
|
+
ref: p,
|
|
174
|
+
className: l(
|
|
175
|
+
"overflow-hidden rounded-ds-lg border border-border bg-layer-01",
|
|
176
|
+
"transition-colors focus-within:border-border-strong",
|
|
177
|
+
i
|
|
178
|
+
),
|
|
179
|
+
children: [
|
|
180
|
+
n && /* @__PURE__ */ e(R, { editor: d }),
|
|
181
|
+
/* @__PURE__ */ e(x, { editor: d })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
) : null;
|
|
185
|
+
}
|
|
186
|
+
);
|
|
187
|
+
B.displayName = "RichTextEditor";
|
|
188
|
+
const T = m.forwardRef(
|
|
189
|
+
function({ content: r, className: c }, o) {
|
|
190
|
+
const i = h({
|
|
191
|
+
extensions: [
|
|
192
|
+
u.configure({
|
|
193
|
+
heading: { levels: [2, 3] }
|
|
194
|
+
})
|
|
195
|
+
],
|
|
196
|
+
content: r,
|
|
197
|
+
editable: !1,
|
|
198
|
+
editorProps: {
|
|
199
|
+
attributes: {
|
|
200
|
+
class: l(
|
|
201
|
+
"prose prose-sm max-w-none",
|
|
202
|
+
"font-body text-ds-md leading-relaxed text-text-primary",
|
|
203
|
+
"[&_h2]:text-ds-xl [&_h2]:mb-ds-03 [&_h2]:mt-ds-05 [&_h2]:text-text-primary",
|
|
204
|
+
"[&_h3]:text-ds-base [&_h3]:font-semibold [&_h3]:mb-ds-02b [&_h3]:mt-ds-04 [&_h3]:text-text-primary",
|
|
205
|
+
"[&_p]:mb-ds-02b [&_p]:text-text-secondary",
|
|
206
|
+
"[&_ul]:ml-ds-05 [&_ul]:list-disc [&_ol]:ml-ds-05 [&_ol]:list-decimal",
|
|
207
|
+
"[&_li]:text-text-secondary",
|
|
208
|
+
"[&_code]:rounded [&_code]:bg-layer-02 [&_code]:px-ds-02b [&_code]:py-ds-01 [&_code]:text-ds-md [&_code]:text-interactive",
|
|
209
|
+
"[&_pre]:rounded-ds-lg [&_pre]:bg-layer-02 [&_pre]:p-ds-04",
|
|
210
|
+
"[&_strong]:font-semibold [&_strong]:text-text-primary"
|
|
211
|
+
)
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
return i ? /* @__PURE__ */ e("div", { ref: o, className: c, children: /* @__PURE__ */ e(x, { editor: i }) }) : null;
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
T.displayName = "RichTextViewer";
|
|
219
|
+
export {
|
|
220
|
+
B as RichTextEditor,
|
|
221
|
+
T as RichTextViewer
|
|
222
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const statusBadgeVariants: (props?: ({
|
|
4
|
+
status?: "active" | "completed" | "pending" | "approved" | "rejected" | "blocked" | "cancelled" | "draft" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface StatusBadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'>, VariantProps<typeof statusBadgeVariants> {
|
|
8
|
+
label?: string;
|
|
9
|
+
hideDot?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const StatusBadge: React.ForwardRefExoticComponent<StatusBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export { StatusBadge, statusBadgeVariants };
|
|
13
|
+
//# sourceMappingURL=status-badge.d.ts.map
|