@mirohq/design-system-stitches 2.1.2-test-changelog.0 → 2.2.0-checkbox.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 CHANGED
@@ -171,6 +171,10 @@ const utils = {
171
171
  marginY: (value) => ({
172
172
  marginTop: value,
173
173
  marginBottom: value
174
+ }),
175
+ square: (value) => ({
176
+ width: value,
177
+ height: value
174
178
  })
175
179
  };
176
180
 
@@ -259,8 +263,13 @@ const styled = (element, composers) => {
259
263
  return Component;
260
264
  };
261
265
 
266
+ const stitchesCssRoot = {
267
+ prefix,
268
+ selector: theme.selector,
269
+ className: theme.className
270
+ };
271
+
262
272
  exports.AS_ERROR = AS_ERROR;
263
- exports.CLASS_PREFIX = prefix;
264
273
  exports.STYLING_ATTRS_ERROR = STYLING_ATTRS_ERROR;
265
274
  exports.createTheme = createTheme;
266
275
  exports.css = css;
@@ -270,6 +279,7 @@ exports.globalCss = globalCss;
270
279
  exports.keyframes = keyframes;
271
280
  exports.setCssUtils = setCssUtils;
272
281
  exports.setMedia = setMedia;
282
+ exports.stitchesCssRoot = stitchesCssRoot;
273
283
  exports.styled = styled;
274
284
  exports.theme = theme$1;
275
285
  exports.themeMap = themeMap;
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../src/config/theme-map.ts","../src/config/theme.ts","../src/config/utils.ts","../src/config/media.ts","../src/stitches.ts","../src/custom.ts","../src/styled.tsx"],"sourcesContent":["export const themeMap = {\n background: 'colors',\n backgroundColor: 'colors',\n backgroundImage: 'colors',\n blockSize: 'sizes',\n border: 'colors',\n borderBlock: 'colors',\n borderBlockEnd: 'colors',\n borderBlockStart: 'colors',\n borderBottom: 'colors',\n borderBottomColor: 'colors',\n borderBottomLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomStyle: 'border-styles',\n borderBottomWidth: 'border-widths',\n borderColor: 'colors',\n borderImage: 'colors',\n borderInline: 'colors',\n borderInlineEnd: 'colors',\n borderInlineStart: 'colors',\n borderLeft: 'colors',\n borderLeftColor: 'colors',\n borderLeftStyle: 'border-styles',\n borderLeftWidth: 'border-widths',\n borderRadius: 'radii',\n borderRight: 'colors',\n borderRightColor: 'colors',\n borderRightStyle: 'border-styles',\n borderRightWidth: 'border-widths',\n borderStyle: 'border-styles',\n borderTop: 'colors',\n borderTopColor: 'colors',\n borderTopLeftRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopStyle: 'border-styles',\n borderTopWidth: 'border-widths',\n borderWidth: 'border-widths',\n bottom: 'space',\n boxShadow: 'shadows',\n caretColor: 'colors',\n color: 'colors',\n columnGap: 'space-gap',\n columnRuleColor: 'colors',\n fill: 'colors',\n flexBasis: 'sizes',\n fontFamily: 'fonts',\n fontSize: 'font-sizes',\n fontWeight: 'font-weights',\n gap: 'space-gap',\n gridColumnGap: 'space-gap',\n gridGap: 'space-gap',\n gridRowGap: 'space-gap',\n gridTemplateColumns: 'sizes',\n gridTemplateRows: 'sizes',\n height: 'sizes',\n inlineSize: 'sizes',\n inset: 'space-inset',\n insetBlock: 'space-inset',\n insetBlockEnd: 'space-inset',\n insetBlockStart: 'space-inset',\n insetInline: 'space-inset',\n insetInlineEnd: 'space-inset',\n insetInlineStart: 'space-inset',\n left: 'space',\n letterSpacing: 'letter-spacings',\n lineHeight: 'line-heights',\n margin: 'space-offset',\n marginBlock: 'space-offset',\n marginBlockEnd: 'space-offset',\n marginBlockStart: 'space-offset',\n marginBottom: 'space-offset',\n marginInline: 'space-offset',\n marginInlineEnd: 'space-offset',\n marginInlineStart: 'space-offset',\n marginLeft: 'space-offset',\n marginRight: 'space-offset',\n marginTop: 'space-offset',\n maxBlockSize: 'sizes',\n maxHeight: 'sizes',\n maxInlineSize: 'sizes',\n maxWidth: 'sizes',\n minBlockSize: 'sizes',\n minHeight: 'sizes',\n minInlineSize: 'sizes',\n minWidth: 'sizes',\n outline: 'colors',\n outlineColor: 'colors',\n padding: 'space-inset',\n paddingBlock: 'space-inset',\n paddingBlockEnd: 'space-inset',\n paddingBlockStart: 'space-inset',\n paddingBottom: 'space-inset',\n paddingInline: 'space-inset',\n paddingInlineEnd: 'space-inset',\n paddingInlineStart: 'space-inset',\n paddingLeft: 'space-inset',\n paddingRight: 'space-inset',\n paddingTop: 'space-inset',\n right: 'space',\n rowGap: 'space-gap',\n scrollMargin: 'space-offset',\n scrollMarginBlock: 'space-offset',\n scrollMarginBlockEnd: 'space-offset',\n scrollMarginBlockStart: 'space-offset',\n scrollMarginBottom: 'space-offset',\n scrollMarginInline: 'space-offset',\n scrollMarginInlineEnd: 'space-offset',\n scrollMarginInlineStart: 'space-offset',\n scrollMarginLeft: 'space-offset',\n scrollMarginRight: 'space-offset',\n scrollMarginTop: 'space-offset',\n scrollPadding: 'space-inset',\n scrollPaddingBlock: 'space-inset',\n scrollPaddingBlockEnd: 'space-inset',\n scrollPaddingBlockStart: 'space-inset',\n scrollPaddingBottom: 'space-inset',\n scrollPaddingInline: 'space-inset',\n scrollPaddingInlineEnd: 'space-inset',\n scrollPaddingInlineStart: 'space-inset',\n scrollPaddingLeft: 'space-inset',\n scrollPaddingRight: 'space-inset',\n scrollPaddingTop: 'space-inset',\n stroke: 'colors',\n textDecorationColor: 'colors',\n textShadow: 'shadows',\n top: 'space',\n transition: 'transitions',\n width: 'sizes',\n zIndex: 'z-indices',\n} as const\n\nexport type ThemeMap = typeof themeMap\n","import { Tokens } from '@mirohq/design-tokens'\n\nexport interface Theme {\n 'border-widths': typeof Tokens.borderWidths\n colors: typeof Tokens.colors\n 'font-sizes': typeof Tokens.fontSizes\n radii: typeof Tokens.radii\n shadows: typeof Tokens.shadows\n sizes: typeof Tokens.sizes\n space: typeof Tokens.space\n 'space-gap': typeof Tokens.spaceGap\n 'space-inset': typeof Tokens.spaceInset\n 'space-offset': typeof Tokens.spaceOffset\n 'z-indices': typeof Tokens.zIndices\n}\n\nexport const theme: Theme = {\n 'border-widths': Tokens.borderWidths,\n colors: Tokens.colors,\n 'font-sizes': Tokens.fontSizes,\n radii: Tokens.radii,\n shadows: Tokens.shadows,\n sizes: Tokens.sizes,\n space: Tokens.space,\n 'space-gap': Tokens.spaceGap,\n 'space-inset': Tokens.spaceInset,\n 'space-offset': Tokens.spaceOffset,\n 'z-indices': Tokens.zIndices,\n}\n","import type { PropertyValue } from '@stitches/react'\n\nexport const utils = {\n paddingX: (value: PropertyValue<'padding'>) => ({\n paddingLeft: value,\n paddingRight: value,\n }),\n paddingY: (value: PropertyValue<'padding'>) => ({\n paddingTop: value,\n paddingBottom: value,\n }),\n marginX: (value: PropertyValue<'margin'>) => ({\n marginLeft: value,\n marginRight: value,\n }),\n marginY: (value: PropertyValue<'margin'>) => ({\n marginTop: value,\n marginBottom: value,\n }),\n}\n","/**\n * Commenting out due to performance problems\n * Please check the thread for more info:\n * https://miro.slack.com/archives/C03SJ1S209M/p1669821558087279\n */\n\nexport const media = {\n // reducedMotion: '(prefers-reduced-motion: reduce)',\n // motion: '(prefers-reduced-motion: no-preference)',\n // hover: '(any-hover: hover)',\n}\n","import { createStitches } from '@stitches/react'\nimport type * as CSSUtil from '@stitches/react/types/css-util'\n\nimport { utils, theme as defaultTheme, themeMap, media } from './config'\n\nconst stitches = createStitches({\n theme: defaultTheme,\n media,\n utils,\n themeMap,\n})\n\nexport const {\n config,\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n prefix,\n styled,\n theme,\n} = stitches\n\nexport type FontFace = CSSUtil.Native.AtRule.FontFace\n\nexport const fontFace = (...fonts: FontFace[]): string =>\n globalCss({\n '@font-face': fonts,\n })()\n","import type { ConfigType } from '@stitches/react/types/config'\n\nimport { config } from './stitches'\n\nexport function setMedia<Media extends {} = {}>(\n media: ConfigType.Media<Media>\n): void {\n config.media = {\n ...config.media,\n ...media,\n }\n}\n\nexport function setCssUtils<Utils extends {} = {}>(\n utils: ConfigType.Utils<Utils>\n): void {\n config.utils = {\n ...config.utils,\n ...utils,\n }\n}\n","import React from 'react'\nimport type {\n CSSProperties,\n ComponentType,\n ElementRef,\n ExoticComponent,\n ForwardRefExoticComponent,\n JSXElementConstructor,\n PropsWithoutRef,\n RefAttributes,\n} from 'react'\nimport type { RemoveIndex } from '@stitches/react/types/stitches'\nimport type { Token } from '@stitches/react/types/theme'\nimport type {\n StyledComponentProps as StitchesStyledComponentProps,\n $$StyledComponentMedia,\n $$StyledComponentProps,\n $$StyledComponentType,\n TransformProps,\n} from '@stitches/react/types/styled-component'\nimport type * as Util from '@stitches/react/types/util'\n\nimport * as stitches from './stitches'\nimport type { CSS, StyledComponentProps, ForbiddenProps } from './types'\n\n// Error messages\n// -----------------------------------------------------------------------------\n\nexport const AS_ERROR =\n 'Polymorphism via `as` prop is not available in styled components.'\n\nexport const STYLING_ATTRS_ERROR =\n 'The `className` and `style` attributes are not avaialable in styled components.'\n\n// Utils\n// -----------------------------------------------------------------------------\n\nconst styleWithCssVars = (\n style: CSS,\n themeMap: typeof stitches.config.themeMap\n): CSSProperties =>\n (Object.entries(style) as Array<[string, unknown]>).reduce(\n (acc, [prop, value]) => {\n // @ts-expect-error\n const mapKeyForProp = themeMap[prop]\n const mapping = stitches.theme[mapKeyForProp] as unknown as {\n [Prop: string]: { [K in keyof Token]: Token[K] }\n }\n\n const parsedValue =\n typeof value === 'string' && /^\\$.+$/.test(value)\n ? mapping[value.replace('$', '')]?.computedValue\n : value\n\n return {\n ...acc,\n [prop]: parsedValue,\n }\n },\n {}\n ) as CSSProperties\n\n// Styled\n// -----------------------------------------------------------------------------\n\ntype Variants<T> = 'variants' extends keyof T\n ? {\n [Name in keyof T['variants']]?:\n | Util.Widen<keyof T['variants'][Name]>\n | Util.String\n }\n : Util.WideObject\n\ntype Styles<Composers> = Composers extends\n | string\n | ComponentType<any>\n | Util.Function\n ? Composers\n : RemoveIndex<CSS> & {\n variants?: {\n [Name in string]: {\n [Pair in number | string]: CSS\n }\n }\n compoundVariants?: Array<Variants<Composers> & { css: CSS }>\n defaultVariants?: Variants<Composers>\n } & CSS & {\n [K in keyof Composers]: K extends\n | 'compoundVariants'\n | 'defaultVariants'\n | 'variants'\n ? unknown\n : K extends keyof CSS\n ? CSS[K]\n : unknown\n }\n\n// This interface is only needed to fix TS4023\nexport interface StitchesInternals<\n Type extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function,\n Props extends {},\n Media extends typeof stitches.config.media\n> {\n className: string\n selector: string\n [$$StyledComponentType]: Type\n [$$StyledComponentProps]: Props\n [$$StyledComponentMedia]: Media\n}\n\nexport interface CustomStylesProps {\n css?: CSS\n UNSAFE_style?: CSS\n}\n\n// TS is infering the return type correctly, no need to make things uglier here\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const styled = <\n Element extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function = 'span',\n Composers extends\n | string\n | ExoticComponent<any>\n | JSXElementConstructor<any>\n | Util.Function\n | { [name: string]: unknown } = {}\n>(\n element: Element,\n composers?: Styles<Composers>\n) => {\n const StyledComponent = stitches.styled(element, composers ?? {})\n\n type StitchesProps = StitchesStyledComponentProps<[Composers]>\n type VariantProps = TransformProps<\n StitchesProps,\n typeof stitches.config.media\n >\n type ComponentProps = StyledComponentProps<typeof StyledComponent>\n\n type Props = Omit<StitchesProps, keyof VariantProps> &\n VariantProps &\n ComponentProps &\n CustomStylesProps\n\n const Component = React.forwardRef<ElementRef<typeof StyledComponent>, Props>(\n (props, forwardRef) => {\n const {\n as,\n className,\n style,\n UNSAFE_style, // eslint-disable-line @typescript-eslint/naming-convention\n ...restProps\n } = props as Props & {\n [K in ForbiddenProps]?: unknown\n }\n\n // based on https://github.com/modulz/stitches/blob/v1.2.8/packages/core/src/features/css.js#L71\n const onlyStyledClasses =\n typeof className === 'string'\n ? className\n ?.split(' ')\n .filter((x: string) => x.match(`${stitches.prefix}c-.+`))\n .join(' ')\n : ''\n\n const parsedStyle =\n UNSAFE_style !== undefined\n ? styleWithCssVars(UNSAFE_style, stitches.config.themeMap)\n : onlyStyledClasses !== ''\n ? style\n : undefined\n\n if (\n (className !== undefined && onlyStyledClasses !== className) ||\n (typeof style === 'object' &&\n style !== null &&\n Object.keys(style).length > 0 &&\n onlyStyledClasses === '')\n ) {\n console.error(STYLING_ATTRS_ERROR)\n }\n\n if (as !== undefined) {\n console.error(AS_ERROR)\n }\n\n return (\n <StyledComponent\n {...(restProps as any)}\n className={onlyStyledClasses}\n style={parsedStyle}\n ref={forwardRef}\n />\n )\n }\n ) as ForwardRefExoticComponent<\n PropsWithoutRef<Props> & RefAttributes<ElementRef<typeof StyledComponent>>\n > &\n StitchesInternals<\n Element,\n StitchesStyledComponentProps<[Composers]>,\n typeof stitches.config.media\n >\n\n Component.displayName = 'Styled.ForwardRef'\n Component.toString = StyledComponent.toString\n Component.className = StyledComponent.className\n Component.selector = StyledComponent.selector\n\n return Component\n}\n"],"names":["theme","Tokens","createStitches","defaultTheme","styled","stitches.theme","stitches.styled","React","stitches.prefix","stitches.config"],"mappings":";;;;;;;;;;;;AAAO,MAAM,QAAW,GAAA;AAAA,EACtB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QAAA;AAAA,EACjB,eAAiB,EAAA,QAAA;AAAA,EACjB,SAAW,EAAA,OAAA;AAAA,EACX,MAAQ,EAAA,QAAA;AAAA,EACR,WAAa,EAAA,QAAA;AAAA,EACb,cAAgB,EAAA,QAAA;AAAA,EAChB,gBAAkB,EAAA,QAAA;AAAA,EAClB,YAAc,EAAA,QAAA;AAAA,EACd,iBAAmB,EAAA,QAAA;AAAA,EACnB,sBAAwB,EAAA,OAAA;AAAA,EACxB,uBAAyB,EAAA,OAAA;AAAA,EACzB,iBAAmB,EAAA,eAAA;AAAA,EACnB,iBAAmB,EAAA,eAAA;AAAA,EACnB,WAAa,EAAA,QAAA;AAAA,EACb,WAAa,EAAA,QAAA;AAAA,EACb,YAAc,EAAA,QAAA;AAAA,EACd,eAAiB,EAAA,QAAA;AAAA,EACjB,iB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,SAAA,CAAU,WAAW,eAAgB,CAAA,QAAA,CAAA;AAErC,EAAO,OAAA,SAAA,CAAA;AACT;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"main.js","sources":["../src/config/theme-map.ts","../src/config/theme.ts","../src/config/utils.ts","../src/config/media.ts","../src/stitches.ts","../src/custom.ts","../src/styled.tsx","../src/index.ts"],"sourcesContent":["export const themeMap = {\n background: 'colors',\n backgroundColor: 'colors',\n backgroundImage: 'colors',\n blockSize: 'sizes',\n border: 'colors',\n borderBlock: 'colors',\n borderBlockEnd: 'colors',\n borderBlockStart: 'colors',\n borderBottom: 'colors',\n borderBottomColor: 'colors',\n borderBottomLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomStyle: 'border-styles',\n borderBottomWidth: 'border-widths',\n borderColor: 'colors',\n borderImage: 'colors',\n borderInline: 'colors',\n borderInlineEnd: 'colors',\n borderInlineStart: 'colors',\n borderLeft: 'colors',\n borderLeftColor: 'colors',\n borderLeftStyle: 'border-styles',\n borderLeftWidth: 'border-widths',\n borderRadius: 'radii',\n borderRight: 'colors',\n borderRightColor: 'colors',\n borderRightStyle: 'border-styles',\n borderRightWidth: 'border-widths',\n borderStyle: 'border-styles',\n borderTop: 'colors',\n borderTopColor: 'colors',\n borderTopLeftRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopStyle: 'border-styles',\n borderTopWidth: 'border-widths',\n borderWidth: 'border-widths',\n bottom: 'space',\n boxShadow: 'shadows',\n caretColor: 'colors',\n color: 'colors',\n columnGap: 'space-gap',\n columnRuleColor: 'colors',\n fill: 'colors',\n flexBasis: 'sizes',\n fontFamily: 'fonts',\n fontSize: 'font-sizes',\n fontWeight: 'font-weights',\n gap: 'space-gap',\n gridColumnGap: 'space-gap',\n gridGap: 'space-gap',\n gridRowGap: 'space-gap',\n gridTemplateColumns: 'sizes',\n gridTemplateRows: 'sizes',\n height: 'sizes',\n inlineSize: 'sizes',\n inset: 'space-inset',\n insetBlock: 'space-inset',\n insetBlockEnd: 'space-inset',\n insetBlockStart: 'space-inset',\n insetInline: 'space-inset',\n insetInlineEnd: 'space-inset',\n insetInlineStart: 'space-inset',\n left: 'space',\n letterSpacing: 'letter-spacings',\n lineHeight: 'line-heights',\n margin: 'space-offset',\n marginBlock: 'space-offset',\n marginBlockEnd: 'space-offset',\n marginBlockStart: 'space-offset',\n marginBottom: 'space-offset',\n marginInline: 'space-offset',\n marginInlineEnd: 'space-offset',\n marginInlineStart: 'space-offset',\n marginLeft: 'space-offset',\n marginRight: 'space-offset',\n marginTop: 'space-offset',\n maxBlockSize: 'sizes',\n maxHeight: 'sizes',\n maxInlineSize: 'sizes',\n maxWidth: 'sizes',\n minBlockSize: 'sizes',\n minHeight: 'sizes',\n minInlineSize: 'sizes',\n minWidth: 'sizes',\n outline: 'colors',\n outlineColor: 'colors',\n padding: 'space-inset',\n paddingBlock: 'space-inset',\n paddingBlockEnd: 'space-inset',\n paddingBlockStart: 'space-inset',\n paddingBottom: 'space-inset',\n paddingInline: 'space-inset',\n paddingInlineEnd: 'space-inset',\n paddingInlineStart: 'space-inset',\n paddingLeft: 'space-inset',\n paddingRight: 'space-inset',\n paddingTop: 'space-inset',\n right: 'space',\n rowGap: 'space-gap',\n scrollMargin: 'space-offset',\n scrollMarginBlock: 'space-offset',\n scrollMarginBlockEnd: 'space-offset',\n scrollMarginBlockStart: 'space-offset',\n scrollMarginBottom: 'space-offset',\n scrollMarginInline: 'space-offset',\n scrollMarginInlineEnd: 'space-offset',\n scrollMarginInlineStart: 'space-offset',\n scrollMarginLeft: 'space-offset',\n scrollMarginRight: 'space-offset',\n scrollMarginTop: 'space-offset',\n scrollPadding: 'space-inset',\n scrollPaddingBlock: 'space-inset',\n scrollPaddingBlockEnd: 'space-inset',\n scrollPaddingBlockStart: 'space-inset',\n scrollPaddingBottom: 'space-inset',\n scrollPaddingInline: 'space-inset',\n scrollPaddingInlineEnd: 'space-inset',\n scrollPaddingInlineStart: 'space-inset',\n scrollPaddingLeft: 'space-inset',\n scrollPaddingRight: 'space-inset',\n scrollPaddingTop: 'space-inset',\n stroke: 'colors',\n textDecorationColor: 'colors',\n textShadow: 'shadows',\n top: 'space',\n transition: 'transitions',\n width: 'sizes',\n zIndex: 'z-indices',\n} as const\n\nexport type ThemeMap = typeof themeMap\n","import { Tokens } from '@mirohq/design-tokens'\n\nexport interface Theme {\n 'border-widths': typeof Tokens.borderWidths\n colors: typeof Tokens.colors\n 'font-sizes': typeof Tokens.fontSizes\n radii: typeof Tokens.radii\n shadows: typeof Tokens.shadows\n sizes: typeof Tokens.sizes\n space: typeof Tokens.space\n 'space-gap': typeof Tokens.spaceGap\n 'space-inset': typeof Tokens.spaceInset\n 'space-offset': typeof Tokens.spaceOffset\n 'z-indices': typeof Tokens.zIndices\n}\n\nexport const theme: Theme = {\n 'border-widths': Tokens.borderWidths,\n colors: Tokens.colors,\n 'font-sizes': Tokens.fontSizes,\n radii: Tokens.radii,\n shadows: Tokens.shadows,\n sizes: Tokens.sizes,\n space: Tokens.space,\n 'space-gap': Tokens.spaceGap,\n 'space-inset': Tokens.spaceInset,\n 'space-offset': Tokens.spaceOffset,\n 'z-indices': Tokens.zIndices,\n}\n","import type { PropertyValue } from '@stitches/react'\n\nexport const utils = {\n paddingX: (value: PropertyValue<'padding'>) => ({\n paddingLeft: value,\n paddingRight: value,\n }),\n paddingY: (value: PropertyValue<'padding'>) => ({\n paddingTop: value,\n paddingBottom: value,\n }),\n marginX: (value: PropertyValue<'margin'>) => ({\n marginLeft: value,\n marginRight: value,\n }),\n marginY: (value: PropertyValue<'margin'>) => ({\n marginTop: value,\n marginBottom: value,\n }),\n square: (value: PropertyValue<'width'>) => ({\n width: value,\n height: value,\n }),\n}\n","/**\n * Commenting out due to performance problems\n * Please check the thread for more info:\n * https://miro.slack.com/archives/C03SJ1S209M/p1669821558087279\n */\n\nexport const media = {\n // reducedMotion: '(prefers-reduced-motion: reduce)',\n // motion: '(prefers-reduced-motion: no-preference)',\n // hover: '(any-hover: hover)',\n}\n","import { createStitches } from '@stitches/react'\nimport type * as CSSUtil from '@stitches/react/types/css-util'\n\nimport { utils, theme as defaultTheme, themeMap, media } from './config'\n\nconst stitches = createStitches({\n theme: defaultTheme,\n media,\n utils,\n themeMap,\n})\n\nexport const {\n config,\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n prefix,\n styled,\n theme,\n} = stitches\n\nexport type FontFace = CSSUtil.Native.AtRule.FontFace\n\nexport const fontFace = (...fonts: FontFace[]): string =>\n globalCss({\n '@font-face': fonts,\n })()\n","import type { ConfigType } from '@stitches/react/types/config'\n\nimport { config } from './stitches'\n\nexport function setMedia<Media extends {} = {}>(\n media: ConfigType.Media<Media>\n): void {\n config.media = {\n ...config.media,\n ...media,\n }\n}\n\nexport function setCssUtils<Utils extends {} = {}>(\n utils: ConfigType.Utils<Utils>\n): void {\n config.utils = {\n ...config.utils,\n ...utils,\n }\n}\n","import React from 'react'\nimport type {\n CSSProperties,\n ComponentType,\n ElementRef,\n ExoticComponent,\n ForwardRefExoticComponent,\n JSXElementConstructor,\n PropsWithoutRef,\n RefAttributes,\n} from 'react'\nimport type { RemoveIndex } from '@stitches/react/types/stitches'\nimport type { Token } from '@stitches/react/types/theme'\nimport type {\n StyledComponentProps as StitchesStyledComponentProps,\n $$StyledComponentMedia,\n $$StyledComponentProps,\n $$StyledComponentType,\n TransformProps,\n} from '@stitches/react/types/styled-component'\nimport type * as Util from '@stitches/react/types/util'\n\nimport * as stitches from './stitches'\nimport type { CSS, StyledComponentProps, ForbiddenProps } from './types'\n\n// Error messages\n// -----------------------------------------------------------------------------\n\nexport const AS_ERROR =\n 'Polymorphism via `as` prop is not available in styled components.'\n\nexport const STYLING_ATTRS_ERROR =\n 'The `className` and `style` attributes are not avaialable in styled components.'\n\n// Utils\n// -----------------------------------------------------------------------------\n\nconst styleWithCssVars = (\n style: CSS,\n themeMap: typeof stitches.config.themeMap\n): CSSProperties =>\n (Object.entries(style) as Array<[string, unknown]>).reduce(\n (acc, [prop, value]) => {\n // @ts-expect-error\n const mapKeyForProp = themeMap[prop]\n const mapping = stitches.theme[mapKeyForProp] as unknown as {\n [Prop: string]: { [K in keyof Token]: Token[K] }\n }\n\n const parsedValue =\n typeof value === 'string' && /^\\$.+$/.test(value)\n ? mapping[value.replace('$', '')]?.computedValue\n : value\n\n return {\n ...acc,\n [prop]: parsedValue,\n }\n },\n {}\n ) as CSSProperties\n\n// Styled\n// -----------------------------------------------------------------------------\n\ntype Variants<T> = 'variants' extends keyof T\n ? {\n [Name in keyof T['variants']]?:\n | Util.Widen<keyof T['variants'][Name]>\n | Util.String\n }\n : Util.WideObject\n\ntype Styles<Composers> = Composers extends\n | string\n | ComponentType<any>\n | Util.Function\n ? Composers\n : RemoveIndex<CSS> & {\n variants?: {\n [Name in string]: {\n [Pair in number | string]: CSS\n }\n }\n compoundVariants?: Array<Variants<Composers> & { css: CSS }>\n defaultVariants?: Variants<Composers>\n } & CSS & {\n [K in keyof Composers]: K extends\n | 'compoundVariants'\n | 'defaultVariants'\n | 'variants'\n ? unknown\n : K extends keyof CSS\n ? CSS[K]\n : unknown\n }\n\n// This interface is only needed to fix TS4023\nexport interface StitchesInternals<\n Type extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function,\n Props extends {},\n Media extends typeof stitches.config.media\n> {\n className: string\n selector: string\n [$$StyledComponentType]: Type\n [$$StyledComponentProps]: Props\n [$$StyledComponentMedia]: Media\n}\n\nexport interface CustomStylesProps {\n css?: CSS\n UNSAFE_style?: CSS\n}\n\n// TS is infering the return type correctly, no need to make things uglier here\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const styled = <\n Element extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function = 'span',\n Composers extends\n | string\n | ExoticComponent<any>\n | JSXElementConstructor<any>\n | Util.Function\n | { [name: string]: unknown } = {}\n>(\n element: Element,\n composers?: Styles<Composers>\n) => {\n const StyledComponent = stitches.styled(element, composers ?? {})\n\n type StitchesProps = StitchesStyledComponentProps<[Composers]>\n type VariantProps = TransformProps<\n StitchesProps,\n typeof stitches.config.media\n >\n type ComponentProps = StyledComponentProps<typeof StyledComponent>\n\n type Props = Omit<StitchesProps, keyof VariantProps> &\n VariantProps &\n ComponentProps &\n CustomStylesProps\n\n const Component = React.forwardRef<ElementRef<typeof StyledComponent>, Props>(\n (props, forwardRef) => {\n const {\n as,\n className,\n style,\n UNSAFE_style, // eslint-disable-line @typescript-eslint/naming-convention\n ...restProps\n } = props as Props & {\n [K in ForbiddenProps]?: unknown\n }\n\n // based on https://github.com/modulz/stitches/blob/v1.2.8/packages/core/src/features/css.js#L71\n const onlyStyledClasses =\n typeof className === 'string'\n ? className\n ?.split(' ')\n .filter((x: string) => x.match(`${stitches.prefix}c-.+`))\n .join(' ')\n : ''\n\n const parsedStyle =\n UNSAFE_style !== undefined\n ? styleWithCssVars(UNSAFE_style, stitches.config.themeMap)\n : onlyStyledClasses !== ''\n ? style\n : undefined\n\n if (\n (className !== undefined && onlyStyledClasses !== className) ||\n (typeof style === 'object' &&\n style !== null &&\n Object.keys(style).length > 0 &&\n onlyStyledClasses === '')\n ) {\n console.error(STYLING_ATTRS_ERROR)\n }\n\n if (as !== undefined) {\n console.error(AS_ERROR)\n }\n\n return (\n <StyledComponent\n {...(restProps as any)}\n className={onlyStyledClasses}\n style={parsedStyle}\n ref={forwardRef}\n />\n )\n }\n ) as ForwardRefExoticComponent<\n PropsWithoutRef<Props> & RefAttributes<ElementRef<typeof StyledComponent>>\n > &\n StitchesInternals<\n Element,\n StitchesStyledComponentProps<[Composers]>,\n typeof stitches.config.media\n >\n\n Component.displayName = 'Styled.ForwardRef'\n Component.toString = StyledComponent.toString\n Component.className = StyledComponent.className\n Component.selector = StyledComponent.selector\n\n return Component\n}\n","import { prefix, theme as stitchesTheme } from './stitches'\n\nexport * from './types'\n\nexport {\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n fontFace,\n} from './stitches'\n\nexport type { FontFace } from './stitches'\n\nexport const stitchesCssRoot = {\n prefix,\n selector: stitchesTheme.selector,\n className: stitchesTheme.className,\n}\n\nexport { theme, themeMap } from './config'\nexport type { Theme, ThemeMap } from './config'\n\nexport * from './custom'\nexport * from './styled'\n"],"names":["theme","Tokens","createStitches","defaultTheme","styled","stitches.theme","stitches.styled","React","stitches.prefix","stitches.config","stitchesTheme"],"mappings":";;;;;;;;;;;;AAAO,MAAM,QAAW,GAAA;AAAA,EACtB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QAAA;AAAA,EACjB,eAAiB,EAAA,QAAA;AAAA,EACjB,SAAW,EAAA,OAAA;AAAA,EACX,MAAQ,EAAA,QAAA;AAAA,EACR,WAAa,EAAA,QAAA;AAAA,EACb,cAAgB,EAAA,QAAA;AAAA,EAChB,gBAAkB,EAAA,QAAA;AAAA,EAClB,YAAc,EAAA,QAAA;AAAA,EACd,iBAAmB,EAAA,QAAA;AAAA,EACnB,sBAAwB,EAAA,OAAA;AAAA,EACxB,uBAAyB,EAAA,OAAA;AAAA,EACzB,iBAAmB,EAAA,eAAA;AAAA,EACnB,iBAAmB,EAAA,eAAA;AAAA,EACnB,WAAa,EAAA,QAAA;AAAA,EACb,WAAa,EAAA,QAAA;AAAA,EACb,YAAc,EAAA,QAAA;AAAA,EACd,eAAiB,EAAA,QAAA;AAAA,EACjB,iBAAmB,EAAA,QAAA;AAAA,EACnB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QAAA;AAAA,EACjB,eAAiB,EAAA,eAAA;AAAA,EACjB,eAAiB,EAAA,eAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,WAAa,EAAA,QAAA;AAAA,EACb,gBAAkB,EAAA,QAAA;AAAA,EAClB,gBAAkB,EAAA,eAAA;AAAA,EAClB,gBAAkB,EAAA,eAAA;AAAA,EAClB,WAAa,EAAA,eAAA;AAAA,EACb,SAAW,EAAA,QAAA;AAAA,EACX,cAA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@ -163,6 +163,10 @@ const utils = {
163
163
  marginY: (value) => ({
164
164
  marginTop: value,
165
165
  marginBottom: value
166
+ }),
167
+ square: (value) => ({
168
+ width: value,
169
+ height: value
166
170
  })
167
171
  };
168
172
 
@@ -251,5 +255,11 @@ const styled = (element, composers) => {
251
255
  return Component;
252
256
  };
253
257
 
254
- export { AS_ERROR, prefix as CLASS_PREFIX, STYLING_ATTRS_ERROR, createTheme, css, fontFace, getCssText, globalCss, keyframes, setCssUtils, setMedia, styled, theme$1 as theme, themeMap };
258
+ const stitchesCssRoot = {
259
+ prefix,
260
+ selector: theme.selector,
261
+ className: theme.className
262
+ };
263
+
264
+ export { AS_ERROR, STYLING_ATTRS_ERROR, createTheme, css, fontFace, getCssText, globalCss, keyframes, setCssUtils, setMedia, stitchesCssRoot, styled, theme$1 as theme, themeMap };
255
265
  //# sourceMappingURL=module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/config/theme-map.ts","../src/config/theme.ts","../src/config/utils.ts","../src/config/media.ts","../src/stitches.ts","../src/custom.ts","../src/styled.tsx"],"sourcesContent":["export const themeMap = {\n background: 'colors',\n backgroundColor: 'colors',\n backgroundImage: 'colors',\n blockSize: 'sizes',\n border: 'colors',\n borderBlock: 'colors',\n borderBlockEnd: 'colors',\n borderBlockStart: 'colors',\n borderBottom: 'colors',\n borderBottomColor: 'colors',\n borderBottomLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomStyle: 'border-styles',\n borderBottomWidth: 'border-widths',\n borderColor: 'colors',\n borderImage: 'colors',\n borderInline: 'colors',\n borderInlineEnd: 'colors',\n borderInlineStart: 'colors',\n borderLeft: 'colors',\n borderLeftColor: 'colors',\n borderLeftStyle: 'border-styles',\n borderLeftWidth: 'border-widths',\n borderRadius: 'radii',\n borderRight: 'colors',\n borderRightColor: 'colors',\n borderRightStyle: 'border-styles',\n borderRightWidth: 'border-widths',\n borderStyle: 'border-styles',\n borderTop: 'colors',\n borderTopColor: 'colors',\n borderTopLeftRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopStyle: 'border-styles',\n borderTopWidth: 'border-widths',\n borderWidth: 'border-widths',\n bottom: 'space',\n boxShadow: 'shadows',\n caretColor: 'colors',\n color: 'colors',\n columnGap: 'space-gap',\n columnRuleColor: 'colors',\n fill: 'colors',\n flexBasis: 'sizes',\n fontFamily: 'fonts',\n fontSize: 'font-sizes',\n fontWeight: 'font-weights',\n gap: 'space-gap',\n gridColumnGap: 'space-gap',\n gridGap: 'space-gap',\n gridRowGap: 'space-gap',\n gridTemplateColumns: 'sizes',\n gridTemplateRows: 'sizes',\n height: 'sizes',\n inlineSize: 'sizes',\n inset: 'space-inset',\n insetBlock: 'space-inset',\n insetBlockEnd: 'space-inset',\n insetBlockStart: 'space-inset',\n insetInline: 'space-inset',\n insetInlineEnd: 'space-inset',\n insetInlineStart: 'space-inset',\n left: 'space',\n letterSpacing: 'letter-spacings',\n lineHeight: 'line-heights',\n margin: 'space-offset',\n marginBlock: 'space-offset',\n marginBlockEnd: 'space-offset',\n marginBlockStart: 'space-offset',\n marginBottom: 'space-offset',\n marginInline: 'space-offset',\n marginInlineEnd: 'space-offset',\n marginInlineStart: 'space-offset',\n marginLeft: 'space-offset',\n marginRight: 'space-offset',\n marginTop: 'space-offset',\n maxBlockSize: 'sizes',\n maxHeight: 'sizes',\n maxInlineSize: 'sizes',\n maxWidth: 'sizes',\n minBlockSize: 'sizes',\n minHeight: 'sizes',\n minInlineSize: 'sizes',\n minWidth: 'sizes',\n outline: 'colors',\n outlineColor: 'colors',\n padding: 'space-inset',\n paddingBlock: 'space-inset',\n paddingBlockEnd: 'space-inset',\n paddingBlockStart: 'space-inset',\n paddingBottom: 'space-inset',\n paddingInline: 'space-inset',\n paddingInlineEnd: 'space-inset',\n paddingInlineStart: 'space-inset',\n paddingLeft: 'space-inset',\n paddingRight: 'space-inset',\n paddingTop: 'space-inset',\n right: 'space',\n rowGap: 'space-gap',\n scrollMargin: 'space-offset',\n scrollMarginBlock: 'space-offset',\n scrollMarginBlockEnd: 'space-offset',\n scrollMarginBlockStart: 'space-offset',\n scrollMarginBottom: 'space-offset',\n scrollMarginInline: 'space-offset',\n scrollMarginInlineEnd: 'space-offset',\n scrollMarginInlineStart: 'space-offset',\n scrollMarginLeft: 'space-offset',\n scrollMarginRight: 'space-offset',\n scrollMarginTop: 'space-offset',\n scrollPadding: 'space-inset',\n scrollPaddingBlock: 'space-inset',\n scrollPaddingBlockEnd: 'space-inset',\n scrollPaddingBlockStart: 'space-inset',\n scrollPaddingBottom: 'space-inset',\n scrollPaddingInline: 'space-inset',\n scrollPaddingInlineEnd: 'space-inset',\n scrollPaddingInlineStart: 'space-inset',\n scrollPaddingLeft: 'space-inset',\n scrollPaddingRight: 'space-inset',\n scrollPaddingTop: 'space-inset',\n stroke: 'colors',\n textDecorationColor: 'colors',\n textShadow: 'shadows',\n top: 'space',\n transition: 'transitions',\n width: 'sizes',\n zIndex: 'z-indices',\n} as const\n\nexport type ThemeMap = typeof themeMap\n","import { Tokens } from '@mirohq/design-tokens'\n\nexport interface Theme {\n 'border-widths': typeof Tokens.borderWidths\n colors: typeof Tokens.colors\n 'font-sizes': typeof Tokens.fontSizes\n radii: typeof Tokens.radii\n shadows: typeof Tokens.shadows\n sizes: typeof Tokens.sizes\n space: typeof Tokens.space\n 'space-gap': typeof Tokens.spaceGap\n 'space-inset': typeof Tokens.spaceInset\n 'space-offset': typeof Tokens.spaceOffset\n 'z-indices': typeof Tokens.zIndices\n}\n\nexport const theme: Theme = {\n 'border-widths': Tokens.borderWidths,\n colors: Tokens.colors,\n 'font-sizes': Tokens.fontSizes,\n radii: Tokens.radii,\n shadows: Tokens.shadows,\n sizes: Tokens.sizes,\n space: Tokens.space,\n 'space-gap': Tokens.spaceGap,\n 'space-inset': Tokens.spaceInset,\n 'space-offset': Tokens.spaceOffset,\n 'z-indices': Tokens.zIndices,\n}\n","import type { PropertyValue } from '@stitches/react'\n\nexport const utils = {\n paddingX: (value: PropertyValue<'padding'>) => ({\n paddingLeft: value,\n paddingRight: value,\n }),\n paddingY: (value: PropertyValue<'padding'>) => ({\n paddingTop: value,\n paddingBottom: value,\n }),\n marginX: (value: PropertyValue<'margin'>) => ({\n marginLeft: value,\n marginRight: value,\n }),\n marginY: (value: PropertyValue<'margin'>) => ({\n marginTop: value,\n marginBottom: value,\n }),\n}\n","/**\n * Commenting out due to performance problems\n * Please check the thread for more info:\n * https://miro.slack.com/archives/C03SJ1S209M/p1669821558087279\n */\n\nexport const media = {\n // reducedMotion: '(prefers-reduced-motion: reduce)',\n // motion: '(prefers-reduced-motion: no-preference)',\n // hover: '(any-hover: hover)',\n}\n","import { createStitches } from '@stitches/react'\nimport type * as CSSUtil from '@stitches/react/types/css-util'\n\nimport { utils, theme as defaultTheme, themeMap, media } from './config'\n\nconst stitches = createStitches({\n theme: defaultTheme,\n media,\n utils,\n themeMap,\n})\n\nexport const {\n config,\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n prefix,\n styled,\n theme,\n} = stitches\n\nexport type FontFace = CSSUtil.Native.AtRule.FontFace\n\nexport const fontFace = (...fonts: FontFace[]): string =>\n globalCss({\n '@font-face': fonts,\n })()\n","import type { ConfigType } from '@stitches/react/types/config'\n\nimport { config } from './stitches'\n\nexport function setMedia<Media extends {} = {}>(\n media: ConfigType.Media<Media>\n): void {\n config.media = {\n ...config.media,\n ...media,\n }\n}\n\nexport function setCssUtils<Utils extends {} = {}>(\n utils: ConfigType.Utils<Utils>\n): void {\n config.utils = {\n ...config.utils,\n ...utils,\n }\n}\n","import React from 'react'\nimport type {\n CSSProperties,\n ComponentType,\n ElementRef,\n ExoticComponent,\n ForwardRefExoticComponent,\n JSXElementConstructor,\n PropsWithoutRef,\n RefAttributes,\n} from 'react'\nimport type { RemoveIndex } from '@stitches/react/types/stitches'\nimport type { Token } from '@stitches/react/types/theme'\nimport type {\n StyledComponentProps as StitchesStyledComponentProps,\n $$StyledComponentMedia,\n $$StyledComponentProps,\n $$StyledComponentType,\n TransformProps,\n} from '@stitches/react/types/styled-component'\nimport type * as Util from '@stitches/react/types/util'\n\nimport * as stitches from './stitches'\nimport type { CSS, StyledComponentProps, ForbiddenProps } from './types'\n\n// Error messages\n// -----------------------------------------------------------------------------\n\nexport const AS_ERROR =\n 'Polymorphism via `as` prop is not available in styled components.'\n\nexport const STYLING_ATTRS_ERROR =\n 'The `className` and `style` attributes are not avaialable in styled components.'\n\n// Utils\n// -----------------------------------------------------------------------------\n\nconst styleWithCssVars = (\n style: CSS,\n themeMap: typeof stitches.config.themeMap\n): CSSProperties =>\n (Object.entries(style) as Array<[string, unknown]>).reduce(\n (acc, [prop, value]) => {\n // @ts-expect-error\n const mapKeyForProp = themeMap[prop]\n const mapping = stitches.theme[mapKeyForProp] as unknown as {\n [Prop: string]: { [K in keyof Token]: Token[K] }\n }\n\n const parsedValue =\n typeof value === 'string' && /^\\$.+$/.test(value)\n ? mapping[value.replace('$', '')]?.computedValue\n : value\n\n return {\n ...acc,\n [prop]: parsedValue,\n }\n },\n {}\n ) as CSSProperties\n\n// Styled\n// -----------------------------------------------------------------------------\n\ntype Variants<T> = 'variants' extends keyof T\n ? {\n [Name in keyof T['variants']]?:\n | Util.Widen<keyof T['variants'][Name]>\n | Util.String\n }\n : Util.WideObject\n\ntype Styles<Composers> = Composers extends\n | string\n | ComponentType<any>\n | Util.Function\n ? Composers\n : RemoveIndex<CSS> & {\n variants?: {\n [Name in string]: {\n [Pair in number | string]: CSS\n }\n }\n compoundVariants?: Array<Variants<Composers> & { css: CSS }>\n defaultVariants?: Variants<Composers>\n } & CSS & {\n [K in keyof Composers]: K extends\n | 'compoundVariants'\n | 'defaultVariants'\n | 'variants'\n ? unknown\n : K extends keyof CSS\n ? CSS[K]\n : unknown\n }\n\n// This interface is only needed to fix TS4023\nexport interface StitchesInternals<\n Type extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function,\n Props extends {},\n Media extends typeof stitches.config.media\n> {\n className: string\n selector: string\n [$$StyledComponentType]: Type\n [$$StyledComponentProps]: Props\n [$$StyledComponentMedia]: Media\n}\n\nexport interface CustomStylesProps {\n css?: CSS\n UNSAFE_style?: CSS\n}\n\n// TS is infering the return type correctly, no need to make things uglier here\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const styled = <\n Element extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function = 'span',\n Composers extends\n | string\n | ExoticComponent<any>\n | JSXElementConstructor<any>\n | Util.Function\n | { [name: string]: unknown } = {}\n>(\n element: Element,\n composers?: Styles<Composers>\n) => {\n const StyledComponent = stitches.styled(element, composers ?? {})\n\n type StitchesProps = StitchesStyledComponentProps<[Composers]>\n type VariantProps = TransformProps<\n StitchesProps,\n typeof stitches.config.media\n >\n type ComponentProps = StyledComponentProps<typeof StyledComponent>\n\n type Props = Omit<StitchesProps, keyof VariantProps> &\n VariantProps &\n ComponentProps &\n CustomStylesProps\n\n const Component = React.forwardRef<ElementRef<typeof StyledComponent>, Props>(\n (props, forwardRef) => {\n const {\n as,\n className,\n style,\n UNSAFE_style, // eslint-disable-line @typescript-eslint/naming-convention\n ...restProps\n } = props as Props & {\n [K in ForbiddenProps]?: unknown\n }\n\n // based on https://github.com/modulz/stitches/blob/v1.2.8/packages/core/src/features/css.js#L71\n const onlyStyledClasses =\n typeof className === 'string'\n ? className\n ?.split(' ')\n .filter((x: string) => x.match(`${stitches.prefix}c-.+`))\n .join(' ')\n : ''\n\n const parsedStyle =\n UNSAFE_style !== undefined\n ? styleWithCssVars(UNSAFE_style, stitches.config.themeMap)\n : onlyStyledClasses !== ''\n ? style\n : undefined\n\n if (\n (className !== undefined && onlyStyledClasses !== className) ||\n (typeof style === 'object' &&\n style !== null &&\n Object.keys(style).length > 0 &&\n onlyStyledClasses === '')\n ) {\n console.error(STYLING_ATTRS_ERROR)\n }\n\n if (as !== undefined) {\n console.error(AS_ERROR)\n }\n\n return (\n <StyledComponent\n {...(restProps as any)}\n className={onlyStyledClasses}\n style={parsedStyle}\n ref={forwardRef}\n />\n )\n }\n ) as ForwardRefExoticComponent<\n PropsWithoutRef<Props> & RefAttributes<ElementRef<typeof StyledComponent>>\n > &\n StitchesInternals<\n Element,\n StitchesStyledComponentProps<[Composers]>,\n typeof stitches.config.media\n >\n\n Component.displayName = 'Styled.ForwardRef'\n Component.toString = StyledComponent.toString\n Component.className = StyledComponent.className\n Component.selector = StyledComponent.selector\n\n return Component\n}\n"],"names":["theme","defaultTheme","styled","stitches.theme","stitches.styled","stitches.prefix","stitches.config"],"mappings":";;;;AAAO,MAAM,QAAW,GAAA;AAAA,EACtB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QAAA;AAAA,EACjB,eAAiB,EAAA,QAAA;AAAA,EACjB,SAAW,EAAA,OAAA;AAAA,EACX,MAAQ,EAAA,QAAA;AAAA,EACR,WAAa,EAAA,QAAA;AAAA,EACb,cAAgB,EAAA,QAAA;AAAA,EAChB,gBAAkB,EAAA,QAAA;AAAA,EAClB,YAAc,EAAA,QAAA;AAAA,EACd,iBAAmB,EAAA,QAAA;AAAA,EACnB,sBAAwB,EAAA,OAAA;AAAA,EACxB,uBAAyB,EAAA,OAAA;AAAA,EACzB,iBAAmB,EAAA,eAAA;AAAA,EACnB,iBAAmB,EAAA,eAAA;AAAA,EACnB,WAAa,EAAA,QAAA;AAAA,EACb,WAAa,EAAA,QAAA;AAAA,EACb,YAAc,EAAA,QAAA;AAAA,EACd,eAAiB,EAAA,QAAA;AAAA,EACjB,iBAAmB,EAAA,QAAA;AAAA,EACnB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QAAA;AAAA,EACjB,eAAiB,EAAA,eAAA;AAAA,EACjB,eAAiB,EAAA,eAAA;AAAA,EACjB,YAAc,EAAA,OAAA;AAAA,EACd,WAAa,EAAA,QAAA;AAAA,EACb,gBAAkB,EAAA,QAAA;AAAA,EAClB,gBAAkB,EAAA,eAAA;AAAA,EAClB,gBA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,MAAM,MAAA,WAAA,GACJ,YAAiB,KAAA,KAAA,CAAA,GACb,gBAAiB,CAAA,YAAA,EAAcC,MAAS,CAAO,QAAQ,CAAA,GACvD,iBAAsB,KAAA,EAAA,GACtB,KACA,GAAA,KAAA,CAAA,CAAA;AAEN,MAAA,IACG,cAAc,KAAa,CAAA,IAAA,iBAAA,KAAsB,SACjD,IAAA,OAAO,UAAU,QAChB,IAAA,KAAA,KAAU,IACV,IAAA,MAAA,CAAO,KAAK,KAAK,CAAA,CAAE,MAAS,GAAA,CAAA,IAC5B,sBAAsB,EACxB,EAAA;AACA,QAAA,OAAA,CAAQ,MAAM,mBAAmB,CAAA,CAAA;AAAA,OACnC;AAEA,MAAA,IAAI,OAAO,KAAW,CAAA,EAAA;AACpB,QAAA,OAAA,CAAQ,MAAM,QAAQ,CAAA,CAAA;AAAA,OACxB;AAEA,MAAA,uBACG,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,QACE,GAAI,SAAA;AAAA,QACL,SAAW,EAAA,iBAAA;AAAA,QACX,KAAO,EAAA,WAAA;AAAA,QACP,GAAK,EAAA,UAAA;AAAA,OACP,CAAA,CAAA;AAAA,KAEJ;AAAA,GACF,CAAA;AASA,EAAA,SAAA,CAAU,WAAc,GAAA,mBAAA,CAAA;AACxB,EAAA,SAAA,CAAU,WAAW,eAAgB,CAAA,QAAA,CAAA;AACrC,EAAA,SAAA,CAAU,YAAY,eAAgB,CAAA,SAAA,CAAA;AACtC,EAAA,SAAA,CAAU,WAAW,eAAgB,CAAA,QAAA,CAAA;AAErC,EAAO,OAAA,SAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../src/config/theme-map.ts","../src/config/theme.ts","../src/config/utils.ts","../src/config/media.ts","../src/stitches.ts","../src/custom.ts","../src/styled.tsx","../src/index.ts"],"sourcesContent":["export const themeMap = {\n background: 'colors',\n backgroundColor: 'colors',\n backgroundImage: 'colors',\n blockSize: 'sizes',\n border: 'colors',\n borderBlock: 'colors',\n borderBlockEnd: 'colors',\n borderBlockStart: 'colors',\n borderBottom: 'colors',\n borderBottomColor: 'colors',\n borderBottomLeftRadius: 'radii',\n borderBottomRightRadius: 'radii',\n borderBottomStyle: 'border-styles',\n borderBottomWidth: 'border-widths',\n borderColor: 'colors',\n borderImage: 'colors',\n borderInline: 'colors',\n borderInlineEnd: 'colors',\n borderInlineStart: 'colors',\n borderLeft: 'colors',\n borderLeftColor: 'colors',\n borderLeftStyle: 'border-styles',\n borderLeftWidth: 'border-widths',\n borderRadius: 'radii',\n borderRight: 'colors',\n borderRightColor: 'colors',\n borderRightStyle: 'border-styles',\n borderRightWidth: 'border-widths',\n borderStyle: 'border-styles',\n borderTop: 'colors',\n borderTopColor: 'colors',\n borderTopLeftRadius: 'radii',\n borderTopRightRadius: 'radii',\n borderTopStyle: 'border-styles',\n borderTopWidth: 'border-widths',\n borderWidth: 'border-widths',\n bottom: 'space',\n boxShadow: 'shadows',\n caretColor: 'colors',\n color: 'colors',\n columnGap: 'space-gap',\n columnRuleColor: 'colors',\n fill: 'colors',\n flexBasis: 'sizes',\n fontFamily: 'fonts',\n fontSize: 'font-sizes',\n fontWeight: 'font-weights',\n gap: 'space-gap',\n gridColumnGap: 'space-gap',\n gridGap: 'space-gap',\n gridRowGap: 'space-gap',\n gridTemplateColumns: 'sizes',\n gridTemplateRows: 'sizes',\n height: 'sizes',\n inlineSize: 'sizes',\n inset: 'space-inset',\n insetBlock: 'space-inset',\n insetBlockEnd: 'space-inset',\n insetBlockStart: 'space-inset',\n insetInline: 'space-inset',\n insetInlineEnd: 'space-inset',\n insetInlineStart: 'space-inset',\n left: 'space',\n letterSpacing: 'letter-spacings',\n lineHeight: 'line-heights',\n margin: 'space-offset',\n marginBlock: 'space-offset',\n marginBlockEnd: 'space-offset',\n marginBlockStart: 'space-offset',\n marginBottom: 'space-offset',\n marginInline: 'space-offset',\n marginInlineEnd: 'space-offset',\n marginInlineStart: 'space-offset',\n marginLeft: 'space-offset',\n marginRight: 'space-offset',\n marginTop: 'space-offset',\n maxBlockSize: 'sizes',\n maxHeight: 'sizes',\n maxInlineSize: 'sizes',\n maxWidth: 'sizes',\n minBlockSize: 'sizes',\n minHeight: 'sizes',\n minInlineSize: 'sizes',\n minWidth: 'sizes',\n outline: 'colors',\n outlineColor: 'colors',\n padding: 'space-inset',\n paddingBlock: 'space-inset',\n paddingBlockEnd: 'space-inset',\n paddingBlockStart: 'space-inset',\n paddingBottom: 'space-inset',\n paddingInline: 'space-inset',\n paddingInlineEnd: 'space-inset',\n paddingInlineStart: 'space-inset',\n paddingLeft: 'space-inset',\n paddingRight: 'space-inset',\n paddingTop: 'space-inset',\n right: 'space',\n rowGap: 'space-gap',\n scrollMargin: 'space-offset',\n scrollMarginBlock: 'space-offset',\n scrollMarginBlockEnd: 'space-offset',\n scrollMarginBlockStart: 'space-offset',\n scrollMarginBottom: 'space-offset',\n scrollMarginInline: 'space-offset',\n scrollMarginInlineEnd: 'space-offset',\n scrollMarginInlineStart: 'space-offset',\n scrollMarginLeft: 'space-offset',\n scrollMarginRight: 'space-offset',\n scrollMarginTop: 'space-offset',\n scrollPadding: 'space-inset',\n scrollPaddingBlock: 'space-inset',\n scrollPaddingBlockEnd: 'space-inset',\n scrollPaddingBlockStart: 'space-inset',\n scrollPaddingBottom: 'space-inset',\n scrollPaddingInline: 'space-inset',\n scrollPaddingInlineEnd: 'space-inset',\n scrollPaddingInlineStart: 'space-inset',\n scrollPaddingLeft: 'space-inset',\n scrollPaddingRight: 'space-inset',\n scrollPaddingTop: 'space-inset',\n stroke: 'colors',\n textDecorationColor: 'colors',\n textShadow: 'shadows',\n top: 'space',\n transition: 'transitions',\n width: 'sizes',\n zIndex: 'z-indices',\n} as const\n\nexport type ThemeMap = typeof themeMap\n","import { Tokens } from '@mirohq/design-tokens'\n\nexport interface Theme {\n 'border-widths': typeof Tokens.borderWidths\n colors: typeof Tokens.colors\n 'font-sizes': typeof Tokens.fontSizes\n radii: typeof Tokens.radii\n shadows: typeof Tokens.shadows\n sizes: typeof Tokens.sizes\n space: typeof Tokens.space\n 'space-gap': typeof Tokens.spaceGap\n 'space-inset': typeof Tokens.spaceInset\n 'space-offset': typeof Tokens.spaceOffset\n 'z-indices': typeof Tokens.zIndices\n}\n\nexport const theme: Theme = {\n 'border-widths': Tokens.borderWidths,\n colors: Tokens.colors,\n 'font-sizes': Tokens.fontSizes,\n radii: Tokens.radii,\n shadows: Tokens.shadows,\n sizes: Tokens.sizes,\n space: Tokens.space,\n 'space-gap': Tokens.spaceGap,\n 'space-inset': Tokens.spaceInset,\n 'space-offset': Tokens.spaceOffset,\n 'z-indices': Tokens.zIndices,\n}\n","import type { PropertyValue } from '@stitches/react'\n\nexport const utils = {\n paddingX: (value: PropertyValue<'padding'>) => ({\n paddingLeft: value,\n paddingRight: value,\n }),\n paddingY: (value: PropertyValue<'padding'>) => ({\n paddingTop: value,\n paddingBottom: value,\n }),\n marginX: (value: PropertyValue<'margin'>) => ({\n marginLeft: value,\n marginRight: value,\n }),\n marginY: (value: PropertyValue<'margin'>) => ({\n marginTop: value,\n marginBottom: value,\n }),\n square: (value: PropertyValue<'width'>) => ({\n width: value,\n height: value,\n }),\n}\n","/**\n * Commenting out due to performance problems\n * Please check the thread for more info:\n * https://miro.slack.com/archives/C03SJ1S209M/p1669821558087279\n */\n\nexport const media = {\n // reducedMotion: '(prefers-reduced-motion: reduce)',\n // motion: '(prefers-reduced-motion: no-preference)',\n // hover: '(any-hover: hover)',\n}\n","import { createStitches } from '@stitches/react'\nimport type * as CSSUtil from '@stitches/react/types/css-util'\n\nimport { utils, theme as defaultTheme, themeMap, media } from './config'\n\nconst stitches = createStitches({\n theme: defaultTheme,\n media,\n utils,\n themeMap,\n})\n\nexport const {\n config,\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n prefix,\n styled,\n theme,\n} = stitches\n\nexport type FontFace = CSSUtil.Native.AtRule.FontFace\n\nexport const fontFace = (...fonts: FontFace[]): string =>\n globalCss({\n '@font-face': fonts,\n })()\n","import type { ConfigType } from '@stitches/react/types/config'\n\nimport { config } from './stitches'\n\nexport function setMedia<Media extends {} = {}>(\n media: ConfigType.Media<Media>\n): void {\n config.media = {\n ...config.media,\n ...media,\n }\n}\n\nexport function setCssUtils<Utils extends {} = {}>(\n utils: ConfigType.Utils<Utils>\n): void {\n config.utils = {\n ...config.utils,\n ...utils,\n }\n}\n","import React from 'react'\nimport type {\n CSSProperties,\n ComponentType,\n ElementRef,\n ExoticComponent,\n ForwardRefExoticComponent,\n JSXElementConstructor,\n PropsWithoutRef,\n RefAttributes,\n} from 'react'\nimport type { RemoveIndex } from '@stitches/react/types/stitches'\nimport type { Token } from '@stitches/react/types/theme'\nimport type {\n StyledComponentProps as StitchesStyledComponentProps,\n $$StyledComponentMedia,\n $$StyledComponentProps,\n $$StyledComponentType,\n TransformProps,\n} from '@stitches/react/types/styled-component'\nimport type * as Util from '@stitches/react/types/util'\n\nimport * as stitches from './stitches'\nimport type { CSS, StyledComponentProps, ForbiddenProps } from './types'\n\n// Error messages\n// -----------------------------------------------------------------------------\n\nexport const AS_ERROR =\n 'Polymorphism via `as` prop is not available in styled components.'\n\nexport const STYLING_ATTRS_ERROR =\n 'The `className` and `style` attributes are not avaialable in styled components.'\n\n// Utils\n// -----------------------------------------------------------------------------\n\nconst styleWithCssVars = (\n style: CSS,\n themeMap: typeof stitches.config.themeMap\n): CSSProperties =>\n (Object.entries(style) as Array<[string, unknown]>).reduce(\n (acc, [prop, value]) => {\n // @ts-expect-error\n const mapKeyForProp = themeMap[prop]\n const mapping = stitches.theme[mapKeyForProp] as unknown as {\n [Prop: string]: { [K in keyof Token]: Token[K] }\n }\n\n const parsedValue =\n typeof value === 'string' && /^\\$.+$/.test(value)\n ? mapping[value.replace('$', '')]?.computedValue\n : value\n\n return {\n ...acc,\n [prop]: parsedValue,\n }\n },\n {}\n ) as CSSProperties\n\n// Styled\n// -----------------------------------------------------------------------------\n\ntype Variants<T> = 'variants' extends keyof T\n ? {\n [Name in keyof T['variants']]?:\n | Util.Widen<keyof T['variants'][Name]>\n | Util.String\n }\n : Util.WideObject\n\ntype Styles<Composers> = Composers extends\n | string\n | ComponentType<any>\n | Util.Function\n ? Composers\n : RemoveIndex<CSS> & {\n variants?: {\n [Name in string]: {\n [Pair in number | string]: CSS\n }\n }\n compoundVariants?: Array<Variants<Composers> & { css: CSS }>\n defaultVariants?: Variants<Composers>\n } & CSS & {\n [K in keyof Composers]: K extends\n | 'compoundVariants'\n | 'defaultVariants'\n | 'variants'\n ? unknown\n : K extends keyof CSS\n ? CSS[K]\n : unknown\n }\n\n// This interface is only needed to fix TS4023\nexport interface StitchesInternals<\n Type extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function,\n Props extends {},\n Media extends typeof stitches.config.media\n> {\n className: string\n selector: string\n [$$StyledComponentType]: Type\n [$$StyledComponentProps]: Props\n [$$StyledComponentMedia]: Media\n}\n\nexport interface CustomStylesProps {\n css?: CSS\n UNSAFE_style?: CSS\n}\n\n// TS is infering the return type correctly, no need to make things uglier here\n// eslint-disable-next-line @typescript-eslint/explicit-function-return-type\nexport const styled = <\n Element extends\n | keyof JSX.IntrinsicElements\n | React.ComponentType<any>\n | Util.Function = 'span',\n Composers extends\n | string\n | ExoticComponent<any>\n | JSXElementConstructor<any>\n | Util.Function\n | { [name: string]: unknown } = {}\n>(\n element: Element,\n composers?: Styles<Composers>\n) => {\n const StyledComponent = stitches.styled(element, composers ?? {})\n\n type StitchesProps = StitchesStyledComponentProps<[Composers]>\n type VariantProps = TransformProps<\n StitchesProps,\n typeof stitches.config.media\n >\n type ComponentProps = StyledComponentProps<typeof StyledComponent>\n\n type Props = Omit<StitchesProps, keyof VariantProps> &\n VariantProps &\n ComponentProps &\n CustomStylesProps\n\n const Component = React.forwardRef<ElementRef<typeof StyledComponent>, Props>(\n (props, forwardRef) => {\n const {\n as,\n className,\n style,\n UNSAFE_style, // eslint-disable-line @typescript-eslint/naming-convention\n ...restProps\n } = props as Props & {\n [K in ForbiddenProps]?: unknown\n }\n\n // based on https://github.com/modulz/stitches/blob/v1.2.8/packages/core/src/features/css.js#L71\n const onlyStyledClasses =\n typeof className === 'string'\n ? className\n ?.split(' ')\n .filter((x: string) => x.match(`${stitches.prefix}c-.+`))\n .join(' ')\n : ''\n\n const parsedStyle =\n UNSAFE_style !== undefined\n ? styleWithCssVars(UNSAFE_style, stitches.config.themeMap)\n : onlyStyledClasses !== ''\n ? style\n : undefined\n\n if (\n (className !== undefined && onlyStyledClasses !== className) ||\n (typeof style === 'object' &&\n style !== null &&\n Object.keys(style).length > 0 &&\n onlyStyledClasses === '')\n ) {\n console.error(STYLING_ATTRS_ERROR)\n }\n\n if (as !== undefined) {\n console.error(AS_ERROR)\n }\n\n return (\n <StyledComponent\n {...(restProps as any)}\n className={onlyStyledClasses}\n style={parsedStyle}\n ref={forwardRef}\n />\n )\n }\n ) as ForwardRefExoticComponent<\n PropsWithoutRef<Props> & RefAttributes<ElementRef<typeof StyledComponent>>\n > &\n StitchesInternals<\n Element,\n StitchesStyledComponentProps<[Composers]>,\n typeof stitches.config.media\n >\n\n Component.displayName = 'Styled.ForwardRef'\n Component.toString = StyledComponent.toString\n Component.className = StyledComponent.className\n Component.selector = StyledComponent.selector\n\n return Component\n}\n","import { prefix, theme as stitchesTheme } from './stitches'\n\nexport * from './types'\n\nexport {\n createTheme,\n css,\n getCssText,\n globalCss,\n keyframes,\n fontFace,\n} from './stitches'\n\nexport type { FontFace } from './stitches'\n\nexport const stitchesCssRoot = {\n prefix,\n selector: stitchesTheme.selector,\n className: stitchesTheme.className,\n}\n\nexport { theme, themeMap } from './config'\nexport type { Theme, ThemeMap } from './config'\n\nexport * from './custom'\nexport * from './styled'\n"],"names":["theme","defaultTheme","styled","stitches.theme","stitches.styled","stitches.prefix","stitches.config","stitchesTheme"],"mappings":";;;;AAAO,MAAM,QAAW,GAAA;AAAA,EACtB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,QA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,MAAS,GAAA,CAAA,IAC5B,sBAAsB,EACxB,EAAA;AACA,QAAA,OAAA,CAAQ,MAAM,mBAAmB,CAAA,CAAA;AAAA,OACnC;AAEA,MAAA,IAAI,OAAO,KAAW,CAAA,EAAA;AACpB,QAAA,OAAA,CAAQ,MAAM,QAAQ,CAAA,CAAA;AAAA,OACxB;AAEA,MAAA,uBACG,KAAA,CAAA,aAAA,CAAA,eAAA,EAAA;AAAA,QACE,GAAI,SAAA;AAAA,QACL,SAAW,EAAA,iBAAA;AAAA,QACX,KAAO,EAAA,WAAA;AAAA,QACP,GAAK,EAAA,UAAA;AAAA,OACP,CAAA,CAAA;AAAA,KAEJ;AAAA,GACF,CAAA;AASA,EAAA,SAAA,CAAU,WAAc,GAAA,mBAAA,CAAA;AACxB,EAAA,SAAA,CAAU,WAAW,eAAgB,CAAA,QAAA,CAAA;AACrC,EAAA,SAAA,CAAU,YAAY,eAAgB,CAAA,SAAA,CAAA;AACtC,EAAA,SAAA,CAAU,WAAW,eAAgB,CAAA,QAAA,CAAA;AAErC,EAAO,OAAA,SAAA,CAAA;AACT;;ACxMO,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAA;AAAA,EACA,UAAUC,KAAc,CAAA,QAAA;AAAA,EACxB,WAAWA,KAAc,CAAA,SAAA;AAC3B;;;;"}
package/dist/types.d.ts CHANGED
@@ -107,6 +107,8 @@ declare const config: {
107
107
  readonly 'background-danger'?: any;
108
108
  readonly 'background-danger-hover'?: any;
109
109
  readonly 'background-success'?: any;
110
+ readonly 'background-warning-subtle'?: any;
111
+ readonly 'background-warning-prominent'?: any;
110
112
  readonly 'text-neutrals-inverted'?: any;
111
113
  readonly 'text-neutrals'?: any;
112
114
  readonly 'text-neutrals-subtle'?: any;
@@ -145,6 +147,9 @@ declare const config: {
145
147
  readonly 'icon-success-inverted'?: any;
146
148
  readonly 'icon-success'?: any;
147
149
  readonly 'icon-warning'?: any;
150
+ readonly 'border-focus-outer'?: any;
151
+ readonly 'border-focus-middle'?: any;
152
+ readonly 'border-focus-inner'?: any;
148
153
  readonly 'border-neutrals'?: any;
149
154
  readonly 'border-neutrals-hover'?: any;
150
155
  readonly 'border-neutrals-active'?: any;
@@ -186,9 +191,9 @@ declare const config: {
186
191
  shadows: {
187
192
  readonly 50: "0 4px 16px #05003812";
188
193
  readonly 100: "0 8px 32px #05003808";
189
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
190
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
191
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
194
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
195
+ 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";
196
+ 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";
192
197
  };
193
198
  sizes: {
194
199
  readonly number: string;
@@ -427,6 +432,16 @@ declare const config: {
427
432
  readonly [CSSUtil.$$PropertyValue]: "margin";
428
433
  };
429
434
  };
435
+ square: (value: {
436
+ readonly [CSSUtil.$$PropertyValue]: "width";
437
+ }) => {
438
+ width: {
439
+ readonly [CSSUtil.$$PropertyValue]: "width";
440
+ };
441
+ height: {
442
+ readonly [CSSUtil.$$PropertyValue]: "width";
443
+ };
444
+ };
430
445
  };
431
446
  };
432
447
  declare const createTheme: <Argument0 extends string | ({
@@ -522,6 +537,8 @@ declare const createTheme: <Argument0 extends string | ({
522
537
  readonly 'background-danger'?: string | number | boolean | undefined;
523
538
  readonly 'background-danger-hover'?: string | number | boolean | undefined;
524
539
  readonly 'background-success'?: string | number | boolean | undefined;
540
+ readonly 'background-warning-subtle'?: string | number | boolean | undefined;
541
+ readonly 'background-warning-prominent'?: string | number | boolean | undefined;
525
542
  readonly 'text-neutrals-inverted'?: string | number | boolean | undefined;
526
543
  readonly 'text-neutrals'?: string | number | boolean | undefined;
527
544
  readonly 'text-neutrals-subtle'?: string | number | boolean | undefined;
@@ -560,6 +577,9 @@ declare const createTheme: <Argument0 extends string | ({
560
577
  readonly 'icon-success-inverted'?: string | number | boolean | undefined;
561
578
  readonly 'icon-success'?: string | number | boolean | undefined;
562
579
  readonly 'icon-warning'?: string | number | boolean | undefined;
580
+ readonly 'border-focus-outer'?: string | number | boolean | undefined;
581
+ readonly 'border-focus-middle'?: string | number | boolean | undefined;
582
+ readonly 'border-focus-inner'?: string | number | boolean | undefined;
563
583
  readonly 'border-neutrals'?: string | number | boolean | undefined;
564
584
  readonly 'border-neutrals-hover'?: string | number | boolean | undefined;
565
585
  readonly 'border-neutrals-active'?: string | number | boolean | undefined;
@@ -768,6 +788,8 @@ declare const createTheme: <Argument0 extends string | ({
768
788
  readonly 'background-danger'?: string | number | boolean | undefined;
769
789
  readonly 'background-danger-hover'?: string | number | boolean | undefined;
770
790
  readonly 'background-success'?: string | number | boolean | undefined;
791
+ readonly 'background-warning-subtle'?: string | number | boolean | undefined;
792
+ readonly 'background-warning-prominent'?: string | number | boolean | undefined;
771
793
  readonly 'text-neutrals-inverted'?: string | number | boolean | undefined;
772
794
  readonly 'text-neutrals'?: string | number | boolean | undefined;
773
795
  readonly 'text-neutrals-subtle'?: string | number | boolean | undefined;
@@ -806,6 +828,9 @@ declare const createTheme: <Argument0 extends string | ({
806
828
  readonly 'icon-success-inverted'?: string | number | boolean | undefined;
807
829
  readonly 'icon-success'?: string | number | boolean | undefined;
808
830
  readonly 'icon-warning'?: string | number | boolean | undefined;
831
+ readonly 'border-focus-outer'?: string | number | boolean | undefined;
832
+ readonly 'border-focus-middle'?: string | number | boolean | undefined;
833
+ readonly 'border-focus-inner'?: string | number | boolean | undefined;
809
834
  readonly 'border-neutrals'?: string | number | boolean | undefined;
810
835
  readonly 'border-neutrals-hover'?: string | number | boolean | undefined;
811
836
  readonly 'border-neutrals-active'?: string | number | boolean | undefined;
@@ -1020,6 +1045,8 @@ declare const css: <Composers extends (string | _stitches_react_types_util.Funct
1020
1045
  readonly 'background-danger'?: any;
1021
1046
  readonly 'background-danger-hover'?: any;
1022
1047
  readonly 'background-success'?: any;
1048
+ readonly 'background-warning-subtle'?: any;
1049
+ readonly 'background-warning-prominent'?: any;
1023
1050
  readonly 'text-neutrals-inverted'?: any;
1024
1051
  readonly 'text-neutrals'?: any;
1025
1052
  readonly 'text-neutrals-subtle'?: any;
@@ -1058,6 +1085,9 @@ declare const css: <Composers extends (string | _stitches_react_types_util.Funct
1058
1085
  readonly 'icon-success-inverted'?: any;
1059
1086
  readonly 'icon-success'?: any;
1060
1087
  readonly 'icon-warning'?: any;
1088
+ readonly 'border-focus-outer'?: any;
1089
+ readonly 'border-focus-middle'?: any;
1090
+ readonly 'border-focus-inner'?: any;
1061
1091
  readonly 'border-neutrals'?: any;
1062
1092
  readonly 'border-neutrals-hover'?: any;
1063
1093
  readonly 'border-neutrals-active'?: any;
@@ -1099,9 +1129,9 @@ declare const css: <Composers extends (string | _stitches_react_types_util.Funct
1099
1129
  shadows: {
1100
1130
  readonly 50: "0 4px 16px #05003812";
1101
1131
  readonly 100: "0 8px 32px #05003808";
1102
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1103
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1104
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
1132
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
1133
+ 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";
1134
+ 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";
1105
1135
  };
1106
1136
  sizes: {
1107
1137
  readonly number: string;
@@ -1338,6 +1368,16 @@ declare const css: <Composers extends (string | _stitches_react_types_util.Funct
1338
1368
  readonly [CSSUtil.$$PropertyValue]: "margin";
1339
1369
  };
1340
1370
  };
1371
+ square: (value: {
1372
+ readonly [CSSUtil.$$PropertyValue]: "width";
1373
+ }) => {
1374
+ width: {
1375
+ readonly [CSSUtil.$$PropertyValue]: "width";
1376
+ };
1377
+ height: {
1378
+ readonly [CSSUtil.$$PropertyValue]: "width";
1379
+ };
1380
+ };
1341
1381
  }>>(...composers: { [K in keyof Composers]: string extends Composers[K] ? Composers[K] : Composers[K] extends string | _stitches_react_types_util.Function | React.ExoticComponent<any> | React.JSXElementConstructor<any> ? Composers[K] : _stitches_react_types_stitches.RemoveIndex<CSS> & {
1342
1382
  variants?: {
1343
1383
  [x: string]: {
@@ -1450,6 +1490,8 @@ declare const globalCss: <Styles extends {
1450
1490
  readonly 'background-danger'?: any;
1451
1491
  readonly 'background-danger-hover'?: any;
1452
1492
  readonly 'background-success'?: any;
1493
+ readonly 'background-warning-subtle'?: any;
1494
+ readonly 'background-warning-prominent'?: any;
1453
1495
  readonly 'text-neutrals-inverted'?: any;
1454
1496
  readonly 'text-neutrals'?: any;
1455
1497
  readonly 'text-neutrals-subtle'?: any;
@@ -1488,6 +1530,9 @@ declare const globalCss: <Styles extends {
1488
1530
  readonly 'icon-success-inverted'?: any;
1489
1531
  readonly 'icon-success'?: any;
1490
1532
  readonly 'icon-warning'?: any;
1533
+ readonly 'border-focus-outer'?: any;
1534
+ readonly 'border-focus-middle'?: any;
1535
+ readonly 'border-focus-inner'?: any;
1491
1536
  readonly 'border-neutrals'?: any;
1492
1537
  readonly 'border-neutrals-hover'?: any;
1493
1538
  readonly 'border-neutrals-active'?: any;
@@ -1529,9 +1574,9 @@ declare const globalCss: <Styles extends {
1529
1574
  shadows: {
1530
1575
  readonly 50: "0 4px 16px #05003812";
1531
1576
  readonly 100: "0 8px 32px #05003808";
1532
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1533
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1534
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
1577
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
1578
+ 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";
1579
+ 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";
1535
1580
  };
1536
1581
  sizes: {
1537
1582
  readonly number: string;
@@ -1768,6 +1813,16 @@ declare const globalCss: <Styles extends {
1768
1813
  readonly [CSSUtil.$$PropertyValue]: "margin";
1769
1814
  };
1770
1815
  };
1816
+ square: (value: {
1817
+ readonly [CSSUtil.$$PropertyValue]: "width";
1818
+ }) => {
1819
+ width: {
1820
+ readonly [CSSUtil.$$PropertyValue]: "width";
1821
+ };
1822
+ height: {
1823
+ readonly [CSSUtil.$$PropertyValue]: "width";
1824
+ };
1825
+ };
1771
1826
  }>;
1772
1827
  } : K extends `@property ${string}` ? CSSUtil.Native.AtRule.Property : CSSUtil.CSS<{}, {
1773
1828
  'border-widths': {
@@ -1862,6 +1917,8 @@ declare const globalCss: <Styles extends {
1862
1917
  readonly 'background-danger'?: any;
1863
1918
  readonly 'background-danger-hover'?: any;
1864
1919
  readonly 'background-success'?: any;
1920
+ readonly 'background-warning-subtle'?: any;
1921
+ readonly 'background-warning-prominent'?: any;
1865
1922
  readonly 'text-neutrals-inverted'?: any;
1866
1923
  readonly 'text-neutrals'?: any;
1867
1924
  readonly 'text-neutrals-subtle'?: any;
@@ -1900,6 +1957,9 @@ declare const globalCss: <Styles extends {
1900
1957
  readonly 'icon-success-inverted'?: any;
1901
1958
  readonly 'icon-success'?: any;
1902
1959
  readonly 'icon-warning'?: any;
1960
+ readonly 'border-focus-outer'?: any;
1961
+ readonly 'border-focus-middle'?: any;
1962
+ readonly 'border-focus-inner'?: any;
1903
1963
  readonly 'border-neutrals'?: any;
1904
1964
  readonly 'border-neutrals-hover'?: any;
1905
1965
  readonly 'border-neutrals-active'?: any;
@@ -1941,9 +2001,9 @@ declare const globalCss: <Styles extends {
1941
2001
  shadows: {
1942
2002
  readonly 50: "0 4px 16px #05003812";
1943
2003
  readonly 100: "0 8px 32px #05003808";
1944
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1945
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
1946
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
2004
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
2005
+ 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";
2006
+ 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";
1947
2007
  };
1948
2008
  sizes: {
1949
2009
  readonly number: string;
@@ -2180,6 +2240,16 @@ declare const globalCss: <Styles extends {
2180
2240
  readonly [CSSUtil.$$PropertyValue]: "margin";
2181
2241
  };
2182
2242
  };
2243
+ square: (value: {
2244
+ readonly [CSSUtil.$$PropertyValue]: "width";
2245
+ }) => {
2246
+ width: {
2247
+ readonly [CSSUtil.$$PropertyValue]: "width";
2248
+ };
2249
+ height: {
2250
+ readonly [CSSUtil.$$PropertyValue]: "width";
2251
+ };
2252
+ };
2183
2253
  }>; })[]) => () => string;
2184
2254
  declare const keyframes: (style: {
2185
2255
  [offset: string]: CSSUtil.CSS<{}, {
@@ -2275,6 +2345,8 @@ declare const keyframes: (style: {
2275
2345
  readonly 'background-danger'?: any;
2276
2346
  readonly 'background-danger-hover'?: any;
2277
2347
  readonly 'background-success'?: any;
2348
+ readonly 'background-warning-subtle'?: any;
2349
+ readonly 'background-warning-prominent'?: any;
2278
2350
  readonly 'text-neutrals-inverted'?: any;
2279
2351
  readonly 'text-neutrals'?: any;
2280
2352
  readonly 'text-neutrals-subtle'?: any;
@@ -2313,6 +2385,9 @@ declare const keyframes: (style: {
2313
2385
  readonly 'icon-success-inverted'?: any;
2314
2386
  readonly 'icon-success'?: any;
2315
2387
  readonly 'icon-warning'?: any;
2388
+ readonly 'border-focus-outer'?: any;
2389
+ readonly 'border-focus-middle'?: any;
2390
+ readonly 'border-focus-inner'?: any;
2316
2391
  readonly 'border-neutrals'?: any;
2317
2392
  readonly 'border-neutrals-hover'?: any;
2318
2393
  readonly 'border-neutrals-active'?: any;
@@ -2354,9 +2429,9 @@ declare const keyframes: (style: {
2354
2429
  shadows: {
2355
2430
  readonly 50: "0 4px 16px #05003812";
2356
2431
  readonly 100: "0 8px 32px #05003808";
2357
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
2358
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
2359
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
2432
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
2433
+ 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";
2434
+ 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";
2360
2435
  };
2361
2436
  sizes: {
2362
2437
  readonly number: string;
@@ -2593,12 +2668,21 @@ declare const keyframes: (style: {
2593
2668
  readonly [CSSUtil.$$PropertyValue]: "margin";
2594
2669
  };
2595
2670
  };
2671
+ square: (value: {
2672
+ readonly [CSSUtil.$$PropertyValue]: "width";
2673
+ }) => {
2674
+ width: {
2675
+ readonly [CSSUtil.$$PropertyValue]: "width";
2676
+ };
2677
+ height: {
2678
+ readonly [CSSUtil.$$PropertyValue]: "width";
2679
+ };
2680
+ };
2596
2681
  }>;
2597
2682
  }) => {
2598
2683
  (): string;
2599
2684
  name: string;
2600
2685
  };
2601
- declare const prefix: "";
2602
2686
  declare type FontFace = CSSUtil.Native.AtRule.FontFace;
2603
2687
  declare const fontFace: (...fonts: FontFace[]) => string;
2604
2688
 
@@ -2908,6 +2992,8 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
2908
2992
  readonly 'background-danger'?: any;
2909
2993
  readonly 'background-danger-hover'?: any;
2910
2994
  readonly 'background-success'?: any;
2995
+ readonly 'background-warning-subtle'?: any;
2996
+ readonly 'background-warning-prominent'?: any;
2911
2997
  readonly 'text-neutrals-inverted'?: any;
2912
2998
  readonly 'text-neutrals'?: any;
2913
2999
  readonly 'text-neutrals-subtle'?: any;
@@ -2946,6 +3032,9 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
2946
3032
  readonly 'icon-success-inverted'?: any;
2947
3033
  readonly 'icon-success'?: any;
2948
3034
  readonly 'icon-warning'?: any;
3035
+ readonly 'border-focus-outer'?: any;
3036
+ readonly 'border-focus-middle'?: any;
3037
+ readonly 'border-focus-inner'?: any;
2949
3038
  readonly 'border-neutrals'?: any;
2950
3039
  readonly 'border-neutrals-hover'?: any;
2951
3040
  readonly 'border-neutrals-active'?: any;
@@ -2987,9 +3076,9 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
2987
3076
  shadows: {
2988
3077
  readonly 50: "0 4px 16px #05003812";
2989
3078
  readonly 100: "0 8px 32px #05003808";
2990
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
2991
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
2992
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
3079
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
3080
+ 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";
3081
+ 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";
2993
3082
  };
2994
3083
  sizes: {
2995
3084
  readonly number: string;
@@ -3226,6 +3315,16 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
3226
3315
  readonly [$$PropertyValue]: "margin";
3227
3316
  };
3228
3317
  };
3318
+ square: (value: {
3319
+ readonly [$$PropertyValue]: "width";
3320
+ }) => {
3321
+ width: {
3322
+ readonly [$$PropertyValue]: "width";
3323
+ };
3324
+ height: {
3325
+ readonly [$$PropertyValue]: "width";
3326
+ };
3327
+ };
3229
3328
  }>>> & CustomStylesProps> & React__default.RefAttributes<React__default.ElementRef<_stitches_react_types_styled_component.StyledComponent<Element_1, {}, {}, CSSUtil.CSS<{}, {
3230
3329
  'border-widths': {
3231
3330
  readonly none: 0;
@@ -3319,6 +3418,8 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
3319
3418
  readonly 'background-danger'?: any;
3320
3419
  readonly 'background-danger-hover'?: any;
3321
3420
  readonly 'background-success'?: any;
3421
+ readonly 'background-warning-subtle'?: any;
3422
+ readonly 'background-warning-prominent'?: any;
3322
3423
  readonly 'text-neutrals-inverted'?: any;
3323
3424
  readonly 'text-neutrals'?: any;
3324
3425
  readonly 'text-neutrals-subtle'?: any;
@@ -3357,6 +3458,9 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
3357
3458
  readonly 'icon-success-inverted'?: any;
3358
3459
  readonly 'icon-success'?: any;
3359
3460
  readonly 'icon-warning'?: any;
3461
+ readonly 'border-focus-outer'?: any;
3462
+ readonly 'border-focus-middle'?: any;
3463
+ readonly 'border-focus-inner'?: any;
3360
3464
  readonly 'border-neutrals'?: any;
3361
3465
  readonly 'border-neutrals-hover'?: any;
3362
3466
  readonly 'border-neutrals-active'?: any;
@@ -3398,9 +3502,9 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
3398
3502
  shadows: {
3399
3503
  readonly 50: "0 4px 16px #05003812";
3400
3504
  readonly 100: "0 8px 32px #05003808";
3401
- readonly 'focus-small': "0 0 0 2px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
3402
- readonly 'focus-large': "0 0 0 4px $colors$blue-200, inset 0 0 0 2px $colors$blue-500, inset 0 0 0 3px $colors$white";
3403
- readonly 'focus-controls': "0 0 0 1px $colors$white, 0 0 0 3px $colors$blue-500, 0 0 0 5px $colors$blue-200";
3505
+ readonly 'focus-small': "0 0 0 2px $colors$border-focus-inner, inset 0 0 0 2px $colors$border-focus-middle, inset 0 0 0 3px $colors$border-focus-outer";
3506
+ 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";
3507
+ 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";
3404
3508
  };
3405
3509
  sizes: {
3406
3510
  readonly number: string;
@@ -3637,6 +3741,22 @@ declare const styled: <Element_1 extends _stitches_react_types_util.Function | k
3637
3741
  readonly [$$PropertyValue]: "margin";
3638
3742
  };
3639
3743
  };
3744
+ square: (value: {
3745
+ readonly [$$PropertyValue]: "width";
3746
+ }) => {
3747
+ width: {
3748
+ readonly [$$PropertyValue]: "width";
3749
+ };
3750
+ height: {
3751
+ readonly [$$PropertyValue]: "width";
3752
+ };
3753
+ };
3640
3754
  }>>>>> & StitchesInternals<Element_1, StyledComponentProps$1<[Composers]>, {}>;
3641
3755
 
3642
- export { AS_ERROR, AllowedProps, prefix as CLASS_PREFIX, CSS, CustomStylesProps, FontFace, ForbiddenProps, NonResponsiveVariantProps, STYLING_ATTRS_ERROR, SafeProps, StitchesInternals, StrictComponentProps, StyledComponentProps, Theme, ThemeMap, createTheme, css, fontFace, getCssText, globalCss, keyframes, setCssUtils, setMedia, styled, theme, themeMap };
3756
+ declare const stitchesCssRoot: {
3757
+ prefix: "";
3758
+ selector: string;
3759
+ className: string;
3760
+ };
3761
+
3762
+ export { AS_ERROR, AllowedProps, CSS, CustomStylesProps, FontFace, ForbiddenProps, NonResponsiveVariantProps, STYLING_ATTRS_ERROR, SafeProps, StitchesInternals, StrictComponentProps, StyledComponentProps, Theme, ThemeMap, createTheme, css, fontFace, getCssText, globalCss, keyframes, setCssUtils, setMedia, stitchesCssRoot, styled, theme, themeMap };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-stitches",
3
- "version": "2.1.2-test-changelog.0",
3
+ "version": "2.2.0-checkbox.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@mirohq/design-system-types": "^0.3.0",
30
- "@mirohq/design-tokens": "^2.1.1-test-changelog.0"
30
+ "@mirohq/design-tokens": "^2.3.0-checkbox.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@mirohq/design-system-primitive": "^1.1.0"