@stealthscale/component-collections 0.1.1 → 0.1.3
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/cyclonedx/bom.json +1 -1
- package/dist/index.js +1 -5700
- package/dist/pages/data-list/data-list.js +351 -0
- package/dist/pages/data-list/data-list.props.js +3 -0
- package/dist/pages/listbox/listbox.js +1277 -0
- package/dist/pages/listbox/listbox.props.js +3 -0
- package/dist/pages/pages.json +105 -0
- package/dist/pages/sortable/sortable.js +576 -0
- package/dist/pages/sortable/sortable.props.js +3 -0
- package/dist/pages/status-matrix/status-matrix.js +1403 -0
- package/dist/pages/status-matrix/status-matrix.props.js +3 -0
- package/dist/pages/swipe-actions/swipe-actions.js +212 -0
- package/dist/pages/swipe-actions/swipe-actions.props.js +3 -0
- package/dist/pages/table/table.js +1701 -0
- package/dist/pages/table/table.props.js +3 -0
- package/dist/pages/timeline/timeline.js +380 -0
- package/dist/pages/timeline/timeline.props.js +3 -0
- package/dist/pages/transfer/transfer.js +465 -0
- package/dist/pages/transfer/transfer.props.js +3 -0
- package/dist/pages/tree-view/tree-view.js +1059 -0
- package/dist/pages/tree-view/tree-view.props.js +3 -0
- package/dist/shared-DVn824MJ.js +5701 -0
- package/dist/theme.js +23 -13
- package/locales/en/specimen/data-list.json +64 -0
- package/locales/en/specimen/listbox.json +98 -0
- package/locales/en/specimen/sortable.json +65 -0
- package/locales/en/specimen/status-matrix.json +47 -0
- package/locales/en/specimen/swipe-actions.json +32 -0
- package/locales/en/specimen/table.json +94 -0
- package/locales/en/specimen/timeline.json +72 -0
- package/locales/en/specimen/transfer.json +34 -0
- package/locales/en/specimen/tree-view.json +107 -0
- package/package.json +10 -9
- /package/dist/{recipe-C1oaF8pO.js → recipes-C1oaF8pO.js} +0 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../rolldown-runtime-D7D4PA-g.js";
|
|
2
|
+
import { $ as Root, et as Item, nt as ItemLabel, tt as ItemValue } from "../../shared-DVn824MJ.js";
|
|
3
|
+
import { f as recipe } from "../../recipes-C1oaF8pO.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { ButtonPropsProvider, IconButton } from "@stealthscale/component-actions";
|
|
7
|
+
import { Room, scenesOf, specimen, useWords } from "@stealthscale/specimen";
|
|
8
|
+
import { createPortal } from "react-dom";
|
|
9
|
+
import { InfoIcon } from "lucide-react";
|
|
10
|
+
import { Popover } from "@stealthscale/component-disclosure";
|
|
11
|
+
import { Badge, Status } from "@stealthscale/component-data";
|
|
12
|
+
import { Code, Span } from "@stealthscale/component-typography";
|
|
13
|
+
//#region src/data-list/examples/noted.example.tsx
|
|
14
|
+
var noted_example_exports = /* @__PURE__ */ __exportAll({
|
|
15
|
+
Noted: () => Noted,
|
|
16
|
+
source: () => source$2
|
|
17
|
+
});
|
|
18
|
+
const NOTES = ["net", "window"];
|
|
19
|
+
function Noted() {
|
|
20
|
+
const $ = c(4);
|
|
21
|
+
const { t } = useWords("data-list");
|
|
22
|
+
let t0;
|
|
23
|
+
if ($[0] !== t) {
|
|
24
|
+
t0 = NOTES.map((note) => /* @__PURE__ */ jsxs(Item, { children: [/* @__PURE__ */ jsxs(ItemLabel, { children: [t(`${note}.label`), /* @__PURE__ */ jsxs(Popover.Root, {
|
|
25
|
+
size: "xs",
|
|
26
|
+
children: [/* @__PURE__ */ jsx(ButtonPropsProvider, {
|
|
27
|
+
value: {
|
|
28
|
+
size: "xs",
|
|
29
|
+
variant: "ghost"
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ jsx(Popover.Trigger, {
|
|
32
|
+
"aria-label": t(`${note}.explain`),
|
|
33
|
+
as: IconButton,
|
|
34
|
+
children: /* @__PURE__ */ jsx(InfoIcon, { size: "1em" })
|
|
35
|
+
})
|
|
36
|
+
}), createPortal(/* @__PURE__ */ jsx(Popover.Positioner, { children: /* @__PURE__ */ jsx(Popover.Content, { children: /* @__PURE__ */ jsx(Popover.Description, { children: t(`${note}.note`) }) }) }), document.body)]
|
|
37
|
+
})] }), /* @__PURE__ */ jsx(ItemValue, { children: t(`${note}.value`) })] }, note));
|
|
38
|
+
$[0] = t;
|
|
39
|
+
$[1] = t0;
|
|
40
|
+
} else t0 = $[1];
|
|
41
|
+
let t1;
|
|
42
|
+
if ($[2] !== t0) {
|
|
43
|
+
t1 = /* @__PURE__ */ jsx(Root, { children: t0 });
|
|
44
|
+
$[2] = t0;
|
|
45
|
+
$[3] = t1;
|
|
46
|
+
} else t1 = $[3];
|
|
47
|
+
return t1;
|
|
48
|
+
}
|
|
49
|
+
const source$2 = "import { type ReactElement } from \"react\";\nimport { createPortal } from \"react-dom\";\n\nimport { InfoIcon } from \"lucide-react\";\n\nimport { ButtonPropsProvider, IconButton } from \"@stealthscale/component-actions\";\nimport { Popover } from \"@stealthscale/component-disclosure\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { DataList } from \"@stealthscale/component-collections\";\n\nconst NOTES = [\"net\", \"window\"] as const;\n\nexport function Noted(): ReactElement {\n const { t } = useWords(\"data-list\");\n\n return (\n <DataList.Root>\n {NOTES.map((note) => (\n <DataList.Item key={note}>\n <DataList.ItemLabel>\n {t(`${note}.label`)}\n <Popover.Root size=\"xs\">\n <ButtonPropsProvider value={{ size: \"xs\", variant: \"ghost\" }}>\n <Popover.Trigger aria-label={t(`${note}.explain`)} as={IconButton}>\n <InfoIcon size=\"1em\" />\n </Popover.Trigger>\n </ButtonPropsProvider>\n {createPortal(\n <Popover.Positioner>\n <Popover.Content>\n <Popover.Description>{t(`${note}.note`)}</Popover.Description>\n </Popover.Content>\n </Popover.Positioner>,\n document.body,\n )}\n </Popover.Root>\n </DataList.ItemLabel>\n <DataList.ItemValue>{t(`${note}.value`)}</DataList.ItemValue>\n </DataList.Item>\n ))}\n </DataList.Root>\n );\n}\n";
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/data-list/examples/payout.example.tsx
|
|
52
|
+
var payout_example_exports = /* @__PURE__ */ __exportAll({
|
|
53
|
+
Payout: () => Payout,
|
|
54
|
+
source: () => source$1
|
|
55
|
+
});
|
|
56
|
+
const FIELDS = [
|
|
57
|
+
"account",
|
|
58
|
+
"raised",
|
|
59
|
+
"amount"
|
|
60
|
+
];
|
|
61
|
+
function Payout(props) {
|
|
62
|
+
const $ = c(17);
|
|
63
|
+
const { t } = useWords("data-list");
|
|
64
|
+
let t0;
|
|
65
|
+
if ($[0] !== t) {
|
|
66
|
+
t0 = FIELDS.map((field) => /* @__PURE__ */ jsxs(Item, { children: [/* @__PURE__ */ jsx(ItemLabel, { children: t(`${field}.label`) }), /* @__PURE__ */ jsx(ItemValue, { children: t(`${field}.value`) })] }, field));
|
|
67
|
+
$[0] = t;
|
|
68
|
+
$[1] = t0;
|
|
69
|
+
} else t0 = $[1];
|
|
70
|
+
let t1;
|
|
71
|
+
if ($[2] !== t) {
|
|
72
|
+
t1 = t("state");
|
|
73
|
+
$[2] = t;
|
|
74
|
+
$[3] = t1;
|
|
75
|
+
} else t1 = $[3];
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[4] !== t1) {
|
|
78
|
+
t2 = /* @__PURE__ */ jsx(ItemLabel, { children: t1 });
|
|
79
|
+
$[4] = t1;
|
|
80
|
+
$[5] = t2;
|
|
81
|
+
} else t2 = $[5];
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[6] !== t) {
|
|
84
|
+
t3 = t("settled");
|
|
85
|
+
$[6] = t;
|
|
86
|
+
$[7] = t3;
|
|
87
|
+
} else t3 = $[7];
|
|
88
|
+
let t4;
|
|
89
|
+
if ($[8] !== t3) {
|
|
90
|
+
t4 = /* @__PURE__ */ jsx(ItemValue, { children: /* @__PURE__ */ jsx(Badge, {
|
|
91
|
+
palette: "success",
|
|
92
|
+
children: t3
|
|
93
|
+
}) });
|
|
94
|
+
$[8] = t3;
|
|
95
|
+
$[9] = t4;
|
|
96
|
+
} else t4 = $[9];
|
|
97
|
+
let t5;
|
|
98
|
+
if ($[10] !== t2 || $[11] !== t4) {
|
|
99
|
+
t5 = /* @__PURE__ */ jsxs(Item, { children: [t2, t4] });
|
|
100
|
+
$[10] = t2;
|
|
101
|
+
$[11] = t4;
|
|
102
|
+
$[12] = t5;
|
|
103
|
+
} else t5 = $[12];
|
|
104
|
+
let t6;
|
|
105
|
+
if ($[13] !== props || $[14] !== t0 || $[15] !== t5) {
|
|
106
|
+
t6 = /* @__PURE__ */ jsxs(Root, {
|
|
107
|
+
...props,
|
|
108
|
+
children: [t0, t5]
|
|
109
|
+
});
|
|
110
|
+
$[13] = props;
|
|
111
|
+
$[14] = t0;
|
|
112
|
+
$[15] = t5;
|
|
113
|
+
$[16] = t6;
|
|
114
|
+
} else t6 = $[16];
|
|
115
|
+
return t6;
|
|
116
|
+
}
|
|
117
|
+
const source$1 = "import { type ReactElement } from \"react\";\n\nimport { Badge } from \"@stealthscale/component-data\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { DataList } from \"@stealthscale/component-collections\";\n\nconst FIELDS = [\"account\", \"raised\", \"amount\"] as const;\n\nexport function Payout(props: DataList.RootProps): ReactElement {\n const { t } = useWords(\"data-list\");\n\n return (\n <DataList.Root {...props}>\n {FIELDS.map((field) => (\n <DataList.Item key={field}>\n <DataList.ItemLabel>{t(`${field}.label`)}</DataList.ItemLabel>\n <DataList.ItemValue>{t(`${field}.value`)}</DataList.ItemValue>\n </DataList.Item>\n ))}\n <DataList.Item>\n <DataList.ItemLabel>{t(\"state\")}</DataList.ItemLabel>\n <DataList.ItemValue>\n <Badge palette=\"success\">{t(\"settled\")}</Badge>\n </DataList.ItemValue>\n </DataList.Item>\n </DataList.Root>\n );\n}\n";
|
|
118
|
+
//#endregion
|
|
119
|
+
//#region src/data-list/examples/run.example.tsx
|
|
120
|
+
var run_example_exports = /* @__PURE__ */ __exportAll({
|
|
121
|
+
Run: () => Run,
|
|
122
|
+
source: () => source
|
|
123
|
+
});
|
|
124
|
+
function Run() {
|
|
125
|
+
const $ = c(51);
|
|
126
|
+
const { t } = useWords("data-list");
|
|
127
|
+
let t0;
|
|
128
|
+
if ($[0] !== t) {
|
|
129
|
+
t0 = t("run.status");
|
|
130
|
+
$[0] = t;
|
|
131
|
+
$[1] = t0;
|
|
132
|
+
} else t0 = $[1];
|
|
133
|
+
let t1;
|
|
134
|
+
if ($[2] !== t0) {
|
|
135
|
+
t1 = /* @__PURE__ */ jsx(ItemLabel, { children: t0 });
|
|
136
|
+
$[2] = t0;
|
|
137
|
+
$[3] = t1;
|
|
138
|
+
} else t1 = $[3];
|
|
139
|
+
let t2;
|
|
140
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
141
|
+
t2 = /* @__PURE__ */ jsx(Status.Indicator, {});
|
|
142
|
+
$[4] = t2;
|
|
143
|
+
} else t2 = $[4];
|
|
144
|
+
let t3;
|
|
145
|
+
if ($[5] !== t) {
|
|
146
|
+
t3 = t("run.passed");
|
|
147
|
+
$[5] = t;
|
|
148
|
+
$[6] = t3;
|
|
149
|
+
} else t3 = $[6];
|
|
150
|
+
let t4;
|
|
151
|
+
if ($[7] !== t3) {
|
|
152
|
+
t4 = /* @__PURE__ */ jsx(ItemValue, { children: /* @__PURE__ */ jsxs(Status.Root, {
|
|
153
|
+
palette: "success",
|
|
154
|
+
size: "inherit",
|
|
155
|
+
children: [t2, t3]
|
|
156
|
+
}) });
|
|
157
|
+
$[7] = t3;
|
|
158
|
+
$[8] = t4;
|
|
159
|
+
} else t4 = $[8];
|
|
160
|
+
let t5;
|
|
161
|
+
if ($[9] !== t1 || $[10] !== t4) {
|
|
162
|
+
t5 = /* @__PURE__ */ jsxs(Item, { children: [t1, t4] });
|
|
163
|
+
$[9] = t1;
|
|
164
|
+
$[10] = t4;
|
|
165
|
+
$[11] = t5;
|
|
166
|
+
} else t5 = $[11];
|
|
167
|
+
let t6;
|
|
168
|
+
if ($[12] !== t) {
|
|
169
|
+
t6 = t("run.branch");
|
|
170
|
+
$[12] = t;
|
|
171
|
+
$[13] = t6;
|
|
172
|
+
} else t6 = $[13];
|
|
173
|
+
let t7;
|
|
174
|
+
if ($[14] !== t6) {
|
|
175
|
+
t7 = /* @__PURE__ */ jsx(ItemLabel, { children: t6 });
|
|
176
|
+
$[14] = t6;
|
|
177
|
+
$[15] = t7;
|
|
178
|
+
} else t7 = $[15];
|
|
179
|
+
let t8;
|
|
180
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
181
|
+
t8 = /* @__PURE__ */ jsx(ItemValue, { children: /* @__PURE__ */ jsx(Code, {
|
|
182
|
+
size: "sm",
|
|
183
|
+
children: "main"
|
|
184
|
+
}) });
|
|
185
|
+
$[16] = t8;
|
|
186
|
+
} else t8 = $[16];
|
|
187
|
+
let t9;
|
|
188
|
+
if ($[17] !== t7) {
|
|
189
|
+
t9 = /* @__PURE__ */ jsxs(Item, { children: [t7, t8] });
|
|
190
|
+
$[17] = t7;
|
|
191
|
+
$[18] = t9;
|
|
192
|
+
} else t9 = $[18];
|
|
193
|
+
let t10;
|
|
194
|
+
if ($[19] !== t) {
|
|
195
|
+
t10 = t("run.duration");
|
|
196
|
+
$[19] = t;
|
|
197
|
+
$[20] = t10;
|
|
198
|
+
} else t10 = $[20];
|
|
199
|
+
let t11;
|
|
200
|
+
if ($[21] !== t10) {
|
|
201
|
+
t11 = /* @__PURE__ */ jsx(ItemLabel, { children: t10 });
|
|
202
|
+
$[21] = t10;
|
|
203
|
+
$[22] = t11;
|
|
204
|
+
} else t11 = $[22];
|
|
205
|
+
let t12;
|
|
206
|
+
if ($[23] !== t) {
|
|
207
|
+
t12 = t("run.took");
|
|
208
|
+
$[23] = t;
|
|
209
|
+
$[24] = t12;
|
|
210
|
+
} else t12 = $[24];
|
|
211
|
+
let t13;
|
|
212
|
+
if ($[25] !== t) {
|
|
213
|
+
t13 = t("run.faster");
|
|
214
|
+
$[25] = t;
|
|
215
|
+
$[26] = t13;
|
|
216
|
+
} else t13 = $[26];
|
|
217
|
+
let t14;
|
|
218
|
+
if ($[27] !== t13) {
|
|
219
|
+
t14 = /* @__PURE__ */ jsx(Span, {
|
|
220
|
+
tone: "muted",
|
|
221
|
+
children: t13
|
|
222
|
+
});
|
|
223
|
+
$[27] = t13;
|
|
224
|
+
$[28] = t14;
|
|
225
|
+
} else t14 = $[28];
|
|
226
|
+
let t15;
|
|
227
|
+
if ($[29] !== t12 || $[30] !== t14) {
|
|
228
|
+
t15 = /* @__PURE__ */ jsxs(ItemValue, { children: [t12, t14] });
|
|
229
|
+
$[29] = t12;
|
|
230
|
+
$[30] = t14;
|
|
231
|
+
$[31] = t15;
|
|
232
|
+
} else t15 = $[31];
|
|
233
|
+
let t16;
|
|
234
|
+
if ($[32] !== t11 || $[33] !== t15) {
|
|
235
|
+
t16 = /* @__PURE__ */ jsxs(Item, { children: [t11, t15] });
|
|
236
|
+
$[32] = t11;
|
|
237
|
+
$[33] = t15;
|
|
238
|
+
$[34] = t16;
|
|
239
|
+
} else t16 = $[34];
|
|
240
|
+
let t17;
|
|
241
|
+
if ($[35] !== t) {
|
|
242
|
+
t17 = t("run.artifact");
|
|
243
|
+
$[35] = t;
|
|
244
|
+
$[36] = t17;
|
|
245
|
+
} else t17 = $[36];
|
|
246
|
+
let t18;
|
|
247
|
+
if ($[37] !== t17) {
|
|
248
|
+
t18 = /* @__PURE__ */ jsx(ItemLabel, { children: t17 });
|
|
249
|
+
$[37] = t17;
|
|
250
|
+
$[38] = t18;
|
|
251
|
+
} else t18 = $[38];
|
|
252
|
+
let t19;
|
|
253
|
+
if ($[39] !== t) {
|
|
254
|
+
t19 = t("run.urn");
|
|
255
|
+
$[39] = t;
|
|
256
|
+
$[40] = t19;
|
|
257
|
+
} else t19 = $[40];
|
|
258
|
+
let t20;
|
|
259
|
+
if ($[41] !== t19) {
|
|
260
|
+
t20 = /* @__PURE__ */ jsx(ItemValue, { children: t19 });
|
|
261
|
+
$[41] = t19;
|
|
262
|
+
$[42] = t20;
|
|
263
|
+
} else t20 = $[42];
|
|
264
|
+
let t21;
|
|
265
|
+
if ($[43] !== t18 || $[44] !== t20) {
|
|
266
|
+
t21 = /* @__PURE__ */ jsxs(Item, { children: [t18, t20] });
|
|
267
|
+
$[43] = t18;
|
|
268
|
+
$[44] = t20;
|
|
269
|
+
$[45] = t21;
|
|
270
|
+
} else t21 = $[45];
|
|
271
|
+
let t22;
|
|
272
|
+
if ($[46] !== t16 || $[47] !== t21 || $[48] !== t5 || $[49] !== t9) {
|
|
273
|
+
t22 = /* @__PURE__ */ jsxs(Root, {
|
|
274
|
+
orientation: "horizontal",
|
|
275
|
+
children: [
|
|
276
|
+
t5,
|
|
277
|
+
t9,
|
|
278
|
+
t16,
|
|
279
|
+
t21
|
|
280
|
+
]
|
|
281
|
+
});
|
|
282
|
+
$[46] = t16;
|
|
283
|
+
$[47] = t21;
|
|
284
|
+
$[48] = t5;
|
|
285
|
+
$[49] = t9;
|
|
286
|
+
$[50] = t22;
|
|
287
|
+
} else t22 = $[50];
|
|
288
|
+
return t22;
|
|
289
|
+
}
|
|
290
|
+
const source = "import { type ReactElement } from \"react\";\n\nimport { Status } from \"@stealthscale/component-data\";\nimport { Code, Span } from \"@stealthscale/component-typography\";\nimport { useWords } from \"@stealthscale/specimen\";\n\nimport { DataList } from \"@stealthscale/component-collections\";\n\nexport function Run(): ReactElement {\n const { t } = useWords(\"data-list\");\n\n return (\n <DataList.Root orientation=\"horizontal\">\n <DataList.Item>\n <DataList.ItemLabel>{t(\"run.status\")}</DataList.ItemLabel>\n <DataList.ItemValue>\n <Status.Root palette=\"success\" size=\"inherit\">\n <Status.Indicator />\n {t(\"run.passed\")}\n </Status.Root>\n </DataList.ItemValue>\n </DataList.Item>\n <DataList.Item>\n <DataList.ItemLabel>{t(\"run.branch\")}</DataList.ItemLabel>\n <DataList.ItemValue>\n <Code size=\"sm\">main</Code>\n </DataList.ItemValue>\n </DataList.Item>\n <DataList.Item>\n <DataList.ItemLabel>{t(\"run.duration\")}</DataList.ItemLabel>\n <DataList.ItemValue>\n {t(\"run.took\")}\n <Span tone=\"muted\">{t(\"run.faster\")}</Span>\n </DataList.ItemValue>\n </DataList.Item>\n <DataList.Item>\n <DataList.ItemLabel>{t(\"run.artifact\")}</DataList.ItemLabel>\n <DataList.ItemValue>{t(\"run.urn\")}</DataList.ItemValue>\n </DataList.Item>\n </DataList.Root>\n );\n}\n";
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/data-list/data-list.specimen.tsx
|
|
293
|
+
/**
|
|
294
|
+
* Catalogue page for the data list.
|
|
295
|
+
*
|
|
296
|
+
* @remarks
|
|
297
|
+
* `scenesOf` generates the orientation, variant, size and divided scenes from the recipe, each
|
|
298
|
+
* rendering the payout example in a room as wide as an aside. Two hand-written scenes render
|
|
299
|
+
* values that are components and a note beside a label. The words are keys under `data-list` in
|
|
300
|
+
* `locales/en/specimen/data-list.json`.
|
|
301
|
+
*/
|
|
302
|
+
/**
|
|
303
|
+
* Hand-written scene for values that are components.
|
|
304
|
+
*/
|
|
305
|
+
const components = {
|
|
306
|
+
about: "data-list.components.about",
|
|
307
|
+
draw: () => /* @__PURE__ */ jsx(Room, {
|
|
308
|
+
size: "sm",
|
|
309
|
+
children: /* @__PURE__ */ jsx(Run, {})
|
|
310
|
+
}),
|
|
311
|
+
example: run_example_exports,
|
|
312
|
+
title: "data-list.components.title"
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Hand-written scene for a note beside a label.
|
|
316
|
+
*/
|
|
317
|
+
const notes = {
|
|
318
|
+
about: "data-list.notes.about",
|
|
319
|
+
draw: () => /* @__PURE__ */ jsx(Room, {
|
|
320
|
+
size: "xs",
|
|
321
|
+
children: /* @__PURE__ */ jsx(Noted, {})
|
|
322
|
+
}),
|
|
323
|
+
example: noted_example_exports,
|
|
324
|
+
title: "data-list.notes.title"
|
|
325
|
+
};
|
|
326
|
+
var data_list_specimen_default = specimen({
|
|
327
|
+
about: "data-list.about",
|
|
328
|
+
id: "components/collections/data-list",
|
|
329
|
+
imports: "import { DataList } from \"@stealthscale/component-collections\";",
|
|
330
|
+
scenes: [
|
|
331
|
+
...scenesOf(recipe, {
|
|
332
|
+
draw: (props) => /* @__PURE__ */ jsx(Room, {
|
|
333
|
+
size: "xs",
|
|
334
|
+
children: /* @__PURE__ */ jsx(Payout, { ...props })
|
|
335
|
+
}),
|
|
336
|
+
example: payout_example_exports,
|
|
337
|
+
namespace: "data-list",
|
|
338
|
+
order: [
|
|
339
|
+
"orientation",
|
|
340
|
+
"variant",
|
|
341
|
+
"size",
|
|
342
|
+
"divided"
|
|
343
|
+
]
|
|
344
|
+
}),
|
|
345
|
+
components,
|
|
346
|
+
notes
|
|
347
|
+
],
|
|
348
|
+
title: "data-list.title"
|
|
349
|
+
});
|
|
350
|
+
//#endregion
|
|
351
|
+
export { components, data_list_specimen_default as default, notes };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const dropped = {"ItemLabelProps": {"conditions": 284, "foreign": 1041}, "ItemValueProps": {"conditions": 284, "foreign": 1041}, "ItemProps": {"conditions": 284, "foreign": 1041}, "RootProps": {"conditions": 284, "foreign": 1041}};
|
|
2
|
+
export const parts = {"ItemLabelProps": [], "ItemValueProps": [], "ItemProps": [], "RootProps": [{"accepts": "boolean", "fallback": "", "kind": "variant", "name": "divided", "refers": [], "required": false, "says": "Whether a hairline separates each item from the one before it."}, {"accepts": "\"horizontal\" | \"vertical\"", "fallback": "", "kind": "variant", "name": "orientation", "refers": [], "required": false, "says": "Which way a label and its value run: the label above the value, or beside it."}, {"accepts": "\"lg\" | \"md\" | \"sm\"", "fallback": "", "kind": "variant", "name": "size", "refers": [], "required": false, "says": "The text style of the items, one size smaller than the list, and the gaps between them."}, {"accepts": "\"bold\" | \"subtle\"", "fallback": "", "kind": "variant", "name": "variant", "refers": [], "required": false, "says": "Which of the pair is louder."}]};
|
|
3
|
+
export const shapes = {};
|