@wistia/vhs 2.44.0-beta.919ea4fc.e390dc1 → 2.44.0-beta.f4a06a01.fc8861e
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/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Badge/Badge.d.ts.map +1 -1
- package/dist/src/components/Badge/getBadgeColors.d.ts +1 -0
- package/dist/src/components/Badge/getBadgeColors.d.ts.map +1 -1
- package/dist/src/components/Button/ButtonStyledComponent.d.ts +25 -1
- package/dist/src/components/Button/ButtonStyledComponent.d.ts.map +1 -1
- package/dist/src/components/Checkbox/OptionStyledComponent.d.ts +5 -5
- package/dist/src/components/Checkbox/OptionStyledComponent.d.ts.map +1 -1
- package/dist/src/helpers/mq/mq.d.ts.map +1 -1
- package/dist/src/hooks/useElementObserver/useElementObserver.d.ts.map +1 -1
- package/dist/src/hooks/useEvent/useEvent.d.ts.map +1 -1
- package/dist/src/hooks/useLocalStorage/useLocalStorage.d.ts.map +1 -1
- package/dist/src/hooks/usePreviousValue/usePreviousValue.d.ts.map +1 -1
- package/dist/src/providers/VHSThemeProvider.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/index.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license VHS v2.44.0-beta.
|
|
3
|
+
* @license VHS v2.44.0-beta.f4a06a01.fc8861e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1170,7 +1170,7 @@
|
|
|
1170
1170
|
${({elOverflow:e})=>RM(e)};
|
|
1171
1171
|
position: relative;
|
|
1172
1172
|
width: ${({elWidth:e})=>e};
|
|
1173
|
-
`,pm=({children:e=void 0,attachment:t="scroll",clip:r="border-box",color:n=void 0,height:o="auto",origin:a=void 0,overflow:s="hidden",position:u="center",repeat:l="no-repeat",size:c="cover",src:p=void 0,width:m="100%",...g})=>(0,Z9.jsx)(IM,{bgAttachment:t,bgClip:r,bgColor:n,bgImage:p,bgOrigin:a,bgPosition:u,bgRepeat:l,bgSize:c,elHeight:o,elOverflow:s,elWidth:m,...g,children:e});pm.displayName="BackgroundImage_VHS";i();i();var Q9=G(require("styled-components"));i();var J9=(e,t)=>{switch(e){case"green":return{backgroundColor:t.
|
|
1173
|
+
`,pm=({children:e=void 0,attachment:t="scroll",clip:r="border-box",color:n=void 0,height:o="auto",origin:a=void 0,overflow:s="hidden",position:u="center",repeat:l="no-repeat",size:c="cover",src:p=void 0,width:m="100%",...g})=>(0,Z9.jsx)(IM,{bgAttachment:t,bgClip:r,bgColor:n,bgImage:p,bgOrigin:a,bgPosition:u,bgRepeat:l,bgSize:c,elHeight:o,elOverflow:s,elWidth:m,...g,children:e});pm.displayName="BackgroundImage_VHS";i();i();var Q9=G(require("styled-components"));i();var J9=(e,t)=>{switch(e){case"error":return{backgroundColor:t.error300,iconColor:t.error600,textColor:t.error800};case"green":return{backgroundColor:t.green300,iconColor:t.green600,textColor:t.green800};case"grey":return{backgroundColor:t.grey300,iconColor:t.grey800,textColor:t.grey1000};case"orange":return{backgroundColor:t.orange200,iconColor:t.orange600,textColor:t.orange800};case"pink":return{backgroundColor:t.pink300,iconColor:t.pink600,textColor:t.pink800};case"purple":return{backgroundColor:t.purple300,iconColor:t.purple600,textColor:t.purple800};case"red":return{backgroundColor:t.red300,iconColor:t.red600,textColor:t.red800};case"success":return{backgroundColor:t.success200,iconColor:t.success600,textColor:t.success800};case"warning":return{backgroundColor:t.warning300,iconColor:t.warning700,textColor:t.warning800};case"yellow":return{backgroundColor:t.yellow200,iconColor:t.yellow700,textColor:t.yellow800};case"brandBlue":default:return{backgroundColor:t.brandBlue200,iconColor:t.brandBlue500,textColor:t.brandBlue700}}};var js=require("react/jsx-runtime"),MM=Q9.default.div`
|
|
1174
1174
|
align-items: center;
|
|
1175
1175
|
background: ${({backgroundColor:e})=>e};
|
|
1176
1176
|
border-radius: 999px;
|
|
@@ -1182,7 +1182,7 @@
|
|
|
1182
1182
|
padding-left: ${({hasIcon:e})=>e?"4px":"6px"};
|
|
1183
1183
|
padding-right: 6px;
|
|
1184
1184
|
width: fit-content;
|
|
1185
|
-
`,mm=({colorScheme:e="brandBlue",label:t,icon:r,...n})=>{let{backgroundColor:o,textColor:
|
|
1185
|
+
`,mm=({colorScheme:e="brandBlue",label:t,icon:r,...n})=>{let{backgroundColor:o,iconColor:a,textColor:s}=J9(e,He());return(0,js.jsxs)(MM,{...n,backgroundColor:o,hasIcon:O(r),textColor:s,children:[O(r)&&(0,js.jsx)(Te,{color:a,"data-testid":"badge-icon",size:"sm",type:r}),(0,js.jsx)("span",{children:t})]})};mm.displayName="Badge_VHS";i();i();var Tc=G(require("styled-components"));i();var di=G(require("styled-components"));var Sc=require("react/jsx-runtime"),kM=di.default.div`
|
|
1186
1186
|
color: ${({theme:e})=>e.color.grey900};
|
|
1187
1187
|
flex: 1;
|
|
1188
1188
|
font-size: 14px;
|