@mirohq/design-system-flex 2.1.16 → 2.1.18-themes.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/dist/main.js +7 -4
- package/dist/main.js.map +1 -1
- package/dist/module.js +7 -4
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +121 -110
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -27,6 +27,9 @@ const StyledFlex = designSystemStitches.styled(designSystemPrimitive.Primitive.d
|
|
|
27
27
|
},
|
|
28
28
|
stretch: {
|
|
29
29
|
alignItems: "stretch"
|
|
30
|
+
},
|
|
31
|
+
baseline: {
|
|
32
|
+
alignItems: "baseline"
|
|
30
33
|
}
|
|
31
34
|
},
|
|
32
35
|
direction: {
|
|
@@ -44,11 +47,11 @@ const StyledFlex = designSystemStitches.styled(designSystemPrimitive.Primitive.d
|
|
|
44
47
|
}
|
|
45
48
|
},
|
|
46
49
|
gap: designSystemUtils.mapKeysToVariants(designSystemStitches.theme["space-gap"], (key) => ({
|
|
47
|
-
gap:
|
|
48
|
-
[
|
|
49
|
-
margin:
|
|
50
|
+
gap: "$".concat(key),
|
|
51
|
+
["@supports not(gap: ".concat(key, ")")]: {
|
|
52
|
+
margin: "calc($".concat(key, " / 2 * -1)"),
|
|
50
53
|
"> *": {
|
|
51
|
-
margin:
|
|
54
|
+
margin: "calc($".concat(key, " / 2)")
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
})),
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/flex.styled.ts","../src/flex.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport { mapKeysToVariants } from '@mirohq/design-system-utils'\n\nexport const StyledFlex = styled(Primitive.div, {\n display: 'flex',\n variants: {\n align: {\n start: {\n alignItems: 'flex-start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'flex-end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n },\n direction: {\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], key => ({\n gap: `$${key}`,\n [`@supports not(gap: ${key})`]: {\n margin: `calc($${key} / 2 * -1)`,\n '> *': {\n margin: `calc($${key} / 2)`,\n },\n },\n })),\n justify: {\n start: {\n justifyContent: 'flex-start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'flex-end',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n wrap: {\n noWrap: {\n flexWrap: 'nowrap',\n },\n wrap: {\n flexWrap: 'wrap',\n },\n wrapReverse: {\n flexWrap: 'wrap-reverse',\n },\n },\n },\n})\n\nexport type StyledFlexProps = ComponentPropsWithRef<typeof StyledFlex>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledFlex } from './flex.styled'\nimport type { StyledFlexProps } from './flex.styled'\n\nexport interface FlexProps extends StyledFlexProps {\n /**\n * Defines how elements are aligned along the cross axis.\n **/\n align?: StyledFlexProps['align']\n\n /**\n * Defines the direction of flex items that are placed in the flex container.\n */\n direction?: StyledFlexProps['direction']\n\n /**\n * Explicitly controls the space between flex items.\n */\n gap?: keyof typeof theme['space-gap']\n\n /**\n * Defines how elements are aligned along the main axis. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n **/\n justify?: StyledFlexProps['justify']\n\n /**\n * Lets the items wrap onto multiple lines if needed.\n */\n wrap?: StyledFlexProps['wrap']\n}\n\nexport const Flex = React.forwardRef<ElementRef<typeof StyledFlex>, FlexProps>(\n (props, forwardRef) => <StyledFlex {...props} ref={forwardRef} />\n)\n"],"names":["styled","Primitive","mapKeysToVariants","theme","React","jsx"],"mappings":";;;;;;;;;;;;;;AAKa,MAAA,UAAA,GAAaA,2BAAO,CAAAC,+BAAA,CAAU,GAAK,EAAA;AAAA,EAC9C,OAAS,EAAA,MAAA;AAAA,EACT,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,KAAO,EAAA;AAAA,QACL,UAAY,EAAA,YAAA;AAAA,OACd;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,UAAY,EAAA,QAAA;AAAA,OACd;AAAA,MACA,GAAK,EAAA;AAAA,QACH,UAAY,EAAA,UAAA;AAAA,OACd;AAAA,MACA,OAAS,EAAA;AAAA,QACP,UAAY,EAAA,SAAA;AAAA,OACd;AAAA,KACF;AAAA,IACA,SAAW,EAAA;AAAA,MACT,GAAK,EAAA;AAAA,QACH,aAAe,EAAA,KAAA;AAAA,OACjB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,aAAe,EAAA,QAAA;AAAA,OACjB;AAAA,MACA,UAAY,EAAA;AAAA,QACV,aAAe,EAAA,aAAA;AAAA,OACjB;AAAA,MACA,aAAe,EAAA;AAAA,QACb,aAAe,EAAA,gBAAA;AAAA,OACjB;AAAA,KACF;AAAA,IACA,GAAK,EAAAC,mCAAA,CAAkBC,0BAAM,CAAA,WAAW,GAAG,CAAQ,GAAA,MAAA;AAAA,MACjD,KAAK,
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/flex.styled.ts","../src/flex.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport { mapKeysToVariants } from '@mirohq/design-system-utils'\n\nexport const StyledFlex = styled(Primitive.div, {\n display: 'flex',\n variants: {\n align: {\n start: {\n alignItems: 'flex-start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'flex-end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n baseline: {\n alignItems: 'baseline',\n },\n },\n direction: {\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], key => ({\n gap: `$${key}`,\n [`@supports not(gap: ${key})`]: {\n margin: `calc($${key} / 2 * -1)`,\n '> *': {\n margin: `calc($${key} / 2)`,\n },\n },\n })),\n justify: {\n start: {\n justifyContent: 'flex-start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'flex-end',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n wrap: {\n noWrap: {\n flexWrap: 'nowrap',\n },\n wrap: {\n flexWrap: 'wrap',\n },\n wrapReverse: {\n flexWrap: 'wrap-reverse',\n },\n },\n },\n})\n\nexport type StyledFlexProps = ComponentPropsWithRef<typeof StyledFlex>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledFlex } from './flex.styled'\nimport type { StyledFlexProps } from './flex.styled'\n\nexport interface FlexProps extends StyledFlexProps {\n /**\n * Defines how elements are aligned along the cross axis.\n **/\n align?: StyledFlexProps['align']\n\n /**\n * Defines the direction of flex items that are placed in the flex container.\n */\n direction?: StyledFlexProps['direction']\n\n /**\n * Explicitly controls the space between flex items.\n */\n gap?: keyof typeof theme['space-gap']\n\n /**\n * Defines how elements are aligned along the main axis. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n **/\n justify?: StyledFlexProps['justify']\n\n /**\n * Lets the items wrap onto multiple lines if needed.\n */\n wrap?: StyledFlexProps['wrap']\n}\n\nexport const Flex = React.forwardRef<ElementRef<typeof StyledFlex>, FlexProps>(\n (props, forwardRef) => <StyledFlex {...props} ref={forwardRef} />\n)\n"],"names":["styled","Primitive","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OAAS,EAAA;AAAA,MACP,KAAO,EAAA;AAAA,QACL,cAAgB,EAAA,YAAA;AAAA,OAClB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,cAAgB,EAAA,QAAA;AAAA,OAClB;AAAA,MACA,GAAK,EAAA;AAAA,QACH,cAAgB,EAAA,UAAA;AAAA,OAClB;AAAA,MACA,OAAS,EAAA;AAAA,QACP,cAAgB,EAAA,eAAA;AAAA,OAClB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,cAAgB,EAAA,cAAA;AAAA,OAClB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,cAAgB,EAAA,cAAA;AAAA,OAClB;AAAA,KACF;AAAA,IACA,IAAM,EAAA;AAAA,MACJ,MAAQ,EAAA;AAAA,QACN,QAAU,EAAA,QAAA;AAAA,OACZ;AAAA,MACA,IAAM,EAAA;AAAA,QACJ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,WAAa,EAAA;AAAA,QACX,QAAU,EAAA,cAAA;AAAA,OACZ;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;AC7CM,MAAM,OAAOC,yBAAM,CAAA,UAAA;AAAA,EACxB,CAAC,OAAO,UAAe,qBAAAC,cAAA,CAAC,cAAY,GAAG,KAAA,EAAO,KAAK,UAAY,EAAA,CAAA;AACjE;;;;"}
|
package/dist/module.js
CHANGED
|
@@ -19,6 +19,9 @@ const StyledFlex = styled(Primitive.div, {
|
|
|
19
19
|
},
|
|
20
20
|
stretch: {
|
|
21
21
|
alignItems: "stretch"
|
|
22
|
+
},
|
|
23
|
+
baseline: {
|
|
24
|
+
alignItems: "baseline"
|
|
22
25
|
}
|
|
23
26
|
},
|
|
24
27
|
direction: {
|
|
@@ -36,11 +39,11 @@ const StyledFlex = styled(Primitive.div, {
|
|
|
36
39
|
}
|
|
37
40
|
},
|
|
38
41
|
gap: mapKeysToVariants(theme["space-gap"], (key) => ({
|
|
39
|
-
gap:
|
|
40
|
-
[
|
|
41
|
-
margin:
|
|
42
|
+
gap: "$".concat(key),
|
|
43
|
+
["@supports not(gap: ".concat(key, ")")]: {
|
|
44
|
+
margin: "calc($".concat(key, " / 2 * -1)"),
|
|
42
45
|
"> *": {
|
|
43
|
-
margin:
|
|
46
|
+
margin: "calc($".concat(key, " / 2)")
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
})),
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/flex.styled.ts","../src/flex.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport { mapKeysToVariants } from '@mirohq/design-system-utils'\n\nexport const StyledFlex = styled(Primitive.div, {\n display: 'flex',\n variants: {\n align: {\n start: {\n alignItems: 'flex-start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'flex-end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n },\n direction: {\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], key => ({\n gap: `$${key}`,\n [`@supports not(gap: ${key})`]: {\n margin: `calc($${key} / 2 * -1)`,\n '> *': {\n margin: `calc($${key} / 2)`,\n },\n },\n })),\n justify: {\n start: {\n justifyContent: 'flex-start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'flex-end',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n wrap: {\n noWrap: {\n flexWrap: 'nowrap',\n },\n wrap: {\n flexWrap: 'wrap',\n },\n wrapReverse: {\n flexWrap: 'wrap-reverse',\n },\n },\n },\n})\n\nexport type StyledFlexProps = ComponentPropsWithRef<typeof StyledFlex>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledFlex } from './flex.styled'\nimport type { StyledFlexProps } from './flex.styled'\n\nexport interface FlexProps extends StyledFlexProps {\n /**\n * Defines how elements are aligned along the cross axis.\n **/\n align?: StyledFlexProps['align']\n\n /**\n * Defines the direction of flex items that are placed in the flex container.\n */\n direction?: StyledFlexProps['direction']\n\n /**\n * Explicitly controls the space between flex items.\n */\n gap?: keyof typeof theme['space-gap']\n\n /**\n * Defines how elements are aligned along the main axis. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n **/\n justify?: StyledFlexProps['justify']\n\n /**\n * Lets the items wrap onto multiple lines if needed.\n */\n wrap?: StyledFlexProps['wrap']\n}\n\nexport const Flex = React.forwardRef<ElementRef<typeof StyledFlex>, FlexProps>(\n (props, forwardRef) => <StyledFlex {...props} ref={forwardRef} />\n)\n"],"names":[],"mappings":";;;;;;AAKa,MAAA,UAAA,GAAa,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EAC9C,OAAS,EAAA,MAAA;AAAA,EACT,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,KAAO,EAAA;AAAA,QACL,UAAY,EAAA,YAAA;AAAA,OACd;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,UAAY,EAAA,QAAA;AAAA,OACd;AAAA,MACA,GAAK,EAAA;AAAA,QACH,UAAY,EAAA,UAAA;AAAA,OACd;AAAA,MACA,OAAS,EAAA;AAAA,QACP,UAAY,EAAA,SAAA;AAAA,OACd;AAAA,KACF;AAAA,IACA,SAAW,EAAA;AAAA,MACT,GAAK,EAAA;AAAA,QACH,aAAe,EAAA,KAAA;AAAA,OACjB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,aAAe,EAAA,QAAA;AAAA,OACjB;AAAA,MACA,UAAY,EAAA;AAAA,QACV,aAAe,EAAA,aAAA;AAAA,OACjB;AAAA,MACA,aAAe,EAAA;AAAA,QACb,aAAe,EAAA,gBAAA;AAAA,OACjB;AAAA,KACF;AAAA,IACA,GAAK,EAAA,iBAAA,CAAkB,KAAM,CAAA,WAAW,GAAG,CAAQ,GAAA,MAAA;AAAA,MACjD,KAAK,
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/flex.styled.ts","../src/flex.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled, theme } from '@mirohq/design-system-stitches'\nimport { mapKeysToVariants } from '@mirohq/design-system-utils'\n\nexport const StyledFlex = styled(Primitive.div, {\n display: 'flex',\n variants: {\n align: {\n start: {\n alignItems: 'flex-start',\n },\n center: {\n alignItems: 'center',\n },\n end: {\n alignItems: 'flex-end',\n },\n stretch: {\n alignItems: 'stretch',\n },\n baseline: {\n alignItems: 'baseline',\n },\n },\n direction: {\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n rowReverse: {\n flexDirection: 'row-reverse',\n },\n columnReverse: {\n flexDirection: 'column-reverse',\n },\n },\n gap: mapKeysToVariants(theme['space-gap'], key => ({\n gap: `$${key}`,\n [`@supports not(gap: ${key})`]: {\n margin: `calc($${key} / 2 * -1)`,\n '> *': {\n margin: `calc($${key} / 2)`,\n },\n },\n })),\n justify: {\n start: {\n justifyContent: 'flex-start',\n },\n center: {\n justifyContent: 'center',\n },\n end: {\n justifyContent: 'flex-end',\n },\n between: {\n justifyContent: 'space-between',\n },\n around: {\n justifyContent: 'space-around',\n },\n evenly: {\n justifyContent: 'space-evenly',\n },\n },\n wrap: {\n noWrap: {\n flexWrap: 'nowrap',\n },\n wrap: {\n flexWrap: 'wrap',\n },\n wrapReverse: {\n flexWrap: 'wrap-reverse',\n },\n },\n },\n})\n\nexport type StyledFlexProps = ComponentPropsWithRef<typeof StyledFlex>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport type { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledFlex } from './flex.styled'\nimport type { StyledFlexProps } from './flex.styled'\n\nexport interface FlexProps extends StyledFlexProps {\n /**\n * Defines how elements are aligned along the cross axis.\n **/\n align?: StyledFlexProps['align']\n\n /**\n * Defines the direction of flex items that are placed in the flex container.\n */\n direction?: StyledFlexProps['direction']\n\n /**\n * Explicitly controls the space between flex items.\n */\n gap?: keyof typeof theme['space-gap']\n\n /**\n * Defines how elements are aligned along the main axis. It uses the\n * [space](/?path=/docs/foundation-spacing--page)\n **/\n justify?: StyledFlexProps['justify']\n\n /**\n * Lets the items wrap onto multiple lines if needed.\n */\n wrap?: StyledFlexProps['wrap']\n}\n\nexport const Flex = React.forwardRef<ElementRef<typeof StyledFlex>, FlexProps>(\n (props, forwardRef) => <StyledFlex {...props} ref={forwardRef} />\n)\n"],"names":[],"mappings":";;;;;;AAKa,MAAA,UAAA,GAAa,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EAC9C,OAAS,EAAA,MAAA;AAAA,EACT,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,KAAO,EAAA;AAAA,QACL,UAAY,EAAA,YAAA;AAAA,OACd;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,UAAY,EAAA,QAAA;AAAA,OACd;AAAA,MACA,GAAK,EAAA;AAAA,QACH,UAAY,EAAA,UAAA;AAAA,OACd;AAAA,MACA,OAAS,EAAA;AAAA,QACP,UAAY,EAAA,SAAA;AAAA,OACd;AAAA,MACA,QAAU,EAAA;AAAA,QACR,UAAY,EAAA,UAAA;AAAA,OACd;AAAA,KACF;AAAA,IACA,SAAW,EAAA;AAAA,MACT,GAAK,EAAA;AAAA,QACH,aAAe,EAAA,KAAA;AAAA,OACjB;AAAA,MACA,MAAQ,EAAA;AAAA,QACN,aAAe,EAAA,QAAA;AAAA,OACjB;AAAA,MACA,UAAY,EAAA;AAAA,QACV,aAAe,EAAA,aAAA;AAAA,OACjB;AAAA,MACA,aAAe,EAAA;AAAA,QACb,aAAe,EAAA,gBAAA;AAAA,OACjB;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AAA,CAAA;AACjE;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ import * as _stitches_react_types_css_util from '@stitches/react/types/css-util'
|
|
|
7
7
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
8
8
|
|
|
9
9
|
declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
10
|
-
align?: "stretch" | "center" | "start" | "end" | undefined;
|
|
10
|
+
align?: "stretch" | "center" | "start" | "end" | "baseline" | undefined;
|
|
11
11
|
direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
|
|
12
12
|
gap?: 0 | 200 | 50 | 100 | 300 | "0" | "100" | "200" | "300" | "50" | undefined;
|
|
13
13
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | undefined;
|
|
14
14
|
wrap?: "wrap" | "noWrap" | "wrapReverse" | undefined;
|
|
15
15
|
}, "direction" | "gap" | "wrap" | "align" | "justify"> & _stitches_react_types_styled_component.TransformProps<{
|
|
16
|
-
align?: "stretch" | "center" | "start" | "end" | undefined;
|
|
16
|
+
align?: "stretch" | "center" | "start" | "end" | "baseline" | undefined;
|
|
17
17
|
direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
|
|
18
18
|
gap?: 0 | 200 | 50 | 100 | 300 | "0" | "100" | "200" | "300" | "50" | undefined;
|
|
19
19
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | undefined;
|
|
@@ -31,6 +31,7 @@ declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
31
31
|
readonly lg: "4px";
|
|
32
32
|
};
|
|
33
33
|
colors: {
|
|
34
|
+
readonly black: any;
|
|
34
35
|
readonly 'blue-100': any;
|
|
35
36
|
readonly 'blue-200': any;
|
|
36
37
|
readonly 'blue-300': any;
|
|
@@ -50,6 +51,15 @@ declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
50
51
|
readonly 'gray-700': any;
|
|
51
52
|
readonly 'gray-800': any;
|
|
52
53
|
readonly 'gray-900': any;
|
|
54
|
+
readonly 'green-100': any;
|
|
55
|
+
readonly 'green-200': any;
|
|
56
|
+
readonly 'green-300': any;
|
|
57
|
+
readonly 'green-400': any;
|
|
58
|
+
readonly 'green-500': any;
|
|
59
|
+
readonly 'green-600': any;
|
|
60
|
+
readonly 'green-700': any;
|
|
61
|
+
readonly 'green-800': any;
|
|
62
|
+
readonly 'green-900': any;
|
|
53
63
|
readonly 'indigo-100': any;
|
|
54
64
|
readonly 'indigo-200': any;
|
|
55
65
|
readonly 'indigo-300': any;
|
|
@@ -68,6 +78,8 @@ declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
68
78
|
readonly 'red-700': any;
|
|
69
79
|
readonly 'red-800': any;
|
|
70
80
|
readonly 'red-900': any;
|
|
81
|
+
readonly transparent: any;
|
|
82
|
+
readonly white: any;
|
|
71
83
|
readonly 'yellow-100': any;
|
|
72
84
|
readonly 'yellow-200': any;
|
|
73
85
|
readonly 'yellow-300': any;
|
|
@@ -77,113 +89,112 @@ declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
77
89
|
readonly 'yellow-700': any;
|
|
78
90
|
readonly 'yellow-800': any;
|
|
79
91
|
readonly 'yellow-900': any;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
readonly 'border-warning'?: any;
|
|
92
|
+
"background-alpha-active"?: any;
|
|
93
|
+
"background-alpha-hover"?: any;
|
|
94
|
+
"background-danger-prominent"?: any;
|
|
95
|
+
"background-danger-prominent-active"?: any;
|
|
96
|
+
"background-danger-prominent-hover"?: any;
|
|
97
|
+
"background-danger-subtle"?: any;
|
|
98
|
+
"background-danger-subtle-active"?: any;
|
|
99
|
+
"background-danger-subtle-hover"?: any;
|
|
100
|
+
"background-neutrals"?: any;
|
|
101
|
+
"background-neutrals-active"?: any;
|
|
102
|
+
"background-neutrals-container"?: any;
|
|
103
|
+
"background-neutrals-controls-disabled"?: any;
|
|
104
|
+
"background-neutrals-disabled"?: any;
|
|
105
|
+
"background-neutrals-hover"?: any;
|
|
106
|
+
"background-neutrals-inactive"?: any;
|
|
107
|
+
"background-neutrals-inactive-hover"?: any;
|
|
108
|
+
"background-neutrals-inverted"?: any;
|
|
109
|
+
"background-neutrals-inverted-subtle"?: any;
|
|
110
|
+
"background-neutrals-page"?: any;
|
|
111
|
+
"background-neutrals-page-subtle"?: any;
|
|
112
|
+
"background-neutrals-scrolls"?: any;
|
|
113
|
+
"background-neutrals-scrolls-hover"?: any;
|
|
114
|
+
"background-neutrals-subtle"?: any;
|
|
115
|
+
"background-neutrals-subtle-active"?: any;
|
|
116
|
+
"background-neutrals-subtle-hover"?: any;
|
|
117
|
+
"background-primary-prominent"?: any;
|
|
118
|
+
"background-primary-prominent-active"?: any;
|
|
119
|
+
"background-primary-prominent-hover"?: any;
|
|
120
|
+
"background-primary-prominent-selected"?: any;
|
|
121
|
+
"background-primary-subtle"?: any;
|
|
122
|
+
"background-primary-subtle-active"?: any;
|
|
123
|
+
"background-primary-subtle-hover"?: any;
|
|
124
|
+
"background-primary-subtle-selected"?: any;
|
|
125
|
+
"background-success"?: any;
|
|
126
|
+
"background-warning-prominent"?: any;
|
|
127
|
+
"background-warning-subtle"?: any;
|
|
128
|
+
"border-danger"?: any;
|
|
129
|
+
"border-danger-active"?: any;
|
|
130
|
+
"border-danger-hover"?: any;
|
|
131
|
+
"border-focus-inner"?: any;
|
|
132
|
+
"border-focus-middle"?: any;
|
|
133
|
+
"border-focus-outer"?: any;
|
|
134
|
+
"border-neutrals"?: any;
|
|
135
|
+
"border-neutrals-active"?: any;
|
|
136
|
+
"border-neutrals-controls"?: any;
|
|
137
|
+
"border-neutrals-controls-disabled"?: any;
|
|
138
|
+
"border-neutrals-disabled"?: any;
|
|
139
|
+
"border-neutrals-hover"?: any;
|
|
140
|
+
"border-neutrals-inverted"?: any;
|
|
141
|
+
"border-neutrals-subtle"?: any;
|
|
142
|
+
"border-neutrals-text"?: any;
|
|
143
|
+
"border-neutrals-text-active"?: any;
|
|
144
|
+
"border-neutrals-text-hover"?: any;
|
|
145
|
+
"border-neutrals-text-subtle"?: any;
|
|
146
|
+
"border-neutrals-text-subtle-active"?: any;
|
|
147
|
+
"border-neutrals-text-subtle-hover"?: any;
|
|
148
|
+
"border-neutrals-transparent"?: any;
|
|
149
|
+
"border-primary"?: any;
|
|
150
|
+
"border-primary-active"?: any;
|
|
151
|
+
"border-primary-hover"?: any;
|
|
152
|
+
"border-primary-inverted"?: any;
|
|
153
|
+
"border-success"?: any;
|
|
154
|
+
"border-warning"?: any;
|
|
155
|
+
"icon-danger"?: any;
|
|
156
|
+
"icon-danger-active"?: any;
|
|
157
|
+
"icon-danger-hover"?: any;
|
|
158
|
+
"icon-danger-inverted"?: any;
|
|
159
|
+
"icon-neutrals"?: any;
|
|
160
|
+
"icon-neutrals-disabled"?: any;
|
|
161
|
+
"icon-neutrals-inactive"?: any;
|
|
162
|
+
"icon-neutrals-inactive-hover"?: any;
|
|
163
|
+
"icon-neutrals-inverted"?: any;
|
|
164
|
+
"icon-neutrals-search"?: any;
|
|
165
|
+
"icon-neutrals-subtle"?: any;
|
|
166
|
+
"icon-neutrals-text"?: any;
|
|
167
|
+
"icon-primary"?: any;
|
|
168
|
+
"icon-primary-active"?: any;
|
|
169
|
+
"icon-primary-hover"?: any;
|
|
170
|
+
"icon-primary-inverted"?: any;
|
|
171
|
+
"icon-primary-selected"?: any;
|
|
172
|
+
"icon-success"?: any;
|
|
173
|
+
"icon-success-inverted"?: any;
|
|
174
|
+
"icon-warning"?: any;
|
|
175
|
+
"icon-warning-prominent"?: any;
|
|
176
|
+
"text-danger"?: any;
|
|
177
|
+
"text-danger-active"?: any;
|
|
178
|
+
"text-danger-hover"?: any;
|
|
179
|
+
"text-danger-inverted"?: any;
|
|
180
|
+
"text-neutrals"?: any;
|
|
181
|
+
"text-neutrals-active"?: any;
|
|
182
|
+
"text-neutrals-disabled"?: any;
|
|
183
|
+
"text-neutrals-hover"?: any;
|
|
184
|
+
"text-neutrals-inverted"?: any;
|
|
185
|
+
"text-neutrals-placeholder"?: any;
|
|
186
|
+
"text-neutrals-placeholder-only"?: any;
|
|
187
|
+
"text-neutrals-subtle"?: any;
|
|
188
|
+
"text-neutrals-subtle-active"?: any;
|
|
189
|
+
"text-neutrals-subtle-hover"?: any;
|
|
190
|
+
"text-primary"?: any;
|
|
191
|
+
"text-primary-active"?: any;
|
|
192
|
+
"text-primary-hover"?: any;
|
|
193
|
+
"text-primary-inverted"?: any;
|
|
194
|
+
"text-primary-inverted-subtle"?: any;
|
|
195
|
+
"text-primary-selected"?: any;
|
|
196
|
+
"text-success"?: any;
|
|
197
|
+
"text-warning"?: any;
|
|
187
198
|
};
|
|
188
199
|
'font-sizes': {
|
|
189
200
|
readonly 150: "0.75rem";
|
|
@@ -470,7 +481,7 @@ declare const StyledFlex: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
470
481
|
}> & {
|
|
471
482
|
children?: react.ReactNode;
|
|
472
483
|
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {
|
|
473
|
-
align?: "stretch" | "center" | "start" | "end" | undefined;
|
|
484
|
+
align?: "stretch" | "center" | "start" | "end" | "baseline" | undefined;
|
|
474
485
|
direction?: "row" | "column" | "rowReverse" | "columnReverse" | undefined;
|
|
475
486
|
gap?: 0 | 200 | 50 | 100 | 300 | "0" | "100" | "200" | "300" | "50" | undefined;
|
|
476
487
|
justify?: "center" | "start" | "end" | "between" | "around" | "evenly" | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-flex",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.18-themes.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@mirohq/design-system-primitive": "^1.1.0",
|
|
30
|
-
"@mirohq/design-system-
|
|
31
|
-
"@mirohq/design-system-
|
|
30
|
+
"@mirohq/design-system-stitches": "^2.3.5-themes.0",
|
|
31
|
+
"@mirohq/design-system-utils": "^0.14.1"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rollup -c ../../../rollup.config.js",
|