@fldr/ui 0.3.3 → 0.3.5
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/ai/component-registry.json +0 -1
- package/ai/component-registry.md +1 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +18 -18
- package/dist/chunks/{autocomplete-gdd9aruremdgdvx7.js → autocomplete-nsvacdbq7uz0m71c.js} +2 -2
- package/dist/chunks/{clipboard-text-oukrnke1s3kebk3y.js → clipboard-text-ejyilhenww9v18l4.js} +6 -18
- package/dist/chunks/{combobox-mzvobpvalz2gnpli.js → combobox-m531jeqdbmqzt2gy.js} +9 -7
- package/dist/chunks/{dropdown-fhgq30b9vhvnfs7y.js → dropdown-e5zk0ez21busnt0b.js} +10 -10
- package/dist/chunks/{empty-e0onzpyokyl6h9bp.js → empty-ijs6kgnd72lv3u94.js} +2 -2
- package/dist/chunks/{layer-dialog-i5nklzokbe9hdt84.js → layer-dialog-m8qb0wzfg3k7406a.js} +5 -5
- package/dist/chunks/{pagination-f51ruwvphw2urykm.js → pagination-n96r3xdok9nc3pu5.js} +1 -1
- package/dist/chunks/{select-ji2rbk6l2ed7ts4c.js → select-h2pejw38n5z3l59r.js} +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/layer-dialog.d.ts +1 -1
- package/dist/components/layer-dialog.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/{index-Dmbgjww7.d.ts → index-CNoz2NNg.d.ts} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/styles/kumo-binding.css +0 -46
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-fldr.css +18 -18
- package/dist/theming.d.ts +4 -4
- package/dist/theming.js +2 -2
- package/package.json +1 -1
package/ai/component-registry.md
CHANGED
|
@@ -1828,7 +1828,7 @@ Read-only text field with a one-click copy-to-clipboard button.
|
|
|
1828
1828
|
|
|
1829
1829
|
**Colors (kumo tokens used):**
|
|
1830
1830
|
|
|
1831
|
-
`bg-kumo-base`, `border-kumo-line`, `outline-kumo-line`, `ring-kumo-brand`, `
|
|
1831
|
+
`bg-kumo-base`, `border-kumo-line`, `outline-kumo-line`, `ring-kumo-brand`, `text-kumo-default`
|
|
1832
1832
|
|
|
1833
1833
|
**Styling:**
|
|
1834
1834
|
|
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1795501042874
|
package/dist/ai/schemas.d.ts
CHANGED
|
@@ -224,8 +224,8 @@ export declare const ButtonPropsSchema: z.ZodObject<{
|
|
|
224
224
|
}>>;
|
|
225
225
|
size: z.ZodOptional<z.ZodEnum<{
|
|
226
226
|
base: "base";
|
|
227
|
-
xs: "xs";
|
|
228
227
|
sm: "sm";
|
|
228
|
+
xs: "xs";
|
|
229
229
|
lg: "lg";
|
|
230
230
|
}>>;
|
|
231
231
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -675,8 +675,8 @@ export declare const CollapsiblePropsSchema: z.ZodObject<{
|
|
|
675
675
|
export declare const ComboboxPropsSchema: z.ZodObject<{
|
|
676
676
|
size: z.ZodOptional<z.ZodEnum<{
|
|
677
677
|
base: "base";
|
|
678
|
-
xs: "xs";
|
|
679
678
|
sm: "sm";
|
|
679
|
+
xs: "xs";
|
|
680
680
|
lg: "lg";
|
|
681
681
|
}>>;
|
|
682
682
|
inputSide: z.ZodOptional<z.ZodEnum<{
|
|
@@ -888,8 +888,8 @@ export declare const InputPropsSchema: z.ZodObject<{
|
|
|
888
888
|
passwordManagerIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
889
889
|
size: z.ZodOptional<z.ZodEnum<{
|
|
890
890
|
base: "base";
|
|
891
|
-
xs: "xs";
|
|
892
891
|
sm: "sm";
|
|
892
|
+
xs: "xs";
|
|
893
893
|
lg: "lg";
|
|
894
894
|
}>>;
|
|
895
895
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -900,8 +900,8 @@ export declare const InputPropsSchema: z.ZodObject<{
|
|
|
900
900
|
export declare const InputAreaPropsSchema: z.ZodObject<{
|
|
901
901
|
size: z.ZodOptional<z.ZodEnum<{
|
|
902
902
|
base: "base";
|
|
903
|
-
xs: "xs";
|
|
904
903
|
sm: "sm";
|
|
904
|
+
xs: "xs";
|
|
905
905
|
lg: "lg";
|
|
906
906
|
}>>;
|
|
907
907
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -944,8 +944,8 @@ export declare const InputGroupPropsSchema: z.ZodObject<{
|
|
|
944
944
|
title: z.ZodOptional<z.ZodString>;
|
|
945
945
|
size: z.ZodOptional<z.ZodEnum<{
|
|
946
946
|
base: "base";
|
|
947
|
-
xs: "xs";
|
|
948
947
|
sm: "sm";
|
|
948
|
+
xs: "xs";
|
|
949
949
|
lg: "lg";
|
|
950
950
|
}>>;
|
|
951
951
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1145,8 +1145,8 @@ export declare const SelectPropsSchema: z.ZodObject<{
|
|
|
1145
1145
|
}, z.core.$strip>]>]>>;
|
|
1146
1146
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1147
1147
|
base: "base";
|
|
1148
|
-
xs: "xs";
|
|
1149
1148
|
sm: "sm";
|
|
1149
|
+
xs: "xs";
|
|
1150
1150
|
lg: "lg";
|
|
1151
1151
|
}>>;
|
|
1152
1152
|
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
|
|
@@ -1196,8 +1196,8 @@ export declare const SensitiveInputPropsSchema: z.ZodObject<{
|
|
|
1196
1196
|
value: z.ZodOptional<z.ZodString>;
|
|
1197
1197
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1198
1198
|
base: "base";
|
|
1199
|
-
xs: "xs";
|
|
1200
1199
|
sm: "sm";
|
|
1200
|
+
xs: "xs";
|
|
1201
1201
|
lg: "lg";
|
|
1202
1202
|
}>>;
|
|
1203
1203
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1410,8 +1410,8 @@ export declare const TextPropsSchema: z.ZodObject<{
|
|
|
1410
1410
|
}>>;
|
|
1411
1411
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1412
1412
|
base: "base";
|
|
1413
|
-
xs: "xs";
|
|
1414
1413
|
sm: "sm";
|
|
1414
|
+
xs: "xs";
|
|
1415
1415
|
lg: "lg";
|
|
1416
1416
|
}>>;
|
|
1417
1417
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1502,8 +1502,8 @@ export declare const ToolbarPropsSchema: z.ZodObject<{
|
|
|
1502
1502
|
}, z.core.$strip>]>]>>;
|
|
1503
1503
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1504
1504
|
base: "base";
|
|
1505
|
-
xs: "xs";
|
|
1506
1505
|
sm: "sm";
|
|
1506
|
+
xs: "xs";
|
|
1507
1507
|
lg: "lg";
|
|
1508
1508
|
}>>;
|
|
1509
1509
|
}, z.core.$strip>;
|
|
@@ -1712,8 +1712,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
1712
1712
|
}>>;
|
|
1713
1713
|
size: z.ZodOptional<z.ZodEnum<{
|
|
1714
1714
|
base: "base";
|
|
1715
|
-
xs: "xs";
|
|
1716
1715
|
sm: "sm";
|
|
1716
|
+
xs: "xs";
|
|
1717
1717
|
lg: "lg";
|
|
1718
1718
|
}>>;
|
|
1719
1719
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2163,8 +2163,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2163
2163
|
readonly Combobox: z.ZodObject<{
|
|
2164
2164
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2165
2165
|
base: "base";
|
|
2166
|
-
xs: "xs";
|
|
2167
2166
|
sm: "sm";
|
|
2167
|
+
xs: "xs";
|
|
2168
2168
|
lg: "lg";
|
|
2169
2169
|
}>>;
|
|
2170
2170
|
inputSide: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2376,8 +2376,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2376
2376
|
passwordManagerIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
2377
2377
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2378
2378
|
base: "base";
|
|
2379
|
-
xs: "xs";
|
|
2380
2379
|
sm: "sm";
|
|
2380
|
+
xs: "xs";
|
|
2381
2381
|
lg: "lg";
|
|
2382
2382
|
}>>;
|
|
2383
2383
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2388,8 +2388,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2388
2388
|
readonly InputArea: z.ZodObject<{
|
|
2389
2389
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2390
2390
|
base: "base";
|
|
2391
|
-
xs: "xs";
|
|
2392
2391
|
sm: "sm";
|
|
2392
|
+
xs: "xs";
|
|
2393
2393
|
lg: "lg";
|
|
2394
2394
|
}>>;
|
|
2395
2395
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2432,8 +2432,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2432
2432
|
title: z.ZodOptional<z.ZodString>;
|
|
2433
2433
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2434
2434
|
base: "base";
|
|
2435
|
-
xs: "xs";
|
|
2436
2435
|
sm: "sm";
|
|
2436
|
+
xs: "xs";
|
|
2437
2437
|
lg: "lg";
|
|
2438
2438
|
}>>;
|
|
2439
2439
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2633,8 +2633,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2633
2633
|
}, z.core.$strip>]>]>>;
|
|
2634
2634
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2635
2635
|
base: "base";
|
|
2636
|
-
xs: "xs";
|
|
2637
2636
|
sm: "sm";
|
|
2637
|
+
xs: "xs";
|
|
2638
2638
|
lg: "lg";
|
|
2639
2639
|
}>>;
|
|
2640
2640
|
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
|
|
@@ -2684,8 +2684,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2684
2684
|
value: z.ZodOptional<z.ZodString>;
|
|
2685
2685
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2686
2686
|
base: "base";
|
|
2687
|
-
xs: "xs";
|
|
2688
2687
|
sm: "sm";
|
|
2688
|
+
xs: "xs";
|
|
2689
2689
|
lg: "lg";
|
|
2690
2690
|
}>>;
|
|
2691
2691
|
variant: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2898,8 +2898,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2898
2898
|
}>>;
|
|
2899
2899
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2900
2900
|
base: "base";
|
|
2901
|
-
xs: "xs";
|
|
2902
2901
|
sm: "sm";
|
|
2902
|
+
xs: "xs";
|
|
2903
2903
|
lg: "lg";
|
|
2904
2904
|
}>>;
|
|
2905
2905
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2990,8 +2990,8 @@ export declare const ComponentPropsSchemas: {
|
|
|
2990
2990
|
}, z.core.$strip>]>]>>;
|
|
2991
2991
|
size: z.ZodOptional<z.ZodEnum<{
|
|
2992
2992
|
base: "base";
|
|
2993
|
-
xs: "xs";
|
|
2994
2993
|
sm: "sm";
|
|
2994
|
+
xs: "xs";
|
|
2995
2995
|
lg: "lg";
|
|
2996
2996
|
}>>;
|
|
2997
2997
|
}, z.core.$strip>;
|
|
@@ -75,7 +75,7 @@ function Item({ children, className, ...props }) {
|
|
|
75
75
|
"data-kumo-component": "Autocomplete",
|
|
76
76
|
"data-kumo-part": "item",
|
|
77
77
|
...props,
|
|
78
|
-
className: cn("group
|
|
78
|
+
className: cn("group grid cursor-pointer grid-cols-[1fr_16px] gap-2 px-3 py-1.5 text-base", "data-highlighted:bg-kumo-tint data-selected:font-medium", className),
|
|
79
79
|
children: [/* @__PURE__ */ jsx("div", {
|
|
80
80
|
className: "col-start-1",
|
|
81
81
|
children
|
|
@@ -88,7 +88,7 @@ function Item({ children, className, ...props }) {
|
|
|
88
88
|
function GroupLabel(props) {
|
|
89
89
|
return /* @__PURE__ */ jsx(ComboboxGroupLabel, {
|
|
90
90
|
...props,
|
|
91
|
-
className: cn("
|
|
91
|
+
className: cn("px-3 py-1.5 text-sm text-kumo-strong", props.className)
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
function Group(props) {
|
package/dist/chunks/{clipboard-text-oukrnke1s3kebk3y.js → clipboard-text-ejyilhenww9v18l4.js}
RENAMED
|
@@ -31,11 +31,6 @@ const KUMO_CLIPBOARD_TEXT_VARIANTS = { size: {
|
|
|
31
31
|
}
|
|
32
32
|
} };
|
|
33
33
|
const KUMO_CLIPBOARD_TEXT_DEFAULT_VARIANTS = { size: "lg" };
|
|
34
|
-
const clipboardTextAnimations = { slide: {
|
|
35
|
-
initial: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 translate-y-full",
|
|
36
|
-
animate: "translate-y-0 opacity-100",
|
|
37
|
-
end: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 -translate-y-full"
|
|
38
|
-
} };
|
|
39
34
|
function clipboardTextVariants({ size = KUMO_CLIPBOARD_TEXT_DEFAULT_VARIANTS.size } = {}) {
|
|
40
35
|
return cn("flex items-center gap-0 overflow-hidden bg-kumo-base px-0 font-mono", resolveVariant(KUMO_CLIPBOARD_TEXT_VARIANTS.size, size, KUMO_CLIPBOARD_TEXT_DEFAULT_VARIANTS.size).classes);
|
|
41
36
|
}
|
|
@@ -47,15 +42,14 @@ function AnchoredToasts() {
|
|
|
47
42
|
return /* @__PURE__ */ jsx(ToastViewport, {
|
|
48
43
|
className: "pointer-events-none fixed inset-0 isolate",
|
|
49
44
|
children: toasts.map((toast) => {
|
|
50
|
-
const updateKey = toast.updateKey ?? 0;
|
|
51
45
|
return /* @__PURE__ */ jsx(ToastPositioner, {
|
|
52
46
|
toast,
|
|
53
47
|
className: "absolute",
|
|
54
48
|
children: /* @__PURE__ */ jsx(ToastRoot, {
|
|
55
49
|
toast,
|
|
56
|
-
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 font-sans text-xs text-kumo-default", "shadow-lg outline outline-kumo-line"
|
|
50
|
+
className: cn("flex origin-[var(--transform-origin)] flex-col rounded-md bg-kumo-base px-3 py-1.5 font-sans text-xs text-kumo-default", "shadow-lg outline outline-kumo-line"),
|
|
57
51
|
children: /* @__PURE__ */ jsx(ToastDescription, {})
|
|
58
|
-
}
|
|
52
|
+
})
|
|
59
53
|
}, toast.id);
|
|
60
54
|
})
|
|
61
55
|
});
|
|
@@ -149,25 +143,19 @@ const ClipboardText = forwardRef(({ text, textToCopy, masked = false, className,
|
|
|
149
143
|
tooltipSide,
|
|
150
144
|
scheduleCopiedReset
|
|
151
145
|
]);
|
|
152
|
-
const copyButton = /* @__PURE__ */
|
|
146
|
+
const copyButton = /* @__PURE__ */ jsx(Button, {
|
|
153
147
|
ref: buttonRef,
|
|
154
148
|
size: sizeConfig.buttonSize,
|
|
155
149
|
variant: "ghost",
|
|
156
|
-
className: cn("
|
|
150
|
+
className: cn("rounded-l-none rounded-r-[inherit] border-l! border-kumo-line! px-3", "focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset"),
|
|
157
151
|
onClick: copyToClipboard,
|
|
158
152
|
"aria-label": copyAction,
|
|
159
|
-
children:
|
|
160
|
-
className: cn("flex items-center gap-1 transition-all duration-200", copied ? clipboardTextAnimations.slide.animate : clipboardTextAnimations.slide.initial),
|
|
161
|
-
children: /* @__PURE__ */ jsx(CheckIcon, {})
|
|
162
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
163
|
-
className: cn("flex items-center justify-center transition-all duration-200", copied ? clipboardTextAnimations.slide.end : clipboardTextAnimations.slide.animate),
|
|
164
|
-
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
165
|
-
})]
|
|
153
|
+
children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {})
|
|
166
154
|
});
|
|
167
155
|
const visibilityButton = masked ? /* @__PURE__ */ jsx(Button, {
|
|
168
156
|
size: sizeConfig.buttonSize,
|
|
169
157
|
variant: "ghost",
|
|
170
|
-
className: cn("rounded-none border-l! border-kumo-line! px-3", "focus
|
|
158
|
+
className: cn("rounded-none border-l! border-kumo-line! px-3", "focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset"),
|
|
171
159
|
onClick: () => setRevealed((value) => !value),
|
|
172
160
|
"aria-label": revealed ? hideAction : revealAction,
|
|
173
161
|
"aria-pressed": revealed,
|
|
@@ -40,7 +40,9 @@ function Root({ label, required, labelTooltip, description, error, children, siz
|
|
|
40
40
|
});
|
|
41
41
|
return comboboxControl;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
/** Square the trigger's corners on the side where the open popup attaches. */
|
|
44
|
+
const attachedTriggerClasses = "data-popup-open:data-[popup-side=bottom]:rounded-b-none data-popup-open:data-[popup-side=top]:rounded-t-none";
|
|
45
|
+
function Content({ children, className, align = "start", sideOffset = 1, alignOffset, side, anchor, positionMethod, collisionAvoidance, collisionBoundary, collisionPadding, sticky, disableAnchorTracking, container: containerProp }) {
|
|
44
46
|
const contextContainer = usePortalContainer();
|
|
45
47
|
return /* @__PURE__ */ jsx(ComboboxPortal, {
|
|
46
48
|
container: containerProp ?? contextContainer ?? void 0,
|
|
@@ -58,7 +60,7 @@ function Content({ children, className, align = "start", sideOffset = 4, alignOf
|
|
|
58
60
|
sticky,
|
|
59
61
|
disableAnchorTracking,
|
|
60
62
|
children: /* @__PURE__ */ jsx(ComboboxPopup, {
|
|
61
|
-
className: cn("flex flex-col", "max-h-[min(var(--available-height),24rem)] max-w-(--available-width) min-w-(--anchor-width) py-1.5", "bg-kumo-base text-kumo-default", "rounded-lg shadow-lg ring ring-kumo-line", className),
|
|
63
|
+
className: cn("flex flex-col", "max-h-[min(var(--available-height),24rem)] max-w-(--available-width) min-w-(--anchor-width) py-1.5", "bg-kumo-base text-kumo-default", "rounded-lg shadow-lg ring ring-kumo-line", "data-[side=bottom]:rounded-t-none data-[side=top]:rounded-b-none", className),
|
|
62
64
|
children
|
|
63
65
|
})
|
|
64
66
|
})
|
|
@@ -104,7 +106,7 @@ function TriggerValue({ className, children, placeholder, ...triggerProps }) {
|
|
|
104
106
|
className: cn(inputVariants({
|
|
105
107
|
size,
|
|
106
108
|
variant: hasError ? "error" : "default"
|
|
107
|
-
}), "relative flex items-center", "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", "data-[placeholder]:text-kumo-placeholder", iconStyles.padding, className),
|
|
109
|
+
}), "relative flex items-center", "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", "data-[placeholder]:text-kumo-placeholder", attachedTriggerClasses, iconStyles.padding, className),
|
|
108
110
|
children: [/* @__PURE__ */ jsx(ComboboxValue, {
|
|
109
111
|
placeholder,
|
|
110
112
|
children
|
|
@@ -154,7 +156,7 @@ function TriggerInput({ clearLabel = "Clear selection", showOptionsLabel = "Show
|
|
|
154
156
|
className: cn(inputVariants({
|
|
155
157
|
size,
|
|
156
158
|
variant: hasError ? "error" : "default"
|
|
157
|
-
}), "w-full", iconStyles.padding, "disabled:cursor-not-allowed")
|
|
159
|
+
}), "w-full", attachedTriggerClasses, iconStyles.padding, "disabled:cursor-not-allowed")
|
|
158
160
|
}),
|
|
159
161
|
/* @__PURE__ */ jsx(ComboboxClear, {
|
|
160
162
|
"data-kumo-component": "Combobox",
|
|
@@ -184,7 +186,7 @@ function Item({ children, className, ...props }) {
|
|
|
184
186
|
"data-kumo-component": "Combobox",
|
|
185
187
|
"data-kumo-part": "item",
|
|
186
188
|
...props,
|
|
187
|
-
className: cn("group
|
|
189
|
+
className: cn("group grid grid-cols-[1fr_16px] gap-2 px-3 py-1.5 text-base", "cursor-pointer data-highlighted:bg-kumo-tint", "data-[disabled]:cursor-not-allowed data-[disabled]:text-kumo-subtle data-[disabled]:opacity-60 data-[disabled]:data-highlighted:bg-transparent", className),
|
|
188
190
|
children: [/* @__PURE__ */ jsx("div", {
|
|
189
191
|
className: "col-start-1",
|
|
190
192
|
children
|
|
@@ -216,7 +218,7 @@ function List({ className, ...props }) {
|
|
|
216
218
|
function GroupLabel(props) {
|
|
217
219
|
return /* @__PURE__ */ jsx(ComboboxGroupLabel, {
|
|
218
220
|
...props,
|
|
219
|
-
className: cn("
|
|
221
|
+
className: cn("px-3 py-1.5 text-sm text-kumo-subtle", props.className)
|
|
220
222
|
});
|
|
221
223
|
}
|
|
222
224
|
function Group(props) {
|
|
@@ -256,7 +258,7 @@ function TriggerMultipleWithInput({ placeholder, renderItem, className, inputSid
|
|
|
256
258
|
className: cn(inputVariants({
|
|
257
259
|
size,
|
|
258
260
|
variant: hasError ? "error" : "default"
|
|
259
|
-
}), "flex flex-col", "gap-1 px-1.5 py-1", sizeToMinHeight[size], "h-auto", "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", className),
|
|
261
|
+
}), "flex flex-col", "gap-1 px-1.5 py-1", sizeToMinHeight[size], "h-auto", "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", "has-[[data-popup-open][data-popup-side=bottom]]:rounded-b-none has-[[data-popup-open][data-popup-side=top]]:rounded-t-none", className),
|
|
260
262
|
children: [inputSide === "top" && renderTriggerInput("w-full border-0 bg-inherit px-2 py-1"), /* @__PURE__ */ jsxs("div", {
|
|
261
263
|
className: "flex flex-1 flex-wrap items-center gap-1.5",
|
|
262
264
|
children: [
|
|
@@ -48,13 +48,13 @@ const renderIconNode = (iconProp) => {
|
|
|
48
48
|
* Insets a row without an icon when another row in the same popup has one,
|
|
49
49
|
* so the text of every row lines up. Same result as the `inset` prop.
|
|
50
50
|
*/
|
|
51
|
-
const autoInsetClasses = "group-has-[[data-kumo-part=icon]]/menu:not-has-[[data-kumo-part=icon]]:pl-
|
|
51
|
+
const autoInsetClasses = "group-has-[[data-kumo-part=icon]]/menu:not-has-[[data-kumo-part=icon]]:pl-9";
|
|
52
52
|
/**
|
|
53
53
|
* Shared layout and interaction styles for every selectable menu row
|
|
54
54
|
* (Item, LinkItem, SubTrigger, CheckboxItem, RadioItem) so they highlight
|
|
55
55
|
* with the same colour, radius and state.
|
|
56
56
|
*/
|
|
57
|
-
const menuRowClasses = cn("relative flex cursor-default items-center gap-2
|
|
57
|
+
const menuRowClasses = cn("relative flex cursor-default items-center gap-2 px-3 py-1.5 text-base outline-hidden select-none", "focus:text-kumo-default", "data-highlighted:bg-kumo-tint", "data-disabled:pointer-events-none data-disabled:opacity-50", autoInsetClasses);
|
|
58
58
|
function isBlockSide(side) {
|
|
59
59
|
return side === "top" || side === "bottom";
|
|
60
60
|
}
|
|
@@ -71,7 +71,7 @@ const DropdownMenuSubTrigger = React$1.forwardRef(({ className, inset, children,
|
|
|
71
71
|
ref,
|
|
72
72
|
"data-kumo-component": "DropdownMenu",
|
|
73
73
|
"data-kumo-part": "submenu-trigger",
|
|
74
|
-
className: cn(menuRowClasses, "data-popup-open:bg-kumo-tint", inset && "pl-
|
|
74
|
+
className: cn(menuRowClasses, "data-popup-open:bg-kumo-tint", inset && "pl-9", className),
|
|
75
75
|
...props,
|
|
76
76
|
children: [
|
|
77
77
|
renderIconNode(IconComponent),
|
|
@@ -121,7 +121,7 @@ const DropdownMenuPopup = React$1.forwardRef(({ className, ...props }, ref) => /
|
|
|
121
121
|
ref,
|
|
122
122
|
"data-kumo-component": "DropdownMenu",
|
|
123
123
|
"data-kumo-part": "popup",
|
|
124
|
-
className: cn("group/menu overflow-hidden bg-kumo-control text-kumo-default outline-hidden", "max-h-[var(--available-height)] overflow-y-auto", "rounded-lg shadow-lg ring ring-kumo-line", "min-w-36
|
|
124
|
+
className: cn("group/menu overflow-hidden bg-kumo-control text-kumo-default outline-hidden", "max-h-[var(--available-height)] overflow-y-auto", "rounded-lg shadow-lg ring ring-kumo-line", "min-w-36 py-1.5", "origin-(--transform-origin) transition-[transform,scale,opacity] duration-150 motion-reduce:transition-none", "data-starting-style:scale-95 data-starting-style:opacity-0", "data-ending-style:scale-95 data-ending-style:opacity-0", "data-instant:duration-0", className),
|
|
125
125
|
...props
|
|
126
126
|
}));
|
|
127
127
|
DropdownMenuPopup.displayName = "DropdownMenuPopup";
|
|
@@ -215,7 +215,7 @@ const DropdownMenuItem = React$1.forwardRef(({ className, inset, icon: IconCompo
|
|
|
215
215
|
ref,
|
|
216
216
|
"data-kumo-component": "DropdownMenu",
|
|
217
217
|
"data-kumo-part": "item",
|
|
218
|
-
className: cn(menuRowClasses, inset && "pl-
|
|
218
|
+
className: cn(menuRowClasses, inset && "pl-9", dropdownVariants({ variant }), className),
|
|
219
219
|
render: href ? linkContent : render,
|
|
220
220
|
...props,
|
|
221
221
|
children: useRenderProp ? void 0 : innerContent
|
|
@@ -251,7 +251,7 @@ const DropdownMenuLinkItem = React$1.forwardRef(({ className, inset, icon: IconC
|
|
|
251
251
|
ref,
|
|
252
252
|
"data-kumo-component": "DropdownMenu",
|
|
253
253
|
"data-kumo-part": "link-item",
|
|
254
|
-
className: cn(menuRowClasses, "text-inherit no-underline", inset && "pl-
|
|
254
|
+
className: cn(menuRowClasses, "text-inherit no-underline", inset && "pl-9", dropdownVariants({ variant }), className),
|
|
255
255
|
...props,
|
|
256
256
|
children: [IconComponent && renderIconNode(IconComponent), children]
|
|
257
257
|
});
|
|
@@ -261,7 +261,7 @@ const DropdownMenuCheckboxItem = React$1.forwardRef(({ className, children, chec
|
|
|
261
261
|
ref,
|
|
262
262
|
"data-kumo-component": "DropdownMenu",
|
|
263
263
|
"data-kumo-part": "checkbox-item",
|
|
264
|
-
className: cn(menuRowClasses, "pl-
|
|
264
|
+
className: cn(menuRowClasses, "pl-9 transition-colors", className),
|
|
265
265
|
checked,
|
|
266
266
|
...props,
|
|
267
267
|
children: [/* @__PURE__ */ jsx(MenuCheckboxItemIndicator, {
|
|
@@ -275,13 +275,13 @@ const DropdownMenuCheckboxItem = React$1.forwardRef(({ className, children, chec
|
|
|
275
275
|
DropdownMenuCheckboxItem.displayName = MenuCheckboxItem.displayName;
|
|
276
276
|
const DropdownMenuLabel = React$1.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(MenuGroupLabel, {
|
|
277
277
|
ref,
|
|
278
|
-
className: cn("px-
|
|
278
|
+
className: cn("px-3 py-1.5 text-base font-semibold", autoInsetClasses, inset && "pl-9", className),
|
|
279
279
|
...props
|
|
280
280
|
}));
|
|
281
281
|
DropdownMenuLabel.displayName = MenuGroupLabel.displayName;
|
|
282
282
|
const DropdownMenuSeparator = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Separator, {
|
|
283
283
|
ref,
|
|
284
|
-
className: cn("
|
|
284
|
+
className: cn("my-1 h-px bg-kumo-hairline", className),
|
|
285
285
|
...props
|
|
286
286
|
}));
|
|
287
287
|
DropdownMenuSeparator.displayName = Separator.displayName;
|
|
@@ -296,7 +296,7 @@ const DropdownMenuRadioItem = React$1.forwardRef(({ className, children, inset,
|
|
|
296
296
|
ref,
|
|
297
297
|
"data-kumo-component": "DropdownMenu",
|
|
298
298
|
"data-kumo-part": "radio-item",
|
|
299
|
-
className: cn(menuRowClasses, inset && "pl-
|
|
299
|
+
className: cn(menuRowClasses, inset && "pl-9", className),
|
|
300
300
|
...props,
|
|
301
301
|
children: [IconComponent && renderIconNode(IconComponent), children]
|
|
302
302
|
}));
|
|
@@ -65,7 +65,7 @@ function Empty({ icon, title, description, commandLine, contents, size = "base",
|
|
|
65
65
|
})]
|
|
66
66
|
}),
|
|
67
67
|
commandLine && /* @__PURE__ */ jsxs("div", {
|
|
68
|
-
className: cn("relative inline-flex h-10 max-w-8/10 transform-gpu items-center gap-2 rounded-lg
|
|
68
|
+
className: cn("relative inline-flex h-10 max-w-8/10 transform-gpu items-center gap-2 rounded-lg bg-kumo-overlay pr-2 pl-3 font-mono shadow-xs ring ring-kumo-line"),
|
|
69
69
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
70
70
|
className: "inline-flex min-w-0 items-baseline gap-2",
|
|
71
71
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -84,7 +84,7 @@ function Empty({ icon, title, description, commandLine, contents, size = "base",
|
|
|
84
84
|
onClick: handleCopy,
|
|
85
85
|
children: emptyStateCopied ? /* @__PURE__ */ jsx(CheckIcon, {
|
|
86
86
|
size: 16,
|
|
87
|
-
className: "
|
|
87
|
+
className: "text-kumo-success"
|
|
88
88
|
}) : /* @__PURE__ */ jsx(CopyIcon, { size: 16 })
|
|
89
89
|
})]
|
|
90
90
|
}),
|
|
@@ -7,7 +7,7 @@ import { t as Button } from "./button-hzvowfkbathmx8yg.js";
|
|
|
7
7
|
import { n as useKumoLocale } from "./locale-provider-j4ii538ntyok36r6.js";
|
|
8
8
|
import { t as Text } from "./text-nqum95flcp07ac9s.js";
|
|
9
9
|
import { t as LayerCard } from "./layer-card-lsmeuqic9i1isv2b.js";
|
|
10
|
-
import { t as DropdownMenu } from "./dropdown-
|
|
10
|
+
import { t as DropdownMenu } from "./dropdown-e5zk0ez21busnt0b.js";
|
|
11
11
|
import { i as ScrollAreaViewport, n as ScrollAreaContent, r as ScrollAreaScrollbar, s as ScrollAreaRoot, t as ScrollAreaThumb } from "./ScrollAreaThumb-hxig41yn4lrurd3o.js";
|
|
12
12
|
import { t as ButtonGroup } from "./button-group-biv43ksvaipc3p5n.js";
|
|
13
13
|
import { a as DrawerRoot, g as DrawerBackdrop, h as DrawerClose, i as DrawerTitle, m as DrawerContent, o as DrawerPortal, p as DrawerDescription, r as DrawerTrigger, s as DrawerPopup, t as DrawerViewport } from "./DrawerViewport-mzqpwvqtylnad8ib.js";
|
|
@@ -57,12 +57,12 @@ function useMediaQuery(query, options) {
|
|
|
57
57
|
const KUMO_LAYER_DIALOG_VARIANTS = {
|
|
58
58
|
size: {
|
|
59
59
|
sm: {
|
|
60
|
-
classes: "sm:max-w-
|
|
61
|
-
description: "Compact desktop dialog width (
|
|
60
|
+
classes: "sm:max-w-sm",
|
|
61
|
+
description: "Compact desktop dialog width (384px)"
|
|
62
62
|
},
|
|
63
63
|
base: {
|
|
64
|
-
classes: "sm:max-w-
|
|
65
|
-
description: "Default desktop dialog width (
|
|
64
|
+
classes: "sm:max-w-md",
|
|
65
|
+
description: "Default desktop dialog width (448px)"
|
|
66
66
|
},
|
|
67
67
|
lg: {
|
|
68
68
|
classes: "sm:max-w-2xl",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as cn } from "./vendor-styling-gs32v7xt5znc8kg0.js";
|
|
3
3
|
import { t as InputGroup } from "./input-group-h9fepskc84e1h11n.js";
|
|
4
|
-
import { t as Select } from "./select-
|
|
4
|
+
import { t as Select } from "./select-h2pejw38n5z3l59r.js";
|
|
5
5
|
import { createContext, useContext, useEffect, useMemo, useState } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { CaretDoubleLeftIcon, CaretDoubleRightIcon, CaretLeftIcon, CaretRightIcon } from "@phosphor-icons/react";
|
|
@@ -215,7 +215,7 @@ function Option({ children, value, disabled, className }) {
|
|
|
215
215
|
"data-kumo-part": "option",
|
|
216
216
|
value,
|
|
217
217
|
disabled,
|
|
218
|
-
className: cn("group
|
|
218
|
+
className: cn("group flex cursor-pointer items-center justify-between gap-2 px-3 py-1.5 text-base outline-none focus-visible:outline-hidden", "data-highlighted:bg-kumo-tint", "data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", className),
|
|
219
219
|
children: [/* @__PURE__ */ jsx(SelectItemText, { children }), /* @__PURE__ */ jsx(SelectItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })]
|
|
220
220
|
});
|
|
221
221
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-
|
|
2
|
+
import { i as autocompleteVariants, n as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, r as KUMO_AUTOCOMPLETE_VARIANTS, t as Autocomplete } from "../chunks/autocomplete-nsvacdbq7uz0m71c.js";
|
|
3
3
|
export { Autocomplete, KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, KUMO_AUTOCOMPLETE_VARIANTS, autocompleteVariants };
|
package/dist/components/empty.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-
|
|
2
|
+
import { i as emptyVariants, n as KUMO_EMPTY_DEFAULT_VARIANTS, r as KUMO_EMPTY_VARIANTS, t as Empty } from "../chunks/empty-ijs6kgnd72lv3u94.js";
|
|
3
3
|
export { Empty, KUMO_EMPTY_DEFAULT_VARIANTS, KUMO_EMPTY_VARIANTS, emptyVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "../index-
|
|
1
|
+
import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "../index-CNoz2NNg.js";
|
|
2
2
|
export { type KumoLayerDialogPrimaryVariant, type KumoLayerDialogSize, type KumoLayerDialogVerticalAlign, LayerDialog, type LayerDialogActionProps, type LayerDialogActionsProps, type LayerDialogBodyProps, type LayerDialogContentProps, type LayerDialogDescriptionProps, type LayerDialogPrimaryProps, type LayerDialogProps, type LayerDialogRootProps, type LayerDialogTitleProps };
|
|
@@ -5,12 +5,12 @@ import { Drawer } from "@base-ui/react/drawer";
|
|
|
5
5
|
declare const KUMO_LAYER_DIALOG_VARIANTS: {
|
|
6
6
|
readonly size: {
|
|
7
7
|
readonly sm: {
|
|
8
|
-
readonly classes: "sm:max-w-
|
|
9
|
-
readonly description: "Compact desktop dialog width (
|
|
8
|
+
readonly classes: "sm:max-w-sm";
|
|
9
|
+
readonly description: "Compact desktop dialog width (384px)";
|
|
10
10
|
};
|
|
11
11
|
readonly base: {
|
|
12
|
-
readonly classes: "sm:max-w-
|
|
13
|
-
readonly description: "Default desktop dialog width (
|
|
12
|
+
readonly classes: "sm:max-w-md";
|
|
13
|
+
readonly description: "Default desktop dialog width (448px)";
|
|
14
14
|
};
|
|
15
15
|
readonly lg: {
|
|
16
16
|
readonly classes: "sm:max-w-2xl";
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { a as Textarea, i as InputAreaProps, r as InputArea } from "./index-B6Wo
|
|
|
34
34
|
import { a as labelContentVariants, i as LabelProps, n as KUMO_LABEL_VARIANTS, o as labelVariants, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "./index-CE09bLNb.js";
|
|
35
35
|
import { t as LayerCard } from "./layer-card-BNIn9pqy.js";
|
|
36
36
|
import "./components/layer-card.js";
|
|
37
|
-
import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "./index-
|
|
37
|
+
import { a as LayerDialogActionProps, c as LayerDialogContentProps, d as LayerDialogProps, f as LayerDialogRootProps, i as LayerDialog, l as LayerDialogDescriptionProps, n as KumoLayerDialogSize, o as LayerDialogActionsProps, p as LayerDialogTitleProps, r as KumoLayerDialogVerticalAlign, s as LayerDialogBodyProps, t as KumoLayerDialogPrimaryVariant, u as LayerDialogPrimaryProps } from "./index-CNoz2NNg.js";
|
|
38
38
|
import { n as LinkProvider, r as useLinkComponent, t as LinkComponentProps } from "./link-provider-tz-NJp9x.js";
|
|
39
39
|
import { KUMO_LINK_DEFAULT_VARIANTS, KUMO_LINK_VARIANTS, KumoLinkVariant, KumoLinkVariantsProps, Link, LinkProps, linkVariants } from "./components/link.js";
|
|
40
40
|
import { n as Loader, t as SkeletonLine } from "./index-Dx7hOWUc.js";
|