@stoa-dev/kit 1.0.3 → 1.1.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/display/BarChart/index.js +147 -31
  3. package/dist/display/BarChart/index.js.map +1 -1
  4. package/dist/i18n/locales/at.json.js +16 -14
  5. package/dist/i18n/locales/at.json.js.map +1 -1
  6. package/dist/i18n/locales/de.json.js +16 -14
  7. package/dist/i18n/locales/de.json.js.map +1 -1
  8. package/dist/i18n/locales/en.json.js +12 -10
  9. package/dist/i18n/locales/en.json.js.map +1 -1
  10. package/dist/i18n/locales/it.json.js +16 -14
  11. package/dist/i18n/locales/it.json.js.map +1 -1
  12. package/dist/kit.css +1 -1
  13. package/dist/shell/NativeSelect/index.js +5 -5
  14. package/dist/shell/NativeSelect/index.js.map +1 -1
  15. package/dist/types/display/BarChart/index.d.ts +26 -2
  16. package/dist/types/display/BarChart/index.d.ts.map +1 -1
  17. package/dist/types/i18n/index.d.ts +56 -0
  18. package/dist/types/i18n/index.d.ts.map +1 -1
  19. package/dist/types/ui/button/index.d.ts +1 -1
  20. package/dist/types/ui/card/index.d.ts +12 -4
  21. package/dist/types/ui/card/index.d.ts.map +1 -1
  22. package/dist/types/ui/color-picker/color.d.ts +13 -0
  23. package/dist/types/ui/color-picker/color.d.ts.map +1 -0
  24. package/dist/types/ui/color-picker/index.d.ts +10 -0
  25. package/dist/types/ui/color-picker/index.d.ts.map +1 -0
  26. package/dist/types/ui/color-picker-toggle/index.d.ts +8 -0
  27. package/dist/types/ui/color-picker-toggle/index.d.ts.map +1 -0
  28. package/dist/types/ui/index.d.ts +4 -0
  29. package/dist/types/ui/index.d.ts.map +1 -1
  30. package/dist/types/ui/input/index.d.ts +13 -3
  31. package/dist/types/ui/input/index.d.ts.map +1 -1
  32. package/dist/types/ui/marked-text/index.d.ts +9 -0
  33. package/dist/types/ui/marked-text/index.d.ts.map +1 -0
  34. package/dist/types/ui/pill/index.d.ts +8 -0
  35. package/dist/types/ui/pill/index.d.ts.map +1 -0
  36. package/dist/types/ui/radio-group/index.d.ts.map +1 -1
  37. package/dist/ui/card/index.js +109 -52
  38. package/dist/ui/card/index.js.map +1 -1
  39. package/dist/ui/color-picker/ColorPicker.module.scss.js +42 -0
  40. package/dist/ui/color-picker/ColorPicker.module.scss.js.map +1 -0
  41. package/dist/ui/color-picker/color.js +60 -0
  42. package/dist/ui/color-picker/color.js.map +1 -0
  43. package/dist/ui/color-picker/index.js +239 -0
  44. package/dist/ui/color-picker/index.js.map +1 -0
  45. package/dist/ui/color-picker-toggle/index.js +66 -0
  46. package/dist/ui/color-picker-toggle/index.js.map +1 -0
  47. package/dist/ui/index.js +113 -105
  48. package/dist/ui/index.js.map +1 -1
  49. package/dist/ui/input/index.js +68 -10
  50. package/dist/ui/input/index.js.map +1 -1
  51. package/dist/ui/input-group/index.js +9 -9
  52. package/dist/ui/input-group/index.js.map +1 -1
  53. package/dist/ui/marked-text/index.js +28 -0
  54. package/dist/ui/marked-text/index.js.map +1 -0
  55. package/dist/ui/pill/index.js +33 -0
  56. package/dist/ui/pill/index.js.map +1 -0
  57. package/dist/ui/radio-group/index.js +17 -15
  58. package/dist/ui/radio-group/index.js.map +1 -1
  59. package/dist/ui/select/index.js +10 -10
  60. package/dist/ui/select/index.js.map +1 -1
  61. package/dist/ui/switch/index.js +10 -10
  62. package/dist/ui/switch/index.js.map +1 -1
  63. package/dist/ui/textarea/index.js +4 -4
  64. package/dist/ui/textarea/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/styles/instrument.css +17 -17
  67. package/styles/theme.css +134 -1
package/dist/kit.css CHANGED
@@ -1 +1 @@
1
- .stoa-ThemeSwitch-track-1bx4{--thumb-size: 2.125rem;--track-inset: .25rem;position:relative;display:inline-grid;flex-shrink:0;grid-template-rows:var(--thumb-size);grid-template-columns:repeat(2,var(--thumb-size));gap:var(--track-inset);place-items:center;padding:var(--track-inset);border:1px solid var(--input);border-radius:999px;background:color-mix(in srgb,var(--muted) 65%,var(--card));color:var(--muted-foreground);cursor:pointer;transition:border-color .18s ease}.stoa-ThemeSwitch-track-1bx4:hover:not(:disabled){border-color:var(--muted-foreground)}.stoa-ThemeSwitch-track-1bx4:focus-visible{outline:2px solid var(--foreground);outline-offset:3px}.stoa-ThemeSwitch-track-1bx4:disabled{cursor:not-allowed;opacity:.5}.stoa-ThemeSwitch-thumb-1bwy{position:absolute;inset-block-start:var(--track-inset);inset-inline-start:var(--track-inset);inline-size:var(--thumb-size);block-size:var(--thumb-size);border:1px solid color-mix(in srgb,var(--accent) 45%,var(--input));border-radius:50%;background:var(--card) linear-gradient(145deg,color-mix(in srgb,var(--accent) 16%,var(--card)),var(--card));box-shadow:0 1px 3px #00000029;transition:inset-inline-start .24s cubic-bezier(.2,.75,.25,1)}.stoa-ThemeSwitch-track-1bx4[data-state=checked] .stoa-ThemeSwitch-thumb-1bwy{inset-inline-start:calc(var(--thumb-size) + 2 * var(--track-inset))}.stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-moon-czyl{position:relative;inline-size:1rem;block-size:1rem;pointer-events:none;transition:color .18s ease,scale .24s ease}.stoa-ThemeSwitch-track-1bx4[data-state=unchecked] .stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-track-1bx4[data-state=checked] .stoa-ThemeSwitch-moon-czyl{color:var(--foreground);scale:1.125}@media(forced-colors:active){.stoa-ThemeSwitch-thumb-1bwy{border:2px solid Highlight}}@media(prefers-reduced-motion:reduce){.stoa-ThemeSwitch-track-1bx4,.stoa-ThemeSwitch-thumb-1bwy,.stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-moon-czyl{transition:none}}.stoa-AppNavigation-root-12db{position:fixed;inset-block:.75rem;inset-inline-start:.75rem;z-index:40;display:flex;flex-direction:column;align-items:center;gap:.75rem;width:4rem;padding-block:1.25rem;border-radius:1rem;background:color-mix(in srgb,var(--card) 95%,transparent);box-shadow:var(--surface-shadow)}.stoa-AppNavigation-logo-12d7{width:2.25rem;height:2.25rem;margin-bottom:.75rem;border-radius:.5rem}.stoa-AppNavigation-divider-1ctl{width:1.5rem;margin-block:.5rem;border-top:1px solid var(--border)}.stoa-AppNavigation-spacer-8ruf{flex:1}.stoa-AppNavigation-menuButton-1gqk{position:relative}.stoa-AppNavigation-menuButton-1gqk[aria-current=page]{background:var(--accent-wash);color:var(--foreground)}.stoa-AppNavigation-menuButton-1gqk[aria-current=page]:before{content:"";position:absolute;left:-9px;width:3px;height:16px;border-radius:2px;background:var(--accent)}.stoa-AppNavigation-menuButton-1gqk svg{stroke:currentColor}@media(prefers-reduced-motion:reduce){.stoa-AppNavigation-menuButton-1gqk{transition:none}}.stoa-BrandLines-brand-lines-dcsr{display:inline-flex;flex:none;flex-direction:column;align-items:flex-start;gap:4px;width:20px;color:var(--accent)}.stoa-BrandLines-brand-lines-dcsr>i{display:block;width:100%;height:2px;border-radius:2px;background:currentColor}.stoa-BrandLines-brand-lines-dcsr>i:nth-child(2){width:75%}.stoa-BrandLines-brand-lines-dcsr>i:nth-child(3){width:50%}.stoa-BrandLines-brand-lines-loading-1z0s>i{transform-origin:left;animation:stoa-BrandLines-brand-line-pulse-7z2o 1.1s ease-in-out infinite alternate}.stoa-BrandLines-brand-lines-loading-1z0s>i:nth-child(2){animation-delay:.15s}.stoa-BrandLines-brand-lines-loading-1z0s>i:nth-child(3){animation-delay:.3s}@keyframes stoa-BrandLines-brand-line-pulse-7z2o{0%{opacity:.35;transform:scaleX(.55)}to{opacity:1;transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.stoa-BrandLines-brand-lines-loading-1z0s>i{animation:none}}.stoa-PageHeading-page-heading-lq8m{display:flex;align-items:center;gap:.875rem;min-width:0;margin-block:.25rem .5rem;font-size:clamp(1.75rem,2.4vw,2.5rem);line-height:1.15;letter-spacing:-.045em;font-weight:650;overflow-wrap:anywhere}
1
+ .stoa-ColorPicker-picker-m4d3{--picker-surface: color-mix(in srgb, var(--card) 68%, var(--muted));--picker-line: color-mix(in srgb, currentColor 25%, transparent);--picker-padding: clamp(1rem, 5vw, 1.8125rem);width:min(100%,27.5rem);box-sizing:border-box;padding:var(--picker-padding);border-radius:1.375rem;background:var(--picker-surface);color:var(--card-foreground);font-family:var(--font-mono, "Mona Sans Mono", ui-monospace, monospace);box-shadow:var(--surface-shadow)}.stoa-ColorPicker-picker-m4d3 button:focus-visible,.stoa-ColorPicker-picker-m4d3 input:focus-visible{outline:2px solid currentColor;outline-offset:3px}.stoa-ColorPicker-header-i9ri{padding-bottom:1.25rem;border-bottom:1px solid var(--picker-line)}.stoa-ColorPicker-wheel-nqe9{position:relative;width:min(100%,21.25rem);margin:.875rem auto .375rem}.stoa-ColorPicker-wheel-nqe9 svg{display:block;width:100%;aspect-ratio:1}.stoa-ColorPicker-wheel-nqe9:has(.stoa-ColorPicker-hue-input-50uw:focus-visible) .stoa-ColorPicker-indicator-3hrr{stroke-width:3}.stoa-ColorPicker-track-nox6,.stoa-ColorPicker-inner-track-gnno{fill:none;stroke:var(--picker-line);stroke-width:.7}.stoa-ColorPicker-tick-wuc0{stroke:currentColor;stroke-opacity:.4;stroke-width:.8}.stoa-ColorPicker-major-tick-6mya{stroke:currentColor;stroke-opacity:.75;stroke-width:1.5}.stoa-ColorPicker-indicator-3hrr{fill:var(--picker-surface);stroke:currentColor;stroke-width:1.5}.stoa-ColorPicker-hue-ring-10ts{fill:none;stroke:transparent;stroke-width:32;pointer-events:stroke;touch-action:none;cursor:grab}.stoa-ColorPicker-hue-ring-10ts:active{cursor:grabbing}.stoa-ColorPicker-hue-input-50uw{position:absolute;top:0;left:50%;width:1px;height:1px;clip-path:inset(50%);pointer-events:none}.stoa-ColorPicker-center-fws1{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:.375rem;line-height:1.2;pointer-events:none}.stoa-ColorPicker-center-fws1 strong{font-size:clamp(1.125rem,6vw,2.25rem);font-weight:400;letter-spacing:-.06em}.stoa-ColorPicker-caption-1t6d,.stoa-ColorPicker-center-fws1 span,.stoa-ColorPicker-control-qt49 label{font-size:.6875rem;letter-spacing:.09em;text-transform:uppercase}.stoa-ColorPicker-caption-1t6d{color:var(--muted-foreground)}.stoa-ColorPicker-readout-2vje{margin-bottom:1.25rem}.stoa-ColorPicker-readout-2vje [role=status]{display:block;min-height:1rem;line-height:1rem}.stoa-ColorPicker-hex-row-1xik{display:flex;align-items:center;gap:.625rem;margin-block:.375rem}.stoa-ColorPicker-hex-row-1xik input{width:100%;min-width:0;padding-block:.375rem;border-bottom:1px solid var(--picker-line);background:transparent;font-size:1.375rem;letter-spacing:-.04em}.stoa-ColorPicker-hex-row-1xik button{flex-shrink:0;padding:.375rem .625rem;border:1px solid var(--picker-line);border-radius:999px;font-size:.6875rem;text-transform:uppercase;white-space:nowrap;cursor:pointer}.stoa-ColorPicker-hex-row-1xik button:hover{border-color:currentColor}.stoa-ColorPicker-controls-n32o{display:grid;gap:.875rem;padding-top:1rem;border-top:1px solid var(--picker-line)}.stoa-ColorPicker-control-qt49{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.125rem .5rem}.stoa-ColorPicker-control-qt49 span{font-size:.875rem}.stoa-ColorPicker-control-qt49 input{grid-column:1/-1;appearance:none;width:100%;height:1.5rem;margin:0;background:linear-gradient(to right,currentColor var(--progress),var(--picker-line) var(--progress)) center/100% 2px no-repeat;cursor:pointer}.stoa-ColorPicker-control-qt49 input::-webkit-slider-thumb{appearance:none;box-sizing:border-box;width:.9375rem;height:.9375rem;border:3px solid var(--picker-surface);border-radius:50%;background:currentColor;box-shadow:0 0 0 1px currentColor}.stoa-ColorPicker-control-qt49 input::-moz-range-thumb{box-sizing:border-box;width:.9375rem;height:.9375rem;border:3px solid var(--picker-surface);border-radius:50%;background:currentColor;box-shadow:0 0 0 1px currentColor}.stoa-ColorPicker-footer-hhfh{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--picker-line)}.stoa-ColorPicker-swatches-r9ha{display:flex;flex-wrap:wrap;gap:.6875rem;margin-top:.625rem}.stoa-ColorPicker-swatches-r9ha button{width:1.6875rem;height:1.6875rem;border:2px solid var(--picker-surface);border-radius:50%;box-shadow:0 0 0 1px var(--picker-line);cursor:pointer}.stoa-ColorPicker-swatches-r9ha button[aria-pressed=true],.stoa-ColorPicker-swatches-r9ha button:hover{box-shadow:0 0 0 2px currentColor}.stoa-ThemeSwitch-track-1bx4{--thumb-size: 2.125rem;--track-inset: .25rem;position:relative;display:inline-grid;flex-shrink:0;grid-template-rows:var(--thumb-size);grid-template-columns:repeat(2,var(--thumb-size));gap:var(--track-inset);place-items:center;padding:var(--track-inset);border:1px solid var(--input);border-radius:999px;background:color-mix(in srgb,var(--muted) 65%,var(--card));color:var(--muted-foreground);cursor:pointer;transition:border-color .18s ease}.stoa-ThemeSwitch-track-1bx4:hover:not(:disabled){border-color:var(--muted-foreground)}.stoa-ThemeSwitch-track-1bx4:focus-visible{outline:2px solid var(--foreground);outline-offset:3px}.stoa-ThemeSwitch-track-1bx4:disabled{cursor:not-allowed;opacity:.5}.stoa-ThemeSwitch-thumb-1bwy{position:absolute;inset-block-start:var(--track-inset);inset-inline-start:var(--track-inset);inline-size:var(--thumb-size);block-size:var(--thumb-size);border:1px solid color-mix(in srgb,var(--accent) 45%,var(--input));border-radius:50%;background:var(--card) linear-gradient(145deg,color-mix(in srgb,var(--accent) 16%,var(--card)),var(--card));box-shadow:0 1px 3px #00000029;transition:inset-inline-start .24s cubic-bezier(.2,.75,.25,1)}.stoa-ThemeSwitch-track-1bx4[data-state=checked] .stoa-ThemeSwitch-thumb-1bwy{inset-inline-start:calc(var(--thumb-size) + 2 * var(--track-inset))}.stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-moon-czyl{position:relative;inline-size:1rem;block-size:1rem;pointer-events:none;transition:color .18s ease,scale .24s ease}.stoa-ThemeSwitch-track-1bx4[data-state=unchecked] .stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-track-1bx4[data-state=checked] .stoa-ThemeSwitch-moon-czyl{color:var(--foreground);scale:1.125}@media(forced-colors:active){.stoa-ThemeSwitch-thumb-1bwy{border:2px solid Highlight}}@media(prefers-reduced-motion:reduce){.stoa-ThemeSwitch-track-1bx4,.stoa-ThemeSwitch-thumb-1bwy,.stoa-ThemeSwitch-sun-1skq,.stoa-ThemeSwitch-moon-czyl{transition:none}}.stoa-AppNavigation-root-12db{position:fixed;inset-block:.75rem;inset-inline-start:.75rem;z-index:40;display:flex;flex-direction:column;align-items:center;gap:.75rem;width:4rem;padding-block:1.25rem;border-radius:1rem;background:color-mix(in srgb,var(--card) 95%,transparent);box-shadow:var(--surface-shadow)}.stoa-AppNavigation-logo-12d7{width:2.25rem;height:2.25rem;margin-bottom:.75rem;border-radius:.5rem}.stoa-AppNavigation-divider-1ctl{width:1.5rem;margin-block:.5rem;border-top:1px solid var(--border)}.stoa-AppNavigation-spacer-8ruf{flex:1}.stoa-AppNavigation-menuButton-1gqk{position:relative}.stoa-AppNavigation-menuButton-1gqk[aria-current=page]{background:var(--accent-wash);color:var(--foreground)}.stoa-AppNavigation-menuButton-1gqk[aria-current=page]:before{content:"";position:absolute;left:-9px;width:3px;height:16px;border-radius:2px;background:var(--accent)}.stoa-AppNavigation-menuButton-1gqk svg{stroke:currentColor}@media(prefers-reduced-motion:reduce){.stoa-AppNavigation-menuButton-1gqk{transition:none}}.stoa-BrandLines-brand-lines-dcsr{display:inline-flex;flex:none;flex-direction:column;align-items:flex-start;gap:4px;width:20px;color:var(--accent)}.stoa-BrandLines-brand-lines-dcsr>i{display:block;width:100%;height:2px;border-radius:2px;background:currentColor}.stoa-BrandLines-brand-lines-dcsr>i:nth-child(2){width:75%}.stoa-BrandLines-brand-lines-dcsr>i:nth-child(3){width:50%}.stoa-BrandLines-brand-lines-loading-1z0s>i{transform-origin:left;animation:stoa-BrandLines-brand-line-pulse-7z2o 1.1s ease-in-out infinite alternate}.stoa-BrandLines-brand-lines-loading-1z0s>i:nth-child(2){animation-delay:.15s}.stoa-BrandLines-brand-lines-loading-1z0s>i:nth-child(3){animation-delay:.3s}@keyframes stoa-BrandLines-brand-line-pulse-7z2o{0%{opacity:.35;transform:scaleX(.55)}to{opacity:1;transform:scaleX(1)}}@media(prefers-reduced-motion:reduce){.stoa-BrandLines-brand-lines-loading-1z0s>i{animation:none}}.stoa-PageHeading-page-heading-lq8m{display:flex;align-items:center;gap:.875rem;min-width:0;margin-block:.25rem .5rem;font-size:clamp(1.75rem,2.4vw,2.5rem);line-height:1.15;letter-spacing:-.045em;font-weight:650;overflow-wrap:anywhere}
@@ -1,19 +1,19 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { cn as t } from "../../utils/cn.js";
3
3
  function l({
4
- className: o,
4
+ className: e,
5
5
  children: r,
6
- ...e
6
+ ...o
7
7
  }) {
8
8
  return /* @__PURE__ */ i(
9
9
  "select",
10
10
  {
11
11
  "data-slot": "native-select",
12
12
  className: t(
13
- "h-12 w-full rounded-lg border border-input bg-background/70 px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-background/40",
14
- o
13
+ "h-12 w-full rounded-lg border border-input bg-transparent px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
14
+ e
15
15
  ),
16
- ...e,
16
+ ...o,
17
17
  children: r
18
18
  }
19
19
  );
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/shell/NativeSelect/index.tsx"],"sourcesContent":["import { cn } from '../../utils/cn'\n\nexport type NativeSelectProps = React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport function NativeSelect({\n\tclassName,\n\tchildren,\n\t...props\n}: NativeSelectProps) {\n\treturn (\n\t\t<select\n\t\t\tdata-slot='native-select'\n\t\t\tclassName={cn(\n\t\t\t\t'h-12 w-full rounded-lg border border-input bg-background/70 px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 dark:bg-background/40',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</select>\n\t)\n}\n"],"names":["NativeSelect","className","children","props","jsx","cn"],"mappings":";;AAIO,SAASA,EAAa;AAAA,EAC5B,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,GAAsB;AACrB,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/shell/NativeSelect/index.tsx"],"sourcesContent":["import { cn } from '../../utils/cn'\n\nexport type NativeSelectProps = React.SelectHTMLAttributes<HTMLSelectElement>\n\nexport function NativeSelect({\n\tclassName,\n\tchildren,\n\t...props\n}: NativeSelectProps) {\n\treturn (\n\t\t<select\n\t\t\tdata-slot='native-select'\n\t\t\tclassName={cn(\n\t\t\t\t'h-12 w-full rounded-lg border border-input bg-transparent px-3 text-sm outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</select>\n\t)\n}\n"],"names":["NativeSelect","className","children","props","jsx","cn"],"mappings":";;AAIO,SAASA,EAAa;AAAA,EAC5B,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACJ,GAAsB;AACrB,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,MAEH,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
@@ -6,6 +6,28 @@ export interface BarChartItemProps {
6
6
  /** Text for the figure; defaults to the value. */
7
7
  display?: ReactNode;
8
8
  }
9
+ export interface BarChartSegment {
10
+ /** Unique within the item. */
11
+ id: string;
12
+ label: string;
13
+ value: number;
14
+ /** Theme classes that color the segment. */
15
+ className?: string;
16
+ }
17
+ export interface BarChartStackedItemProps {
18
+ /** Presentational content for the visible category label. */
19
+ label: ReactNode;
20
+ /** Presentational override for the visible total. */
21
+ display?: ReactNode;
22
+ segments: readonly BarChartSegment[];
23
+ value?: never;
24
+ totalLabel: string;
25
+ /** Full category name for the trigger and details, e.g. November 2026. */
26
+ detailLabel?: string;
27
+ }
28
+ type ItemProps = (BarChartItemProps & {
29
+ segments?: never;
30
+ }) | BarChartStackedItemProps;
9
31
  export interface BarChartProps {
10
32
  children: ReactNode;
11
33
  variant?: Variant;
@@ -14,12 +36,14 @@ export interface BarChartProps {
14
36
  /** Accessible name of the chart. */
15
37
  label?: string;
16
38
  className?: string;
39
+ /** Formats visible figures, accessible totals and segment details. */
40
+ formatValue?: (value: number) => string;
17
41
  }
18
42
  /**
19
43
  * Bars as firm rounded strokes. `vertical`: columns with figure and label
20
44
  * below; `horizontal`: rows with label, bar and figure.
21
45
  */
22
- export declare function BarChart({ children, variant, max, label, className, }: BarChartProps): import("react").JSX.Element;
23
- export declare function BarChartItem({ label, value, display }: BarChartItemProps): import("react").JSX.Element;
46
+ export declare function BarChart({ children, variant, max, label, className, formatValue, }: BarChartProps): import("react").JSX.Element;
47
+ export declare function BarChartItem(props: ItemProps): import("react").JSX.Element;
24
48
  export {};
25
49
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/BarChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKN,KAAK,SAAS,EAEd,MAAM,OAAO,CAAA;AAGd,KAAK,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AO,CAAC,EAAE,SAAS,CAAA;IACnB,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;IACpC,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,KAAK,SAAS,GACX,CAAC,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,GAC1C,wBAAwB,CAAA;AAE3B,MAAM,WAAW,aAAa;IAC7B,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CACvC;AAqBD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACxB,QAAQ,EACR,OAAoB,EACpB,GAAG,EACH,KAAK,EACL,SAAS,EACT,WAAW,GACX,EAAE,aAAa,+BAuBf;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,+BAG5C"}
@@ -19,6 +19,20 @@ export declare const stoaResources: {
19
19
  switchTheme: string;
20
20
  loadingSettings: string;
21
21
  };
22
+ colorPicker: {
23
+ title: string;
24
+ choose: string;
25
+ hue: string;
26
+ saturation: string;
27
+ lightness: string;
28
+ opacity: string;
29
+ hex: string;
30
+ copy: string;
31
+ copied: string;
32
+ copyFailed: string;
33
+ presets: string;
34
+ select: string;
35
+ };
22
36
  datePicker: {
23
37
  selectDate: string;
24
38
  today: string;
@@ -180,6 +194,20 @@ export declare const stoaResources: {
180
194
  switchTheme: string;
181
195
  loadingSettings: string;
182
196
  };
197
+ colorPicker: {
198
+ title: string;
199
+ choose: string;
200
+ hue: string;
201
+ saturation: string;
202
+ lightness: string;
203
+ opacity: string;
204
+ hex: string;
205
+ copy: string;
206
+ copied: string;
207
+ copyFailed: string;
208
+ presets: string;
209
+ select: string;
210
+ };
183
211
  datePicker: {
184
212
  selectDate: string;
185
213
  today: string;
@@ -341,6 +369,20 @@ export declare const stoaResources: {
341
369
  switchTheme: string;
342
370
  loadingSettings: string;
343
371
  };
372
+ colorPicker: {
373
+ title: string;
374
+ choose: string;
375
+ hue: string;
376
+ saturation: string;
377
+ lightness: string;
378
+ opacity: string;
379
+ hex: string;
380
+ copy: string;
381
+ copied: string;
382
+ copyFailed: string;
383
+ presets: string;
384
+ select: string;
385
+ };
344
386
  datePicker: {
345
387
  selectDate: string;
346
388
  today: string;
@@ -502,6 +544,20 @@ export declare const stoaResources: {
502
544
  switchTheme: string;
503
545
  loadingSettings: string;
504
546
  };
547
+ colorPicker: {
548
+ title: string;
549
+ choose: string;
550
+ hue: string;
551
+ saturation: string;
552
+ lightness: string;
553
+ opacity: string;
554
+ hex: string;
555
+ copy: string;
556
+ copied: string;
557
+ copyFailed: string;
558
+ presets: string;
559
+ select: string;
560
+ };
505
561
  datePicker: {
506
562
  selectDate: string;
507
563
  today: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,OAAO,EAAE,CAAA;AAElB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhB,CAAA;AAEV,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAKrB,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE5E;;;;GAIG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,IAAI,EACV,SAAS,GAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAM,QAQ3E"}
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
2
2
  import type * as React from 'react';
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
- size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
5
+ size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
@@ -1,12 +1,20 @@
1
- import type * as React from 'react';
2
- declare function Card({ className, size, ...props }: React.ComponentProps<'div'> & {
1
+ import * as React from 'react';
2
+ type CardProps = React.ComponentProps<'div'> & {
3
3
  size?: 'default' | 'sm';
4
- }): React.JSX.Element;
4
+ clickable?: boolean;
5
+ /** Primary action of a clickable card. */
6
+ action?: () => void;
7
+ /** Decorative affordance for the primary action. */
8
+ actionIcon?: React.ReactNode;
9
+ /** On hover-capable devices, also reveal a hover-only icon during keyboard focus. */
10
+ actionIconVisibility?: 'hoverOnly' | 'always';
11
+ };
12
+ declare function Card({ className, size, clickable, action, actionIcon, actionIconVisibility, children, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, onClick, ...props }: CardProps): React.JSX.Element;
5
13
  declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
6
14
  declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
15
  declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
8
16
  declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
9
17
  declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
10
18
  declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
11
- export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
19
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, };
12
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,IAAI,CAAC,EACb,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAA;CAAE,qBAY3D;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,OAAO,EACN,IAAI,EACJ,UAAU,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACT,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,SAAS,GAAG,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N,IAAI,EACJ,UAAU,EACV,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,KAAK,SAAS,EACd,SAAS,GACT,CAAA"}
@@ -0,0 +1,13 @@
1
+ export declare const DEFAULT_COLOR = "#FF607F";
2
+ export declare const PRESETS: string[];
3
+ export type Hsla = {
4
+ h: number;
5
+ s: number;
6
+ l: number;
7
+ a: number;
8
+ };
9
+ export declare function normalizeColor(value: string): string | null;
10
+ export declare function hexToHsla(hex: string): Hsla;
11
+ export declare function hslaToHex({ h, s, l, a }: Hsla): string;
12
+ export declare function discTextColor(hex: string, alpha: number): "#000" | "#fff";
13
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/ui/color-picker/color.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,YAAY,CAAA;AACtC,eAAO,MAAM,OAAO,UASnB,CAAA;AAED,MAAM,MAAM,IAAI,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,iBAO3C;AAMD,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAqB3C;AAED,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,UAoB7C;AAGD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,mBAQvD"}
@@ -0,0 +1,10 @@
1
+ export interface ColorPickerProps {
2
+ /** Displayed hex color. Omit to let the picker own the selection. */
3
+ value?: string;
4
+ defaultValue?: string;
5
+ /** Emits uppercase #RRGGBB or #RRGGBBAA. */
6
+ onChange?: (color: string) => void;
7
+ className?: string;
8
+ }
9
+ export declare function ColorPicker({ value, defaultValue, onChange, className, }: ColorPickerProps): import("react").JSX.Element;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/color-picker/index.tsx"],"names":[],"mappings":"AAiBA,MAAM,WAAW,gBAAgB;IAChC,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,SAAS,CAAC,EAAE,MAAM,CAAA;CAClB;AA0BD,wBAAgB,WAAW,CAAC,EAC3B,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,GACT,EAAE,gBAAgB,+BAiPlB"}
@@ -0,0 +1,8 @@
1
+ import { type ColorPickerProps } from '../color-picker';
2
+ export interface ColorPickerToggleProps extends ColorPickerProps {
3
+ /** Accessible name for the trigger. */
4
+ label?: string;
5
+ disabled?: boolean;
6
+ }
7
+ export declare function ColorPickerToggle({ value, defaultValue, onChange, className, label, disabled, }: ColorPickerToggleProps): import("react").JSX.Element;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/color-picker-toggle/index.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAIpE,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC/D,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,CAAC,EACjC,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,KAAK,EACL,QAAQ,GACR,EAAE,sBAAsB,+BA2CxB"}
@@ -2,12 +2,16 @@ export * from './accordion';
2
2
  export * from './button';
3
3
  export * from './calendar';
4
4
  export * from './card';
5
+ export * from './color-picker';
6
+ export * from './color-picker-toggle';
5
7
  export * from './dialog';
6
8
  export * from './dropdown-menu';
7
9
  export * from './field';
8
10
  export * from './input';
9
11
  export * from './input-group';
10
12
  export * from './label';
13
+ export * from './marked-text';
14
+ export * from './pill';
11
15
  export * from './popover';
12
16
  export * from './radio-group';
13
17
  export * from './scroll-area';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -1,4 +1,14 @@
1
- import type * as React from 'react';
2
- declare function Input({ className, type, ...props }: React.ComponentProps<'input'>): React.JSX.Element;
3
- export { Input };
1
+ import { type ComponentProps, type ReactNode } from 'react';
2
+ type InputProps = ComponentProps<'input'> & {
3
+ /** Accessible field name shown inside the empty input until focus. */
4
+ label?: string;
5
+ /** Decorative icon shown inside the right edge of the input. */
6
+ icon?: ReactNode;
7
+ /** Transition used for hover and focus. */
8
+ transitionStyle?: 'default' | 'fancy';
9
+ /** Suggested values offered by the native input picker. */
10
+ suggestions?: readonly string[];
11
+ };
12
+ declare function Input({ className, type, label, icon, transitionStyle, suggestions, list, placeholder, 'aria-label': ariaLabel, onFocus, onBlur, ...props }: InputProps): import("react").JSX.Element;
13
+ export { Input, type InputProps };
4
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,qBAY1E;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,SAAS,EAKd,MAAM,OAAO,CAAA;AAId,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG;IAC3C,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gEAAgE;IAChE,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IACrC,2DAA2D;IAC3D,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAC/B,CAAA;AAED,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,eAA2B,EAC3B,WAAW,EACX,IAAI,EACJ,WAAW,EACX,YAAY,EAAE,SAAS,EACvB,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACR,EAAE,UAAU,+BAiGZ;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,CAAA"}
@@ -0,0 +1,9 @@
1
+ import type { ComponentProps } from 'react';
2
+ type MarkedTextProps = ComponentProps<'div'> & {
3
+ /** CSS color of the leading border. Defaults to the theme accent. */
4
+ color?: string;
5
+ asChild?: boolean;
6
+ };
7
+ declare function MarkedText({ asChild, className, color, style, ...props }: MarkedTextProps): import("react").JSX.Element;
8
+ export { MarkedText, type MarkedTextProps };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/marked-text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,KAAK,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAC9C,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,iBAAS,UAAU,CAAC,EACnB,OAAe,EACf,SAAS,EACT,KAAK,EACL,KAAK,EACL,GAAG,KAAK,EACR,EAAE,eAAe,+BAiBjB;AAED,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { ComponentProps } from 'react';
2
+ type PillProps = ComponentProps<'span'> & {
3
+ variant?: 'default' | 'accent' | 'outline';
4
+ asChild?: boolean;
5
+ };
6
+ declare function Pill({ asChild, className, variant, ...props }: PillProps): import("react").JSX.Element;
7
+ export { Pill, type PillProps };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/pill/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAI3C,KAAK,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACzC,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAA;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAQD,iBAAS,IAAI,CAAC,EACb,OAAe,EACf,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,SAAS,+BAcX;AAED,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/radio-group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAQvD;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAkBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/radio-group/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC5D,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,UAAU,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAQvD;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAoBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
@@ -1,102 +1,159 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { cn as d } from "../../utils/cn.js";
3
- function i({
4
- className: a,
5
- size: t = "default",
6
- ...e
1
+ import { jsx as e, jsxs as w, Fragment as N } from "react/jsx-runtime";
2
+ import * as j from "react";
3
+ import { cn as r } from "../../utils/cn.js";
4
+ const T = 'a[href], button, input, select, textarea, summary, label, [contenteditable]:not([contenteditable="false"]), [role="button"], [role="link"], [tabindex]';
5
+ function I({
6
+ className: t,
7
+ size: a = "default",
8
+ clickable: s = !1,
9
+ action: f,
10
+ actionIcon: i,
11
+ actionIconVisibility: h = "hoverOnly",
12
+ children: g,
13
+ id: v,
14
+ "aria-label": l,
15
+ "aria-labelledby": b,
16
+ onClick: c,
17
+ ...z
7
18
  }) {
8
- return /* @__PURE__ */ r(
9
- "div",
10
- {
11
- "data-slot": "card",
12
- "data-size": t,
13
- className: d(
14
- "group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
15
- a
16
- ),
17
- ...e
18
- }
19
+ const y = j.useId(), d = s && !!(f || c), x = v ?? (d ? y : void 0), o = s && i != null && i !== !1;
20
+ function C(u) {
21
+ const { target: p, currentTarget: m } = u;
22
+ if (!(p instanceof Element) || p.closest('[data-slot="card"]') !== m)
23
+ return;
24
+ const n = p.closest(T);
25
+ n && n !== m && m.contains(n) && n.getAttribute("data-slot") !== "card-trigger" || (c?.(u), u.defaultPrevented || f?.());
26
+ }
27
+ return (
28
+ // biome-ignore lint/a11y/useKeyWithClickEvents lint/a11y/noStaticElementInteractions: The native card trigger handles keyboard activation. The card delegates pointer clicks on its surface.
29
+ /* @__PURE__ */ e(
30
+ "div",
31
+ {
32
+ id: x,
33
+ "data-slot": "card",
34
+ "data-size": a,
35
+ "data-clickable": s ? "true" : void 0,
36
+ ...!d && {
37
+ "aria-label": l,
38
+ "aria-labelledby": b
39
+ },
40
+ onClick: d ? C : c,
41
+ className: r(
42
+ "group/card flex flex-col gap-4 overflow-hidden rounded-xl border-0 bg-card/95 py-5 shadow-(--surface-shadow) text-sm text-card-foreground has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
43
+ s && "relative",
44
+ o ? "pe-9" : d && "pe-3",
45
+ t
46
+ ),
47
+ ...z,
48
+ children: d || o ? /* @__PURE__ */ w(N, { children: [
49
+ g,
50
+ d && /* @__PURE__ */ e(
51
+ "button",
52
+ {
53
+ type: "button",
54
+ "data-slot": "card-trigger",
55
+ "aria-label": l,
56
+ "aria-labelledby": b ?? (l ? void 0 : x),
57
+ className: r(
58
+ "absolute inset-y-0 end-0 outline-none",
59
+ o ? "w-9" : "w-3"
60
+ )
61
+ }
62
+ ),
63
+ o && /* @__PURE__ */ e(
64
+ "span",
65
+ {
66
+ "aria-hidden": "true",
67
+ "data-slot": "card-action-icon",
68
+ "data-visibility": h,
69
+ className: "pointer-events-none absolute end-4 top-1/2 grid size-4 -translate-y-1/2 place-items-center text-muted-foreground [&>svg]:size-full",
70
+ children: i
71
+ }
72
+ )
73
+ ] }) : g
74
+ }
75
+ )
19
76
  );
20
77
  }
21
- function c({ className: a, ...t }) {
22
- return /* @__PURE__ */ r(
78
+ function _({ className: t, ...a }) {
79
+ return /* @__PURE__ */ e(
23
80
  "div",
24
81
  {
25
82
  "data-slot": "card-header",
26
- className: d(
83
+ className: r(
27
84
  "group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-5 sm:px-6 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-5 group-data-[size=sm]/card:[.border-b]:pb-4",
28
- a
85
+ t
29
86
  ),
30
- ...t
87
+ ...a
31
88
  }
32
89
  );
33
90
  }
34
- function n({ className: a, ...t }) {
35
- return /* @__PURE__ */ r(
91
+ function D({ className: t, ...a }) {
92
+ return /* @__PURE__ */ e(
36
93
  "div",
37
94
  {
38
95
  "data-slot": "card-title",
39
- className: d(
96
+ className: r(
40
97
  "font-heading text-lg leading-snug font-semibold tracking-tight group-data-[size=sm]/card:text-sm",
41
- a
98
+ t
42
99
  ),
43
- ...t
100
+ ...a
44
101
  }
45
102
  );
46
103
  }
47
- function l({ className: a, ...t }) {
48
- return /* @__PURE__ */ r(
104
+ function E({ className: t, ...a }) {
105
+ return /* @__PURE__ */ e(
49
106
  "div",
50
107
  {
51
108
  "data-slot": "card-description",
52
- className: d("text-sm text-muted-foreground", a),
53
- ...t
109
+ className: r("text-sm text-muted-foreground", t),
110
+ ...a
54
111
  }
55
112
  );
56
113
  }
57
- function u({ className: a, ...t }) {
58
- return /* @__PURE__ */ r(
114
+ function H({ className: t, ...a }) {
115
+ return /* @__PURE__ */ e(
59
116
  "div",
60
117
  {
61
118
  "data-slot": "card-action",
62
- className: d(
119
+ className: r(
63
120
  "col-start-2 row-span-2 row-start-1 self-start justify-self-end",
64
- a
121
+ t
65
122
  ),
66
- ...t
123
+ ...a
67
124
  }
68
125
  );
69
126
  }
70
- function p({ className: a, ...t }) {
71
- return /* @__PURE__ */ r(
127
+ function O({ className: t, ...a }) {
128
+ return /* @__PURE__ */ e(
72
129
  "div",
73
130
  {
74
131
  "data-slot": "card-content",
75
- className: d("px-5 sm:px-6 group-data-[size=sm]/card:px-3", a),
76
- ...t
132
+ className: r("px-5 sm:px-6 group-data-[size=sm]/card:px-3", t),
133
+ ...a
77
134
  }
78
135
  );
79
136
  }
80
- function m({ className: a, ...t }) {
81
- return /* @__PURE__ */ r(
137
+ function P({ className: t, ...a }) {
138
+ return /* @__PURE__ */ e(
82
139
  "div",
83
140
  {
84
141
  "data-slot": "card-footer",
85
- className: d(
142
+ className: r(
86
143
  "flex items-center rounded-b-xl mt-1 border-t bg-transparent p-5 pt-6 sm:px-6 group-data-[size=sm]/card:p-3 group-data-[size=sm]/card:pt-4",
87
- a
144
+ t
88
145
  ),
89
- ...t
146
+ ...a
90
147
  }
91
148
  );
92
149
  }
93
150
  export {
94
- i as Card,
95
- u as CardAction,
96
- p as CardContent,
97
- l as CardDescription,
98
- m as CardFooter,
99
- c as CardHeader,
100
- n as CardTitle
151
+ I as Card,
152
+ H as CardAction,
153
+ O as CardContent,
154
+ E as CardDescription,
155
+ P as CardFooter,
156
+ _ as CardHeader,
157
+ D as CardTitle
101
158
  };
102
159
  //# sourceMappingURL=index.js.map