@epilot/volt-ui-experimental-griffel 0.2.3 → 0.3.0
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/ADOPTING.md +416 -0
- package/README.md +32 -31
- package/dist/_virtual/jsx-dev-runtime.js +5 -0
- package/dist/_virtual/jsx-dev-runtime.js.map +1 -0
- package/dist/_virtual/react-jsx-dev-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-dev-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-dev-runtime.production.js +5 -0
- package/dist/_virtual/react-jsx-dev-runtime.production.js.map +1 -0
- package/dist/components/accordion/accordion.js +126 -66
- package/dist/components/accordion/accordion.js.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +239 -137
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/avatar/avatar-group.js +102 -47
- package/dist/components/avatar/avatar-group.js.map +1 -1
- package/dist/components/avatar/avatar.js +97 -73
- package/dist/components/avatar/avatar.js.map +1 -1
- package/dist/components/badge/badge.js +53 -37
- package/dist/components/badge/badge.js.map +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +97 -49
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
- package/dist/components/button/button.js +88 -77
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/button-group/button-group.js +55 -31
- package/dist/components/button-group/button-group.js.map +1 -1
- package/dist/components/callout/callout.js +288 -164
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/card/card.js +137 -81
- package/dist/components/card/card.js.map +1 -1
- package/dist/components/checkbox/checkbox.js +100 -49
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +155 -107
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -1
- package/dist/components/command/command.js +297 -158
- package/dist/components/command/command.js.map +1 -1
- package/dist/components/data-table/data-table-body.js +114 -54
- package/dist/components/data-table/data-table-body.js.map +1 -1
- package/dist/components/data-table/data-table-column-header.js +117 -45
- package/dist/components/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/data-table/data-table-column-visibility.js +98 -39
- package/dist/components/data-table/data-table-column-visibility.js.map +1 -1
- package/dist/components/data-table/data-table-content.js +90 -58
- package/dist/components/data-table/data-table-content.js.map +1 -1
- package/dist/components/data-table/data-table-error.js +83 -39
- package/dist/components/data-table/data-table-error.js.map +1 -1
- package/dist/components/data-table/data-table-header.js +88 -54
- package/dist/components/data-table/data-table-header.js.map +1 -1
- package/dist/components/data-table/data-table-loading.js +27 -15
- package/dist/components/data-table/data-table-loading.js.map +1 -1
- package/dist/components/data-table/data-table-pagination.js +27 -19
- package/dist/components/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/data-table/data-table-row.js +87 -64
- package/dist/components/data-table/data-table-row.js.map +1 -1
- package/dist/components/data-table/data-table-toolbar.js +24 -16
- package/dist/components/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/data-table/data-table.js +182 -145
- package/dist/components/data-table/data-table.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +342 -214
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-range-picker/range-calendar.js +132 -92
- package/dist/components/date-range-picker/range-calendar.js.map +1 -1
- package/dist/components/date-time-picker/calendar.js +501 -317
- package/dist/components/date-time-picker/calendar.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-context.js +64 -60
- 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 +249 -149
- 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 +273 -165
- 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 +22 -14
- package/dist/components/date-time-picker/date-time-picker-popover.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +134 -90
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/date-time-picker/time-picker.js +198 -132
- package/dist/components/date-time-picker/time-picker.js.map +1 -1
- package/dist/components/density-provider/density-provider.js +48 -0
- package/dist/components/density-provider/density-provider.js.map +1 -0
- package/dist/components/dialog/dialog.js +280 -150
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +273 -163
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.js +378 -195
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/components/field/field-combobox.js +447 -240
- package/dist/components/field/field-combobox.js.map +1 -1
- package/dist/components/field/field-select.js +23 -19
- package/dist/components/field/field-select.js.map +1 -1
- package/dist/components/field/field.js +318 -209
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/label/label.js +27 -19
- package/dist/components/label/label.js.map +1 -1
- package/dist/components/list/list.js +623 -369
- package/dist/components/list/list.js.map +1 -1
- package/dist/components/option-card/option-card.js +323 -159
- package/dist/components/option-card/option-card.js.map +1 -1
- package/dist/components/pill/pill.js +82 -64
- package/dist/components/pill/pill.js.map +1 -1
- package/dist/components/popover/popover.js +101 -56
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/radio/radio.js +94 -51
- package/dist/components/radio/radio.js.map +1 -1
- package/dist/components/scroll-overflow/scroll-overflow.js +350 -198
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +141 -97
- package/dist/components/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/select/select.js +452 -227
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/separator/separator.js +24 -16
- package/dist/components/separator/separator.js.map +1 -1
- package/dist/components/skeleton/skeleton.js +83 -43
- package/dist/components/skeleton/skeleton.js.map +1 -1
- package/dist/components/spinner/spinner.js +44 -20
- package/dist/components/spinner/spinner.js.map +1 -1
- package/dist/components/switch/switch.js +163 -86
- package/dist/components/switch/switch.js.map +1 -1
- package/dist/components/table/table-pagination.js +465 -205
- package/dist/components/table/table-pagination.js.map +1 -1
- package/dist/components/table/table.js +212 -144
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/tabs/tabs.js +94 -58
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/text/text.js +40 -32
- package/dist/components/text/text.js.map +1 -1
- package/dist/components/toast/toast.js +187 -111
- package/dist/components/toast/toast.js.map +1 -1
- package/dist/components/toggle/toggle-group.js +40 -24
- package/dist/components/toggle/toggle-group.js.map +1 -1
- package/dist/components/toggle/toggle.js +48 -40
- package/dist/components/toggle/toggle.js.map +1 -1
- package/dist/components/tooltip/tooltip.js +101 -55
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/index.d.ts +600 -427
- package/dist/index.js +215 -212
- package/dist/index.js.map +1 -1
- package/dist/lib/clear-button.js +27 -15
- package/dist/lib/clear-button.js.map +1 -1
- package/dist/lib/icons.js +18 -6
- package/dist/lib/icons.js.map +1 -1
- package/dist/packages/volt-runtime/dist/sheet.js +27 -10
- package/dist/packages/volt-runtime/dist/sheet.js.map +1 -1
- package/dist/packages/volt-runtime/dist/styles/recipe.js +76 -0
- package/dist/packages/volt-runtime/dist/styles/recipe.js.map +1 -0
- package/dist/styles/document-context.js +12 -0
- package/dist/styles/document-context.js.map +1 -0
- package/dist/styles/make-styles.js +18 -10
- package/dist/styles/make-styles.js.map +1 -1
- package/dist/tokens/core.generated.js +1238 -1166
- package/dist/tokens/core.generated.js.map +1 -1
- package/dist/tokens/index.d.ts +442 -415
- package/dist/tokens/index.js +1105 -1078
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/install.js +9 -5
- package/dist/tokens/install.js.map +1 -1
- package/dist/tokens/use-palette-tokens.js +20 -0
- package/dist/tokens/use-palette-tokens.js.map +1 -0
- package/dist/tokens.json +83 -2
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js +236 -0
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.development.js.map +1 -0
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js +21 -0
- package/dist/vendor/react/cjs/react-jsx-dev-runtime.production.js.map +1 -0
- package/dist/vendor/react/jsx-dev-runtime.js +9 -0
- package/dist/vendor/react/jsx-dev-runtime.js.map +1 -0
- package/package.json +13 -5
- package/scripts/migration-diagnostics-core.mjs +859 -0
- package/scripts/migration-diagnostics.mjs +353 -0
- package/scripts/migration-sweep.mjs +179 -0
- package/AGENTS.md +0 -153
- package/AUTHORING.md +0 -292
- package/dist/packages/volt-runtime/dist/styles/make-styles.js +0 -22
- package/dist/packages/volt-runtime/dist/styles/make-styles.js.map +0 -1
|
@@ -1,104 +1,152 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { shorthands as
|
|
4
|
-
import { SLOT_ATTR as
|
|
5
|
-
import { mergeClasses as
|
|
6
|
-
import { makeVoltStyles as
|
|
7
|
-
import { spacingElement1 as
|
|
8
|
-
import { ClearButton as
|
|
9
|
-
import { CloseIcon as
|
|
10
|
-
import { NS as
|
|
11
|
-
const
|
|
12
|
-
function(
|
|
13
|
-
return /* @__PURE__ */
|
|
1
|
+
import { j as t } from "../../vendor/react/jsx-dev-runtime.js";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { shorthands as w } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
|
|
4
|
+
import { SLOT_ATTR as c } from "../../packages/volt-runtime/dist/renderer/contract.js";
|
|
5
|
+
import { mergeClasses as d } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
|
|
6
|
+
import { makeVoltStyles as S } from "../../styles/make-styles.js";
|
|
7
|
+
import { spacingElement1 as R, spacingGroup2 as v, spacingLayout1 as b, spacingElement2 as N, spacingLayout2 as L, leadingSm as V, textSm as k, fontWeightSemibold as T, leadingBase as M, textBase as Z, spacingElement3 as u } from "../../tokens/index.js";
|
|
8
|
+
import { ClearButton as B } from "../../lib/clear-button.js";
|
|
9
|
+
import { CloseIcon as $ } from "../../lib/icons.js";
|
|
10
|
+
import { NS as G } from "../../tokens/core.generated.js";
|
|
11
|
+
const H = i.forwardRef(
|
|
12
|
+
function(l, e) {
|
|
13
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
14
14
|
"svg",
|
|
15
15
|
{
|
|
16
|
-
ref:
|
|
16
|
+
ref: e,
|
|
17
17
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18
18
|
viewBox: "0 0 24 24",
|
|
19
19
|
fill: "currentColor",
|
|
20
|
-
...
|
|
21
|
-
children: /* @__PURE__ */
|
|
22
|
-
|
|
20
|
+
...l,
|
|
21
|
+
children: /* @__PURE__ */ t.jsxDEV("path", { d: "M12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5345 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V11.75C12.75 11.5375 12.6781 11.3593 12.5343 11.2155C12.3904 11.0718 12.2122 11 11.9997 11C11.7871 11 11.609 11.0718 11.4655 11.2155C11.3218 11.3593 11.25 11.5375 11.25 11.75V16C11.25 16.2125 11.3219 16.3906 11.4658 16.5343C11.6096 16.6781 11.7878 16.75 12.0003 16.75ZM12 9.2885C12.2288 9.2885 12.4207 9.21108 12.5755 9.05625C12.7303 8.90142 12.8077 8.70958 12.8077 8.48075C12.8077 8.25192 12.7303 8.06008 12.5755 7.90525C12.4207 7.75058 12.2288 7.67325 12 7.67325C11.7712 7.67325 11.5793 7.75058 11.4245 7.90525C11.2697 8.06008 11.1923 8.25192 11.1923 8.48075C11.1923 8.70958 11.2697 8.90142 11.4245 9.05625C11.5793 9.21108 11.7712 9.2885 12 9.2885ZM12.0017 21.5C10.6877 21.5 9.45267 21.2507 8.2965 20.752C7.14033 20.2533 6.13467 19.5766 5.2795 18.7218C4.42433 17.8669 3.74725 16.8617 3.24825 15.706C2.74942 14.5503 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45267 3.248 8.2965C3.74667 7.14033 4.42342 6.13467 5.27825 5.2795C6.13308 4.42433 7.13833 3.74725 8.294 3.24825C9.44967 2.74942 10.6844 2.5 11.9982 2.5C13.3122 2.5 14.5473 2.74933 15.7035 3.248C16.8597 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.13308 20.2528 7.13833 20.7518 8.294C21.2506 9.44967 21.5 10.6844 21.5 11.9982C21.5 13.3122 21.2507 14.5473 20.752 15.7035C20.2533 16.8597 19.5766 17.8653 18.7218 18.7205C17.8669 19.5757 16.8617 20.2528 15.706 20.7518C14.5503 21.2506 13.3156 21.5 12.0017 21.5Z" }, void 0, !1, {
|
|
22
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
23
|
+
lineNumber: 51,
|
|
24
|
+
columnNumber: 9
|
|
25
|
+
}, this)
|
|
26
|
+
},
|
|
27
|
+
void 0,
|
|
28
|
+
!1,
|
|
29
|
+
{
|
|
30
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
31
|
+
lineNumber: 44,
|
|
32
|
+
columnNumber: 7
|
|
33
|
+
},
|
|
34
|
+
this
|
|
23
35
|
);
|
|
24
36
|
}
|
|
25
|
-
),
|
|
26
|
-
return /* @__PURE__ */
|
|
37
|
+
), W = i.forwardRef(function(l, e) {
|
|
38
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
27
39
|
"svg",
|
|
28
40
|
{
|
|
29
|
-
ref:
|
|
41
|
+
ref: e,
|
|
30
42
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31
43
|
viewBox: "0 0 24 24",
|
|
32
44
|
fill: "currentColor",
|
|
33
|
-
...
|
|
34
|
-
children: /* @__PURE__ */
|
|
35
|
-
|
|
45
|
+
...l,
|
|
46
|
+
children: /* @__PURE__ */ t.jsxDEV("path", { d: "M3.4255 20.5C3.256 20.5 3.10375 20.4586 2.96875 20.3757C2.83375 20.2929 2.72883 20.1837 2.654 20.048C2.576 19.9133 2.53308 19.7675 2.52525 19.6105C2.51742 19.4535 2.55975 19.298 2.65225 19.144L11.213 4.356C11.3057 4.202 11.4215 4.08817 11.5605 4.0145C11.6997 3.94083 11.8462 3.904 12 3.904C12.1538 3.904 12.3003 3.94083 12.4395 4.0145C12.5785 4.08817 12.6943 4.202 12.787 4.356L21.3477 19.144C21.4402 19.298 21.4826 19.4535 21.4747 19.6105C21.4669 19.7675 21.424 19.9133 21.346 20.048C21.2712 20.1837 21.1663 20.2929 21.0313 20.3757C20.8963 20.4586 20.744 20.5 20.5745 20.5H3.4255ZM12 17.8077C12.2288 17.8077 12.4207 17.7303 12.5755 17.5755C12.7303 17.4207 12.8078 17.2288 12.8078 17C12.8078 16.7712 12.7303 16.5793 12.5755 16.4245C12.4207 16.2697 12.2288 16.1923 12 16.1923C11.7712 16.1923 11.5793 16.2697 11.4245 16.4245C11.2697 16.5793 11.1923 16.7712 11.1923 17C11.1923 17.2288 11.2697 17.4207 11.4245 17.5755C11.5793 17.7303 11.7712 17.8077 12 17.8077ZM12.0003 15.1923C12.2129 15.1923 12.391 15.1204 12.5345 14.9768C12.6782 14.8329 12.75 14.6548 12.75 14.4423V10.9423C12.75 10.7298 12.6781 10.5517 12.5342 10.408C12.3904 10.2642 12.2122 10.1923 11.9997 10.1923C11.7871 10.1923 11.609 10.2642 11.4655 10.408C11.3218 10.5517 11.25 10.7298 11.25 10.9423V14.4423C11.25 14.6548 11.3219 14.8329 11.4658 14.9768C11.6096 15.1204 11.7878 15.1923 12.0003 15.1923Z" }, void 0, !1, {
|
|
47
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
48
|
+
lineNumber: 69,
|
|
49
|
+
columnNumber: 7
|
|
50
|
+
}, this)
|
|
51
|
+
},
|
|
52
|
+
void 0,
|
|
53
|
+
!1,
|
|
54
|
+
{
|
|
55
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
56
|
+
lineNumber: 62,
|
|
57
|
+
columnNumber: 5
|
|
58
|
+
},
|
|
59
|
+
this
|
|
36
60
|
);
|
|
37
|
-
}),
|
|
38
|
-
function(
|
|
39
|
-
return /* @__PURE__ */
|
|
61
|
+
}), A = i.forwardRef(
|
|
62
|
+
function(l, e) {
|
|
63
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
40
64
|
"svg",
|
|
41
65
|
{
|
|
42
|
-
ref:
|
|
66
|
+
ref: e,
|
|
43
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44
68
|
viewBox: "0 0 24 24",
|
|
45
69
|
fill: "currentColor",
|
|
46
|
-
...
|
|
47
|
-
children: /* @__PURE__ */
|
|
48
|
-
|
|
70
|
+
...l,
|
|
71
|
+
children: /* @__PURE__ */ t.jsxDEV("path", { d: "M10.5808 14.1463L8.25775 11.823C8.11925 11.6847 7.94517 11.6138 7.7355 11.6105C7.526 11.6073 7.34875 11.6782 7.20375 11.823C7.05892 11.968 6.9865 12.1437 6.9865 12.35C6.9865 12.5563 7.05892 12.732 7.20375 12.877L9.948 15.6212C10.1288 15.8019 10.3398 15.8922 10.5808 15.8922C10.8218 15.8922 11.0327 15.8019 11.2135 15.6212L16.777 10.0577C16.9153 9.91925 16.9862 9.74517 16.9895 9.5355C16.9927 9.326 16.9218 9.14875 16.777 9.00375C16.632 8.85892 16.4563 8.7865 16.25 8.7865C16.0437 8.7865 15.868 8.85892 15.723 9.00375L10.5808 14.1463ZM12.0017 21.5C10.6877 21.5 9.45267 21.2507 8.2965 20.752C7.14033 20.2533 6.13467 19.5766 5.2795 18.7218C4.42433 17.8669 3.74725 16.8617 3.24825 15.706C2.74942 14.5503 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45267 3.248 8.2965C3.74667 7.14033 4.42342 6.13467 5.27825 5.2795C6.13308 4.42433 7.13833 3.74725 8.294 3.24825C9.44967 2.74942 10.6844 2.5 11.9982 2.5C13.3122 2.5 14.5473 2.74933 15.7035 3.248C16.8597 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.13308 20.2528 7.13833 20.7518 8.294C21.2506 9.44967 21.5 10.6844 21.5 11.9982C21.5 13.3122 21.2507 14.5473 20.752 15.7035C20.2533 16.8597 19.5766 17.8653 18.7218 18.7205C17.8669 19.5757 16.8617 20.2528 15.706 20.7518C14.5503 21.2506 13.3156 21.5 12.0017 21.5Z" }, void 0, !1, {
|
|
72
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
73
|
+
lineNumber: 84,
|
|
74
|
+
columnNumber: 9
|
|
75
|
+
}, this)
|
|
76
|
+
},
|
|
77
|
+
void 0,
|
|
78
|
+
!1,
|
|
79
|
+
{
|
|
80
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
81
|
+
lineNumber: 77,
|
|
82
|
+
columnNumber: 7
|
|
83
|
+
},
|
|
84
|
+
this
|
|
49
85
|
);
|
|
50
86
|
}
|
|
51
|
-
),
|
|
52
|
-
function(
|
|
53
|
-
return /* @__PURE__ */
|
|
87
|
+
), O = i.forwardRef(
|
|
88
|
+
function(l, e) {
|
|
89
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
54
90
|
"svg",
|
|
55
91
|
{
|
|
56
|
-
ref:
|
|
92
|
+
ref: e,
|
|
57
93
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
94
|
viewBox: "0 0 24 24",
|
|
59
95
|
fill: "currentColor",
|
|
60
|
-
...
|
|
61
|
-
children: /* @__PURE__ */
|
|
62
|
-
|
|
96
|
+
...l,
|
|
97
|
+
children: /* @__PURE__ */ t.jsxDEV("path", { d: "M12 16.7307C12.2288 16.7307 12.4207 16.6533 12.5755 16.4985C12.7303 16.3437 12.8077 16.1518 12.8077 15.923C12.8077 15.6942 12.7303 15.5023 12.5755 15.3475C12.4207 15.1928 12.2288 15.1155 12 15.1155C11.7712 15.1155 11.5793 15.1928 11.4245 15.3475C11.2697 15.5023 11.1923 15.6942 11.1923 15.923C11.1923 16.1518 11.2697 16.3437 11.4245 16.4985C11.5793 16.6533 11.7712 16.7307 12 16.7307ZM12.0003 13.077C12.2129 13.077 12.391 13.0051 12.5345 12.8613C12.6782 12.7176 12.75 12.5395 12.75 12.327V7.827C12.75 7.6145 12.6781 7.43633 12.5343 7.2925C12.3904 7.14883 12.2122 7.077 11.9997 7.077C11.7871 7.077 11.609 7.14883 11.4655 7.2925C11.3218 7.43633 11.25 7.6145 11.25 7.827V12.327C11.25 12.5395 11.3219 12.7176 11.4658 12.8613C11.6096 13.0051 11.7878 13.077 12.0003 13.077ZM12.0017 21.5C10.6877 21.5 9.45267 21.2507 8.2965 20.752C7.14033 20.2533 6.13467 19.5766 5.2795 18.7218C4.42433 17.8669 3.74725 16.8617 3.24825 15.706C2.74942 14.5503 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45267 3.248 8.2965C3.74667 7.14033 4.42342 6.13467 5.27825 5.2795C6.13308 4.42433 7.13833 3.74725 8.294 3.24825C9.44967 2.74942 10.6844 2.5 11.9982 2.5C13.3122 2.5 14.5473 2.74933 15.7035 3.248C16.8597 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.13308 20.2528 7.13833 20.7518 8.294C21.2506 9.44967 21.5 10.6844 21.5 11.9982C21.5 13.3122 21.2507 14.5473 20.752 15.7035C20.2533 16.8597 19.5766 17.8653 18.7218 18.7205C17.8669 19.5757 16.8617 20.2528 15.706 20.7518C14.5503 21.2506 13.3156 21.5 12.0017 21.5Z" }, void 0, !1, {
|
|
98
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
99
|
+
lineNumber: 100,
|
|
100
|
+
columnNumber: 9
|
|
101
|
+
}, this)
|
|
102
|
+
},
|
|
103
|
+
void 0,
|
|
104
|
+
!1,
|
|
105
|
+
{
|
|
106
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
107
|
+
lineNumber: 93,
|
|
108
|
+
columnNumber: 7
|
|
109
|
+
},
|
|
110
|
+
this
|
|
63
111
|
);
|
|
64
112
|
}
|
|
65
|
-
),
|
|
113
|
+
), h = i.createContext({
|
|
66
114
|
variant: "info",
|
|
67
115
|
hideIcon: !1
|
|
68
|
-
}),
|
|
116
|
+
}), m = "--volt2-callout-bg", f = "--volt2-callout-fg", s = (a, l) => `var(--volt2-${G}-sem-${a}-${l})`, z = {
|
|
69
117
|
info: () => ({
|
|
70
|
-
[
|
|
71
|
-
[
|
|
118
|
+
[m]: s("accent", "soft"),
|
|
119
|
+
[f]: s("accent", "default")
|
|
72
120
|
}),
|
|
73
121
|
gray: () => ({
|
|
74
|
-
[
|
|
75
|
-
[
|
|
122
|
+
[m]: s("gray", "soft"),
|
|
123
|
+
[f]: s("gray", "default")
|
|
76
124
|
}),
|
|
77
125
|
success: () => ({
|
|
78
|
-
[
|
|
79
|
-
[
|
|
126
|
+
[m]: s("success", "soft"),
|
|
127
|
+
[f]: s("success", "default")
|
|
80
128
|
}),
|
|
81
129
|
warning: () => ({
|
|
82
|
-
[
|
|
83
|
-
[
|
|
130
|
+
[m]: s("warning", "soft"),
|
|
131
|
+
[f]: s("warning", "default")
|
|
84
132
|
}),
|
|
85
133
|
destructive: () => ({
|
|
86
|
-
[
|
|
87
|
-
[
|
|
134
|
+
[m]: s("error", "soft"),
|
|
135
|
+
[f]: s("error", "default")
|
|
88
136
|
})
|
|
89
|
-
},
|
|
137
|
+
}, g = S({
|
|
90
138
|
root: {
|
|
91
139
|
position: "relative",
|
|
92
140
|
width: "100%",
|
|
93
141
|
// p-3 — no token for 0.75rem.
|
|
94
|
-
paddingTop:
|
|
95
|
-
paddingRight:
|
|
96
|
-
paddingBottom:
|
|
97
|
-
paddingLeft:
|
|
98
|
-
fontSize:
|
|
99
|
-
lineHeight:
|
|
100
|
-
backgroundColor: `var(${
|
|
101
|
-
color: `var(${
|
|
142
|
+
paddingTop: u,
|
|
143
|
+
paddingRight: u,
|
|
144
|
+
paddingBottom: u,
|
|
145
|
+
paddingLeft: u,
|
|
146
|
+
fontSize: k,
|
|
147
|
+
lineHeight: V,
|
|
148
|
+
backgroundColor: `var(${m})`,
|
|
149
|
+
color: `var(${f})`,
|
|
102
150
|
// `items-center`: present in every state, like v1's base string.
|
|
103
151
|
alignItems: "center",
|
|
104
152
|
// v1's `data-[hide-icon=false]:` block — the icon grid kicks in only when an icon renders.
|
|
@@ -111,15 +159,15 @@ const O = a.forwardRef(
|
|
|
111
159
|
"&:has(>svg)": {
|
|
112
160
|
gridTemplateColumns: "1rem 1fr",
|
|
113
161
|
// gap-x-3 — no token for 0.75rem.
|
|
114
|
-
columnGap:
|
|
162
|
+
columnGap: u
|
|
115
163
|
},
|
|
116
|
-
[`&:has([${
|
|
164
|
+
[`&:has([${c}="callout-icon"])`]: {
|
|
117
165
|
gridTemplateColumns: "1rem 1fr",
|
|
118
|
-
columnGap:
|
|
166
|
+
columnGap: u
|
|
119
167
|
}
|
|
120
168
|
},
|
|
121
169
|
// v1 `[&>[data-slot=callout-icon]]` — SLOT_ATTR, never data-slot (CONVENTIONS rule 4).
|
|
122
|
-
[`& > [${
|
|
170
|
+
[`& > [${c}="callout-icon"]`]: {
|
|
123
171
|
// size-5 — no token for 1.25rem.
|
|
124
172
|
width: "1.25rem",
|
|
125
173
|
height: "1.25rem",
|
|
@@ -132,23 +180,23 @@ const O = a.forwardRef(
|
|
|
132
180
|
},
|
|
133
181
|
title: {
|
|
134
182
|
gridColumnStart: 2,
|
|
135
|
-
...
|
|
183
|
+
...w.overflow("hidden"),
|
|
136
184
|
display: "-webkit-box",
|
|
137
185
|
WebkitBoxOrient: "vertical",
|
|
138
186
|
WebkitLineClamp: 1,
|
|
139
187
|
// min-h-4
|
|
140
|
-
minHeight:
|
|
141
|
-
fontSize:
|
|
142
|
-
lineHeight:
|
|
143
|
-
fontWeight:
|
|
188
|
+
minHeight: v,
|
|
189
|
+
fontSize: Z,
|
|
190
|
+
lineHeight: M,
|
|
191
|
+
fontWeight: T
|
|
144
192
|
},
|
|
145
193
|
description: {
|
|
146
194
|
gridColumnStart: 2,
|
|
147
195
|
display: "grid",
|
|
148
196
|
justifyItems: "start",
|
|
149
|
-
...
|
|
150
|
-
fontSize:
|
|
151
|
-
lineHeight:
|
|
197
|
+
...w.gap(R),
|
|
198
|
+
fontSize: k,
|
|
199
|
+
lineHeight: V,
|
|
152
200
|
"& p": {
|
|
153
201
|
// leading-relaxed — no token for a 1.625 line-height.
|
|
154
202
|
lineHeight: 1.625
|
|
@@ -159,7 +207,7 @@ const O = a.forwardRef(
|
|
|
159
207
|
width: "100%",
|
|
160
208
|
gridColumnEnd: "span 3",
|
|
161
209
|
// mt-2
|
|
162
|
-
marginTop:
|
|
210
|
+
marginTop: N
|
|
163
211
|
},
|
|
164
212
|
actionStart: {
|
|
165
213
|
justifyContent: "flex-start"
|
|
@@ -167,7 +215,7 @@ const O = a.forwardRef(
|
|
|
167
215
|
actionStartIcon: {
|
|
168
216
|
justifyContent: "flex-start",
|
|
169
217
|
// ml-8
|
|
170
|
-
marginLeft:
|
|
218
|
+
marginLeft: L
|
|
171
219
|
},
|
|
172
220
|
actionEnd: {
|
|
173
221
|
justifyContent: "flex-end"
|
|
@@ -175,141 +223,217 @@ const O = a.forwardRef(
|
|
|
175
223
|
dismiss: {
|
|
176
224
|
position: "absolute",
|
|
177
225
|
// top-2 right-2
|
|
178
|
-
top:
|
|
179
|
-
right:
|
|
226
|
+
top: N,
|
|
227
|
+
right: N,
|
|
180
228
|
// size-6 — the ClearButton itself supplies centering, rounding, hover and focus.
|
|
181
|
-
width:
|
|
182
|
-
height:
|
|
229
|
+
width: b,
|
|
230
|
+
height: b
|
|
183
231
|
},
|
|
184
232
|
dismissIcon: {
|
|
185
233
|
// size-4
|
|
186
|
-
width:
|
|
187
|
-
height:
|
|
234
|
+
width: v,
|
|
235
|
+
height: v
|
|
188
236
|
}
|
|
189
|
-
}),
|
|
237
|
+
}), t1 = i.forwardRef(
|
|
190
238
|
function({
|
|
191
|
-
className:
|
|
192
|
-
variant:
|
|
193
|
-
hideIcon:
|
|
194
|
-
customIcon:
|
|
195
|
-
dismissible:
|
|
196
|
-
onDismiss:
|
|
197
|
-
style:
|
|
198
|
-
children:
|
|
199
|
-
...
|
|
200
|
-
},
|
|
201
|
-
const [
|
|
202
|
-
if (!
|
|
239
|
+
className: l,
|
|
240
|
+
variant: e = "info",
|
|
241
|
+
hideIcon: o = !1,
|
|
242
|
+
customIcon: r,
|
|
243
|
+
dismissible: C = !1,
|
|
244
|
+
onDismiss: n,
|
|
245
|
+
style: x,
|
|
246
|
+
children: E,
|
|
247
|
+
...j
|
|
248
|
+
}, D) {
|
|
249
|
+
const [y, I] = i.useState(!0), p = g();
|
|
250
|
+
if (!y)
|
|
203
251
|
return null;
|
|
204
|
-
const
|
|
205
|
-
|
|
252
|
+
const U = () => {
|
|
253
|
+
I(!1), n == null || n();
|
|
206
254
|
};
|
|
207
|
-
return /* @__PURE__ */
|
|
255
|
+
return /* @__PURE__ */ t.jsxDEV(h.Provider, { value: { variant: e, hideIcon: o }, children: /* @__PURE__ */ t.jsxDEV(
|
|
208
256
|
"div",
|
|
209
257
|
{
|
|
210
|
-
ref:
|
|
211
|
-
"data-callout-variant":
|
|
258
|
+
ref: D,
|
|
259
|
+
"data-callout-variant": e,
|
|
212
260
|
"data-slot": "callout",
|
|
213
|
-
"data-hide-icon":
|
|
214
|
-
"data-dismissible":
|
|
261
|
+
"data-hide-icon": o ? "true" : "false",
|
|
262
|
+
"data-dismissible": C ? "true" : "false",
|
|
215
263
|
role: "alert",
|
|
216
|
-
[
|
|
217
|
-
className:
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
264
|
+
[c]: "callout",
|
|
265
|
+
className: d(
|
|
266
|
+
p.root,
|
|
267
|
+
C && p.dismissible,
|
|
268
|
+
l
|
|
221
269
|
),
|
|
222
|
-
style: { ...
|
|
223
|
-
...
|
|
270
|
+
style: { ...z[e](), ...x },
|
|
271
|
+
...j,
|
|
224
272
|
children: [
|
|
225
|
-
!
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
273
|
+
!o && /* @__PURE__ */ t.jsxDEV(F, { customIcon: r }, void 0, !1, {
|
|
274
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
275
|
+
lineNumber: 316,
|
|
276
|
+
columnNumber: 25
|
|
277
|
+
}, this),
|
|
278
|
+
E,
|
|
279
|
+
C && /* @__PURE__ */ t.jsxDEV(
|
|
280
|
+
B,
|
|
229
281
|
{
|
|
230
282
|
label: "Dismiss",
|
|
231
|
-
onClick:
|
|
232
|
-
className:
|
|
233
|
-
children: /* @__PURE__ */
|
|
234
|
-
|
|
283
|
+
onClick: U,
|
|
284
|
+
className: p.dismiss,
|
|
285
|
+
children: /* @__PURE__ */ t.jsxDEV($, { className: p.dismissIcon }, void 0, !1, {
|
|
286
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
287
|
+
lineNumber: 324,
|
|
288
|
+
columnNumber: 15
|
|
289
|
+
}, this)
|
|
290
|
+
},
|
|
291
|
+
void 0,
|
|
292
|
+
!1,
|
|
293
|
+
{
|
|
294
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
295
|
+
lineNumber: 319,
|
|
296
|
+
columnNumber: 13
|
|
297
|
+
},
|
|
298
|
+
this
|
|
235
299
|
)
|
|
236
300
|
]
|
|
237
|
-
}
|
|
238
|
-
|
|
301
|
+
},
|
|
302
|
+
void 0,
|
|
303
|
+
!0,
|
|
304
|
+
{
|
|
305
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
306
|
+
lineNumber: 298,
|
|
307
|
+
columnNumber: 9
|
|
308
|
+
},
|
|
309
|
+
this
|
|
310
|
+
) }, void 0, !1, {
|
|
311
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
312
|
+
lineNumber: 297,
|
|
313
|
+
columnNumber: 7
|
|
314
|
+
}, this);
|
|
239
315
|
}
|
|
240
|
-
),
|
|
241
|
-
function({ className:
|
|
242
|
-
const
|
|
243
|
-
return /* @__PURE__ */
|
|
316
|
+
), o1 = i.forwardRef(
|
|
317
|
+
function({ className: l, ...e }, o) {
|
|
318
|
+
const r = g();
|
|
319
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
244
320
|
"div",
|
|
245
321
|
{
|
|
246
|
-
ref:
|
|
322
|
+
ref: o,
|
|
247
323
|
"data-slot": "callout-title",
|
|
248
|
-
[
|
|
249
|
-
className:
|
|
250
|
-
...
|
|
251
|
-
}
|
|
324
|
+
[c]: "callout-title",
|
|
325
|
+
className: d(r.title, l),
|
|
326
|
+
...e
|
|
327
|
+
},
|
|
328
|
+
void 0,
|
|
329
|
+
!1,
|
|
330
|
+
{
|
|
331
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
332
|
+
lineNumber: 340,
|
|
333
|
+
columnNumber: 7
|
|
334
|
+
},
|
|
335
|
+
this
|
|
252
336
|
);
|
|
253
337
|
}
|
|
254
|
-
),
|
|
255
|
-
const
|
|
256
|
-
return /* @__PURE__ */
|
|
338
|
+
), i1 = i.forwardRef(function({ className: l, ...e }, o) {
|
|
339
|
+
const r = g();
|
|
340
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
257
341
|
"div",
|
|
258
342
|
{
|
|
259
|
-
ref:
|
|
343
|
+
ref: o,
|
|
260
344
|
"data-slot": "callout-description",
|
|
261
|
-
[
|
|
262
|
-
className:
|
|
263
|
-
...
|
|
264
|
-
}
|
|
345
|
+
[c]: "callout-description",
|
|
346
|
+
className: d(r.description, l),
|
|
347
|
+
...e
|
|
348
|
+
},
|
|
349
|
+
void 0,
|
|
350
|
+
!1,
|
|
351
|
+
{
|
|
352
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
353
|
+
lineNumber: 360,
|
|
354
|
+
columnNumber: 5
|
|
355
|
+
},
|
|
356
|
+
this
|
|
265
357
|
);
|
|
266
|
-
}),
|
|
267
|
-
const { hideIcon:
|
|
268
|
-
return /* @__PURE__ */
|
|
358
|
+
}), a1 = i.forwardRef(function({ className: l, align: e = "start", ...o }, r) {
|
|
359
|
+
const { hideIcon: C } = i.useContext(h), n = g(), x = e === "end" ? n.actionEnd : C ? n.actionStart : n.actionStartIcon;
|
|
360
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
269
361
|
"div",
|
|
270
362
|
{
|
|
271
|
-
ref:
|
|
363
|
+
ref: r,
|
|
272
364
|
"data-slot": "callout-action",
|
|
273
|
-
"data-align":
|
|
274
|
-
[
|
|
275
|
-
className:
|
|
276
|
-
...
|
|
277
|
-
}
|
|
365
|
+
"data-align": e,
|
|
366
|
+
[c]: "callout-action",
|
|
367
|
+
className: d(n.action, x, l),
|
|
368
|
+
...o
|
|
369
|
+
},
|
|
370
|
+
void 0,
|
|
371
|
+
!1,
|
|
372
|
+
{
|
|
373
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
374
|
+
lineNumber: 389,
|
|
375
|
+
columnNumber: 5
|
|
376
|
+
},
|
|
377
|
+
this
|
|
278
378
|
);
|
|
279
|
-
}),
|
|
280
|
-
const { variant:
|
|
281
|
-
if (
|
|
282
|
-
return
|
|
283
|
-
switch (
|
|
379
|
+
}), _ = i.forwardRef(function({ customIcon: l, ...e }, o) {
|
|
380
|
+
const { variant: r } = i.useContext(h);
|
|
381
|
+
if (l)
|
|
382
|
+
return l;
|
|
383
|
+
switch (r) {
|
|
284
384
|
case "info":
|
|
285
|
-
return /* @__PURE__ */
|
|
385
|
+
return /* @__PURE__ */ t.jsxDEV(H, { ref: o, ...e }, void 0, !1, {
|
|
386
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
387
|
+
lineNumber: 416,
|
|
388
|
+
columnNumber: 14
|
|
389
|
+
}, this);
|
|
286
390
|
case "success":
|
|
287
|
-
return /* @__PURE__ */
|
|
391
|
+
return /* @__PURE__ */ t.jsxDEV(A, { ref: o, ...e }, void 0, !1, {
|
|
392
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
393
|
+
lineNumber: 418,
|
|
394
|
+
columnNumber: 14
|
|
395
|
+
}, this);
|
|
288
396
|
case "warning":
|
|
289
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ t.jsxDEV(W, { ref: o, ...e }, void 0, !1, {
|
|
398
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
399
|
+
lineNumber: 420,
|
|
400
|
+
columnNumber: 14
|
|
401
|
+
}, this);
|
|
290
402
|
case "destructive":
|
|
291
|
-
return /* @__PURE__ */
|
|
403
|
+
return /* @__PURE__ */ t.jsxDEV(O, { ref: o, ...e }, void 0, !1, {
|
|
404
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
405
|
+
lineNumber: 422,
|
|
406
|
+
columnNumber: 14
|
|
407
|
+
}, this);
|
|
292
408
|
}
|
|
293
409
|
return null;
|
|
294
|
-
}),
|
|
295
|
-
function({ className:
|
|
296
|
-
return /* @__PURE__ */
|
|
297
|
-
|
|
410
|
+
}), F = i.forwardRef(
|
|
411
|
+
function({ className: l, customIcon: e, ...o }, r) {
|
|
412
|
+
return /* @__PURE__ */ t.jsxDEV(
|
|
413
|
+
_,
|
|
298
414
|
{
|
|
299
|
-
ref:
|
|
415
|
+
ref: r,
|
|
300
416
|
"data-slot": "callout-icon",
|
|
301
|
-
[
|
|
302
|
-
customIcon:
|
|
303
|
-
className:
|
|
304
|
-
...
|
|
305
|
-
}
|
|
417
|
+
[c]: "callout-icon",
|
|
418
|
+
customIcon: e,
|
|
419
|
+
className: l,
|
|
420
|
+
...o
|
|
421
|
+
},
|
|
422
|
+
void 0,
|
|
423
|
+
!1,
|
|
424
|
+
{
|
|
425
|
+
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/callout/callout.tsx",
|
|
426
|
+
lineNumber: 436,
|
|
427
|
+
columnNumber: 7
|
|
428
|
+
},
|
|
429
|
+
this
|
|
306
430
|
);
|
|
307
431
|
}
|
|
308
432
|
);
|
|
309
433
|
export {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
434
|
+
t1 as Callout,
|
|
435
|
+
a1 as CalloutAction,
|
|
436
|
+
i1 as CalloutDescription,
|
|
437
|
+
o1 as CalloutTitle
|
|
314
438
|
};
|
|
315
439
|
//# sourceMappingURL=callout.js.map
|