@guardian/stand 0.0.32 → 0.0.33

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.
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('@emotion/react/jsx-runtime');
4
+ var reactAriaComponents = require('react-aria-components');
5
+ var colors = require('../../styleD/build/typescript/semantic/colors.cjs');
6
+ var mergeDeep = require('../../util/mergeDeep.cjs');
7
+ var styles = require('../typography/styles.cjs');
8
+ var styles$1 = require('./styles.cjs');
9
+
10
+ function Link({
11
+ children,
12
+ typography = "body-sm",
13
+ theme = {},
14
+ cssOverrides,
15
+ className,
16
+ ...props
17
+ }) {
18
+ const mergedTheme = mergeDeep.mergeDeep(styles$1.defaultLinkTheme, theme);
19
+ return /* @__PURE__ */ jsxRuntime.jsx(
20
+ reactAriaComponents.Link,
21
+ {
22
+ css: [
23
+ styles.typographyStyles(
24
+ { color: colors.semanticColors.text.strong },
25
+ { variant: typography }
26
+ ),
27
+ styles$1.linkStyles(mergedTheme),
28
+ cssOverrides
29
+ ],
30
+ className,
31
+ ...props,
32
+ children
33
+ }
34
+ );
35
+ }
36
+
37
+ exports.Link = Link;
@@ -0,0 +1,17 @@
1
+ import { jsx } from '@emotion/react/jsx-runtime';
2
+ import { Link as Link$1 } from 'react-aria-components';
3
+ import { semanticColors } from '../../styleD/build/typescript/semantic/colors.js';
4
+ import { mergeDeep } from '../../util/mergeDeep.js';
5
+ import { typographyStyles } from '../typography/styles.js';
6
+ import { linkStyles, defaultLinkTheme } from './styles.js';
7
+
8
+ function Link({ children, typography = "body-sm", theme = {}, cssOverrides, className, ...props }) {
9
+ const mergedTheme = mergeDeep(defaultLinkTheme, theme);
10
+ return jsx(Link$1, { css: [
11
+ typographyStyles({ color: semanticColors.text.strong }, { variant: typography }),
12
+ linkStyles(mergedTheme),
13
+ cssOverrides
14
+ ], className, ...props, children });
15
+ }
16
+
17
+ export { Link };
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ var react = require('@emotion/react');
4
+ var link = require('../../styleD/build/typescript/component/link.cjs');
5
+
6
+ const defaultLinkTheme = link.componentLink;
7
+ const linkStyles = (theme) => {
8
+ return react.css`
9
+ text-decoration: underline;
10
+ text-decoration-style: solid;
11
+ text-underline-offset: 8%;
12
+ text-decoration-thickness: 5%;
13
+ ${theme.shared.enabled};
14
+ &[data-hovered] {
15
+ color: ${theme.shared.hover.color};
16
+ cursor: ${theme.shared.hover.cursor};
17
+ }
18
+ &[data-pressed] {
19
+ color: ${theme.shared.pressed.color};
20
+ }
21
+ &[data-disabled] {
22
+ color: ${theme.shared.disabled.color};
23
+ }
24
+ &[data-focus-visible] {
25
+ outline: ${theme.shared.focus.outline};
26
+ }
27
+ `;
28
+ };
29
+
30
+ exports.defaultLinkTheme = defaultLinkTheme;
31
+ exports.linkStyles = linkStyles;
@@ -0,0 +1,28 @@
1
+ import { css } from '@emotion/react';
2
+ import { componentLink } from '../../styleD/build/typescript/component/link.js';
3
+
4
+ const defaultLinkTheme = componentLink;
5
+ const linkStyles = (theme) => {
6
+ return css`
7
+ text-decoration: underline;
8
+ text-decoration-style: solid;
9
+ text-underline-offset: 8%;
10
+ text-decoration-thickness: 5%;
11
+ ${theme.shared.enabled};
12
+ &[data-hovered] {
13
+ color: ${theme.shared.hover.color};
14
+ cursor: ${theme.shared.hover.cursor};
15
+ }
16
+ &[data-pressed] {
17
+ color: ${theme.shared.pressed.color};
18
+ }
19
+ &[data-disabled] {
20
+ color: ${theme.shared.disabled.color};
21
+ }
22
+ &[data-focus-visible] {
23
+ outline: ${theme.shared.focus.outline};
24
+ }
25
+ `;
26
+ };
27
+
28
+ export { defaultLinkTheme, linkStyles };
package/dist/index.cjs CHANGED
@@ -4,7 +4,6 @@ var autocomplete = require('./styleD/build/typescript/component/autocomplete.cjs
4
4
  var byline = require('./styleD/build/typescript/component/byline.cjs');
5
5
  var tagTable = require('./styleD/build/typescript/component/tagTable.cjs');
6
6
  var userMenu = require('./styleD/build/typescript/component/userMenu.cjs');
7
- var alertBanner = require('./styleD/build/typescript/component/alertBanner.cjs');
8
7
  var avatar = require('./styleD/build/typescript/component/avatar.cjs');
9
8
  var button = require('./styleD/build/typescript/component/button.cjs');
10
9
  var checkbox = require('./styleD/build/typescript/component/checkbox.cjs');
@@ -14,6 +13,8 @@ var form = require('./styleD/build/typescript/component/form.cjs');
14
13
  var icon = require('./styleD/build/typescript/component/icon.cjs');
15
14
  var inlineMessage = require('./styleD/build/typescript/component/inlineMessage.cjs');
16
15
  var menu = require('./styleD/build/typescript/component/menu.cjs');
16
+ var link = require('./styleD/build/typescript/component/link.cjs');
17
+ var alertBanner = require('./styleD/build/typescript/component/alertBanner.cjs');
17
18
  var radioGroup = require('./styleD/build/typescript/component/radioGroup.cjs');
18
19
  var select = require('./styleD/build/typescript/component/select.cjs');
19
20
  var textArea = require('./styleD/build/typescript/component/textArea.cjs');
@@ -37,7 +38,6 @@ exports.componentAutocomplete = autocomplete.componentAutocomplete;
37
38
  exports.componentByline = byline.componentByline;
38
39
  exports.componentTagTable = tagTable.componentTagTable;
39
40
  exports.componentUserMenu = userMenu.componentUserMenu;
40
- exports.componentAlertBanner = alertBanner.componentAlertBanner;
41
41
  exports.componentAvatar = avatar.componentAvatar;
42
42
  exports.componentButton = button.componentButton;
43
43
  exports.componentCheckbox = checkbox.componentCheckbox;
@@ -47,6 +47,8 @@ exports.componentForm = form.componentForm;
47
47
  exports.componentIcon = icon.componentIcon;
48
48
  exports.componentInlineMessage = inlineMessage.componentInlineMessage;
49
49
  exports.componentMenu = menu.componentMenu;
50
+ exports.componentLink = link.componentLink;
51
+ exports.componentAlertBanner = alertBanner.componentAlertBanner;
50
52
  exports.componentRadioGroup = radioGroup.componentRadioGroup;
51
53
  exports.componentSelect = select.componentSelect;
52
54
  exports.componentTextArea = textArea.componentTextArea;
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@ export { componentAutocomplete } from './styleD/build/typescript/component/autoc
2
2
  export { componentByline } from './styleD/build/typescript/component/byline.js';
3
3
  export { componentTagTable } from './styleD/build/typescript/component/tagTable.js';
4
4
  export { componentUserMenu } from './styleD/build/typescript/component/userMenu.js';
5
- export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner.js';
6
5
  export { componentAvatar } from './styleD/build/typescript/component/avatar.js';
7
6
  export { componentButton } from './styleD/build/typescript/component/button.js';
8
7
  export { componentCheckbox } from './styleD/build/typescript/component/checkbox.js';
@@ -12,6 +11,8 @@ export { componentForm } from './styleD/build/typescript/component/form.js';
12
11
  export { componentIcon } from './styleD/build/typescript/component/icon.js';
13
12
  export { componentInlineMessage } from './styleD/build/typescript/component/inlineMessage.js';
14
13
  export { componentMenu } from './styleD/build/typescript/component/menu.js';
14
+ export { componentLink } from './styleD/build/typescript/component/link.js';
15
+ export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner.js';
15
16
  export { componentRadioGroup } from './styleD/build/typescript/component/radioGroup.js';
16
17
  export { componentSelect } from './styleD/build/typescript/component/select.js';
17
18
  export { componentTextArea } from './styleD/build/typescript/component/textArea.js';
package/dist/link.cjs ADDED
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var Link = require('./components/link/Link.cjs');
4
+ var link = require('./styleD/build/typescript/component/link.cjs');
5
+
6
+
7
+
8
+ exports.Link = Link.Link;
9
+ exports.componentLink = link.componentLink;
package/dist/link.js ADDED
@@ -0,0 +1,2 @@
1
+ export { Link } from './components/link/Link.js';
2
+ export { componentLink } from './styleD/build/typescript/component/link.js';
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+
5
+ :root {
6
+ --component-link-shared-focus-outline: 1px solid #0072a9;
7
+ --component-link-shared-hover-color: #00344e;
8
+ --component-link-shared-hover-cursor: pointer;
9
+ --component-link-shared-enabled-color: #00496c;
10
+ --component-link-shared-disabled-color: #999999;
11
+ --component-link-shared-pressed-color: #00202f;
12
+ }
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ const componentLink = {
4
+ shared: {
5
+ focus: {
6
+ outline: "1px solid #0072a9"
7
+ },
8
+ hover: {
9
+ color: "#00344e",
10
+ cursor: "pointer"
11
+ },
12
+ enabled: {
13
+ color: "#00496c"
14
+ },
15
+ disabled: {
16
+ color: "#999999"
17
+ },
18
+ pressed: {
19
+ color: "#00202f"
20
+ }
21
+ }
22
+ };
23
+
24
+ exports.componentLink = componentLink;
@@ -0,0 +1,22 @@
1
+ const componentLink = {
2
+ shared: {
3
+ focus: {
4
+ outline: "1px solid #0072a9"
5
+ },
6
+ hover: {
7
+ color: "#00344e",
8
+ cursor: "pointer"
9
+ },
10
+ enabled: {
11
+ color: "#00496c"
12
+ },
13
+ disabled: {
14
+ color: "#999999"
15
+ },
16
+ pressed: {
17
+ color: "#00202f"
18
+ }
19
+ }
20
+ };
21
+
22
+ export { componentLink };
@@ -0,0 +1,2 @@
1
+ import type { LinkProps } from './types';
2
+ export declare function Link({ children, typography, theme, cssOverrides, className, ...props }: LinkProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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?: keyof SemanticTypography;
13
+ variant?: TypographyVariant;
13
14
  }
@@ -16,8 +16,6 @@ export type { ComponentUserMenu } from './styleD/build/typescript/component/user
16
16
  /**
17
17
  * design system components tokens exports
18
18
  */
19
- export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner';
20
- export type { ComponentAlertBanner } from './styleD/build/typescript/component/alertBanner';
21
19
  export { componentAvatar } from './styleD/build/typescript/component/avatar';
22
20
  export type { ComponentAvatar } from './styleD/build/typescript/component/avatar';
23
21
  export { componentButton } from './styleD/build/typescript/component/button';
@@ -36,6 +34,10 @@ export { componentInlineMessage } from './styleD/build/typescript/component/inli
36
34
  export type { ComponentInlineMessage } from './styleD/build/typescript/component/inlineMessage';
37
35
  export { componentMenu } from './styleD/build/typescript/component/menu';
38
36
  export type { ComponentMenu } from './styleD/build/typescript/component/menu';
37
+ export { componentLink } from './styleD/build/typescript/component/link';
38
+ export type { ComponentLink } from './styleD/build/typescript/component/link';
39
+ export { componentAlertBanner } from './styleD/build/typescript/component/alertBanner';
40
+ export type { ComponentAlertBanner } from './styleD/build/typescript/component/alertBanner';
39
41
  export { componentRadioGroup } from './styleD/build/typescript/component/radioGroup';
40
42
  export type { ComponentRadioGroup } from './styleD/build/typescript/component/radioGroup';
41
43
  export { componentSelect } from './styleD/build/typescript/component/select';
@@ -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,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.32",
3
+ "version": "0.0.33",
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,11 @@
134
137
  "import": "./dist/utils.js",
135
138
  "require": "./dist/utils.cjs"
136
139
  },
140
+ "./link": {
141
+ "types": "./dist/types/link.d.ts",
142
+ "import": "./dist/link.js",
143
+ "require": "./dist/link.cjs"
144
+ },
137
145
  "./fonts/OpenSans.css": "./dist/fonts/OpenSans.css",
138
146
  "./fonts/MaterialSymbolsOutlined.css": "./dist/fonts/MaterialSymbolsOutlined.css",
139
147
  "./fonts/MaterialSymbolsRound.css": "./dist/fonts/MaterialSymbolsRound.css",
@@ -167,9 +175,12 @@
167
175
  "./component/checkbox.css": "./dist/styleD/build/css/component/checkbox.css",
168
176
  "./component/textArea.css": "./dist/styleD/build/css/component/textArea.css",
169
177
  "./component/alertBanner.css": "./dist/styleD/build/css/component/alertBanner.css",
170
- "./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css"
178
+ "./component/datePicker.css": "./dist/styleD/build/css/component/datePicker.css",
179
+ "./component/link.css": "./dist/styleD/build/css/component/link.css"
171
180
  },
172
- "//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.",
181
+ "main": "./dist/index.cjs",
182
+ "module": "./dist/index.js",
183
+ "types": "./dist/types/index.d.ts",
173
184
  "typesVersions": {
174
185
  "*": {
175
186
  "avatar": [
@@ -246,19 +257,15 @@
246
257
  ],
247
258
  "date-picker": [
248
259
  "./dist/types/date-picker.d.ts"
260
+ ],
261
+ "link": [
262
+ "./dist/types/link.d.ts"
249
263
  ]
250
264
  }
251
265
  },
252
266
  "files": [
253
267
  "dist"
254
268
  ],
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
269
  "devDependencies": {
263
270
  "@changesets/cli": "^2.30.0",
264
271
  "@codesandbox/sandpack-react": "^2.20.0",
@@ -288,6 +295,7 @@
288
295
  "husky": "^9.1.7",
289
296
  "jest": "30.3.0",
290
297
  "jest-environment-jsdom": "^30.3.0",
298
+ "lint-staged": "^17.0.0",
291
299
  "prettier": "3.8.2",
292
300
  "prosemirror-dropcursor": "1.8.2",
293
301
  "prosemirror-history": "1.4.1",
@@ -305,6 +313,7 @@
305
313
  "rollup-plugin-esbuild": "6.2.1",
306
314
  "rollup-plugin-import-css": "^4.2.0",
307
315
  "rollup-plugin-node-externals": "9.0.0",
316
+ "sort-package-json": "3.6.1",
308
317
  "storybook": "^10.3.5",
309
318
  "style-dictionary": "^5.4.0",
310
319
  "ts-jest": "29.4.9",
@@ -369,20 +378,23 @@
369
378
  "optional": true
370
379
  }
371
380
  },
381
+ "//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.",
382
+ "//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
383
  "scripts": {
373
384
  "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
385
  "build-storybook": "storybook build",
377
- "lint": "eslint . --ext .ts,.tsx",
378
- "lint:fix": "eslint --fix . --ext .ts,.tsx",
386
+ "build-styled": "cd src/styleD && node build.js && pnpm run format:fix",
387
+ "create-component": "npx ts-node ./scripts/create-component.ts",
379
388
  "format:check": "prettier --check .",
380
389
  "format:fix": "prettier --write .",
381
- "tsc": "tsc",
390
+ "lint": "eslint . --ext .ts,.tsx",
391
+ "lint:fix": "eslint --fix . --ext .ts,.tsx",
392
+ "lint:staged": "lint-staged",
393
+ "storybook": "storybook dev -p 6007",
382
394
  "test": "jest",
383
- "test:setup-e2e": "playwright install --with-deps",
384
395
  "test:e2e": "playwright test -c playwright-ct.config.ts",
385
- "create-component": "npx ts-node ./scripts/create-component.ts",
386
- "test:react-matrix": "./scripts/test-deps-matrix.sh"
396
+ "test:react-matrix": "./scripts/test-deps-matrix.sh",
397
+ "test:setup-e2e": "playwright install --with-deps",
398
+ "tsc": "tsc"
387
399
  }
388
400
  }