@proteos/ui 0.56.0 → 0.57.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 (46) hide show
  1. package/dist/{chunk-IKAX76MB.js → chunk-NSE4VW3Z.js} +45 -21
  2. package/dist/chunk-NSE4VW3Z.js.map +1 -0
  3. package/dist/{chunk-MWAXK66H.cjs → chunk-NWGG5WFL.cjs} +45 -21
  4. package/dist/chunk-NWGG5WFL.cjs.map +1 -0
  5. package/dist/index.cjs +346 -352
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +49 -13
  8. package/dist/index.d.ts +49 -13
  9. package/dist/index.js +93 -99
  10. package/dist/index.js.map +1 -1
  11. package/dist/{pdf-view-MH75RVQP.js → pdf-view-RQ2OZYHJ.js} +3 -3
  12. package/dist/{pdf-view-MH75RVQP.js.map → pdf-view-RQ2OZYHJ.js.map} +1 -1
  13. package/dist/{pdf-view-K4MMVHVY.cjs → pdf-view-RRMAUK3L.cjs} +7 -7
  14. package/dist/{pdf-view-K4MMVHVY.cjs.map → pdf-view-RRMAUK3L.cjs.map} +1 -1
  15. package/package.json +2 -2
  16. package/src/components/avatar/avatar.stories.tsx +13 -0
  17. package/src/components/avatar/avatar.tsx +16 -9
  18. package/src/components/badge-multi-select/badge-multi-select.tsx +2 -2
  19. package/src/components/button/button.stories.tsx +202 -97
  20. package/src/components/button/button.test.tsx +40 -7
  21. package/src/components/button/button.tsx +71 -18
  22. package/src/components/combobox/combobox.tsx +2 -2
  23. package/src/components/currency-input/currency-input.tsx +2 -2
  24. package/src/components/date-picker/calendar-internals.tsx +1 -1
  25. package/src/components/date-picker/date-picker.tsx +3 -3
  26. package/src/components/date-time-picker/date-time-picker.tsx +3 -3
  27. package/src/components/icon-picker/icon-picker.tsx +2 -2
  28. package/src/components/image-lightbox/image-lightbox.tsx +2 -2
  29. package/src/components/menu/menu.tsx +2 -2
  30. package/src/components/modal/modal.test.tsx +9 -0
  31. package/src/components/modal/modal.tsx +17 -5
  32. package/src/components/multi-select/multi-select.tsx +2 -2
  33. package/src/components/popover/popover.tsx +2 -2
  34. package/src/components/record-filter/nested-group.tsx +2 -2
  35. package/src/components/record-filter/record-filter-builder-panel.tsx +11 -23
  36. package/src/components/record-filter/record-filter-chips.tsx +3 -10
  37. package/src/components/segmented-control/segmented-control.stories.tsx +134 -8
  38. package/src/components/segmented-control/segmented-control.test.tsx +81 -8
  39. package/src/components/segmented-control/segmented-control.tsx +38 -19
  40. package/src/components/select/select.tsx +2 -2
  41. package/src/components/time-field/time-field.tsx +1 -1
  42. package/src/components/toast/toast.tsx +2 -2
  43. package/src/components/tooltip/tooltip.tsx +2 -2
  44. package/src/styles.css +58 -0
  45. package/dist/chunk-IKAX76MB.js.map +0 -1
  46. package/dist/chunk-MWAXK66H.cjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { cn, Button, Skeleton } from './chunk-IKAX76MB.js';
2
- export { Button, Skeleton, buttonStyles, cn, skeletonStyles } from './chunk-IKAX76MB.js';
1
+ import { cn, Button, Skeleton } from './chunk-NSE4VW3Z.js';
2
+ export { Button, Skeleton, buttonStyles, cn, skeletonStyles } from './chunk-NSE4VW3Z.js';
3
3
  import { icons, Contact, Paperclip, BookText, Banknote, UsersRound, User, Link2, Braces, Brackets, ToggleLeft, CircleDot, Calendar, Hash, Type, File, FileImage, FileText, FileSpreadsheet, FileArchive, Loader2, X, Shapes, Search, Phone, AudioLines, Video, Mic, AtSign, MessagesSquare, Camera, Send, Linkedin, MessageCircle, Mail, Pipette, Pencil, ChevronDown, GripVertical, SendHorizontal, CircleX, Download, ChevronRight as ChevronRight$1, CircleCheck, CircleAlert, Info } from 'lucide-react';
4
4
  import { tv } from 'tailwind-variants';
5
5
  import { Tabs as Tabs$1, TabPanel, Tab, TabList, MenuTrigger as MenuTrigger$1, SubmenuTrigger as SubmenuTrigger$1, DialogTrigger, Popover as Popover$1, Dialog, DropZone, Text, FileTrigger, Heading, Label, Input as Input$1, ListBox, ListBoxItem, TooltipTrigger as TooltipTrigger$1, Tooltip as Tooltip$1, Button as Button$1, Breadcrumbs as Breadcrumbs$1, Breadcrumb, Link, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, FieldError, TextField, ComboBox, ComboBoxStateContext, Select as Select$1, SelectValue, ModalOverlay, Modal as Modal$1, DatePicker as DatePicker$1, Group, DateInput, DateSegment, Menu as Menu$1, MenuItem as MenuItem$1, Disclosure, DisclosurePanel, ProgressBar as ProgressBar$1, RadioGroup as RadioGroup$1, Radio as Radio$1, Separator as Separator$1, Switch as Switch$1, TextArea, TimeField as TimeField$1, UNSTABLE_ToastQueue, UNSTABLE_ToastRegion, UNSTABLE_Toast, UNSTABLE_ToastContent, Calendar as Calendar$1, CalendarGrid, CalendarGridHeader, CalendarHeaderCell, CalendarGridBody, CalendarCell, DatePickerStateContext } from 'react-aria-components';
@@ -35,8 +35,8 @@ function PopoverContent({
35
35
  className: (renderProps) => cn(
36
36
  "rounded-md border border-rule bg-surface",
37
37
  "shadow-[var(--shadow-float)]",
38
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
39
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1",
38
+ "entering:animate-enter-slide-down",
39
+ "exiting:animate-exit-slide-up",
40
40
  panelClassName,
41
41
  typeof className === "function" ? className(renderProps) : className
42
42
  ),
@@ -403,7 +403,7 @@ function AttributeTypeIcon({
403
403
  var avatarStyles = tv({
404
404
  base: [
405
405
  "inline-grid place-items-center shrink-0 select-none overflow-hidden",
406
- "rounded-full border",
406
+ "border",
407
407
  "font-mono font-medium tracking-[-0.005em]"
408
408
  ],
409
409
  variants: {
@@ -415,17 +415,22 @@ var avatarStyles = tv({
415
415
  },
416
416
  tone: {
417
417
  paper: "bg-surface-3 text-ink border-rule",
418
- indigo: "bg-accent text-[#f0efe8] border-transparent",
419
- moss: "bg-[#5b7052] text-[#f0efe8] border-transparent",
420
- terra: "bg-[#8a5a3f] text-[#f0efe8] border-transparent",
421
- slate: "bg-ink text-surface border-transparent"
418
+ indigo: "bg-tile-indigo text-tile-fg border-transparent",
419
+ moss: "bg-tile-moss text-tile-fg border-transparent",
420
+ terra: "bg-tile-terra text-tile-fg border-transparent",
421
+ slate: "bg-tile-slate text-tile-fg border-transparent"
422
+ },
423
+ shape: {
424
+ circle: "rounded-full",
425
+ square: "rounded-md"
422
426
  }
423
427
  },
424
- defaultVariants: { size: "md", tone: "paper" }
428
+ defaultVariants: { size: "md", tone: "paper", shape: "circle" }
425
429
  });
426
430
  function Avatar({
427
431
  size,
428
432
  tone,
433
+ shape,
429
434
  initials,
430
435
  src,
431
436
  alt = "",
@@ -435,7 +440,7 @@ function Avatar({
435
440
  }) {
436
441
  const [failedSrc, setFailedSrc] = useState(null);
437
442
  const showsImage = Boolean(src) && failedSrc !== src;
438
- return /* @__PURE__ */ jsx("span", { ...props, className: cn(avatarStyles({ size, tone }), className), children: showsImage ? /* @__PURE__ */ jsx(
443
+ return /* @__PURE__ */ jsx("span", { ...props, className: cn(avatarStyles({ size, tone, shape }), className), children: showsImage ? /* @__PURE__ */ jsx(
439
444
  "img",
440
445
  {
441
446
  src: src ?? void 0,
@@ -702,8 +707,8 @@ function IconPicker({
702
707
  className: cn(
703
708
  "w-[316px] rounded-md border border-rule bg-surface p-2",
704
709
  "shadow-[var(--shadow-raised)]",
705
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
706
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
710
+ "entering:animate-enter-slide-down",
711
+ "exiting:animate-exit-slide-up"
707
712
  ),
708
713
  children: [
709
714
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 pb-2", children: [
@@ -953,8 +958,8 @@ function Tooltip({ className, offset = 6, ...props }) {
953
958
  "rounded-md border border-rule bg-surface shadow-[var(--shadow-raised)]",
954
959
  "px-2.5 py-1.5",
955
960
  "font-mono text-[11.5px] text-ink-2",
956
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1 entering:duration-150",
957
- "exiting:animate-out exiting:fade-out-0 exiting:duration-100",
961
+ "entering:animate-enter-slide-down",
962
+ "exiting:animate-exit-fade",
958
963
  typeof className === "function" ? className(renderProps) : className
959
964
  )
960
965
  }
@@ -1310,8 +1315,8 @@ function BadgeMultiSelect({
1310
1315
  // (defaultOpen) — no browser outline around the whole panel.
1311
1316
  "outline-none rounded-md border border-rule bg-surface p-1",
1312
1317
  "shadow-[var(--shadow-raised)]",
1313
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
1314
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
1318
+ "entering:animate-enter-slide-down",
1319
+ "exiting:animate-exit-slide-up"
1315
1320
  ),
1316
1321
  children: /* @__PURE__ */ jsx("div", { ref: popoverRef, children: /* @__PURE__ */ jsx(
1317
1322
  ListBox,
@@ -1857,8 +1862,8 @@ function Combobox({
1857
1862
  "min-w-[var(--trigger-width)]",
1858
1863
  "rounded-md border border-rule bg-surface p-1",
1859
1864
  "shadow-[var(--shadow-raised)]",
1860
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
1861
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
1865
+ "entering:animate-enter-slide-down",
1866
+ "exiting:animate-exit-slide-up"
1862
1867
  ),
1863
1868
  children: /* @__PURE__ */ jsx(
1864
1869
  ListBox,
@@ -2350,8 +2355,8 @@ function Select({
2350
2355
  "z-[1300]",
2351
2356
  "rounded-md border border-rule bg-surface p-1",
2352
2357
  "shadow-[var(--shadow-raised)]",
2353
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
2354
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1",
2358
+ "entering:animate-enter-slide-down",
2359
+ "exiting:animate-exit-slide-up",
2355
2360
  popoverClassName
2356
2361
  ),
2357
2362
  children: [
@@ -2519,7 +2524,9 @@ function ModalContent({
2519
2524
  children,
2520
2525
  className,
2521
2526
  modalClassName,
2527
+ dialogClassName,
2522
2528
  isDismissable = true,
2529
+ "aria-label": ariaLabel,
2523
2530
  ...props
2524
2531
  }) {
2525
2532
  return /* @__PURE__ */ jsx(
@@ -2531,8 +2538,8 @@ function ModalContent({
2531
2538
  "fixed inset-0 z-50 flex items-center justify-center p-4",
2532
2539
  // Warm ink scrim — stays in the Proteos palette (no pure black).
2533
2540
  "bg-[color-mix(in_oklab,var(--color-ink)_40%,transparent)]",
2534
- "entering:animate-in entering:fade-in-0 entering:duration-150",
2535
- "exiting:animate-out exiting:fade-out-0 exiting:duration-100",
2541
+ "entering:animate-enter-fade",
2542
+ "exiting:animate-exit-fade",
2536
2543
  typeof className === "function" ? className(renderProps) : className
2537
2544
  ),
2538
2545
  children: /* @__PURE__ */ jsx(
@@ -2546,11 +2553,18 @@ function ModalContent({
2546
2553
  "flex flex-col max-h-[calc(100dvh-2rem)]",
2547
2554
  "bg-surface border border-rule rounded-lg",
2548
2555
  "shadow-[var(--shadow-float)]",
2549
- "entering:animate-in entering:zoom-in-95 entering:slide-in-from-top-2 entering:duration-150",
2550
- "exiting:animate-out exiting:zoom-out-95 exiting:duration-100",
2556
+ "entering:animate-enter-zoom",
2557
+ "exiting:animate-exit-zoom",
2551
2558
  modalClassName
2552
2559
  ),
2553
- children: /* @__PURE__ */ jsx(Dialog, { className: "outline-none flex flex-col min-h-0 overflow-hidden", children })
2560
+ children: /* @__PURE__ */ jsx(
2561
+ Dialog,
2562
+ {
2563
+ className: cn("outline-none flex flex-col min-h-0 overflow-hidden", dialogClassName),
2564
+ ...ariaLabel !== void 0 ? { "aria-label": ariaLabel } : {},
2565
+ children
2566
+ }
2567
+ )
2554
2568
  }
2555
2569
  )
2556
2570
  }
@@ -2821,8 +2835,8 @@ function CurrencyInput({
2821
2835
  className: cn(
2822
2836
  "min-w-[9rem] rounded-md border border-rule bg-surface p-1",
2823
2837
  "shadow-[var(--shadow-raised)]",
2824
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
2825
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
2838
+ "entering:animate-enter-slide-down",
2839
+ "exiting:animate-exit-slide-up"
2826
2840
  ),
2827
2841
  children: /* @__PURE__ */ jsx(ListBox, { className: "max-h-72 overflow-auto outline-none", children: currencyOptions.map((option) => /* @__PURE__ */ jsxs(
2828
2842
  ListBoxItem,
@@ -4061,7 +4075,7 @@ function CalendarSurface() {
4061
4075
  "data-[outside-month]:text-ink-4",
4062
4076
  "data-[hovered]:bg-surface-2 data-[hovered]:text-ink",
4063
4077
  "data-[focus-visible]:shadow-[var(--shadow-focus)]",
4064
- "data-[selected]:bg-accent data-[selected]:text-[#f0efe8]",
4078
+ "data-[selected]:bg-accent data-[selected]:text-tile-fg",
4065
4079
  "data-[selected]:data-[hovered]:bg-accent-2",
4066
4080
  "data-[disabled]:opacity-30 data-[disabled]:cursor-not-allowed",
4067
4081
  "data-[unavailable]:line-through data-[unavailable]:text-ink-4"
@@ -4122,7 +4136,7 @@ function DatePicker({
4122
4136
  "data-[placeholder]:text-ink-4",
4123
4137
  "data-[type=literal]:text-ink-4",
4124
4138
  // segment focus treatment: indigo fill, paper text
4125
- "data-[focused]:bg-accent data-[focused]:text-[#f0efe8] data-[focused]:rounded-[3px]",
4139
+ "data-[focused]:bg-accent data-[focused]:text-tile-fg data-[focused]:rounded-[3px]",
4126
4140
  "data-[disabled]:cursor-not-allowed"
4127
4141
  )
4128
4142
  }
@@ -4161,8 +4175,8 @@ function DatePicker({
4161
4175
  "w-[var(--trigger-width)] min-w-[18rem] max-w-[500px]",
4162
4176
  "rounded-md border border-rule bg-surface p-4",
4163
4177
  "shadow-[var(--shadow-raised)]",
4164
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
4165
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
4178
+ "entering:animate-enter-slide-down",
4179
+ "exiting:animate-exit-slide-up"
4166
4180
  ),
4167
4181
  children: /* @__PURE__ */ jsx(Dialog, { className: "outline-none", children: /* @__PURE__ */ jsx(CalendarSurface, {}) })
4168
4182
  }
@@ -4176,7 +4190,7 @@ var segmentStyles = cn(
4176
4190
  "data-[placeholder]:text-ink-4",
4177
4191
  "data-[type=literal]:text-ink-4",
4178
4192
  // segment focus treatment: indigo fill, paper text
4179
- "data-[focused]:bg-accent data-[focused]:text-[#f0efe8] data-[focused]:rounded-[3px]",
4193
+ "data-[focused]:bg-accent data-[focused]:text-tile-fg data-[focused]:rounded-[3px]",
4180
4194
  "data-[disabled]:cursor-not-allowed"
4181
4195
  );
4182
4196
  function PopoverTimeField({
@@ -4303,8 +4317,8 @@ function DateTimePicker({
4303
4317
  "w-[var(--trigger-width)] min-w-[18rem] max-w-[500px]",
4304
4318
  "rounded-md border border-rule bg-surface p-4",
4305
4319
  "shadow-[var(--shadow-raised)]",
4306
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
4307
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
4320
+ "entering:animate-enter-slide-down",
4321
+ "exiting:animate-exit-slide-up"
4308
4322
  ),
4309
4323
  children: /* @__PURE__ */ jsxs(Dialog, { className: "outline-none", children: [
4310
4324
  /* @__PURE__ */ jsx(CalendarSurface, {}),
@@ -4538,8 +4552,8 @@ function MultiSelect({
4538
4552
  // (defaultOpen) — no browser outline around the whole panel.
4539
4553
  "outline-none rounded-md border border-rule bg-surface p-1",
4540
4554
  "shadow-[var(--shadow-raised)]",
4541
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-top-1",
4542
- "exiting:animate-out exiting:fade-out-0 exiting:slide-out-to-top-1"
4555
+ "entering:animate-enter-slide-down",
4556
+ "exiting:animate-exit-slide-up"
4543
4557
  ),
4544
4558
  children: [
4545
4559
  isSearchable ? /* @__PURE__ */ jsx("div", { className: "border-b border-rule-2 px-1 pb-1 mb-1", children: /* @__PURE__ */ jsx(
@@ -5576,8 +5590,8 @@ var imageLightboxStyles = tv({
5576
5590
  "fixed inset-0 z-50 flex items-center justify-center p-4",
5577
5591
  // Deeper scrim than Modal's 40% — the image needs the page fully dimmed.
5578
5592
  "bg-[color-mix(in_oklab,var(--color-ink)_72%,transparent)]",
5579
- "entering:animate-in entering:fade-in-0 entering:duration-150",
5580
- "exiting:animate-out exiting:fade-out-0 exiting:duration-100"
5593
+ "entering:animate-enter-fade",
5594
+ "exiting:animate-exit-fade"
5581
5595
  ]
5582
5596
  });
5583
5597
  function ImageLightbox({ isOpen, onOpenChange, src, name, onDownload }) {
@@ -5662,7 +5676,7 @@ function VideoView({ name, src }) {
5662
5676
  /* @__PURE__ */ jsx("video", { controls: true, src, "aria-label": name, className: "h-full w-full object-contain" })
5663
5677
  );
5664
5678
  }
5665
- var PdfView = lazy(() => import('./pdf-view-MH75RVQP.js'));
5679
+ var PdfView = lazy(() => import('./pdf-view-RQ2OZYHJ.js'));
5666
5680
  var fileViewerStyles = tv({
5667
5681
  base: [
5668
5682
  "relative flex w-full flex-col overflow-hidden",
@@ -5809,8 +5823,8 @@ function MenuPopover({ className, offset = 4, placement = "bottom start", ...pro
5809
5823
  className: (renderProps) => cn(
5810
5824
  "min-w-[200px] p-1 bg-surface border border-rule rounded-md",
5811
5825
  "shadow-[var(--shadow-float)] outline-none z-[1200]",
5812
- "entering:animate-in entering:fade-in-0 entering:zoom-in-95",
5813
- "exiting:animate-out exiting:fade-out-0 exiting:zoom-out-95",
5826
+ "entering:animate-enter-zoom",
5827
+ "exiting:animate-exit-zoom",
5814
5828
  typeof className === "function" ? className(renderProps) : className
5815
5829
  )
5816
5830
  }
@@ -6458,46 +6472,54 @@ var segmentedControlStyles = tv({
6458
6472
  // stretching parent (e.g. a `flex flex-col` card body, whose default
6459
6473
  // align-items:stretch would otherwise pull it to full width). Consumers
6460
6474
  // can still opt into full width by passing `w-full` via className.
6461
- group: "inline-flex w-fit rounded-sm border border-rule-strong bg-surface p-0.5 gap-0.5",
6475
+ group: "inline-flex w-fit gap-px p-0.5 rounded-chip bg-surface-2 border border-rule",
6462
6476
  segment: [
6463
- "inline-flex items-center justify-center cursor-pointer",
6464
- "font-mono tracking-[0.04em] rounded-[3px] outline-none select-none",
6465
- "transition-[background-color,color] duration-150",
6466
- "data-[hovered]:text-ink",
6467
- "data-[selected]:bg-ink data-[selected]:text-surface",
6477
+ "inline-flex items-center justify-center gap-1 cursor-pointer select-none",
6478
+ "font-sans font-medium tracking-[-0.005em] rounded-sm outline-none text-ink-3",
6479
+ "transition-[background-color,color,box-shadow] duration-150",
6480
+ // Unselected: hover/press tint into the track colour. `selected` is
6481
+ // declared after `hovered` in styles.css, so the pill wins over these.
6482
+ "hovered:text-ink hovered:bg-[color-mix(in_oklab,var(--color-ink)_6%,var(--color-surface-2))]",
6483
+ "pressed:bg-[color-mix(in_oklab,var(--color-ink)_10%,var(--color-surface-2))]",
6484
+ // Selected: lifted white pill, static.
6485
+ "selected:bg-surface selected:text-ink selected:shadow-[var(--shadow-rest)]",
6468
6486
  "data-[focus-visible]:shadow-[var(--shadow-focus)]",
6487
+ "selected:data-[focus-visible]:shadow-[var(--shadow-focus),var(--shadow-rest)]",
6469
6488
  "data-[disabled]:opacity-45 data-[disabled]:cursor-not-allowed"
6470
6489
  ]
6471
6490
  },
6472
6491
  variants: {
6473
6492
  size: {
6474
- sm: { segment: "px-2 py-0.5 text-[10.5px] tracking-[0.08em]" },
6475
- md: { segment: "px-2.5 py-1 text-[12px]" }
6493
+ sm: { segment: "px-2 py-0.5 text-[11.5px] min-h-[22px]" },
6494
+ md: { segment: "px-2.5 py-1 text-[12.5px] min-h-[26px]" }
6476
6495
  },
6477
- tone: {
6478
- // Default: ink fill on selected.
6479
- default: { segment: "text-ink-3" }
6496
+ // Dense flow-wrapping register (designer inspector): the group becomes a
6497
+ // wrapping flex row and every segment grows to share the line.
6498
+ wrap: {
6499
+ true: { group: "flex flex-wrap w-auto", segment: "flex-1 min-w-7 px-1.5" },
6500
+ false: {}
6480
6501
  }
6481
6502
  },
6482
- defaultVariants: { size: "sm", tone: "default" }
6503
+ defaultVariants: { size: "sm", wrap: false }
6483
6504
  });
6484
6505
  function SegmentedControl({
6485
6506
  options,
6486
6507
  value,
6487
6508
  onChange,
6488
6509
  size,
6510
+ wrap = false,
6489
6511
  autoFocus = false,
6490
6512
  className,
6491
6513
  orientation = "horizontal",
6492
6514
  ...props
6493
6515
  }) {
6494
- const styles4 = segmentedControlStyles({ size });
6516
+ const styles4 = segmentedControlStyles({ size, wrap });
6495
6517
  return /* @__PURE__ */ jsx(
6496
6518
  RadioGroup$1,
6497
6519
  {
6498
6520
  ...props,
6499
6521
  orientation,
6500
- value: String(value),
6522
+ value: value === null ? null : String(value),
6501
6523
  onChange: (next) => onChange(next),
6502
6524
  className: cn(styles4.group(), className),
6503
6525
  children: options.map((option) => /* @__PURE__ */ jsx(
@@ -6505,6 +6527,7 @@ function SegmentedControl({
6505
6527
  {
6506
6528
  value: String(option.id),
6507
6529
  ...option.isDisabled ? { isDisabled: true } : {},
6530
+ ...option["aria-label"] !== void 0 ? { "aria-label": option["aria-label"] } : {},
6508
6531
  ...autoFocus && option.id === value ? { autoFocus: true } : {},
6509
6532
  className: styles4.segment(),
6510
6533
  children: option.label
@@ -7269,8 +7292,8 @@ function NestedGroup({
7269
7292
  {
7270
7293
  "aria-label": "Group joiner",
7271
7294
  options: [
7272
- { id: "and", label: "AND" },
7273
- { id: "or", label: "OR" }
7295
+ { id: "and", label: "and" },
7296
+ { id: "or", label: "or" }
7274
7297
  ],
7275
7298
  value: group.logicalOperator,
7276
7299
  onChange: (next) => onChange({ ...group, logicalOperator: next })
@@ -7506,8 +7529,8 @@ function RecordFilterBuilderPanel({
7506
7529
  {
7507
7530
  "aria-label": "Joiner",
7508
7531
  options: [
7509
- { id: "and", label: "AND" },
7510
- { id: "or", label: "OR" }
7532
+ { id: "and", label: "and" },
7533
+ { id: "or", label: "or" }
7511
7534
  ],
7512
7535
  value: filter.logicalOperator,
7513
7536
  onChange: setJoiner2
@@ -7612,17 +7635,12 @@ function RecordFilterBuilderPanel({
7612
7635
  ),
7613
7636
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
7614
7637
  onSaveView ? /* @__PURE__ */ jsxs(
7615
- "button",
7638
+ Button,
7616
7639
  {
7617
- type: "button",
7618
- onClick: onSaveView,
7619
- disabled: totalChildren === 0,
7620
- className: cn(
7621
- "inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-sm",
7622
- "font-sans text-[13px] text-ink-2 hover:bg-surface-2 hover:text-ink",
7623
- "disabled:opacity-40 disabled:pointer-events-none",
7624
- "outline-none cursor-pointer"
7625
- ),
7640
+ variant: "ghost",
7641
+ size: "sm",
7642
+ onPress: onSaveView,
7643
+ isDisabled: totalChildren === 0,
7626
7644
  children: [
7627
7645
  /* @__PURE__ */ jsxs(
7628
7646
  "svg",
@@ -7645,19 +7663,7 @@ function RecordFilterBuilderPanel({
7645
7663
  ]
7646
7664
  }
7647
7665
  ) : null,
7648
- /* @__PURE__ */ jsx(
7649
- "button",
7650
- {
7651
- type: "button",
7652
- onClick: onClose,
7653
- className: cn(
7654
- "inline-flex items-center gap-1.5 px-3 py-1.5 rounded-sm",
7655
- "bg-ink text-surface font-mono text-[12px]",
7656
- "hover:bg-accent-ink outline-none cursor-pointer"
7657
- ),
7658
- children: "Done"
7659
- }
7660
- )
7666
+ /* @__PURE__ */ jsx(Button, { variant: "cta", size: "sm", onPress: onClose, children: "Done" })
7661
7667
  ] })
7662
7668
  ]
7663
7669
  }
@@ -8164,19 +8170,7 @@ function ChipMiniEditor({
8164
8170
  onChange: onChangeValue
8165
8171
  }
8166
8172
  ) }),
8167
- /* @__PURE__ */ jsx(
8168
- "button",
8169
- {
8170
- type: "submit",
8171
- className: cn(
8172
- "shrink-0 inline-flex items-center px-2.5 py-1.5 rounded-md",
8173
- "bg-ink text-surface font-mono text-[12px]",
8174
- "hover:bg-accent-ink cursor-pointer outline-none",
8175
- "focus-visible:shadow-[var(--shadow-focus)]"
8176
- ),
8177
- children: "Save"
8178
- }
8179
- )
8173
+ /* @__PURE__ */ jsx(Button, { type: "submit", variant: "cta", size: "sm", className: "shrink-0", children: "Save" })
8180
8174
  ]
8181
8175
  }
8182
8176
  );
@@ -8467,7 +8461,7 @@ function TimeField({
8467
8461
  "data-[placeholder]:text-ink-4",
8468
8462
  "data-[type=literal]:text-ink-4",
8469
8463
  // segment focus treatment: indigo fill, paper text
8470
- "data-[focused]:bg-accent data-[focused]:text-[#f0efe8] data-[focused]:rounded-[3px]",
8464
+ "data-[focused]:bg-accent data-[focused]:text-tile-fg data-[focused]:rounded-[3px]",
8471
8465
  "data-[disabled]:cursor-not-allowed"
8472
8466
  )
8473
8467
  }
@@ -8490,8 +8484,8 @@ var toastStyles = tv({
8490
8484
  "rounded-lg border border-rule bg-surface shadow-float",
8491
8485
  "px-3.5 py-3 outline-none",
8492
8486
  "focus-visible:shadow-focus",
8493
- "entering:animate-in entering:fade-in-0 entering:slide-in-from-bottom-2 entering:duration-200",
8494
- "exiting:animate-out exiting:fade-out-0 exiting:duration-150"
8487
+ "entering:animate-enter-slide-up",
8488
+ "exiting:animate-exit-fade"
8495
8489
  ],
8496
8490
  icon: "size-4 shrink-0 mt-0.5",
8497
8491
  title: "font-sans text-[13px] font-medium leading-[1.4] text-ink",