@postenbring/hedwig-react 0.0.68 → 0.0.70
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/_tsup-dts-rollup.d.mts +27 -0
- package/dist/_tsup-dts-rollup.d.ts +27 -0
- package/dist/{chunk-XNA5MFJC.mjs → chunk-25R7DBK6.mjs} +3 -3
- package/dist/chunk-25R7DBK6.mjs.map +1 -0
- package/dist/{chunk-DIDVODBP.mjs → chunk-JDXYRFLJ.mjs} +2 -2
- package/dist/{chunk-QGZU7Z2W.mjs → chunk-VVPJOVFP.mjs} +27 -3
- package/dist/chunk-VVPJOVFP.mjs.map +1 -0
- package/dist/footer/footer.mjs +1 -1
- package/dist/footer/index.mjs +1 -1
- package/dist/index-no-css.js +28 -4
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +20 -20
- package/dist/index.js +28 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -20
- package/dist/layout/grid/grid.js +2 -2
- package/dist/layout/grid/grid.js.map +1 -1
- package/dist/layout/grid/grid.mjs +1 -1
- package/dist/layout/grid/index.js +2 -2
- package/dist/layout/grid/index.js.map +1 -1
- package/dist/layout/grid/index.mjs +2 -2
- package/dist/layout/index.js +28 -4
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +3 -3
- package/dist/layout/stack/index.js +26 -2
- package/dist/layout/stack/index.js.map +1 -1
- package/dist/layout/stack/index.mjs +1 -1
- package/dist/layout/stack/stack.js +26 -2
- package/dist/layout/stack/stack.js.map +1 -1
- package/dist/layout/stack/stack.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-QGZU7Z2W.mjs.map +0 -1
- package/dist/chunk-XNA5MFJC.mjs.map +0 -1
- /package/dist/{chunk-DIDVODBP.mjs.map → chunk-JDXYRFLJ.mjs.map} +0 -0
|
@@ -1007,8 +1007,18 @@ declare interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1007
1007
|
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1008
1008
|
*
|
|
1009
1009
|
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1010
|
+
*
|
|
1011
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1010
1012
|
*/
|
|
1011
1013
|
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1014
|
+
/**
|
|
1015
|
+
* Space between grid items horizontally
|
|
1016
|
+
*/
|
|
1017
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1018
|
+
/**
|
|
1019
|
+
* Space between grid items vertically
|
|
1020
|
+
*/
|
|
1021
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1012
1022
|
/**
|
|
1013
1023
|
* Column span for the grid items
|
|
1014
1024
|
*
|
|
@@ -1836,7 +1846,24 @@ export { Stack as Stack_alias_4 }
|
|
|
1836
1846
|
|
|
1837
1847
|
declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1838
1848
|
children: React_2.ReactNode;
|
|
1849
|
+
/**
|
|
1850
|
+
* Space between items. Both horizontal and vertical.
|
|
1851
|
+
*
|
|
1852
|
+
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1853
|
+
*
|
|
1854
|
+
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1855
|
+
*
|
|
1856
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1857
|
+
*/
|
|
1839
1858
|
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1859
|
+
/**
|
|
1860
|
+
* Space between items horizontally
|
|
1861
|
+
*/
|
|
1862
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1863
|
+
/**
|
|
1864
|
+
* Space between items vertically
|
|
1865
|
+
*/
|
|
1866
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1840
1867
|
direction?: ResponsiveProp<React_2.CSSProperties["flexDirection"]>;
|
|
1841
1868
|
wrap?: ResponsiveProp<boolean>;
|
|
1842
1869
|
align?: ResponsiveProp<React_2.CSSProperties["alignItems"]>;
|
|
@@ -1007,8 +1007,18 @@ declare interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1007
1007
|
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1008
1008
|
*
|
|
1009
1009
|
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1010
|
+
*
|
|
1011
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1010
1012
|
*/
|
|
1011
1013
|
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1014
|
+
/**
|
|
1015
|
+
* Space between grid items horizontally
|
|
1016
|
+
*/
|
|
1017
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1018
|
+
/**
|
|
1019
|
+
* Space between grid items vertically
|
|
1020
|
+
*/
|
|
1021
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1012
1022
|
/**
|
|
1013
1023
|
* Column span for the grid items
|
|
1014
1024
|
*
|
|
@@ -1836,7 +1846,24 @@ export { Stack as Stack_alias_4 }
|
|
|
1836
1846
|
|
|
1837
1847
|
declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1838
1848
|
children: React_2.ReactNode;
|
|
1849
|
+
/**
|
|
1850
|
+
* Space between items. Both horizontal and vertical.
|
|
1851
|
+
*
|
|
1852
|
+
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1853
|
+
*
|
|
1854
|
+
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1855
|
+
*
|
|
1856
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1857
|
+
*/
|
|
1839
1858
|
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1859
|
+
/**
|
|
1860
|
+
* Space between items horizontally
|
|
1861
|
+
*/
|
|
1862
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1863
|
+
/**
|
|
1864
|
+
* Space between items vertically
|
|
1865
|
+
*/
|
|
1866
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1840
1867
|
direction?: ResponsiveProp<React_2.CSSProperties["flexDirection"]>;
|
|
1841
1868
|
wrap?: ResponsiveProp<boolean>;
|
|
1842
1869
|
align?: ResponsiveProp<React_2.CSSProperties["alignItems"]>;
|
|
@@ -17,9 +17,9 @@ import { forwardRef } from "react";
|
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
var Grid = forwardRef(
|
|
19
19
|
(_a, ref) => {
|
|
20
|
-
var _b = _a, { children, asChild, className, span, center, style: _style, gap } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap"]);
|
|
20
|
+
var _b = _a, { children, asChild, className, span, center, style: _style, gap, gapX, gapY } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap", "gapX", "gapY"]);
|
|
21
21
|
const Component = asChild ? Slot : "div";
|
|
22
|
-
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
|
|
22
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
|
|
23
23
|
return /* @__PURE__ */ jsx(
|
|
24
24
|
Component,
|
|
25
25
|
__spreadProps(__spreadValues({
|
|
@@ -56,4 +56,4 @@ export {
|
|
|
56
56
|
Grid,
|
|
57
57
|
GridItem
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=chunk-
|
|
59
|
+
//# sourceMappingURL=chunk-25R7DBK6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/layout/grid/grid.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\nimport { getResponsiveProps, type ResponsiveProp } from \"../responsive\";\nimport { type SpacingSizes, type ResponsiveSpacingSizes, getSpacingVariable } from \"../spacing\";\n\nexport interface GridProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Space between grid items. Both horizontal and vertical.\n *\n * Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.\n *\n * Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.\n *\n * Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.\n */\n gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Space between grid items horizontally\n */\n gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Space between grid items vertically\n */\n gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Column span for the grid items\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center grid items horizontally\n *\n * Offsets the start position of the grid items relative to their span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean;\n}\n\n/**\n * 🚧 A simple opionated abstraction over CSS Grid.\n *\n * The grid is always a 12 column grid.\n *\n * example\n * ```tsx\n * <Grid gap=\"12-16\" span={{ small: 6 }}>\n * <div>6/12</div>\n * <div>6/12</div>\n * <Grid.Item span={{ small: 12 }}>12/12</Grid.Item>\n * <div>6/12</div>\n * <div>6/12</div>\n * </Grid>\n * ```\n */\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n (\n { children, asChild, className, span, center, style: _style, gap, gapX, gapY, ...rest },\n ref,\n ) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-gap\", gap, getSpacingVariable),\n ...getResponsiveProps(\"--hds-grid-gap-x\", gapX, getSpacingVariable),\n ...getResponsiveProps(\"--hds-grid-gap-y\", gapY, getSpacingVariable),\n ...getResponsiveProps(\"--hds-grid-span\", span),\n ...getResponsiveProps(\"--hds-grid-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = \"Grid\";\n\nexport interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Column span for the grid item\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center the grid item horizontally\n *\n * Offsets the start position of the grid item relative to it's span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean;\n}\n\n/**\n * 🚧 Grid.Item\n *\n * Use as the direct child of a `Grid` to override `span` and `center` for individual items.\n */\nexport const GridItem = forwardRef<HTMLDivElement, GridItemProps>(\n ({ children, asChild, className, span, center, style: _style, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-item-span\", span),\n ...getResponsiveProps(\"--hds-grid-item-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid__item\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGridItem.displayName = \"Grid.Item\";\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAqFrB;AAfC,IAAM,OAAO;AAAA,EAClB,CACE,IACA,QACG;AAFH,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,QAAQ,KAAK,MAAM,KA1E5E,IA0EI,IAAiF,iBAAjF,IAAiF,CAA/E,YAAU,WAAS,aAAW,QAAM,UAAQ,SAAe,OAAK,QAAM;AAGxE,UAAM,YAAY,UAAU,OAAO;AACnC,UAAM,QAA6B,8FAC9B,SACA,mBAAmB,kBAAkB,KAAK,kBAAkB,IAC5D,mBAAmB,oBAAoB,MAAM,kBAAkB,IAC/D,mBAAmB,oBAAoB,MAAM,kBAAkB,IAC/D,mBAAmB,mBAAmB,IAAI,IAC1C,mBAAmB,qBAAqB,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAEnF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,YAAY,SAAsB;AAAA,QAClD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;AAoCZ,IAAM,WAAW;AAAA,EACtB,CAAC,IAAwE,QAAQ;AAAhF,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,OAvIxD,IAuIG,IAAgE,iBAAhE,IAAgE,CAA9D,YAAU,WAAS,aAAW,QAAM,UAAQ;AAC7C,UAAM,YAAY,UAAU,OAAO;AACnC,UAAM,QAA6B,iDAC9B,SACA,mBAAmB,wBAAwB,IAAI,IAC/C,mBAAmB,0BAA0B,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAExF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,kBAAkB,SAAsB;AAAA,QACxD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Grid,
|
|
3
3
|
GridItem
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-25R7DBK6.mjs";
|
|
5
5
|
|
|
6
6
|
// src/layout/grid/index.tsx
|
|
7
7
|
var GridComponent = Grid;
|
|
@@ -10,4 +10,4 @@ GridComponent.Item = GridItem;
|
|
|
10
10
|
export {
|
|
11
11
|
GridComponent
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=chunk-
|
|
13
|
+
//# sourceMappingURL=chunk-JDXYRFLJ.mjs.map
|
|
@@ -18,9 +18,33 @@ import { Slot } from "@radix-ui/react-slot";
|
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
19
|
var Stack = forwardRef(
|
|
20
20
|
(_a, ref) => {
|
|
21
|
-
var _b = _a, {
|
|
21
|
+
var _b = _a, {
|
|
22
|
+
children,
|
|
23
|
+
asChild,
|
|
24
|
+
className,
|
|
25
|
+
style: _style,
|
|
26
|
+
gap,
|
|
27
|
+
gapX,
|
|
28
|
+
gapY,
|
|
29
|
+
direction,
|
|
30
|
+
wrap,
|
|
31
|
+
align,
|
|
32
|
+
justify
|
|
33
|
+
} = _b, rest = __objRest(_b, [
|
|
34
|
+
"children",
|
|
35
|
+
"asChild",
|
|
36
|
+
"className",
|
|
37
|
+
"style",
|
|
38
|
+
"gap",
|
|
39
|
+
"gapX",
|
|
40
|
+
"gapY",
|
|
41
|
+
"direction",
|
|
42
|
+
"wrap",
|
|
43
|
+
"align",
|
|
44
|
+
"justify"
|
|
45
|
+
]);
|
|
22
46
|
const Component = asChild ? Slot : "div";
|
|
23
|
-
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
|
|
47
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
|
|
24
48
|
return /* @__PURE__ */ jsx(
|
|
25
49
|
Component,
|
|
26
50
|
__spreadProps(__spreadValues({
|
|
@@ -48,4 +72,4 @@ export {
|
|
|
48
72
|
HStack,
|
|
49
73
|
VStack
|
|
50
74
|
};
|
|
51
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-VVPJOVFP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/layout/stack/stack.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { getSpacingVariable, type ResponsiveSpacingSizes, type SpacingSizes } from \"../spacing\";\nimport { getResponsiveProps, type ResponsiveProp } from \"../responsive\";\n\ntype CSSPropertiesWithVar = React.CSSProperties & {\n \"--hds-stack-gap\"?: string;\n \"--hds-stack-direction\"?: string;\n \"--hds-stack-wrap\"?: string;\n \"--hds-stack-align\"?: string;\n \"--hds-stack-justify\"?: string;\n};\n\nexport interface StackProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Space between items. Both horizontal and vertical.\n *\n * Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.\n *\n * Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.\n *\n * Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.\n */\n gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Space between items horizontally\n */\n gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Space between items vertically\n */\n gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n direction?: ResponsiveProp<React.CSSProperties[\"flexDirection\"]>;\n wrap?: ResponsiveProp<boolean>;\n align?: ResponsiveProp<React.CSSProperties[\"alignItems\"]>;\n justify?: ResponsiveProp<React.CSSProperties[\"justifyContent\"]>;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean;\n}\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n children,\n asChild,\n className,\n style: _style,\n gap,\n gapX,\n gapY,\n direction,\n wrap,\n align,\n justify,\n ...rest\n },\n ref,\n ) => {\n const Component = asChild ? Slot : \"div\";\n const style: CSSPropertiesWithVar = {\n ..._style,\n ...getResponsiveProps(\"--hds-stack-gap\", gap, getSpacingVariable),\n ...getResponsiveProps(\"--hds-stack-gap-x\", gapX, getSpacingVariable),\n ...getResponsiveProps(\"--hds-stack-gap-y\", gapY, getSpacingVariable),\n ...getResponsiveProps(\"--hds-stack-direction\", direction),\n ...getResponsiveProps(\"--hds-stack-wrap\", wrap, (value) => (value ? \"wrap\" : \"nowrap\")),\n ...getResponsiveProps(\"--hds-stack-align\", align),\n ...getResponsiveProps(\"--hds-stack-justify\", justify),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-stack\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nStack.displayName = \"Stack\";\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const HStack = forwardRef<HTMLDivElement, Omit<StackProps, \"direction\">>((props, ref) => {\n return <Stack ref={ref} {...props} direction=\"row\" />;\n});\nHStack.displayName = \"HStack\";\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const VStack = forwardRef<HTMLDivElement, Omit<StackProps, \"direction\">>((props, ref) => {\n return <Stack ref={ref} {...props} direction=\"column\" />;\n});\nVStack.displayName = \"VStack\";\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAuB;AACvB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAqFf;AA9BC,IAAM,QAAQ;AAAA,EACnB,CACE,IAcA,QACG;AAfH,iBACE;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAvEN,IA4DI,IAYK,iBAZL,IAYK;AAAA,MAXH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,YAAY,UAAU,OAAO;AACnC,UAAM,QAA8B,4HAC/B,SACA,mBAAmB,mBAAmB,KAAK,kBAAkB,IAC7D,mBAAmB,qBAAqB,MAAM,kBAAkB,IAChE,mBAAmB,qBAAqB,MAAM,kBAAkB,IAChE,mBAAmB,yBAAyB,SAAS,IACrD,mBAAmB,oBAAoB,MAAM,CAAC,UAAW,QAAQ,SAAS,QAAS,IACnF,mBAAmB,qBAAqB,KAAK,IAC7C,mBAAmB,uBAAuB,OAAO;AAEtD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,aAAa,SAAsB;AAAA,QACnD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,MAAM,cAAc;AAUb,IAAM,SAAS,WAA0D,CAAC,OAAO,QAAQ;AAC9F,SAAO,oBAAC,sCAAM,OAAc,QAApB,EAA2B,WAAU,QAAM;AACrD,CAAC;AACD,OAAO,cAAc;AAUd,IAAM,SAAS,WAA0D,CAAC,OAAO,QAAQ;AAC9F,SAAO,oBAAC,sCAAM,OAAc,QAApB,EAA2B,WAAU,WAAS;AACxD,CAAC;AACD,OAAO,cAAc;","names":[]}
|
package/dist/footer/footer.mjs
CHANGED
|
@@ -9,11 +9,11 @@ import "../chunk-GJDRW6PA.mjs";
|
|
|
9
9
|
import "../chunk-PMLDK3VC.mjs";
|
|
10
10
|
import "../chunk-HT2EIJAD.mjs";
|
|
11
11
|
import "../chunk-XYIY6FHW.mjs";
|
|
12
|
-
import "../chunk-OUHO4LGN.mjs";
|
|
13
12
|
import "../chunk-GUB3UCXO.mjs";
|
|
14
13
|
import "../chunk-YXHXRUFX.mjs";
|
|
15
14
|
import "../chunk-62F4I3MQ.mjs";
|
|
16
15
|
import "../chunk-VRIY65P5.mjs";
|
|
16
|
+
import "../chunk-OUHO4LGN.mjs";
|
|
17
17
|
import "../chunk-V3PAFMK5.mjs";
|
|
18
18
|
import "../chunk-R4SQKVDQ.mjs";
|
|
19
19
|
export {
|
package/dist/footer/index.mjs
CHANGED
|
@@ -11,11 +11,11 @@ import "../chunk-GJDRW6PA.mjs";
|
|
|
11
11
|
import "../chunk-PMLDK3VC.mjs";
|
|
12
12
|
import "../chunk-HT2EIJAD.mjs";
|
|
13
13
|
import "../chunk-XYIY6FHW.mjs";
|
|
14
|
-
import "../chunk-OUHO4LGN.mjs";
|
|
15
14
|
import "../chunk-GUB3UCXO.mjs";
|
|
16
15
|
import "../chunk-YXHXRUFX.mjs";
|
|
17
16
|
import "../chunk-62F4I3MQ.mjs";
|
|
18
17
|
import "../chunk-VRIY65P5.mjs";
|
|
18
|
+
import "../chunk-OUHO4LGN.mjs";
|
|
19
19
|
import "../chunk-V3PAFMK5.mjs";
|
|
20
20
|
import "../chunk-R4SQKVDQ.mjs";
|
|
21
21
|
export {
|
package/dist/index-no-css.js
CHANGED
|
@@ -1337,9 +1337,9 @@ function getSpacingVariable(size) {
|
|
|
1337
1337
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1338
1338
|
var Grid = (0, import_react21.forwardRef)(
|
|
1339
1339
|
(_a, ref) => {
|
|
1340
|
-
var _b = _a, { children, asChild, className, span, center, style: _style, gap } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap"]);
|
|
1340
|
+
var _b = _a, { children, asChild, className, span, center, style: _style, gap, gapX, gapY } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap", "gapX", "gapY"]);
|
|
1341
1341
|
const Component = asChild ? import_react_slot2.Slot : "div";
|
|
1342
|
-
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
|
|
1342
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-grid-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
|
|
1343
1343
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1344
1344
|
Component,
|
|
1345
1345
|
__spreadProps(__spreadValues({
|
|
@@ -1384,9 +1384,33 @@ var import_react_slot3 = require("@radix-ui/react-slot");
|
|
|
1384
1384
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1385
1385
|
var Stack = (0, import_react22.forwardRef)(
|
|
1386
1386
|
(_a, ref) => {
|
|
1387
|
-
var _b = _a, {
|
|
1387
|
+
var _b = _a, {
|
|
1388
|
+
children,
|
|
1389
|
+
asChild,
|
|
1390
|
+
className,
|
|
1391
|
+
style: _style,
|
|
1392
|
+
gap,
|
|
1393
|
+
gapX,
|
|
1394
|
+
gapY,
|
|
1395
|
+
direction,
|
|
1396
|
+
wrap,
|
|
1397
|
+
align,
|
|
1398
|
+
justify
|
|
1399
|
+
} = _b, rest = __objRest(_b, [
|
|
1400
|
+
"children",
|
|
1401
|
+
"asChild",
|
|
1402
|
+
"className",
|
|
1403
|
+
"style",
|
|
1404
|
+
"gap",
|
|
1405
|
+
"gapX",
|
|
1406
|
+
"gapY",
|
|
1407
|
+
"direction",
|
|
1408
|
+
"wrap",
|
|
1409
|
+
"align",
|
|
1410
|
+
"justify"
|
|
1411
|
+
]);
|
|
1388
1412
|
const Component = asChild ? import_react_slot3.Slot : "div";
|
|
1389
|
-
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
|
|
1413
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-x", gapX, getSpacingVariable)), getResponsiveProps("--hds-stack-gap-y", gapY, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
|
|
1390
1414
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1391
1415
|
Component,
|
|
1392
1416
|
__spreadProps(__spreadValues({
|