@mirohq/design-system-typography 0.5.6 → 0.5.7
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 +47 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +47 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +11 -5
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var designSystemUseLocalStorage = require('@mirohq/design-system-use-local-storage');
|
|
7
8
|
var designSystemStitches = require('@mirohq/design-system-stitches');
|
|
8
9
|
var designSystemPrimitive = require('@mirohq/design-system-primitive');
|
|
9
10
|
|
|
@@ -19,6 +20,12 @@ const styles = {
|
|
|
19
20
|
fontStyle: "normal",
|
|
20
21
|
fontWeight: 500,
|
|
21
22
|
variants: {
|
|
23
|
+
debug: {
|
|
24
|
+
true: {
|
|
25
|
+
color: "#06D834 !important"
|
|
26
|
+
},
|
|
27
|
+
false: {}
|
|
28
|
+
},
|
|
22
29
|
level: {
|
|
23
30
|
1: {
|
|
24
31
|
lineHeight: 1.2,
|
|
@@ -54,9 +61,19 @@ var Styled = /*#__PURE__*/Object.freeze({
|
|
|
54
61
|
|
|
55
62
|
const Heading = React__default["default"].forwardRef(
|
|
56
63
|
({ level, styledAs, children, ...props }, forwardRef) => {
|
|
64
|
+
const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_TEXT", false);
|
|
57
65
|
const HeadingLevel = Styled["H".concat(level)];
|
|
58
66
|
const styledAsLevel = styledAs !== void 0 ? +styledAs.replace("h", "") : styledAs;
|
|
59
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
|
+
HeadingLevel,
|
|
69
|
+
{
|
|
70
|
+
...props,
|
|
71
|
+
debug,
|
|
72
|
+
level: styledAsLevel != null ? styledAsLevel : level,
|
|
73
|
+
ref: forwardRef,
|
|
74
|
+
children
|
|
75
|
+
}
|
|
76
|
+
);
|
|
60
77
|
}
|
|
61
78
|
);
|
|
62
79
|
|
|
@@ -88,6 +105,12 @@ const textStyles = {
|
|
|
88
105
|
const StyledText = designSystemStitches.styled(designSystemPrimitive.Primitive.span, {
|
|
89
106
|
...textStyles.default,
|
|
90
107
|
variants: {
|
|
108
|
+
debug: {
|
|
109
|
+
true: {
|
|
110
|
+
color: "#06D834 !important"
|
|
111
|
+
},
|
|
112
|
+
false: {}
|
|
113
|
+
},
|
|
91
114
|
size: {
|
|
92
115
|
normal: textStyles.size.normal,
|
|
93
116
|
small: textStyles.size.small,
|
|
@@ -101,13 +124,31 @@ const StyledText = designSystemStitches.styled(designSystemPrimitive.Primitive.s
|
|
|
101
124
|
});
|
|
102
125
|
|
|
103
126
|
const Text = React__default["default"].forwardRef(
|
|
104
|
-
({ size, weight, ...restProps }, forwardRef) =>
|
|
127
|
+
({ size, weight, ...restProps }, forwardRef) => {
|
|
128
|
+
const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_TEXT", false);
|
|
129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
130
|
+
StyledText,
|
|
131
|
+
{
|
|
132
|
+
...restProps,
|
|
133
|
+
ref: forwardRef,
|
|
134
|
+
debug,
|
|
135
|
+
size,
|
|
136
|
+
weight
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
105
140
|
);
|
|
106
141
|
|
|
107
142
|
const StyledParagraph = designSystemStitches.styled(designSystemPrimitive.Primitive.p, {
|
|
108
143
|
...textStyles.default,
|
|
109
144
|
margin: 0,
|
|
110
145
|
variants: {
|
|
146
|
+
debug: {
|
|
147
|
+
true: {
|
|
148
|
+
color: "#06D834 !important"
|
|
149
|
+
},
|
|
150
|
+
false: {}
|
|
151
|
+
},
|
|
111
152
|
size: {
|
|
112
153
|
normal: textStyles.size.normal,
|
|
113
154
|
small: textStyles.size.small,
|
|
@@ -121,7 +162,10 @@ const StyledParagraph = designSystemStitches.styled(designSystemPrimitive.Primit
|
|
|
121
162
|
});
|
|
122
163
|
|
|
123
164
|
const Paragraph = React__default["default"].forwardRef(
|
|
124
|
-
(props, forwardRef) =>
|
|
165
|
+
(props, forwardRef) => {
|
|
166
|
+
const [debug] = designSystemUseLocalStorage.useLocalStorage("DEBUG_TEXT", false);
|
|
167
|
+
return /* @__PURE__ */ jsxRuntime.jsx(StyledParagraph, { ref: forwardRef, debug, ...props });
|
|
168
|
+
}
|
|
125
169
|
);
|
|
126
170
|
|
|
127
171
|
exports.Heading = Heading;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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: '$heading',\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)\n/** @knipignore */\nexport const H2 = styled(Primitive.h2, styles)\n/** @knipignore */\nexport const H3 = styled(Primitive.h3, styles)\n/** @knipignore */\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
|
|
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: '$heading',\n margin: 0,\n color: '$text-neutrals',\n fontStyle: 'normal',\n fontWeight: 500,\n variants: {\n debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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)\n/** @knipignore */\nexport const H2 = styled(Primitive.h2, styles)\n/** @knipignore */\nexport const H3 = styled(Primitive.h3, styles)\n/** @knipignore */\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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 [debug] = useLocalStorage('DEBUG_TEXT', false)\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel\n {...props}\n debug={debug}\n level={styledAsLevel ?? level}\n ref={forwardRef}\n >\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 debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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 const [debug] = useLocalStorage('DEBUG_TEXT', false)\n return (\n <StyledText\n {...restProps}\n ref={forwardRef}\n debug={debug}\n size={size}\n weight={weight}\n />\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 StyledParagraph = styled(Primitive.p, {\n ...textStyles.default,\n margin: 0,\n\n variants: {\n debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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) => {\n const [debug] = useLocalStorage('DEBUG_TEXT', false)\n return <StyledParagraph ref={forwardRef} debug={debug} {...props} />\n }\n)\n"],"names":["styled","Primitive","React","useLocalStorage","jsx"],"mappings":";;;;;;;;;;;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,E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AA;AAAA,MACN,MAAA,EAAQ,WAAW,MAAO,CAAA,MAAA;AAAA,MAC1B,IAAA,EAAM,WAAW,MAAO,CAAA,IAAA;AAAA,KAC1B;AAAA,GACF;AACF,CAAC,CAAA;;ACHM,MAAM,YAAYC,yBAAM,CAAA,UAAA;AAAA,EAC7B,CAAC,OAAO,UAAe,KAAA;AACrB,IAAA,MAAM,CAAC,KAAK,CAAI,GAAAC,2CAAA,CAAgB,cAAc,KAAK,CAAA,CAAA;AACnD,IAAA,sCAAQ,eAAgB,EAAA,EAAA,GAAA,EAAK,UAAY,EAAA,KAAA,EAAe,GAAG,KAAO,EAAA,CAAA,CAAA;AAAA,GACpE;AACF;;;;;;"}
|
package/dist/module.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { useLocalStorage } from '@mirohq/design-system-use-local-storage';
|
|
3
4
|
import { styled } from '@mirohq/design-system-stitches';
|
|
4
5
|
import { Primitive } from '@mirohq/design-system-primitive';
|
|
5
6
|
|
|
@@ -11,6 +12,12 @@ const styles = {
|
|
|
11
12
|
fontStyle: "normal",
|
|
12
13
|
fontWeight: 500,
|
|
13
14
|
variants: {
|
|
15
|
+
debug: {
|
|
16
|
+
true: {
|
|
17
|
+
color: "#06D834 !important"
|
|
18
|
+
},
|
|
19
|
+
false: {}
|
|
20
|
+
},
|
|
14
21
|
level: {
|
|
15
22
|
1: {
|
|
16
23
|
lineHeight: 1.2,
|
|
@@ -46,9 +53,19 @@ var Styled = /*#__PURE__*/Object.freeze({
|
|
|
46
53
|
|
|
47
54
|
const Heading = React.forwardRef(
|
|
48
55
|
({ level, styledAs, children, ...props }, forwardRef) => {
|
|
56
|
+
const [debug] = useLocalStorage("DEBUG_TEXT", false);
|
|
49
57
|
const HeadingLevel = Styled["H".concat(level)];
|
|
50
58
|
const styledAsLevel = styledAs !== void 0 ? +styledAs.replace("h", "") : styledAs;
|
|
51
|
-
return /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
HeadingLevel,
|
|
61
|
+
{
|
|
62
|
+
...props,
|
|
63
|
+
debug,
|
|
64
|
+
level: styledAsLevel != null ? styledAsLevel : level,
|
|
65
|
+
ref: forwardRef,
|
|
66
|
+
children
|
|
67
|
+
}
|
|
68
|
+
);
|
|
52
69
|
}
|
|
53
70
|
);
|
|
54
71
|
|
|
@@ -80,6 +97,12 @@ const textStyles = {
|
|
|
80
97
|
const StyledText = styled(Primitive.span, {
|
|
81
98
|
...textStyles.default,
|
|
82
99
|
variants: {
|
|
100
|
+
debug: {
|
|
101
|
+
true: {
|
|
102
|
+
color: "#06D834 !important"
|
|
103
|
+
},
|
|
104
|
+
false: {}
|
|
105
|
+
},
|
|
83
106
|
size: {
|
|
84
107
|
normal: textStyles.size.normal,
|
|
85
108
|
small: textStyles.size.small,
|
|
@@ -93,13 +116,31 @@ const StyledText = styled(Primitive.span, {
|
|
|
93
116
|
});
|
|
94
117
|
|
|
95
118
|
const Text = React.forwardRef(
|
|
96
|
-
({ size, weight, ...restProps }, forwardRef) =>
|
|
119
|
+
({ size, weight, ...restProps }, forwardRef) => {
|
|
120
|
+
const [debug] = useLocalStorage("DEBUG_TEXT", false);
|
|
121
|
+
return /* @__PURE__ */ jsx(
|
|
122
|
+
StyledText,
|
|
123
|
+
{
|
|
124
|
+
...restProps,
|
|
125
|
+
ref: forwardRef,
|
|
126
|
+
debug,
|
|
127
|
+
size,
|
|
128
|
+
weight
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
}
|
|
97
132
|
);
|
|
98
133
|
|
|
99
134
|
const StyledParagraph = styled(Primitive.p, {
|
|
100
135
|
...textStyles.default,
|
|
101
136
|
margin: 0,
|
|
102
137
|
variants: {
|
|
138
|
+
debug: {
|
|
139
|
+
true: {
|
|
140
|
+
color: "#06D834 !important"
|
|
141
|
+
},
|
|
142
|
+
false: {}
|
|
143
|
+
},
|
|
103
144
|
size: {
|
|
104
145
|
normal: textStyles.size.normal,
|
|
105
146
|
small: textStyles.size.small,
|
|
@@ -113,7 +154,10 @@ const StyledParagraph = styled(Primitive.p, {
|
|
|
113
154
|
});
|
|
114
155
|
|
|
115
156
|
const Paragraph = React.forwardRef(
|
|
116
|
-
(props, forwardRef) =>
|
|
157
|
+
(props, forwardRef) => {
|
|
158
|
+
const [debug] = useLocalStorage("DEBUG_TEXT", false);
|
|
159
|
+
return /* @__PURE__ */ jsx(StyledParagraph, { ref: forwardRef, debug, ...props });
|
|
160
|
+
}
|
|
117
161
|
);
|
|
118
162
|
|
|
119
163
|
export { Heading, Paragraph, Text };
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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: '$heading',\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)\n/** @knipignore */\nexport const H2 = styled(Primitive.h2, styles)\n/** @knipignore */\nexport const H3 = styled(Primitive.h3, styles)\n/** @knipignore */\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
|
|
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: '$heading',\n margin: 0,\n color: '$text-neutrals',\n fontStyle: 'normal',\n fontWeight: 500,\n variants: {\n debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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)\n/** @knipignore */\nexport const H2 = styled(Primitive.h2, styles)\n/** @knipignore */\nexport const H3 = styled(Primitive.h3, styles)\n/** @knipignore */\nexport const H4 = styled(Primitive.h4, styles)\n\nexport type StyledHeadingProps = ComponentPropsWithRef<typeof H1>\n","import type { ElementRef } from 'react'\nimport React from 'react'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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 [debug] = useLocalStorage('DEBUG_TEXT', false)\n const HeadingLevel = Styled[`H${level}`]\n const styledAsLevel =\n styledAs !== undefined ? (+styledAs.replace('h', '') as Level) : styledAs\n return (\n <HeadingLevel\n {...props}\n debug={debug}\n level={styledAsLevel ?? level}\n ref={forwardRef}\n >\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 debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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 const [debug] = useLocalStorage('DEBUG_TEXT', false)\n return (\n <StyledText\n {...restProps}\n ref={forwardRef}\n debug={debug}\n size={size}\n weight={weight}\n />\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 StyledParagraph = styled(Primitive.p, {\n ...textStyles.default,\n margin: 0,\n\n variants: {\n debug: {\n true: {\n color: '#06D834 !important',\n },\n false: {},\n },\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'\nimport { useLocalStorage } from '@mirohq/design-system-use-local-storage'\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) => {\n const [debug] = useLocalStorage('DEBUG_TEXT', false)\n return <StyledParagraph ref={forwardRef} debug={debug} {...props} />\n }\n)\n"],"names":[],"mappings":";;;;;;AAIA,MAAM,MAAS,GAAA;AAAA,EACb,OAAS,EAAA,OAAA;AAAA,EACT,UAAY,EAAA,UAAA;AAAA,EACZ,MAAQ,EAAA,CAAA;AAAA,EACR,KAAO,EAAA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KAC1B;AAAA,GACF;AACF,CAAC,CAAA;;ACHM,MAAM,YAAY,KAAM,CAAA,UAAA;AAAA,EAC7B,CAAC,OAAO,UAAe,KAAA;AACrB,IAAA,MAAM,CAAC,KAAK,CAAI,GAAA,eAAA,CAAgB,cAAc,KAAK,CAAA,CAAA;AACnD,IAAA,2BAAQ,eAAgB,EAAA,EAAA,GAAA,EAAK,UAAY,EAAA,KAAA,EAAe,GAAG,KAAO,EAAA,CAAA,CAAA;AAAA,GACpE;AACF;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -4,10 +4,12 @@ import * as _stitches_react_types_styled_component from '@stitches/react/types/s
|
|
|
4
4
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
5
|
import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
|
|
6
6
|
|
|
7
|
-
declare const H1: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"h1">>>, "level"> & _stitches_react_types_styled_component.TransformProps<{
|
|
8
|
-
|
|
7
|
+
declare const H1: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"h1">>>, "debug" | "level"> & _stitches_react_types_styled_component.TransformProps<{
|
|
8
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
9
|
+
level?: "1" | "2" | "3" | "4" | 3 | 2 | 1 | 4 | undefined;
|
|
9
10
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLHeadingElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"h1">>, {
|
|
10
|
-
|
|
11
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
12
|
+
level?: "1" | "2" | "3" | "4" | 3 | 2 | 1 | 4 | undefined;
|
|
11
13
|
}, {}>;
|
|
12
14
|
declare type StyledHeadingProps = ComponentPropsWithRef<typeof H1>;
|
|
13
15
|
|
|
@@ -25,10 +27,12 @@ interface HeadingProps extends StyledHeadingProps {
|
|
|
25
27
|
}
|
|
26
28
|
declare const Heading: react__default.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & react__default.RefAttributes<HTMLHeadingElement>>;
|
|
27
29
|
|
|
28
|
-
declare const StyledText: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>>, "size" | "weight"> & _stitches_react_types_styled_component.TransformProps<{
|
|
30
|
+
declare const StyledText: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>>, "size" | "weight" | "debug"> & _stitches_react_types_styled_component.TransformProps<{
|
|
31
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
29
32
|
size?: "small" | "normal" | "mini" | undefined;
|
|
30
33
|
weight?: "bold" | "normal" | undefined;
|
|
31
34
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLSpanElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"span">>, {
|
|
35
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
32
36
|
size?: "small" | "normal" | "mini" | undefined;
|
|
33
37
|
weight?: "bold" | "normal" | undefined;
|
|
34
38
|
}, {}>;
|
|
@@ -50,10 +54,12 @@ interface TextProps extends StyledTextProps {
|
|
|
50
54
|
}
|
|
51
55
|
declare const Text: react__default.ForwardRefExoticComponent<Omit<TextProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
|
|
52
56
|
|
|
53
|
-
declare const StyledParagraph: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"p">>>, "size" | "weight"> & _stitches_react_types_styled_component.TransformProps<{
|
|
57
|
+
declare const StyledParagraph: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"p">>>, "size" | "weight" | "debug"> & _stitches_react_types_styled_component.TransformProps<{
|
|
58
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
54
59
|
size?: "small" | "normal" | "mini" | undefined;
|
|
55
60
|
weight?: "bold" | "normal" | undefined;
|
|
56
61
|
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLParagraphElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"p">>, {
|
|
62
|
+
debug?: boolean | "true" | "false" | undefined;
|
|
57
63
|
size?: "small" | "normal" | "mini" | undefined;
|
|
58
64
|
weight?: "bold" | "normal" | undefined;
|
|
59
65
|
}, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-typography",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@mirohq/design-system-primitive": "^1.1.2",
|
|
30
|
-
"@mirohq/design-system-stitches": "^2.6.21"
|
|
30
|
+
"@mirohq/design-system-stitches": "^2.6.21",
|
|
31
|
+
"@mirohq/design-system-use-local-storage": "^0.3.11"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
34
|
"build": "rollup -c ../../../rollup.config.js",
|