@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.
- package/dist/components/accordion/accordion.js +66 -126
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +138 -238
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +47 -102
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +72 -96
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +48 -56
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +49 -97
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +49 -57
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +31 -55
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +164 -288
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +81 -137
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +48 -96
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +107 -155
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +161 -285
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +54 -114
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +45 -117
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +39 -98
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +58 -90
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +39 -83
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +54 -88
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +15 -27
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-pagination.js +19 -27
- package/dist/components/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +64 -87
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +16 -24
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +145 -181
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +214 -342
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +92 -132
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +317 -501
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-context.js +60 -64
- package/dist/components/date-time-picker/date-time-picker-context.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +149 -249
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-panel.js +165 -273
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-popover.js +14 -22
- package/dist/components/date-time-picker/date-time-picker-popover.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +90 -134
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +132 -198
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/density-provider/density-provider.js +19 -39
- package/dist/components/density-provider/density-provider.js.map +1 -1
- package/dist/components/dialog/dialog.js +145 -253
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +164 -272
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +204 -384
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +243 -435
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field-select.js +19 -23
- package/dist/components/field/field-select.js.map +1 -1
- package/dist/components/field/field.js +189 -297
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/label/label.js +19 -27
- package/dist/components/label/label.js.map +1 -1
- package/dist/components/list/list.js +315 -595
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +159 -323
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +68 -84
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +48 -84
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +49 -89
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +198 -350
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +97 -141
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +200 -396
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +16 -24
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +43 -83
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +20 -44
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/switch/switch.js +83 -155
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +210 -468
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +131 -211
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +58 -94
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/text/text.js +32 -40
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/toast/toast.js +111 -187
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle-group.js +24 -40
- package/dist/components/toggle/toggle-group.js.map +1 -1
- package/dist/components/toggle/toggle.js +39 -47
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +62 -106
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/lib/clear-button.js +15 -27
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/lib/icons.js +6 -18
- package/dist/lib/icons.js.map +1 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
- package/dist/_virtual/jsx-dev-runtime.js +0 -5
- package/dist/_virtual/jsx-dev-runtime.js.map +0 -1
- package/dist/_virtual/react-jsx-dev-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-dev-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-dev-runtime.production.js +0 -5
- package/dist/_virtual/react-jsx-dev-runtime.production.js.map +0 -1
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js +0 -236
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js.map +0 -1
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js +0 -21
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js.map +0 -1
- package/dist/vendor/react/jsx-dev-runtime.js +0 -9
- 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","
|
|
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 {
|
|
2
|
-
import * as
|
|
3
|
-
import { Root as
|
|
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
|
|
6
|
-
import { mergeClasses as
|
|
7
|
-
import { useDensity as
|
|
8
|
-
import { makeVoltStyles as
|
|
9
|
-
import { spacingElement2 as
|
|
10
|
-
const
|
|
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:
|
|
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(
|
|
56
|
-
...s.borderRadius(
|
|
57
|
-
...s.border("1px", "solid",
|
|
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:
|
|
99
|
-
"&[data-size='md']": { maxWidth:
|
|
100
|
-
"&[data-size='lg']": { maxWidth:
|
|
101
|
-
"&[data-size='xl']": { maxWidth:
|
|
102
|
-
"&[data-size='2xl']": { maxWidth:
|
|
103
|
-
"&[data-size='3xl']": { maxWidth:
|
|
104
|
-
"&[data-size='4xl']": { maxWidth:
|
|
105
|
-
"&[data-size='5xl']": { maxWidth:
|
|
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(
|
|
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:
|
|
116
|
+
outlineColor: h
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
closeButton: {
|
|
120
120
|
position: "absolute",
|
|
121
|
-
top:
|
|
122
|
-
right:
|
|
123
|
-
...s.padding(
|
|
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:
|
|
127
|
+
color: E,
|
|
128
128
|
":hover": {
|
|
129
|
-
backgroundColor:
|
|
129
|
+
backgroundColor: B
|
|
130
130
|
},
|
|
131
131
|
":focus-visible": {
|
|
132
132
|
outlineWidth: "2px",
|
|
133
133
|
outlineStyle: "solid",
|
|
134
134
|
outlineOffset: "2px",
|
|
135
|
-
outlineColor:
|
|
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(
|
|
150
|
+
...s.gap(f),
|
|
151
151
|
textAlign: "left"
|
|
152
152
|
},
|
|
153
153
|
footer: {
|
|
154
154
|
display: "flex",
|
|
155
|
-
...s.gap(
|
|
155
|
+
...s.gap(f),
|
|
156
156
|
justifyContent: "flex-end"
|
|
157
157
|
},
|
|
158
158
|
title: {
|
|
159
|
-
fontSize:
|
|
160
|
-
lineHeight:
|
|
161
|
-
fontWeight:
|
|
162
|
-
color:
|
|
159
|
+
fontSize: j,
|
|
160
|
+
lineHeight: X,
|
|
161
|
+
fontWeight: H,
|
|
162
|
+
color: P
|
|
163
163
|
},
|
|
164
164
|
description: {
|
|
165
|
-
color:
|
|
166
|
-
fontSize:
|
|
167
|
-
lineHeight:
|
|
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
|
-
}),
|
|
180
|
-
function(
|
|
181
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
191
|
-
children: /* @__PURE__ */
|
|
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
|
-
),
|
|
218
|
-
function(
|
|
219
|
-
return /* @__PURE__ */
|
|
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
|
-
),
|
|
226
|
-
return /* @__PURE__ */
|
|
227
|
-
|
|
205
|
+
), lt = n.forwardRef(function({ className: t, ...o }, a) {
|
|
206
|
+
return /* @__PURE__ */ e(
|
|
207
|
+
W,
|
|
228
208
|
{
|
|
229
|
-
ref:
|
|
209
|
+
ref: a,
|
|
230
210
|
"data-slot": "dialog-trigger",
|
|
231
|
-
[
|
|
232
|
-
className:
|
|
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
|
-
}),
|
|
245
|
-
function(
|
|
246
|
-
return /* @__PURE__ */
|
|
247
|
-
|
|
216
|
+
}), st = n.forwardRef(
|
|
217
|
+
function(t, o) {
|
|
218
|
+
return /* @__PURE__ */ e(
|
|
219
|
+
R,
|
|
248
220
|
{
|
|
249
221
|
"data-slot": "dialog-portal",
|
|
250
|
-
[
|
|
251
|
-
...
|
|
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
|
-
),
|
|
264
|
-
const
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
|
|
227
|
+
), dt = n.forwardRef(function({ className: t, ...o }, a) {
|
|
228
|
+
const i = c();
|
|
229
|
+
return /* @__PURE__ */ e(
|
|
230
|
+
z,
|
|
267
231
|
{
|
|
268
|
-
ref:
|
|
232
|
+
ref: a,
|
|
269
233
|
"data-slot": "dialog-overlay",
|
|
270
|
-
[
|
|
271
|
-
className:
|
|
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
|
-
}),
|
|
284
|
-
className:
|
|
239
|
+
}), ct = n.forwardRef(function({
|
|
240
|
+
className: t,
|
|
285
241
|
children: o,
|
|
286
|
-
showCloseButton:
|
|
287
|
-
flush:
|
|
242
|
+
showCloseButton: a = !0,
|
|
243
|
+
flush: i = !1,
|
|
288
244
|
size: g = "lg",
|
|
289
|
-
...
|
|
290
|
-
},
|
|
291
|
-
const
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
|
|
245
|
+
...D
|
|
246
|
+
}, C) {
|
|
247
|
+
const m = c(), p = L();
|
|
248
|
+
return /* @__PURE__ */ x(
|
|
249
|
+
b,
|
|
294
250
|
{
|
|
295
|
-
ref:
|
|
251
|
+
ref: C,
|
|
296
252
|
"data-slot": "dialog-content",
|
|
297
|
-
[
|
|
253
|
+
[l]: "dialog-content",
|
|
298
254
|
...p !== void 0 ? { "data-density": p } : {},
|
|
299
255
|
"data-size": g,
|
|
300
|
-
className:
|
|
301
|
-
|
|
302
|
-
!
|
|
303
|
-
|
|
256
|
+
className: d(
|
|
257
|
+
m.content,
|
|
258
|
+
!i && m.contentPadding,
|
|
259
|
+
t
|
|
304
260
|
),
|
|
305
|
-
...
|
|
261
|
+
...D,
|
|
306
262
|
children: [
|
|
307
263
|
o,
|
|
308
|
-
|
|
309
|
-
|
|
264
|
+
a && /* @__PURE__ */ x(
|
|
265
|
+
y,
|
|
310
266
|
{
|
|
311
267
|
"data-slot": "dialog-close",
|
|
312
|
-
[
|
|
313
|
-
className:
|
|
268
|
+
[l]: "dialog-close",
|
|
269
|
+
className: m.closeButton,
|
|
314
270
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
-
|
|
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
|
-
}),
|
|
348
|
-
const g =
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
|
|
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:
|
|
284
|
+
ref: i,
|
|
353
285
|
"data-slot": "dialog-close",
|
|
354
|
-
[
|
|
355
|
-
className:
|
|
356
|
-
...
|
|
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
|
-
}),
|
|
369
|
-
function({ className:
|
|
370
|
-
const
|
|
371
|
-
return /* @__PURE__ */
|
|
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:
|
|
298
|
+
ref: a,
|
|
375
299
|
"data-slot": "dialog-header",
|
|
376
|
-
[
|
|
377
|
-
className:
|
|
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
|
-
),
|
|
391
|
-
function({ className:
|
|
392
|
-
const
|
|
393
|
-
return /* @__PURE__ */
|
|
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:
|
|
312
|
+
ref: a,
|
|
397
313
|
"data-slot": "dialog-footer",
|
|
398
|
-
[
|
|
399
|
-
className:
|
|
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
|
-
),
|
|
413
|
-
const
|
|
414
|
-
return /* @__PURE__ */
|
|
415
|
-
|
|
320
|
+
), ut = n.forwardRef(function({ className: t, ...o }, a) {
|
|
321
|
+
const i = c();
|
|
322
|
+
return /* @__PURE__ */ e(
|
|
323
|
+
S,
|
|
416
324
|
{
|
|
417
|
-
ref:
|
|
325
|
+
ref: a,
|
|
418
326
|
"data-slot": "dialog-title",
|
|
419
|
-
[
|
|
420
|
-
className:
|
|
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
|
-
}),
|
|
433
|
-
const
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
|
|
332
|
+
}), pt = n.forwardRef(function({ className: t, ...o }, a) {
|
|
333
|
+
const i = c();
|
|
334
|
+
return /* @__PURE__ */ e(
|
|
335
|
+
v,
|
|
436
336
|
{
|
|
437
|
-
ref:
|
|
337
|
+
ref: a,
|
|
438
338
|
"data-slot": "dialog-description",
|
|
439
|
-
[
|
|
440
|
-
className:
|
|
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
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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
|