@flodesk/grain 11.36.0 → 11.36.1

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 (34) hide show
  1. package/es/icons/index.js +0 -1
  2. package/es/types/components/arrange.d.ts +7 -7
  3. package/es/types/components/autocomplete.d.ts +1 -0
  4. package/es/types/components/autocomplete2.d.ts +1 -0
  5. package/es/types/components/badge.d.ts +3 -3
  6. package/es/types/components/box.d.ts +17 -2
  7. package/es/types/components/breakpoints-provider.d.ts +1 -1
  8. package/es/types/components/flex.d.ts +4 -10
  9. package/es/types/components/icon.d.ts +2 -2
  10. package/es/types/components/index.d.ts +1 -0
  11. package/es/types/components/modal.d.ts +1 -1
  12. package/es/types/components/nav.d.ts +16 -9
  13. package/es/types/components/pagination.d.ts +3 -3
  14. package/es/types/components/popover.d.ts +1 -0
  15. package/es/types/components/progress.d.ts +1 -0
  16. package/es/types/components/radio.d.ts +2 -11
  17. package/es/types/components/select.d.ts +3 -2
  18. package/es/types/components/slider.d.ts +1 -0
  19. package/es/types/components/spinner.d.ts +1 -0
  20. package/es/types/components/stack.d.ts +6 -2
  21. package/es/types/components/switch.d.ts +3 -2
  22. package/es/types/components/tab.d.ts +1 -1
  23. package/es/types/components/text-area.d.ts +21 -0
  24. package/es/types/components/text-button.d.ts +3 -7
  25. package/es/types/components/text-input.d.ts +1 -0
  26. package/es/types/components/text-toggle.d.ts +0 -1
  27. package/es/types/components/text.d.ts +22 -9
  28. package/es/types/components/textarea.d.ts +1 -0
  29. package/es/types/components/toast.d.ts +1 -0
  30. package/es/types/components/tooltip.d.ts +1 -0
  31. package/es/types/foundational/menu.d.ts +1 -1
  32. package/es/types/shared.d.ts +12 -9
  33. package/package.json +1 -1
  34. package/es/icons/icon-brush.js +0 -17
package/es/icons/index.js CHANGED
@@ -84,7 +84,6 @@ export { default as IconContentAlignCenter } from './icon-content-align-center';
84
84
  export { default as IconContentAlignBottom } from './icon-content-align-bottom';
85
85
  export { default as IconColumnOne } from './icon-column-one';
86
86
  export { default as IconColumnTwo } from './icon-column-two';
87
- export { default as IconBrush } from './icon-brush';
88
87
  export { default as IconBolt } from './icon-bolt';
89
88
  export { default as IconBoltFilled } from './icon-bolt-filled';
90
89
  export { default as IconSquare } from './icon-square';
@@ -1,17 +1,17 @@
1
- import type { FC, HTMLAttributes } from 'react';
1
+ import type { FC } from 'react';
2
2
  import { BoxProps } from './box';
3
- import { DimensionPropType, AlignmentType, ContentPositionType, DirectionType } from '../shared';
3
+ import { DimensionPropType, AlignmentType, DirectionType } from '../shared';
4
4
 
5
- export interface ArrangeProps extends BoxProps, HTMLAttributes<HTMLDivElement> {
5
+ export interface ArrangeProps extends BoxProps {
6
6
  gap?: DimensionPropType;
7
7
  columnGap?: DimensionPropType;
8
8
  rowGap?: DimensionPropType;
9
9
  alignItems?: AlignmentType;
10
10
  justifyItems?: AlignmentType;
11
- justifyContent?: ContentPositionType;
12
- alignContent?: ContentPositionType;
13
- columns?: string | number;
14
- rows?: string | number;
11
+ justifyContent?: AlignmentType;
12
+ alignContent?: AlignmentType;
13
+ columns?: number | string | object;
14
+ rows?: number | string | object;
15
15
  autoFlow?: DirectionType;
16
16
  }
17
17
 
@@ -12,6 +12,7 @@ export interface AutocompleteOption {
12
12
 
13
13
  export interface AutocompleteProps
14
14
  extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
15
+ children?: React.ReactNode;
15
16
  options: AutocompleteOption[];
16
17
  value?: string;
17
18
  onChange: (_selectedOption: AutocompleteOption) => void;
@@ -16,6 +16,7 @@ export interface Autocomplete2Option {
16
16
  }
17
17
 
18
18
  export interface Autocomplete2Props {
19
+ children?: React.ReactNode;
19
20
  options: Autocomplete2Option[];
20
21
  value?: string;
21
22
  onChange: (option: Autocomplete2Option) => void;
@@ -1,12 +1,12 @@
1
- import type { FC, HTMLAttributes } from 'react';
1
+ import type { FC } from 'react';
2
2
  import { ColorPropType } from '../shared';
3
3
 
4
- export interface BadgeProps extends HTMLAttributes<HTMLDivElement> {
4
+ export interface BadgeProps {
5
5
  children?: React.ReactNode;
6
+ variant?: 'neutral' | 'danger' | 'warning' | 'success';
6
7
  color?: ColorPropType;
7
8
  backgroundColor?: ColorPropType;
8
9
  borderColor?: ColorPropType;
9
- variant?: 'neutral' | 'danger' | 'warning' | 'success';
10
10
  }
11
11
 
12
12
  export const Badge: FC<BadgeProps>;
@@ -7,6 +7,9 @@ import {
7
7
  OverflowPropType,
8
8
  BorderWidthType,
9
9
  SideType,
10
+ TransitionPropType,
11
+ CursorPropType,
12
+ AlignSelfPropType,
10
13
  } from '../shared';
11
14
  import { ShadowTokens } from '../tokens';
12
15
 
@@ -15,6 +18,7 @@ export interface BoxProps
15
18
  RefAttributes<HTMLDivElement>,
16
19
  Partial<HTMLDivElement>,
17
20
  DOMAttributes<HTMLDivElement> {
21
+ children?: React.ReactNode;
18
22
  color?: ColorPropType;
19
23
  colorHover?: ColorPropType;
20
24
  backgroundColor?: ColorPropType;
@@ -30,8 +34,8 @@ export interface BoxProps
30
34
  minHeight?: DimensionPropType;
31
35
  maxHeight?: DimensionPropType;
32
36
  radius?: RadiusPropType;
33
- shadow?: keyof ShadowTokens;
34
- shadowHover?: keyof ShadowTokens;
37
+ shadow?: keyof ShadowTokens | string;
38
+ shadowHover?: keyof ShadowTokens | string;
35
39
  padding?: DimensionPropType;
36
40
  paddingTop?: DimensionPropType;
37
41
  paddingBottom?: DimensionPropType;
@@ -54,6 +58,17 @@ export interface BoxProps
54
58
  overflow?: OverflowPropType;
55
59
  overflowX?: OverflowPropType;
56
60
  overflowY?: OverflowPropType;
61
+ transition?: TransitionPropType;
62
+ transitionHover?: TransitionPropType;
63
+ cursor?: CursorPropType;
64
+ opacity?: string;
65
+ opacityHover?: string;
66
+ order?: string | number | object;
67
+ alignSelf?: AlignSelfPropType;
68
+ flex?: string | object;
69
+ aspectRatio?: string;
70
+ zIndex?: number | string;
71
+ tag?: string;
57
72
  }
58
73
 
59
74
  export const Box: FC<BoxProps>;
@@ -1,7 +1,7 @@
1
1
  import type { FC, HTMLAttributes } from 'react';
2
2
 
3
3
  export interface BreakpointsProviderProps extends HTMLAttributes<HTMLDivElement> {
4
- children: React.ReactNode;
4
+ children?: React.ReactNode;
5
5
  breakpoints?: {
6
6
  tablet?: number;
7
7
  mobile?: number;
@@ -1,19 +1,13 @@
1
- import { FC } from 'react';
1
+ import type { FC } from 'react';
2
2
  import { BoxProps } from './box';
3
- import {
4
- DirectionType,
5
- FlexWrapType,
6
- ContentPositionType,
7
- AlignmentType,
8
- DimensionPropType,
9
- } from '../shared';
3
+ import { DimensionPropType, DirectionType, FlexWrapType, AlignmentType } from '../shared';
10
4
 
11
5
  export interface FlexProps extends BoxProps {
12
6
  direction?: DirectionType;
13
7
  wrap?: FlexWrapType;
14
- justifyContent?: ContentPositionType;
8
+ justifyContent?: AlignmentType;
15
9
  alignItems?: AlignmentType;
16
- alignContent?: ContentPositionType;
10
+ alignContent?: AlignmentType;
17
11
  gap?: DimensionPropType;
18
12
  columnGap?: DimensionPropType;
19
13
  rowGap?: DimensionPropType;
@@ -1,10 +1,10 @@
1
1
  import type { FC, HTMLAttributes } from 'react';
2
- import { ColorPropType } from '../shared';
2
+ import { ColorPropType, IconSizePropType } from '../shared';
3
3
 
4
4
  export interface IconProps extends HTMLAttributes<HTMLDivElement> {
5
5
  icon?: React.ReactNode;
6
6
  hasEvenBoundary?: boolean;
7
- size?: 's' | 'm' | 'l' | 'xl' | 'xxl' | number | string;
7
+ size?: IconSizePropType;
8
8
  color?: ColorPropType;
9
9
  }
10
10
 
@@ -3,6 +3,7 @@ export * from './autocomplete';
3
3
  export * from './autocomplete2';
4
4
  export * from './badge';
5
5
  export * from './box';
6
+ export * from './text';
6
7
  export * from './button';
7
8
  export * from './checkbox';
8
9
  export * from './dropdown';
@@ -2,8 +2,8 @@ import type { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } fro
2
2
  import { DimensionPropType, RadiusPropType } from '../shared';
3
3
 
4
4
  export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
5
- isOpen: boolean;
6
5
  children?: React.ReactNode;
6
+ isOpen: boolean;
7
7
  onClose?: () => void;
8
8
  hasCloseButton?: boolean;
9
9
  title?: React.ReactNode;
@@ -1,16 +1,23 @@
1
- import type { FC, HTMLAttributes, AnchorHTMLAttributes } from 'react';
2
- import { DirectionType } from '../shared';
3
- import { BoxProps } from './box';
1
+ import type { FC } from 'react';
2
+ import { TextSizePropType, DirectionType } from '../shared';
4
3
 
5
- export interface NavProps extends BoxProps, HTMLAttributes<HTMLElement> {
6
- direction?: DirectionType;
4
+ export interface NavItemProps {
5
+ children?: React.ReactNode;
6
+ isActive?: boolean;
7
7
  }
8
8
 
9
- export interface NavItemProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
10
- isActive?: boolean;
11
- href?: string;
12
- icon?: React.ReactNode;
9
+ export interface NavProps {
13
10
  children?: React.ReactNode;
11
+ direction?: DirectionType;
12
+ size?: TextSizePropType;
13
+ justifyContent?:
14
+ | 'start'
15
+ | 'end'
16
+ | 'center'
17
+ | 'stretch'
18
+ | 'space-around'
19
+ | 'space-between'
20
+ | 'space-evenly';
14
21
  }
15
22
 
16
23
  export const Nav: FC<NavProps>;
@@ -1,9 +1,9 @@
1
- import type { FC, HTMLAttributes } from 'react';
1
+ import type { FC } from 'react';
2
2
 
3
- export interface PaginationProps extends HTMLAttributes<HTMLDivElement> {
3
+ export interface PaginationProps {
4
4
  amount: number;
5
5
  selected: number;
6
- onChange: (_page: number) => void;
6
+ onChange: (page: number) => void;
7
7
  }
8
8
 
9
9
  export const Pagination: FC<PaginationProps>;
@@ -3,6 +3,7 @@ import { DimensionPropType } from '../shared';
3
3
  import { MenuPlacement } from '../foundational/menu';
4
4
 
5
5
  export interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
6
+ children?: React.ReactNode;
6
7
  padding?: DimensionPropType;
7
8
  width?: DimensionPropType;
8
9
  placement?: MenuPlacement;
@@ -1,6 +1,7 @@
1
1
  import type { FC, HTMLAttributes } from 'react';
2
2
 
3
3
  export interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
4
+ children?: React.ReactNode;
4
5
  max?: number;
5
6
  value: number;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  import type { FC, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
2
2
 
3
3
  export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
+ children?: React.ReactNode;
4
5
  id: string;
5
6
  isDisabled?: boolean;
6
7
  isChecked?: boolean;
@@ -10,14 +11,4 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
10
11
  onChange?: (_e: React.ChangeEvent<HTMLInputElement>) => void;
11
12
  }
12
13
 
13
- export interface RadioBoxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
14
- onChange?: (_e: React.ChangeEvent<HTMLInputElement>) => void;
15
- isDisabled?: boolean;
16
- isChecked?: boolean;
17
- name?: string;
18
- }
19
-
20
- export const Radio: FC<RadioProps> & {
21
- Label: FC<LabelHTMLAttributes<HTMLLabelElement> & { children: React.ReactNode }>;
22
- Box: FC<RadioBoxProps>;
23
- };
14
+ export const Radio: FC<RadioProps>;
@@ -3,15 +3,16 @@ import { ColorPropType } from '../shared';
3
3
 
4
4
  export interface SelectOption {
5
5
  value: string;
6
- label: string;
6
+ content?: React.ReactNode | string;
7
7
  isDisabled?: boolean;
8
8
  }
9
9
 
10
10
  export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> {
11
+ children?: React.ReactNode;
11
12
  id?: string;
12
13
  value?: string;
13
14
  defaultValue?: string;
14
- onChange?: (_value: string) => void;
15
+ onChange?: (option: SelectOption) => void;
15
16
  options: SelectOption[];
16
17
  placeholder?: string;
17
18
  label?: React.ReactNode;
@@ -2,6 +2,7 @@ import type { FC, HTMLAttributes } from 'react';
2
2
  import { ColorPropType } from '../shared';
3
3
 
4
4
  export interface SliderProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: React.ReactNode;
5
6
  value?: number;
6
7
  defaultValue?: number;
7
8
  min?: number;
@@ -2,6 +2,7 @@ import type { FC, HTMLAttributes } from 'react';
2
2
  import { ColorPropType } from '../shared';
3
3
 
4
4
  export interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: React.ReactNode;
5
6
  color?: ColorPropType;
6
7
  size?: number;
7
8
  }
@@ -1,10 +1,14 @@
1
1
  import type { FC, HTMLAttributes } from 'react';
2
2
  import { BoxProps } from './box';
3
- import { DimensionPropType, AlignmentType } from '../shared';
3
+ import { DimensionPropType, AlignmentType, DirectionType, FlexWrapType } from '../shared';
4
4
 
5
- export interface StackProps extends BoxProps, HTMLAttributes<HTMLDivElement> {
5
+ export interface StackProps extends BoxProps {
6
+ children?: React.ReactNode;
6
7
  gap?: DimensionPropType;
8
+ direction?: DirectionType;
9
+ wrap?: FlexWrapType;
7
10
  alignItems?: AlignmentType;
11
+ justifyContent?: AlignmentType;
8
12
  }
9
13
 
10
14
  export const Stack: FC<StackProps>;
@@ -1,11 +1,12 @@
1
1
  import type { FC, InputHTMLAttributes } from 'react';
2
2
 
3
3
  export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
4
+ children?: React.ReactNode;
4
5
  id: string;
5
6
  isChecked?: boolean;
7
+ onChange?: (_event: React.ChangeEvent<HTMLInputElement>) => void;
6
8
  isDisabled?: boolean;
7
- onChange?: (_e: React.ChangeEvent<HTMLInputElement>) => void;
8
- label?: React.ReactNode;
9
+ label?: string;
9
10
  hint?: React.ReactNode;
10
11
  }
11
12
 
@@ -7,7 +7,7 @@ export interface TabGroupProps extends HTMLAttributes<HTMLDivElement> {
7
7
  hasFullWidth?: boolean;
8
8
  }
9
9
 
10
- export interface TabProps extends HTMLAttributes<HTMLButtonElement> {
10
+ export interface TabProps extends HTMLAttributes<HTMLDivElement> {
11
11
  children?: React.ReactNode;
12
12
  isActive?: boolean;
13
13
  onClick?: () => void;
@@ -0,0 +1,21 @@
1
+ import type { FC, TextareaHTMLAttributes } from 'react';
2
+ import { ColorPropType } from '../shared';
3
+
4
+ export interface TextareaProps
5
+ extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
6
+ children?: React.ReactNode;
7
+ value?: string;
8
+ defaultValue?: string;
9
+ onChange?: (_event: React.ChangeEvent<HTMLTextAreaElement>) => void;
10
+ placeholder?: string;
11
+ label?: React.ReactNode;
12
+ hint?: React.ReactNode;
13
+ hasError?: boolean;
14
+ errorMessage?: string;
15
+ isDisabled?: boolean;
16
+ isReadOnly?: boolean;
17
+ backgroundColor?: ColorPropType;
18
+ rows?: number;
19
+ }
20
+
21
+ export const Textarea: FC<TextareaProps>;
@@ -1,16 +1,12 @@
1
1
  import type { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
2
2
 
3
- export interface TextButtonProps
4
- extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>,
5
- Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
3
+ export interface TextButtonProps extends HTMLAttributes<HTMLButtonElement> {
6
4
  children?: React.ReactNode;
7
- icon?: React.ReactNode;
8
- iconPosition?: 'left' | 'right';
9
- variant?: 'neutral' | 'danger';
5
+ variant?: 'neutral' | 'accent' | 'danger';
10
6
  isDisabled?: boolean;
11
- trimSide?: 'left' | 'right';
12
7
  type?: 'button' | 'submit' | 'reset';
13
8
  tag?: 'button' | 'a' | 'span';
9
+ onClick?: (_event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
14
10
  }
15
11
 
16
12
  export const TextButton: FC<TextButtonProps>;
@@ -18,6 +18,7 @@ export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputEleme
18
18
  isReadOnly?: boolean;
19
19
  backgroundColor?: ColorPropType;
20
20
  onClear?: () => void;
21
+ children?: React.ReactNode;
21
22
  }
22
23
 
23
24
  export const TextInput: React.ForwardRefExoticComponent<
@@ -7,7 +7,6 @@ export interface TextToggleGroupProps extends HTMLAttributes<HTMLDivElement> {
7
7
  export interface TextToggleProps extends HTMLAttributes<HTMLButtonElement> {
8
8
  children?: React.ReactNode;
9
9
  isActive?: boolean;
10
- isDisabled?: boolean;
11
10
  }
12
11
 
13
12
  export const TextToggleGroup: FC<TextToggleGroupProps>;
@@ -1,17 +1,30 @@
1
1
  import type { FC, HTMLAttributes } from 'react';
2
- import { ColorPropType } from '../shared';
2
+ import {
3
+ ColorPropType,
4
+ TextSizePropType,
5
+ TextTransformType,
6
+ TextDisplayType,
7
+ TextAlignType,
8
+ TextWeightPropType,
9
+ } from '../shared';
10
+ import { textTag } from '../../types';
3
11
 
4
- export interface TextProps extends HTMLAttributes<HTMLElement> {
12
+ export interface TextProps extends HTMLAttributes<HTMLDivElement> {
5
13
  children?: React.ReactNode;
6
- tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label';
7
- size?: string;
8
- weight?: string;
14
+ size?: TextSizePropType;
15
+ weight?: TextWeightPropType;
9
16
  color?: ColorPropType;
10
- align?: 'left' | 'center' | 'right';
11
- display?: 'block' | 'inline-block' | 'inline';
12
- transform?: 'capitalize' | 'uppercase' | 'lowercase';
17
+ tag?: typeof textTag;
18
+ display?: TextDisplayType;
19
+ hasEllipsis?: boolean;
20
+ ellipsisLines?: number;
21
+ align?: TextAlignType;
22
+ letterSpacing?: string;
23
+ textTransform?: TextTransformType;
24
+ variant?: 'caps';
13
25
  trimTop?: boolean;
14
- trimBottom?: boolean;
26
+ className?: string;
27
+ style?: React.CSSProperties;
15
28
  }
16
29
 
17
30
  export const Text: FC<TextProps>;
@@ -17,6 +17,7 @@ export interface TextareaProps
17
17
  backgroundColor?: ColorPropType;
18
18
  rows?: number;
19
19
  maxLength?: number;
20
+ children?: React.ReactNode;
20
21
  }
21
22
 
22
23
  export const Textarea: FC<TextareaProps>;
@@ -2,6 +2,7 @@ import type { FC, HTMLAttributes } from 'react';
2
2
  import { DimensionPropType } from '../shared';
3
3
 
4
4
  export interface ToastProps extends HTMLAttributes<HTMLDivElement> {
5
+ children?: React.ReactNode;
5
6
  isOpen: boolean;
6
7
  onClose: () => void;
7
8
  title?: React.ReactNode;
@@ -8,6 +8,7 @@ export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
8
8
  zIndex?: number;
9
9
  placementMethod?: 'static' | 'dynamic';
10
10
  offset?: 'xs' | 's';
11
+ children?: React.ReactNode;
11
12
  }
12
13
 
13
14
  export interface TooltipContentProps extends HTMLAttributes<HTMLDivElement> {
@@ -51,7 +51,7 @@ export const MenuGroupTitle: FC<MenuGroupTitleProps>;
51
51
  export const MenuItemDivider: FC;
52
52
 
53
53
  export function useMenuPosition(config: MenuPositionConfig): {
54
- refs: any;
54
+ refs: React.RefObject<HTMLElement>[];
55
55
  reference: (node: HTMLElement | null) => void;
56
56
  floating: (node: HTMLElement | null) => void;
57
57
  floatingStyles: React.CSSProperties;
@@ -1,4 +1,12 @@
1
- import { SpaceTokens, TextTokens, ColorTokens, RadiusTokens } from './tokens';
1
+ import {
2
+ SpaceTokens,
3
+ TextTokens,
4
+ ColorTokens,
5
+ RadiusTokens,
6
+ TransitionTokens,
7
+ IconTokens,
8
+ WeightTokens,
9
+ } from './tokens';
2
10
  import {
3
11
  overflows,
4
12
  axisAlignments,
@@ -17,8 +25,10 @@ import {
17
25
  export type OverflowPropType = (typeof overflows)[number];
18
26
  export type DimensionPropType = number | string | object | keyof SpaceTokens;
19
27
  export type TextSizePropType = number | string | object | keyof TextTokens;
28
+ export type TextWeightPropType = keyof WeightTokens | string;
20
29
  export type ColorPropType = string | keyof ColorTokens;
21
30
  export type RadiusPropType = number | string | keyof RadiusTokens;
31
+ export type TransitionPropType = string | keyof TransitionTokens;
22
32
  export type AlignmentType = (typeof axisAlignments)[number];
23
33
  export type DistributionType = (typeof distributions)[number];
24
34
  export type ContentPositionType = AlignmentType | DistributionType;
@@ -31,11 +41,4 @@ export type BorderWidthType = (typeof borderWidths)[number];
31
41
  export type TextTransformType = (typeof textTransforms)[number];
32
42
  export type TextDisplayType = (typeof textDisplays)[number];
33
43
  export type TextAlignType = (typeof textAlignments)[number];
34
-
35
- export interface TextTokens {
36
- s: string;
37
- m: string;
38
- l: string;
39
- xl: string;
40
- xxl: string;
41
- }
44
+ export type IconSizePropType = number | string | keyof IconTokens;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "11.36.0",
3
+ "version": "11.36.1",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "types": "es/types/index.d.ts",
@@ -1,17 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import * as React from 'react';
4
- import { jsx as ___EmotionJSX } from "@emotion/react";
5
-
6
- const IconBrush = props => ___EmotionJSX("svg", _extends({
7
- viewBox: "0 0 28 36",
8
- fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg"
10
- }, props), ___EmotionJSX("path", {
11
- fillRule: "evenodd",
12
- clipRule: "evenodd",
13
- d: "M4.5 3C3.67157 3 3 3.67157 3 4.5V16H25V4.5C25 3.67157 24.3284 3 23.5 3H22V12.5C22 13.3284 21.3284 14 20.5 14C19.6716 14 19 13.3284 19 12.5V3H16V8.5C16 9.32843 15.3284 10 14.5 10C13.6716 10 13 9.32843 13 8.5V3H4.5ZM25 19H3V22H7.5C9.98528 22 12 24.0147 12 26.5V30.5V33H16V30.5V26.5C16 24.0147 18.0147 22 20.5 22H25V19ZM0 4.5C0 2.01472 2.01472 0 4.5 0H14.5H20.5H23.5C25.9853 0 28 2.01472 28 4.5V17.5V23.5C28 24.3284 27.3284 25 26.5 25H20.5C19.6716 25 19 25.6716 19 26.5V30.5V34.5C19 35.3284 18.3284 36 17.5 36H10.5C9.67157 36 9 35.3284 9 34.5V30.5V26.5C9 25.6716 8.32843 25 7.5 25H1.5C0.671573 25 0 24.3284 0 23.5V17.5V4.5Z",
14
- fill: "currentColor"
15
- }));
16
-
17
- export default IconBrush;