@soygalo/ui 0.0.1 → 0.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 (230) hide show
  1. package/dist/controls/Accordion.js +42 -0
  2. package/dist/controls/ActionMenu.js +64 -0
  3. package/dist/controls/AlertDialog.js +62 -0
  4. package/dist/controls/ChipGroup.js +90 -0
  5. package/dist/controls/Collapsible.js +6 -0
  6. package/dist/controls/Command.js +88 -0
  7. package/dist/controls/ConfirmDialog.js +42 -0
  8. package/dist/controls/Dialog.js +66 -0
  9. package/dist/controls/FilterPopover.js +161 -0
  10. package/dist/controls/Kbd.js +12 -0
  11. package/dist/controls/Popover.js +55 -0
  12. package/dist/controls/SegmentedControl.js +52 -0
  13. package/dist/controls/Sheet.js +123 -0
  14. package/dist/controls/Tooltip.js +15 -0
  15. package/dist/controls/overlay-container.js +20 -0
  16. package/dist/controls/return-focus.js +16 -0
  17. package/dist/controls.js +17 -0
  18. package/dist/data-attr.js +5 -0
  19. package/dist/data-display/Avatar.js +47 -0
  20. package/dist/data-display/Badge.js +88 -0
  21. package/dist/data-display/Board.js +73 -0
  22. package/dist/data-display/Card.js +141 -0
  23. package/dist/data-display/ChatBubble.js +44 -0
  24. package/dist/data-display/Code.js +32 -0
  25. package/dist/data-display/DataTable.js +114 -0
  26. package/dist/data-display/IconTile.js +60 -0
  27. package/dist/data-display/Item.js +128 -0
  28. package/dist/data-display/Overline.js +13 -0
  29. package/dist/data-display/Separator.js +19 -0
  30. package/dist/data-display/Stat.js +36 -0
  31. package/dist/data-display/TablePagination.js +98 -0
  32. package/dist/data-display/Timeline.js +58 -0
  33. package/dist/data-display/chart-colors.js +36 -0
  34. package/dist/data-display.js +16 -0
  35. package/dist/feedback/Callout.js +107 -0
  36. package/dist/feedback/FeedbackState.js +55 -0
  37. package/dist/feedback/LoadingState.js +24 -0
  38. package/dist/feedback/Progress.js +51 -0
  39. package/dist/feedback/ProgressRing.js +50 -0
  40. package/dist/feedback/Skeleton.js +12 -0
  41. package/dist/feedback/SplashScreen.js +145 -0
  42. package/dist/feedback/StatusDot.js +34 -0
  43. package/dist/feedback/Stepper.js +48 -0
  44. package/dist/feedback/Toaster.js +38 -0
  45. package/dist/feedback.js +11 -0
  46. package/dist/fonts.css +7 -0
  47. package/dist/forms/Button.js +128 -0
  48. package/dist/forms/ButtonGroup.js +14 -0
  49. package/dist/forms/Calendar.js +51 -0
  50. package/dist/forms/Checkbox.js +30 -0
  51. package/dist/forms/Combobox.js +123 -0
  52. package/dist/forms/CopyButton.js +24 -0
  53. package/dist/forms/DatePicker.js +146 -0
  54. package/dist/forms/DateTimePicker.js +97 -0
  55. package/dist/forms/EditableValue.js +49 -0
  56. package/dist/forms/FileUpload.js +99 -0
  57. package/dist/forms/FormField.js +47 -0
  58. package/dist/forms/Input.js +58 -0
  59. package/dist/forms/Label.js +42 -0
  60. package/dist/forms/MultiSelect.js +139 -0
  61. package/dist/forms/QuantityStepper.js +71 -0
  62. package/dist/forms/RadioGroup.js +21 -0
  63. package/dist/forms/SearchField.js +55 -0
  64. package/dist/forms/Select.js +79 -0
  65. package/dist/forms/Slider.js +23 -0
  66. package/dist/forms/Switch.js +23 -0
  67. package/dist/forms/TagInput.js +64 -0
  68. package/dist/forms/Textarea.js +41 -0
  69. package/dist/forms/control-size.js +44 -0
  70. package/dist/forms/use-copy-to-clipboard.js +23 -0
  71. package/dist/forms.js +25 -0
  72. package/dist/icons/create-icon.js +20 -0
  73. package/dist/icons/glyphs.js +9 -0
  74. package/dist/icons.js +3 -0
  75. package/dist/index.js +101 -0
  76. package/dist/layout/FilterBar.js +29 -0
  77. package/dist/layout/Page.js +44 -0
  78. package/dist/layout/PageHeader.js +65 -0
  79. package/dist/layout/PageShell.js +20 -0
  80. package/dist/layout/PageSurface.js +19 -0
  81. package/dist/layout/Resizable.js +21 -0
  82. package/dist/layout/ScrollArea.js +35 -0
  83. package/dist/layout/SelectionBar.js +41 -0
  84. package/dist/layout.js +9 -0
  85. package/dist/lite/Contact.js +59 -0
  86. package/dist/lite/Coupon.js +56 -0
  87. package/dist/lite/Loading.js +79 -0
  88. package/dist/lite/Order.js +216 -0
  89. package/dist/lite/Product.js +124 -0
  90. package/dist/lite/Resolver.js +181 -0
  91. package/dist/lite/Shell.js +178 -0
  92. package/dist/lite/Smart.js +48 -0
  93. package/dist/lite.js +9 -0
  94. package/dist/navigation/ApplicationSidebar.js +101 -0
  95. package/dist/navigation/NavigationRail.js +45 -0
  96. package/dist/navigation/SidebarAccountSummary.js +20 -0
  97. package/dist/navigation/SidebarBrandContent.js +24 -0
  98. package/dist/navigation/SidebarNavigationItem.js +14 -0
  99. package/dist/navigation/SidebarSubnavigation.js +26 -0
  100. package/dist/navigation/navigation-path.js +21 -0
  101. package/dist/navigation/sidebar-styles.js +17 -0
  102. package/dist/navigation.js +9 -0
  103. package/dist/password-manager.js +11 -0
  104. package/dist/preflight.css +445 -0
  105. package/dist/sidebar/primitives.js +253 -0
  106. package/dist/sidebar/use-sidebar-shortcut.js +15 -0
  107. package/dist/sidebar.js +2 -0
  108. package/dist/styles.css +3773 -0
  109. package/dist/tabs/Tabs.js +48 -0
  110. package/dist/tabs.js +2 -0
  111. package/dist/tailwind-preset.js +213 -0
  112. package/dist/type-scale.js +45 -0
  113. package/dist/types/src/controls/Accordion.d.ts +10 -0
  114. package/dist/types/src/controls/ActionMenu.d.ts +17 -0
  115. package/dist/types/src/controls/AlertDialog.d.ts +15 -0
  116. package/dist/types/src/controls/ChipGroup.d.ts +43 -0
  117. package/dist/types/src/controls/Collapsible.d.ts +4 -0
  118. package/dist/types/src/controls/Command.d.ts +83 -0
  119. package/dist/types/src/controls/ConfirmDialog.d.ts +17 -0
  120. package/dist/types/src/controls/Dialog.d.ts +20 -0
  121. package/dist/types/src/controls/FilterPopover.d.ts +47 -0
  122. package/dist/types/src/controls/Kbd.d.ts +2 -0
  123. package/dist/types/src/controls/Popover.d.ts +31 -0
  124. package/dist/types/src/controls/SegmentedControl.d.ts +32 -0
  125. package/dist/types/src/controls/Sheet.d.ts +34 -0
  126. package/dist/types/src/controls/Tooltip.d.ts +6 -0
  127. package/dist/types/src/controls/index.d.ts +16 -0
  128. package/dist/types/src/controls/overlay-container.d.ts +11 -0
  129. package/dist/types/src/controls/return-focus.d.ts +6 -0
  130. package/dist/types/src/data-attr.d.ts +3 -0
  131. package/dist/types/src/data-display/Avatar.d.ts +30 -0
  132. package/dist/types/src/data-display/Badge.d.ts +28 -0
  133. package/dist/types/src/data-display/Board.d.ts +21 -0
  134. package/dist/types/src/data-display/Card.d.ts +45 -0
  135. package/dist/types/src/data-display/ChatBubble.d.ts +24 -0
  136. package/dist/types/src/data-display/Code.d.ts +25 -0
  137. package/dist/types/src/data-display/DataTable.d.ts +74 -0
  138. package/dist/types/src/data-display/IconTile.d.ts +22 -0
  139. package/dist/types/src/data-display/Item.d.ts +24 -0
  140. package/dist/types/src/data-display/Overline.d.ts +5 -0
  141. package/dist/types/src/data-display/Separator.d.ts +9 -0
  142. package/dist/types/src/data-display/Stat.d.ts +17 -0
  143. package/dist/types/src/data-display/TablePagination.d.ts +23 -0
  144. package/dist/types/src/data-display/Timeline.d.ts +16 -0
  145. package/dist/types/src/data-display/chart-colors.d.ts +51 -0
  146. package/dist/types/src/data-display/index.d.ts +15 -0
  147. package/dist/types/src/feedback/Callout.d.ts +17 -0
  148. package/dist/types/src/feedback/FeedbackState.d.ts +16 -0
  149. package/dist/types/src/feedback/LoadingState.d.ts +7 -0
  150. package/dist/types/src/feedback/Progress.d.ts +37 -0
  151. package/dist/types/src/feedback/ProgressRing.d.ts +11 -0
  152. package/dist/types/src/feedback/Skeleton.d.ts +2 -0
  153. package/dist/types/src/feedback/SplashScreen.d.ts +11 -0
  154. package/dist/types/src/feedback/StatusDot.d.ts +27 -0
  155. package/dist/types/src/feedback/Stepper.d.ts +16 -0
  156. package/dist/types/src/feedback/Toaster.d.ts +4 -0
  157. package/dist/types/src/feedback/index.d.ts +10 -0
  158. package/dist/types/src/forms/Button.d.ts +26 -0
  159. package/dist/types/src/forms/ButtonGroup.d.ts +7 -0
  160. package/dist/types/src/forms/Calendar.d.ts +4 -0
  161. package/dist/types/src/forms/Checkbox.d.ts +11 -0
  162. package/dist/types/src/forms/Combobox.d.ts +51 -0
  163. package/dist/types/src/forms/CopyButton.d.ts +8 -0
  164. package/dist/types/src/forms/DatePicker.d.ts +34 -0
  165. package/dist/types/src/forms/DateTimePicker.d.ts +20 -0
  166. package/dist/types/src/forms/EditableValue.d.ts +14 -0
  167. package/dist/types/src/forms/FileUpload.d.ts +28 -0
  168. package/dist/types/src/forms/FormField.d.ts +12 -0
  169. package/dist/types/src/forms/Input.d.ts +11 -0
  170. package/dist/types/src/forms/Label.d.ts +11 -0
  171. package/dist/types/src/forms/MultiSelect.d.ts +45 -0
  172. package/dist/types/src/forms/QuantityStepper.d.ts +36 -0
  173. package/dist/types/src/forms/RadioGroup.d.ts +4 -0
  174. package/dist/types/src/forms/SearchField.d.ts +13 -0
  175. package/dist/types/src/forms/Select.d.ts +15 -0
  176. package/dist/types/src/forms/Slider.d.ts +9 -0
  177. package/dist/types/src/forms/Switch.d.ts +14 -0
  178. package/dist/types/src/forms/TagInput.d.ts +19 -0
  179. package/dist/types/src/forms/Textarea.d.ts +10 -0
  180. package/dist/types/src/forms/control-size.d.ts +17 -0
  181. package/dist/types/src/forms/index.d.ts +24 -0
  182. package/dist/types/src/forms/use-copy-to-clipboard.d.ts +5 -0
  183. package/dist/types/src/icons/create-icon.d.ts +16 -0
  184. package/dist/types/src/icons/glyphs.d.ts +294 -0
  185. package/dist/types/src/icons/index.d.ts +2 -0
  186. package/dist/types/src/index.d.ts +12 -0
  187. package/dist/types/src/layout/FilterBar.d.ts +11 -0
  188. package/dist/types/src/layout/Page.d.ts +19 -0
  189. package/dist/types/src/layout/PageHeader.d.ts +14 -0
  190. package/dist/types/src/layout/PageShell.d.ts +8 -0
  191. package/dist/types/src/layout/PageSurface.d.ts +13 -0
  192. package/dist/types/src/layout/Resizable.d.ts +23 -0
  193. package/dist/types/src/layout/ScrollArea.d.ts +9 -0
  194. package/dist/types/src/layout/SelectionBar.d.ts +15 -0
  195. package/dist/types/src/layout/index.d.ts +8 -0
  196. package/dist/types/src/lite/Contact.d.ts +14 -0
  197. package/dist/types/src/lite/Coupon.d.ts +11 -0
  198. package/dist/types/src/lite/Loading.d.ts +13 -0
  199. package/dist/types/src/lite/Order.d.ts +49 -0
  200. package/dist/types/src/lite/Product.d.ts +16 -0
  201. package/dist/types/src/lite/Resolver.d.ts +41 -0
  202. package/dist/types/src/lite/Shell.d.ts +44 -0
  203. package/dist/types/src/lite/Smart.d.ts +9 -0
  204. package/dist/types/src/lite/index.d.ts +8 -0
  205. package/dist/types/src/navigation/ApplicationSidebar.d.ts +15 -0
  206. package/dist/types/src/navigation/NavigationRail.d.ts +21 -0
  207. package/dist/types/src/navigation/SidebarAccountSummary.d.ts +8 -0
  208. package/dist/types/src/navigation/SidebarBrandContent.d.ts +7 -0
  209. package/dist/types/src/navigation/SidebarNavigationItem.d.ts +9 -0
  210. package/dist/types/src/navigation/SidebarSubnavigation.d.ts +15 -0
  211. package/dist/types/src/navigation/index.d.ts +28 -0
  212. package/dist/types/src/navigation/navigation-path.d.ts +9 -0
  213. package/dist/types/src/navigation/sidebar-styles.d.ts +14 -0
  214. package/dist/types/src/password-manager.d.ts +3 -0
  215. package/dist/types/src/sidebar/index.d.ts +1 -0
  216. package/dist/types/src/sidebar/primitives.d.ts +51 -0
  217. package/dist/types/src/sidebar/use-sidebar-shortcut.d.ts +9 -0
  218. package/dist/types/src/tabs/Tabs.d.ts +21 -0
  219. package/dist/types/src/tabs/index.d.ts +1 -0
  220. package/dist/types/src/type-scale.d.ts +51 -0
  221. package/dist/types/src/use-media-query.d.ts +2 -0
  222. package/dist/types/src/utils.d.ts +5 -0
  223. package/dist/types/tailwind-preset.d.ts +214 -0
  224. package/dist/use-media-query.js +12 -0
  225. package/dist/utils.js +24 -0
  226. package/eslint/eslint-plugin-galo-ds.js +314 -0
  227. package/eslint/eslint.design-system.js +99 -0
  228. package/eslint/index.js +9 -0
  229. package/package.json +117 -1
  230. package/src/styles.css +540 -0
package/dist/index.js ADDED
@@ -0,0 +1,101 @@
1
+ import { TYPE_SCALE as e } from "./type-scale.js";
2
+ import { cn as t, foldText as n, resolveColorToken as r } from "./utils.js";
3
+ import { useIsMobile as i, useMediaQuery as a } from "./use-media-query.js";
4
+ import { sidebarStyles as o } from "./navigation/sidebar-styles.js";
5
+ import { SidebarAccountSummary as s } from "./navigation/SidebarAccountSummary.js";
6
+ import { SidebarBrandContent as c } from "./navigation/SidebarBrandContent.js";
7
+ import { SidebarNavigationItem as l } from "./navigation/SidebarNavigationItem.js";
8
+ import { isNavigationPathActive as u } from "./navigation/navigation-path.js";
9
+ import { SidebarSubnavigation as d } from "./navigation/SidebarSubnavigation.js";
10
+ import { CONTROL_HEIGHT as f, CONTROL_LABEL as p, CONTROL_SQUARE as m, CONTROL_VALUE as h, ControlSizeProvider as g, useControlSize as _ } from "./forms/control-size.js";
11
+ import { BUTTON_APPEARANCES as v, Button as y, buttonVariants as b } from "./forms/Button.js";
12
+ import { PageHeader as x } from "./layout/PageHeader.js";
13
+ import { PageSurface as S, RevealCircle as C } from "./layout/PageSurface.js";
14
+ import { Page as w } from "./layout/Page.js";
15
+ import { PageShell as T } from "./layout/PageShell.js";
16
+ import { FilterBar as E } from "./layout/FilterBar.js";
17
+ import { SelectionBar as D } from "./layout/SelectionBar.js";
18
+ import { ScrollArea as O, ScrollBar as k } from "./layout/ScrollArea.js";
19
+ import { ResizableHandle as A, ResizablePanel as j, ResizablePanelGroup as M } from "./layout/Resizable.js";
20
+ import "./layout.js";
21
+ import { OverlayContainerProvider as N, useOverlayContainer as P, useOverlayContainerRef as F } from "./controls/overlay-container.js";
22
+ import { Sheet as I, SheetBody as L, SheetClose as R, SheetContent as z, SheetDescription as B, SheetFooter as V, SheetHeader as H, SheetOverlay as U, SheetPortal as W, SheetTitle as G, SheetTrigger as K } from "./controls/Sheet.js";
23
+ import { Tooltip as q, TooltipContent as J, TooltipProvider as Y, TooltipTrigger as X } from "./controls/Tooltip.js";
24
+ import { Sidebar as Z, SidebarContent as Q, SidebarFooter as $, SidebarGroup as ee, SidebarGroupLabel as te, SidebarHeader as ne, SidebarInset as re, SidebarMenu as ie, SidebarMenuButton as ae, SidebarMenuItem as oe, SidebarProvider as se, SidebarRail as ce, SidebarTrigger as le, useSidebar as ue } from "./sidebar/primitives.js";
25
+ import "./sidebar.js";
26
+ import "./navigation.js";
27
+ import { SEGMENTED_ITEM as de, SEGMENTED_ITEM_ACTIVE as fe, SEGMENTED_TAB_ACTIVE as pe, SEGMENTED_TRACK as me, SEGMENT_SIZE as he, SegmentedControl as ge } from "./controls/SegmentedControl.js";
28
+ import { Tabs as _e, TabsContent as ve, TabsList as ye, TabsTrigger as be } from "./tabs/Tabs.js";
29
+ import "./tabs.js";
30
+ import { Dialog as xe, DialogBody as Se, DialogClose as Ce, DialogContent as we, DialogDescription as Te, DialogFooter as Ee, DialogHeader as De, DialogTitle as Oe, DialogTrigger as ke } from "./controls/Dialog.js";
31
+ import { AlertDialog as Ae, AlertDialogAction as je, AlertDialogCancel as Me, AlertDialogContent as Ne, AlertDialogDescription as Pe, AlertDialogFooter as Fe, AlertDialogHeader as Ie, AlertDialogIcon as Le, AlertDialogTitle as Re, AlertDialogTrigger as ze } from "./controls/AlertDialog.js";
32
+ import { ActionMenu as Be, ActionMenuCheckboxItem as Ve, ActionMenuContent as He, ActionMenuGroup as Ue, ActionMenuItem as We, ActionMenuLabel as Ge, ActionMenuPortal as Ke, ActionMenuSeparator as qe, ActionMenuSub as Je, ActionMenuSubContent as Ye, ActionMenuSubTrigger as Xe, ActionMenuTrigger as Ze } from "./controls/ActionMenu.js";
33
+ import { Accordion as Qe, AccordionContent as $e, AccordionItem as et, AccordionTrigger as tt } from "./controls/Accordion.js";
34
+ import { Popover as nt, PopoverAnchor as rt, PopoverBody as it, PopoverClose as at, PopoverContent as ot, PopoverDescription as st, PopoverFooter as ct, PopoverHeader as lt, PopoverTitle as ut, PopoverTrigger as dt } from "./controls/Popover.js";
35
+ import { Collapsible as ft, CollapsibleContent as pt, CollapsibleTrigger as mt } from "./controls/Collapsible.js";
36
+ import { Command as ht, CommandDialog as gt, CommandEmpty as _t, CommandGroup as vt, CommandInput as yt, CommandItem as bt, CommandList as xt, CommandSeparator as St } from "./controls/Command.js";
37
+ import { ConfirmDialog as Ct } from "./controls/ConfirmDialog.js";
38
+ import { Kbd as wt } from "./controls/Kbd.js";
39
+ import { BADGE_APPEARANCES as Tt, Badge as Et, badgeVariants as Dt } from "./data-display/Badge.js";
40
+ import { FilterPopover as Ot } from "./controls/FilterPopover.js";
41
+ import { ChipGroup as kt } from "./controls/ChipGroup.js";
42
+ import { defaultFilter as At, useCommandState as jt } from "./controls.js";
43
+ import { Input as Mt, inputVariants as Nt } from "./forms/Input.js";
44
+ import { Select as Pt, SelectContent as Ft, SelectGroup as It, SelectItem as Lt, SelectLabel as Rt, SelectSeparator as zt, SelectTrigger as Bt, SelectValue as Vt } from "./forms/Select.js";
45
+ import { Combobox as Ht } from "./forms/Combobox.js";
46
+ import { MultiSelect as Ut } from "./forms/MultiSelect.js";
47
+ import { FormField as Wt } from "./forms/FormField.js";
48
+ import { Textarea as Gt, textareaVariants as Kt } from "./forms/Textarea.js";
49
+ import { SearchField as qt } from "./forms/SearchField.js";
50
+ import { Checkbox as Jt } from "./forms/Checkbox.js";
51
+ import { RadioGroup as Yt, RadioGroupItem as Xt } from "./forms/RadioGroup.js";
52
+ import { Switch as Zt } from "./forms/Switch.js";
53
+ import { Calendar as Qt } from "./forms/Calendar.js";
54
+ import { DatePicker as $t, DateRangePicker as en } from "./forms/DatePicker.js";
55
+ import { DateTimePicker as tn } from "./forms/DateTimePicker.js";
56
+ import { Item as nn, ItemActions as rn, ItemContent as an, ItemDescription as on, ItemTitle as sn } from "./data-display/Item.js";
57
+ import { ICON_TILE_APPEARANCES as cn, IconTile as ln, iconTileVariants as un } from "./data-display/IconTile.js";
58
+ import { FileItem as dn, FileUpload as fn } from "./forms/FileUpload.js";
59
+ import { Label as pn, labelVariants as mn } from "./forms/Label.js";
60
+ import { Slider as hn } from "./forms/Slider.js";
61
+ import { TagInput as gn } from "./forms/TagInput.js";
62
+ import { QuantityStepper as _n } from "./forms/QuantityStepper.js";
63
+ import { ButtonGroup as vn } from "./forms/ButtonGroup.js";
64
+ import { copyToClipboard as yn, useCopyToClipboard as bn } from "./forms/use-copy-to-clipboard.js";
65
+ import { CopyButton as xn } from "./forms/CopyButton.js";
66
+ import { EditableValue as Sn } from "./forms/EditableValue.js";
67
+ import "./forms.js";
68
+ import { Skeleton as Cn } from "./feedback/Skeleton.js";
69
+ import { EmptyState as wn, ErrorState as Tn, FeedbackState as En, SuccessState as Dn } from "./feedback/FeedbackState.js";
70
+ import { DataTable as On, DataTableBody as kn, DataTableCaption as An, DataTableCell as jn, DataTableEmpty as Mn, DataTableFooter as Nn, DataTableHead as Pn, DataTableHeader as Fn, DataTableLoading as In, DataTableRow as Ln, DataTableSortButton as Rn, tableCellTones as zn } from "./data-display/DataTable.js";
71
+ import { TablePagination as Bn } from "./data-display/TablePagination.js";
72
+ import { Board as Vn, BoardCard as Hn, BoardColumn as Un } from "./data-display/Board.js";
73
+ import { CARD_TONES as Wn, CARD_VARIANTS as Gn, Card as Kn, CardContent as qn, CardDescription as Jn, CardFooter as Yn, CardHeader as Xn, CardTitle as Zn, cardVariants as Qn } from "./data-display/Card.js";
74
+ import { Avatar as $n, AvatarFallback as er, AvatarImage as tr } from "./data-display/Avatar.js";
75
+ import { Separator as nr } from "./data-display/Separator.js";
76
+ import { DescriptionItem as rr, DescriptionList as ir, Timeline as ar, TimelineItem as or } from "./data-display/Timeline.js";
77
+ import { Overline as sr } from "./data-display/Overline.js";
78
+ import { categoricalColor as cr, categoricalColors as lr, chartColors as ur, chartSeries as dr, entityColor as fr, entityTone as pr, identityColor as mr, identityColors as hr } from "./data-display/chart-colors.js";
79
+ import { Code as gr, CodeBlock as _r, Highlight as vr } from "./data-display/Code.js";
80
+ import { ChatBubble as yr, ChatBubbleMedia as br, ChatBubbleMeta as xr, ChatBubbleQuote as Sr, ChatWallpaper as Cr } from "./data-display/ChatBubble.js";
81
+ import { Stat as wr, StatGroup as Tr } from "./data-display/Stat.js";
82
+ import "./data-display.js";
83
+ import { ProgressRing as Er } from "./feedback/ProgressRing.js";
84
+ import { Stepper as Dr } from "./feedback/Stepper.js";
85
+ import { Toaster as Or, designTokenRestore as kr } from "./feedback/Toaster.js";
86
+ import { LoadingState as Ar } from "./feedback/LoadingState.js";
87
+ import { Callout as jr } from "./feedback/Callout.js";
88
+ import { Progress as Mr, progressTones as Nr } from "./feedback/Progress.js";
89
+ import { StatusDot as Pr } from "./feedback/StatusDot.js";
90
+ import { useSplashScreen as Fr } from "./feedback/SplashScreen.js";
91
+ import "./feedback.js";
92
+ import { LiteCoupon as Ir, LiteCouponMore as Lr } from "./lite/Coupon.js";
93
+ import { LiteContactOutcomeGrid as Rr, LiteContactOutcomeOption as zr, LiteContextualFab as Br } from "./lite/Contact.js";
94
+ import { LiteHomeSkeleton as Vr, LiteListSkeleton as Hr, LiteLoadingBlock as Ur } from "./lite/Loading.js";
95
+ import { LiteSmartLabel as Wr, LiteSmartRail as Gr, LiteSmartSection as Kr } from "./lite/Smart.js";
96
+ import { ResolverCatalogResult as qr, ResolverFooter as Jr, ResolverHeader as Yr, ResolverOptionCard as Xr, ResolverProgress as Zr, ResolverRequest as Qr, ResolverSmartSection as $r } from "./lite/Resolver.js";
97
+ import { LiteOrderFooter as ei, LiteOrderFooterCount as ti, LiteOrderFooterNudge as ni, LiteOrderFooterRow as ri, LiteOrderFooterTotal as ii, LiteOrderLine as ai, LitePageHeader as oi, LiteQuantityStepper as si, LiteSuccessScreen as ci } from "./lite/Order.js";
98
+ import { LiteCatalogProductCard as li, LiteCatalogViewToggle as ui } from "./lite/Product.js";
99
+ import { LiteFilterTabs as di, LitePromoBanner as fi, LiteSearchHeader as pi, LiteStageTabs as mi, LiteTabBar as hi, LiteTabBarItem as gi } from "./lite/Shell.js";
100
+ import "./lite.js";
101
+ export { Qe as Accordion, $e as AccordionContent, et as AccordionItem, tt as AccordionTrigger, Be as ActionMenu, Ve as ActionMenuCheckboxItem, He as ActionMenuContent, Ue as ActionMenuGroup, We as ActionMenuItem, Ge as ActionMenuLabel, Ke as ActionMenuPortal, qe as ActionMenuSeparator, Je as ActionMenuSub, Ye as ActionMenuSubContent, Xe as ActionMenuSubTrigger, Ze as ActionMenuTrigger, Ae as AlertDialog, je as AlertDialogAction, Me as AlertDialogCancel, Ne as AlertDialogContent, Pe as AlertDialogDescription, Fe as AlertDialogFooter, Ie as AlertDialogHeader, Le as AlertDialogIcon, Re as AlertDialogTitle, ze as AlertDialogTrigger, $n as Avatar, er as AvatarFallback, tr as AvatarImage, Tt as BADGE_APPEARANCES, v as BUTTON_APPEARANCES, Et as Badge, Vn as Board, Hn as BoardCard, Un as BoardColumn, y as Button, vn as ButtonGroup, Wn as CARD_TONES, Gn as CARD_VARIANTS, f as CONTROL_HEIGHT, p as CONTROL_LABEL, m as CONTROL_SQUARE, h as CONTROL_VALUE, Qt as Calendar, jr as Callout, Kn as Card, qn as CardContent, Jn as CardDescription, Yn as CardFooter, Xn as CardHeader, Zn as CardTitle, yr as ChatBubble, br as ChatBubbleMedia, xr as ChatBubbleMeta, Sr as ChatBubbleQuote, Cr as ChatWallpaper, Jt as Checkbox, kt as ChipGroup, gr as Code, _r as CodeBlock, ft as Collapsible, pt as CollapsibleContent, mt as CollapsibleTrigger, Ht as Combobox, ht as Command, gt as CommandDialog, _t as CommandEmpty, vt as CommandGroup, yt as CommandInput, bt as CommandItem, xt as CommandList, St as CommandSeparator, Ct as ConfirmDialog, g as ControlSizeProvider, xn as CopyButton, On as DataTable, kn as DataTableBody, An as DataTableCaption, jn as DataTableCell, Mn as DataTableEmpty, Nn as DataTableFooter, Pn as DataTableHead, Fn as DataTableHeader, In as DataTableLoading, Ln as DataTableRow, Rn as DataTableSortButton, $t as DatePicker, en as DateRangePicker, tn as DateTimePicker, rr as DescriptionItem, ir as DescriptionList, xe as Dialog, Se as DialogBody, Ce as DialogClose, we as DialogContent, Te as DialogDescription, Ee as DialogFooter, De as DialogHeader, Oe as DialogTitle, ke as DialogTrigger, Sn as EditableValue, wn as EmptyState, Tn as ErrorState, En as FeedbackState, dn as FileItem, fn as FileUpload, E as FilterBar, Ot as FilterPopover, Wt as FormField, vr as Highlight, cn as ICON_TILE_APPEARANCES, ln as IconTile, Mt as Input, nn as Item, rn as ItemActions, an as ItemContent, on as ItemDescription, sn as ItemTitle, wt as Kbd, pn as Label, li as LiteCatalogProductCard, ui as LiteCatalogViewToggle, Rr as LiteContactOutcomeGrid, zr as LiteContactOutcomeOption, Br as LiteContextualFab, Ir as LiteCoupon, Lr as LiteCouponMore, di as LiteFilterTabs, Vr as LiteHomeSkeleton, Hr as LiteListSkeleton, Ur as LiteLoadingBlock, ei as LiteOrderFooter, ti as LiteOrderFooterCount, ni as LiteOrderFooterNudge, ri as LiteOrderFooterRow, ii as LiteOrderFooterTotal, ai as LiteOrderLine, oi as LitePageHeader, fi as LitePromoBanner, si as LiteQuantityStepper, pi as LiteSearchHeader, Wr as LiteSmartLabel, Gr as LiteSmartRail, Kr as LiteSmartSection, mi as LiteStageTabs, ci as LiteSuccessScreen, hi as LiteTabBar, gi as LiteTabBarItem, Ar as LoadingState, Ut as MultiSelect, N as OverlayContainerProvider, sr as Overline, w as Page, x as PageHeader, T as PageShell, S as PageSurface, nt as Popover, rt as PopoverAnchor, it as PopoverBody, at as PopoverClose, ot as PopoverContent, st as PopoverDescription, ct as PopoverFooter, lt as PopoverHeader, ut as PopoverTitle, dt as PopoverTrigger, Mr as Progress, Er as ProgressRing, _n as QuantityStepper, Yt as RadioGroup, Xt as RadioGroupItem, A as ResizableHandle, j as ResizablePanel, M as ResizablePanelGroup, qr as ResolverCatalogResult, Jr as ResolverFooter, Yr as ResolverHeader, Xr as ResolverOptionCard, Zr as ResolverProgress, Qr as ResolverRequest, $r as ResolverSmartSection, C as RevealCircle, de as SEGMENTED_ITEM, fe as SEGMENTED_ITEM_ACTIVE, pe as SEGMENTED_TAB_ACTIVE, me as SEGMENTED_TRACK, he as SEGMENT_SIZE, O as ScrollArea, k as ScrollBar, qt as SearchField, ge as SegmentedControl, Pt as Select, Ft as SelectContent, It as SelectGroup, Lt as SelectItem, Rt as SelectLabel, zt as SelectSeparator, Bt as SelectTrigger, Vt as SelectValue, D as SelectionBar, nr as Separator, I as Sheet, L as SheetBody, R as SheetClose, z as SheetContent, B as SheetDescription, V as SheetFooter, H as SheetHeader, U as SheetOverlay, W as SheetPortal, G as SheetTitle, K as SheetTrigger, Z as Sidebar, s as SidebarAccountSummary, c as SidebarBrandContent, Q as SidebarContent, $ as SidebarFooter, ee as SidebarGroup, te as SidebarGroupLabel, ne as SidebarHeader, re as SidebarInset, ie as SidebarMenu, ae as SidebarMenuButton, oe as SidebarMenuItem, l as SidebarNavigationItem, se as SidebarProvider, ce as SidebarRail, d as SidebarSubnavigation, le as SidebarTrigger, Cn as Skeleton, hn as Slider, wr as Stat, Tr as StatGroup, Pr as StatusDot, Dr as Stepper, Dn as SuccessState, Zt as Switch, e as TYPE_SCALE, Bn as TablePagination, _e as Tabs, ve as TabsContent, ye as TabsList, be as TabsTrigger, gn as TagInput, Gt as Textarea, ar as Timeline, or as TimelineItem, Or as Toaster, q as Tooltip, J as TooltipContent, Y as TooltipProvider, X as TooltipTrigger, Dt as badgeVariants, b as buttonVariants, Qn as cardVariants, cr as categoricalColor, lr as categoricalColors, ur as chartColors, dr as chartSeries, t as cn, yn as copyToClipboard, At as defaultFilter, kr as designTokenRestore, fr as entityColor, pr as entityTone, n as foldText, un as iconTileVariants, mr as identityColor, hr as identityColors, Nt as inputVariants, u as isNavigationPathActive, mn as labelVariants, Nr as progressTones, r as resolveColorToken, o as sidebarStyles, zn as tableCellTones, Kt as textareaVariants, jt as useCommandState, _ as useControlSize, bn as useCopyToClipboard, i as useIsMobile, a as useMediaQuery, P as useOverlayContainer, F as useOverlayContainerRef, ue as useSidebar, Fr as useSplashScreen };
@@ -0,0 +1,29 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { ControlSizeProvider as t } from "../forms/control-size.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/layout/FilterBar.tsx
5
+ function i({ primary: i, filters: a, actions: o, className: s, ...c }) {
6
+ return /* @__PURE__ */ n(t, {
7
+ size: "md",
8
+ children: /* @__PURE__ */ r("div", {
9
+ className: e("flex flex-wrap items-center gap-3", s),
10
+ ...c,
11
+ children: [
12
+ i && /* @__PURE__ */ n("div", {
13
+ className: "w-full min-w-0 sm:w-auto sm:min-w-72 sm:max-w-md sm:flex-1",
14
+ children: i
15
+ }),
16
+ a && /* @__PURE__ */ n("div", {
17
+ className: "flex min-w-0 flex-wrap items-center gap-2",
18
+ children: a
19
+ }),
20
+ o && /* @__PURE__ */ n("div", {
21
+ className: "ml-auto flex flex-wrap items-center gap-2",
22
+ children: o
23
+ })
24
+ ]
25
+ })
26
+ });
27
+ }
28
+ //#endregion
29
+ export { i as FilterBar };
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { cn as e } from "../utils.js";
3
+ import { PageHeader as t } from "./PageHeader.js";
4
+ import { PageSurface as n } from "./PageSurface.js";
5
+ import * as r from "react";
6
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ //#region src/layout/Page.tsx
8
+ var s = r.createContext(!1), c = ({ title: c, meta: l, description: u, actions: d, mobileLeading: f, onBack: p, backLabel: m, backDataAttr: h, scope: g, toolbar: _, children: v, fill: y = !1, width: b = "full", bleed: x = !1 }) => {
9
+ let S = y || x, C = r.useContext(s), w = /* @__PURE__ */ a(t, {
10
+ title: c,
11
+ meta: l,
12
+ description: u,
13
+ actions: d,
14
+ mobileLeading: C ? void 0 : f,
15
+ onBack: p,
16
+ backLabel: m,
17
+ backDataAttr: h
18
+ }), T = /* @__PURE__ */ o(i, { children: [
19
+ x ? /* @__PURE__ */ a("div", {
20
+ className: "sr-only",
21
+ children: w
22
+ }) : w,
23
+ g,
24
+ _,
25
+ v
26
+ ] });
27
+ return C ? /* @__PURE__ */ a("section", {
28
+ "data-slot": "page-section",
29
+ className: e("flex flex-col gap-4", S && "min-h-0 flex-1"),
30
+ children: T
31
+ }) : /* @__PURE__ */ a(s.Provider, {
32
+ value: !0,
33
+ children: /* @__PURE__ */ a(n, {
34
+ className: e("flex flex-col", S ? "h-full min-h-0 overflow-hidden" : "min-h-dvh"),
35
+ children: /* @__PURE__ */ a("div", {
36
+ "data-slot": "page",
37
+ className: e("mx-auto flex w-full flex-1 flex-col", x ? "gap-0" : "gap-4 p-4 sm:p-6", b === "content" && "max-w-6xl", S && "min-h-0"),
38
+ children: T
39
+ })
40
+ })
41
+ });
42
+ };
43
+ //#endregion
44
+ export { c as Page };
@@ -0,0 +1,65 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { ArrowLeft as t } from "../icons/glyphs.js";
3
+ import "../icons.js";
4
+ import { ControlSizeProvider as n } from "../forms/control-size.js";
5
+ import { Button as r } from "../forms/Button.js";
6
+ import * as i from "react";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ //#region src/layout/PageHeader.tsx
9
+ var s = i.forwardRef(({ title: i, meta: s, description: c, actions: l, navigation: u, mobileLeading: d, onBack: f, backLabel: p = "Volver", backDataAttr: m, className: h, ...g }, _) => /* @__PURE__ */ o("header", {
10
+ ref: _,
11
+ className: e("space-y-3", h),
12
+ ...g,
13
+ children: [/* @__PURE__ */ o("div", {
14
+ className: "flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",
15
+ children: [/* @__PURE__ */ o("div", {
16
+ className: "flex min-w-0 items-start gap-2.5",
17
+ children: [
18
+ d ? /* @__PURE__ */ a("div", {
19
+ className: "shrink-0 md:hidden",
20
+ children: d
21
+ }) : null,
22
+ f ? /* @__PURE__ */ a(r, {
23
+ variant: "ghost",
24
+ iconOnly: !0,
25
+ "aria-label": p,
26
+ "data-attr": m,
27
+ onClick: f,
28
+ className: "shrink-0",
29
+ children: /* @__PURE__ */ a(t, {})
30
+ }) : null,
31
+ /* @__PURE__ */ o("div", {
32
+ className: "min-w-0",
33
+ children: [/* @__PURE__ */ o("div", {
34
+ className: "flex min-w-0 items-baseline gap-2",
35
+ children: [/* @__PURE__ */ a("h1", {
36
+ className: "min-w-0 truncate font-heading text-heading-md tracking-tight text-foreground",
37
+ children: i
38
+ }), s ? /* @__PURE__ */ a("span", {
39
+ className: "shrink-0 text-body-md text-muted-foreground",
40
+ children: s
41
+ }) : null]
42
+ }), c ? /* @__PURE__ */ a("p", {
43
+ className: "mt-1 max-w-3xl text-body-md leading-snug text-muted-foreground",
44
+ children: c
45
+ }) : null]
46
+ })
47
+ ]
48
+ }), l ? /* @__PURE__ */ a("div", {
49
+ className: "flex shrink-0 flex-wrap items-center gap-2",
50
+ children: /* @__PURE__ */ a(n, {
51
+ size: "md",
52
+ children: l
53
+ })
54
+ }) : null]
55
+ }), u ? /* @__PURE__ */ a("div", {
56
+ className: "min-w-0",
57
+ children: /* @__PURE__ */ a(n, {
58
+ size: "md",
59
+ children: u
60
+ })
61
+ }) : null]
62
+ }));
63
+ s.displayName = "PageHeader";
64
+ //#endregion
65
+ export { s as PageHeader };
@@ -0,0 +1,20 @@
1
+ import { cn as e } from "../utils.js";
2
+ import * as t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/layout/PageShell.tsx
5
+ var r = {
6
+ content: "max-w-6xl",
7
+ wide: "max-w-screen-2xl",
8
+ full: "max-w-none"
9
+ }, i = {
10
+ default: "px-4 py-5 sm:px-6 sm:py-6 lg:px-8",
11
+ compact: "px-4 py-3 sm:px-5 sm:py-4 lg:px-6",
12
+ none: "p-0"
13
+ }, a = t.forwardRef(({ className: t, size: a = "wide", spacing: o = "default", ...s }, c) => /* @__PURE__ */ n("div", {
14
+ ref: c,
15
+ className: e("mx-auto w-full", r[a], i[o], t),
16
+ ...s
17
+ }));
18
+ a.displayName = "PageShell";
19
+ //#endregion
20
+ export { a as PageShell };
@@ -0,0 +1,19 @@
1
+ import { cn as e } from "../utils.js";
2
+ import * as t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region src/layout/PageSurface.tsx
5
+ var r = t.forwardRef(({ grain: t, className: r, ...i }, a) => /* @__PURE__ */ n("div", {
6
+ ref: a,
7
+ className: e("rounded-t-3xl bg-background [[data-app-shell=sidebar]_&]:rounded-none [[role=alert]+&]:rounded-t-none [[role=alert]+*_&]:rounded-t-none", t && "bg-grain", r),
8
+ ...i
9
+ }));
10
+ r.displayName = "PageSurface";
11
+ var i = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
12
+ ref: i,
13
+ "aria-hidden": "true",
14
+ className: e("pointer-events-none absolute left-1/2 top-1/2 size-[200vmax] rounded-full bg-background", t),
15
+ ...r
16
+ }));
17
+ i.displayName = "RevealCircle";
18
+ //#endregion
19
+ export { r as PageSurface, i as RevealCircle };
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import { cn as e } from "../utils.js";
3
+ import { GripVertical as t } from "../icons/glyphs.js";
4
+ import "../icons.js";
5
+ import "react";
6
+ import { jsx as n } from "react/jsx-runtime";
7
+ import * as r from "react-resizable-panels";
8
+ //#region src/layout/Resizable.tsx
9
+ var i = ({ className: t, ...i }) => /* @__PURE__ */ n(r.PanelGroup, {
10
+ className: e("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", t),
11
+ ...i
12
+ }), a = r.Panel, o = ({ withHandle: i, className: a, ...o }) => /* @__PURE__ */ n(r.PanelResizeHandle, {
13
+ className: e("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", a),
14
+ ...o,
15
+ children: i && /* @__PURE__ */ n("div", {
16
+ className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
17
+ children: /* @__PURE__ */ n(t, { className: "size-2.5" })
18
+ })
19
+ });
20
+ //#endregion
21
+ export { o as ResizableHandle, a as ResizablePanel, i as ResizablePanelGroup };
@@ -0,0 +1,35 @@
1
+ "use client";
2
+ import { cn as e } from "../utils.js";
3
+ import * as t from "react";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ import * as i from "@radix-ui/react-scroll-area";
6
+ //#region src/layout/ScrollArea.tsx
7
+ var a = t.forwardRef(({ className: t, children: a, orientation: s = "vertical", fill: c = !1, ...l }, u) => /* @__PURE__ */ r(i.Root, {
8
+ ref: u,
9
+ className: e("relative overflow-hidden", t),
10
+ ...l,
11
+ children: [
12
+ /* @__PURE__ */ n(i.Viewport, {
13
+ tabIndex: 0,
14
+ className: e("size-full min-h-0 rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-ring", s === "vertical" && "[overflow-x:hidden!important] [&>div]:!block", s === "vertical" && c && "[&>div]:!h-full", s === "horizontal" && "[overflow-y:hidden!important] [&>div]:!flex [&>div]:!h-full [&>div]:!w-max", s === "both" && "[&>div]:!block [&>div]:!min-w-full"),
15
+ children: a
16
+ }),
17
+ (s === "vertical" || s === "both") && /* @__PURE__ */ n(o, { orientation: "vertical" }),
18
+ (s === "horizontal" || s === "both") && /* @__PURE__ */ n(o, { orientation: "horizontal" }),
19
+ /* @__PURE__ */ n(i.Corner, {})
20
+ ]
21
+ }));
22
+ a.displayName = i.Root.displayName;
23
+ var o = t.forwardRef(({ className: t, orientation: r = "vertical", ...a }, o) => /* @__PURE__ */ n(i.ScrollAreaScrollbar, {
24
+ ref: o,
25
+ orientation: r,
26
+ className: e("z-10 flex touch-none select-none rounded-full p-px transition-colors", r === "vertical" ? "h-full w-1.5" : "h-1.5 flex-col", t),
27
+ ...a,
28
+ children: /* @__PURE__ */ n(i.ScrollAreaThumb, {
29
+ className: e("relative flex-1 rounded-full bg-scrollbar-thumb hover:bg-scrollbar-thumb-hover", r === "vertical" ? "min-h-8" : "min-w-8"),
30
+ style: { backgroundColor: "hsl(var(--scrollbar-thumb))" }
31
+ })
32
+ }));
33
+ o.displayName = i.ScrollAreaScrollbar.displayName;
34
+ //#endregion
35
+ export { a as ScrollArea, o as ScrollBar };
@@ -0,0 +1,41 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { X as t } from "../icons/glyphs.js";
3
+ import "../icons.js";
4
+ import { ControlSizeProvider as n } from "../forms/control-size.js";
5
+ import { Button as r } from "../forms/Button.js";
6
+ import * as i from "react";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
+ //#region src/layout/SelectionBar.tsx
9
+ var s = i.forwardRef(({ label: i, extra: s, actions: c, onClear: l, clearLabel: u = "Limpiar selección", className: d, ...f }, p) => /* @__PURE__ */ a("div", {
10
+ ref: p,
11
+ role: "toolbar",
12
+ "aria-label": "Acciones de la selección",
13
+ className: e("mx-auto flex w-fit max-w-full flex-wrap items-center gap-x-3 gap-y-2 rounded-2xl border border-border bg-card px-2 py-2 shadow-lg", d),
14
+ ...f,
15
+ children: /* @__PURE__ */ o(n, {
16
+ size: "md",
17
+ children: [
18
+ /* @__PURE__ */ a(r, {
19
+ variant: "ghost",
20
+ tone: "muted",
21
+ iconOnly: !0,
22
+ "aria-label": u,
23
+ onClick: l,
24
+ children: /* @__PURE__ */ a(t, {})
25
+ }),
26
+ /* @__PURE__ */ a("span", {
27
+ className: "text-label-md font-medium tabular-nums text-foreground",
28
+ "aria-live": "polite",
29
+ children: i
30
+ }),
31
+ s,
32
+ c && /* @__PURE__ */ a("div", {
33
+ className: "flex flex-wrap items-center gap-2 border-l border-border pl-3",
34
+ children: c
35
+ })
36
+ ]
37
+ })
38
+ }));
39
+ s.displayName = "SelectionBar";
40
+ //#endregion
41
+ export { s as SelectionBar };
package/dist/layout.js ADDED
@@ -0,0 +1,9 @@
1
+ import { PageHeader as e } from "./layout/PageHeader.js";
2
+ import { PageSurface as t, RevealCircle as n } from "./layout/PageSurface.js";
3
+ import { Page as r } from "./layout/Page.js";
4
+ import { PageShell as i } from "./layout/PageShell.js";
5
+ import { FilterBar as a } from "./layout/FilterBar.js";
6
+ import { SelectionBar as o } from "./layout/SelectionBar.js";
7
+ import { ScrollArea as s, ScrollBar as c } from "./layout/ScrollArea.js";
8
+ import { ResizableHandle as l, ResizablePanel as u, ResizablePanelGroup as d } from "./layout/Resizable.js";
9
+ export { a as FilterBar, r as Page, e as PageHeader, i as PageShell, t as PageSurface, l as ResizableHandle, u as ResizablePanel, d as ResizablePanelGroup, n as RevealCircle, s as ScrollArea, c as ScrollBar, o as SelectionBar };
@@ -0,0 +1,59 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { X as t } from "../icons/glyphs.js";
3
+ import "../icons.js";
4
+ import { Button as n } from "../forms/Button.js";
5
+ import "react";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ //#region src/lite/Contact.tsx
8
+ function a({ prompt: a, actionLabel: o, onAction: s, onDismiss: c, className: l }) {
9
+ return /* @__PURE__ */ i("div", {
10
+ "data-slot": "lite-contextual-fab",
11
+ className: e("flex items-center gap-2 rounded-full bg-foreground p-1.5 pl-2 text-background shadow-xl animate-in slide-in-from-bottom-2 duration-normal", l),
12
+ children: [
13
+ /* @__PURE__ */ r(n, {
14
+ type: "button",
15
+ variant: "ghost",
16
+ size: "xl",
17
+ iconOnly: !0,
18
+ "aria-label": "Descartar",
19
+ onClick: c,
20
+ className: "rounded-full text-background/60 hover:bg-background/10 hover:text-background",
21
+ children: /* @__PURE__ */ r(t, {})
22
+ }),
23
+ /* @__PURE__ */ r("p", {
24
+ className: "min-w-0 flex-1 truncate text-label-md font-semibold",
25
+ children: a
26
+ }),
27
+ /* @__PURE__ */ r(n, {
28
+ type: "button",
29
+ tone: "tertiary",
30
+ size: "xl",
31
+ onClick: s,
32
+ className: "rounded-full px-5 font-bold",
33
+ children: o
34
+ })
35
+ ]
36
+ });
37
+ }
38
+ function o({ className: t, ...n }) {
39
+ return /* @__PURE__ */ r("div", {
40
+ "data-slot": "lite-contact-outcome-grid",
41
+ className: e("grid grid-cols-4 gap-2", t),
42
+ ...n
43
+ });
44
+ }
45
+ function s({ selected: t, icon: n, label: a, className: o, ...s }) {
46
+ return /* @__PURE__ */ i("button", {
47
+ type: "button",
48
+ "aria-pressed": t ?? !1,
49
+ "data-slot": "lite-contact-outcome-option",
50
+ className: e("flex min-h-24 flex-col items-center justify-center gap-2 rounded-2xl border bg-card px-1.5 py-3 text-center text-label-sm font-medium text-foreground shadow-sm outline-none transition-colors duration-fast focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none", t ? "border-foreground bg-secondary" : "border-border hover:bg-accent", o),
51
+ ...s,
52
+ children: [/* @__PURE__ */ r("span", {
53
+ className: e("grid size-9 place-items-center rounded-full bg-secondary [&_svg]:size-4", t && "bg-background"),
54
+ children: n
55
+ }), /* @__PURE__ */ r("span", { children: a })]
56
+ });
57
+ }
58
+ //#endregion
59
+ export { o as LiteContactOutcomeGrid, s as LiteContactOutcomeOption, a as LiteContextualFab };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ import { cn as e } from "../utils.js";
3
+ import { Check as t, ChevronRight as n, Sparkles as r } from "../icons/glyphs.js";
4
+ import "../icons.js";
5
+ import "react";
6
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
+ //#region src/lite/Coupon.tsx
8
+ function o({ value: n, condition: o, active: s = !1, smart: c = !1, name: l, selected: u = !1, onSelectedChange: d, className: f, ...p }) {
9
+ return /* @__PURE__ */ a("button", {
10
+ type: "button",
11
+ "data-slot": "lite-coupon",
12
+ "data-active": s || void 0,
13
+ "data-selected": u || void 0,
14
+ "aria-pressed": d ? u : void 0,
15
+ onClick: (e) => {
16
+ p.onClick?.(e), e.defaultPrevented || d?.(!u);
17
+ },
18
+ className: e("relative flex shrink-0 flex-col items-start justify-center gap-0.5 rounded-xl px-5 py-2.5 text-left outline-none transition-[background-color,transform] duration-fast ease-standard active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none motion-reduce:active:scale-100", s || u ? "bg-foreground text-background" : "bg-primary/10 text-foreground", "before:absolute before:left-0 before:top-1/2 before:size-3 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:bg-background before:content-['']", "after:absolute after:right-0 after:top-1/2 after:size-3 after:translate-x-1/2 after:-translate-y-1/2 after:rounded-full after:bg-background after:content-['']", f),
19
+ ...p,
20
+ children: [
21
+ l == null ? null : /* @__PURE__ */ i("span", {
22
+ className: "text-overline font-bold uppercase tracking-wide opacity-60",
23
+ children: l
24
+ }),
25
+ /* @__PURE__ */ a("span", {
26
+ className: "flex items-center gap-1 whitespace-nowrap text-label-md font-bold",
27
+ children: [
28
+ c ? /* @__PURE__ */ i(r, { className: "size-3" }) : null,
29
+ n,
30
+ u ? /* @__PURE__ */ i(t, { className: "size-3" }) : null
31
+ ]
32
+ }),
33
+ o == null ? null : /* @__PURE__ */ i("span", {
34
+ className: "max-w-52 truncate text-body-xs opacity-70",
35
+ children: o
36
+ })
37
+ ]
38
+ });
39
+ }
40
+ function s({ className: t, children: r = "Ver todas", ...o }) {
41
+ return /* @__PURE__ */ a("button", {
42
+ type: "button",
43
+ "data-slot": "lite-coupon-more",
44
+ className: e("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl bg-primary/10 px-5 py-2.5 text-foreground outline-none transition-transform duration-fast active:scale-[0.97] focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none motion-reduce:active:scale-100", t),
45
+ ...o,
46
+ children: [/* @__PURE__ */ i("span", {
47
+ className: "grid size-5 place-items-center rounded-full bg-foreground text-background",
48
+ children: /* @__PURE__ */ i(n, { className: "size-3" })
49
+ }), /* @__PURE__ */ i("span", {
50
+ className: "text-body-xs opacity-70",
51
+ children: r
52
+ })]
53
+ });
54
+ }
55
+ //#endregion
56
+ export { o as LiteCoupon, s as LiteCouponMore };
@@ -0,0 +1,79 @@
1
+ import { cn as e } from "../utils.js";
2
+ import { Skeleton as t } from "../feedback/Skeleton.js";
3
+ import "react";
4
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
+ //#region src/lite/Loading.tsx
6
+ function i({ label: i = "Cargando…", className: a }) {
7
+ return /* @__PURE__ */ r("div", {
8
+ role: "status",
9
+ "aria-label": i,
10
+ "data-slot": "lite-loading-block",
11
+ className: e("space-y-3 py-4", a),
12
+ children: [
13
+ /* @__PURE__ */ n("span", {
14
+ className: "sr-only",
15
+ children: i
16
+ }),
17
+ /* @__PURE__ */ n(t, { className: "h-4 w-2/5" }),
18
+ /* @__PURE__ */ n(t, { className: "h-12 w-full rounded-2xl" }),
19
+ /* @__PURE__ */ n(t, { className: "h-12 w-full rounded-2xl" })
20
+ ]
21
+ });
22
+ }
23
+ function a({ rows: i = 4, className: a, label: o = "Cargando…" }) {
24
+ return /* @__PURE__ */ r("div", {
25
+ role: "status",
26
+ "aria-label": o,
27
+ "data-slot": "lite-list-skeleton",
28
+ className: e("space-y-2", a),
29
+ children: [/* @__PURE__ */ n("span", {
30
+ className: "sr-only",
31
+ children: o
32
+ }), Array.from({ length: i }, (e, i) => /* @__PURE__ */ r("div", {
33
+ className: "flex items-center gap-3 rounded-2xl border border-border bg-card p-3",
34
+ children: [
35
+ /* @__PURE__ */ n(t, { className: "size-10 shrink-0 rounded-full" }),
36
+ /* @__PURE__ */ r("span", {
37
+ className: "min-w-0 flex-1 space-y-2",
38
+ children: [/* @__PURE__ */ n(t, { className: "h-4 w-3/5" }), /* @__PURE__ */ n(t, { className: "h-3 w-4/5" })]
39
+ }),
40
+ /* @__PURE__ */ n(t, { className: "size-7 shrink-0 rounded-full" })
41
+ ]
42
+ }, i))]
43
+ });
44
+ }
45
+ function o({ className: i }) {
46
+ return /* @__PURE__ */ r("div", {
47
+ role: "status",
48
+ "aria-label": "Cargando Mi día",
49
+ "data-slot": "lite-home-skeleton",
50
+ className: e("space-y-3", i),
51
+ children: [
52
+ /* @__PURE__ */ n("span", {
53
+ className: "sr-only",
54
+ children: "Cargando Mi día"
55
+ }),
56
+ /* @__PURE__ */ r("div", {
57
+ className: "space-y-3 rounded-2xl border border-border bg-accent p-4",
58
+ children: [
59
+ /* @__PURE__ */ n(t, { className: "h-4 w-24 bg-foreground/10" }),
60
+ /* @__PURE__ */ n(t, { className: "h-9 w-36 bg-foreground/10" }),
61
+ /* @__PURE__ */ n(t, { className: "h-3 w-44 bg-foreground/10" }),
62
+ /* @__PURE__ */ n(t, { className: "h-2 w-full bg-foreground/10" })
63
+ ]
64
+ }),
65
+ /* @__PURE__ */ n(t, { className: "h-[72px] w-full rounded-2xl bg-tertiary/40" }),
66
+ /* @__PURE__ */ r("div", {
67
+ className: "grid grid-cols-3 gap-2",
68
+ children: [
69
+ /* @__PURE__ */ n(t, { className: "h-9 rounded-full" }),
70
+ /* @__PURE__ */ n(t, { className: "h-9 rounded-full" }),
71
+ /* @__PURE__ */ n(t, { className: "h-9 rounded-full" })
72
+ ]
73
+ }),
74
+ /* @__PURE__ */ n(a, { rows: 4 })
75
+ ]
76
+ });
77
+ }
78
+ //#endregion
79
+ export { o as LiteHomeSkeleton, a as LiteListSkeleton, i as LiteLoadingBlock };