@devalok/shilp-sutra 0.17.2 → 0.18.1
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/_chunks/framer.js +1376 -0
- package/dist/_chunks/link-context.js +19 -0
- package/dist/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +3499 -3920
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/tree-view.js +183 -181
- package/dist/_chunks/use-calendar.js +531 -515
- package/dist/_chunks/vendor-client.js +1792 -1049
- package/dist/_chunks/vendor-utils.js +5123 -1169
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +75 -78
- package/dist/composed/avatar-group.js +33 -33
- package/dist/composed/command-palette.d.ts +1 -1
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +207 -158
- package/dist/composed/confirm-dialog.d.ts +3 -5
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +47 -42
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +30 -30
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/presets.d.ts +1 -1
- package/dist/composed/date-picker/presets.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/empty-state.d.ts +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +51 -47
- package/dist/composed/error-boundary.d.ts +1 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +48 -48
- package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
- package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
- package/dist/composed/global-loading.d.ts +1 -1
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +22 -19
- package/dist/composed/index.d.ts +2 -4
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +26 -29
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.d.ts +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +92 -87
- package/dist/composed/member-picker.d.ts +1 -1
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +47 -43
- package/dist/composed/page-header.js +36 -36
- package/dist/composed/page-skeletons.d.ts +9 -3
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/page-skeletons.js +58 -58
- package/dist/composed/priority-indicator.js +24 -24
- package/dist/composed/rich-text-editor.d.ts +3 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +317 -310
- package/dist/composed/schedule-view.js +84 -84
- package/dist/composed/simple-tooltip.d.ts +2 -5
- package/dist/composed/simple-tooltip.d.ts.map +1 -1
- package/dist/composed/simple-tooltip.js +19 -14
- package/dist/composed/status-badge.d.ts +2 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +81 -68
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -4
- package/dist/hooks/use-toast.d.ts +15 -45
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +2 -95
- package/dist/motion/index.d.ts +4 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +12 -0
- package/dist/motion/motion-provider.d.ts +18 -0
- package/dist/motion/motion-provider.d.ts.map +1 -0
- package/dist/motion/primitives-index.d.ts +3 -0
- package/dist/motion/primitives-index.d.ts.map +1 -0
- package/dist/motion/primitives-index.js +187 -0
- package/dist/motion/primitives.d.ts +38 -0
- package/dist/motion/primitives.d.ts.map +1 -0
- package/dist/shell/app-command-palette.d.ts +14 -5
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +152 -130
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +90 -92
- package/dist/shell/command-registry.d.ts +23 -0
- package/dist/shell/command-registry.d.ts.map +1 -0
- package/dist/shell/command-registry.js +18 -0
- package/dist/shell/index.d.ts +2 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +14 -11
- package/dist/shell/link-context.d.ts +6 -10
- package/dist/shell/link-context.d.ts.map +1 -1
- package/dist/shell/link-context.js +3 -16
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +129 -124
- package/dist/shell/notification-preferences.d.ts +10 -5
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +169 -165
- package/dist/shell/sidebar.js +104 -104
- package/dist/shell/top-bar.js +67 -67
- package/dist/tailwind/index.cjs +118 -297
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +118 -297
- package/dist/tokens/generate-scale.d.ts +86 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -0
- package/dist/tokens/primitives.css +415 -187
- package/dist/tokens/semantic.css +244 -270
- package/dist/tokens/typography.css +6 -6
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +34 -24
- package/dist/ui/alert-dialog.d.ts +4 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +115 -74
- package/dist/ui/alert.d.ts +6 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +65 -50
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +14 -4
- package/dist/ui/autocomplete.d.ts +11 -2
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +85 -60
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +46 -35
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +72 -67
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +54 -40
- package/dist/ui/breadcrumb.d.ts +2 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +19 -19
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +102 -66
- package/dist/ui/card.d.ts +2 -2
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +61 -53
- package/dist/ui/charts/_internal/animation.d.ts +1 -1
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
- package/dist/ui/charts/area-chart.d.ts +3 -5
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +3 -5
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -5
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/gauge-chart.d.ts +3 -5
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
- package/dist/ui/charts/index.js +1204 -1095
- package/dist/ui/charts/line-chart.d.ts +3 -5
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -5
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +3 -5
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/sparkline.d.ts +5 -5
- package/dist/ui/charts/sparkline.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +31 -19
- package/dist/ui/chip.d.ts +3 -2
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +58 -50
- package/dist/ui/code.js +16 -16
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +23 -15
- package/dist/ui/color-input.d.ts +1 -1
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +27 -27
- package/dist/ui/combobox.d.ts +2 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +177 -166
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.d.ts +4 -2
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +147 -87
- package/dist/ui/data-table-toolbar.d.ts +3 -2
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +65 -63
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +275 -240
- package/dist/ui/dialog.d.ts +3 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +114 -74
- package/dist/ui/dropdown-menu.d.ts +5 -3
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +151 -90
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +170 -128
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +30 -27
- package/dist/ui/hover-card.d.ts +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +53 -21
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.d.ts +18 -18
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +322 -533
- package/dist/ui/input-otp.d.ts +2 -0
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +8 -8
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +35 -33
- package/dist/ui/label.js +12 -12
- package/dist/ui/lib/date-utils.d.ts +5 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.js +12 -0
- package/dist/ui/lib/index.d.ts +7 -0
- package/dist/ui/lib/index.d.ts.map +1 -0
- package/dist/ui/lib/link-context.d.ts +13 -0
- package/dist/ui/lib/link-context.d.ts.map +1 -0
- package/dist/ui/lib/motion.d.ts +44 -9
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +34 -0
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +11 -11
- package/dist/ui/menubar.d.ts +4 -2
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +142 -98
- package/dist/ui/navigation-menu.d.ts +2 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +176 -73
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +58 -51
- package/dist/ui/pagination.js +23 -23
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +54 -22
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +58 -42
- package/dist/ui/radio.js +15 -15
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -33
- package/dist/ui/segmented-control.d.ts +4 -2
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +146 -123
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +75 -64
- package/dist/ui/separator.js +12 -12
- package/dist/ui/sheet.d.ts +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +111 -75
- package/dist/ui/sidebar.d.ts +6 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +574 -36
- package/dist/ui/skeleton.js +2 -2
- package/dist/ui/slider.d.ts +9 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +33 -27
- package/dist/ui/spinner.d.ts +32 -25
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +199 -40
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +181 -114
- package/dist/ui/stepper.d.ts +23 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +126 -48
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +39 -26
- package/dist/ui/table.d.ts +3 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +29 -29
- package/dist/ui/tabs.d.ts +4 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +94 -44
- package/dist/ui/text.d.ts +3 -3
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +27 -25
- package/dist/ui/toast-types.d.ts +43 -0
- package/dist/ui/toast-types.d.ts.map +1 -0
- package/dist/ui/toast-types.js +2 -0
- package/dist/ui/toast.d.ts +60 -26
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +535 -89
- package/dist/ui/toaster.d.ts +19 -23
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +31 -21
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +29 -26
- package/dist/ui/toggle.d.ts +2 -2
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +21 -17
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +58 -21
- package/dist/ui/tree-view/tree-view.d.ts +1 -1
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3440 -1528
- package/llms.txt +67 -14
- package/package.json +50 -9
- package/dist/_chunks/avatar.js +0 -50
- package/dist/_chunks/button.js +0 -95
- package/dist/_chunks/checkbox.js +0 -14
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -592
- package/dist/_chunks/spinner.js +0 -34
- package/dist/_chunks/switch.js +0 -10
- package/dist/_chunks/tooltip.js +0 -13
- package/dist/_chunks/utils.js +0 -17
- package/dist/composed/upload-progress.d.ts +0 -33
- package/dist/composed/upload-progress.d.ts.map +0 -1
- package/dist/composed/upload-progress.js +0 -386
- package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
- package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/transitions.d.ts +0 -17
- package/dist/ui/transitions.d.ts.map +0 -1
- package/dist/ui/transitions.js +0 -111
package/dist/ui/number-input.js
CHANGED
|
@@ -1,78 +1,85 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { IconMinus as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
2
|
+
import { jsxs as y, jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import * as v from "react";
|
|
4
|
+
import { IconMinus as E, IconPlus as j } from "@tabler/icons-react";
|
|
5
|
+
import { cn as M } from "./lib/utils.js";
|
|
6
|
+
import { useFormField as k } from "./form.js";
|
|
7
|
+
const D = v.forwardRef(
|
|
8
8
|
({
|
|
9
|
-
value:
|
|
9
|
+
value: s = 0,
|
|
10
10
|
onValueChange: e,
|
|
11
|
-
min:
|
|
12
|
-
max:
|
|
13
|
-
step:
|
|
14
|
-
disabled:
|
|
15
|
-
className:
|
|
16
|
-
"aria-label":
|
|
17
|
-
...
|
|
11
|
+
min: r = Number.MIN_SAFE_INTEGER,
|
|
12
|
+
max: d = Number.MAX_SAFE_INTEGER,
|
|
13
|
+
step: o = 1,
|
|
14
|
+
disabled: m = !1,
|
|
15
|
+
className: n,
|
|
16
|
+
"aria-label": l,
|
|
17
|
+
...b
|
|
18
18
|
}, p) => {
|
|
19
|
-
const
|
|
20
|
-
const t =
|
|
21
|
-
t
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
const f = k(), u = l ?? (b.id || f.helperTextId ? void 0 : "Numeric value"), N = (c) => {
|
|
20
|
+
const t = c.target.value.trim();
|
|
21
|
+
if (t === "" || t === "-") {
|
|
22
|
+
e == null || e(r >= 0 ? r : 0);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
const a = Number(t);
|
|
26
|
+
if (Number.isNaN(a)) return;
|
|
27
|
+
const I = Math.min(Math.max(a, r), d);
|
|
28
|
+
e == null || e(I);
|
|
29
|
+
}, x = (c) => {
|
|
30
|
+
c.preventDefault();
|
|
31
|
+
const t = s + o;
|
|
32
|
+
t <= d && (e == null || e(t));
|
|
33
|
+
}, w = (c) => {
|
|
34
|
+
c.preventDefault();
|
|
35
|
+
const t = s - o;
|
|
36
|
+
t >= r && (e == null || e(t));
|
|
30
37
|
};
|
|
31
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ y(
|
|
32
39
|
"div",
|
|
33
40
|
{
|
|
34
|
-
className:
|
|
35
|
-
"flex items-center justify-between rounded-ds-full border border-border",
|
|
36
|
-
|
|
41
|
+
className: M(
|
|
42
|
+
"flex items-center justify-between rounded-ds-full border border-surface-border-strong",
|
|
43
|
+
n
|
|
37
44
|
),
|
|
38
45
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ i(
|
|
40
47
|
"button",
|
|
41
48
|
{
|
|
42
49
|
type: "button",
|
|
43
|
-
onClick:
|
|
44
|
-
disabled:
|
|
50
|
+
onClick: w,
|
|
51
|
+
disabled: m || s <= r,
|
|
45
52
|
"aria-label": "Decrease value",
|
|
46
|
-
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-
|
|
47
|
-
children: /* @__PURE__ */
|
|
53
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted",
|
|
54
|
+
children: /* @__PURE__ */ i(E, { className: "h-ico-sm w-ico-sm" })
|
|
48
55
|
}
|
|
49
56
|
),
|
|
50
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ i(
|
|
51
58
|
"input",
|
|
52
59
|
{
|
|
53
60
|
ref: p,
|
|
54
61
|
type: "number",
|
|
55
|
-
value:
|
|
56
|
-
onChange:
|
|
57
|
-
min:
|
|
58
|
-
max:
|
|
59
|
-
step:
|
|
60
|
-
disabled:
|
|
61
|
-
"aria-label":
|
|
62
|
-
"aria-describedby":
|
|
63
|
-
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-
|
|
64
|
-
...
|
|
62
|
+
value: s,
|
|
63
|
+
onChange: N,
|
|
64
|
+
min: r,
|
|
65
|
+
max: d,
|
|
66
|
+
step: o,
|
|
67
|
+
disabled: m,
|
|
68
|
+
"aria-label": u,
|
|
69
|
+
"aria-describedby": b["aria-describedby"] ?? f.helperTextId,
|
|
70
|
+
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
71
|
+
...b
|
|
65
72
|
}
|
|
66
73
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ i(
|
|
68
75
|
"button",
|
|
69
76
|
{
|
|
70
77
|
type: "button",
|
|
71
78
|
onClick: x,
|
|
72
|
-
disabled:
|
|
79
|
+
disabled: m || s >= d,
|
|
73
80
|
"aria-label": "Increase value",
|
|
74
|
-
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-
|
|
75
|
-
children: /* @__PURE__ */
|
|
81
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle transition-colors hover:text-surface-fg-muted",
|
|
82
|
+
children: /* @__PURE__ */ i(j, { className: "h-ico-sm w-ico-sm" })
|
|
76
83
|
}
|
|
77
84
|
)
|
|
78
85
|
]
|
|
@@ -80,7 +87,7 @@ const h = w.forwardRef(
|
|
|
80
87
|
);
|
|
81
88
|
}
|
|
82
89
|
);
|
|
83
|
-
|
|
90
|
+
D.displayName = "NumberInput";
|
|
84
91
|
export {
|
|
85
|
-
|
|
92
|
+
D as NumberInput
|
|
86
93
|
};
|
package/dist/ui/pagination.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import { S as
|
|
4
|
+
import { S as R } from "../_chunks/primitives.js";
|
|
5
5
|
import { IconChevronLeft as j, IconChevronRight as k, IconDots as C } from "@tabler/icons-react";
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
6
|
+
import { cn as r } from "./lib/utils.js";
|
|
7
|
+
const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
|
|
8
8
|
"nav",
|
|
9
9
|
{
|
|
10
10
|
ref: s,
|
|
@@ -14,8 +14,8 @@ const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
|
|
|
14
14
|
...i
|
|
15
15
|
}
|
|
16
16
|
));
|
|
17
|
-
|
|
18
|
-
const
|
|
17
|
+
w.displayName = "PaginationRoot";
|
|
18
|
+
const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
|
|
19
19
|
"ul",
|
|
20
20
|
{
|
|
21
21
|
ref: s,
|
|
@@ -23,18 +23,18 @@ const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
|
|
|
23
23
|
...i
|
|
24
24
|
}
|
|
25
25
|
));
|
|
26
|
-
|
|
26
|
+
x.displayName = "PaginationContent";
|
|
27
27
|
const f = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a("li", { ref: s, className: r("", e), ...i }));
|
|
28
28
|
f.displayName = "PaginationItem";
|
|
29
29
|
const u = o.forwardRef(
|
|
30
30
|
({ className: e, isActive: i = !1, asChild: s = !1, ...c }, t) => /* @__PURE__ */ a(
|
|
31
|
-
s ?
|
|
31
|
+
s ? R : "button",
|
|
32
32
|
{
|
|
33
33
|
ref: t,
|
|
34
34
|
"aria-current": i ? "page" : void 0,
|
|
35
35
|
className: r(
|
|
36
|
-
"inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
37
|
-
i ? "bg-
|
|
36
|
+
"inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
37
|
+
i ? "bg-accent-9 text-accent-fg" : "hover:bg-surface-3 text-surface-fg",
|
|
38
38
|
e
|
|
39
39
|
),
|
|
40
40
|
...c
|
|
@@ -42,7 +42,7 @@ const u = o.forwardRef(
|
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
44
|
u.displayName = "PaginationLink";
|
|
45
|
-
const
|
|
45
|
+
const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
|
|
46
46
|
u,
|
|
47
47
|
{
|
|
48
48
|
ref: s,
|
|
@@ -55,8 +55,8 @@ const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
|
-
|
|
59
|
-
const
|
|
58
|
+
v.displayName = "PaginationPrevious";
|
|
59
|
+
const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
|
|
60
60
|
u,
|
|
61
61
|
{
|
|
62
62
|
ref: s,
|
|
@@ -69,14 +69,14 @@ const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
|
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
));
|
|
72
|
-
|
|
72
|
+
y.displayName = "PaginationNext";
|
|
73
73
|
const P = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
|
|
74
74
|
"span",
|
|
75
75
|
{
|
|
76
76
|
ref: s,
|
|
77
77
|
"aria-hidden": "true",
|
|
78
78
|
className: r(
|
|
79
|
-
"flex h-ds-sm-plus w-ds-sm-plus items-center justify-center text-
|
|
79
|
+
"flex h-ds-sm-plus w-ds-sm-plus items-center justify-center text-surface-fg-muted",
|
|
80
80
|
e
|
|
81
81
|
),
|
|
82
82
|
...i,
|
|
@@ -94,13 +94,13 @@ function I(e, i, s) {
|
|
|
94
94
|
const t = Math.max(e - s, 1), d = Math.min(e + s, i), p = t > 2, h = d < i - 1;
|
|
95
95
|
if (!p && h) {
|
|
96
96
|
const n = s * 2 + 3;
|
|
97
|
-
return [...Array.from({ length: n }, (
|
|
97
|
+
return [...Array.from({ length: n }, (b, N) => N + 1), "ellipsis", i];
|
|
98
98
|
}
|
|
99
99
|
if (p && !h) {
|
|
100
100
|
const n = s * 2 + 3;
|
|
101
101
|
return [1, "ellipsis", ...Array.from(
|
|
102
102
|
{ length: n },
|
|
103
|
-
(
|
|
103
|
+
(b, N) => i - n + 1 + N
|
|
104
104
|
)];
|
|
105
105
|
}
|
|
106
106
|
return [1, "ellipsis", ...Array.from(
|
|
@@ -118,9 +118,9 @@ const M = o.forwardRef(
|
|
|
118
118
|
...d
|
|
119
119
|
}, p) => {
|
|
120
120
|
const h = I(i, e, c);
|
|
121
|
-
return /* @__PURE__ */ a(
|
|
121
|
+
return /* @__PURE__ */ a(w, { ref: p, className: t, ...d, children: /* @__PURE__ */ g(x, { children: [
|
|
122
122
|
/* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
|
|
123
|
-
|
|
123
|
+
v,
|
|
124
124
|
{
|
|
125
125
|
onClick: () => s(Math.max(1, i - 1)),
|
|
126
126
|
disabled: i <= 1
|
|
@@ -137,7 +137,7 @@ const M = o.forwardRef(
|
|
|
137
137
|
) }, l)
|
|
138
138
|
),
|
|
139
139
|
/* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
|
|
140
|
-
|
|
140
|
+
y,
|
|
141
141
|
{
|
|
142
142
|
onClick: () => s(Math.min(e, i + 1)),
|
|
143
143
|
disabled: i >= e
|
|
@@ -148,13 +148,13 @@ const M = o.forwardRef(
|
|
|
148
148
|
);
|
|
149
149
|
M.displayName = "PaginationNav";
|
|
150
150
|
export {
|
|
151
|
-
|
|
151
|
+
x as PaginationContent,
|
|
152
152
|
P as PaginationEllipsis,
|
|
153
153
|
f as PaginationItem,
|
|
154
154
|
u as PaginationLink,
|
|
155
155
|
M as PaginationNav,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
y as PaginationNext,
|
|
157
|
+
v as PaginationPrevious,
|
|
158
|
+
w as PaginationRoot,
|
|
159
159
|
I as generatePagination
|
|
160
160
|
};
|
package/dist/ui/popover.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as PopoverPrimitive from '../primitives/react-popover';
|
|
4
|
-
declare const Popover: React.FC<PopoverPrimitive.
|
|
4
|
+
declare const Popover: React.FC<React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>>;
|
|
5
5
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export type PopoverContentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;
|
|
8
9
|
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
9
10
|
//# sourceMappingURL=popover.d.ts.map
|
package/dist/ui/popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAU7D,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CAuBnF,CAAA;AAGD,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAmClB,CAAA;AAGF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAA;AAEjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/popover.js
CHANGED
|
@@ -1,25 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { P as u, d as l, c as P, b as v, aP as y } from "../_chunks/primitives.js";
|
|
5
|
+
import { cn as x } from "./lib/utils.js";
|
|
6
|
+
import { tweens as b, springs as g } from "./lib/motion.js";
|
|
7
|
+
import { A as h, m as C } from "../_chunks/framer.js";
|
|
8
|
+
const m = t.createContext(!1), w = ({
|
|
9
|
+
open: s,
|
|
10
|
+
defaultOpen: n = !1,
|
|
11
|
+
onOpenChange: o,
|
|
12
|
+
...a
|
|
13
|
+
}) => {
|
|
14
|
+
const [c, i] = t.useState(n), r = s !== void 0, p = r ? s : c, f = t.useCallback(
|
|
15
|
+
(d) => {
|
|
16
|
+
r || i(d), o == null || o(d);
|
|
17
|
+
},
|
|
18
|
+
[r, o]
|
|
19
|
+
);
|
|
20
|
+
return /* @__PURE__ */ e(m.Provider, { value: p, children: /* @__PURE__ */ e(v, { open: p, onOpenChange: f, ...a }) });
|
|
21
|
+
};
|
|
22
|
+
w.displayName = "Popover";
|
|
23
|
+
const k = P, z = y, A = t.forwardRef(({ className: s, align: n = "center", sideOffset: o = 4, children: a, ...c }, i) => {
|
|
24
|
+
const r = t.useContext(m);
|
|
25
|
+
return /* @__PURE__ */ e(h, { children: r && /* @__PURE__ */ e(u, { forceMount: !0, children: /* @__PURE__ */ e(
|
|
26
|
+
l,
|
|
27
|
+
{
|
|
28
|
+
ref: i,
|
|
29
|
+
align: n,
|
|
30
|
+
sideOffset: o,
|
|
31
|
+
forceMount: !0,
|
|
32
|
+
asChild: !0,
|
|
33
|
+
...c,
|
|
34
|
+
children: /* @__PURE__ */ e(
|
|
35
|
+
C.div,
|
|
36
|
+
{
|
|
37
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
38
|
+
animate: { opacity: 1, scale: 1 },
|
|
39
|
+
exit: { opacity: 0, scale: 0.95 },
|
|
40
|
+
transition: { ...g.snappy, opacity: b.fade },
|
|
41
|
+
className: x(
|
|
42
|
+
"z-popover w-72 rounded-ds-lg border border-surface-border-strong bg-surface-1 p-ds-05 text-surface-fg shadow-03 outline-none",
|
|
43
|
+
s
|
|
44
|
+
),
|
|
45
|
+
children: a
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
}
|
|
49
|
+
) }) });
|
|
50
|
+
});
|
|
51
|
+
A.displayName = l.displayName;
|
|
20
52
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
53
|
+
w as Popover,
|
|
54
|
+
z as PopoverAnchor,
|
|
55
|
+
A as PopoverContent,
|
|
56
|
+
k as PopoverTrigger
|
|
25
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AASjE,QAAA,MAAM,qBAAqB;;8EAY1B,CAAA;AAED,QAAA,MAAM,yBAAyB;;8EAa9B,CAAA;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,UAAU,aACR,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,OAAO,CACR,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAChD,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAMD,QAAA,MAAM,QAAQ,sFAyDb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/progress.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import { aQ as d, aR as l } from "../_chunks/primitives.js";
|
|
5
|
+
import { ag as c } from "../_chunks/vendor-utils.js";
|
|
6
|
+
import { cn as a } from "./lib/utils.js";
|
|
7
|
+
import { springs as x } from "./lib/motion.js";
|
|
8
|
+
import { m as w } from "../_chunks/framer.js";
|
|
9
|
+
const N = c(
|
|
10
|
+
"relative w-full overflow-hidden rounded-ds-full bg-surface-2",
|
|
9
11
|
{
|
|
10
12
|
variants: {
|
|
11
13
|
size: {
|
|
@@ -16,61 +18,75 @@ const x = o(
|
|
|
16
18
|
},
|
|
17
19
|
defaultVariants: { size: "md" }
|
|
18
20
|
}
|
|
19
|
-
),
|
|
21
|
+
), m = c(
|
|
20
22
|
"h-full w-full flex-1 transition-all duration-moderate-02 ease-expressive-standard",
|
|
21
23
|
{
|
|
22
24
|
variants: {
|
|
23
25
|
color: {
|
|
24
|
-
default: "bg-
|
|
25
|
-
success: "bg-success",
|
|
26
|
-
warning: "bg-warning",
|
|
27
|
-
error: "bg-error"
|
|
26
|
+
default: "bg-accent-9",
|
|
27
|
+
success: "bg-success-9",
|
|
28
|
+
warning: "bg-warning-9",
|
|
29
|
+
error: "bg-error-9"
|
|
28
30
|
}
|
|
29
31
|
},
|
|
30
32
|
defaultVariants: { color: "default" }
|
|
31
33
|
}
|
|
32
|
-
), v =
|
|
34
|
+
), v = h.forwardRef(
|
|
33
35
|
({
|
|
34
|
-
className:
|
|
35
|
-
value:
|
|
36
|
-
size:
|
|
37
|
-
color:
|
|
38
|
-
indicatorClassName:
|
|
39
|
-
showLabel:
|
|
40
|
-
...
|
|
41
|
-
},
|
|
42
|
-
const
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
36
|
+
className: f,
|
|
37
|
+
value: s,
|
|
38
|
+
size: u,
|
|
39
|
+
color: t,
|
|
40
|
+
indicatorClassName: i,
|
|
41
|
+
showLabel: n,
|
|
42
|
+
...p
|
|
43
|
+
}, g) => {
|
|
44
|
+
const e = s == null;
|
|
45
|
+
return /* @__PURE__ */ o("div", { className: a("flex items-center gap-ds-03", n && "w-full"), children: [
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
d,
|
|
46
48
|
{
|
|
47
|
-
ref:
|
|
48
|
-
value:
|
|
49
|
-
className:
|
|
50
|
-
...
|
|
51
|
-
children: /* @__PURE__ */
|
|
52
|
-
|
|
49
|
+
ref: g,
|
|
50
|
+
value: e ? null : s,
|
|
51
|
+
className: a(N({ size: u }), f),
|
|
52
|
+
...p,
|
|
53
|
+
children: e ? /* @__PURE__ */ r(
|
|
54
|
+
l,
|
|
53
55
|
{
|
|
54
|
-
className:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
|
|
56
|
+
className: a(
|
|
57
|
+
m({ color: t }),
|
|
58
|
+
"w-2/5 animate-progress-indeterminate motion-reduce:animate-none",
|
|
59
|
+
i
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ r(
|
|
63
|
+
l,
|
|
64
|
+
{
|
|
65
|
+
className: a("h-full", i),
|
|
66
|
+
asChild: !0,
|
|
67
|
+
children: /* @__PURE__ */ r(
|
|
68
|
+
w.div,
|
|
69
|
+
{
|
|
70
|
+
className: a(m({ color: t })),
|
|
71
|
+
initial: !1,
|
|
72
|
+
animate: { width: `${s || 0}%` },
|
|
73
|
+
transition: x.smooth
|
|
74
|
+
}
|
|
75
|
+
)
|
|
60
76
|
}
|
|
61
77
|
)
|
|
62
78
|
}
|
|
63
79
|
),
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
n && !e && /* @__PURE__ */ o("span", { className: "shrink-0 text-ds-xs text-surface-fg-muted", children: [
|
|
81
|
+
s,
|
|
66
82
|
"%"
|
|
67
83
|
] })
|
|
68
84
|
] });
|
|
69
85
|
}
|
|
70
86
|
);
|
|
71
|
-
v.displayName =
|
|
87
|
+
v.displayName = d.displayName;
|
|
72
88
|
export {
|
|
73
89
|
v as Progress,
|
|
74
|
-
|
|
75
|
-
|
|
90
|
+
m as progressIndicatorVariants,
|
|
91
|
+
N as progressTrackVariants
|
|
76
92
|
};
|
package/dist/ui/radio.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { aj as s, ak as i, al as d } from "../_chunks/primitives.js";
|
|
4
4
|
import { IconCircle as l } from "@tabler/icons-react";
|
|
5
5
|
import * as t from "react";
|
|
6
|
-
import {
|
|
7
|
-
const n = t.forwardRef(({ className:
|
|
8
|
-
n.displayName =
|
|
9
|
-
const m = t.forwardRef(({ className:
|
|
10
|
-
|
|
6
|
+
import { cn as c } from "./lib/utils.js";
|
|
7
|
+
const n = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(s, { className: c("grid gap-ds-03", a), ...r, ref: o }));
|
|
8
|
+
n.displayName = s.displayName;
|
|
9
|
+
const m = t.forwardRef(({ className: a, ...r }, o) => /* @__PURE__ */ e(
|
|
10
|
+
i,
|
|
11
11
|
{
|
|
12
12
|
ref: o,
|
|
13
|
-
className:
|
|
13
|
+
className: c(
|
|
14
14
|
"aspect-square h-ico-md w-ico-md rounded-ds-full",
|
|
15
|
-
"border border-border-strong bg-
|
|
15
|
+
"border border-surface-border-strong bg-surface-3",
|
|
16
16
|
"transition-colors duration-fast-01",
|
|
17
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
18
|
-
"disabled:cursor-not-allowed disabled:opacity-
|
|
19
|
-
"data-[state=checked]:border-
|
|
20
|
-
|
|
17
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 focus-visible:ring-offset-2",
|
|
18
|
+
"disabled:cursor-not-allowed disabled:opacity-action-disabled",
|
|
19
|
+
"data-[state=checked]:border-accent-7",
|
|
20
|
+
a
|
|
21
21
|
),
|
|
22
|
-
...
|
|
23
|
-
children: /* @__PURE__ */ e(
|
|
22
|
+
...r,
|
|
23
|
+
children: /* @__PURE__ */ e(d, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-accent-9 text-accent-11" }) })
|
|
24
24
|
}
|
|
25
25
|
));
|
|
26
|
-
m.displayName =
|
|
26
|
+
m.displayName = i.displayName;
|
|
27
27
|
export {
|
|
28
28
|
n as RadioGroup,
|
|
29
29
|
m as RadioGroupItem
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAQzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,QAAA,MAAM,WAAW,2FA6ChB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|