@marigold/system 11.4.1 → 11.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -124,6 +124,7 @@ type Theme = {
124
124
  Body?: ComponentStyleFunction<string, string>;
125
125
  Button?: ComponentStyleFunction<string, string>;
126
126
  Card?: ComponentStyleFunction<string, string>;
127
+ CloseButton?: ComponentStyleFunction<string, string>;
127
128
  DateField?: Record<'segment' | 'field' | 'action', ComponentStyleFunction<string, string>>;
128
129
  Dialog?: Record<'closeButton' | 'container' | 'header' | 'content' | 'actions' | 'title', ComponentStyleFunction<string, string>>;
129
130
  Divider?: ComponentStyleFunction<string, string>;
@@ -233,6 +234,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
233
234
  Body?: ComponentStyleFunction<string, string>;
234
235
  Button?: ComponentStyleFunction<string, string>;
235
236
  Card?: ComponentStyleFunction<string, string>;
237
+ CloseButton?: ComponentStyleFunction<string, string>;
236
238
  DateField?: Record<"segment" | "field" | "action", ComponentStyleFunction<string, string>>;
237
239
  Dialog?: Record<"closeButton" | "container" | "header" | "content" | "actions" | "title", ComponentStyleFunction<string, string>>;
238
240
  Divider?: ComponentStyleFunction<string, string>;
@@ -366,6 +368,77 @@ declare const width: {
366
368
  '10/12': string;
367
369
  '11/12': string;
368
370
  };
371
+ declare const maxWidth: {
372
+ auto: string;
373
+ full: string;
374
+ fit: string;
375
+ min: string;
376
+ max: string;
377
+ screen: string;
378
+ svh: string;
379
+ lvh: string;
380
+ dvh: string;
381
+ px: string;
382
+ 0: string;
383
+ '0.5': string;
384
+ 1: string;
385
+ '1.5': string;
386
+ 2: string;
387
+ '2.5': string;
388
+ 3: string;
389
+ '3.5': string;
390
+ 4: string;
391
+ 5: string;
392
+ 6: string;
393
+ 7: string;
394
+ 8: string;
395
+ 9: string;
396
+ 10: string;
397
+ 11: string;
398
+ 12: string;
399
+ 14: string;
400
+ 16: string;
401
+ 20: string;
402
+ 24: string;
403
+ 28: string;
404
+ 32: string;
405
+ 36: string;
406
+ 40: string;
407
+ 44: string;
408
+ 48: string;
409
+ 52: string;
410
+ 56: string;
411
+ 60: string;
412
+ 64: string;
413
+ 72: string;
414
+ 80: string;
415
+ 96: string;
416
+ '1/2': string;
417
+ '1/3': string;
418
+ '2/3': string;
419
+ '1/4': string;
420
+ '2/4': string;
421
+ '3/4': string;
422
+ '1/5': string;
423
+ '2/5': string;
424
+ '3/5': string;
425
+ '1/6': string;
426
+ '2/6': string;
427
+ '3/6': string;
428
+ '4/6': string;
429
+ '5/6': string;
430
+ '1/12': string;
431
+ '2/12': string;
432
+ '3/12': string;
433
+ '4/12': string;
434
+ '5/12': string;
435
+ '6/12': string;
436
+ '7/12': string;
437
+ '8/12': string;
438
+ '9/12': string;
439
+ '10/12': string;
440
+ '11/12': string;
441
+ };
369
442
  declare const height: {
370
443
  auto: string;
371
444
  full: string;
@@ -960,10 +1033,16 @@ type TextAlignProp = {
960
1033
  };
961
1034
  type WidthProp = {
962
1035
  /**
963
- * Sets the width of the field. You can see allowed tokens [here](https://tailwindcss.com/docs/width).
1036
+ * Sets the width of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/width).
964
1037
  */
965
1038
  width?: keyof typeof width;
966
1039
  };
1040
+ type MaxWidthProp = {
1041
+ /**
1042
+ * Sets the max-width of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/max-width).
1043
+ */
1044
+ maxWidth?: keyof typeof maxWidth;
1045
+ };
967
1046
  type HeightProp = {
968
1047
  /**
969
1048
  * Set the height of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/height).
@@ -971,4 +1050,4 @@ type HeightProp = {
971
1050
  height?: keyof typeof height;
972
1051
  };
973
1052
 
974
- export { type AlignmentProp, type AspectProp, type ComponentClassNames, type ComponentNames, type ComponentState, type ComponentStyleFunction, type Config, type ConfigSchema, type ConfigVariants, type ConfigVariantsMulti, type CursorProp, DateFormat, type FontSizeProp, type FontStyleProp, type FontWeightProp, type GapSpaceProp, type HeightProp, type NestedStringObject, NumericFormat, type ObjectFitProp, type ObjectPositionProp, type PaddingBottomProp, type PaddingLeftProp, type PaddingRightProp, type PaddingSpaceProp, type PaddingSpacePropX, type PaddingSpacePropY, type PaddingTopProp, type PlaceItemsProp, type Props, SVG, type SVGProps, type StateAttrKeyProps, type StateAttrProps, type StylesProps, type TextAlignProp, type Theme, type ThemeComponent, type ThemeComponentParts, ThemeProvider, type ThemeProviderProps, type UseClassNamesProps, type UseStateProps, type WidthProp, alignment, aspect, cn, createVar, cursorStyle, cva, defaultTheme, ensureCssVar, extendTheme, fontWeight, gapSpace, get, height, isValidCssCustomPropertyName, objectFit, objectPosition, paddingBottom, paddingLeft, paddingRight, paddingSpace, paddingSpaceX, paddingSpaceY, paddingTop, placeItems, textAlign, textSize, textStyle, useClassNames, useResponsiveValue, useSmallScreen, useStateProps, useTheme, width };
1053
+ export { type AlignmentProp, type AspectProp, type ComponentClassNames, type ComponentNames, type ComponentState, type ComponentStyleFunction, type Config, type ConfigSchema, type ConfigVariants, type ConfigVariantsMulti, type CursorProp, DateFormat, type FontSizeProp, type FontStyleProp, type FontWeightProp, type GapSpaceProp, type HeightProp, type MaxWidthProp, type NestedStringObject, NumericFormat, type ObjectFitProp, type ObjectPositionProp, type PaddingBottomProp, type PaddingLeftProp, type PaddingRightProp, type PaddingSpaceProp, type PaddingSpacePropX, type PaddingSpacePropY, type PaddingTopProp, type PlaceItemsProp, type Props, SVG, type SVGProps, type StateAttrKeyProps, type StateAttrProps, type StylesProps, type TextAlignProp, type Theme, type ThemeComponent, type ThemeComponentParts, ThemeProvider, type ThemeProviderProps, type UseClassNamesProps, type UseStateProps, type WidthProp, alignment, aspect, cn, createVar, cursorStyle, cva, defaultTheme, ensureCssVar, extendTheme, fontWeight, gapSpace, get, height, isValidCssCustomPropertyName, maxWidth, objectFit, objectPosition, paddingBottom, paddingLeft, paddingRight, paddingSpace, paddingSpaceX, paddingSpaceY, paddingTop, placeItems, textAlign, textSize, textStyle, useClassNames, useResponsiveValue, useSmallScreen, useStateProps, useTheme, width };
package/dist/index.d.ts CHANGED
@@ -124,6 +124,7 @@ type Theme = {
124
124
  Body?: ComponentStyleFunction<string, string>;
125
125
  Button?: ComponentStyleFunction<string, string>;
126
126
  Card?: ComponentStyleFunction<string, string>;
127
+ CloseButton?: ComponentStyleFunction<string, string>;
127
128
  DateField?: Record<'segment' | 'field' | 'action', ComponentStyleFunction<string, string>>;
128
129
  Dialog?: Record<'closeButton' | 'container' | 'header' | 'content' | 'actions' | 'title', ComponentStyleFunction<string, string>>;
129
130
  Divider?: ComponentStyleFunction<string, string>;
@@ -233,6 +234,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
233
234
  Body?: ComponentStyleFunction<string, string>;
234
235
  Button?: ComponentStyleFunction<string, string>;
235
236
  Card?: ComponentStyleFunction<string, string>;
237
+ CloseButton?: ComponentStyleFunction<string, string>;
236
238
  DateField?: Record<"segment" | "field" | "action", ComponentStyleFunction<string, string>>;
237
239
  Dialog?: Record<"closeButton" | "container" | "header" | "content" | "actions" | "title", ComponentStyleFunction<string, string>>;
238
240
  Divider?: ComponentStyleFunction<string, string>;
@@ -366,6 +368,77 @@ declare const width: {
366
368
  '10/12': string;
367
369
  '11/12': string;
368
370
  };
371
+ declare const maxWidth: {
372
+ auto: string;
373
+ full: string;
374
+ fit: string;
375
+ min: string;
376
+ max: string;
377
+ screen: string;
378
+ svh: string;
379
+ lvh: string;
380
+ dvh: string;
381
+ px: string;
382
+ 0: string;
383
+ '0.5': string;
384
+ 1: string;
385
+ '1.5': string;
386
+ 2: string;
387
+ '2.5': string;
388
+ 3: string;
389
+ '3.5': string;
390
+ 4: string;
391
+ 5: string;
392
+ 6: string;
393
+ 7: string;
394
+ 8: string;
395
+ 9: string;
396
+ 10: string;
397
+ 11: string;
398
+ 12: string;
399
+ 14: string;
400
+ 16: string;
401
+ 20: string;
402
+ 24: string;
403
+ 28: string;
404
+ 32: string;
405
+ 36: string;
406
+ 40: string;
407
+ 44: string;
408
+ 48: string;
409
+ 52: string;
410
+ 56: string;
411
+ 60: string;
412
+ 64: string;
413
+ 72: string;
414
+ 80: string;
415
+ 96: string;
416
+ '1/2': string;
417
+ '1/3': string;
418
+ '2/3': string;
419
+ '1/4': string;
420
+ '2/4': string;
421
+ '3/4': string;
422
+ '1/5': string;
423
+ '2/5': string;
424
+ '3/5': string;
425
+ '1/6': string;
426
+ '2/6': string;
427
+ '3/6': string;
428
+ '4/6': string;
429
+ '5/6': string;
430
+ '1/12': string;
431
+ '2/12': string;
432
+ '3/12': string;
433
+ '4/12': string;
434
+ '5/12': string;
435
+ '6/12': string;
436
+ '7/12': string;
437
+ '8/12': string;
438
+ '9/12': string;
439
+ '10/12': string;
440
+ '11/12': string;
441
+ };
369
442
  declare const height: {
370
443
  auto: string;
371
444
  full: string;
@@ -960,10 +1033,16 @@ type TextAlignProp = {
960
1033
  };
961
1034
  type WidthProp = {
962
1035
  /**
963
- * Sets the width of the field. You can see allowed tokens [here](https://tailwindcss.com/docs/width).
1036
+ * Sets the width of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/width).
964
1037
  */
965
1038
  width?: keyof typeof width;
966
1039
  };
1040
+ type MaxWidthProp = {
1041
+ /**
1042
+ * Sets the max-width of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/max-width).
1043
+ */
1044
+ maxWidth?: keyof typeof maxWidth;
1045
+ };
967
1046
  type HeightProp = {
968
1047
  /**
969
1048
  * Set the height of the element. You can see allowed tokens [here](https://tailwindcss.com/docs/height).
@@ -971,4 +1050,4 @@ type HeightProp = {
971
1050
  height?: keyof typeof height;
972
1051
  };
973
1052
 
974
- export { type AlignmentProp, type AspectProp, type ComponentClassNames, type ComponentNames, type ComponentState, type ComponentStyleFunction, type Config, type ConfigSchema, type ConfigVariants, type ConfigVariantsMulti, type CursorProp, DateFormat, type FontSizeProp, type FontStyleProp, type FontWeightProp, type GapSpaceProp, type HeightProp, type NestedStringObject, NumericFormat, type ObjectFitProp, type ObjectPositionProp, type PaddingBottomProp, type PaddingLeftProp, type PaddingRightProp, type PaddingSpaceProp, type PaddingSpacePropX, type PaddingSpacePropY, type PaddingTopProp, type PlaceItemsProp, type Props, SVG, type SVGProps, type StateAttrKeyProps, type StateAttrProps, type StylesProps, type TextAlignProp, type Theme, type ThemeComponent, type ThemeComponentParts, ThemeProvider, type ThemeProviderProps, type UseClassNamesProps, type UseStateProps, type WidthProp, alignment, aspect, cn, createVar, cursorStyle, cva, defaultTheme, ensureCssVar, extendTheme, fontWeight, gapSpace, get, height, isValidCssCustomPropertyName, objectFit, objectPosition, paddingBottom, paddingLeft, paddingRight, paddingSpace, paddingSpaceX, paddingSpaceY, paddingTop, placeItems, textAlign, textSize, textStyle, useClassNames, useResponsiveValue, useSmallScreen, useStateProps, useTheme, width };
1053
+ export { type AlignmentProp, type AspectProp, type ComponentClassNames, type ComponentNames, type ComponentState, type ComponentStyleFunction, type Config, type ConfigSchema, type ConfigVariants, type ConfigVariantsMulti, type CursorProp, DateFormat, type FontSizeProp, type FontStyleProp, type FontWeightProp, type GapSpaceProp, type HeightProp, type MaxWidthProp, type NestedStringObject, NumericFormat, type ObjectFitProp, type ObjectPositionProp, type PaddingBottomProp, type PaddingLeftProp, type PaddingRightProp, type PaddingSpaceProp, type PaddingSpacePropX, type PaddingSpacePropY, type PaddingTopProp, type PlaceItemsProp, type Props, SVG, type SVGProps, type StateAttrKeyProps, type StateAttrProps, type StylesProps, type TextAlignProp, type Theme, type ThemeComponent, type ThemeComponentParts, ThemeProvider, type ThemeProviderProps, type UseClassNamesProps, type UseStateProps, type WidthProp, alignment, aspect, cn, createVar, cursorStyle, cva, defaultTheme, ensureCssVar, extendTheme, fontWeight, gapSpace, get, height, isValidCssCustomPropertyName, maxWidth, objectFit, objectPosition, paddingBottom, paddingLeft, paddingRight, paddingSpace, paddingSpaceX, paddingSpaceY, paddingTop, placeItems, textAlign, textSize, textStyle, useClassNames, useResponsiveValue, useSmallScreen, useStateProps, useTheme, width };
package/dist/index.js CHANGED
@@ -48,6 +48,7 @@ __export(index_exports, {
48
48
  get: () => get,
49
49
  height: () => height,
50
50
  isValidCssCustomPropertyName: () => isValidCssCustomPropertyName,
51
+ maxWidth: () => maxWidth,
51
52
  objectFit: () => objectFit,
52
53
  objectPosition: () => objectPosition,
53
54
  paddingBottom: () => paddingBottom,
@@ -413,6 +414,77 @@ var width = {
413
414
  "10/12": "w-10/12",
414
415
  "11/12": "w-11/12"
415
416
  };
417
+ var maxWidth = {
418
+ auto: "max-w-auto",
419
+ full: "max-w-full",
420
+ fit: "max-w-fit",
421
+ min: "max-w-min",
422
+ max: "max-w-max",
423
+ screen: "max-w-screen",
424
+ svh: "max-w-svh",
425
+ lvh: "max-w-lvh",
426
+ dvh: "max-w-dvh",
427
+ px: "max-w-px",
428
+ 0: "max-w-0",
429
+ "0.5": "max-w-0.5",
430
+ 1: "max-w-1",
431
+ "1.5": "max-w-1.5",
432
+ 2: "max-w-2",
433
+ "2.5": "max-w-2.5",
434
+ 3: "max-w-3",
435
+ "3.5": "max-w-3.5",
436
+ 4: "max-w-4",
437
+ 5: "max-w-5",
438
+ 6: "max-w-6",
439
+ 7: "max-w-7",
440
+ 8: "max-w-8",
441
+ 9: "max-w-9",
442
+ 10: "max-w-10",
443
+ 11: "max-w-11",
444
+ 12: "max-w-12",
445
+ 14: "max-w-14",
446
+ 16: "max-w-16",
447
+ 20: "max-w-20",
448
+ 24: "max-w-24",
449
+ 28: "max-w-28",
450
+ 32: "max-w-32",
451
+ 36: "max-w-36",
452
+ 40: "max-w-40",
453
+ 44: "max-w-44",
454
+ 48: "max-w-48",
455
+ 52: "max-w-52",
456
+ 56: "max-w-56",
457
+ 60: "max-w-60",
458
+ 64: "max-w-64",
459
+ 72: "max-w-72",
460
+ 80: "max-w-80",
461
+ 96: "max-w-96",
462
+ "1/2": "max-w-1/2",
463
+ "1/3": "max-w-1/3",
464
+ "2/3": "max-w-2/3",
465
+ "1/4": "max-w-1/4",
466
+ "2/4": "max-w-2/4",
467
+ "3/4": "max-w-3/4",
468
+ "1/5": "max-w-1/5",
469
+ "2/5": "max-w-2/5",
470
+ "3/5": "max-w-3/5",
471
+ "1/6": "max-w-1/6",
472
+ "2/6": "max-w-2/6",
473
+ "3/6": "max-w-3/6",
474
+ "4/6": "max-w-4/6",
475
+ "5/6": "max-w-5/6",
476
+ "1/12": "max-w-1/12",
477
+ "2/12": "max-w-2/12",
478
+ "3/12": "max-w-3/12",
479
+ "4/12": "max-w-4/12",
480
+ "5/12": "max-w-5/12",
481
+ "6/12": "max-w-6/12",
482
+ "7/12": "max-w-7/12",
483
+ "8/12": "max-w-8/12",
484
+ "9/12": "max-w-9/12",
485
+ "10/12": "max-w-10/12",
486
+ "11/12": "max-w-11/12"
487
+ };
416
488
  var height = {
417
489
  auto: "h-auto",
418
490
  full: "h-full",
@@ -914,6 +986,7 @@ var cursorStyle = {
914
986
  get,
915
987
  height,
916
988
  isValidCssCustomPropertyName,
989
+ maxWidth,
917
990
  objectFit,
918
991
  objectPosition,
919
992
  paddingBottom,
package/dist/index.mjs CHANGED
@@ -341,6 +341,77 @@ var width = {
341
341
  "10/12": "w-10/12",
342
342
  "11/12": "w-11/12"
343
343
  };
344
+ var maxWidth = {
345
+ auto: "max-w-auto",
346
+ full: "max-w-full",
347
+ fit: "max-w-fit",
348
+ min: "max-w-min",
349
+ max: "max-w-max",
350
+ screen: "max-w-screen",
351
+ svh: "max-w-svh",
352
+ lvh: "max-w-lvh",
353
+ dvh: "max-w-dvh",
354
+ px: "max-w-px",
355
+ 0: "max-w-0",
356
+ "0.5": "max-w-0.5",
357
+ 1: "max-w-1",
358
+ "1.5": "max-w-1.5",
359
+ 2: "max-w-2",
360
+ "2.5": "max-w-2.5",
361
+ 3: "max-w-3",
362
+ "3.5": "max-w-3.5",
363
+ 4: "max-w-4",
364
+ 5: "max-w-5",
365
+ 6: "max-w-6",
366
+ 7: "max-w-7",
367
+ 8: "max-w-8",
368
+ 9: "max-w-9",
369
+ 10: "max-w-10",
370
+ 11: "max-w-11",
371
+ 12: "max-w-12",
372
+ 14: "max-w-14",
373
+ 16: "max-w-16",
374
+ 20: "max-w-20",
375
+ 24: "max-w-24",
376
+ 28: "max-w-28",
377
+ 32: "max-w-32",
378
+ 36: "max-w-36",
379
+ 40: "max-w-40",
380
+ 44: "max-w-44",
381
+ 48: "max-w-48",
382
+ 52: "max-w-52",
383
+ 56: "max-w-56",
384
+ 60: "max-w-60",
385
+ 64: "max-w-64",
386
+ 72: "max-w-72",
387
+ 80: "max-w-80",
388
+ 96: "max-w-96",
389
+ "1/2": "max-w-1/2",
390
+ "1/3": "max-w-1/3",
391
+ "2/3": "max-w-2/3",
392
+ "1/4": "max-w-1/4",
393
+ "2/4": "max-w-2/4",
394
+ "3/4": "max-w-3/4",
395
+ "1/5": "max-w-1/5",
396
+ "2/5": "max-w-2/5",
397
+ "3/5": "max-w-3/5",
398
+ "1/6": "max-w-1/6",
399
+ "2/6": "max-w-2/6",
400
+ "3/6": "max-w-3/6",
401
+ "4/6": "max-w-4/6",
402
+ "5/6": "max-w-5/6",
403
+ "1/12": "max-w-1/12",
404
+ "2/12": "max-w-2/12",
405
+ "3/12": "max-w-3/12",
406
+ "4/12": "max-w-4/12",
407
+ "5/12": "max-w-5/12",
408
+ "6/12": "max-w-6/12",
409
+ "7/12": "max-w-7/12",
410
+ "8/12": "max-w-8/12",
411
+ "9/12": "max-w-9/12",
412
+ "10/12": "max-w-10/12",
413
+ "11/12": "max-w-11/12"
414
+ };
344
415
  var height = {
345
416
  auto: "h-auto",
346
417
  full: "h-full",
@@ -841,6 +912,7 @@ export {
841
912
  get,
842
913
  height,
843
914
  isValidCssCustomPropertyName,
915
+ maxWidth,
844
916
  objectFit,
845
917
  objectPosition,
846
918
  paddingBottom,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/system",
3
- "version": "11.4.1",
3
+ "version": "11.5.0",
4
4
  "description": "Marigold System Library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "directory": "packages/system"
35
35
  },
36
36
  "dependencies": {
37
- "@react-aria/i18n": "3.12.7",
37
+ "@react-aria/i18n": "3.12.8",
38
38
  "class-variance-authority": "0.7.1",
39
39
  "deepmerge": "4.3.1",
40
40
  "react-fast-compare": "3.2.2",