@carto/meridian-ds 2.9.2 → 2.9.3-alpha-lists.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{Alert-C4W0H_uN.cjs → Alert-0VBqBP4P.cjs} +1 -1
  3. package/dist/{Alert-BZPM5zpX.js → Alert-BEzNSCqV.js} +1 -1
  4. package/dist/{MenuItem-DoBJsRR_.cjs → MenuItem-0c7Cz5g_.cjs} +1 -1
  5. package/dist/{MenuItem-Cx5lTXXm.js → MenuItem-D4v_HV1x.js} +1 -1
  6. package/dist/components/index.cjs +255 -7
  7. package/dist/components/index.js +259 -11
  8. package/dist/{css-utils-CH7es90t.cjs → css-utils-B3V0Xzli.cjs} +8 -0
  9. package/dist/{css-utils-CjUBRJVK.js → css-utils-D9LibDjo.js} +12 -4
  10. package/dist/custom-icons/index.cjs +7 -24
  11. package/dist/custom-icons/index.js +7 -24
  12. package/dist/theme/index.cjs +339 -51
  13. package/dist/theme/index.js +341 -53
  14. package/dist/types/components/Avatar/Avatar.stories.d.ts.map +1 -1
  15. package/dist/types/components/List/List.d.ts +24 -0
  16. package/dist/types/components/List/List.d.ts.map +1 -0
  17. package/dist/types/components/List/List.stories.d.ts +398 -0
  18. package/dist/types/components/List/List.stories.d.ts.map +1 -0
  19. package/dist/types/components/List/List.test.d.ts +2 -0
  20. package/dist/types/components/List/List.test.d.ts.map +1 -0
  21. package/dist/types/components/List/ListItem/ListItem.d.ts +9 -0
  22. package/dist/types/components/List/ListItem/ListItem.d.ts.map +1 -0
  23. package/dist/types/components/List/ListItem/ListItem.stories.d.ts +307 -0
  24. package/dist/types/components/List/ListItem/ListItem.stories.d.ts.map +1 -0
  25. package/dist/types/components/List/ListItem/ListItem.test.d.ts +2 -0
  26. package/dist/types/components/List/ListItem/ListItem.test.d.ts.map +1 -0
  27. package/dist/types/components/List/ListItemButton/ListItemButton.d.ts +9 -0
  28. package/dist/types/components/List/ListItemButton/ListItemButton.d.ts.map +1 -0
  29. package/dist/types/components/List/ListItemButton/ListItemButton.test.d.ts +2 -0
  30. package/dist/types/components/List/ListItemButton/ListItemButton.test.d.ts.map +1 -0
  31. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.d.ts +14 -0
  32. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.d.ts.map +1 -0
  33. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.test.d.ts +2 -0
  34. package/dist/types/components/List/ListItemRightContent/ListItemRightContent.test.d.ts.map +1 -0
  35. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts +9 -0
  36. package/dist/types/components/List/ListSubheader/ListSubheader.d.ts.map +1 -0
  37. package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts +2 -0
  38. package/dist/types/components/List/ListSubheader/ListSubheader.test.d.ts.map +1 -0
  39. package/dist/types/components/List/index.d.ts +12 -0
  40. package/dist/types/components/List/index.d.ts.map +1 -0
  41. package/dist/types/components/List/types.d.ts +3 -0
  42. package/dist/types/components/List/types.d.ts.map +1 -0
  43. package/dist/types/components/Menu/Menu/Menu.stories.d.ts.map +1 -1
  44. package/dist/types/components/index.d.ts +2 -0
  45. package/dist/types/components/index.d.ts.map +1 -1
  46. package/dist/types/custom-icons/SwitchAccessShortcut.d.ts.map +1 -1
  47. package/dist/types/theme/components/data-display.d.ts.map +1 -1
  48. package/dist/types/theme/components/navigation.d.ts.map +1 -1
  49. package/dist/types/theme/types.d.ts +151 -0
  50. package/dist/types/theme/types.d.ts.map +1 -1
  51. package/dist/types/utils/theme-constants.d.ts +4 -0
  52. package/dist/types/utils/theme-constants.d.ts.map +1 -1
  53. package/dist/widgets/index.cjs +2 -2
  54. package/dist/widgets/index.js +2 -2
  55. package/package.json +1 -1
  56. package/dist/types/theme/components/stories/List.stories.d.ts +0 -62
  57. package/dist/types/theme/components/stories/List.stories.d.ts.map +0 -1
@@ -0,0 +1,398 @@
1
+ import { default as React } from 'react';
2
+ import { ListProps } from '..';
3
+ /**
4
+ * Props that are compatible with List
5
+ */
6
+ interface StoryProps {
7
+ variant?: ListProps['variant'];
8
+ spacing?: number;
9
+ dense?: boolean;
10
+ direction?: 'column' | 'column-reverse' | 'row-reverse' | 'row';
11
+ disableGutters?: boolean;
12
+ disablePadding?: boolean;
13
+ fixedHeight?: boolean;
14
+ divider?: boolean;
15
+ virtualized?: boolean;
16
+ virtualizedItemHeight?: number;
17
+ virtualizedListHeight?: number;
18
+ overscanCount?: number;
19
+ }
20
+ declare const options: {
21
+ title: string;
22
+ component: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
23
+ argTypes: {
24
+ variant: {
25
+ table: {
26
+ defaultValue: {
27
+ summary: string;
28
+ };
29
+ };
30
+ control: "select";
31
+ options: string[];
32
+ description: string;
33
+ };
34
+ spacing: {
35
+ control: {
36
+ type: "number";
37
+ min: number;
38
+ max: number;
39
+ step: number;
40
+ };
41
+ table: {
42
+ defaultValue: {
43
+ summary: string;
44
+ };
45
+ };
46
+ description: string;
47
+ };
48
+ dense: {
49
+ control: "boolean";
50
+ table: {
51
+ defaultValue: {
52
+ summary: string;
53
+ };
54
+ };
55
+ description: string;
56
+ };
57
+ direction: {
58
+ control: "select";
59
+ options: string[];
60
+ table: {
61
+ defaultValue: {
62
+ summary: string;
63
+ };
64
+ };
65
+ description: string;
66
+ };
67
+ disableGutters: {
68
+ control: "boolean";
69
+ table: {
70
+ defaultValue: {
71
+ summary: string;
72
+ };
73
+ };
74
+ description: string;
75
+ };
76
+ disablePadding: {
77
+ control: "boolean";
78
+ table: {
79
+ defaultValue: {
80
+ summary: string;
81
+ };
82
+ };
83
+ description: string;
84
+ };
85
+ fixedHeight: {
86
+ control: "boolean";
87
+ table: {
88
+ defaultValue: {
89
+ summary: string;
90
+ };
91
+ };
92
+ description: string;
93
+ };
94
+ divider: {
95
+ control: "boolean";
96
+ table: {
97
+ defaultValue: {
98
+ summary: string;
99
+ };
100
+ };
101
+ description: string;
102
+ };
103
+ virtualized: {
104
+ control: "boolean";
105
+ table: {
106
+ defaultValue: {
107
+ summary: string;
108
+ };
109
+ };
110
+ description: string;
111
+ };
112
+ virtualizedItemHeight: {
113
+ control: {
114
+ type: "number";
115
+ min: number;
116
+ max: number;
117
+ step: number;
118
+ };
119
+ table: {
120
+ defaultValue: {
121
+ summary: string;
122
+ };
123
+ };
124
+ description: string;
125
+ if: {
126
+ arg: string;
127
+ truthy: true;
128
+ };
129
+ };
130
+ virtualizedListHeight: {
131
+ control: {
132
+ type: "number";
133
+ min: number;
134
+ max: number;
135
+ step: number;
136
+ };
137
+ table: {
138
+ defaultValue: {
139
+ summary: string;
140
+ };
141
+ };
142
+ description: string;
143
+ if: {
144
+ arg: string;
145
+ truthy: true;
146
+ };
147
+ };
148
+ overscanCount: {
149
+ control: {
150
+ type: "number";
151
+ min: number;
152
+ max: number;
153
+ step: number;
154
+ };
155
+ table: {
156
+ defaultValue: {
157
+ summary: string;
158
+ };
159
+ };
160
+ description: string;
161
+ if: {
162
+ arg: string;
163
+ truthy: true;
164
+ };
165
+ };
166
+ };
167
+ args: {
168
+ variant: string;
169
+ spacing: undefined;
170
+ direction: string;
171
+ dense: boolean;
172
+ disableGutters: boolean;
173
+ disablePadding: boolean;
174
+ fixedHeight: boolean;
175
+ divider: boolean;
176
+ virtualized: boolean;
177
+ };
178
+ parameters: {
179
+ design: {
180
+ type: string;
181
+ url: string;
182
+ };
183
+ status: {
184
+ type: string;
185
+ };
186
+ };
187
+ };
188
+ export default options;
189
+ export declare const Playground: {
190
+ render: ({ variant, spacing, ...rest }: StoryProps) => import("react/jsx-runtime").JSX.Element;
191
+ parameters: {
192
+ chromatic: {
193
+ disableSnapshot: boolean;
194
+ };
195
+ };
196
+ };
197
+ export declare const Size: {
198
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
199
+ argTypes: {
200
+ variant: {
201
+ table: {
202
+ disable: boolean;
203
+ };
204
+ };
205
+ };
206
+ parameters: {
207
+ docs: {
208
+ description: {
209
+ story: string;
210
+ };
211
+ };
212
+ };
213
+ };
214
+ export declare const Variants: {
215
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
216
+ argTypes: {
217
+ variant: {
218
+ table: {
219
+ disable: boolean;
220
+ };
221
+ };
222
+ };
223
+ parameters: {
224
+ docs: {
225
+ description: {
226
+ story: string;
227
+ };
228
+ };
229
+ };
230
+ };
231
+ export declare const PrimaryAction: {
232
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
233
+ argTypes: {
234
+ variant: {
235
+ table: {
236
+ disable: boolean;
237
+ };
238
+ };
239
+ };
240
+ parameters: {
241
+ docs: {
242
+ description: {
243
+ story: string;
244
+ };
245
+ };
246
+ };
247
+ };
248
+ export declare const SecondaryAction: {
249
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
250
+ argTypes: {
251
+ variant: {
252
+ table: {
253
+ disable: boolean;
254
+ };
255
+ };
256
+ };
257
+ parameters: {
258
+ docs: {
259
+ description: {
260
+ story: string;
261
+ };
262
+ };
263
+ };
264
+ };
265
+ export declare const DoubleAction: {
266
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
267
+ argTypes: {
268
+ variant: {
269
+ table: {
270
+ disable: boolean;
271
+ };
272
+ };
273
+ };
274
+ parameters: {
275
+ docs: {
276
+ description: {
277
+ story: string;
278
+ };
279
+ };
280
+ };
281
+ };
282
+ export declare const Spacing: {
283
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
284
+ argTypes: {
285
+ variant: {
286
+ table: {
287
+ disable: boolean;
288
+ };
289
+ };
290
+ };
291
+ parameters: {
292
+ controls: {
293
+ disable: boolean;
294
+ };
295
+ docs: {
296
+ description: {
297
+ story: string;
298
+ };
299
+ };
300
+ };
301
+ };
302
+ export declare const Subheaders: {
303
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
304
+ argTypes: {
305
+ variant: {
306
+ table: {
307
+ disable: boolean;
308
+ };
309
+ };
310
+ };
311
+ parameters: {
312
+ docs: {
313
+ description: {
314
+ story: string;
315
+ };
316
+ };
317
+ };
318
+ };
319
+ export declare const FixedHeight: {
320
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
321
+ argTypes: {
322
+ variant: {
323
+ table: {
324
+ disable: boolean;
325
+ };
326
+ };
327
+ };
328
+ parameters: {
329
+ docs: {
330
+ description: {
331
+ story: string;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ export declare const Divider: {
337
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
338
+ parameters: {
339
+ docs: {
340
+ description: {
341
+ story: string;
342
+ };
343
+ };
344
+ };
345
+ };
346
+ export declare const Gutters: {
347
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
348
+ argTypes: {
349
+ variant: {
350
+ table: {
351
+ disable: boolean;
352
+ };
353
+ };
354
+ };
355
+ parameters: {
356
+ docs: {
357
+ description: {
358
+ story: string;
359
+ };
360
+ };
361
+ };
362
+ };
363
+ export declare const Direction: {
364
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
365
+ argTypes: {
366
+ variant: {
367
+ table: {
368
+ disable: boolean;
369
+ };
370
+ };
371
+ };
372
+ parameters: {
373
+ docs: {
374
+ description: {
375
+ story: string;
376
+ };
377
+ };
378
+ };
379
+ };
380
+ export declare const Virtualized: {
381
+ render: (props: StoryProps) => import("react/jsx-runtime").JSX.Element;
382
+ argTypes: {
383
+ variant: {
384
+ table: {
385
+ disable: boolean;
386
+ };
387
+ };
388
+ };
389
+ parameters: {
390
+ docs: {
391
+ description: {
392
+ story: string;
393
+ };
394
+ codePanel: boolean;
395
+ };
396
+ };
397
+ };
398
+ //# sourceMappingURL=List.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,O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pCY,UAAU;;;;;;;;;;;;;;;CA2pC9C,CAAA;AAED,eAAO,MAAM,OAAO;oBAzZY,UAAU;;;;;;;;;;;;;;;;;;CAqazC,CAAA;AAED,eAAO,MAAM,UAAU;oBA3sBY,UAAU;;;;;;;;;;;;;;;CAstB5C,CAAA;AAED,eAAO,MAAM,WAAW;oBAvjBY,UAAU;;;;;;;;;;;;;;;CAkkB7C,CAAA;AAED,eAAO,MAAM,OAAO;oBAzXY,UAAU;;;;;;;;CAmYzC,CAAA;AAED,eAAO,MAAM,OAAO;oBAzVY,UAAU;;;;;;;;;;;;;;;CAoWzC,CAAA;AAED,eAAO,MAAM,SAAS;oBA/TY,UAAU;;;;;;;;;;;;;;;CA0U3C,CAAA;AAED,eAAO,MAAM,WAAW;oBAnNY,UAAU;;;;;;;;;;;;;;;;CA+N7C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=List.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.test.d.ts","sourceRoot":"","sources":["../../../../src/components/List/List.test.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { ListItemProps as MUIListItemProps, ListItemButtonProps as MUIListItemButtonProps } from '@mui/material';
2
+ /**
3
+ * Props for the ListItem component.
4
+ * Includes all MUI ListItem and ListItemButton props plus custom props defined in theme types
5
+ */
6
+ export type ListItemProps = MUIListItemProps & Omit<MUIListItemButtonProps, keyof MUIListItemProps>;
7
+ declare const ListItem: import('react').ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & import('react').RefAttributes<HTMLDivElement | HTMLLIElement>>;
8
+ export default ListItem;
9
+ //# sourceMappingURL=ListItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/List/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,IAAI,gBAAgB,EAEjC,mBAAmB,IAAI,sBAAsB,EAC9C,MAAM,eAAe,CAAA;AAGtB;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAC1C,IAAI,CAAC,sBAAsB,EAAE,MAAM,gBAAgB,CAAC,CAAA;AAsEtD,QAAA,MAAM,QAAQ,uIAAwB,CAAA;AAEtC,eAAe,QAAQ,CAAA"}