@epilot/volt-ui-experimental-griffel 0.3.0 → 0.3.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 (140) hide show
  1. package/dist/components/accordion/accordion.js +66 -126
  2. package/dist/components/accordion/accordion.js.map +1 -1
  3. package/dist/components/alert-dialog/alert-dialog.js +138 -238
  4. package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
  5. package/dist/components/avatar/avatar-group.js +47 -102
  6. package/dist/components/avatar/avatar-group.js.map +1 -1
  7. package/dist/components/avatar/avatar.js +72 -96
  8. package/dist/components/avatar/avatar.js.map +1 -1
  9. package/dist/components/badge/badge.js +48 -56
  10. package/dist/components/badge/badge.js.map +1 -1
  11. package/dist/components/breadcrumb/breadcrumb.js +49 -97
  12. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  13. package/dist/components/button/button.js +49 -57
  14. package/dist/components/button/button.js.map +1 -1
  15. package/dist/components/button-group/button-group.js +31 -55
  16. package/dist/components/button-group/button-group.js.map +1 -1
  17. package/dist/components/callout/callout.js +164 -288
  18. package/dist/components/callout/callout.js.map +1 -1
  19. package/dist/components/card/card.js +81 -137
  20. package/dist/components/card/card.js.map +1 -1
  21. package/dist/components/checkbox/checkbox.js +48 -96
  22. package/dist/components/checkbox/checkbox.js.map +1 -1
  23. package/dist/components/collapsible-sidebar/collapsible-sidebar.js +107 -155
  24. package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
  25. package/dist/components/command/command.js +161 -285
  26. package/dist/components/command/command.js.map +1 -1
  27. package/dist/components/data-table/data-table-body.js +54 -114
  28. package/dist/components/data-table/data-table-body.js.map +1 -1
  29. package/dist/components/data-table/data-table-column-header.js +45 -117
  30. package/dist/components/data-table/data-table-column-header.js.map +1 -1
  31. package/dist/components/data-table/data-table-column-visibility.js +39 -98
  32. package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
  33. package/dist/components/data-table/data-table-content.js +58 -90
  34. package/dist/components/data-table/data-table-content.js.map +1 -1
  35. package/dist/components/data-table/data-table-error.js +39 -83
  36. package/dist/components/data-table/data-table-error.js.map +1 -1
  37. package/dist/components/data-table/data-table-header.js +54 -88
  38. package/dist/components/data-table/data-table-header.js.map +1 -1
  39. package/dist/components/data-table/data-table-loading.js +15 -27
  40. package/dist/components/data-table/data-table-loading.js.map +1 -1
  41. package/dist/components/data-table/data-table-pagination.js +19 -27
  42. package/dist/components/data-table/data-table-pagination.js.map +1 -1
  43. package/dist/components/data-table/data-table-row.js +64 -87
  44. package/dist/components/data-table/data-table-row.js.map +1 -1
  45. package/dist/components/data-table/data-table-toolbar.js +16 -24
  46. package/dist/components/data-table/data-table-toolbar.js.map +1 -1
  47. package/dist/components/data-table/data-table.js +145 -181
  48. package/dist/components/data-table/data-table.js.map +1 -1
  49. package/dist/components/date-range-picker/date-range-picker.js +214 -342
  50. package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
  51. package/dist/components/date-range-picker/range-calendar.js +92 -132
  52. package/dist/components/date-range-picker/range-calendar.js.map +1 -1
  53. package/dist/components/date-time-picker/calendar.js +317 -501
  54. package/dist/components/date-time-picker/calendar.js.map +1 -1
  55. package/dist/components/date-time-picker/date-time-picker-context.js +60 -64
  56. package/dist/components/date-time-picker/date-time-picker-context.js.map +1 -1
  57. package/dist/components/date-time-picker/date-time-picker-input.js +149 -249
  58. package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
  59. package/dist/components/date-time-picker/date-time-picker-panel.js +165 -273
  60. package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
  61. package/dist/components/date-time-picker/date-time-picker-popover.js +14 -22
  62. package/dist/components/date-time-picker/date-time-picker-popover.js.map +1 -1
  63. package/dist/components/date-time-picker/date-time-picker.js +90 -134
  64. package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
  65. package/dist/components/date-time-picker/time-picker.js +132 -198
  66. package/dist/components/date-time-picker/time-picker.js.map +1 -1
  67. package/dist/components/density-provider/density-provider.js +19 -39
  68. package/dist/components/density-provider/density-provider.js.map +1 -1
  69. package/dist/components/dialog/dialog.js +145 -253
  70. package/dist/components/dialog/dialog.js.map +1 -1
  71. package/dist/components/drawer/drawer.js +164 -272
  72. package/dist/components/drawer/drawer.js.map +1 -1
  73. package/dist/components/dropdown-menu/dropdown-menu.js +204 -384
  74. package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
  75. package/dist/components/field/field-combobox.js +243 -435
  76. package/dist/components/field/field-combobox.js.map +1 -1
  77. package/dist/components/field/field-select.js +19 -23
  78. package/dist/components/field/field-select.js.map +1 -1
  79. package/dist/components/field/field.js +189 -297
  80. package/dist/components/field/field.js.map +1 -1
  81. package/dist/components/label/label.js +19 -27
  82. package/dist/components/label/label.js.map +1 -1
  83. package/dist/components/list/list.js +315 -595
  84. package/dist/components/list/list.js.map +1 -1
  85. package/dist/components/option-card/option-card.js +159 -323
  86. package/dist/components/option-card/option-card.js.map +1 -1
  87. package/dist/components/pill/pill.js +68 -84
  88. package/dist/components/pill/pill.js.map +1 -1
  89. package/dist/components/popover/popover.js +48 -84
  90. package/dist/components/popover/popover.js.map +1 -1
  91. package/dist/components/radio/radio.js +49 -89
  92. package/dist/components/radio/radio.js.map +1 -1
  93. package/dist/components/scroll-overflow/scroll-overflow.js +198 -350
  94. package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
  95. package/dist/components/segmented-control/segmented-control.js +97 -141
  96. package/dist/components/segmented-control/segmented-control.js.map +1 -1
  97. package/dist/components/select/select.js +200 -396
  98. package/dist/components/select/select.js.map +1 -1
  99. package/dist/components/separator/separator.js +16 -24
  100. package/dist/components/separator/separator.js.map +1 -1
  101. package/dist/components/skeleton/skeleton.js +43 -83
  102. package/dist/components/skeleton/skeleton.js.map +1 -1
  103. package/dist/components/spinner/spinner.js +20 -44
  104. package/dist/components/spinner/spinner.js.map +1 -1
  105. package/dist/components/switch/switch.js +83 -155
  106. package/dist/components/switch/switch.js.map +1 -1
  107. package/dist/components/table/table-pagination.js +210 -468
  108. package/dist/components/table/table-pagination.js.map +1 -1
  109. package/dist/components/table/table.js +131 -211
  110. package/dist/components/table/table.js.map +1 -1
  111. package/dist/components/tabs/tabs.js +58 -94
  112. package/dist/components/tabs/tabs.js.map +1 -1
  113. package/dist/components/text/text.js +32 -40
  114. package/dist/components/text/text.js.map +1 -1
  115. package/dist/components/toast/toast.js +111 -187
  116. package/dist/components/toast/toast.js.map +1 -1
  117. package/dist/components/toggle/toggle-group.js +24 -40
  118. package/dist/components/toggle/toggle-group.js.map +1 -1
  119. package/dist/components/toggle/toggle.js +39 -47
  120. package/dist/components/toggle/toggle.js.map +1 -1
  121. package/dist/components/tooltip/tooltip.js +62 -106
  122. package/dist/components/tooltip/tooltip.js.map +1 -1
  123. package/dist/lib/clear-button.js +15 -27
  124. package/dist/lib/clear-button.js.map +1 -1
  125. package/dist/lib/icons.js +6 -18
  126. package/dist/lib/icons.js.map +1 -1
  127. package/dist/tokens.json +1 -1
  128. package/package.json +1 -1
  129. package/dist/_virtual/jsx-dev-runtime.js +0 -5
  130. package/dist/_virtual/jsx-dev-runtime.js.map +0 -1
  131. package/dist/_virtual/react-jsx-dev-runtime.development.js +0 -5
  132. package/dist/_virtual/react-jsx-dev-runtime.development.js.map +0 -1
  133. package/dist/_virtual/react-jsx-dev-runtime.production.js +0 -5
  134. package/dist/_virtual/react-jsx-dev-runtime.production.js.map +0 -1
  135. package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js +0 -236
  136. package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js.map +0 -1
  137. package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js +0 -21
  138. package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js.map +0 -1
  139. package/dist/vendor/react/jsx-dev-runtime.js +0 -9
  140. package/dist/vendor/react/jsx-dev-runtime.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"density-provider.js","sources":["../../../src/components/density-provider/density-provider.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\n\n/**\n * DENSITY-SPEC.md §4.4 — the two density mechanisms, and why this component is the only one that\n * does both:\n *\n * - CSS custom-property inheritance (no JavaScript) already delivers the shell's AMBIENT default\n * to every element, portalled or not — a Radix portal root is still an ordinary DOM descendant\n * of `<html>`, so it inherits `<html data-density=\"...\">` with zero wiring. No provider needed\n * for that common case.\n * - A bare `data-density` DOM attribute alone never reaches a portal that ISN'T a DOM descendant of\n * it — setting a DOM attribute runs no React code, so `useDensity()` inside such a subtree (or a\n * sibling-in-DOM, descendant-in-React-tree portal) sees nothing from it.\n *\n * `DensityProvider` sets both at once: a real DOM `data-density` boundary for ordinary (non-portal)\n * CSS inheritance, and a React context value that portal-content components (`SelectContent`,\n * `PopoverContent`, `DialogContent`, etc.) read via `useDensity()` to re-stamp themselves — since\n * portalled content is a React-tree descendant but a DOM sibling, only the context path reaches it.\n */\n\nexport type Density = \"compact\" | \"normal\" | \"comfortable\"\n\nconst CANONICAL_DENSITIES: readonly Density[] = [\"compact\", \"normal\", \"comfortable\"]\n\n/**\n * Invalid runtime input (a bad string slipping past TypeScript) normalizes to \"normal\". Exported\n * (package-internal — NOT added to `src/index.ts`, no new public export) so `Table`/`DataTable`/\n * `TableHead`/`TableCell` can apply the exact same normalization to their own DOM `data-density`\n * stamp that `DensityContextBoundary` already applies to the context value — one function, so the\n * two can never independently disagree on what an invalid input normalizes to\n * (TABLE-DENSITY-REVIEW-1.md #2).\n */\nexport const canonicalDensity = (density: Density): Density =>\n CANONICAL_DENSITIES.includes(density) ? density : \"normal\"\n\n/**\n * Unexported by design, same as `ListContext` — read only through `useDensity()`. Default\n * `undefined`: a component nested with no `DensityProvider` ancestor gets `undefined`, never a\n * fabricated \"normal\" — that would be a JS reading of ambient CSS this hook explicitly does not do.\n */\nconst DensityContext = React.createContext<Density | undefined>(undefined)\n\nexport type DensityProviderProps = React.ComponentProps<\"div\"> & {\n /** The explicit density boundary for this subtree. No default — always a real caller choice. */\n density: Density\n}\n\n/**\n * Ordinary HTML div semantics: forwards `ref`/`className`/`style`/every other div prop, no\n * polymorphic `asChild`. Renders one real DOM node (the boundary) wrapping a React context\n * provider around `children` — not two independent trees, so context and DOM boundary can never\n * disagree about which density is active.\n */\nexport const DensityProvider = React.forwardRef<\n HTMLDivElement,\n DensityProviderProps\n>(function DensityProvider({ density, className, children, ...props }, ref) {\n const value = canonicalDensity(density)\n\n return (\n <div\n ref={ref}\n data-slot=\"density-provider\"\n {...{ [SLOT_ATTR]: \"density-provider\" }}\n className={className}\n {...props}\n // Authoritative, spread LAST: a raw caller `data-density` prop (part of `...props`, since\n // `DensityProviderProps` extends every native div prop) must never win over the normalized\n // `density` prop — the DOM attribute and the context value below both derive from the same\n // `value`, and this ordering is what keeps that invariant true even when a caller passes a\n // conflicting literal `data-density` alongside `density` (finish-line integration fix).\n data-density={value}\n >\n <DensityContext.Provider value={value}>\n {children}\n </DensityContext.Provider>\n </div>\n )\n})\n\n/**\n * Returns the nearest explicit `DensityProvider` value, or `undefined` if none exists. Never reads\n * `getComputedStyle`/CSS custom properties — an `undefined` result means \"no explicit override in\n * the React tree,\" not \"ambient density is unknown\"; the caller's job (portal content components)\n * is to stamp nothing in that case and let ordinary CSS inheritance supply the ambient value.\n */\nexport const useDensity = (): Density | undefined => React.useContext(DensityContext)\n\n/**\n * Internal, package-private — NOT exported from `src/index.ts`. `DensityProvider` is the only\n * public density-boundary API; this is a context-only variant for a component that already owns a\n * real DOM boundary of its own (e.g. `Table`, whose root is a `<table>` and cannot safely have\n * `DensityProvider`'s wrapping `<div>` injected into its child structure without breaking table\n * semantics) and just needs the same context so its own descendant portals (e.g.\n * `table-pagination.tsx`'s inline Select) can read an explicit override via `useDensity()`.\n *\n * Renders no DOM node. Provides nothing (passes `children` through untouched, leaving whatever\n * outer `DensityContext` value already exists) when `density` is `undefined` — omitted density\n * must not fabricate a boundary any more than `DensityProvider` fabricates a DOM stamp.\n *\n * @no-host-element A pure context provider — it renders no host element (a `React.Context.Provider`\n * is not one), so there is no DOM node for a forwarded ref to ever reach.\n */\nexport const DensityContextBoundary = ({\n density,\n children,\n}: {\n density: Density | undefined\n children: React.ReactNode\n}): React.ReactElement => {\n if (density === undefined) return <>{children}</>\n return (\n <DensityContext.Provider value={canonicalDensity(density)}>\n {children}\n </DensityContext.Provider>\n )\n}\n"],"names":["CANONICAL_DENSITIES","canonicalDensity","density","DensityContext","React","DensityProvider","className","children","props","ref","value","jsxDEV","SLOT_ATTR","useDensity","DensityContextBoundary","Fragment","this"],"mappings":";;;AAwBA,MAAMA,IAA0C,CAAC,WAAW,UAAU,aAAa,GAUtEC,IAAmB,CAACC,MAC/BF,EAAoB,SAASE,CAAO,IAAIA,IAAU,UAO9CC,IAAiBC,EAAM,cAAmC,MAAS,GAa5DC,IAAkBD,EAAM,WAGnC,SAAyB,EAAE,SAAAF,GAAS,WAAAI,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,GAAK;AAC1E,QAAMC,IAAQT,EAAiBC,CAAO;AAEtC,SACES,gBAAAA,EAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,WAAAN;AAAA,MACC,GAAGE;AAAA,MAMJ,gBAAcE;AAAA,MAEd,UAAAC,gBAAAA,EAAAA,OAACR,EAAe,UAAf,EAAwB,OAAAO,GACtB,UAAAH,EAAA,GADH,QAAA,IAAA;AAAA,QAAA,UAAA;AAAA,QAAA,YAAA;AAAA,QAAA,cAAA;AAAA,MAAA,GAAA,IAEA;AAAA,IAAA;AAAA,IAfF;AAAA,IAAA;AAAA,IAAA;AAAA,MAAA,UAAA;AAAA,MAAA,YAAA;AAAA,MAAA,cAAA;AAAA,IAAA;AAAA,IAAA;AAAA,EAAA;AAkBJ,CAAC,GAQYM,IAAa,MAA2BT,EAAM,WAAWD,CAAc,GAiBvEW,IAAyB,CAAC;AAAA,EACrC,SAAAZ;AAAA,EACA,UAAAK;AACF,MAIML,MAAY,SAAkBS,gBAAAA,EAAAA,OAAAI,EAAAA,UAAA,EAAG,UAAAR,EAAA,GAAH,QAAA,IAAA;AAAA,EAAA,UAAA;AAAA,EAAA,YAAA;AAAA,EAAA,cAAA;AAAA,GAAAS,MAAY,IAE5CL,gBAAAA,SAACR,EAAe,UAAf,EAAwB,OAAOF,EAAiBC,CAAO,GACrD,UAAAK,KADH,QAAA,IAAA;AAAA,EAAA,UAAA;AAAA,EAAA,YAAA;AAAA,EAAA,cAAA;AAAA,GAAAS,MAEA;"}
1
+ {"version":3,"file":"density-provider.js","sources":["../../../src/components/density-provider/density-provider.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\n\n/**\n * DENSITY-SPEC.md §4.4 — the two density mechanisms, and why this component is the only one that\n * does both:\n *\n * - CSS custom-property inheritance (no JavaScript) already delivers the shell's AMBIENT default\n * to every element, portalled or not — a Radix portal root is still an ordinary DOM descendant\n * of `<html>`, so it inherits `<html data-density=\"...\">` with zero wiring. No provider needed\n * for that common case.\n * - A bare `data-density` DOM attribute alone never reaches a portal that ISN'T a DOM descendant of\n * it — setting a DOM attribute runs no React code, so `useDensity()` inside such a subtree (or a\n * sibling-in-DOM, descendant-in-React-tree portal) sees nothing from it.\n *\n * `DensityProvider` sets both at once: a real DOM `data-density` boundary for ordinary (non-portal)\n * CSS inheritance, and a React context value that portal-content components (`SelectContent`,\n * `PopoverContent`, `DialogContent`, etc.) read via `useDensity()` to re-stamp themselves — since\n * portalled content is a React-tree descendant but a DOM sibling, only the context path reaches it.\n */\n\nexport type Density = \"compact\" | \"normal\" | \"comfortable\"\n\nconst CANONICAL_DENSITIES: readonly Density[] = [\"compact\", \"normal\", \"comfortable\"]\n\n/**\n * Invalid runtime input (a bad string slipping past TypeScript) normalizes to \"normal\". Exported\n * (package-internal — NOT added to `src/index.ts`, no new public export) so `Table`/`DataTable`/\n * `TableHead`/`TableCell` can apply the exact same normalization to their own DOM `data-density`\n * stamp that `DensityContextBoundary` already applies to the context value — one function, so the\n * two can never independently disagree on what an invalid input normalizes to\n * (TABLE-DENSITY-REVIEW-1.md #2).\n */\nexport const canonicalDensity = (density: Density): Density =>\n CANONICAL_DENSITIES.includes(density) ? density : \"normal\"\n\n/**\n * Unexported by design, same as `ListContext` — read only through `useDensity()`. Default\n * `undefined`: a component nested with no `DensityProvider` ancestor gets `undefined`, never a\n * fabricated \"normal\" — that would be a JS reading of ambient CSS this hook explicitly does not do.\n */\nconst DensityContext = React.createContext<Density | undefined>(undefined)\n\nexport type DensityProviderProps = React.ComponentProps<\"div\"> & {\n /** The explicit density boundary for this subtree. No default — always a real caller choice. */\n density: Density\n}\n\n/**\n * Ordinary HTML div semantics: forwards `ref`/`className`/`style`/every other div prop, no\n * polymorphic `asChild`. Renders one real DOM node (the boundary) wrapping a React context\n * provider around `children` — not two independent trees, so context and DOM boundary can never\n * disagree about which density is active.\n */\nexport const DensityProvider = React.forwardRef<\n HTMLDivElement,\n DensityProviderProps\n>(function DensityProvider({ density, className, children, ...props }, ref) {\n const value = canonicalDensity(density)\n\n return (\n <div\n ref={ref}\n data-slot=\"density-provider\"\n {...{ [SLOT_ATTR]: \"density-provider\" }}\n className={className}\n {...props}\n // Authoritative, spread LAST: a raw caller `data-density` prop (part of `...props`, since\n // `DensityProviderProps` extends every native div prop) must never win over the normalized\n // `density` prop — the DOM attribute and the context value below both derive from the same\n // `value`, and this ordering is what keeps that invariant true even when a caller passes a\n // conflicting literal `data-density` alongside `density` (finish-line integration fix).\n data-density={value}\n >\n <DensityContext.Provider value={value}>\n {children}\n </DensityContext.Provider>\n </div>\n )\n})\n\n/**\n * Returns the nearest explicit `DensityProvider` value, or `undefined` if none exists. Never reads\n * `getComputedStyle`/CSS custom properties — an `undefined` result means \"no explicit override in\n * the React tree,\" not \"ambient density is unknown\"; the caller's job (portal content components)\n * is to stamp nothing in that case and let ordinary CSS inheritance supply the ambient value.\n */\nexport const useDensity = (): Density | undefined => React.useContext(DensityContext)\n\n/**\n * Internal, package-private — NOT exported from `src/index.ts`. `DensityProvider` is the only\n * public density-boundary API; this is a context-only variant for a component that already owns a\n * real DOM boundary of its own (e.g. `Table`, whose root is a `<table>` and cannot safely have\n * `DensityProvider`'s wrapping `<div>` injected into its child structure without breaking table\n * semantics) and just needs the same context so its own descendant portals (e.g.\n * `table-pagination.tsx`'s inline Select) can read an explicit override via `useDensity()`.\n *\n * Renders no DOM node. Provides nothing (passes `children` through untouched, leaving whatever\n * outer `DensityContext` value already exists) when `density` is `undefined` — omitted density\n * must not fabricate a boundary any more than `DensityProvider` fabricates a DOM stamp.\n *\n * @no-host-element A pure context provider — it renders no host element (a `React.Context.Provider`\n * is not one), so there is no DOM node for a forwarded ref to ever reach.\n */\nexport const DensityContextBoundary = ({\n density,\n children,\n}: {\n density: Density | undefined\n children: React.ReactNode\n}): React.ReactElement => {\n if (density === undefined) return <>{children}</>\n return (\n <DensityContext.Provider value={canonicalDensity(density)}>\n {children}\n </DensityContext.Provider>\n )\n}\n"],"names":["CANONICAL_DENSITIES","canonicalDensity","density","DensityContext","React","DensityProvider","className","children","props","ref","value","jsx","SLOT_ATTR","useDensity","DensityContextBoundary","Fragment"],"mappings":";;;AAwBA,MAAMA,IAA0C,CAAC,WAAW,UAAU,aAAa,GAUtEC,IAAmB,CAACC,MAC/BF,EAAoB,SAASE,CAAO,IAAIA,IAAU,UAO9CC,IAAiBC,EAAM,cAAmC,MAAS,GAa5DC,IAAkBD,EAAM,WAGnC,SAAyB,EAAE,SAAAF,GAAS,WAAAI,GAAW,UAAAC,GAAU,GAAGC,EAAA,GAASC,GAAK;AAC1E,QAAMC,IAAQT,EAAiBC,CAAO;AAEtC,SACE,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAAF;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,WAAAN;AAAA,MACC,GAAGE;AAAA,MAMJ,gBAAcE;AAAA,MAEd,UAAA,gBAAAC,EAACR,EAAe,UAAf,EAAwB,OAAAO,GACtB,UAAAH,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC,GAQYM,IAAa,MAA2BT,EAAM,WAAWD,CAAc,GAiBvEW,IAAyB,CAAC;AAAA,EACrC,SAAAZ;AAAA,EACA,UAAAK;AACF,MAIML,MAAY,SAAkB,gBAAAS,EAAAI,GAAA,EAAG,UAAAR,GAAS,IAE5C,gBAAAI,EAACR,EAAe,UAAf,EAAwB,OAAOF,EAAiBC,CAAO,GACrD,UAAAK,GACH;"}
@@ -1,13 +1,13 @@
1
- import { j as a } from "../../vendor/react/jsx-dev-runtime.js";
2
- import * as l from "react";
3
- import { Root as v, Close as h, Content as D, Description as w, Overlay as y, Portal as C, Title as k, Trigger as E } from "../../vendor/@radix-ui/react-dialog/dist/index.js";
1
+ import { jsx as e, jsxs as x } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { Root as w, Close as y, Content as b, Description as v, Overlay as z, Portal as R, Title as S, Trigger as W } from "../../vendor/@radix-ui/react-dialog/dist/index.js";
4
4
  import { shorthands as s } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
5
- import { SLOT_ATTR as n } from "../../packages/volt-runtime/dist/renderer/contract.js";
6
- import { mergeClasses as m } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
7
- import { useDensity as j } from "../density-provider/density-provider.js";
8
- import { makeVoltStyles as z } from "../../styles/make-styles.js";
9
- import { spacingElement2 as u, spacingGroup2 as f, grayA1 as R, radiusXl as V, spacingLayout1 as S, leadingSm as U, textSm as W, grayA11 as L, grayA12 as T, fontWeightSemibold as O, leadingLg as A, textLg as F, semFocusRing as x, semAccentSoft as I, accentA11 as P, container5xl as H, container4xl as X, container3xl as B, container2xl as _, containerXl as M, containerLg as G, containerMd as Q, containerSm as Z, body as q } from "../../tokens/index.js";
10
- const d = z({
5
+ import { SLOT_ATTR as l } from "../../packages/volt-runtime/dist/renderer/contract.js";
6
+ import { mergeClasses as d } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
7
+ import { useDensity as L } from "../density-provider/density-provider.js";
8
+ import { makeVoltStyles as N } from "../../styles/make-styles.js";
9
+ import { spacingElement2 as f, spacingGroup2 as u, grayA1 as T, radiusXl as O, spacingLayout1 as A, leadingSm as F, textSm as I, grayA11 as k, grayA12 as P, fontWeightSemibold as H, leadingLg as X, textLg as j, semFocusRing as h, semAccentSoft as B, accentA11 as E, container5xl as _, container4xl as M, container3xl as G, container2xl as Q, containerXl as V, containerLg as Z, containerMd as q, containerSm as J, body as K } from "../../tokens/index.js";
10
+ const c = N({
11
11
  overlay: {
12
12
  position: "fixed",
13
13
  ...s.inset(0),
@@ -42,7 +42,7 @@ const d = z({
42
42
  }
43
43
  },
44
44
  content: {
45
- backgroundColor: q,
45
+ backgroundColor: K,
46
46
  position: "fixed",
47
47
  top: "50%",
48
48
  left: "50%",
@@ -52,9 +52,9 @@ const d = z({
52
52
  width: "100%",
53
53
  maxWidth: "calc(100% - 2rem)",
54
54
  transform: "translate(-50%, -50%)",
55
- ...s.gap(S),
56
- ...s.borderRadius(V),
57
- ...s.border("1px", "solid", R),
55
+ ...s.gap(A),
56
+ ...s.borderRadius(O),
57
+ ...s.border("1px", "solid", T),
58
58
  // v1 shadow-lg; elevation has no token in this package.
59
59
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
60
60
  "@media (prefers-reduced-motion: reduce)": {
@@ -95,44 +95,44 @@ const d = z({
95
95
  animationDuration: "150ms",
96
96
  animationTimingFunction: "cubic-bezier(0.4, 0, 1, 1)"
97
97
  },
98
- "&[data-size='sm']": { maxWidth: Z },
99
- "&[data-size='md']": { maxWidth: Q },
100
- "&[data-size='lg']": { maxWidth: G },
101
- "&[data-size='xl']": { maxWidth: M },
102
- "&[data-size='2xl']": { maxWidth: _ },
103
- "&[data-size='3xl']": { maxWidth: B },
104
- "&[data-size='4xl']": { maxWidth: X },
105
- "&[data-size='5xl']": { maxWidth: H },
98
+ "&[data-size='sm']": { maxWidth: J },
99
+ "&[data-size='md']": { maxWidth: q },
100
+ "&[data-size='lg']": { maxWidth: Z },
101
+ "&[data-size='xl']": { maxWidth: V },
102
+ "&[data-size='2xl']": { maxWidth: Q },
103
+ "&[data-size='3xl']": { maxWidth: G },
104
+ "&[data-size='4xl']": { maxWidth: M },
105
+ "&[data-size='5xl']": { maxWidth: _ },
106
106
  "&[data-size='full-width']": { maxWidth: "100%" }
107
107
  },
108
108
  contentPadding: {
109
- ...s.padding(f)
109
+ ...s.padding(u)
110
110
  },
111
111
  close: {
112
112
  ":focus-visible": {
113
113
  outlineWidth: "2px",
114
114
  outlineStyle: "solid",
115
115
  outlineOffset: "2px",
116
- outlineColor: x
116
+ outlineColor: h
117
117
  }
118
118
  },
119
119
  closeButton: {
120
120
  position: "absolute",
121
- top: f,
122
- right: f,
123
- ...s.padding(u),
121
+ top: u,
122
+ right: u,
123
+ ...s.padding(f),
124
124
  // v1 rounded-full; no full-radius token exists in this package.
125
125
  borderRadius: "9999px",
126
126
  cursor: "pointer",
127
- color: P,
127
+ color: E,
128
128
  ":hover": {
129
- backgroundColor: I
129
+ backgroundColor: B
130
130
  },
131
131
  ":focus-visible": {
132
132
  outlineWidth: "2px",
133
133
  outlineStyle: "solid",
134
134
  outlineOffset: "2px",
135
- outlineColor: x
135
+ outlineColor: h
136
136
  },
137
137
  ":disabled": {
138
138
  pointerEvents: "none"
@@ -147,24 +147,24 @@ const d = z({
147
147
  header: {
148
148
  display: "flex",
149
149
  flexDirection: "column",
150
- ...s.gap(u),
150
+ ...s.gap(f),
151
151
  textAlign: "left"
152
152
  },
153
153
  footer: {
154
154
  display: "flex",
155
- ...s.gap(u),
155
+ ...s.gap(f),
156
156
  justifyContent: "flex-end"
157
157
  },
158
158
  title: {
159
- fontSize: F,
160
- lineHeight: A,
161
- fontWeight: O,
162
- color: T
159
+ fontSize: j,
160
+ lineHeight: X,
161
+ fontWeight: H,
162
+ color: P
163
163
  },
164
164
  description: {
165
- color: L,
166
- fontSize: W,
167
- lineHeight: U
165
+ color: k,
166
+ fontSize: I,
167
+ lineHeight: F
168
168
  },
169
169
  srOnly: {
170
170
  position: "absolute",
@@ -176,9 +176,9 @@ const d = z({
176
176
  clip: "rect(0, 0, 0, 0)",
177
177
  whiteSpace: "nowrap"
178
178
  }
179
- }), J = l.forwardRef(
180
- function(e, o) {
181
- return /* @__PURE__ */ a.jsxDEV(
179
+ }), U = n.forwardRef(
180
+ function(t, o) {
181
+ return /* @__PURE__ */ e(
182
182
  "svg",
183
183
  {
184
184
  ref: o,
@@ -187,279 +187,171 @@ const d = z({
187
187
  viewBox: "0 0 9 9",
188
188
  fill: "none",
189
189
  xmlns: "http://www.w3.org/2000/svg",
190
- ...e,
191
- children: /* @__PURE__ */ a.jsxDEV(
190
+ ...t,
191
+ children: /* @__PURE__ */ e(
192
192
  "path",
193
193
  {
194
194
  d: "M4.38333 5.31667L1.11667 8.58333C0.994445 8.70556 0.838889 8.76667 0.65 8.76667C0.461111 8.76667 0.305556 8.70556 0.183333 8.58333C0.0611111 8.46111 0 8.30556 0 8.11667C0 7.92778 0.0611111 7.77222 0.183333 7.65L3.45 4.38333L0.183333 1.11667C0.0611111 0.994445 0 0.838889 0 0.65C0 0.461111 0.0611111 0.305556 0.183333 0.183333C0.305556 0.0611111 0.461111 0 0.65 0C0.838889 0 0.994445 0.0611111 1.11667 0.183333L4.38333 3.45L7.65 0.183333C7.77222 0.0611111 7.92778 0 8.11667 0C8.30556 0 8.46111 0.0611111 8.58333 0.183333C8.70556 0.305556 8.76667 0.461111 8.76667 0.65C8.76667 0.838889 8.70556 0.994445 8.58333 1.11667L5.31667 4.38333L8.58333 7.65C8.70556 7.77222 8.76667 7.92778 8.76667 8.11667C8.76667 8.30556 8.70556 8.46111 8.58333 8.58333C8.46111 8.70556 8.30556 8.76667 8.11667 8.76667C7.92778 8.76667 7.77222 8.70556 7.65 8.58333L4.38333 5.31667Z",
195
195
  fill: "currentColor"
196
- },
197
- void 0,
198
- !1,
199
- {
200
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
201
- lineNumber: 194,
202
- columnNumber: 9
203
- },
204
- this
196
+ }
205
197
  )
206
- },
207
- void 0,
208
- !1,
209
- {
210
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
211
- lineNumber: 185,
212
- columnNumber: 7
213
- },
214
- this
198
+ }
215
199
  );
216
200
  }
217
- ), le = l.forwardRef(
218
- function(e, o) {
219
- return /* @__PURE__ */ a.jsxDEV(v, { "data-slot": "dialog", ...e }, void 0, !1, {
220
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
221
- lineNumber: 207,
222
- columnNumber: 12
223
- }, this);
201
+ ), rt = n.forwardRef(
202
+ function(t, o) {
203
+ return /* @__PURE__ */ e(w, { "data-slot": "dialog", ...t });
224
204
  }
225
- ), re = l.forwardRef(function({ className: e, ...o }, i) {
226
- return /* @__PURE__ */ a.jsxDEV(
227
- E,
205
+ ), lt = n.forwardRef(function({ className: t, ...o }, a) {
206
+ return /* @__PURE__ */ e(
207
+ W,
228
208
  {
229
- ref: i,
209
+ ref: a,
230
210
  "data-slot": "dialog-trigger",
231
- [n]: "dialog-trigger",
232
- className: e,
211
+ [l]: "dialog-trigger",
212
+ className: t,
233
213
  ...o
234
- },
235
- void 0,
236
- !1,
237
- {
238
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
239
- lineNumber: 220,
240
- columnNumber: 5
241
- },
242
- this
214
+ }
243
215
  );
244
- }), ne = l.forwardRef(
245
- function(e, o) {
246
- return /* @__PURE__ */ a.jsxDEV(
247
- C,
216
+ }), st = n.forwardRef(
217
+ function(t, o) {
218
+ return /* @__PURE__ */ e(
219
+ R,
248
220
  {
249
221
  "data-slot": "dialog-portal",
250
- [n]: "dialog-portal",
251
- ...e
252
- },
253
- void 0,
254
- !1,
255
- {
256
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
257
- lineNumber: 237,
258
- columnNumber: 7
259
- },
260
- this
222
+ [l]: "dialog-portal",
223
+ ...t
224
+ }
261
225
  );
262
226
  }
263
- ), se = l.forwardRef(function({ className: e, ...o }, i) {
264
- const t = d();
265
- return /* @__PURE__ */ a.jsxDEV(
266
- y,
227
+ ), dt = n.forwardRef(function({ className: t, ...o }, a) {
228
+ const i = c();
229
+ return /* @__PURE__ */ e(
230
+ z,
267
231
  {
268
- ref: i,
232
+ ref: a,
269
233
  "data-slot": "dialog-overlay",
270
- [n]: "dialog-overlay",
271
- className: m(t.overlay, e),
234
+ [l]: "dialog-overlay",
235
+ className: d(i.overlay, t),
272
236
  ...o
273
- },
274
- void 0,
275
- !1,
276
- {
277
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
278
- lineNumber: 257,
279
- columnNumber: 5
280
- },
281
- this
237
+ }
282
238
  );
283
- }), me = l.forwardRef(function({
284
- className: e,
239
+ }), ct = n.forwardRef(function({
240
+ className: t,
285
241
  children: o,
286
- showCloseButton: i = !0,
287
- flush: t = !1,
242
+ showCloseButton: a = !0,
243
+ flush: i = !1,
288
244
  size: g = "lg",
289
- ...N
290
- }, b) {
291
- const c = d(), p = j();
292
- return /* @__PURE__ */ a.jsxDEV(
293
- D,
245
+ ...D
246
+ }, C) {
247
+ const m = c(), p = L();
248
+ return /* @__PURE__ */ x(
249
+ b,
294
250
  {
295
- ref: b,
251
+ ref: C,
296
252
  "data-slot": "dialog-content",
297
- [n]: "dialog-content",
253
+ [l]: "dialog-content",
298
254
  ...p !== void 0 ? { "data-density": p } : {},
299
255
  "data-size": g,
300
- className: m(
301
- c.content,
302
- !t && c.contentPadding,
303
- e
256
+ className: d(
257
+ m.content,
258
+ !i && m.contentPadding,
259
+ t
304
260
  ),
305
- ...N,
261
+ ...D,
306
262
  children: [
307
263
  o,
308
- i && /* @__PURE__ */ a.jsxDEV(
309
- h,
264
+ a && /* @__PURE__ */ x(
265
+ y,
310
266
  {
311
267
  "data-slot": "dialog-close",
312
- [n]: "dialog-close",
313
- className: c.closeButton,
268
+ [l]: "dialog-close",
269
+ className: m.closeButton,
314
270
  children: [
315
- /* @__PURE__ */ a.jsxDEV(J, {}, void 0, !1, {
316
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
317
- lineNumber: 327,
318
- columnNumber: 11
319
- }, this),
320
- /* @__PURE__ */ a.jsxDEV("span", { className: c.srOnly, children: "Close" }, void 0, !1, {
321
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
322
- lineNumber: 328,
323
- columnNumber: 11
324
- }, this)
271
+ /* @__PURE__ */ e(U, {}),
272
+ /* @__PURE__ */ e("span", { className: m.srOnly, children: "Close" })
325
273
  ]
326
- },
327
- void 0,
328
- !0,
329
- {
330
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
331
- lineNumber: 322,
332
- columnNumber: 9
333
- },
334
- this
274
+ }
335
275
  )
336
276
  ]
337
- },
338
- void 0,
339
- !0,
340
- {
341
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
342
- lineNumber: 307,
343
- columnNumber: 5
344
- },
345
- this
277
+ }
346
278
  );
347
- }), de = l.forwardRef(function({ className: e, children: o, ...i }, t) {
348
- const g = d();
349
- return /* @__PURE__ */ a.jsxDEV(
350
- h,
279
+ }), mt = n.forwardRef(function({ className: t, children: o, ...a }, i) {
280
+ const g = c();
281
+ return /* @__PURE__ */ e(
282
+ y,
351
283
  {
352
- ref: t,
284
+ ref: i,
353
285
  "data-slot": "dialog-close",
354
- [n]: "dialog-close",
355
- className: m(g.close, e),
356
- ...i,
286
+ [l]: "dialog-close",
287
+ className: d(g.close, t),
288
+ ...a,
357
289
  children: o
358
- },
359
- void 0,
360
- !1,
361
- {
362
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
363
- lineNumber: 346,
364
- columnNumber: 5
365
- },
366
- this
290
+ }
367
291
  );
368
- }), ce = l.forwardRef(
369
- function({ className: e, ...o }, i) {
370
- const t = d();
371
- return /* @__PURE__ */ a.jsxDEV(
292
+ }), gt = n.forwardRef(
293
+ function({ className: t, ...o }, a) {
294
+ const i = c();
295
+ return /* @__PURE__ */ e(
372
296
  "div",
373
297
  {
374
- ref: i,
298
+ ref: a,
375
299
  "data-slot": "dialog-header",
376
- [n]: "dialog-header",
377
- className: m(t.header, e),
300
+ [l]: "dialog-header",
301
+ className: d(i.header, t),
378
302
  ...o
379
- },
380
- void 0,
381
- !1,
382
- {
383
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
384
- lineNumber: 365,
385
- columnNumber: 7
386
- },
387
- this
303
+ }
388
304
  );
389
305
  }
390
- ), ge = l.forwardRef(
391
- function({ className: e, ...o }, i) {
392
- const t = d();
393
- return /* @__PURE__ */ a.jsxDEV(
306
+ ), ft = n.forwardRef(
307
+ function({ className: t, ...o }, a) {
308
+ const i = c();
309
+ return /* @__PURE__ */ e(
394
310
  "div",
395
311
  {
396
- ref: i,
312
+ ref: a,
397
313
  "data-slot": "dialog-footer",
398
- [n]: "dialog-footer",
399
- className: m(t.footer, e),
314
+ [l]: "dialog-footer",
315
+ className: d(i.footer, t),
400
316
  ...o
401
- },
402
- void 0,
403
- !1,
404
- {
405
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
406
- lineNumber: 383,
407
- columnNumber: 7
408
- },
409
- this
317
+ }
410
318
  );
411
319
  }
412
- ), ue = l.forwardRef(function({ className: e, ...o }, i) {
413
- const t = d();
414
- return /* @__PURE__ */ a.jsxDEV(
415
- k,
320
+ ), ut = n.forwardRef(function({ className: t, ...o }, a) {
321
+ const i = c();
322
+ return /* @__PURE__ */ e(
323
+ S,
416
324
  {
417
- ref: i,
325
+ ref: a,
418
326
  "data-slot": "dialog-title",
419
- [n]: "dialog-title",
420
- className: m(t.title, e),
327
+ [l]: "dialog-title",
328
+ className: d(i.title, t),
421
329
  ...o
422
- },
423
- void 0,
424
- !1,
425
- {
426
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
427
- lineNumber: 405,
428
- columnNumber: 5
429
- },
430
- this
330
+ }
431
331
  );
432
- }), fe = l.forwardRef(function({ className: e, ...o }, i) {
433
- const t = d();
434
- return /* @__PURE__ */ a.jsxDEV(
435
- w,
332
+ }), pt = n.forwardRef(function({ className: t, ...o }, a) {
333
+ const i = c();
334
+ return /* @__PURE__ */ e(
335
+ v,
436
336
  {
437
- ref: i,
337
+ ref: a,
438
338
  "data-slot": "dialog-description",
439
- [n]: "dialog-description",
440
- className: m(t.description, e),
339
+ [l]: "dialog-description",
340
+ className: d(i.description, t),
441
341
  ...o
442
- },
443
- void 0,
444
- !1,
445
- {
446
- fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/dialog/dialog.tsx",
447
- lineNumber: 426,
448
- columnNumber: 5
449
- },
450
- this
342
+ }
451
343
  );
452
344
  });
453
345
  export {
454
- le as Dialog,
455
- de as DialogClose,
456
- me as DialogContent,
457
- fe as DialogDescription,
458
- ge as DialogFooter,
459
- ce as DialogHeader,
460
- se as DialogOverlay,
461
- ne as DialogPortal,
462
- ue as DialogTitle,
463
- re as DialogTrigger
346
+ rt as Dialog,
347
+ mt as DialogClose,
348
+ ct as DialogContent,
349
+ pt as DialogDescription,
350
+ ft as DialogFooter,
351
+ gt as DialogHeader,
352
+ dt as DialogOverlay,
353
+ st as DialogPortal,
354
+ ut as DialogTitle,
355
+ lt as DialogTrigger
464
356
  };
465
357
  //# sourceMappingURL=dialog.js.map