@metamask-previews/design-system-react-native 0.1.0-preview.a448767 → 0.2.0-preview.ec6504c
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/CHANGELOG.md +21 -1
- package/dist/components/Box/Box.cjs +22 -5
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.constants.cjs +218 -1
- package/dist/components/Box/Box.constants.cjs.map +1 -1
- package/dist/components/Box/Box.constants.d.cts +16 -1
- package/dist/components/Box/Box.constants.d.cts.map +1 -1
- package/dist/components/Box/Box.constants.d.mts +16 -1
- package/dist/components/Box/Box.constants.d.mts.map +1 -1
- package/dist/components/Box/Box.constants.mjs +217 -0
- package/dist/components/Box/Box.constants.mjs.map +1 -1
- package/dist/components/Box/Box.d.cts +1 -1
- package/dist/components/Box/Box.d.cts.map +1 -1
- package/dist/components/Box/Box.d.mts +1 -1
- package/dist/components/Box/Box.d.mts.map +1 -1
- package/dist/components/Box/Box.mjs +23 -6
- package/dist/components/Box/Box.mjs.map +1 -1
- package/dist/components/Box/Box.types.cjs.map +1 -1
- package/dist/components/Box/Box.types.d.cts +84 -1
- package/dist/components/Box/Box.types.d.cts.map +1 -1
- package/dist/components/Box/Box.types.d.mts +84 -1
- package/dist/components/Box/Box.types.d.mts.map +1 -1
- package/dist/components/Box/Box.types.mjs.map +1 -1
- package/dist/components/Box/index.cjs.map +1 -1
- package/dist/components/Box/index.d.cts +1 -1
- package/dist/components/Box/index.d.cts.map +1 -1
- package/dist/components/Box/index.d.mts +1 -1
- package/dist/components/Box/index.d.mts.map +1 -1
- package/dist/components/Box/index.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +3 -4
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +1 -2
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +1 -1
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Icon/Icon.assets.cjs +10 -0
- package/dist/components/Icon/Icon.assets.cjs.map +1 -1
- package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
- package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
- package/dist/components/Icon/Icon.assets.mjs +10 -0
- package/dist/components/Icon/Icon.assets.mjs.map +1 -1
- package/dist/components/Icon/assets/apple-logo.svg +1 -0
- package/dist/components/Icon/assets/backspace.svg +1 -0
- package/dist/components/Icon/assets/candlestick.svg +1 -0
- package/dist/components/Icon/assets/clear.svg +1 -0
- package/dist/components/Icon/assets/error.svg +1 -1
- package/dist/components/Icon/assets/hash-tag.svg +1 -1
- package/dist/components/Icon/assets/metamask-fox-outline.svg +1 -0
- package/dist/components/Text/Text.constants.cjs +9 -0
- package/dist/components/Text/Text.constants.cjs.map +1 -1
- package/dist/components/Text/Text.constants.d.cts.map +1 -1
- package/dist/components/Text/Text.constants.d.mts.map +1 -1
- package/dist/components/Text/Text.constants.mjs +9 -0
- package/dist/components/Text/Text.constants.mjs.map +1 -1
- package/dist/components/Text/Text.types.cjs.map +1 -1
- package/dist/components/Text/Text.types.d.cts +2 -2
- package/dist/components/Text/Text.types.d.mts +2 -2
- package/dist/components/Text/Text.types.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.cjs +1 -0
- package/dist/components/TextButton/TextButton.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.d.cts.map +1 -1
- package/dist/components/TextButton/TextButton.d.mts.map +1 -1
- package/dist/components/TextButton/TextButton.mjs +1 -0
- package/dist/components/TextButton/TextButton.mjs.map +1 -1
- package/dist/types/index.cjs +145 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +143 -1
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +143 -1
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +144 -0
- package/dist/types/index.mjs.map +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.2.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added 5 new Text component variants with responsive typography support ([#777](https://github.com/MetaMask/metamask-design-system/pull/777)):
|
|
15
|
+
- `TextVariant.PageHeading` - For main page titles with large, bold styling
|
|
16
|
+
- `TextVariant.SectionHeading` - For section titles with medium, bold styling
|
|
17
|
+
- `TextVariant.ButtonLabelMd` - For medium-sized button labels with optimized button text styling
|
|
18
|
+
- `TextVariant.ButtonLabelLg` - For large-sized button labels with optimized button text styling
|
|
19
|
+
- `TextVariant.AmountDisplayLg` - For large amount/value displays with prominent numeric styling
|
|
20
|
+
- Added comprehensive utility props to Box component for enhanced layout control ([#779](https://github.com/MetaMask/metamask-design-system/pull/779)) and fixes ([#781](https://github.com/MetaMask/metamask-design-system/pull/781)):
|
|
21
|
+
- **Margin props:** `margin`, `marginTop`, `marginRight`, `marginBottom`, `marginLeft`, `marginHorizontal`, `marginVertical`
|
|
22
|
+
- **Padding props:** `padding`, `paddingTop`, `paddingRight`, `paddingBottom`, `paddingLeft`, `paddingHorizontal`, `paddingVertical`
|
|
23
|
+
- **Border props:** `borderWidth`, `borderColor`
|
|
24
|
+
- **Background props:** `backgroundColor`
|
|
25
|
+
- All spacing props use the `BoxSpacing` scale (0-12) where each unit equals 4px
|
|
26
|
+
- Border width uses `BoxBorderWidth` type (0, 1, 2, 4, 8) for valid Tailwind/TWRNC values
|
|
27
|
+
- Color props use design system color tokens for consistent theming across light/dark modes
|
|
28
|
+
|
|
10
29
|
## [0.1.0]
|
|
11
30
|
|
|
12
31
|
### Added
|
|
@@ -23,5 +42,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
23
42
|
- Full TypeScript support with type definitions and enums
|
|
24
43
|
- React Native integration with TWRNC preset support
|
|
25
44
|
|
|
26
|
-
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.
|
|
45
|
+
[Unreleased]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.2.0...HEAD
|
|
46
|
+
[0.2.0]: https://github.com/MetaMask/metamask-design-system/compare/@metamask/design-system-react-native@0.1.0...@metamask/design-system-react-native@0.2.0
|
|
27
47
|
[0.1.0]: https://github.com/MetaMask/metamask-design-system/releases/tag/@metamask/design-system-react-native@0.1.0
|
|
@@ -8,17 +8,34 @@ const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-t
|
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const react_native_1 = require("react-native/index.js");
|
|
10
10
|
const Box_constants_1 = require("./Box.constants.cjs");
|
|
11
|
-
const Box = ({ flexDirection, flexWrap, gap, alignItems, justifyContent, twClassName = '', style, children, ...props }) => {
|
|
11
|
+
const Box = ({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, twClassName = '', style, children, ...props }) => {
|
|
12
12
|
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
13
|
-
const twContainerClassNames = `
|
|
13
|
+
const twContainerClassNames = tw `
|
|
14
14
|
flex
|
|
15
15
|
${flexDirection ?? ''}
|
|
16
16
|
${flexWrap ?? ''}
|
|
17
17
|
${gap !== undefined ? Box_constants_1.TWCLASSMAP_BOX_GAP[gap] : ''}
|
|
18
18
|
${alignItems ?? ''}
|
|
19
|
-
${justifyContent ?? ''}
|
|
20
|
-
${
|
|
21
|
-
|
|
19
|
+
${justifyContent ?? ''}
|
|
20
|
+
${margin !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN[margin] : ''}
|
|
21
|
+
${marginTop !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_TOP[marginTop] : ''}
|
|
22
|
+
${marginRight !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_RIGHT[marginRight] : ''}
|
|
23
|
+
${marginBottom !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom] : ''}
|
|
24
|
+
${marginLeft !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : ''}
|
|
25
|
+
${marginHorizontal !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal] : ''}
|
|
26
|
+
${marginVertical !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical] : ''}
|
|
27
|
+
${padding !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING[padding] : ''}
|
|
28
|
+
${paddingTop !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : ''}
|
|
29
|
+
${paddingRight !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight] : ''}
|
|
30
|
+
${paddingBottom !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom] : ''}
|
|
31
|
+
${paddingLeft !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : ''}
|
|
32
|
+
${paddingHorizontal !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal] : ''}
|
|
33
|
+
${paddingVertical !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical] : ''}
|
|
34
|
+
${borderWidth !== undefined ? Box_constants_1.TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : ''}
|
|
35
|
+
${borderColor ?? ''}
|
|
36
|
+
${backgroundColor ?? ''}
|
|
37
|
+
${twClassName}`;
|
|
38
|
+
return (<react_native_1.View style={[twContainerClassNames, style]} {...props}>
|
|
22
39
|
{children}
|
|
23
40
|
</react_native_1.View>);
|
|
24
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,
|
|
1
|
+
{"version":3,"file":"Box.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,uDAiByB;AAGlB,MAAM,GAAG,GAAG,CAAC,EAClB,aAAa,EACb,QAAQ,EACR,GAAG,EACH,UAAU,EACV,cAAc,EACd,MAAM,EACN,SAAS,EACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,OAAO,EACP,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,WAAW,EACX,WAAW,EACX,eAAe,EACf,WAAW,GAAG,EAAE,EAChB,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACC,EAAE,EAAE;IACb,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,qBAAqB,GAAG,EAAE,CAAA;;MAE5B,aAAa,IAAI,EAAE;MACnB,QAAQ,IAAI,EAAE;MACd,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,kCAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;MAChD,UAAU,IAAI,EAAE;MAChB,cAAc,IAAI,EAAE;MACpB,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,qCAAqB,CAA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C,CAAC,CAAC,CAAC,EAAE;MACrF,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,2CAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;MACzE,WAAW,IAAI,EAAE;MACjB,eAAe,IAAI,EAAE;MACrB,WAAW,EAAE,CAAC;IAElB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACrD;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,GAAG,OA4Dd","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport {\n TWCLASSMAP_BOX_GAP,\n TWCLASSMAP_BOX_MARGIN,\n TWCLASSMAP_BOX_MARGIN_TOP,\n TWCLASSMAP_BOX_MARGIN_RIGHT,\n TWCLASSMAP_BOX_MARGIN_BOTTOM,\n TWCLASSMAP_BOX_MARGIN_LEFT,\n TWCLASSMAP_BOX_MARGIN_HORIZONTAL,\n TWCLASSMAP_BOX_MARGIN_VERTICAL,\n TWCLASSMAP_BOX_PADDING,\n TWCLASSMAP_BOX_PADDING_TOP,\n TWCLASSMAP_BOX_PADDING_RIGHT,\n TWCLASSMAP_BOX_PADDING_BOTTOM,\n TWCLASSMAP_BOX_PADDING_LEFT,\n TWCLASSMAP_BOX_PADDING_HORIZONTAL,\n TWCLASSMAP_BOX_PADDING_VERTICAL,\n TWCLASSMAP_BOX_BORDER_WIDTH,\n} from './Box.constants';\nimport type { BoxProps } from './Box.types';\n\nexport const Box = ({\n flexDirection,\n flexWrap,\n gap,\n alignItems,\n justifyContent,\n margin,\n marginTop,\n marginRight,\n marginBottom,\n marginLeft,\n marginHorizontal,\n marginVertical,\n padding,\n paddingTop,\n paddingRight,\n paddingBottom,\n paddingLeft,\n paddingHorizontal,\n paddingVertical,\n borderWidth,\n borderColor,\n backgroundColor,\n twClassName = '',\n style,\n children,\n ...props\n}: BoxProps) => {\n const tw = useTailwind();\n const twContainerClassNames = tw`\n flex\n ${flexDirection ?? ''} \n ${flexWrap ?? ''} \n ${gap !== undefined ? TWCLASSMAP_BOX_GAP[gap] : ''} \n ${alignItems ?? ''} \n ${justifyContent ?? ''}\n ${margin !== undefined ? TWCLASSMAP_BOX_MARGIN[margin] : ''}\n ${marginTop !== undefined ? TWCLASSMAP_BOX_MARGIN_TOP[marginTop] : ''}\n ${marginRight !== undefined ? TWCLASSMAP_BOX_MARGIN_RIGHT[marginRight] : ''}\n ${marginBottom !== undefined ? TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom] : ''}\n ${marginLeft !== undefined ? TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : ''}\n ${marginHorizontal !== undefined ? TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal] : ''}\n ${marginVertical !== undefined ? TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical] : ''}\n ${padding !== undefined ? TWCLASSMAP_BOX_PADDING[padding] : ''}\n ${paddingTop !== undefined ? TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : ''}\n ${paddingRight !== undefined ? TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight] : ''}\n ${paddingBottom !== undefined ? TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom] : ''}\n ${paddingLeft !== undefined ? TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : ''}\n ${paddingHorizontal !== undefined ? TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal] : ''}\n ${paddingVertical !== undefined ? TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical] : ''}\n ${borderWidth !== undefined ? TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : ''}\n ${borderColor ?? ''}\n ${backgroundColor ?? ''}\n ${twClassName}`;\n\n return (\n <View style={[twContainerClassNames, style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TWCLASSMAP_BOX_GAP = void 0;
|
|
3
|
+
exports.TWCLASSMAP_BOX_BORDER_WIDTH = exports.TWCLASSMAP_BOX_PADDING_VERTICAL = exports.TWCLASSMAP_BOX_PADDING_HORIZONTAL = exports.TWCLASSMAP_BOX_PADDING_LEFT = exports.TWCLASSMAP_BOX_PADDING_BOTTOM = exports.TWCLASSMAP_BOX_PADDING_RIGHT = exports.TWCLASSMAP_BOX_PADDING_TOP = exports.TWCLASSMAP_BOX_PADDING = exports.TWCLASSMAP_BOX_MARGIN_VERTICAL = exports.TWCLASSMAP_BOX_MARGIN_HORIZONTAL = exports.TWCLASSMAP_BOX_MARGIN_LEFT = exports.TWCLASSMAP_BOX_MARGIN_BOTTOM = exports.TWCLASSMAP_BOX_MARGIN_RIGHT = exports.TWCLASSMAP_BOX_MARGIN_TOP = exports.TWCLASSMAP_BOX_MARGIN = exports.TWCLASSMAP_BOX_GAP = void 0;
|
|
4
4
|
exports.TWCLASSMAP_BOX_GAP = {
|
|
5
5
|
0: 'gap-0',
|
|
6
6
|
1: 'gap-1',
|
|
@@ -16,4 +16,221 @@ exports.TWCLASSMAP_BOX_GAP = {
|
|
|
16
16
|
11: 'gap-11',
|
|
17
17
|
12: 'gap-12',
|
|
18
18
|
};
|
|
19
|
+
exports.TWCLASSMAP_BOX_MARGIN = {
|
|
20
|
+
0: 'm-0',
|
|
21
|
+
1: 'm-1',
|
|
22
|
+
2: 'm-2',
|
|
23
|
+
3: 'm-3',
|
|
24
|
+
4: 'm-4',
|
|
25
|
+
5: 'm-5',
|
|
26
|
+
6: 'm-6',
|
|
27
|
+
7: 'm-7',
|
|
28
|
+
8: 'm-8',
|
|
29
|
+
9: 'm-9',
|
|
30
|
+
10: 'm-10',
|
|
31
|
+
11: 'm-11',
|
|
32
|
+
12: 'm-12',
|
|
33
|
+
};
|
|
34
|
+
exports.TWCLASSMAP_BOX_MARGIN_TOP = {
|
|
35
|
+
0: 'mt-0',
|
|
36
|
+
1: 'mt-1',
|
|
37
|
+
2: 'mt-2',
|
|
38
|
+
3: 'mt-3',
|
|
39
|
+
4: 'mt-4',
|
|
40
|
+
5: 'mt-5',
|
|
41
|
+
6: 'mt-6',
|
|
42
|
+
7: 'mt-7',
|
|
43
|
+
8: 'mt-8',
|
|
44
|
+
9: 'mt-9',
|
|
45
|
+
10: 'mt-10',
|
|
46
|
+
11: 'mt-11',
|
|
47
|
+
12: 'mt-12',
|
|
48
|
+
};
|
|
49
|
+
exports.TWCLASSMAP_BOX_MARGIN_RIGHT = {
|
|
50
|
+
0: 'mr-0',
|
|
51
|
+
1: 'mr-1',
|
|
52
|
+
2: 'mr-2',
|
|
53
|
+
3: 'mr-3',
|
|
54
|
+
4: 'mr-4',
|
|
55
|
+
5: 'mr-5',
|
|
56
|
+
6: 'mr-6',
|
|
57
|
+
7: 'mr-7',
|
|
58
|
+
8: 'mr-8',
|
|
59
|
+
9: 'mr-9',
|
|
60
|
+
10: 'mr-10',
|
|
61
|
+
11: 'mr-11',
|
|
62
|
+
12: 'mr-12',
|
|
63
|
+
};
|
|
64
|
+
exports.TWCLASSMAP_BOX_MARGIN_BOTTOM = {
|
|
65
|
+
0: 'mb-0',
|
|
66
|
+
1: 'mb-1',
|
|
67
|
+
2: 'mb-2',
|
|
68
|
+
3: 'mb-3',
|
|
69
|
+
4: 'mb-4',
|
|
70
|
+
5: 'mb-5',
|
|
71
|
+
6: 'mb-6',
|
|
72
|
+
7: 'mb-7',
|
|
73
|
+
8: 'mb-8',
|
|
74
|
+
9: 'mb-9',
|
|
75
|
+
10: 'mb-10',
|
|
76
|
+
11: 'mb-11',
|
|
77
|
+
12: 'mb-12',
|
|
78
|
+
};
|
|
79
|
+
exports.TWCLASSMAP_BOX_MARGIN_LEFT = {
|
|
80
|
+
0: 'ml-0',
|
|
81
|
+
1: 'ml-1',
|
|
82
|
+
2: 'ml-2',
|
|
83
|
+
3: 'ml-3',
|
|
84
|
+
4: 'ml-4',
|
|
85
|
+
5: 'ml-5',
|
|
86
|
+
6: 'ml-6',
|
|
87
|
+
7: 'ml-7',
|
|
88
|
+
8: 'ml-8',
|
|
89
|
+
9: 'ml-9',
|
|
90
|
+
10: 'ml-10',
|
|
91
|
+
11: 'ml-11',
|
|
92
|
+
12: 'ml-12',
|
|
93
|
+
};
|
|
94
|
+
exports.TWCLASSMAP_BOX_MARGIN_HORIZONTAL = {
|
|
95
|
+
0: 'mx-0',
|
|
96
|
+
1: 'mx-1',
|
|
97
|
+
2: 'mx-2',
|
|
98
|
+
3: 'mx-3',
|
|
99
|
+
4: 'mx-4',
|
|
100
|
+
5: 'mx-5',
|
|
101
|
+
6: 'mx-6',
|
|
102
|
+
7: 'mx-7',
|
|
103
|
+
8: 'mx-8',
|
|
104
|
+
9: 'mx-9',
|
|
105
|
+
10: 'mx-10',
|
|
106
|
+
11: 'mx-11',
|
|
107
|
+
12: 'mx-12',
|
|
108
|
+
};
|
|
109
|
+
exports.TWCLASSMAP_BOX_MARGIN_VERTICAL = {
|
|
110
|
+
0: 'my-0',
|
|
111
|
+
1: 'my-1',
|
|
112
|
+
2: 'my-2',
|
|
113
|
+
3: 'my-3',
|
|
114
|
+
4: 'my-4',
|
|
115
|
+
5: 'my-5',
|
|
116
|
+
6: 'my-6',
|
|
117
|
+
7: 'my-7',
|
|
118
|
+
8: 'my-8',
|
|
119
|
+
9: 'my-9',
|
|
120
|
+
10: 'my-10',
|
|
121
|
+
11: 'my-11',
|
|
122
|
+
12: 'my-12',
|
|
123
|
+
};
|
|
124
|
+
exports.TWCLASSMAP_BOX_PADDING = {
|
|
125
|
+
0: 'p-0',
|
|
126
|
+
1: 'p-1',
|
|
127
|
+
2: 'p-2',
|
|
128
|
+
3: 'p-3',
|
|
129
|
+
4: 'p-4',
|
|
130
|
+
5: 'p-5',
|
|
131
|
+
6: 'p-6',
|
|
132
|
+
7: 'p-7',
|
|
133
|
+
8: 'p-8',
|
|
134
|
+
9: 'p-9',
|
|
135
|
+
10: 'p-10',
|
|
136
|
+
11: 'p-11',
|
|
137
|
+
12: 'p-12',
|
|
138
|
+
};
|
|
139
|
+
exports.TWCLASSMAP_BOX_PADDING_TOP = {
|
|
140
|
+
0: 'pt-0',
|
|
141
|
+
1: 'pt-1',
|
|
142
|
+
2: 'pt-2',
|
|
143
|
+
3: 'pt-3',
|
|
144
|
+
4: 'pt-4',
|
|
145
|
+
5: 'pt-5',
|
|
146
|
+
6: 'pt-6',
|
|
147
|
+
7: 'pt-7',
|
|
148
|
+
8: 'pt-8',
|
|
149
|
+
9: 'pt-9',
|
|
150
|
+
10: 'pt-10',
|
|
151
|
+
11: 'pt-11',
|
|
152
|
+
12: 'pt-12',
|
|
153
|
+
};
|
|
154
|
+
exports.TWCLASSMAP_BOX_PADDING_RIGHT = {
|
|
155
|
+
0: 'pr-0',
|
|
156
|
+
1: 'pr-1',
|
|
157
|
+
2: 'pr-2',
|
|
158
|
+
3: 'pr-3',
|
|
159
|
+
4: 'pr-4',
|
|
160
|
+
5: 'pr-5',
|
|
161
|
+
6: 'pr-6',
|
|
162
|
+
7: 'pr-7',
|
|
163
|
+
8: 'pr-8',
|
|
164
|
+
9: 'pr-9',
|
|
165
|
+
10: 'pr-10',
|
|
166
|
+
11: 'pr-11',
|
|
167
|
+
12: 'pr-12',
|
|
168
|
+
};
|
|
169
|
+
exports.TWCLASSMAP_BOX_PADDING_BOTTOM = {
|
|
170
|
+
0: 'pb-0',
|
|
171
|
+
1: 'pb-1',
|
|
172
|
+
2: 'pb-2',
|
|
173
|
+
3: 'pb-3',
|
|
174
|
+
4: 'pb-4',
|
|
175
|
+
5: 'pb-5',
|
|
176
|
+
6: 'pb-6',
|
|
177
|
+
7: 'pb-7',
|
|
178
|
+
8: 'pb-8',
|
|
179
|
+
9: 'pb-9',
|
|
180
|
+
10: 'pb-10',
|
|
181
|
+
11: 'pb-11',
|
|
182
|
+
12: 'pb-12',
|
|
183
|
+
};
|
|
184
|
+
exports.TWCLASSMAP_BOX_PADDING_LEFT = {
|
|
185
|
+
0: 'pl-0',
|
|
186
|
+
1: 'pl-1',
|
|
187
|
+
2: 'pl-2',
|
|
188
|
+
3: 'pl-3',
|
|
189
|
+
4: 'pl-4',
|
|
190
|
+
5: 'pl-5',
|
|
191
|
+
6: 'pl-6',
|
|
192
|
+
7: 'pl-7',
|
|
193
|
+
8: 'pl-8',
|
|
194
|
+
9: 'pl-9',
|
|
195
|
+
10: 'pl-10',
|
|
196
|
+
11: 'pl-11',
|
|
197
|
+
12: 'pl-12',
|
|
198
|
+
};
|
|
199
|
+
exports.TWCLASSMAP_BOX_PADDING_HORIZONTAL = {
|
|
200
|
+
0: 'px-0',
|
|
201
|
+
1: 'px-1',
|
|
202
|
+
2: 'px-2',
|
|
203
|
+
3: 'px-3',
|
|
204
|
+
4: 'px-4',
|
|
205
|
+
5: 'px-5',
|
|
206
|
+
6: 'px-6',
|
|
207
|
+
7: 'px-7',
|
|
208
|
+
8: 'px-8',
|
|
209
|
+
9: 'px-9',
|
|
210
|
+
10: 'px-10',
|
|
211
|
+
11: 'px-11',
|
|
212
|
+
12: 'px-12',
|
|
213
|
+
};
|
|
214
|
+
exports.TWCLASSMAP_BOX_PADDING_VERTICAL = {
|
|
215
|
+
0: 'py-0',
|
|
216
|
+
1: 'py-1',
|
|
217
|
+
2: 'py-2',
|
|
218
|
+
3: 'py-3',
|
|
219
|
+
4: 'py-4',
|
|
220
|
+
5: 'py-5',
|
|
221
|
+
6: 'py-6',
|
|
222
|
+
7: 'py-7',
|
|
223
|
+
8: 'py-8',
|
|
224
|
+
9: 'py-9',
|
|
225
|
+
10: 'py-10',
|
|
226
|
+
11: 'py-11',
|
|
227
|
+
12: 'py-12',
|
|
228
|
+
};
|
|
229
|
+
exports.TWCLASSMAP_BOX_BORDER_WIDTH = {
|
|
230
|
+
0: 'border-0',
|
|
231
|
+
1: 'border',
|
|
232
|
+
2: 'border-2',
|
|
233
|
+
4: 'border-4',
|
|
234
|
+
8: 'border-8',
|
|
235
|
+
};
|
|
19
236
|
//# sourceMappingURL=Box.constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.constants.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC","sourcesContent":["import type { BoxSpacing } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Box.constants.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV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AE,UAAU;IACb,CAAC,EAAE,UAAU;CACd,CAAC","sourcesContent":["import type { BoxSpacing, BoxBorderWidth } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string> = {\n 0: 'm-0',\n 1: 'm-1',\n 2: 'm-2',\n 3: 'm-3',\n 4: 'm-4',\n 5: 'm-5',\n 6: 'm-6',\n 7: 'm-7',\n 8: 'm-8',\n 9: 'm-9',\n 10: 'm-10',\n 11: 'm-11',\n 12: 'm-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string> = {\n 0: 'mt-0',\n 1: 'mt-1',\n 2: 'mt-2',\n 3: 'mt-3',\n 4: 'mt-4',\n 5: 'mt-5',\n 6: 'mt-6',\n 7: 'mt-7',\n 8: 'mt-8',\n 9: 'mt-9',\n 10: 'mt-10',\n 11: 'mt-11',\n 12: 'mt-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string> = {\n 0: 'mr-0',\n 1: 'mr-1',\n 2: 'mr-2',\n 3: 'mr-3',\n 4: 'mr-4',\n 5: 'mr-5',\n 6: 'mr-6',\n 7: 'mr-7',\n 8: 'mr-8',\n 9: 'mr-9',\n 10: 'mr-10',\n 11: 'mr-11',\n 12: 'mr-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'mb-0',\n 1: 'mb-1',\n 2: 'mb-2',\n 3: 'mb-3',\n 4: 'mb-4',\n 5: 'mb-5',\n 6: 'mb-6',\n 7: 'mb-7',\n 8: 'mb-8',\n 9: 'mb-9',\n 10: 'mb-10',\n 11: 'mb-11',\n 12: 'mb-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string> = {\n 0: 'ml-0',\n 1: 'ml-1',\n 2: 'ml-2',\n 3: 'ml-3',\n 4: 'ml-4',\n 5: 'ml-5',\n 6: 'ml-6',\n 7: 'ml-7',\n 8: 'ml-8',\n 9: 'ml-9',\n 10: 'ml-10',\n 11: 'ml-11',\n 12: 'ml-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'mx-0',\n 1: 'mx-1',\n 2: 'mx-2',\n 3: 'mx-3',\n 4: 'mx-4',\n 5: 'mx-5',\n 6: 'mx-6',\n 7: 'mx-7',\n 8: 'mx-8',\n 9: 'mx-9',\n 10: 'mx-10',\n 11: 'mx-11',\n 12: 'mx-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'my-0',\n 1: 'my-1',\n 2: 'my-2',\n 3: 'my-3',\n 4: 'my-4',\n 5: 'my-5',\n 6: 'my-6',\n 7: 'my-7',\n 8: 'my-8',\n 9: 'my-9',\n 10: 'my-10',\n 11: 'my-11',\n 12: 'my-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string> = {\n 0: 'p-0',\n 1: 'p-1',\n 2: 'p-2',\n 3: 'p-3',\n 4: 'p-4',\n 5: 'p-5',\n 6: 'p-6',\n 7: 'p-7',\n 8: 'p-8',\n 9: 'p-9',\n 10: 'p-10',\n 11: 'p-11',\n 12: 'p-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string> = {\n 0: 'pt-0',\n 1: 'pt-1',\n 2: 'pt-2',\n 3: 'pt-3',\n 4: 'pt-4',\n 5: 'pt-5',\n 6: 'pt-6',\n 7: 'pt-7',\n 8: 'pt-8',\n 9: 'pt-9',\n 10: 'pt-10',\n 11: 'pt-11',\n 12: 'pt-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string> = {\n 0: 'pr-0',\n 1: 'pr-1',\n 2: 'pr-2',\n 3: 'pr-3',\n 4: 'pr-4',\n 5: 'pr-5',\n 6: 'pr-6',\n 7: 'pr-7',\n 8: 'pr-8',\n 9: 'pr-9',\n 10: 'pr-10',\n 11: 'pr-11',\n 12: 'pr-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'pb-0',\n 1: 'pb-1',\n 2: 'pb-2',\n 3: 'pb-3',\n 4: 'pb-4',\n 5: 'pb-5',\n 6: 'pb-6',\n 7: 'pb-7',\n 8: 'pb-8',\n 9: 'pb-9',\n 10: 'pb-10',\n 11: 'pb-11',\n 12: 'pb-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string> = {\n 0: 'pl-0',\n 1: 'pl-1',\n 2: 'pl-2',\n 3: 'pl-3',\n 4: 'pl-4',\n 5: 'pl-5',\n 6: 'pl-6',\n 7: 'pl-7',\n 8: 'pl-8',\n 9: 'pl-9',\n 10: 'pl-10',\n 11: 'pl-11',\n 12: 'pl-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'px-0',\n 1: 'px-1',\n 2: 'px-2',\n 3: 'px-3',\n 4: 'px-4',\n 5: 'px-5',\n 6: 'px-6',\n 7: 'px-7',\n 8: 'px-8',\n 9: 'px-9',\n 10: 'px-10',\n 11: 'px-11',\n 12: 'px-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'py-0',\n 1: 'py-1',\n 2: 'py-2',\n 3: 'py-3',\n 4: 'py-4',\n 5: 'py-5',\n 6: 'py-6',\n 7: 'py-7',\n 8: 'py-8',\n 9: 'py-9',\n 10: 'py-10',\n 11: 'py-11',\n 12: 'py-12',\n};\n\nexport const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string> = {\n 0: 'border-0',\n 1: 'border',\n 2: 'border-2',\n 4: 'border-4',\n 8: 'border-8',\n};\n"]}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
import type { BoxSpacing } from "../../types/index.cjs";
|
|
1
|
+
import type { BoxSpacing, BoxBorderWidth } from "../../types/index.cjs";
|
|
2
2
|
export declare const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string>;
|
|
3
|
+
export declare const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string>;
|
|
4
|
+
export declare const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string>;
|
|
5
|
+
export declare const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string>;
|
|
6
|
+
export declare const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string>;
|
|
7
|
+
export declare const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string>;
|
|
8
|
+
export declare const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string>;
|
|
9
|
+
export declare const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string>;
|
|
10
|
+
export declare const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string>;
|
|
11
|
+
export declare const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string>;
|
|
12
|
+
export declare const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string>;
|
|
13
|
+
export declare const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string>;
|
|
14
|
+
export declare const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string>;
|
|
15
|
+
export declare const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string>;
|
|
16
|
+
export declare const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string>;
|
|
17
|
+
export declare const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string>;
|
|
3
18
|
//# sourceMappingURL=Box.constants.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,8BAAoB;
|
|
1
|
+
{"version":3,"file":"Box.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAE9D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAczD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAchE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcvE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcpE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcxE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CActE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAMtE,CAAC"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
import type { BoxSpacing } from "../../types/index.mjs";
|
|
1
|
+
import type { BoxSpacing, BoxBorderWidth } from "../../types/index.mjs";
|
|
2
2
|
export declare const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string>;
|
|
3
|
+
export declare const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string>;
|
|
4
|
+
export declare const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string>;
|
|
5
|
+
export declare const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string>;
|
|
6
|
+
export declare const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string>;
|
|
7
|
+
export declare const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string>;
|
|
8
|
+
export declare const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string>;
|
|
9
|
+
export declare const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string>;
|
|
10
|
+
export declare const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string>;
|
|
11
|
+
export declare const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string>;
|
|
12
|
+
export declare const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string>;
|
|
13
|
+
export declare const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string>;
|
|
14
|
+
export declare const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string>;
|
|
15
|
+
export declare const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string>;
|
|
16
|
+
export declare const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string>;
|
|
17
|
+
export declare const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string>;
|
|
3
18
|
//# sourceMappingURL=Box.constants.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,8BAAoB;
|
|
1
|
+
{"version":3,"file":"Box.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,8BAAoB;AAE9D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAczD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAchE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcvE,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcrE,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAc7D,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcjE,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcnE,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcpE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAclE,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAcxE,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CActE,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAMtE,CAAC"}
|
|
@@ -13,4 +13,221 @@ export const TWCLASSMAP_BOX_GAP = {
|
|
|
13
13
|
11: 'gap-11',
|
|
14
14
|
12: 'gap-12',
|
|
15
15
|
};
|
|
16
|
+
export const TWCLASSMAP_BOX_MARGIN = {
|
|
17
|
+
0: 'm-0',
|
|
18
|
+
1: 'm-1',
|
|
19
|
+
2: 'm-2',
|
|
20
|
+
3: 'm-3',
|
|
21
|
+
4: 'm-4',
|
|
22
|
+
5: 'm-5',
|
|
23
|
+
6: 'm-6',
|
|
24
|
+
7: 'm-7',
|
|
25
|
+
8: 'm-8',
|
|
26
|
+
9: 'm-9',
|
|
27
|
+
10: 'm-10',
|
|
28
|
+
11: 'm-11',
|
|
29
|
+
12: 'm-12',
|
|
30
|
+
};
|
|
31
|
+
export const TWCLASSMAP_BOX_MARGIN_TOP = {
|
|
32
|
+
0: 'mt-0',
|
|
33
|
+
1: 'mt-1',
|
|
34
|
+
2: 'mt-2',
|
|
35
|
+
3: 'mt-3',
|
|
36
|
+
4: 'mt-4',
|
|
37
|
+
5: 'mt-5',
|
|
38
|
+
6: 'mt-6',
|
|
39
|
+
7: 'mt-7',
|
|
40
|
+
8: 'mt-8',
|
|
41
|
+
9: 'mt-9',
|
|
42
|
+
10: 'mt-10',
|
|
43
|
+
11: 'mt-11',
|
|
44
|
+
12: 'mt-12',
|
|
45
|
+
};
|
|
46
|
+
export const TWCLASSMAP_BOX_MARGIN_RIGHT = {
|
|
47
|
+
0: 'mr-0',
|
|
48
|
+
1: 'mr-1',
|
|
49
|
+
2: 'mr-2',
|
|
50
|
+
3: 'mr-3',
|
|
51
|
+
4: 'mr-4',
|
|
52
|
+
5: 'mr-5',
|
|
53
|
+
6: 'mr-6',
|
|
54
|
+
7: 'mr-7',
|
|
55
|
+
8: 'mr-8',
|
|
56
|
+
9: 'mr-9',
|
|
57
|
+
10: 'mr-10',
|
|
58
|
+
11: 'mr-11',
|
|
59
|
+
12: 'mr-12',
|
|
60
|
+
};
|
|
61
|
+
export const TWCLASSMAP_BOX_MARGIN_BOTTOM = {
|
|
62
|
+
0: 'mb-0',
|
|
63
|
+
1: 'mb-1',
|
|
64
|
+
2: 'mb-2',
|
|
65
|
+
3: 'mb-3',
|
|
66
|
+
4: 'mb-4',
|
|
67
|
+
5: 'mb-5',
|
|
68
|
+
6: 'mb-6',
|
|
69
|
+
7: 'mb-7',
|
|
70
|
+
8: 'mb-8',
|
|
71
|
+
9: 'mb-9',
|
|
72
|
+
10: 'mb-10',
|
|
73
|
+
11: 'mb-11',
|
|
74
|
+
12: 'mb-12',
|
|
75
|
+
};
|
|
76
|
+
export const TWCLASSMAP_BOX_MARGIN_LEFT = {
|
|
77
|
+
0: 'ml-0',
|
|
78
|
+
1: 'ml-1',
|
|
79
|
+
2: 'ml-2',
|
|
80
|
+
3: 'ml-3',
|
|
81
|
+
4: 'ml-4',
|
|
82
|
+
5: 'ml-5',
|
|
83
|
+
6: 'ml-6',
|
|
84
|
+
7: 'ml-7',
|
|
85
|
+
8: 'ml-8',
|
|
86
|
+
9: 'ml-9',
|
|
87
|
+
10: 'ml-10',
|
|
88
|
+
11: 'ml-11',
|
|
89
|
+
12: 'ml-12',
|
|
90
|
+
};
|
|
91
|
+
export const TWCLASSMAP_BOX_MARGIN_HORIZONTAL = {
|
|
92
|
+
0: 'mx-0',
|
|
93
|
+
1: 'mx-1',
|
|
94
|
+
2: 'mx-2',
|
|
95
|
+
3: 'mx-3',
|
|
96
|
+
4: 'mx-4',
|
|
97
|
+
5: 'mx-5',
|
|
98
|
+
6: 'mx-6',
|
|
99
|
+
7: 'mx-7',
|
|
100
|
+
8: 'mx-8',
|
|
101
|
+
9: 'mx-9',
|
|
102
|
+
10: 'mx-10',
|
|
103
|
+
11: 'mx-11',
|
|
104
|
+
12: 'mx-12',
|
|
105
|
+
};
|
|
106
|
+
export const TWCLASSMAP_BOX_MARGIN_VERTICAL = {
|
|
107
|
+
0: 'my-0',
|
|
108
|
+
1: 'my-1',
|
|
109
|
+
2: 'my-2',
|
|
110
|
+
3: 'my-3',
|
|
111
|
+
4: 'my-4',
|
|
112
|
+
5: 'my-5',
|
|
113
|
+
6: 'my-6',
|
|
114
|
+
7: 'my-7',
|
|
115
|
+
8: 'my-8',
|
|
116
|
+
9: 'my-9',
|
|
117
|
+
10: 'my-10',
|
|
118
|
+
11: 'my-11',
|
|
119
|
+
12: 'my-12',
|
|
120
|
+
};
|
|
121
|
+
export const TWCLASSMAP_BOX_PADDING = {
|
|
122
|
+
0: 'p-0',
|
|
123
|
+
1: 'p-1',
|
|
124
|
+
2: 'p-2',
|
|
125
|
+
3: 'p-3',
|
|
126
|
+
4: 'p-4',
|
|
127
|
+
5: 'p-5',
|
|
128
|
+
6: 'p-6',
|
|
129
|
+
7: 'p-7',
|
|
130
|
+
8: 'p-8',
|
|
131
|
+
9: 'p-9',
|
|
132
|
+
10: 'p-10',
|
|
133
|
+
11: 'p-11',
|
|
134
|
+
12: 'p-12',
|
|
135
|
+
};
|
|
136
|
+
export const TWCLASSMAP_BOX_PADDING_TOP = {
|
|
137
|
+
0: 'pt-0',
|
|
138
|
+
1: 'pt-1',
|
|
139
|
+
2: 'pt-2',
|
|
140
|
+
3: 'pt-3',
|
|
141
|
+
4: 'pt-4',
|
|
142
|
+
5: 'pt-5',
|
|
143
|
+
6: 'pt-6',
|
|
144
|
+
7: 'pt-7',
|
|
145
|
+
8: 'pt-8',
|
|
146
|
+
9: 'pt-9',
|
|
147
|
+
10: 'pt-10',
|
|
148
|
+
11: 'pt-11',
|
|
149
|
+
12: 'pt-12',
|
|
150
|
+
};
|
|
151
|
+
export const TWCLASSMAP_BOX_PADDING_RIGHT = {
|
|
152
|
+
0: 'pr-0',
|
|
153
|
+
1: 'pr-1',
|
|
154
|
+
2: 'pr-2',
|
|
155
|
+
3: 'pr-3',
|
|
156
|
+
4: 'pr-4',
|
|
157
|
+
5: 'pr-5',
|
|
158
|
+
6: 'pr-6',
|
|
159
|
+
7: 'pr-7',
|
|
160
|
+
8: 'pr-8',
|
|
161
|
+
9: 'pr-9',
|
|
162
|
+
10: 'pr-10',
|
|
163
|
+
11: 'pr-11',
|
|
164
|
+
12: 'pr-12',
|
|
165
|
+
};
|
|
166
|
+
export const TWCLASSMAP_BOX_PADDING_BOTTOM = {
|
|
167
|
+
0: 'pb-0',
|
|
168
|
+
1: 'pb-1',
|
|
169
|
+
2: 'pb-2',
|
|
170
|
+
3: 'pb-3',
|
|
171
|
+
4: 'pb-4',
|
|
172
|
+
5: 'pb-5',
|
|
173
|
+
6: 'pb-6',
|
|
174
|
+
7: 'pb-7',
|
|
175
|
+
8: 'pb-8',
|
|
176
|
+
9: 'pb-9',
|
|
177
|
+
10: 'pb-10',
|
|
178
|
+
11: 'pb-11',
|
|
179
|
+
12: 'pb-12',
|
|
180
|
+
};
|
|
181
|
+
export const TWCLASSMAP_BOX_PADDING_LEFT = {
|
|
182
|
+
0: 'pl-0',
|
|
183
|
+
1: 'pl-1',
|
|
184
|
+
2: 'pl-2',
|
|
185
|
+
3: 'pl-3',
|
|
186
|
+
4: 'pl-4',
|
|
187
|
+
5: 'pl-5',
|
|
188
|
+
6: 'pl-6',
|
|
189
|
+
7: 'pl-7',
|
|
190
|
+
8: 'pl-8',
|
|
191
|
+
9: 'pl-9',
|
|
192
|
+
10: 'pl-10',
|
|
193
|
+
11: 'pl-11',
|
|
194
|
+
12: 'pl-12',
|
|
195
|
+
};
|
|
196
|
+
export const TWCLASSMAP_BOX_PADDING_HORIZONTAL = {
|
|
197
|
+
0: 'px-0',
|
|
198
|
+
1: 'px-1',
|
|
199
|
+
2: 'px-2',
|
|
200
|
+
3: 'px-3',
|
|
201
|
+
4: 'px-4',
|
|
202
|
+
5: 'px-5',
|
|
203
|
+
6: 'px-6',
|
|
204
|
+
7: 'px-7',
|
|
205
|
+
8: 'px-8',
|
|
206
|
+
9: 'px-9',
|
|
207
|
+
10: 'px-10',
|
|
208
|
+
11: 'px-11',
|
|
209
|
+
12: 'px-12',
|
|
210
|
+
};
|
|
211
|
+
export const TWCLASSMAP_BOX_PADDING_VERTICAL = {
|
|
212
|
+
0: 'py-0',
|
|
213
|
+
1: 'py-1',
|
|
214
|
+
2: 'py-2',
|
|
215
|
+
3: 'py-3',
|
|
216
|
+
4: 'py-4',
|
|
217
|
+
5: 'py-5',
|
|
218
|
+
6: 'py-6',
|
|
219
|
+
7: 'py-7',
|
|
220
|
+
8: 'py-8',
|
|
221
|
+
9: 'py-9',
|
|
222
|
+
10: 'py-10',
|
|
223
|
+
11: 'py-11',
|
|
224
|
+
12: 'py-12',
|
|
225
|
+
};
|
|
226
|
+
export const TWCLASSMAP_BOX_BORDER_WIDTH = {
|
|
227
|
+
0: 'border-0',
|
|
228
|
+
1: 'border',
|
|
229
|
+
2: 'border-2',
|
|
230
|
+
4: 'border-4',
|
|
231
|
+
8: 'border-8',
|
|
232
|
+
};
|
|
16
233
|
//# sourceMappingURL=Box.constants.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.constants.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC","sourcesContent":["import type { BoxSpacing } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n"]}
|
|
1
|
+
{"version":3,"file":"Box.constants.mjs","sourceRoot":"","sources":["../../../src/components/Box/Box.constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAA+B;IAC5D,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAA+B;IAC/D,CAAC,EAAE,KAAK;IACR,CAAC,E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E,UAAU;IACb,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,UAAU;CACd,CAAC","sourcesContent":["import type { BoxSpacing, BoxBorderWidth } from '../../types';\n\nexport const TWCLASSMAP_BOX_GAP: Record<BoxSpacing, string> = {\n 0: 'gap-0',\n 1: 'gap-1',\n 2: 'gap-2',\n 3: 'gap-3',\n 4: 'gap-4',\n 5: 'gap-5',\n 6: 'gap-6',\n 7: 'gap-7',\n 8: 'gap-8',\n 9: 'gap-9',\n 10: 'gap-10',\n 11: 'gap-11',\n 12: 'gap-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN: Record<BoxSpacing, string> = {\n 0: 'm-0',\n 1: 'm-1',\n 2: 'm-2',\n 3: 'm-3',\n 4: 'm-4',\n 5: 'm-5',\n 6: 'm-6',\n 7: 'm-7',\n 8: 'm-8',\n 9: 'm-9',\n 10: 'm-10',\n 11: 'm-11',\n 12: 'm-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_TOP: Record<BoxSpacing, string> = {\n 0: 'mt-0',\n 1: 'mt-1',\n 2: 'mt-2',\n 3: 'mt-3',\n 4: 'mt-4',\n 5: 'mt-5',\n 6: 'mt-6',\n 7: 'mt-7',\n 8: 'mt-8',\n 9: 'mt-9',\n 10: 'mt-10',\n 11: 'mt-11',\n 12: 'mt-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_RIGHT: Record<BoxSpacing, string> = {\n 0: 'mr-0',\n 1: 'mr-1',\n 2: 'mr-2',\n 3: 'mr-3',\n 4: 'mr-4',\n 5: 'mr-5',\n 6: 'mr-6',\n 7: 'mr-7',\n 8: 'mr-8',\n 9: 'mr-9',\n 10: 'mr-10',\n 11: 'mr-11',\n 12: 'mr-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'mb-0',\n 1: 'mb-1',\n 2: 'mb-2',\n 3: 'mb-3',\n 4: 'mb-4',\n 5: 'mb-5',\n 6: 'mb-6',\n 7: 'mb-7',\n 8: 'mb-8',\n 9: 'mb-9',\n 10: 'mb-10',\n 11: 'mb-11',\n 12: 'mb-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_LEFT: Record<BoxSpacing, string> = {\n 0: 'ml-0',\n 1: 'ml-1',\n 2: 'ml-2',\n 3: 'ml-3',\n 4: 'ml-4',\n 5: 'ml-5',\n 6: 'ml-6',\n 7: 'ml-7',\n 8: 'ml-8',\n 9: 'ml-9',\n 10: 'ml-10',\n 11: 'ml-11',\n 12: 'ml-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'mx-0',\n 1: 'mx-1',\n 2: 'mx-2',\n 3: 'mx-3',\n 4: 'mx-4',\n 5: 'mx-5',\n 6: 'mx-6',\n 7: 'mx-7',\n 8: 'mx-8',\n 9: 'mx-9',\n 10: 'mx-10',\n 11: 'mx-11',\n 12: 'mx-12',\n};\n\nexport const TWCLASSMAP_BOX_MARGIN_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'my-0',\n 1: 'my-1',\n 2: 'my-2',\n 3: 'my-3',\n 4: 'my-4',\n 5: 'my-5',\n 6: 'my-6',\n 7: 'my-7',\n 8: 'my-8',\n 9: 'my-9',\n 10: 'my-10',\n 11: 'my-11',\n 12: 'my-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING: Record<BoxSpacing, string> = {\n 0: 'p-0',\n 1: 'p-1',\n 2: 'p-2',\n 3: 'p-3',\n 4: 'p-4',\n 5: 'p-5',\n 6: 'p-6',\n 7: 'p-7',\n 8: 'p-8',\n 9: 'p-9',\n 10: 'p-10',\n 11: 'p-11',\n 12: 'p-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_TOP: Record<BoxSpacing, string> = {\n 0: 'pt-0',\n 1: 'pt-1',\n 2: 'pt-2',\n 3: 'pt-3',\n 4: 'pt-4',\n 5: 'pt-5',\n 6: 'pt-6',\n 7: 'pt-7',\n 8: 'pt-8',\n 9: 'pt-9',\n 10: 'pt-10',\n 11: 'pt-11',\n 12: 'pt-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_RIGHT: Record<BoxSpacing, string> = {\n 0: 'pr-0',\n 1: 'pr-1',\n 2: 'pr-2',\n 3: 'pr-3',\n 4: 'pr-4',\n 5: 'pr-5',\n 6: 'pr-6',\n 7: 'pr-7',\n 8: 'pr-8',\n 9: 'pr-9',\n 10: 'pr-10',\n 11: 'pr-11',\n 12: 'pr-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_BOTTOM: Record<BoxSpacing, string> = {\n 0: 'pb-0',\n 1: 'pb-1',\n 2: 'pb-2',\n 3: 'pb-3',\n 4: 'pb-4',\n 5: 'pb-5',\n 6: 'pb-6',\n 7: 'pb-7',\n 8: 'pb-8',\n 9: 'pb-9',\n 10: 'pb-10',\n 11: 'pb-11',\n 12: 'pb-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_LEFT: Record<BoxSpacing, string> = {\n 0: 'pl-0',\n 1: 'pl-1',\n 2: 'pl-2',\n 3: 'pl-3',\n 4: 'pl-4',\n 5: 'pl-5',\n 6: 'pl-6',\n 7: 'pl-7',\n 8: 'pl-8',\n 9: 'pl-9',\n 10: 'pl-10',\n 11: 'pl-11',\n 12: 'pl-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_HORIZONTAL: Record<BoxSpacing, string> = {\n 0: 'px-0',\n 1: 'px-1',\n 2: 'px-2',\n 3: 'px-3',\n 4: 'px-4',\n 5: 'px-5',\n 6: 'px-6',\n 7: 'px-7',\n 8: 'px-8',\n 9: 'px-9',\n 10: 'px-10',\n 11: 'px-11',\n 12: 'px-12',\n};\n\nexport const TWCLASSMAP_BOX_PADDING_VERTICAL: Record<BoxSpacing, string> = {\n 0: 'py-0',\n 1: 'py-1',\n 2: 'py-2',\n 3: 'py-3',\n 4: 'py-4',\n 5: 'py-5',\n 6: 'py-6',\n 7: 'py-7',\n 8: 'py-8',\n 9: 'py-9',\n 10: 'py-10',\n 11: 'py-11',\n 12: 'py-12',\n};\n\nexport const TWCLASSMAP_BOX_BORDER_WIDTH: Record<BoxBorderWidth, string> = {\n 0: 'border-0',\n 1: 'border',\n 2: 'border-2',\n 4: 'border-4',\n 8: 'border-8',\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { BoxProps } from "./Box.types.cjs";
|
|
3
|
-
export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
|
|
3
|
+
export declare const Box: ({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, twClassName, style, children, ...props }: BoxProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Box.d.cts.map
|