beyond-system 0.1.3 → 0.1.5
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/colors/base-colors.d.ts +50 -0
- package/dist/colors/base-colors.js +54 -0
- package/dist/colors/base-colors.js.map +1 -0
- package/dist/colors/gradients.d.ts +7 -0
- package/dist/colors/gradients.js +8 -0
- package/dist/colors/gradients.js.map +1 -0
- package/dist/colors/index.d.ts +3 -0
- package/dist/colors/index.js +4 -0
- package/dist/colors/index.js.map +1 -0
- package/dist/colors/shadows.d.ts +7 -0
- package/dist/colors/shadows.js +8 -0
- package/dist/colors/shadows.js.map +1 -0
- package/dist/components/react/Checkbox/Checkbox.d.ts +11 -0
- package/dist/components/react/Checkbox/Checkbox.js +15 -0
- package/dist/components/react/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/react/Checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/components/react/Checkbox/Checkbox.stories.js +54 -0
- package/dist/components/react/Checkbox/Checkbox.stories.js.map +1 -0
- package/dist/components/react/Checkbox/Checkbox.styles.d.ts +19 -0
- package/dist/components/react/Checkbox/Checkbox.styles.js +60 -0
- package/dist/components/react/Checkbox/Checkbox.styles.js.map +1 -0
- package/dist/components/react/Checkbox/Checkbox.variants.d.ts +25 -0
- package/dist/components/react/Checkbox/Checkbox.variants.js +27 -0
- package/dist/components/react/Checkbox/Checkbox.variants.js.map +1 -0
- package/dist/components/react/DefaultButton/DefaultButton.js +21 -0
- package/dist/components/react/DefaultButton/DefaultButton.js.map +1 -0
- package/dist/components/react/DefaultButton/DefaultButton.stories.js +85 -0
- package/dist/components/react/DefaultButton/DefaultButton.stories.js.map +1 -0
- package/dist/components/react/DefaultButton/DefaultButton.styles.d.ts +15 -0
- package/dist/components/react/DefaultButton/DefaultButton.styles.js +92 -0
- package/dist/components/react/DefaultButton/DefaultButton.styles.js.map +1 -0
- package/dist/components/react/DefaultButton/DefaultButton.variants.d.ts +45 -0
- package/dist/components/react/DefaultButton/DefaultButton.variants.js +48 -0
- package/dist/components/react/DefaultButton/DefaultButton.variants.js.map +1 -0
- package/dist/components/react/IconButton/IconButton.js +18 -0
- package/dist/components/react/IconButton/IconButton.js.map +1 -0
- package/dist/components/react/IconButton/IconButton.stories.js +63 -0
- package/dist/components/react/IconButton/IconButton.stories.js.map +1 -0
- package/dist/components/react/IconButton/IconButton.styles.d.ts +13 -0
- package/dist/components/react/IconButton/IconButton.styles.js +86 -0
- package/dist/components/react/IconButton/IconButton.styles.js.map +1 -0
- package/dist/components/react/IconButton/IconButton.variants.d.ts +36 -0
- package/dist/components/react/IconButton/IconButton.variants.js +39 -0
- package/dist/components/react/IconButton/IconButton.variants.js.map +1 -0
- package/dist/components/react/Loader/Loader.d.ts +11 -0
- package/dist/components/react/Loader/Loader.js +33 -0
- package/dist/components/react/Loader/Loader.js.map +1 -0
- package/dist/components/react/Loader/Loader.stories.d.ts +7 -0
- package/dist/components/react/Loader/Loader.stories.js +31 -0
- package/dist/components/react/Loader/Loader.stories.js.map +1 -0
- package/dist/components/react/OutlineButton/OutlineButton.js +21 -0
- package/dist/components/react/OutlineButton/OutlineButton.js.map +1 -0
- package/dist/components/react/OutlineButton/OutlineButton.stories.js +85 -0
- package/dist/components/react/OutlineButton/OutlineButton.stories.js.map +1 -0
- package/dist/components/react/OutlineButton/OutlineButton.styles.d.ts +12 -0
- package/dist/components/react/OutlineButton/OutlineButton.styles.js +86 -0
- package/dist/components/react/OutlineButton/OutlineButton.styles.js.map +1 -0
- package/dist/components/react/OutlineButton/OutlineButton.variants.d.ts +36 -0
- package/dist/components/react/OutlineButton/OutlineButton.variants.js +39 -0
- package/dist/components/react/OutlineButton/OutlineButton.variants.js.map +1 -0
- package/dist/components/react/RadioInput/RadioInput.d.ts +7 -0
- package/dist/components/react/RadioInput/RadioInput.js +12 -0
- package/dist/components/react/RadioInput/RadioInput.js.map +1 -0
- package/dist/components/react/RadioInput/RadioInput.stories.d.ts +7 -0
- package/dist/components/react/RadioInput/RadioInput.stories.js +48 -0
- package/dist/components/react/RadioInput/RadioInput.stories.js.map +1 -0
- package/dist/components/react/RadioInput/RadioInput.styles.d.ts +14 -0
- package/dist/components/react/RadioInput/RadioInput.styles.js +52 -0
- package/dist/components/react/RadioInput/RadioInput.styles.js.map +1 -0
- package/dist/components/react/RadioInput/RadioInput.variants.d.ts +21 -0
- package/dist/components/react/RadioInput/RadioInput.variants.js +23 -0
- package/dist/components/react/RadioInput/RadioInput.variants.js.map +1 -0
- package/dist/components/react/Switch/Switch.d.ts +10 -0
- package/dist/components/react/Switch/Switch.js +13 -0
- package/dist/components/react/Switch/Switch.js.map +1 -0
- package/dist/components/react/Switch/Switch.stories.d.ts +7 -0
- package/dist/components/react/Switch/Switch.stories.js +48 -0
- package/dist/components/react/Switch/Switch.stories.js.map +1 -0
- package/dist/components/react/Switch/Switch.styles.d.ts +13 -0
- package/dist/components/react/Switch/Switch.styles.js +47 -0
- package/dist/components/react/Switch/Switch.styles.js.map +1 -0
- package/dist/components/react/Switch/Switch.variants.d.ts +17 -0
- package/dist/components/react/Switch/Switch.variants.js +19 -0
- package/dist/components/react/Switch/Switch.variants.js.map +1 -0
- package/dist/components/react/TransparentButton/TransparentButton.d.ts +7 -0
- package/dist/components/react/TransparentButton/TransparentButton.js +13 -0
- package/dist/components/react/TransparentButton/TransparentButton.js.map +1 -0
- package/dist/components/react/TransparentButton/TransparentButton.stories.d.ts +7 -0
- package/dist/components/react/TransparentButton/TransparentButton.stories.js +48 -0
- package/dist/components/react/TransparentButton/TransparentButton.stories.js.map +1 -0
- package/dist/components/react/TransparentButton/TransparentButton.styles.d.ts +10 -0
- package/dist/components/react/TransparentButton/TransparentButton.styles.js +65 -0
- package/dist/components/react/TransparentButton/TransparentButton.styles.js.map +1 -0
- package/dist/components/react/TransparentButton/TransparentButton.variants.d.ts +32 -0
- package/dist/components/react/TransparentButton/TransparentButton.variants.js +35 -0
- package/dist/components/react/TransparentButton/TransparentButton.variants.js.map +1 -0
- package/dist/stories/base-colors/base-colors.stories.d.ts +5 -0
- package/dist/stories/base-colors/base-colors.stories.js +50 -0
- package/dist/stories/base-colors/base-colors.stories.js.map +1 -0
- package/dist/stories/base-colors/base-colors.stories.styles.d.ts +2 -0
- package/dist/stories/base-colors/base-colors.stories.styles.js +64 -0
- package/dist/stories/base-colors/base-colors.stories.styles.js.map +1 -0
- package/dist/stories/gradients/gradients.stories.d.ts +5 -0
- package/dist/stories/gradients/gradients.stories.js +22 -0
- package/dist/stories/gradients/gradients.stories.js.map +1 -0
- package/dist/stories/gradients/gradients.stories.styles.d.ts +2 -0
- package/dist/stories/gradients/gradients.stories.styles.js +59 -0
- package/dist/stories/gradients/gradients.stories.styles.js.map +1 -0
- package/dist/stories/shadows/shadows.stories.d.ts +5 -0
- package/dist/stories/shadows/shadows.stories.js +20 -0
- package/dist/stories/shadows/shadows.stories.js.map +1 -0
- package/dist/stories/shadows/shadows.stories.styles.d.ts +2 -0
- package/dist/stories/shadows/shadows.stories.styles.js +58 -0
- package/dist/stories/shadows/shadows.stories.styles.js.map +1 -0
- package/dist/web/border.d.ts +12 -0
- package/dist/web/border.js +13 -0
- package/dist/web/border.js.map +1 -0
- package/dist/web/font.d.ts +34 -0
- package/dist/web/font.js +35 -0
- package/dist/web/font.js.map +1 -0
- package/dist/web/index.d.ts +2 -0
- package/dist/web/index.js +3 -0
- package/dist/web/index.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ButtonComponent from './TransparentButton';
|
|
3
|
+
import { TRANSPARENT_BUTTON_VARIANTS } from './TransparentButton.variants';
|
|
4
|
+
export const TransparentButton = (props) => {
|
|
5
|
+
return React.createElement(ButtonComponent, Object.assign({}, props));
|
|
6
|
+
};
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Buttons/TransparentButton',
|
|
9
|
+
parameters: {
|
|
10
|
+
component: TransparentButton,
|
|
11
|
+
},
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Button',
|
|
14
|
+
variant: 'primary',
|
|
15
|
+
size: 'MD',
|
|
16
|
+
disabled: false,
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
children: {
|
|
20
|
+
control: {
|
|
21
|
+
type: 'text',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
variant: {
|
|
25
|
+
control: {
|
|
26
|
+
type: 'select',
|
|
27
|
+
options: Object.keys(TRANSPARENT_BUTTON_VARIANTS.color),
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
control: {
|
|
32
|
+
type: 'select',
|
|
33
|
+
options: Object.keys(TRANSPARENT_BUTTON_VARIANTS.size),
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
disabled: {
|
|
37
|
+
control: {
|
|
38
|
+
type: 'boolean',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
onClick: {
|
|
42
|
+
control: {
|
|
43
|
+
action: 'clicked',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=TransparentButton.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransparentButton.stories.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,eAAe,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAI1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE;IAChD,OAAO,oBAAC,eAAe,oBAAK,KAAK,EAAI,CAAA;AACvC,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE;QACV,SAAS,EAAE,iBAAiB;KAC7B;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,KAAK;KAChB;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,MAAM;aACb;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,KAAK,CAAC;aACxD;SACF;QACD,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC;aACvD;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,MAAM,EAAE,SAAS;aAClB;SACF;KACF;CACM,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type StyledButtonProps = {
|
|
2
|
+
padding: string;
|
|
3
|
+
color: string;
|
|
4
|
+
fontSize: string;
|
|
5
|
+
gap: string;
|
|
6
|
+
hoverColor: string;
|
|
7
|
+
activeColor: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const StyledButtonContainer: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { COLORS } from '../../../colors';
|
|
3
|
+
export const StyledButtonContainer = styled.button `
|
|
4
|
+
all: unset;
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
|
|
12
|
+
transition: 0.05s ease-in-out;
|
|
13
|
+
|
|
14
|
+
padding: ${(props) => props.padding};
|
|
15
|
+
gap: ${(props) => props.gap};
|
|
16
|
+
|
|
17
|
+
color: ${(props) => props.color};
|
|
18
|
+
font-size: ${(props) => props.fontSize};
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
|
|
21
|
+
* {
|
|
22
|
+
color: ${(props) => props.color};
|
|
23
|
+
font-size: ${(props) => props.fontSize};
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
padding: ${(props) => props.padding};
|
|
28
|
+
|
|
29
|
+
:hover {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transform: scale(1.01);
|
|
32
|
+
|
|
33
|
+
color: ${(props) => props.hoverColor};
|
|
34
|
+
|
|
35
|
+
* {
|
|
36
|
+
color: ${(props) => props.hoverColor};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:active {
|
|
41
|
+
transform: scale(0.98);
|
|
42
|
+
|
|
43
|
+
color: ${(props) => props.activeColor};
|
|
44
|
+
|
|
45
|
+
* {
|
|
46
|
+
color: ${(props) => props.activeColor};
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:disabled {
|
|
51
|
+
color: ${COLORS.NEUTRAL_LIGHT};
|
|
52
|
+
border-color: ${COLORS.NEUTRAL_LIGHT};
|
|
53
|
+
background-color: ${COLORS.NEUTRAL_HIGH};
|
|
54
|
+
|
|
55
|
+
:hover {
|
|
56
|
+
cursor: default;
|
|
57
|
+
transform: scale(1);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:active {
|
|
61
|
+
transform: scale(1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
//# sourceMappingURL=TransparentButton.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransparentButton.styles.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAWjC,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAmB;;;;;;;;;;;aAWxD,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;SAC5B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG;;WAElB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;eAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;aAI3B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;iBAClB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;;;;aAI7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO;;;;;;aAMxB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;eAGzB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;;;;;;;aAO7B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;eAG1B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW;;;;;aAK9B,MAAM,CAAC,aAAa;oBACb,MAAM,CAAC,aAAa;wBAChB,MAAM,CAAC,YAAY;;;;;;;;;;;CAW1C,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const TRANSPARENT_BUTTON_VARIANTS: {
|
|
2
|
+
color: {
|
|
3
|
+
primary: {
|
|
4
|
+
color: string;
|
|
5
|
+
hoverColor: string;
|
|
6
|
+
activeColor: string;
|
|
7
|
+
};
|
|
8
|
+
light: {
|
|
9
|
+
color: string;
|
|
10
|
+
hoverColor: string;
|
|
11
|
+
activeColor: string;
|
|
12
|
+
};
|
|
13
|
+
dark: {
|
|
14
|
+
color: string;
|
|
15
|
+
hoverColor: string;
|
|
16
|
+
activeColor: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
SM: {
|
|
21
|
+
fontSize: string;
|
|
22
|
+
padding: string;
|
|
23
|
+
gap: string;
|
|
24
|
+
iconSize: string;
|
|
25
|
+
};
|
|
26
|
+
MD: {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
gap: string;
|
|
29
|
+
padding: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { COLORS } from '../../../colors';
|
|
2
|
+
import { FONT } from '../../../web';
|
|
3
|
+
export const TRANSPARENT_BUTTON_VARIANTS = {
|
|
4
|
+
color: {
|
|
5
|
+
primary: {
|
|
6
|
+
color: COLORS.GROWTH_MID,
|
|
7
|
+
hoverColor: COLORS.GROWTH_LIGHT,
|
|
8
|
+
activeColor: COLORS.GROWTH_DARK,
|
|
9
|
+
},
|
|
10
|
+
light: {
|
|
11
|
+
color: COLORS.NEUTRAL_LIGHTER,
|
|
12
|
+
hoverColor: COLORS.NEUTRAL_HIGH,
|
|
13
|
+
activeColor: COLORS.NEUTRAL_LIGHT,
|
|
14
|
+
},
|
|
15
|
+
dark: {
|
|
16
|
+
color: COLORS.NEUTRAL_DARKER,
|
|
17
|
+
hoverColor: COLORS.NEUTRAL_DARK,
|
|
18
|
+
activeColor: COLORS.NEUTRAL_LOW,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
size: {
|
|
22
|
+
SM: {
|
|
23
|
+
fontSize: FONT.SIZE.SM,
|
|
24
|
+
padding: '6px 12px',
|
|
25
|
+
gap: '4px',
|
|
26
|
+
iconSize: '16px',
|
|
27
|
+
},
|
|
28
|
+
MD: {
|
|
29
|
+
fontSize: FONT.SIZE.MD,
|
|
30
|
+
gap: '8px',
|
|
31
|
+
padding: '10px 20px',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=TransparentButton.variants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransparentButton.variants.js","sourceRoot":"","sources":["../../../../src/components/react/TransparentButton/TransparentButton.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE5B,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,KAAK,EAAE;QACL,OAAO,EAAE;YACP,KAAK,EAAE,MAAM,CAAC,UAAU;YACxB,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC;QACD,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,CAAC,eAAe;YAC7B,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,aAAa;SAClC;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC,cAAc;YAC5B,UAAU,EAAE,MAAM,CAAC,YAAY;YAC/B,WAAW,EAAE,MAAM,CAAC,WAAW;SAChC;KACF;IACD,IAAI,EAAE;QACJ,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE,KAAK;YACV,QAAQ,EAAE,MAAM;SACjB;QACD,EAAE,EAAE;YACF,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;YACtB,GAAG,EAAE,KAAK;YACV,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { COLORS } from '../../colors/base-colors';
|
|
3
|
+
import { BaseColorsContainer, StyledSquare } from './base-colors.stories.styles';
|
|
4
|
+
const getColorValue = (color) => {
|
|
5
|
+
const colorParts = color.split('.');
|
|
6
|
+
let colorValue = COLORS;
|
|
7
|
+
colorParts.forEach((colorPart) => {
|
|
8
|
+
colorValue = colorValue[colorPart];
|
|
9
|
+
});
|
|
10
|
+
return colorValue;
|
|
11
|
+
};
|
|
12
|
+
const handleCopyToClipboard = (hex) => {
|
|
13
|
+
navigator.clipboard.writeText(hex);
|
|
14
|
+
};
|
|
15
|
+
export const BaseColors = () => {
|
|
16
|
+
const flattenedColors = Object.entries(COLORS).reduce((acc, [key, value]) => {
|
|
17
|
+
if (typeof value === 'object') {
|
|
18
|
+
const newKeys = Object.keys(value).map((k) => `${key}.${k}`);
|
|
19
|
+
const newValues = Object.values(value);
|
|
20
|
+
return Object.assign(Object.assign({}, acc), Object.fromEntries(newKeys.map((k, i) => [k, newValues[i]])));
|
|
21
|
+
}
|
|
22
|
+
return Object.assign(Object.assign({}, acc), { [key]: value });
|
|
23
|
+
}, {});
|
|
24
|
+
const uniqueFlattenedColors = Object.entries(flattenedColors).reduce((acc, [key, value]) => {
|
|
25
|
+
if (Object.values(acc).includes(value)) {
|
|
26
|
+
return acc;
|
|
27
|
+
}
|
|
28
|
+
return Object.assign(Object.assign({}, acc), { [key]: value });
|
|
29
|
+
}, {});
|
|
30
|
+
return (React.createElement(BaseColorsContainer, null, Object.keys(uniqueFlattenedColors).map((key) => {
|
|
31
|
+
const colorHex = getColorValue(key);
|
|
32
|
+
const aliases = Object.entries(flattenedColors)
|
|
33
|
+
.filter(([k, v]) => v === colorHex && k !== key)
|
|
34
|
+
.map(([k]) => k)
|
|
35
|
+
.join(', ');
|
|
36
|
+
return (React.createElement("button", { key: key, className: "color-item", onClick: () => handleCopyToClipboard(colorHex) },
|
|
37
|
+
React.createElement(StyledSquare, { color: colorHex, title: colorHex }),
|
|
38
|
+
React.createElement("div", { title: key, className: "color-item__name" },
|
|
39
|
+
React.createElement("span", { className: "color-item__name__hex" }, colorHex.toUpperCase()),
|
|
40
|
+
React.createElement("span", { className: "color-item__name__key" }, key),
|
|
41
|
+
React.createElement("span", { className: "color-item__name__aliases" }, aliases))));
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
export default {
|
|
45
|
+
title: 'Fundation/Colors',
|
|
46
|
+
parameters: {
|
|
47
|
+
component: BaseColors,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=base-colors.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-colors.stories.js","sourceRoot":"","sources":["../../../src/stories/base-colors/base-colors.stories.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const BaseColorsContainer = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
justify-content: space-around;
|
|
6
|
+
width: 100%;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
|
|
9
|
+
gap: 16px;
|
|
10
|
+
|
|
11
|
+
.color-item {
|
|
12
|
+
all: unset;
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 400px;
|
|
18
|
+
|
|
19
|
+
background-color: #fff;
|
|
20
|
+
border-radius: 4px;
|
|
21
|
+
|
|
22
|
+
transition: 0.2s ease-in-out;
|
|
23
|
+
padding-right: 8px;
|
|
24
|
+
|
|
25
|
+
gap: 16px;
|
|
26
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
|
27
|
+
|
|
28
|
+
:hover {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
31
|
+
transform: scale(1.02);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.color-item__name {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
|
|
41
|
+
color: #454545;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.color-item__name__hex {
|
|
47
|
+
font-size: 0.75em;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
color: #8e96a2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.color-item__name__aliases {
|
|
53
|
+
font-size: 0.75em;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
color: #8e96a2;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
export const StyledSquare = styled.div `
|
|
59
|
+
min-width: 75px;
|
|
60
|
+
min-height: 75px;
|
|
61
|
+
border-radius: 4px;
|
|
62
|
+
background: ${(props) => props.color};
|
|
63
|
+
`;
|
|
64
|
+
//# sourceMappingURL=base-colors.stories.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-colors.stories.styles.js","sourceRoot":"","sources":["../../../src/stories/base-colors/base-colors.stories.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuD5C,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAK;;;;gBAI3B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK;CACrC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GRADIENTS } from '../../colors/gradients';
|
|
3
|
+
import { BaseColorsContainer, StyledSquare } from './gradients.stories.styles';
|
|
4
|
+
const handleCopyToClipboard = (hex) => {
|
|
5
|
+
navigator.clipboard.writeText(hex);
|
|
6
|
+
};
|
|
7
|
+
export const Gradients = () => {
|
|
8
|
+
return (React.createElement(BaseColorsContainer, null, Object.entries(GRADIENTS).map(([key, value]) => {
|
|
9
|
+
return (React.createElement("button", { key: key, className: "color-item", onClick: () => handleCopyToClipboard(value) },
|
|
10
|
+
React.createElement(StyledSquare, { gradient: value }),
|
|
11
|
+
React.createElement("div", { title: key, className: "color-item__name" },
|
|
12
|
+
React.createElement("span", { className: "color-item__name__key" }, key),
|
|
13
|
+
React.createElement("span", { className: "color-item__name__value" }, value))));
|
|
14
|
+
})));
|
|
15
|
+
};
|
|
16
|
+
export default {
|
|
17
|
+
title: 'Fundation/Colors',
|
|
18
|
+
parameters: {
|
|
19
|
+
component: Gradients,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=gradients.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradients.stories.js","sourceRoot":"","sources":["../../../src/stories/gradients/gradients.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAE9E,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,EAAE;IAC5C,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,EAAE;IAC5B,OAAO,CACL,oBAAC,mBAAmB,QACjB,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC9C,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,YAAY,EACtB,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC;YAE3C,oBAAC,YAAY,IAAC,QAAQ,EAAE,KAAK,GAAI;YACjC,6BAAK,KAAK,EAAE,GAAG,EAAE,SAAS,EAAC,kBAAkB;gBAC3C,8BAAM,SAAS,EAAC,uBAAuB,IAAE,GAAG,CAAQ;gBACpD,8BAAM,SAAS,EAAC,yBAAyB,IAAE,KAAK,CAAQ,CACpD,CACC,CACV,CAAA;IACH,CAAC,CAAC,CACkB,CACvB,CAAA;AACH,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,SAAS;KACrB;CACM,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const BaseColorsContainer = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
justify-content: space-around;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
margin: 0 auto;
|
|
9
|
+
|
|
10
|
+
gap: 16px;
|
|
11
|
+
|
|
12
|
+
.color-item {
|
|
13
|
+
all: unset;
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
width: 100%;
|
|
18
|
+
max-width: 45%;
|
|
19
|
+
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
|
|
23
|
+
transition: 0.2s ease-in-out;
|
|
24
|
+
padding-right: 8px;
|
|
25
|
+
|
|
26
|
+
gap: 16px;
|
|
27
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
|
28
|
+
|
|
29
|
+
:hover {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
32
|
+
transform: scale(1.02);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.color-item__name {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
font-weight: 700;
|
|
41
|
+
|
|
42
|
+
color: #454545;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.color-item__name__value {
|
|
48
|
+
font-size: 0.75em;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
color: #8e96a2;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
export const StyledSquare = styled.div `
|
|
54
|
+
min-width: 150px;
|
|
55
|
+
min-height: 100px;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
background: ${(props) => props.gradient};
|
|
58
|
+
`;
|
|
59
|
+
//# sourceMappingURL=gradients.stories.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gradients.stories.styles.js","sourceRoot":"","sources":["../../../src/stories/gradients/gradients.stories.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkD5C,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAK;;;;gBAI3B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ;CACxC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SHADOWS } from '../../colors/shadows';
|
|
3
|
+
import { BaseColorsContainer, StyledSquare } from './shadows.stories.styles';
|
|
4
|
+
const handleCopyToClipboard = (hex) => {
|
|
5
|
+
navigator.clipboard.writeText(hex);
|
|
6
|
+
};
|
|
7
|
+
export const Shadows = () => {
|
|
8
|
+
return (React.createElement(BaseColorsContainer, null, Object.entries(SHADOWS).map(([key, value]) => {
|
|
9
|
+
return (React.createElement(StyledSquare, { boxShadow: value, title: key, key: key, onClick: () => handleCopyToClipboard(value) },
|
|
10
|
+
React.createElement("span", { className: "item__name__key" }, key),
|
|
11
|
+
React.createElement("span", { className: "item__name__value" }, value)));
|
|
12
|
+
})));
|
|
13
|
+
};
|
|
14
|
+
export default {
|
|
15
|
+
title: 'Fundation/Colors',
|
|
16
|
+
parameters: {
|
|
17
|
+
component: Shadows,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=shadows.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadows.stories.js","sourceRoot":"","sources":["../../../src/stories/shadows/shadows.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5E,MAAM,qBAAqB,GAAG,CAAC,GAAW,EAAE,EAAE;IAC5C,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;AACpC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,EAAE;IAC1B,OAAO,CACL,oBAAC,mBAAmB,QACjB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC5C,OAAO,CACL,oBAAC,YAAY,IACX,SAAS,EAAE,KAAK,EAChB,KAAK,EAAE,GAAG,EACV,GAAG,EAAE,GAAG,EACR,OAAO,EAAE,GAAG,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC;YAE3C,8BAAM,SAAS,EAAC,iBAAiB,IAAE,GAAG,CAAQ;YAC9C,8BAAM,SAAS,EAAC,mBAAmB,IAAE,KAAK,CAAQ,CACrC,CAChB,CAAA;IACH,CAAC,CAAC,CACkB,CACvB,CAAA;AACH,CAAC,CAAA;AAED,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,SAAS,EAAE,OAAO;KACnB;CACM,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const BaseColorsContainer = styled.div `
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
justify-content: space-around;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
margin: 0 auto;
|
|
9
|
+
|
|
10
|
+
gap: 64px 16px;
|
|
11
|
+
`;
|
|
12
|
+
export const StyledSquare = styled.button `
|
|
13
|
+
all: unset;
|
|
14
|
+
width: 100%;
|
|
15
|
+
max-width: 300px;
|
|
16
|
+
min-height: 150px;
|
|
17
|
+
|
|
18
|
+
padding: 24px;
|
|
19
|
+
border-radius: 4px;
|
|
20
|
+
box-shadow: ${(props) => props.boxShadow};
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
|
|
27
|
+
background-color: #fff;
|
|
28
|
+
border-radius: 4px;
|
|
29
|
+
|
|
30
|
+
transition: 0.2s ease-in-out;
|
|
31
|
+
padding-right: 8px;
|
|
32
|
+
|
|
33
|
+
gap: 16px;
|
|
34
|
+
|
|
35
|
+
.item__name__key {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
|
|
41
|
+
color: #454545;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-align: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.item__name__value {
|
|
47
|
+
font-size: 0.75em;
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
color: #8e96a2;
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:hover {
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transform: scale(1.02);
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
//# sourceMappingURL=shadows.stories.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadows.stories.styles.js","sourceRoot":"","sources":["../../../src/stories/shadows/shadows.stories.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAA;AAEtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAS5C,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAK;;;;;;;;gBAQ9B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border.js","sourceRoot":"","sources":["../../src/web/border.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,MAAM,EAAE;QACN,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;KACV;IAED,KAAK,EAAE;QACL,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,KAAK;QACT,EAAE,EAAE,OAAO;KACZ;CACF,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const FONT: {
|
|
2
|
+
FAMILY: {
|
|
3
|
+
PRIMARY: string;
|
|
4
|
+
SECONDARY: string;
|
|
5
|
+
};
|
|
6
|
+
WEIGHT: {
|
|
7
|
+
LIGHT: number;
|
|
8
|
+
REGULAR: number;
|
|
9
|
+
MEDIUM: number;
|
|
10
|
+
SEMIBOLD: number;
|
|
11
|
+
BOLD: number;
|
|
12
|
+
};
|
|
13
|
+
SIZE: {
|
|
14
|
+
XL: string;
|
|
15
|
+
LG: string;
|
|
16
|
+
MD: string;
|
|
17
|
+
SM: string;
|
|
18
|
+
XS: string;
|
|
19
|
+
XXS: string;
|
|
20
|
+
};
|
|
21
|
+
LINE_HEIGHT: {
|
|
22
|
+
XL: string;
|
|
23
|
+
LG: string;
|
|
24
|
+
MD: string;
|
|
25
|
+
SM: string;
|
|
26
|
+
XS: string;
|
|
27
|
+
XXS: string;
|
|
28
|
+
};
|
|
29
|
+
LETTER_SPACING: {
|
|
30
|
+
XL: string;
|
|
31
|
+
LG: string;
|
|
32
|
+
MD: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
package/dist/web/font.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const FONT = {
|
|
2
|
+
FAMILY: {
|
|
3
|
+
PRIMARY: 'Poppins, sans-serif',
|
|
4
|
+
SECONDARY: 'Poppins, sans-serif',
|
|
5
|
+
},
|
|
6
|
+
WEIGHT: {
|
|
7
|
+
LIGHT: 300,
|
|
8
|
+
REGULAR: 400,
|
|
9
|
+
MEDIUM: 500,
|
|
10
|
+
SEMIBOLD: 600,
|
|
11
|
+
BOLD: 700,
|
|
12
|
+
},
|
|
13
|
+
SIZE: {
|
|
14
|
+
XL: '1.5rem',
|
|
15
|
+
LG: '1.125rem',
|
|
16
|
+
MD: '0.875rem',
|
|
17
|
+
SM: '0.75rem',
|
|
18
|
+
XS: '0.625rem',
|
|
19
|
+
XXS: '0.5rem',
|
|
20
|
+
},
|
|
21
|
+
LINE_HEIGHT: {
|
|
22
|
+
XL: '2.25rem',
|
|
23
|
+
LG: '1.75rem',
|
|
24
|
+
MD: '1.25rem',
|
|
25
|
+
SM: '1.125rem',
|
|
26
|
+
XS: '1rem',
|
|
27
|
+
XXS: '0.875rem',
|
|
28
|
+
},
|
|
29
|
+
LETTER_SPACING: {
|
|
30
|
+
XL: '0.05em',
|
|
31
|
+
LG: '0.025em',
|
|
32
|
+
MD: '0.0125em',
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=font.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"font.js","sourceRoot":"","sources":["../../src/web/font.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,MAAM,EAAE;QACN,OAAO,EAAE,qBAAqB;QAC9B,SAAS,EAAE,qBAAqB;KACjC;IAED,MAAM,EAAE;QACN,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,GAAG;QACX,QAAQ,EAAE,GAAG;QACb,IAAI,EAAE,GAAG;KACV;IAED,IAAI,EAAE;QACJ,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;QACd,GAAG,EAAE,QAAQ;KACd;IAED,WAAW,EAAE;QACX,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,MAAM;QACV,GAAG,EAAE,UAAU;KAChB;IAED,cAAc,EAAE;QACd,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,UAAU;KACf;CACF,CAAA"}
|