@mirohq/design-system-base-button 0.4.12 → 0.4.13-themes.2

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
@@ -10,6 +10,7 @@ var interactions = require('@react-aria/interactions');
10
10
  var designSystemUsePress = require('@mirohq/design-system-use-press');
11
11
  var designSystemPrimitive = require('@mirohq/design-system-primitive');
12
12
  var designSystemStitches = require('@mirohq/design-system-stitches');
13
+ var designSystemStyles = require('@mirohq/design-system-styles');
13
14
 
14
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
16
 
@@ -32,7 +33,8 @@ const StyledBaseButton = designSystemStitches.styled(designSystemPrimitive.Primi
32
33
  },
33
34
  "&[aria-disabled]": {
34
35
  cursor: "default"
35
- }
36
+ },
37
+ ...designSystemStyles.focus.defaults
36
38
  });
37
39
 
38
40
  const BaseButton = React__default["default"].forwardRef(
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sources":["../src/base-button.styled.ts","../src/base-button.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nexport const sizes = {\n medium: '$8',\n large: '$10',\n xLarge: '$12',\n}\n\nexport const StyledBaseButton = styled(Primitive.button, {\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: '$50',\n cursor: 'pointer',\n\n '&[disabled]': {\n pointerEvents: 'none',\n },\n\n '&[aria-disabled]': {\n cursor: 'default',\n },\n})\n\nexport type StyledBaseButtonProps = ComponentPropsWithRef<\n typeof StyledBaseButton\n>\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\nimport { mergeProps } from '@react-aria/utils'\nimport { booleanify, removeEventProps } from '@mirohq/design-system-utils'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport type { PressProps } from '@mirohq/design-system-use-press'\n\nimport { StyledBaseButton } from './base-button.styled'\nimport type { StyledBaseButtonProps } from './base-button.styled'\n\n// DO NOT export it in the index\n// Fix TS2742, option 3.1 in the comment bellow\n// https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189\nexport type { HoverEvents } from '@react-types/shared'\n\ntype AsButtonProps = StyledBaseButtonProps & PressProps & HoverEvents\ntype AsLinkProps = AsButtonProps & AnchorHTMLAttributes<'a'> & { href: string }\n\nexport type BaseButtonProps = AsButtonProps | AsLinkProps\n\nexport const BaseButton = React.forwardRef<\n ElementRef<'button' | 'a'>,\n BaseButtonProps\n>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n children,\n asChild,\n role,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n const asLink = 'href' in restProps\n const { href, target, rel = '' } = restProps as AsLinkProps\n\n let elementProps = restProps\n\n if (booleanify(ariaDisabled)) {\n elementProps = removeEventProps(elementProps, ['onBlur', 'onFocus'])\n }\n\n const { pressProps, isPressed } = usePress({\n preventFocusOnPress: true,\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledBaseButton\n {...elementProps}\n data-pressed={isPressed ? '' : undefined}\n data-hovered={isHovered ? '' : undefined}\n asChild={asLink || asChild}\n disabled={disabled}\n role={role ?? (asChild === true ? 'button' : undefined)}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : undefined}\n tabIndex={disabled && (asLink || asChild === true) ? -1 : undefined}\n // Button can be an <a> but TS will never know because it will only happen in runtime via asChild\n // @ts-expect-error\n ref={forwardRef}\n >\n {asLink ? (\n <a\n href={href}\n target={target}\n rel={\n target === '_blank' ? `noopener noreferrer ${rel}`.trim() : rel\n }\n >\n {children}\n </a>\n ) : (\n children\n )}\n </StyledBaseButton>\n )\n }\n)\n"],"names":["styled","Primitive","React","booleanify","removeEventProps","usePress","useHover","mergeProps","jsx"],"mappings":";;;;;;;;;;;;;;;;;AAIO,MAAM,KAAQ,GAAA;AAAA,EACnB,MAAQ,EAAA,IAAA;AAAA,EACR,KAAO,EAAA,KAAA;AAAA,EACP,MAAQ,EAAA,KAAA;AACV,EAAA;AAEa,MAAA,gBAAA,GAAmBA,2BAAO,CAAAC,+BAAA,CAAU,MAAQ,EAAA;AAAA,EACvD,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,aAAA;AAAA,EACT,UAAY,EAAA,QAAA;AAAA,EACZ,SAAW,EAAA,YAAA;AAAA,EACX,YAAc,EAAA,KAAA;AAAA,EACd,MAAQ,EAAA,SAAA;AAAA,EAER,aAAe,EAAA;AAAA,IACb,aAAe,EAAA,MAAA;AAAA,GACjB;AAAA,EAEA,kBAAoB,EAAA;AAAA,IAClB,MAAQ,EAAA,SAAA;AAAA,GACV;AACF,CAAC,CAAA;;ACHM,MAAM,aAAaC,yBAAM,CAAA,UAAA;AAAA,EAI9B,CACE;AAAA,IACE,QAAW,GAAA,KAAA;AAAA,IACX,eAAiB,EAAA,YAAA;AAAA,IACjB,QAAA;AAAA,IACA,OAAA;AAAA,IACA,IAAA;AAAA,IACA,YAAA;AAAA,IACA,UAAA;AAAA,IACA,aAAA;AAAA,IACA,GAAG,SAAA;AAAA,KAEL,UACG,KAAA;AACH,IAAA,MAAM,SAAS,MAAU,IAAA,SAAA,CAAA;AACzB,IAAA,MAAM,EAAE,IAAA,EAAM,MAAQ,EAAA,GAAA,GAAM,IAAO,GAAA,SAAA,CAAA;AAEnC,IAAA,IAAI,YAAe,GAAA,SAAA,CAAA;AAEnB,IAAI,IAAAC,4BAAA,CAAW,YAAY,CAAG,EAAA;AAC5B,MAAA,YAAA,GAAeC,kCAAiB,CAAA,YAAA,EA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AS,GAAA,GAAA;AAAA,YAG7D,QAAA;AAAA,WAAA;AAAA,SAGH,GAAA,QAAA;AAAA,OAAA;AAAA,KAEJ,CAAA;AAAA,GAEJ;AACF;;;;;"}
1
+ {"version":3,"file":"main.js","sources":["../src/base-button.styled.ts","../src/base-button.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { focus } from '@mirohq/design-system-styles'\n\nexport const sizes = {\n medium: '$8',\n large: '$10',\n xLarge: '$12',\n}\n\nexport const StyledBaseButton = styled(Primitive.button, {\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: '$50',\n cursor: 'pointer',\n\n '&[disabled]': {\n pointerEvents: 'none',\n },\n\n '&[aria-disabled]': {\n cursor: 'default',\n },\n\n ...focus.defaults,\n})\n\nexport type StyledBaseButtonProps = ComponentPropsWithRef<\n typeof StyledBaseButton\n>\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\nimport { mergeProps } from '@react-aria/utils'\nimport { booleanify, removeEventProps } from '@mirohq/design-system-utils'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport type { PressProps } from '@mirohq/design-system-use-press'\n\nimport { StyledBaseButton } from './base-button.styled'\nimport type { StyledBaseButtonProps } from './base-button.styled'\n\n// DO NOT export it in the index\n// Fix TS2742, option 3.1 in the comment bellow\n// https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189\nexport type { HoverEvents } from '@react-types/shared'\n\ntype AsButtonProps = StyledBaseButtonProps & PressProps & HoverEvents\ntype AsLinkProps = AsButtonProps & AnchorHTMLAttributes<'a'> & { href: string }\n\nexport type BaseButtonProps = AsButtonProps | AsLinkProps\n\nexport const BaseButton = React.forwardRef<\n ElementRef<'button' | 'a'>,\n BaseButtonProps\n>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n children,\n asChild,\n role,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n const asLink = 'href' in restProps\n const { href, target, rel = '' } = restProps as AsLinkProps\n\n let elementProps = restProps\n\n if (booleanify(ariaDisabled)) {\n elementProps = removeEventProps(elementProps, ['onBlur', 'onFocus'])\n }\n\n const { pressProps, isPressed } = usePress({\n preventFocusOnPress: true,\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledBaseButton\n {...elementProps}\n data-pressed={isPressed ? '' : undefined}\n data-hovered={isHovered ? '' : undefined}\n asChild={asLink || asChild}\n disabled={disabled}\n role={role ?? (asChild === true ? 'button' : undefined)}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : undefined}\n tabIndex={disabled && (asLink || asChild === true) ? -1 : undefined}\n // Button can be an <a> but TS will never know because it will only happen in runtime via asChild\n // @ts-expect-error\n ref={forwardRef}\n >\n {asLink ? (\n <a\n href={href}\n target={target}\n rel={\n target === '_blank' ? `noopener noreferrer ${rel}`.trim() : rel\n }\n >\n {children}\n </a>\n ) : (\n children\n )}\n </StyledBaseButton>\n )\n }\n)\n"],"names":["styled","Primitive","focus","React","booleanify","removeEventProps","usePress","useHover","mergeProps","jsx"],"mappings":";;;;;;;;;;;;;;;;;;AAKO,MAAM,KAAQ,GAAA;AAAA,EACnB,MAAQ,EAAA,IAAA;AAAA,EACR,KAAO,EAAA,KAAA;AAAA,EACP,MAAQ,EAAA,KAAA;AACV,EAAA;AAEa,MAAA,gBAAA,GAAmBA,2BAAO,CAAAC,+BAAA,CAAU,MAAQ,EAAA;AAAA,EACvD,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,aAAA;AAAA,EACT,UAAY,EAAA,QAAA;AAAA,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Ae,YAAA,GAAAC,gBAAA,CAAW,YAAY,UAAU,CAAA,CAAA;AAEhD,IACE,uBAAAC,cAAA;AAAA,MAAC,gBAAA;AAAA,MAAA;AAAA,QACE,GAAG,YAAA;AAAA,QACJ,cAAA,EAAc,YAAY,EAAK,GAAA,KAAA,CAAA;AAAA,QAC/B,cAAA,EAAc,YAAY,EAAK,GAAA,KAAA,CAAA;AAAA,QAC/B,SAAS,MAAU,IAAA,OAAA;AAAA,QACnB,QAAA;AAAA,QACA,IAAM,EAAA,IAAA,IAAA,IAAA,GAAA,IAAA,GAAS,OAAY,KAAA,IAAA,GAAO,QAAW,GAAA,KAAA,CAAA;AAAA,QAC7C,eAAe,EAAAL,4BAAA,CAAW,YAAY,CAAA,GAAI,MAAS,GAAA,KAAA,CAAA;AAAA,QACnD,QAAU,EAAA,QAAA,KAAa,MAAU,IAAA,OAAA,KAAY,QAAQ,CAAK,CAAA,GAAA,KAAA,CAAA;AAAA,QAG1D,GAAK,EAAA,UAAA;AAAA,QAEJ,QACC,EAAA,MAAA,mBAAAK,cAAA;AAAA,UAAC,GAAA;AAAA,UAAA;AAAA,YACC,IAAA;AAAA,YACA,MAAA;AAAA,YACA,KACE,MAAW,KAAA,QAAA,GAAW,sBAAuB,CAAA,MAAA,CAAA,GAAA,CAAA,CAAM,MAAS,GAAA,GAAA;AAAA,YAG7D,QAAA;AAAA,WAAA;AAAA,SAGH,GAAA,QAAA;AAAA,OAAA;AAAA,KAEJ,CAAA;AAAA,GAEJ;AACF;;;;;"}
package/dist/module.js CHANGED
@@ -6,6 +6,7 @@ import { useHover } from '@react-aria/interactions';
6
6
  import { usePress } from '@mirohq/design-system-use-press';
7
7
  import { Primitive } from '@mirohq/design-system-primitive';
8
8
  import { styled } from '@mirohq/design-system-stitches';
9
+ import { focus } from '@mirohq/design-system-styles';
9
10
 
10
11
  const sizes = {
11
12
  medium: "$8",
@@ -24,7 +25,8 @@ const StyledBaseButton = styled(Primitive.button, {
24
25
  },
25
26
  "&[aria-disabled]": {
26
27
  cursor: "default"
27
- }
28
+ },
29
+ ...focus.defaults
28
30
  });
29
31
 
30
32
  const BaseButton = React.forwardRef(
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sources":["../src/base-button.styled.ts","../src/base-button.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\n\nexport const sizes = {\n medium: '$8',\n large: '$10',\n xLarge: '$12',\n}\n\nexport const StyledBaseButton = styled(Primitive.button, {\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: '$50',\n cursor: 'pointer',\n\n '&[disabled]': {\n pointerEvents: 'none',\n },\n\n '&[aria-disabled]': {\n cursor: 'default',\n },\n})\n\nexport type StyledBaseButtonProps = ComponentPropsWithRef<\n typeof StyledBaseButton\n>\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\nimport { mergeProps } from '@react-aria/utils'\nimport { booleanify, removeEventProps } from '@mirohq/design-system-utils'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport type { PressProps } from '@mirohq/design-system-use-press'\n\nimport { StyledBaseButton } from './base-button.styled'\nimport type { StyledBaseButtonProps } from './base-button.styled'\n\n// DO NOT export it in the index\n// Fix TS2742, option 3.1 in the comment bellow\n// https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189\nexport type { HoverEvents } from '@react-types/shared'\n\ntype AsButtonProps = StyledBaseButtonProps & PressProps & HoverEvents\ntype AsLinkProps = AsButtonProps & AnchorHTMLAttributes<'a'> & { href: string }\n\nexport type BaseButtonProps = AsButtonProps | AsLinkProps\n\nexport const BaseButton = React.forwardRef<\n ElementRef<'button' | 'a'>,\n BaseButtonProps\n>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n children,\n asChild,\n role,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n const asLink = 'href' in restProps\n const { href, target, rel = '' } = restProps as AsLinkProps\n\n let elementProps = restProps\n\n if (booleanify(ariaDisabled)) {\n elementProps = removeEventProps(elementProps, ['onBlur', 'onFocus'])\n }\n\n const { pressProps, isPressed } = usePress({\n preventFocusOnPress: true,\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledBaseButton\n {...elementProps}\n data-pressed={isPressed ? '' : undefined}\n data-hovered={isHovered ? '' : undefined}\n asChild={asLink || asChild}\n disabled={disabled}\n role={role ?? (asChild === true ? 'button' : undefined)}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : undefined}\n tabIndex={disabled && (asLink || asChild === true) ? -1 : undefined}\n // Button can be an <a> but TS will never know because it will only happen in runtime via asChild\n // @ts-expect-error\n ref={forwardRef}\n >\n {asLink ? (\n <a\n href={href}\n target={target}\n rel={\n target === '_blank' ? `noopener noreferrer ${rel}`.trim() : rel\n }\n >\n {children}\n </a>\n ) : (\n children\n )}\n </StyledBaseButton>\n )\n }\n)\n"],"names":[],"mappings":";;;;;;;;;AAIO,MAAM,KAAQ,GAAA;AAAA,EACnB,MAAQ,EAAA,IAAA;AAAA,EACR,KAAO,EAAA,KAAA;AAAA,EACP,MAAQ,EAAA,KAAA;AACV,EAAA;AAEa,MAAA,gBAAA,GAAmB,MAAO,CAAA,SAAA,CAAU,MAAQ,EAAA;AAAA,EACvD,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,aAAA;AAAA,EACT,UAAY,EAAA,QAAA;AAAA,EACZ,SAAW,EAAA,YAAA;AAAA,EACX,YAAc,EAAA,KAAA;AAAA,EACd,MAAQ,EAAA,SAAA;AAAA,EAER,aAAe,EAAA;AAAA,IACb,aAAe,EAAA,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AAA;AAAA,QAC/B,cAAA,EAAc,YAAY,EAAK,GAAA,KAAA,CAAA;AAAA,QAC/B,SAAS,MAAU,IAAA,OAAA;AAAA,QACnB,QAAA;AAAA,QACA,IAAM,EAAA,IAAA,IAAA,IAAA,GAAA,IAAA,GAAS,OAAY,KAAA,IAAA,GAAO,QAAW,GAAA,KAAA,CAAA;AAAA,QAC7C,eAAe,EAAA,UAAA,CAAW,YAAY,CAAA,GAAI,MAAS,GAAA,KAAA,CAAA;AAAA,QACnD,QAAU,EAAA,QAAA,KAAa,MAAU,IAAA,OAAA,KAAY,QAAQ,CAAK,CAAA,GAAA,KAAA,CAAA;AAAA,QAG1D,GAAK,EAAA,UAAA;AAAA,QAEJ,QACC,EAAA,MAAA,mBAAA,GAAA;AAAA,UAAC,GAAA;AAAA,UAAA;AAAA,YACC,IAAA;AAAA,YACA,MAAA;AAAA,YACA,KACE,MAAW,KAAA,QAAA,GAAW,sBAAuB,CAAA,MAAA,CAAA,GAAA,CAAA,CAAM,MAAS,GAAA,GAAA;AAAA,YAG7D,QAAA;AAAA,WAAA;AAAA,SAGH,GAAA,QAAA;AAAA,OAAA;AAAA,KAEJ,CAAA;AAAA,GAEJ;AACF;;;;"}
1
+ {"version":3,"file":"module.js","sources":["../src/base-button.styled.ts","../src/base-button.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { Primitive } from '@mirohq/design-system-primitive'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { focus } from '@mirohq/design-system-styles'\n\nexport const sizes = {\n medium: '$8',\n large: '$10',\n xLarge: '$12',\n}\n\nexport const StyledBaseButton = styled(Primitive.button, {\n all: 'unset',\n display: 'inline-flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: '$50',\n cursor: 'pointer',\n\n '&[disabled]': {\n pointerEvents: 'none',\n },\n\n '&[aria-disabled]': {\n cursor: 'default',\n },\n\n ...focus.defaults,\n})\n\nexport type StyledBaseButtonProps = ComponentPropsWithRef<\n typeof StyledBaseButton\n>\n","import React from 'react'\nimport type { ElementRef, AnchorHTMLAttributes } from 'react'\nimport { mergeProps } from '@react-aria/utils'\nimport { booleanify, removeEventProps } from '@mirohq/design-system-utils'\nimport { useHover } from '@react-aria/interactions'\nimport type { HoverEvents } from '@react-types/shared'\nimport { usePress } from '@mirohq/design-system-use-press'\nimport type { PressProps } from '@mirohq/design-system-use-press'\n\nimport { StyledBaseButton } from './base-button.styled'\nimport type { StyledBaseButtonProps } from './base-button.styled'\n\n// DO NOT export it in the index\n// Fix TS2742, option 3.1 in the comment bellow\n// https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189\nexport type { HoverEvents } from '@react-types/shared'\n\ntype AsButtonProps = StyledBaseButtonProps & PressProps & HoverEvents\ntype AsLinkProps = AsButtonProps & AnchorHTMLAttributes<'a'> & { href: string }\n\nexport type BaseButtonProps = AsButtonProps | AsLinkProps\n\nexport const BaseButton = React.forwardRef<\n ElementRef<'button' | 'a'>,\n BaseButtonProps\n>(\n (\n {\n disabled = false,\n 'aria-disabled': ariaDisabled,\n children,\n asChild,\n role,\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n ...restProps\n },\n forwardRef\n ) => {\n const asLink = 'href' in restProps\n const { href, target, rel = '' } = restProps as AsLinkProps\n\n let elementProps = restProps\n\n if (booleanify(ariaDisabled)) {\n elementProps = removeEventProps(elementProps, ['onBlur', 'onFocus'])\n }\n\n const { pressProps, isPressed } = usePress({\n preventFocusOnPress: true,\n disabled: disabled || booleanify(ariaDisabled),\n ...elementProps,\n })\n\n const { hoverProps, isHovered } = useHover({\n onHoverStart,\n onHoverEnd,\n onHoverChange,\n })\n\n elementProps = mergeProps(pressProps, hoverProps)\n\n return (\n <StyledBaseButton\n {...elementProps}\n data-pressed={isPressed ? '' : undefined}\n data-hovered={isHovered ? '' : undefined}\n asChild={asLink || asChild}\n disabled={disabled}\n role={role ?? (asChild === true ? 'button' : undefined)}\n aria-disabled={booleanify(ariaDisabled) ? 'true' : undefined}\n tabIndex={disabled && (asLink || asChild === true) ? -1 : undefined}\n // Button can be an <a> but TS will never know because it will only happen in runtime via asChild\n // @ts-expect-error\n ref={forwardRef}\n >\n {asLink ? (\n <a\n href={href}\n target={target}\n rel={\n target === '_blank' ? `noopener noreferrer ${rel}`.trim() : rel\n }\n >\n {children}\n </a>\n ) : (\n children\n )}\n </StyledBaseButton>\n )\n }\n)\n"],"names":[],"mappings":";;;;;;;;;;AAKO,MAAM,KAAQ,GAAA;AAAA,EACnB,MAAQ,EAAA,IAAA;AAAA,EACR,KAAO,EAAA,KAAA;AAAA,EACP,MAAQ,EAAA,KAAA;AACV,EAAA;AAEa,MAAA,gBAAA,GAAmB,MAAO,CAAA,SAAA,CAAU,MAAQ,EAAA;AAAA,EACvD,GAAK,EAAA,OAAA;AAAA,EACL,OAAS,EAAA,aAAA;AAAA,EACT,UAAY,EAAA,QAAA;AAAA,EACZ,SAAW,EAAA,YAAA;AAAA,EACX,YAAc,EAAA,KAAA;AAAA,EACd,MAAQ,EAAA,SAAA;AAAA,EAER,aAAe,EAAA;AAAA,IACb,aAAe,EAAA,MAAA;AAAA,GACjB;AAAA,EAEA,kBAAoB,EAAA;AAAA,IAClB,MAAQ,EAAA,SAAA;AAAA,GACV;AAAA,EAEA,GAAG,KAAM,CAAA,QAAA;AACX,CAAC,CAAA;;ACNM,MAAM,aAAa,KAAM,CAAA,UAAA;AAAA,EAI9B,CACE;AAAA,IACE,QAAW,GAAA,KAAA;AAAA,IACX,eAAiB,EAAA,YAAA;AAAA,IACjB,QAAA;AAAA,IACA,OAAA;AAAA,IACA,IAAA;AAAA,IACA,YAAA;AAAA,IACA,UAAA;AAAA,IACA,aAAA;AAAA,IACA,GAAG,SAAA;AAAA,KAEL,UACG,KAAA;AACH,IAAA,MAAM,SAAS,MAAU,IAAA,SAAA,CAAA;AACzB,IAAA,MAAM,EAAE,IAAA,EAAM,MAAQ,EAAA,GAAA,GAAM,IAAO,GAAA,SAAA,CAAA;AAEnC,IAAA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YACC,IAAA;AAAA,YACA,MAAA;AAAA,YACA,KACE,MAAW,KAAA,QAAA,GAAW,sBAAuB,CAAA,MAAA,CAAA,GAAA,CAAA,CAAM,MAAS,GAAA,GAAA;AAAA,YAG7D,QAAA;AAAA,WAAA;AAAA,SAGH,GAAA,QAAA;AAAA,OAAA;AAAA,KAEJ,CAAA;AAAA,GAEJ;AACF;;;;"}
package/dist/types.d.ts CHANGED
@@ -25,6 +25,7 @@ declare const StyledBaseButton: react.ForwardRefExoticComponent<Omit<Omit<{}, ne
25
25
  readonly lg: "4px";
26
26
  };
27
27
  colors: {
28
+ readonly black: any;
28
29
  readonly 'blue-100': any;
29
30
  readonly 'blue-200': any;
30
31
  readonly 'blue-300': any;
@@ -44,6 +45,15 @@ declare const StyledBaseButton: react.ForwardRefExoticComponent<Omit<Omit<{}, ne
44
45
  readonly 'gray-700': any;
45
46
  readonly 'gray-800': any;
46
47
  readonly 'gray-900': any;
48
+ readonly 'green-100': any;
49
+ readonly 'green-200': any;
50
+ readonly 'green-300': any;
51
+ readonly 'green-400': any;
52
+ readonly 'green-500': any;
53
+ readonly 'green-600': any;
54
+ readonly 'green-700': any;
55
+ readonly 'green-800': any;
56
+ readonly 'green-900': any;
47
57
  readonly 'indigo-100': any;
48
58
  readonly 'indigo-200': any;
49
59
  readonly 'indigo-300': any;
@@ -62,6 +72,8 @@ declare const StyledBaseButton: react.ForwardRefExoticComponent<Omit<Omit<{}, ne
62
72
  readonly 'red-700': any;
63
73
  readonly 'red-800': any;
64
74
  readonly 'red-900': any;
75
+ readonly transparent: any;
76
+ readonly white: any;
65
77
  readonly 'yellow-100': any;
66
78
  readonly 'yellow-200': any;
67
79
  readonly 'yellow-300': any;
@@ -71,113 +83,112 @@ declare const StyledBaseButton: react.ForwardRefExoticComponent<Omit<Omit<{}, ne
71
83
  readonly 'yellow-700': any;
72
84
  readonly 'yellow-800': any;
73
85
  readonly 'yellow-900': any;
74
- readonly 'green-100': any;
75
- readonly 'green-200': any;
76
- readonly 'green-300': any;
77
- readonly 'green-400': any;
78
- readonly 'green-500': any;
79
- readonly 'green-600': any;
80
- readonly 'green-700': any;
81
- readonly 'green-800': any;
82
- readonly 'green-900': any;
83
- readonly black: any;
84
- readonly white: any;
85
- readonly transparent: any;
86
- readonly 'background-danger'?: any;
87
- readonly 'background-danger-hover'?: any;
88
- readonly 'background-danger-prominent'?: any;
89
- readonly 'background-danger-prominent-active'?: any;
90
- readonly 'background-danger-prominent-hover'?: any;
91
- readonly 'background-neutrals'?: any;
92
- readonly 'background-neutrals-container'?: any;
93
- readonly 'background-neutrals-controls-disabled'?: any;
94
- readonly 'background-neutrals-disabled'?: any;
95
- readonly 'background-neutrals-inactive'?: any;
96
- readonly 'background-neutrals-inactive-hover'?: any;
97
- readonly 'background-neutrals-inverted'?: any;
98
- readonly 'background-neutrals-inverted-subtle'?: any;
99
- readonly 'background-neutrals-page'?: any;
100
- readonly 'background-neutrals-page-subtle'?: any;
101
- readonly 'background-neutrals-scrolls'?: any;
102
- readonly 'background-neutrals-scrolls-hover'?: any;
103
- readonly 'background-neutrals-subtle'?: any;
104
- readonly 'background-neutrals-subtle-active'?: any;
105
- readonly 'background-neutrals-subtle-hover'?: any;
106
- readonly 'background-primary-prominent'?: any;
107
- readonly 'background-primary-prominent-active'?: any;
108
- readonly 'background-primary-prominent-hover'?: any;
109
- readonly 'background-primary-prominent-selected'?: any;
110
- readonly 'background-primary-subtle'?: any;
111
- readonly 'background-primary-subtle-active'?: any;
112
- readonly 'background-primary-subtle-hover'?: any;
113
- readonly 'background-primary-subtle-selected'?: any;
114
- readonly 'background-success'?: any;
115
- readonly 'background-warning-prominent'?: any;
116
- readonly 'background-warning-subtle'?: any;
117
- readonly 'text-danger'?: any;
118
- readonly 'text-danger-active'?: any;
119
- readonly 'text-danger-hover'?: any;
120
- readonly 'text-danger-inverted'?: any;
121
- readonly 'text-neutrals'?: any;
122
- readonly 'text-neutrals-disabled'?: any;
123
- readonly 'text-neutrals-inverted'?: any;
124
- readonly 'text-neutrals-placeholder'?: any;
125
- readonly 'text-neutrals-placeholder-only'?: any;
126
- readonly 'text-neutrals-subtle'?: any;
127
- readonly 'text-neutrals-subtle-active'?: any;
128
- readonly 'text-neutrals-subtle-hover'?: any;
129
- readonly 'text-primary'?: any;
130
- readonly 'text-primary-active'?: any;
131
- readonly 'text-primary-hover'?: any;
132
- readonly 'text-primary-inverted'?: any;
133
- readonly 'text-primary-inverted-subtle'?: any;
134
- readonly 'text-primary-selected'?: any;
135
- readonly 'text-success'?: any;
136
- readonly 'text-warning'?: any;
137
- readonly 'icon-danger'?: any;
138
- readonly 'icon-danger-active'?: any;
139
- readonly 'icon-danger-hover'?: any;
140
- readonly 'icon-danger-inverted'?: any;
141
- readonly 'icon-neutrals'?: any;
142
- readonly 'icon-neutrals-disabled'?: any;
143
- readonly 'icon-neutrals-inactive'?: any;
144
- readonly 'icon-neutrals-inactive-hover'?: any;
145
- readonly 'icon-neutrals-inverted'?: any;
146
- readonly 'icon-neutrals-search'?: any;
147
- readonly 'icon-neutrals-subtle'?: any;
148
- readonly 'icon-neutrals-text'?: any;
149
- readonly 'icon-primary'?: any;
150
- readonly 'icon-primary-active'?: any;
151
- readonly 'icon-primary-hover'?: any;
152
- readonly 'icon-primary-inverted'?: any;
153
- readonly 'icon-primary-selected'?: any;
154
- readonly 'icon-success'?: any;
155
- readonly 'icon-success-inverted'?: any;
156
- readonly 'icon-warning'?: any;
157
- readonly 'icon-warning-prominent'?: any;
158
- readonly 'border-danger'?: any;
159
- readonly 'border-danger-active'?: any;
160
- readonly 'border-danger-hover'?: any;
161
- readonly 'border-focus-inner'?: any;
162
- readonly 'border-focus-middle'?: any;
163
- readonly 'border-focus-outer'?: any;
164
- readonly 'border-neutrals'?: any;
165
- readonly 'border-neutrals-active'?: any;
166
- readonly 'border-neutrals-controls'?: any;
167
- readonly 'border-neutrals-controls-disabled'?: any;
168
- readonly 'border-neutrals-disabled'?: any;
169
- readonly 'border-neutrals-hover'?: any;
170
- readonly 'border-neutrals-inverted'?: any;
171
- readonly 'border-neutrals-subtle'?: any;
172
- readonly 'border-neutrals-text-subtle'?: any;
173
- readonly 'border-neutrals-text-subtle-active'?: any;
174
- readonly 'border-neutrals-text-subtle-hover'?: any;
175
- readonly 'border-primary'?: any;
176
- readonly 'border-primary-active'?: any;
177
- readonly 'border-primary-hover'?: any;
178
- readonly 'border-primary-inverted'?: any;
179
- readonly 'border-success'?: any;
180
- readonly 'border-warning'?: any;
86
+ "background-alpha-active"?: any;
87
+ "background-alpha-hover"?: any;
88
+ "background-danger-prominent"?: any;
89
+ "background-danger-prominent-active"?: any;
90
+ "background-danger-prominent-hover"?: any;
91
+ "background-danger-subtle"?: any;
92
+ "background-danger-subtle-active"?: any;
93
+ "background-danger-subtle-hover"?: any;
94
+ "background-neutrals"?: any;
95
+ "background-neutrals-active"?: any;
96
+ "background-neutrals-container"?: any;
97
+ "background-neutrals-controls-disabled"?: any;
98
+ "background-neutrals-disabled"?: any;
99
+ "background-neutrals-hover"?: any;
100
+ "background-neutrals-inactive"?: any;
101
+ "background-neutrals-inactive-hover"?: any;
102
+ "background-neutrals-inverted"?: any;
103
+ "background-neutrals-inverted-subtle"?: any;
104
+ "background-neutrals-page"?: any;
105
+ "background-neutrals-page-subtle"?: any;
106
+ "background-neutrals-scrolls"?: any;
107
+ "background-neutrals-scrolls-hover"?: any;
108
+ "background-neutrals-subtle"?: any;
109
+ "background-neutrals-subtle-active"?: any;
110
+ "background-neutrals-subtle-hover"?: any;
111
+ "background-primary-prominent"?: any;
112
+ "background-primary-prominent-active"?: any;
113
+ "background-primary-prominent-hover"?: any;
114
+ "background-primary-prominent-selected"?: any;
115
+ "background-primary-subtle"?: any;
116
+ "background-primary-subtle-active"?: any;
117
+ "background-primary-subtle-hover"?: any;
118
+ "background-primary-subtle-selected"?: any;
119
+ "background-success"?: any;
120
+ "background-warning-prominent"?: any;
121
+ "background-warning-subtle"?: any;
122
+ "border-danger"?: any;
123
+ "border-danger-active"?: any;
124
+ "border-danger-hover"?: any;
125
+ "border-focus-inner"?: any;
126
+ "border-focus-middle"?: any;
127
+ "border-focus-outer"?: any;
128
+ "border-neutrals"?: any;
129
+ "border-neutrals-active"?: any;
130
+ "border-neutrals-controls"?: any;
131
+ "border-neutrals-controls-disabled"?: any;
132
+ "border-neutrals-disabled"?: any;
133
+ "border-neutrals-hover"?: any;
134
+ "border-neutrals-inverted"?: any;
135
+ "border-neutrals-subtle"?: any;
136
+ "border-neutrals-text"?: any;
137
+ "border-neutrals-text-active"?: any;
138
+ "border-neutrals-text-hover"?: any;
139
+ "border-neutrals-text-subtle"?: any;
140
+ "border-neutrals-text-subtle-active"?: any;
141
+ "border-neutrals-text-subtle-hover"?: any;
142
+ "border-neutrals-transparent"?: any;
143
+ "border-primary"?: any;
144
+ "border-primary-active"?: any;
145
+ "border-primary-hover"?: any;
146
+ "border-primary-inverted"?: any;
147
+ "border-success"?: any;
148
+ "border-warning"?: any;
149
+ "icon-danger"?: any;
150
+ "icon-danger-active"?: any;
151
+ "icon-danger-hover"?: any;
152
+ "icon-danger-inverted"?: any;
153
+ "icon-neutrals"?: any;
154
+ "icon-neutrals-disabled"?: any;
155
+ "icon-neutrals-inactive"?: any;
156
+ "icon-neutrals-inactive-hover"?: any;
157
+ "icon-neutrals-inverted"?: any;
158
+ "icon-neutrals-search"?: any;
159
+ "icon-neutrals-subtle"?: any;
160
+ "icon-neutrals-text"?: any;
161
+ "icon-primary"?: any;
162
+ "icon-primary-active"?: any;
163
+ "icon-primary-hover"?: any;
164
+ "icon-primary-inverted"?: any;
165
+ "icon-primary-selected"?: any;
166
+ "icon-success"?: any;
167
+ "icon-success-inverted"?: any;
168
+ "icon-warning"?: any;
169
+ "icon-warning-prominent"?: any;
170
+ "text-danger"?: any;
171
+ "text-danger-active"?: any;
172
+ "text-danger-hover"?: any;
173
+ "text-danger-inverted"?: any;
174
+ "text-neutrals"?: any;
175
+ "text-neutrals-active"?: any;
176
+ "text-neutrals-disabled"?: any;
177
+ "text-neutrals-hover"?: any;
178
+ "text-neutrals-inverted"?: any;
179
+ "text-neutrals-placeholder"?: any;
180
+ "text-neutrals-placeholder-only"?: any;
181
+ "text-neutrals-subtle"?: any;
182
+ "text-neutrals-subtle-active"?: any;
183
+ "text-neutrals-subtle-hover"?: any;
184
+ "text-primary"?: any;
185
+ "text-primary-active"?: any;
186
+ "text-primary-hover"?: any;
187
+ "text-primary-inverted"?: any;
188
+ "text-primary-inverted-subtle"?: any;
189
+ "text-primary-selected"?: any;
190
+ "text-success"?: any;
191
+ "text-warning"?: any;
181
192
  };
182
193
  'font-sizes': {
183
194
  readonly 150: "0.75rem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-base-button",
3
- "version": "0.4.12",
3
+ "version": "0.4.13-themes.2",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "@react-aria/utils": "^3.13.0",
31
31
  "@react-types/shared": "^3.16.0",
32
32
  "@mirohq/design-system-primitive": "^1.1.0",
33
- "@mirohq/design-system-stitches": "^2.3.4"
33
+ "@mirohq/design-system-stitches": "^2.3.5-themes.2"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "rollup -c ../../../../rollup.config.js",