@kvdbil/components 13.7.1 → 13.8.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.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),l=require("../../theme.js"),r=require("../Spinner/index.js"),i=require("../../typography/ButtonText/index.js"),a=require("./styles.js");function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var o=s(e),n=s(t);const u=n.default.button`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("styled-components"),l=require("../../theme.js"),r=require("../Spinner/index.js"),i=require("../../typography/ButtonText/index.js"),a=require("./styles.js");function s(x){return x&&typeof x=="object"&&"default"in x?x:{default:x}}var o=s(e),n=s(t);const d=n.default.button`
2
2
  ${i.BasicButtonFontStyle}
3
3
  box-sizing: border-box;
4
4
  outline: none;
@@ -10,7 +10,7 @@
10
10
  width: ${({fullWidth:x})=>x&&"100%"};
11
11
  display: flex;
12
12
  align-items: center;
13
- justify-content: ${({sufixIcon:x,prefixIcon:b,isLoading:z})=>z||!x&&!b?"center":"space-between"};
13
+ justify-content: ${({sufixIcon:x,prefixIcon:h,isLoading:S})=>S||!x&&!h?"center":"space-between"};
14
14
 
15
15
  ${({size:x="small"})=>a.fontSizes[x]||i.ButtonRegularTextStyle}
16
16
  ${({size:x})=>t.css`
@@ -19,21 +19,22 @@
19
19
  ${x==="large"&&a.largeSizeStyles()}
20
20
  `}
21
21
  background-color: transparent;
22
- transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
23
- ${({variant:x="solid",color:b="primary",disabled:z,theme:S})=>t.css`
24
- ${z?a.disabledColorStyles(S,x):a.colorStyles[x](S,b)}
22
+ transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease,
23
+ filter 0.3s;
24
+ ${({variant:x="solid",color:h="primary",colorShade:S="main",disabled:v,theme:$})=>t.css`
25
+ ${v?a.disabledColorStyles($,x):a.colorStyles[x]($,h,S)}
25
26
  `}
26
27
  &:focus-visible {
27
28
  box-shadow: 0px 0px 0px 1px ${({theme:x})=>x.colors.gray.light5};
28
29
  }
29
- `,d={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},f={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},c=n.default.span`
30
+ `,u={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},c={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},f=n.default.span`
30
31
  display: flex;
31
- margin-right: ${({type:x,size:b})=>x==="prefix"?f[b]:0};
32
- margin-left: ${({type:x,size:b})=>x==="sufix"?f[b]:0};
33
- font-size: ${({size:x})=>d[x]};
32
+ margin-right: ${({type:x,size:h})=>x==="prefix"?c[h]:0};
33
+ margin-left: ${({type:x,size:h})=>x==="sufix"?c[h]:0};
34
+ font-size: ${({size:x})=>u[x]};
34
35
  opacity: ${({isLoading:x})=>x?0:1};
35
36
  `,m=n.default(r.default)`
36
37
  position: absolute;
37
38
  `,p=n.default.span`
38
39
  opacity: ${({isLoading:x})=>x?0:1};
39
- `,g={smaller:1,small:1,regular:1.5,large:1.5},y=e.forwardRef(({size:x="small",color:b="primary",variant:z="solid",fullWidth:S=!1,isDisabled:j=!1,isLoading:$=!1,children:q,sufixIcon:v,prefixIcon:E,minWidth:B,as:I="button",...W},w)=>{return o.default.createElement(u,{...W,as:I,minWidth:B,color:b,disabled:j||$,fullWidth:S,theme:l.default,variant:z,size:x,isLoading:$,ref:w,prefixIcon:E,sufixIcon:v},o.default.createElement(o.default.Fragment,null,E&&o.default.createElement(c,{size:x,type:"prefix",isLoading:$},E),(L=$,typeof(h=q)=="string"||typeof h=="number"?o.default.createElement(p,{isLoading:L},h):o.default.isValidElement(h)?o.default.cloneElement(h,{style:{...h.props.style,opacity:L?0:1}}):h),v&&o.default.createElement(c,{size:x,type:"sufix",isLoading:$},v),$&&o.default.createElement(m,{color:l.default.colors.gray.light1,size:g[x]})));var h,L});y.displayName="Button",exports.Button=y,exports.default=y;
40
+ `,g={smaller:1,small:1,regular:1.5,large:1.5},y=e.forwardRef(({size:x="small",color:h="primary",colorShade:S="main",variant:v="solid",fullWidth:$=!1,isDisabled:q=!1,isLoading:z=!1,children:B,sufixIcon:E,prefixIcon:L,minWidth:I,as:W="button",...w},k)=>{return o.default.createElement(d,{...w,as:W,minWidth:I,color:h,colorShade:S,disabled:q||z,fullWidth:$,theme:l.default,variant:v,size:x,isLoading:z,ref:k,prefixIcon:L,sufixIcon:E},o.default.createElement(o.default.Fragment,null,L&&o.default.createElement(f,{size:x,type:"prefix",isLoading:z},L),(j=z,typeof(b=B)=="string"||typeof b=="number"?o.default.createElement(p,{isLoading:j},b):o.default.isValidElement(b)?o.default.cloneElement(b,{style:{...b.props.style,opacity:j?0:1}}):b),E&&o.default.createElement(f,{size:x,type:"sufix",isLoading:z},E),z&&o.default.createElement(m,{color:l.default.colors.gray.light1,size:g[x]})));var b,j});y.displayName="Button",exports.Button=y,exports.default=y;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("../../typography/ButtonText/index.js");require("react"),require("styled-components");const r={smaller:o.ButtonSmallTextStyle,small:o.ButtonRegularTextStyle,regular:o.ButtonRegularTextStyle,large:o.ButtonLargeTextStyle},l=(s,a)=>`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("../../typography/ButtonText/index.js");require("react"),require("styled-components");const r={smaller:o.ButtonSmallTextStyle,small:o.ButtonRegularTextStyle,regular:o.ButtonRegularTextStyle,large:o.ButtonLargeTextStyle},e=(s,a)=>`
2
2
  color: ${s.colors[a].main};
3
3
  border: 2px solid ${s.colors[a].main};
4
4
  background-color: transparent;
@@ -12,7 +12,7 @@
12
12
  border: 2px solid ${s.colors[a].light};
13
13
  color: ${s.colors[a].light};
14
14
  }
15
- `,n=(s,a)=>`
15
+ `,l=(s,a)=>`
16
16
  color: ${a!=="neutral"?s.colors[a].main:s.colors.neutral.light};
17
17
  background-color: transparent;
18
18
 
@@ -23,30 +23,30 @@
23
23
  :active {
24
24
  color: ${s.colors[a].dark};
25
25
  }
26
- `,e=s=>`
26
+ `,n=s=>`
27
27
  color: ${s.colors.gray.light1};
28
28
  cursor: not-allowed;
29
- `,t={solid:(s,a)=>`
29
+ `,t={solid:(s,a,i)=>`
30
30
  color: ${s.colors.text.light};
31
- background-color: ${s.colors[a].main};
31
+ background-color: ${s.colors[a][i]};
32
32
 
33
33
  :hover {
34
34
  border-color: ${s.colors[a].dark};
35
- background-color: ${s.colors[a].dark};
35
+ filter: brightness(0.9)
36
36
  }
37
37
 
38
38
  :active {
39
39
  border-color: ${s.colors[a].light};
40
- background-color: ${s.colors[a].light}
40
+ filter: brightness(1.1)
41
41
  }
42
- `,outline:l,flat:n};exports.colorStyles=t,exports.disabledColorStyles=(s,a)=>a==="solid"?`
43
- ${e(s)};
42
+ `,outline:e,flat:l};exports.colorStyles=t,exports.disabledColorStyles=(s,a)=>a==="solid"?`
43
+ ${n(s)};
44
44
  background-color: ${s.colors.gray.light4};`:a==="outline"?`
45
- ${e(s)};
46
- border: 2px solid ${s.colors.gray.light1};`:e(s),exports.flatColorStyles=n,exports.fontSizes=r,exports.largeSizeStyles=()=>`
45
+ ${n(s)};
46
+ border: 2px solid ${s.colors.gray.light1};`:n(s),exports.flatColorStyles=l,exports.fontSizes=r,exports.largeSizeStyles=()=>`
47
47
  padding: 0.25rem 1.5rem;
48
48
  min-height: 3.75rem;
49
- `,exports.outlineColorStyles=l,exports.regularSizeStyles=()=>`
49
+ `,exports.outlineColorStyles=e,exports.regularSizeStyles=()=>`
50
50
  padding: 0.25rem 1.5rem;
51
51
  min-height: 3rem;
52
52
  `,exports.smallerAndSmallSizeStyles=()=>`
@@ -1,5 +1,5 @@
1
- import r,{forwardRef as w}from"react";import n,{css as y}from"styled-components";import f from"../../theme.js";import h from"../Spinner/index.js";import{BasicButtonFontStyle as C,ButtonRegularTextStyle as R}from"../../typography/ButtonText/index.js";import{fontSizes as T,smallerAndSmallSizeStyles as z,regularSizeStyles as A,largeSizeStyles as _,disabledColorStyles as k,colorStyles as F}from"./styles.js";const p=0,N=n.button`
2
- ${C}
1
+ import r,{forwardRef as h}from"react";import n,{css as f}from"styled-components";import g from"../../theme.js";import C from"../Spinner/index.js";import{BasicButtonFontStyle as R,ButtonRegularTextStyle as T}from"../../typography/ButtonText/index.js";import{fontSizes as z,smallerAndSmallSizeStyles as A,regularSizeStyles as _,largeSizeStyles as k,disabledColorStyles as F,colorStyles as N}from"./styles.js";const c=0,O=n.button`
2
+ ${R}
3
3
  box-sizing: border-box;
4
4
  outline: none;
5
5
  cursor: pointer;
@@ -12,28 +12,29 @@ import r,{forwardRef as w}from"react";import n,{css as y}from"styled-components"
12
12
  align-items: center;
13
13
  justify-content: ${({sufixIcon:e,prefixIcon:t,isLoading:s})=>!s&&(e||t)?"space-between":"center"};
14
14
 
15
- ${({size:e="small"})=>T[e]||R}
16
- ${({size:e})=>y`
17
- ${(e==="smaller"||e==="small")&&z()}
18
- ${e==="regular"&&A()}
19
- ${e==="large"&&_()}
15
+ ${({size:e="small"})=>z[e]||T}
16
+ ${({size:e})=>f`
17
+ ${(e==="smaller"||e==="small")&&A()}
18
+ ${e==="regular"&&_()}
19
+ ${e==="large"&&k()}
20
20
  `}
21
21
  background-color: transparent;
22
- transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
23
- ${({variant:e="solid",color:t="primary",disabled:s,theme:a})=>y`
24
- ${s?k(a,e):F[e](a,t)}
22
+ transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease,
23
+ filter 0.3s;
24
+ ${({variant:e="solid",color:t="primary",colorShade:s="main",disabled:m,theme:a})=>f`
25
+ ${m?F(a,e):N[e](a,t,s)}
25
26
  `}
26
27
  &:focus-visible {
27
28
  box-shadow: 0px 0px 0px 1px ${({theme:e})=>e.colors.gray.light5};
28
29
  }
29
- `,O={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},g={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},S=n.span`
30
+ `,v={smaller:"1rem",small:"1rem",regular:"1.5rem",large:"1.5rem"},S={smaller:"0.5rem",small:"0.5rem",regular:"1rem",large:"1rem"},$=n.span`
30
31
  display: flex;
31
- margin-right: ${({type:e,size:t})=>e==="prefix"?g[t]:0};
32
- margin-left: ${({type:e,size:t})=>e==="sufix"?g[t]:0};
33
- font-size: ${({size:e})=>O[e]};
34
- opacity: ${({isLoading:e})=>e?p:1};
35
- `,v=n(h)`
32
+ margin-right: ${({type:e,size:t})=>e==="prefix"?S[t]:0};
33
+ margin-left: ${({type:e,size:t})=>e==="sufix"?S[t]:0};
34
+ font-size: ${({size:e})=>v[e]};
35
+ opacity: ${({isLoading:e})=>e?c:1};
36
+ `,D=n(C)`
36
37
  position: absolute;
37
- `,D=n.span`
38
- opacity: ${({isLoading:e})=>e?p:1};
39
- `,G={smaller:1,small:1,regular:1.5,large:1.5},c=w(({size:e="small",color:t="primary",variant:s="solid",fullWidth:a=!1,isDisabled:$=!1,isLoading:o=!1,children:b,sufixIcon:m,prefixIcon:i,minWidth:d,as:x="button",...E},B)=>{const j=(l,u)=>typeof l=="string"||typeof l=="number"?r.createElement(D,{isLoading:u},l):r.isValidElement(l)?r.cloneElement(l,{style:{...l.props.style,opacity:u?p:1}}):l;return r.createElement(N,{...E,as:x,minWidth:d,color:t,disabled:$||o,fullWidth:a,theme:f,variant:s,size:e,isLoading:o,ref:B,prefixIcon:i,sufixIcon:m},r.createElement(r.Fragment,null,i&&r.createElement(S,{size:e,type:"prefix",isLoading:o},i),j(b,o),m&&r.createElement(S,{size:e,type:"sufix",isLoading:o},m),o&&r.createElement(v,{color:f.colors.gray.light1,size:G[e]})))});c.displayName="Button";export{c as Button,c as default};
38
+ `,G=n.span`
39
+ opacity: ${({isLoading:e})=>e?c:1};
40
+ `,M={smaller:1,small:1,regular:1.5,large:1.5},u=h(({size:e="small",color:t="primary",colorShade:s="main",variant:m="solid",fullWidth:a=!1,isDisabled:b=!1,isLoading:o=!1,children:d,sufixIcon:i,prefixIcon:p,minWidth:x,as:E="button",...B},j)=>{const w=(l,y)=>typeof l=="string"||typeof l=="number"?r.createElement(G,{isLoading:y},l):r.isValidElement(l)?r.cloneElement(l,{style:{...l.props.style,opacity:y?c:1}}):l;return r.createElement(O,{...B,as:E,minWidth:x,color:t,colorShade:s,disabled:b||o,fullWidth:a,theme:g,variant:m,size:e,isLoading:o,ref:j,prefixIcon:p,sufixIcon:i},r.createElement(r.Fragment,null,p&&r.createElement($,{size:e,type:"prefix",isLoading:o},p),w(d,o),i&&r.createElement($,{size:e,type:"sufix",isLoading:o},i),o&&r.createElement(D,{color:g.colors.gray.light1,size:M[e]})))});u.displayName="Button";export{u as Button,u as default};
@@ -1,26 +1,26 @@
1
- import{ButtonSmallTextStyle as a,ButtonRegularTextStyle as s,ButtonLargeTextStyle as c}from"../../typography/ButtonText/index.js";import"react";import"styled-components";const i={smaller:a,small:s,regular:s,large:c},d=()=>`
1
+ import{ButtonSmallTextStyle as e,ButtonRegularTextStyle as t,ButtonLargeTextStyle as a}from"../../typography/ButtonText/index.js";import"react";import"styled-components";const c={smaller:e,small:t,regular:t,large:a},d=()=>`
2
2
  padding: 0.25rem 0.75rem;
3
3
  min-height: 2.5rem;
4
- `,e=()=>`
4
+ `,g=()=>`
5
5
  padding: 0.25rem 1.5rem;
6
6
  min-height: 3rem;
7
- `,g=()=>`
7
+ `,u=()=>`
8
8
  padding: 0.25rem 1.5rem;
9
9
  min-height: 3.75rem;
10
- `,u=(o,r)=>`
10
+ `,y=(o,r,n)=>`
11
11
  color: ${o.colors.text.light};
12
- background-color: ${o.colors[r].main};
12
+ background-color: ${o.colors[r][n]};
13
13
 
14
14
  :hover {
15
15
  border-color: ${o.colors[r].dark};
16
- background-color: ${o.colors[r].dark};
16
+ filter: brightness(0.9)
17
17
  }
18
18
 
19
19
  :active {
20
20
  border-color: ${o.colors[r].light};
21
- background-color: ${o.colors[r].light}
21
+ filter: brightness(1.1)
22
22
  }
23
- `,t=(o,r)=>`
23
+ `,s=(o,r)=>`
24
24
  color: ${o.colors[r].main};
25
25
  border: 2px solid ${o.colors[r].main};
26
26
  background-color: transparent;
@@ -34,7 +34,7 @@ import{ButtonSmallTextStyle as a,ButtonRegularTextStyle as s,ButtonLargeTextStyl
34
34
  border: 2px solid ${o.colors[r].light};
35
35
  color: ${o.colors[r].light};
36
36
  }
37
- `,n=(o,r)=>`
37
+ `,i=(o,r)=>`
38
38
  color: ${r!=="neutral"?o.colors[r].main:o.colors.neutral.light};
39
39
  background-color: transparent;
40
40
 
@@ -48,8 +48,8 @@ import{ButtonSmallTextStyle as a,ButtonRegularTextStyle as s,ButtonLargeTextStyl
48
48
  `,l=o=>`
49
49
  color: ${o.colors.gray.light1};
50
50
  cursor: not-allowed;
51
- `,$=(o,r)=>r==="solid"?`
51
+ `,S=(o,r)=>r==="solid"?`
52
52
  ${l(o)};
53
53
  background-color: ${o.colors.gray.light4};`:r==="outline"?`
54
54
  ${l(o)};
55
- border: 2px solid ${o.colors.gray.light1};`:l(o),y={solid:u,outline:t,flat:n};export{y as colorStyles,$ as disabledColorStyles,n as flatColorStyles,i as fontSizes,g as largeSizeStyles,t as outlineColorStyles,e as regularSizeStyles,d as smallerAndSmallSizeStyles};
55
+ border: 2px solid ${o.colors.gray.light1};`:l(o),$={solid:y,outline:s,flat:i};export{$ as colorStyles,S as disabledColorStyles,i as flatColorStyles,c as fontSizes,u as largeSizeStyles,s as outlineColorStyles,g as regularSizeStyles,d as smallerAndSmallSizeStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvdbil/components",
3
- "version": "13.7.1",
3
+ "version": "13.8.0",
4
4
  "sideEffects": false,
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -1,8 +1,9 @@
1
1
  import React, { ComponentPropsWithRef, CSSProperties, ReactNode } from 'react';
2
- import { Color, Variant, Size } from '../../Types';
2
+ import { Color, Variant, Size, ColorShade } from '../../Types';
3
3
  interface Props {
4
4
  size?: Size;
5
5
  color?: Color;
6
+ colorShade?: ColorShade;
6
7
  variant?: Variant;
7
8
  fullWidth?: boolean;
8
9
  style?: CSSProperties;
@@ -15,5 +16,5 @@ interface Props {
15
16
  as?: keyof JSX.IntrinsicElements;
16
17
  }
17
18
  export declare type ButtonProps = ComponentPropsWithRef<'button'> & Props;
18
- export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "form" | "slot" | "style" | "title" | "type" | "name" | "key" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "as" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "size" | "minWidth" | "fullWidth" | "sufixIcon" | "prefixIcon" | "isLoading" | "variant" | "isDisabled"> & React.RefAttributes<HTMLElement>>;
19
+ export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "form" | "slot" | "style" | "title" | "type" | "name" | "key" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "as" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "size" | "minWidth" | "fullWidth" | "sufixIcon" | "prefixIcon" | "isLoading" | "variant" | "colorShade" | "isDisabled"> & React.RefAttributes<HTMLElement>>;
19
20
  export default Button;
@@ -1,5 +1,5 @@
1
1
  import { Theme } from '../../theme';
2
- import { Color, Variant } from '../../Types';
2
+ import { Color, ColorShade, Variant } from '../../Types';
3
3
  export declare const fontSizes: {
4
4
  smaller: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
5
5
  small: import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
@@ -13,7 +13,7 @@ export declare const outlineColorStyles: (theme: Theme, color: Color) => string;
13
13
  export declare const flatColorStyles: (theme: Theme, color: Color) => string;
14
14
  export declare const disabledColorStyles: (theme: Theme, variant: Variant) => string;
15
15
  export declare const colorStyles: {
16
- solid: (theme: Theme, color: Color) => string;
16
+ solid: (theme: Theme, color: Color, colorShade: ColorShade) => string;
17
17
  outline: (theme: Theme, color: Color) => string;
18
18
  flat: (theme: Theme, color: Color) => string;
19
19
  };