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

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 +342 -51
  13. package/dist/theme/index.js +344 -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 +452 -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 +346 -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,452 @@
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
+ listItemPrimaryText?: string;
20
+ listItemSecondaryText?: string;
21
+ }
22
+ /**
23
+ * Extended props for Playground story with additional controls
24
+ */
25
+ interface PlaygroundStoryProps extends StoryProps {
26
+ mediaContent?: 'none' | 'avatar' | 'icon';
27
+ rightContent?: 'none' | 'text' | 'chip' | 'tag';
28
+ }
29
+ declare const options: {
30
+ title: string;
31
+ component: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
32
+ argTypes: {
33
+ variant: {
34
+ table: {
35
+ defaultValue: {
36
+ summary: string;
37
+ };
38
+ };
39
+ control: "select";
40
+ options: string[];
41
+ description: string;
42
+ };
43
+ spacing: {
44
+ control: {
45
+ type: "number";
46
+ min: number;
47
+ max: number;
48
+ step: number;
49
+ };
50
+ table: {
51
+ defaultValue: {
52
+ summary: string;
53
+ };
54
+ };
55
+ description: string;
56
+ };
57
+ dense: {
58
+ control: "boolean";
59
+ table: {
60
+ defaultValue: {
61
+ summary: string;
62
+ };
63
+ };
64
+ description: string;
65
+ };
66
+ direction: {
67
+ control: "select";
68
+ options: string[];
69
+ table: {
70
+ defaultValue: {
71
+ summary: string;
72
+ };
73
+ };
74
+ description: string;
75
+ };
76
+ disableGutters: {
77
+ control: "boolean";
78
+ table: {
79
+ defaultValue: {
80
+ summary: string;
81
+ };
82
+ };
83
+ description: string;
84
+ };
85
+ disablePadding: {
86
+ control: "boolean";
87
+ table: {
88
+ defaultValue: {
89
+ summary: string;
90
+ };
91
+ };
92
+ description: string;
93
+ };
94
+ fixedHeight: {
95
+ control: "boolean";
96
+ table: {
97
+ defaultValue: {
98
+ summary: string;
99
+ };
100
+ };
101
+ description: string;
102
+ };
103
+ divider: {
104
+ control: "boolean";
105
+ table: {
106
+ defaultValue: {
107
+ summary: string;
108
+ };
109
+ };
110
+ description: string;
111
+ };
112
+ virtualized: {
113
+ control: "boolean";
114
+ table: {
115
+ defaultValue: {
116
+ summary: string;
117
+ };
118
+ };
119
+ description: string;
120
+ };
121
+ virtualizedItemHeight: {
122
+ control: {
123
+ type: "number";
124
+ min: number;
125
+ max: number;
126
+ step: number;
127
+ };
128
+ table: {
129
+ defaultValue: {
130
+ summary: string;
131
+ };
132
+ };
133
+ description: string;
134
+ if: {
135
+ arg: string;
136
+ truthy: true;
137
+ };
138
+ };
139
+ virtualizedListHeight: {
140
+ control: {
141
+ type: "number";
142
+ min: number;
143
+ max: number;
144
+ step: number;
145
+ };
146
+ table: {
147
+ defaultValue: {
148
+ summary: string;
149
+ };
150
+ };
151
+ description: string;
152
+ if: {
153
+ arg: string;
154
+ truthy: true;
155
+ };
156
+ };
157
+ overscanCount: {
158
+ control: {
159
+ type: "number";
160
+ min: number;
161
+ max: number;
162
+ step: number;
163
+ };
164
+ table: {
165
+ defaultValue: {
166
+ summary: string;
167
+ };
168
+ };
169
+ description: string;
170
+ if: {
171
+ arg: string;
172
+ truthy: true;
173
+ };
174
+ };
175
+ listItemPrimaryText: {
176
+ control: "text";
177
+ table: {
178
+ category: string;
179
+ defaultValue: {
180
+ summary: string;
181
+ };
182
+ };
183
+ description: string;
184
+ };
185
+ listItemSecondaryText: {
186
+ control: "text";
187
+ table: {
188
+ category: string;
189
+ defaultValue: {
190
+ summary: string;
191
+ };
192
+ };
193
+ description: string;
194
+ };
195
+ };
196
+ args: {
197
+ variant: string;
198
+ spacing: undefined;
199
+ direction: string;
200
+ dense: boolean;
201
+ disableGutters: boolean;
202
+ disablePadding: boolean;
203
+ fixedHeight: boolean;
204
+ divider: boolean;
205
+ virtualized: boolean;
206
+ };
207
+ parameters: {
208
+ design: {
209
+ type: string;
210
+ url: string;
211
+ };
212
+ status: {
213
+ type: string;
214
+ };
215
+ };
216
+ };
217
+ export default options;
218
+ export declare const Playground: {
219
+ render: ({ variant, spacing, listItemPrimaryText, listItemSecondaryText, mediaContent, rightContent, ...rest }: PlaygroundStoryProps) => import("react/jsx-runtime").JSX.Element;
220
+ args: {
221
+ mediaContent: string;
222
+ rightContent: string;
223
+ };
224
+ argTypes: {
225
+ mediaContent: {
226
+ control: string;
227
+ options: string[];
228
+ description: string;
229
+ table: {
230
+ category: string;
231
+ defaultValue: {
232
+ summary: string;
233
+ };
234
+ };
235
+ };
236
+ rightContent: {
237
+ control: string;
238
+ options: string[];
239
+ description: string;
240
+ table: {
241
+ category: string;
242
+ defaultValue: {
243
+ summary: string;
244
+ };
245
+ };
246
+ };
247
+ };
248
+ parameters: {
249
+ chromatic: {
250
+ disableSnapshot: boolean;
251
+ };
252
+ };
253
+ };
254
+ export declare const Size: {
255
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
256
+ argTypes: {
257
+ variant: {
258
+ table: {
259
+ disable: boolean;
260
+ };
261
+ };
262
+ };
263
+ parameters: {
264
+ docs: {
265
+ description: {
266
+ story: string;
267
+ };
268
+ };
269
+ };
270
+ };
271
+ export declare const Variants: {
272
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
273
+ argTypes: {
274
+ variant: {
275
+ table: {
276
+ disable: boolean;
277
+ };
278
+ };
279
+ };
280
+ parameters: {
281
+ docs: {
282
+ description: {
283
+ story: string;
284
+ };
285
+ };
286
+ };
287
+ };
288
+ export declare const PrimaryAction: {
289
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
290
+ argTypes: {
291
+ variant: {
292
+ table: {
293
+ disable: boolean;
294
+ };
295
+ };
296
+ };
297
+ parameters: {
298
+ docs: {
299
+ description: {
300
+ story: string;
301
+ };
302
+ };
303
+ };
304
+ };
305
+ export declare const SecondaryAction: {
306
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
307
+ argTypes: {
308
+ variant: {
309
+ table: {
310
+ disable: boolean;
311
+ };
312
+ };
313
+ };
314
+ parameters: {
315
+ docs: {
316
+ description: {
317
+ story: string;
318
+ };
319
+ };
320
+ };
321
+ };
322
+ export declare const DoubleAction: {
323
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
324
+ argTypes: {
325
+ variant: {
326
+ table: {
327
+ disable: boolean;
328
+ };
329
+ };
330
+ };
331
+ parameters: {
332
+ docs: {
333
+ description: {
334
+ story: string;
335
+ };
336
+ };
337
+ };
338
+ };
339
+ export declare const Spacing: {
340
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
341
+ argTypes: {
342
+ variant: {
343
+ table: {
344
+ disable: boolean;
345
+ };
346
+ };
347
+ };
348
+ parameters: {
349
+ docs: {
350
+ description: {
351
+ story: string;
352
+ };
353
+ };
354
+ };
355
+ };
356
+ export declare const Subheaders: {
357
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
358
+ argTypes: {
359
+ variant: {
360
+ table: {
361
+ disable: boolean;
362
+ };
363
+ };
364
+ };
365
+ parameters: {
366
+ docs: {
367
+ description: {
368
+ story: string;
369
+ };
370
+ };
371
+ };
372
+ };
373
+ export declare const FixedHeight: {
374
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
375
+ argTypes: {
376
+ variant: {
377
+ table: {
378
+ disable: boolean;
379
+ };
380
+ };
381
+ };
382
+ parameters: {
383
+ docs: {
384
+ description: {
385
+ story: string;
386
+ };
387
+ };
388
+ };
389
+ };
390
+ export declare const Divider: {
391
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
392
+ parameters: {
393
+ docs: {
394
+ description: {
395
+ story: string;
396
+ };
397
+ };
398
+ };
399
+ };
400
+ export declare const Gutters: {
401
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
402
+ argTypes: {
403
+ variant: {
404
+ table: {
405
+ disable: boolean;
406
+ };
407
+ };
408
+ };
409
+ parameters: {
410
+ docs: {
411
+ description: {
412
+ story: string;
413
+ };
414
+ };
415
+ };
416
+ };
417
+ export declare const Direction: {
418
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
419
+ argTypes: {
420
+ variant: {
421
+ table: {
422
+ disable: boolean;
423
+ };
424
+ };
425
+ };
426
+ parameters: {
427
+ docs: {
428
+ description: {
429
+ story: string;
430
+ };
431
+ };
432
+ };
433
+ };
434
+ export declare const Virtualized: {
435
+ render: ({ listItemPrimaryText, listItemSecondaryText, ...props }: StoryProps) => import("react/jsx-runtime").JSX.Element;
436
+ argTypes: {
437
+ variant: {
438
+ table: {
439
+ disable: boolean;
440
+ };
441
+ };
442
+ };
443
+ parameters: {
444
+ docs: {
445
+ description: {
446
+ story: string;
447
+ };
448
+ codePanel: boolean;
449
+ };
450
+ };
451
+ };
452
+ //# 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,OAAO,CAAA;AAgBvC,OAAO,EAQL,SAAS,EAIV,MAAM,cAAc,CAAA;AAErB;;GAEG;AACH,UAAU,UAAU;IAClB,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAA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CA0wDZ,CAAA;AAED,eAAO,MAAM,aAAa;uEAttDvB,UAAU;;;;;;;;;;;;;;;CAiuDZ,CAAA;AAED,eAAO,MAAM,eAAe;uEA79CzB,UAAU;;;;;;;;;;;;;;;CAw+CZ,CAAA;AAED,eAAO,MAAM,YAAY;uEAz0CtB,UAAU;;;;;;;;;;;;;;;CAo1CZ,CAAA;AAED,eAAO,MAAM,OAAO;uEAviBjB,UAAU;;;;;;;;;;;;;;;CAkjBZ,CAAA;AAED,eAAO,MAAM,UAAU;uEA13BpB,UAAU;;;;;;;;;;;;;;;CAq4BZ,CAAA;AAED,eAAO,MAAM,WAAW;uEA5tBrB,UAAU;;;;;;;;;;;;;;;CAuuBZ,CAAA;AAED,eAAO,MAAM,OAAO;uEAnfjB,UAAU;;;;;;;;CA6fZ,CAAA;AAED,eAAO,MAAM,OAAO;uEAjcjB,UAAU;;;;;;;;;;;;;;;CA4cZ,CAAA;AAED,eAAO,MAAM,SAAS;uEAvZnB,UAAU;;;;;;;;;;;;;;;CAkaZ,CAAA;AAED,eAAO,MAAM,WAAW;uEA7PrB,UAAU;;;;;;;;;;;;;;;;CAyQZ,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"}