@devalok/shilp-sutra 0.8.3 → 0.9.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/_chunks/avatar.js +50 -0
- package/dist/_chunks/button.js +95 -0
- package/dist/_chunks/card.js +40 -0
- package/dist/_chunks/checkbox.js +14 -0
- package/dist/_chunks/form.js +27 -0
- package/dist/_chunks/primitives.js +6965 -0
- package/dist/_chunks/sidebar.js +592 -0
- package/dist/_chunks/spinner.js +34 -0
- package/dist/_chunks/tiptap.js +15254 -0
- package/dist/_chunks/tooltip.js +13 -0
- package/dist/_chunks/tree-view.js +304 -0
- package/dist/_chunks/use-calendar.js +990 -0
- package/dist/_chunks/utils.js +15 -0
- package/dist/_chunks/vendor.js +5823 -0
- package/dist/composed/avatar-group.js +20 -20
- package/dist/composed/command-palette.js +1 -1
- package/dist/composed/confirm-dialog.js +5 -5
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +6 -6
- package/dist/composed/date-picker/index.js +13 -0
- package/dist/composed/empty-state.js +10 -10
- package/dist/composed/error-boundary.js +2 -2
- package/dist/composed/global-loading.js +4 -4
- package/dist/composed/index.js +45 -53
- package/dist/composed/loading-skeleton.js +2 -2
- package/dist/composed/member-picker.js +5 -5
- package/dist/composed/page-header.js +4 -4
- package/dist/composed/page-skeletons.js +1 -1
- package/dist/composed/priority-indicator.js +6 -6
- package/dist/composed/rich-text-editor.js +422 -209
- package/dist/composed/schedule-view.js +1 -1
- package/dist/composed/simple-tooltip.js +6 -6
- package/dist/composed/status-badge.d.ts +1 -1
- package/dist/composed/status-badge.js +2 -2
- package/dist/shell/bottom-navbar.js +1 -1
- package/dist/shell/notification-center.js +2 -2
- package/dist/shell/notification-preferences.js +32 -33
- package/dist/shell/sidebar.js +24 -24
- package/dist/shell/top-bar.js +22 -22
- package/dist/ui/accordion.js +17 -17
- package/dist/ui/alert-dialog.js +29 -29
- package/dist/ui/alert.d.ts +2 -2
- package/dist/ui/alert.js +65 -44
- package/dist/ui/aspect-ratio.js +1 -1
- package/dist/ui/autocomplete.js +11 -11
- package/dist/ui/avatar.d.ts +1 -1
- package/dist/ui/avatar.js +67 -25
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/badge.js +115 -91
- package/dist/ui/banner.d.ts +1 -1
- package/dist/ui/banner.js +5 -5
- package/dist/ui/breadcrumb.js +14 -14
- package/dist/ui/button-group.js +30 -15
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.js +114 -71
- package/dist/ui/card.js +66 -22
- package/dist/ui/charts/index.js +1221 -18
- package/dist/ui/checkbox.js +25 -5
- package/dist/ui/chip.d.ts +4 -4
- package/dist/ui/chip.js +2 -2
- package/dist/ui/code.js +1 -1
- package/dist/ui/collapsible.js +5 -5
- package/dist/ui/color-input.js +11 -11
- package/dist/ui/combobox.js +12 -12
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.js +37 -37
- package/dist/ui/data-table-toolbar.js +18 -18
- package/dist/ui/data-table.js +2 -2
- package/dist/ui/dialog.js +33 -33
- package/dist/ui/dropdown-menu.js +60 -60
- package/dist/ui/file-upload.js +1 -1
- package/dist/ui/form.js +36 -15
- package/dist/ui/hover-card.js +7 -7
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.js +523 -325
- package/dist/ui/input-otp.d.ts +2 -2
- package/dist/ui/input-otp.js +14 -14
- package/dist/ui/input.js +56 -28
- package/dist/ui/label.js +18 -4
- package/dist/ui/lib/utils.js +4 -5
- package/dist/ui/link.js +9 -9
- package/dist/ui/menubar.js +81 -81
- package/dist/ui/navigation-menu.js +42 -42
- package/dist/ui/number-input.js +13 -13
- package/dist/ui/pagination.js +5 -5
- package/dist/ui/popover.js +9 -9
- package/dist/ui/progress.d.ts +1 -1
- package/dist/ui/progress.js +15 -15
- package/dist/ui/radio.js +10 -10
- package/dist/ui/search-input.js +5 -5
- package/dist/ui/segmented-control.js +91 -83
- package/dist/ui/select.js +52 -52
- package/dist/ui/separator.js +20 -5
- package/dist/ui/sheet.js +28 -28
- package/dist/ui/sidebar.js +36 -560
- package/dist/ui/skeleton.d.ts +1 -1
- package/dist/ui/skeleton.js +9 -9
- package/dist/ui/slider.js +11 -11
- package/dist/ui/spinner.js +37 -2
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.js +1 -1
- package/dist/ui/stepper.js +15 -15
- package/dist/ui/switch.js +22 -3
- package/dist/ui/table.js +1 -1
- package/dist/ui/tabs.js +59 -32
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.js +7 -7
- package/dist/ui/toast.d.ts +1 -1
- package/dist/ui/toast.js +28 -28
- package/dist/ui/toggle-group.js +11 -11
- package/dist/ui/toggle.js +9 -9
- package/dist/ui/tooltip.js +17 -6
- package/dist/ui/transitions.js +68 -58
- package/dist/ui/tree-view/index.js +7 -0
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +1 -1
- package/llms.txt +7 -0
- package/package.json +656 -701
- package/dist/_virtual/client.js +0 -5
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/react-dom-client.development.js +0 -5
- package/dist/_virtual/react-dom-client.production.js +0 -5
- package/dist/_virtual/scheduler.development.js +0 -5
- package/dist/_virtual/scheduler.production.js +0 -5
- package/dist/composed/date-picker/calendar-grid.js +0 -194
- package/dist/composed/date-picker/date-picker.js +0 -124
- package/dist/composed/date-picker/date-range-picker.js +0 -167
- package/dist/composed/date-picker/date-time-picker.js +0 -193
- package/dist/composed/date-picker/month-picker.js +0 -53
- package/dist/composed/date-picker/presets.js +0 -84
- package/dist/composed/date-picker/time-picker.js +0 -181
- package/dist/composed/date-picker/use-calendar.js +0 -17
- package/dist/composed/date-picker/year-picker.js +0 -45
- package/dist/composed/extensions/emoji-suggestion.js +0 -119
- package/dist/composed/extensions/file-attachment.js +0 -55
- package/dist/composed/extensions/mention-suggestion.js +0 -79
- package/dist/node_modules/.pnpm/@emoji-mart_data@1.2.1/node_modules/@emoji-mart/data/sets/15/native.json.js +0 -40141
- package/dist/node_modules/.pnpm/@emoji-mart_react@1.1.1_emoji-mart@5.6.0_react@19.2.4/node_modules/@emoji-mart/react/dist/module.js +0 -17
- package/dist/node_modules/.pnpm/emoji-mart@5.6.0/node_modules/emoji-mart/dist/module.js +0 -2958
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.development.js +0 -17062
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/cjs/react-dom-client.production.js +0 -9790
- package/dist/node_modules/.pnpm/react-dom@19.2.4_react@19.2.4/node_modules/react-dom/client.js +0 -20
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js +0 -237
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js +0 -234
- package/dist/node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js +0 -11
- package/dist/primitives/_internal/number.js +0 -6
- package/dist/primitives/_internal/primitive.js +0 -9
- package/dist/primitives/_internal/react-arrow.js +0 -13
- package/dist/primitives/_internal/react-collection.js +0 -48
- package/dist/primitives/_internal/react-compose-refs.js +0 -29
- package/dist/primitives/_internal/react-context.js +0 -76
- package/dist/primitives/_internal/react-direction.js +0 -10
- package/dist/primitives/_internal/react-dismissable-layer.js +0 -103
- package/dist/primitives/_internal/react-focus-guards.js +0 -17
- package/dist/primitives/_internal/react-focus-scope.js +0 -137
- package/dist/primitives/_internal/react-id.js +0 -14
- package/dist/primitives/_internal/react-popper.js +0 -137
- package/dist/primitives/_internal/react-portal.js +0 -16
- package/dist/primitives/_internal/react-presence.js +0 -71
- package/dist/primitives/_internal/react-primitive.js +0 -36
- package/dist/primitives/_internal/react-use-callback-ref.js +0 -13
- package/dist/primitives/_internal/react-use-controllable-state.js +0 -44
- package/dist/primitives/_internal/react-use-escape-keydown.js +0 -14
- package/dist/primitives/_internal/react-use-is-hydrated.js +0 -15
- package/dist/primitives/_internal/react-use-layout-effect.js +0 -6
- package/dist/primitives/_internal/react-use-previous.js +0 -8
- package/dist/primitives/_internal/react-use-size.js +0 -27
- package/dist/primitives/react-accordion.js +0 -239
- package/dist/primitives/react-alert-dialog.js +0 -127
- package/dist/primitives/react-aspect-ratio.js +0 -43
- package/dist/primitives/react-avatar.js +0 -75
- package/dist/primitives/react-checkbox.js +0 -251
- package/dist/primitives/react-collapsible.js +0 -120
- package/dist/primitives/react-context-menu.js +0 -240
- package/dist/primitives/react-dialog.js +0 -262
- package/dist/primitives/react-dropdown-menu.js +0 -227
- package/dist/primitives/react-hover-card.js +0 -187
- package/dist/primitives/react-label.js +0 -20
- package/dist/primitives/react-menu.js +0 -652
- package/dist/primitives/react-menubar.js +0 -355
- package/dist/primitives/react-navigation-menu.js +0 -607
- package/dist/primitives/react-popover.js +0 -243
- package/dist/primitives/react-progress.js +0 -84
- package/dist/primitives/react-radio-group.js +0 -238
- package/dist/primitives/react-roving-focus.js +0 -183
- package/dist/primitives/react-select.js +0 -862
- package/dist/primitives/react-separator.js +0 -24
- package/dist/primitives/react-slider.js +0 -437
- package/dist/primitives/react-slot.js +0 -70
- package/dist/primitives/react-switch.js +0 -132
- package/dist/primitives/react-tabs.js +0 -163
- package/dist/primitives/react-toast.js +0 -446
- package/dist/primitives/react-toggle-group.js +0 -137
- package/dist/primitives/react-toggle.js +0 -33
- package/dist/primitives/react-tooltip.js +0 -338
- package/dist/primitives/react-visually-hidden.js +0 -32
- package/dist/ui/charts/_internal/animation.js +0 -18
- package/dist/ui/charts/_internal/axes.js +0 -42
- package/dist/ui/charts/_internal/colors.js +0 -21
- package/dist/ui/charts/_internal/grid-lines.js +0 -43
- package/dist/ui/charts/_internal/legend.js +0 -29
- package/dist/ui/charts/_internal/tooltip.js +0 -39
- package/dist/ui/charts/_internal/types.js +0 -10
- package/dist/ui/charts/area-chart.js +0 -245
- package/dist/ui/charts/bar-chart.js +0 -153
- package/dist/ui/charts/chart-container.js +0 -27
- package/dist/ui/charts/gauge-chart.js +0 -72
- package/dist/ui/charts/line-chart.js +0 -163
- package/dist/ui/charts/pie-chart.js +0 -132
- package/dist/ui/charts/radar-chart.js +0 -223
- package/dist/ui/charts/sparkline.js +0 -124
- package/dist/ui/lib/motion.js +0 -32
- package/dist/ui/lib/use-reduced-motion.js +0 -15
- package/dist/ui/lib/use-ripple.js +0 -14
- package/dist/ui/tree-view/tree-item.js +0 -139
- package/dist/ui/tree-view/tree-view.js +0 -140
- package/dist/ui/tree-view/use-tree.js +0 -38
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import w, { useState as D,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const
|
|
2
|
+
import { jsx as h, jsxs as C } from "react/jsx-runtime";
|
|
3
|
+
import w, { useState as D, useCallback as M, useRef as S } from "react";
|
|
4
|
+
import { m as I } from "../_chunks/vendor.js";
|
|
5
|
+
import { c as N } from "../_chunks/utils.js";
|
|
6
|
+
function z(i = 600) {
|
|
7
|
+
const [v, d] = D([]), n = M((a) => {
|
|
8
|
+
const s = a.currentTarget.getBoundingClientRect(), r = Math.max(s.width, s.height) * 2, t = a.clientX - s.left - r / 2, o = a.clientY - s.top - r / 2, m = Date.now();
|
|
9
|
+
d((l) => [...l, { id: m, x: t, y: o, size: r }]), setTimeout(() => {
|
|
10
|
+
d((l) => l.filter((c) => c.id !== m));
|
|
11
|
+
}, i);
|
|
12
|
+
}, [i]);
|
|
13
|
+
return { ripples: v, createRipple: n };
|
|
14
|
+
}
|
|
15
|
+
const R = I(
|
|
8
16
|
[
|
|
9
17
|
"inline-flex items-center gap-ds-03 rounded-ds-full border-none outline-none cursor-pointer",
|
|
10
18
|
"transition-[color,background-color,border-color,box-shadow] duration-moderate-02 ease-productive-standard",
|
|
@@ -109,53 +117,53 @@ const z = S(
|
|
|
109
117
|
), H = {
|
|
110
118
|
filled: "bg-surface-overlay-light",
|
|
111
119
|
tonal: "bg-surface-overlay-dark"
|
|
112
|
-
},
|
|
120
|
+
}, j = {
|
|
113
121
|
small: "sm",
|
|
114
122
|
medium: "md",
|
|
115
123
|
big: "lg"
|
|
116
124
|
};
|
|
117
|
-
function
|
|
118
|
-
return
|
|
125
|
+
function E(i) {
|
|
126
|
+
return j[i] ?? i;
|
|
119
127
|
}
|
|
120
|
-
const
|
|
128
|
+
const L = w.forwardRef(
|
|
121
129
|
function({
|
|
122
|
-
size:
|
|
123
|
-
variant:
|
|
124
|
-
options:
|
|
125
|
-
selectedId:
|
|
126
|
-
onSelect:
|
|
127
|
-
disabled:
|
|
130
|
+
size: v,
|
|
131
|
+
variant: d,
|
|
132
|
+
options: n,
|
|
133
|
+
selectedId: a,
|
|
134
|
+
onSelect: s,
|
|
135
|
+
disabled: r = !1,
|
|
128
136
|
className: t = ""
|
|
129
|
-
},
|
|
130
|
-
const
|
|
131
|
-
b.current = e, typeof
|
|
132
|
-
}, [
|
|
133
|
-
if (
|
|
134
|
-
const
|
|
135
|
-
let
|
|
137
|
+
}, o) {
|
|
138
|
+
const m = E(v), [l, c] = D(null), b = S(null), f = w.useCallback((e) => {
|
|
139
|
+
b.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
|
|
140
|
+
}, [o]), y = (e) => {
|
|
141
|
+
if (r) return;
|
|
142
|
+
const u = n.findIndex((_) => _.id === l);
|
|
143
|
+
let p = u;
|
|
136
144
|
switch (e.key) {
|
|
137
145
|
case "ArrowLeft":
|
|
138
|
-
e.preventDefault(),
|
|
146
|
+
e.preventDefault(), p = u > 0 ? u - 1 : n.length - 1;
|
|
139
147
|
break;
|
|
140
148
|
case "ArrowRight":
|
|
141
|
-
e.preventDefault(),
|
|
149
|
+
e.preventDefault(), p = u < n.length - 1 ? u + 1 : 0;
|
|
142
150
|
break;
|
|
143
151
|
case "Home":
|
|
144
|
-
e.preventDefault(),
|
|
152
|
+
e.preventDefault(), p = 0;
|
|
145
153
|
break;
|
|
146
154
|
case "End":
|
|
147
|
-
e.preventDefault(),
|
|
155
|
+
e.preventDefault(), p = n.length - 1;
|
|
148
156
|
break;
|
|
149
157
|
default:
|
|
150
158
|
return;
|
|
151
159
|
}
|
|
152
|
-
const
|
|
153
|
-
|
|
160
|
+
const g = n[p];
|
|
161
|
+
c(g.id), s(g.id);
|
|
154
162
|
};
|
|
155
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ h(
|
|
156
164
|
"div",
|
|
157
165
|
{
|
|
158
|
-
ref:
|
|
166
|
+
ref: f,
|
|
159
167
|
className: N(
|
|
160
168
|
"inline-flex gap-0 p-0 rounded-ds-full",
|
|
161
169
|
"bg-layer-02",
|
|
@@ -166,19 +174,19 @@ const E = w.forwardRef(
|
|
|
166
174
|
onKeyDown: y,
|
|
167
175
|
tabIndex: -1,
|
|
168
176
|
"aria-label": "Segmented control options",
|
|
169
|
-
children:
|
|
177
|
+
children: n.map((e) => /* @__PURE__ */ h(
|
|
170
178
|
k,
|
|
171
179
|
{
|
|
172
|
-
size:
|
|
173
|
-
variant:
|
|
180
|
+
size: m,
|
|
181
|
+
variant: d,
|
|
174
182
|
text: e.text,
|
|
175
183
|
icon: e.icon,
|
|
176
|
-
isSelected: e.id ===
|
|
177
|
-
onClick: () =>
|
|
178
|
-
disabled:
|
|
179
|
-
isFocused: e.id ===
|
|
180
|
-
onFocus: () =>
|
|
181
|
-
onBlur: () =>
|
|
184
|
+
isSelected: e.id === a,
|
|
185
|
+
onClick: () => s(e.id),
|
|
186
|
+
disabled: r,
|
|
187
|
+
isFocused: e.id === l,
|
|
188
|
+
onFocus: () => c(e.id),
|
|
189
|
+
onBlur: () => c(null)
|
|
182
190
|
},
|
|
183
191
|
e.id
|
|
184
192
|
))
|
|
@@ -186,77 +194,77 @@ const E = w.forwardRef(
|
|
|
186
194
|
);
|
|
187
195
|
}
|
|
188
196
|
);
|
|
189
|
-
|
|
197
|
+
L.displayName = "SegmentedControl";
|
|
190
198
|
const k = w.forwardRef(
|
|
191
199
|
function({
|
|
192
|
-
size:
|
|
193
|
-
variant:
|
|
194
|
-
text:
|
|
195
|
-
icon:
|
|
196
|
-
isSelected:
|
|
197
|
-
onClick:
|
|
200
|
+
size: v,
|
|
201
|
+
variant: d,
|
|
202
|
+
text: n,
|
|
203
|
+
icon: a,
|
|
204
|
+
isSelected: s,
|
|
205
|
+
onClick: r,
|
|
198
206
|
disabled: t = !1,
|
|
199
|
-
isFocused:
|
|
200
|
-
onFocus:
|
|
201
|
-
onBlur:
|
|
202
|
-
},
|
|
203
|
-
const [b,
|
|
204
|
-
!t && !
|
|
205
|
-
},
|
|
206
|
-
t ||
|
|
207
|
-
},
|
|
208
|
-
t ||
|
|
207
|
+
isFocused: o,
|
|
208
|
+
onFocus: m,
|
|
209
|
+
onBlur: l
|
|
210
|
+
}, c) {
|
|
211
|
+
const [b, f] = D("default"), { ripples: y, createRipple: e } = z(), u = () => {
|
|
212
|
+
!t && !o && f("hover");
|
|
213
|
+
}, p = () => {
|
|
214
|
+
t || f("default");
|
|
215
|
+
}, g = () => {
|
|
216
|
+
t || f("pressed");
|
|
209
217
|
}, _ = () => {
|
|
210
|
-
t ||
|
|
218
|
+
t || f("hover");
|
|
211
219
|
};
|
|
212
220
|
return /* @__PURE__ */ C(
|
|
213
221
|
"button",
|
|
214
222
|
{
|
|
215
|
-
ref:
|
|
223
|
+
ref: c,
|
|
216
224
|
className: N(
|
|
217
|
-
|
|
218
|
-
size:
|
|
219
|
-
variant:
|
|
220
|
-
selected:
|
|
225
|
+
R({
|
|
226
|
+
size: v,
|
|
227
|
+
variant: d,
|
|
228
|
+
selected: s,
|
|
221
229
|
isHovered: b === "hover",
|
|
222
230
|
isDisabled: t
|
|
223
231
|
})
|
|
224
232
|
),
|
|
225
|
-
onClick: (
|
|
226
|
-
e(
|
|
233
|
+
onClick: (x) => {
|
|
234
|
+
e(x), r();
|
|
227
235
|
},
|
|
228
236
|
disabled: t,
|
|
229
237
|
type: "button",
|
|
230
238
|
role: "tab",
|
|
231
|
-
"aria-selected":
|
|
239
|
+
"aria-selected": s,
|
|
232
240
|
"aria-disabled": t,
|
|
233
|
-
onMouseEnter:
|
|
234
|
-
onMouseLeave:
|
|
235
|
-
onMouseDown:
|
|
241
|
+
onMouseEnter: u,
|
|
242
|
+
onMouseLeave: p,
|
|
243
|
+
onMouseDown: g,
|
|
236
244
|
onMouseUp: _,
|
|
237
|
-
onTouchStart:
|
|
245
|
+
onTouchStart: g,
|
|
238
246
|
onTouchEnd: _,
|
|
239
|
-
onFocus:
|
|
240
|
-
onBlur:
|
|
247
|
+
onFocus: m,
|
|
248
|
+
onBlur: l,
|
|
241
249
|
children: [
|
|
242
|
-
y.map((
|
|
250
|
+
y.map((x) => /* @__PURE__ */ h(
|
|
243
251
|
"span",
|
|
244
252
|
{
|
|
245
253
|
className: N(
|
|
246
254
|
"absolute rounded-ds-full -translate-x-1/2 -translate-y-1/2 scale-0 animate-ripple pointer-events-none",
|
|
247
|
-
H[
|
|
255
|
+
H[d]
|
|
248
256
|
),
|
|
249
257
|
style: {
|
|
250
|
-
left:
|
|
251
|
-
top:
|
|
252
|
-
width:
|
|
253
|
-
height:
|
|
258
|
+
left: x.x,
|
|
259
|
+
top: x.y,
|
|
260
|
+
width: x.size,
|
|
261
|
+
height: x.size
|
|
254
262
|
}
|
|
255
263
|
},
|
|
256
|
-
|
|
264
|
+
x.id
|
|
257
265
|
)),
|
|
258
|
-
|
|
259
|
-
/* @__PURE__ */
|
|
266
|
+
a && /* @__PURE__ */ h(a, { className: "h-ico-sm w-ico-sm shrink-0" }),
|
|
267
|
+
/* @__PURE__ */ h("span", { className: "font-accent leading-none", children: n })
|
|
260
268
|
]
|
|
261
269
|
}
|
|
262
270
|
);
|
|
@@ -264,7 +272,7 @@ const k = w.forwardRef(
|
|
|
264
272
|
);
|
|
265
273
|
k.displayName = "SegmentedControlItem";
|
|
266
274
|
export {
|
|
267
|
-
|
|
275
|
+
L as SegmentedControl,
|
|
268
276
|
k as SegmentedControlItem,
|
|
269
|
-
|
|
277
|
+
R as segmentedControlItemVariants
|
|
270
278
|
};
|
package/dist/ui/select.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
const F =
|
|
4
|
+
import { al as c, am as w, an as n, ao as m, ap as N, aq as p, ar as g, as as f, at as u, au as v, av as S, aw as h, ax as I, ay as R, az as j } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as b, IconChevronUp as z, IconCheck as C } from "@tabler/icons-react";
|
|
6
|
+
import { m as V } from "../_chunks/vendor.js";
|
|
7
|
+
import { c as o } from "../_chunks/utils.js";
|
|
8
|
+
const F = I, H = R, J = j, B = V(
|
|
9
9
|
"flex w-full items-center justify-between whitespace-nowrap rounded-ds-md border border-border bg-field placeholder:text-text-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:border-border-interactive disabled:cursor-not-allowed disabled:opacity-[0.38] [&>span]:line-clamp-1",
|
|
10
10
|
{
|
|
11
11
|
variants: {
|
|
@@ -17,107 +17,107 @@ const F = w, H = N, J = g, B = V(
|
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: { size: "md" }
|
|
19
19
|
}
|
|
20
|
-
), T = r.forwardRef(({ className:
|
|
21
|
-
|
|
20
|
+
), T = r.forwardRef(({ className: s, children: t, size: a, ...d }, l) => /* @__PURE__ */ i(
|
|
21
|
+
c,
|
|
22
22
|
{
|
|
23
23
|
ref: l,
|
|
24
|
-
className: o(B({ size:
|
|
24
|
+
className: o(B({ size: a }), s),
|
|
25
25
|
...d,
|
|
26
26
|
children: [
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ e(
|
|
27
|
+
t,
|
|
28
|
+
/* @__PURE__ */ e(w, { asChild: !0, children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm opacity-[0.5]" }) })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
));
|
|
32
|
-
T.displayName =
|
|
33
|
-
const y = r.forwardRef(({ className:
|
|
34
|
-
|
|
32
|
+
T.displayName = c.displayName;
|
|
33
|
+
const y = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
34
|
+
n,
|
|
35
35
|
{
|
|
36
|
-
ref:
|
|
36
|
+
ref: a,
|
|
37
37
|
className: o(
|
|
38
38
|
"flex cursor-default items-center justify-center py-ds-02",
|
|
39
|
-
|
|
39
|
+
s
|
|
40
40
|
),
|
|
41
|
-
...
|
|
41
|
+
...t,
|
|
42
42
|
children: /* @__PURE__ */ e(z, { className: "h-ico-sm w-ico-sm" })
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
y.displayName =
|
|
46
|
-
const x = r.forwardRef(({ className:
|
|
47
|
-
|
|
45
|
+
y.displayName = n.displayName;
|
|
46
|
+
const x = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
47
|
+
m,
|
|
48
48
|
{
|
|
49
|
-
ref:
|
|
49
|
+
ref: a,
|
|
50
50
|
className: o(
|
|
51
51
|
"flex cursor-default items-center justify-center py-ds-02",
|
|
52
|
-
|
|
52
|
+
s
|
|
53
53
|
),
|
|
54
|
-
...
|
|
54
|
+
...t,
|
|
55
55
|
children: /* @__PURE__ */ e(b, { className: "h-ico-sm w-ico-sm" })
|
|
56
56
|
}
|
|
57
57
|
));
|
|
58
|
-
x.displayName =
|
|
59
|
-
const D = r.forwardRef(({ className:
|
|
60
|
-
|
|
58
|
+
x.displayName = m.displayName;
|
|
59
|
+
const D = r.forwardRef(({ className: s, children: t, position: a = "popper", ...d }, l) => /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
|
|
60
|
+
p,
|
|
61
61
|
{
|
|
62
62
|
ref: l,
|
|
63
63
|
className: o(
|
|
64
64
|
"relative z-dropdown max-h-96 min-w-[8rem] overflow-hidden rounded-ds-lg border border-border bg-layer-01 text-text-primary shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
66
|
+
s
|
|
67
67
|
),
|
|
68
|
-
position:
|
|
68
|
+
position: a,
|
|
69
69
|
...d,
|
|
70
70
|
children: [
|
|
71
71
|
/* @__PURE__ */ e(y, {}),
|
|
72
72
|
/* @__PURE__ */ e(
|
|
73
|
-
|
|
73
|
+
g,
|
|
74
74
|
{
|
|
75
75
|
className: o(
|
|
76
76
|
"p-ds-02",
|
|
77
|
-
|
|
77
|
+
a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
|
|
78
78
|
),
|
|
79
|
-
children:
|
|
79
|
+
children: t
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
82
|
/* @__PURE__ */ e(x, {})
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
) }));
|
|
86
|
-
D.displayName =
|
|
87
|
-
const U = r.forwardRef(({ className:
|
|
88
|
-
|
|
86
|
+
D.displayName = p.displayName;
|
|
87
|
+
const U = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
88
|
+
f,
|
|
89
89
|
{
|
|
90
|
-
ref:
|
|
91
|
-
className: o("px-ds-03 py-ds-02b text-ds-md font-semibold",
|
|
92
|
-
...
|
|
90
|
+
ref: a,
|
|
91
|
+
className: o("px-ds-03 py-ds-02b text-ds-md font-semibold", s),
|
|
92
|
+
...t
|
|
93
93
|
}
|
|
94
94
|
));
|
|
95
|
-
U.displayName =
|
|
96
|
-
const G = r.forwardRef(({ className:
|
|
97
|
-
|
|
95
|
+
U.displayName = f.displayName;
|
|
96
|
+
const G = r.forwardRef(({ className: s, children: t, ...a }, d) => /* @__PURE__ */ i(
|
|
97
|
+
u,
|
|
98
98
|
{
|
|
99
99
|
ref: d,
|
|
100
100
|
className: o(
|
|
101
101
|
"relative flex w-full cursor-default select-none items-center rounded-ds-md py-ds-02b pl-ds-03 pr-ds-07 text-ds-md outline-none focus:bg-layer-02 focus:text-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-[0.38]",
|
|
102
|
-
|
|
102
|
+
s
|
|
103
103
|
),
|
|
104
|
-
...
|
|
104
|
+
...a,
|
|
105
105
|
children: [
|
|
106
|
-
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(
|
|
107
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ e("span", { className: "absolute right-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(C, { className: "h-ico-sm w-ico-sm" }) }) }),
|
|
107
|
+
/* @__PURE__ */ e(S, { children: t })
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
));
|
|
111
|
-
G.displayName =
|
|
112
|
-
const L = r.forwardRef(({ className:
|
|
113
|
-
|
|
111
|
+
G.displayName = u.displayName;
|
|
112
|
+
const L = r.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ e(
|
|
113
|
+
h,
|
|
114
114
|
{
|
|
115
|
-
ref:
|
|
116
|
-
className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle",
|
|
117
|
-
...
|
|
115
|
+
ref: a,
|
|
116
|
+
className: o("-mx-ds-01 my-ds-02 h-px bg-border-subtle", s),
|
|
117
|
+
...t
|
|
118
118
|
}
|
|
119
119
|
));
|
|
120
|
-
L.displayName =
|
|
120
|
+
L.displayName = h.displayName;
|
|
121
121
|
export {
|
|
122
122
|
F as Select,
|
|
123
123
|
D as SelectContent,
|
package/dist/ui/separator.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
const f =
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import { bi as o } from "../_chunks/primitives.js";
|
|
5
|
+
import { c as e } from "../_chunks/utils.js";
|
|
6
|
+
const f = p.forwardRef(
|
|
7
|
+
({ className: a, orientation: r = "horizontal", decorative: m = !0, ...s }, t) => /* @__PURE__ */ l(
|
|
8
|
+
o,
|
|
9
|
+
{
|
|
10
|
+
ref: t,
|
|
11
|
+
decorative: m,
|
|
12
|
+
orientation: r,
|
|
13
|
+
className: e(
|
|
14
|
+
"shrink-0 bg-border-subtle",
|
|
15
|
+
r === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
16
|
+
a
|
|
17
|
+
),
|
|
18
|
+
...s
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
);
|
|
7
22
|
f.displayName = o.displayName;
|
|
8
23
|
export {
|
|
9
24
|
f as Separator
|
package/dist/ui/sheet.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import * as o from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { IconX as
|
|
7
|
-
import {
|
|
8
|
-
const O =
|
|
9
|
-
|
|
4
|
+
import { aa as i, ab as x, ac as l, ad as n, ae as m, af as c, ag as b, ah as y } from "../_chunks/primitives.js";
|
|
5
|
+
import { m as u } from "../_chunks/vendor.js";
|
|
6
|
+
import { IconX as g } from "@tabler/icons-react";
|
|
7
|
+
import { c as r } from "../_chunks/utils.js";
|
|
8
|
+
const O = b, P = y, V = n, N = x, f = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
9
|
+
i,
|
|
10
10
|
{
|
|
11
11
|
className: r(
|
|
12
12
|
"fixed inset-0 z-modal bg-overlay duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
13
13
|
e
|
|
14
14
|
),
|
|
15
15
|
...t,
|
|
16
|
-
ref:
|
|
16
|
+
ref: a
|
|
17
17
|
}
|
|
18
18
|
));
|
|
19
|
-
f.displayName =
|
|
19
|
+
f.displayName = i.displayName;
|
|
20
20
|
const v = u(
|
|
21
21
|
"fixed z-modal gap-ds-05 bg-layer-01 p-ds-06 shadow-05 transition ease-productive-standard duration-moderate-02 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
22
22
|
{
|
|
@@ -32,8 +32,8 @@ const v = u(
|
|
|
32
32
|
side: "right"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
), w = o.forwardRef(({ side: e = "right", className: t, children:
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
), w = o.forwardRef(({ side: e = "right", className: t, children: a, ...p }, h) => /* @__PURE__ */ d(N, { children: [
|
|
36
|
+
/* @__PURE__ */ s(f, {}),
|
|
37
37
|
/* @__PURE__ */ d(
|
|
38
38
|
l,
|
|
39
39
|
{
|
|
@@ -41,21 +41,21 @@ const v = u(
|
|
|
41
41
|
className: r(v({ side: e }), t),
|
|
42
42
|
...p,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ d(
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ d(n, { className: "absolute right-ds-05 top-ds-05 min-h-ds-xs min-w-ds-xs flex items-center justify-center rounded-ds-sm text-icon-secondary transition-colors hover:text-icon-primary hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:pointer-events-none", children: [
|
|
45
|
+
/* @__PURE__ */ s(g, { className: "h-ico-sm w-ico-sm" }),
|
|
46
|
+
/* @__PURE__ */ s("span", { className: "sr-only", children: "Close" })
|
|
47
47
|
] }),
|
|
48
|
-
|
|
48
|
+
a
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
] }));
|
|
53
53
|
w.displayName = l.displayName;
|
|
54
54
|
const S = o.forwardRef(
|
|
55
|
-
({ className: e, ...t },
|
|
55
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
|
-
ref:
|
|
58
|
+
ref: a,
|
|
59
59
|
className: r(
|
|
60
60
|
"flex flex-col space-y-ds-03 text-center sm:text-left",
|
|
61
61
|
e
|
|
@@ -66,10 +66,10 @@ const S = o.forwardRef(
|
|
|
66
66
|
);
|
|
67
67
|
S.displayName = "SheetHeader";
|
|
68
68
|
const R = o.forwardRef(
|
|
69
|
-
({ className: e, ...t },
|
|
69
|
+
({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
70
70
|
"div",
|
|
71
71
|
{
|
|
72
|
-
ref:
|
|
72
|
+
ref: a,
|
|
73
73
|
className: r(
|
|
74
74
|
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-ds-03",
|
|
75
75
|
e
|
|
@@ -79,24 +79,24 @@ const R = o.forwardRef(
|
|
|
79
79
|
)
|
|
80
80
|
);
|
|
81
81
|
R.displayName = "SheetFooter";
|
|
82
|
-
const C = o.forwardRef(({ className: e, ...t },
|
|
83
|
-
|
|
82
|
+
const C = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
83
|
+
m,
|
|
84
84
|
{
|
|
85
|
-
ref:
|
|
85
|
+
ref: a,
|
|
86
86
|
className: r("text-ds-lg font-semibold text-text-primary", e),
|
|
87
87
|
...t
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
|
-
C.displayName =
|
|
91
|
-
const j = o.forwardRef(({ className: e, ...t },
|
|
92
|
-
|
|
90
|
+
C.displayName = m.displayName;
|
|
91
|
+
const j = o.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
92
|
+
c,
|
|
93
93
|
{
|
|
94
|
-
ref:
|
|
94
|
+
ref: a,
|
|
95
95
|
className: r("text-ds-md text-text-secondary", e),
|
|
96
96
|
...t
|
|
97
97
|
}
|
|
98
98
|
));
|
|
99
|
-
j.displayName =
|
|
99
|
+
j.displayName = c.displayName;
|
|
100
100
|
export {
|
|
101
101
|
O as Sheet,
|
|
102
102
|
V as SheetClose,
|
|
@@ -105,7 +105,7 @@ export {
|
|
|
105
105
|
R as SheetFooter,
|
|
106
106
|
S as SheetHeader,
|
|
107
107
|
f as SheetOverlay,
|
|
108
|
-
|
|
108
|
+
N as SheetPortal,
|
|
109
109
|
C as SheetTitle,
|
|
110
110
|
P as SheetTrigger
|
|
111
111
|
};
|