@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,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { useSensors as
|
|
4
|
-
import { SortableContext as
|
|
5
|
-
import { shorthands as
|
|
6
|
-
import { SLOT_ATTR as
|
|
7
|
-
import { mergeClasses as
|
|
8
|
-
import { makeVoltStyles as
|
|
9
|
-
import { spacingElement3 as
|
|
10
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { useSensors as J, useSensor as V, DndContext as tt, closestCenter as et, DragOverlay as ot, KeyboardSensor as rt, PointerSensor as nt } from "../../vendor/@dnd-kit/core/dist/core.esm.js";
|
|
4
|
+
import { SortableContext as it, verticalListSortingStrategy as st, arrayMove as at, useSortable as lt } from "../../vendor/@dnd-kit/sortable/dist/sortable.esm.js";
|
|
5
|
+
import { shorthands as m } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/index.js";
|
|
6
|
+
import { SLOT_ATTR as g } from "../../packages/volt-runtime/dist/renderer/contract.js";
|
|
7
|
+
import { mergeClasses as f } from "../../packages/volt-runtime/dist/vendor/@griffel/core/src/mergeClasses.js";
|
|
8
|
+
import { makeVoltStyles as ct } from "../../styles/make-styles.js";
|
|
9
|
+
import { spacingElement3 as dt, grayA5 as ut, spacingElement1 as mt, spacingElement2 as pt, listItemPaddingY as G, listItemPaddingX as j, listItemGap as gt, radiusMd as B, semSuccessLight as ft, semWarningLight as ht, semErrorLight as xt, spacingGroup2 as F, grayA12 as X, fontWeightSemibold as vt, leadingSm as $, textSm as K, grayA10 as yt, fontWeightMedium as bt, semAccentSolid as wt, accentA8 as It, grayA11 as P, grayA8 as St, leadingXs as Lt, textXs as kt, listIndexPaddingX as _, listIndexMinWidth as Ct, grayA2 as q, semSuccessSoftHover as Dt, semWarningSoftHover as Tt, semErrorSoftHover as Wt, semAccentSoft as Et, semSuccessDefault as Nt, semSuccessSoft as At, semWarningDefault as Ot, semWarningSoft as Gt, semErrorDefault as Bt, semErrorSoft as Pt, listItemMinHeight as Rt } from "../../tokens/index.js";
|
|
10
|
+
const Ht = (n) => /* @__PURE__ */ D(
|
|
11
11
|
"svg",
|
|
12
12
|
{
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -16,49 +16,17 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
16
16
|
viewBox: "0 0 24 24",
|
|
17
17
|
fill: "currentColor",
|
|
18
18
|
"aria-hidden": "true",
|
|
19
|
-
...
|
|
19
|
+
...n,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
28
|
-
lineNumber: 51,
|
|
29
|
-
columnNumber: 5
|
|
30
|
-
}, void 0),
|
|
31
|
-
/* @__PURE__ */ e.jsxDEV("circle", { cx: "9", cy: "12", r: "1.5" }, void 0, !1, {
|
|
32
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
33
|
-
lineNumber: 52,
|
|
34
|
-
columnNumber: 5
|
|
35
|
-
}, void 0),
|
|
36
|
-
/* @__PURE__ */ e.jsxDEV("circle", { cx: "15", cy: "12", r: "1.5" }, void 0, !1, {
|
|
37
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
38
|
-
lineNumber: 53,
|
|
39
|
-
columnNumber: 5
|
|
40
|
-
}, void 0),
|
|
41
|
-
/* @__PURE__ */ e.jsxDEV("circle", { cx: "9", cy: "19", r: "1.5" }, void 0, !1, {
|
|
42
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
43
|
-
lineNumber: 54,
|
|
44
|
-
columnNumber: 5
|
|
45
|
-
}, void 0),
|
|
46
|
-
/* @__PURE__ */ e.jsxDEV("circle", { cx: "15", cy: "19", r: "1.5" }, void 0, !1, {
|
|
47
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
48
|
-
lineNumber: 55,
|
|
49
|
-
columnNumber: 5
|
|
50
|
-
}, void 0)
|
|
21
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "5", r: "1.5" }),
|
|
22
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "5", r: "1.5" }),
|
|
23
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "12", r: "1.5" }),
|
|
24
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "12", r: "1.5" }),
|
|
25
|
+
/* @__PURE__ */ t("circle", { cx: "9", cy: "19", r: "1.5" }),
|
|
26
|
+
/* @__PURE__ */ t("circle", { cx: "15", cy: "19", r: "1.5" })
|
|
51
27
|
]
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
!0,
|
|
55
|
-
{
|
|
56
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
57
|
-
lineNumber: 41,
|
|
58
|
-
columnNumber: 3
|
|
59
|
-
},
|
|
60
|
-
void 0
|
|
61
|
-
), _ = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
28
|
+
}
|
|
29
|
+
), Q = (n) => /* @__PURE__ */ D(
|
|
62
30
|
"svg",
|
|
63
31
|
{
|
|
64
32
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -69,34 +37,14 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
69
37
|
strokeLinecap: "round",
|
|
70
38
|
strokeLinejoin: "round",
|
|
71
39
|
"aria-hidden": "true",
|
|
72
|
-
...
|
|
40
|
+
...n,
|
|
73
41
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
columnNumber: 5
|
|
78
|
-
}, void 0),
|
|
79
|
-
/* @__PURE__ */ e.jsxDEV("line", { x1: "12", y1: "9", x2: "12", y2: "13" }, void 0, !1, {
|
|
80
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
81
|
-
lineNumber: 72,
|
|
82
|
-
columnNumber: 5
|
|
83
|
-
}, void 0),
|
|
84
|
-
/* @__PURE__ */ e.jsxDEV("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" }, void 0, !1, {
|
|
85
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
86
|
-
lineNumber: 73,
|
|
87
|
-
columnNumber: 5
|
|
88
|
-
}, void 0)
|
|
42
|
+
/* @__PURE__ */ t("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
|
|
43
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
44
|
+
/* @__PURE__ */ t("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
89
45
|
]
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
!0,
|
|
93
|
-
{
|
|
94
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
95
|
-
lineNumber: 60,
|
|
96
|
-
columnNumber: 3
|
|
97
|
-
},
|
|
98
|
-
void 0
|
|
99
|
-
), Be = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
46
|
+
}
|
|
47
|
+
), zt = (n) => /* @__PURE__ */ D(
|
|
100
48
|
"svg",
|
|
101
49
|
{
|
|
102
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -107,29 +55,13 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
107
55
|
strokeLinecap: "round",
|
|
108
56
|
strokeLinejoin: "round",
|
|
109
57
|
"aria-hidden": "true",
|
|
110
|
-
...
|
|
58
|
+
...n,
|
|
111
59
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
|
|
114
|
-
lineNumber: 89,
|
|
115
|
-
columnNumber: 5
|
|
116
|
-
}, void 0),
|
|
117
|
-
/* @__PURE__ */ e.jsxDEV("polyline", { points: "22 4 12 14.01 9 11.01" }, void 0, !1, {
|
|
118
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
119
|
-
lineNumber: 90,
|
|
120
|
-
columnNumber: 5
|
|
121
|
-
}, void 0)
|
|
60
|
+
/* @__PURE__ */ t("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
61
|
+
/* @__PURE__ */ t("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
122
62
|
]
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
!0,
|
|
126
|
-
{
|
|
127
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
128
|
-
lineNumber: 78,
|
|
129
|
-
columnNumber: 3
|
|
130
|
-
},
|
|
131
|
-
void 0
|
|
132
|
-
), Re = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
63
|
+
}
|
|
64
|
+
), Mt = (n) => /* @__PURE__ */ t(
|
|
133
65
|
"svg",
|
|
134
66
|
{
|
|
135
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -140,30 +72,18 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
140
72
|
strokeLinecap: "round",
|
|
141
73
|
strokeLinejoin: "round",
|
|
142
74
|
"aria-hidden": "true",
|
|
143
|
-
...
|
|
144
|
-
children: /* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
columnNumber: 5
|
|
148
|
-
}, void 0)
|
|
149
|
-
},
|
|
150
|
-
void 0,
|
|
151
|
-
!1,
|
|
152
|
-
{
|
|
153
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
154
|
-
lineNumber: 95,
|
|
155
|
-
columnNumber: 3
|
|
156
|
-
},
|
|
157
|
-
void 0
|
|
158
|
-
), N = ae({
|
|
75
|
+
...n,
|
|
76
|
+
children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" })
|
|
77
|
+
}
|
|
78
|
+
), y = ct({
|
|
159
79
|
list: {
|
|
160
80
|
display: "flex",
|
|
161
81
|
width: "100%",
|
|
162
82
|
listStyleType: "none",
|
|
163
83
|
flexDirection: "column",
|
|
164
|
-
...
|
|
165
|
-
...
|
|
166
|
-
...
|
|
84
|
+
...m.gap(0),
|
|
85
|
+
...m.padding(0),
|
|
86
|
+
...m.margin(0)
|
|
167
87
|
},
|
|
168
88
|
// ListItem base — density-bound (DENSITY-SPEC.md §2.2, WP9B2A-ACCEPTANCE-LIST). One style, not
|
|
169
89
|
// a compact/relaxed pair: the three CSS tiers are resolved by [data-density] inheritance, so
|
|
@@ -176,16 +96,16 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
176
96
|
display: "flex",
|
|
177
97
|
width: "100%",
|
|
178
98
|
alignItems: "center",
|
|
179
|
-
...
|
|
180
|
-
color:
|
|
99
|
+
...m.borderRadius(B),
|
|
100
|
+
color: X,
|
|
181
101
|
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke",
|
|
182
102
|
transitionDuration: "150ms",
|
|
183
103
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
184
|
-
minHeight:
|
|
185
|
-
...
|
|
186
|
-
...
|
|
187
|
-
fontSize:
|
|
188
|
-
lineHeight:
|
|
104
|
+
minHeight: Rt,
|
|
105
|
+
...m.gap(gt),
|
|
106
|
+
...m.padding(G, j),
|
|
107
|
+
fontSize: K,
|
|
108
|
+
lineHeight: $,
|
|
189
109
|
"& > svg": {
|
|
190
110
|
flexShrink: 0,
|
|
191
111
|
width: "1rem",
|
|
@@ -195,42 +115,42 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
195
115
|
// Status variants
|
|
196
116
|
statusDefault: {},
|
|
197
117
|
statusError: {
|
|
198
|
-
backgroundColor:
|
|
199
|
-
color:
|
|
118
|
+
backgroundColor: Pt,
|
|
119
|
+
color: Bt
|
|
200
120
|
},
|
|
201
121
|
statusWarning: {
|
|
202
|
-
backgroundColor:
|
|
203
|
-
color:
|
|
122
|
+
backgroundColor: Gt,
|
|
123
|
+
color: Ot
|
|
204
124
|
},
|
|
205
125
|
statusSuccess: {
|
|
206
|
-
backgroundColor:
|
|
207
|
-
color:
|
|
126
|
+
backgroundColor: At,
|
|
127
|
+
color: Nt
|
|
208
128
|
},
|
|
209
129
|
// Striped variant (only neutral rows)
|
|
210
130
|
stripedEven: {
|
|
211
131
|
"&:nth-child(even)": {
|
|
212
|
-
backgroundColor:
|
|
132
|
+
backgroundColor: q
|
|
213
133
|
}
|
|
214
134
|
},
|
|
215
135
|
// Interactive hovers
|
|
216
136
|
interactiveDefault: {
|
|
217
137
|
":hover": {
|
|
218
|
-
backgroundColor:
|
|
138
|
+
backgroundColor: Et
|
|
219
139
|
}
|
|
220
140
|
},
|
|
221
141
|
interactiveError: {
|
|
222
142
|
":hover": {
|
|
223
|
-
backgroundColor:
|
|
143
|
+
backgroundColor: Wt
|
|
224
144
|
}
|
|
225
145
|
},
|
|
226
146
|
interactiveWarning: {
|
|
227
147
|
":hover": {
|
|
228
|
-
backgroundColor:
|
|
148
|
+
backgroundColor: Tt
|
|
229
149
|
}
|
|
230
150
|
},
|
|
231
151
|
interactiveSuccess: {
|
|
232
152
|
":hover": {
|
|
233
|
-
backgroundColor:
|
|
153
|
+
backgroundColor: Dt
|
|
234
154
|
}
|
|
235
155
|
},
|
|
236
156
|
// Sortable modifiers
|
|
@@ -257,18 +177,18 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
257
177
|
alignItems: "center",
|
|
258
178
|
justifyContent: "center",
|
|
259
179
|
alignSelf: "stretch",
|
|
260
|
-
borderTopLeftRadius:
|
|
261
|
-
borderBottomLeftRadius:
|
|
262
|
-
backgroundColor:
|
|
180
|
+
borderTopLeftRadius: B,
|
|
181
|
+
borderBottomLeftRadius: B,
|
|
182
|
+
backgroundColor: q,
|
|
263
183
|
textAlign: "center",
|
|
264
|
-
color:
|
|
184
|
+
color: P,
|
|
265
185
|
fontVariantNumeric: "tabular-nums",
|
|
266
|
-
minWidth:
|
|
267
|
-
marginTop: `calc(-1 * ${
|
|
268
|
-
marginBottom: `calc(-1 * ${
|
|
269
|
-
marginLeft: `calc(-1 * ${
|
|
270
|
-
paddingLeft:
|
|
271
|
-
paddingRight:
|
|
186
|
+
minWidth: Ct,
|
|
187
|
+
marginTop: `calc(-1 * ${G})`,
|
|
188
|
+
marginBottom: `calc(-1 * ${G})`,
|
|
189
|
+
marginLeft: `calc(-1 * ${j})`,
|
|
190
|
+
paddingLeft: _,
|
|
191
|
+
paddingRight: _
|
|
272
192
|
},
|
|
273
193
|
// Content
|
|
274
194
|
content: {
|
|
@@ -278,7 +198,7 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
278
198
|
flexShrink: 1,
|
|
279
199
|
flexBasis: "0%",
|
|
280
200
|
alignItems: "center",
|
|
281
|
-
...
|
|
201
|
+
...m.gap(pt),
|
|
282
202
|
overflow: "hidden",
|
|
283
203
|
textOverflow: "ellipsis",
|
|
284
204
|
whiteSpace: "nowrap",
|
|
@@ -295,7 +215,7 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
295
215
|
display: "flex",
|
|
296
216
|
flexShrink: 0,
|
|
297
217
|
alignItems: "center",
|
|
298
|
-
...
|
|
218
|
+
...m.gap(mt)
|
|
299
219
|
},
|
|
300
220
|
// Text
|
|
301
221
|
text: {
|
|
@@ -305,16 +225,16 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
305
225
|
flexShrink: 1,
|
|
306
226
|
flexBasis: "0%",
|
|
307
227
|
flexDirection: "column",
|
|
308
|
-
...
|
|
228
|
+
...m.gap("0.125rem")
|
|
309
229
|
},
|
|
310
230
|
// Description
|
|
311
231
|
description: {
|
|
312
232
|
overflow: "hidden",
|
|
313
233
|
textOverflow: "ellipsis",
|
|
314
234
|
whiteSpace: "nowrap",
|
|
315
|
-
fontSize:
|
|
316
|
-
lineHeight:
|
|
317
|
-
color:
|
|
235
|
+
fontSize: kt,
|
|
236
|
+
lineHeight: Lt,
|
|
237
|
+
color: P
|
|
318
238
|
},
|
|
319
239
|
// Drag handle button
|
|
320
240
|
dragHandle: {
|
|
@@ -324,12 +244,12 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
324
244
|
flexShrink: 0,
|
|
325
245
|
cursor: "grab",
|
|
326
246
|
alignItems: "center",
|
|
327
|
-
color:
|
|
247
|
+
color: St,
|
|
328
248
|
backgroundColor: "transparent",
|
|
329
|
-
...
|
|
330
|
-
...
|
|
249
|
+
...m.border("0"),
|
|
250
|
+
...m.padding(0),
|
|
331
251
|
":hover": {
|
|
332
|
-
color:
|
|
252
|
+
color: P
|
|
333
253
|
},
|
|
334
254
|
":active": {
|
|
335
255
|
cursor: "grabbing"
|
|
@@ -338,7 +258,7 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
338
258
|
outlineWidth: "2px",
|
|
339
259
|
outlineStyle: "solid",
|
|
340
260
|
outlineOffset: "2px",
|
|
341
|
-
outlineColor:
|
|
261
|
+
outlineColor: It
|
|
342
262
|
},
|
|
343
263
|
"& svg": {
|
|
344
264
|
width: "1rem",
|
|
@@ -354,8 +274,8 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
354
274
|
zIndex: 10,
|
|
355
275
|
height: "0.125rem",
|
|
356
276
|
transformOrigin: "center",
|
|
357
|
-
...
|
|
358
|
-
backgroundColor:
|
|
277
|
+
...m.borderRadius("9999px"),
|
|
278
|
+
backgroundColor: wt,
|
|
359
279
|
animationName: {
|
|
360
280
|
from: {
|
|
361
281
|
transform: "scaleX(0)",
|
|
@@ -380,7 +300,7 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
380
300
|
transformOrigin: "center",
|
|
381
301
|
transform: "scale(0.95)",
|
|
382
302
|
cursor: "grabbing",
|
|
383
|
-
...
|
|
303
|
+
...m.border("1px", "solid", ut),
|
|
384
304
|
backgroundColor: "rgb(255 255 255 / 55%)",
|
|
385
305
|
boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
|
|
386
306
|
backdropFilter: "blur(12px)",
|
|
@@ -401,15 +321,15 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
401
321
|
groupTrigger: {
|
|
402
322
|
cursor: "pointer",
|
|
403
323
|
textAlign: "left",
|
|
404
|
-
fontWeight:
|
|
324
|
+
fontWeight: bt,
|
|
405
325
|
backgroundColor: "transparent",
|
|
406
|
-
...
|
|
326
|
+
...m.border("0")
|
|
407
327
|
},
|
|
408
328
|
groupChevron: {
|
|
409
329
|
width: "1rem",
|
|
410
330
|
height: "1rem",
|
|
411
331
|
flexShrink: 0,
|
|
412
|
-
color:
|
|
332
|
+
color: yt,
|
|
413
333
|
transitionProperty: "transform",
|
|
414
334
|
transitionDuration: "150ms",
|
|
415
335
|
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)"
|
|
@@ -427,20 +347,20 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
427
347
|
whiteSpace: "nowrap"
|
|
428
348
|
},
|
|
429
349
|
standaloneGroupLabel: {
|
|
430
|
-
marginTop:
|
|
350
|
+
marginTop: F,
|
|
431
351
|
display: "block",
|
|
432
352
|
listStyleType: "none",
|
|
433
|
-
...
|
|
434
|
-
fontSize:
|
|
435
|
-
lineHeight:
|
|
436
|
-
fontWeight:
|
|
437
|
-
color:
|
|
353
|
+
...m.padding("0.375rem", dt),
|
|
354
|
+
fontSize: K,
|
|
355
|
+
lineHeight: $,
|
|
356
|
+
fontWeight: vt,
|
|
357
|
+
color: X,
|
|
438
358
|
"&:first-child": {
|
|
439
359
|
marginTop: 0
|
|
440
360
|
}
|
|
441
361
|
},
|
|
442
362
|
groupContentList: {
|
|
443
|
-
paddingLeft:
|
|
363
|
+
paddingLeft: F
|
|
444
364
|
},
|
|
445
365
|
collapseWrapper: {
|
|
446
366
|
display: "grid",
|
|
@@ -464,565 +384,365 @@ const Ge = (s) => /* @__PURE__ */ e.jsxDEV(
|
|
|
464
384
|
width: "1rem",
|
|
465
385
|
height: "1rem",
|
|
466
386
|
flexShrink: 0,
|
|
467
|
-
color:
|
|
387
|
+
color: xt
|
|
468
388
|
},
|
|
469
389
|
statusIconWarning: {
|
|
470
390
|
width: "1rem",
|
|
471
391
|
height: "1rem",
|
|
472
392
|
flexShrink: 0,
|
|
473
|
-
color:
|
|
393
|
+
color: ht
|
|
474
394
|
},
|
|
475
395
|
statusIconSuccess: {
|
|
476
396
|
width: "1rem",
|
|
477
397
|
height: "1rem",
|
|
478
398
|
flexShrink: 0,
|
|
479
|
-
color:
|
|
399
|
+
color: ft
|
|
480
400
|
}
|
|
481
|
-
}),
|
|
482
|
-
const
|
|
483
|
-
return
|
|
484
|
-
|
|
485
|
-
lineNumber: 458,
|
|
486
|
-
columnNumber: 12
|
|
487
|
-
}, void 0) : s === "warning" ? /* @__PURE__ */ e.jsxDEV(_, { className: t.statusIconWarning }, void 0, !1, {
|
|
488
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
489
|
-
lineNumber: 461,
|
|
490
|
-
columnNumber: 12
|
|
491
|
-
}, void 0) : s === "success" ? /* @__PURE__ */ e.jsxDEV(Be, { className: t.statusIconSuccess }, void 0, !1, {
|
|
492
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
493
|
-
lineNumber: 464,
|
|
494
|
-
columnNumber: 12
|
|
495
|
-
}, void 0) : null;
|
|
496
|
-
}, Q = l.createContext({
|
|
401
|
+
}), Vt = ({ status: n }) => {
|
|
402
|
+
const o = y();
|
|
403
|
+
return n === "error" ? /* @__PURE__ */ t(Q, { className: o.statusIconError }) : n === "warning" ? /* @__PURE__ */ t(Q, { className: o.statusIconWarning }) : n === "success" ? /* @__PURE__ */ t(zt, { className: o.statusIconSuccess }) : null;
|
|
404
|
+
}, Y = i.createContext({
|
|
497
405
|
striped: !1,
|
|
498
406
|
showIndex: !1,
|
|
499
407
|
sortable: !1
|
|
500
|
-
}),
|
|
501
|
-
className:
|
|
502
|
-
density:
|
|
503
|
-
striped:
|
|
408
|
+
}), Z = () => i.useContext(Y), jt = (n) => n === void 0 ? void 0 : n === "relaxed" ? "normal" : n, Jt = i.forwardRef(function({
|
|
409
|
+
className: o,
|
|
410
|
+
density: l,
|
|
411
|
+
striped: e = !1,
|
|
504
412
|
showIndex: c = !1,
|
|
505
|
-
sortable:
|
|
413
|
+
sortable: s = !1,
|
|
506
414
|
onReorder: r,
|
|
507
|
-
children:
|
|
508
|
-
...
|
|
415
|
+
children: x,
|
|
416
|
+
...b
|
|
509
417
|
}, w) {
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
),
|
|
513
|
-
(
|
|
514
|
-
),
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
),
|
|
518
|
-
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
const { active:
|
|
522
|
-
if (!
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
},
|
|
418
|
+
const v = y(), u = jt(l), I = i.Children.toArray(x).filter(
|
|
419
|
+
i.isValidElement
|
|
420
|
+
), T = I.map(
|
|
421
|
+
(d, C) => d.type === U ? i.cloneElement(d, { index: C }) : d
|
|
422
|
+
), h = I.filter((d) => d.type === U), a = h.map((d) => d.props.value).filter((d) => typeof d == "string"), [S, W] = i.useState(null), L = S ? a.indexOf(S) : -1, k = S != null ? h.find((d) => d.props.value === S) : void 0, E = J(
|
|
423
|
+
V(nt, { activationConstraint: { distance: 3 } }),
|
|
424
|
+
V(rt)
|
|
425
|
+
), N = (d) => {
|
|
426
|
+
W(d.active.id);
|
|
427
|
+
}, O = (d) => {
|
|
428
|
+
W(null);
|
|
429
|
+
const { active: C, over: p } = d;
|
|
430
|
+
if (!p || C.id === p.id) return;
|
|
431
|
+
const z = a.indexOf(C.id), M = a.indexOf(p.id);
|
|
432
|
+
z === -1 || M === -1 || r == null || r(at(a, z, M));
|
|
433
|
+
}, A = /* @__PURE__ */ t(
|
|
526
434
|
"ol",
|
|
527
435
|
{
|
|
528
436
|
ref: w,
|
|
529
437
|
"data-slot": "list",
|
|
530
|
-
[
|
|
438
|
+
[g]: "list",
|
|
531
439
|
...u !== void 0 ? { "data-density": u } : {},
|
|
532
|
-
className:
|
|
533
|
-
...
|
|
534
|
-
children:
|
|
535
|
-
}
|
|
536
|
-
void 0,
|
|
537
|
-
!1,
|
|
538
|
-
{
|
|
539
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
540
|
-
lineNumber: 590,
|
|
541
|
-
columnNumber: 5
|
|
542
|
-
},
|
|
543
|
-
this
|
|
440
|
+
className: f(v.list, o),
|
|
441
|
+
...b,
|
|
442
|
+
children: T
|
|
443
|
+
}
|
|
544
444
|
);
|
|
545
|
-
return /* @__PURE__ */
|
|
546
|
-
|
|
445
|
+
return /* @__PURE__ */ t(Y.Provider, { value: { striped: e, showIndex: c, sortable: s }, children: s ? /* @__PURE__ */ D(
|
|
446
|
+
tt,
|
|
547
447
|
{
|
|
548
|
-
sensors:
|
|
549
|
-
collisionDetection:
|
|
550
|
-
onDragStart:
|
|
551
|
-
onDragEnd:
|
|
552
|
-
onDragCancel: () =>
|
|
448
|
+
sensors: E,
|
|
449
|
+
collisionDetection: et,
|
|
450
|
+
onDragStart: N,
|
|
451
|
+
onDragEnd: O,
|
|
452
|
+
onDragCancel: () => W(null),
|
|
553
453
|
children: [
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
|
|
556
|
-
{
|
|
557
|
-
items: n,
|
|
558
|
-
strategy: le,
|
|
559
|
-
children: U
|
|
560
|
-
},
|
|
561
|
-
void 0,
|
|
562
|
-
!1,
|
|
454
|
+
/* @__PURE__ */ t(
|
|
455
|
+
it,
|
|
563
456
|
{
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
568
|
-
this
|
|
457
|
+
items: a,
|
|
458
|
+
strategy: st,
|
|
459
|
+
children: A
|
|
460
|
+
}
|
|
569
461
|
),
|
|
570
|
-
/* @__PURE__ */
|
|
571
|
-
|
|
462
|
+
/* @__PURE__ */ t(ot, { children: k ? /* @__PURE__ */ t(
|
|
463
|
+
R,
|
|
572
464
|
{
|
|
573
|
-
value:
|
|
574
|
-
status:
|
|
575
|
-
index:
|
|
576
|
-
className:
|
|
465
|
+
value: k.props.value,
|
|
466
|
+
status: k.props.status,
|
|
467
|
+
index: L,
|
|
468
|
+
className: v.dragOverlayItem,
|
|
577
469
|
...u !== void 0 ? { "data-density": u } : {},
|
|
578
|
-
children:
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
!1,
|
|
582
|
-
{
|
|
583
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
584
|
-
lineNumber: 620,
|
|
585
|
-
columnNumber: 15
|
|
586
|
-
},
|
|
587
|
-
this
|
|
588
|
-
) : null }, void 0, !1, {
|
|
589
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
590
|
-
lineNumber: 618,
|
|
591
|
-
columnNumber: 11
|
|
592
|
-
}, this)
|
|
470
|
+
children: k.props.children
|
|
471
|
+
}
|
|
472
|
+
) : null })
|
|
593
473
|
]
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
lineNumber: 605,
|
|
600
|
-
columnNumber: 9
|
|
601
|
-
},
|
|
602
|
-
this
|
|
603
|
-
) : U }, void 0, !1, {
|
|
604
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
605
|
-
lineNumber: 603,
|
|
606
|
-
columnNumber: 5
|
|
607
|
-
}, this);
|
|
608
|
-
}), ze = l.forwardRef(function({ className: t, children: a, ...i }, c) {
|
|
609
|
-
const o = N();
|
|
610
|
-
return /* @__PURE__ */ e.jsxDEV(
|
|
474
|
+
}
|
|
475
|
+
) : A });
|
|
476
|
+
}), Ft = i.forwardRef(function({ className: o, children: l, ...e }, c) {
|
|
477
|
+
const s = y();
|
|
478
|
+
return /* @__PURE__ */ t(
|
|
611
479
|
"span",
|
|
612
480
|
{
|
|
613
481
|
ref: c,
|
|
614
482
|
"data-slot": "list-item-actions",
|
|
615
|
-
[
|
|
483
|
+
[g]: "list-item-actions",
|
|
616
484
|
onPointerDown: (r) => r.stopPropagation(),
|
|
617
|
-
className:
|
|
618
|
-
...
|
|
619
|
-
children:
|
|
620
|
-
}
|
|
621
|
-
void 0,
|
|
622
|
-
!1,
|
|
623
|
-
{
|
|
624
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
625
|
-
lineNumber: 659,
|
|
626
|
-
columnNumber: 5
|
|
627
|
-
},
|
|
628
|
-
this
|
|
485
|
+
className: f(s.actions, o),
|
|
486
|
+
...e,
|
|
487
|
+
children: l
|
|
488
|
+
}
|
|
629
489
|
);
|
|
630
|
-
}),
|
|
631
|
-
const c =
|
|
632
|
-
return /* @__PURE__ */
|
|
490
|
+
}), te = i.forwardRef(function({ className: o, ...l }, e) {
|
|
491
|
+
const c = y();
|
|
492
|
+
return /* @__PURE__ */ t(
|
|
633
493
|
"span",
|
|
634
494
|
{
|
|
635
|
-
ref:
|
|
495
|
+
ref: e,
|
|
636
496
|
"data-slot": "list-item-text",
|
|
637
|
-
[
|
|
638
|
-
className:
|
|
639
|
-
...
|
|
640
|
-
}
|
|
641
|
-
void 0,
|
|
642
|
-
!1,
|
|
643
|
-
{
|
|
644
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
645
|
-
lineNumber: 683,
|
|
646
|
-
columnNumber: 5
|
|
647
|
-
},
|
|
648
|
-
this
|
|
497
|
+
[g]: "list-item-text",
|
|
498
|
+
className: f(c.text, o),
|
|
499
|
+
...l
|
|
500
|
+
}
|
|
649
501
|
);
|
|
650
|
-
}),
|
|
651
|
-
const c =
|
|
652
|
-
return /* @__PURE__ */
|
|
502
|
+
}), ee = i.forwardRef(function({ className: o, ...l }, e) {
|
|
503
|
+
const c = y();
|
|
504
|
+
return /* @__PURE__ */ t(
|
|
653
505
|
"span",
|
|
654
506
|
{
|
|
655
|
-
ref:
|
|
507
|
+
ref: e,
|
|
656
508
|
"data-slot": "list-item-description",
|
|
657
|
-
[
|
|
658
|
-
className:
|
|
659
|
-
...
|
|
660
|
-
}
|
|
661
|
-
void 0,
|
|
662
|
-
!1,
|
|
663
|
-
{
|
|
664
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
665
|
-
lineNumber: 704,
|
|
666
|
-
columnNumber: 5
|
|
667
|
-
},
|
|
668
|
-
this
|
|
509
|
+
[g]: "list-item-description",
|
|
510
|
+
className: f(c.description, o),
|
|
511
|
+
...l
|
|
512
|
+
}
|
|
669
513
|
);
|
|
670
|
-
}),
|
|
514
|
+
}), R = i.forwardRef(
|
|
671
515
|
function({
|
|
672
|
-
className:
|
|
673
|
-
value:
|
|
674
|
-
status:
|
|
516
|
+
className: o,
|
|
517
|
+
value: l,
|
|
518
|
+
status: e = "default",
|
|
675
519
|
index: c,
|
|
676
|
-
children:
|
|
520
|
+
children: s,
|
|
677
521
|
setNodeRef: r,
|
|
678
|
-
setActivatorNodeRef:
|
|
679
|
-
style:
|
|
522
|
+
setActivatorNodeRef: x,
|
|
523
|
+
style: b,
|
|
680
524
|
isDragging: w,
|
|
681
|
-
dropEdge:
|
|
525
|
+
dropEdge: v,
|
|
682
526
|
listeners: u,
|
|
683
|
-
attributes:
|
|
684
|
-
...
|
|
685
|
-
},
|
|
686
|
-
const
|
|
687
|
-
(
|
|
688
|
-
),
|
|
689
|
-
(
|
|
690
|
-
r == null || r(
|
|
527
|
+
attributes: I,
|
|
528
|
+
...T
|
|
529
|
+
}, h) {
|
|
530
|
+
const a = y(), { striped: S, showIndex: W, sortable: L } = Z(), k = L && !w, E = i.Children.toArray(s), N = E.find(
|
|
531
|
+
(p) => i.isValidElement(p) && p.type === Ft
|
|
532
|
+
), O = E.filter((p) => p !== N), A = i.useCallback(
|
|
533
|
+
(p) => {
|
|
534
|
+
r == null || r(p), typeof h == "function" ? h(p) : h && (h.current = p);
|
|
691
535
|
},
|
|
692
|
-
[r,
|
|
693
|
-
),
|
|
694
|
-
return /* @__PURE__ */
|
|
536
|
+
[r, h]
|
|
537
|
+
), d = e === "error" ? a.statusError : e === "warning" ? a.statusWarning : e === "success" ? a.statusSuccess : a.statusDefault, C = k ? e === "error" ? a.interactiveError : e === "warning" ? a.interactiveWarning : e === "success" ? a.interactiveSuccess : a.interactiveDefault : void 0;
|
|
538
|
+
return /* @__PURE__ */ D(
|
|
695
539
|
"li",
|
|
696
540
|
{
|
|
697
|
-
ref:
|
|
698
|
-
style:
|
|
541
|
+
ref: A,
|
|
542
|
+
style: b,
|
|
699
543
|
"data-slot": "list-item",
|
|
700
|
-
[
|
|
701
|
-
"data-status":
|
|
702
|
-
"data-value":
|
|
703
|
-
onPointerDown:
|
|
704
|
-
className:
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
w &&
|
|
711
|
-
|
|
544
|
+
[g]: "list-item",
|
|
545
|
+
"data-status": e,
|
|
546
|
+
"data-value": l,
|
|
547
|
+
onPointerDown: L ? u == null ? void 0 : u.onPointerDown : void 0,
|
|
548
|
+
className: f(
|
|
549
|
+
a.item,
|
|
550
|
+
d,
|
|
551
|
+
S && e === "default" && a.stripedEven,
|
|
552
|
+
C,
|
|
553
|
+
L && a.sortableItem,
|
|
554
|
+
w && a.itemDragging,
|
|
555
|
+
o
|
|
712
556
|
),
|
|
713
|
-
...
|
|
557
|
+
...T,
|
|
714
558
|
children: [
|
|
715
|
-
|
|
559
|
+
v && /* @__PURE__ */ t(
|
|
716
560
|
"span",
|
|
717
561
|
{
|
|
718
562
|
"data-slot": "list-drop-indicator",
|
|
719
|
-
[
|
|
563
|
+
[g]: "list-drop-indicator",
|
|
720
564
|
"aria-hidden": "true",
|
|
721
|
-
className:
|
|
722
|
-
|
|
723
|
-
|
|
565
|
+
className: f(
|
|
566
|
+
a.dropIndicator,
|
|
567
|
+
v === "top" ? a.dropIndicatorTop : a.dropIndicatorBottom
|
|
724
568
|
)
|
|
725
|
-
}
|
|
726
|
-
void 0,
|
|
727
|
-
!1,
|
|
728
|
-
{
|
|
729
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
730
|
-
lineNumber: 829,
|
|
731
|
-
columnNumber: 11
|
|
732
|
-
},
|
|
733
|
-
this
|
|
569
|
+
}
|
|
734
570
|
),
|
|
735
|
-
|
|
571
|
+
W && /* @__PURE__ */ t(
|
|
736
572
|
"span",
|
|
737
573
|
{
|
|
738
574
|
"data-slot": "list-item-index",
|
|
739
|
-
[
|
|
575
|
+
[g]: "list-item-index",
|
|
740
576
|
"aria-hidden": "true",
|
|
741
|
-
className:
|
|
577
|
+
className: a.indexBase,
|
|
742
578
|
children: (c ?? 0) + 1
|
|
743
|
-
}
|
|
744
|
-
void 0,
|
|
745
|
-
!1,
|
|
746
|
-
{
|
|
747
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
748
|
-
lineNumber: 843,
|
|
749
|
-
columnNumber: 11
|
|
750
|
-
},
|
|
751
|
-
this
|
|
579
|
+
}
|
|
752
580
|
),
|
|
753
|
-
/* @__PURE__ */
|
|
581
|
+
/* @__PURE__ */ t(
|
|
754
582
|
"span",
|
|
755
583
|
{
|
|
756
584
|
"data-slot": "list-item-content",
|
|
757
|
-
[
|
|
758
|
-
className:
|
|
759
|
-
children:
|
|
760
|
-
}
|
|
761
|
-
void 0,
|
|
762
|
-
!1,
|
|
763
|
-
{
|
|
764
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
765
|
-
lineNumber: 853,
|
|
766
|
-
columnNumber: 9
|
|
767
|
-
},
|
|
768
|
-
this
|
|
585
|
+
[g]: "list-item-content",
|
|
586
|
+
className: a.content,
|
|
587
|
+
children: O
|
|
588
|
+
}
|
|
769
589
|
),
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
columnNumber: 9
|
|
774
|
-
}, this),
|
|
775
|
-
L,
|
|
776
|
-
y && /* @__PURE__ */ e.jsxDEV(
|
|
590
|
+
/* @__PURE__ */ t(Vt, { status: e }),
|
|
591
|
+
N,
|
|
592
|
+
L && /* @__PURE__ */ t(
|
|
777
593
|
"button",
|
|
778
594
|
{
|
|
779
|
-
ref:
|
|
595
|
+
ref: x,
|
|
780
596
|
type: "button",
|
|
781
|
-
"aria-label": `Drag to reorder ${
|
|
782
|
-
className:
|
|
783
|
-
...
|
|
597
|
+
"aria-label": `Drag to reorder ${l ?? "item"}`,
|
|
598
|
+
className: a.dragHandle,
|
|
599
|
+
...I,
|
|
784
600
|
onKeyDown: u == null ? void 0 : u.onKeyDown,
|
|
785
|
-
children: /* @__PURE__ */
|
|
786
|
-
|
|
787
|
-
lineNumber: 878,
|
|
788
|
-
columnNumber: 13
|
|
789
|
-
}, this)
|
|
790
|
-
},
|
|
791
|
-
void 0,
|
|
792
|
-
!1,
|
|
793
|
-
{
|
|
794
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
795
|
-
lineNumber: 866,
|
|
796
|
-
columnNumber: 11
|
|
797
|
-
},
|
|
798
|
-
this
|
|
601
|
+
children: /* @__PURE__ */ t(Ht, {})
|
|
602
|
+
}
|
|
799
603
|
)
|
|
800
604
|
]
|
|
801
|
-
}
|
|
802
|
-
void 0,
|
|
803
|
-
!0,
|
|
804
|
-
{
|
|
805
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
806
|
-
lineNumber: 803,
|
|
807
|
-
columnNumber: 7
|
|
808
|
-
},
|
|
809
|
-
this
|
|
605
|
+
}
|
|
810
606
|
);
|
|
811
607
|
}
|
|
812
|
-
),
|
|
813
|
-
function(
|
|
814
|
-
const
|
|
815
|
-
process.env.NODE_ENV !== "production" &&
|
|
608
|
+
), Xt = i.forwardRef(
|
|
609
|
+
function(o, l) {
|
|
610
|
+
const e = i.useId();
|
|
611
|
+
process.env.NODE_ENV !== "production" && o.value === void 0 && console.warn(
|
|
816
612
|
"List: a sortable `ListItem` is missing a `value`. Give each sortable item a unique `value` so it can be reordered — items without one are excluded from `onReorder`."
|
|
817
613
|
);
|
|
818
614
|
const {
|
|
819
615
|
attributes: c,
|
|
820
|
-
listeners:
|
|
616
|
+
listeners: s,
|
|
821
617
|
setNodeRef: r,
|
|
822
|
-
setActivatorNodeRef:
|
|
823
|
-
isDragging:
|
|
618
|
+
setActivatorNodeRef: x,
|
|
619
|
+
isDragging: b,
|
|
824
620
|
isOver: w,
|
|
825
|
-
activeIndex:
|
|
621
|
+
activeIndex: v,
|
|
826
622
|
overIndex: u
|
|
827
|
-
} =
|
|
828
|
-
id:
|
|
623
|
+
} = lt({
|
|
624
|
+
id: o.value ?? e,
|
|
829
625
|
animateLayoutChanges: () => !1
|
|
830
|
-
}),
|
|
831
|
-
return /* @__PURE__ */
|
|
832
|
-
|
|
626
|
+
}), I = w && !b && v !== -1 ? v < u ? "bottom" : "top" : null;
|
|
627
|
+
return /* @__PURE__ */ t(
|
|
628
|
+
R,
|
|
833
629
|
{
|
|
834
|
-
ref:
|
|
835
|
-
...
|
|
630
|
+
ref: l,
|
|
631
|
+
...o,
|
|
836
632
|
setNodeRef: r,
|
|
837
|
-
setActivatorNodeRef:
|
|
838
|
-
isDragging:
|
|
839
|
-
dropEdge:
|
|
840
|
-
listeners:
|
|
633
|
+
setActivatorNodeRef: x,
|
|
634
|
+
isDragging: b,
|
|
635
|
+
dropEdge: I,
|
|
636
|
+
listeners: s,
|
|
841
637
|
attributes: c
|
|
842
|
-
}
|
|
843
|
-
void 0,
|
|
844
|
-
!1,
|
|
845
|
-
{
|
|
846
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
847
|
-
lineNumber: 922,
|
|
848
|
-
columnNumber: 7
|
|
849
|
-
},
|
|
850
|
-
this
|
|
638
|
+
}
|
|
851
639
|
);
|
|
852
640
|
}
|
|
853
|
-
),
|
|
854
|
-
function(
|
|
855
|
-
const { sortable:
|
|
856
|
-
return
|
|
857
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
858
|
-
lineNumber: 943,
|
|
859
|
-
columnNumber: 14
|
|
860
|
-
}, this) : /* @__PURE__ */ e.jsxDEV(O, { ref: a, ...t }, void 0, !1, {
|
|
861
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
862
|
-
lineNumber: 946,
|
|
863
|
-
columnNumber: 12
|
|
864
|
-
}, this);
|
|
641
|
+
), U = i.forwardRef(
|
|
642
|
+
function(o, l) {
|
|
643
|
+
const { sortable: e } = Z();
|
|
644
|
+
return e ? /* @__PURE__ */ t(Xt, { ref: l, ...o }) : /* @__PURE__ */ t(R, { ref: l, ...o });
|
|
865
645
|
}
|
|
866
|
-
),
|
|
646
|
+
), H = i.createContext(null), oe = i.forwardRef(
|
|
867
647
|
function({
|
|
868
|
-
open:
|
|
869
|
-
defaultOpen:
|
|
870
|
-
onOpenChange:
|
|
648
|
+
open: o,
|
|
649
|
+
defaultOpen: l = !1,
|
|
650
|
+
onOpenChange: e,
|
|
871
651
|
className: c,
|
|
872
|
-
children:
|
|
652
|
+
children: s,
|
|
873
653
|
...r
|
|
874
|
-
},
|
|
875
|
-
const
|
|
876
|
-
|
|
654
|
+
}, x) {
|
|
655
|
+
const b = y(), [w, v] = i.useState(l), u = o ?? w, I = i.useId(), T = (h) => {
|
|
656
|
+
o === void 0 && v(h), e == null || e(h);
|
|
877
657
|
};
|
|
878
|
-
return /* @__PURE__ */
|
|
658
|
+
return /* @__PURE__ */ t(H.Provider, { value: { open: u, setOpen: T, contentId: I }, children: /* @__PURE__ */ t(
|
|
879
659
|
"li",
|
|
880
660
|
{
|
|
881
|
-
ref:
|
|
661
|
+
ref: x,
|
|
882
662
|
"data-slot": "list-group",
|
|
883
|
-
[
|
|
663
|
+
[g]: "list-group",
|
|
884
664
|
"data-state": u ? "open" : "closed",
|
|
885
|
-
className:
|
|
665
|
+
className: f(b.group, c),
|
|
886
666
|
...r,
|
|
887
|
-
children:
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
!1,
|
|
891
|
-
{
|
|
892
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
893
|
-
lineNumber: 993,
|
|
894
|
-
columnNumber: 9
|
|
895
|
-
},
|
|
896
|
-
this
|
|
897
|
-
) }, void 0, !1, {
|
|
898
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
899
|
-
lineNumber: 992,
|
|
900
|
-
columnNumber: 7
|
|
901
|
-
}, this);
|
|
667
|
+
children: s
|
|
668
|
+
}
|
|
669
|
+
) });
|
|
902
670
|
}
|
|
903
|
-
),
|
|
904
|
-
const
|
|
905
|
-
return r ? /* @__PURE__ */
|
|
671
|
+
), re = i.forwardRef(function({ className: o, children: l, ...e }, c) {
|
|
672
|
+
const s = y(), r = i.useContext(H);
|
|
673
|
+
return r ? /* @__PURE__ */ D(
|
|
906
674
|
"button",
|
|
907
675
|
{
|
|
908
676
|
ref: c,
|
|
909
677
|
type: "button",
|
|
910
678
|
"data-slot": "list-group-trigger",
|
|
911
|
-
[
|
|
679
|
+
[g]: "list-group-trigger",
|
|
912
680
|
"aria-expanded": r.open,
|
|
913
681
|
"aria-controls": r.contentId,
|
|
914
682
|
onClick: () => r.setOpen(!r.open),
|
|
915
|
-
className:
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
683
|
+
className: f(
|
|
684
|
+
s.item,
|
|
685
|
+
s.interactiveDefault,
|
|
686
|
+
s.groupTrigger,
|
|
687
|
+
o
|
|
920
688
|
),
|
|
921
|
-
...
|
|
689
|
+
...e,
|
|
922
690
|
children: [
|
|
923
|
-
/* @__PURE__ */
|
|
924
|
-
|
|
691
|
+
/* @__PURE__ */ t(
|
|
692
|
+
Mt,
|
|
925
693
|
{
|
|
926
|
-
className:
|
|
927
|
-
|
|
928
|
-
r.open &&
|
|
694
|
+
className: f(
|
|
695
|
+
s.groupChevron,
|
|
696
|
+
r.open && s.groupChevronOpen
|
|
929
697
|
)
|
|
930
|
-
}
|
|
931
|
-
void 0,
|
|
932
|
-
!1,
|
|
933
|
-
{
|
|
934
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
935
|
-
lineNumber: 1039,
|
|
936
|
-
columnNumber: 9
|
|
937
|
-
},
|
|
938
|
-
this
|
|
698
|
+
}
|
|
939
699
|
),
|
|
940
|
-
/* @__PURE__ */
|
|
941
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
942
|
-
lineNumber: 1045,
|
|
943
|
-
columnNumber: 9
|
|
944
|
-
}, this)
|
|
700
|
+
/* @__PURE__ */ t("span", { className: s.groupTriggerText, children: l })
|
|
945
701
|
]
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
!0,
|
|
949
|
-
{
|
|
950
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
951
|
-
lineNumber: 1023,
|
|
952
|
-
columnNumber: 7
|
|
953
|
-
},
|
|
954
|
-
this
|
|
955
|
-
) : /* @__PURE__ */ e.jsxDEV(
|
|
702
|
+
}
|
|
703
|
+
) : /* @__PURE__ */ t(
|
|
956
704
|
"li",
|
|
957
705
|
{
|
|
958
706
|
ref: c,
|
|
959
707
|
"data-slot": "list-group-label",
|
|
960
|
-
[
|
|
961
|
-
className:
|
|
962
|
-
children:
|
|
963
|
-
}
|
|
964
|
-
void 0,
|
|
965
|
-
!1,
|
|
966
|
-
{
|
|
967
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
968
|
-
lineNumber: 1051,
|
|
969
|
-
columnNumber: 5
|
|
970
|
-
},
|
|
971
|
-
this
|
|
708
|
+
[g]: "list-group-label",
|
|
709
|
+
className: f(s.standaloneGroupLabel, o),
|
|
710
|
+
children: l
|
|
711
|
+
}
|
|
972
712
|
);
|
|
973
|
-
}),
|
|
974
|
-
const
|
|
713
|
+
}), ne = i.forwardRef(function({ className: o, children: l, ...e }, c) {
|
|
714
|
+
const s = y(), r = i.useContext(H), x = /* @__PURE__ */ t(
|
|
975
715
|
"ul",
|
|
976
716
|
{
|
|
977
717
|
ref: c,
|
|
978
718
|
"data-slot": "list-group-content",
|
|
979
|
-
[
|
|
980
|
-
className:
|
|
981
|
-
...
|
|
982
|
-
children:
|
|
983
|
-
}
|
|
984
|
-
void 0,
|
|
985
|
-
!1,
|
|
986
|
-
{
|
|
987
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
988
|
-
lineNumber: 1074,
|
|
989
|
-
columnNumber: 5
|
|
990
|
-
},
|
|
991
|
-
this
|
|
719
|
+
[g]: "list-group-content",
|
|
720
|
+
className: f(s.list, s.groupContentList, o),
|
|
721
|
+
...e,
|
|
722
|
+
children: l
|
|
723
|
+
}
|
|
992
724
|
);
|
|
993
|
-
return r ? /* @__PURE__ */
|
|
725
|
+
return r ? /* @__PURE__ */ t(
|
|
994
726
|
"div",
|
|
995
727
|
{
|
|
996
728
|
id: r.contentId,
|
|
997
729
|
"data-state": r.open ? "open" : "closed",
|
|
998
|
-
className:
|
|
999
|
-
|
|
1000
|
-
r.open &&
|
|
730
|
+
className: f(
|
|
731
|
+
s.collapseWrapper,
|
|
732
|
+
r.open && s.collapseWrapperOpen
|
|
1001
733
|
),
|
|
1002
|
-
children: /* @__PURE__ */
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
columnNumber: 7
|
|
1006
|
-
}, this)
|
|
1007
|
-
},
|
|
1008
|
-
void 0,
|
|
1009
|
-
!1,
|
|
1010
|
-
{
|
|
1011
|
-
fileName: "/Users/wilianmolinari/repos/volt-ui-rollout/release/packages/experimental-griffel/src/components/list/list.tsx",
|
|
1012
|
-
lineNumber: 1088,
|
|
1013
|
-
columnNumber: 5
|
|
1014
|
-
},
|
|
1015
|
-
this
|
|
1016
|
-
) : v;
|
|
734
|
+
children: /* @__PURE__ */ t("div", { className: s.collapseInner, children: x })
|
|
735
|
+
}
|
|
736
|
+
) : x;
|
|
1017
737
|
});
|
|
1018
738
|
export {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
739
|
+
Jt as List,
|
|
740
|
+
oe as ListGroup,
|
|
741
|
+
ne as ListGroupContent,
|
|
742
|
+
re as ListGroupLabel,
|
|
743
|
+
U as ListItem,
|
|
744
|
+
Ft as ListItemActions,
|
|
745
|
+
ee as ListItemDescription,
|
|
746
|
+
te as ListItemText
|
|
1027
747
|
};
|
|
1028
748
|
//# sourceMappingURL=list.js.map
|