@devalok/shilp-sutra 0.1.1 → 0.2.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 +1 -0
- package/dist/composed/avatar-group.js +1 -0
- package/dist/composed/command-palette.d.ts +1 -0
- package/dist/composed/command-palette.js +1 -0
- package/dist/composed/content-card.d.ts.map +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -0
- package/dist/composed/date-picker/calendar-grid.js +1 -0
- package/dist/composed/date-picker/date-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-picker.js +1 -0
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-range-picker.js +1 -0
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -0
- package/dist/composed/date-picker/date-time-picker.js +1 -0
- package/dist/composed/date-picker/index.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.d.ts +1 -0
- package/dist/composed/date-picker/month-picker.js +1 -0
- package/dist/composed/date-picker/presets.d.ts +1 -0
- package/dist/composed/date-picker/presets.js +1 -0
- package/dist/composed/date-picker/time-picker.d.ts +1 -0
- package/dist/composed/date-picker/time-picker.js +1 -0
- package/dist/composed/date-picker/use-calendar.d.ts +1 -0
- package/dist/composed/date-picker/use-calendar.js +1 -0
- package/dist/composed/date-picker/year-picker.d.ts +1 -0
- package/dist/composed/date-picker/year-picker.js +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/error-boundary.d.ts +1 -0
- package/dist/composed/error-boundary.js +1 -0
- package/dist/composed/global-loading.d.ts +1 -0
- package/dist/composed/global-loading.js +1 -0
- package/dist/composed/index.d.ts +15 -0
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +1 -0
- package/dist/composed/lib/string-utils.d.ts +1 -0
- package/dist/composed/lib/string-utils.js +1 -0
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/member-picker.d.ts +1 -0
- package/dist/composed/member-picker.js +1 -0
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/priority-indicator.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.d.ts +1 -0
- package/dist/composed/rich-text-editor.js +1 -0
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +10 -0
- package/dist/hooks/use-color-mode.d.ts +1 -0
- package/dist/hooks/use-color-mode.js +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +1 -0
- package/dist/hooks/use-toast.d.ts +1 -0
- package/dist/hooks/use-toast.js +1 -0
- package/dist/primitives/react-accordion.d.ts +114 -0
- package/dist/primitives/react-alert-dialog.d.ts +51 -0
- package/dist/primitives/react-aspect-ratio.d.ts +11 -0
- package/dist/primitives/react-avatar.d.ts +24 -0
- package/dist/primitives/react-checkbox.d.ts +50 -0
- package/dist/primitives/react-collapsible.d.ts +33 -0
- package/dist/primitives/react-context-menu.d.ts +96 -0
- package/dist/primitives/react-dialog.d.ts +103 -0
- package/dist/primitives/react-dropdown-menu.d.ts +97 -0
- package/dist/primitives/react-hover-card.d.ts +79 -0
- package/dist/primitives/react-label.d.ts +10 -0
- package/dist/primitives/react-menu.d.ts +169 -0
- package/dist/primitives/react-menubar.d.ts +115 -0
- package/dist/primitives/react-navigation-menu.d.ts +126 -0
- package/dist/primitives/react-popover.d.ts +85 -0
- package/dist/primitives/react-progress.d.ts +19 -0
- package/dist/primitives/react-radio-group.d.ts +58 -0
- package/dist/primitives/react-roving-focus.d.ts +49 -0
- package/dist/primitives/react-select.d.ts +137 -0
- package/dist/primitives/react-separator.d.ts +21 -0
- package/dist/primitives/react-slider.d.ts +75 -0
- package/dist/primitives/react-switch.d.ts +21 -0
- package/dist/primitives/react-tabs.d.ts +56 -0
- package/dist/primitives/react-toast.d.ts +120 -0
- package/dist/primitives/react-toggle-group.d.ts +75 -0
- package/dist/primitives/react-toggle.d.ts +24 -0
- package/dist/primitives/react-tooltip.d.ts +101 -0
- package/dist/primitives/react-visually-hidden.d.ts +22 -0
- package/dist/shell/app-command-palette.d.ts +1 -0
- package/dist/shell/app-command-palette.js +1 -0
- package/dist/shell/bottom-navbar.d.ts +1 -0
- package/dist/shell/bottom-navbar.js +1 -0
- package/dist/shell/index.d.ts +11 -0
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +1 -0
- package/dist/shell/link-context.d.ts +1 -0
- package/dist/shell/link-context.js +1 -0
- package/dist/shell/notification-center.d.ts +1 -0
- package/dist/shell/notification-center.js +1 -0
- package/dist/shell/notification-preferences.d.ts +1 -0
- package/dist/shell/notification-preferences.js +1 -0
- package/dist/shell/sidebar.d.ts +1 -0
- package/dist/shell/sidebar.js +1 -0
- package/dist/shell/top-bar.d.ts +1 -0
- package/dist/shell/top-bar.js +1 -0
- package/dist/ui/accordion.d.ts +2 -1
- package/dist/ui/accordion.js +1 -0
- package/dist/ui/alert-dialog.d.ts +2 -1
- package/dist/ui/alert-dialog.js +1 -0
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.js +1 -0
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.js +1 -0
- package/dist/ui/autocomplete.d.ts +1 -0
- package/dist/ui/autocomplete.js +1 -0
- package/dist/ui/avatar.d.ts +2 -1
- package/dist/ui/avatar.js +1 -0
- package/dist/ui/badge.d.ts +1 -0
- package/dist/ui/badge.js +1 -0
- package/dist/ui/banner.d.ts +1 -0
- package/dist/ui/banner.js +1 -0
- package/dist/ui/breadcrumb.d.ts +1 -0
- package/dist/ui/breadcrumb.js +1 -0
- package/dist/ui/button-group.d.ts +1 -0
- package/dist/ui/button-group.js +1 -0
- package/dist/ui/button.d.ts +1 -0
- package/dist/ui/button.js +1 -0
- package/dist/ui/card.d.ts +1 -0
- package/dist/ui/card.js +1 -0
- package/dist/ui/charts/_internal/animation.d.ts +1 -0
- package/dist/ui/charts/_internal/animation.js +1 -0
- package/dist/ui/charts/_internal/axes.d.ts +1 -0
- package/dist/ui/charts/_internal/axes.js +1 -0
- package/dist/ui/charts/_internal/colors.d.ts +1 -0
- package/dist/ui/charts/_internal/colors.js +1 -0
- package/dist/ui/charts/_internal/grid-lines.d.ts +1 -0
- package/dist/ui/charts/_internal/grid-lines.js +1 -0
- package/dist/ui/charts/_internal/legend.d.ts +1 -0
- package/dist/ui/charts/_internal/legend.js +1 -0
- package/dist/ui/charts/_internal/scales.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.d.ts +1 -0
- package/dist/ui/charts/_internal/tooltip.js +1 -0
- package/dist/ui/charts/_internal/types.d.ts +1 -0
- package/dist/ui/charts/_internal/types.js +1 -0
- package/dist/ui/charts/area-chart.d.ts +1 -0
- package/dist/ui/charts/area-chart.js +1 -0
- package/dist/ui/charts/bar-chart.d.ts +1 -0
- package/dist/ui/charts/bar-chart.js +1 -0
- package/dist/ui/charts/chart-container.d.ts +1 -0
- package/dist/ui/charts/chart-container.js +1 -0
- package/dist/ui/charts/gauge-chart.d.ts +1 -0
- package/dist/ui/charts/gauge-chart.js +1 -0
- package/dist/ui/charts/index.d.ts +1 -0
- package/dist/ui/charts/line-chart.d.ts +1 -0
- package/dist/ui/charts/line-chart.js +1 -0
- package/dist/ui/charts/pie-chart.d.ts +1 -0
- package/dist/ui/charts/pie-chart.js +1 -0
- package/dist/ui/charts/radar-chart.d.ts +1 -0
- package/dist/ui/charts/radar-chart.js +1 -0
- package/dist/ui/charts/sparkline.d.ts +1 -0
- package/dist/ui/charts/sparkline.js +1 -0
- package/dist/ui/checkbox.d.ts +2 -1
- package/dist/ui/checkbox.js +1 -0
- package/dist/ui/chip.d.ts +1 -0
- package/dist/ui/chip.js +1 -0
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +2 -1
- package/dist/ui/collapsible.js +1 -0
- package/dist/ui/combobox.d.ts +1 -0
- package/dist/ui/combobox.js +1 -0
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/context-menu.d.ts +2 -1
- package/dist/ui/context-menu.js +1 -0
- package/dist/ui/data-table-toolbar.d.ts +1 -0
- package/dist/ui/data-table-toolbar.js +1 -0
- package/dist/ui/data-table.d.ts +1 -0
- package/dist/ui/data-table.js +1 -0
- package/dist/ui/dialog.d.ts +2 -1
- package/dist/ui/dialog.js +1 -0
- package/dist/ui/dropdown-menu.d.ts +2 -1
- package/dist/ui/dropdown-menu.js +1 -0
- package/dist/ui/file-upload.d.ts +1 -0
- package/dist/ui/file-upload.js +1 -0
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.js +1 -0
- package/dist/ui/hover-card.d.ts +2 -1
- package/dist/ui/hover-card.js +1 -0
- package/dist/ui/icon-button.d.ts +1 -0
- package/dist/ui/icon-button.js +1 -0
- package/dist/ui/index.d.ts +18 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/input-otp.d.ts +1 -0
- package/dist/ui/input-otp.js +1 -0
- package/dist/ui/input.d.ts +2 -1
- package/dist/ui/input.js +1 -0
- package/dist/ui/label.d.ts +2 -1
- package/dist/ui/label.js +1 -0
- package/dist/ui/lib/slot.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.d.ts +1 -0
- package/dist/ui/lib/use-reduced-motion.js +1 -0
- package/dist/ui/lib/use-ripple.d.ts +1 -0
- package/dist/ui/lib/use-ripple.js +1 -0
- package/dist/ui/link.d.ts +1 -0
- package/dist/ui/link.js +1 -0
- package/dist/ui/menubar.d.ts +2 -1
- package/dist/ui/menubar.js +1 -0
- package/dist/ui/navigation-menu.d.ts +2 -1
- package/dist/ui/navigation-menu.js +1 -0
- package/dist/ui/number-input.d.ts +1 -0
- package/dist/ui/number-input.js +1 -0
- package/dist/ui/pagination.d.ts +1 -0
- package/dist/ui/pagination.js +1 -0
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.js +1 -0
- package/dist/ui/progress.d.ts +2 -1
- package/dist/ui/progress.js +1 -0
- package/dist/ui/radio.d.ts +2 -1
- package/dist/ui/radio.js +1 -0
- package/dist/ui/search-input.d.ts +6 -5
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +2 -1
- package/dist/ui/segmented-control.d.ts +1 -0
- package/dist/ui/segmented-control.js +1 -0
- package/dist/ui/select.d.ts +2 -1
- package/dist/ui/select.js +1 -0
- package/dist/ui/separator.d.ts +2 -1
- package/dist/ui/separator.js +1 -0
- package/dist/ui/sheet.d.ts +2 -1
- package/dist/ui/sheet.js +1 -0
- package/dist/ui/sidebar.d.ts +1 -0
- package/dist/ui/sidebar.js +1 -0
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/slider.d.ts +2 -1
- package/dist/ui/slider.js +1 -0
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/stack.d.ts +2 -2
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +21 -16
- package/dist/ui/stat-card.d.ts +4 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +22 -21
- package/dist/ui/stepper.d.ts +1 -0
- package/dist/ui/stepper.js +1 -0
- package/dist/ui/switch.d.ts +2 -1
- package/dist/ui/switch.js +1 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +2 -1
- package/dist/ui/tabs.js +1 -0
- package/dist/ui/text.d.ts +1 -1
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts +1 -0
- package/dist/ui/textarea.js +1 -0
- package/dist/ui/toast.d.ts +2 -1
- package/dist/ui/toast.js +1 -0
- package/dist/ui/toaster.d.ts +1 -0
- package/dist/ui/toaster.js +1 -0
- package/dist/ui/toggle-group.d.ts +2 -1
- package/dist/ui/toggle-group.js +1 -0
- package/dist/ui/toggle.d.ts +2 -1
- package/dist/ui/toggle.js +1 -0
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.js +1 -0
- package/dist/ui/transitions.d.ts +1 -0
- package/dist/ui/transitions.js +1 -0
- package/dist/ui/tree-view/index.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.d.ts +1 -0
- package/dist/ui/tree-view/tree-item.js +1 -0
- package/dist/ui/tree-view/tree-view.d.ts +1 -0
- package/dist/ui/tree-view/tree-view.js +1 -0
- package/dist/ui/tree-view/use-tree.d.ts +1 -0
- package/dist/ui/tree-view/use-tree.js +1 -0
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/package.json +97 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-card.d.ts","sourceRoot":"","sources":["../../src/composed/content-card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content-card.d.ts","sourceRoot":"","sources":["../../src/composed/content-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,mBAAmB;;;8EAwBxB,CAAA;AAkBD,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAC1C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,QAAA,MAAM,WAAW,yFAqEhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
3
|
import * as g from "react";
|
|
3
4
|
import { startOfMonth as v, endOfMonth as S, startOfWeek as V, endOfWeek as X, addDays as f, subMonths as Z, format as m, addMonths as _, isSameMonth as D, isSameDay as y, lastDayOfMonth as H, isBefore as k, startOfDay as W, isAfter as M, isWithinInterval as T } from "date-fns";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/composed/empty-state.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/composed/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAG7D,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,UAAU,wFA+Df,CAAA;AAGD,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/composed/index.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
/**
|
|
3
|
+
* @module @devalok/shilp-sutra/composed
|
|
4
|
+
*
|
|
5
|
+
* Higher-level composed components built from UI primitives: page headers, date pickers,
|
|
6
|
+
* rich text editors, skeleton loaders, and domain-specific patterns.
|
|
7
|
+
*
|
|
8
|
+
* **Server-safe components** (import individually for Server Components):
|
|
9
|
+
* `ContentCard`, `EmptyState`, `PageHeader`, `LoadingSkeleton`, `PageSkeletons`,
|
|
10
|
+
* `PriorityIndicator`, `StatusBadge`
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* import { PageHeader } from '@devalok/shilp-sutra/composed/page-header'
|
|
14
|
+
* import { DatePicker } from '@devalok/shilp-sutra/composed/date-picker'
|
|
15
|
+
*/
|
|
1
16
|
export { PageHeader } from './page-header';
|
|
2
17
|
export type { PageHeaderProps, Breadcrumb } from './page-header';
|
|
3
18
|
export { ContentCard, contentCardVariants } from './content-card';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/L,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composed/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,YAAY,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE5E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAElF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACpJ,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/L,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC7F,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtH,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEvF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/composed/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loading-skeleton.d.ts","sourceRoot":"","sources":["../../src/composed/loading-skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,YAAY,0FA0BjB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,QAAA,MAAM,aAAa,2FAkDlB,CAAA;AAID,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,QAAA,MAAM,aAAa,2FA+ClB,CAAA;AAID,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,YAAY,0FA6BjB,CAAA;AAID,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/composed/page-header.tsx"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-skeletons.d.ts","sourceRoot":"","sources":["../../src/composed/page-skeletons.tsx"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priority-indicator.d.ts","sourceRoot":"","sources":["../../src/composed/priority-indicator.tsx"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../src/composed/status-badge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status-badge.d.ts","sourceRoot":"","sources":["../../src/composed/status-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,mBAAmB;;;8EAwBxB,CAAA;AAaD,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,EAC7D,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,WAAW,0FA0BhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAA"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useColorMode as r } from "./use-color-mode.js";
|
|
3
|
+
import { useIsMobile as t } from "./use-mobile.js";
|
|
4
|
+
import { toast as m, useToast as p } from "./use-toast.js";
|
|
5
|
+
export {
|
|
6
|
+
m as toast,
|
|
7
|
+
r as useColorMode,
|
|
8
|
+
t as useIsMobile,
|
|
9
|
+
p as useToast
|
|
10
|
+
};
|
package/dist/hooks/use-mobile.js
CHANGED
package/dist/hooks/use-toast.js
CHANGED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
import * as CollapsiblePrimitive from './react-collapsible';
|
|
5
|
+
|
|
6
|
+
type Direction = 'ltr' | 'rtl';
|
|
7
|
+
declare const createAccordionScope: _radix_ui_react_context.CreateScope;
|
|
8
|
+
interface AccordionSingleProps extends AccordionImplSingleProps {
|
|
9
|
+
type: 'single';
|
|
10
|
+
}
|
|
11
|
+
interface AccordionMultipleProps extends AccordionImplMultipleProps {
|
|
12
|
+
type: 'multiple';
|
|
13
|
+
}
|
|
14
|
+
declare const Accordion: React.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
interface AccordionImplSingleProps extends AccordionImplProps {
|
|
16
|
+
/**
|
|
17
|
+
* The controlled stateful value of the accordion item whose content is expanded.
|
|
18
|
+
*/
|
|
19
|
+
value?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the item whose content is expanded when the accordion is initially rendered. Use
|
|
22
|
+
* `defaultValue` if you do not need to control the state of an accordion.
|
|
23
|
+
*/
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The callback that fires when the state of the accordion changes.
|
|
27
|
+
*/
|
|
28
|
+
onValueChange?(value: string): void;
|
|
29
|
+
/**
|
|
30
|
+
* Whether an accordion item can be collapsed after it has been opened.
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
33
|
+
collapsible?: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface AccordionImplMultipleProps extends AccordionImplProps {
|
|
36
|
+
/**
|
|
37
|
+
* The controlled stateful value of the accordion items whose contents are expanded.
|
|
38
|
+
*/
|
|
39
|
+
value?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* The value of the items whose contents are expanded when the accordion is initially rendered. Use
|
|
42
|
+
* `defaultValue` if you do not need to control the state of an accordion.
|
|
43
|
+
*/
|
|
44
|
+
defaultValue?: string[];
|
|
45
|
+
/**
|
|
46
|
+
* The callback that fires when the state of the accordion changes.
|
|
47
|
+
*/
|
|
48
|
+
onValueChange?(value: string[]): void;
|
|
49
|
+
}
|
|
50
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
51
|
+
interface AccordionImplProps extends PrimitiveDivProps {
|
|
52
|
+
/**
|
|
53
|
+
* Whether or not an accordion is disabled from user interaction.
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue false
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The layout in which the Accordion operates.
|
|
60
|
+
* @default vertical
|
|
61
|
+
*/
|
|
62
|
+
orientation?: React.AriaAttributes['aria-orientation'];
|
|
63
|
+
/**
|
|
64
|
+
* The language read direction.
|
|
65
|
+
*/
|
|
66
|
+
dir?: Direction;
|
|
67
|
+
}
|
|
68
|
+
type CollapsibleProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Root>;
|
|
69
|
+
interface AccordionItemProps extends Omit<CollapsibleProps, 'open' | 'defaultOpen' | 'onOpenChange'> {
|
|
70
|
+
/**
|
|
71
|
+
* Whether or not an accordion item is disabled from user interaction.
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue false
|
|
74
|
+
*/
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* A string value for the accordion item. All items within an accordion should use a unique value.
|
|
78
|
+
*/
|
|
79
|
+
value: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* `AccordionItem` contains all of the parts of a collapsible section inside of an `Accordion`.
|
|
83
|
+
*/
|
|
84
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
type PrimitiveHeading3Props = React.ComponentPropsWithoutRef<typeof Primitive.h3>;
|
|
86
|
+
interface AccordionHeaderProps extends PrimitiveHeading3Props {
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* `AccordionHeader` contains the content for the parts of an `AccordionItem` that will be visible
|
|
90
|
+
* whether or not its content is collapsed.
|
|
91
|
+
*/
|
|
92
|
+
declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
93
|
+
type CollapsibleTriggerProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Trigger>;
|
|
94
|
+
interface AccordionTriggerProps extends CollapsibleTriggerProps {
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `AccordionTrigger` is the trigger that toggles the collapsed state of an `AccordionItem`. It
|
|
98
|
+
* should always be nested inside of an `AccordionHeader`.
|
|
99
|
+
*/
|
|
100
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
101
|
+
type CollapsibleContentProps = React.ComponentPropsWithoutRef<typeof CollapsiblePrimitive.Content>;
|
|
102
|
+
interface AccordionContentProps extends CollapsibleContentProps {
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* `AccordionContent` contains the collapsible content for an `AccordionItem`.
|
|
106
|
+
*/
|
|
107
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
108
|
+
declare const Root: React.ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
109
|
+
declare const Item: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
110
|
+
declare const Header: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
111
|
+
declare const Trigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
112
|
+
declare const Content: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
113
|
+
|
|
114
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionMultipleProps, type AccordionSingleProps, AccordionTrigger, type AccordionTriggerProps, Content, Header, Item, Root, Trigger, createAccordionScope };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from './react-dialog';
|
|
4
|
+
|
|
5
|
+
declare const createAlertDialogScope: _radix_ui_react_context.CreateScope;
|
|
6
|
+
type DialogProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
|
|
7
|
+
interface AlertDialogProps extends Omit<DialogProps, 'modal'> {
|
|
8
|
+
}
|
|
9
|
+
declare const AlertDialog: React.FC<AlertDialogProps>;
|
|
10
|
+
type DialogTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
|
|
11
|
+
interface AlertDialogTriggerProps extends DialogTriggerProps {
|
|
12
|
+
}
|
|
13
|
+
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
type DialogPortalProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Portal>;
|
|
15
|
+
interface AlertDialogPortalProps extends DialogPortalProps {
|
|
16
|
+
}
|
|
17
|
+
declare const AlertDialogPortal: React.FC<AlertDialogPortalProps>;
|
|
18
|
+
type DialogOverlayProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
|
|
19
|
+
interface AlertDialogOverlayProps extends DialogOverlayProps {
|
|
20
|
+
}
|
|
21
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
type DialogContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
|
|
23
|
+
interface AlertDialogContentProps extends Omit<DialogContentProps, 'onPointerDownOutside' | 'onInteractOutside'> {
|
|
24
|
+
}
|
|
25
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
type DialogTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
|
|
27
|
+
interface AlertDialogTitleProps extends DialogTitleProps {
|
|
28
|
+
}
|
|
29
|
+
declare const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
30
|
+
type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
|
|
31
|
+
interface AlertDialogDescriptionProps extends DialogDescriptionProps {
|
|
32
|
+
}
|
|
33
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
34
|
+
type DialogCloseProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
|
|
35
|
+
interface AlertDialogActionProps extends DialogCloseProps {
|
|
36
|
+
}
|
|
37
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
38
|
+
interface AlertDialogCancelProps extends DialogCloseProps {
|
|
39
|
+
}
|
|
40
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
41
|
+
declare const Root: React.FC<AlertDialogProps>;
|
|
42
|
+
declare const Trigger: React.ForwardRefExoticComponent<AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
43
|
+
declare const Portal: React.FC<AlertDialogPortalProps>;
|
|
44
|
+
declare const Overlay: React.ForwardRefExoticComponent<AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const Content: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
declare const Action: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
47
|
+
declare const Cancel: React.ForwardRefExoticComponent<AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
declare const Title: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
49
|
+
declare const Description: React.ForwardRefExoticComponent<AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
50
|
+
|
|
51
|
+
export { Action, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, type AlertDialogPortalProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, Cancel, Content, Description, Overlay, Portal, Root, Title, Trigger, createAlertDialogScope };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Primitive } from './_internal/react-primitive';
|
|
3
|
+
|
|
4
|
+
type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
|
|
5
|
+
interface AspectRatioProps extends PrimitiveDivProps {
|
|
6
|
+
ratio?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const AspectRatio: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const Root: React.ForwardRefExoticComponent<AspectRatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export { AspectRatio, type AspectRatioProps, Root };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Primitive } from './_internal/react-primitive';
|
|
4
|
+
|
|
5
|
+
declare const createAvatarScope: _radix_ui_react_context.CreateScope;
|
|
6
|
+
type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
7
|
+
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
8
|
+
interface AvatarProps extends PrimitiveSpanProps {
|
|
9
|
+
}
|
|
10
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
type PrimitiveImageProps = React.ComponentPropsWithoutRef<typeof Primitive.img>;
|
|
12
|
+
interface AvatarImageProps extends PrimitiveImageProps {
|
|
13
|
+
onLoadingStatusChange?: (status: ImageLoadingStatus) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
16
|
+
interface AvatarFallbackProps extends PrimitiveSpanProps {
|
|
17
|
+
delayMs?: number;
|
|
18
|
+
}
|
|
19
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
declare const Root: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
declare const Image: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
22
|
+
declare const Fallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
|
|
24
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Fallback, Image, Root, createAvatarScope };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _radix_ui_react_context from './_internal/react-context';
|
|
3
|
+
import { Scope } from './_internal/react-context';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { Primitive } from './_internal/react-primitive';
|
|
6
|
+
|
|
7
|
+
type ScopedProps<P> = P & {
|
|
8
|
+
__scopeCheckbox?: Scope;
|
|
9
|
+
};
|
|
10
|
+
declare const createCheckboxScope: _radix_ui_react_context.CreateScope;
|
|
11
|
+
type CheckedState = boolean | 'indeterminate';
|
|
12
|
+
interface CheckboxProviderProps<State extends CheckedState = CheckedState> {
|
|
13
|
+
checked?: State | boolean;
|
|
14
|
+
defaultChecked?: State | boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
onCheckedChange?(checked: State | boolean): void;
|
|
17
|
+
name?: string;
|
|
18
|
+
form?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
value?: string | number | readonly string[];
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
declare function CheckboxProvider<State extends CheckedState = CheckedState>(props: ScopedProps<CheckboxProviderProps<State>>): react_jsx_runtime.JSX.Element;
|
|
24
|
+
interface CheckboxTriggerProps extends Omit<React.ComponentPropsWithoutRef<typeof Primitive.button>, keyof CheckboxProviderProps> {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare const CheckboxTrigger: React.ForwardRefExoticComponent<CheckboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
28
|
+
type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
|
|
29
|
+
interface CheckboxProps extends Omit<PrimitiveButtonProps, 'checked' | 'defaultChecked'> {
|
|
30
|
+
checked?: CheckedState;
|
|
31
|
+
defaultChecked?: CheckedState;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
onCheckedChange?(checked: CheckedState): void;
|
|
34
|
+
}
|
|
35
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
|
|
37
|
+
interface CheckboxIndicatorProps extends PrimitiveSpanProps {
|
|
38
|
+
/**
|
|
39
|
+
* Used to force mounting when more control is needed. Useful when
|
|
40
|
+
* controlling animation with React animation libraries.
|
|
41
|
+
*/
|
|
42
|
+
forceMount?: true;
|
|
43
|
+
}
|
|
44
|
+
declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
45
|
+
type InputProps = React.ComponentPropsWithoutRef<typeof Primitive.input>;
|
|
46
|
+
interface CheckboxBubbleInputProps extends Omit<InputProps, 'checked'> {
|
|
47
|
+
}
|
|
48
|
+
declare const CheckboxBubbleInput: React.ForwardRefExoticComponent<CheckboxBubbleInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
49
|
+
|
|
50
|
+
export { Checkbox, CheckboxIndicator, type CheckboxIndicatorProps, type CheckboxProps, type CheckedState, CheckboxIndicator as Indicator, Checkbox as Root, createCheckboxScope, CheckboxBubbleInput as unstable_BubbleInput, CheckboxBubbleInput as unstable_CheckboxBubbleInput, type CheckboxBubbleInputProps as unstable_CheckboxBubbleInputProps, CheckboxProvider as unstable_CheckboxProvider, type CheckboxProviderProps as unstable_CheckboxProviderProps, CheckboxTrigger as unstable_CheckboxTrigger, type CheckboxTriggerProps as unstable_CheckboxTriggerProps, CheckboxProvider as unstable_Provider, CheckboxTrigger as unstable_Trigger };
|