@guardian/stand 0.0.32 → 0.0.34
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/components/intended-audience-signifier/FlagIcons.cjs +128 -0
- package/dist/components/intended-audience-signifier/FlagIcons.js +9 -0
- package/dist/components/intended-audience-signifier/IntendedAudienceSignifier.cjs +67 -0
- package/dist/components/intended-audience-signifier/IntendedAudienceSignifier.js +35 -0
- package/dist/components/intended-audience-signifier/styles.cjs +31 -0
- package/dist/components/intended-audience-signifier/styles.js +28 -0
- package/dist/components/link/Link.cjs +37 -0
- package/dist/components/link/Link.js +17 -0
- package/dist/components/link/styles.cjs +31 -0
- package/dist/components/link/styles.js +28 -0
- package/dist/index.cjs +6 -2
- package/dist/index.js +3 -1
- package/dist/intended-audience-signifier.cjs +9 -0
- package/dist/intended-audience-signifier.js +2 -0
- package/dist/link.cjs +9 -0
- package/dist/link.js +2 -0
- package/dist/styleD/build/css/base/typography.css +2 -2
- package/dist/styleD/build/css/component/TopBar.css +2 -2
- package/dist/styleD/build/css/component/alertBanner.css +1 -1
- package/dist/styleD/build/css/component/autocomplete.css +1 -1
- package/dist/styleD/build/css/component/avatar.css +1 -1
- package/dist/styleD/build/css/component/button.css +3 -3
- package/dist/styleD/build/css/component/checkbox.css +2 -2
- package/dist/styleD/build/css/component/favicon.css +1 -1
- package/dist/styleD/build/css/component/form.css +1 -1
- package/dist/styleD/build/css/component/inlineMessage.css +1 -1
- package/dist/styleD/build/css/component/intendedAudienceSignifier.css +25 -0
- package/dist/styleD/build/css/component/link.css +12 -0
- package/dist/styleD/build/css/component/menu.css +3 -3
- package/dist/styleD/build/css/component/radioGroup.css +3 -3
- package/dist/styleD/build/css/component/select.css +2 -2
- package/dist/styleD/build/css/component/tagTable.css +1 -1
- package/dist/styleD/build/css/component/textArea.css +2 -2
- package/dist/styleD/build/css/component/textInput.css +2 -2
- package/dist/styleD/build/css/component/userMenu.css +6 -6
- package/dist/styleD/build/css/semantic/typography.css +61 -61
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.cjs +29 -0
- package/dist/styleD/build/typescript/component/intendedAudienceSignifier.js +27 -0
- package/dist/styleD/build/typescript/component/link.cjs +24 -0
- package/dist/styleD/build/typescript/component/link.js +22 -0
- package/dist/types/components/intended-audience-signifier/FlagIcons.d.ts +5 -0
- package/dist/types/components/intended-audience-signifier/IntendedAudienceSignifier.d.ts +2 -0
- package/dist/types/components/intended-audience-signifier/sandbox.d.ts +5 -0
- package/dist/types/components/intended-audience-signifier/styles.d.ts +6 -0
- package/dist/types/components/intended-audience-signifier/types.d.ts +8 -0
- package/dist/types/components/link/Link.d.ts +2 -0
- package/dist/types/components/link/sandbox.d.ts +5 -0
- package/dist/types/components/link/styles.d.ts +7 -0
- package/dist/types/components/link/types.d.ts +11 -0
- package/dist/types/components/typography/types.d.ts +3 -2
- package/dist/types/index.d.ts +6 -2
- package/dist/types/intended-audience-signifier.d.ts +19 -0
- package/dist/types/link.d.ts +19 -0
- package/dist/types/styleD/build/typescript/component/intendedAudienceSignifier.d.ts +29 -0
- package/dist/types/styleD/build/typescript/component/link.d.ts +24 -0
- package/package.json +40 -19
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefaultProps } from '../../util/types';
|
|
2
|
+
import type { IntendedAudienceSignifierTheme } from './styles';
|
|
3
|
+
export type Source = 'UK' | 'US' | 'AUS';
|
|
4
|
+
export type IntendedAudience = 'Global' | 'Domestic for Domestic' | 'Domestic For Global' | "Don't know" | 'UK' | 'US' | 'AUS';
|
|
5
|
+
export interface IntendedAudienceSignifierProps extends DefaultProps<IntendedAudienceSignifierTheme> {
|
|
6
|
+
source: Source;
|
|
7
|
+
intendedAudience: IntendedAudience;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const componentName = "Link";
|
|
2
|
+
export declare const componentTsx = "import { Link } from '@guardian/stand/link';\n\nexport const Component = () => (\n\t<Link href=\"#\">Hello</Link>\n);\n";
|
|
3
|
+
export declare const componentCss = "\n/* import the link styles */\n@import '@guardian/stand/component/link.css';\n\n.stand-typography-body-sm {\n\tfont: var(--semantic-typography-body-sm-font);\n\tletter-spacing: var(--semantic-typography-body-sm-letter-spacing);\n\tfont-variation-settings: \"wdth\" var(--semantic-typography-body-sm-font-width);\n}\n.stand-link {\n\ttext-decoration: underline;\n\ttext-decoration-style: solid;\n\ttext-underline-offset: 8%;\n\ttext-decoration-thickness: 5%;\n\tcolor: var(--component-link-shared-enabled-color);\n}\n\n.stand-link[data-hovered] {\n\tcolor: var(--component-link-shared-hover-color);\n\tcursor: var(--component-link-shared-hover-cursor);\n}\n\n.stand-link[data-pressed] {\n\tcolor: var(--component-link-shared-pressed-color);\n}\n\n.stand-link[data-disabled] {\n\tcolor: var(--component-link-shared-disabled-color);\n}\n\n.stand-link[data-focus-visible] {\n\toutline: var(--component-link-shared-focus-outline);\n}\n";
|
|
4
|
+
export declare const componentHtml = "<div class=\"container\">\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\">Default link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-hovered>Hovered link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-pressed>Pressed link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-disabled>Disabled link</a></br>\n\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-focus-visible>Focused link</a>\n</div>\n";
|
|
5
|
+
export declare const componentJs = "\nimport { componentLink, semanticTypography } from \"@guardian/stand\";\n\nconst semanticTypographyBodySm = `\n\t\tfont: ${semanticTypography['body-sm'].font};\n\t\tletter-spacing: ${semanticTypography['body-sm'].letterSpacing};\n\t\tfont-variation-settings: \"wdth\" ${semanticTypography['body-sm'].fontWidth};\n`;\n\nconst baseStyle = `\n\ttext-decoration: underline;\n\ttext-decoration-style: solid;\n\ttext-underline-offset: 8%;\n\ttext-decoration-thickness: 5%;\n\tcolor: ${componentLink.shared.enabled.color};\n`;\n\nconst hoverStyle = `\n\tcolor: ${componentLink.shared.hover.color};\n\tcursor: ${componentLink.shared.hover.cursor};\n`;\n\nconst pressedStyle = `\n\tcolor: ${componentLink.shared.pressed.color};\n`;\n\nconst disabledStyle = `\n\tcolor: ${componentLink.shared.disabled.color};\n`;\n\nconst focusVisibleStyle = `\n\toutline: ${componentLink.shared.focus.outline};\n`;\n\ndocument.getElementById(\"app\").innerHTML = `\n\t<style>\n\t\t.stand-typography-body-sm { ${semanticTypographyBodySm} }\n\t\t.stand-link { ${baseStyle} }\n\t\t.stand-link[data-hovered] { ${hoverStyle} }\n\t\t.stand-link[data-pressed] { ${pressedStyle} }\n\t\t.stand-link[data-disabled] { ${disabledStyle} }\n\t\t.stand-link[data-focus-visible] { ${focusVisibleStyle} }\n\t</style>\n\t<div class=\"container\">\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\">Default link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-hovered>Hovered link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-pressed>Pressed link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-disabled>Disabled link</a></br>\n\t\t<a class=\"stand-link stand-typography-body-sm\" href=\"#\" data-focus-visible>Focused link</a>\n\t</div>\n`;\n";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import type { ComponentLink } from '../../styleD/build/typescript/component/link';
|
|
3
|
+
import type { DeepPartial, Prettify } from '../../util/types';
|
|
4
|
+
export type LinkTheme = Prettify<ComponentLink>;
|
|
5
|
+
export type PartialLinkTheme = DeepPartial<LinkTheme>;
|
|
6
|
+
export declare const defaultLinkTheme: LinkTheme;
|
|
7
|
+
export declare const linkStyles: (theme: LinkTheme) => SerializedStyles;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LinkProps as RACLinkProps } from 'react-aria-components';
|
|
2
|
+
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
|
+
import type { TypographyVariant } from '../typography/types';
|
|
4
|
+
import type { LinkTheme } from './styles';
|
|
5
|
+
export interface LinkProps extends Omit<RACLinkProps, 'children'>, DefaultPropsWithChildren<LinkTheme, RACLinkProps['className']> {
|
|
6
|
+
/**
|
|
7
|
+
* to change the typography of the link, you can pass a variant from semanticTypography.
|
|
8
|
+
* By default, it is set to "body-sm".
|
|
9
|
+
*/
|
|
10
|
+
typography?: TypographyVariant;
|
|
11
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { SemanticTypography } from '
|
|
1
|
+
import type { SemanticTypography } from '../../styleD/build/typescript/semantic/typography';
|
|
2
2
|
import type { DefaultPropsWithChildren } from '../../util/types';
|
|
3
3
|
import type { TypographyTheme } from './styles';
|
|
4
|
+
export type TypographyVariant = keyof SemanticTypography;
|
|
4
5
|
export interface TypographyProps extends DefaultPropsWithChildren<TypographyTheme> {
|
|
5
6
|
/**
|
|
6
7
|
* HTML element to render with font applied to
|
|
@@ -9,5 +10,5 @@ export interface TypographyProps extends DefaultPropsWithChildren<TypographyThem
|
|
|
9
10
|
/**
|
|
10
11
|
* Font variant to apply as a CSS style to the element
|
|
11
12
|
*/
|
|
12
|
-
variant?:
|
|
13
|
+
variant?: TypographyVariant;
|
|
13
14
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -13,11 +13,11 @@ export { componentTagTable } from './styleD/build/typescript/component/tagTable'
|
|
|
13
13
|
export type { ComponentTagTable } from './styleD/build/typescript/component/tagTable';
|
|
14
14
|
export { componentUserMenu } from './styleD/build/typescript/component/userMenu';
|
|
15
15
|
export type { ComponentUserMenu } from './styleD/build/typescript/component/userMenu';
|
|
16
|
+
export { componentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
17
|
+
export type { ComponentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
16
18
|
/**
|
|
17
19
|
* design system components tokens exports
|
|
18
20
|
*/
|
|
19
|
-
export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner';
|
|
20
|
-
export type { ComponentAlertBanner } from './styleD/build/typescript/component/alertBanner';
|
|
21
21
|
export { componentAvatar } from './styleD/build/typescript/component/avatar';
|
|
22
22
|
export type { ComponentAvatar } from './styleD/build/typescript/component/avatar';
|
|
23
23
|
export { componentButton } from './styleD/build/typescript/component/button';
|
|
@@ -36,6 +36,10 @@ export { componentInlineMessage } from './styleD/build/typescript/component/inli
|
|
|
36
36
|
export type { ComponentInlineMessage } from './styleD/build/typescript/component/inlineMessage';
|
|
37
37
|
export { componentMenu } from './styleD/build/typescript/component/menu';
|
|
38
38
|
export type { ComponentMenu } from './styleD/build/typescript/component/menu';
|
|
39
|
+
export { componentLink } from './styleD/build/typescript/component/link';
|
|
40
|
+
export type { ComponentLink } from './styleD/build/typescript/component/link';
|
|
41
|
+
export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner';
|
|
42
|
+
export type { ComponentAlertBanner } from './styleD/build/typescript/component/alertBanner';
|
|
39
43
|
export { componentRadioGroup } from './styleD/build/typescript/component/radioGroup';
|
|
40
44
|
export type { ComponentRadioGroup } from './styleD/build/typescript/component/radioGroup';
|
|
41
45
|
export { componentSelect } from './styleD/build/typescript/component/select';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IntendedAudienceSignifier component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `typescript`
|
|
9
|
+
*
|
|
10
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
11
|
+
*
|
|
12
|
+
* If you only need the built CSS (./component/intendedAudienceSiginifier.css),
|
|
13
|
+
* you don't need to install these.
|
|
14
|
+
*/
|
|
15
|
+
export { IntendedAudienceSignifier } from './components/intended-audience-signifier/IntendedAudienceSignifier';
|
|
16
|
+
export type { IntendedAudienceSignifierProps } from './components/intended-audience-signifier/types';
|
|
17
|
+
export type { IntendedAudienceSignifierTheme } from './components/intended-audience-signifier/styles';
|
|
18
|
+
export { componentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
19
|
+
export type { ComponentIntendedAudienceSignifier } from './styleD/build/typescript/component/intendedAudienceSignifier';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link component entry point
|
|
3
|
+
*
|
|
4
|
+
* Peer dependencies required to use these components:
|
|
5
|
+
* - `@emotion/react`
|
|
6
|
+
* - `react`
|
|
7
|
+
* - `react-dom`
|
|
8
|
+
* - `typescript`
|
|
9
|
+
*
|
|
10
|
+
* See the `peerDependencies` section of package.json for compatible versions.
|
|
11
|
+
*
|
|
12
|
+
* If you only need the built CSS (./component/link.css),
|
|
13
|
+
* you don't need to install these.
|
|
14
|
+
*/
|
|
15
|
+
export { Link } from './components/link/Link';
|
|
16
|
+
export type { LinkProps } from './components/link/types';
|
|
17
|
+
export type { PartialLinkTheme as LinkTheme } from './components/link/styles';
|
|
18
|
+
export { componentLink } from './styleD/build/typescript/component/link';
|
|
19
|
+
export type { ComponentLink } from './styleD/build/typescript/component/link';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentIntendedAudienceSignifier: {
|
|
5
|
+
display: string;
|
|
6
|
+
flexDirection: string;
|
|
7
|
+
justifyContent: string;
|
|
8
|
+
alignItems: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
borderWidth: string;
|
|
11
|
+
borderStyle: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
paddingY: string;
|
|
14
|
+
paddingX: string;
|
|
15
|
+
boxSizing: string;
|
|
16
|
+
width: string;
|
|
17
|
+
gap: string;
|
|
18
|
+
svg: {
|
|
19
|
+
height: string;
|
|
20
|
+
width: string;
|
|
21
|
+
};
|
|
22
|
+
color: string;
|
|
23
|
+
typography: {
|
|
24
|
+
fontWeight: number;
|
|
25
|
+
fontSize: string;
|
|
26
|
+
lineHeight: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ComponentIntendedAudienceSignifier = typeof componentIntendedAudienceSignifier;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
export declare const componentLink: {
|
|
5
|
+
shared: {
|
|
6
|
+
focus: {
|
|
7
|
+
outline: string;
|
|
8
|
+
};
|
|
9
|
+
hover: {
|
|
10
|
+
color: string;
|
|
11
|
+
cursor: string;
|
|
12
|
+
};
|
|
13
|
+
enabled: {
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
pressed: {
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export type ComponentLink = typeof componentLink;
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
|
+
"repository": {
|
|
5
|
+
"url": "https://github.com/guardian/stand"
|
|
6
|
+
},
|
|
7
|
+
"sideEffects": false,
|
|
4
8
|
"type": "module",
|
|
5
|
-
"//exports": "Each component has its own entry point for optimal tree-shaking. Main entry point only includes design tokens and utilities. New components/foundations should follow the same pattern.",
|
|
6
9
|
"exports": {
|
|
7
10
|
".": {
|
|
8
11
|
"types": "./dist/types/index.d.ts",
|
|
@@ -134,6 +137,16 @@
|
|
|
134
137
|
"import": "./dist/utils.js",
|
|
135
138
|
"require": "./dist/utils.cjs"
|
|
136
139
|
},
|
|
140
|
+
"./intendedAudienceSignifier": {
|
|
141
|
+
"types": "./dist/types/intended-audience-signifier.d.ts",
|
|
142
|
+
"import": "./dist/intended-audience-signifier.js",
|
|
143
|
+
"require": "./dist/intended-audience-signifier.cjs"
|
|
144
|
+
},
|
|
145
|
+
"./link": {
|
|
146
|
+
"types": "./dist/types/link.d.ts",
|
|
147
|
+
"import": "./dist/link.js",
|
|
148
|
+
"require": "./dist/link.cjs"
|
|
149
|
+
},
|
|
137
150
|
"./fonts/OpenSans.css": "./dist/fonts/OpenSans.css",
|
|
138
151
|
"./fonts/MaterialSymbolsOutlined.css": "./dist/fonts/MaterialSymbolsOutlined.css",
|
|
139
152
|
"./fonts/MaterialSymbolsRound.css": "./dist/fonts/MaterialSymbolsRound.css",
|
|
@@ -167,9 +180,13 @@
|
|
|
167
180
|
"./component/checkbox.css": "./dist/styleD/build/css/component/checkbox.css",
|
|
168
181
|
"./component/textArea.css": "./dist/styleD/build/css/component/textArea.css",
|
|
169
182
|
"./component/alertBanner.css": "./dist/styleD/build/css/component/alertBanner.css",
|
|
170
|
-
"./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css"
|
|
183
|
+
"./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css",
|
|
184
|
+
"./component/intendedAudienceSignifier.css": "./dist/styleD/build/css/component/intendedAudienceSignifier.css",
|
|
185
|
+
"./component/link.css": "./dist/styleD/build/css/component/link.css"
|
|
171
186
|
},
|
|
172
|
-
"
|
|
187
|
+
"main": "./dist/index.cjs",
|
|
188
|
+
"module": "./dist/index.js",
|
|
189
|
+
"types": "./dist/types/index.d.ts",
|
|
173
190
|
"typesVersions": {
|
|
174
191
|
"*": {
|
|
175
192
|
"avatar": [
|
|
@@ -246,19 +263,18 @@
|
|
|
246
263
|
],
|
|
247
264
|
"date-picker": [
|
|
248
265
|
"./dist/types/date-picker.d.ts"
|
|
266
|
+
],
|
|
267
|
+
"intendedAudienceSignifier": [
|
|
268
|
+
"./dist/types/intended-audience-signifier.d.ts"
|
|
269
|
+
],
|
|
270
|
+
"link": [
|
|
271
|
+
"./dist/types/link.d.ts"
|
|
249
272
|
]
|
|
250
273
|
}
|
|
251
274
|
},
|
|
252
275
|
"files": [
|
|
253
276
|
"dist"
|
|
254
277
|
],
|
|
255
|
-
"repository": {
|
|
256
|
-
"url": "https://github.com/guardian/stand"
|
|
257
|
-
},
|
|
258
|
-
"main": "./dist/index.cjs",
|
|
259
|
-
"module": "./dist/index.js",
|
|
260
|
-
"types": "./dist/types/index.d.ts",
|
|
261
|
-
"sideEffects": false,
|
|
262
278
|
"devDependencies": {
|
|
263
279
|
"@changesets/cli": "^2.30.0",
|
|
264
280
|
"@codesandbox/sandpack-react": "^2.20.0",
|
|
@@ -288,6 +304,7 @@
|
|
|
288
304
|
"husky": "^9.1.7",
|
|
289
305
|
"jest": "30.3.0",
|
|
290
306
|
"jest-environment-jsdom": "^30.3.0",
|
|
307
|
+
"lint-staged": "^17.0.0",
|
|
291
308
|
"prettier": "3.8.2",
|
|
292
309
|
"prosemirror-dropcursor": "1.8.2",
|
|
293
310
|
"prosemirror-history": "1.4.1",
|
|
@@ -305,6 +322,7 @@
|
|
|
305
322
|
"rollup-plugin-esbuild": "6.2.1",
|
|
306
323
|
"rollup-plugin-import-css": "^4.2.0",
|
|
307
324
|
"rollup-plugin-node-externals": "9.0.0",
|
|
325
|
+
"sort-package-json": "3.6.1",
|
|
308
326
|
"storybook": "^10.3.5",
|
|
309
327
|
"style-dictionary": "^5.4.0",
|
|
310
328
|
"ts-jest": "29.4.9",
|
|
@@ -369,20 +387,23 @@
|
|
|
369
387
|
"optional": true
|
|
370
388
|
}
|
|
371
389
|
},
|
|
390
|
+
"//exports": "Each component has its own entry point for optimal tree-shaking. Main entry point only includes design tokens and utilities. New components/foundations should follow the same pattern.",
|
|
391
|
+
"//typesVersions": "Provides backward compatibility for TypeScript moduleResolution: node - maps subpath imports to correct type definition files. When adding new components with their own entry points, ensure to add them here.",
|
|
372
392
|
"scripts": {
|
|
373
393
|
"build": "rimraf dist && rollup -c",
|
|
374
|
-
"build-styled": "cd src/styleD && node build.js && pnpm run format:fix",
|
|
375
|
-
"storybook": "storybook dev -p 6007",
|
|
376
394
|
"build-storybook": "storybook build",
|
|
377
|
-
"
|
|
378
|
-
"
|
|
395
|
+
"build-styled": "cd src/styleD && node build.js && pnpm run format:fix",
|
|
396
|
+
"create-component": "npx ts-node ./scripts/create-component.ts",
|
|
379
397
|
"format:check": "prettier --check .",
|
|
380
398
|
"format:fix": "prettier --write .",
|
|
381
|
-
"
|
|
399
|
+
"lint": "eslint . --ext .ts,.tsx",
|
|
400
|
+
"lint:fix": "eslint --fix . --ext .ts,.tsx",
|
|
401
|
+
"lint:staged": "lint-staged",
|
|
402
|
+
"storybook": "storybook dev -p 6007",
|
|
382
403
|
"test": "jest",
|
|
383
|
-
"test:setup-e2e": "playwright install --with-deps",
|
|
384
404
|
"test:e2e": "playwright test -c playwright-ct.config.ts",
|
|
385
|
-
"
|
|
386
|
-
"test:
|
|
405
|
+
"test:react-matrix": "./scripts/test-deps-matrix.sh",
|
|
406
|
+
"test:setup-e2e": "playwright install --with-deps",
|
|
407
|
+
"tsc": "tsc"
|
|
387
408
|
}
|
|
388
409
|
}
|