@mittwald/flow-react-components 0.2.0-alpha.172 → 0.2.0-alpha.173
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
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0-alpha.173](https://github.com/mittwald/flow/compare/0.2.0-alpha.172...0.2.0-alpha.173) (2025-05-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **Flex:** default values for align and justify ([#1435](https://github.com/mittwald/flow/issues/1435)) ([a81563a](https://github.com/mittwald/flow/commit/a81563aa034da98f25ed0e1be2777bc4be0bd146))
|
|
11
|
+
|
|
6
12
|
# [0.2.0-alpha.172](https://github.com/mittwald/flow/compare/0.2.0-alpha.171...0.2.0-alpha.172) (2025-05-07)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.mjs","sources":["../../../../../../src/components/Flex/Flex.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport type {\n PropsWithClassName,\n PropsWithElementType,\n} from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./Flex.module.scss\";\n\nexport interface FlexProps\n extends PropsWithChildren,\n PropsWithClassName,\n PropsWithElementType<\n | \"div\"\n | \"aside\"\n | \"ul\"\n | \"li\"\n | \"ol\"\n | \"section\"\n | \"main\"\n | \"span\"\n | \"p\"\n | \"footer\"\n | \"header\"\n > {\n /** The flexDirection value of the element. @default \"row\" */\n direction?: CSSProperties[\"flexDirection\"];\n /** The alignItems value of the element. @default \"start\" */\n align?: \"start\" | \"end\" | \"center\";\n /** The justifyContent value of the element. @default \"start\" */\n justify?: \"start\" | \"end\" | \"center\";\n /** The gap size of the element. */\n gap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The columnGap size of the element. */\n columnGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The rowGap size of the element. */\n rowGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** Whether the element should grow. */\n grow?: boolean;\n /** The flexWrap value of the element. @default \"nowrap\" */\n wrap?: CSSProperties[\"flexWrap\"];\n /** The padding of the element. */\n padding?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding top of the element. */\n paddingTop?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding bottom of the element. */\n paddingBottom?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding left of the element. */\n paddingLeft?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding right of the element. */\n paddingRight?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n}\n\n/** @flr-generate all */\nexport const Flex: FC<FlexProps> = (props) => {\n const {\n children,\n className,\n direction = \"row\",\n align
|
|
1
|
+
{"version":3,"file":"Flex.mjs","sources":["../../../../../../src/components/Flex/Flex.tsx"],"sourcesContent":["import type { CSSProperties, FC, PropsWithChildren } from \"react\";\nimport type {\n PropsWithClassName,\n PropsWithElementType,\n} from \"@/lib/types/props\";\nimport clsx from \"clsx\";\nimport styles from \"./Flex.module.scss\";\n\nexport interface FlexProps\n extends PropsWithChildren,\n PropsWithClassName,\n PropsWithElementType<\n | \"div\"\n | \"aside\"\n | \"ul\"\n | \"li\"\n | \"ol\"\n | \"section\"\n | \"main\"\n | \"span\"\n | \"p\"\n | \"footer\"\n | \"header\"\n > {\n /** The flexDirection value of the element. @default \"row\" */\n direction?: CSSProperties[\"flexDirection\"];\n /** The alignItems value of the element. @default \"start\" */\n align?: \"start\" | \"end\" | \"center\";\n /** The justifyContent value of the element. @default \"start\" */\n justify?: \"start\" | \"end\" | \"center\";\n /** The gap size of the element. */\n gap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The columnGap size of the element. */\n columnGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The rowGap size of the element. */\n rowGap?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** Whether the element should grow. */\n grow?: boolean;\n /** The flexWrap value of the element. @default \"nowrap\" */\n wrap?: CSSProperties[\"flexWrap\"];\n /** The padding of the element. */\n padding?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding top of the element. */\n paddingTop?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding bottom of the element. */\n paddingBottom?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding left of the element. */\n paddingLeft?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n /** The padding right of the element. */\n paddingRight?: \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n}\n\n/** @flr-generate all */\nexport const Flex: FC<FlexProps> = (props) => {\n const {\n children,\n className,\n direction = \"row\",\n align,\n justify,\n gap,\n columnGap,\n rowGap,\n grow,\n wrap = \"nowrap\",\n padding,\n paddingTop,\n paddingBottom,\n paddingLeft,\n paddingRight,\n elementType = \"div\",\n } = props;\n\n const rootClassName = clsx(styles.flex, className);\n\n const Element = elementType;\n\n return (\n <Element\n className={rootClassName}\n style={{\n flexDirection: direction,\n alignItems:\n align === \"end\"\n ? \"flex-end\"\n : align === \"start\"\n ? \"flex-start\"\n : align,\n justifyContent:\n justify === \"end\"\n ? \"flex-end\"\n : justify === \"start\"\n ? \"flex-start\"\n : justify,\n\n columnGap: columnGap\n ? `var(--size-px--${columnGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n rowGap: rowGap\n ? `var(--size-px--${rowGap})`\n : gap\n ? `var(--size-px--${gap})`\n : undefined,\n flexGrow: grow ? 1 : undefined,\n flexWrap: wrap,\n paddingTop: paddingTop\n ? `var(--size-px--${paddingTop})`\n : padding\n ? `var(--size-px--${padding})`\n : undefined,\n paddingBottom: paddingBottom\n ? `var(--size-px--${paddingBottom})`\n : padding\n ? `var(--size-px--${padding})`\n : undefined,\n paddingLeft: paddingLeft\n ? `var(--size-px--${paddingLeft})`\n : padding\n ? `var(--size-px--${padding})`\n : undefined,\n paddingRight: paddingRight\n ? `var(--size-px--${paddingRight})`\n : padding\n ? `var(--size-px--${padding})`\n : undefined,\n }}\n >\n {children}\n </Element>\n );\n};\nexport default Flex;\n"],"names":[],"mappings":";;;;AAqDa,MAAA,IAAA,GAAsB,CAAC,KAAU,KAAA;AAC5C,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAY,GAAA,KAAA;AAAA,IACZ,KAAA;AAAA,IACA,OAAA;AAAA,IACA,GAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,IAAA;AAAA,IACA,IAAO,GAAA,QAAA;AAAA,IACP,OAAA;AAAA,IACA,UAAA;AAAA,IACA,aAAA;AAAA,IACA,WAAA;AAAA,IACA,YAAA;AAAA,IACA,WAAc,GAAA;AAAA,GACZ,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,IAAA,EAAM,SAAS,CAAA;AAEjD,EAAA,MAAM,OAAU,GAAA,WAAA;AAEhB,EACE,uBAAA,GAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACX,KAAO,EAAA;AAAA,QACL,aAAe,EAAA,SAAA;AAAA,QACf,YACE,KAAU,KAAA,KAAA,GACN,UACA,GAAA,KAAA,KAAU,UACR,YACA,GAAA,KAAA;AAAA,QACR,gBACE,OAAY,KAAA,KAAA,GACR,UACA,GAAA,OAAA,KAAY,UACV,YACA,GAAA,OAAA;AAAA,QAER,SAAA,EAAW,YACP,CAAkB,eAAA,EAAA,SAAS,MAC3B,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,MAAA,EAAQ,SACJ,CAAkB,eAAA,EAAA,MAAM,MACxB,GACE,GAAA,CAAA,eAAA,EAAkB,GAAG,CACrB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,QAAA,EAAU,OAAO,CAAI,GAAA,MAAA;AAAA,QACrB,QAAU,EAAA,IAAA;AAAA,QACV,UAAA,EAAY,aACR,CAAkB,eAAA,EAAA,UAAU,MAC5B,OACE,GAAA,CAAA,eAAA,EAAkB,OAAO,CACzB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,aAAA,EAAe,gBACX,CAAkB,eAAA,EAAA,aAAa,MAC/B,OACE,GAAA,CAAA,eAAA,EAAkB,OAAO,CACzB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,WAAA,EAAa,cACT,CAAkB,eAAA,EAAA,WAAW,MAC7B,OACE,GAAA,CAAA,eAAA,EAAkB,OAAO,CACzB,CAAA,CAAA,GAAA,MAAA;AAAA,QACN,YAAA,EAAc,eACV,CAAkB,eAAA,EAAA,YAAY,MAC9B,OACE,GAAA,CAAA,eAAA,EAAkB,OAAO,CACzB,CAAA,CAAA,GAAA;AAAA,OACR;AAAA,MAEC;AAAA;AAAA,GACH;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mittwald/flow-react-components",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.173",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A React implementation of Flow, mittwald’s design system",
|
|
6
6
|
"homepage": "https://mittwald.github.io/flow",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@chakra-ui/live-region": "^2.1.0",
|
|
55
55
|
"@internationalized/string-compiler": "^3.2.6",
|
|
56
|
-
"@mittwald/react-tunnel": "0.2.0-alpha.
|
|
56
|
+
"@mittwald/react-tunnel": "0.2.0-alpha.173",
|
|
57
57
|
"@mittwald/react-use-promise": "^3.0.4",
|
|
58
58
|
"@react-aria/form": "^3.0.14",
|
|
59
59
|
"@react-aria/utils": "^3.28.1",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@faker-js/faker": "^9.6.0",
|
|
94
94
|
"@internationalized/date": "^3.7.0",
|
|
95
|
-
"@mittwald/flow-design-tokens": "0.2.0-alpha.
|
|
95
|
+
"@mittwald/flow-design-tokens": "0.2.0-alpha.173",
|
|
96
96
|
"@mittwald/react-use-promise": "^2.6.0",
|
|
97
97
|
"@mittwald/remote-dom-react": "1.2.2-mittwald.3",
|
|
98
98
|
"@mittwald/typescript-config": "",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"optional": true
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "46eaeb137e386d7eb27b871265e6a25af4de000a"
|
|
177
177
|
}
|