@kvdbil/components 13.7.1 → 13.9.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,24 +1,28 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Tab.js"),r=require("styled-components"),l=require("../../shared/media-queries.js"),i=require("react-collapse");function n(b){return b&&typeof b=="object"&&"default"in b?b:{default:b}}require("../Button/index.js"),require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("../Button/styles.js"),require("../../utils/utils.js");var a=n(e),o=n(r);const s=o.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("./Tab.js"),r=require("styled-components"),l=require("../../shared/media-queries.js"),i=require("react-collapse"),n=require("../../typography/Heading/index.js");function a(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}require("../Button/index.js"),require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("../Button/styles.js"),require("../../utils/utils.js");var o=a(e),d=a(r);const s=d.default.div`
2
2
  .ReactCollapse--collapse {
3
3
  transition: height 300ms;
4
4
  }
5
- `,d=o.default.ul`
5
+ `,u=d.default.ul`
6
6
  width: 100%;
7
7
  padding: 0;
8
8
  margin: 0.5rem 0;
9
- display: inline-flex;
10
- flex-direction: column;
9
+ display: flex;
10
+ flex-direction: row;
11
+ justify-content: space-between;
11
12
  align-items: center;
12
- flex-wrap: wrap;
13
13
 
14
- ${({theme:b,fullWidthBorder:w})=>w?`border-bottom: 3px solid ${b.colors.gray.light6};`:`& > li {
15
- border-bottom: 3px solid ${b.colors.gray.light6};
14
+ ${({theme:v,fullWidthBorder:A,borderColor:g})=>A?`border-bottom: 3px solid ${v.colors.gray[g]};`:`& > li {
15
+ border-bottom: 3px solid ${v.colors.gray[g]};
16
16
  }`}
17
17
 
18
- ${l.mq("mobileM")} {
19
- flex-direction: row;
20
- justify-content: ${({justify:b})=>b};
18
+ ${l.mq(null,"mobileL")} {
19
+ flex-direction: column;
20
+ justify-content: ${({justify:v})=>v};
21
21
  }
22
- `,u=o.default.div`
22
+ `,c=d.default(n.Title)`
23
+ margin: 0;
24
+ `,p=d.default.div`
25
+ display: flex;
26
+ `,f=d.default.div`
23
27
  padding: 0.5rem 0;
24
- `,c=o.default.div``,p=({activeColor:b="secondary",justify:w="end",activeIndex:B,initalActive:$,children:O=[],kbNavAutoOpen:D=!0,onTabClick:A,fullWidthBorder:W=!0})=>{var R,T;const v=e.Children.map(O,f=>f),[j,C]=e.useState(()=>$!=null?$:v.findIndex(f=>!f.props.isDisabled)),I=e.useRef([]),M=Boolean((T=(R=v[j])==null?void 0:R.props)==null?void 0:T.children);e.useEffect(()=>{B!==void 0&&C(B)},[B]);const S=(f,m)=>{if(f.preventDefault(),f.key!=="Enter"||D||C(m),f.key==="ArrowLeft"||f.key==="ArrowRight"){const h=D?j:m,y=f.key==="ArrowRight",g=y?h+1:0,E=y?v.length:h,q=v.slice(g,E);y||q.reverse();const k=q.findIndex(x=>!x.props.isDisabled);if(k!==-1){const x=y?h+(k+1):h-(k+1);D&&C(x),I.current[x].focus()}}};return a.default.createElement(s,null,a.default.createElement(i.UnmountClosed,{isOpened:!0},a.default.createElement(d,{fullWidthBorder:W,justify:w,role:"tablist"},v.map((f,m)=>{if(!f)return null;const h=j===m;return a.default.createElement(t.default,{key:m,label:f.props.label,isDisabled:f.props.isDisabled,index:m,id:m,isActive:j===m,activeColor:b,onClick:(y,g)=>{var E,q;h||f.props.isDisabled||((q=(E=f.props).onClick)==null||q.call(E,y,g),A==null||A(y,g),((k,x)=>{k.preventDefault(),C(x)})(y,g))},onKeyUp:S,ref:y=>I.current[m]=y})})),M&&a.default.createElement(u,null,v.map((f,m)=>{const h=f.props.children&&j===m;return a.default.createElement(c,{key:m,id:`tabpanel-${m}`,role:"tabpanel","aria-labelledby":`tab-${m}`,"aria-hidden":h?"false":"true"},h&&f.props.children)}))))};exports.Tabs=p,exports.default=p;
28
+ `,b=d.default.div``,m=({activeColor:v="secondary",justify:A="end",activeIndex:g,initalActive:R,children:U=[],kbNavAutoOpen:T=!0,onTabClick:I,fullWidthBorder:_=!0,borderColor:H="light6",headline:O})=>{var W,L;const q=e.Children.map(U,y=>y),[k,$]=e.useState(()=>R!=null?R:q.findIndex(y=>!y.props.isDisabled)),S=e.useRef([]),K=Boolean((L=(W=q[k])==null?void 0:W.props)==null?void 0:L.children);e.useEffect(()=>{g!==void 0&&$(g)},[g]);const M=(y,h)=>{if(y.preventDefault(),y.key!=="Enter"||T||$(h),y.key==="ArrowLeft"||y.key==="ArrowRight"){const x=T?k:h,j=y.key==="ArrowRight",E=j?x+1:0,w=j?q.length:x,B=q.slice(E,w);j||B.reverse();const D=B.findIndex(C=>!C.props.isDisabled);if(D!==-1){const C=j?x+(D+1):x-(D+1);T&&$(C),S.current[C].focus()}}};return o.default.createElement(s,null,o.default.createElement(i.UnmountClosed,{isOpened:!0},o.default.createElement(u,{fullWidthBorder:_,justify:A,role:"tablist",borderColor:H},O&&o.default.createElement(c,null,O),o.default.createElement(p,null,q.map((y,h)=>{if(!y)return null;const x=k===h;return o.default.createElement(t.default,{key:h,label:y.props.label,isDisabled:y.props.isDisabled,index:h,id:h,isActive:k===h,activeColor:v,onClick:(j,E)=>{var w,B;x||y.props.isDisabled||((B=(w=y.props).onClick)==null||B.call(w,j,E),I==null||I(j,E),((D,C)=>{D.preventDefault(),$(C)})(j,E))},onKeyUp:M,ref:j=>S.current[h]=j})}))),K&&o.default.createElement(f,null,q.map((y,h)=>{const x=y.props.children&&k===h;return o.default.createElement(b,{key:h,id:`tabpanel-${h}`,role:"tabpanel","aria-labelledby":`tab-${h}`,"aria-hidden":x?"false":"true"},x&&y.props.children)}))))};exports.Tabs=m,exports.default=m;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Tabs.js"),r=require("./Tab.js");require("react"),require("styled-components"),require("../../shared/media-queries.js"),require("react-collapse"),require("../Button/index.js"),require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("../Button/styles.js"),require("../../utils/utils.js"),exports.Tabs=e.Tabs,exports.Tab=r.default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./Tabs.js"),r=require("./Tab.js");require("react"),require("styled-components"),require("../../shared/media-queries.js"),require("react-collapse"),require("../../typography/Heading/index.js"),require("../Button/index.js"),require("../../theme.js"),require("../Spinner/index.js"),require("../../typography/ButtonText/index.js"),require("../Button/styles.js"),require("../../utils/utils.js"),exports.Tabs=e.Tabs,exports.Tab=r.default;
@@ -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};
@@ -1,24 +1,28 @@
1
- import n,{Children as _,useState as x,useRef as A,useEffect as B}from"react";import I from"./Tab.js";import u from"styled-components";import{mq as P}from"../../shared/media-queries.js";import{UnmountClosed as S}from"react-collapse";import"../Button/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"../Button/styles.js";import"../../utils/utils.js";const U=u.div`
1
+ import l,{Children as A,useState as B,useRef as S,useEffect as H}from"react";import I from"./Tab.js";import a from"styled-components";import{mq as P}from"../../shared/media-queries.js";import{UnmountClosed as U}from"react-collapse";import{Title as q}from"../../typography/Heading/index.js";import"../Button/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"../Button/styles.js";import"../../utils/utils.js";const F=a.div`
2
2
  .ReactCollapse--collapse {
3
3
  transition: height 300ms;
4
4
  }
5
- `,q=u.ul`
5
+ `,K=a.ul`
6
6
  width: 100%;
7
7
  padding: 0;
8
8
  margin: 0.5rem 0;
9
- display: inline-flex;
10
- flex-direction: column;
9
+ display: flex;
10
+ flex-direction: row;
11
+ justify-content: space-between;
11
12
  align-items: center;
12
- flex-wrap: wrap;
13
13
 
14
- ${({theme:s,fullWidthBorder:f})=>f?`border-bottom: 3px solid ${s.colors.gray.light6};`:`& > li {
15
- border-bottom: 3px solid ${s.colors.gray.light6};
14
+ ${({theme:o,fullWidthBorder:b,borderColor:s})=>b?`border-bottom: 3px solid ${o.colors.gray[s]};`:`& > li {
15
+ border-bottom: 3px solid ${o.colors.gray[s]};
16
16
  }`}
17
17
 
18
- ${P("mobileM")} {
19
- flex-direction: row;
20
- justify-content: ${({justify:s})=>s};
18
+ ${P(null,"mobileL")} {
19
+ flex-direction: column;
20
+ justify-content: ${({justify:o})=>o};
21
21
  }
22
- `,F=u.div`
22
+ `,L=a(q)`
23
+ margin: 0;
24
+ `,z=a.div`
25
+ display: flex;
26
+ `,G=a.div`
23
27
  padding: 0.5rem 0;
24
- `,K=u.div``,C=({activeColor:s="secondary",justify:f="end",activeIndex:b,initalActive:g,children:D=[],kbNavAutoOpen:y=!0,onTabClick:v,fullWidthBorder:w=!0})=>{var T,E;const l=_.map(D,e=>e),[i,d]=x(()=>g!=null?g:l.findIndex(e=>!e.props.isDisabled)),j=A([]),R=Boolean((E=(T=l[i])==null?void 0:T.props)==null?void 0:E.children),$=(e,t)=>{e.preventDefault(),d(t)};B(()=>{typeof b!="undefined"&&d(b)},[b]);const k=(e,t)=>{if(e.preventDefault(),e.key==="Enter"&&!y&&d(t),e.key==="ArrowLeft"||e.key==="ArrowRight"){const o=y?i:t,r=e.key==="ArrowRight",a=r?o+1:0,p=r?l.length:o,c=l.slice(a,p);r||c.reverse();const h=c.findIndex(m=>!m.props.isDisabled);if(h!==-1){const m=r?o+(h+1):o-(h+1);y&&d(m),j.current[m].focus()}}};return n.createElement(U,null,n.createElement(S,{isOpened:!0},n.createElement(q,{fullWidthBorder:w,justify:f,role:"tablist"},l.map((e,t)=>{if(!e)return null;const o=i===t;return n.createElement(I,{key:t,label:e.props.label,isDisabled:e.props.isDisabled,index:t,id:t,isActive:i===t,activeColor:s,onClick:(r,a)=>{var p,c;!o&&!e.props.isDisabled&&((c=(p=e.props).onClick)==null||c.call(p,r,a),v==null||v(r,a),$(r,a))},onKeyUp:k,ref:r=>j.current[t]=r})})),R&&n.createElement(F,null,l.map((e,t)=>{const o=e.props.children&&i===t;return n.createElement(K,{key:t,id:`tabpanel-${t}`,role:"tabpanel","aria-labelledby":`tab-${t}`,"aria-hidden":o?"false":"true"},o&&e.props.children)}))))};export{C as Tabs,C as default};
28
+ `,J=a.div``,D=({activeColor:o="secondary",justify:b="end",activeIndex:s,initalActive:g,children:R=[],kbNavAutoOpen:y=!0,onTabClick:T,fullWidthBorder:$=!0,borderColor:k="light6",headline:v})=>{var E,j;const i=A.map(R,e=>e),[c,m]=B(()=>g!=null?g:i.findIndex(e=>!e.props.isDisabled)),C=S([]),w=Boolean((j=(E=i[c])==null?void 0:E.props)==null?void 0:j.children),_=(e,t)=>{e.preventDefault(),m(t)};H(()=>{typeof s!="undefined"&&m(s)},[s]);const x=(e,t)=>{if(e.preventDefault(),e.key==="Enter"&&!y&&m(t),e.key==="ArrowLeft"||e.key==="ArrowRight"){const n=y?c:t,r=e.key==="ArrowRight",d=r?n+1:0,u=r?i.length:n,p=i.slice(d,u);r||p.reverse();const h=p.findIndex(f=>!f.props.isDisabled);if(h!==-1){const f=r?n+(h+1):n-(h+1);y&&m(f),C.current[f].focus()}}};return l.createElement(F,null,l.createElement(U,{isOpened:!0},l.createElement(K,{fullWidthBorder:$,justify:b,role:"tablist",borderColor:k},v&&l.createElement(L,null,v),l.createElement(z,null,i.map((e,t)=>{if(!e)return null;const n=c===t;return l.createElement(I,{key:t,label:e.props.label,isDisabled:e.props.isDisabled,index:t,id:t,isActive:c===t,activeColor:o,onClick:(r,d)=>{var u,p;!n&&!e.props.isDisabled&&((p=(u=e.props).onClick)==null||p.call(u,r,d),T==null||T(r,d),_(r,d))},onKeyUp:x,ref:r=>C.current[t]=r})}))),w&&l.createElement(G,null,i.map((e,t)=>{const n=e.props.children&&c===t;return l.createElement(J,{key:t,id:`tabpanel-${t}`,role:"tabpanel","aria-labelledby":`tab-${t}`,"aria-hidden":n?"false":"true"},n&&e.props.children)}))))};export{D as Tabs,D as default};
@@ -1 +1 @@
1
- export{Tabs}from"./Tabs.js";export{default as Tab}from"./Tab.js";import"react";import"styled-components";import"../../shared/media-queries.js";import"react-collapse";import"../Button/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"../Button/styles.js";import"../../utils/utils.js";
1
+ export{Tabs}from"./Tabs.js";export{default as Tab}from"./Tab.js";import"react";import"styled-components";import"../../shared/media-queries.js";import"react-collapse";import"../../typography/Heading/index.js";import"../Button/index.js";import"../../theme.js";import"../Spinner/index.js";import"../../typography/ButtonText/index.js";import"../Button/styles.js";import"../../utils/utils.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvdbil/components",
3
- "version": "13.7.1",
3
+ "version": "13.9.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
  };
@@ -3,6 +3,7 @@ import { Color } from '../../Types';
3
3
  import { ReactElement } from 'react';
4
4
  import { TabProps } from './Tab';
5
5
  import { CSSProperties } from 'styled-components';
6
+ import theme from '../../theme';
6
7
  declare type TabElement = ReactElement<TabProps>;
7
8
  export interface TabsProps {
8
9
  activeColor?: Color;
@@ -13,6 +14,8 @@ export interface TabsProps {
13
14
  kbNavAutoOpen?: boolean;
14
15
  onTabClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>, index: number) => void;
15
16
  fullWidthBorder?: boolean;
17
+ borderColor?: keyof typeof theme.colors.gray;
18
+ headline?: string;
16
19
  }
17
- export declare const Tabs: ({ activeColor, justify, activeIndex, initalActive, children, kbNavAutoOpen, onTabClick, fullWidthBorder, }: TabsProps) => JSX.Element;
20
+ export declare const Tabs: ({ activeColor, justify, activeIndex, initalActive, children, kbNavAutoOpen, onTabClick, fullWidthBorder, borderColor, headline, }: TabsProps) => JSX.Element;
18
21
  export default Tabs;