@mirohq/design-system-badge 0.3.12-use-press.0 → 0.3.13-themes.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
@@ -85,7 +85,7 @@ const Badge = React__default["default"].forwardRef(
85
85
  if (+offsetX !== 0 || +offsetY !== 0) {
86
86
  offset = {
87
87
  UNSAFE_style: {
88
- transform: `translate(${offsetX}px, ${offsetY}px)`
88
+ transform: "translate(".concat(offsetX, "px, ").concat(offsetY, "px)")
89
89
  }
90
90
  };
91
91
  }
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../src/badge.styled.tsx","../src/badge.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\nexport const StyledBadgeContainer = styled(Primitive.div, {\n position: 'relative',\n display: 'flex',\n})\n\nconst sharedStyles: CSS = {\n alignItems: 'center',\n backgroundColor: '$background-primary-prominent',\n borderColor: '$border-primary-inverted',\n borderRadius: '$half',\n color: '$icon-primary-inverted',\n display: 'flex',\n justifyContent: 'center',\n position: 'absolute',\n pointerEvents: 'none',\n zIndex: 1,\n variants: {\n inverted: {\n true: {\n backgroundColor: '$background-neutrals',\n borderColor: '$border-primary',\n color: '$text-primary',\n },\n },\n },\n}\n\nexport const StyledBadge = styled(Primitive.div, {\n borderWidth: 2,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n fontFamily: 'Formular, sans-serif',\n fontSize: '$150',\n fontWeight: 650,\n height: '20px',\n left: '50%',\n minWidth: '20px',\n padding: '2px $50',\n top: '1px',\n transform: 'translateX(-50%)',\n ...sharedStyles,\n})\n\nexport const StyledDot = styled(Primitive.div, {\n borderWidth: 1,\n bottom: '1px',\n height: '4px',\n minWidth: 0,\n padding: 0,\n right: '1px',\n width: '4px',\n ...sharedStyles,\n})\n\nexport const StyledBadgeWrapper = styled(Primitive.div, {\n userSelect: 'none',\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexFlow: 'row wrap',\n height: '10px',\n placeContent: 'center',\n position: 'absolute',\n right: '-2px',\n top: '-6px',\n width: '10px',\n zIndex: '1',\n})\n\nexport type StyledBadgeProps = ComponentPropsWithRef<typeof StyledBadge>\n","import React from 'react'\nimport type {\n ElementRef,\n ReactNode,\n ReactElement,\n ForwardRefExoticComponent,\n HTMLAttributes,\n} from 'react'\nimport type { Numeric } from '@mirohq/design-system-types'\n\nimport {\n StyledBadgeContainer,\n StyledBadgeWrapper,\n StyledBadge,\n StyledDot,\n} from './badge.styled'\nimport type { StyledBadgeProps } from './badge.styled'\n\nexport interface BadgeProps extends StyledBadgeProps {\n /**\n * Content of the badge\n */\n content?: string\n\n /**\n * Handle whether the badge should be shown, if no content is provided a dot is displayed.\n */\n show?: boolean\n\n /**\n * Element that shows the badge\n */\n children?: ReactNode\n\n /**\n * By default the badge is filled with blue, inverted set it to white.\n */\n inverted?: boolean\n\n /**\n * Move the badge position to the left/right\n */\n offsetX?: Numeric\n\n /**\n * Move the badge position to the top/bottom\n */\n offsetY?: Numeric\n}\n\nexport const Badge: ForwardRefExoticComponent<\n BadgeProps & HTMLAttributes<ElementRef<typeof StyledBadge>>\n> = React.forwardRef(\n (\n { show = true, content, children, offsetX = 0, offsetY = 0, ...restProps },\n forwardRef\n ) => {\n if (!show) {\n return children as ReactElement\n }\n\n let offset = {}\n\n if (+offsetX !== 0 || +offsetY !== 0) {\n offset = {\n UNSAFE_style: {\n transform: `translate(${offsetX}px, ${offsetY}px)`,\n },\n }\n }\n\n const badgeProps = {\n ...restProps,\n ...offset,\n }\n\n return (\n <StyledBadgeContainer\n data-testid={process.env.NODE_ENV === 'test' ? 'badge' : undefined}\n >\n <StyledBadgeWrapper>\n {content !== undefined ? (\n <StyledBadge {...badgeProps} ref={forwardRef}>\n {content}\n </StyledBadge>\n ) : (\n <StyledDot {...badgeProps} ref={forwardRef} />\n )}\n </StyledBadgeWrapper>\n {children}\n </StyledBadgeContainer>\n )\n }\n)\n"],"names":["styled","Primitive","React","jsxs","jsx"],"mappings":";;;;;;;;;;;;;AAKa,MAAA,oBAAA,GAAuBA,2BAAO,CAAAC,+BAAA,CAAU,GAAK,EAAA;AAAA,EACxD,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,MAAA;AACX,CAAC,CAAA,CAAA;AAED,MAAM,YAAoB,GAAA;AAAA,EACxB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,+BAAA;AAAA,EACjB,WAAa,EAAA,0BAAA;AAAA,EACb,YAAc,EAAA,OAAA;AAAA,EACd,KAAO,EAAA,wBAAA;AAAA,EACP,OAAS,EAAA,MAAA;AAAA,EACT,cAAgB,EAAA,QAAA;AAAA,EAChB,QAAU,EAAA,UAAA;AAAA,EACV,aAAe,EAAA,MAAA;AAAA,EACf,MAAQ,EAAA,CAAA;AAAA,EACR,QAAU,EAAA;AAAA,IACR,QAAU,EAAA;AAAA,MACR,IAAM,EAAA;AAAA,QACJ,eAAiB,EAAA,sBAAA;AAAA,QACjB,WAAa,EAAA,iBAAA;AAAA,QACb,KAAO,EAAA,eAAA;AAAA,OACT;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEa,MAAA,WAAA,GAAcD,2BAAO,CAAAC,+BAAA,CAAU,GAAK,EAAA;AAAA,EAC/C,WAAa,EAAA,CAAA;AAAA,EACb,WAAa,EAAA,OAAA;AAAA,EACb,SAAW,EAAA,YAAA;AAAA,EACX,UAAY,EAAA,sBAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,GAAA;AAAA,EACZ,MAAQ,EAAA,MAAA;AAAA,EACR,IAAM,EAAA,KAAA;AAAA,EACN,QAAU,EAAA,MAAA;AAAA,EACV,OAAS,EAAA,SAAA;AAAA,EACT,GAAK,EAAA,KAAA;AAAA,EACL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EAAA;AAAA,UACZ,SAAA,EAAW,aAAa,OAAc,CAAA,IAAA,EAAA,OAAA,CAAA,GAAA,CAAA;AAAA,SACxC;AAAA,OACF,CAAA;AAAA,KACF;AAEA,IAAA,MAAM,UAAa,GAAA;AAAA,MACjB,GAAG,SAAA;AAAA,MACH,GAAG,MAAA;AAAA,KACL,CAAA;AAEA,IACE,uBAAAC,eAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,aAAa,EAAA,OAAA,CAAQ,GAAI,CAAA,QAAA,KAAa,SAAS,OAAU,GAAA,KAAA,CAAA;AAAA,QAEzD,QAAA,EAAA;AAAA,0BAAAC,cAAA,CAAC,sBACE,QAAY,EAAA,OAAA,KAAA,KAAA,CAAA,mBACVA,cAAA,CAAA,WAAA,EAAA,EAAa,GAAG,UAAY,EAAA,GAAA,EAAK,UAC/B,EAAA,QAAA,EAAA,OAAA,EACH,oBAECA,cAAA,CAAA,SAAA,EAAA,EAAW,GAAG,UAAY,EAAA,GAAA,EAAK,YAAY,CAEhD,EAAA,CAAA;AAAA,UACC,QAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACH,CAAA;AAAA,GAEJ;AACF;;;;"}
1
+ {"version":3,"file":"main.js","sources":["../src/badge.styled.tsx","../src/badge.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\nexport const StyledBadgeContainer = styled(Primitive.div, {\n position: 'relative',\n display: 'flex',\n})\n\nconst sharedStyles: CSS = {\n alignItems: 'center',\n backgroundColor: '$background-primary-prominent',\n borderColor: '$border-primary-inverted',\n borderRadius: '$half',\n color: '$icon-primary-inverted',\n display: 'flex',\n justifyContent: 'center',\n position: 'absolute',\n pointerEvents: 'none',\n zIndex: 1,\n variants: {\n inverted: {\n true: {\n backgroundColor: '$background-neutrals',\n borderColor: '$border-primary',\n color: '$text-primary',\n },\n },\n },\n}\n\nexport const StyledBadge = styled(Primitive.div, {\n borderWidth: 2,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n fontFamily: 'Formular, sans-serif',\n fontSize: '$150',\n fontWeight: 650,\n height: '20px',\n left: '50%',\n minWidth: '20px',\n padding: '2px $50',\n top: '1px',\n transform: 'translateX(-50%)',\n ...sharedStyles,\n})\n\nexport const StyledDot = styled(Primitive.div, {\n borderWidth: 1,\n bottom: '1px',\n height: '4px',\n minWidth: 0,\n padding: 0,\n right: '1px',\n width: '4px',\n ...sharedStyles,\n})\n\nexport const StyledBadgeWrapper = styled(Primitive.div, {\n userSelect: 'none',\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexFlow: 'row wrap',\n height: '10px',\n placeContent: 'center',\n position: 'absolute',\n right: '-2px',\n top: '-6px',\n width: '10px',\n zIndex: '1',\n})\n\nexport type StyledBadgeProps = ComponentPropsWithRef<typeof StyledBadge>\n","import React from 'react'\nimport type {\n ElementRef,\n ReactNode,\n ReactElement,\n ForwardRefExoticComponent,\n HTMLAttributes,\n} from 'react'\nimport type { Numeric } from '@mirohq/design-system-types'\n\nimport {\n StyledBadgeContainer,\n StyledBadgeWrapper,\n StyledBadge,\n StyledDot,\n} from './badge.styled'\nimport type { StyledBadgeProps } from './badge.styled'\n\nexport interface BadgeProps extends StyledBadgeProps {\n /**\n * Content of the badge\n */\n content?: string\n\n /**\n * Handle whether the badge should be shown, if no content is provided a dot is displayed.\n */\n show?: boolean\n\n /**\n * Element that shows the badge\n */\n children?: ReactNode\n\n /**\n * By default the badge is filled with blue, inverted set it to white.\n */\n inverted?: boolean\n\n /**\n * Move the badge position to the left/right\n */\n offsetX?: Numeric\n\n /**\n * Move the badge position to the top/bottom\n */\n offsetY?: Numeric\n}\n\nexport const Badge: ForwardRefExoticComponent<\n BadgeProps & HTMLAttributes<ElementRef<typeof StyledBadge>>\n> = React.forwardRef(\n (\n { show = true, content, children, offsetX = 0, offsetY = 0, ...restProps },\n forwardRef\n ) => {\n if (!show) {\n return children as ReactElement\n }\n\n let offset = {}\n\n if (+offsetX !== 0 || +offsetY !== 0) {\n offset = {\n UNSAFE_style: {\n transform: `translate(${offsetX}px, ${offsetY}px)`,\n },\n }\n }\n\n const badgeProps = {\n ...restProps,\n ...offset,\n }\n\n return (\n <StyledBadgeContainer\n data-testid={process.env.NODE_ENV === 'test' ? 'badge' : undefined}\n >\n <StyledBadgeWrapper>\n {content !== undefined ? (\n <StyledBadge {...badgeProps} ref={forwardRef}>\n {content}\n </StyledBadge>\n ) : (\n <StyledDot {...badgeProps} ref={forwardRef} />\n )}\n </StyledBadgeWrapper>\n {children}\n </StyledBadgeContainer>\n )\n }\n)\n"],"names":["styled","Primitive","React","jsxs","jsx"],"mappings":";;;;;;;;;;;;;AAKa,MAAA,oBAAA,GAAuBA,2BAAO,CAAAC,+BAAA,CAAU,GAAK,EAAA;AAAA,EACxD,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,MAAA;AACX,CAAC,CAAA,CAAA;AAED,MAAM,YAAoB,GAAA;AAAA,EACxB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,+BAAA;AAAA,EACjB,WAAa,EAAA,0BAAA;AAAA,EACb,YAAc,EAAA,OAAA;AAAA,EACd,KAAO,EAAA,wBAAA;AAAA,EACP,OAAS,EAAA,MAAA;AAAA,EACT,cAAgB,EAAA,QAAA;AAAA,EAChB,QAAU,EAAA,UAAA;AAAA,EACV,aAAe,EAAA,MAAA;AAAA,EACf,MAAQ,EAAA,CAAA;AAAA,EACR,QAAU,EAAA;AAAA,IACR,QAAU,EAAA;AAAA,MACR,IAAM,EAAA;AAAA,QACJ,eAAiB,EAAA,sBAAA;AAAA,QACjB,WAAa,EAAA,iBAAA;AAAA,QACb,KAAO,EAAA,eAAA;AAAA,OACT;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEa,MAAA,WAAA,GAAcD,2BAAO,CAAAC,+BAAA,CAAU,GA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E_style: {
80
- transform: `translate(${offsetX}px, ${offsetY}px)`
80
+ transform: "translate(".concat(offsetX, "px, ").concat(offsetY, "px)")
81
81
  }
82
82
  };
83
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/badge.styled.tsx","../src/badge.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\nexport const StyledBadgeContainer = styled(Primitive.div, {\n position: 'relative',\n display: 'flex',\n})\n\nconst sharedStyles: CSS = {\n alignItems: 'center',\n backgroundColor: '$background-primary-prominent',\n borderColor: '$border-primary-inverted',\n borderRadius: '$half',\n color: '$icon-primary-inverted',\n display: 'flex',\n justifyContent: 'center',\n position: 'absolute',\n pointerEvents: 'none',\n zIndex: 1,\n variants: {\n inverted: {\n true: {\n backgroundColor: '$background-neutrals',\n borderColor: '$border-primary',\n color: '$text-primary',\n },\n },\n },\n}\n\nexport const StyledBadge = styled(Primitive.div, {\n borderWidth: 2,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n fontFamily: 'Formular, sans-serif',\n fontSize: '$150',\n fontWeight: 650,\n height: '20px',\n left: '50%',\n minWidth: '20px',\n padding: '2px $50',\n top: '1px',\n transform: 'translateX(-50%)',\n ...sharedStyles,\n})\n\nexport const StyledDot = styled(Primitive.div, {\n borderWidth: 1,\n bottom: '1px',\n height: '4px',\n minWidth: 0,\n padding: 0,\n right: '1px',\n width: '4px',\n ...sharedStyles,\n})\n\nexport const StyledBadgeWrapper = styled(Primitive.div, {\n userSelect: 'none',\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexFlow: 'row wrap',\n height: '10px',\n placeContent: 'center',\n position: 'absolute',\n right: '-2px',\n top: '-6px',\n width: '10px',\n zIndex: '1',\n})\n\nexport type StyledBadgeProps = ComponentPropsWithRef<typeof StyledBadge>\n","import React from 'react'\nimport type {\n ElementRef,\n ReactNode,\n ReactElement,\n ForwardRefExoticComponent,\n HTMLAttributes,\n} from 'react'\nimport type { Numeric } from '@mirohq/design-system-types'\n\nimport {\n StyledBadgeContainer,\n StyledBadgeWrapper,\n StyledBadge,\n StyledDot,\n} from './badge.styled'\nimport type { StyledBadgeProps } from './badge.styled'\n\nexport interface BadgeProps extends StyledBadgeProps {\n /**\n * Content of the badge\n */\n content?: string\n\n /**\n * Handle whether the badge should be shown, if no content is provided a dot is displayed.\n */\n show?: boolean\n\n /**\n * Element that shows the badge\n */\n children?: ReactNode\n\n /**\n * By default the badge is filled with blue, inverted set it to white.\n */\n inverted?: boolean\n\n /**\n * Move the badge position to the left/right\n */\n offsetX?: Numeric\n\n /**\n * Move the badge position to the top/bottom\n */\n offsetY?: Numeric\n}\n\nexport const Badge: ForwardRefExoticComponent<\n BadgeProps & HTMLAttributes<ElementRef<typeof StyledBadge>>\n> = React.forwardRef(\n (\n { show = true, content, children, offsetX = 0, offsetY = 0, ...restProps },\n forwardRef\n ) => {\n if (!show) {\n return children as ReactElement\n }\n\n let offset = {}\n\n if (+offsetX !== 0 || +offsetY !== 0) {\n offset = {\n UNSAFE_style: {\n transform: `translate(${offsetX}px, ${offsetY}px)`,\n },\n }\n }\n\n const badgeProps = {\n ...restProps,\n ...offset,\n }\n\n return (\n <StyledBadgeContainer\n data-testid={process.env.NODE_ENV === 'test' ? 'badge' : undefined}\n >\n <StyledBadgeWrapper>\n {content !== undefined ? (\n <StyledBadge {...badgeProps} ref={forwardRef}>\n {content}\n </StyledBadge>\n ) : (\n <StyledDot {...badgeProps} ref={forwardRef} />\n )}\n </StyledBadgeWrapper>\n {children}\n </StyledBadgeContainer>\n )\n }\n)\n"],"names":[],"mappings":";;;;;AAKa,MAAA,oBAAA,GAAuB,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EACxD,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,MAAA;AACX,CAAC,CAAA,CAAA;AAED,MA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QAAA,KAAa,SAAS,OAAU,GAAA,KAAA,CAAA;AAAA,QAEzD,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,sBACE,QAAY,EAAA,OAAA,KAAA,KAAA,CAAA,mBACV,GAAA,CAAA,WAAA,EAAA,EAAa,GAAG,UAAY,EAAA,GAAA,EAAK,UAC/B,EAAA,QAAA,EAAA,OAAA,EACH,oBAEC,GAAA,CAAA,SAAA,EAAA,EAAW,GAAG,UAAY,EAAA,GAAA,EAAK,YAAY,CAEhD,EAAA,CAAA;AAAA,UACC,QAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACH,CAAA;AAAA,GAEJ;AACF;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../src/badge.styled.tsx","../src/badge.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { CSS } from '@mirohq/design-system-stitches'\n\nexport const StyledBadgeContainer = styled(Primitive.div, {\n position: 'relative',\n display: 'flex',\n})\n\nconst sharedStyles: CSS = {\n alignItems: 'center',\n backgroundColor: '$background-primary-prominent',\n borderColor: '$border-primary-inverted',\n borderRadius: '$half',\n color: '$icon-primary-inverted',\n display: 'flex',\n justifyContent: 'center',\n position: 'absolute',\n pointerEvents: 'none',\n zIndex: 1,\n variants: {\n inverted: {\n true: {\n backgroundColor: '$background-neutrals',\n borderColor: '$border-primary',\n color: '$text-primary',\n },\n },\n },\n}\n\nexport const StyledBadge = styled(Primitive.div, {\n borderWidth: 2,\n borderStyle: 'solid',\n boxSizing: 'border-box',\n fontFamily: 'Formular, sans-serif',\n fontSize: '$150',\n fontWeight: 650,\n height: '20px',\n left: '50%',\n minWidth: '20px',\n padding: '2px $50',\n top: '1px',\n transform: 'translateX(-50%)',\n ...sharedStyles,\n})\n\nexport const StyledDot = styled(Primitive.div, {\n borderWidth: 1,\n bottom: '1px',\n height: '4px',\n minWidth: 0,\n padding: 0,\n right: '1px',\n width: '4px',\n ...sharedStyles,\n})\n\nexport const StyledBadgeWrapper = styled(Primitive.div, {\n userSelect: 'none',\n alignItems: 'center',\n boxSizing: 'border-box',\n display: 'flex',\n flexFlow: 'row wrap',\n height: '10px',\n placeContent: 'center',\n position: 'absolute',\n right: '-2px',\n top: '-6px',\n width: '10px',\n zIndex: '1',\n})\n\nexport type StyledBadgeProps = ComponentPropsWithRef<typeof StyledBadge>\n","import React from 'react'\nimport type {\n ElementRef,\n ReactNode,\n ReactElement,\n ForwardRefExoticComponent,\n HTMLAttributes,\n} from 'react'\nimport type { Numeric } from '@mirohq/design-system-types'\n\nimport {\n StyledBadgeContainer,\n StyledBadgeWrapper,\n StyledBadge,\n StyledDot,\n} from './badge.styled'\nimport type { StyledBadgeProps } from './badge.styled'\n\nexport interface BadgeProps extends StyledBadgeProps {\n /**\n * Content of the badge\n */\n content?: string\n\n /**\n * Handle whether the badge should be shown, if no content is provided a dot is displayed.\n */\n show?: boolean\n\n /**\n * Element that shows the badge\n */\n children?: ReactNode\n\n /**\n * By default the badge is filled with blue, inverted set it to white.\n */\n inverted?: boolean\n\n /**\n * Move the badge position to the left/right\n */\n offsetX?: Numeric\n\n /**\n * Move the badge position to the top/bottom\n */\n offsetY?: Numeric\n}\n\nexport const Badge: ForwardRefExoticComponent<\n BadgeProps & HTMLAttributes<ElementRef<typeof StyledBadge>>\n> = React.forwardRef(\n (\n { show = true, content, children, offsetX = 0, offsetY = 0, ...restProps },\n forwardRef\n ) => {\n if (!show) {\n return children as ReactElement\n }\n\n let offset = {}\n\n if (+offsetX !== 0 || +offsetY !== 0) {\n offset = {\n UNSAFE_style: {\n transform: `translate(${offsetX}px, ${offsetY}px)`,\n },\n }\n }\n\n const badgeProps = {\n ...restProps,\n ...offset,\n }\n\n return (\n <StyledBadgeContainer\n data-testid={process.env.NODE_ENV === 'test' ? 'badge' : undefined}\n >\n <StyledBadgeWrapper>\n {content !== undefined ? (\n <StyledBadge {...badgeProps} ref={forwardRef}>\n {content}\n </StyledBadge>\n ) : (\n <StyledDot {...badgeProps} ref={forwardRef} />\n )}\n </StyledBadgeWrapper>\n {children}\n </StyledBadgeContainer>\n )\n }\n)\n"],"names":[],"mappings":";;;;;AAKa,MAAA,oBAAA,GAAuB,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EACxD,QAAU,EAAA,UAAA;AAAA,EACV,OAAS,EAAA,MAAA;AACX,CAAC,CAAA,CAAA;AAED,MAAM,YAAoB,GAAA;AAAA,EACxB,UAAY,EAAA,QAAA;AAAA,EACZ,eAAiB,EAAA,+BAAA;AAAA,EACjB,WAAa,EAAA,0BAAA;AAAA,EACb,YAAc,EAAA,OAAA;AAAA,EACd,KAAO,EAAA,wBAAA;AAAA,EACP,OAAS,EAAA,MAAA;AAAA,EACT,cAAgB,EAAA,QAAA;AAAA,EAChB,QAAU,EAAA,UAAA;AAAA,EACV,aAAe,EAAA,MAAA;AAAA,EACf,MAAQ,EAAA,CAAA;AAAA,EACR,QAAU,EAAA;AAAA,IACR,QAAU,EAAA;AAAA,MACR,IAAM,EAAA;AAAA,QACJ,eAAiB,EAAA,sBAAA;AAAA,QACjB,WAAa,EAAA,iBAAA;AAAA,QACb,KAAO,EAAA,eAAA;AAAA,OACT;AAAA,KACF;AAAA,GACF;AACF,CAAA,CAAA;AAEa,MAAA,WAAA,GAAc,MAAO,CAAA,SAAA,CAAU,GAAK,EAAA;AAAA,EAC/C,WAAa,EAAA,CAAA;AAAA,EACb,WAAa,EAAA,OAAA;AAAA,EACb,SAAW,EAAA,YAAA;AAAA,EACX,UAAY,EAAA,sBAAA;AAAA,EACZ,QAAU,EAAA,MAAA;AAAA,EACV,UAAY,EAAA,GAAA;AAAA,EACZ,MAAQ,EAAA,MAAA;AAAA,EACR,IAAM,EAAA,KAAA;AAAA,EACN,QAAU,EAAA,MAAA;AAAA,EACV,OAAS,EAAA,SAAA;AAAA,EACT,GAAK,EAAA,KAAA;AAAA,EACL,SAAW,EAAA,kBAAA;AA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,CAAa,MAAO,CAAA,OAAA,EAAA,MAAA,CAAA,CAAO,MAAO,CAAA,OAAA,EAAA,KAAA,CAAA;AAAA,SAC/C;AAAA,OACF,CAAA;AAAA,KACF;AAEA,IAAA,MAAM,UAAa,GAAA;AAAA,MACjB,GAAG,SAAA;AAAA,MACH,GAAG,MAAA;AAAA,KACL,CAAA;AAEA,IACE,uBAAA,IAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,aAAa,EAAA,OAAA,CAAQ,GAAI,CAAA,QAAA,KAAa,SAAS,OAAU,GAAA,KAAA,CAAA;AAAA,QAEzD,QAAA,EAAA;AAAA,0BAAA,GAAA,CAAC,sBACE,QAAY,EAAA,OAAA,KAAA,KAAA,CAAA,mBACV,GAAA,CAAA,WAAA,EAAA,EAAa,GAAG,UAAY,EAAA,GAAA,EAAK,UAC/B,EAAA,QAAA,EAAA,OAAA,EACH,oBAEC,GAAA,CAAA,SAAA,EAAA,EAAW,GAAG,UAAY,EAAA,GAAA,EAAK,YAAY,CAEhD,EAAA,CAAA;AAAA,UACC,QAAA;AAAA,SAAA;AAAA,OAAA;AAAA,KACH,CAAA;AAAA,GAEJ;AACF;;;;"}
package/dist/types.d.ts CHANGED
@@ -19,6 +19,7 @@ declare const StyledBadge: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
19
19
  readonly lg: "4px";
20
20
  };
21
21
  colors: {
22
+ readonly black: any;
22
23
  readonly 'blue-100': any;
23
24
  readonly 'blue-200': any;
24
25
  readonly 'blue-300': any;
@@ -38,6 +39,15 @@ declare const StyledBadge: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
38
39
  readonly 'gray-700': any;
39
40
  readonly 'gray-800': any;
40
41
  readonly 'gray-900': any;
42
+ readonly 'green-100': any;
43
+ readonly 'green-200': any;
44
+ readonly 'green-300': any;
45
+ readonly 'green-400': any;
46
+ readonly 'green-500': any;
47
+ readonly 'green-600': any;
48
+ readonly 'green-700': any;
49
+ readonly 'green-800': any;
50
+ readonly 'green-900': any;
41
51
  readonly 'indigo-100': any;
42
52
  readonly 'indigo-200': any;
43
53
  readonly 'indigo-300': any;
@@ -56,6 +66,8 @@ declare const StyledBadge: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
56
66
  readonly 'red-700': any;
57
67
  readonly 'red-800': any;
58
68
  readonly 'red-900': any;
69
+ readonly transparent: any;
70
+ readonly white: any;
59
71
  readonly 'yellow-100': any;
60
72
  readonly 'yellow-200': any;
61
73
  readonly 'yellow-300': any;
@@ -65,113 +77,112 @@ declare const StyledBadge: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
65
77
  readonly 'yellow-700': any;
66
78
  readonly 'yellow-800': any;
67
79
  readonly 'yellow-900': any;
68
- readonly 'green-100': any;
69
- readonly 'green-200': any;
70
- readonly 'green-300': any;
71
- readonly 'green-400': any;
72
- readonly 'green-500': any;
73
- readonly 'green-600': any;
74
- readonly 'green-700': any;
75
- readonly 'green-800': any;
76
- readonly 'green-900': any;
77
- readonly black: any;
78
- readonly white: any;
79
- readonly transparent: any;
80
- readonly 'background-danger'?: any;
81
- readonly 'background-danger-hover'?: any;
82
- readonly 'background-danger-prominent'?: any;
83
- readonly 'background-danger-prominent-active'?: any;
84
- readonly 'background-danger-prominent-hover'?: any;
85
- readonly 'background-neutrals'?: any;
86
- readonly 'background-neutrals-container'?: any;
87
- readonly 'background-neutrals-controls-disabled'?: any;
88
- readonly 'background-neutrals-disabled'?: any;
89
- readonly 'background-neutrals-inactive'?: any;
90
- readonly 'background-neutrals-inactive-hover'?: any;
91
- readonly 'background-neutrals-inverted'?: any;
92
- readonly 'background-neutrals-inverted-subtle'?: any;
93
- readonly 'background-neutrals-page'?: any;
94
- readonly 'background-neutrals-page-subtle'?: any;
95
- readonly 'background-neutrals-scrolls'?: any;
96
- readonly 'background-neutrals-scrolls-hover'?: any;
97
- readonly 'background-neutrals-subtle'?: any;
98
- readonly 'background-neutrals-subtle-active'?: any;
99
- readonly 'background-neutrals-subtle-hover'?: any;
100
- readonly 'background-primary-prominent'?: any;
101
- readonly 'background-primary-prominent-active'?: any;
102
- readonly 'background-primary-prominent-hover'?: any;
103
- readonly 'background-primary-prominent-selected'?: any;
104
- readonly 'background-primary-subtle'?: any;
105
- readonly 'background-primary-subtle-active'?: any;
106
- readonly 'background-primary-subtle-hover'?: any;
107
- readonly 'background-primary-subtle-selected'?: any;
108
- readonly 'background-success'?: any;
109
- readonly 'background-warning-prominent'?: any;
110
- readonly 'background-warning-subtle'?: any;
111
- readonly 'text-danger'?: any;
112
- readonly 'text-danger-active'?: any;
113
- readonly 'text-danger-hover'?: any;
114
- readonly 'text-danger-inverted'?: any;
115
- readonly 'text-neutrals'?: any;
116
- readonly 'text-neutrals-disabled'?: any;
117
- readonly 'text-neutrals-inverted'?: any;
118
- readonly 'text-neutrals-placeholder'?: any;
119
- readonly 'text-neutrals-placeholder-only'?: any;
120
- readonly 'text-neutrals-subtle'?: any;
121
- readonly 'text-neutrals-subtle-active'?: any;
122
- readonly 'text-neutrals-subtle-hover'?: any;
123
- readonly 'text-primary'?: any;
124
- readonly 'text-primary-active'?: any;
125
- readonly 'text-primary-hover'?: any;
126
- readonly 'text-primary-inverted'?: any;
127
- readonly 'text-primary-inverted-subtle'?: any;
128
- readonly 'text-primary-selected'?: any;
129
- readonly 'text-success'?: any;
130
- readonly 'text-warning'?: any;
131
- readonly 'icon-danger'?: any;
132
- readonly 'icon-danger-active'?: any;
133
- readonly 'icon-danger-hover'?: any;
134
- readonly 'icon-danger-inverted'?: any;
135
- readonly 'icon-neutrals'?: any;
136
- readonly 'icon-neutrals-disabled'?: any;
137
- readonly 'icon-neutrals-inactive'?: any;
138
- readonly 'icon-neutrals-inactive-hover'?: any;
139
- readonly 'icon-neutrals-inverted'?: any;
140
- readonly 'icon-neutrals-search'?: any;
141
- readonly 'icon-neutrals-subtle'?: any;
142
- readonly 'icon-neutrals-text'?: any;
143
- readonly 'icon-primary'?: any;
144
- readonly 'icon-primary-active'?: any;
145
- readonly 'icon-primary-hover'?: any;
146
- readonly 'icon-primary-inverted'?: any;
147
- readonly 'icon-primary-selected'?: any;
148
- readonly 'icon-success'?: any;
149
- readonly 'icon-success-inverted'?: any;
150
- readonly 'icon-warning'?: any;
151
- readonly 'icon-warning-prominent'?: any;
152
- readonly 'border-danger'?: any;
153
- readonly 'border-danger-active'?: any;
154
- readonly 'border-danger-hover'?: any;
155
- readonly 'border-focus-inner'?: any;
156
- readonly 'border-focus-middle'?: any;
157
- readonly 'border-focus-outer'?: any;
158
- readonly 'border-neutrals'?: any;
159
- readonly 'border-neutrals-active'?: any;
160
- readonly 'border-neutrals-controls'?: any;
161
- readonly 'border-neutrals-controls-disabled'?: any;
162
- readonly 'border-neutrals-disabled'?: any;
163
- readonly 'border-neutrals-hover'?: any;
164
- readonly 'border-neutrals-inverted'?: any;
165
- readonly 'border-neutrals-subtle'?: any;
166
- readonly 'border-neutrals-text-subtle'?: any;
167
- readonly 'border-neutrals-text-subtle-active'?: any;
168
- readonly 'border-neutrals-text-subtle-hover'?: any;
169
- readonly 'border-primary'?: any;
170
- readonly 'border-primary-active'?: any;
171
- readonly 'border-primary-hover'?: any;
172
- readonly 'border-primary-inverted'?: any;
173
- readonly 'border-success'?: any;
174
- readonly 'border-warning'?: any;
80
+ "background-alpha-active"?: any;
81
+ "background-alpha-hover"?: any;
82
+ "background-danger-prominent"?: any;
83
+ "background-danger-prominent-active"?: any;
84
+ "background-danger-prominent-hover"?: any;
85
+ "background-danger-subtle"?: any;
86
+ "background-danger-subtle-active"?: any;
87
+ "background-danger-subtle-hover"?: any;
88
+ "background-neutrals"?: any;
89
+ "background-neutrals-active"?: any;
90
+ "background-neutrals-container"?: any;
91
+ "background-neutrals-controls-disabled"?: any;
92
+ "background-neutrals-disabled"?: any;
93
+ "background-neutrals-hover"?: any;
94
+ "background-neutrals-inactive"?: any;
95
+ "background-neutrals-inactive-hover"?: any;
96
+ "background-neutrals-inverted"?: any;
97
+ "background-neutrals-inverted-subtle"?: any;
98
+ "background-neutrals-page"?: any;
99
+ "background-neutrals-page-subtle"?: any;
100
+ "background-neutrals-scrolls"?: any;
101
+ "background-neutrals-scrolls-hover"?: any;
102
+ "background-neutrals-subtle"?: any;
103
+ "background-neutrals-subtle-active"?: any;
104
+ "background-neutrals-subtle-hover"?: any;
105
+ "background-primary-prominent"?: any;
106
+ "background-primary-prominent-active"?: any;
107
+ "background-primary-prominent-hover"?: any;
108
+ "background-primary-prominent-selected"?: any;
109
+ "background-primary-subtle"?: any;
110
+ "background-primary-subtle-active"?: any;
111
+ "background-primary-subtle-hover"?: any;
112
+ "background-primary-subtle-selected"?: any;
113
+ "background-success"?: any;
114
+ "background-warning-prominent"?: any;
115
+ "background-warning-subtle"?: any;
116
+ "border-danger"?: any;
117
+ "border-danger-active"?: any;
118
+ "border-danger-hover"?: any;
119
+ "border-focus-inner"?: any;
120
+ "border-focus-middle"?: any;
121
+ "border-focus-outer"?: any;
122
+ "border-neutrals"?: any;
123
+ "border-neutrals-active"?: any;
124
+ "border-neutrals-controls"?: any;
125
+ "border-neutrals-controls-disabled"?: any;
126
+ "border-neutrals-disabled"?: any;
127
+ "border-neutrals-hover"?: any;
128
+ "border-neutrals-inverted"?: any;
129
+ "border-neutrals-subtle"?: any;
130
+ "border-neutrals-text"?: any;
131
+ "border-neutrals-text-active"?: any;
132
+ "border-neutrals-text-hover"?: any;
133
+ "border-neutrals-text-subtle"?: any;
134
+ "border-neutrals-text-subtle-active"?: any;
135
+ "border-neutrals-text-subtle-hover"?: any;
136
+ "border-neutrals-transparent"?: any;
137
+ "border-primary"?: any;
138
+ "border-primary-active"?: any;
139
+ "border-primary-hover"?: any;
140
+ "border-primary-inverted"?: any;
141
+ "border-success"?: any;
142
+ "border-warning"?: any;
143
+ "icon-danger"?: any;
144
+ "icon-danger-active"?: any;
145
+ "icon-danger-hover"?: any;
146
+ "icon-danger-inverted"?: any;
147
+ "icon-neutrals"?: any;
148
+ "icon-neutrals-disabled"?: any;
149
+ "icon-neutrals-inactive"?: any;
150
+ "icon-neutrals-inactive-hover"?: any;
151
+ "icon-neutrals-inverted"?: any;
152
+ "icon-neutrals-search"?: any;
153
+ "icon-neutrals-subtle"?: any;
154
+ "icon-neutrals-text"?: any;
155
+ "icon-primary"?: any;
156
+ "icon-primary-active"?: any;
157
+ "icon-primary-hover"?: any;
158
+ "icon-primary-inverted"?: any;
159
+ "icon-primary-selected"?: any;
160
+ "icon-success"?: any;
161
+ "icon-success-inverted"?: any;
162
+ "icon-warning"?: any;
163
+ "icon-warning-prominent"?: any;
164
+ "text-danger"?: any;
165
+ "text-danger-active"?: any;
166
+ "text-danger-hover"?: any;
167
+ "text-danger-inverted"?: any;
168
+ "text-neutrals"?: any;
169
+ "text-neutrals-active"?: any;
170
+ "text-neutrals-disabled"?: any;
171
+ "text-neutrals-hover"?: any;
172
+ "text-neutrals-inverted"?: any;
173
+ "text-neutrals-placeholder"?: any;
174
+ "text-neutrals-placeholder-only"?: any;
175
+ "text-neutrals-subtle"?: any;
176
+ "text-neutrals-subtle-active"?: any;
177
+ "text-neutrals-subtle-hover"?: any;
178
+ "text-primary"?: any;
179
+ "text-primary-active"?: any;
180
+ "text-primary-hover"?: any;
181
+ "text-primary-inverted"?: any;
182
+ "text-primary-inverted-subtle"?: any;
183
+ "text-primary-selected"?: any;
184
+ "text-success"?: any;
185
+ "text-warning"?: any;
175
186
  };
176
187
  'font-sizes': {
177
188
  readonly 150: "0.75rem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-badge",
3
- "version": "0.3.12-use-press.0",
3
+ "version": "0.3.13-themes.0",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@mirohq/design-system-primitive": "^1.1.0",
30
- "@mirohq/design-system-types": "^0.6.0-use-press.0",
31
- "@mirohq/design-system-stitches": "^2.3.4-use-press.0"
30
+ "@mirohq/design-system-stitches": "^2.3.5-themes.0",
31
+ "@mirohq/design-system-types": "^0.6.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "rollup -c ../../../rollup.config.js",