@mirohq/design-system-toolbar 2.5.2-colors.2 → 2.5.2-combobox.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.
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +116 -276
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -83,7 +83,7 @@ const StyledItem = designSystemStitches.styled(RadixToolbar__namespace.Button, {
|
|
|
83
83
|
height: "$10",
|
|
84
84
|
...designSystemStyles.focus.css({
|
|
85
85
|
boxShadow: "$focus-small-outline",
|
|
86
|
-
borderColor: "$blue-
|
|
86
|
+
borderColor: "$blue-500 !important"
|
|
87
87
|
}),
|
|
88
88
|
[disabledSelector]: {
|
|
89
89
|
pointerEvents: "none",
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/toolbar.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/partials/icon.styled.tsx","../src/partials/icon.tsx","../src/partials/separator.styled.ts","../src/partials/separator.tsx","../src/partials/link.styled.tsx","../src/partials/link.tsx","../src/toolbar.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-toolbar'\n\nexport const StyledToolbar = styled(Root, {\n all: 'unset',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n maxWidth: '100%',\n gap: '$50',\n\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$12',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '$12',\n },\n\n variants: {\n unstyled: {\n false: {\n backgroundColor: '$background-neutrals-container',\n boxShadow: '$50',\n borderRadius: '$50',\n padding: '2px',\n },\n },\n },\n})\n\nexport type StyledToolbarProps = StrictComponentProps<typeof StyledToolbar>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixToolbar from '@radix-ui/react-toolbar'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst defaultStyles = {\n boxSizing: 'border-box',\n cursor: 'pointer',\n userSelect: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n}\n\nconst disabledSelector = '&[disabled], &[aria-disabled=\"true\"]'\n\nexport const StyledItem = styled(RadixToolbar.Button, {\n variants: {\n unstyled: {\n true: {\n ...defaultStyles,\n },\n false: {\n ...defaultStyles,\n borderRadius: 4,\n height: '$10',\n\n ...focus.css({\n boxShadow: '$focus-small-outline',\n borderColor: '$blue-400 !important',\n }),\n\n [disabledSelector]: {\n pointerEvents: 'none',\n color: '$text-neutrals-disabled',\n },\n\n '&[data-hovered]': {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n\n '&:active, &[data-pressed]': {\n backgroundColor: '$background-primary-subtle-active',\n color: '$icon-primary-active',\n },\n },\n },\n wrapper: {\n true: {\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'pointer',\n },\n },\n active: {\n true: {},\n false: {},\n },\n },\n\n '&[tabindex=\"0\"]': {\n zIndex: '1',\n },\n\n compoundVariants: [\n {\n unstyled: false,\n active: true,\n css: {\n '&&': {\n backgroundColor: '$background-primary-subtle-selected',\n color: '$icon-primary-selected',\n },\n },\n },\n ],\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { mergeProps } from '@react-aria/utils'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport type { PressEvents } from '@mirohq/design-system-use-press'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps, HoverEvents, PressEvents {\n /**\n * Renders item in enabled/toggled state.\n * @default false\n */\n active?: boolean\n\n /**\n * It's applied by default when using with asChild attribute.\n * You can still combine default Item styles with your own component by\n * setting this prop to false.\n * Note: Must be used together with asChild\n * @default true\n */\n unstyled?: boolean\n\n disabled?: boolean\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n asChild,\n unstyled = true,\n active = false,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n let elementProps = restProps\n\n const { pressProps } = usePress({\n preventFocusOnPress: 'auto',\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledItem\n {...elementProps}\n data-hovered={isHovered ? '' : undefined}\n asChild={asChild}\n active={active}\n unstyled={asChild === true ? unstyled : false}\n wrapper={asChild !== true}\n disabled={disabled}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : ariaDisabled}\n ref={forwardRef}\n />\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledIcon = styled(Item, {\n padding: 0,\n border: 'none',\n font: 'unset',\n width: '$10',\n color: '$icon-neutrals',\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledIcon } from './icon.styled'\n\nexport type IconProps = Omit<ItemProps, 'unstyled'>\n\nexport const Icon = React.forwardRef<ElementRef<typeof StyledIcon>, IconProps>(\n (props, forwardRef) => (\n <StyledIcon unstyled={false} {...props} ref={forwardRef} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Separator } from '@radix-ui/react-toolbar'\n\nexport const StyledSeparator = styled(Separator, {\n all: 'unset',\n display: 'block',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n\n '&[data-orientation=\"vertical\"]': {\n width: '1px',\n height: '$6',\n margin: '0 $50',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '1px',\n width: '$6',\n margin: '$50 0',\n },\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSeparatorProps } from './separator.styled'\nimport { StyledSeparator } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledLink = styled(Item, {\n paddingX: '$150',\n textDecoration: 'none',\n})\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledLink } from './link.styled'\n\ntype ItemPropsWithAnchor = Omit<ItemProps, 'unstyled'> &\n AnchorHTMLAttributes<typeof StyledLink>\nexport interface LinkProps extends ItemPropsWithAnchor {}\n\nexport const Link = React.forwardRef<ElementRef<typeof StyledLink>, LinkProps>(\n ({ children, href, ...restProps }, forwardRef) => (\n <StyledLink asChild unstyled={false} {...restProps} ref={forwardRef}>\n <a href={href}>{children}</a>\n </StyledLink>\n )\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport type { StyledToolbarProps } from './toolbar.styled'\nimport { StyledToolbar } from './toolbar.styled'\nimport { Icon } from './partials/icon'\nimport { Separator } from './partials/separator'\nimport { Link } from './partials/link'\nimport { Item } from './partials/item'\n\nexport interface ToolbarProps extends StyledToolbarProps {\n /**\n * Defines whether the toolbar has default styles (e.g. background, shadow, etc.)\n * @default false\n */\n unstyled?: boolean\n\n /**\n * The orientation of the toolbar\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical'\n\n /**\n * The reading direction of the toolbar\n * @default 'ltr'\n */\n dir?: 'ltr' | 'rtl'\n\n /**\n * The reading direction of the toolbar\n * @deprecated use dir instead\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * When true, keyboard navigation will loop from last tab to first, and vice versa\n * @default true\n */\n loop?: boolean\n}\n\nexport const Toolbar = React.forwardRef<\n ElementRef<typeof StyledToolbar>,\n ToolbarProps\n>(\n (\n {\n unstyled = false,\n orientation = 'horizontal',\n dir = 'ltr',\n loop = true,\n direction,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledToolbar\n unstyled={unstyled}\n orientation={orientation}\n dir={direction ?? dir}\n loop={loop}\n ref={forwardRef}\n {...restProps}\n />\n )\n) as ForwardRefExoticComponent<ToolbarProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\nexport interface Partials {\n Icon: typeof Icon\n Item: typeof Item\n Link: typeof Link\n Separator: typeof Separator\n}\n\nToolbar.Icon = Icon\nToolbar.Item = Item\nToolbar.Link = Link\nToolbar.Separator = Separator\n"],"names":["styled","Root","RadixToolbar","focus","React","usePress","booleanify","useHover","mergeProps","jsx","Separator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIa,MAAA,aAAA,GAAgBA,4BAAOC,iBAAM,EAAA;AAAA,EACxC,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,MAAA;AAAA,EACT,SAAW,EAAA,YAAA;AAAA,EACX,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,GAAK,EAAA,KAAA;AAAA,EAEL,gCAAkC,EAAA;AAAA,IAChC,aAAe,EAAA,QAAA;AAAA,IACf,KAAO,EAAA,KAAA;AAAA,GACT;AAAA,EAEA,kCAAoC,EAAA;AAAA,IAClC,MAAQ,EAAA,KAAA;AAAA,GACV;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,QA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AEJ,EAAA;AAYA,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,SAAY,GAAA,SAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/toolbar.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/partials/icon.styled.tsx","../src/partials/icon.tsx","../src/partials/separator.styled.ts","../src/partials/separator.tsx","../src/partials/link.styled.tsx","../src/partials/link.tsx","../src/toolbar.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-toolbar'\n\nexport const StyledToolbar = styled(Root, {\n all: 'unset',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n maxWidth: '100%',\n gap: '$50',\n\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$12',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '$12',\n },\n\n variants: {\n unstyled: {\n false: {\n backgroundColor: '$background-neutrals-container',\n boxShadow: '$50',\n borderRadius: '$50',\n padding: '2px',\n },\n },\n },\n})\n\nexport type StyledToolbarProps = StrictComponentProps<typeof StyledToolbar>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixToolbar from '@radix-ui/react-toolbar'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst defaultStyles = {\n boxSizing: 'border-box',\n cursor: 'pointer',\n userSelect: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n}\n\nconst disabledSelector = '&[disabled], &[aria-disabled=\"true\"]'\n\nexport const StyledItem = styled(RadixToolbar.Button, {\n variants: {\n unstyled: {\n true: {\n ...defaultStyles,\n },\n false: {\n ...defaultStyles,\n borderRadius: 4,\n height: '$10',\n\n ...focus.css({\n boxShadow: '$focus-small-outline',\n borderColor: '$blue-500 !important',\n }),\n\n [disabledSelector]: {\n pointerEvents: 'none',\n color: '$text-neutrals-disabled',\n },\n\n '&[data-hovered]': {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n\n '&:active, &[data-pressed]': {\n backgroundColor: '$background-primary-subtle-active',\n color: '$icon-primary-active',\n },\n },\n },\n wrapper: {\n true: {\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'pointer',\n },\n },\n active: {\n true: {},\n false: {},\n },\n },\n\n '&[tabindex=\"0\"]': {\n zIndex: '1',\n },\n\n compoundVariants: [\n {\n unstyled: false,\n active: true,\n css: {\n '&&': {\n backgroundColor: '$background-primary-subtle-selected',\n color: '$icon-primary-selected',\n },\n },\n },\n ],\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { mergeProps } from '@react-aria/utils'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport type { PressEvents } from '@mirohq/design-system-use-press'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps, HoverEvents, PressEvents {\n /**\n * Renders item in enabled/toggled state.\n * @default false\n */\n active?: boolean\n\n /**\n * It's applied by default when using with asChild attribute.\n * You can still combine default Item styles with your own component by\n * setting this prop to false.\n * Note: Must be used together with asChild\n * @default true\n */\n unstyled?: boolean\n\n disabled?: boolean\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n asChild,\n unstyled = true,\n active = false,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n let elementProps = restProps\n\n const { pressProps } = usePress({\n preventFocusOnPress: 'auto',\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledItem\n {...elementProps}\n data-hovered={isHovered ? '' : undefined}\n asChild={asChild}\n active={active}\n unstyled={asChild === true ? unstyled : false}\n wrapper={asChild !== true}\n disabled={disabled}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : ariaDisabled}\n ref={forwardRef}\n />\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledIcon = styled(Item, {\n padding: 0,\n border: 'none',\n font: 'unset',\n width: '$10',\n color: '$icon-neutrals',\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledIcon } from './icon.styled'\n\nexport type IconProps = Omit<ItemProps, 'unstyled'>\n\nexport const Icon = React.forwardRef<ElementRef<typeof StyledIcon>, IconProps>(\n (props, forwardRef) => (\n <StyledIcon unstyled={false} {...props} ref={forwardRef} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Separator } from '@radix-ui/react-toolbar'\n\nexport const StyledSeparator = styled(Separator, {\n all: 'unset',\n display: 'block',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n\n '&[data-orientation=\"vertical\"]': {\n width: '1px',\n height: '$6',\n margin: '0 $50',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '1px',\n width: '$6',\n margin: '$50 0',\n },\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSeparatorProps } from './separator.styled'\nimport { StyledSeparator } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledLink = styled(Item, {\n paddingX: '$150',\n textDecoration: 'none',\n})\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledLink } from './link.styled'\n\ntype ItemPropsWithAnchor = Omit<ItemProps, 'unstyled'> &\n AnchorHTMLAttributes<typeof StyledLink>\nexport interface LinkProps extends ItemPropsWithAnchor {}\n\nexport const Link = React.forwardRef<ElementRef<typeof StyledLink>, LinkProps>(\n ({ children, href, ...restProps }, forwardRef) => (\n <StyledLink asChild unstyled={false} {...restProps} ref={forwardRef}>\n <a href={href}>{children}</a>\n </StyledLink>\n )\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport type { StyledToolbarProps } from './toolbar.styled'\nimport { StyledToolbar } from './toolbar.styled'\nimport { Icon } from './partials/icon'\nimport { Separator } from './partials/separator'\nimport { Link } from './partials/link'\nimport { Item } from './partials/item'\n\nexport interface ToolbarProps extends StyledToolbarProps {\n /**\n * Defines whether the toolbar has default styles (e.g. background, shadow, etc.)\n * @default false\n */\n unstyled?: boolean\n\n /**\n * The orientation of the toolbar\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical'\n\n /**\n * The reading direction of the toolbar\n * @default 'ltr'\n */\n dir?: 'ltr' | 'rtl'\n\n /**\n * The reading direction of the toolbar\n * @deprecated use dir instead\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * When true, keyboard navigation will loop from last tab to first, and vice versa\n * @default true\n */\n loop?: boolean\n}\n\nexport const Toolbar = React.forwardRef<\n ElementRef<typeof StyledToolbar>,\n ToolbarProps\n>(\n (\n {\n unstyled = false,\n orientation = 'horizontal',\n dir = 'ltr',\n loop = true,\n direction,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledToolbar\n unstyled={unstyled}\n orientation={orientation}\n dir={direction ?? dir}\n loop={loop}\n ref={forwardRef}\n {...restProps}\n />\n )\n) as ForwardRefExoticComponent<ToolbarProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\nexport interface Partials {\n Icon: typeof Icon\n Item: typeof Item\n Link: typeof Link\n Separator: typeof Separator\n}\n\nToolbar.Icon = Icon\nToolbar.Item = Item\nToolbar.Link = Link\nToolbar.Separator = Separator\n"],"names":["styled","Root","RadixToolbar","focus","React","usePress","booleanify","useHover","mergeProps","jsx","Separator"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIa,MAAA,aAAA,GAAgBA,4BAAOC,iBAAM,EAAA;AAAA,EACxC,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,MAAA;AAAA,EACT,SAAW,EAAA,YAAA;AAAA,EACX,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,GAAK,EAAA,KAAA;AAAA,EAEL,gCAAkC,EAAA;AAAA,IAChC,aAAe,EAAA,QAAA;AAAA,IACf,KAAO,EAAA,KAAA;AAAA,GACT;AAAA,EAEA,kCAAoC,EAAA;AAAA,IAClC,MAAQ,EAAA,KAAA;AAAA,GACV;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA;AAAA,MACR,KAAO,EAAA;AAAA,QACL,eAAiB,EAAA,gCAAA;AAAA,QACjB,SAAW,EAAA,KAAA;AAAA,QACX,YAAc,EAAA,KAAA;AAAA,QACd,OAAS,EAAA,KAAA;AAAA,OACX;AAAA,KACF;AAAA,GACF;AACF,CAAC,CAAA;;AC1BD,MAAM,aAAgB,GAAA;AAAA,EACpB,SAAW,EAAA,YAAA;AAAA,EACX,MAAQ,EAAA,SAAA;AAAA,EACR,UAAY,EAAA,MAAA;AAAA,EACZ,OAAS,EAAA,MAAA;AAAA,EACT,UAAY,EAAA,QAAA;AAAA,EACZ,cAAg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cAAgB,EAAA,MAAA;AAClB,CAAC,CAAA;;ACGM,MAAM,OAAOI,yBAAM,CAAA,UAAA;AAAA,EACxB,CAAC,EAAE,QAAU,EAAA,IAAA,EAAM,GAAG,SAAU,EAAA,EAAG,UACjC,qBAAAK,cAAA,CAAC,UAAW,EAAA,EAAA,OAAA,EAAO,MAAC,QAAU,EAAA,KAAA,EAAQ,GAAG,SAAW,EAAA,GAAA,EAAK,YACvD,QAAC,kBAAAA,cAAA,CAAA,GAAA,EAAA,EAAE,IAAa,EAAA,QAAA,EAAS,CAC3B,EAAA,CAAA;AAEJ,CAAA;;AC0BO,MAAM,UAAUL,yBAAM,CAAA,UAAA;AAAA,EAI3B,CACE;AAAA,IACE,QAAW,GAAA,KAAA;AAAA,IACX,WAAc,GAAA,YAAA;AAAA,IACd,GAAM,GAAA,KAAA;AAAA,IACN,IAAO,GAAA,IAAA;AAAA,IACP,SAAA;AAAA,IACA,GAAG,SAAA;AAAA,KAEL,UAEA,qBAAAK,cAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,QAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAK,SAAa,IAAA,IAAA,GAAA,SAAA,GAAA,GAAA;AAAA,MAClB,IAAA;AAAA,MACA,GAAK,EAAA,UAAA;AAAA,MACJ,GAAG,SAAA;AAAA,KAAA;AAAA,GACN;AAEJ,EAAA;AAYA,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,SAAY,GAAA,SAAA;;;;"}
|
package/dist/module.js
CHANGED
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/toolbar.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/partials/icon.styled.tsx","../src/partials/icon.tsx","../src/partials/separator.styled.ts","../src/partials/separator.tsx","../src/partials/link.styled.tsx","../src/partials/link.tsx","../src/toolbar.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-toolbar'\n\nexport const StyledToolbar = styled(Root, {\n all: 'unset',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n maxWidth: '100%',\n gap: '$50',\n\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$12',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '$12',\n },\n\n variants: {\n unstyled: {\n false: {\n backgroundColor: '$background-neutrals-container',\n boxShadow: '$50',\n borderRadius: '$50',\n padding: '2px',\n },\n },\n },\n})\n\nexport type StyledToolbarProps = StrictComponentProps<typeof StyledToolbar>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixToolbar from '@radix-ui/react-toolbar'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst defaultStyles = {\n boxSizing: 'border-box',\n cursor: 'pointer',\n userSelect: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n}\n\nconst disabledSelector = '&[disabled], &[aria-disabled=\"true\"]'\n\nexport const StyledItem = styled(RadixToolbar.Button, {\n variants: {\n unstyled: {\n true: {\n ...defaultStyles,\n },\n false: {\n ...defaultStyles,\n borderRadius: 4,\n height: '$10',\n\n ...focus.css({\n boxShadow: '$focus-small-outline',\n borderColor: '$blue-400 !important',\n }),\n\n [disabledSelector]: {\n pointerEvents: 'none',\n color: '$text-neutrals-disabled',\n },\n\n '&[data-hovered]': {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n\n '&:active, &[data-pressed]': {\n backgroundColor: '$background-primary-subtle-active',\n color: '$icon-primary-active',\n },\n },\n },\n wrapper: {\n true: {\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'pointer',\n },\n },\n active: {\n true: {},\n false: {},\n },\n },\n\n '&[tabindex=\"0\"]': {\n zIndex: '1',\n },\n\n compoundVariants: [\n {\n unstyled: false,\n active: true,\n css: {\n '&&': {\n backgroundColor: '$background-primary-subtle-selected',\n color: '$icon-primary-selected',\n },\n },\n },\n ],\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { mergeProps } from '@react-aria/utils'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport type { PressEvents } from '@mirohq/design-system-use-press'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps, HoverEvents, PressEvents {\n /**\n * Renders item in enabled/toggled state.\n * @default false\n */\n active?: boolean\n\n /**\n * It's applied by default when using with asChild attribute.\n * You can still combine default Item styles with your own component by\n * setting this prop to false.\n * Note: Must be used together with asChild\n * @default true\n */\n unstyled?: boolean\n\n disabled?: boolean\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n asChild,\n unstyled = true,\n active = false,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n let elementProps = restProps\n\n const { pressProps } = usePress({\n preventFocusOnPress: 'auto',\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledItem\n {...elementProps}\n data-hovered={isHovered ? '' : undefined}\n asChild={asChild}\n active={active}\n unstyled={asChild === true ? unstyled : false}\n wrapper={asChild !== true}\n disabled={disabled}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : ariaDisabled}\n ref={forwardRef}\n />\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledIcon = styled(Item, {\n padding: 0,\n border: 'none',\n font: 'unset',\n width: '$10',\n color: '$icon-neutrals',\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledIcon } from './icon.styled'\n\nexport type IconProps = Omit<ItemProps, 'unstyled'>\n\nexport const Icon = React.forwardRef<ElementRef<typeof StyledIcon>, IconProps>(\n (props, forwardRef) => (\n <StyledIcon unstyled={false} {...props} ref={forwardRef} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Separator } from '@radix-ui/react-toolbar'\n\nexport const StyledSeparator = styled(Separator, {\n all: 'unset',\n display: 'block',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n\n '&[data-orientation=\"vertical\"]': {\n width: '1px',\n height: '$6',\n margin: '0 $50',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '1px',\n width: '$6',\n margin: '$50 0',\n },\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSeparatorProps } from './separator.styled'\nimport { StyledSeparator } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledLink = styled(Item, {\n paddingX: '$150',\n textDecoration: 'none',\n})\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledLink } from './link.styled'\n\ntype ItemPropsWithAnchor = Omit<ItemProps, 'unstyled'> &\n AnchorHTMLAttributes<typeof StyledLink>\nexport interface LinkProps extends ItemPropsWithAnchor {}\n\nexport const Link = React.forwardRef<ElementRef<typeof StyledLink>, LinkProps>(\n ({ children, href, ...restProps }, forwardRef) => (\n <StyledLink asChild unstyled={false} {...restProps} ref={forwardRef}>\n <a href={href}>{children}</a>\n </StyledLink>\n )\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport type { StyledToolbarProps } from './toolbar.styled'\nimport { StyledToolbar } from './toolbar.styled'\nimport { Icon } from './partials/icon'\nimport { Separator } from './partials/separator'\nimport { Link } from './partials/link'\nimport { Item } from './partials/item'\n\nexport interface ToolbarProps extends StyledToolbarProps {\n /**\n * Defines whether the toolbar has default styles (e.g. background, shadow, etc.)\n * @default false\n */\n unstyled?: boolean\n\n /**\n * The orientation of the toolbar\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical'\n\n /**\n * The reading direction of the toolbar\n * @default 'ltr'\n */\n dir?: 'ltr' | 'rtl'\n\n /**\n * The reading direction of the toolbar\n * @deprecated use dir instead\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * When true, keyboard navigation will loop from last tab to first, and vice versa\n * @default true\n */\n loop?: boolean\n}\n\nexport const Toolbar = React.forwardRef<\n ElementRef<typeof StyledToolbar>,\n ToolbarProps\n>(\n (\n {\n unstyled = false,\n orientation = 'horizontal',\n dir = 'ltr',\n loop = true,\n direction,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledToolbar\n unstyled={unstyled}\n orientation={orientation}\n dir={direction ?? dir}\n loop={loop}\n ref={forwardRef}\n {...restProps}\n />\n )\n) as ForwardRefExoticComponent<ToolbarProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\nexport interface Partials {\n Icon: typeof Icon\n Item: typeof Item\n Link: typeof Link\n Separator: typeof Separator\n}\n\nToolbar.Icon = Icon\nToolbar.Item = Item\nToolbar.Link = Link\nToolbar.Separator = Separator\n"],"names":["Separator"],"mappings":";;;;;;;;;;;AA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A,IACX,WAAc,GAAA,YAAA;AAAA,IACd,GAAM,GAAA,KAAA;AAAA,IACN,IAAO,GAAA,IAAA;AAAA,IACP,SAAA;AAAA,IACA,GAAG,SAAA;AAAA,KAEL,UAEA,qBAAA,GAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,QAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAK,SAAa,IAAA,IAAA,GAAA,SAAA,GAAA,GAAA;AAAA,MAClB,IAAA;AAAA,MACA,GAAK,EAAA,UAAA;AAAA,MACJ,GAAG,SAAA;AAAA,KAAA;AAAA,GACN;AAEJ,EAAA;AAYA,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,IAAO,GAAA,IAAA,CAAA;AACf,OAAA,CAAQ,SAAY,GAAA,SAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/toolbar.styled.ts","../src/partials/item.styled.ts","../src/partials/item.tsx","../src/partials/icon.styled.tsx","../src/partials/icon.tsx","../src/partials/separator.styled.ts","../src/partials/separator.tsx","../src/partials/link.styled.tsx","../src/partials/link.tsx","../src/toolbar.tsx"],"sourcesContent":["import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Root } from '@radix-ui/react-toolbar'\n\nexport const StyledToolbar = styled(Root, {\n all: 'unset',\n display: 'flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n maxWidth: '100%',\n gap: '$50',\n\n '&[data-orientation=\"vertical\"]': {\n flexDirection: 'column',\n width: '$12',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '$12',\n },\n\n variants: {\n unstyled: {\n false: {\n backgroundColor: '$background-neutrals-container',\n boxShadow: '$50',\n borderRadius: '$50',\n padding: '2px',\n },\n },\n },\n})\n\nexport type StyledToolbarProps = StrictComponentProps<typeof StyledToolbar>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport * as RadixToolbar from '@radix-ui/react-toolbar'\nimport { focus } from '@mirohq/design-system-styles'\n\nconst defaultStyles = {\n boxSizing: 'border-box',\n cursor: 'pointer',\n userSelect: 'none',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n}\n\nconst disabledSelector = '&[disabled], &[aria-disabled=\"true\"]'\n\nexport const StyledItem = styled(RadixToolbar.Button, {\n variants: {\n unstyled: {\n true: {\n ...defaultStyles,\n },\n false: {\n ...defaultStyles,\n borderRadius: 4,\n height: '$10',\n\n ...focus.css({\n boxShadow: '$focus-small-outline',\n borderColor: '$blue-500 !important',\n }),\n\n [disabledSelector]: {\n pointerEvents: 'none',\n color: '$text-neutrals-disabled',\n },\n\n '&[data-hovered]': {\n backgroundColor: '$background-primary-subtle-hover',\n color: '$icon-primary-hover',\n },\n\n '&:active, &[data-pressed]': {\n backgroundColor: '$background-primary-subtle-active',\n color: '$icon-primary-active',\n },\n },\n },\n wrapper: {\n true: {\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'pointer',\n },\n },\n active: {\n true: {},\n false: {},\n },\n },\n\n '&[tabindex=\"0\"]': {\n zIndex: '1',\n },\n\n compoundVariants: [\n {\n unstyled: false,\n active: true,\n css: {\n '&&': {\n backgroundColor: '$background-primary-subtle-selected',\n color: '$icon-primary-selected',\n },\n },\n },\n ],\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { mergeProps } from '@react-aria/utils'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport type { PressEvents } from '@mirohq/design-system-use-press'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\n\nexport interface ItemProps extends StyledItemProps, HoverEvents, PressEvents {\n /**\n * Renders item in enabled/toggled state.\n * @default false\n */\n active?: boolean\n\n /**\n * It's applied by default when using with asChild attribute.\n * You can still combine default Item styles with your own component by\n * setting this prop to false.\n * Note: Must be used together with asChild\n * @default true\n */\n unstyled?: boolean\n\n disabled?: boolean\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n asChild,\n unstyled = true,\n active = false,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n let elementProps = restProps\n\n const { pressProps } = usePress({\n preventFocusOnPress: 'auto',\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledItem\n {...elementProps}\n data-hovered={isHovered ? '' : undefined}\n asChild={asChild}\n active={active}\n unstyled={asChild === true ? unstyled : false}\n wrapper={asChild !== true}\n disabled={disabled}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : ariaDisabled}\n ref={forwardRef}\n />\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledIcon = styled(Item, {\n padding: 0,\n border: 'none',\n font: 'unset',\n width: '$10',\n color: '$icon-neutrals',\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledIcon } from './icon.styled'\n\nexport type IconProps = Omit<ItemProps, 'unstyled'>\n\nexport const Icon = React.forwardRef<ElementRef<typeof StyledIcon>, IconProps>(\n (props, forwardRef) => (\n <StyledIcon unstyled={false} {...props} ref={forwardRef} />\n )\n)\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Separator } from '@radix-ui/react-toolbar'\n\nexport const StyledSeparator = styled(Separator, {\n all: 'unset',\n display: 'block',\n boxSizing: 'border-box',\n backgroundColor: 'rgba(205, 204, 215, 1)',\n\n '&[data-orientation=\"vertical\"]': {\n width: '1px',\n height: '$6',\n margin: '0 $50',\n },\n\n '&[data-orientation=\"horizontal\"]': {\n height: '1px',\n width: '$6',\n margin: '$50 0',\n },\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport type { StyledSeparatorProps } from './separator.styled'\nimport { StyledSeparator } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import { styled } from '@mirohq/design-system-stitches'\n\nimport { Item } from './item'\n\nexport const StyledLink = styled(Item, {\n paddingX: '$150',\n textDecoration: 'none',\n})\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\n\nimport type { ItemProps } from './item'\nimport { StyledLink } from './link.styled'\n\ntype ItemPropsWithAnchor = Omit<ItemProps, 'unstyled'> &\n AnchorHTMLAttributes<typeof StyledLink>\nexport interface LinkProps extends ItemPropsWithAnchor {}\n\nexport const Link = React.forwardRef<ElementRef<typeof StyledLink>, LinkProps>(\n ({ children, href, ...restProps }, forwardRef) => (\n <StyledLink asChild unstyled={false} {...restProps} ref={forwardRef}>\n <a href={href}>{children}</a>\n </StyledLink>\n )\n)\n","import React from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\n\nimport type { StyledToolbarProps } from './toolbar.styled'\nimport { StyledToolbar } from './toolbar.styled'\nimport { Icon } from './partials/icon'\nimport { Separator } from './partials/separator'\nimport { Link } from './partials/link'\nimport { Item } from './partials/item'\n\nexport interface ToolbarProps extends StyledToolbarProps {\n /**\n * Defines whether the toolbar has default styles (e.g. background, shadow, etc.)\n * @default false\n */\n unstyled?: boolean\n\n /**\n * The orientation of the toolbar\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical'\n\n /**\n * The reading direction of the toolbar\n * @default 'ltr'\n */\n dir?: 'ltr' | 'rtl'\n\n /**\n * The reading direction of the toolbar\n * @deprecated use dir instead\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * When true, keyboard navigation will loop from last tab to first, and vice versa\n * @default true\n */\n loop?: boolean\n}\n\nexport const Toolbar = React.forwardRef<\n ElementRef<typeof StyledToolbar>,\n ToolbarProps\n>(\n (\n {\n unstyled = false,\n orientation = 'horizontal',\n dir = 'ltr',\n loop = true,\n direction,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledToolbar\n unstyled={unstyled}\n orientation={orientation}\n dir={direction ?? dir}\n loop={loop}\n ref={forwardRef}\n {...restProps}\n />\n )\n) as ForwardRefExoticComponent<ToolbarProps> & Partials\n\n// Partials\n// -----------------------------------------------------------------------------\n\nexport interface Partials {\n Icon: typeof Icon\n Item: typeof Item\n Link: typeof Link\n Separator: typeof Separator\n}\n\nToolbar.Icon = Icon\nToolbar.Item = Item\nToolbar.Link = Link\nToolbar.Separator = Separator\n"],"names":["Separator"],"mappings":";;;;;;;;;;;AAIa,MAAA,aAAA,GAAgB,OAAO,IAAM,EAAA;AAAA,EACxC,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,MAAA;AAAA,EACT,SAAW,EAAA,YAAA;AAAA,EACX,UAAY,EAAA,QAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,GAAK,EAAA,KAAA;AAAA,EAEL,gCAAkC,EAAA;AAAA,IAChC,aAAe,EAAA,QAAA;AAAA,IACf,KAAO,EAAA,KAAA;AAAA,GACT;AAAA,EAEA,kCAAoC,EAAA;AAAA,IAClC,MAAQ,EAAA,KAAA;AAAA,GACV;AAAA,EAEA,QAAU,EAAA;AAAA,IACR,QAAU,EAAA;AAAA,MACR,KAAO,EAAA;AAAA,QACL,eAAiB,EAAA,gCAAA;AAAA,QACjB,SAAW,EAAA,KAAA;AAAA,QACX,YAA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,SAAY,GAAA,SAAA;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -17,103 +17,63 @@ declare const StyledToolbar: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
17
17
|
};
|
|
18
18
|
colors: {
|
|
19
19
|
readonly black: any;
|
|
20
|
-
readonly 'blue-50': any;
|
|
21
20
|
readonly 'blue-100': any;
|
|
22
|
-
readonly 'blue-150': any;
|
|
23
21
|
readonly 'blue-200': any;
|
|
24
|
-
readonly 'blue-250': any;
|
|
25
22
|
readonly 'blue-300': any;
|
|
26
|
-
readonly 'blue-350': any;
|
|
27
23
|
readonly 'blue-400': any;
|
|
28
|
-
readonly 'blue-450': any;
|
|
29
24
|
readonly 'blue-500': any;
|
|
30
|
-
readonly 'blue-550': any;
|
|
31
25
|
readonly 'blue-600': any;
|
|
32
|
-
readonly 'blue-650': any;
|
|
33
26
|
readonly 'blue-700': any;
|
|
34
|
-
readonly 'blue-750': any;
|
|
35
27
|
readonly 'blue-800': any;
|
|
36
|
-
readonly 'blue-850': any;
|
|
37
28
|
readonly 'blue-900': any;
|
|
38
|
-
readonly 'blue-
|
|
39
|
-
readonly 'gray-50': any;
|
|
29
|
+
readonly 'blue-1000': any;
|
|
40
30
|
readonly 'gray-100': any;
|
|
41
|
-
readonly 'gray-150': any;
|
|
42
31
|
readonly 'gray-200': any;
|
|
43
|
-
readonly 'gray-250': any;
|
|
44
32
|
readonly 'gray-300': any;
|
|
45
|
-
readonly 'gray-350': any;
|
|
46
33
|
readonly 'gray-400': any;
|
|
47
|
-
readonly 'gray-450': any;
|
|
48
34
|
readonly 'gray-500': any;
|
|
49
|
-
readonly 'gray-550': any;
|
|
50
35
|
readonly 'gray-600': any;
|
|
51
|
-
readonly 'gray-650': any;
|
|
52
36
|
readonly 'gray-700': any;
|
|
53
|
-
readonly 'gray-750': any;
|
|
54
37
|
readonly 'gray-800': any;
|
|
55
|
-
readonly 'gray-850': any;
|
|
56
38
|
readonly 'gray-900': any;
|
|
57
|
-
readonly 'gray-950': any;
|
|
58
|
-
readonly 'green-50': any;
|
|
59
39
|
readonly 'green-100': any;
|
|
60
|
-
readonly 'green-150': any;
|
|
61
40
|
readonly 'green-200': any;
|
|
62
|
-
readonly 'green-250': any;
|
|
63
41
|
readonly 'green-300': any;
|
|
64
|
-
readonly 'green-350': any;
|
|
65
42
|
readonly 'green-400': any;
|
|
66
|
-
readonly 'green-450': any;
|
|
67
43
|
readonly 'green-500': any;
|
|
68
|
-
readonly 'green-550': any;
|
|
69
44
|
readonly 'green-600': any;
|
|
70
|
-
readonly 'green-650': any;
|
|
71
45
|
readonly 'green-700': any;
|
|
72
|
-
readonly 'green-750': any;
|
|
73
46
|
readonly 'green-800': any;
|
|
74
|
-
readonly 'green-850': any;
|
|
75
47
|
readonly 'green-900': any;
|
|
76
|
-
readonly '
|
|
77
|
-
readonly '
|
|
48
|
+
readonly 'indigo-100': any;
|
|
49
|
+
readonly 'indigo-200': any;
|
|
50
|
+
readonly 'indigo-300': any;
|
|
51
|
+
readonly 'indigo-400': any;
|
|
52
|
+
readonly 'indigo-500': any;
|
|
53
|
+
readonly 'indigo-600': any;
|
|
54
|
+
readonly 'indigo-700': any;
|
|
55
|
+
readonly 'indigo-800': any;
|
|
56
|
+
readonly 'indigo-900': any;
|
|
78
57
|
readonly 'red-100': any;
|
|
79
|
-
readonly 'red-150': any;
|
|
80
58
|
readonly 'red-200': any;
|
|
81
|
-
readonly 'red-250': any;
|
|
82
59
|
readonly 'red-300': any;
|
|
83
|
-
readonly 'red-350': any;
|
|
84
60
|
readonly 'red-400': any;
|
|
85
|
-
readonly 'red-450': any;
|
|
86
61
|
readonly 'red-500': any;
|
|
87
|
-
readonly 'red-550': any;
|
|
88
62
|
readonly 'red-600': any;
|
|
89
|
-
readonly 'red-650': any;
|
|
90
63
|
readonly 'red-700': any;
|
|
91
|
-
readonly 'red-750': any;
|
|
92
64
|
readonly 'red-800': any;
|
|
93
|
-
readonly 'red-850': any;
|
|
94
65
|
readonly 'red-900': any;
|
|
95
|
-
readonly 'red-950': any;
|
|
96
66
|
readonly transparent: any;
|
|
97
67
|
readonly white: any;
|
|
98
|
-
readonly 'yellow-50': any;
|
|
99
68
|
readonly 'yellow-100': any;
|
|
100
|
-
readonly 'yellow-150': any;
|
|
101
69
|
readonly 'yellow-200': any;
|
|
102
|
-
readonly 'yellow-250': any;
|
|
103
70
|
readonly 'yellow-300': any;
|
|
104
|
-
readonly 'yellow-350': any;
|
|
105
71
|
readonly 'yellow-400': any;
|
|
106
|
-
readonly 'yellow-450': any;
|
|
107
72
|
readonly 'yellow-500': any;
|
|
108
|
-
readonly 'yellow-550': any;
|
|
109
73
|
readonly 'yellow-600': any;
|
|
110
|
-
readonly 'yellow-650': any;
|
|
111
74
|
readonly 'yellow-700': any;
|
|
112
|
-
readonly 'yellow-750': any;
|
|
113
75
|
readonly 'yellow-800': any;
|
|
114
|
-
readonly 'yellow-850': any;
|
|
115
76
|
readonly 'yellow-900': any;
|
|
116
|
-
readonly 'yellow-950': any;
|
|
117
77
|
"background-alpha-active"?: any;
|
|
118
78
|
"background-alpha-hover"?: any;
|
|
119
79
|
"background-danger-prominent"?: any;
|
|
@@ -134,19 +94,27 @@ declare const StyledToolbar: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
134
94
|
"background-neutrals-inverted-subtle"?: any;
|
|
135
95
|
"background-neutrals-page"?: any;
|
|
136
96
|
"background-neutrals-page-subtle"?: any;
|
|
137
|
-
"background-neutrals-
|
|
138
|
-
"background-neutrals-
|
|
139
|
-
"background-neutrals-
|
|
97
|
+
"background-neutrals-scrolls"?: any;
|
|
98
|
+
"background-neutrals-scrolls-expanded"?: any;
|
|
99
|
+
"background-neutrals-scrolls-hover"?: any;
|
|
100
|
+
"background-neutrals-scrolls-pressed"?: any;
|
|
101
|
+
"background-neutrals-scrolls-pressed-hover"?: any;
|
|
140
102
|
"background-neutrals-subtle"?: any;
|
|
141
103
|
"background-neutrals-subtle-active"?: any;
|
|
142
104
|
"background-neutrals-subtle-hover"?: any;
|
|
143
105
|
"background-primary-prominent"?: any;
|
|
144
106
|
"background-primary-prominent-active"?: any;
|
|
107
|
+
"background-primary-prominent-expanded"?: any;
|
|
145
108
|
"background-primary-prominent-hover"?: any;
|
|
109
|
+
"background-primary-prominent-pressed"?: any;
|
|
110
|
+
"background-primary-prominent-pressed-hover"?: any;
|
|
146
111
|
"background-primary-prominent-selected"?: any;
|
|
147
112
|
"background-primary-subtle"?: any;
|
|
148
113
|
"background-primary-subtle-active"?: any;
|
|
114
|
+
"background-primary-subtle-expanded"?: any;
|
|
149
115
|
"background-primary-subtle-hover"?: any;
|
|
116
|
+
"background-primary-subtle-pressed"?: any;
|
|
117
|
+
"background-primary-subtle-pressed-hover"?: any;
|
|
150
118
|
"background-primary-subtle-selected"?: any;
|
|
151
119
|
"background-success"?: any;
|
|
152
120
|
"background-success-prominent"?: any;
|
|
@@ -157,15 +125,9 @@ declare const StyledToolbar: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
157
125
|
"border-danger"?: any;
|
|
158
126
|
"border-danger-active"?: any;
|
|
159
127
|
"border-danger-hover"?: any;
|
|
160
|
-
"border-focus-error-inner"?: any;
|
|
161
|
-
"border-focus-error-middle"?: any;
|
|
162
|
-
"border-focus-error-outer"?: any;
|
|
163
128
|
"border-focus-inner"?: any;
|
|
164
129
|
"border-focus-middle"?: any;
|
|
165
130
|
"border-focus-outer"?: any;
|
|
166
|
-
"border-focus-success-inner"?: any;
|
|
167
|
-
"border-focus-success-middle"?: any;
|
|
168
|
-
"border-focus-success-outer"?: any;
|
|
169
131
|
"border-neutrals"?: any;
|
|
170
132
|
"border-neutrals-active"?: any;
|
|
171
133
|
"border-neutrals-controls"?: any;
|
|
@@ -258,23 +220,21 @@ declare const StyledToolbar: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
258
220
|
readonly body: "Open Sans, sans-serif";
|
|
259
221
|
};
|
|
260
222
|
radii: {
|
|
223
|
+
readonly none: 0;
|
|
224
|
+
readonly half: "999em";
|
|
261
225
|
readonly 25: "2px";
|
|
262
226
|
readonly 50: "4px";
|
|
263
227
|
readonly 75: "6px";
|
|
264
228
|
readonly 100: "8px";
|
|
265
229
|
readonly 200: "16px";
|
|
266
|
-
readonly half: "999px";
|
|
267
|
-
readonly none: "0px";
|
|
268
230
|
};
|
|
269
231
|
shadows: {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
"focus-
|
|
273
|
-
"focus-
|
|
274
|
-
"focus-
|
|
275
|
-
|
|
276
|
-
"focus-controls-error": any;
|
|
277
|
-
"focus-controls-success": any;
|
|
232
|
+
readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
|
|
233
|
+
readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
|
|
234
|
+
readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
|
|
235
|
+
readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
|
|
236
|
+
readonly 'focus-controls-error': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-danger, 0 0 0 5px $colors$background-danger-subtle-hover";
|
|
237
|
+
readonly 'focus-controls-success': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$background-success-prominent, 0 0 0 5px $colors$background-success";
|
|
278
238
|
};
|
|
279
239
|
sizes: {
|
|
280
240
|
readonly number: string;
|
|
@@ -552,103 +512,63 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
552
512
|
};
|
|
553
513
|
colors: {
|
|
554
514
|
readonly black: any;
|
|
555
|
-
readonly 'blue-50': any;
|
|
556
515
|
readonly 'blue-100': any;
|
|
557
|
-
readonly 'blue-150': any;
|
|
558
516
|
readonly 'blue-200': any;
|
|
559
|
-
readonly 'blue-250': any;
|
|
560
517
|
readonly 'blue-300': any;
|
|
561
|
-
readonly 'blue-350': any;
|
|
562
518
|
readonly 'blue-400': any;
|
|
563
|
-
readonly 'blue-450': any;
|
|
564
519
|
readonly 'blue-500': any;
|
|
565
|
-
readonly 'blue-550': any;
|
|
566
520
|
readonly 'blue-600': any;
|
|
567
|
-
readonly 'blue-650': any;
|
|
568
521
|
readonly 'blue-700': any;
|
|
569
|
-
readonly 'blue-750': any;
|
|
570
522
|
readonly 'blue-800': any;
|
|
571
|
-
readonly 'blue-850': any;
|
|
572
523
|
readonly 'blue-900': any;
|
|
573
|
-
readonly 'blue-
|
|
574
|
-
readonly 'gray-50': any;
|
|
524
|
+
readonly 'blue-1000': any;
|
|
575
525
|
readonly 'gray-100': any;
|
|
576
|
-
readonly 'gray-150': any;
|
|
577
526
|
readonly 'gray-200': any;
|
|
578
|
-
readonly 'gray-250': any;
|
|
579
527
|
readonly 'gray-300': any;
|
|
580
|
-
readonly 'gray-350': any;
|
|
581
528
|
readonly 'gray-400': any;
|
|
582
|
-
readonly 'gray-450': any;
|
|
583
529
|
readonly 'gray-500': any;
|
|
584
|
-
readonly 'gray-550': any;
|
|
585
530
|
readonly 'gray-600': any;
|
|
586
|
-
readonly 'gray-650': any;
|
|
587
531
|
readonly 'gray-700': any;
|
|
588
|
-
readonly 'gray-750': any;
|
|
589
532
|
readonly 'gray-800': any;
|
|
590
|
-
readonly 'gray-850': any;
|
|
591
533
|
readonly 'gray-900': any;
|
|
592
|
-
readonly 'gray-950': any;
|
|
593
|
-
readonly 'green-50': any;
|
|
594
534
|
readonly 'green-100': any;
|
|
595
|
-
readonly 'green-150': any;
|
|
596
535
|
readonly 'green-200': any;
|
|
597
|
-
readonly 'green-250': any;
|
|
598
536
|
readonly 'green-300': any;
|
|
599
|
-
readonly 'green-350': any;
|
|
600
537
|
readonly 'green-400': any;
|
|
601
|
-
readonly 'green-450': any;
|
|
602
538
|
readonly 'green-500': any;
|
|
603
|
-
readonly 'green-550': any;
|
|
604
539
|
readonly 'green-600': any;
|
|
605
|
-
readonly 'green-650': any;
|
|
606
540
|
readonly 'green-700': any;
|
|
607
|
-
readonly 'green-750': any;
|
|
608
541
|
readonly 'green-800': any;
|
|
609
|
-
readonly 'green-850': any;
|
|
610
542
|
readonly 'green-900': any;
|
|
611
|
-
readonly '
|
|
612
|
-
readonly '
|
|
543
|
+
readonly 'indigo-100': any;
|
|
544
|
+
readonly 'indigo-200': any;
|
|
545
|
+
readonly 'indigo-300': any;
|
|
546
|
+
readonly 'indigo-400': any;
|
|
547
|
+
readonly 'indigo-500': any;
|
|
548
|
+
readonly 'indigo-600': any;
|
|
549
|
+
readonly 'indigo-700': any;
|
|
550
|
+
readonly 'indigo-800': any;
|
|
551
|
+
readonly 'indigo-900': any;
|
|
613
552
|
readonly 'red-100': any;
|
|
614
|
-
readonly 'red-150': any;
|
|
615
553
|
readonly 'red-200': any;
|
|
616
|
-
readonly 'red-250': any;
|
|
617
554
|
readonly 'red-300': any;
|
|
618
|
-
readonly 'red-350': any;
|
|
619
555
|
readonly 'red-400': any;
|
|
620
|
-
readonly 'red-450': any;
|
|
621
556
|
readonly 'red-500': any;
|
|
622
|
-
readonly 'red-550': any;
|
|
623
557
|
readonly 'red-600': any;
|
|
624
|
-
readonly 'red-650': any;
|
|
625
558
|
readonly 'red-700': any;
|
|
626
|
-
readonly 'red-750': any;
|
|
627
559
|
readonly 'red-800': any;
|
|
628
|
-
readonly 'red-850': any;
|
|
629
560
|
readonly 'red-900': any;
|
|
630
|
-
readonly 'red-950': any;
|
|
631
561
|
readonly transparent: any;
|
|
632
562
|
readonly white: any;
|
|
633
|
-
readonly 'yellow-50': any;
|
|
634
563
|
readonly 'yellow-100': any;
|
|
635
|
-
readonly 'yellow-150': any;
|
|
636
564
|
readonly 'yellow-200': any;
|
|
637
|
-
readonly 'yellow-250': any;
|
|
638
565
|
readonly 'yellow-300': any;
|
|
639
|
-
readonly 'yellow-350': any;
|
|
640
566
|
readonly 'yellow-400': any;
|
|
641
|
-
readonly 'yellow-450': any;
|
|
642
567
|
readonly 'yellow-500': any;
|
|
643
|
-
readonly 'yellow-550': any;
|
|
644
568
|
readonly 'yellow-600': any;
|
|
645
|
-
readonly 'yellow-650': any;
|
|
646
569
|
readonly 'yellow-700': any;
|
|
647
|
-
readonly 'yellow-750': any;
|
|
648
570
|
readonly 'yellow-800': any;
|
|
649
|
-
readonly 'yellow-850': any;
|
|
650
571
|
readonly 'yellow-900': any;
|
|
651
|
-
readonly 'yellow-950': any;
|
|
652
572
|
"background-alpha-active"?: any;
|
|
653
573
|
"background-alpha-hover"?: any;
|
|
654
574
|
"background-danger-prominent"?: any;
|
|
@@ -669,19 +589,27 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
669
589
|
"background-neutrals-inverted-subtle"?: any;
|
|
670
590
|
"background-neutrals-page"?: any;
|
|
671
591
|
"background-neutrals-page-subtle"?: any;
|
|
672
|
-
"background-neutrals-
|
|
673
|
-
"background-neutrals-
|
|
674
|
-
"background-neutrals-
|
|
592
|
+
"background-neutrals-scrolls"?: any;
|
|
593
|
+
"background-neutrals-scrolls-expanded"?: any;
|
|
594
|
+
"background-neutrals-scrolls-hover"?: any;
|
|
595
|
+
"background-neutrals-scrolls-pressed"?: any;
|
|
596
|
+
"background-neutrals-scrolls-pressed-hover"?: any;
|
|
675
597
|
"background-neutrals-subtle"?: any;
|
|
676
598
|
"background-neutrals-subtle-active"?: any;
|
|
677
599
|
"background-neutrals-subtle-hover"?: any;
|
|
678
600
|
"background-primary-prominent"?: any;
|
|
679
601
|
"background-primary-prominent-active"?: any;
|
|
602
|
+
"background-primary-prominent-expanded"?: any;
|
|
680
603
|
"background-primary-prominent-hover"?: any;
|
|
604
|
+
"background-primary-prominent-pressed"?: any;
|
|
605
|
+
"background-primary-prominent-pressed-hover"?: any;
|
|
681
606
|
"background-primary-prominent-selected"?: any;
|
|
682
607
|
"background-primary-subtle"?: any;
|
|
683
608
|
"background-primary-subtle-active"?: any;
|
|
609
|
+
"background-primary-subtle-expanded"?: any;
|
|
684
610
|
"background-primary-subtle-hover"?: any;
|
|
611
|
+
"background-primary-subtle-pressed"?: any;
|
|
612
|
+
"background-primary-subtle-pressed-hover"?: any;
|
|
685
613
|
"background-primary-subtle-selected"?: any;
|
|
686
614
|
"background-success"?: any;
|
|
687
615
|
"background-success-prominent"?: any;
|
|
@@ -692,15 +620,9 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
692
620
|
"border-danger"?: any;
|
|
693
621
|
"border-danger-active"?: any;
|
|
694
622
|
"border-danger-hover"?: any;
|
|
695
|
-
"border-focus-error-inner"?: any;
|
|
696
|
-
"border-focus-error-middle"?: any;
|
|
697
|
-
"border-focus-error-outer"?: any;
|
|
698
623
|
"border-focus-inner"?: any;
|
|
699
624
|
"border-focus-middle"?: any;
|
|
700
625
|
"border-focus-outer"?: any;
|
|
701
|
-
"border-focus-success-inner"?: any;
|
|
702
|
-
"border-focus-success-middle"?: any;
|
|
703
|
-
"border-focus-success-outer"?: any;
|
|
704
626
|
"border-neutrals"?: any;
|
|
705
627
|
"border-neutrals-active"?: any;
|
|
706
628
|
"border-neutrals-controls"?: any;
|
|
@@ -793,23 +715,21 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
793
715
|
readonly body: "Open Sans, sans-serif";
|
|
794
716
|
};
|
|
795
717
|
radii: {
|
|
718
|
+
readonly none: 0;
|
|
719
|
+
readonly half: "999em";
|
|
796
720
|
readonly 25: "2px";
|
|
797
721
|
readonly 50: "4px";
|
|
798
722
|
readonly 75: "6px";
|
|
799
723
|
readonly 100: "8px";
|
|
800
724
|
readonly 200: "16px";
|
|
801
|
-
readonly half: "999px";
|
|
802
|
-
readonly none: "0px";
|
|
803
725
|
};
|
|
804
726
|
shadows: {
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
"focus-
|
|
808
|
-
"focus-
|
|
809
|
-
"focus-
|
|
810
|
-
|
|
811
|
-
"focus-controls-error": any;
|
|
812
|
-
"focus-controls-success": any;
|
|
727
|
+
readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
|
|
728
|
+
readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
|
|
729
|
+
readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
|
|
730
|
+
readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
|
|
731
|
+
readonly 'focus-controls-error': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-danger, 0 0 0 5px $colors$background-danger-subtle-hover";
|
|
732
|
+
readonly 'focus-controls-success': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$background-success-prominent, 0 0 0 5px $colors$background-success";
|
|
813
733
|
};
|
|
814
734
|
sizes: {
|
|
815
735
|
readonly number: string;
|
|
@@ -1112,103 +1032,63 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
1112
1032
|
};
|
|
1113
1033
|
colors: {
|
|
1114
1034
|
readonly black: any;
|
|
1115
|
-
readonly 'blue-50': any;
|
|
1116
1035
|
readonly 'blue-100': any;
|
|
1117
|
-
readonly 'blue-150': any;
|
|
1118
1036
|
readonly 'blue-200': any;
|
|
1119
|
-
readonly 'blue-250': any;
|
|
1120
1037
|
readonly 'blue-300': any;
|
|
1121
|
-
readonly 'blue-350': any;
|
|
1122
1038
|
readonly 'blue-400': any;
|
|
1123
|
-
readonly 'blue-450': any;
|
|
1124
1039
|
readonly 'blue-500': any;
|
|
1125
|
-
readonly 'blue-550': any;
|
|
1126
1040
|
readonly 'blue-600': any;
|
|
1127
|
-
readonly 'blue-650': any;
|
|
1128
1041
|
readonly 'blue-700': any;
|
|
1129
|
-
readonly 'blue-750': any;
|
|
1130
1042
|
readonly 'blue-800': any;
|
|
1131
|
-
readonly 'blue-850': any;
|
|
1132
1043
|
readonly 'blue-900': any;
|
|
1133
|
-
readonly 'blue-
|
|
1134
|
-
readonly 'gray-50': any;
|
|
1044
|
+
readonly 'blue-1000': any;
|
|
1135
1045
|
readonly 'gray-100': any;
|
|
1136
|
-
readonly 'gray-150': any;
|
|
1137
1046
|
readonly 'gray-200': any;
|
|
1138
|
-
readonly 'gray-250': any;
|
|
1139
1047
|
readonly 'gray-300': any;
|
|
1140
|
-
readonly 'gray-350': any;
|
|
1141
1048
|
readonly 'gray-400': any;
|
|
1142
|
-
readonly 'gray-450': any;
|
|
1143
1049
|
readonly 'gray-500': any;
|
|
1144
|
-
readonly 'gray-550': any;
|
|
1145
1050
|
readonly 'gray-600': any;
|
|
1146
|
-
readonly 'gray-650': any;
|
|
1147
1051
|
readonly 'gray-700': any;
|
|
1148
|
-
readonly 'gray-750': any;
|
|
1149
1052
|
readonly 'gray-800': any;
|
|
1150
|
-
readonly 'gray-850': any;
|
|
1151
1053
|
readonly 'gray-900': any;
|
|
1152
|
-
readonly 'gray-950': any;
|
|
1153
|
-
readonly 'green-50': any;
|
|
1154
1054
|
readonly 'green-100': any;
|
|
1155
|
-
readonly 'green-150': any;
|
|
1156
1055
|
readonly 'green-200': any;
|
|
1157
|
-
readonly 'green-250': any;
|
|
1158
1056
|
readonly 'green-300': any;
|
|
1159
|
-
readonly 'green-350': any;
|
|
1160
1057
|
readonly 'green-400': any;
|
|
1161
|
-
readonly 'green-450': any;
|
|
1162
1058
|
readonly 'green-500': any;
|
|
1163
|
-
readonly 'green-550': any;
|
|
1164
1059
|
readonly 'green-600': any;
|
|
1165
|
-
readonly 'green-650': any;
|
|
1166
1060
|
readonly 'green-700': any;
|
|
1167
|
-
readonly 'green-750': any;
|
|
1168
1061
|
readonly 'green-800': any;
|
|
1169
|
-
readonly 'green-850': any;
|
|
1170
1062
|
readonly 'green-900': any;
|
|
1171
|
-
readonly '
|
|
1172
|
-
readonly '
|
|
1063
|
+
readonly 'indigo-100': any;
|
|
1064
|
+
readonly 'indigo-200': any;
|
|
1065
|
+
readonly 'indigo-300': any;
|
|
1066
|
+
readonly 'indigo-400': any;
|
|
1067
|
+
readonly 'indigo-500': any;
|
|
1068
|
+
readonly 'indigo-600': any;
|
|
1069
|
+
readonly 'indigo-700': any;
|
|
1070
|
+
readonly 'indigo-800': any;
|
|
1071
|
+
readonly 'indigo-900': any;
|
|
1173
1072
|
readonly 'red-100': any;
|
|
1174
|
-
readonly 'red-150': any;
|
|
1175
1073
|
readonly 'red-200': any;
|
|
1176
|
-
readonly 'red-250': any;
|
|
1177
1074
|
readonly 'red-300': any;
|
|
1178
|
-
readonly 'red-350': any;
|
|
1179
1075
|
readonly 'red-400': any;
|
|
1180
|
-
readonly 'red-450': any;
|
|
1181
1076
|
readonly 'red-500': any;
|
|
1182
|
-
readonly 'red-550': any;
|
|
1183
1077
|
readonly 'red-600': any;
|
|
1184
|
-
readonly 'red-650': any;
|
|
1185
1078
|
readonly 'red-700': any;
|
|
1186
|
-
readonly 'red-750': any;
|
|
1187
1079
|
readonly 'red-800': any;
|
|
1188
|
-
readonly 'red-850': any;
|
|
1189
1080
|
readonly 'red-900': any;
|
|
1190
|
-
readonly 'red-950': any;
|
|
1191
1081
|
readonly transparent: any;
|
|
1192
1082
|
readonly white: any;
|
|
1193
|
-
readonly 'yellow-50': any;
|
|
1194
1083
|
readonly 'yellow-100': any;
|
|
1195
|
-
readonly 'yellow-150': any;
|
|
1196
1084
|
readonly 'yellow-200': any;
|
|
1197
|
-
readonly 'yellow-250': any;
|
|
1198
1085
|
readonly 'yellow-300': any;
|
|
1199
|
-
readonly 'yellow-350': any;
|
|
1200
1086
|
readonly 'yellow-400': any;
|
|
1201
|
-
readonly 'yellow-450': any;
|
|
1202
1087
|
readonly 'yellow-500': any;
|
|
1203
|
-
readonly 'yellow-550': any;
|
|
1204
1088
|
readonly 'yellow-600': any;
|
|
1205
|
-
readonly 'yellow-650': any;
|
|
1206
1089
|
readonly 'yellow-700': any;
|
|
1207
|
-
readonly 'yellow-750': any;
|
|
1208
1090
|
readonly 'yellow-800': any;
|
|
1209
|
-
readonly 'yellow-850': any;
|
|
1210
1091
|
readonly 'yellow-900': any;
|
|
1211
|
-
readonly 'yellow-950': any;
|
|
1212
1092
|
"background-alpha-active"?: any;
|
|
1213
1093
|
"background-alpha-hover"?: any;
|
|
1214
1094
|
"background-danger-prominent"?: any;
|
|
@@ -1229,19 +1109,27 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
1229
1109
|
"background-neutrals-inverted-subtle"?: any;
|
|
1230
1110
|
"background-neutrals-page"?: any;
|
|
1231
1111
|
"background-neutrals-page-subtle"?: any;
|
|
1232
|
-
"background-neutrals-
|
|
1233
|
-
"background-neutrals-
|
|
1234
|
-
"background-neutrals-
|
|
1112
|
+
"background-neutrals-scrolls"?: any;
|
|
1113
|
+
"background-neutrals-scrolls-expanded"?: any;
|
|
1114
|
+
"background-neutrals-scrolls-hover"?: any;
|
|
1115
|
+
"background-neutrals-scrolls-pressed"?: any;
|
|
1116
|
+
"background-neutrals-scrolls-pressed-hover"?: any;
|
|
1235
1117
|
"background-neutrals-subtle"?: any;
|
|
1236
1118
|
"background-neutrals-subtle-active"?: any;
|
|
1237
1119
|
"background-neutrals-subtle-hover"?: any;
|
|
1238
1120
|
"background-primary-prominent"?: any;
|
|
1239
1121
|
"background-primary-prominent-active"?: any;
|
|
1122
|
+
"background-primary-prominent-expanded"?: any;
|
|
1240
1123
|
"background-primary-prominent-hover"?: any;
|
|
1124
|
+
"background-primary-prominent-pressed"?: any;
|
|
1125
|
+
"background-primary-prominent-pressed-hover"?: any;
|
|
1241
1126
|
"background-primary-prominent-selected"?: any;
|
|
1242
1127
|
"background-primary-subtle"?: any;
|
|
1243
1128
|
"background-primary-subtle-active"?: any;
|
|
1129
|
+
"background-primary-subtle-expanded"?: any;
|
|
1244
1130
|
"background-primary-subtle-hover"?: any;
|
|
1131
|
+
"background-primary-subtle-pressed"?: any;
|
|
1132
|
+
"background-primary-subtle-pressed-hover"?: any;
|
|
1245
1133
|
"background-primary-subtle-selected"?: any;
|
|
1246
1134
|
"background-success"?: any;
|
|
1247
1135
|
"background-success-prominent"?: any;
|
|
@@ -1252,15 +1140,9 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
1252
1140
|
"border-danger"?: any;
|
|
1253
1141
|
"border-danger-active"?: any;
|
|
1254
1142
|
"border-danger-hover"?: any;
|
|
1255
|
-
"border-focus-error-inner"?: any;
|
|
1256
|
-
"border-focus-error-middle"?: any;
|
|
1257
|
-
"border-focus-error-outer"?: any;
|
|
1258
1143
|
"border-focus-inner"?: any;
|
|
1259
1144
|
"border-focus-middle"?: any;
|
|
1260
1145
|
"border-focus-outer"?: any;
|
|
1261
|
-
"border-focus-success-inner"?: any;
|
|
1262
|
-
"border-focus-success-middle"?: any;
|
|
1263
|
-
"border-focus-success-outer"?: any;
|
|
1264
1146
|
"border-neutrals"?: any;
|
|
1265
1147
|
"border-neutrals-active"?: any;
|
|
1266
1148
|
"border-neutrals-controls"?: any;
|
|
@@ -1353,23 +1235,21 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
1353
1235
|
readonly body: "Open Sans, sans-serif";
|
|
1354
1236
|
};
|
|
1355
1237
|
radii: {
|
|
1238
|
+
readonly none: 0;
|
|
1239
|
+
readonly half: "999em";
|
|
1356
1240
|
readonly 25: "2px";
|
|
1357
1241
|
readonly 50: "4px";
|
|
1358
1242
|
readonly 75: "6px";
|
|
1359
1243
|
readonly 100: "8px";
|
|
1360
1244
|
readonly 200: "16px";
|
|
1361
|
-
readonly half: "999px";
|
|
1362
|
-
readonly none: "0px";
|
|
1363
1245
|
};
|
|
1364
1246
|
shadows: {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
"focus-
|
|
1368
|
-
"focus-
|
|
1369
|
-
"focus-
|
|
1370
|
-
|
|
1371
|
-
"focus-controls-error": any;
|
|
1372
|
-
"focus-controls-success": any;
|
|
1247
|
+
readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
|
|
1248
|
+
readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
|
|
1249
|
+
readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
|
|
1250
|
+
readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
|
|
1251
|
+
readonly 'focus-controls-error': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-danger, 0 0 0 5px $colors$background-danger-subtle-hover";
|
|
1252
|
+
readonly 'focus-controls-success': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$background-success-prominent, 0 0 0 5px $colors$background-success";
|
|
1373
1253
|
};
|
|
1374
1254
|
sizes: {
|
|
1375
1255
|
readonly number: string;
|
|
@@ -1647,103 +1527,63 @@ declare const StyledLink: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
1647
1527
|
};
|
|
1648
1528
|
colors: {
|
|
1649
1529
|
readonly black: any;
|
|
1650
|
-
readonly 'blue-50': any;
|
|
1651
1530
|
readonly 'blue-100': any;
|
|
1652
|
-
readonly 'blue-150': any;
|
|
1653
1531
|
readonly 'blue-200': any;
|
|
1654
|
-
readonly 'blue-250': any;
|
|
1655
1532
|
readonly 'blue-300': any;
|
|
1656
|
-
readonly 'blue-350': any;
|
|
1657
1533
|
readonly 'blue-400': any;
|
|
1658
|
-
readonly 'blue-450': any;
|
|
1659
1534
|
readonly 'blue-500': any;
|
|
1660
|
-
readonly 'blue-550': any;
|
|
1661
1535
|
readonly 'blue-600': any;
|
|
1662
|
-
readonly 'blue-650': any;
|
|
1663
1536
|
readonly 'blue-700': any;
|
|
1664
|
-
readonly 'blue-750': any;
|
|
1665
1537
|
readonly 'blue-800': any;
|
|
1666
|
-
readonly 'blue-850': any;
|
|
1667
1538
|
readonly 'blue-900': any;
|
|
1668
|
-
readonly 'blue-
|
|
1669
|
-
readonly 'gray-50': any;
|
|
1539
|
+
readonly 'blue-1000': any;
|
|
1670
1540
|
readonly 'gray-100': any;
|
|
1671
|
-
readonly 'gray-150': any;
|
|
1672
1541
|
readonly 'gray-200': any;
|
|
1673
|
-
readonly 'gray-250': any;
|
|
1674
1542
|
readonly 'gray-300': any;
|
|
1675
|
-
readonly 'gray-350': any;
|
|
1676
1543
|
readonly 'gray-400': any;
|
|
1677
|
-
readonly 'gray-450': any;
|
|
1678
1544
|
readonly 'gray-500': any;
|
|
1679
|
-
readonly 'gray-550': any;
|
|
1680
1545
|
readonly 'gray-600': any;
|
|
1681
|
-
readonly 'gray-650': any;
|
|
1682
1546
|
readonly 'gray-700': any;
|
|
1683
|
-
readonly 'gray-750': any;
|
|
1684
1547
|
readonly 'gray-800': any;
|
|
1685
|
-
readonly 'gray-850': any;
|
|
1686
1548
|
readonly 'gray-900': any;
|
|
1687
|
-
readonly 'gray-950': any;
|
|
1688
|
-
readonly 'green-50': any;
|
|
1689
1549
|
readonly 'green-100': any;
|
|
1690
|
-
readonly 'green-150': any;
|
|
1691
1550
|
readonly 'green-200': any;
|
|
1692
|
-
readonly 'green-250': any;
|
|
1693
1551
|
readonly 'green-300': any;
|
|
1694
|
-
readonly 'green-350': any;
|
|
1695
1552
|
readonly 'green-400': any;
|
|
1696
|
-
readonly 'green-450': any;
|
|
1697
1553
|
readonly 'green-500': any;
|
|
1698
|
-
readonly 'green-550': any;
|
|
1699
1554
|
readonly 'green-600': any;
|
|
1700
|
-
readonly 'green-650': any;
|
|
1701
1555
|
readonly 'green-700': any;
|
|
1702
|
-
readonly 'green-750': any;
|
|
1703
1556
|
readonly 'green-800': any;
|
|
1704
|
-
readonly 'green-850': any;
|
|
1705
1557
|
readonly 'green-900': any;
|
|
1706
|
-
readonly '
|
|
1707
|
-
readonly '
|
|
1558
|
+
readonly 'indigo-100': any;
|
|
1559
|
+
readonly 'indigo-200': any;
|
|
1560
|
+
readonly 'indigo-300': any;
|
|
1561
|
+
readonly 'indigo-400': any;
|
|
1562
|
+
readonly 'indigo-500': any;
|
|
1563
|
+
readonly 'indigo-600': any;
|
|
1564
|
+
readonly 'indigo-700': any;
|
|
1565
|
+
readonly 'indigo-800': any;
|
|
1566
|
+
readonly 'indigo-900': any;
|
|
1708
1567
|
readonly 'red-100': any;
|
|
1709
|
-
readonly 'red-150': any;
|
|
1710
1568
|
readonly 'red-200': any;
|
|
1711
|
-
readonly 'red-250': any;
|
|
1712
1569
|
readonly 'red-300': any;
|
|
1713
|
-
readonly 'red-350': any;
|
|
1714
1570
|
readonly 'red-400': any;
|
|
1715
|
-
readonly 'red-450': any;
|
|
1716
1571
|
readonly 'red-500': any;
|
|
1717
|
-
readonly 'red-550': any;
|
|
1718
1572
|
readonly 'red-600': any;
|
|
1719
|
-
readonly 'red-650': any;
|
|
1720
1573
|
readonly 'red-700': any;
|
|
1721
|
-
readonly 'red-750': any;
|
|
1722
1574
|
readonly 'red-800': any;
|
|
1723
|
-
readonly 'red-850': any;
|
|
1724
1575
|
readonly 'red-900': any;
|
|
1725
|
-
readonly 'red-950': any;
|
|
1726
1576
|
readonly transparent: any;
|
|
1727
1577
|
readonly white: any;
|
|
1728
|
-
readonly 'yellow-50': any;
|
|
1729
1578
|
readonly 'yellow-100': any;
|
|
1730
|
-
readonly 'yellow-150': any;
|
|
1731
1579
|
readonly 'yellow-200': any;
|
|
1732
|
-
readonly 'yellow-250': any;
|
|
1733
1580
|
readonly 'yellow-300': any;
|
|
1734
|
-
readonly 'yellow-350': any;
|
|
1735
1581
|
readonly 'yellow-400': any;
|
|
1736
|
-
readonly 'yellow-450': any;
|
|
1737
1582
|
readonly 'yellow-500': any;
|
|
1738
|
-
readonly 'yellow-550': any;
|
|
1739
1583
|
readonly 'yellow-600': any;
|
|
1740
|
-
readonly 'yellow-650': any;
|
|
1741
1584
|
readonly 'yellow-700': any;
|
|
1742
|
-
readonly 'yellow-750': any;
|
|
1743
1585
|
readonly 'yellow-800': any;
|
|
1744
|
-
readonly 'yellow-850': any;
|
|
1745
1586
|
readonly 'yellow-900': any;
|
|
1746
|
-
readonly 'yellow-950': any;
|
|
1747
1587
|
"background-alpha-active"?: any;
|
|
1748
1588
|
"background-alpha-hover"?: any;
|
|
1749
1589
|
"background-danger-prominent"?: any;
|
|
@@ -1764,19 +1604,27 @@ declare const StyledLink: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
1764
1604
|
"background-neutrals-inverted-subtle"?: any;
|
|
1765
1605
|
"background-neutrals-page"?: any;
|
|
1766
1606
|
"background-neutrals-page-subtle"?: any;
|
|
1767
|
-
"background-neutrals-
|
|
1768
|
-
"background-neutrals-
|
|
1769
|
-
"background-neutrals-
|
|
1607
|
+
"background-neutrals-scrolls"?: any;
|
|
1608
|
+
"background-neutrals-scrolls-expanded"?: any;
|
|
1609
|
+
"background-neutrals-scrolls-hover"?: any;
|
|
1610
|
+
"background-neutrals-scrolls-pressed"?: any;
|
|
1611
|
+
"background-neutrals-scrolls-pressed-hover"?: any;
|
|
1770
1612
|
"background-neutrals-subtle"?: any;
|
|
1771
1613
|
"background-neutrals-subtle-active"?: any;
|
|
1772
1614
|
"background-neutrals-subtle-hover"?: any;
|
|
1773
1615
|
"background-primary-prominent"?: any;
|
|
1774
1616
|
"background-primary-prominent-active"?: any;
|
|
1617
|
+
"background-primary-prominent-expanded"?: any;
|
|
1775
1618
|
"background-primary-prominent-hover"?: any;
|
|
1619
|
+
"background-primary-prominent-pressed"?: any;
|
|
1620
|
+
"background-primary-prominent-pressed-hover"?: any;
|
|
1776
1621
|
"background-primary-prominent-selected"?: any;
|
|
1777
1622
|
"background-primary-subtle"?: any;
|
|
1778
1623
|
"background-primary-subtle-active"?: any;
|
|
1624
|
+
"background-primary-subtle-expanded"?: any;
|
|
1779
1625
|
"background-primary-subtle-hover"?: any;
|
|
1626
|
+
"background-primary-subtle-pressed"?: any;
|
|
1627
|
+
"background-primary-subtle-pressed-hover"?: any;
|
|
1780
1628
|
"background-primary-subtle-selected"?: any;
|
|
1781
1629
|
"background-success"?: any;
|
|
1782
1630
|
"background-success-prominent"?: any;
|
|
@@ -1787,15 +1635,9 @@ declare const StyledLink: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
1787
1635
|
"border-danger"?: any;
|
|
1788
1636
|
"border-danger-active"?: any;
|
|
1789
1637
|
"border-danger-hover"?: any;
|
|
1790
|
-
"border-focus-error-inner"?: any;
|
|
1791
|
-
"border-focus-error-middle"?: any;
|
|
1792
|
-
"border-focus-error-outer"?: any;
|
|
1793
1638
|
"border-focus-inner"?: any;
|
|
1794
1639
|
"border-focus-middle"?: any;
|
|
1795
1640
|
"border-focus-outer"?: any;
|
|
1796
|
-
"border-focus-success-inner"?: any;
|
|
1797
|
-
"border-focus-success-middle"?: any;
|
|
1798
|
-
"border-focus-success-outer"?: any;
|
|
1799
1641
|
"border-neutrals"?: any;
|
|
1800
1642
|
"border-neutrals-active"?: any;
|
|
1801
1643
|
"border-neutrals-controls"?: any;
|
|
@@ -1888,23 +1730,21 @@ declare const StyledLink: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
1888
1730
|
readonly body: "Open Sans, sans-serif";
|
|
1889
1731
|
};
|
|
1890
1732
|
radii: {
|
|
1733
|
+
readonly none: 0;
|
|
1734
|
+
readonly half: "999em";
|
|
1891
1735
|
readonly 25: "2px";
|
|
1892
1736
|
readonly 50: "4px";
|
|
1893
1737
|
readonly 75: "6px";
|
|
1894
1738
|
readonly 100: "8px";
|
|
1895
1739
|
readonly 200: "16px";
|
|
1896
|
-
readonly half: "999px";
|
|
1897
|
-
readonly none: "0px";
|
|
1898
1740
|
};
|
|
1899
1741
|
shadows: {
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
"focus-
|
|
1903
|
-
"focus-
|
|
1904
|
-
"focus-
|
|
1905
|
-
|
|
1906
|
-
"focus-controls-error": any;
|
|
1907
|
-
"focus-controls-success": any;
|
|
1742
|
+
readonly 'focus-small': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-inner";
|
|
1743
|
+
readonly 'focus-small-outline': "0 0 0 2px $colors$border-focus-outer, inset 0 0 0 1px $colors$border-focus-middle, inset 0 0 0 2px $colors$border-focus-inner";
|
|
1744
|
+
readonly 'focus-large': "0 0 0 4px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
|
|
1745
|
+
readonly 'focus-controls': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-focus-middle, 0 0 0 5px $colors$border-focus-outer";
|
|
1746
|
+
readonly 'focus-controls-error': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$border-danger, 0 0 0 5px $colors$background-danger-subtle-hover";
|
|
1747
|
+
readonly 'focus-controls-success': "0 0 0 1px $colors$border-focus-inner, 0 0 0 3px $colors$background-success-prominent, 0 0 0 5px $colors$background-success";
|
|
1908
1748
|
};
|
|
1909
1749
|
sizes: {
|
|
1910
1750
|
readonly number: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-toolbar",
|
|
3
|
-
"version": "2.5.2-
|
|
3
|
+
"version": "2.5.2-combobox.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@react-aria/interactions": "^3.13.0",
|
|
32
32
|
"@react-aria/utils": "^3.13.0",
|
|
33
33
|
"@react-types/shared": "^3.16.0",
|
|
34
|
-
"@mirohq/design-system-stitches": "^2.6.
|
|
35
|
-
"@mirohq/design-system-styles": "^1.1.20-
|
|
34
|
+
"@mirohq/design-system-stitches": "^2.6.0",
|
|
35
|
+
"@mirohq/design-system-styles": "^1.1.20-combobox.0",
|
|
36
36
|
"@mirohq/design-system-use-press": "^0.3.1",
|
|
37
37
|
"@mirohq/design-system-utils": "^0.15.0"
|
|
38
38
|
},
|