@fldr/ui 0.3.4 → 0.3.6

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/THEMING.md CHANGED
@@ -81,7 +81,7 @@ Density is separate from the color theme, so any theme can be compact:
81
81
  <html data-theme="fldr-green" data-density="compact">
82
82
  ```
83
83
 
84
- `compact` ships in `theme-fldr.css`. It shrinks the spacing unit from `0.25rem` to `0.22rem` and body text from 14px to 13px. Every Kumo size is a multiple of `--spacing`, so controls, gaps and padding all tighten together. Define your own with `defineDensity({ name, spacing, typography })` and `generateDensityCSS()`.
84
+ Two densities ship in `theme-fldr.css`. `comfortable` is the default and applies without an attribute: spacing `0.24rem` and 13.67px body text, a third of the way from Kumo's stock `0.25rem`/14px toward compact. `compact` goes to `0.22rem` and 13px. Every Kumo size is a multiple of `--spacing`, so controls, gaps and padding all tighten together. Define your own with `defineDensity({ name, spacing, typography })` and `generateDensityCSS()`; pass `default: true` to also apply it on `:root`.
85
85
 
86
86
  ## PandaCSS
87
87
 
@@ -1398,7 +1398,6 @@
1398
1398
  "border-kumo-line",
1399
1399
  "outline-kumo-line",
1400
1400
  "ring-kumo-brand",
1401
- "ring-kumo-focus",
1402
1401
  "text-kumo-default"
1403
1402
  ],
1404
1403
  "styling": {
@@ -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`, `ring-kumo-focus`, `text-kumo-default`
1831
+ `bg-kumo-base`, `border-kumo-line`, `outline-kumo-line`, `ring-kumo-brand`, `text-kumo-default`
1832
1832
 
1833
1833
  **Styling:**
1834
1834
 
@@ -1 +1 @@
1
- 1795498758989
1
+ 1795501276312
@@ -224,8 +224,8 @@ export declare const ButtonPropsSchema: z.ZodObject<{
224
224
  }>>;
225
225
  size: z.ZodOptional<z.ZodEnum<{
226
226
  base: "base";
227
- sm: "sm";
228
227
  xs: "xs";
228
+ sm: "sm";
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
- sm: "sm";
679
678
  xs: "xs";
679
+ sm: "sm";
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
- sm: "sm";
892
891
  xs: "xs";
892
+ sm: "sm";
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
- sm: "sm";
904
903
  xs: "xs";
904
+ sm: "sm";
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
- sm: "sm";
948
947
  xs: "xs";
948
+ sm: "sm";
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
- sm: "sm";
1149
1148
  xs: "xs";
1149
+ sm: "sm";
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
- sm: "sm";
1200
1199
  xs: "xs";
1200
+ sm: "sm";
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
- sm: "sm";
1414
1413
  xs: "xs";
1414
+ sm: "sm";
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
- sm: "sm";
1506
1505
  xs: "xs";
1506
+ sm: "sm";
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
- sm: "sm";
1716
1715
  xs: "xs";
1716
+ sm: "sm";
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
- sm: "sm";
2167
2166
  xs: "xs";
2167
+ sm: "sm";
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
- sm: "sm";
2380
2379
  xs: "xs";
2380
+ sm: "sm";
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
- sm: "sm";
2392
2391
  xs: "xs";
2392
+ sm: "sm";
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
- sm: "sm";
2436
2435
  xs: "xs";
2436
+ sm: "sm";
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
- sm: "sm";
2637
2636
  xs: "xs";
2637
+ sm: "sm";
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
- sm: "sm";
2688
2687
  xs: "xs";
2688
+ sm: "sm";
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
- sm: "sm";
2902
2901
  xs: "xs";
2902
+ sm: "sm";
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
- sm: "sm";
2994
2993
  xs: "xs";
2994
+ sm: "sm";
2995
2995
  lg: "lg";
2996
2996
  }>>;
2997
2997
  }, z.core.$strip>;
@@ -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", updateKey > 0 && "animate-clipboard-toast-bump"),
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
- }, updateKey)
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__ */ jsxs(Button, {
146
+ const copyButton = /* @__PURE__ */ jsx(Button, {
153
147
  ref: buttonRef,
154
148
  size: sizeConfig.buttonSize,
155
149
  variant: "ghost",
156
- className: cn("relative isolate overflow-hidden rounded-l-none rounded-r-[inherit] border-l! border-kumo-line! px-3 transition-all duration-200", "focus:ring-kumo-focus/50 focus:ring-inset", "focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset"),
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: [/* @__PURE__ */ jsx("span", {
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:ring-kumo-focus/50 focus:ring-inset", "focus-visible:ring-2 focus-visible:ring-kumo-brand focus-visible:ring-inset"),
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,
@@ -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 border border-white bg-kumo-overlay pr-2 pl-3 font-mono shadow-xs ring ring-kumo-line"),
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: "animate-bounce-in text-kumo-success"
87
+ className: "text-kumo-success"
88
88
  }) : /* @__PURE__ */ jsx(CopyIcon, { size: 16 })
89
89
  })]
90
90
  }),
@@ -252,11 +252,13 @@ function useOverflowDetect(enabled, watchKey) {
252
252
  subtree: true
253
253
  });
254
254
  el.addEventListener("scroll", check, { passive: true });
255
+ el.addEventListener("transitionend", check);
255
256
  check();
256
257
  return () => {
257
258
  ro.disconnect();
258
259
  mo.disconnect();
259
260
  el.removeEventListener("scroll", check);
261
+ el.removeEventListener("transitionend", check);
260
262
  };
261
263
  }, [enabled]);
262
264
  return {
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as ClipboardText } from "../chunks/clipboard-text-oukrnke1s3kebk3y.js";
2
+ import { t as ClipboardText } from "../chunks/clipboard-text-ejyilhenww9v18l4.js";
3
3
  export { ClipboardText };
@@ -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-e0onzpyokyl6h9bp.js";
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,3 +1,3 @@
1
1
  "use client";
2
- import { t as Tabs } from "../chunks/tabs-o59bv7348nh2gppm.js";
2
+ import { t as Tabs } from "../chunks/tabs-cja62qojznpj99et.js";
3
3
  export { Tabs };
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import { i as fieldVariants, n as KUMO_FIELD_DEFAULT_VARIANTS, r as KUMO_FIELD_V
18
18
  import { r as inputVariants, t as Input } from "./chunks/input-kfi46426y22ocoo4.js";
19
19
  import { n as Textarea, t as InputArea } from "./chunks/input-m2tfec2viezoz9hh.js";
20
20
  import { t as InputGroup } from "./chunks/input-group-h9fepskc84e1h11n.js";
21
- import { t as ClipboardText } from "./chunks/clipboard-text-oukrnke1s3kebk3y.js";
21
+ import { t as ClipboardText } from "./chunks/clipboard-text-ejyilhenww9v18l4.js";
22
22
  import { t as Text } from "./chunks/text-nqum95flcp07ac9s.js";
23
23
  import { i as KUMO_INLINE_COPY_TEXT_VARIANTS, n as KUMO_INLINE_COPY_TEXT_DEFAULT_VARIANTS, r as KUMO_INLINE_COPY_TEXT_STYLING, t as InlineCopyText } from "./chunks/inline-copy-text-izxpvnrtebcqlquf.js";
24
24
  import { n as CodeBlock, t as Code } from "./chunks/code-jtbk2mo5hmdbk8bu.js";
@@ -38,7 +38,7 @@ import { t as Select } from "./chunks/select-h2pejw38n5z3l59r.js";
38
38
  import { t as Pagination } from "./chunks/pagination-n96r3xdok9nc3pu5.js";
39
39
  import { t as Surface } from "./chunks/surface-jr8x5hy0gucjk5ig.js";
40
40
  import { r as Switch } from "./chunks/switch-nc8thi7ogd51m3gi.js";
41
- import { t as Tabs } from "./chunks/tabs-o59bv7348nh2gppm.js";
41
+ import { t as Tabs } from "./chunks/tabs-cja62qojznpj99et.js";
42
42
  import { r as Table } from "./chunks/table-ngl1b5yc8mcur662.js";
43
43
  import { i as useKumoToastManager, n as Toasty, r as createKumoToastManager, t as ToastProvider } from "./chunks/toast-ljpenshot856xqq4.js";
44
44
  import { n as KUMO_POPOVER_VARIANTS, r as Popover, t as KUMO_POPOVER_DEFAULT_VARIANTS } from "./chunks/popover-nqrt3ykqv6sic8pz.js";
@@ -47,7 +47,7 @@ import { a as radioVariants, i as RadioGroup, n as KUMO_RADIO_VARIANTS, r as Rad
47
47
  import { n as KUMO_COMMAND_PALETTE_DEFAULT_VARIANTS, r as KUMO_COMMAND_PALETTE_VARIANTS, t as CommandPalette } from "./chunks/command-palette-d45ueqbuxygu87ir.js";
48
48
  import "./components/link.js";
49
49
  import { t as Breadcrumb } from "./chunks/breadcrumbs-z1jo40oxlw8e4eh4.js";
50
- import { t as Empty } from "./chunks/empty-e0onzpyokyl6h9bp.js";
50
+ import { t as Empty } from "./chunks/empty-ijs6kgnd72lv3u94.js";
51
51
  import { a as gridItemVariants, i as KUMO_GRID_VARIANTS, n as GridItem, o as gridVariants, r as KUMO_GRID_DEFAULT_VARIANTS, t as Grid } from "./chunks/grid-nwiczrab3r4w0zr2.js";
52
52
  import { a as generateCloudflareLogoSvg, i as PoweredByCloudflare, n as KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS, r as KUMO_CLOUDFLARE_LOGO_VARIANTS, t as CloudflareLogo } from "./chunks/cloudflare-logo-d8mid9xr190h78cu.js";
53
53
  import { t as DatePicker } from "./chunks/date-picker-ija2bz17ai6ypnao.js";
@@ -113,26 +113,6 @@
113
113
  }
114
114
  }
115
115
 
116
- @keyframes bounce-in {
117
- 0% {
118
- transform: scale(0.6);
119
- opacity: 0;
120
- }
121
-
122
- 50% {
123
- transform: scale(1.2);
124
- opacity: 1;
125
- }
126
-
127
- 100% {
128
- transform: scale(1);
129
- }
130
- }
131
-
132
- .animate-bounce-in {
133
- animation: bounce-in 0.4s ease-out;
134
- }
135
-
136
116
  @keyframes shimmer {
137
117
  0% {
138
118
  transform: translateX(-100%);
@@ -202,32 +182,6 @@
202
182
  }
203
183
  }
204
184
 
205
- /* Subtle bump for small anchored clipboard "Copied" toasts */
206
- @keyframes clipboard-toast-bump {
207
- 0% {
208
- transform: scale(1);
209
- }
210
-
211
- 35% {
212
- transform: scale(1.04);
213
- }
214
-
215
- 100% {
216
- transform: scale(1);
217
- }
218
- }
219
-
220
- .animate-clipboard-toast-bump {
221
- animation: clipboard-toast-bump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
222
- transform-origin: center;
223
- }
224
-
225
- @media (prefers-reduced-motion: reduce) {
226
- .animate-clipboard-toast-bump {
227
- animation: none;
228
- }
229
- }
230
-
231
185
  @layer base {
232
186
  .skeleton-line {
233
187
  position: relative;