@choosemycompany/ui 0.0.1 → 0.0.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.
Files changed (54) hide show
  1. package/dist/README.md +81 -0
  2. package/dist/cmc-ui.umd.js +1 -0
  3. package/package.json +6 -6
  4. package/dist/lib/cmc-ui.umd.js +0 -1
  5. package/dist/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
  6. package/dist/storybook-static/assets/Button-P5kRU_oR.css +0 -1
  7. package/dist/storybook-static/assets/Button.stories-CSVwoLhx.js +0 -58
  8. package/dist/storybook-static/assets/Color-AVL7NMMY-Ct7aAYs-.js +0 -1
  9. package/dist/storybook-static/assets/DocsRenderer-PQXLIZUC-B03cbZIO.js +0 -706
  10. package/dist/storybook-static/assets/Heading-DA0pyUxl.css +0 -1
  11. package/dist/storybook-static/assets/Heading-DKVmbxcF.js +0 -1
  12. package/dist/storybook-static/assets/Heading.stories-CLjJkHP6.js +0 -91
  13. package/dist/storybook-static/assets/Title-DUsXPc1D.css +0 -1
  14. package/dist/storybook-static/assets/Title.stories-Bw8kvqVZ.js +0 -8
  15. package/dist/storybook-static/assets/_commonjsHelpers-CqkleIqs.js +0 -1
  16. package/dist/storybook-static/assets/axe-CGjeO0Ii.js +0 -30
  17. package/dist/storybook-static/assets/iframe-2fFtGrst.css +0 -1
  18. package/dist/storybook-static/assets/iframe-Qtrfk0sh.js +0 -1121
  19. package/dist/storybook-static/assets/index-D68ytP8I.js +0 -1
  20. package/dist/storybook-static/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
  21. package/dist/storybook-static/favicon.svg +0 -1
  22. package/dist/storybook-static/iframe.html +0 -686
  23. package/dist/storybook-static/index.html +0 -164
  24. package/dist/storybook-static/index.json +0 -1
  25. package/dist/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  26. package/dist/storybook-static/nunito-sans-bold.woff2 +0 -0
  27. package/dist/storybook-static/nunito-sans-italic.woff2 +0 -0
  28. package/dist/storybook-static/nunito-sans-regular.woff2 +0 -0
  29. package/dist/storybook-static/project.json +0 -1
  30. package/dist/storybook-static/sb-addons/a11y-4/manager-bundle.js +0 -5
  31. package/dist/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js +0 -356
  32. package/dist/storybook-static/sb-addons/chromatic-com-storybook-1/manager-bundle.js.LEGAL.txt +0 -40
  33. package/dist/storybook-static/sb-addons/docs-2/manager-bundle.js +0 -151
  34. package/dist/storybook-static/sb-addons/onboarding-3/manager-bundle.js +0 -127
  35. package/dist/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -188
  36. package/dist/storybook-static/sb-addons/vitest-5/manager-bundle.js +0 -3
  37. package/dist/storybook-static/sb-common-assets/favicon.svg +0 -1
  38. package/dist/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  39. package/dist/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  40. package/dist/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  41. package/dist/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  42. package/dist/storybook-static/sb-manager/globals-module-info.js +0 -797
  43. package/dist/storybook-static/sb-manager/globals-runtime.js +0 -72134
  44. package/dist/storybook-static/sb-manager/globals.js +0 -34
  45. package/dist/storybook-static/sb-manager/runtime.js +0 -13002
  46. package/dist/storybook-static/src/components/Atoms/Button/Button.constants.d.ts +0 -15
  47. package/dist/storybook-static/src/components/Atoms/Heading/Heading.constants.d.ts +0 -9
  48. /package/dist/{lib/cmc-ui.es.js → cmc-ui.es.js} +0 -0
  49. /package/dist/{lib/src → src}/components/Atoms/Button/Button.constants.d.ts +0 -0
  50. /package/dist/{lib/src → src}/components/Atoms/Button/Button.vue.d.ts +0 -0
  51. /package/dist/{lib/src → src}/components/Atoms/Heading/Heading.constants.d.ts +0 -0
  52. /package/dist/{lib/src → src}/components/Atoms/Heading/Heading.vue.d.ts +0 -0
  53. /package/dist/{lib/src → src}/components/Molecules/Title/Title.vue.d.ts +0 -0
  54. /package/dist/{lib/ui.css → ui.css} +0 -0
@@ -1,40 +0,0 @@
1
- Bundled license information:
2
-
3
- filesize/dist/filesize.esm.js:
4
- /**
5
- * filesize
6
- *
7
- * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
8
- * @license BSD-3-Clause
9
- * @version 10.1.6
10
- */
11
-
12
- @chromatic-com/storybook/dist/manager.mjs:
13
- /*! Bundled license information:
14
-
15
- popper.js/dist/esm/popper.js:
16
- (**!
17
- * @fileOverview Kickass library to create and place poppers near their reference elements.
18
- * @version 1.16.1
19
- * @license
20
- * Copyright (c) 2016 Federico Zivolo and contributors
21
- *
22
- * Permission is hereby granted, free of charge, to any person obtaining a copy
23
- * of this software and associated documentation files (the "Software"), to deal
24
- * in the Software without restriction, including without limitation the rights
25
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- * copies of the Software, and to permit persons to whom the Software is
27
- * furnished to do so, subject to the following conditions:
28
- *
29
- * The above copyright notice and this permission notice shall be included in all
30
- * copies or substantial portions of the Software.
31
- *
32
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
- * SOFTWARE.
39
- *)
40
- */
@@ -1,151 +0,0 @@
1
- try{
2
- (()=>{var l=__REACT__,{Children:lr,Component:dr,Fragment:fr,Profiler:cr,PureComponent:mr,StrictMode:br,Suspense:hr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gr,act:yr,cloneElement:vr,createContext:xr,createElement:Sr,createFactory:_r,createRef:kr,forwardRef:wr,isValidElement:Tr,lazy:Pr,memo:Cr,startTransition:Er,unstable_act:Rr,useCallback:Ir,useContext:Or,useDebugValue:Fr,useDeferredValue:jr,useEffect:Y,useId:Hr,useImperativeHandle:zr,useInsertionEffect:Ar,useLayoutEffect:Mr,useMemo:Br,useReducer:Nr,useRef:Lr,useState:G,useSyncExternalStore:Dr,useTransition:$r,version:qr}=__REACT__;var Kr=__STORYBOOK_COMPONENTS__,{A:Zr,ActionBar:Jr,AddonPanel:K,Badge:Qr,Bar:Xr,Blockquote:Vr,Button:et,Checkbox:rt,ClipboardCode:tt,Code:at,DL:nt,Div:ot,DocumentWrapper:st,EmptyTabContent:it,ErrorFormatter:pt,FlexBar:ut,Form:lt,H1:dt,H2:ft,H3:ct,H4:mt,H5:bt,H6:ht,HR:gt,IconButton:yt,Img:vt,LI:xt,Link:St,ListItem:_t,Loader:kt,Modal:wt,OL:Tt,P:Pt,Placeholder:Ct,Pre:Et,ProgressSpinner:Rt,ResetWrapper:It,ScrollArea:Ot,Separator:Ft,Spaced:jt,Span:Ht,StorybookIcon:zt,StorybookLogo:At,SyntaxHighlighter:Z,TT:Mt,TabBar:Bt,TabButton:Nt,TabWrapper:Lt,Table:Dt,Tabs:$t,TabsState:qt,TooltipLinkList:Ut,TooltipMessage:Wt,TooltipNote:Yt,UL:Gt,WithTooltip:Kt,WithTooltipPure:Zt,Zoom:Jt,codeCommon:Qt,components:Xt,createCopyToClipboardFunction:Vt,getStoryHref:ea,interleaveSeparators:ra,nameSpaceClassNames:ta,resetComponents:aa,withReset:J}=__STORYBOOK_COMPONENTS__;var pa=__STORYBOOK_API__,{ActiveTabs:ua,Consumer:la,ManagerContext:da,Provider:fa,RequestResponseError:ca,addons:j,combineParameters:ma,controlOrMetaKey:ba,controlOrMetaSymbol:ha,eventMatchesShortcut:ga,eventToShortcut:ya,experimental_MockUniversalStore:va,experimental_UniversalStore:xa,experimental_getStatusStore:Sa,experimental_getTestProviderStore:_a,experimental_requestResponse:ka,experimental_useStatusStore:wa,experimental_useTestProviderStore:Ta,experimental_useUniversalStore:Pa,internal_fullStatusStore:Ca,internal_fullTestProviderStore:Ea,internal_universalStatusStore:Ra,internal_universalTestProviderStore:Ia,isMacLike:Oa,isShortcutTaken:Fa,keyToSymbol:ja,merge:Ha,mockChannel:za,optionOrAltSymbol:Aa,shortcutMatchesShortcut:Ma,shortcutToHumanString:Ba,types:Q,useAddonState:Na,useArgTypes:La,useArgs:Da,useChannel:X,useGlobalTypes:$a,useGlobals:qa,useParameter:V,useSharedState:Ua,useStoryPrepared:Wa,useStorybookApi:Ya,useStorybookState:Ga}=__STORYBOOK_API__;var Xa=__STORYBOOK_THEMING__,{CacheProvider:Va,ClassNames:en,Global:rn,ThemeProvider:ee,background:tn,color:an,convert:re,create:nn,createCache:on,createGlobal:sn,createReset:pn,css:un,darken:ln,ensure:dn,ignoreSsrWarning:H,isPropValid:fn,jsx:cn,keyframes:mn,lighten:bn,styled:x,themes:z,typography:hn,useTheme:A,withTheme:gn}=__STORYBOOK_THEMING__;var U="storybook/docs",le=`${U}/panel`,te="docs",ae=`${U}/snippet-rendered`;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},d.apply(null,arguments)}function de(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,r){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},C(e,r)}function fe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,C(e,r)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},L(e)}function ce(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oe=function(){return!!e})()}function me(e,r,t){if(oe())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,r);var n=new(e.bind.apply(e,a));return t&&C(n,t.prototype),n}function D(e){var r=typeof Map=="function"?new Map:void 0;return D=function(t){if(t===null||!ce(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(t))return r.get(t);r.set(t,a)}function a(){return me(t,arguments,L(this).constructor)}return a.prototype=Object.create(t.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),C(a,t)},D(e)}var be={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
3
-
4
- `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
5
-
6
- `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
7
-
8
- `,4:`Couldn't generate valid rgb string from %s, it returned %s.
9
-
10
- `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
11
-
12
- `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
13
-
14
- `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
15
-
16
- `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
17
-
18
- `,9:`Please provide a number of steps to the modularScale helper.
19
-
20
- `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
21
-
22
- `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
23
-
24
- `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
25
-
26
- `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
27
-
28
- `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
29
-
30
- `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
31
-
32
- `,16:`You must provide a template to this method.
33
-
34
- `,17:`You passed an unsupported selector state to this method.
35
-
36
- `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
37
-
38
- `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
39
-
40
- `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
41
-
42
- `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
43
-
44
- `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
45
-
46
- `,25:`fontFace expects localFonts to be an array.
47
-
48
- `,26:`fontFace expects fileFormats to be an array.
49
-
50
- `,27:`radialGradient requries at least 2 color-stops to properly render.
51
-
52
- `,28:`Please supply a filename to retinaImage() as the first argument.
53
-
54
- `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
55
-
56
- `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
57
-
58
- `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
59
- To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
60
-
61
- `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
62
-
63
- `,34:`borderRadius expects a radius value as a string or number as the second argument.
64
-
65
- `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
66
-
67
- `,36:`Property must be a string value.
68
-
69
- `,37:`Syntax Error at %s.
70
-
71
- `,38:`Formula contains a function that needs parentheses at %s.
72
-
73
- `,39:`Formula is missing closing parenthesis at %s.
74
-
75
- `,40:`Formula has too many closing parentheses at %s.
76
-
77
- `,41:`All values in a formula must have the same unit or be unitless.
78
-
79
- `,42:`Please provide a number of steps to the modularScale helper.
80
-
81
- `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
82
-
83
- `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
84
-
85
- `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
86
-
87
- `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
88
-
89
- `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
90
-
91
- `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
92
-
93
- `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
94
-
95
- `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
96
-
97
- `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
98
-
99
- `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
100
-
101
- `,53:`fontFace expects localFonts to be an array.
102
-
103
- `,54:`fontFace expects fileFormats to be an array.
104
-
105
- `,55:`fontFace expects a name of a font-family.
106
-
107
- `,56:`linearGradient requries at least 2 color-stops to properly render.
108
-
109
- `,57:`radialGradient requries at least 2 color-stops to properly render.
110
-
111
- `,58:`Please supply a filename to retinaImage() as the first argument.
112
-
113
- `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
114
-
115
- `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
116
-
117
- `,62:`borderRadius expects a radius value as a string or number as the second argument.
118
-
119
- `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
120
-
121
- `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
122
-
123
- `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
124
-
125
- `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
126
-
127
- `,67:`You must provide a template to this method.
128
-
129
- `,68:`You passed an unsupported selector state to this method.
130
-
131
- `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
132
-
133
- `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
134
-
135
- `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
136
-
137
- `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
138
-
139
- `,73:`Please provide a valid CSS variable.
140
-
141
- `,74:`CSS variable not found and no default was provided.
142
-
143
- `,75:`important requires a valid style object, got a %s instead.
144
-
145
- `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
146
-
147
- `,77:`remToPx expects a value in "rem" but you provided it in "%s".
148
-
149
- `,78:`base must be set in "px" or "%" but you set it in "%s".
150
- `};function he(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var a=r[0],n=[],o;for(o=1;o<r.length;o+=1)n.push(r[o]);return n.forEach(function(s){a=a.replace(/%[a-z]/,s)}),a}var h=function(e){fe(r,e);function r(t){for(var a,n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return a=e.call(this,he.apply(void 0,[be[t]].concat(o)))||this,de(a)}return r}(D(Error));function M(e){return Math.round(e*255)}function ge(e,r,t){return M(e)+","+M(r)+","+M(t)}function E(e,r,t,a){if(a===void 0&&(a=ge),r===0)return a(t,t,t);var n=(e%360+360)%360/60,o=(1-Math.abs(2*t-1))*r,s=o*(1-Math.abs(n%2-1)),i=0,p=0,u=0;n>=0&&n<1?(i=o,p=s):n>=1&&n<2?(i=s,p=o):n>=2&&n<3?(p=o,u=s):n>=3&&n<4?(p=s,u=o):n>=4&&n<5?(i=s,u=o):n>=5&&n<6&&(i=o,u=s);var b=t-o/2,m=i+b,f=p+b,k=u+b;return a(m,f,k)}var ne={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ye(e){if(typeof e!="string")return e;var r=e.toLowerCase();return ne[r]?"#"+ne[r]:e}var ve=/^#[a-fA-F0-9]{6}$/,xe=/^#[a-fA-F0-9]{8}$/,Se=/^#[a-fA-F0-9]{3}$/,_e=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ke=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,we=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Te=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function S(e){if(typeof e!="string")throw new h(3);var r=ye(e);if(r.match(ve))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(xe)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Se))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(_e)){var a=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:a}}var n=B.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=ke.exec(r.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var s=we.exec(r);if(s){var i=parseInt(""+s[1],10),p=parseInt(""+s[2],10)/100,u=parseInt(""+s[3],10)/100,b="rgb("+E(i,p,u)+")",m=B.exec(b);if(!m)throw new h(4,r,b);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=Te.exec(r.substring(0,50));if(f){var k=parseInt(""+f[1],10),pe=parseInt(""+f[2],10)/100,ue=parseInt(""+f[3],10)/100,W="rgb("+E(k,pe,ue)+")",R=B.exec(W);if(!R)throw new h(4,r,W);return{red:parseInt(""+R[1],10),green:parseInt(""+R[2],10),blue:parseInt(""+R[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new h(5)}function Pe(e){var r=e.red/255,t=e.green/255,a=e.blue/255,n=Math.max(r,t,a),o=Math.min(r,t,a),s=(n+o)/2;if(n===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var i,p=n-o,u=s>.5?p/(2-n-o):p/(n+o);switch(n){case r:i=(t-a)/p+(t<a?6:0);break;case t:i=(a-r)/p+2;break;default:i=(r-t)/p+4;break}return i*=60,e.alpha!==void 0?{hue:i,saturation:u,lightness:s,alpha:e.alpha}:{hue:i,saturation:u,lightness:s}}function g(e){return Pe(S(e))}var Ce=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},$=Ce;function v(e){var r=e.toString(16);return r.length===1?"0"+r:r}function N(e){return v(Math.round(e*255))}function Ee(e,r,t){return $("#"+N(e)+N(r)+N(t))}function O(e,r,t){return E(e,r,t,Ee)}function Re(e,r,t){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number")return O(e,r,t);if(typeof e=="object"&&r===void 0&&t===void 0)return O(e.hue,e.saturation,e.lightness);throw new h(1)}function Ie(e,r,t,a){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number"&&typeof a=="number")return a>=1?O(e,r,t):"rgba("+E(e,r,t)+","+a+")";if(typeof e=="object"&&r===void 0&&t===void 0&&a===void 0)return e.alpha>=1?O(e.hue,e.saturation,e.lightness):"rgba("+E(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new h(2)}function q(e,r,t){if(typeof e=="number"&&typeof r=="number"&&typeof t=="number")return $("#"+v(e)+v(r)+v(t));if(typeof e=="object"&&r===void 0&&t===void 0)return $("#"+v(e.red)+v(e.green)+v(e.blue));throw new h(6)}function F(e,r,t,a){if(typeof e=="string"&&typeof r=="number"){var n=S(e);return"rgba("+n.red+","+n.green+","+n.blue+","+r+")"}else{if(typeof e=="number"&&typeof r=="number"&&typeof t=="number"&&typeof a=="number")return a>=1?q(e,r,t):"rgba("+e+","+r+","+t+","+a+")";if(typeof e=="object"&&r===void 0&&t===void 0&&a===void 0)return e.alpha>=1?q(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new h(7)}var Oe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Fe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},je=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},He=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function y(e){if(typeof e!="object")throw new h(8);if(Fe(e))return F(e);if(Oe(e))return q(e);if(He(e))return Ie(e);if(je(e))return Re(e);throw new h(8)}function se(e,r,t){return function(){var a=t.concat(Array.prototype.slice.call(arguments));return a.length>=r?e.apply(this,a):se(e,r,a)}}function c(e){return se(e,e.length,[])}function ze(e,r){if(r==="transparent")return r;var t=g(r);return y(d({},t,{hue:t.hue+parseFloat(e)}))}c(ze);function _(e,r,t){return Math.max(e,Math.min(r,t))}function Ae(e,r){if(r==="transparent")return r;var t=g(r);return y(d({},t,{lightness:_(0,1,t.lightness-parseFloat(e))}))}c(Ae);function Me(e,r){if(r==="transparent")return r;var t=g(r);return y(d({},t,{saturation:_(0,1,t.saturation-parseFloat(e))}))}c(Me);function Be(e,r){if(r==="transparent")return r;var t=g(r);return y(d({},t,{lightness:_(0,1,t.lightness+parseFloat(e))}))}c(Be);function Ne(e,r,t){if(r==="transparent")return t;if(t==="transparent")return r;if(e===0)return t;var a=S(r),n=d({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),o=S(t),s=d({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),i=n.alpha-s.alpha,p=parseFloat(e)*2-1,u=p*i===-1?p:p+i,b=1+p*i,m=(u/b+1)/2,f=1-m,k={red:Math.floor(n.red*m+s.red*f),green:Math.floor(n.green*m+s.green*f),blue:Math.floor(n.blue*m+s.blue*f),alpha:n.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return F(k)}var Le=c(Ne),ie=Le;function De(e,r){if(r==="transparent")return r;var t=S(r),a=typeof t.alpha=="number"?t.alpha:1,n=d({},t,{alpha:_(0,1,(a*100+parseFloat(e)*100)/100)});return F(n)}c(De);function $e(e,r){if(r==="transparent")return r;var t=g(r);return y(d({},t,{saturation:_(0,1,t.saturation+parseFloat(e))}))}c($e);function qe(e,r){return r==="transparent"?r:y(d({},g(r),{hue:parseFloat(e)}))}c(qe);function Ue(e,r){return r==="transparent"?r:y(d({},g(r),{lightness:parseFloat(e)}))}c(Ue);function We(e,r){return r==="transparent"?r:y(d({},g(r),{saturation:parseFloat(e)}))}c(We);function Ye(e,r){return r==="transparent"?r:ie(parseFloat(e),"rgb(0, 0, 0)",r)}c(Ye);function Ge(e,r){return r==="transparent"?r:ie(parseFloat(e),"rgb(255, 255, 255)",r)}c(Ge);function Ke(e,r){if(r==="transparent")return r;var t=S(r),a=typeof t.alpha=="number"?t.alpha:1,n=d({},t,{alpha:_(0,1,+(a*100-parseFloat(e)*100).toFixed(2)/100)});return F(n)}var Ze=c(Ke),Je=Ze,Qe=x.div(J,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Je(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Xe=e=>l.createElement(Qe,{...e,className:"docblock-emptyblock sb-unstyled"}),Ve=x(Z)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),er=x.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),I=x.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${H}`]:{margin:0}})),rr=()=>l.createElement(er,null,l.createElement(I,null),l.createElement(I,{style:{width:"80%"}}),l.createElement(I,{style:{width:"30%"}}),l.createElement(I,{style:{width:"80%"}})),tr=({isLoading:e,error:r,language:t,code:a,dark:n,format:o=!0,...s})=>{let{typography:i}=A();if(e)return l.createElement(rr,null);if(r)return l.createElement(Xe,null,r);let p=l.createElement(Ve,{bordered:!0,copyable:!0,format:o,language:t??"jsx",className:"docblock-source sb-unstyled",...s},a);if(typeof n>"u")return p;let u=n?z.dark:z.light;return l.createElement(ee,{theme:re({...u,fontCode:i.fonts.mono,fontBase:i.fonts.base})},p)};j.register(U,e=>{j.add(le,{title:"Code",type:Q.PANEL,paramKey:te,disabled:r=>!r?.docs?.codePanel,match:({viewMode:r})=>r==="story",render:({active:r})=>{let t=e.getChannel(),a=e.getCurrentStoryData(),n=t?.last(ae)?.[0],[o,s]=G({source:n?.source,format:n?.format??void 0}),i=V(te,{source:{code:""},theme:"dark"});Y(()=>{s({source:void 0,format:void 0})},[a?.id]),X({[ae]:({source:u,format:b})=>{s({source:u,format:b})}});let p=A().base!=="light";return l.createElement(K,{active:!!r},l.createElement(ar,null,l.createElement(tr,{...i.source,code:i.source?.code||o.source||i.source?.originalSource,format:o.format,dark:p})))}})});var ar=x.div(()=>({height:"100%",[`> :first-child${H}`]:{margin:0,height:"100%",boxShadow:"none"}}));})();
151
- }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }