@mirohq/design-system-typography 0.2.14 → 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/dist/main.js CHANGED
@@ -12,11 +12,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
12
12
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
13
 
14
14
  const styles = {
15
- all: "unset",
16
15
  display: "block",
17
16
  fontFamily: "Formular, sans-serif",
18
17
  margin: 0,
19
18
  color: "$text-neutrals",
19
+ fontStyle: "normal",
20
20
  fontWeight: 500,
21
21
  variants: {
22
22
  level: {
@@ -54,33 +54,48 @@ var Styled = /*#__PURE__*/Object.freeze({
54
54
 
55
55
  const Heading = React__default["default"].forwardRef(
56
56
  ({ level, styledAs, children, ...props }, forwardRef) => {
57
- const HeadingLevel = Styled["H".concat(level)];
57
+ const HeadingLevel = Styled[`H${level}`];
58
58
  const styledAsLevel = styledAs !== void 0 ? +styledAs.replace("h", "") : styledAs;
59
59
  return /* @__PURE__ */ jsxRuntime.jsx(HeadingLevel, { ...props, level: styledAsLevel != null ? styledAsLevel : level, ref: forwardRef, children });
60
60
  }
61
61
  );
62
62
 
63
+ const textStyles = {
64
+ default: {
65
+ lineHeight: 1.5
66
+ },
67
+ size: {
68
+ normal: {
69
+ fontSize: "$200"
70
+ },
71
+ small: {
72
+ fontSize: "$175"
73
+ },
74
+ mini: {
75
+ fontSize: "$150"
76
+ }
77
+ },
78
+ weight: {
79
+ normal: {
80
+ fontWeight: 400
81
+ },
82
+ bold: {
83
+ fontWeight: 650
84
+ }
85
+ }
86
+ };
87
+
63
88
  const StyledText = designSystemStitches.styled(designSystemPrimitive.Primitive.span, {
64
- lineHeight: 1.5,
89
+ ...textStyles.default,
65
90
  variants: {
66
91
  size: {
67
- normal: {
68
- fontSize: "$200"
69
- },
70
- small: {
71
- fontSize: "$175"
72
- },
73
- mini: {
74
- fontSize: "$150"
75
- }
92
+ normal: textStyles.size.normal,
93
+ small: textStyles.size.small,
94
+ mini: textStyles.size.mini
76
95
  },
77
96
  weight: {
78
- normal: {
79
- fontWeight: 400
80
- },
81
- bold: {
82
- fontWeight: 650
83
- }
97
+ normal: textStyles.weight.normal,
98
+ bold: textStyles.weight.bold
84
99
  }
85
100
  }
86
101
  });
@@ -89,24 +104,25 @@ const Text = React__default["default"].forwardRef(
89
104
  ({ size, weight, ...restProps }, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(StyledText, { ref: forwardRef, size, weight, ...restProps })
90
105
  );
91
106
 
92
- const StyledParagraph = designSystemStitches.styled(StyledText, {
107
+ const StyledParagraph = designSystemStitches.styled(designSystemPrimitive.Primitive.p, {
108
+ ...textStyles.default,
93
109
  margin: 0,
94
- "&:not(:last-child)": {
95
- marginBottom: "$200"
110
+ variants: {
111
+ size: {
112
+ normal: textStyles.size.normal,
113
+ small: textStyles.size.small,
114
+ mini: textStyles.size.mini
115
+ },
116
+ weight: {
117
+ normal: textStyles.weight.normal,
118
+ bold: textStyles.weight.bold
119
+ }
96
120
  }
97
121
  });
98
122
 
99
- const Paragraph = React__default["default"].forwardRef(({ size, weight, children, ...restProps }, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(
100
- StyledParagraph,
101
- {
102
- ref: forwardRef,
103
- size,
104
- weight,
105
- asChild: true,
106
- ...restProps,
107
- children: /* @__PURE__ */ jsxRuntime.jsx("p", { children })
108
- }
109
- ));
123
+ const Paragraph = React__default["default"].forwardRef(
124
+ (props, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(StyledParagraph, { ref: forwardRef, ...props })
125
+ );
110
126
 
111
127
  exports.Heading = Heading;
112
128
  exports.Paragraph = Paragraph;
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../src/heading.styled.tsx","../src/heading.tsx","../src/text.styled.ts","../src/text.tsx","../src/paragraph.styled.ts","../src/paragraph.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport type { ComponentPropsWithRef } from 'react'\n\nconst styles = {\n all: 'unset',\n display: 'block',\n fontFamily: 'Formular, sans-serif',\n margin: 0,\n color: '$text-neutrals',\n fontWeight: 500,\n variants: {\n level: {\n 1: {\n lineHeight: 1.2,\n fontSize: '$400',\n },\n 2: {\n lineHeight: 1.35,\n fontSize: '$300',\n },\n 3: {\n lineHeight: 1.4,\n fontSize: '$250',\n },\n 4: {\n lineHeight: 1.5,\n fontSize: '$200',\n },\n },\n },\n}\n\nexport const H1 = styled(Primitive.h1, styles)\nexport const H2 = styled(Primitive.h2, styles)\nexport const H3 = styled(Primitive.h3, styles)\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\n\nimport * as Styled from './heading.styled'\nimport type { StyledHeadingProps } from './heading.styled'\n\ntype Level = 1 | 2 | 3 | 4\ntype Tags = 'h1' | 'h2' | 'h3' | 'h4'\n\nexport interface HeadingProps extends StyledHeadingProps {\n /**\n * The sematic heading level used in the HTML markup.\n */\n level: Level\n\n /**\n * The way the sematic tag looks, it changes the styling of the heading.\n */\n styledAs?: Tags\n}\n\nexport const Heading = React.forwardRef<ElementRef<Tags>, HeadingProps>(\n ({ level, styledAs, children, ...props }, forwardRef) => {\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel {...props} level={styledAsLevel ?? level} ref={forwardRef}>\n {children}\n </HeadingLevel>\n )\n }\n)\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledText = styled(Primitive.span, {\n lineHeight: 1.5,\n variants: {\n size: {\n normal: {\n fontSize: '$200',\n },\n small: {\n fontSize: '$175',\n },\n mini: {\n fontSize: '$150',\n },\n },\n weight: {\n normal: {\n fontWeight: 400,\n },\n bold: {\n fontWeight: 650,\n },\n },\n },\n})\n\nexport type StyledTextProps = ComponentPropsWithRef<typeof StyledText>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledText } from './text.styled'\nimport type { StyledTextProps } from './text.styled'\n\nexport interface TextProps extends StyledTextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the text font-size.\n */\n size?: StyledTextProps['size']\n\n /**\n * Change the text font-weight.\n */\n weight?: StyledTextProps['weight']\n}\n\nexport const Text = React.forwardRef<ElementRef<typeof StyledText>, TextProps>(\n ({ size, weight, ...restProps }, forwardRef) => (\n <StyledText ref={forwardRef} size={size} weight={weight} {...restProps} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { StyledText } from './text.styled'\n\nexport const StyledParagraph = styled(StyledText, {\n margin: 0,\n\n '&:not(:last-child)': {\n marginBottom: '$200',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledParagraph } from './paragraph.styled'\nimport type { TextProps } from './text'\n\nexport interface ParagraphProps extends TextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the paragraph font-size.\n */\n size?: TextProps['size']\n\n /**\n * Change the paragraph font-weight.\n */\n weight?: TextProps['weight']\n}\n\nexport const Paragraph = React.forwardRef<\n ElementRef<typeof StyledParagraph>,\n ParagraphProps\n>(({ size, weight, children, ...restProps }, forwardRef) => (\n <StyledParagraph\n ref={forwardRef}\n size={size}\n weight={weight}\n asChild\n {...restProps}\n >\n <p>{children}</p>\n </StyledParagraph>\n))\n"],"names":["styled","Primitive","React","jsx"],"mappings":";;;;;;;;;;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,EAAA,sBAAA;AAAA,EACZ,MAAQ,EAAA,CAAA;AAAA,EACR,KAAO,EAAA,gBAAA;AAA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,EAAA,UAAA;AAAA,IACL,IAAA;AAAA,IACA,MAAA;AAAA,IACA,OAAO,EAAA,IAAA;AAAA,IACN,GAAG,SAAA;AAAA,IAEJ,QAAA,kBAAAA,cAAA,CAAC,OAAG,QAAS,EAAA,CAAA;AAAA,GAAA;AACf,CACD;;;;;;"}
1
+ {"version":3,"file":"main.js","sources":["../src/heading.styled.tsx","../src/heading.tsx","../src/styles.ts","../src/text.styled.ts","../src/text.tsx","../src/paragraph.styled.ts","../src/paragraph.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport type { ComponentPropsWithRef } from 'react'\n\nconst styles = {\n display: 'block',\n fontFamily: 'Formular, sans-serif',\n margin: 0,\n color: '$text-neutrals',\n fontStyle: 'normal',\n fontWeight: 500,\n variants: {\n level: {\n 1: {\n lineHeight: 1.2,\n fontSize: '$400',\n },\n 2: {\n lineHeight: 1.35,\n fontSize: '$300',\n },\n 3: {\n lineHeight: 1.4,\n fontSize: '$250',\n },\n 4: {\n lineHeight: 1.5,\n fontSize: '$200',\n },\n },\n },\n}\n\nexport const H1 = styled(Primitive.h1, styles)\nexport const H2 = styled(Primitive.h2, styles)\nexport const H3 = styled(Primitive.h3, styles)\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\n\nimport * as Styled from './heading.styled'\nimport type { StyledHeadingProps } from './heading.styled'\n\ntype Level = 1 | 2 | 3 | 4\ntype Tags = 'h1' | 'h2' | 'h3' | 'h4'\n\nexport interface HeadingProps extends StyledHeadingProps {\n /**\n * The sematic heading level used in the HTML markup.\n */\n level: Level\n\n /**\n * The way the sematic tag looks, it changes the styling of the heading.\n */\n styledAs?: Tags\n}\n\nexport const Heading = React.forwardRef<ElementRef<Tags>, HeadingProps>(\n ({ level, styledAs, children, ...props }, forwardRef) => {\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel {...props} level={styledAsLevel ?? level} ref={forwardRef}>\n {children}\n </HeadingLevel>\n )\n }\n)\n","export const textStyles = {\n default: {\n lineHeight: 1.5,\n },\n size: {\n normal: {\n fontSize: '$200',\n },\n small: {\n fontSize: '$175',\n },\n mini: {\n fontSize: '$150',\n },\n },\n weight: {\n normal: {\n fontWeight: 400,\n },\n bold: {\n fontWeight: 650,\n },\n },\n}\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nimport { textStyles } from './styles'\n\nexport const StyledText = styled(Primitive.span, {\n ...textStyles.default,\n\n variants: {\n size: {\n normal: textStyles.size.normal,\n small: textStyles.size.small,\n mini: textStyles.size.mini,\n },\n weight: {\n normal: textStyles.weight.normal,\n bold: textStyles.weight.bold,\n },\n },\n})\n\nexport type StyledTextProps = ComponentPropsWithRef<typeof StyledText>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledText } from './text.styled'\nimport type { StyledTextProps } from './text.styled'\n\nexport interface TextProps extends StyledTextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the text font-size.\n */\n size?: StyledTextProps['size']\n\n /**\n * Change the text font-weight.\n */\n weight?: StyledTextProps['weight']\n}\n\nexport const Text = React.forwardRef<ElementRef<typeof StyledText>, TextProps>(\n ({ size, weight, ...restProps }, forwardRef) => (\n <StyledText ref={forwardRef} size={size} weight={weight} {...restProps} />\n )\n)\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nimport { textStyles } from './styles'\n\nexport const StyledParagraph = styled(Primitive.p, {\n ...textStyles.default,\n margin: 0,\n\n variants: {\n size: {\n normal: textStyles.size.normal,\n small: textStyles.size.small,\n mini: textStyles.size.mini,\n },\n weight: {\n normal: textStyles.weight.normal,\n bold: textStyles.weight.bold,\n },\n },\n})\n\nexport type StyledParagraphProps = ComponentPropsWithRef<typeof StyledParagraph>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledParagraphProps } from './paragraph.styled'\nimport { StyledParagraph } from './paragraph.styled'\n\nexport interface ParagraphProps extends StyledParagraphProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the paragraph font-size.\n */\n size?: StyledParagraphProps['size']\n\n /**\n * Change the paragraph font-weight.\n */\n weight?: StyledParagraphProps['weight']\n}\n\nexport const Paragraph = React.forwardRef<ElementRef<'p'>, ParagraphProps>(\n (props, forwardRef) => <StyledParagraph ref={forwardRef} {...props} />\n)\n"],"names":["styled","Primitive","React","jsx"],"mappings":";;;;;;;;;;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,EAAA,sBAAA;AAAA,EACZ,MAAQ,EAAA,CAAA;AAAA,EACR,KAAO,EAAA,gBAAA;AAAA,EACP,SAAW,EAAA,QAAA;AAAA,EACX,UAAY,EAAA,GAAA;AAAA,EACZ,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,IAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEO,MAAM,EAAK,GAAAA,2BAAA,CAAOC,+BAAU,CAAA,EAAA,EAAI,MAAM,CAA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A;;ACEM,MAAM,YAAYC,yBAAM,CAAA,UAAA;AAAA,EAC7B,CAAC,OAAO,UAAe,qBAAAC,cAAA,CAAC,mBAAgB,GAAK,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AACtE;;;;;;"}
package/dist/module.js CHANGED
@@ -4,11 +4,11 @@ import { styled } from '@mirohq/design-system-stitches';
4
4
  import { Primitive } from '@mirohq/design-system-primitive';
5
5
 
6
6
  const styles = {
7
- all: "unset",
8
7
  display: "block",
9
8
  fontFamily: "Formular, sans-serif",
10
9
  margin: 0,
11
10
  color: "$text-neutrals",
11
+ fontStyle: "normal",
12
12
  fontWeight: 500,
13
13
  variants: {
14
14
  level: {
@@ -46,33 +46,48 @@ var Styled = /*#__PURE__*/Object.freeze({
46
46
 
47
47
  const Heading = React.forwardRef(
48
48
  ({ level, styledAs, children, ...props }, forwardRef) => {
49
- const HeadingLevel = Styled["H".concat(level)];
49
+ const HeadingLevel = Styled[`H${level}`];
50
50
  const styledAsLevel = styledAs !== void 0 ? +styledAs.replace("h", "") : styledAs;
51
51
  return /* @__PURE__ */ jsx(HeadingLevel, { ...props, level: styledAsLevel != null ? styledAsLevel : level, ref: forwardRef, children });
52
52
  }
53
53
  );
54
54
 
55
+ const textStyles = {
56
+ default: {
57
+ lineHeight: 1.5
58
+ },
59
+ size: {
60
+ normal: {
61
+ fontSize: "$200"
62
+ },
63
+ small: {
64
+ fontSize: "$175"
65
+ },
66
+ mini: {
67
+ fontSize: "$150"
68
+ }
69
+ },
70
+ weight: {
71
+ normal: {
72
+ fontWeight: 400
73
+ },
74
+ bold: {
75
+ fontWeight: 650
76
+ }
77
+ }
78
+ };
79
+
55
80
  const StyledText = styled(Primitive.span, {
56
- lineHeight: 1.5,
81
+ ...textStyles.default,
57
82
  variants: {
58
83
  size: {
59
- normal: {
60
- fontSize: "$200"
61
- },
62
- small: {
63
- fontSize: "$175"
64
- },
65
- mini: {
66
- fontSize: "$150"
67
- }
84
+ normal: textStyles.size.normal,
85
+ small: textStyles.size.small,
86
+ mini: textStyles.size.mini
68
87
  },
69
88
  weight: {
70
- normal: {
71
- fontWeight: 400
72
- },
73
- bold: {
74
- fontWeight: 650
75
- }
89
+ normal: textStyles.weight.normal,
90
+ bold: textStyles.weight.bold
76
91
  }
77
92
  }
78
93
  });
@@ -81,24 +96,25 @@ const Text = React.forwardRef(
81
96
  ({ size, weight, ...restProps }, forwardRef) => /* @__PURE__ */ jsx(StyledText, { ref: forwardRef, size, weight, ...restProps })
82
97
  );
83
98
 
84
- const StyledParagraph = styled(StyledText, {
99
+ const StyledParagraph = styled(Primitive.p, {
100
+ ...textStyles.default,
85
101
  margin: 0,
86
- "&:not(:last-child)": {
87
- marginBottom: "$200"
102
+ variants: {
103
+ size: {
104
+ normal: textStyles.size.normal,
105
+ small: textStyles.size.small,
106
+ mini: textStyles.size.mini
107
+ },
108
+ weight: {
109
+ normal: textStyles.weight.normal,
110
+ bold: textStyles.weight.bold
111
+ }
88
112
  }
89
113
  });
90
114
 
91
- const Paragraph = React.forwardRef(({ size, weight, children, ...restProps }, forwardRef) => /* @__PURE__ */ jsx(
92
- StyledParagraph,
93
- {
94
- ref: forwardRef,
95
- size,
96
- weight,
97
- asChild: true,
98
- ...restProps,
99
- children: /* @__PURE__ */ jsx("p", { children })
100
- }
101
- ));
115
+ const Paragraph = React.forwardRef(
116
+ (props, forwardRef) => /* @__PURE__ */ jsx(StyledParagraph, { ref: forwardRef, ...props })
117
+ );
102
118
 
103
119
  export { Heading, Paragraph, Text };
104
120
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/heading.styled.tsx","../src/heading.tsx","../src/text.styled.ts","../src/text.tsx","../src/paragraph.styled.ts","../src/paragraph.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport type { ComponentPropsWithRef } from 'react'\n\nconst styles = {\n all: 'unset',\n display: 'block',\n fontFamily: 'Formular, sans-serif',\n margin: 0,\n color: '$text-neutrals',\n fontWeight: 500,\n variants: {\n level: {\n 1: {\n lineHeight: 1.2,\n fontSize: '$400',\n },\n 2: {\n lineHeight: 1.35,\n fontSize: '$300',\n },\n 3: {\n lineHeight: 1.4,\n fontSize: '$250',\n },\n 4: {\n lineHeight: 1.5,\n fontSize: '$200',\n },\n },\n },\n}\n\nexport const H1 = styled(Primitive.h1, styles)\nexport const H2 = styled(Primitive.h2, styles)\nexport const H3 = styled(Primitive.h3, styles)\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\n\nimport * as Styled from './heading.styled'\nimport type { StyledHeadingProps } from './heading.styled'\n\ntype Level = 1 | 2 | 3 | 4\ntype Tags = 'h1' | 'h2' | 'h3' | 'h4'\n\nexport interface HeadingProps extends StyledHeadingProps {\n /**\n * The sematic heading level used in the HTML markup.\n */\n level: Level\n\n /**\n * The way the sematic tag looks, it changes the styling of the heading.\n */\n styledAs?: Tags\n}\n\nexport const Heading = React.forwardRef<ElementRef<Tags>, HeadingProps>(\n ({ level, styledAs, children, ...props }, forwardRef) => {\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel {...props} level={styledAsLevel ?? level} ref={forwardRef}>\n {children}\n </HeadingLevel>\n )\n }\n)\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledText = styled(Primitive.span, {\n lineHeight: 1.5,\n variants: {\n size: {\n normal: {\n fontSize: '$200',\n },\n small: {\n fontSize: '$175',\n },\n mini: {\n fontSize: '$150',\n },\n },\n weight: {\n normal: {\n fontWeight: 400,\n },\n bold: {\n fontWeight: 650,\n },\n },\n },\n})\n\nexport type StyledTextProps = ComponentPropsWithRef<typeof StyledText>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledText } from './text.styled'\nimport type { StyledTextProps } from './text.styled'\n\nexport interface TextProps extends StyledTextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the text font-size.\n */\n size?: StyledTextProps['size']\n\n /**\n * Change the text font-weight.\n */\n weight?: StyledTextProps['weight']\n}\n\nexport const Text = React.forwardRef<ElementRef<typeof StyledText>, TextProps>(\n ({ size, weight, ...restProps }, forwardRef) => (\n <StyledText ref={forwardRef} size={size} weight={weight} {...restProps} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { StyledText } from './text.styled'\n\nexport const StyledParagraph = styled(StyledText, {\n margin: 0,\n\n '&:not(:last-child)': {\n marginBottom: '$200',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledParagraph } from './paragraph.styled'\nimport type { TextProps } from './text'\n\nexport interface ParagraphProps extends TextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the paragraph font-size.\n */\n size?: TextProps['size']\n\n /**\n * Change the paragraph font-weight.\n */\n weight?: TextProps['weight']\n}\n\nexport const Paragraph = React.forwardRef<\n ElementRef<typeof StyledParagraph>,\n ParagraphProps\n>(({ size, weight, children, ...restProps }, forwardRef) => (\n <StyledParagraph\n ref={forwardRef}\n size={size}\n weight={weight}\n asChild\n {...restProps}\n >\n <p>{children}</p>\n </StyledParagraph>\n))\n"],"names":[],"mappings":";;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,EAAA,sBAAA;AAAA,EACZ,MAAQ,EAAA,CAAA;AAAA,EACR,KAAO,EAAA,gBAAA;AAAA,EACP,UAAY,EAAA,GAAA;AAAA,EACZ,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,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AACf,CACD;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../src/heading.styled.tsx","../src/heading.tsx","../src/styles.ts","../src/text.styled.ts","../src/text.tsx","../src/paragraph.styled.ts","../src/paragraph.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport type { ComponentPropsWithRef } from 'react'\n\nconst styles = {\n display: 'block',\n fontFamily: 'Formular, sans-serif',\n margin: 0,\n color: '$text-neutrals',\n fontStyle: 'normal',\n fontWeight: 500,\n variants: {\n level: {\n 1: {\n lineHeight: 1.2,\n fontSize: '$400',\n },\n 2: {\n lineHeight: 1.35,\n fontSize: '$300',\n },\n 3: {\n lineHeight: 1.4,\n fontSize: '$250',\n },\n 4: {\n lineHeight: 1.5,\n fontSize: '$200',\n },\n },\n },\n}\n\nexport const H1 = styled(Primitive.h1, styles)\nexport const H2 = styled(Primitive.h2, styles)\nexport const H3 = styled(Primitive.h3, styles)\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\n\nimport * as Styled from './heading.styled'\nimport type { StyledHeadingProps } from './heading.styled'\n\ntype Level = 1 | 2 | 3 | 4\ntype Tags = 'h1' | 'h2' | 'h3' | 'h4'\n\nexport interface HeadingProps extends StyledHeadingProps {\n /**\n * The sematic heading level used in the HTML markup.\n */\n level: Level\n\n /**\n * The way the sematic tag looks, it changes the styling of the heading.\n */\n styledAs?: Tags\n}\n\nexport const Heading = React.forwardRef<ElementRef<Tags>, HeadingProps>(\n ({ level, styledAs, children, ...props }, forwardRef) => {\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel {...props} level={styledAsLevel ?? level} ref={forwardRef}>\n {children}\n </HeadingLevel>\n )\n }\n)\n","export const textStyles = {\n default: {\n lineHeight: 1.5,\n },\n size: {\n normal: {\n fontSize: '$200',\n },\n small: {\n fontSize: '$175',\n },\n mini: {\n fontSize: '$150',\n },\n },\n weight: {\n normal: {\n fontWeight: 400,\n },\n bold: {\n fontWeight: 650,\n },\n },\n}\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nimport { textStyles } from './styles'\n\nexport const StyledText = styled(Primitive.span, {\n ...textStyles.default,\n\n variants: {\n size: {\n normal: textStyles.size.normal,\n small: textStyles.size.small,\n mini: textStyles.size.mini,\n },\n weight: {\n normal: textStyles.weight.normal,\n bold: textStyles.weight.bold,\n },\n },\n})\n\nexport type StyledTextProps = ComponentPropsWithRef<typeof StyledText>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledText } from './text.styled'\nimport type { StyledTextProps } from './text.styled'\n\nexport interface TextProps extends StyledTextProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the text font-size.\n */\n size?: StyledTextProps['size']\n\n /**\n * Change the text font-weight.\n */\n weight?: StyledTextProps['weight']\n}\n\nexport const Text = React.forwardRef<ElementRef<typeof StyledText>, TextProps>(\n ({ size, weight, ...restProps }, forwardRef) => (\n <StyledText ref={forwardRef} size={size} weight={weight} {...restProps} />\n )\n)\n","import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nimport { textStyles } from './styles'\n\nexport const StyledParagraph = styled(Primitive.p, {\n ...textStyles.default,\n margin: 0,\n\n variants: {\n size: {\n normal: textStyles.size.normal,\n small: textStyles.size.small,\n mini: textStyles.size.mini,\n },\n weight: {\n normal: textStyles.weight.normal,\n bold: textStyles.weight.bold,\n },\n },\n})\n\nexport type StyledParagraphProps = ComponentPropsWithRef<typeof StyledParagraph>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledParagraphProps } from './paragraph.styled'\nimport { StyledParagraph } from './paragraph.styled'\n\nexport interface ParagraphProps extends StyledParagraphProps {\n /**\n * The content.\n */\n children: React.ReactNode\n\n /**\n * Change the paragraph font-size.\n */\n size?: StyledParagraphProps['size']\n\n /**\n * Change the paragraph font-weight.\n */\n weight?: StyledParagraphProps['weight']\n}\n\nexport const Paragraph = React.forwardRef<ElementRef<'p'>, ParagraphProps>(\n (props, forwardRef) => <StyledParagraph ref={forwardRef} {...props} />\n)\n"],"names":[],"mappings":";;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,EAAA,sBAAA;AAAA,EACZ,MAAQ,EAAA,CAAA;AAAA,EACR,KAAO,EAAA,gBAAA;AAAA,EACP,SAAW,EAAA,QAAA;AAAA,EACX,UAAY,EAAA,GAAA;AAAA,EACZ,QAAU,EAAA;AAAA,IACR,KAAO,EAAA;AAAA,MACL,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,IAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,MACA,CAAG,EAAA;AAAA,QACD,UAAY,EAAA,GAAA;AAAA,QACZ,QAAU,EAAA,MAAA;AAAA,OACZ;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEO,MAAM,EAAK,GAAA,MAAA,CAAO,SAAU,CAAA,EAAA,EAAI,MAAM,CAAA,CAAA;AACtC,MAAM,EAAK,GAAA,MAAA,CAAO,SAAU,CAAA,EAAA,EAAI,MAAM,CAAA,CAAA;AACtC,MAAM,EAAK,GAAA,MAAA,CAAO,SAAU,CAAA,EAAA,EAAI,MAAM,CAAA,CAAA;AACtC,MAAM,EAAK,GAAA,MAAA,CAAO,SAAU,C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text: react__default.ForwardRefExoticComponent<Omit<TextProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
960
960
 
961
- interface ParagraphProps extends TextProps {
961
+ declare const StyledParagraph: react.ForwardRefExoticComponent<Omit<Omit<{
962
+ size?: "small" | "normal" | "mini" | undefined;
963
+ weight?: "bold" | "normal" | undefined;
964
+ }, "size" | "weight"> & _stitches_react_types_styled_component.TransformProps<{
965
+ size?: "small" | "normal" | "mini" | undefined;
966
+ weight?: "bold" | "normal" | undefined;
967
+ }, {}> & _mirohq_design_system_stitches.SafeProps<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & {
968
+ ref?: ((instance: HTMLParagraphElement | null) => void) | react.RefObject<HTMLParagraphElement> | null | undefined;
969
+ } & {
970
+ asChild?: boolean | undefined;
971
+ }, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
972
+ css?: _stitches_react_types_css_util.CSS<{}, {
973
+ 'border-widths': {
974
+ readonly none: 0;
975
+ readonly sm: "1px";
976
+ readonly md: "2px";
977
+ readonly lg: "4px";
978
+ };
979
+ colors: {
980
+ readonly 'blue-100': any;
981
+ readonly 'blue-200': any;
982
+ readonly 'blue-300': any;
983
+ readonly 'blue-400': any;
984
+ readonly 'blue-500': any;
985
+ readonly 'blue-600': any;
986
+ readonly 'blue-700': any;
987
+ readonly 'blue-800': any;
988
+ readonly 'blue-900': any;
989
+ readonly 'blue-1000': any;
990
+ readonly 'gray-100': any;
991
+ readonly 'gray-200': any;
992
+ readonly 'gray-300': any;
993
+ readonly 'gray-400': any;
994
+ readonly 'gray-500': any;
995
+ readonly 'gray-600': any;
996
+ readonly 'gray-700': any;
997
+ readonly 'gray-800': any;
998
+ readonly 'gray-900': any;
999
+ readonly 'indigo-100': any;
1000
+ readonly 'indigo-200': any;
1001
+ readonly 'indigo-300': any;
1002
+ readonly 'indigo-400': any;
1003
+ readonly 'indigo-500': any;
1004
+ readonly 'indigo-600': any;
1005
+ readonly 'indigo-700': any;
1006
+ readonly 'indigo-800': any;
1007
+ readonly 'indigo-900': any;
1008
+ readonly 'red-100': any;
1009
+ readonly 'red-200': any;
1010
+ readonly 'red-300': any;
1011
+ readonly 'red-400': any;
1012
+ readonly 'red-500': any;
1013
+ readonly 'red-600': any;
1014
+ readonly 'red-700': any;
1015
+ readonly 'red-800': any;
1016
+ readonly 'red-900': any;
1017
+ readonly 'yellow-100': any;
1018
+ readonly 'yellow-200': any;
1019
+ readonly 'yellow-300': any;
1020
+ readonly 'yellow-400': any;
1021
+ readonly 'yellow-500': any;
1022
+ readonly 'yellow-600': any;
1023
+ readonly 'yellow-700': any;
1024
+ readonly 'yellow-800': any;
1025
+ readonly 'yellow-900': any;
1026
+ readonly 'green-100': any;
1027
+ readonly 'green-200': any;
1028
+ readonly 'green-300': any;
1029
+ readonly 'green-400': any;
1030
+ readonly 'green-500': any;
1031
+ readonly 'green-600': any;
1032
+ readonly 'green-700': any;
1033
+ readonly 'green-800': any;
1034
+ readonly 'green-900': any;
1035
+ readonly black: any;
1036
+ readonly white: any;
1037
+ readonly transparent: any;
1038
+ readonly 'background-danger'?: any;
1039
+ readonly 'background-danger-hover'?: any;
1040
+ readonly 'background-danger-prominent'?: any;
1041
+ readonly 'background-danger-prominent-active'?: any;
1042
+ readonly 'background-danger-prominent-hover'?: any;
1043
+ readonly 'background-neutrals'?: any;
1044
+ readonly 'background-neutrals-container'?: any;
1045
+ readonly 'background-neutrals-controls-disabled'?: any;
1046
+ readonly 'background-neutrals-disabled'?: any;
1047
+ readonly 'background-neutrals-inactive'?: any;
1048
+ readonly 'background-neutrals-inactive-hover'?: any;
1049
+ readonly 'background-neutrals-inverted'?: any;
1050
+ readonly 'background-neutrals-inverted-subtle'?: any;
1051
+ readonly 'background-neutrals-page'?: any;
1052
+ readonly 'background-neutrals-page-subtle'?: any;
1053
+ readonly 'background-neutrals-scrolls'?: any;
1054
+ readonly 'background-neutrals-scrolls-hover'?: any;
1055
+ readonly 'background-neutrals-subtle'?: any;
1056
+ readonly 'background-neutrals-subtle-active'?: any;
1057
+ readonly 'background-neutrals-subtle-hover'?: any;
1058
+ readonly 'background-primary-prominent'?: any;
1059
+ readonly 'background-primary-prominent-active'?: any;
1060
+ readonly 'background-primary-prominent-hover'?: any;
1061
+ readonly 'background-primary-prominent-selected'?: any;
1062
+ readonly 'background-primary-subtle'?: any;
1063
+ readonly 'background-primary-subtle-active'?: any;
1064
+ readonly 'background-primary-subtle-hover'?: any;
1065
+ readonly 'background-primary-subtle-selected'?: any;
1066
+ readonly 'background-success'?: any;
1067
+ readonly 'background-warning-prominent'?: any;
1068
+ readonly 'background-warning-subtle'?: any;
1069
+ readonly 'text-danger'?: any;
1070
+ readonly 'text-danger-active'?: any;
1071
+ readonly 'text-danger-hover'?: any;
1072
+ readonly 'text-danger-inverted'?: any;
1073
+ readonly 'text-neutrals'?: any;
1074
+ readonly 'text-neutrals-disabled'?: any;
1075
+ readonly 'text-neutrals-inverted'?: any;
1076
+ readonly 'text-neutrals-placeholder'?: any;
1077
+ readonly 'text-neutrals-placeholder-only'?: any;
1078
+ readonly 'text-neutrals-subtle'?: any;
1079
+ readonly 'text-neutrals-subtle-active'?: any;
1080
+ readonly 'text-neutrals-subtle-hover'?: any;
1081
+ readonly 'text-primary'?: any;
1082
+ readonly 'text-primary-active'?: any;
1083
+ readonly 'text-primary-hover'?: any;
1084
+ readonly 'text-primary-inverted'?: any;
1085
+ readonly 'text-primary-inverted-subtle'?: any;
1086
+ readonly 'text-primary-selected'?: any;
1087
+ readonly 'text-success'?: any;
1088
+ readonly 'text-warning'?: any;
1089
+ readonly 'icon-danger'?: any;
1090
+ readonly 'icon-danger-active'?: any;
1091
+ readonly 'icon-danger-hover'?: any;
1092
+ readonly 'icon-danger-inverted'?: any;
1093
+ readonly 'icon-neutrals'?: any;
1094
+ readonly 'icon-neutrals-disabled'?: any;
1095
+ readonly 'icon-neutrals-inactive'?: any;
1096
+ readonly 'icon-neutrals-inactive-hover'?: any;
1097
+ readonly 'icon-neutrals-inverted'?: any;
1098
+ readonly 'icon-neutrals-search'?: any;
1099
+ readonly 'icon-neutrals-subtle'?: any;
1100
+ readonly 'icon-neutrals-text'?: any;
1101
+ readonly 'icon-primary'?: any;
1102
+ readonly 'icon-primary-active'?: any;
1103
+ readonly 'icon-primary-hover'?: any;
1104
+ readonly 'icon-primary-inverted'?: any;
1105
+ readonly 'icon-primary-selected'?: any;
1106
+ readonly 'icon-success'?: any;
1107
+ readonly 'icon-success-inverted'?: any;
1108
+ readonly 'icon-warning'?: any;
1109
+ readonly 'icon-warning-prominent'?: any;
1110
+ readonly 'border-danger'?: any;
1111
+ readonly 'border-danger-active'?: any;
1112
+ readonly 'border-danger-hover'?: any;
1113
+ readonly 'border-focus-inner'?: any;
1114
+ readonly 'border-focus-middle'?: any;
1115
+ readonly 'border-focus-outer'?: any;
1116
+ readonly 'border-neutrals'?: any;
1117
+ readonly 'border-neutrals-active'?: any;
1118
+ readonly 'border-neutrals-controls'?: any;
1119
+ readonly 'border-neutrals-controls-disabled'?: any;
1120
+ readonly 'border-neutrals-disabled'?: any;
1121
+ readonly 'border-neutrals-hover'?: any;
1122
+ readonly 'border-neutrals-inverted'?: any;
1123
+ readonly 'border-neutrals-subtle'?: any;
1124
+ readonly 'border-neutrals-text-subtle'?: any;
1125
+ readonly 'border-neutrals-text-subtle-active'?: any;
1126
+ readonly 'border-neutrals-text-subtle-hover'?: any;
1127
+ readonly 'border-primary'?: any;
1128
+ readonly 'border-primary-active'?: any;
1129
+ readonly 'border-primary-hover'?: any;
1130
+ readonly 'border-primary-inverted'?: any;
1131
+ readonly 'border-success'?: any;
1132
+ readonly 'border-warning'?: any;
1133
+ };
1134
+ 'font-sizes': {
1135
+ readonly 150: "0.75rem";
1136
+ readonly 175: "0.875rem";
1137
+ readonly 200: "1rem";
1138
+ readonly 225: "1.125rem";
1139
+ readonly 250: "1.25rem";
1140
+ readonly 300: "1.5rem";
1141
+ readonly 400: "2rem";
1142
+ readonly 500: "2.5rem";
1143
+ readonly 600: "3rem";
1144
+ readonly 800: "4rem";
1145
+ readonly 900: "4.5rem";
1146
+ };
1147
+ radii: {
1148
+ readonly none: 0;
1149
+ readonly half: "999em";
1150
+ readonly 25: "2px";
1151
+ readonly 50: "4px";
1152
+ readonly 75: "6px";
1153
+ readonly 100: "8px";
1154
+ readonly 200: "16px";
1155
+ };
1156
+ shadows: {
1157
+ readonly 50: "0 4px 16px #05003812";
1158
+ readonly 100: "0 8px 32px #05003808";
1159
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
1160
+ readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
1161
+ readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
1162
+ readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
1163
+ };
1164
+ sizes: {
1165
+ readonly number: string;
1166
+ readonly 'icon-200': "16px";
1167
+ readonly 'icon-300': "24px";
1168
+ readonly 'icon-400': "32px";
1169
+ };
1170
+ space: {
1171
+ readonly 0: 0;
1172
+ readonly 50: "4px";
1173
+ readonly 100: "8px";
1174
+ readonly 150: "12px";
1175
+ readonly 200: "16px";
1176
+ readonly 300: "24px";
1177
+ readonly 400: "32px";
1178
+ readonly 500: "40px";
1179
+ readonly 600: "48px";
1180
+ readonly 800: "64px";
1181
+ readonly 1200: "96px";
1182
+ readonly 1600: "128px";
1183
+ };
1184
+ 'space-gap': {
1185
+ readonly 0: any;
1186
+ readonly 50: any;
1187
+ readonly 100: any;
1188
+ readonly 200: any;
1189
+ readonly 300: any;
1190
+ };
1191
+ 'space-inset': {
1192
+ readonly 0: any;
1193
+ readonly 50: any;
1194
+ readonly 100: any;
1195
+ readonly 150: any;
1196
+ readonly 200: any;
1197
+ readonly 300: any;
1198
+ readonly 400: any;
1199
+ readonly 600: any;
1200
+ readonly 800: any;
1201
+ readonly 1200: any;
1202
+ readonly 1600: any;
1203
+ };
1204
+ 'space-offset': {
1205
+ readonly 0: any;
1206
+ readonly 50: any;
1207
+ readonly 100: any;
1208
+ readonly 150: any;
1209
+ readonly 200: any;
1210
+ readonly 300: any;
1211
+ readonly 400: any;
1212
+ readonly 600: any;
1213
+ readonly 800: any;
1214
+ readonly 1200: any;
1215
+ readonly 1600: any;
1216
+ readonly 'stacking-0': any;
1217
+ readonly 'stacking-100': any;
1218
+ readonly 'stacking-200': any;
1219
+ readonly 'stacking-300': any;
1220
+ readonly 'stacking-400': any;
1221
+ readonly 'stacking-500': any;
1222
+ readonly 'stacking-800': any;
1223
+ };
1224
+ 'stroke-width': {
1225
+ readonly thin: "1.5px";
1226
+ readonly normal: "2px";
1227
+ readonly bold: "4px";
1228
+ };
1229
+ 'z-indices': {
1230
+ readonly dropdownMenu: 100;
1231
+ readonly popover: 200;
1232
+ readonly tooltip: 300;
1233
+ };
1234
+ }, {
1235
+ readonly background: "colors";
1236
+ readonly backgroundColor: "colors";
1237
+ readonly backgroundImage: "colors";
1238
+ readonly blockSize: "sizes";
1239
+ readonly border: "colors";
1240
+ readonly borderBlock: "colors";
1241
+ readonly borderBlockEnd: "colors";
1242
+ readonly borderBlockStart: "colors";
1243
+ readonly borderBottom: "colors";
1244
+ readonly borderBottomColor: "colors";
1245
+ readonly borderBottomLeftRadius: "radii";
1246
+ readonly borderBottomRightRadius: "radii";
1247
+ readonly borderBottomStyle: "border-styles";
1248
+ readonly borderBottomWidth: "border-widths";
1249
+ readonly borderColor: "colors";
1250
+ readonly borderImage: "colors";
1251
+ readonly borderInline: "colors";
1252
+ readonly borderInlineEnd: "colors";
1253
+ readonly borderInlineStart: "colors";
1254
+ readonly borderLeft: "colors";
1255
+ readonly borderLeftColor: "colors";
1256
+ readonly borderLeftStyle: "border-styles";
1257
+ readonly borderLeftWidth: "border-widths";
1258
+ readonly borderRadius: "radii";
1259
+ readonly borderRight: "colors";
1260
+ readonly borderRightColor: "colors";
1261
+ readonly borderRightStyle: "border-styles";
1262
+ readonly borderRightWidth: "border-widths";
1263
+ readonly borderStyle: "border-styles";
1264
+ readonly borderTop: "colors";
1265
+ readonly borderTopColor: "colors";
1266
+ readonly borderTopLeftRadius: "radii";
1267
+ readonly borderTopRightRadius: "radii";
1268
+ readonly borderTopStyle: "border-styles";
1269
+ readonly borderTopWidth: "border-widths";
1270
+ readonly borderWidth: "border-widths";
1271
+ readonly bottom: "space";
1272
+ readonly boxShadow: "shadows";
1273
+ readonly caretColor: "colors";
1274
+ readonly color: "colors";
1275
+ readonly columnGap: "space-gap";
1276
+ readonly columnRuleColor: "colors";
1277
+ readonly fill: "colors";
1278
+ readonly flexBasis: "sizes";
1279
+ readonly fontFamily: "fonts";
1280
+ readonly fontSize: "font-sizes";
1281
+ readonly fontWeight: "font-weights";
1282
+ readonly gap: "space-gap";
1283
+ readonly gridColumnGap: "space-gap";
1284
+ readonly gridGap: "space-gap";
1285
+ readonly gridRowGap: "space-gap";
1286
+ readonly gridTemplateColumns: "sizes";
1287
+ readonly gridTemplateRows: "sizes";
1288
+ readonly height: "sizes";
1289
+ readonly inlineSize: "sizes";
1290
+ readonly inset: "space-inset";
1291
+ readonly insetBlock: "space-inset";
1292
+ readonly insetBlockEnd: "space-inset";
1293
+ readonly insetBlockStart: "space-inset";
1294
+ readonly insetInline: "space-inset";
1295
+ readonly insetInlineEnd: "space-inset";
1296
+ readonly insetInlineStart: "space-inset";
1297
+ readonly left: "space";
1298
+ readonly letterSpacing: "letter-spacings";
1299
+ readonly lineHeight: "line-heights";
1300
+ readonly margin: "space-offset";
1301
+ readonly marginBlock: "space-offset";
1302
+ readonly marginBlockEnd: "space-offset";
1303
+ readonly marginBlockStart: "space-offset";
1304
+ readonly marginBottom: "space-offset";
1305
+ readonly marginInline: "space-offset";
1306
+ readonly marginInlineEnd: "space-offset";
1307
+ readonly marginInlineStart: "space-offset";
1308
+ readonly marginLeft: "space-offset";
1309
+ readonly marginRight: "space-offset";
1310
+ readonly marginTop: "space-offset";
1311
+ readonly maxBlockSize: "sizes";
1312
+ readonly maxHeight: "sizes";
1313
+ readonly maxInlineSize: "sizes";
1314
+ readonly maxWidth: "sizes";
1315
+ readonly minBlockSize: "sizes";
1316
+ readonly minHeight: "sizes";
1317
+ readonly minInlineSize: "sizes";
1318
+ readonly minWidth: "sizes";
1319
+ readonly outline: "colors";
1320
+ readonly outlineColor: "colors";
1321
+ readonly padding: "space-inset";
1322
+ readonly paddingBlock: "space-inset";
1323
+ readonly paddingBlockEnd: "space-inset";
1324
+ readonly paddingBlockStart: "space-inset";
1325
+ readonly paddingBottom: "space-inset";
1326
+ readonly paddingInline: "space-inset";
1327
+ readonly paddingInlineEnd: "space-inset";
1328
+ readonly paddingInlineStart: "space-inset";
1329
+ readonly paddingLeft: "space-inset";
1330
+ readonly paddingRight: "space-inset";
1331
+ readonly paddingTop: "space-inset";
1332
+ readonly right: "space";
1333
+ readonly rowGap: "space-gap";
1334
+ readonly scrollMargin: "space-offset";
1335
+ readonly scrollMarginBlock: "space-offset";
1336
+ readonly scrollMarginBlockEnd: "space-offset";
1337
+ readonly scrollMarginBlockStart: "space-offset";
1338
+ readonly scrollMarginBottom: "space-offset";
1339
+ readonly scrollMarginInline: "space-offset";
1340
+ readonly scrollMarginInlineEnd: "space-offset";
1341
+ readonly scrollMarginInlineStart: "space-offset";
1342
+ readonly scrollMarginLeft: "space-offset";
1343
+ readonly scrollMarginRight: "space-offset";
1344
+ readonly scrollMarginTop: "space-offset";
1345
+ readonly scrollPadding: "space-inset";
1346
+ readonly scrollPaddingBlock: "space-inset";
1347
+ readonly scrollPaddingBlockEnd: "space-inset";
1348
+ readonly scrollPaddingBlockStart: "space-inset";
1349
+ readonly scrollPaddingBottom: "space-inset";
1350
+ readonly scrollPaddingInline: "space-inset";
1351
+ readonly scrollPaddingInlineEnd: "space-inset";
1352
+ readonly scrollPaddingInlineStart: "space-inset";
1353
+ readonly scrollPaddingLeft: "space-inset";
1354
+ readonly scrollPaddingRight: "space-inset";
1355
+ readonly scrollPaddingTop: "space-inset";
1356
+ readonly stroke: "colors";
1357
+ readonly strokeWidth: "stroke-width";
1358
+ readonly textDecorationColor: "colors";
1359
+ readonly textShadow: "shadows";
1360
+ readonly top: "space";
1361
+ readonly transition: "transitions";
1362
+ readonly width: "sizes";
1363
+ readonly zIndex: "z-indices";
1364
+ }, {
1365
+ paddingX: (value: {
1366
+ readonly [$$PropertyValue]: "padding";
1367
+ }) => {
1368
+ paddingLeft: {
1369
+ readonly [$$PropertyValue]: "padding";
1370
+ };
1371
+ paddingRight: {
1372
+ readonly [$$PropertyValue]: "padding";
1373
+ };
1374
+ };
1375
+ paddingY: (value: {
1376
+ readonly [$$PropertyValue]: "padding";
1377
+ }) => {
1378
+ paddingTop: {
1379
+ readonly [$$PropertyValue]: "padding";
1380
+ };
1381
+ paddingBottom: {
1382
+ readonly [$$PropertyValue]: "padding";
1383
+ };
1384
+ };
1385
+ marginX: (value: {
1386
+ readonly [$$PropertyValue]: "margin";
1387
+ }) => {
1388
+ marginLeft: {
1389
+ readonly [$$PropertyValue]: "margin";
1390
+ };
1391
+ marginRight: {
1392
+ readonly [$$PropertyValue]: "margin";
1393
+ };
1394
+ };
1395
+ marginY: (value: {
1396
+ readonly [$$PropertyValue]: "margin";
1397
+ }) => {
1398
+ marginTop: {
1399
+ readonly [$$PropertyValue]: "margin";
1400
+ };
1401
+ marginBottom: {
1402
+ readonly [$$PropertyValue]: "margin";
1403
+ };
1404
+ };
1405
+ square: (value: {
1406
+ readonly [$$PropertyValue]: "width";
1407
+ }) => {
1408
+ width: {
1409
+ readonly [$$PropertyValue]: "width";
1410
+ };
1411
+ height: {
1412
+ readonly [$$PropertyValue]: "width";
1413
+ };
1414
+ };
1415
+ }> | undefined;
1416
+ }> & {
1417
+ children?: react.ReactNode;
1418
+ } & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLParagraphElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"p">>, {
1419
+ size?: "small" | "normal" | "mini" | undefined;
1420
+ weight?: "bold" | "normal" | undefined;
1421
+ }, {}>;
1422
+ declare type StyledParagraphProps = ComponentPropsWithRef<typeof StyledParagraph>;
1423
+
1424
+ interface ParagraphProps extends StyledParagraphProps {
962
1425
  /**
963
1426
  * The content.
964
1427
  */
@@ -966,12 +1429,12 @@ interface ParagraphProps extends TextProps {
966
1429
  /**
967
1430
  * Change the paragraph font-size.
968
1431
  */
969
- size?: TextProps['size'];
1432
+ size?: StyledParagraphProps['size'];
970
1433
  /**
971
1434
  * Change the paragraph font-weight.
972
1435
  */
973
- weight?: TextProps['weight'];
1436
+ weight?: StyledParagraphProps['weight'];
974
1437
  }
975
- declare const Paragraph: react__default.ForwardRefExoticComponent<Omit<ParagraphProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
1438
+ declare const Paragraph: react__default.ForwardRefExoticComponent<Omit<ParagraphProps, "ref"> & react__default.RefAttributes<HTMLParagraphElement>>;
976
1439
 
977
1440
  export { Heading, HeadingProps, Paragraph, ParagraphProps, Text, TextProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-typography",
3
- "version": "0.2.14",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",