@devalok/shilp-sutra 0.30.0 → 0.32.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/README.md +82 -239
- package/dist/_chunks/badge-group.js +123 -171
- package/dist/_chunks/document-preview.js +92 -0
- package/dist/_chunks/file-preview.js +511 -0
- package/dist/_chunks/image-preview.js +90 -0
- package/dist/_chunks/primitives.js +109 -109
- package/dist/_chunks/stat-row.js +144 -124
- package/dist/_chunks/use-calendar.js +558 -490
- package/dist/ai/block-renderer.d.ts +2 -1
- package/dist/ai/block-renderer.d.ts.map +1 -1
- package/dist/ai/block-renderer.js +30 -29
- package/dist/ai/blocks/block-table.d.ts.map +1 -1
- package/dist/ai/blocks/confirm.d.ts.map +1 -1
- package/dist/ai/blocks/divider.d.ts.map +1 -1
- package/dist/ai/blocks/error.d.ts.map +1 -1
- package/dist/ai/blocks/info.d.ts.map +1 -1
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/blocks/stat-row.d.ts.map +1 -1
- package/dist/ai/blocks/success.d.ts.map +1 -1
- package/dist/ai/blocks/text.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts +18 -0
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +126 -125
- package/dist/ai/conversation.d.ts +13 -1
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +78 -78
- package/dist/ai/types.d.ts +0 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +1 -0
- package/dist/composed/bulk-action-bar.d.ts +6 -4
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +102 -58
- package/dist/composed/command-palette.d.ts +9 -0
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +68 -68
- package/dist/composed/confirm-dialog.d.ts +1 -1
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +10 -10
- package/dist/composed/content-card.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +11 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +39 -36
- package/dist/composed/emoji-picker.d.ts +6 -0
- package/dist/composed/emoji-picker.d.ts.map +1 -1
- package/dist/composed/emoji-picker.js +22 -20
- package/dist/composed/error-boundary.d.ts +21 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +47 -32
- package/dist/composed/file-preview/audio-preview.d.ts +7 -0
- package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/document-preview.d.ts +7 -0
- package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/embed-preview.d.ts +7 -0
- package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/image-preview.d.ts +7 -0
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/shared.d.ts +20 -0
- package/dist/composed/file-preview/shared.d.ts.map +1 -0
- package/dist/composed/file-preview/video-preview.d.ts +6 -0
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +10 -662
- package/dist/composed/filter-bar.d.ts +10 -2
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +42 -43
- package/dist/composed/form-section.d.ts +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +22 -21
- package/dist/composed/index.d.ts +2 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +58 -57
- package/dist/composed/inline-edit.d.ts +1 -1
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +33 -32
- package/dist/composed/lib/string-utils.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.d.ts +1 -1
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +60 -59
- package/dist/composed/master-detail.d.ts +11 -7
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +123 -84
- 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 +1 -0
- package/dist/composed/priority-indicator.js +1 -0
- package/dist/composed/responsive-overlay.d.ts +8 -0
- package/dist/composed/responsive-overlay.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.d.ts +11 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +21 -20
- package/dist/composed/schedule-view.d.ts +9 -1
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -4
- package/dist/hooks/use-touch-device.d.ts +12 -0
- package/dist/hooks/use-touch-device.d.ts.map +1 -0
- package/dist/hooks/use-touch-device.js +13 -0
- package/dist/hooks/use-viewport-height.d.ts +11 -0
- package/dist/hooks/use-viewport-height.d.ts.map +1 -0
- package/dist/hooks/use-viewport-height.js +16 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +72 -63
- package/dist/shell/command-registry.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +77 -77
- package/dist/shell/top-bar.d.ts +2 -2
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +61 -60
- package/dist/tailwind/index.cjs +51 -7
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +51 -7
- package/dist/tokens/primitives.css +3 -1
- package/dist/tokens/semantic.css +16 -13
- package/dist/tokens/typography.css +33 -4
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +42 -37
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +38 -39
- package/dist/ui/badge.d.ts +110 -2
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +8 -7
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +54 -74
- package/dist/ui/card.d.ts +5 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +111 -79
- package/dist/ui/charts/area-chart.d.ts +2 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +2 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/index.js +583 -577
- package/dist/ui/charts/line-chart.d.ts +2 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +2 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +36 -27
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/color-input.js +5 -5
- package/dist/ui/combobox.d.ts +6 -1
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/data-table-body.d.ts +12 -0
- package/dist/ui/data-table-body.d.ts.map +1 -0
- package/dist/ui/data-table-body.js +219 -0
- package/dist/ui/data-table-bulk-actions.d.ts +19 -0
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
- package/dist/ui/data-table-bulk-actions.js +61 -0
- package/dist/ui/data-table-card.d.ts +9 -0
- package/dist/ui/data-table-card.d.ts.map +1 -0
- package/dist/ui/data-table-card.js +73 -0
- package/dist/ui/data-table-context.d.ts +62 -0
- package/dist/ui/data-table-context.d.ts.map +1 -0
- package/dist/ui/data-table-context.js +48 -0
- package/dist/ui/data-table-header.d.ts +10 -0
- package/dist/ui/data-table-header.d.ts.map +1 -0
- package/dist/ui/data-table-header.js +141 -0
- package/dist/ui/data-table-pagination.d.ts +13 -0
- package/dist/ui/data-table-pagination.d.ts.map +1 -0
- package/dist/ui/data-table-pagination.js +84 -0
- package/dist/ui/data-table.d.ts +11 -9
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +258 -573
- package/dist/ui/dialog.d.ts +6 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +84 -82
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/icon-group.d.ts +2 -4
- package/dist/ui/icon-group.d.ts.map +1 -1
- package/dist/ui/icon-group.js +22 -23
- package/dist/ui/index.d.ts +1 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +94 -99
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/bottom-sheet.d.ts +16 -0
- package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -1
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/utils.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +64 -73
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +40 -44
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +19 -17
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +107 -32
- package/dist/ui/progress-ring.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +80 -80
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.d.ts +5 -2
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +29 -20
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +13 -12
- package/dist/ui/segmented-control.d.ts +6 -108
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +86 -272
- package/dist/ui/select.d.ts +3 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +83 -71
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +102 -84
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +200 -175
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/slider.js +14 -14
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/status-dot.js +8 -8
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +33 -31
- package/dist/ui/switch.js +3 -3
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +102 -76
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/toast-types.d.ts +0 -1
- package/dist/ui/toast-types.d.ts.map +1 -1
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +156 -150
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +3 -3
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/docs/components/ui/alert.md +3 -0
- package/docs/components/ui/badge.md +3 -0
- package/docs/components/ui/card.md +4 -0
- package/docs/components/ui/data-table-body.md +13 -0
- package/docs/components/ui/data-table-bulk-actions.md +13 -0
- package/docs/components/ui/data-table-card.md +13 -0
- package/docs/components/ui/data-table-context.md +13 -0
- package/docs/components/ui/data-table-header.md +13 -0
- package/docs/components/ui/data-table-pagination.md +13 -0
- package/docs/components/ui/select.md +4 -0
- package/docs/components/ui/tabs.md +4 -0
- package/llms-full.txt +97 -48
- package/llms.txt +46 -1
- package/package.json +37 -7
- package/dist/ui/chip.d.ts +0 -19
- package/dist/ui/chip.d.ts.map +0 -1
- package/dist/ui/chip.js +0 -14
- package/dist/ui/lib/use-ripple.d.ts +0 -14
- package/dist/ui/lib/use-ripple.d.ts.map +0 -1
package/dist/ui/toggle.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aH as e } from "../_chunks/primitives.js";
|
|
5
5
|
import { a as d } from "../_chunks/vendor-utils.js";
|
|
6
6
|
import { springs as m, motionProps as c } from "./lib/motion.js";
|
|
7
7
|
import { cn as f } from "./lib/utils.js";
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e, Fragment as h } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { aK as y, aL as f, aM as C, aN as u, aO as g } from "../_chunks/primitives.js";
|
|
5
5
|
import { cn as P } from "./lib/utils.js";
|
|
6
6
|
import { tweens as T, springs as O } from "./lib/motion.js";
|
|
7
7
|
import { A as N, m as b } from "../_chunks/framer.js";
|
|
@@ -27,7 +27,7 @@ const m = o.createContext({ open: !1 }), M = ({
|
|
|
27
27
|
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(m.Provider, { value: x, children: /* @__PURE__ */ e(g, { open: n, onOpenChange: v, ...a }) }) });
|
|
28
28
|
};
|
|
29
29
|
M.displayName = "Tooltip";
|
|
30
|
-
const
|
|
30
|
+
const K = C, A = {
|
|
31
31
|
top: { y: 4 },
|
|
32
32
|
bottom: { y: -4 },
|
|
33
33
|
left: { x: 4 },
|
|
@@ -65,5 +65,5 @@ export {
|
|
|
65
65
|
M as Tooltip,
|
|
66
66
|
R as TooltipContent,
|
|
67
67
|
F as TooltipProvider,
|
|
68
|
-
|
|
68
|
+
K as TooltipTrigger
|
|
69
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../src/ui/visually-hidden.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../src/ui/visually-hidden.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;CAAG;AAElD,QAAA,MAAM,cAAc,6FAInB,CAAA;AAGD,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
- Icon is auto-selected by color (info=circle, success=check, warning=triangle, error=alert)
|
|
29
29
|
|
|
30
30
|
## Changes
|
|
31
|
+
### v0.31.0
|
|
32
|
+
- **Added** `size` prop: `sm | md | lg`. Default `md` (non-breaking).
|
|
33
|
+
|
|
31
34
|
### v0.18.0
|
|
32
35
|
- **Changed** Exit animation migrated to Framer Motion
|
|
33
36
|
- **Fixed** `onDismiss` JSDoc documenting it fires after exit animation completes
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
- `color="custom"` requires `--badge-color` CSS variable (and optionally `--badge-fg-color` for solid variant)
|
|
44
44
|
|
|
45
45
|
## Changes
|
|
46
|
+
### v0.31.0
|
|
47
|
+
- **Added** `truncate` prop — enables ellipsis truncation without requiring maxWidth
|
|
48
|
+
|
|
46
49
|
### v0.29.0
|
|
47
50
|
- **Changed** (BREAKING) v2 rewrite — Badge is now a full interactive component
|
|
48
51
|
- **Added** `soft` variant (tinted bg, no border — completes the 4-variant set: subtle/solid/outline/soft)
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
- Use `interactive` prop for clickable cards — adds hover lift and pointer cursor
|
|
35
35
|
|
|
36
36
|
## Changes
|
|
37
|
+
### v0.31.0
|
|
38
|
+
- **Added** `color` prop: semantic border color (accent, error, success, warning, info, neutral)
|
|
39
|
+
- **Added** `size` prop: `sm | md | lg` — padding propagated to sub-components via React context
|
|
40
|
+
|
|
37
41
|
### v0.18.0
|
|
38
42
|
- **Changed** Interactive card hover lift animation migrated to Framer Motion
|
|
39
43
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
2
|
+
|
|
3
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
8
|
+
See [DataTable](./data-table.md) for the public API.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
### v0.32.0
|
|
13
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
- `<Select size="lg">` is silently ignored (no TypeScript error)
|
|
40
40
|
|
|
41
41
|
## Changes
|
|
42
|
+
### v0.31.0
|
|
43
|
+
- **Added** `variant` prop on SelectTrigger: `default | outline | ghost`
|
|
44
|
+
- **Added** `color` prop on SelectTrigger: `default | error | success | warning`. Sets `aria-invalid` when error.
|
|
45
|
+
|
|
42
46
|
### v0.15.0
|
|
43
47
|
- **Changed** `lg` size font changed from `text-ds-lg` (18px) to `text-ds-md` (14px) — all input sizes now use 14px for consistency
|
|
44
48
|
|
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
- Normally omit `variant` on TabsTrigger — it inherits from TabsList via context. You CAN set it per-trigger to override.
|
|
47
47
|
|
|
48
48
|
## Changes
|
|
49
|
+
### v0.31.0
|
|
50
|
+
- **Added** `size` prop on TabsList: `sm | md | lg`. Scales height and trigger padding.
|
|
51
|
+
- **Added** `color` prop on TabsList: `accent | neutral`. Affects line variant indicator.
|
|
52
|
+
|
|
49
53
|
### v0.18.0
|
|
50
54
|
- **Fixed** Wrapped TabsList context provider value in `useMemo` for performance
|
|
51
55
|
|
package/llms-full.txt
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
> All variant values and props verified from source CVA definitions.
|
|
6
6
|
>
|
|
7
7
|
> Package: @devalok/shilp-sutra
|
|
8
|
-
> Version: 0.
|
|
8
|
+
> Version: 0.32.0
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -173,6 +173,9 @@ Note: getFormFieldA11y() was removed in favor of useFormField() hook.
|
|
|
173
173
|
- Icon is auto-selected by color (info=circle, success=check, warning=triangle, error=alert)
|
|
174
174
|
|
|
175
175
|
## Changes
|
|
176
|
+
### v0.31.0
|
|
177
|
+
- **Added** `size` prop: `sm | md | lg`. Default `md` (non-breaking).
|
|
178
|
+
|
|
176
179
|
### v0.18.0
|
|
177
180
|
- **Changed** Exit animation migrated to Framer Motion
|
|
178
181
|
- **Fixed** `onDismiss` JSDoc documenting it fires after exit animation completes
|
|
@@ -421,6 +424,9 @@ Note: getFormFieldA11y() was removed in favor of useFormField() hook.
|
|
|
421
424
|
- `color="custom"` requires `--badge-color` CSS variable (and optionally `--badge-fg-color` for solid variant)
|
|
422
425
|
|
|
423
426
|
## Changes
|
|
427
|
+
### v0.31.0
|
|
428
|
+
- **Added** `truncate` prop — enables ellipsis truncation without requiring maxWidth
|
|
429
|
+
|
|
424
430
|
### v0.29.0
|
|
425
431
|
- **Changed** (BREAKING) v2 rewrite — Badge is now a full interactive component
|
|
426
432
|
- **Added** `soft` variant (tinted bg, no border — completes the 4-variant set: subtle/solid/outline/soft)
|
|
@@ -784,6 +790,10 @@ See `Button` docs for the public API.
|
|
|
784
790
|
- Use `interactive` prop for clickable cards — adds hover lift and pointer cursor
|
|
785
791
|
|
|
786
792
|
## Changes
|
|
793
|
+
### v0.31.0
|
|
794
|
+
- **Added** `color` prop: semantic border color (accent, error, success, warning, info, neutral)
|
|
795
|
+
- **Added** `size` prop: `sm | md | lg` — padding propagated to sub-components via React context
|
|
796
|
+
|
|
787
797
|
### v0.18.0
|
|
788
798
|
- **Changed** Interactive card hover lift animation migrated to Framer Motion
|
|
789
799
|
|
|
@@ -1087,53 +1097,6 @@ Animated bouncing dots with a text description of who is typing.
|
|
|
1087
1097
|
- **Changed** Bouncy check indicator animation migrated to Framer Motion
|
|
1088
1098
|
- **Fixed** Icon sizing uses design tokens consistently
|
|
1089
1099
|
|
|
1090
|
-
### v0.1.0
|
|
1091
|
-
- **Added** Initial release
|
|
1092
|
-
# Chip
|
|
1093
|
-
|
|
1094
|
-
- Import: @devalok/shilp-sutra/ui/chip
|
|
1095
|
-
- Server-safe: No
|
|
1096
|
-
- Category: ui
|
|
1097
|
-
|
|
1098
|
-
## Props
|
|
1099
|
-
label: string (REQUIRED — use this, NOT children)
|
|
1100
|
-
variant: "subtle" | "outline"
|
|
1101
|
-
color: "default" | "primary" | "success" | "error" | "warning" | "info" | "teal" | "amber" | "slate" | "indigo" | "cyan" | "orange" | "emerald"
|
|
1102
|
-
size: "sm" | "md" | "lg"
|
|
1103
|
-
icon: ReactNode
|
|
1104
|
-
onClick: MouseEventHandler (renders as <button> when provided)
|
|
1105
|
-
onDismiss: () => void (shows X button)
|
|
1106
|
-
disabled: boolean
|
|
1107
|
-
|
|
1108
|
-
## Defaults
|
|
1109
|
-
variant="subtle", size="md", color="default"
|
|
1110
|
-
|
|
1111
|
-
## Example
|
|
1112
|
-
```jsx
|
|
1113
|
-
<Chip label="In Progress" color="warning" />
|
|
1114
|
-
<Chip label="React" color="info" onDismiss={() => removeFilter('react')} />
|
|
1115
|
-
```
|
|
1116
|
-
|
|
1117
|
-
## Additional Exports
|
|
1118
|
-
ChipGroup — re-exported AnimatePresence from framer-motion; wrap a list of Chips for coordinated exit animations
|
|
1119
|
-
|
|
1120
|
-
## Gotchas
|
|
1121
|
-
- MUST use label prop — children are NOT rendered
|
|
1122
|
-
- `<Chip>text</Chip>` is WRONG — use `<Chip label="text" />`
|
|
1123
|
-
- Wrap dynamic chip lists in `<ChipGroup>` for exit animations
|
|
1124
|
-
- `color="primary"` will be renamed to `color="brand"` in v1.0 — use `color="primary"` for now
|
|
1125
|
-
|
|
1126
|
-
## Changes
|
|
1127
|
-
### v0.19.1
|
|
1128
|
-
- **Fixed** `active:scale-95` tap feedback broken by Framer Motion transform override — replaced with `whileTap={{ scale: 0.95 }}`
|
|
1129
|
-
|
|
1130
|
-
### v0.4.2
|
|
1131
|
-
- **Changed** (BREAKING) `variant="filled"` renamed to `"subtle"`, `variant="outlined"` renamed to `"outline"`, `onDelete` renamed to `onDismiss`
|
|
1132
|
-
|
|
1133
|
-
### v0.1.1
|
|
1134
|
-
- **Fixed** `opacity-[var(--action-disabled-opacity,0.38)]` replaced with `opacity-action-disabled`
|
|
1135
|
-
- **Fixed** Converted from `React.createElement` to JSX syntax
|
|
1136
|
-
|
|
1137
1100
|
### v0.1.0
|
|
1138
1101
|
- **Added** Initial release
|
|
1139
1102
|
# Code
|
|
@@ -1537,6 +1500,84 @@ import { DataTable } from '@devalok/shilp-sutra/ui/data-table'
|
|
|
1537
1500
|
|
|
1538
1501
|
### v0.1.0
|
|
1539
1502
|
- **Added** Initial release
|
|
1503
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1504
|
+
|
|
1505
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1506
|
+
|
|
1507
|
+
## Usage
|
|
1508
|
+
|
|
1509
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1510
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1511
|
+
|
|
1512
|
+
## Changes
|
|
1513
|
+
|
|
1514
|
+
### v0.32.0
|
|
1515
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1516
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1517
|
+
|
|
1518
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1519
|
+
|
|
1520
|
+
## Usage
|
|
1521
|
+
|
|
1522
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1523
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1524
|
+
|
|
1525
|
+
## Changes
|
|
1526
|
+
|
|
1527
|
+
### v0.32.0
|
|
1528
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1529
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1530
|
+
|
|
1531
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1532
|
+
|
|
1533
|
+
## Usage
|
|
1534
|
+
|
|
1535
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1536
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1537
|
+
|
|
1538
|
+
## Changes
|
|
1539
|
+
|
|
1540
|
+
### v0.32.0
|
|
1541
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1542
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1543
|
+
|
|
1544
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1545
|
+
|
|
1546
|
+
## Usage
|
|
1547
|
+
|
|
1548
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1549
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1550
|
+
|
|
1551
|
+
## Changes
|
|
1552
|
+
|
|
1553
|
+
### v0.32.0
|
|
1554
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1555
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1556
|
+
|
|
1557
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1558
|
+
|
|
1559
|
+
## Usage
|
|
1560
|
+
|
|
1561
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1562
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1563
|
+
|
|
1564
|
+
## Changes
|
|
1565
|
+
|
|
1566
|
+
### v0.32.0
|
|
1567
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1568
|
+
# $(echo $f | sed 's/-/ /g' | sed 's/\b\(.\)/\u\1/g')
|
|
1569
|
+
|
|
1570
|
+
> Internal sub-component of DataTable. Not exported to consumers.
|
|
1571
|
+
|
|
1572
|
+
## Usage
|
|
1573
|
+
|
|
1574
|
+
This component is used internally by `<DataTable>` and should not be imported directly.
|
|
1575
|
+
See [DataTable](./data-table.md) for the public API.
|
|
1576
|
+
|
|
1577
|
+
## Changes
|
|
1578
|
+
|
|
1579
|
+
### v0.32.0
|
|
1580
|
+
- Extracted from DataTable monolith into focused sub-component.
|
|
1540
1581
|
# DataTableToolbar
|
|
1541
1582
|
|
|
1542
1583
|
- Import: @devalok/shilp-sutra/ui/data-table-toolbar
|
|
@@ -2650,6 +2691,10 @@ const { size, stroke } = useIconContext()
|
|
|
2650
2691
|
- `<Select size="lg">` is silently ignored (no TypeScript error)
|
|
2651
2692
|
|
|
2652
2693
|
## Changes
|
|
2694
|
+
### v0.31.0
|
|
2695
|
+
- **Added** `variant` prop on SelectTrigger: `default | outline | ghost`
|
|
2696
|
+
- **Added** `color` prop on SelectTrigger: `default | error | success | warning`. Sets `aria-invalid` when error.
|
|
2697
|
+
|
|
2653
2698
|
### v0.15.0
|
|
2654
2699
|
- **Changed** `lg` size font changed from `text-ds-lg` (18px) to `text-ds-md` (14px) — all input sizes now use 14px for consistency
|
|
2655
2700
|
|
|
@@ -3286,6 +3331,10 @@ const { size, stroke } = useIconContext()
|
|
|
3286
3331
|
- Normally omit `variant` on TabsTrigger — it inherits from TabsList via context. You CAN set it per-trigger to override.
|
|
3287
3332
|
|
|
3288
3333
|
## Changes
|
|
3334
|
+
### v0.31.0
|
|
3335
|
+
- **Added** `size` prop on TabsList: `sm | md | lg`. Scales height and trigger padding.
|
|
3336
|
+
- **Added** `color` prop on TabsList: `accent | neutral`. Affects line variant indicator.
|
|
3337
|
+
|
|
3289
3338
|
### v0.18.0
|
|
3290
3339
|
- **Fixed** Wrapped TabsList context provider value in `useMemo` for performance
|
|
3291
3340
|
|
package/llms.txt
CHANGED
|
@@ -4,6 +4,51 @@
|
|
|
4
4
|
> Built on the same primitives as shadcn/ui but with key API differences.
|
|
5
5
|
> Read this file BEFORE writing any UI code. Do NOT guess from shadcn/ui knowledge.
|
|
6
6
|
|
|
7
|
+
## BREAKING CHANGES (v0.32.0)
|
|
8
|
+
|
|
9
|
+
- **Button:** `variant="default"` removed (use `"solid"`), `variant="destructive"` removed (use `variant="solid" color="error"`), `color="default"` removed (use `"accent"`).
|
|
10
|
+
- **Chip:** Removed. Use `Badge` instead.
|
|
11
|
+
- **SegmentedControl:** Rewritten. `variant="filled"` → `"accent"`, `variant="tonal"` → `"default"`. `SegmentedControlItem` no longer exported. Legacy sizes `small`/`medium`/`big` removed.
|
|
12
|
+
- **TopBar:** Now renders as `<header>` (was `<div>`).
|
|
13
|
+
- **Sidebar:** Now renders as `<aside>` (was `<div>`).
|
|
14
|
+
- **InfoBlock:** `role="status"` (was `role="alert"`).
|
|
15
|
+
- **Border tokens:** One step darker system-wide.
|
|
16
|
+
- **Dark mode button text:** Pure white `neutral-0` (#fff) on brand-colored buttons.
|
|
17
|
+
- **BottomNavbar:** Bottom padding is now `pb-safe` (safe-area-inset).
|
|
18
|
+
- **ResponsiveOverlay:** Deprecated. Use Dialog or Sheet directly.
|
|
19
|
+
- **iOS inputs:** Forced to `font-size: max(16px, 1em)` on mobile via preset.
|
|
20
|
+
|
|
21
|
+
## CHANGES (v0.32.0)
|
|
22
|
+
|
|
23
|
+
- **Mobile Responsiveness:**
|
|
24
|
+
- Dialog auto-fullScreens on mobile (<768px). Opt out: `<DialogContent responsive={false}>`.
|
|
25
|
+
- Sheet auto-bottom with swipe-to-dismiss on mobile. Drag handle, 30% threshold. Opt out: `<SheetContent responsive={false}>`.
|
|
26
|
+
- Popover renders as bottom drawer on mobile automatically.
|
|
27
|
+
- `.touch-target` utility — 44px invisible hit area for Apple HIG compliance.
|
|
28
|
+
- `.pt-safe`, `.pb-safe`, `.pl-safe`, `.pr-safe`, `.p-safe` — safe area inset utilities.
|
|
29
|
+
- `useTouchDevice()` — detects touch capability (vs viewport width).
|
|
30
|
+
- `useViewportHeight()` — dynamic viewport height via Visual Viewport API.
|
|
31
|
+
- Sidebar has swipe-to-close on mobile.
|
|
32
|
+
- **DataTable `mobileView="card"`** — Rows render as stacked cards below 640px. First column = card title, rest = label-value pairs.
|
|
33
|
+
- **DataTable `aria-sort`** — Sortable column headers include `aria-sort`.
|
|
34
|
+
- **Charts `ariaLabel` prop** — Configurable screen reader label on all chart components.
|
|
35
|
+
- **SegmentedControl** — Redesigned: `variant="default"` (white pill + shadow-sm) | `variant="accent"` (brand pill). Inset radius, snappy spring animation.
|
|
36
|
+
- **`--shadow-kbd` token** — Keyboard shortcut badge shadow. Use `shadow-kbd` utility.
|
|
37
|
+
- **Checkbox/Radio `size` prop** — `sm | md (default) | lg`.
|
|
38
|
+
|
|
39
|
+
## CHANGES (v0.31.0)
|
|
40
|
+
- **Alert `size` prop** — `sm | md (default) | lg`. Scales padding, gap, icon, text.
|
|
41
|
+
- **Card `color` prop** — `default | accent | error | success | warning | info | neutral`. Semantic border color.
|
|
42
|
+
- **Card `size` prop** — `sm | md (default) | lg`. Propagated to sub-components via context.
|
|
43
|
+
- **Select `variant` prop** — `default | outline | ghost` on SelectTrigger.
|
|
44
|
+
- **Select `color` prop** — `default | error | success | warning` on SelectTrigger. Sets `aria-invalid` when error.
|
|
45
|
+
- **Tabs `color` prop** — `accent (default) | neutral`. Affects line variant indicator.
|
|
46
|
+
- **Tabs `size` prop** — `sm | md (default) | lg`. Scales height and padding.
|
|
47
|
+
- **Badge `truncate` prop** — Enables ellipsis truncation. Combine with fixed width or `maxWidth`.
|
|
48
|
+
- **New subpath exports** — `./ui/icon`, `./ui/icon-context`, `./ui/icon-group`, `./ui/badge-group`, `./ui/badge-indicator`, `./ui/devalok-grain`, `./ai/types`.
|
|
49
|
+
- **Server-safe fix** — `empty-state`, `priority-indicator`, `status-badge` now correctly get `"use client"` (were incorrectly omitted).
|
|
50
|
+
- **Server-safe detection** — Hardcoded allowlist replaced with `// @server-safe` source annotations.
|
|
51
|
+
|
|
7
52
|
## CHANGES (v0.30.0)
|
|
8
53
|
- **RichTextEditor `toolbar` prop** — `toolbar?: ToolbarItem[]` whitelist of toolbar items to display. Omit to show all (default). `ToolbarItem` type exported.
|
|
9
54
|
- **`@devalok/shilp-sutra-karm` removed** — Domain components moved to Karm app repo. npm package deprecated.
|
|
@@ -106,7 +151,7 @@ Same pattern for `border-surface-*`, `text-surface-*`, `ring-surface-*`.
|
|
|
106
151
|
|
|
107
152
|
**Button `onClickAsync`:** New prop `onClickAsync?: (e) => Promise<void>` — auto-manages loading → success/error → idle states. `asyncFeedbackDuration?: number` (default 1500ms).
|
|
108
153
|
|
|
109
|
-
**Server safety changes:** EmptyState, StatusBadge, Spinner are
|
|
154
|
+
**Server safety changes:** EmptyState, StatusBadge, PriorityIndicator, Spinner are NOT server-safe (they use Framer Motion). Do NOT import from RSC.
|
|
110
155
|
|
|
111
156
|
**Build:** `framer-motion` and `sonner` moved from `dependencies` to `devDependencies` (bundled at build time — no consumer install needed for core).
|
|
112
157
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devalok/shilp-sutra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Devalok Design System — tokens, components, and patterns for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -58,6 +58,16 @@
|
|
|
58
58
|
"default": "./dist/ui/badge.js",
|
|
59
59
|
"types": "./dist/ui/badge.d.ts"
|
|
60
60
|
},
|
|
61
|
+
"./ui/badge-group": {
|
|
62
|
+
"import": "./dist/ui/badge-group.js",
|
|
63
|
+
"default": "./dist/ui/badge-group.js",
|
|
64
|
+
"types": "./dist/ui/badge-group.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./ui/badge-indicator": {
|
|
67
|
+
"import": "./dist/ui/badge-indicator.js",
|
|
68
|
+
"default": "./dist/ui/badge-indicator.js",
|
|
69
|
+
"types": "./dist/ui/badge-indicator.d.ts"
|
|
70
|
+
},
|
|
61
71
|
"./ui/banner": {
|
|
62
72
|
"import": "./dist/ui/banner.js",
|
|
63
73
|
"default": "./dist/ui/banner.js",
|
|
@@ -93,11 +103,6 @@
|
|
|
93
103
|
"default": "./dist/ui/color-swatch.js",
|
|
94
104
|
"types": "./dist/ui/color-swatch.d.ts"
|
|
95
105
|
},
|
|
96
|
-
"./ui/chip": {
|
|
97
|
-
"import": "./dist/ui/chip.js",
|
|
98
|
-
"default": "./dist/ui/chip.js",
|
|
99
|
-
"types": "./dist/ui/chip.d.ts"
|
|
100
|
-
},
|
|
101
106
|
"./ui/code": {
|
|
102
107
|
"import": "./dist/ui/code.js",
|
|
103
108
|
"default": "./dist/ui/code.js",
|
|
@@ -143,6 +148,11 @@
|
|
|
143
148
|
"default": "./dist/ui/dialog.js",
|
|
144
149
|
"types": "./dist/ui/dialog.d.ts"
|
|
145
150
|
},
|
|
151
|
+
"./ui/devalok-grain": {
|
|
152
|
+
"import": "./dist/ui/devalok-grain.js",
|
|
153
|
+
"default": "./dist/ui/devalok-grain.js",
|
|
154
|
+
"types": "./dist/ui/devalok-grain.d.ts"
|
|
155
|
+
},
|
|
146
156
|
"./ui/dropdown-menu": {
|
|
147
157
|
"import": "./dist/ui/dropdown-menu.js",
|
|
148
158
|
"default": "./dist/ui/dropdown-menu.js",
|
|
@@ -163,11 +173,26 @@
|
|
|
163
173
|
"default": "./dist/ui/hover-card.js",
|
|
164
174
|
"types": "./dist/ui/hover-card.d.ts"
|
|
165
175
|
},
|
|
176
|
+
"./ui/icon": {
|
|
177
|
+
"import": "./dist/ui/icon.js",
|
|
178
|
+
"default": "./dist/ui/icon.js",
|
|
179
|
+
"types": "./dist/ui/icon.d.ts"
|
|
180
|
+
},
|
|
166
181
|
"./ui/icon-button": {
|
|
167
182
|
"import": "./dist/ui/icon-button.js",
|
|
168
183
|
"default": "./dist/ui/icon-button.js",
|
|
169
184
|
"types": "./dist/ui/icon-button.d.ts"
|
|
170
185
|
},
|
|
186
|
+
"./ui/icon-context": {
|
|
187
|
+
"import": "./dist/ui/icon-context.js",
|
|
188
|
+
"default": "./dist/ui/icon-context.js",
|
|
189
|
+
"types": "./dist/ui/icon-context.d.ts"
|
|
190
|
+
},
|
|
191
|
+
"./ui/icon-group": {
|
|
192
|
+
"import": "./dist/ui/icon-group.js",
|
|
193
|
+
"default": "./dist/ui/icon-group.js",
|
|
194
|
+
"types": "./dist/ui/icon-group.d.ts"
|
|
195
|
+
},
|
|
171
196
|
"./ui/input": {
|
|
172
197
|
"import": "./dist/ui/input.js",
|
|
173
198
|
"default": "./dist/ui/input.js",
|
|
@@ -661,6 +686,11 @@
|
|
|
661
686
|
"default": "./dist/ai/blocks/index.js",
|
|
662
687
|
"types": "./dist/ai/blocks/index.d.ts"
|
|
663
688
|
},
|
|
689
|
+
"./ai/types": {
|
|
690
|
+
"import": "./dist/ai/types.js",
|
|
691
|
+
"default": "./dist/ai/types.js",
|
|
692
|
+
"types": "./dist/ai/types.d.ts"
|
|
693
|
+
},
|
|
664
694
|
"./docs/*": "./docs/components/*"
|
|
665
695
|
},
|
|
666
696
|
"files": [
|
|
@@ -672,7 +702,7 @@
|
|
|
672
702
|
"llms-full.txt"
|
|
673
703
|
],
|
|
674
704
|
"scripts": {
|
|
675
|
-
"build": "vite build &&
|
|
705
|
+
"build": "vite build && node scripts/post-build.mjs",
|
|
676
706
|
"build:tokens": "node scripts/copy-tokens.mjs",
|
|
677
707
|
"build:docs": "node scripts/build-component-docs.mjs",
|
|
678
708
|
"build:docs:check": "node scripts/build-component-docs.mjs --check",
|
package/dist/ui/chip.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { BadgeProps } from './badge';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Use `<Badge onClick={...}>` instead of `<Chip>`.
|
|
6
|
-
* This wrapper maps the old Chip API (label prop) to Badge (children).
|
|
7
|
-
*/
|
|
8
|
-
interface ChipProps extends Omit<BadgeProps, 'children'> {
|
|
9
|
-
label: string;
|
|
10
|
-
icon?: React.ReactElement | null;
|
|
11
|
-
}
|
|
12
|
-
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use `<Badge.Group>` for overflow. For exit animations, wrap in `<AnimatePresence>`.
|
|
15
|
-
*/
|
|
16
|
-
declare const ChipGroup: ({ children, custom, initial, onExitComplete, presenceAffectsLayout, mode, propagate, anchorX, anchorY, root }: React.PropsWithChildren<import('framer-motion').AnimatePresenceProps>) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
-
export { Chip, ChipGroup };
|
|
18
|
-
export type { ChipProps };
|
|
19
|
-
//# sourceMappingURL=chip.d.ts.map
|
package/dist/ui/chip.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../src/ui/chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC;;;GAGG;AACH,UAAU,SAAU,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IACtD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAA;CACjC;AAED,QAAA,MAAM,IAAI,+EAMT,CAAA;AAGD;;GAEG;AACH,QAAA,MAAM,SAAS,0OAAkB,CAAA;AAEjC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;AAC1B,YAAY,EAAE,SAAS,EAAE,CAAA"}
|
package/dist/ui/chip.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import * as t from "react";
|
|
4
|
-
import { B as a } from "../_chunks/badge-group.js";
|
|
5
|
-
import { A as e } from "../_chunks/framer.js";
|
|
6
|
-
const s = t.forwardRef(
|
|
7
|
-
({ label: o, icon: r, ...i }, m) => /* @__PURE__ */ p(a, { ref: m, startIcon: r ?? void 0, ...i, children: o })
|
|
8
|
-
);
|
|
9
|
-
s.displayName = "Chip";
|
|
10
|
-
const f = e;
|
|
11
|
-
export {
|
|
12
|
-
s as Chip,
|
|
13
|
-
f as ChipGroup
|
|
14
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { MouseEvent } from 'react';
|
|
3
|
-
interface Ripple {
|
|
4
|
-
id: number;
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
size: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function useRipple(duration?: number): {
|
|
10
|
-
ripples: Ripple[];
|
|
11
|
-
createRipple: (e: MouseEvent<HTMLElement>) => void;
|
|
12
|
-
};
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=use-ripple.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-ripple.d.ts","sourceRoot":"","sources":["../../../src/ui/lib/use-ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,UAAU,EAAE,MAAM,OAAO,CAAA;AAEjF,UAAU,MAAM;IACd,EAAE,EAAE,MAAM,CAAA;IACV,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,IAAI,EAAE,MAAM,CAAA;CACb;AAED,wBAAgB,SAAS,CAAC,QAAQ,SAAM;;sBAQD,UAAU,CAAC,WAAW,CAAC;EAgB7D"}
|