@atlaskit/primitives 6.2.0 → 6.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +593 -574
  2. package/constellation/anchor/examples.mdx +9 -21
  3. package/constellation/anchor/usage.mdx +91 -27
  4. package/constellation/pressable/examples.mdx +9 -21
  5. package/constellation/pressable/usage.mdx +7 -4
  6. package/dist/cjs/components/anchor.js +1 -1
  7. package/dist/cjs/components/bleed.js +1 -0
  8. package/dist/cjs/components/box.js +10 -3
  9. package/dist/cjs/components/flex.js +3 -1
  10. package/dist/cjs/components/grid.js +6 -2
  11. package/dist/cjs/components/pressable.js +1 -1
  12. package/dist/cjs/responsive/hide.js +3 -1
  13. package/dist/cjs/responsive/show.js +3 -1
  14. package/dist/es2019/components/anchor.js +1 -1
  15. package/dist/es2019/components/bleed.js +1 -0
  16. package/dist/es2019/components/box.js +10 -3
  17. package/dist/es2019/components/flex.js +3 -1
  18. package/dist/es2019/components/grid.js +6 -2
  19. package/dist/es2019/components/pressable.js +1 -1
  20. package/dist/es2019/responsive/hide.js +3 -1
  21. package/dist/es2019/responsive/show.js +3 -1
  22. package/dist/esm/components/anchor.js +1 -1
  23. package/dist/esm/components/bleed.js +1 -0
  24. package/dist/esm/components/box.js +10 -3
  25. package/dist/esm/components/flex.js +3 -1
  26. package/dist/esm/components/grid.js +6 -2
  27. package/dist/esm/components/pressable.js +1 -1
  28. package/dist/esm/responsive/hide.js +3 -1
  29. package/dist/esm/responsive/show.js +3 -1
  30. package/dist/types/components/bleed.d.ts +1 -1
  31. package/dist/types/components/box.d.ts +3 -3
  32. package/dist/types/components/flex.d.ts +1 -1
  33. package/dist/types/components/inline.d.ts +1 -1
  34. package/dist/types/components/stack.d.ts +1 -1
  35. package/dist/types/responsive/build-media-query-css.d.ts +1 -1
  36. package/dist/types/responsive/types.d.ts +3 -3
  37. package/dist/types/xcss/style-maps.partial.d.ts +21 -21
  38. package/dist/types/xcss/xcss.d.ts +1 -1
  39. package/dist/types-ts4.5/components/bleed.d.ts +1 -1
  40. package/dist/types-ts4.5/components/box.d.ts +3 -3
  41. package/dist/types-ts4.5/components/flex.d.ts +1 -1
  42. package/dist/types-ts4.5/components/inline.d.ts +1 -1
  43. package/dist/types-ts4.5/components/stack.d.ts +1 -1
  44. package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +1 -1
  45. package/dist/types-ts4.5/responsive/types.d.ts +3 -3
  46. package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +21 -21
  47. package/dist/types-ts4.5/xcss/xcss.d.ts +1 -1
  48. package/extract-react-types/bleed-props.tsx +2 -2
  49. package/extract-react-types/box-props.tsx +6 -3
  50. package/extract-react-types/flex-props.tsx +2 -2
  51. package/extract-react-types/grid-props.tsx +2 -2
  52. package/extract-react-types/hide-props.tsx +2 -2
  53. package/extract-react-types/inline-props.tsx +1 -1
  54. package/extract-react-types/show-props.tsx +2 -2
  55. package/extract-react-types/stack-props.tsx +1 -1
  56. package/package.json +4 -6
  57. package/scripts/color-codegen-template.tsx +1 -1
  58. package/scripts/elevation-codegen-template.tsx +1 -1
  59. /package/constellation/bleed/{example.mdx → examples.mdx} +0 -0
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
3
- import { BackgroundColor, type Space } from '../xcss/style-maps.partial';
4
- import { SVGElements } from './internal/types';
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
3
+ import { type BackgroundColor, type Space } from '../xcss/style-maps.partial';
4
+ import { type SVGElements } from './internal/types';
5
5
  import type { BasePrimitiveProps, StyleProp } from './types';
6
6
  type AllowedElements = Exclude<keyof JSX.IntrinsicElements, SVGElements>;
7
7
  type CustomElementType<P = any> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { BasePrimitiveProps } from './types';
5
5
  export type FlexProps<T extends ElementType = 'div'> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
5
5
  export type InlineProps<T extends ElementType = 'div'> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
5
5
  export type StackProps<T extends ElementType = 'div'> = {
@@ -1,4 +1,4 @@
1
- import { CSSObject } from '@emotion/react';
1
+ import { type CSSObject } from '@emotion/react';
2
2
  import type { Breakpoint } from './types';
3
3
  /**
4
4
  * Build a map of breakpoints to css with media queries and nested styles.
@@ -1,6 +1,6 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { token } from '@atlaskit/tokens';
3
- import { media } from './media-helper';
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ import { type token } from '@atlaskit/tokens';
3
+ import { type media } from './media-helper';
4
4
  /**
5
5
  * The breakpoints we have for responsiveness.
6
6
  */
@@ -555,35 +555,35 @@ export type TokenisedProps = {
555
555
  blockSize?: AutoComplete<Dimension>;
556
556
  borderBlockColor?: AutoComplete<BorderColor>;
557
557
  borderBlockEndColor?: AutoComplete<BorderColor>;
558
- borderBlockEndWidth?: AutoComplete<BorderWidth>;
558
+ borderBlockEndWidth?: BorderWidth | string;
559
559
  borderBlockStartColor?: AutoComplete<BorderColor>;
560
- borderBlockStartWidth?: AutoComplete<BorderWidth>;
561
- borderBlockWidth?: AutoComplete<BorderWidth>;
560
+ borderBlockStartWidth?: BorderWidth | string;
561
+ borderBlockWidth?: BorderWidth | string;
562
562
  borderBottomColor?: AutoComplete<BorderColor>;
563
- borderBottomLeftRadius?: AutoComplete<BorderRadius>;
564
- borderBottomRightRadius?: AutoComplete<BorderRadius>;
565
- borderBottomWidth?: AutoComplete<BorderWidth>;
563
+ borderBottomLeftRadius?: BorderRadius | string;
564
+ borderBottomRightRadius?: BorderRadius | string;
565
+ borderBottomWidth?: BorderWidth | string;
566
566
  borderColor?: BorderColor;
567
- borderEndEndRadius?: AutoComplete<BorderRadius>;
568
- borderEndStartRadius?: AutoComplete<BorderRadius>;
567
+ borderEndEndRadius?: BorderRadius | string;
568
+ borderEndStartRadius?: BorderRadius | string;
569
569
  borderInlineColor?: AutoComplete<BorderColor>;
570
570
  borderInlineEndColor?: AutoComplete<BorderColor>;
571
- borderInlineEndWidth?: AutoComplete<BorderWidth>;
571
+ borderInlineEndWidth?: BorderWidth | string;
572
572
  borderInlineStartColor?: AutoComplete<BorderColor>;
573
- borderInlineStartWidth?: AutoComplete<BorderWidth>;
574
- borderInlineWidth?: AutoComplete<BorderWidth>;
573
+ borderInlineStartWidth?: BorderWidth | string;
574
+ borderInlineWidth?: BorderWidth | string;
575
575
  borderLeftColor?: AutoComplete<BorderColor>;
576
- borderLeftWidth?: AutoComplete<BorderWidth>;
577
- borderRadius?: BorderRadius;
576
+ borderLeftWidth?: BorderWidth | string;
577
+ borderRadius?: BorderRadius | string;
578
578
  borderRightColor?: AutoComplete<BorderColor>;
579
- borderRightWidth?: AutoComplete<BorderWidth>;
580
- borderStartEndRadius?: AutoComplete<BorderRadius>;
581
- borderStartStartRadius?: AutoComplete<BorderRadius>;
579
+ borderRightWidth?: BorderWidth | string;
580
+ borderStartEndRadius?: BorderRadius | string;
581
+ borderStartStartRadius?: BorderRadius | string;
582
582
  borderTopColor?: AutoComplete<BorderColor>;
583
- borderTopLeftRadius?: AutoComplete<BorderRadius>;
584
- borderTopRightRadius?: AutoComplete<BorderRadius>;
585
- borderTopWidth?: AutoComplete<BorderWidth>;
586
- borderWidth?: BorderWidth;
583
+ borderTopLeftRadius?: BorderRadius | string;
584
+ borderTopRightRadius?: BorderRadius | string;
585
+ borderTopWidth?: BorderWidth | string;
586
+ borderWidth?: BorderWidth | string;
587
587
  bottom?: AutoComplete<AllSpace>;
588
588
  boxShadow?: Shadow;
589
589
  color?: TextColor;
@@ -621,7 +621,7 @@ export type TokenisedProps = {
621
621
  opacity?: AutoComplete<Opacity> | number;
622
622
  outlineColor?: BorderColor;
623
623
  outlineOffset?: Space;
624
- outlineWidth?: BorderWidth;
624
+ outlineWidth?: BorderWidth | string;
625
625
  padding?: Space;
626
626
  paddingBlock?: Space;
627
627
  paddingBlockEnd?: Space;
@@ -2,7 +2,7 @@ import type { CSSPropertiesWithMultiValues, SerializedStyles } from '@emotion/se
2
2
  import type * as CSS from 'csstype';
3
3
  import type { StrictXCSSProp, XCSSAllProperties, XCSSAllPseudos } from '@atlaskit/css';
4
4
  import type { MediaQuery } from '../responsive/types';
5
- import { TokenisedProps } from './style-maps.partial';
5
+ import { type TokenisedProps } from './style-maps.partial';
6
6
  export declare const tokensMap: {
7
7
  readonly backgroundColor: {
8
8
  readonly 'color.background.accent.lime.subtlest': "var(--ds-background-accent-lime-subtlest)";
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { ReactNode } from 'react';
2
+ import React, { type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { BasePrimitiveProps } from './types';
5
5
  export type BleedProps = {
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
3
- import { BackgroundColor, type Space } from '../xcss/style-maps.partial';
4
- import { SVGElements } from './internal/types';
2
+ import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ReactElement, type ReactNode } from 'react';
3
+ import { type BackgroundColor, type Space } from '../xcss/style-maps.partial';
4
+ import { type SVGElements } from './internal/types';
5
5
  import type { BasePrimitiveProps, StyleProp } from './types';
6
6
  type AllowedElements = Exclude<keyof JSX.IntrinsicElements, SVGElements>;
7
7
  type CustomElementType<P = any> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { BasePrimitiveProps } from './types';
5
5
  export type FlexProps<T extends ElementType = 'div'> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
5
5
  export type InlineProps<T extends ElementType = 'div'> = {
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ElementType, ReactNode } from 'react';
2
+ import { type ElementType, type ReactNode } from 'react';
3
3
  import { type Space } from '../xcss/style-maps.partial';
4
4
  import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
5
5
  export type StackProps<T extends ElementType = 'div'> = {
@@ -1,4 +1,4 @@
1
- import { CSSObject } from '@emotion/react';
1
+ import { type CSSObject } from '@emotion/react';
2
2
  import type { Breakpoint } from './types';
3
3
  /**
4
4
  * Build a map of breakpoints to css with media queries and nested styles.
@@ -1,6 +1,6 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { token } from '@atlaskit/tokens';
3
- import { media } from './media-helper';
1
+ import { type SerializedStyles } from '@emotion/react';
2
+ import { type token } from '@atlaskit/tokens';
3
+ import { type media } from './media-helper';
4
4
  /**
5
5
  * The breakpoints we have for responsiveness.
6
6
  */
@@ -555,35 +555,35 @@ export type TokenisedProps = {
555
555
  blockSize?: AutoComplete<Dimension>;
556
556
  borderBlockColor?: AutoComplete<BorderColor>;
557
557
  borderBlockEndColor?: AutoComplete<BorderColor>;
558
- borderBlockEndWidth?: AutoComplete<BorderWidth>;
558
+ borderBlockEndWidth?: BorderWidth | string;
559
559
  borderBlockStartColor?: AutoComplete<BorderColor>;
560
- borderBlockStartWidth?: AutoComplete<BorderWidth>;
561
- borderBlockWidth?: AutoComplete<BorderWidth>;
560
+ borderBlockStartWidth?: BorderWidth | string;
561
+ borderBlockWidth?: BorderWidth | string;
562
562
  borderBottomColor?: AutoComplete<BorderColor>;
563
- borderBottomLeftRadius?: AutoComplete<BorderRadius>;
564
- borderBottomRightRadius?: AutoComplete<BorderRadius>;
565
- borderBottomWidth?: AutoComplete<BorderWidth>;
563
+ borderBottomLeftRadius?: BorderRadius | string;
564
+ borderBottomRightRadius?: BorderRadius | string;
565
+ borderBottomWidth?: BorderWidth | string;
566
566
  borderColor?: BorderColor;
567
- borderEndEndRadius?: AutoComplete<BorderRadius>;
568
- borderEndStartRadius?: AutoComplete<BorderRadius>;
567
+ borderEndEndRadius?: BorderRadius | string;
568
+ borderEndStartRadius?: BorderRadius | string;
569
569
  borderInlineColor?: AutoComplete<BorderColor>;
570
570
  borderInlineEndColor?: AutoComplete<BorderColor>;
571
- borderInlineEndWidth?: AutoComplete<BorderWidth>;
571
+ borderInlineEndWidth?: BorderWidth | string;
572
572
  borderInlineStartColor?: AutoComplete<BorderColor>;
573
- borderInlineStartWidth?: AutoComplete<BorderWidth>;
574
- borderInlineWidth?: AutoComplete<BorderWidth>;
573
+ borderInlineStartWidth?: BorderWidth | string;
574
+ borderInlineWidth?: BorderWidth | string;
575
575
  borderLeftColor?: AutoComplete<BorderColor>;
576
- borderLeftWidth?: AutoComplete<BorderWidth>;
577
- borderRadius?: BorderRadius;
576
+ borderLeftWidth?: BorderWidth | string;
577
+ borderRadius?: BorderRadius | string;
578
578
  borderRightColor?: AutoComplete<BorderColor>;
579
- borderRightWidth?: AutoComplete<BorderWidth>;
580
- borderStartEndRadius?: AutoComplete<BorderRadius>;
581
- borderStartStartRadius?: AutoComplete<BorderRadius>;
579
+ borderRightWidth?: BorderWidth | string;
580
+ borderStartEndRadius?: BorderRadius | string;
581
+ borderStartStartRadius?: BorderRadius | string;
582
582
  borderTopColor?: AutoComplete<BorderColor>;
583
- borderTopLeftRadius?: AutoComplete<BorderRadius>;
584
- borderTopRightRadius?: AutoComplete<BorderRadius>;
585
- borderTopWidth?: AutoComplete<BorderWidth>;
586
- borderWidth?: BorderWidth;
583
+ borderTopLeftRadius?: BorderRadius | string;
584
+ borderTopRightRadius?: BorderRadius | string;
585
+ borderTopWidth?: BorderWidth | string;
586
+ borderWidth?: BorderWidth | string;
587
587
  bottom?: AutoComplete<AllSpace>;
588
588
  boxShadow?: Shadow;
589
589
  color?: TextColor;
@@ -621,7 +621,7 @@ export type TokenisedProps = {
621
621
  opacity?: AutoComplete<Opacity> | number;
622
622
  outlineColor?: BorderColor;
623
623
  outlineOffset?: Space;
624
- outlineWidth?: BorderWidth;
624
+ outlineWidth?: BorderWidth | string;
625
625
  padding?: Space;
626
626
  paddingBlock?: Space;
627
627
  paddingBlockEnd?: Space;
@@ -2,7 +2,7 @@ import type { CSSPropertiesWithMultiValues, SerializedStyles } from '@emotion/se
2
2
  import type * as CSS from 'csstype';
3
3
  import type { StrictXCSSProp, XCSSAllProperties, XCSSAllPseudos } from '@atlaskit/css';
4
4
  import type { MediaQuery } from '../responsive/types';
5
- import { TokenisedProps } from './style-maps.partial';
5
+ import { type TokenisedProps } from './style-maps.partial';
6
6
  export declare const tokensMap: {
7
7
  readonly backgroundColor: {
8
8
  readonly 'color.background.accent.lime.subtlest': "var(--ds-background-accent-lime-subtlest)";
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
 
3
- import { BasePrimitiveProps } from '../src/components/types';
3
+ import { type BasePrimitiveProps } from '../src/components/types';
4
4
 
5
5
  type Space =
6
6
  | 'space.025'
@@ -1,7 +1,10 @@
1
1
  // TODO: Switch from ERT to ts-morph when this is completed and has reasonable adoption: https://product-fabric.atlassian.net/browse/DSP-10364
2
- import React, { ElementType, ReactNode } from 'react';
2
+ import type { ComponentPropsWithRef, ElementType, ReactNode } from 'react';
3
3
 
4
- import { BasePrimitiveProps, StyleProp } from '../src/components/types';
4
+ import {
5
+ type BasePrimitiveProps,
6
+ type StyleProp,
7
+ } from '../src/components/types';
5
8
 
6
9
  // eslint-disable-next-line @typescript-eslint/no-namespace
7
10
  namespace Token {
@@ -83,7 +86,7 @@ export default function Box(
83
86
  /**
84
87
  * Forwarded ref element.
85
88
  */
86
- ref?: React.ComponentPropsWithRef<ElementType>['ref'];
89
+ ref?: ComponentPropsWithRef<ElementType>['ref'];
87
90
  } & BasePrimitiveProps &
88
91
  StyleProp,
89
92
  ) {}
@@ -1,6 +1,6 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import { type ElementType, type ReactNode } from 'react';
2
2
 
3
- import { BasePrimitiveProps } from '../src/components/types';
3
+ import { type BasePrimitiveProps } from '../src/components/types';
4
4
 
5
5
  type Space =
6
6
  | 'space.0'
@@ -1,6 +1,6 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import { type ElementType, type ReactNode } from 'react';
2
2
 
3
- import { BasePrimitiveProps } from '../src/components/types';
3
+ import { type BasePrimitiveProps } from '../src/components/types';
4
4
 
5
5
  type Space =
6
6
  | 'space.0'
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
 
3
- import { Breakpoint } from '../src/responsive/types';
3
+ import { type Breakpoint } from '../src/responsive/types';
4
4
 
5
5
  type As =
6
6
  | 'article'
@@ -1,4 +1,4 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import { type ElementType, type ReactNode } from 'react';
2
2
 
3
3
  import type {
4
4
  AlignBlock,
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
 
3
- import { Breakpoint } from '../src/responsive/types';
3
+ import { type Breakpoint } from '../src/responsive/types';
4
4
 
5
5
  type As =
6
6
  | 'article'
@@ -1,4 +1,4 @@
1
- import { ElementType, ReactNode } from 'react';
1
+ import { type ElementType, type ReactNode } from 'react';
2
2
 
3
3
  import type {
4
4
  AlignBlock,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "6.2.0",
3
+ "version": "6.4.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -112,7 +112,7 @@
112
112
  "slug": "primitives/anchor",
113
113
  "id": "@atlaskit/primitives/anchor",
114
114
  "status": {
115
- "type": "alpha"
115
+ "type": "closed-beta"
116
116
  }
117
117
  }
118
118
  ]
@@ -128,7 +128,7 @@
128
128
  "@atlaskit/css": "^0.1.0",
129
129
  "@atlaskit/ds-lib": "^2.3.0",
130
130
  "@atlaskit/interaction-context": "^2.1.0",
131
- "@atlaskit/tokens": "^1.48.0",
131
+ "@atlaskit/tokens": "^1.49.0",
132
132
  "@atlaskit/visually-hidden": "^1.3.0",
133
133
  "@babel/runtime": "^7.0.0",
134
134
  "@emotion/react": "^11.7.1",
@@ -146,7 +146,6 @@
146
146
  "@atlaskit/toggle": "^13.1.0",
147
147
  "@atlaskit/tooltip": "^18.4.0",
148
148
  "@atlaskit/visual-regression": "*",
149
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
150
149
  "@atlassian/codegen": "^0.1.0",
151
150
  "@testing-library/react": "^12.1.5",
152
151
  "@testing-library/react-hooks": "^8.0.1",
@@ -199,6 +198,5 @@
199
198
  "./pressable": "./src/components/pressable.tsx",
200
199
  "./anchor": "./src/components/anchor.tsx",
201
200
  "./responsive": "./src/responsive/index.tsx"
202
- },
203
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
201
+ }
204
202
  }
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  capitalize,
9
9
  constructTokenFunctionCall,
10
- ShadowDefinition,
10
+ type ShadowDefinition,
11
11
  } from './utils';
12
12
 
13
13
  type Token = {
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  capitalize,
10
10
  constructTokenFunctionCall,
11
- ShadowDefinition,
11
+ type ShadowDefinition,
12
12
  } from './utils';
13
13
 
14
14
  type Token = {