@metamask/design-system-react 0.1.0 → 0.3.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/CHANGELOG.md +41 -1
- package/dist/components/AvatarAccount/AvatarAccount.cjs +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.mjs +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.cjs +2 -3
- package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.mjs +1 -2
- package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +1 -2
- package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +1 -2
- package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.cjs +1 -1
- package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.mjs +1 -1
- package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.cjs +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.cjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.mjs +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
- package/dist/components/Box/Box.cjs +42 -8
- 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 +21 -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 +3 -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 +1 -1
- package/dist/components/Box/index.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +4 -4
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +4 -4
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +2 -2
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs +2 -2
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Icon/icons/AppleLogo.cjs +32 -0
- package/dist/components/Icon/icons/AppleLogo.cjs.map +1 -0
- package/dist/components/Icon/icons/AppleLogo.d.cts +4 -0
- package/dist/components/Icon/icons/AppleLogo.d.cts.map +1 -0
- package/dist/components/Icon/icons/AppleLogo.d.mts +4 -0
- package/dist/components/Icon/icons/AppleLogo.d.mts.map +1 -0
- package/dist/components/Icon/icons/AppleLogo.mjs +7 -0
- package/dist/components/Icon/icons/AppleLogo.mjs.map +1 -0
- package/dist/components/Icon/icons/Backspace.cjs +32 -0
- package/dist/components/Icon/icons/Backspace.cjs.map +1 -0
- package/dist/components/Icon/icons/Backspace.d.cts +4 -0
- package/dist/components/Icon/icons/Backspace.d.cts.map +1 -0
- package/dist/components/Icon/icons/Backspace.d.mts +4 -0
- package/dist/components/Icon/icons/Backspace.d.mts.map +1 -0
- package/dist/components/Icon/icons/Backspace.mjs +7 -0
- package/dist/components/Icon/icons/Backspace.mjs.map +1 -0
- package/dist/components/Icon/icons/Candlestick.cjs +32 -0
- package/dist/components/Icon/icons/Candlestick.cjs.map +1 -0
- package/dist/components/Icon/icons/Candlestick.d.cts +4 -0
- package/dist/components/Icon/icons/Candlestick.d.cts.map +1 -0
- package/dist/components/Icon/icons/Candlestick.d.mts +4 -0
- package/dist/components/Icon/icons/Candlestick.d.mts.map +1 -0
- package/dist/components/Icon/icons/Candlestick.mjs +7 -0
- package/dist/components/Icon/icons/Candlestick.mjs.map +1 -0
- package/dist/components/Icon/icons/Clear.cjs +32 -0
- package/dist/components/Icon/icons/Clear.cjs.map +1 -0
- package/dist/components/Icon/icons/Clear.d.cts +4 -0
- package/dist/components/Icon/icons/Clear.d.cts.map +1 -0
- package/dist/components/Icon/icons/Clear.d.mts +4 -0
- package/dist/components/Icon/icons/Clear.d.mts.map +1 -0
- package/dist/components/Icon/icons/Clear.mjs +7 -0
- package/dist/components/Icon/icons/Clear.mjs.map +1 -0
- package/dist/components/Icon/icons/Error.cjs +2 -2
- package/dist/components/Icon/icons/Error.cjs.map +1 -1
- package/dist/components/Icon/icons/Error.mjs +2 -2
- package/dist/components/Icon/icons/Error.mjs.map +1 -1
- package/dist/components/Icon/icons/HashTag.cjs +2 -2
- package/dist/components/Icon/icons/HashTag.cjs.map +1 -1
- package/dist/components/Icon/icons/HashTag.mjs +2 -2
- package/dist/components/Icon/icons/HashTag.mjs.map +1 -1
- package/dist/components/Icon/icons/MetamaskFoxOutline.cjs +32 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.cjs.map +1 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.d.cts +4 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.d.cts.map +1 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.d.mts +4 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.d.mts.map +1 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.mjs +7 -0
- package/dist/components/Icon/icons/MetamaskFoxOutline.mjs.map +1 -0
- package/dist/components/Icon/icons/index.cjs +10 -0
- package/dist/components/Icon/icons/index.cjs.map +1 -1
- package/dist/components/Icon/icons/index.d.cts +5 -0
- package/dist/components/Icon/icons/index.d.cts.map +1 -1
- package/dist/components/Icon/icons/index.d.mts +5 -0
- package/dist/components/Icon/icons/index.d.mts.map +1 -1
- package/dist/components/Icon/icons/index.mjs +10 -0
- package/dist/components/Icon/icons/index.mjs.map +1 -1
- package/dist/components/Text/Text.cjs +1 -1
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.constants.cjs +15 -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 +15 -0
- package/dist/components/Text/Text.constants.mjs.map +1 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts.map +1 -1
- package/dist/components/Text/Text.mjs +1 -1
- package/dist/components/Text/Text.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/index.cjs +4 -2
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.cts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.mts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.cjs +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.cjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.d.cts +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.d.cts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.d.mts +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.d.mts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.mjs +6 -3
- package/dist/components/temp-components/Jazzicon/Jazzicon.utilities.mjs.map +1 -1
- package/dist/types/index.cjs +148 -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 +147 -0
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/tw-merge.cjs +13 -5
- package/dist/utils/tw-merge.cjs.map +1 -1
- package/dist/utils/tw-merge.d.cts.map +1 -1
- package/dist/utils/tw-merge.d.mts.map +1 -1
- package/dist/utils/tw-merge.mjs +13 -5
- package/dist/utils/tw-merge.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -1,15 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
26
|
exports.Box = void 0;
|
|
7
|
-
const react_1 =
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
8
28
|
const tw_merge_1 = require("../../utils/tw-merge.cjs");
|
|
9
29
|
const Box_constants_1 = require("./Box.constants.cjs");
|
|
10
|
-
|
|
11
|
-
const mergedClassName = (0, tw_merge_1.twMerge)(flexDirection ? 'flex' : '', flexDirection, flexWrap, gap !== undefined ? Box_constants_1.TWCLASSMAP_BOX_GAP[gap] : '', alignItems, justifyContent,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
30
|
+
exports.Box = (0, react_1.forwardRef)(({ flexDirection, flexWrap, gap, alignItems, justifyContent, margin, marginTop, marginRight, marginBottom, marginLeft, marginHorizontal, marginVertical, padding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingHorizontal, paddingVertical, borderWidth, borderColor, backgroundColor, className = '', style, children, ...props }, ref) => {
|
|
31
|
+
const mergedClassName = (0, tw_merge_1.twMerge)(flexDirection ? 'flex' : '', flexDirection, flexWrap, gap !== undefined ? Box_constants_1.TWCLASSMAP_BOX_GAP[gap] : '', alignItems, justifyContent, margin !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN[margin] : '', marginTop !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_TOP[marginTop] : '', marginRight !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_RIGHT[marginRight] : '', marginBottom !== undefined
|
|
32
|
+
? Box_constants_1.TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom]
|
|
33
|
+
: '', marginLeft !== undefined ? Box_constants_1.TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : '', marginHorizontal !== undefined
|
|
34
|
+
? Box_constants_1.TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal]
|
|
35
|
+
: '', marginVertical !== undefined
|
|
36
|
+
? Box_constants_1.TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical]
|
|
37
|
+
: '', padding !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING[padding] : '', paddingTop !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : '', paddingRight !== undefined
|
|
38
|
+
? Box_constants_1.TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight]
|
|
39
|
+
: '', paddingBottom !== undefined
|
|
40
|
+
? Box_constants_1.TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom]
|
|
41
|
+
: '', paddingLeft !== undefined ? Box_constants_1.TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : '', paddingHorizontal !== undefined
|
|
42
|
+
? Box_constants_1.TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal]
|
|
43
|
+
: '', paddingVertical !== undefined
|
|
44
|
+
? Box_constants_1.TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical]
|
|
45
|
+
: '', borderWidth !== undefined ? Box_constants_1.TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : '', borderColor, backgroundColor, className);
|
|
46
|
+
return (react_1.default.createElement("div", { ref: ref, className: mergedClassName, style: style, ...props }, children));
|
|
47
|
+
});
|
|
48
|
+
exports.Box.displayName = 'Box';
|
|
15
49
|
//# sourceMappingURL=Box.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Box.cjs","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0C;AAE1C,uDAA+C;AAE/C,uDAiByB;AAGZ,QAAA,GAAG,GAAG,IAAA,kBAAU,EAC3B,CACE,EACE,aAAa,EACb,QAAQ,EACR,GAAG,EACH,UAAU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B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,EAC5D,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,0CAA0B,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,EACtE,YAAY,KAAK,SAAS;QACxB,CAAC,CAAC,4CAA4B,CAAC,YAAY,CAAC;QAC5C,CAAC,CAAC,EAAE,EACN,aAAa,KAAK,SAAS;QACzB,CAAC,CAAC,6CAA6B,CAAC,aAAa,CAAC;QAC9C,CAAC,CAAC,EAAE,EACN,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,2CAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,EACzE,iBAAiB,KAAK,SAAS;QAC7B,CAAC,CAAC,iDAAiC,CAAC,iBAAiB,CAAC;QACtD,CAAC,CAAC,EAAE,EACN,eAAe,KAAK,SAAS;QAC3B,CAAC,CAAC,+CAA+B,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,EAAE,EACN,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,2CAA2B,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,EACzE,WAAW,EACX,eAAe,EACf,SAAS,CACV,CAAC;IAEF,OAAO,CACL,uCAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,KAAM,KAAK,IAC/D,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,WAAG,CAAC,WAAW,GAAG,KAAK,CAAC","sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { twMerge } from '../../utils/tw-merge';\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 = forwardRef<HTMLDivElement, BoxProps>(\n (\n {\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 className = '',\n style,\n children,\n ...props\n }: BoxProps,\n ref,\n ) => {\n const mergedClassName = twMerge(\n flexDirection ? '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\n ? TWCLASSMAP_BOX_MARGIN_BOTTOM[marginBottom]\n : '',\n marginLeft !== undefined ? TWCLASSMAP_BOX_MARGIN_LEFT[marginLeft] : '',\n marginHorizontal !== undefined\n ? TWCLASSMAP_BOX_MARGIN_HORIZONTAL[marginHorizontal]\n : '',\n marginVertical !== undefined\n ? TWCLASSMAP_BOX_MARGIN_VERTICAL[marginVertical]\n : '',\n padding !== undefined ? TWCLASSMAP_BOX_PADDING[padding] : '',\n paddingTop !== undefined ? TWCLASSMAP_BOX_PADDING_TOP[paddingTop] : '',\n paddingRight !== undefined\n ? TWCLASSMAP_BOX_PADDING_RIGHT[paddingRight]\n : '',\n paddingBottom !== undefined\n ? TWCLASSMAP_BOX_PADDING_BOTTOM[paddingBottom]\n : '',\n paddingLeft !== undefined ? TWCLASSMAP_BOX_PADDING_LEFT[paddingLeft] : '',\n paddingHorizontal !== undefined\n ? TWCLASSMAP_BOX_PADDING_HORIZONTAL[paddingHorizontal]\n : '',\n paddingVertical !== undefined\n ? TWCLASSMAP_BOX_PADDING_VERTICAL[paddingVertical]\n : '',\n borderWidth !== undefined ? TWCLASSMAP_BOX_BORDER_WIDTH[borderWidth] : '',\n borderColor,\n backgroundColor,\n className,\n );\n\n return (\n <div ref={ref} className={mergedClassName} style={style} {...props}>\n {children}\n </div>\n );\n },\n);\n\nBox.displayName = 'Box';\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,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;CACb,CAAC;AAEW,QAAA,qBAAqB,GAA+B;IAC/D,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,CAAC,EAAE,KAAK;IACR,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;CACX,CAAC;AAEW,QAAA,yBAAyB,GAA+B;IACnE,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,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,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEW,QAAA,+BAA+B,GAA+B;IACzE,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,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,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;AA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|
|
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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AAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAA+B;IACzE,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,CAAC,EAAE,MAAM;IACT,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,EAAE,UAAU;IACb,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,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:
|
|
3
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
//# sourceMappingURL=Box.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Box.d.cts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,cAAc;AAsB1C,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAoB;AAE5C,eAAO,MAAM,GAAG,8FA+Ef,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { BoxProps } from "./Box.types.mjs";
|
|
3
|
-
export declare const Box:
|
|
3
|
+
export declare const Box: React.ForwardRefExoticComponent<Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
4
|
//# sourceMappingURL=Box.d.mts.map
|