@veeqo/ui 14.3.0-beta-9 → 14.3.0-beta-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Stack/Stack.cjs +4 -1
- package/dist/components/Stack/Stack.cjs.map +1 -1
- package/dist/components/Stack/Stack.js +4 -1
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stack/Stack.module.scss.cjs +2 -2
- package/dist/components/Stack/Stack.module.scss.cjs.map +1 -1
- package/dist/components/Stack/Stack.module.scss.js +2 -2
- package/dist/components/Stack/Stack.module.scss.js.map +1 -1
- package/package.json +1 -1
|
@@ -21,6 +21,9 @@ const Stack = React__default.default.forwardRef(({ direction = 'vertical', align
|
|
|
21
21
|
const justifyContentKey = isVertical ? alignY : alignX;
|
|
22
22
|
const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';
|
|
23
23
|
const spacingValue = index.theme.sizes[spacing];
|
|
24
|
+
const spacingStyle = isVertical
|
|
25
|
+
? { rowGap: spacingValue }
|
|
26
|
+
: { columnGap: spacingValue };
|
|
24
27
|
return (React__default.default.createElement(Element, { className: buildClassnames.buildClassnames([
|
|
25
28
|
Stack_module.base,
|
|
26
29
|
Stack_module[`${direction}-direction`],
|
|
@@ -29,7 +32,7 @@ const Stack = React__default.default.forwardRef(({ direction = 'vertical', align
|
|
|
29
32
|
isStretch ? Stack_module['stretch-children'] : undefined,
|
|
30
33
|
className,
|
|
31
34
|
]), style: {
|
|
32
|
-
|
|
35
|
+
...spacingStyle,
|
|
33
36
|
...style,
|
|
34
37
|
}, ref: ref, ...rest }, children));
|
|
35
38
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.cjs","sources":["../../../src/components/Stack/Stack.tsx"],"sourcesContent":["import React from 'react';\n\nimport { StackProps } from './types';\n\nimport { theme } from '../../theme';\nimport { buildClassnames } from '../../utils';\nimport styles from './Stack.module.scss';\n\n/**\n * @deprecated Replaced by {@link FlexCol} and {@link FlexRow}.\n * Layout component.\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = 'vertical',\n alignX = 'start',\n alignY = 'start',\n spacing = 'base',\n as = 'div',\n forwardedAs,\n className,\n children,\n style,\n ...rest\n },\n ref,\n ) => {\n const Element = forwardedAs || as;\n const isVertical = direction === 'vertical';\n\n const alignItemsKey = isVertical ? alignX : alignY;\n const justifyContentKey = isVertical ? alignY : alignX;\n\n const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';\n\n const spacingValue = theme.sizes[spacing];\n\n return (\n <Element\n className={buildClassnames([\n styles.base,\n styles[`${direction}-direction`],\n styles[`alignItems-${alignItemsKey}`],\n styles[`justifyContent-${justifyContentKey}`],\n isStretch ? styles['stretch-children'] : undefined,\n className,\n ])}\n style={{\n
|
|
1
|
+
{"version":3,"file":"Stack.cjs","sources":["../../../src/components/Stack/Stack.tsx"],"sourcesContent":["import React from 'react';\n\nimport { StackProps } from './types';\n\nimport { theme } from '../../theme';\nimport { buildClassnames } from '../../utils';\nimport styles from './Stack.module.scss';\n\n/**\n * @deprecated Replaced by {@link FlexCol} and {@link FlexRow}.\n * Layout component.\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = 'vertical',\n alignX = 'start',\n alignY = 'start',\n spacing = 'base',\n as = 'div',\n forwardedAs,\n className,\n children,\n style,\n ...rest\n },\n ref,\n ) => {\n const Element = forwardedAs || as;\n const isVertical = direction === 'vertical';\n\n const alignItemsKey = isVertical ? alignX : alignY;\n const justifyContentKey = isVertical ? alignY : alignX;\n\n const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';\n\n const spacingValue = theme.sizes[spacing];\n\n const spacingStyle = isVertical\n ? { rowGap: spacingValue }\n : { columnGap: spacingValue };\n\n return (\n <Element\n className={buildClassnames([\n styles.base,\n styles[`${direction}-direction`],\n styles[`alignItems-${alignItemsKey}`],\n styles[`justifyContent-${justifyContentKey}`],\n isStretch ? styles['stretch-children'] : undefined,\n className,\n ])}\n style={{\n ...spacingStyle,\n ...style,\n }}\n ref={ref}\n {...rest}\n >\n {children}\n </Element>\n );\n },\n);\n\nStack.displayName = 'Stack';\n"],"names":["React","theme","buildClassnames","styles"],"mappings":";;;;;;;;;;;;AAQA;;;AAGG;MACU,KAAK,GAAGA,sBAAK,CAAC,UAAU,CACnC,CACE,EACE,SAAS,GAAG,UAAU,EACtB,MAAM,GAAG,OAAO,EAChB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,MAAM,EAChB,EAAE,GAAG,KAAK,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EACD,GAAG,KACD;AACF,IAAA,MAAM,OAAO,GAAG,WAAW,IAAI,EAAE;AACjC,IAAA,MAAM,UAAU,GAAG,SAAS,KAAK,UAAU;IAE3C,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM;IAClD,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM;AAEtD,IAAA,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,KAAK,SAAS,GAAG,MAAM,KAAK,SAAS;IAE1E,MAAM,YAAY,GAAGC,WAAK,CAAC,KAAK,CAAC,OAAO,CAAC;IAEzC,MAAM,YAAY,GAAG;AACnB,UAAE,EAAE,MAAM,EAAE,YAAY;AACxB,UAAE,EAAE,SAAS,EAAE,YAAY,EAAE;AAE/B,IAAA,QACED,sBAAA,CAAA,aAAA,CAAC,OAAO,IACN,SAAS,EAAEE,+BAAe,CAAC;AACzB,YAAAC,YAAM,CAAC,IAAI;AACX,YAAAA,YAAM,CAAC,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,CAAC;AAChC,YAAAA,YAAM,CAAC,CAAA,WAAA,EAAc,aAAa,CAAA,CAAE,CAAC;AACrC,YAAAA,YAAM,CAAC,CAAA,eAAA,EAAkB,iBAAiB,CAAA,CAAE,CAAC;YAC7C,SAAS,GAAGA,YAAM,CAAC,kBAAkB,CAAC,GAAG,SAAS;YAClD,SAAS;SACV,CAAC,EACF,KAAK,EAAE;AACL,YAAA,GAAG,YAAY;AACf,YAAA,GAAG,KAAK;SACT,EACD,GAAG,EAAE,GAAG,EAAA,GACJ,IAAI,EAAA,EAEP,QAAQ,CACD;AAEd,CAAC;AAGH,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
|
|
@@ -15,6 +15,9 @@ const Stack = React__default.forwardRef(({ direction = 'vertical', alignX = 'sta
|
|
|
15
15
|
const justifyContentKey = isVertical ? alignY : alignX;
|
|
16
16
|
const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';
|
|
17
17
|
const spacingValue = theme.sizes[spacing];
|
|
18
|
+
const spacingStyle = isVertical
|
|
19
|
+
? { rowGap: spacingValue }
|
|
20
|
+
: { columnGap: spacingValue };
|
|
18
21
|
return (React__default.createElement(Element, { className: buildClassnames([
|
|
19
22
|
styles.base,
|
|
20
23
|
styles[`${direction}-direction`],
|
|
@@ -23,7 +26,7 @@ const Stack = React__default.forwardRef(({ direction = 'vertical', alignX = 'sta
|
|
|
23
26
|
isStretch ? styles['stretch-children'] : undefined,
|
|
24
27
|
className,
|
|
25
28
|
]), style: {
|
|
26
|
-
|
|
29
|
+
...spacingStyle,
|
|
27
30
|
...style,
|
|
28
31
|
}, ref: ref, ...rest }, children));
|
|
29
32
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sources":["../../../src/components/Stack/Stack.tsx"],"sourcesContent":["import React from 'react';\n\nimport { StackProps } from './types';\n\nimport { theme } from '../../theme';\nimport { buildClassnames } from '../../utils';\nimport styles from './Stack.module.scss';\n\n/**\n * @deprecated Replaced by {@link FlexCol} and {@link FlexRow}.\n * Layout component.\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = 'vertical',\n alignX = 'start',\n alignY = 'start',\n spacing = 'base',\n as = 'div',\n forwardedAs,\n className,\n children,\n style,\n ...rest\n },\n ref,\n ) => {\n const Element = forwardedAs || as;\n const isVertical = direction === 'vertical';\n\n const alignItemsKey = isVertical ? alignX : alignY;\n const justifyContentKey = isVertical ? alignY : alignX;\n\n const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';\n\n const spacingValue = theme.sizes[spacing];\n\n return (\n <Element\n className={buildClassnames([\n styles.base,\n styles[`${direction}-direction`],\n styles[`alignItems-${alignItemsKey}`],\n styles[`justifyContent-${justifyContentKey}`],\n isStretch ? styles['stretch-children'] : undefined,\n className,\n ])}\n style={{\n
|
|
1
|
+
{"version":3,"file":"Stack.js","sources":["../../../src/components/Stack/Stack.tsx"],"sourcesContent":["import React from 'react';\n\nimport { StackProps } from './types';\n\nimport { theme } from '../../theme';\nimport { buildClassnames } from '../../utils';\nimport styles from './Stack.module.scss';\n\n/**\n * @deprecated Replaced by {@link FlexCol} and {@link FlexRow}.\n * Layout component.\n */\nexport const Stack = React.forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = 'vertical',\n alignX = 'start',\n alignY = 'start',\n spacing = 'base',\n as = 'div',\n forwardedAs,\n className,\n children,\n style,\n ...rest\n },\n ref,\n ) => {\n const Element = forwardedAs || as;\n const isVertical = direction === 'vertical';\n\n const alignItemsKey = isVertical ? alignX : alignY;\n const justifyContentKey = isVertical ? alignY : alignX;\n\n const isStretch = isVertical ? alignY === 'stretch' : alignX === 'stretch';\n\n const spacingValue = theme.sizes[spacing];\n\n const spacingStyle = isVertical\n ? { rowGap: spacingValue }\n : { columnGap: spacingValue };\n\n return (\n <Element\n className={buildClassnames([\n styles.base,\n styles[`${direction}-direction`],\n styles[`alignItems-${alignItemsKey}`],\n styles[`justifyContent-${justifyContentKey}`],\n isStretch ? styles['stretch-children'] : undefined,\n className,\n ])}\n style={{\n ...spacingStyle,\n ...style,\n }}\n ref={ref}\n {...rest}\n >\n {children}\n </Element>\n );\n },\n);\n\nStack.displayName = 'Stack';\n"],"names":["React"],"mappings":";;;;;;AAQA;;;AAGG;MACU,KAAK,GAAGA,cAAK,CAAC,UAAU,CACnC,CACE,EACE,SAAS,GAAG,UAAU,EACtB,MAAM,GAAG,OAAO,EAChB,MAAM,GAAG,OAAO,EAChB,OAAO,GAAG,MAAM,EAChB,EAAE,GAAG,KAAK,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EACD,GAAG,KACD;AACF,IAAA,MAAM,OAAO,GAAG,WAAW,IAAI,EAAE;AACjC,IAAA,MAAM,UAAU,GAAG,SAAS,KAAK,UAAU;IAE3C,MAAM,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM;IAClD,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM;AAEtD,IAAA,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,KAAK,SAAS,GAAG,MAAM,KAAK,SAAS;IAE1E,MAAM,YAAY,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;IAEzC,MAAM,YAAY,GAAG;AACnB,UAAE,EAAE,MAAM,EAAE,YAAY;AACxB,UAAE,EAAE,SAAS,EAAE,YAAY,EAAE;AAE/B,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,OAAO,IACN,SAAS,EAAE,eAAe,CAAC;AACzB,YAAA,MAAM,CAAC,IAAI;AACX,YAAA,MAAM,CAAC,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,CAAC;AAChC,YAAA,MAAM,CAAC,CAAA,WAAA,EAAc,aAAa,CAAA,CAAE,CAAC;AACrC,YAAA,MAAM,CAAC,CAAA,eAAA,EAAkB,iBAAiB,CAAA,CAAE,CAAC;YAC7C,SAAS,GAAG,MAAM,CAAC,kBAAkB,CAAC,GAAG,SAAS;YAClD,SAAS;SACV,CAAC,EACF,KAAK,EAAE;AACL,YAAA,GAAG,YAAY;AACf,YAAA,GAAG,KAAK;SACT,EACD,GAAG,EAAE,GAAG,EAAA,GACJ,IAAI,EAAA,EAEP,QAAQ,CACD;AAEd,CAAC;AAGH,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
|
|
4
4
|
|
|
5
|
-
___$insertStyle(".
|
|
6
|
-
var styles = {"base":"
|
|
5
|
+
___$insertStyle("._base_109hi_1 {\n display: flex;\n}\n\n/* Direction classes */\n._vertical-direction_109hi_6 {\n flex-direction: column;\n}\n\n._horizontal-direction_109hi_10 {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n._alignItems-start_109hi_15 {\n align-items: flex-start;\n}\n\n._alignItems-center_109hi_19 {\n align-items: center;\n}\n\n._alignItems-end_109hi_23 {\n align-items: flex-end;\n}\n\n._alignItems-stretch_109hi_27 {\n align-items: stretch;\n}\n\n._alignItems-between_109hi_31 {\n align-items: space-between;\n}\n\n._alignItems-around_109hi_35 {\n align-items: space-around;\n}\n\n._justifyContent-start_109hi_39 {\n justify-content: flex-start;\n}\n\n._justifyContent-center_109hi_43 {\n justify-content: center;\n}\n\n._justifyContent-end_109hi_47 {\n justify-content: flex-end;\n}\n\n._justifyContent-stretch_109hi_51 {\n justify-content: stretch;\n}\n\n._justifyContent-between_109hi_55 {\n justify-content: space-between;\n}\n\n._justifyContent-around_109hi_59 {\n justify-content: space-around;\n}\n\n/* Spacing is applied via row-gap / column-gap as an inline style on the\n container (see Stack.tsx). gap is resolved on the parent element, so nested\n Stacks cannot shadow each other's spacing values.\n Direct children (except the first) have the specific directional margin\n reset that the old SC rule `&& > * + * { margin-top/left }` controlled.\n Only the margin that Stack historically set is reset; other margins\n (e.g., margin-bottom, margin-right) are left untouched. */\n._base_109hi_1._vertical-direction_109hi_6 > * + * {\n margin-top: 0;\n}\n\n._base_109hi_1._horizontal-direction_109hi_10 > * + * {\n margin-left: 0;\n}\n\n/* Stretch modifier: child items get flex: 1 */\n._stretch-children_109hi_79 > * {\n flex: 1;\n}");
|
|
6
|
+
var styles = {"base":"_base_109hi_1","vertical-direction":"_vertical-direction_109hi_6","horizontal-direction":"_horizontal-direction_109hi_10","alignItems-start":"_alignItems-start_109hi_15","alignItems-center":"_alignItems-center_109hi_19","alignItems-end":"_alignItems-end_109hi_23","alignItems-stretch":"_alignItems-stretch_109hi_27","alignItems-between":"_alignItems-between_109hi_31","alignItems-around":"_alignItems-around_109hi_35","justifyContent-start":"_justifyContent-start_109hi_39","justifyContent-center":"_justifyContent-center_109hi_43","justifyContent-end":"_justifyContent-end_109hi_47","justifyContent-stretch":"_justifyContent-stretch_109hi_51","justifyContent-between":"_justifyContent-between_109hi_55","justifyContent-around":"_justifyContent-around_109hi_59","stretch-children":"_stretch-children_109hi_79"};
|
|
7
7
|
|
|
8
8
|
module.exports = styles;
|
|
9
9
|
//# sourceMappingURL=Stack.module.scss.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.module.scss.cjs","sources":["../../../src/components/Stack/Stack.module.scss"],"sourcesContent":["@use './variables.scss' as vars;\n\n.base {\n display: flex;\n}\n\n/* Direction classes */\n.vertical-direction {\n flex-direction: column;\n}\n\n.horizontal-direction {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n@each $name, $value in vars.$align-items {\n .alignItems-#{$name} {\n align-items: $value;\n }\n}\n\n@each $name, $value in vars.$justify-content {\n .justifyContent-#{$name} {\n justify-content: $value;\n }\n}\n\n/* Spacing is applied via
|
|
1
|
+
{"version":3,"file":"Stack.module.scss.cjs","sources":["../../../src/components/Stack/Stack.module.scss"],"sourcesContent":["@use './variables.scss' as vars;\n\n.base {\n display: flex;\n}\n\n/* Direction classes */\n.vertical-direction {\n flex-direction: column;\n}\n\n.horizontal-direction {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n@each $name, $value in vars.$align-items {\n .alignItems-#{$name} {\n align-items: $value;\n }\n}\n\n@each $name, $value in vars.$justify-content {\n .justifyContent-#{$name} {\n justify-content: $value;\n }\n}\n\n/* Spacing is applied via row-gap / column-gap as an inline style on the\n container (see Stack.tsx). gap is resolved on the parent element, so nested\n Stacks cannot shadow each other's spacing values.\n Direct children (except the first) have the specific directional margin\n reset that the old SC rule `&& > * + * { margin-top/left }` controlled.\n Only the margin that Stack historically set is reset; other margins\n (e.g., margin-bottom, margin-right) are left untouched. */\n.base.vertical-direction > * + * {\n margin-top: 0;\n}\n\n.base.horizontal-direction > * + * {\n margin-left: 0;\n}\n\n/* Stretch modifier: child items get flex: 1 */\n.stretch-children > * {\n flex: 1;\n}\n"],"names":[],"mappings":";;;;AAGE,eAAA,CAAA,0wDAAA;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import insertStyle from '../../_virtual/____insertStyle.js';
|
|
2
2
|
|
|
3
|
-
insertStyle(".
|
|
4
|
-
var styles = {"base":"
|
|
3
|
+
insertStyle("._base_109hi_1 {\n display: flex;\n}\n\n/* Direction classes */\n._vertical-direction_109hi_6 {\n flex-direction: column;\n}\n\n._horizontal-direction_109hi_10 {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n._alignItems-start_109hi_15 {\n align-items: flex-start;\n}\n\n._alignItems-center_109hi_19 {\n align-items: center;\n}\n\n._alignItems-end_109hi_23 {\n align-items: flex-end;\n}\n\n._alignItems-stretch_109hi_27 {\n align-items: stretch;\n}\n\n._alignItems-between_109hi_31 {\n align-items: space-between;\n}\n\n._alignItems-around_109hi_35 {\n align-items: space-around;\n}\n\n._justifyContent-start_109hi_39 {\n justify-content: flex-start;\n}\n\n._justifyContent-center_109hi_43 {\n justify-content: center;\n}\n\n._justifyContent-end_109hi_47 {\n justify-content: flex-end;\n}\n\n._justifyContent-stretch_109hi_51 {\n justify-content: stretch;\n}\n\n._justifyContent-between_109hi_55 {\n justify-content: space-between;\n}\n\n._justifyContent-around_109hi_59 {\n justify-content: space-around;\n}\n\n/* Spacing is applied via row-gap / column-gap as an inline style on the\n container (see Stack.tsx). gap is resolved on the parent element, so nested\n Stacks cannot shadow each other's spacing values.\n Direct children (except the first) have the specific directional margin\n reset that the old SC rule `&& > * + * { margin-top/left }` controlled.\n Only the margin that Stack historically set is reset; other margins\n (e.g., margin-bottom, margin-right) are left untouched. */\n._base_109hi_1._vertical-direction_109hi_6 > * + * {\n margin-top: 0;\n}\n\n._base_109hi_1._horizontal-direction_109hi_10 > * + * {\n margin-left: 0;\n}\n\n/* Stretch modifier: child items get flex: 1 */\n._stretch-children_109hi_79 > * {\n flex: 1;\n}");
|
|
4
|
+
var styles = {"base":"_base_109hi_1","vertical-direction":"_vertical-direction_109hi_6","horizontal-direction":"_horizontal-direction_109hi_10","alignItems-start":"_alignItems-start_109hi_15","alignItems-center":"_alignItems-center_109hi_19","alignItems-end":"_alignItems-end_109hi_23","alignItems-stretch":"_alignItems-stretch_109hi_27","alignItems-between":"_alignItems-between_109hi_31","alignItems-around":"_alignItems-around_109hi_35","justifyContent-start":"_justifyContent-start_109hi_39","justifyContent-center":"_justifyContent-center_109hi_43","justifyContent-end":"_justifyContent-end_109hi_47","justifyContent-stretch":"_justifyContent-stretch_109hi_51","justifyContent-between":"_justifyContent-between_109hi_55","justifyContent-around":"_justifyContent-around_109hi_59","stretch-children":"_stretch-children_109hi_79"};
|
|
5
5
|
|
|
6
6
|
export { styles as default };
|
|
7
7
|
//# sourceMappingURL=Stack.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.module.scss.js","sources":["../../../src/components/Stack/Stack.module.scss"],"sourcesContent":["@use './variables.scss' as vars;\n\n.base {\n display: flex;\n}\n\n/* Direction classes */\n.vertical-direction {\n flex-direction: column;\n}\n\n.horizontal-direction {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n@each $name, $value in vars.$align-items {\n .alignItems-#{$name} {\n align-items: $value;\n }\n}\n\n@each $name, $value in vars.$justify-content {\n .justifyContent-#{$name} {\n justify-content: $value;\n }\n}\n\n/* Spacing is applied via
|
|
1
|
+
{"version":3,"file":"Stack.module.scss.js","sources":["../../../src/components/Stack/Stack.module.scss"],"sourcesContent":["@use './variables.scss' as vars;\n\n.base {\n display: flex;\n}\n\n/* Direction classes */\n.vertical-direction {\n flex-direction: column;\n}\n\n.horizontal-direction {\n flex-direction: row;\n}\n\n/* Alignment classes from SCSS maps */\n@each $name, $value in vars.$align-items {\n .alignItems-#{$name} {\n align-items: $value;\n }\n}\n\n@each $name, $value in vars.$justify-content {\n .justifyContent-#{$name} {\n justify-content: $value;\n }\n}\n\n/* Spacing is applied via row-gap / column-gap as an inline style on the\n container (see Stack.tsx). gap is resolved on the parent element, so nested\n Stacks cannot shadow each other's spacing values.\n Direct children (except the first) have the specific directional margin\n reset that the old SC rule `&& > * + * { margin-top/left }` controlled.\n Only the margin that Stack historically set is reset; other margins\n (e.g., margin-bottom, margin-right) are left untouched. */\n.base.vertical-direction > * + * {\n margin-top: 0;\n}\n\n.base.horizontal-direction > * + * {\n margin-left: 0;\n}\n\n/* Stretch modifier: child items get flex: 1 */\n.stretch-children > * {\n flex: 1;\n}\n"],"names":["___$insertStyle"],"mappings":";;AAGEA,WAAA,CAAA,0wDAAA;;;;;"}
|