@metamask-previews/design-system-shared 0.32.0-preview.1b11c84 → 0.32.0-preview.5cf8e82
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.
|
@@ -60,12 +60,12 @@ exports.BoxBackgroundColor = {
|
|
|
60
60
|
* One level above bg-default. Surfaces over a scrim/overlay
|
|
61
61
|
* (e.g. Modal, BottomSheet).
|
|
62
62
|
*/
|
|
63
|
-
BackgroundElevated1: 'bg-
|
|
63
|
+
BackgroundElevated1: 'bg-elevated1',
|
|
64
64
|
/**
|
|
65
|
-
* Two levels above base; can sit on bg-default or bg-
|
|
65
|
+
* Two levels above base; can sit on bg-default or bg-elevated1.
|
|
66
66
|
* Floating UI (e.g. Toast, Menu, Popover, Tooltip).
|
|
67
67
|
*/
|
|
68
|
-
BackgroundElevated2: 'bg-
|
|
68
|
+
BackgroundElevated2: 'bg-elevated2',
|
|
69
69
|
/** Muted background color */
|
|
70
70
|
BackgroundMuted: 'bg-muted',
|
|
71
71
|
/** Primary default background color */
|
|
@@ -128,7 +128,7 @@ exports.BoxBorderColor = {
|
|
|
128
128
|
BorderMuted: 'border-muted',
|
|
129
129
|
/**
|
|
130
130
|
* Border for elevated surfaces. Transparent in light; subtle edge in
|
|
131
|
-
* dark. Prefer with bg-
|
|
131
|
+
* dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).
|
|
132
132
|
*/
|
|
133
133
|
BorderAlternative: 'border-alternative',
|
|
134
134
|
/** Primary default border color */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":";;;AAUA;;;GAGG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,UAAU;IACf,UAAU,EAAE,kBAAkB;IAC9B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,kBAAkB;CACzB,CAAC;AAIX;;;GAGG;AACU,QAAA,WA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cAAc,EAAE,wBAAwB;IACxC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,8BAA8B;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,uCAAuC;IACvC,kBAAkB,EAAE,4BAA4B;IAChD,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,+BAA+B;IAC/B,WAAW,EAAE,oBAAoB;CACzB,CAAC","sourcesContent":["/**\n * Box - all spacing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /**\n * One level above bg-default. Surfaces over a scrim/overlay\n * (e.g. Modal, BottomSheet).\n */\n BackgroundElevated1: 'bg-elevated-1',\n /**\n * Two levels above base; can sit on bg-default or bg-elevated-1.\n * Floating UI (e.g. Toast, Menu, Popover, Tooltip).\n */\n BackgroundElevated2: 'bg-elevated-2',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /**\n * Border for elevated surfaces. Transparent in light; subtle edge in\n * dark. Prefer with bg-elevated-1 / bg-elevated-2 (e.g. Modal).\n */\n BorderAlternative: 'border-alternative',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Box.types.cjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":";;;AAUA;;;GAGG;AACU,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,UAAU;IACf,UAAU,EAAE,kBAAkB;IAC9B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,kBAAkB;CACzB,CAAC;AAIX;;;GAGG;AACU,QAAA,WAAW,GAAG;IACzB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;CACxB,CAAC;AAGX;;;GAGG;AACU,QAAA,aAAa,GAAG;IAC3B,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,WAAW;IAChB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,gBAAgB;CAClB,CAAC;AAGX;;;GAGG;A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C,YAAY,EAAE,sBAAsB;IACpC,uCAAuC;IACvC,kBAAkB,EAAE,4BAA4B;IAChD,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,+BAA+B;IAC/B,WAAW,EAAE,oBAAoB;CACzB,CAAC","sourcesContent":["/**\n * Box - all spacing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /**\n * One level above bg-default. Surfaces over a scrim/overlay\n * (e.g. Modal, BottomSheet).\n */\n BackgroundElevated1: 'bg-elevated1',\n /**\n * Two levels above base; can sit on bg-default or bg-elevated1.\n * Floating UI (e.g. Toast, Menu, Popover, Tooltip).\n */\n BackgroundElevated2: 'bg-elevated2',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /**\n * Border for elevated surfaces. Transparent in light; subtle edge in\n * dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).\n */\n BorderAlternative: 'border-alternative',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
|
|
@@ -69,12 +69,12 @@ export declare const BoxBackgroundColor: {
|
|
|
69
69
|
* One level above bg-default. Surfaces over a scrim/overlay
|
|
70
70
|
* (e.g. Modal, BottomSheet).
|
|
71
71
|
*/
|
|
72
|
-
readonly BackgroundElevated1: "bg-
|
|
72
|
+
readonly BackgroundElevated1: "bg-elevated1";
|
|
73
73
|
/**
|
|
74
|
-
* Two levels above base; can sit on bg-default or bg-
|
|
74
|
+
* Two levels above base; can sit on bg-default or bg-elevated1.
|
|
75
75
|
* Floating UI (e.g. Toast, Menu, Popover, Tooltip).
|
|
76
76
|
*/
|
|
77
|
-
readonly BackgroundElevated2: "bg-
|
|
77
|
+
readonly BackgroundElevated2: "bg-elevated2";
|
|
78
78
|
/** Muted background color */
|
|
79
79
|
readonly BackgroundMuted: "bg-muted";
|
|
80
80
|
/** Primary default background color */
|
|
@@ -138,7 +138,7 @@ export declare const BoxBorderColor: {
|
|
|
138
138
|
readonly BorderMuted: "border-muted";
|
|
139
139
|
/**
|
|
140
140
|
* Border for elevated surfaces. Transparent in light; subtle edge in
|
|
141
|
-
* dark. Prefer with bg-
|
|
141
|
+
* dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).
|
|
142
142
|
*/
|
|
143
143
|
readonly BorderAlternative: "border-alternative";
|
|
144
144
|
/** Primary default border color */
|
|
@@ -69,12 +69,12 @@ export declare const BoxBackgroundColor: {
|
|
|
69
69
|
* One level above bg-default. Surfaces over a scrim/overlay
|
|
70
70
|
* (e.g. Modal, BottomSheet).
|
|
71
71
|
*/
|
|
72
|
-
readonly BackgroundElevated1: "bg-
|
|
72
|
+
readonly BackgroundElevated1: "bg-elevated1";
|
|
73
73
|
/**
|
|
74
|
-
* Two levels above base; can sit on bg-default or bg-
|
|
74
|
+
* Two levels above base; can sit on bg-default or bg-elevated1.
|
|
75
75
|
* Floating UI (e.g. Toast, Menu, Popover, Tooltip).
|
|
76
76
|
*/
|
|
77
|
-
readonly BackgroundElevated2: "bg-
|
|
77
|
+
readonly BackgroundElevated2: "bg-elevated2";
|
|
78
78
|
/** Muted background color */
|
|
79
79
|
readonly BackgroundMuted: "bg-muted";
|
|
80
80
|
/** Primary default background color */
|
|
@@ -138,7 +138,7 @@ export declare const BoxBorderColor: {
|
|
|
138
138
|
readonly BorderMuted: "border-muted";
|
|
139
139
|
/**
|
|
140
140
|
* Border for elevated surfaces. Transparent in light; subtle edge in
|
|
141
|
-
* dark. Prefer with bg-
|
|
141
|
+
* dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).
|
|
142
142
|
*/
|
|
143
143
|
readonly BorderAlternative: "border-alternative";
|
|
144
144
|
/** Primary default border color */
|
|
@@ -57,12 +57,12 @@ export const BoxBackgroundColor = {
|
|
|
57
57
|
* One level above bg-default. Surfaces over a scrim/overlay
|
|
58
58
|
* (e.g. Modal, BottomSheet).
|
|
59
59
|
*/
|
|
60
|
-
BackgroundElevated1: 'bg-
|
|
60
|
+
BackgroundElevated1: 'bg-elevated1',
|
|
61
61
|
/**
|
|
62
|
-
* Two levels above base; can sit on bg-default or bg-
|
|
62
|
+
* Two levels above base; can sit on bg-default or bg-elevated1.
|
|
63
63
|
* Floating UI (e.g. Toast, Menu, Popover, Tooltip).
|
|
64
64
|
*/
|
|
65
|
-
BackgroundElevated2: 'bg-
|
|
65
|
+
BackgroundElevated2: 'bg-elevated2',
|
|
66
66
|
/** Muted background color */
|
|
67
67
|
BackgroundMuted: 'bg-muted',
|
|
68
68
|
/** Primary default background color */
|
|
@@ -125,7 +125,7 @@ export const BoxBorderColor = {
|
|
|
125
125
|
BorderMuted: 'border-muted',
|
|
126
126
|
/**
|
|
127
127
|
* Border for elevated surfaces. Transparent in light; subtle edge in
|
|
128
|
-
* dark. Prefer with bg-
|
|
128
|
+
* dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).
|
|
129
129
|
*/
|
|
130
130
|
BorderAlternative: 'border-alternative',
|
|
131
131
|
/** Primary default border color */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,UAAU;IACf,UAAU,EAAE,kBAAkB;IAC9B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,kBAAkB;CACzB,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;CACxB,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,WAAW;IAChB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,gBAAgB;CAClB,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,iBAAiB;IAC1B,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,gBAAgB;CAChB,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC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ing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /**\n * One level above bg-default. Surfaces over a scrim/overlay\n * (e.g. Modal, BottomSheet).\n */\n BackgroundElevated1: 'bg-elevated-1',\n /**\n * Two levels above base; can sit on bg-default or bg-elevated-1.\n * Floating UI (e.g. Toast, Menu, Popover, Tooltip).\n */\n BackgroundElevated2: 'bg-elevated-2',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /**\n * Border for elevated surfaces. Transparent in light; subtle edge in\n * dark. Prefer with bg-elevated-1 / bg-elevated-2 (e.g. Modal).\n */\n BorderAlternative: 'border-alternative',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Box.types.mjs","sourceRoot":"","sources":["../../../src/types/Box/Box.types.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,EAAE,UAAU;IACf,UAAU,EAAE,kBAAkB;IAC9B,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,kBAAkB;CACzB,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;CACxB,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,cAAc;IACtB,GAAG,EAAE,WAAW;IAChB,OAAO,EAAE,eAAe;IACxB,QAAQ,EAAE,gBAAgB;CAClB,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,gBAAgB;IACxB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,iBAAiB;IAC1B,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,gBAAgB;CAChB,CAAC;AAIX;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,+BAA+B;IAC/B,iBAAiB,EAAE,YAAY;IAC/B,mCAAmC;IACnC,qBAAqB,EAAE,gBAAgB;IACvC,+BAA+B;IAC/B,iBAAiB,EAAE,YAAY;IAC/B,kCAAkC;IAClC,oBAAoB,EAAE,eAAe;IACrC;;;OAGG;IACH,mBAAmB,EAAE,cAAc;IACnC;;;OA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ACH,iBAAiB,EAAE,oBAAoB;IACvC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,uCAAuC;IACvC,kBAAkB,EAAE,4BAA4B;IAChD,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,qCAAqC;IACrC,gBAAgB,EAAE,0BAA0B;IAC5C,+BAA+B;IAC/B,UAAU,EAAE,oBAAoB;IAChC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,8BAA8B;IAC9B,SAAS,EAAE,mBAAmB;IAC9B,gCAAgC;IAChC,WAAW,EAAE,qBAAqB;IAClC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,iCAAiC;IACjC,YAAY,EAAE,sBAAsB;IACpC,uCAAuC;IACvC,kBAAkB,EAAE,4BAA4B;IAChD,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,mCAAmC;IACnC,cAAc,EAAE,wBAAwB;IACxC,+BAA+B;IAC/B,WAAW,EAAE,oBAAoB;CACzB,CAAC","sourcesContent":["/**\n * Box - all spacing-related props\n */\nexport type BoxSpacing = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Box - border width values (only valid Tailwind CSS border width utilities)\n */\nexport type BoxBorderWidth = 0 | 1 | 2 | 4 | 8;\n\n/**\n * Box - flexDirection\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexDirection = {\n Row: 'flex-row',\n RowReverse: 'flex-row-reverse',\n Column: 'flex-col',\n ColumnReverse: 'flex-col-reverse',\n} as const;\nexport type BoxFlexDirection =\n (typeof BoxFlexDirection)[keyof typeof BoxFlexDirection];\n\n/**\n * Box - flexWrap\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxFlexWrap = {\n NoWrap: 'flex-nowrap',\n Wrap: 'flex-wrap',\n WrapReverse: 'flex-wrap-reverse',\n} as const;\nexport type BoxFlexWrap = (typeof BoxFlexWrap)[keyof typeof BoxFlexWrap];\n\n/**\n * Box - alignItems\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxAlignItems = {\n Start: 'items-start',\n Center: 'items-center',\n End: 'items-end',\n Stretch: 'items-stretch',\n Baseline: 'items-baseline',\n} as const;\nexport type BoxAlignItems = (typeof BoxAlignItems)[keyof typeof BoxAlignItems];\n\n/**\n * Box - justifyContent\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxJustifyContent = {\n Start: 'justify-start',\n Center: 'justify-center',\n End: 'justify-end',\n Between: 'justify-between',\n Around: 'justify-around',\n Evenly: 'justify-evenly',\n} as const;\nexport type BoxJustifyContent =\n (typeof BoxJustifyContent)[keyof typeof BoxJustifyContent];\n\n/**\n * Box - backgroundColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBackgroundColor = {\n /** Default background color */\n BackgroundDefault: 'bg-default',\n /** Alternative background color */\n BackgroundAlternative: 'bg-alternative',\n /** Section background color */\n BackgroundSection: 'bg-section',\n /** Subsection background color */\n BackgroundSubsection: 'bg-subsection',\n /**\n * One level above bg-default. Surfaces over a scrim/overlay\n * (e.g. Modal, BottomSheet).\n */\n BackgroundElevated1: 'bg-elevated1',\n /**\n * Two levels above base; can sit on bg-default or bg-elevated1.\n * Floating UI (e.g. Toast, Menu, Popover, Tooltip).\n */\n BackgroundElevated2: 'bg-elevated2',\n /** Muted background color */\n BackgroundMuted: 'bg-muted',\n /** Primary default background color */\n PrimaryDefault: 'bg-primary-default',\n /** Primary alternative background color */\n PrimaryAlternative: 'bg-primary-alternative',\n /** Primary muted background color */\n PrimaryMuted: 'bg-primary-muted',\n /** Primary inverse background color */\n PrimaryInverse: 'bg-primary-inverse',\n /** Error default background color */\n ErrorDefault: 'bg-error-default',\n /** Error alternative background color */\n ErrorAlternative: 'bg-error-alternative',\n /** Error muted background color */\n ErrorMuted: 'bg-error-muted',\n /** Error inverse background color */\n ErrorInverse: 'bg-error-inverse',\n /** Warning default background color */\n WarningDefault: 'bg-warning-default',\n /** Warning muted background color */\n WarningMuted: 'bg-warning-muted',\n /** Warning inverse background color */\n WarningInverse: 'bg-warning-inverse',\n /** Success default background color */\n SuccessDefault: 'bg-success-default',\n /** Success muted background color */\n SuccessMuted: 'bg-success-muted',\n /** Success inverse background color */\n SuccessInverse: 'bg-success-inverse',\n /** Info default background color */\n InfoDefault: 'bg-info-default',\n /** Info muted background color */\n InfoMuted: 'bg-info-muted',\n /** Info inverse background color */\n InfoInverse: 'bg-info-inverse',\n /** Flask default background color */\n FlaskDefault: 'bg-flask-default',\n /** Flask inverse background color */\n FlaskInverse: 'bg-flask-inverse',\n /** Overlay alternative background color */\n OverlayAlternative: 'bg-overlay-alternative',\n /** Overlay default background color */\n OverlayDefault: 'bg-overlay-default',\n /** Overlay inverse background color */\n OverlayInverse: 'bg-overlay-inverse',\n /** Transparent background color */\n Transparent: 'bg-transparent',\n} as const;\nexport type BoxBackgroundColor =\n (typeof BoxBackgroundColor)[keyof typeof BoxBackgroundColor];\n\n/**\n * Box - borderColor\n * Convert from enum to const object (ADR-0003)\n */\nexport const BoxBorderColor = {\n /** Background default for cut out effect */\n BackgroundDefault: 'border-background-default',\n /** Default border color */\n BorderDefault: 'border-default',\n /** Muted border color */\n BorderMuted: 'border-muted',\n /**\n * Border for elevated surfaces. Transparent in light; subtle edge in\n * dark. Prefer with bg-elevated1 / bg-elevated2 (e.g. Modal).\n */\n BorderAlternative: 'border-alternative',\n /** Primary default border color */\n PrimaryDefault: 'border-primary-default',\n /** Primary alternative border color */\n PrimaryAlternative: 'border-primary-alternative',\n /** Primary muted border color */\n PrimaryMuted: 'border-primary-muted',\n /** Primary inverse border color */\n PrimaryInverse: 'border-primary-inverse',\n /** Error default border color */\n ErrorDefault: 'border-error-default',\n /** Error alternative border color */\n ErrorAlternative: 'border-error-alternative',\n /** Error muted border color */\n ErrorMuted: 'border-error-muted',\n /** Error inverse border color */\n ErrorInverse: 'border-error-inverse',\n /** Warning default border color */\n WarningDefault: 'border-warning-default',\n /** Warning muted border color */\n WarningMuted: 'border-warning-muted',\n /** Warning inverse border color */\n WarningInverse: 'border-warning-inverse',\n /** Success default border color */\n SuccessDefault: 'border-success-default',\n /** Success muted border color */\n SuccessMuted: 'border-success-muted',\n /** Success inverse border color */\n SuccessInverse: 'border-success-inverse',\n /** Info default border color */\n InfoDefault: 'border-info-default',\n /** Info muted border color */\n InfoMuted: 'border-info-muted',\n /** Info inverse border color */\n InfoInverse: 'border-info-inverse',\n /** Flask default border color */\n FlaskDefault: 'border-flask-default',\n /** Flask inverse border color */\n FlaskInverse: 'border-flask-inverse',\n /** Overlay alternative border color */\n OverlayAlternative: 'border-overlay-alternative',\n /** Overlay default border color */\n OverlayDefault: 'border-overlay-default',\n /** Overlay inverse border color */\n OverlayInverse: 'border-overlay-inverse',\n /** Transparent border color */\n Transparent: 'border-transparent',\n} as const;\nexport type BoxBorderColor =\n (typeof BoxBorderColor)[keyof typeof BoxBorderColor];\n\n/**\n * Box component shared props (ADR-0004)\n * Platform-independent properties shared across React and React Native.\n */\nexport type BoxPropsShared = {\n /**\n * The flex-direction style of the component.\n */\n flexDirection?: BoxFlexDirection;\n /**\n * The flex-wrap style of the component.\n */\n flexWrap?: BoxFlexWrap;\n /**\n * The gap between the component's children.\n * Use 0-12 for a gap of 0px-48px.\n */\n gap?: BoxSpacing;\n /**\n * The align-items style of the component.\n */\n alignItems?: BoxAlignItems;\n /**\n * The justify-content style of the component.\n */\n justifyContent?: BoxJustifyContent;\n /**\n * The margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n margin?: BoxSpacing;\n /**\n * The top margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginTop?: BoxSpacing;\n /**\n * The right margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginRight?: BoxSpacing;\n /**\n * The bottom margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginBottom?: BoxSpacing;\n /**\n * The left margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginLeft?: BoxSpacing;\n /**\n * The horizontal margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginHorizontal?: BoxSpacing;\n /**\n * The vertical margin of the component.\n * Use 0-12 for margin of 0px-48px.\n */\n marginVertical?: BoxSpacing;\n /**\n * The padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n padding?: BoxSpacing;\n /**\n * The top padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingTop?: BoxSpacing;\n /**\n * The right padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingRight?: BoxSpacing;\n /**\n * The bottom padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingBottom?: BoxSpacing;\n /**\n * The left padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingLeft?: BoxSpacing;\n /**\n * The horizontal padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingHorizontal?: BoxSpacing;\n /**\n * The vertical padding of the component.\n * Use 0-12 for padding of 0px-48px.\n */\n paddingVertical?: BoxSpacing;\n /**\n * The border width of the component.\n * Use 0, 1, 2, 4, or 8 for border width of 0px, 1px, 2px, 4px, or 8px.\n */\n borderWidth?: BoxBorderWidth;\n /**\n * The border color of the component.\n */\n borderColor?: BoxBorderColor;\n /**\n * The background color of the component.\n */\n backgroundColor?: BoxBackgroundColor;\n};\n"]}
|