From 12f115ffa5ff4995a09395c12c2c3994d337eec7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:12:56 +0000 Subject: [PATCH] deploy: b0c6af661b9d855343464fe4d9f561232bac0f82 --- ...e328c9cf.js => Avatar.stories-49c5b3a4.js} | 4 +- ....js.map => Avatar.stories-49c5b3a4.js.map} | 2 +- ...-112e1b9d.js => Badge.stories-fbdae9dc.js} | 4 +- ...d.js.map => Badge.stories-fbdae9dc.js.map} | 2 +- ...731c8c6c.js => Color-6VNJS4EI-9dbd15cb.js} | 4 +- ....js.map => Color-6VNJS4EI-9dbd15cb.js.map} | 2 +- ...f.js => DocsRenderer-3PUGWF3O-7c4c7c38.js} | 4 +- ... => DocsRenderer-3PUGWF3O-7c4c7c38.js.map} | 2 +- ...obalScrollAreaStyles-UY5SB7EJ-20f80ffd.js} | 4 +- ...ScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map} | 2 +- ...2f4a.js => IconButton.stories-5dfe46f9.js} | 4 +- assets/IconButton.stories-5dfe46f9.js.map | 1 + assets/IconButton.stories-a3f22f4a.js.map | 1 - assets/InlineSearchInput.stories-9c784aa4.js | 14 --- .../InlineSearchInput.stories-9c784aa4.js.map | 1 - assets/InlineSearchInput.stories-f76810ea.js | 14 +++ .../InlineSearchInput.stories-f76810ea.js.map | 1 + ...148e030.js => Popover.stories-2285f37e.js} | 4 +- ...js.map => Popover.stories-2285f37e.js.map} | 2 +- assets/SearchInput-00a41a85.js | 2 - assets/SearchInput-9896c048.js | 2 + ...a85.js.map => SearchInput-9896c048.js.map} | 2 +- ...25d.js => SearchInput.stories-31dcc6f0.js} | 4 +- ...ap => SearchInput.stories-31dcc6f0.js.map} | 2 +- ...9c.js => SocialButton.stories-7621e86d.js} | 4 +- ...p => SocialButton.stories-7621e86d.js.map} | 2 +- ...etDocs-8093825f.js => TetDocs-f48e3431.js} | 4 +- ...093825f.js.map => TetDocs-f48e3431.js.map} | 2 +- assets/TextInput-3ac35c9f.js | 2 - assets/TextInput-3ac35c9f.js.map | 1 - assets/TextInput-d9e744f0.js | 2 + assets/TextInput-d9e744f0.js.map | 1 + ...61fe4.js => TextInput.stories-e1177578.js} | 4 +- ....map => TextInput.stories-e1177578.js.map} | 2 +- assets/WithTooltip-J57HCPYA-02ba765a.js.map | 1 - ...5a.js => WithTooltip-J57HCPYA-59a4a143.js} | 4 +- assets/WithTooltip-J57HCPYA-59a4a143.js.map | 1 + ...661f.js => formatter-SWP5E3XI-be1d3122.js} | 4 +- ...map => formatter-SWP5E3XI-be1d3122.js.map} | 2 +- ...{iframe-193f7824.js => iframe-eef935a2.js} | 4 +- ...193f7824.js.map => iframe-eef935a2.js.map} | 2 +- .../{index-ffa7e839.js => index-b9879fdd.js} | 12 +-- ...-ffa7e839.js.map => index-b9879fdd.js.map} | 2 +- assets/preview-3a20f414.js | 2 + ...b898567.js.map => preview-3a20f414.js.map} | 2 +- assets/preview-db898567.js | 2 - ...syntaxhighlighter-PONEFOSF-53e5463c.js.map | 1 - ...=> syntaxhighlighter-PONEFOSF-6c12d9d8.js} | 4 +- ...syntaxhighlighter-PONEFOSF-6c12d9d8.js.map | 1 + iframe.html | 2 +- index.json | 2 +- project.json | 2 +- .../Badge/stylesBuilder/stylesBuilder.d.ts | 4 +- src/components/TextInput/TextInput.d.ts | 2 +- src/components/TextInput/TextInput.props.d.ts | 3 +- .../TextInput/TextInput.stories.d.ts | 2 +- src/components/TextInput/TextInput.style.d.ts | 86 +++++++++++-------- .../TextInput/stylesBuilder/index.d.ts | 1 + .../stylesBuilder/stylesBuilder.d.ts | 13 +++ stories.json | 2 +- 60 files changed, 148 insertions(+), 123 deletions(-) rename assets/{Avatar.stories-e328c9cf.js => Avatar.stories-49c5b3a4.js} (94%) rename assets/{Avatar.stories-e328c9cf.js.map => Avatar.stories-49c5b3a4.js.map} (98%) rename assets/{Badge.stories-112e1b9d.js => Badge.stories-fbdae9dc.js} (97%) rename assets/{Badge.stories-112e1b9d.js.map => Badge.stories-fbdae9dc.js.map} (60%) rename assets/{Color-6VNJS4EI-731c8c6c.js => Color-6VNJS4EI-9dbd15cb.js} (99%) rename assets/{Color-6VNJS4EI-731c8c6c.js.map => Color-6VNJS4EI-9dbd15cb.js.map} (99%) rename assets/{DocsRenderer-3PUGWF3O-218b7d2f.js => DocsRenderer-3PUGWF3O-7c4c7c38.js} (79%) rename assets/{DocsRenderer-3PUGWF3O-218b7d2f.js.map => DocsRenderer-3PUGWF3O-7c4c7c38.js.map} (98%) rename assets/{GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js => GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js} (98%) rename assets/{GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js.map => GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map} (99%) rename assets/{IconButton.stories-a3f22f4a.js => IconButton.stories-5dfe46f9.js} (87%) create mode 100644 assets/IconButton.stories-5dfe46f9.js.map delete mode 100644 assets/IconButton.stories-a3f22f4a.js.map delete mode 100644 assets/InlineSearchInput.stories-9c784aa4.js delete mode 100644 assets/InlineSearchInput.stories-9c784aa4.js.map create mode 100644 assets/InlineSearchInput.stories-f76810ea.js create mode 100644 assets/InlineSearchInput.stories-f76810ea.js.map rename assets/{Popover.stories-0148e030.js => Popover.stories-2285f37e.js} (95%) rename assets/{Popover.stories-0148e030.js.map => Popover.stories-2285f37e.js.map} (99%) delete mode 100644 assets/SearchInput-00a41a85.js create mode 100644 assets/SearchInput-9896c048.js rename assets/{SearchInput-00a41a85.js.map => SearchInput-9896c048.js.map} (94%) rename assets/{SearchInput.stories-4e11e25d.js => SearchInput.stories-31dcc6f0.js} (85%) rename assets/{SearchInput.stories-4e11e25d.js.map => SearchInput.stories-31dcc6f0.js.map} (54%) rename assets/{SocialButton.stories-7126e39c.js => SocialButton.stories-7621e86d.js} (98%) rename assets/{SocialButton.stories-7126e39c.js.map => SocialButton.stories-7621e86d.js.map} (99%) rename assets/{TetDocs-8093825f.js => TetDocs-f48e3431.js} (98%) rename assets/{TetDocs-8093825f.js.map => TetDocs-f48e3431.js.map} (99%) delete mode 100644 assets/TextInput-3ac35c9f.js delete mode 100644 assets/TextInput-3ac35c9f.js.map create mode 100644 assets/TextInput-d9e744f0.js create mode 100644 assets/TextInput-d9e744f0.js.map rename assets/{TextInput.stories-7a661fe4.js => TextInput.stories-e1177578.js} (74%) rename assets/{TextInput.stories-7a661fe4.js.map => TextInput.stories-e1177578.js.map} (67%) delete mode 100644 assets/WithTooltip-J57HCPYA-02ba765a.js.map rename assets/{WithTooltip-J57HCPYA-02ba765a.js => WithTooltip-J57HCPYA-59a4a143.js} (52%) create mode 100644 assets/WithTooltip-J57HCPYA-59a4a143.js.map rename assets/{formatter-SWP5E3XI-5470661f.js => formatter-SWP5E3XI-be1d3122.js} (99%) rename assets/{formatter-SWP5E3XI-5470661f.js.map => formatter-SWP5E3XI-be1d3122.js.map} (99%) rename assets/{iframe-193f7824.js => iframe-eef935a2.js} (83%) rename assets/{iframe-193f7824.js.map => iframe-eef935a2.js.map} (99%) rename assets/{index-ffa7e839.js => index-b9879fdd.js} (99%) rename assets/{index-ffa7e839.js.map => index-b9879fdd.js.map} (99%) create mode 100644 assets/preview-3a20f414.js rename assets/{preview-db898567.js.map => preview-3a20f414.js.map} (94%) delete mode 100644 assets/preview-db898567.js delete mode 100644 assets/syntaxhighlighter-PONEFOSF-53e5463c.js.map rename assets/{syntaxhighlighter-PONEFOSF-53e5463c.js => syntaxhighlighter-PONEFOSF-6c12d9d8.js} (53%) create mode 100644 assets/syntaxhighlighter-PONEFOSF-6c12d9d8.js.map create mode 100644 src/components/TextInput/stylesBuilder/index.d.ts create mode 100644 src/components/TextInput/stylesBuilder/stylesBuilder.d.ts diff --git a/assets/Avatar.stories-e328c9cf.js b/assets/Avatar.stories-49c5b3a4.js similarity index 94% rename from assets/Avatar.stories-e328c9cf.js rename to assets/Avatar.stories-49c5b3a4.js index 9c69b138..5b6ac428 100644 --- a/assets/Avatar.stories-e328c9cf.js +++ b/assets/Avatar.stories-49c5b3a4.js @@ -1,4 +1,4 @@ -import{j as e,t as r}from"./TetrislyProvider-07235cd3.js";import{A as x}from"./Avatar-9208d2ad.js";import{T as h}from"./TetDocs-8093825f.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";import"./mergeConfigWithCutom-789678df.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const u=["blue","green","grey","red","orange","raspberry","magenta","purple","grape","violet","cyan","teal","aquamarine","emerald"],y=["large","medium","small","xSmall","2xSmall"],f=["rounded","square"],j=["low","high"],i=({size:a,...s})=>e.jsx(r.div,{display:"flex",gap:"40px",alignItems:"center",children:y.map(o=>e.jsx(x,{...s,size:o},o))}),v=()=>e.jsx(e.Fragment,{children:j.map(a=>e.jsxs(r.section,{pb:"component-padding-4xLarge",px:"1000",children:[e.jsxs(r.h2,{py:"500",text:"header-3xLarge",children:[b(a)," Emphasis"]}),e.jsx(r.div,{display:"flex",gap:"80px",justifyContent:"space-between",children:f.map(s=>e.jsxs(r.div,{display:"flex",flexDirection:"column",children:[e.jsx(r.h3,{py:"component-padding-2xLarge",color:"content-secondary",text:"body-large",borderBottomWidth:"1px",borderBottomColor:"border-default",children:s==="rounded"?"Shape: Rounded (Default)":"Shape: Square"}),e.jsx(r.hr,{}),e.jsxs(r.div,{display:"flex",flexDirection:"column",gap:"component-gap-xLarge",py:"component-padding-2xLarge",children:[a==="low"&&e.jsx(i,{appearance:"image",shape:s,img:{src:"https://thispersondoesnotexist.com/"}}),u.map(o=>e.jsx(i,{appearance:o,shape:s,emphasis:a,initials:"M"},`${o}${s}${a}`))]})]},s))})]},a))});function b(a){return a.charAt(0).toUpperCase()+a.slice(1)}const R={component:x,tags:["autodocs"],args:{img:{src:"https://thispersondoesnotexist.com/"}},argTypes:{img:{if:{arg:"appearance",eq:"image"}},initials:{if:{arg:"appearance",neq:"image"}},emphasis:{if:{arg:"appearance",neq:"image"}}},parameters:{controls:{sort:"alpha"},docs:{description:{component:"A visual representation of a user's identity, often displayed as a small image or icon. Avatars can be personalized with user-uploaded photos or auto-generated images and are commonly used in profile sections, comments, and messaging interfaces."},page:()=>e.jsx(h,{docs:"https://docs.tetrisly.com/components/list/avatar",children:e.jsx(v,{})})}}},t={argTypes:{appearance:u},args:{initials:"M",appearance:"cyan"}},n={args:{appearance:"image"}};var p,c,m;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{ +import{j as e,t as r}from"./TetrislyProvider-07235cd3.js";import{A as x}from"./Avatar-9208d2ad.js";import{T as h}from"./TetDocs-f48e3431.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";import"./mergeConfigWithCutom-789678df.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const u=["blue","green","grey","red","orange","raspberry","magenta","purple","grape","violet","cyan","teal","aquamarine","emerald"],y=["large","medium","small","xSmall","2xSmall"],f=["rounded","square"],j=["low","high"],i=({size:a,...s})=>e.jsx(r.div,{display:"flex",gap:"40px",alignItems:"center",children:y.map(o=>e.jsx(x,{...s,size:o},o))}),v=()=>e.jsx(e.Fragment,{children:j.map(a=>e.jsxs(r.section,{pb:"component-padding-4xLarge",px:"1000",children:[e.jsxs(r.h2,{py:"500",text:"header-3xLarge",children:[b(a)," Emphasis"]}),e.jsx(r.div,{display:"flex",gap:"80px",justifyContent:"space-between",children:f.map(s=>e.jsxs(r.div,{display:"flex",flexDirection:"column",children:[e.jsx(r.h3,{py:"component-padding-2xLarge",color:"content-secondary",text:"body-large",borderBottomWidth:"1px",borderBottomColor:"border-default",children:s==="rounded"?"Shape: Rounded (Default)":"Shape: Square"}),e.jsx(r.hr,{}),e.jsxs(r.div,{display:"flex",flexDirection:"column",gap:"component-gap-xLarge",py:"component-padding-2xLarge",children:[a==="low"&&e.jsx(i,{appearance:"image",shape:s,img:{src:"https://thispersondoesnotexist.com/"}}),u.map(o=>e.jsx(i,{appearance:o,shape:s,emphasis:a,initials:"M"},`${o}${s}${a}`))]})]},s))})]},a))});function b(a){return a.charAt(0).toUpperCase()+a.slice(1)}const R={component:x,tags:["autodocs"],args:{img:{src:"https://thispersondoesnotexist.com/"}},argTypes:{img:{if:{arg:"appearance",eq:"image"}},initials:{if:{arg:"appearance",neq:"image"}},emphasis:{if:{arg:"appearance",neq:"image"}}},parameters:{controls:{sort:"alpha"},docs:{description:{component:"A visual representation of a user's identity, often displayed as a small image or icon. Avatars can be personalized with user-uploaded photos or auto-generated images and are commonly used in profile sections, comments, and messaging interfaces."},page:()=>e.jsx(h,{docs:"https://docs.tetrisly.com/components/list/avatar",children:e.jsx(v,{})})}}},t={argTypes:{appearance:u},args:{initials:"M",appearance:"cyan"}},n={args:{appearance:"image"}};var p,c,m;t.parameters={...t.parameters,docs:{...(p=t.parameters)==null?void 0:p.docs,source:{originalSource:`{ argTypes: { appearance: appearances }, @@ -11,4 +11,4 @@ import{j as e,t as r}from"./TetrislyProvider-07235cd3.js";import{A as x}from"./A appearance: 'image' } }`,...(g=(l=n.parameters)==null?void 0:l.docs)==null?void 0:g.source}}};const _=["Initials","Image"];export{n as Image,t as Initials,_ as __namedExportsOrder,R as default}; -//# sourceMappingURL=Avatar.stories-e328c9cf.js.map +//# sourceMappingURL=Avatar.stories-49c5b3a4.js.map diff --git a/assets/Avatar.stories-e328c9cf.js.map b/assets/Avatar.stories-49c5b3a4.js.map similarity index 98% rename from assets/Avatar.stories-e328c9cf.js.map rename to assets/Avatar.stories-49c5b3a4.js.map index bebcded0..42288850 100644 --- a/assets/Avatar.stories-e328c9cf.js.map +++ b/assets/Avatar.stories-49c5b3a4.js.map @@ -1 +1 @@ -{"version":3,"file":"Avatar.stories-e328c9cf.js","sources":["../../src/types/Appearance.ts","../../src/docs-components/AvatarDocs.tsx"],"sourcesContent":["export const appearances = [\n 'blue',\n 'green',\n 'grey',\n 'red',\n 'orange',\n 'raspberry',\n 'magenta',\n 'purple',\n 'grape',\n 'violet',\n 'cyan',\n 'teal',\n 'aquamarine',\n 'emerald',\n] as const;\n\nexport type Appearance = (typeof appearances)[number];\n","import { Avatar } from '../components/Avatar/Avatar';\nimport { AvatarProps } from '../components/Avatar/Avatar.props';\nimport { appearances } from '../types/Appearance';\n\nimport { tet } from '@/tetrisly';\n\nconst sizes = [\n 'large',\n 'medium',\n 'small',\n 'xSmall',\n '2xSmall',\n] satisfies AvatarProps['size'][];\nconst shapes = ['rounded', 'square'] as const;\nconst emphasises = ['low', 'high'] as const;\n\nconst RowAvatar = ({ size: _, ...props }: AvatarProps) => (\n \n {sizes.map((size) => (\n \n ))}\n \n);\n\nexport const AvatarDocs = () => (\n <>\n {emphasises.map((emphasis) => (\n \n \n {capitalize(emphasis)} Emphasis\n \n \n {shapes.map((shape) => (\n \n \n {shape === 'rounded'\n ? 'Shape: Rounded (Default)'\n : 'Shape: Square'}\n \n \n \n {emphasis === 'low' && (\n \n )}\n {appearances.map((appearance) => (\n \n ))}\n \n \n ))}\n \n \n ))}\n \n);\n\nfunction capitalize(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n"],"names":["appearances","sizes","shapes","emphasises","RowAvatar","_","props","jsx","tet","size","Avatar","AvatarDocs","Fragment","emphasis","jsxs","capitalize","shape","appearance","string"],"mappings":"yaAAO,MAAMA,EAAc,CACzB,OACA,QACA,OACA,MACA,SACA,YACA,UACA,SACA,QACA,SACA,OACA,OACA,aACA,SACF,ECTMC,EAAQ,CACZ,QACA,SACA,QACA,SACA,SACF,EACMC,EAAS,CAAC,UAAW,QAAQ,EAC7BC,EAAa,CAAC,MAAO,MAAM,EAE3BC,EAAY,CAAC,CAAE,KAAMC,EAAG,GAAGC,CAAM,IACpCC,EAAAA,IAAAC,EAAI,IAAJ,CAAQ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,CAAC,EAAE,cAAgBA,EAAO,MAAM,CAAC,CACxD;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"Avatar.stories-49c5b3a4.js","sources":["../../src/types/Appearance.ts","../../src/docs-components/AvatarDocs.tsx"],"sourcesContent":["export const appearances = [\n 'blue',\n 'green',\n 'grey',\n 'red',\n 'orange',\n 'raspberry',\n 'magenta',\n 'purple',\n 'grape',\n 'violet',\n 'cyan',\n 'teal',\n 'aquamarine',\n 'emerald',\n] as const;\n\nexport type Appearance = (typeof appearances)[number];\n","import { Avatar } from '../components/Avatar/Avatar';\nimport { AvatarProps } from '../components/Avatar/Avatar.props';\nimport { appearances } from '../types/Appearance';\n\nimport { tet } from '@/tetrisly';\n\nconst sizes = [\n 'large',\n 'medium',\n 'small',\n 'xSmall',\n '2xSmall',\n] satisfies AvatarProps['size'][];\nconst shapes = ['rounded', 'square'] as const;\nconst emphasises = ['low', 'high'] as const;\n\nconst RowAvatar = ({ size: _, ...props }: AvatarProps) => (\n \n {sizes.map((size) => (\n \n ))}\n \n);\n\nexport const AvatarDocs = () => (\n <>\n {emphasises.map((emphasis) => (\n \n \n {capitalize(emphasis)} Emphasis\n \n \n {shapes.map((shape) => (\n \n \n {shape === 'rounded'\n ? 'Shape: Rounded (Default)'\n : 'Shape: Square'}\n \n \n \n {emphasis === 'low' && (\n \n )}\n {appearances.map((appearance) => (\n \n ))}\n \n \n ))}\n \n \n ))}\n \n);\n\nfunction capitalize(string: string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n"],"names":["appearances","sizes","shapes","emphasises","RowAvatar","_","props","jsx","tet","size","Avatar","AvatarDocs","Fragment","emphasis","jsxs","capitalize","shape","appearance","string"],"mappings":"yaAAO,MAAMA,EAAc,CACzB,OACA,QACA,OACA,MACA,SACA,YACA,UACA,SACA,QACA,SACA,OACA,OACA,aACA,SACF,ECTMC,EAAQ,CACZ,QACA,SACA,QACA,SACA,SACF,EACMC,EAAS,CAAC,UAAW,QAAQ,EAC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CAAA,GArCYG,CAsCd,CACD,EACH,CAAA,GA9CgBH,CA+ClB,CACD,CACH,CAAA,EAGF,SAASE,EAAWG,EAAgB,CAC3B,OAAAA,EAAO,OAAO,CAAC,EAAE,cAAgBA,EAAO,MAAM,CAAC,CACxD;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Badge.stories-112e1b9d.js b/assets/Badge.stories-fbdae9dc.js similarity index 97% rename from assets/Badge.stories-112e1b9d.js rename to assets/Badge.stories-fbdae9dc.js index f24eed45..537928d5 100644 --- a/assets/Badge.stories-112e1b9d.js +++ b/assets/Badge.stories-fbdae9dc.js @@ -1,4 +1,4 @@ -import{j as n,t as o}from"./TetrislyProvider-07235cd3.js";import{R as y}from"./tetrisly-icons.es-3ae3ef26.js";import{r as X}from"./index-76fb7be0.js";import{m as _}from"./mergeConfigWithCutom-789678df.js";import"./_commonjsHelpers-de833af9.js";const P={display:"flex",w:"fit-content",h:"xSmall",borderRadius:"large",flexShrink:0,alignItems:"center",gap:"component-gap-xSmall",p:"component-padding-xSmall",hasLabel:{px:"component-padding-small"},appearance:{blue:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-blue-background-strong"},medium:{color:"nonSemantic-blue-content-primary",backgroundColor:"nonSemantic-blue-background-muted"},low:{color:"nonSemantic-blue-content-primary",backgroundColor:"nonSemantic-blue-background-onSubtle"}}},green:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-green-background-strong"},medium:{color:"nonSemantic-green-content-primary",backgroundColor:"nonSemantic-green-background-muted"},low:{color:"nonSemantic-green-content-primary",backgroundColor:"nonSemantic-green-background-onSubtle"}}},grey:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-grey-background-strong"},medium:{color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-grey-background-muted"},low:{color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-grey-background-onSubtle"}}},red:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-red-background-strong"},medium:{color:"nonSemantic-red-content-primary",backgroundColor:"nonSemantic-red-background-muted"},low:{color:"nonSemantic-red-content-primary",backgroundColor:"nonSemantic-red-background-onSubtle"}}},orange:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-orange-background-strong"},medium:{color:"nonSemantic-orange-content-primary",backgroundColor:"nonSemantic-orange-background-muted"},low:{color:"nonSemantic-orange-content-primary",backgroundColor:"nonSemantic-orange-background-onSubtle"}}},raspberry:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-raspberry-background-strong"},medium:{color:"nonSemantic-raspberry-content-primary",backgroundColor:"nonSemantic-raspberry-background-muted"},low:{color:"nonSemantic-raspberry-content-primary",backgroundColor:"nonSemantic-raspberry-background-onSubtle"}}},magenta:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-magenta-background-strong"},medium:{color:"nonSemantic-magenta-content-primary",backgroundColor:"nonSemantic-magenta-background-muted"},low:{color:"nonSemantic-magenta-content-primary",backgroundColor:"nonSemantic-magenta-background-onSubtle"}}},purple:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-purple-background-strong"},medium:{color:"nonSemantic-purple-content-primary",backgroundColor:"nonSemantic-purple-background-muted"},low:{color:"nonSemantic-purple-content-primary",backgroundColor:"nonSemantic-purple-background-onSubtle"}}},grape:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-grape-background-strong"},medium:{color:"nonSemantic-grape-content-primary",backgroundColor:"nonSemantic-grape-background-muted"},low:{color:"nonSemantic-grape-content-primary",backgroundColor:"nonSemantic-grape-background-onSubtle"}}},violet:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-violet-background-strong"},medium:{color:"nonSemantic-violet-content-primary",backgroundColor:"nonSemantic-violet-background-muted"},low:{color:"nonSemantic-violet-content-primary",backgroundColor:"nonSemantic-violet-background-onSubtle"}}},cyan:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-cyan-background-strong"},medium:{color:"nonSemantic-cyan-content-primary",backgroundColor:"nonSemantic-cyan-background-muted"},low:{color:"nonSemantic-cyan-content-primary",backgroundColor:"nonSemantic-cyan-background-onSubtle"}}},teal:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-teal-background-strong"},medium:{color:"nonSemantic-teal-content-primary",backgroundColor:"nonSemantic-teal-background-muted"},low:{color:"nonSemantic-teal-content-primary",backgroundColor:"nonSemantic-teal-background-onSubtle"}}},aquamarine:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-aquamarine-background-strong"},medium:{color:"nonSemantic-aquamarine-content-primary",backgroundColor:"nonSemantic-aquamarine-background-muted"},low:{color:"nonSemantic-aquamarine-content-primary",backgroundColor:"nonSemantic-aquamarine-background-onSubtle"}}},emerald:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-emerald-background-strong"},medium:{color:"nonSemantic-emerald-content-primary",backgroundColor:"nonSemantic-emerald-background-muted"},low:{color:"nonSemantic-emerald-content-primary",backgroundColor:"nonSemantic-emerald-background-onSubtle"}}},outline:{emphasis:{high:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"},medium:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"},low:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"}}}},intent:{neutral:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-neutral-strong"},medium:{color:"content-primary",backgroundColor:"background-neutral-muted"},low:{color:"content-primary",backgroundColor:"background-neutral-onSubtle"}}},informative:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-informative-strong"},medium:{color:"content-informative-primary",backgroundColor:"background-informative-muted"},low:{color:"content-informative-primary",backgroundColor:"background-informative-onSubtle"}}},positive:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-positive-strong"},medium:{color:"content-positive-primary",backgroundColor:"background-positive-muted"},low:{color:"content-positive-primary",backgroundColor:"background-positive-onSubtle"}}},warning:{emphasis:{high:{color:"content-primary",backgroundColor:"background-warning-strong"},medium:{color:"content-warning-primary",backgroundColor:"background-warning-muted"},low:{color:"content-warning-primary",backgroundColor:"background-warning-onSubtle"}}},negative:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-negative-strong"},medium:{color:"content-negative-primary",backgroundColor:"background-negative-muted"},low:{color:"content-negative-primary",backgroundColor:"background-negative-onSubtle"}}}},innerElements:{label:{},iconContainer:{}}},R=(e,m,t,h,l)=>{const{innerElements:i,hasLabel:c,intent:u,appearance:v,...d}=_({defaultConfig:P,custom:e}),r=l?v[l].emphasis[t]:u[m].emphasis[t];return{container:{...d,...r,...h?c:{}},iconContainer:i.iconContainer,label:i.label}},a=({appearance:e,intent:m="neutral",emphasis:t="high",icon:h,beforeIcon:l=h,afterIcon:i,label:c,custom:u,...v})=>{const d=!!c,r=X.useMemo(()=>R(u,m,t,d,e),[u,m,t,d,e]);return n.jsxs(o.div,{...r.container,"data-testid":"badge",...v,children:[!!l&&n.jsx(o.span,{...r.iconContainer,"data-testid":"badge-iconContainer",children:n.jsx(y,{name:l,"data-testid":"badge-icon"})}),!!c&&n.jsx(o.span,{...r.label,"data-testid":"badge-label",children:c}),!!i&&n.jsx(o.span,{...r.iconContainer,"data-testid":"badge-iconContainer",children:n.jsx(y,{name:i,"data-testid":"badge-icon"})})]})};try{a.displayName="Badge",a.__docgenInfo={description:"",displayName:"Badge",props:{appearance:{defaultValue:null,description:"",name:"appearance",required:!1,type:{name:"enum",value:[{value:'"outline"'},{value:'"red"'},{value:'"green"'},{value:'"orange"'},{value:'"grey"'},{value:'"blue"'},{value:'"aquamarine"'},{value:'"cyan"'},{value:'"magenta"'},{value:'"purple"'},{value:'"teal"'},{value:'"violet"'},{value:'"raspberry"'},{value:'"grape"'},{value:'"emerald"'}]}},intent:{defaultValue:{value:"neutral"},description:"",name:"intent",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"informative"'},{value:'"warning"'},{value:'"negative"'},{value:'"positive"'}]}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},beforeIcon:{defaultValue:null,description:"",name:"beforeIcon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},afterIcon:{defaultValue:null,description:"",name:"afterIcon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},emphasis:{defaultValue:{value:"high"},description:"",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"low"'},{value:'"high"'},{value:'"medium"'}]}},custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"BadgeConfig"}}}}}catch{}const k=["blue","green","grey","red","orange","raspberry","magenta","purple","grape","violet","cyan","teal","aquamarine","emerald","outline"],S=["neutral","informative","positive","warning","negative"],Y={title:"Components/Badge",component:a,tags:["autodocs"]},s={args:{intent:"informative",emphasis:"high",label:"Label"}},p={args:{appearance:"blue",icon:"16-bolt"}},g={args:{intent:"informative",label:"Label",beforeIcon:"16-bolt",afterIcon:"16-bolt"}},b=()=>n.jsxs(o.div,{spaceY:"component-gap-small",children:[n.jsx(o.p,{children:"High emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.filter(e=>e!=="outline").map(e=>n.jsx(a,{appearance:e,icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,icon:"16-bolt"},e))}),n.jsx(o.p,{children:"Medium emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.map(e=>n.jsx(a,{appearance:e,emphasis:"medium",icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,emphasis:"medium",icon:"16-bolt"},e))}),n.jsx(o.p,{children:"Low emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.filter(e=>e!=="outline").map(e=>n.jsx(a,{appearance:e,emphasis:"low",icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,emphasis:"low",icon:"16-bolt"},e))})]});var w,f,C;s.parameters={...s.parameters,docs:{...(w=s.parameters)==null?void 0:w.docs,source:{originalSource:`{ +import{j as n,t as o}from"./TetrislyProvider-07235cd3.js";import{R as y}from"./tetrisly-icons.es-3ae3ef26.js";import{r as X}from"./index-76fb7be0.js";import{m as _}from"./mergeConfigWithCutom-789678df.js";import"./_commonjsHelpers-de833af9.js";const P={display:"flex",w:"fit-content",h:"xSmall",borderRadius:"large",flexShrink:0,alignItems:"center",gap:"component-gap-xSmall",p:"component-padding-xSmall",hasLabel:{px:"component-padding-small"},appearance:{blue:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-blue-background-strong"},medium:{color:"nonSemantic-blue-content-primary",backgroundColor:"nonSemantic-blue-background-muted"},low:{color:"nonSemantic-blue-content-primary",backgroundColor:"nonSemantic-blue-background-onSubtle"}}},green:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-green-background-strong"},medium:{color:"nonSemantic-green-content-primary",backgroundColor:"nonSemantic-green-background-muted"},low:{color:"nonSemantic-green-content-primary",backgroundColor:"nonSemantic-green-background-onSubtle"}}},grey:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-grey-background-strong"},medium:{color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-grey-background-muted"},low:{color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-grey-background-onSubtle"}}},red:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-red-background-strong"},medium:{color:"nonSemantic-red-content-primary",backgroundColor:"nonSemantic-red-background-muted"},low:{color:"nonSemantic-red-content-primary",backgroundColor:"nonSemantic-red-background-onSubtle"}}},orange:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-orange-background-strong"},medium:{color:"nonSemantic-orange-content-primary",backgroundColor:"nonSemantic-orange-background-muted"},low:{color:"nonSemantic-orange-content-primary",backgroundColor:"nonSemantic-orange-background-onSubtle"}}},raspberry:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-raspberry-background-strong"},medium:{color:"nonSemantic-raspberry-content-primary",backgroundColor:"nonSemantic-raspberry-background-muted"},low:{color:"nonSemantic-raspberry-content-primary",backgroundColor:"nonSemantic-raspberry-background-onSubtle"}}},magenta:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-magenta-background-strong"},medium:{color:"nonSemantic-magenta-content-primary",backgroundColor:"nonSemantic-magenta-background-muted"},low:{color:"nonSemantic-magenta-content-primary",backgroundColor:"nonSemantic-magenta-background-onSubtle"}}},purple:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-purple-background-strong"},medium:{color:"nonSemantic-purple-content-primary",backgroundColor:"nonSemantic-purple-background-muted"},low:{color:"nonSemantic-purple-content-primary",backgroundColor:"nonSemantic-purple-background-onSubtle"}}},grape:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-grape-background-strong"},medium:{color:"nonSemantic-grape-content-primary",backgroundColor:"nonSemantic-grape-background-muted"},low:{color:"nonSemantic-grape-content-primary",backgroundColor:"nonSemantic-grape-background-onSubtle"}}},violet:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-violet-background-strong"},medium:{color:"nonSemantic-violet-content-primary",backgroundColor:"nonSemantic-violet-background-muted"},low:{color:"nonSemantic-violet-content-primary",backgroundColor:"nonSemantic-violet-background-onSubtle"}}},cyan:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-cyan-background-strong"},medium:{color:"nonSemantic-cyan-content-primary",backgroundColor:"nonSemantic-cyan-background-muted"},low:{color:"nonSemantic-cyan-content-primary",backgroundColor:"nonSemantic-cyan-background-onSubtle"}}},teal:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-teal-background-strong"},medium:{color:"nonSemantic-teal-content-primary",backgroundColor:"nonSemantic-teal-background-muted"},low:{color:"nonSemantic-teal-content-primary",backgroundColor:"nonSemantic-teal-background-onSubtle"}}},aquamarine:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-aquamarine-background-strong"},medium:{color:"nonSemantic-aquamarine-content-primary",backgroundColor:"nonSemantic-aquamarine-background-muted"},low:{color:"nonSemantic-aquamarine-content-primary",backgroundColor:"nonSemantic-aquamarine-background-onSubtle"}}},emerald:{emphasis:{high:{color:"nonSemantic-white-content-primary",backgroundColor:"nonSemantic-emerald-background-strong"},medium:{color:"nonSemantic-emerald-content-primary",backgroundColor:"nonSemantic-emerald-background-muted"},low:{color:"nonSemantic-emerald-content-primary",backgroundColor:"nonSemantic-emerald-background-onSubtle"}}},outline:{emphasis:{high:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"},medium:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"},low:{border:"1px solid",borderColor:"nonSemantic-grey-border-strong",color:"nonSemantic-grey-content-primary",backgroundColor:"nonSemantic-white-background-strong"}}}},intent:{neutral:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-neutral-strong"},medium:{color:"content-primary",backgroundColor:"background-neutral-muted"},low:{color:"content-primary",backgroundColor:"background-neutral-onSubtle"}}},informative:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-informative-strong"},medium:{color:"content-informative-primary",backgroundColor:"background-informative-muted"},low:{color:"content-informative-primary",backgroundColor:"background-informative-onSubtle"}}},positive:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-positive-strong"},medium:{color:"content-positive-primary",backgroundColor:"background-positive-muted"},low:{color:"content-positive-primary",backgroundColor:"background-positive-onSubtle"}}},warning:{emphasis:{high:{color:"content-primary",backgroundColor:"background-warning-strong"},medium:{color:"content-warning-primary",backgroundColor:"background-warning-muted"},low:{color:"content-warning-primary",backgroundColor:"background-warning-onSubtle"}}},negative:{emphasis:{high:{color:"content-primary-inverted",backgroundColor:"background-negative-strong"},medium:{color:"content-negative-primary",backgroundColor:"background-negative-muted"},low:{color:"content-negative-primary",backgroundColor:"background-negative-onSubtle"}}}},innerElements:{label:{},iconContainer:{}}},R=(e,t,m,h,l)=>{const{innerElements:i,hasLabel:c,intent:u,appearance:v,...d}=_({defaultConfig:P,custom:m}),r=l?v[l].emphasis[t]:u[e].emphasis[t];return{container:{...d,...r,...h?c:{}},iconContainer:i.iconContainer,label:i.label}},a=({appearance:e,intent:t="neutral",emphasis:m="high",icon:h,beforeIcon:l=h,afterIcon:i,label:c,custom:u,...v})=>{const d=!!c,r=X.useMemo(()=>R(t,m,u,d,e),[u,t,m,d,e]);return n.jsxs(o.div,{...r.container,"data-testid":"badge",...v,children:[!!l&&n.jsx(o.span,{...r.iconContainer,"data-testid":"badge-iconContainer",children:n.jsx(y,{name:l,"data-testid":"badge-icon"})}),!!c&&n.jsx(o.span,{...r.label,"data-testid":"badge-label",children:c}),!!i&&n.jsx(o.span,{...r.iconContainer,"data-testid":"badge-iconContainer",children:n.jsx(y,{name:i,"data-testid":"badge-icon"})})]})};try{a.displayName="Badge",a.__docgenInfo={description:"",displayName:"Badge",props:{appearance:{defaultValue:null,description:"",name:"appearance",required:!1,type:{name:"enum",value:[{value:'"outline"'},{value:'"red"'},{value:'"green"'},{value:'"orange"'},{value:'"grey"'},{value:'"blue"'},{value:'"aquamarine"'},{value:'"cyan"'},{value:'"magenta"'},{value:'"purple"'},{value:'"teal"'},{value:'"violet"'},{value:'"raspberry"'},{value:'"grape"'},{value:'"emerald"'}]}},intent:{defaultValue:{value:"neutral"},description:"",name:"intent",required:!1,type:{name:"enum",value:[{value:'"neutral"'},{value:'"informative"'},{value:'"warning"'},{value:'"negative"'},{value:'"positive"'}]}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},beforeIcon:{defaultValue:null,description:"",name:"beforeIcon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},afterIcon:{defaultValue:null,description:"",name:"afterIcon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:'"16-alert-full"'},{value:'"16-arrowhead-down-small"'},{value:'"16-arrowhead-down"'},{value:'"16-arrowhead-left-small"'},{value:'"16-arrowhead-left"'},{value:'"16-arrowhead-right-small"'},{value:'"16-arrowhead-right"'},{value:'"16-arrowhead-top-small"'},{value:'"16-arrowhead-top"'},{value:'"16-bolt"'},{value:'"16-check"'},{value:'"16-chevron-down"'},{value:'"16-chevron-left"'},{value:'"16-chevron-right"'},{value:'"16-chevron-top"'},{value:'"16-close"'},{value:'"16-dot"'},{value:'"16-info"'},{value:'"16-minus"'},{value:'"16-plus"'}]}},emphasis:{defaultValue:{value:"high"},description:"",name:"emphasis",required:!1,type:{name:"enum",value:[{value:'"low"'},{value:'"high"'},{value:'"medium"'}]}},custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"BadgeConfig"}}}}}catch{}const k=["blue","green","grey","red","orange","raspberry","magenta","purple","grape","violet","cyan","teal","aquamarine","emerald","outline"],S=["neutral","informative","positive","warning","negative"],Y={title:"Components/Badge",component:a,tags:["autodocs"]},s={args:{intent:"informative",emphasis:"high",label:"Label"}},p={args:{appearance:"blue",icon:"16-bolt"}},g={args:{intent:"informative",label:"Label",beforeIcon:"16-bolt",afterIcon:"16-bolt"}},b=()=>n.jsxs(o.div,{spaceY:"component-gap-small",children:[n.jsx(o.p,{children:"High emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.filter(e=>e!=="outline").map(e=>n.jsx(a,{appearance:e,icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,icon:"16-bolt"},e))}),n.jsx(o.p,{children:"Medium emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.map(e=>n.jsx(a,{appearance:e,emphasis:"medium",icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,emphasis:"medium",icon:"16-bolt"},e))}),n.jsx(o.p,{children:"Low emphasis"}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:k.filter(e=>e!=="outline").map(e=>n.jsx(a,{appearance:e,emphasis:"low",icon:"16-bolt"},e))}),n.jsx(o.div,{display:"flex",spaceX:"component-gap-small",children:S.map(e=>n.jsx(a,{intent:e,emphasis:"low",icon:"16-bolt"},e))})]});var w,f,C;s.parameters={...s.parameters,docs:{...(w=s.parameters)==null?void 0:w.docs,source:{originalSource:`{ args: { intent: 'informative', emphasis: 'high', @@ -39,4 +39,4 @@ import{j as n,t as o}from"./TetrislyProvider-07235cd3.js";import{R as y}from"./t {INTENTS.map(intent => )} `,...(L=(B=b.parameters)==null?void 0:B.docs)==null?void 0:L.source}}};const O=["Default","Icon","LabelIcons","All"];export{b as All,s as Default,p as Icon,g as LabelIcons,O as __namedExportsOrder,Y as default}; -//# sourceMappingURL=Badge.stories-112e1b9d.js.map +//# sourceMappingURL=Badge.stories-fbdae9dc.js.map diff --git a/assets/Badge.stories-112e1b9d.js.map b/assets/Badge.stories-fbdae9dc.js.map similarity index 60% rename from assets/Badge.stories-112e1b9d.js.map rename to assets/Badge.stories-fbdae9dc.js.map index 06a73576..2afb394a 100644 --- a/assets/Badge.stories-112e1b9d.js.map +++ b/assets/Badge.stories-fbdae9dc.js.map @@ -1 +1 @@ -{"version":3,"file":"Badge.stories-112e1b9d.js","sources":["../../src/components/Badge/Badge.styles.ts","../../src/components/Badge/stylesBuilder/stylesBuilder.ts","../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { BadgeAppearance } from './BadgeAppearance.type';\nimport { BadgeIntent } from './BadgeIntent.type';\n\nimport { BaseProps } from '@/types/BaseProps';\n\nexport type BadgeConfig = {\n appearance?: Partial<\n Record<\n BadgeAppearance,\n { emphasis?: Partial> }\n >\n >;\n intent?: Partial<\n Record<\n BadgeIntent,\n { emphasis?: Partial> }\n >\n >;\n hasLabel?: BaseProps;\n innerElements?: {\n label?: BaseProps;\n iconContainer?: BaseProps;\n };\n} & BaseProps;\n\nexport const defaultConfig = {\n display: 'flex',\n w: 'fit-content',\n h: 'xSmall',\n borderRadius: 'large',\n flexShrink: 0,\n alignItems: 'center',\n gap: 'component-gap-xSmall',\n p: 'component-padding-xSmall',\n hasLabel: {\n px: 'component-padding-small',\n },\n appearance: {\n blue: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-blue-background-strong',\n },\n medium: {\n color: 'nonSemantic-blue-content-primary',\n backgroundColor: 'nonSemantic-blue-background-muted',\n },\n low: {\n color: 'nonSemantic-blue-content-primary',\n backgroundColor: 'nonSemantic-blue-background-onSubtle',\n },\n },\n },\n green: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-green-background-strong',\n },\n medium: {\n color: 'nonSemantic-green-content-primary',\n backgroundColor: 'nonSemantic-green-background-muted',\n },\n low: {\n color: 'nonSemantic-green-content-primary',\n backgroundColor: 'nonSemantic-green-background-onSubtle',\n },\n },\n },\n grey: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-grey-background-strong',\n },\n medium: {\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-grey-background-muted',\n },\n low: {\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-grey-background-onSubtle',\n },\n },\n },\n red: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-red-background-strong',\n },\n medium: {\n color: 'nonSemantic-red-content-primary',\n backgroundColor: 'nonSemantic-red-background-muted',\n },\n low: {\n color: 'nonSemantic-red-content-primary',\n backgroundColor: 'nonSemantic-red-background-onSubtle',\n },\n },\n },\n orange: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-orange-background-strong',\n },\n medium: {\n color: 'nonSemantic-orange-content-primary',\n backgroundColor: 'nonSemantic-orange-background-muted',\n },\n low: {\n color: 'nonSemantic-orange-content-primary',\n backgroundColor: 'nonSemantic-orange-background-onSubtle',\n },\n },\n },\n raspberry: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-strong',\n },\n medium: {\n color: 'nonSemantic-raspberry-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-muted',\n },\n low: {\n color: 'nonSemantic-raspberry-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-onSubtle',\n },\n },\n },\n magenta: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-strong',\n },\n medium: {\n color: 'nonSemantic-magenta-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-muted',\n },\n low: {\n color: 'nonSemantic-magenta-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-onSubtle',\n },\n },\n },\n purple: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-purple-background-strong',\n },\n medium: {\n color: 'nonSemantic-purple-content-primary',\n backgroundColor: 'nonSemantic-purple-background-muted',\n },\n low: {\n color: 'nonSemantic-purple-content-primary',\n backgroundColor: 'nonSemantic-purple-background-onSubtle',\n },\n },\n },\n grape: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-grape-background-strong',\n },\n medium: {\n color: 'nonSemantic-grape-content-primary',\n backgroundColor: 'nonSemantic-grape-background-muted',\n },\n low: {\n color: 'nonSemantic-grape-content-primary',\n backgroundColor: 'nonSemantic-grape-background-onSubtle',\n },\n },\n },\n violet: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-violet-background-strong',\n },\n medium: {\n color: 'nonSemantic-violet-content-primary',\n backgroundColor: 'nonSemantic-violet-background-muted',\n },\n low: {\n color: 'nonSemantic-violet-content-primary',\n backgroundColor: 'nonSemantic-violet-background-onSubtle',\n },\n },\n },\n cyan: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-strong',\n },\n medium: {\n color: 'nonSemantic-cyan-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-muted',\n },\n low: {\n color: 'nonSemantic-cyan-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-onSubtle',\n },\n },\n },\n teal: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-teal-background-strong',\n },\n medium: {\n color: 'nonSemantic-teal-content-primary',\n backgroundColor: 'nonSemantic-teal-background-muted',\n },\n low: {\n color: 'nonSemantic-teal-content-primary',\n backgroundColor: 'nonSemantic-teal-background-onSubtle',\n },\n },\n },\n aquamarine: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-strong',\n },\n medium: {\n color: 'nonSemantic-aquamarine-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-muted',\n },\n low: {\n color: 'nonSemantic-aquamarine-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-onSubtle',\n },\n },\n },\n emerald: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-strong',\n },\n medium: {\n color: 'nonSemantic-emerald-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-muted',\n },\n low: {\n color: 'nonSemantic-emerald-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-onSubtle',\n },\n },\n },\n outline: {\n emphasis: {\n high: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n medium: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n low: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n },\n },\n },\n intent: {\n neutral: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-neutral-strong',\n },\n medium: {\n color: 'content-primary',\n backgroundColor: 'background-neutral-muted',\n },\n low: {\n color: 'content-primary',\n backgroundColor: 'background-neutral-onSubtle',\n },\n },\n },\n informative: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-informative-strong',\n },\n medium: {\n color: 'content-informative-primary',\n backgroundColor: 'background-informative-muted',\n },\n low: {\n color: 'content-informative-primary',\n backgroundColor: 'background-informative-onSubtle',\n },\n },\n },\n positive: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-positive-strong',\n },\n medium: {\n color: 'content-positive-primary',\n backgroundColor: 'background-positive-muted',\n },\n low: {\n color: 'content-positive-primary',\n backgroundColor: 'background-positive-onSubtle',\n },\n },\n },\n warning: {\n emphasis: {\n high: {\n color: 'content-primary',\n backgroundColor: 'background-warning-strong',\n },\n medium: {\n color: 'content-warning-primary',\n backgroundColor: 'background-warning-muted',\n },\n low: {\n color: 'content-warning-primary',\n backgroundColor: 'background-warning-onSubtle',\n },\n },\n },\n negative: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-negative-strong',\n },\n medium: {\n color: 'content-negative-primary',\n backgroundColor: 'background-negative-muted',\n },\n low: {\n color: 'content-negative-primary',\n backgroundColor: 'background-negative-onSubtle',\n },\n },\n },\n },\n innerElements: {\n label: {},\n iconContainer: {},\n },\n} satisfies BadgeConfig;\n","import { BadgeProps } from '../Badge.props';\nimport { defaultConfig } from '../Badge.styles';\nimport { BadgeAppearance } from '../BadgeAppearance.type';\nimport { BadgeEmphasis } from '../BadgeEmphasis.type';\nimport { BadgeIntent } from '../BadgeIntent.type';\n\nimport { mergeConfigWithCustom } from '@/services/mergeConfigWithCustom/mergeConfigWithCutom';\nimport { BaseProps } from '@/types/BaseProps';\n\ntype BadgeStylesBuilder = {\n container: BaseProps;\n iconContainer: BaseProps;\n label: BaseProps;\n};\n\nexport const stylesBuilder = (\n custom: BadgeProps['custom'],\n intent: BadgeIntent,\n emphasis: BadgeEmphasis,\n hasLabel?: boolean,\n appearance?: BadgeAppearance,\n): BadgeStylesBuilder => {\n const {\n innerElements,\n hasLabel: hasLabelStyles,\n intent: containerIntent,\n appearance: containerAppearance,\n ...container\n } = mergeConfigWithCustom({ defaultConfig, custom });\n\n const containerStyles = appearance\n ? containerAppearance[appearance].emphasis[emphasis]\n : containerIntent[intent].emphasis[emphasis];\n\n return {\n container: {\n ...container,\n ...containerStyles,\n ...(hasLabel ? hasLabelStyles : {}),\n },\n iconContainer: innerElements.iconContainer,\n label: innerElements.label,\n };\n};\n","import { Icon } from '@virtuslab/tetrisly-icons';\nimport { FC, useMemo } from 'react';\n\nimport { BadgeProps } from './Badge.props';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport { tet } from '@/tetrisly';\nimport { MarginProps } from '@/types/MarginProps';\n\nexport const Badge: FC = ({\n appearance,\n intent = 'neutral',\n emphasis = 'high',\n icon,\n beforeIcon = icon,\n afterIcon,\n label,\n custom,\n ...restProps\n}) => {\n const hasLabel = !!label;\n const styles = useMemo(\n () => stylesBuilder(custom, intent, emphasis, hasLabel, appearance),\n [custom, intent, emphasis, hasLabel, appearance],\n );\n\n return (\n \n {!!beforeIcon && (\n \n \n \n )}\n {!!label && (\n \n {label}\n \n )}\n {!!afterIcon && (\n \n \n \n )}\n \n );\n};\n"],"names":["defaultConfig","stylesBuilder","custom","intent","emphasis","hasLabel","appearance","innerElements","hasLabelStyles","containerIntent","containerAppearance","container","mergeConfigWithCustom","containerStyles","Badge","icon","beforeIcon","afterIcon","label","restProps","styles","useMemo","jsxs","tet","jsx","Icon"],"mappings":"oPAyBO,MAAMA,EAAgB,CAC3B,QAAS,OACT,EAAG,cACH,EAAG,SACH,aAAc,QACd,WAAY,EACZ,WAAY,SACZ,IAAK,uBACL,EAAG,2BACH,SAAU,CACR,GAAI,yBACN,EACA,WAAY,CACV,KAAM,CACJ,SAAU,CACR,KAAM,CACJ,MAAO,oCACP,gBAAiB,oCACnB,EACA,OAAQ,CACN,MAAO,mCACP,gBAAiB,mCACnB,EACA,IAAK,CACH,MAAO,mCACP,gBAAiB,sCACnB,CACF,CACF,EACA,MAAO,CACL,SAAU,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,WAAAR,EAClD,OAAAH,EAAA,UACS,SAAAC,EAAA,OACE,KAAAW,EACX,WAAAC,EAAAD,EACa,UAAAE,EACb,MAAAC,EACA,OAAAhB,EACA,GAAAiB,CAEF,IAAA,CACE,MAAAd,EAAA,CAAA,CAAAa,EACAE,EAAAC,EAAA,QAAe,IAAApB,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,CAAA,EACqD,CAAAJ,EAAAC,EAAAC,EAAAC,EAAAC,CAAA,CACnB,EAGjD,OAAAgB,OAAAC,EAAA,IAAA,CAAA,GAAAH,EAAA,UAAA,cAAA,QAAA,GAAAD,EAAA,SAAA,CAEK,CAAA,CAAAH,GAAAQ,EAAAA,IAAAD,EAAA,KAAA,CAAA,GAAAH,EAAA,cAAA,cAAA,sBAAA,SAAAI,EAAAA,IAAAC,EAAA,CAAA,KAAAT,EAAA,cAAA,YAAA,CAAA,EAAA,EAGC,CAAA,CAAAE,GAAAM,EAAAA,IAAAD,EAAA,KAAA,CAAA,GAAAH,EAAA,MAAA,cAAA,cAAA,SAAAF,CAAA,CAAA,EAKA,CAAA,CAAAD,GAAAO,EAAAA,IAAAD,EAAA,KAAA,CAAA,GAAAH,EAAA,cAAA,cAAA,sBAAA,SAAAI,EAAAA,IAAAC,EAAA,CAAA,KAAAR,EAAA,cAAA,YAAA,CAAA,EAAA,CAKA,CAAA,CAAA,CAIR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"Badge.stories-fbdae9dc.js","sources":["../../src/components/Badge/Badge.styles.ts","../../src/components/Badge/stylesBuilder/stylesBuilder.ts","../../src/components/Badge/Badge.tsx"],"sourcesContent":["import { BadgeAppearance } from './BadgeAppearance.type';\nimport { BadgeIntent } from './BadgeIntent.type';\n\nimport { BaseProps } from '@/types/BaseProps';\n\nexport type BadgeConfig = {\n appearance?: Partial<\n Record<\n BadgeAppearance,\n { emphasis?: Partial> }\n >\n >;\n intent?: Partial<\n Record<\n BadgeIntent,\n { emphasis?: Partial> }\n >\n >;\n hasLabel?: BaseProps;\n innerElements?: {\n label?: BaseProps;\n iconContainer?: BaseProps;\n };\n} & BaseProps;\n\nexport const defaultConfig = {\n display: 'flex',\n w: 'fit-content',\n h: 'xSmall',\n borderRadius: 'large',\n flexShrink: 0,\n alignItems: 'center',\n gap: 'component-gap-xSmall',\n p: 'component-padding-xSmall',\n hasLabel: {\n px: 'component-padding-small',\n },\n appearance: {\n blue: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-blue-background-strong',\n },\n medium: {\n color: 'nonSemantic-blue-content-primary',\n backgroundColor: 'nonSemantic-blue-background-muted',\n },\n low: {\n color: 'nonSemantic-blue-content-primary',\n backgroundColor: 'nonSemantic-blue-background-onSubtle',\n },\n },\n },\n green: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-green-background-strong',\n },\n medium: {\n color: 'nonSemantic-green-content-primary',\n backgroundColor: 'nonSemantic-green-background-muted',\n },\n low: {\n color: 'nonSemantic-green-content-primary',\n backgroundColor: 'nonSemantic-green-background-onSubtle',\n },\n },\n },\n grey: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-grey-background-strong',\n },\n medium: {\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-grey-background-muted',\n },\n low: {\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-grey-background-onSubtle',\n },\n },\n },\n red: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-red-background-strong',\n },\n medium: {\n color: 'nonSemantic-red-content-primary',\n backgroundColor: 'nonSemantic-red-background-muted',\n },\n low: {\n color: 'nonSemantic-red-content-primary',\n backgroundColor: 'nonSemantic-red-background-onSubtle',\n },\n },\n },\n orange: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-orange-background-strong',\n },\n medium: {\n color: 'nonSemantic-orange-content-primary',\n backgroundColor: 'nonSemantic-orange-background-muted',\n },\n low: {\n color: 'nonSemantic-orange-content-primary',\n backgroundColor: 'nonSemantic-orange-background-onSubtle',\n },\n },\n },\n raspberry: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-strong',\n },\n medium: {\n color: 'nonSemantic-raspberry-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-muted',\n },\n low: {\n color: 'nonSemantic-raspberry-content-primary',\n backgroundColor: 'nonSemantic-raspberry-background-onSubtle',\n },\n },\n },\n magenta: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-strong',\n },\n medium: {\n color: 'nonSemantic-magenta-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-muted',\n },\n low: {\n color: 'nonSemantic-magenta-content-primary',\n backgroundColor: 'nonSemantic-magenta-background-onSubtle',\n },\n },\n },\n purple: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-purple-background-strong',\n },\n medium: {\n color: 'nonSemantic-purple-content-primary',\n backgroundColor: 'nonSemantic-purple-background-muted',\n },\n low: {\n color: 'nonSemantic-purple-content-primary',\n backgroundColor: 'nonSemantic-purple-background-onSubtle',\n },\n },\n },\n grape: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-grape-background-strong',\n },\n medium: {\n color: 'nonSemantic-grape-content-primary',\n backgroundColor: 'nonSemantic-grape-background-muted',\n },\n low: {\n color: 'nonSemantic-grape-content-primary',\n backgroundColor: 'nonSemantic-grape-background-onSubtle',\n },\n },\n },\n violet: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-violet-background-strong',\n },\n medium: {\n color: 'nonSemantic-violet-content-primary',\n backgroundColor: 'nonSemantic-violet-background-muted',\n },\n low: {\n color: 'nonSemantic-violet-content-primary',\n backgroundColor: 'nonSemantic-violet-background-onSubtle',\n },\n },\n },\n cyan: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-strong',\n },\n medium: {\n color: 'nonSemantic-cyan-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-muted',\n },\n low: {\n color: 'nonSemantic-cyan-content-primary',\n backgroundColor: 'nonSemantic-cyan-background-onSubtle',\n },\n },\n },\n teal: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-teal-background-strong',\n },\n medium: {\n color: 'nonSemantic-teal-content-primary',\n backgroundColor: 'nonSemantic-teal-background-muted',\n },\n low: {\n color: 'nonSemantic-teal-content-primary',\n backgroundColor: 'nonSemantic-teal-background-onSubtle',\n },\n },\n },\n aquamarine: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-strong',\n },\n medium: {\n color: 'nonSemantic-aquamarine-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-muted',\n },\n low: {\n color: 'nonSemantic-aquamarine-content-primary',\n backgroundColor: 'nonSemantic-aquamarine-background-onSubtle',\n },\n },\n },\n emerald: {\n emphasis: {\n high: {\n color: 'nonSemantic-white-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-strong',\n },\n medium: {\n color: 'nonSemantic-emerald-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-muted',\n },\n low: {\n color: 'nonSemantic-emerald-content-primary',\n backgroundColor: 'nonSemantic-emerald-background-onSubtle',\n },\n },\n },\n outline: {\n emphasis: {\n high: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n medium: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n low: {\n border: '1px solid',\n borderColor: 'nonSemantic-grey-border-strong',\n color: 'nonSemantic-grey-content-primary',\n backgroundColor: 'nonSemantic-white-background-strong',\n },\n },\n },\n },\n intent: {\n neutral: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-neutral-strong',\n },\n medium: {\n color: 'content-primary',\n backgroundColor: 'background-neutral-muted',\n },\n low: {\n color: 'content-primary',\n backgroundColor: 'background-neutral-onSubtle',\n },\n },\n },\n informative: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-informative-strong',\n },\n medium: {\n color: 'content-informative-primary',\n backgroundColor: 'background-informative-muted',\n },\n low: {\n color: 'content-informative-primary',\n backgroundColor: 'background-informative-onSubtle',\n },\n },\n },\n positive: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-positive-strong',\n },\n medium: {\n color: 'content-positive-primary',\n backgroundColor: 'background-positive-muted',\n },\n low: {\n color: 'content-positive-primary',\n backgroundColor: 'background-positive-onSubtle',\n },\n },\n },\n warning: {\n emphasis: {\n high: {\n color: 'content-primary',\n backgroundColor: 'background-warning-strong',\n },\n medium: {\n color: 'content-warning-primary',\n backgroundColor: 'background-warning-muted',\n },\n low: {\n color: 'content-warning-primary',\n backgroundColor: 'background-warning-onSubtle',\n },\n },\n },\n negative: {\n emphasis: {\n high: {\n color: 'content-primary-inverted',\n backgroundColor: 'background-negative-strong',\n },\n medium: {\n color: 'content-negative-primary',\n backgroundColor: 'background-negative-muted',\n },\n low: {\n color: 'content-negative-primary',\n backgroundColor: 'background-negative-onSubtle',\n },\n },\n },\n },\n innerElements: {\n label: {},\n iconContainer: {},\n },\n} satisfies BadgeConfig;\n","import { BadgeConfig, defaultConfig } from '../Badge.styles';\nimport { BadgeAppearance } from '../BadgeAppearance.type';\nimport { BadgeEmphasis } from '../BadgeEmphasis.type';\nimport { BadgeIntent } from '../BadgeIntent.type';\n\nimport { mergeConfigWithCustom } from '@/services/mergeConfigWithCustom/mergeConfigWithCutom';\nimport { BaseProps } from '@/types/BaseProps';\n\ntype BadgeStylesBuilder = {\n container: BaseProps;\n iconContainer: BaseProps;\n label: BaseProps;\n};\n\nexport const stylesBuilder = (\n intent: BadgeIntent,\n emphasis: BadgeEmphasis,\n custom?: BadgeConfig,\n hasLabel?: boolean,\n appearance?: BadgeAppearance,\n): BadgeStylesBuilder => {\n const {\n innerElements,\n hasLabel: hasLabelStyles,\n intent: containerIntent,\n appearance: containerAppearance,\n ...container\n } = mergeConfigWithCustom({ defaultConfig, custom });\n\n const containerStyles = appearance\n ? containerAppearance[appearance].emphasis[emphasis]\n : containerIntent[intent].emphasis[emphasis];\n\n return {\n container: {\n ...container,\n ...containerStyles,\n ...(hasLabel ? hasLabelStyles : {}),\n },\n iconContainer: innerElements.iconContainer,\n label: innerElements.label,\n };\n};\n","import { Icon } from '@virtuslab/tetrisly-icons';\nimport { FC, useMemo } from 'react';\n\nimport { BadgeProps } from './Badge.props';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport { tet } from '@/tetrisly';\nimport { MarginProps } from '@/types/MarginProps';\n\nexport const Badge: FC = ({\n appearance,\n intent = 'neutral',\n emphasis = 'high',\n icon,\n beforeIcon = icon,\n afterIcon,\n label,\n custom,\n ...restProps\n}) => {\n const hasLabel = !!label;\n const styles = useMemo(\n () => stylesBuilder(intent, emphasis, custom, hasLabel, appearance),\n [custom, intent, emphasis, hasLabel, appearance],\n );\n\n return (\n \n {!!beforeIcon && (\n \n \n \n )}\n {!!label && (\n \n {label}\n \n )}\n {!!afterIcon && (\n \n \n \n )}\n \n );\n};\n"],"names":["defaultConfig","stylesBuilder","intent","emphasis","custom","hasLabel","appearance","innerElements","hasLabelStyles","containerIntent","containerAppearance","container","mergeConfigWithCustom","containerStyles","Badge","icon","beforeIcon","afterIcon","label","restProps","styles","useMemo","jsxs","tet","jsx","Icon"],"mappings":"oPAyBO,MAAMA,EAAgB,CAC3B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assets/Color-6VNJS4EI-731c8c6c.js b/assets/Color-6VNJS4EI-9dbd15cb.js similarity index 99% rename from assets/Color-6VNJS4EI-731c8c6c.js rename to assets/Color-6VNJS4EI-9dbd15cb.js index f8dc94e2..1e05bbb8 100644 --- a/assets/Color-6VNJS4EI-731c8c6c.js +++ b/assets/Color-6VNJS4EI-9dbd15cb.js @@ -1,2 +1,2 @@ -import{n as M,f as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-ffa7e839.js";import{R as h,r as b}from"./index-76fb7be0.js";import{g as fe}from"./_commonjsHelpers-de833af9.js";import{_ as Oe,i as J,a as Ie}from"./index-ffc7e5ff.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},fn=tn;export{tn as ColorControl,fn as default}; -//# sourceMappingURL=Color-6VNJS4EI-731c8c6c.js.map +import{n as M,f as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-b9879fdd.js";import{R as h,r as b}from"./index-76fb7be0.js";import{g as fe}from"./_commonjsHelpers-de833af9.js";import{_ as Oe,i as J,a as Ie}from"./index-ffc7e5ff.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-d37d4223.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},fn=tn;export{tn as ColorControl,fn as default}; +//# sourceMappingURL=Color-6VNJS4EI-9dbd15cb.js.map diff --git a/assets/Color-6VNJS4EI-731c8c6c.js.map b/assets/Color-6VNJS4EI-9dbd15cb.js.map similarity index 99% rename from assets/Color-6VNJS4EI-731c8c6c.js.map rename to assets/Color-6VNJS4EI-9dbd15cb.js.map index ae2a26f8..d1452342 100644 --- a/assets/Color-6VNJS4EI-731c8c6c.js.map +++ b/assets/Color-6VNJS4EI-9dbd15cb.js.map @@ -1 +1 @@ -{"version":3,"file":"Color-6VNJS4EI-731c8c6c.js","sources":["../../node_modules/react-colorful/dist/index.mjs","../../node_modules/color-name/index.js","../../node_modules/color-convert/conversions.js","../../node_modules/color-convert/route.js","../../node_modules/color-convert/index.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_trimmedEndIndex.js","../../node_modules/lodash/_baseTrim.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../node_modules/lodash/throttle.js","../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"iWAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAEC,CAAC,IAAI,EAAEA,CAAC,EAAED,EAAEC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,MAAM,KAA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AC,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMyC,EAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAEpC,EAAM,cAAcC,GAAM,CAAC,GAAG4D,GAAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file +{"version":3,"file":"Color-6VNJS4EI-9dbd15cb.js","sources":["../../node_modules/react-colorful/dist/index.mjs","../../node_modules/color-name/index.js","../../node_modules/color-convert/conversions.js","../../node_modules/color-convert/route.js","../../node_modules/color-convert/index.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_trimmedEndIndex.js","../../node_modules/lodash/_baseTrim.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../node_modules/lodash/throttle.js","../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Picker","getControlId","Color_default"],"mappings":"iWAAkH,SAASA,GAAG,CAAC,OAAOA,EAAE,OAAO,QAAQ,SAAS,EAAE,CAAC,QAAQC,EAAE,EAAEA,EAAE,UAAU,OAAOA,IAAI,CAAC,IAAIC,EAAE,UAAUD,CAAC,EAAE,QAAQE,KAAKD,EAAE,OAAO,UAAU,eAAe,KAAKA,EAAEC,CAAC,IAAI,EAAEA,CAAC,EAAED,EAAEC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,SAASC,EAAE,EAAEH,EAAE,CAAC,GAAS,GAAN,KAAQ,MAAM,CAAE,EAAC,IAAIC,EAAEC,EAAE,EAAE,CAAA,EAAG,EAAE,OAAO,KAAK,CAAC,EAAE,IAAIA,EAAE,EAAEA,EAAE,EAAE,OAAOA,IAAIF,EAAE,QAAQC,EAAE,EAAEC,CAAC,CAAC,GAAG,IAAI,EAAED,CAAC,EAAE,EAAEA,CAAC,GAAG,OAAO,CAAC,CAAC,SAASG,EAAE,EAAE,CAAC,IAAI,EAAEJ,EAAAA,OAAE,CAAC,EAAE,EAAEA,EAAC,OAAC,SAASK,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQA,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAI,IAACC,EAAE,SAAS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O-7c4c7c38.js similarity index 79% rename from assets/DocsRenderer-3PUGWF3O-218b7d2f.js rename to assets/DocsRenderer-3PUGWF3O-7c4c7c38.js index 536d8eec..72d47c27 100644 --- a/assets/DocsRenderer-3PUGWF3O-218b7d2f.js +++ b/assets/DocsRenderer-3PUGWF3O-7c4c7c38.js @@ -1,2 +1,2 @@ -import{_ as p}from"./iframe-193f7824.js";import{R as e,r as c}from"./index-76fb7be0.js";import{r as u,u as h}from"./react-18-38063e1e.js";import{C as l,A as E,H as d,D as x}from"./index-ffa7e839.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-de833af9.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";var _={code:l,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:r}},H=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,i)=>{p(()=>import("./index-3fd0d1ea.js"),["./index-3fd0d1ea.js","./index-76fb7be0.js","./_commonjsHelpers-de833af9.js"],import.meta.url).then(({MDXProvider:a})=>u(e.createElement(D,{showException:i,key:Math.random()},e.createElement(a,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{h(t)}}};export{H as DocsRenderer,_ as defaultComponents}; -//# sourceMappingURL=DocsRenderer-3PUGWF3O-218b7d2f.js.map +import{_ as p}from"./iframe-eef935a2.js";import{R as e,r as c}from"./index-76fb7be0.js";import{r as u,u as h}from"./react-18-38063e1e.js";import{C as l,A as E,H as d,D as x}from"./index-b9879fdd.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-de833af9.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";var _={code:l,a:E,...d},D=class extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:r}=this.props;r(t)}render(){let{hasError:t}=this.state,{children:r}=this.props;return t?null:r}},H=class{constructor(){this.render=async(t,r,o)=>{let n={..._,...r==null?void 0:r.components},s=x;return new Promise((m,i)=>{p(()=>import("./index-3fd0d1ea.js"),["./index-3fd0d1ea.js","./index-76fb7be0.js","./_commonjsHelpers-de833af9.js"],import.meta.url).then(({MDXProvider:a})=>u(e.createElement(D,{showException:i,key:Math.random()},e.createElement(a,{components:n},e.createElement(s,{context:t,docsParameter:r}))),o)).then(()=>m())})},this.unmount=t=>{h(t)}}};export{H as DocsRenderer,_ as defaultComponents}; +//# sourceMappingURL=DocsRenderer-3PUGWF3O-7c4c7c38.js.map diff --git a/assets/DocsRenderer-3PUGWF3O-218b7d2f.js.map b/assets/DocsRenderer-3PUGWF3O-7c4c7c38.js.map similarity index 98% rename from assets/DocsRenderer-3PUGWF3O-218b7d2f.js.map rename to assets/DocsRenderer-3PUGWF3O-7c4c7c38.js.map index 045bf307..ee866e16 100644 --- a/assets/DocsRenderer-3PUGWF3O-218b7d2f.js.map +++ b/assets/DocsRenderer-3PUGWF3O-7c4c7c38.js.map @@ -1 +1 @@ -{"version":3,"mappings":"mWAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,WAAS,CAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKC,CAAQ,CAAC,EAAEC,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGd,EAAkB,GAAGY,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,WAAO,qBAAe,EAAC,gGAAC,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcC,EAAM,cAAclB,EAAc,CAAC,cAAcc,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEI,EAAM,cAAcF,EAAY,CAAC,WAAAN,CAAU,EAAEQ,EAAM,cAAcP,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACU,EAAeV,CAAO,CAAE,CAAE,CAAC","names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","React","unmountElement"],"sources":["../../node_modules/@storybook/addon-docs/dist/chunk-S4VUQJ4A.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"file":"assets/DocsRenderer-3PUGWF3O-218b7d2f.js"} \ No newline at end of file +{"version":3,"mappings":"mWAIG,IAACA,EAAkB,CAAC,KAAKC,EAAgB,EAAEC,EAAU,GAAGC,CAAU,EAAEC,EAAc,cAAcC,WAAS,CAAC,aAAa,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,MAAM,CAAC,SAAS,EAAE,CAAE,CAAC,OAAO,0BAA0B,CAAC,MAAO,CAAC,SAAS,EAAE,CAAC,CAAC,kBAAkBC,EAAI,CAAC,GAAG,CAAC,cAAAC,CAAa,EAAE,KAAK,MAAMA,EAAcD,CAAG,CAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAAE,CAAQ,EAAE,KAAK,MAAM,CAAC,SAAAC,CAAQ,EAAE,KAAK,MAAM,OAAOD,EAAS,KAAKC,CAAQ,CAAC,EAAEC,EAAa,KAAK,CAAC,aAAa,CAAC,KAAK,OAAO,MAAMC,EAAQC,EAAcC,IAAU,CAAC,IAAIC,EAAW,CAAC,GAAGd,EAAkB,GAAGY,GAAA,YAAAA,EAAe,UAAU,EAAEG,EAAMC,EAAK,OAAO,IAAI,QAAQ,CAACC,EAAQC,IAAS,CAACC,EAAA,WAAO,qBAAe,EAAC,gGAAC,KAAK,CAAC,CAAC,YAAAC,CAAW,IAAIC,EAAcC,EAAM,cAAclB,EAAc,CAAC,cAAcc,EAAO,IAAI,KAAK,OAAM,CAAE,EAAEI,EAAM,cAAcF,EAAY,CAAC,WAAAN,CAAU,EAAEQ,EAAM,cAAcP,EAAM,CAAC,QAAAJ,EAAQ,cAAAC,CAAa,CAAC,CAAC,CAAC,EAAEC,CAAO,CAAC,EAAE,KAAK,IAAII,EAAO,CAAE,CAAE,CAAC,CAAC,EAAE,KAAK,QAAQJ,GAAS,CAACU,EAAeV,CAAO,CAAE,CAAE,CAAC","names":["defaultComponents","CodeOrSourceMdx","AnchorMdx","HeadersMdx","ErrorBoundary","Component","err","showException","hasError","children","DocsRenderer","context","docsParameter","element","components","TDocs","Docs","resolve","reject","__vitePreload","MDXProvider","renderElement","React","unmountElement"],"sources":["../../node_modules/@storybook/addon-docs/dist/chunk-S4VUQJ4A.mjs"],"sourcesContent":["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],"file":"assets/DocsRenderer-3PUGWF3O-7c4c7c38.js"} \ No newline at end of file diff --git a/assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js b/assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js similarity index 98% rename from assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js rename to assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js index 5dba0deb..c6e9d9c0 100644 --- a/assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js +++ b/assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js @@ -1,8 +1,8 @@ -import{R as o}from"./index-76fb7be0.js";import{G as s}from"./index-ffa7e839.js";import"./_commonjsHelpers-de833af9.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";var a=r=>({".os-size-observer,\n.os-size-observer-listener":{direction:"inherit",pointerEvents:"none",overflow:"hidden",visibility:"hidden",boxSizing:"border-box"},".os-size-observer,\n.os-size-observer-listener,\n.os-size-observer-listener-item,\n.os-size-observer-listener-item-final":{writingMode:"horizontal-tb",position:"absolute",left:"0",top:"0"},".os-size-observer":{zIndex:-1,contain:"strict",display:"flex",flexDirection:"row",flexWrap:"nowrap",padding:"inherit",border:"inherit",boxSizing:"inherit",margin:"-133px",top:"0",right:"0",bottom:"0",left:"0",transform:"scale(0.1)"},".os-size-observer::before":{content:'""',flex:"none",boxSizing:"inherit",padding:"10px",width:"10px",height:"10px"},".os-size-observer-appear":{animation:"os-size-observer-appear-animation 1ms forwards"},".os-size-observer-listener":{boxSizing:"border-box",position:"relative",flex:"auto",padding:"inherit",border:"inherit",margin:"-133px",transform:"scale(10)"},".os-size-observer-listener.ltr":{marginRight:"-266px",marginLeft:"0"},".os-size-observer-listener.rtl":{marginLeft:"-266px",marginRight:"0"},".os-size-observer-listener:empty::before":{content:'""',width:"100%",height:"100%"},".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item":{display:"block",position:"relative",padding:"inherit",border:"inherit",boxSizing:"content-box",flex:"auto"},".os-size-observer-listener-scroll":{boxSizing:"border-box",display:"flex"},".os-size-observer-listener-item":{right:"0",bottom:"0",overflow:"hidden",direction:"ltr",flex:"none"},".os-size-observer-listener-item-final":{transition:"none"},"@keyframes os-size-observer-appear-animation":{from:{cursor:"auto"},to:{cursor:"none"}},".os-trinsic-observer":{flex:"none",boxSizing:"border-box",position:"relative",maxWidth:"0px",maxHeight:"1px",padding:"0",margin:"0",border:"none",overflow:"hidden",zIndex:-1,height:"0",top:"calc(100% + 1px)",contain:"strict"},".os-trinsic-observer:not(:empty)":{height:"calc(100% + 1px)",top:"-1px"},".os-trinsic-observer:not(:empty) > .os-size-observer":{width:"1000%",height:"1000%",minHeight:"1px",minWidth:"1px"},".os-environment":{"--os-custom-prop":"-1",position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:"200px",width:"200px",zIndex:"var(--os-custom-prop)"},".os-environment div":{width:"200%",height:"200%",margin:"10px 0"},".os-environment.os-environment-flexbox-glue":{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"auto",width:"auto",minHeight:"200px",minWidth:"200px"},".os-environment.os-environment-flexbox-glue div":{flex:"auto",width:"auto",height:"auto",maxHeight:"100%",maxWidth:"100%",margin:"0"},".os-environment.os-environment-flexbox-glue-max":{maxHeight:"200px"},".os-environment.os-environment-flexbox-glue-max div":{overflow:"visible"},".os-environment.os-environment-flexbox-glue-max div::before":{content:'""',display:"block",height:"999px",width:"999px"},".os-environment,\n[data-overlayscrollbars-viewport]":{msOverflowStyle:"scrollbar !important"},"[data-overlayscrollbars-initialize],\n[data-overlayscrollbars~=scrollbarHidden],\n[data-overlayscrollbars-viewport~=scrollbarHidden],\n.os-scrollbar-hidden.os-environment":{scrollbarWidth:"none !important"},"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner":{WebkitAppearance:"none !important",appearance:"none !important",display:"none !important",width:"0 !important",height:"0 !important"},"[data-overlayscrollbars-initialize]":{overflow:"auto"},"html[data-overlayscrollbars],\nhtml.os-scrollbar-hidden,\nhtml.os-scrollbar-hidden > body":{boxSizing:"border-box",margin:"0",width:"100%",height:"100%"},"html[data-overlayscrollbars] > body":{overflow:"visible"},"[data-overlayscrollbars~=host]":{position:"relative"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars-padding]":{display:"flex",flexDirection:"row !important",flexWrap:"nowrap !important"},"[data-overlayscrollbars-padding],\n[data-overlayscrollbars-viewport]":{boxSizing:"inherit",position:"relative",flex:"auto !important",height:"auto",width:"100%",padding:"0",margin:"0",border:"none",zIndex:0,overflow:"hidden"},"[data-overlayscrollbars-viewport]":{"--os-vaw":"0","--os-vah":"0"},"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before":{content:'""',position:"absolute",pointerEvents:"none",zIndex:-1,minWidth:"1px",minHeight:"1px",width:"var(--os-vaw)",height:"var(--os-vah)"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars~=viewport]":{overflow:"hidden"},"[data-overlayscrollbars~=overflowVisible],\n[data-overlayscrollbars-padding~=overflowVisible],\n[data-overlayscrollbars-viewport~=overflowVisible]":{overflow:"visible"},"[data-overlayscrollbars-overflow-x=hidden]":{overflowX:"hidden",overflowY:"hidden"},"[data-overlayscrollbars-overflow-x=scroll]":{overflowX:"scroll"},"[data-overlayscrollbars-overflow-y=scroll]":{overflowY:"scroll"},"[data-overlayscrollbars~=scrollbarPressed],\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]":{scrollBehavior:"auto !important"},"[data-overlayscrollbars-content]":{boxSizing:"inherit"},"[data-overlayscrollbars-grid],\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]":{display:"grid",gridTemplate:"1fr/1fr"},"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]":{height:"auto !important",width:"auto !important"},".os-scrollbar":{contain:["size layout","size layout style"],transition:"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s",pointerEvents:"none",position:"absolute",opacity:0,visibility:"hidden","--os-size":"0","--os-padding-perpendicular":"0","--os-padding-axis":"0","--os-track-border-radius":"0","--os-track-bg":"none","--os-track-bg-hover":"none","--os-track-bg-active":"none","--os-track-border":"none","--os-track-border-hover":"none","--os-track-border-active":"none","--os-handle-border-radius":"0","--os-handle-bg":"none","--os-handle-bg-hover":"none","--os-handle-bg-active":"none","--os-handle-border":"none","--os-handle-border-hover":"none","--os-handle-border-active":"none","--os-handle-min-size":"33px","--os-handle-max-size":"none","--os-handle-perpendicular-size":"100%","--os-handle-perpendicular-size-hover":"100%","--os-handle-perpendicular-size-active":"100%","--os-handle-interactive-area-offset":"0"},"body > .os-scrollbar":{position:"fixed",zIndex:99999},".os-scrollbar-transitionless":{transition:"none"},".os-scrollbar-track":{position:"relative",direction:"ltr !important",padding:"0 !important",border:"none !important"},".os-scrollbar-handle":{position:"absolute"},".os-scrollbar-track,\n.os-scrollbar-handle":{pointerEvents:"none",width:"100%",height:"100%"},".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle":{pointerEvents:"auto",touchAction:"none"},".os-scrollbar-horizontal":{bottom:"0",left:"0",padding:"var(--os-padding-perpendicular) var(--os-padding-axis)",right:"var(--os-size)",height:"var(--os-size)"},".os-scrollbar-vertical":{top:"0",right:"0",padding:"var(--os-padding-axis) var(--os-padding-perpendicular)",bottom:"var(--os-size)",width:"var(--os-size)"},".os-scrollbar-rtl.os-scrollbar-horizontal":{right:"0"},".os-scrollbar-rtl.os-scrollbar-vertical":{right:"auto",left:"0"},".os-scrollbar-visible,\n.os-scrollbar-interaction.os-scrollbar-visible":{opacity:1,visibility:"visible"},".os-scrollbar-auto-hidden":{opacity:0,visibility:"hidden"},".os-scrollbar-unusable,\n.os-scrollbar-unusable *,\n.os-scrollbar-wheel,\n.os-scrollbar-wheel *":{pointerEvents:"none !important"},".os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0 !important"},".os-scrollbar-horizontal .os-scrollbar-handle":{bottom:"0",minWidth:"var(--os-handle-min-size)",maxWidth:"var(--os-handle-max-size)",height:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s"},".os-scrollbar-vertical .os-scrollbar-handle":{right:"0",minHeight:"var(--os-handle-min-size)",maxHeight:"var(--os-handle-max-size)",width:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s"},".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle":{right:"auto",left:"0"},".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl":{left:"0",right:"0"},".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl":{top:"0",bottom:"0"},".os-scrollbar .os-scrollbar-track":{border:"var(--os-track-border)",borderRadius:"var(--os-track-border-radius)",background:"var(--os-track-bg)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s"},".os-scrollbar .os-scrollbar-track:hover":{border:"var(--os-track-border-hover)",background:"var(--os-track-bg-hover)"},".os-scrollbar .os-scrollbar-track:active":{border:"var(--os-track-border-active)",background:"var(--os-track-bg-active)"},".os-scrollbar .os-scrollbar-handle":{border:"var(--os-handle-border)",borderRadius:"var(--os-handle-border-radius)",background:r.textMutedColor,opacity:.5},".os-scrollbar .os-scrollbar-handle:before":{content:'""',position:"absolute",left:"0",right:"0",top:"0",bottom:"0",display:"block"},".os-scrollbar .os-scrollbar-handle:hover":{border:"var(--os-handle-border-hover)",opacity:.6},".os-scrollbar .os-scrollbar-handle:active":{border:"var(--os-handle-border-active)",background:"var(--os-handle-bg-active)"},".os-scrollbar-horizontal.os-scrollbar-rtl":{left:"var(--os-size)",right:"0"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",bottom:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-horizontal:hover .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-horizontal:active .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-active)"},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",right:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",left:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical:hover .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-vertical:active .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-active)"},"[data-overlayscrollbars~=updating] > .os-scrollbar,\n.os-theme-none.os-scrollbar":{display:"none !important"},".os-theme-dark,\n.os-theme-light":{boxSizing:"border-box","--os-size":"10px","--os-padding-perpendicular":"2px","--os-padding-axis":"2px","--os-track-border-radius":"10px","--os-handle-interactive-area-offset":"4px","--os-handle-border-radius":"10px"},".os-theme-dark":{"--os-handle-bg":"rgba(0, 0, 0, 0.44)","--os-handle-bg-hover":"rgba(0, 0, 0, 0.55)","--os-handle-bg-active":"rgba(0, 0, 0, 0.66)"},".os-theme-light":{"--os-handle-bg":"rgba(255, 255, 255, 0.44)","--os-handle-bg-hover":"rgba(255, 255, 255, 0.55)","--os-handle-bg-active":"rgba(255, 255, 255, 0.66)"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal":{padding:"2px 2px",right:"10px",height:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl":{left:"10px",right:"0"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle":{minWidth:"33px",maxWidth:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before":{top:`calc(( +import{R as o}from"./index-76fb7be0.js";import{G as s}from"./index-b9879fdd.js";import"./_commonjsHelpers-de833af9.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";var a=r=>({".os-size-observer,\n.os-size-observer-listener":{direction:"inherit",pointerEvents:"none",overflow:"hidden",visibility:"hidden",boxSizing:"border-box"},".os-size-observer,\n.os-size-observer-listener,\n.os-size-observer-listener-item,\n.os-size-observer-listener-item-final":{writingMode:"horizontal-tb",position:"absolute",left:"0",top:"0"},".os-size-observer":{zIndex:-1,contain:"strict",display:"flex",flexDirection:"row",flexWrap:"nowrap",padding:"inherit",border:"inherit",boxSizing:"inherit",margin:"-133px",top:"0",right:"0",bottom:"0",left:"0",transform:"scale(0.1)"},".os-size-observer::before":{content:'""',flex:"none",boxSizing:"inherit",padding:"10px",width:"10px",height:"10px"},".os-size-observer-appear":{animation:"os-size-observer-appear-animation 1ms forwards"},".os-size-observer-listener":{boxSizing:"border-box",position:"relative",flex:"auto",padding:"inherit",border:"inherit",margin:"-133px",transform:"scale(10)"},".os-size-observer-listener.ltr":{marginRight:"-266px",marginLeft:"0"},".os-size-observer-listener.rtl":{marginLeft:"-266px",marginRight:"0"},".os-size-observer-listener:empty::before":{content:'""',width:"100%",height:"100%"},".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item":{display:"block",position:"relative",padding:"inherit",border:"inherit",boxSizing:"content-box",flex:"auto"},".os-size-observer-listener-scroll":{boxSizing:"border-box",display:"flex"},".os-size-observer-listener-item":{right:"0",bottom:"0",overflow:"hidden",direction:"ltr",flex:"none"},".os-size-observer-listener-item-final":{transition:"none"},"@keyframes os-size-observer-appear-animation":{from:{cursor:"auto"},to:{cursor:"none"}},".os-trinsic-observer":{flex:"none",boxSizing:"border-box",position:"relative",maxWidth:"0px",maxHeight:"1px",padding:"0",margin:"0",border:"none",overflow:"hidden",zIndex:-1,height:"0",top:"calc(100% + 1px)",contain:"strict"},".os-trinsic-observer:not(:empty)":{height:"calc(100% + 1px)",top:"-1px"},".os-trinsic-observer:not(:empty) > .os-size-observer":{width:"1000%",height:"1000%",minHeight:"1px",minWidth:"1px"},".os-environment":{"--os-custom-prop":"-1",position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:"200px",width:"200px",zIndex:"var(--os-custom-prop)"},".os-environment div":{width:"200%",height:"200%",margin:"10px 0"},".os-environment.os-environment-flexbox-glue":{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"auto",width:"auto",minHeight:"200px",minWidth:"200px"},".os-environment.os-environment-flexbox-glue div":{flex:"auto",width:"auto",height:"auto",maxHeight:"100%",maxWidth:"100%",margin:"0"},".os-environment.os-environment-flexbox-glue-max":{maxHeight:"200px"},".os-environment.os-environment-flexbox-glue-max div":{overflow:"visible"},".os-environment.os-environment-flexbox-glue-max div::before":{content:'""',display:"block",height:"999px",width:"999px"},".os-environment,\n[data-overlayscrollbars-viewport]":{msOverflowStyle:"scrollbar !important"},"[data-overlayscrollbars-initialize],\n[data-overlayscrollbars~=scrollbarHidden],\n[data-overlayscrollbars-viewport~=scrollbarHidden],\n.os-scrollbar-hidden.os-environment":{scrollbarWidth:"none !important"},"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner":{WebkitAppearance:"none !important",appearance:"none !important",display:"none !important",width:"0 !important",height:"0 !important"},"[data-overlayscrollbars-initialize]":{overflow:"auto"},"html[data-overlayscrollbars],\nhtml.os-scrollbar-hidden,\nhtml.os-scrollbar-hidden > body":{boxSizing:"border-box",margin:"0",width:"100%",height:"100%"},"html[data-overlayscrollbars] > body":{overflow:"visible"},"[data-overlayscrollbars~=host]":{position:"relative"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars-padding]":{display:"flex",flexDirection:"row !important",flexWrap:"nowrap !important"},"[data-overlayscrollbars-padding],\n[data-overlayscrollbars-viewport]":{boxSizing:"inherit",position:"relative",flex:"auto !important",height:"auto",width:"100%",padding:"0",margin:"0",border:"none",zIndex:0,overflow:"hidden"},"[data-overlayscrollbars-viewport]":{"--os-vaw":"0","--os-vah":"0"},"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before":{content:'""',position:"absolute",pointerEvents:"none",zIndex:-1,minWidth:"1px",minHeight:"1px",width:"var(--os-vaw)",height:"var(--os-vah)"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars~=viewport]":{overflow:"hidden"},"[data-overlayscrollbars~=overflowVisible],\n[data-overlayscrollbars-padding~=overflowVisible],\n[data-overlayscrollbars-viewport~=overflowVisible]":{overflow:"visible"},"[data-overlayscrollbars-overflow-x=hidden]":{overflowX:"hidden",overflowY:"hidden"},"[data-overlayscrollbars-overflow-x=scroll]":{overflowX:"scroll"},"[data-overlayscrollbars-overflow-y=scroll]":{overflowY:"scroll"},"[data-overlayscrollbars~=scrollbarPressed],\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]":{scrollBehavior:"auto !important"},"[data-overlayscrollbars-content]":{boxSizing:"inherit"},"[data-overlayscrollbars-grid],\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]":{display:"grid",gridTemplate:"1fr/1fr"},"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]":{height:"auto !important",width:"auto !important"},".os-scrollbar":{contain:["size layout","size layout style"],transition:"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s",pointerEvents:"none",position:"absolute",opacity:0,visibility:"hidden","--os-size":"0","--os-padding-perpendicular":"0","--os-padding-axis":"0","--os-track-border-radius":"0","--os-track-bg":"none","--os-track-bg-hover":"none","--os-track-bg-active":"none","--os-track-border":"none","--os-track-border-hover":"none","--os-track-border-active":"none","--os-handle-border-radius":"0","--os-handle-bg":"none","--os-handle-bg-hover":"none","--os-handle-bg-active":"none","--os-handle-border":"none","--os-handle-border-hover":"none","--os-handle-border-active":"none","--os-handle-min-size":"33px","--os-handle-max-size":"none","--os-handle-perpendicular-size":"100%","--os-handle-perpendicular-size-hover":"100%","--os-handle-perpendicular-size-active":"100%","--os-handle-interactive-area-offset":"0"},"body > .os-scrollbar":{position:"fixed",zIndex:99999},".os-scrollbar-transitionless":{transition:"none"},".os-scrollbar-track":{position:"relative",direction:"ltr !important",padding:"0 !important",border:"none !important"},".os-scrollbar-handle":{position:"absolute"},".os-scrollbar-track,\n.os-scrollbar-handle":{pointerEvents:"none",width:"100%",height:"100%"},".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle":{pointerEvents:"auto",touchAction:"none"},".os-scrollbar-horizontal":{bottom:"0",left:"0",padding:"var(--os-padding-perpendicular) var(--os-padding-axis)",right:"var(--os-size)",height:"var(--os-size)"},".os-scrollbar-vertical":{top:"0",right:"0",padding:"var(--os-padding-axis) var(--os-padding-perpendicular)",bottom:"var(--os-size)",width:"var(--os-size)"},".os-scrollbar-rtl.os-scrollbar-horizontal":{right:"0"},".os-scrollbar-rtl.os-scrollbar-vertical":{right:"auto",left:"0"},".os-scrollbar-visible,\n.os-scrollbar-interaction.os-scrollbar-visible":{opacity:1,visibility:"visible"},".os-scrollbar-auto-hidden":{opacity:0,visibility:"hidden"},".os-scrollbar-unusable,\n.os-scrollbar-unusable *,\n.os-scrollbar-wheel,\n.os-scrollbar-wheel *":{pointerEvents:"none !important"},".os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0 !important"},".os-scrollbar-horizontal .os-scrollbar-handle":{bottom:"0",minWidth:"var(--os-handle-min-size)",maxWidth:"var(--os-handle-max-size)",height:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s"},".os-scrollbar-vertical .os-scrollbar-handle":{right:"0",minHeight:"var(--os-handle-min-size)",maxHeight:"var(--os-handle-max-size)",width:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s"},".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle":{right:"auto",left:"0"},".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl":{left:"0",right:"0"},".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl":{top:"0",bottom:"0"},".os-scrollbar .os-scrollbar-track":{border:"var(--os-track-border)",borderRadius:"var(--os-track-border-radius)",background:"var(--os-track-bg)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s"},".os-scrollbar .os-scrollbar-track:hover":{border:"var(--os-track-border-hover)",background:"var(--os-track-bg-hover)"},".os-scrollbar .os-scrollbar-track:active":{border:"var(--os-track-border-active)",background:"var(--os-track-bg-active)"},".os-scrollbar .os-scrollbar-handle":{border:"var(--os-handle-border)",borderRadius:"var(--os-handle-border-radius)",background:r.textMutedColor,opacity:.5},".os-scrollbar .os-scrollbar-handle:before":{content:'""',position:"absolute",left:"0",right:"0",top:"0",bottom:"0",display:"block"},".os-scrollbar .os-scrollbar-handle:hover":{border:"var(--os-handle-border-hover)",opacity:.6},".os-scrollbar .os-scrollbar-handle:active":{border:"var(--os-handle-border-active)",background:"var(--os-handle-bg-active)"},".os-scrollbar-horizontal.os-scrollbar-rtl":{left:"var(--os-size)",right:"0"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",bottom:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-horizontal:hover .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-horizontal:active .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-active)"},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",right:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",left:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical:hover .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-vertical:active .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-active)"},"[data-overlayscrollbars~=updating] > .os-scrollbar,\n.os-theme-none.os-scrollbar":{display:"none !important"},".os-theme-dark,\n.os-theme-light":{boxSizing:"border-box","--os-size":"10px","--os-padding-perpendicular":"2px","--os-padding-axis":"2px","--os-track-border-radius":"10px","--os-handle-interactive-area-offset":"4px","--os-handle-border-radius":"10px"},".os-theme-dark":{"--os-handle-bg":"rgba(0, 0, 0, 0.44)","--os-handle-bg-hover":"rgba(0, 0, 0, 0.55)","--os-handle-bg-active":"rgba(0, 0, 0, 0.66)"},".os-theme-light":{"--os-handle-bg":"rgba(255, 255, 255, 0.44)","--os-handle-bg-hover":"rgba(255, 255, 255, 0.55)","--os-handle-bg-active":"rgba(255, 255, 255, 0.66)"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal":{padding:"2px 2px",right:"10px",height:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl":{left:"10px",right:"0"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle":{minWidth:"33px",maxWidth:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before":{top:`calc(( 2px + 4px ) * -1)`,bottom:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical":{padding:"2px 2px",bottom:"10px",width:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle":{minHeight:"33px",maxHeight:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before":{left:`calc(( 2px + 4px ) * -1)`,right:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:`calc(( 2px + 4px ) * -1)`,left:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.44)"},".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.55)"},".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.66)"},".os-no-css-vars.os-theme-light .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.44)"},".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.55)"},".os-no-css-vars.os-theme-light:active .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.66)"}}),e=()=>o.createElement(s,{styles:a}),v=e;export{v as default,a as getScrollAreaStyles}; -//# sourceMappingURL=GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js.map +//# sourceMappingURL=GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map diff --git a/assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js.map b/assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map similarity index 99% rename from assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js.map rename to assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map index 68770b7b..a2f02a09 100644 --- a/assets/GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js.map +++ b/assets/GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js.map @@ -1 +1 @@ -{"version":3,"file":"GlobalScrollAreaStyles-UY5SB7EJ-b86f47ab.js","sources":["../../node_modules/@storybook/components/dist/GlobalScrollAreaStyles-UY5SB7EJ.mjs"],"sourcesContent":["import './chunk-JRLSWQMA.mjs';\nimport React from 'react';\nimport { Global } from '@storybook/theming';\n\nvar getScrollAreaStyles=theme=>({\".os-size-observer,\\n.os-size-observer-listener\":{direction:\"inherit\",pointerEvents:\"none\",overflow:\"hidden\",visibility:\"hidden\",boxSizing:\"border-box\"},\".os-size-observer,\\n.os-size-observer-listener,\\n.os-size-observer-listener-item,\\n.os-size-observer-listener-item-final\":{writingMode:\"horizontal-tb\",position:\"absolute\",left:\"0\",top:\"0\"},\".os-size-observer\":{zIndex:-1,contain:\"strict\",display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",padding:\"inherit\",border:\"inherit\",boxSizing:\"inherit\",margin:\"-133px\",top:\"0\",right:\"0\",bottom:\"0\",left:\"0\",transform:\"scale(0.1)\"},\".os-size-observer::before\":{content:'\"\"',flex:\"none\",boxSizing:\"inherit\",padding:\"10px\",width:\"10px\",height:\"10px\"},\".os-size-observer-appear\":{animation:\"os-size-observer-appear-animation 1ms forwards\"},\".os-size-observer-listener\":{boxSizing:\"border-box\",position:\"relative\",flex:\"auto\",padding:\"inherit\",border:\"inherit\",margin:\"-133px\",transform:\"scale(10)\"},\".os-size-observer-listener.ltr\":{marginRight:\"-266px\",marginLeft:\"0\"},\".os-size-observer-listener.rtl\":{marginLeft:\"-266px\",marginRight:\"0\"},\".os-size-observer-listener:empty::before\":{content:'\"\"',width:\"100%\",height:\"100%\"},\".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item\":{display:\"block\",position:\"relative\",padding:\"inherit\",border:\"inherit\",boxSizing:\"content-box\",flex:\"auto\"},\".os-size-observer-listener-scroll\":{boxSizing:\"border-box\",display:\"flex\"},\".os-size-observer-listener-item\":{right:\"0\",bottom:\"0\",overflow:\"hidden\",direction:\"ltr\",flex:\"none\"},\".os-size-observer-listener-item-final\":{transition:\"none\"},\"@keyframes os-size-observer-appear-animation\":{from:{cursor:\"auto\"},to:{cursor:\"none\"}},\".os-trinsic-observer\":{flex:\"none\",boxSizing:\"border-box\",position:\"relative\",maxWidth:\"0px\",maxHeight:\"1px\",padding:\"0\",margin:\"0\",border:\"none\",overflow:\"hidden\",zIndex:-1,height:\"0\",top:\"calc(100% + 1px)\",contain:\"strict\"},\".os-trinsic-observer:not(:empty)\":{height:\"calc(100% + 1px)\",top:\"-1px\"},\".os-trinsic-observer:not(:empty) > .os-size-observer\":{width:\"1000%\",height:\"1000%\",minHeight:\"1px\",minWidth:\"1px\"},\".os-environment\":{\"--os-custom-prop\":\"-1\",position:\"fixed\",opacity:0,visibility:\"hidden\",overflow:\"scroll\",height:\"200px\",width:\"200px\",zIndex:\"var(--os-custom-prop)\"},\".os-environment div\":{width:\"200%\",height:\"200%\",margin:\"10px 0\"},\".os-environment.os-environment-flexbox-glue\":{display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",height:\"auto\",width:\"auto\",minHeight:\"200px\",minWidth:\"200px\"},\".os-environment.os-environment-flexbox-glue div\":{flex:\"auto\",width:\"auto\",height:\"auto\",maxHeight:\"100%\",maxWidth:\"100%\",margin:\"0\"},\".os-environment.os-environment-flexbox-glue-max\":{maxHeight:\"200px\"},\".os-environment.os-environment-flexbox-glue-max div\":{overflow:\"visible\"},\".os-environment.os-environment-flexbox-glue-max div::before\":{content:'\"\"',display:\"block\",height:\"999px\",width:\"999px\"},\".os-environment,\\n[data-overlayscrollbars-viewport]\":{msOverflowStyle:\"scrollbar !important\"},\"[data-overlayscrollbars-initialize],\\n[data-overlayscrollbars~=scrollbarHidden],\\n[data-overlayscrollbars-viewport~=scrollbarHidden],\\n.os-scrollbar-hidden.os-environment\":{scrollbarWidth:\"none !important\"},\"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner\":{WebkitAppearance:\"none !important\",appearance:\"none !important\",display:\"none !important\",width:\"0 !important\",height:\"0 !important\"},\"[data-overlayscrollbars-initialize]\":{overflow:\"auto\"},\"html[data-overlayscrollbars],\\nhtml.os-scrollbar-hidden,\\nhtml.os-scrollbar-hidden > body\":{boxSizing:\"border-box\",margin:\"0\",width:\"100%\",height:\"100%\"},\"html[data-overlayscrollbars] > body\":{overflow:\"visible\"},\"[data-overlayscrollbars~=host]\":{position:\"relative\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars-padding]\":{display:\"flex\",flexDirection:\"row !important\",flexWrap:\"nowrap !important\"},\"[data-overlayscrollbars-padding],\\n[data-overlayscrollbars-viewport]\":{boxSizing:\"inherit\",position:\"relative\",flex:\"auto !important\",height:\"auto\",width:\"100%\",padding:\"0\",margin:\"0\",border:\"none\",zIndex:0,overflow:\"hidden\"},\"[data-overlayscrollbars-viewport]\":{\"--os-vaw\":\"0\",\"--os-vah\":\"0\"},\"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before\":{content:'\"\"',position:\"absolute\",pointerEvents:\"none\",zIndex:-1,minWidth:\"1px\",minHeight:\"1px\",width:\"var(--os-vaw)\",height:\"var(--os-vah)\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars~=viewport]\":{overflow:\"hidden\"},\"[data-overlayscrollbars~=overflowVisible],\\n[data-overlayscrollbars-padding~=overflowVisible],\\n[data-overlayscrollbars-viewport~=overflowVisible]\":{overflow:\"visible\"},\"[data-overlayscrollbars-overflow-x=hidden]\":{overflowX:\"hidden\",overflowY:\"hidden\"},\"[data-overlayscrollbars-overflow-x=scroll]\":{overflowX:\"scroll\"},\"[data-overlayscrollbars-overflow-y=scroll]\":{overflowY:\"scroll\"},\"[data-overlayscrollbars~=scrollbarPressed],\\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]\":{scrollBehavior:\"auto !important\"},\"[data-overlayscrollbars-content]\":{boxSizing:\"inherit\"},\"[data-overlayscrollbars-grid],\\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]\":{display:\"grid\",gridTemplate:\"1fr/1fr\"},\"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]\":{height:\"auto !important\",width:\"auto !important\"},\".os-scrollbar\":{contain:[\"size layout\",\"size layout style\"],transition:\"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s\",pointerEvents:\"none\",position:\"absolute\",opacity:0,visibility:\"hidden\",\"--os-size\":\"0\",\"--os-padding-perpendicular\":\"0\",\"--os-padding-axis\":\"0\",\"--os-track-border-radius\":\"0\",\"--os-track-bg\":\"none\",\"--os-track-bg-hover\":\"none\",\"--os-track-bg-active\":\"none\",\"--os-track-border\":\"none\",\"--os-track-border-hover\":\"none\",\"--os-track-border-active\":\"none\",\"--os-handle-border-radius\":\"0\",\"--os-handle-bg\":\"none\",\"--os-handle-bg-hover\":\"none\",\"--os-handle-bg-active\":\"none\",\"--os-handle-border\":\"none\",\"--os-handle-border-hover\":\"none\",\"--os-handle-border-active\":\"none\",\"--os-handle-min-size\":\"33px\",\"--os-handle-max-size\":\"none\",\"--os-handle-perpendicular-size\":\"100%\",\"--os-handle-perpendicular-size-hover\":\"100%\",\"--os-handle-perpendicular-size-active\":\"100%\",\"--os-handle-interactive-area-offset\":\"0\"},\"body > .os-scrollbar\":{position:\"fixed\",zIndex:99999},\".os-scrollbar-transitionless\":{transition:\"none\"},\".os-scrollbar-track\":{position:\"relative\",direction:\"ltr !important\",padding:\"0 !important\",border:\"none !important\"},\".os-scrollbar-handle\":{position:\"absolute\"},\".os-scrollbar-track,\\n.os-scrollbar-handle\":{pointerEvents:\"none\",width:\"100%\",height:\"100%\"},\".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle\":{pointerEvents:\"auto\",touchAction:\"none\"},\".os-scrollbar-horizontal\":{bottom:\"0\",left:\"0\",padding:\"var(--os-padding-perpendicular) var(--os-padding-axis)\",right:\"var(--os-size)\",height:\"var(--os-size)\"},\".os-scrollbar-vertical\":{top:\"0\",right:\"0\",padding:\"var(--os-padding-axis) var(--os-padding-perpendicular)\",bottom:\"var(--os-size)\",width:\"var(--os-size)\"},\".os-scrollbar-rtl.os-scrollbar-horizontal\":{right:\"0\"},\".os-scrollbar-rtl.os-scrollbar-vertical\":{right:\"auto\",left:\"0\"},\".os-scrollbar-visible,\\n.os-scrollbar-interaction.os-scrollbar-visible\":{opacity:1,visibility:\"visible\"},\".os-scrollbar-auto-hidden\":{opacity:0,visibility:\"hidden\"},\".os-scrollbar-unusable,\\n.os-scrollbar-unusable *,\\n.os-scrollbar-wheel,\\n.os-scrollbar-wheel *\":{pointerEvents:\"none !important\"},\".os-scrollbar-unusable .os-scrollbar-handle\":{opacity:\"0 !important\"},\".os-scrollbar-horizontal .os-scrollbar-handle\":{bottom:\"0\",minWidth:\"var(--os-handle-min-size)\",maxWidth:\"var(--os-handle-max-size)\",height:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s\"},\".os-scrollbar-vertical .os-scrollbar-handle\":{right:\"0\",minHeight:\"var(--os-handle-min-size)\",maxHeight:\"var(--os-handle-max-size)\",width:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s\"},\".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle\":{right:\"auto\",left:\"0\"},\".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl\":{left:\"0\",right:\"0\"},\".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl\":{top:\"0\",bottom:\"0\"},\".os-scrollbar .os-scrollbar-track\":{border:\"var(--os-track-border)\",borderRadius:\"var(--os-track-border-radius)\",background:\"var(--os-track-bg)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s\"},\".os-scrollbar .os-scrollbar-track:hover\":{border:\"var(--os-track-border-hover)\",background:\"var(--os-track-bg-hover)\"},\".os-scrollbar .os-scrollbar-track:active\":{border:\"var(--os-track-border-active)\",background:\"var(--os-track-bg-active)\"},\".os-scrollbar .os-scrollbar-handle\":{border:\"var(--os-handle-border)\",borderRadius:\"var(--os-handle-border-radius)\",background:theme.textMutedColor,opacity:.5},\".os-scrollbar .os-scrollbar-handle:before\":{content:'\"\"',position:\"absolute\",left:\"0\",right:\"0\",top:\"0\",bottom:\"0\",display:\"block\"},\".os-scrollbar .os-scrollbar-handle:hover\":{border:\"var(--os-handle-border-hover)\",opacity:.6},\".os-scrollbar .os-scrollbar-handle:active\":{border:\"var(--os-handle-border-active)\",background:\"var(--os-handle-bg-active)\"},\".os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"var(--os-size)\",right:\"0\"},\".os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",bottom:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-horizontal:hover .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-horizontal:active .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-active)\"},\".os-scrollbar-vertical .os-scrollbar-handle:before\":{left:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",right:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",left:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical:hover .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-vertical:active .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-active)\"},\"[data-overlayscrollbars~=updating] > .os-scrollbar,\\n.os-theme-none.os-scrollbar\":{display:\"none !important\"},\".os-theme-dark,\\n.os-theme-light\":{boxSizing:\"border-box\",\"--os-size\":\"10px\",\"--os-padding-perpendicular\":\"2px\",\"--os-padding-axis\":\"2px\",\"--os-track-border-radius\":\"10px\",\"--os-handle-interactive-area-offset\":\"4px\",\"--os-handle-border-radius\":\"10px\"},\".os-theme-dark\":{\"--os-handle-bg\":\"rgba(0, 0, 0, 0.44)\",\"--os-handle-bg-hover\":\"rgba(0, 0, 0, 0.55)\",\"--os-handle-bg-active\":\"rgba(0, 0, 0, 0.66)\"},\".os-theme-light\":{\"--os-handle-bg\":\"rgba(255, 255, 255, 0.44)\",\"--os-handle-bg-hover\":\"rgba(255, 255, 255, 0.55)\",\"--os-handle-bg-active\":\"rgba(255, 255, 255, 0.66)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal\":{padding:\"2px 2px\",right:\"10px\",height:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"10px\",right:\"0\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle\":{minWidth:\"33px\",maxWidth:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:`calc((\n 2px + 4px\n ) * -1)`,bottom:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical\":{padding:\"2px 2px\",bottom:\"10px\",width:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle\":{minHeight:\"33px\",maxHeight:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before\":{left:`calc((\n 2px + 4px\n ) * -1)`,right:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:`calc((\n 2px + 4px\n ) * -1)`,left:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.44)\"},\".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.55)\"},\".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.66)\"},\".os-no-css-vars.os-theme-light .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.44)\"},\".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.55)\"},\".os-no-css-vars.os-theme-light:active .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.66)\"}}),GlobalScrollAreaStyles=()=>React.createElement(Global,{styles:getScrollAreaStyles}),GlobalScrollAreaStyles_default=GlobalScrollAreaStyles;\n\nexport { GlobalScrollAreaStyles_default as default, getScrollAreaStyles };\n"],"names":["getScrollAreaStyles","theme","GlobalScrollAreaStyles","React","Global","GlobalScrollAreaStyles_default"],"mappings":"yQAIG,IAACA,EAAoBC,IAAQ,CAAC,iDAAiD,CAAC,UAAU,UAAU,cAAc,OAAO,SAAS,SAAS,WAAW,SAAS,UAAU,YAAY,EAAE,2HAA2H,CAAC,YAAY,gBAAgB,SAAS,WAAW,KAAK,IAAI,IAAI,GAAG,EAAE,oBAAoB,CAAC,OAAO,GAAG,QAAQ,SAAS,QAAQ,OAAO,cAAc,MAAM,SAAS,SAAS,QAAQ,UAAU,OAAO,UAAU,UAAU,UAAU,OAAO,SAAS,IAAI,IAAI,MAAM,IAAI,OAAO,IAAI,KAAK,IAAI,UAAU,YAAY,EAAE,4BAA4B,CAAC,QAAQ,KAAK,KAAK,OAAO,UAAU,UAAU,QAAQ,OAAO,MAAM,OAAO,OAAO,MAAM,EAAE,2BAA2B,CAAC,UAAU,gDAAgD,EAAE,6BAA6B,CAAC,UAAU,aAAa,SAAS,WAAW,KAAK,OAAO,QAAQ,UAAU,OAAO,UAAU,OAAO,SAAS,UAAU,WAAW,EAAE,iCAAiC,CAAC,YAAY,SAAS,WAAW,GAAG,EAAE,iCAAiC,CAAC,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AC,QAAQ,UAAU,MAAM,OAAO,OAAO,MAAM,EAAE,kJAAkJ,CAAC,KAAK,OAAO,MAAM,GAAG,EAAE,0JAA0J,CAAC,SAAS,OAAO,SAAS,MAAM,EAAE,wKAAwK,CAAC,IAAI;AAAA;AAAA,uBAErvZ,OAAO,gBAAgB,EAAE,4GAA4G,CAAC,QAAQ,UAAU,OAAO,OAAO,MAAM,MAAM,EAAE,sJAAsJ,CAAC,UAAU,OAAO,UAAU,MAAM,EAAE,oKAAoK,CAAC,KAAK;AAAA;AAAA,uBAExhB,MAAM,gBAAgB,EAAE,sMAAsM,CAAC,MAAM;AAAA;AAAA,qBAEvO,KAAK,gBAAgB,EAAE,qDAAqD,CAAC,WAAW,qBAAqB,EAAE,2DAA2D,CAAC,WAAW,qBAAqB,EAAE,4DAA4D,CAAC,WAAW,qBAAqB,EAAE,sDAAsD,CAAC,WAAW,2BAA2B,EAAE,4DAA4D,CAAC,WAAW,2BAA2B,EAAE,6DAA6D,CAAC,WAAW,2BAA2B,CAAC,GAAGC,EAAuB,IAAIC,EAAM,cAAcC,EAAO,CAAC,OAAOJ,CAAmB,CAAC,EAAEK,EAA+BH","x_google_ignoreList":[0]} \ No newline at end of file +{"version":3,"file":"GlobalScrollAreaStyles-UY5SB7EJ-20f80ffd.js","sources":["../../node_modules/@storybook/components/dist/GlobalScrollAreaStyles-UY5SB7EJ.mjs"],"sourcesContent":["import './chunk-JRLSWQMA.mjs';\nimport React from 'react';\nimport { Global } from '@storybook/theming';\n\nvar getScrollAreaStyles=theme=>({\".os-size-observer,\\n.os-size-observer-listener\":{direction:\"inherit\",pointerEvents:\"none\",overflow:\"hidden\",visibility:\"hidden\",boxSizing:\"border-box\"},\".os-size-observer,\\n.os-size-observer-listener,\\n.os-size-observer-listener-item,\\n.os-size-observer-listener-item-final\":{writingMode:\"horizontal-tb\",position:\"absolute\",left:\"0\",top:\"0\"},\".os-size-observer\":{zIndex:-1,contain:\"strict\",display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",padding:\"inherit\",border:\"inherit\",boxSizing:\"inherit\",margin:\"-133px\",top:\"0\",right:\"0\",bottom:\"0\",left:\"0\",transform:\"scale(0.1)\"},\".os-size-observer::before\":{content:'\"\"',flex:\"none\",boxSizing:\"inherit\",padding:\"10px\",width:\"10px\",height:\"10px\"},\".os-size-observer-appear\":{animation:\"os-size-observer-appear-animation 1ms forwards\"},\".os-size-observer-listener\":{boxSizing:\"border-box\",position:\"relative\",flex:\"auto\",padding:\"inherit\",border:\"inherit\",margin:\"-133px\",transform:\"scale(10)\"},\".os-size-observer-listener.ltr\":{marginRight:\"-266px\",marginLeft:\"0\"},\".os-size-observer-listener.rtl\":{marginLeft:\"-266px\",marginRight:\"0\"},\".os-size-observer-listener:empty::before\":{content:'\"\"',width:\"100%\",height:\"100%\"},\".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item\":{display:\"block\",position:\"relative\",padding:\"inherit\",border:\"inherit\",boxSizing:\"content-box\",flex:\"auto\"},\".os-size-observer-listener-scroll\":{boxSizing:\"border-box\",display:\"flex\"},\".os-size-observer-listener-item\":{right:\"0\",bottom:\"0\",overflow:\"hidden\",direction:\"ltr\",flex:\"none\"},\".os-size-observer-listener-item-final\":{transition:\"none\"},\"@keyframes os-size-observer-appear-animation\":{from:{cursor:\"auto\"},to:{cursor:\"none\"}},\".os-trinsic-observer\":{flex:\"none\",boxSizing:\"border-box\",position:\"relative\",maxWidth:\"0px\",maxHeight:\"1px\",padding:\"0\",margin:\"0\",border:\"none\",overflow:\"hidden\",zIndex:-1,height:\"0\",top:\"calc(100% + 1px)\",contain:\"strict\"},\".os-trinsic-observer:not(:empty)\":{height:\"calc(100% + 1px)\",top:\"-1px\"},\".os-trinsic-observer:not(:empty) > .os-size-observer\":{width:\"1000%\",height:\"1000%\",minHeight:\"1px\",minWidth:\"1px\"},\".os-environment\":{\"--os-custom-prop\":\"-1\",position:\"fixed\",opacity:0,visibility:\"hidden\",overflow:\"scroll\",height:\"200px\",width:\"200px\",zIndex:\"var(--os-custom-prop)\"},\".os-environment div\":{width:\"200%\",height:\"200%\",margin:\"10px 0\"},\".os-environment.os-environment-flexbox-glue\":{display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",height:\"auto\",width:\"auto\",minHeight:\"200px\",minWidth:\"200px\"},\".os-environment.os-environment-flexbox-glue div\":{flex:\"auto\",width:\"auto\",height:\"auto\",maxHeight:\"100%\",maxWidth:\"100%\",margin:\"0\"},\".os-environment.os-environment-flexbox-glue-max\":{maxHeight:\"200px\"},\".os-environment.os-environment-flexbox-glue-max div\":{overflow:\"visible\"},\".os-environment.os-environment-flexbox-glue-max div::before\":{content:'\"\"',display:\"block\",height:\"999px\",width:\"999px\"},\".os-environment,\\n[data-overlayscrollbars-viewport]\":{msOverflowStyle:\"scrollbar !important\"},\"[data-overlayscrollbars-initialize],\\n[data-overlayscrollbars~=scrollbarHidden],\\n[data-overlayscrollbars-viewport~=scrollbarHidden],\\n.os-scrollbar-hidden.os-environment\":{scrollbarWidth:\"none !important\"},\"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner\":{WebkitAppearance:\"none !important\",appearance:\"none !important\",display:\"none !important\",width:\"0 !important\",height:\"0 !important\"},\"[data-overlayscrollbars-initialize]\":{overflow:\"auto\"},\"html[data-overlayscrollbars],\\nhtml.os-scrollbar-hidden,\\nhtml.os-scrollbar-hidden > body\":{boxSizing:\"border-box\",margin:\"0\",width:\"100%\",height:\"100%\"},\"html[data-overlayscrollbars] > body\":{overflow:\"visible\"},\"[data-overlayscrollbars~=host]\":{position:\"relative\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars-padding]\":{display:\"flex\",flexDirection:\"row !important\",flexWrap:\"nowrap !important\"},\"[data-overlayscrollbars-padding],\\n[data-overlayscrollbars-viewport]\":{boxSizing:\"inherit\",position:\"relative\",flex:\"auto !important\",height:\"auto\",width:\"100%\",padding:\"0\",margin:\"0\",border:\"none\",zIndex:0,overflow:\"hidden\"},\"[data-overlayscrollbars-viewport]\":{\"--os-vaw\":\"0\",\"--os-vah\":\"0\"},\"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before\":{content:'\"\"',position:\"absolute\",pointerEvents:\"none\",zIndex:-1,minWidth:\"1px\",minHeight:\"1px\",width:\"var(--os-vaw)\",height:\"var(--os-vah)\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars~=viewport]\":{overflow:\"hidden\"},\"[data-overlayscrollbars~=overflowVisible],\\n[data-overlayscrollbars-padding~=overflowVisible],\\n[data-overlayscrollbars-viewport~=overflowVisible]\":{overflow:\"visible\"},\"[data-overlayscrollbars-overflow-x=hidden]\":{overflowX:\"hidden\",overflowY:\"hidden\"},\"[data-overlayscrollbars-overflow-x=scroll]\":{overflowX:\"scroll\"},\"[data-overlayscrollbars-overflow-y=scroll]\":{overflowY:\"scroll\"},\"[data-overlayscrollbars~=scrollbarPressed],\\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]\":{scrollBehavior:\"auto !important\"},\"[data-overlayscrollbars-content]\":{boxSizing:\"inherit\"},\"[data-overlayscrollbars-grid],\\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]\":{display:\"grid\",gridTemplate:\"1fr/1fr\"},\"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]\":{height:\"auto !important\",width:\"auto !important\"},\".os-scrollbar\":{contain:[\"size layout\",\"size layout style\"],transition:\"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s\",pointerEvents:\"none\",position:\"absolute\",opacity:0,visibility:\"hidden\",\"--os-size\":\"0\",\"--os-padding-perpendicular\":\"0\",\"--os-padding-axis\":\"0\",\"--os-track-border-radius\":\"0\",\"--os-track-bg\":\"none\",\"--os-track-bg-hover\":\"none\",\"--os-track-bg-active\":\"none\",\"--os-track-border\":\"none\",\"--os-track-border-hover\":\"none\",\"--os-track-border-active\":\"none\",\"--os-handle-border-radius\":\"0\",\"--os-handle-bg\":\"none\",\"--os-handle-bg-hover\":\"none\",\"--os-handle-bg-active\":\"none\",\"--os-handle-border\":\"none\",\"--os-handle-border-hover\":\"none\",\"--os-handle-border-active\":\"none\",\"--os-handle-min-size\":\"33px\",\"--os-handle-max-size\":\"none\",\"--os-handle-perpendicular-size\":\"100%\",\"--os-handle-perpendicular-size-hover\":\"100%\",\"--os-handle-perpendicular-size-active\":\"100%\",\"--os-handle-interactive-area-offset\":\"0\"},\"body > .os-scrollbar\":{position:\"fixed\",zIndex:99999},\".os-scrollbar-transitionless\":{transition:\"none\"},\".os-scrollbar-track\":{position:\"relative\",direction:\"ltr !important\",padding:\"0 !important\",border:\"none !important\"},\".os-scrollbar-handle\":{position:\"absolute\"},\".os-scrollbar-track,\\n.os-scrollbar-handle\":{pointerEvents:\"none\",width:\"100%\",height:\"100%\"},\".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle\":{pointerEvents:\"auto\",touchAction:\"none\"},\".os-scrollbar-horizontal\":{bottom:\"0\",left:\"0\",padding:\"var(--os-padding-perpendicular) var(--os-padding-axis)\",right:\"var(--os-size)\",height:\"var(--os-size)\"},\".os-scrollbar-vertical\":{top:\"0\",right:\"0\",padding:\"var(--os-padding-axis) var(--os-padding-perpendicular)\",bottom:\"var(--os-size)\",width:\"var(--os-size)\"},\".os-scrollbar-rtl.os-scrollbar-horizontal\":{right:\"0\"},\".os-scrollbar-rtl.os-scrollbar-vertical\":{right:\"auto\",left:\"0\"},\".os-scrollbar-visible,\\n.os-scrollbar-interaction.os-scrollbar-visible\":{opacity:1,visibility:\"visible\"},\".os-scrollbar-auto-hidden\":{opacity:0,visibility:\"hidden\"},\".os-scrollbar-unusable,\\n.os-scrollbar-unusable *,\\n.os-scrollbar-wheel,\\n.os-scrollbar-wheel *\":{pointerEvents:\"none !important\"},\".os-scrollbar-unusable .os-scrollbar-handle\":{opacity:\"0 !important\"},\".os-scrollbar-horizontal .os-scrollbar-handle\":{bottom:\"0\",minWidth:\"var(--os-handle-min-size)\",maxWidth:\"var(--os-handle-max-size)\",height:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s\"},\".os-scrollbar-vertical .os-scrollbar-handle\":{right:\"0\",minHeight:\"var(--os-handle-min-size)\",maxHeight:\"var(--os-handle-max-size)\",width:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s\"},\".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle\":{right:\"auto\",left:\"0\"},\".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl\":{left:\"0\",right:\"0\"},\".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl\":{top:\"0\",bottom:\"0\"},\".os-scrollbar .os-scrollbar-track\":{border:\"var(--os-track-border)\",borderRadius:\"var(--os-track-border-radius)\",background:\"var(--os-track-bg)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s\"},\".os-scrollbar .os-scrollbar-track:hover\":{border:\"var(--os-track-border-hover)\",background:\"var(--os-track-bg-hover)\"},\".os-scrollbar .os-scrollbar-track:active\":{border:\"var(--os-track-border-active)\",background:\"var(--os-track-bg-active)\"},\".os-scrollbar .os-scrollbar-handle\":{border:\"var(--os-handle-border)\",borderRadius:\"var(--os-handle-border-radius)\",background:theme.textMutedColor,opacity:.5},\".os-scrollbar .os-scrollbar-handle:before\":{content:'\"\"',position:\"absolute\",left:\"0\",right:\"0\",top:\"0\",bottom:\"0\",display:\"block\"},\".os-scrollbar .os-scrollbar-handle:hover\":{border:\"var(--os-handle-border-hover)\",opacity:.6},\".os-scrollbar .os-scrollbar-handle:active\":{border:\"var(--os-handle-border-active)\",background:\"var(--os-handle-bg-active)\"},\".os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"var(--os-size)\",right:\"0\"},\".os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",bottom:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-horizontal:hover .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-horizontal:active .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-active)\"},\".os-scrollbar-vertical .os-scrollbar-handle:before\":{left:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",right:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",left:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical:hover .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-vertical:active .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-active)\"},\"[data-overlayscrollbars~=updating] > .os-scrollbar,\\n.os-theme-none.os-scrollbar\":{display:\"none !important\"},\".os-theme-dark,\\n.os-theme-light\":{boxSizing:\"border-box\",\"--os-size\":\"10px\",\"--os-padding-perpendicular\":\"2px\",\"--os-padding-axis\":\"2px\",\"--os-track-border-radius\":\"10px\",\"--os-handle-interactive-area-offset\":\"4px\",\"--os-handle-border-radius\":\"10px\"},\".os-theme-dark\":{\"--os-handle-bg\":\"rgba(0, 0, 0, 0.44)\",\"--os-handle-bg-hover\":\"rgba(0, 0, 0, 0.55)\",\"--os-handle-bg-active\":\"rgba(0, 0, 0, 0.66)\"},\".os-theme-light\":{\"--os-handle-bg\":\"rgba(255, 255, 255, 0.44)\",\"--os-handle-bg-hover\":\"rgba(255, 255, 255, 0.55)\",\"--os-handle-bg-active\":\"rgba(255, 255, 255, 0.66)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal\":{padding:\"2px 2px\",right:\"10px\",height:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"10px\",right:\"0\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle\":{minWidth:\"33px\",maxWidth:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:`calc((\n 2px + 4px\n ) * -1)`,bottom:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical\":{padding:\"2px 2px\",bottom:\"10px\",width:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle\":{minHeight:\"33px\",maxHeight:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before\":{left:`calc((\n 2px + 4px\n ) * -1)`,right:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:`calc((\n 2px + 4px\n ) * -1)`,left:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.44)\"},\".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.55)\"},\".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.66)\"},\".os-no-css-vars.os-theme-light .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.44)\"},\".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.55)\"},\".os-no-css-vars.os-theme-light:active .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.66)\"}}),GlobalScrollAreaStyles=()=>React.createElement(Global,{styles:getScrollAreaStyles}),GlobalScrollAreaStyles_default=GlobalScrollAreaStyles;\n\nexport { GlobalScrollAreaStyles_default as default, getScrollAreaStyles };\n"],"names":["getScrollAreaStyles","theme","GlobalScrollAreaStyles","React","Global","GlobalScrollAreaStyles_default"],"mappings":"yQAIG,IAACA,EAAoBC,IAAQ,CAAC,iDAAiD,CAAC,UA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AAC,WAAW,2BAA2B,CAAC,GAAGC,EAAuB,IAAIC,EAAM,cAAcC,EAAO,CAAC,OAAOJ,CAAmB,CAAC,EAAEK,EAA+BH","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/IconButton.stories-a3f22f4a.js b/assets/IconButton.stories-5dfe46f9.js similarity index 87% rename from assets/IconButton.stories-a3f22f4a.js rename to assets/IconButton.stories-5dfe46f9.js index 4553bce1..021d3aa0 100644 --- a/assets/IconButton.stories-a3f22f4a.js +++ b/assets/IconButton.stories-5dfe46f9.js @@ -1,4 +1,4 @@ -import{j as t}from"./TetrislyProvider-07235cd3.js";import{r as s}from"./index-76fb7be0.js";import{I as d}from"./IconButton-83d763b2.js";import{I as g}from"./IconButtonDocs-0ed885aa.js";import{T as h}from"./TetDocs-8093825f.js";import"./_commonjsHelpers-de833af9.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./mergeConfigWithCutom-789678df.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const F={component:d,tags:["autodocs"],argTypes:{variant:{description:'Figma "Type" props',table:{defaultValue:{summary:"default"}}},appearance:{table:{defaultValue:{summary:"primary"}}}},parameters:{docs:{description:{component:"Specific Button that lacks the accompanying text label, relying only on an icon or symbol to convey its purpose. The Icon Button helps to design within limited space, as well as allows for a maintaining cleaner interface."},page:()=>t.jsx(h,{docs:"https://docs.tetrisly.com/components/in-progress/iconbutton",children:t.jsx(g,{})})}}},e={args:{icon:"20-placeholder"}},y=u=>{const[r,a]=s.useState(!1);return s.useEffect(()=>{r&&setTimeout(()=>a(!1),1e3)},[r]),t.jsx(d,{...u,state:r?"loading":void 0,onClick:()=>a(f=>!f)})},o={args:{icon:"20-placeholder"},render:y};var n,i,c;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ +import{j as t}from"./TetrislyProvider-07235cd3.js";import{r as s}from"./index-76fb7be0.js";import{I as d}from"./IconButton-83d763b2.js";import{I as g}from"./IconButtonDocs-0ed885aa.js";import{T as h}from"./TetDocs-f48e3431.js";import"./_commonjsHelpers-de833af9.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./mergeConfigWithCutom-789678df.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const F={component:d,tags:["autodocs"],argTypes:{variant:{description:'Figma "Type" props',table:{defaultValue:{summary:"default"}}},appearance:{table:{defaultValue:{summary:"primary"}}}},parameters:{docs:{description:{component:"Specific Button that lacks the accompanying text label, relying only on an icon or symbol to convey its purpose. The Icon Button helps to design within limited space, as well as allows for a maintaining cleaner interface."},page:()=>t.jsx(h,{docs:"https://docs.tetrisly.com/components/in-progress/iconbutton",children:t.jsx(g,{})})}}},e={args:{icon:"20-placeholder"}},y=u=>{const[r,a]=s.useState(!1);return s.useEffect(()=>{r&&setTimeout(()=>a(!1),1e3)},[r]),t.jsx(d,{...u,state:r?"loading":void 0,onClick:()=>a(f=>!f)})},o={args:{icon:"20-placeholder"},render:y};var n,i,c;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{ args: { icon: '20-placeholder' } @@ -8,4 +8,4 @@ import{j as t}from"./TetrislyProvider-07235cd3.js";import{r as s}from"./index-76 }, render: ClickableRender }`,...(m=(l=o.parameters)==null?void 0:l.docs)==null?void 0:m.source}}};const L=["Default","Clickable"];export{o as Clickable,e as Default,L as __namedExportsOrder,F as default}; -//# sourceMappingURL=IconButton.stories-a3f22f4a.js.map +//# sourceMappingURL=IconButton.stories-5dfe46f9.js.map diff --git a/assets/IconButton.stories-5dfe46f9.js.map b/assets/IconButton.stories-5dfe46f9.js.map new file mode 100644 index 00000000..552a2806 --- /dev/null +++ b/assets/IconButton.stories-5dfe46f9.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IconButton.stories-5dfe46f9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"} \ No newline at end of file diff --git a/assets/IconButton.stories-a3f22f4a.js.map b/assets/IconButton.stories-a3f22f4a.js.map deleted file mode 100644 index f3d9bf38..00000000 --- a/assets/IconButton.stories-a3f22f4a.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"IconButton.stories-a3f22f4a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"} \ No newline at end of file diff --git a/assets/InlineSearchInput.stories-9c784aa4.js b/assets/InlineSearchInput.stories-9c784aa4.js deleted file mode 100644 index 2079ac40..00000000 --- a/assets/InlineSearchInput.stories-9c784aa4.js +++ /dev/null @@ -1,14 +0,0 @@ -import{j as i}from"./TetrislyProvider-07235cd3.js";import{r as C}from"./index-76fb7be0.js";import{S}from"./SearchInput-00a41a85.js";import{m as v}from"./mergeConfigWithCutom-789678df.js";import{T as x}from"./TetDocs-8093825f.js";import"./_commonjsHelpers-de833af9.js";import"./TextInput-3ac35c9f.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./Button-7524adde.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./IconButton-83d763b2.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const b={display:"inline-flex",h:"small",padding:"component-padding-xSmall component-padding-small",backgroundColor:{hover:"interaction-ghost-hover"},ring:{_:"unset"},ringColor:{_:"unset"},innerComponents:{input:{w:"unset",h:"unset",minWidth:"50px",backgroundColor:"unset",padding:"unset",display:"inline-block"}},spacing:{beforeComponent:{Icon:{marginLeft:"component-padding-small"}}}},o=({custom:e,...a})=>{const s=C.useMemo(()=>v({defaultConfig:b,custom:e}),[e]);return i.jsx(S,{size:8,...a,custom:s})};try{o.displayName="InlineSearchInput",o.__docgenInfo={description:"",displayName:"InlineSearchInput",props:{custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"DeepPartial"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'}]}},hasClearButton:{defaultValue:null,description:"",name:"hasClearButton",required:!1,type:{name:"boolean"}}}}}catch{}const A={component:o,tags:["autodocs"],argTypes:{},parameters:{docs:{description:{component:"A distinctive text input field that allows users to search for content on a website or application, by entering keywords, phrases, or other search terms. Search Inputs often include a search icon and may provide autocomplete suggestions or filters to refine results."},page:()=>i.jsx(x,{docs:"https://docs.tetrisly.com/components/in-progress/searchinput"})}}},t={},n={render:function(){const[a,s]=C.useState("Tetrisly.com"),y=I=>{s(I.target.value)};return i.jsx(o,{value:a,onChange:y})}},r={args:{state:"disabled"}};var l,p,c;t.parameters={...t.parameters,docs:{...(l=t.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(c=(p=t.parameters)==null?void 0:p.docs)==null?void 0:c.source}}};var u,m,d;n.parameters={...n.parameters,docs:{...(u=n.parameters)==null?void 0:u.docs,source:{originalSource:`{ - render: function ControlledSearchInput() { - const [value, setValue] = useState('Tetrisly.com'); - const handleOnChange: ChangeEventHandler = e => { - setValue(e.target.value); - }; - return ; - } -}`,...(d=(m=n.parameters)==null?void 0:m.docs)==null?void 0:d.source}}};var g,h,f;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{ - args: { - state: 'disabled' - } -}`,...(f=(h=r.parameters)==null?void 0:h.docs)==null?void 0:f.source}}};const P=["Default","Filled","Disabled"];export{t as Default,r as Disabled,n as Filled,P as __namedExportsOrder,A as default}; -//# sourceMappingURL=InlineSearchInput.stories-9c784aa4.js.map diff --git a/assets/InlineSearchInput.stories-9c784aa4.js.map b/assets/InlineSearchInput.stories-9c784aa4.js.map deleted file mode 100644 index bdf2842a..00000000 --- a/assets/InlineSearchInput.stories-9c784aa4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InlineSearchInput.stories-9c784aa4.js","sources":["../../src/components/InlineSearchInput/InlineSearchInput.styles.ts","../../src/components/InlineSearchInput/InlineSearchInput.tsx"],"sourcesContent":["import { SearchInputProps } from '../SearchInput';\n\nexport const defaultConfig: SearchInputProps['custom'] = {\n display: 'inline-flex',\n h: 'small',\n padding: 'component-padding-xSmall component-padding-small',\n backgroundColor: {\n hover: 'interaction-ghost-hover',\n },\n ring: {\n _: 'unset',\n },\n ringColor: {\n _: 'unset',\n },\n innerComponents: {\n input: {\n w: 'unset',\n h: 'unset',\n minWidth: '50px',\n backgroundColor: 'unset',\n padding: 'unset',\n display: 'inline-block',\n },\n },\n spacing: {\n beforeComponent: {\n Icon: {\n marginLeft: 'component-padding-small',\n },\n },\n },\n};\n","import { FC, useMemo } from 'react';\n\nimport { InlineSearchInputProps } from './InlineSearchInput.props';\nimport { defaultConfig } from './InlineSearchInput.styles';\nimport { SearchInput } from '../SearchInput';\n\nimport { mergeConfigWithCustom } from '@/services';\nimport { MarginProps } from '@/types';\n\nexport const InlineSearchInput: FC = ({\n custom,\n ...restProps\n}) => {\n const config = useMemo(\n () => mergeConfigWithCustom({ defaultConfig, custom }),\n [custom],\n );\n return ;\n};\n"],"names":["defaultConfig","InlineSearchInput","custom","restProps","config","useMemo","mergeConfigWithCustom","jsx","SearchInput"],"mappings":"ynBAEO,MAAMA,EAA4C,CACvD,QAAS,cACT,EAAG,QACH,QAAS,mDACT,gBAAiB,CACf,MAAO,yBACT,EACA,KAAM,CACJ,EAAG,OACL,EACA,UAAW,CACT,EAAG,OACL,EACA,gBAAiB,CACf,MAAO,CACL,EAAG,QACH,EAAG,QACH,SAAU,OACV,gBAAiB,QACjB,QAAS,QACT,QAAS,cACX,CACF,EACA,QAAS,CACP,gBAAiB,CACf,KAAM,CACJ,WAAY,yBACd,CACF,CACF,CACF,ECvBOC,EAAA,CAAA,CAAqE,OAAAC,EAC1E,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,EAAA,QAAe,IAAAC,EAAA,CAAA,cAAAN,EAAA,OAAAE,EAAA,EACwC,CAAAA,CAAA,CAC9C,EAET,OAAAK,EAAA,IAAAC,EAAA,CAAA,KAAA,EAAA,GAAAL,EAAA,OAAAC,CAAA,CAAA,CACF;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/InlineSearchInput.stories-f76810ea.js b/assets/InlineSearchInput.stories-f76810ea.js new file mode 100644 index 00000000..b284e98c --- /dev/null +++ b/assets/InlineSearchInput.stories-f76810ea.js @@ -0,0 +1,14 @@ +import{j as i}from"./TetrislyProvider-07235cd3.js";import{r as C}from"./index-76fb7be0.js";import{S}from"./SearchInput-9896c048.js";import{m as v}from"./mergeConfigWithCutom-789678df.js";import{T as x}from"./TetDocs-f48e3431.js";import"./_commonjsHelpers-de833af9.js";import"./TextInput-d9e744f0.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./Button-7524adde.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./IconButton-83d763b2.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const b={display:"inline-flex",h:"small",padding:"component-padding-xSmall component-padding-small",backgroundColor:{hover:"interaction-ghost-hover"},ring:{_:"unset"},ringColor:{_:"unset"},innerElements:{input:{w:"unset",h:"unset",minWidth:"50px",backgroundColor:"unset",padding:"unset",display:"inline-block"},beforeComponent:{spacing:{Icon:{marginLeft:"component-padding-small"}}}}},o=({custom:e,...a})=>{const s=C.useMemo(()=>v({defaultConfig:b,custom:e}),[e]);return i.jsx(S,{size:8,...a,custom:s})};try{o.displayName="InlineSearchInput",o.__docgenInfo={description:"",displayName:"InlineSearchInput",props:{custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"TextInputConfig"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'}]}},hasClearButton:{defaultValue:null,description:"",name:"hasClearButton",required:!1,type:{name:"boolean"}}}}}catch{}const A={component:o,tags:["autodocs"],argTypes:{},parameters:{docs:{description:{component:"A distinctive text input field that allows users to search for content on a website or application, by entering keywords, phrases, or other search terms. Search Inputs often include a search icon and may provide autocomplete suggestions or filters to refine results."},page:()=>i.jsx(x,{docs:"https://docs.tetrisly.com/components/in-progress/searchinput"})}}},t={},n={render:function(){const[a,s]=C.useState("Tetrisly.com"),y=I=>{s(I.target.value)};return i.jsx(o,{value:a,onChange:y})}},r={args:{state:"disabled"}};var l,p,c;t.parameters={...t.parameters,docs:{...(l=t.parameters)==null?void 0:l.docs,source:{originalSource:"{}",...(c=(p=t.parameters)==null?void 0:p.docs)==null?void 0:c.source}}};var u,m,d;n.parameters={...n.parameters,docs:{...(u=n.parameters)==null?void 0:u.docs,source:{originalSource:`{ + render: function ControlledSearchInput() { + const [value, setValue] = useState('Tetrisly.com'); + const handleOnChange: ChangeEventHandler = e => { + setValue(e.target.value); + }; + return ; + } +}`,...(d=(m=n.parameters)==null?void 0:m.docs)==null?void 0:d.source}}};var g,h,f;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{ + args: { + state: 'disabled' + } +}`,...(f=(h=r.parameters)==null?void 0:h.docs)==null?void 0:f.source}}};const R=["Default","Filled","Disabled"];export{t as Default,r as Disabled,n as Filled,R as __namedExportsOrder,A as default}; +//# sourceMappingURL=InlineSearchInput.stories-f76810ea.js.map diff --git a/assets/InlineSearchInput.stories-f76810ea.js.map b/assets/InlineSearchInput.stories-f76810ea.js.map new file mode 100644 index 00000000..3d542b4a --- /dev/null +++ b/assets/InlineSearchInput.stories-f76810ea.js.map @@ -0,0 +1 @@ +{"version":3,"file":"InlineSearchInput.stories-f76810ea.js","sources":["../../src/components/InlineSearchInput/InlineSearchInput.styles.ts","../../src/components/InlineSearchInput/InlineSearchInput.tsx"],"sourcesContent":["import { SearchInputProps } from '../SearchInput';\n\nexport const defaultConfig: SearchInputProps['custom'] = {\n display: 'inline-flex',\n h: 'small',\n padding: 'component-padding-xSmall component-padding-small',\n backgroundColor: {\n hover: 'interaction-ghost-hover',\n },\n ring: {\n _: 'unset',\n },\n ringColor: {\n _: 'unset',\n },\n innerElements: {\n input: {\n w: 'unset',\n h: 'unset',\n minWidth: '50px',\n backgroundColor: 'unset',\n padding: 'unset',\n display: 'inline-block',\n },\n beforeComponent: {\n spacing: {\n Icon: {\n marginLeft: 'component-padding-small',\n },\n },\n },\n },\n};\n","import { FC, useMemo } from 'react';\n\nimport { InlineSearchInputProps } from './InlineSearchInput.props';\nimport { defaultConfig } from './InlineSearchInput.styles';\nimport { SearchInput } from '../SearchInput';\n\nimport { mergeConfigWithCustom } from '@/services';\nimport { MarginProps } from '@/types';\n\nexport const InlineSearchInput: FC = ({\n custom,\n ...restProps\n}) => {\n const config = useMemo(\n () => mergeConfigWithCustom({ defaultConfig, custom }),\n [custom],\n );\n return ;\n};\n"],"names":["defaultConfig","InlineSearchInput","custom","restProps","config","useMemo","mergeConfigWithCustom","jsx","SearchInput"],"mappings":"ynBAEO,MAAMA,EAA4C,CACvD,QAAS,cACT,EAAG,QACH,QAAS,mDACT,gBAAiB,CACf,MAAO,yBACT,EACA,KAAM,CACJ,EAAG,OACL,EACA,UAAW,CACT,EAAG,OACL,EACA,cAAe,CACb,MAAO,CACL,EAAG,QACH,EAAG,QACH,SAAU,OACV,gBAAiB,QACjB,QAAS,QACT,QAAS,cACX,EACA,gBAAiB,CACf,QAAS,CACP,KAAM,CACJ,WAAY,yBACd,CACF,CACF,CACF,CACF,ECvBOC,EAAA,CAAA,CAAqE,OAAAC,EAC1E,GAAAC,CAEF,IAAA,CACE,MAAAC,EAAAC,EAAA,QAAe,IAAAC,EAAA,CAAA,cAAAN,EAAA,OAAAE,EAAA,EACwC,CAAAA,CAAA,CAC9C,EAET,OAAAK,EAAA,IAAAC,EAAA,CAAA,KAAA,EAAA,GAAAL,EAAA,OAAAC,CAAA,CAAA,CACF;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Popover.stories-0148e030.js b/assets/Popover.stories-2285f37e.js similarity index 95% rename from assets/Popover.stories-0148e030.js rename to assets/Popover.stories-2285f37e.js index dde92ab4..40047482 100644 --- a/assets/Popover.stories-0148e030.js +++ b/assets/Popover.stories-2285f37e.js @@ -1,4 +1,4 @@ -import{s as j,t as c,c as A,u as I,j as e}from"./TetrislyProvider-07235cd3.js";import{r as V}from"./index-76fb7be0.js";import{m as E}from"./mergeConfigWithCutom-789678df.js";import{A as O}from"./Avatar-9208d2ad.js";import{B as P}from"./Button-7524adde.js";import{L as T}from"./Label-511e9bf2.js";import{T as B}from"./TetDocs-8093825f.js";import"./_commonjsHelpers-de833af9.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const d=j(c.div)``,J=j(c.div)` +import{s as j,t as c,c as A,u as I,j as e}from"./TetrislyProvider-07235cd3.js";import{r as V}from"./index-76fb7be0.js";import{m as E}from"./mergeConfigWithCutom-789678df.js";import{A as O}from"./Avatar-9208d2ad.js";import{B as P}from"./Button-7524adde.js";import{L as T}from"./Label-511e9bf2.js";import{T as B}from"./TetDocs-f48e3431.js";import"./_commonjsHelpers-de833af9.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const d=j(c.div)``,J=j(c.div)` ${({isOpen:t})=>t===void 0&&A` ${d} { opacity: 0; @@ -24,4 +24,4 @@ import{s as j,t as c,c as A,u as I,j as e}from"./TetrislyProvider-07235cd3.js";i width: '300px' } }`,...(C=(w=i.parameters)==null?void 0:w.docs)==null?void 0:C.source}}};const ne=["Default","Open","CustomContent"];export{i as CustomContent,a as Default,s as Open,ne as __namedExportsOrder,re as default}; -//# sourceMappingURL=Popover.stories-0148e030.js.map +//# sourceMappingURL=Popover.stories-2285f37e.js.map diff --git a/assets/Popover.stories-0148e030.js.map b/assets/Popover.stories-2285f37e.js.map similarity index 99% rename from assets/Popover.stories-0148e030.js.map rename to assets/Popover.stories-2285f37e.js.map index f3eaec66..9e689fef 100644 --- a/assets/Popover.stories-0148e030.js.map +++ b/assets/Popover.stories-2285f37e.js.map @@ -1 +1 @@ -{"version":3,"file":"Popover.stories-0148e030.js","sources":["../../src/components/Popover/AnchorWrapper.styled.ts","../../src/components/Popover/Popover.styles.ts","../../src/components/Popover/stylesBuilder/stylesBuilder.ts","../../src/components/Popover/Popover.tsx"],"sourcesContent":["import { css, styled } from '@xstyled/styled-components';\n\nimport { PopoverProps } from './Popover.props';\n\nimport { tet } from '@/tetrisly';\n\nexport const PopoverContent = styled(tet.div)``;\n\nexport const AnchorWrapper = styled(tet.div)>`\n ${({ isOpen }) =>\n isOpen === undefined &&\n css`\n ${PopoverContent} {\n opacity: 0;\n pointer-events: none;\n }\n\n &:hover ${PopoverContent} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n`;\n","import { PopoverAlign, PopoverOrigin } from './types';\n\nimport { BaseProps } from '@/types/BaseProps';\n\nexport type PopoverConfig = {\n origin?: Partial<\n Record> }>\n >;\n innerElements?: {\n content?: BaseProps;\n };\n} & BaseProps;\n\nexport const defaultConfig = {\n position: 'relative',\n display: 'inline-flex',\n origin: {\n top: {\n align: {\n start: {\n transform: 'translate(0%, -100%)',\n left: '50%',\n },\n center: {\n transform: 'translate(-50%, -100%)',\n left: '50%',\n },\n end: {\n transform: 'translate(-100%, -100%)',\n left: '50%',\n },\n },\n },\n bottom: {\n align: {\n start: {\n transform: 'translate(0%, 100%)',\n left: '50%',\n },\n center: {\n transform: 'translate(-50%, 100%)',\n left: '50%',\n },\n end: {\n transform: 'translate(-100%, 100%)',\n left: '50%',\n },\n },\n },\n left: {\n align: {\n start: {\n transform: 'translate(-100%, 0%)',\n top: '50%',\n },\n center: {\n transform: 'translate(-100%, -50%)',\n top: '50%',\n },\n end: {\n transform: 'translate(-100%, -100%)',\n top: '50%',\n },\n },\n },\n right: {\n align: {\n start: {\n transform: 'translate(100%, 0%)',\n top: '50%',\n },\n center: {\n transform: 'translate(100%, -50%)',\n top: '50%',\n },\n end: {\n transform: 'translate(100%, -100%)',\n top: '50%',\n },\n },\n },\n },\n innerElements: {\n content: {\n position: 'absolute',\n text: 'body-medium',\n color: 'content-secondary',\n padding: 'component-padding-large',\n ring: 'focus',\n ringColor: 'border-defaultA',\n boxShadow: 'bottom-300',\n backgroundColor: 'interaction-background-modeless',\n borderRadius: 'large',\n zIndex: 1000,\n transition: true,\n transitionDuration: 200,\n },\n },\n} satisfies PopoverConfig;\n","import type { PopoverProps } from '../Popover.props';\nimport { defaultConfig } from '../Popover.styles';\nimport type { PopoverAlign, PopoverOrigin } from '../types';\n\nimport { mergeConfigWithCustom } from '@/services';\nimport type { BaseProps } from '@/types/BaseProps';\n\ntype StylesBuilderParams = {\n origin: PopoverOrigin;\n align: PopoverAlign;\n custom: PopoverProps['custom'];\n};\n\ntype PopoverStylesBuilder = {\n container: BaseProps;\n content: BaseProps;\n};\n\nexport const stylesBuilder = ({\n origin,\n align,\n custom,\n}: StylesBuilderParams): PopoverStylesBuilder => {\n const {\n origin: originStyles,\n innerElements: { content: contentStyles },\n ...container\n } = mergeConfigWithCustom({ defaultConfig, custom });\n\n return {\n container,\n content: {\n ...originStyles[origin].align[align],\n ...contentStyles,\n },\n };\n};\n","import { useSpace } from '@xstyled/styled-components';\nimport { FC, PropsWithChildren, useMemo } from 'react';\n\nimport { AnchorWrapper, PopoverContent } from './AnchorWrapper.styled';\nimport type { PopoverProps } from './Popover.props';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport type { MarginProps } from '@/types';\n\nexport const Popover: FC> = ({\n align = 'center',\n origin = 'top',\n offset = 'component-gap-large',\n content,\n isOpen,\n custom,\n children,\n width = 'fit-content',\n ...restProps\n}) => {\n const styles = useMemo(\n () => stylesBuilder({ origin, align, custom }),\n [origin, align, custom],\n );\n\n const space = useSpace(offset);\n const offsetProps = { [origin]: `-${space}` };\n\n return (\n \n \n {content}\n \n {children}\n \n );\n};\n"],"names":["PopoverContent","styled","tet","AnchorWrapper","isOpen","css","defaultConfig","stylesBuilder","origin","align","custom","originStyles","contentStyles","container","mergeConfigWithCustom","Popover","offset","content","children","width","restProps","styles","useMemo","space","useSpace","offsetProps","jsxs","jsx"],"mappings":"woBAMa,MAAAA,EAAiBC,EAAOC,EAAI,GAAG,IAE/BC,EAAgBF,EAAOC,EAAI,GAAG;AAAA,IACvC,CAAC,CAAE,OAAAE,CAAO,IACVA,IAAW,QACXC;AAAA,QACIL,CAAc;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKNA,CAAc;AAAA;AAAA;AAAA;AAAA,KAIzB;AAAA,ECRQM,EAAgB,CAC3B,SAAU,WACV,QAAS,cACT,OAAQ,CACN,IAAK,CACH,MAAO,CACL,MAAO,CACL,UAAW,uBACX,KAAM,KACR,EACA,OAAQ,CACN,UAAW,yBACX,KAAM,KACR,EACA,IAAK,CACH,UAAW,0BACX,KAAM,KACR,CACF,CACF,EACA,OAAQ,CACN,MAAO,CACL,MAAO,CACL,UAAW,sBACX,KAAM,KACR,EACA,OAAQ,CACN,UAAW,wBACX,KAAM,KACR,EACA,IAAK,CACH,UAAW,yBACX,KAAM,KACR,CACF,CACF,EACA,KAAM,CACJ,MAAO,CACL,MAAO,CACL,UAAW,uBACX,IAAK,KACP,EACA,OAAQ,CACN,UAAW,yBACX,IAAK,KACP,EACA,IAAK,CACH,UAAW,0BACX,IAAK,KACP,CACF,CACF,EACA,MAAO,CACL,MAAO,CACL,MAAO,CACL,UAAW,sBACX,IAAK,KACP,EACA,OAAQ,CACN,UAAW,wBACX,IAAK,KACP,EACA,IAA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":"Popover.stories-2285f37e.js","sources":["../../src/components/Popover/AnchorWrapper.styled.ts","../../src/components/Popover/Popover.styles.ts","../../src/components/Popover/stylesBuilder/stylesBuilder.ts","../../src/components/Popover/Popover.tsx"],"sourcesContent":["import { css, styled } from '@xstyled/styled-components';\n\nimport { PopoverProps } from './Popover.props';\n\nimport { tet } from '@/tetrisly';\n\nexport const PopoverContent = styled(tet.div)``;\n\nexport const AnchorWrapper = styled(tet.div)>`\n ${({ isOpen }) =>\n isOpen === undefined &&\n css`\n ${PopoverContent} {\n opacity: 0;\n pointer-events: none;\n }\n\n &:hover ${PopoverContent} {\n opacity: 1;\n pointer-events: all;\n }\n `}\n`;\n","import { PopoverAlign, PopoverOrigin } from './types';\n\nimport { BaseProps } from '@/types/BaseProps';\n\nexport type PopoverConfig = {\n origin?: Partial<\n Record> }>\n >;\n innerElements?: {\n content?: BaseProps;\n };\n} & BaseProps;\n\nexport const defaultConfig = {\n position: 'relative',\n display: 'inline-flex',\n origin: {\n top: {\n align: {\n start: {\n transform: 'translate(0%, -100%)',\n left: '50%',\n },\n center: {\n transform: 'translate(-50%, -100%)',\n left: '50%',\n },\n end: {\n transform: 'translate(-100%, -100%)',\n left: '50%',\n },\n },\n },\n bottom: {\n align: {\n start: {\n transform: 'translate(0%, 100%)',\n left: '50%',\n },\n center: {\n transform: 'translate(-50%, 100%)',\n left: '50%',\n },\n end: {\n transform: 'translate(-100%, 100%)',\n left: '50%',\n },\n },\n },\n left: {\n align: {\n start: {\n transform: 'translate(-100%, 0%)',\n top: '50%',\n },\n center: {\n transform: 'translate(-100%, -50%)',\n top: '50%',\n },\n end: {\n transform: 'translate(-100%, -100%)',\n top: '50%',\n },\n },\n },\n right: {\n align: {\n start: {\n transform: 'translate(100%, 0%)',\n top: '50%',\n },\n center: {\n transform: 'translate(100%, -50%)',\n top: '50%',\n },\n end: {\n transform: 'translate(100%, -100%)',\n top: '50%',\n },\n },\n },\n },\n innerElements: {\n content: {\n position: 'absolute',\n text: 'body-medium',\n color: 'content-secondary',\n padding: 'component-padding-large',\n ring: 'focus',\n ringColor: 'border-defaultA',\n boxShadow: 'bottom-300',\n backgroundColor: 'interaction-background-modeless',\n borderRadius: 'large',\n zIndex: 1000,\n transition: true,\n transitionDuration: 200,\n },\n },\n} satisfies PopoverConfig;\n","import type { PopoverProps } from '../Popover.props';\nimport { defaultConfig } from '../Popover.styles';\nimport type { PopoverAlign, PopoverOrigin } from '../types';\n\nimport { mergeConfigWithCustom } from '@/services';\nimport type { BaseProps } from '@/types/BaseProps';\n\ntype StylesBuilderParams = {\n origin: PopoverOrigin;\n align: PopoverAlign;\n custom: PopoverProps['custom'];\n};\n\ntype PopoverStylesBuilder = {\n container: BaseProps;\n content: BaseProps;\n};\n\nexport const stylesBuilder = ({\n origin,\n align,\n custom,\n}: StylesBuilderParams): PopoverStylesBuilder => {\n const {\n origin: originStyles,\n innerElements: { content: contentStyles },\n ...container\n } = mergeConfigWithCustom({ defaultConfig, custom });\n\n return {\n container,\n content: {\n ...originStyles[origin].align[align],\n ...contentStyles,\n },\n };\n};\n","import { useSpace } from '@xstyled/styled-components';\nimport { FC, PropsWithChildren, useMemo } from 'react';\n\nimport { AnchorWrapper, PopoverContent } from './AnchorWrapper.styled';\nimport type { PopoverProps } from './Popover.props';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport type { MarginProps } from '@/types';\n\nexport const Popover: FC> = ({\n align = 'center',\n origin = 'top',\n offset = 'component-gap-large',\n content,\n isOpen,\n custom,\n children,\n width = 'fit-content',\n ...restProps\n}) => {\n const styles = useMemo(\n () => stylesBuilder({ origin, align, custom }),\n [origin, align, custom],\n );\n\n const space = useSpace(offset);\n const offsetProps = { [origin]: `-${space}` };\n\n return (\n \n \n {content}\n \n {children}\n \n );\n};\n"],"names":["PopoverContent","styled","tet","AnchorWrapper","isOpen","css","defaultConfig","stylesBuilder","origin","align","custom","originStyles","contentStyles","container","mergeConfigWithCustom","Popover","offset","content","children","width","restProps","styles","useMemo","space","useSpace","offsetProps","jsxs","jsx"],"mappings":"woBAMa,MAAAA,EAAiBC,EAAOC,EAAI,GAAG,IAE/BC,EAAgBF,EAAOC,EAAI,GAAG;AAAA,IACvC,CAAC,CAAE,OAAAE,CAAO,IACVA,IAAW,QACXC;AAAA,QACIL,CAAc;AAAA;AAAA;AAAA;AAAA;AAAA,gBAKNA,CAAc;AAAA;AAAA;AAAA;AAAA,KAIzB;AAAA,ECRQM,EAAgB,CAC3B,SAAU,WACV,QAAS,cACT,OAAQ,CACN,IAAK,CACH,MAAO,CACL,MAAO,CACL,UAAW,uBACX,KAAM,KACR,EACA,OAAQ,CACN,UAAW,yBACX,KAAM,KACR,EACA,IAAK,CACH,UAAW,0BACX,KAAM,KACR,CACF,CACF,EACA,OAAQ,CACN,MAAO,CACL,MAAO,CACL,UAAW,sBACX,KAAM,KACR,EACA,OAAQ,CACN,UAAW,wBACX,KAAM,KACR,EACA,IAAK,CACH,UAAW,yBACX,KAAM,KACR,CACF,CACF,EACA,KAAM,CACJ,MAAO,CACL,MAAO,CACL,UAAW,uBACX,IAAK,KACP,EACA,OAAQ,CACN,UAAW,yBACX,IAAK,KACP,EACA,IAAK,CACH,UAAW,0BACX,IAAK,KACP,CACF,CACF,EACA,MAAO,CACL,MAAO,CACL,MAAO,CACL,UAAW,sBACX,IAAK,KACP,EACA,OAAQ,CACN,UAAW,wBACX,IAAK,KACP,EACA,IAAK,CACH,UAAW,yBACX,IAAK,KACP,CACF,CACF,CACF,EACA,cAAe,CACb,QAAS,CACP,SAAU,WACV,KAAM,cACN,MAAO,oBACP,QAAS,0BACT,KAAM,QACN,UAAW,kBACX,UAAW,aACX,gBAAiB,kCACjB,aAAc,QACd,OAAQ,IACR,WAAY,GACZ,mBAAoB,GACtB,CACF,CACF,EChFaC,EAAgB,CAAC,CAC5B,OAAAC,EACA,MAAAC,EACA,OAAAC,CACF,IAAiD,CACzC,KAAA,CACJ,OAAQC,EACR,cAAe,CAAE,QAASC,CAAc,EACxC,GAAGC,CACD,EAAAC,EAAsB,CAAE,cAAAR,EAAe,OAAAI,CAAQ,CAAA,EAE5C,MAAA,CACL,UAAAG,EACA,QAAS,CACP,GAAGF,EAAaH,CAAM,EAAE,MAAMC,CAAK,EACnC,GAAGG,CACL,CAAA,CAEJ,EC3BOG,EAAA,CAAA,CAAoE,MAAAN,EAAA,SACjE,OAAAD,EAAA,MACC,OAAAQ,EAAA,sBACA,QAAAC,EACT,OAAAb,EACA,OAAAM,EACA,SAAAQ,EACA,MAAAC,EAAA,cACQ,GAAAC,CAEV,IAAA,CACE,MAAAC,EAAAC,EAAA,QAAe,IAAAf,EAAA,CAAA,OAAAC,EAAA,MAAAC,EAAA,OAAAC,CAAA,CAAA,EACgC,CAAAF,EAAAC,EAAAC,CAAA,CACvB,EAGxBa,EAAAC,EAAAR,CAAA,EACAS,EAAA,CAAA,CAAAjB,CAAA,EAAA,IAAAe,CAAA,IAEA,OAAAG,EAAA,KACEvB,EAAC,CAAA,OAAAC,EACC,GAAAiB,EAAA,UACW,cAAA,UACC,GAAAD,EACR,SAAA,CAEJO,EAAA,IAAA3B,EAAC,CAAA,GAAAqB,EAAA,QACY,GAAAI,EACP,EAAAN,EACD,QAAAf,IAAA,GAAA,IAAA,IAC+B,cAAA,kBACtB,SAAAa,CAEX,CAAA,EACHC,CACC,CAAA,CAAA,CAGP;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/SearchInput-00a41a85.js b/assets/SearchInput-00a41a85.js deleted file mode 100644 index b3c79c28..00000000 --- a/assets/SearchInput-00a41a85.js +++ /dev/null @@ -1,2 +0,0 @@ -import{j as r}from"./TetrislyProvider-07235cd3.js";import{T as o}from"./TextInput-3ac35c9f.js";const p={type:"Icon",props:{name:"20-search"}},t=({placeholder:e="Search...",hasClearButton:a=!0,...n})=>r.jsx(o,{placeholder:e,type:"search",hasClearButton:a,beforeComponent:p,...n});try{t.displayName="SearchInput",t.__docgenInfo={description:"",displayName:"SearchInput",props:{custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"DeepPartial"}},hasClearButton:{defaultValue:{value:"true"},description:"",name:"hasClearButton",required:!1,type:{name:"boolean"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'}]}},afterComponent:{defaultValue:null,description:"",name:"afterComponent",required:!1,type:{name:"Dropdown | IconButton"}}}}}catch{}export{t as S}; -//# sourceMappingURL=SearchInput-00a41a85.js.map diff --git a/assets/SearchInput-9896c048.js b/assets/SearchInput-9896c048.js new file mode 100644 index 00000000..31de2bd9 --- /dev/null +++ b/assets/SearchInput-9896c048.js @@ -0,0 +1,2 @@ +import{j as r}from"./TetrislyProvider-07235cd3.js";import{T as o}from"./TextInput-d9e744f0.js";const p={type:"Icon",props:{name:"20-search"}},t=({placeholder:e="Search...",hasClearButton:a=!0,...n})=>r.jsx(o,{placeholder:e,type:"search",hasClearButton:a,beforeComponent:p,...n});try{t.displayName="SearchInput",t.__docgenInfo={description:"",displayName:"SearchInput",props:{custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"TextInputConfig"}},hasClearButton:{defaultValue:{value:"true"},description:"",name:"hasClearButton",required:!1,type:{name:"boolean"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'}]}},afterComponent:{defaultValue:null,description:"",name:"afterComponent",required:!1,type:{name:"Dropdown | IconButton"}}}}}catch{}export{t as S}; +//# sourceMappingURL=SearchInput-9896c048.js.map diff --git a/assets/SearchInput-00a41a85.js.map b/assets/SearchInput-9896c048.js.map similarity index 94% rename from assets/SearchInput-00a41a85.js.map rename to assets/SearchInput-9896c048.js.map index f8393828..9a34e98e 100644 --- a/assets/SearchInput-00a41a85.js.map +++ b/assets/SearchInput-9896c048.js.map @@ -1 +1 @@ -{"version":3,"file":"SearchInput-00a41a85.js","sources":["../../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["import { MarginProps } from '@xstyled/styled-components';\nimport { FC } from 'react';\n\nimport { SearchInputProps } from './SearchInput.props';\nimport { TextInput, TextInputProps } from '../TextInput';\n\nconst SEARCH_ICON_COMPONENT: TextInputProps['beforeComponent'] = {\n type: 'Icon',\n props: {\n name: '20-search',\n },\n};\n\nexport const SearchInput: FC = ({\n placeholder = 'Search...',\n hasClearButton = true,\n ...restProps\n}) => (\n \n);\n"],"names":["SEARCH_ICON_COMPONENT","SearchInput","placeholder","hasClearButton","restProps","jsx","TextInput"],"mappings":"+FAMA,MAAAA,EAAA,CAAiE,KAAA,OACzD,MAAA,CACC,KAAA,WACC,CAEV,EAEOC,EAAA,CAAA,CAAyD,YAAAC,EAAA,YAChD,eAAAC,EAAA,GACG,GAAAC,CAEnB,IAAAC,EAAA,IACEC,EAAC,CAAA,YAAAJ,EACC,KAAA,SACK,eAAAC,EACL,gBAAAH,EACiB,GAAAI,CACb,CACN"} \ No newline at end of file +{"version":3,"file":"SearchInput-9896c048.js","sources":["../../src/components/SearchInput/SearchInput.tsx"],"sourcesContent":["import { MarginProps } from '@xstyled/styled-components';\nimport { FC } from 'react';\n\nimport { SearchInputProps } from './SearchInput.props';\nimport { TextInput, TextInputProps } from '../TextInput';\n\nconst SEARCH_ICON_COMPONENT: TextInputProps['beforeComponent'] = {\n type: 'Icon',\n props: {\n name: '20-search',\n },\n};\n\nexport const SearchInput: FC = ({\n placeholder = 'Search...',\n hasClearButton = true,\n ...restProps\n}) => (\n \n);\n"],"names":["SEARCH_ICON_COMPONENT","SearchInput","placeholder","hasClearButton","restProps","jsx","TextInput"],"mappings":"+FAMA,MAAAA,EAAA,CAAiE,KAAA,OACzD,MAAA,CACC,KAAA,WACC,CAEV,EAEOC,EAAA,CAAA,CAAyD,YAAAC,EAAA,YAChD,eAAAC,EAAA,GACG,GAAAC,CAEnB,IAAAC,EAAA,IACEC,EAAC,CAAA,YAAAJ,EACC,KAAA,SACK,eAAAC,EACL,gBAAAH,EACiB,GAAAI,CACb,CACN"} \ No newline at end of file diff --git a/assets/SearchInput.stories-4e11e25d.js b/assets/SearchInput.stories-31dcc6f0.js similarity index 85% rename from assets/SearchInput.stories-4e11e25d.js rename to assets/SearchInput.stories-31dcc6f0.js index 32b126d3..7de83563 100644 --- a/assets/SearchInput.stories-4e11e25d.js +++ b/assets/SearchInput.stories-31dcc6f0.js @@ -1,4 +1,4 @@ -import{j as I}from"./TetrislyProvider-07235cd3.js";import{r as T}from"./index-76fb7be0.js";import{S as v}from"./SearchInput-00a41a85.js";import{T as E}from"./TetDocs-8093825f.js";import"./_commonjsHelpers-de833af9.js";import"./TextInput-3ac35c9f.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./Button-7524adde.js";import"./mergeConfigWithCutom-789678df.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./IconButton-83d763b2.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const Q={component:v,tags:["autodocs"],argTypes:{},parameters:{docs:{description:{component:"A distinctive text input field that allows users to search for content on a website or application, by entering keywords, phrases, or other search terms. Search Inputs often include a search icon and may provide autocomplete suggestions or filters to refine results."},page:()=>I.jsx(E,{docs:"https://docs.tetrisly.com/components/in-progress/searchinput"})}}},e={},r={render:function(){const[D,b]=T.useState("Tetrisly.com"),x=w=>{b(w.target.value)};return I.jsx(v,{value:D,onChange:x})}},o={args:{state:"disabled"}},t={args:{afterComponent:{type:"Dropdown",props:{label:"All"}}}},n={args:{afterComponent:{type:"IconButton",props:{icon:"20-filter"}}}};var s,a,p;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(p=(a=e.parameters)==null?void 0:a.docs)==null?void 0:p.source}}};var c,i,m;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{ +import{j as I}from"./TetrislyProvider-07235cd3.js";import{r as T}from"./index-76fb7be0.js";import{S as v}from"./SearchInput-9896c048.js";import{T as E}from"./TetDocs-f48e3431.js";import"./_commonjsHelpers-de833af9.js";import"./TextInput-d9e744f0.js";import"./tetrisly-icons.es-3ae3ef26.js";import"./mergeConfigWithCutom-789678df.js";import"./Button-7524adde.js";import"./index-dcaaca1f.js";import"./Loader-4e222d2a.js";import"./IconButton-83d763b2.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const Q={component:v,tags:["autodocs"],argTypes:{},parameters:{docs:{description:{component:"A distinctive text input field that allows users to search for content on a website or application, by entering keywords, phrases, or other search terms. Search Inputs often include a search icon and may provide autocomplete suggestions or filters to refine results."},page:()=>I.jsx(E,{docs:"https://docs.tetrisly.com/components/in-progress/searchinput"})}}},e={},r={render:function(){const[D,b]=T.useState("Tetrisly.com"),x=w=>{b(w.target.value)};return I.jsx(v,{value:D,onChange:x})}},o={args:{state:"disabled"}},t={args:{afterComponent:{type:"Dropdown",props:{label:"All"}}}},n={args:{afterComponent:{type:"IconButton",props:{icon:"20-filter"}}}};var s,a,p;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(p=(a=e.parameters)==null?void 0:a.docs)==null?void 0:p.source}}};var c,i,m;r.parameters={...r.parameters,docs:{...(c=r.parameters)==null?void 0:c.docs,source:{originalSource:`{ render: function ControlledSearchInput() { const [value, setValue] = useState('Tetrisly.com'); const handleOnChange: ChangeEventHandler = e => { @@ -29,4 +29,4 @@ import{j as I}from"./TetrislyProvider-07235cd3.js";import{r as T}from"./index-76 } } }`,...(y=(C=n.parameters)==null?void 0:C.docs)==null?void 0:y.source}}};const U=["Default","Filled","Disabled","Dropdown","Icon"];export{e as Default,o as Disabled,t as Dropdown,r as Filled,n as Icon,U as __namedExportsOrder,Q as default}; -//# sourceMappingURL=SearchInput.stories-4e11e25d.js.map +//# sourceMappingURL=SearchInput.stories-31dcc6f0.js.map diff --git a/assets/SearchInput.stories-4e11e25d.js.map b/assets/SearchInput.stories-31dcc6f0.js.map similarity index 54% rename from assets/SearchInput.stories-4e11e25d.js.map rename to assets/SearchInput.stories-31dcc6f0.js.map index e5086db4..9a3a145b 100644 --- a/assets/SearchInput.stories-4e11e25d.js.map +++ b/assets/SearchInput.stories-31dcc6f0.js.map @@ -1 +1 @@ -{"version":3,"file":"SearchInput.stories-4e11e25d.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"SearchInput.stories-31dcc6f0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/SocialButton.stories-7126e39c.js b/assets/SocialButton.stories-7621e86d.js similarity index 98% rename from assets/SocialButton.stories-7126e39c.js rename to assets/SocialButton.stories-7621e86d.js index 5d654633..9e0c3ab4 100644 --- a/assets/SocialButton.stories-7126e39c.js +++ b/assets/SocialButton.stories-7621e86d.js @@ -1,4 +1,4 @@ -import{j as e,t as C}from"./TetrislyProvider-07235cd3.js";import{r as me}from"./index-76fb7be0.js";import"./index-dcaaca1f.js";import{L as ue}from"./Loader-4e222d2a.js";import{m as ge}from"./mergeConfigWithCutom-789678df.js";import{I as he}from"./IconButtonDocs-0ed885aa.js";import{T as ye}from"./TetDocs-8093825f.js";import"./_commonjsHelpers-de833af9.js";import"./index-ffa7e839.js";import"./iframe-193f7824.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const o=({loading:a,children:r})=>a?e.jsx(ue,{shape:"circle",size:"small",appearance:"greyscale"}):r;try{o.displayName="WithLoader",o.__docgenInfo={description:"",displayName:"WithLoader",props:{loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const w=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx(C.svg,{"data-testid":"apple-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M17.1858 7.1362C17.0814 7.2172 15.2382 8.2558 15.2382 10.5652C15.2382 13.2364 17.5836 14.1814 17.6538 14.2048C17.643 14.2624 17.2812 15.499 16.4172 16.759C15.6468 17.8678 14.8422 18.9748 13.6182 18.9748C12.3942 18.9748 12.0792 18.2638 10.6662 18.2638C9.2892 18.2638 8.7996 18.9982 7.68 18.9982C6.5604 18.9982 5.7792 17.9722 4.881 16.7122C3.8406 15.2326 3 12.934 3 10.7524C3 7.2532 5.2752 5.3974 7.5144 5.3974C8.7042 5.3974 9.696 6.1786 10.443 6.1786C11.154 6.1786 12.2628 5.3506 13.6164 5.3506C14.1294 5.3506 15.9726 5.3974 17.1858 7.1362ZM12.9738 3.8692C13.5336 3.205 13.9296 2.2834 13.9296 1.3618C13.9296 1.234 13.9188 1.1044 13.8954 1C12.9846 1.0342 11.901 1.6066 11.2476 2.3644C10.7346 2.9476 10.2558 3.8692 10.2558 4.8034C10.2558 4.9438 10.2792 5.0842 10.29 5.1292C10.3476 5.14 10.4412 5.1526 10.5348 5.1526C11.352 5.1526 12.3798 4.6054 12.9738 3.8692Z",fill:a})})});try{w.displayName="Apple",w.__docgenInfo={description:"",displayName:"Apple",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const _=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"facebook-icon",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M10.4061 17.8908V11.6021H12.5033L12.902 8.99995H10.4061V7.31158C10.4061 6.60029 10.7542 5.90545 11.873 5.90545H13.0083V3.69057C13.0083 3.69057 11.9781 3.51465 10.9934 3.51465C8.93797 3.51465 7.59386 4.76004 7.59386 7.01669V8.99995H5.30811V11.6021H7.59386V17.8908C3.2912 17.2157 0 13.4922 0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.4922 14.7088 17.2157 10.4061 17.8908Z",fill:a})})});try{_.displayName="Facebook",_.__docgenInfo={description:"",displayName:"Facebook",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const x=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsxs("svg",{"data-testid":"figma-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"20",viewBox:"0 0 14 20",fill:a==="white"?"black":"white",children:[e.jsx("path",{d:"M3.99999 19C5.65599 19 6.99999 17.656 6.99999 16V13H3.99999C2.344 13 1 14.344 1 16C1 17.656 2.344 19 3.99999 19Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M1 9.99975C1 8.34375 2.344 6.99976 3.99999 6.99976H6.99999V12.9997H3.99999C2.344 12.9997 1 11.6557 1 9.99975Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M1 3.99999C1 2.344 2.344 1 3.99999 1H6.99999V6.99999H3.99999C2.344 6.99999 1 5.65599 1 3.99999Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M7 1H9.99999C11.656 1 13 2.344 13 3.99999C13 5.65599 11.656 6.99999 9.99999 6.99999H7V1Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M13 9.99975C13 11.6557 11.656 12.9997 9.99999 12.9997C8.344 12.9997 7 11.6557 7 9.99975C7 8.34375 8.344 6.99976 9.99999 6.99976C11.656 6.99976 13 8.34375 13 9.99975Z",stroke:a,strokeWidth:"1.5"})]})});try{x.displayName="Figma",x.__docgenInfo={description:"",displayName:"Figma",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const S=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"github-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C5.0275 1 1 5.0275 1 10C1 13.9825 3.57625 17.3463 7.15375 18.5387C7.60375 18.6175 7.7725 18.3475 7.7725 18.1112C7.7725 17.8975 7.76125 17.1888 7.76125 16.435C5.5 16.8513 4.915 15.8837 4.735 15.3775C4.63375 15.1187 4.195 14.32 3.8125 14.1062C3.4975 13.9375 3.0475 13.5212 3.80125 13.51C4.51 13.4987 5.01625 14.1625 5.185 14.4325C5.995 15.7937 7.28875 15.4113 7.80625 15.175C7.885 14.59 8.12125 14.1962 8.38 13.9712C6.3775 13.7463 4.285 12.97 4.285 9.5275C4.285 8.54875 4.63375 7.73875 5.2075 7.10875C5.1175 6.88375 4.8025 5.96125 5.2975 4.72375C5.2975 4.72375 6.05125 4.4875 7.7725 5.64625C8.4925 5.44375 9.2575 5.3425 10.0225 5.3425C10.7875 5.3425 11.5525 5.44375 12.2725 5.64625C13.9938 4.47625 14.7475 4.72375 14.7475 4.72375C15.2425 5.96125 14.9275 6.88375 14.8375 7.10875C15.4113 7.73875 15.76 8.5375 15.76 9.5275C15.76 12.9812 13.6562 13.7463 11.6538 13.9712C11.98 14.2525 12.2613 14.7925 12.2613 15.6363C12.2613 16.84 12.25 17.8075 12.25 18.1112C12.25 18.3475 12.4187 18.6287 12.8688 18.5387C16.4237 17.3463 19 13.9712 19 10C19 5.0275 14.9725 1 10 1Z",fill:a})})});try{S.displayName="Github",S.__docgenInfo={description:"",displayName:"Github",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const v=({loading:a})=>e.jsx(C.div,{"data-testid":"google-icon",ml:"-10px",display:"flex",padding:"100",justifyContent:"center",alignItems:"center",borderRadius:"medium",bg:"action-inverted-normal",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsxs(o,{loading:a,children:[e.jsx("path",{d:"M17.6175 9.20274C17.6175 8.61024 17.565 8.04774 17.475 7.50024H9V10.8827H13.8525C13.635 11.9927 12.9975 12.9302 12.0525 13.5677V15.8177H14.9475C16.6425 14.2502 17.6175 11.9402 17.6175 9.20274Z",fill:"#4285F4"}),e.jsx("path",{d:"M9.00027 17.9998C11.4303 17.9998 13.4628 17.1898 14.9478 15.8173L12.0528 13.5673C11.2428 14.1073 10.2153 14.4373 9.00027 14.4373C6.65277 14.4373 4.66527 12.8548 3.95277 10.7173H0.967773V13.0348C2.44527 15.9748 5.48277 17.9998 9.00027 17.9998Z",fill:"#34A853"}),e.jsx("path",{d:"M3.9525 10.7173C3.765 10.1773 3.6675 9.59984 3.6675 8.99984C3.6675 8.39984 3.7725 7.82234 3.9525 7.28234V4.96484H0.967499C0.352499 6.17984 0 7.54484 0 8.99984C0 10.4548 0.352499 11.8198 0.967499 13.0348L3.9525 10.7173Z",fill:"#FBBC05"}),e.jsx("path",{d:"M9.00027 3.5625C10.3278 3.5625 11.5128 4.02 12.4503 4.9125L15.0153 2.3475C13.4628 0.892501 11.4303 0 9.00027 0C5.48277 0 2.44527 2.025 0.967773 4.965L3.95277 7.2825C4.66527 5.145 6.65277 3.5625 9.00027 3.5625Z",fill:"#EA4335"})]})})});try{v.displayName="Google",v.__docgenInfo={description:"",displayName:"Google",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const F=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"x-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M15.1761 2H17.9362L11.9061 8.89195L19 18.2703H13.4456L9.09512 12.5824L4.11723 18.2703H1.35544L7.80517 10.8986L1 2H6.69545L10.6279 7.199L15.1761 2ZM14.2073 16.6183H15.7368L5.86441 3.56529H4.2232L14.2073 16.6183Z",fill:a})})});try{F.displayName="Twitter",F.__docgenInfo={description:"",displayName:"Twitter",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const fe={Apple:{Icon:w,color:"#000"},Facebook:{Icon:_,color:"#1977F3"},Figma:{Icon:x,color:"#000"},Github:{Icon:S,color:"#000"},Google:{Icon:v,color:"#468BEF"},X:{Icon:F,color:"#000"}},Ce={display:"inline-flex",gap:"component-gap-small",h:"medium",py:"component-padding-small",pr:"component-padding-large",pl:"component-padding-medium",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:"large",boxShadow:"bottom-100",opacity:{_:1,hover:.8,active:.6,disabled:.5},appearance:{secondary:{ringInset:!0,ring:"100",ringColor:{_:"action-outline-normal",hover:"action-outline-hover",active:"action-outline-active",selected:"action-outline-selected"}},primary:{}}},be=(a,r)=>{const{appearance:n,...t}=ge({defaultConfig:Ce,custom:r});return{...n[a],...t}},j=({platform:a,appearance:r="primary",custom:n,state:t,label:ce,...pe})=>{const b=fe[a],de=me.useMemo(()=>be(r,n),[r,n]);return e.jsxs(C.button,{"data-testid":"social-button",...de,...pe,disabled:["disabled","loading"].includes(t??""),"data-state":t,style:{textUnderlineOffset:"3px",textDecorationThickness:"1px"},bg:r==="primary"?b.color:"action-inverted-normal",children:[e.jsx(b.Icon,{loading:t==="loading",fill:r==="primary"?"white":b.color}),e.jsx(C.span,{color:r==="primary"?"content-primary-inverted":"action-neutral-normal",children:ce})]})};try{j.displayName="SocialButton",j.__docgenInfo={description:"",displayName:"SocialButton",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},platform:{defaultValue:null,description:"",name:"platform",required:!0,type:{name:"enum",value:[{value:'"Apple"'},{value:'"Facebook"'},{value:'"Figma"'},{value:'"Github"'},{value:'"Google"'},{value:'"X"'}]}},appearance:{defaultValue:{value:"primary"},description:"",name:"appearance",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'}]}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'},{value:'"loading"'}]}},custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"SocialButtonConfig"}}}}}catch{}const qe={title:"Components/SocialButton",component:j,tags:["autodocs"],parameters:{docs:{description:{component:"The Social Button triggers an event or action connected with the social media platforms."},page:()=>e.jsx(ye,{docs:"https://docs.tetrisly.com/components/in-progress/iconbutton",children:e.jsx(he,{})})}}},i={args:{platform:"Apple",label:"Sign in with Apple"}},l={args:{platform:"Apple",appearance:"secondary",label:"Sign in with Apple"}},s={args:{platform:"Facebook",label:"Sign in with Facebook"}},c={args:{platform:"Facebook",appearance:"secondary",label:"Sign in with Facebook"}},p={args:{platform:"Figma",label:"Sign in with Figma"}},d={args:{platform:"Figma",appearance:"secondary",label:"Sign in with Figma"}},m={args:{platform:"Github",label:"Sign in with Github"}},u={args:{platform:"Github",appearance:"secondary",label:"Sign in with Github"}},g={args:{platform:"Google",label:"Sign in with Google"}},h={args:{platform:"Google",appearance:"secondary",label:"Sign in with Google"}},y={args:{platform:"X",label:"Sign in with Twitter"}},f={args:{platform:"X",appearance:"secondary",label:"Sign in with Twitter"}};var G,V,k;i.parameters={...i.parameters,docs:{...(G=i.parameters)==null?void 0:G.docs,source:{originalSource:`{ +import{j as e,t as C}from"./TetrislyProvider-07235cd3.js";import{r as me}from"./index-76fb7be0.js";import"./index-dcaaca1f.js";import{L as ue}from"./Loader-4e222d2a.js";import{m as ge}from"./mergeConfigWithCutom-789678df.js";import{I as he}from"./IconButtonDocs-0ed885aa.js";import{T as ye}from"./TetDocs-f48e3431.js";import"./_commonjsHelpers-de833af9.js";import"./index-b9879fdd.js";import"./iframe-eef935a2.js";import"../sb-preview/runtime.js";import"./index-ffc7e5ff.js";import"./index-d37d4223.js";import"./index-356e4a49.js";const o=({loading:a,children:r})=>a?e.jsx(ue,{shape:"circle",size:"small",appearance:"greyscale"}):r;try{o.displayName="WithLoader",o.__docgenInfo={description:"",displayName:"WithLoader",props:{loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const w=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx(C.svg,{"data-testid":"apple-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M17.1858 7.1362C17.0814 7.2172 15.2382 8.2558 15.2382 10.5652C15.2382 13.2364 17.5836 14.1814 17.6538 14.2048C17.643 14.2624 17.2812 15.499 16.4172 16.759C15.6468 17.8678 14.8422 18.9748 13.6182 18.9748C12.3942 18.9748 12.0792 18.2638 10.6662 18.2638C9.2892 18.2638 8.7996 18.9982 7.68 18.9982C6.5604 18.9982 5.7792 17.9722 4.881 16.7122C3.8406 15.2326 3 12.934 3 10.7524C3 7.2532 5.2752 5.3974 7.5144 5.3974C8.7042 5.3974 9.696 6.1786 10.443 6.1786C11.154 6.1786 12.2628 5.3506 13.6164 5.3506C14.1294 5.3506 15.9726 5.3974 17.1858 7.1362ZM12.9738 3.8692C13.5336 3.205 13.9296 2.2834 13.9296 1.3618C13.9296 1.234 13.9188 1.1044 13.8954 1C12.9846 1.0342 11.901 1.6066 11.2476 2.3644C10.7346 2.9476 10.2558 3.8692 10.2558 4.8034C10.2558 4.9438 10.2792 5.0842 10.29 5.1292C10.3476 5.14 10.4412 5.1526 10.5348 5.1526C11.352 5.1526 12.3798 4.6054 12.9738 3.8692Z",fill:a})})});try{w.displayName="Apple",w.__docgenInfo={description:"",displayName:"Apple",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const _=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"facebook-icon",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M10.4061 17.8908V11.6021H12.5033L12.902 8.99995H10.4061V7.31158C10.4061 6.60029 10.7542 5.90545 11.873 5.90545H13.0083V3.69057C13.0083 3.69057 11.9781 3.51465 10.9934 3.51465C8.93797 3.51465 7.59386 4.76004 7.59386 7.01669V8.99995H5.30811V11.6021H7.59386V17.8908C3.2912 17.2157 0 13.4922 0 9C0 4.02944 4.02944 0 9 0C13.9706 0 18 4.02944 18 9C18 13.4922 14.7088 17.2157 10.4061 17.8908Z",fill:a})})});try{_.displayName="Facebook",_.__docgenInfo={description:"",displayName:"Facebook",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const x=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsxs("svg",{"data-testid":"figma-icon",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"20",viewBox:"0 0 14 20",fill:a==="white"?"black":"white",children:[e.jsx("path",{d:"M3.99999 19C5.65599 19 6.99999 17.656 6.99999 16V13H3.99999C2.344 13 1 14.344 1 16C1 17.656 2.344 19 3.99999 19Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M1 9.99975C1 8.34375 2.344 6.99976 3.99999 6.99976H6.99999V12.9997H3.99999C2.344 12.9997 1 11.6557 1 9.99975Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M1 3.99999C1 2.344 2.344 1 3.99999 1H6.99999V6.99999H3.99999C2.344 6.99999 1 5.65599 1 3.99999Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M7 1H9.99999C11.656 1 13 2.344 13 3.99999C13 5.65599 11.656 6.99999 9.99999 6.99999H7V1Z",stroke:a,strokeWidth:"1.5"}),e.jsx("path",{d:"M13 9.99975C13 11.6557 11.656 12.9997 9.99999 12.9997C8.344 12.9997 7 11.6557 7 9.99975C7 8.34375 8.344 6.99976 9.99999 6.99976C11.656 6.99976 13 8.34375 13 9.99975Z",stroke:a,strokeWidth:"1.5"})]})});try{x.displayName="Figma",x.__docgenInfo={description:"",displayName:"Figma",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const S=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"github-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 1C5.0275 1 1 5.0275 1 10C1 13.9825 3.57625 17.3463 7.15375 18.5387C7.60375 18.6175 7.7725 18.3475 7.7725 18.1112C7.7725 17.8975 7.76125 17.1888 7.76125 16.435C5.5 16.8513 4.915 15.8837 4.735 15.3775C4.63375 15.1187 4.195 14.32 3.8125 14.1062C3.4975 13.9375 3.0475 13.5212 3.80125 13.51C4.51 13.4987 5.01625 14.1625 5.185 14.4325C5.995 15.7937 7.28875 15.4113 7.80625 15.175C7.885 14.59 8.12125 14.1962 8.38 13.9712C6.3775 13.7463 4.285 12.97 4.285 9.5275C4.285 8.54875 4.63375 7.73875 5.2075 7.10875C5.1175 6.88375 4.8025 5.96125 5.2975 4.72375C5.2975 4.72375 6.05125 4.4875 7.7725 5.64625C8.4925 5.44375 9.2575 5.3425 10.0225 5.3425C10.7875 5.3425 11.5525 5.44375 12.2725 5.64625C13.9938 4.47625 14.7475 4.72375 14.7475 4.72375C15.2425 5.96125 14.9275 6.88375 14.8375 7.10875C15.4113 7.73875 15.76 8.5375 15.76 9.5275C15.76 12.9812 13.6562 13.7463 11.6538 13.9712C11.98 14.2525 12.2613 14.7925 12.2613 15.6363C12.2613 16.84 12.25 17.8075 12.25 18.1112C12.25 18.3475 12.4187 18.6287 12.8688 18.5387C16.4237 17.3463 19 13.9712 19 10C19 5.0275 14.9725 1 10 1Z",fill:a})})});try{S.displayName="Github",S.__docgenInfo={description:"",displayName:"Github",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const v=({loading:a})=>e.jsx(C.div,{"data-testid":"google-icon",ml:"-10px",display:"flex",padding:"100",justifyContent:"center",alignItems:"center",borderRadius:"medium",bg:"action-inverted-normal",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsxs(o,{loading:a,children:[e.jsx("path",{d:"M17.6175 9.20274C17.6175 8.61024 17.565 8.04774 17.475 7.50024H9V10.8827H13.8525C13.635 11.9927 12.9975 12.9302 12.0525 13.5677V15.8177H14.9475C16.6425 14.2502 17.6175 11.9402 17.6175 9.20274Z",fill:"#4285F4"}),e.jsx("path",{d:"M9.00027 17.9998C11.4303 17.9998 13.4628 17.1898 14.9478 15.8173L12.0528 13.5673C11.2428 14.1073 10.2153 14.4373 9.00027 14.4373C6.65277 14.4373 4.66527 12.8548 3.95277 10.7173H0.967773V13.0348C2.44527 15.9748 5.48277 17.9998 9.00027 17.9998Z",fill:"#34A853"}),e.jsx("path",{d:"M3.9525 10.7173C3.765 10.1773 3.6675 9.59984 3.6675 8.99984C3.6675 8.39984 3.7725 7.82234 3.9525 7.28234V4.96484H0.967499C0.352499 6.17984 0 7.54484 0 8.99984C0 10.4548 0.352499 11.8198 0.967499 13.0348L3.9525 10.7173Z",fill:"#FBBC05"}),e.jsx("path",{d:"M9.00027 3.5625C10.3278 3.5625 11.5128 4.02 12.4503 4.9125L15.0153 2.3475C13.4628 0.892501 11.4303 0 9.00027 0C5.48277 0 2.44527 2.025 0.967773 4.965L3.95277 7.2825C4.66527 5.145 6.65277 3.5625 9.00027 3.5625Z",fill:"#EA4335"})]})})});try{v.displayName="Google",v.__docgenInfo={description:"",displayName:"Google",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const F=({fill:a,loading:r})=>e.jsx(o,{loading:r,children:e.jsx("svg",{"data-testid":"x-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M15.1761 2H17.9362L11.9061 8.89195L19 18.2703H13.4456L9.09512 12.5824L4.11723 18.2703H1.35544L7.80517 10.8986L1 2H6.69545L10.6279 7.199L15.1761 2ZM14.2073 16.6183H15.7368L5.86441 3.56529H4.2232L14.2073 16.6183Z",fill:a})})});try{F.displayName="Twitter",F.__docgenInfo={description:"",displayName:"Twitter",props:{fill:{defaultValue:null,description:"",name:"fill",required:!0,type:{name:"string | undefined"}},loading:{defaultValue:null,description:"",name:"loading",required:!0,type:{name:"boolean"}}}}}catch{}const fe={Apple:{Icon:w,color:"#000"},Facebook:{Icon:_,color:"#1977F3"},Figma:{Icon:x,color:"#000"},Github:{Icon:S,color:"#000"},Google:{Icon:v,color:"#468BEF"},X:{Icon:F,color:"#000"}},Ce={display:"inline-flex",gap:"component-gap-small",h:"medium",py:"component-padding-small",pr:"component-padding-large",pl:"component-padding-medium",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:"large",boxShadow:"bottom-100",opacity:{_:1,hover:.8,active:.6,disabled:.5},appearance:{secondary:{ringInset:!0,ring:"100",ringColor:{_:"action-outline-normal",hover:"action-outline-hover",active:"action-outline-active",selected:"action-outline-selected"}},primary:{}}},be=(a,r)=>{const{appearance:n,...t}=ge({defaultConfig:Ce,custom:r});return{...n[a],...t}},j=({platform:a,appearance:r="primary",custom:n,state:t,label:ce,...pe})=>{const b=fe[a],de=me.useMemo(()=>be(r,n),[r,n]);return e.jsxs(C.button,{"data-testid":"social-button",...de,...pe,disabled:["disabled","loading"].includes(t??""),"data-state":t,style:{textUnderlineOffset:"3px",textDecorationThickness:"1px"},bg:r==="primary"?b.color:"action-inverted-normal",children:[e.jsx(b.Icon,{loading:t==="loading",fill:r==="primary"?"white":b.color}),e.jsx(C.span,{color:r==="primary"?"content-primary-inverted":"action-neutral-normal",children:ce})]})};try{j.displayName="SocialButton",j.__docgenInfo={description:"",displayName:"SocialButton",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},platform:{defaultValue:null,description:"",name:"platform",required:!0,type:{name:"enum",value:[{value:'"Apple"'},{value:'"Facebook"'},{value:'"Figma"'},{value:'"Github"'},{value:'"Google"'},{value:'"X"'}]}},appearance:{defaultValue:{value:"primary"},description:"",name:"appearance",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'}]}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'},{value:'"loading"'}]}},custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"SocialButtonConfig"}}}}}catch{}const qe={title:"Components/SocialButton",component:j,tags:["autodocs"],parameters:{docs:{description:{component:"The Social Button triggers an event or action connected with the social media platforms."},page:()=>e.jsx(ye,{docs:"https://docs.tetrisly.com/components/in-progress/iconbutton",children:e.jsx(he,{})})}}},i={args:{platform:"Apple",label:"Sign in with Apple"}},l={args:{platform:"Apple",appearance:"secondary",label:"Sign in with Apple"}},s={args:{platform:"Facebook",label:"Sign in with Facebook"}},c={args:{platform:"Facebook",appearance:"secondary",label:"Sign in with Facebook"}},p={args:{platform:"Figma",label:"Sign in with Figma"}},d={args:{platform:"Figma",appearance:"secondary",label:"Sign in with Figma"}},m={args:{platform:"Github",label:"Sign in with Github"}},u={args:{platform:"Github",appearance:"secondary",label:"Sign in with Github"}},g={args:{platform:"Google",label:"Sign in with Google"}},h={args:{platform:"Google",appearance:"secondary",label:"Sign in with Google"}},y={args:{platform:"X",label:"Sign in with Twitter"}},f={args:{platform:"X",appearance:"secondary",label:"Sign in with Twitter"}};var G,V,k;i.parameters={...i.parameters,docs:{...(G=i.parameters)==null?void 0:G.docs,source:{originalSource:`{ args: { platform: 'Apple', label: 'Sign in with Apple' @@ -65,4 +65,4 @@ import{j as e,t as C}from"./TetrislyProvider-07235cd3.js";import{r as me}from"./ label: 'Sign in with Twitter' } }`,...(se=(le=f.parameters)==null?void 0:le.docs)==null?void 0:se.source}}};const Be=["PrimaryApple","SecondaryApple","PrimaryFacebook","SecondaryFacebook","PrimaryFigma","SecondaryFigma","PrimaryGithub","SecondaryGithub","PrimaryGoogle","SecondaryGoogle","PrimaryTwitter","SecondaryTwitter"];export{i as PrimaryApple,s as PrimaryFacebook,p as PrimaryFigma,m as PrimaryGithub,g as PrimaryGoogle,y as PrimaryTwitter,l as SecondaryApple,c as SecondaryFacebook,d as SecondaryFigma,u as SecondaryGithub,h as SecondaryGoogle,f as SecondaryTwitter,Be as __namedExportsOrder,qe as default}; -//# sourceMappingURL=SocialButton.stories-7126e39c.js.map +//# sourceMappingURL=SocialButton.stories-7621e86d.js.map diff --git a/assets/SocialButton.stories-7126e39c.js.map b/assets/SocialButton.stories-7621e86d.js.map similarity index 99% rename from assets/SocialButton.stories-7126e39c.js.map rename to assets/SocialButton.stories-7621e86d.js.map index b9f8b296..c69b33a3 100644 --- a/assets/SocialButton.stories-7126e39c.js.map +++ b/assets/SocialButton.stories-7621e86d.js.map @@ -1 +1 @@ -{"version":3,"file":"SocialButton.stories-7126e39c.js","sources":["../../src/components/SocialButton/socials/WithLoader.tsx","../../src/components/SocialButton/socials/Apple.tsx","../../src/components/SocialButton/socials/Facebook.tsx","../../src/components/SocialButton/socials/Figma.tsx","../../src/components/SocialButton/socials/Github.tsx","../../src/components/SocialButton/socials/Google.tsx","../../src/components/SocialButton/socials/Twitter.tsx","../../src/components/SocialButton/socials/socials.ts","../../src/components/SocialButton/SocialButton.styles.ts","../../src/components/SocialButton/stylesBuilder/stylesBuilder.ts","../../src/components/SocialButton/SocialButton.tsx"],"sourcesContent":["import { FC, PropsWithChildren } from 'react';\n\nimport { Loader } from '@/components/Loader';\n\nexport const WithLoader: FC> = ({\n loading,\n children,\n}) =>\n loading ? (\n \n ) : (\n children\n );\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nimport { tet } from '@/tetrisly';\n\nexport const Apple: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Facebook: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Figma: FC = ({ fill, loading }) => (\n \n \n \n \n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Github: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nimport { tet } from '@/tetrisly';\n\nexport const Google: FC = ({ loading }) => (\n \n \n \n \n \n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Twitter: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { Apple } from './Apple';\nimport { Facebook } from './Facebook';\nimport { Figma } from './Figma';\nimport { Github } from './Github';\nimport { Google } from './Google';\nimport { SocialProps } from './SocialProps';\nimport { Twitter } from './Twitter';\nimport { SocialButtonProps } from '../SocialButton.props';\n\nexport const socials = {\n Apple: {\n Icon: Apple,\n color: '#000',\n },\n Facebook: {\n Icon: Facebook,\n color: '#1977F3',\n },\n Figma: {\n Icon: Figma,\n color: '#000',\n },\n Github: {\n Icon: Github,\n color: '#000',\n },\n Google: {\n Icon: Google,\n color: '#468BEF',\n },\n X: {\n Icon: Twitter,\n color: '#000',\n },\n} as const satisfies Record<\n SocialButtonProps['platform'],\n {\n Icon: FC;\n color: string;\n }\n>;\n","import { BaseProps } from '@/types/BaseProps';\n\nexport type SocialButtonAppearance = 'primary' | 'secondary';\n\nexport type SocialButtonConfig = BaseProps & {\n appearance?: Partial>;\n};\n\nexport const defaultConfig = {\n display: 'inline-flex',\n gap: 'component-gap-small',\n h: 'medium',\n py: 'component-padding-small',\n pr: 'component-padding-large',\n pl: 'component-padding-medium',\n justifyContent: 'center',\n alignItems: 'center',\n flexShrink: 0,\n borderRadius: 'large',\n boxShadow: 'bottom-100',\n opacity: {\n _: 1,\n hover: 0.8,\n active: 0.6,\n disabled: 0.5,\n },\n appearance: {\n secondary: {\n ringInset: true,\n ring: '100',\n ringColor: {\n _: 'action-outline-normal',\n hover: 'action-outline-hover',\n active: 'action-outline-active',\n selected: 'action-outline-selected',\n },\n },\n primary: {},\n },\n} satisfies SocialButtonConfig;\n","import { SocialButtonProps } from '../SocialButton.props';\nimport { defaultConfig, SocialButtonAppearance } from '../SocialButton.styles';\n\nimport { mergeConfigWithCustom } from '@/services';\n\nexport const stylesBuilder = (\n appearance: SocialButtonAppearance,\n custom: SocialButtonProps['custom'],\n) => {\n const { appearance: appearances, ...baseStyles } = mergeConfigWithCustom({\n defaultConfig,\n custom,\n });\n return {\n ...appearances[appearance],\n ...baseStyles,\n };\n};\n","import { FC, useMemo } from 'react';\n\nimport { SocialButtonProps } from './SocialButton.props';\nimport { socials } from './socials';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport { tet } from '@/tetrisly';\nimport { MarginProps } from '@/types';\n\nexport const SocialButton: FC = ({\n platform,\n appearance = 'primary',\n custom,\n state,\n label,\n ...restProps\n}) => {\n const social = socials[platform];\n\n const styles = useMemo(\n () => stylesBuilder(appearance, custom),\n [appearance, custom],\n );\n return (\n \n \n\n \n {label}\n \n \n );\n};\n"],"names":["WithLoader","loading","children","jsx","Loader","Apple","fill","tet","Facebook","Figma","jsxs","Github","Google","Twitter","socials","defaultConfig","stylesBuilder","appearance","custom","appearances","baseStyles","mergeConfigWithCustom","SocialButton","platform","state","label","restProps","social","styles","useMemo"],"mappings":"mhBAIO,MAAAA,EAAA,CAAA,CAAiE,QAAAC,EACtE,SAAAC,CAEF,IAAAD,EAAAE,EAAAA,IAAAC,GAAA,CAAA,MAAA,SAAA,KAAA,QAAA,WAAA,WAAA,CAAA,EAAAF,qMCAO,MAAAG,EAAA,CAAA,CAAA,KAAAC,EAAA,QAAAL,CAAA,IAAAE,EAAA,IAAAH,EAAA,CAAA,QAAAC,EAAA,SAAAE,EAAA,IAEHI,EAAA,IAAK,CAAJ,cAAA,aACa,MAAA,6BACN,MAAA,KACA,OAAA,KACC,QAAA,YACC,KAAA,OACH,SAAAJ,EAAA,IAEL,OAAC,CAAA,EAAA,41BACG,KAAAG,CACF,CAAA,CACF,CACF,CAAA,CAAA,4RChBG,MAAAE,EAAA,CAAA,CAAA,KAAAF,EAAA,QAAAL,CAAA,IAAAE,EAAA,IAAAH,EAAA,CAAA,QAAAC,EAAA,SAAAE,EAAA,IAEH,MAAC,CAAA,cAAA,gBACa,MAAA,6BACN,MAAA,KACA,OAAA,KACC,QAAA,YACC,KAAA,OACH,SAAAA,EAAA,IAEL,OAAC,CAAA,EAAA,oYACG,KAAAG,CACF,CAAA,CACF,CACF,CAAA,CAAA,kSCdG,MAAAG,EAAA,CAAA,CAAA,KAAAH,EAAA,QAAAL,CAAA,IAAAE,EAAA,IAAAH,EAAA,CAAA,QAAAC,EAAA,SAAAS,EAAA,KAEH,MAAC,CAAA,cAAA,aACa,MAAA,6BACN,MAAA,KACA,OAAA,KACC,QAAA,YACC,KAAAJ,IAAA,QAAA,QAAA,QAC2B,SAAA,CAEnCH,EAAA,IAAA,OAAC,CAAA,EAAA,mHACG,OAAAG,EACM,YAAA,KACI,CAAA,EACdH,EAAA,IACA,OAAC,CAAA,EAAA,gHACG,OAAAG,EACM,YAAA,KACI,C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AAA,KACEH,EAAA,OAAK,CAAJ,cAAA,gBACa,GAAAqB,GACR,GAAAF,GACA,SAAA,CAAA,WAAA,SAAA,EAAA,SAAAF,GAAA,EAAA,EACkD,aAAAA,EAC1C,MAAA,CAAA,oBAAA,MAAA,wBAAA,KAAA,EACwD,GAAAP,IAAA,UAAAU,EAAA,MAAA,yBACtB,SAAA,CAE9CxB,EAAA,IAAAwB,EAAA,KAAQ,CAAP,QAAAH,IAAA,UACoB,KAAAP,IAAA,UAAA,QAAAU,EAAA,KAC+B,CAAA,EACpDxB,EAAA,IAEAI,EAAA,KAAK,CAAJ,MAAAU,IAAA,UAAA,2BAAA,wBAIO,SAAAQ,EAGL,CAAA,CACH,CAAA,CAAA,CAGN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file +{"version":3,"file":"SocialButton.stories-7621e86d.js","sources":["../../src/components/SocialButton/socials/WithLoader.tsx","../../src/components/SocialButton/socials/Apple.tsx","../../src/components/SocialButton/socials/Facebook.tsx","../../src/components/SocialButton/socials/Figma.tsx","../../src/components/SocialButton/socials/Github.tsx","../../src/components/SocialButton/socials/Google.tsx","../../src/components/SocialButton/socials/Twitter.tsx","../../src/components/SocialButton/socials/socials.ts","../../src/components/SocialButton/SocialButton.styles.ts","../../src/components/SocialButton/stylesBuilder/stylesBuilder.ts","../../src/components/SocialButton/SocialButton.tsx"],"sourcesContent":["import { FC, PropsWithChildren } from 'react';\n\nimport { Loader } from '@/components/Loader';\n\nexport const WithLoader: FC> = ({\n loading,\n children,\n}) =>\n loading ? (\n \n ) : (\n children\n );\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nimport { tet } from '@/tetrisly';\n\nexport const Apple: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Facebook: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Figma: FC = ({ fill, loading }) => (\n \n \n \n \n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Github: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nimport { tet } from '@/tetrisly';\n\nexport const Google: FC = ({ loading }) => (\n \n \n \n \n \n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { SocialProps } from './SocialProps';\nimport { WithLoader } from './WithLoader';\n\nexport const Twitter: FC = ({ fill, loading }) => (\n \n \n \n \n \n);\n","import { FC } from 'react';\n\nimport { Apple } from './Apple';\nimport { Facebook } from './Facebook';\nimport { Figma } from './Figma';\nimport { Github } from './Github';\nimport { Google } from './Google';\nimport { SocialProps } from './SocialProps';\nimport { Twitter } from './Twitter';\nimport { SocialButtonProps } from '../SocialButton.props';\n\nexport const socials = {\n Apple: {\n Icon: Apple,\n color: '#000',\n },\n Facebook: {\n Icon: Facebook,\n color: '#1977F3',\n },\n Figma: {\n Icon: Figma,\n color: '#000',\n },\n Github: {\n Icon: Github,\n color: '#000',\n },\n Google: {\n Icon: Google,\n color: '#468BEF',\n },\n X: {\n Icon: Twitter,\n color: '#000',\n },\n} as const satisfies Record<\n SocialButtonProps['platform'],\n {\n Icon: FC;\n color: string;\n }\n>;\n","import { BaseProps } from '@/types/BaseProps';\n\nexport type SocialButtonAppearance = 'primary' | 'secondary';\n\nexport type SocialButtonConfig = BaseProps & {\n appearance?: Partial>;\n};\n\nexport const defaultConfig = {\n display: 'inline-flex',\n gap: 'component-gap-small',\n h: 'medium',\n py: 'component-padding-small',\n pr: 'component-padding-large',\n pl: 'component-padding-medium',\n justifyContent: 'center',\n alignItems: 'center',\n flexShrink: 0,\n borderRadius: 'large',\n boxShadow: 'bottom-100',\n opacity: {\n _: 1,\n hover: 0.8,\n active: 0.6,\n disabled: 0.5,\n },\n appearance: {\n secondary: {\n ringInset: true,\n ring: '100',\n ringColor: {\n _: 'action-outline-normal',\n hover: 'action-outline-hover',\n active: 'action-outline-active',\n selected: 'action-outline-selected',\n },\n },\n primary: {},\n },\n} satisfies SocialButtonConfig;\n","import { SocialButtonProps } from '../SocialButton.props';\nimport { defaultConfig, SocialButtonAppearance } from '../SocialButton.styles';\n\nimport { mergeConfigWithCustom } from '@/services';\n\nexport const stylesBuilder = (\n appearance: SocialButtonAppearance,\n custom: SocialButtonProps['custom'],\n) => {\n const { appearance: appearances, ...baseStyles } = mergeConfigWithCustom({\n defaultConfig,\n custom,\n });\n return {\n ...appearances[appearance],\n ...baseStyles,\n };\n};\n","import { FC, useMemo } from 'react';\n\nimport { SocialButtonProps } from './SocialButton.props';\nimport { socials } from './socials';\nimport { stylesBuilder } from './stylesBuilder';\n\nimport { tet } from '@/tetrisly';\nimport { MarginProps } from '@/types';\n\nexport const SocialButton: FC = ({\n platform,\n appearance = 'primary',\n custom,\n state,\n label,\n ...restProps\n}) => {\n const social = socials[platform];\n\n const styles = useMemo(\n () => stylesBuilder(appearance, custom),\n [appearance, custom],\n );\n return (\n \n \n\n \n {label}\n \n \n );\n};\n"],"names":["WithLoader","loading","children","jsx","Loader","Apple","fill","tet","Facebook","Figma","jsxs","Github","Google","Twitter","socials","defaultConfig","stylesBuilder","appearance","custom","appearances","baseStyles","mergeConfigWithCustom","SocialButton","platform","state","label","restProps","social","styles","useMemo"],"mappings":"mhBAIO,MAAAA,EAAA,CAAA,CAAiE,QAAAC,EACtE,SAAAC,CAEF,IAAAD,EAAAE,EAAAA,IAAAC,GAAA,CAAA,MAAA,SAAA,KAAA,QAAA,WAAA,WAAA,CAAA,EAAAF,qMCAO,MAAAG,EAAA,CAAA,CAAA,KAAAC,EAAA,QAAAL,CAAA,IAAAE,EA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IAEAI,EAAA,KAAK,CAAJ,MAAAU,IAAA,UAAA,2BAAA,wBAIO,SAAAQ,EAGL,CAAA,CACH,CAAA,CAAA,CAGN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/TetDocs-8093825f.js b/assets/TetDocs-f48e3431.js similarity index 98% rename from assets/TetDocs-8093825f.js rename to assets/TetDocs-f48e3431.js index 41a9f854..77f81b7a 100644 --- a/assets/TetDocs-8093825f.js +++ b/assets/TetDocs-f48e3431.js @@ -1,2 +1,2 @@ -import{j as e,t as r,T as d}from"./TetrislyProvider-07235cd3.js";import{u as a,U as c,P as p,d as V,e as C}from"./index-ffa7e839.js";const H=()=>e.jsxs(r.svg,{width:"148",height:"32",viewBox:"0 0 148 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{id:"Logo",clipPath:"url(#clip0_6565_309)",children:e.jsx("path",{id:"Vector",d:"M42.3388 23.6726V10.7212H40V8.32737H47.0774V10.7212H44.7183V23.6726H42.3388ZM55.6236 8.32737V10.7212H51.7595V14.4859H55.0744V16.8798H51.7595V21.2788H55.6236V23.6726H49.38V8.32737H55.6236ZM59.5735 23.6726V10.7212H57.2347V8.32737H64.3121V10.7212H61.953V23.6726H59.5735ZM73.9972 14.3632C73.9972 15.5294 73.6107 16.491 72.8989 17.1662C73.5904 17.6368 73.9972 18.3734 73.9972 19.3146V23.6726H71.6177V19.3146C71.6177 18.5575 71.1499 18.046 70.3771 18.046H68.9942V23.6726H66.6147V8.32737H70.3771C72.5735 8.32737 73.9972 9.80051 73.9972 12.0102V14.3632ZM71.6177 14.3632V12.0102C71.6177 11.2327 71.1499 10.7212 70.3771 10.7212H68.9942V15.6522H70.3771C71.1499 15.6522 71.6177 15.1407 71.6177 14.3632ZM79.7368 23.6726H77.3573V8.32737H79.7368V23.6726ZM86.534 24C84.2562 24 82.8122 22.4859 82.8122 20.2148V19.4783H85.1917V20.2148C85.1917 21.0537 85.7001 21.6061 86.534 21.6061C87.3678 21.6061 87.8559 21.0537 87.8559 20.2148V18.7621C87.8559 17.9233 87.3678 17.3708 86.534 17.3708C84.2562 17.3708 82.8122 15.8568 82.8122 13.5857V11.7852C82.8122 9.51407 84.2562 8 86.534 8C88.7914 8 90.2353 9.51407 90.2353 11.7852V12.5013H87.8559V11.7852C87.8559 10.9463 87.3678 10.3939 86.534 10.3939C85.7001 10.3939 85.1917 10.9463 85.1917 11.7852V13.5857C85.1917 14.4246 85.7001 14.977 86.534 14.977C88.7914 14.977 90.2353 16.491 90.2353 18.7621V20.2148C90.2353 22.4859 88.7914 24 86.534 24ZM95.6699 8.32737V21.2788H99.1273V23.6726H93.2905V8.32737H95.6699ZM106.168 8.32737H108.609L105.294 16.4297V23.6726H102.915V16.4297L99.5589 8.32737H101.999L104.094 13.8721L106.168 8.32737ZM110.973 23.6726V20.9719H113.352V23.6726H110.973ZM124.359 19.4783V20.2148C124.359 22.4859 122.895 24 120.637 24C118.38 24 116.936 22.4859 116.936 20.2148V11.7852C116.936 9.51407 118.38 8 120.637 8C122.895 8 124.359 9.51407 124.359 11.7852V12.5013H121.98V11.7852C121.98 10.9463 121.471 10.3939 120.637 10.3939C119.803 10.3939 119.315 10.9463 119.315 11.7852V20.2148C119.315 21.0537 119.803 21.6061 120.637 21.6061C121.471 21.6061 121.98 21.0537 121.98 20.2148V19.4783H124.359ZM130.648 24C128.39 24 126.946 22.4859 126.946 20.2148V11.7852C126.946 9.51407 128.39 8 130.648 8C132.905 8 134.37 9.51407 134.37 11.7852V20.2148C134.37 22.4859 132.905 24 130.648 24ZM130.648 21.6061C131.482 21.6061 131.99 21.0537 131.99 20.2148V11.7852C131.99 10.9463 131.482 10.3939 130.648 10.3939C129.814 10.3939 129.326 10.9463 129.326 11.7852V20.2148C129.326 21.0537 129.814 21.6061 130.648 21.6061ZM145.824 8.32737H148V23.6726H145.783V15.8772L143.668 23.6726H142.082L139.987 15.9386V23.6726H137.77V8.32737H139.946L142.875 19.5192L145.824 8.32737ZM2 0H6C7.10457 0 8 0.89543 8 2V6C8 7.10457 7.10457 8 6 8H2C0.89543 8 0 7.10457 0 6V2C0 0.89543 0.89543 0 2 0ZM14 24H18C19.1046 24 20 24.8954 20 26V30C20 31.1046 19.1046 32 18 32H14C12.8954 32 12 31.1046 12 30V26C12 24.8954 12.8954 24 14 24ZM20 8V18C20 19.1046 19.1046 20 18 20H14C12.8954 20 12 19.1046 12 18V2C12 0.89543 12.8954 0 14 0H30C31.1046 0 32 0.89543 32 2V6C32 7.10457 31.1046 8 30 8H20Z",fill:"#272E35"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_6565_309",children:e.jsx("rect",{width:"148",height:"32",fill:"white"})})})]}),x=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{id:"Tetrisly-Mark",fillRule:"evenodd",clipRule:"evenodd",d:"M0.999999 0H3C3.55228 0 4 0.447715 4 1V3C4 3.55228 3.55228 4 3 4H0.999999C0.447715 4 0 3.55228 0 3V1C0 0.447715 0.447715 0 0.999999 0ZM7 12H9C9.55228 12 10 12.4477 10 13V15C10 15.5523 9.55228 16 9 16H7C6.44771 16 6 15.5523 6 15V13C6 12.4477 6.44771 12 7 12ZM10 9V4H15C15.5523 4 16 3.55228 16 3V1C16 0.447715 15.5523 0 15 0H7C6.44771 0 6 0.447715 6 1V9C6 9.55229 6.44771 10 7 10H9C9.55228 10 10 9.55229 10 9Z",fill:"#272E35"})}),s=({component:t,description:i,docs:n})=>e.jsx(r.section,{p:"component-padding-3xLarge",display:"flex",flexDirection:"column",children:e.jsxs(r.div,{p:"component-padding-6xLarge",background:"linear-gradient(225deg, #FEF1E7 0%, #DDF3F9 100%);",borderRadius:"xLarge",children:[e.jsxs(r.div,{display:"flex",justifyContent:"space-between",children:[e.jsxs(r.div,{display:"flex",gap:"component-gap-medium",alignItems:"center",children:[e.jsx(x,{}),e.jsx(r.span,{text:"body-small",color:"content-secondary",children:"Components"})]}),e.jsx(r.a,{href:"https://tetrisly.com/",target:"_blank",children:e.jsx(H,{})})]}),e.jsxs(r.div,{my:"component-gap-xLarge",display:"flex",gap:"component-gap-large",flexDirection:"column",children:[e.jsx(r.h1,{text:"hero-medium",children:t}),e.jsx(r.p,{color:"content-secondary",text:"body-large",children:i})]}),n&&e.jsx(r.a,{href:n,target:"_blank",rel:"noreferrer",color:"action-primary-normal",children:"View documentation"})]})});try{s.displayName="Hero",s.__docgenInfo={description:"",displayName:"Hero",props:{component:{defaultValue:null,description:"",name:"component",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!0,type:{name:"string"}},docs:{defaultValue:null,description:"",name:"docs",required:!0,type:{name:"string | null"}}}}}catch{}const o=({children:t,docs:i})=>{const{preparedMeta:{title:n,parameters:{docs:{description:{component:l}}}}}=a("meta",["meta"]);return e.jsxs(e.Fragment,{children:[e.jsx(c,{children:e.jsx(d,{children:e.jsxs(r.div,{w:"888px",children:[e.jsx(s,{component:n.split("/").pop()??"",description:l,docs:i}),t]})})}),e.jsx(p,{}),e.jsx(V,{}),e.jsx(C,{})]})};try{o.displayName="TetDocs",o.__docgenInfo={description:"",displayName:"TetDocs",props:{docs:{defaultValue:null,description:"",name:"docs",required:!0,type:{name:"string | null"}}}}}catch{}export{o as T}; -//# sourceMappingURL=TetDocs-8093825f.js.map +import{j as e,t as r,T as d}from"./TetrislyProvider-07235cd3.js";import{u as a,U as c,P as p,d as V,e as C}from"./index-b9879fdd.js";const H=()=>e.jsxs(r.svg,{width:"148",height:"32",viewBox:"0 0 148 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{id:"Logo",clipPath:"url(#clip0_6565_309)",children:e.jsx("path",{id:"Vector",d:"M42.3388 23.6726V10.7212H40V8.32737H47.0774V10.7212H44.7183V23.6726H42.3388ZM55.6236 8.32737V10.7212H51.7595V14.4859H55.0744V16.8798H51.7595V21.2788H55.6236V23.6726H49.38V8.32737H55.6236ZM59.5735 23.6726V10.7212H57.2347V8.32737H64.3121V10.7212H61.953V23.6726H59.5735ZM73.9972 14.3632C73.9972 15.5294 73.6107 16.491 72.8989 17.1662C73.5904 17.6368 73.9972 18.3734 73.9972 19.3146V23.6726H71.6177V19.3146C71.6177 18.5575 71.1499 18.046 70.3771 18.046H68.9942V23.6726H66.6147V8.32737H70.3771C72.5735 8.32737 73.9972 9.80051 73.9972 12.0102V14.3632ZM71.6177 14.3632V12.0102C71.6177 11.2327 71.1499 10.7212 70.3771 10.7212H68.9942V15.6522H70.3771C71.1499 15.6522 71.6177 15.1407 71.6177 14.3632ZM79.7368 23.6726H77.3573V8.32737H79.7368V23.6726ZM86.534 24C84.2562 24 82.8122 22.4859 82.8122 20.2148V19.4783H85.1917V20.2148C85.1917 21.0537 85.7001 21.6061 86.534 21.6061C87.3678 21.6061 87.8559 21.0537 87.8559 20.2148V18.7621C87.8559 17.9233 87.3678 17.3708 86.534 17.3708C84.2562 17.3708 82.8122 15.8568 82.8122 13.5857V11.7852C82.8122 9.51407 84.2562 8 86.534 8C88.7914 8 90.2353 9.51407 90.2353 11.7852V12.5013H87.8559V11.7852C87.8559 10.9463 87.3678 10.3939 86.534 10.3939C85.7001 10.3939 85.1917 10.9463 85.1917 11.7852V13.5857C85.1917 14.4246 85.7001 14.977 86.534 14.977C88.7914 14.977 90.2353 16.491 90.2353 18.7621V20.2148C90.2353 22.4859 88.7914 24 86.534 24ZM95.6699 8.32737V21.2788H99.1273V23.6726H93.2905V8.32737H95.6699ZM106.168 8.32737H108.609L105.294 16.4297V23.6726H102.915V16.4297L99.5589 8.32737H101.999L104.094 13.8721L106.168 8.32737ZM110.973 23.6726V20.9719H113.352V23.6726H110.973ZM124.359 19.4783V20.2148C124.359 22.4859 122.895 24 120.637 24C118.38 24 116.936 22.4859 116.936 20.2148V11.7852C116.936 9.51407 118.38 8 120.637 8C122.895 8 124.359 9.51407 124.359 11.7852V12.5013H121.98V11.7852C121.98 10.9463 121.471 10.3939 120.637 10.3939C119.803 10.3939 119.315 10.9463 119.315 11.7852V20.2148C119.315 21.0537 119.803 21.6061 120.637 21.6061C121.471 21.6061 121.98 21.0537 121.98 20.2148V19.4783H124.359ZM130.648 24C128.39 24 126.946 22.4859 126.946 20.2148V11.7852C126.946 9.51407 128.39 8 130.648 8C132.905 8 134.37 9.51407 134.37 11.7852V20.2148C134.37 22.4859 132.905 24 130.648 24ZM130.648 21.6061C131.482 21.6061 131.99 21.0537 131.99 20.2148V11.7852C131.99 10.9463 131.482 10.3939 130.648 10.3939C129.814 10.3939 129.326 10.9463 129.326 11.7852V20.2148C129.326 21.0537 129.814 21.6061 130.648 21.6061ZM145.824 8.32737H148V23.6726H145.783V15.8772L143.668 23.6726H142.082L139.987 15.9386V23.6726H137.77V8.32737H139.946L142.875 19.5192L145.824 8.32737ZM2 0H6C7.10457 0 8 0.89543 8 2V6C8 7.10457 7.10457 8 6 8H2C0.89543 8 0 7.10457 0 6V2C0 0.89543 0.89543 0 2 0ZM14 24H18C19.1046 24 20 24.8954 20 26V30C20 31.1046 19.1046 32 18 32H14C12.8954 32 12 31.1046 12 30V26C12 24.8954 12.8954 24 14 24ZM20 8V18C20 19.1046 19.1046 20 18 20H14C12.8954 20 12 19.1046 12 18V2C12 0.89543 12.8954 0 14 0H30C31.1046 0 32 0.89543 32 2V6C32 7.10457 31.1046 8 30 8H20Z",fill:"#272E35"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_6565_309",children:e.jsx("rect",{width:"148",height:"32",fill:"white"})})})]}),x=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{id:"Tetrisly-Mark",fillRule:"evenodd",clipRule:"evenodd",d:"M0.999999 0H3C3.55228 0 4 0.447715 4 1V3C4 3.55228 3.55228 4 3 4H0.999999C0.447715 4 0 3.55228 0 3V1C0 0.447715 0.447715 0 0.999999 0ZM7 12H9C9.55228 12 10 12.4477 10 13V15C10 15.5523 9.55228 16 9 16H7C6.44771 16 6 15.5523 6 15V13C6 12.4477 6.44771 12 7 12ZM10 9V4H15C15.5523 4 16 3.55228 16 3V1C16 0.447715 15.5523 0 15 0H7C6.44771 0 6 0.447715 6 1V9C6 9.55229 6.44771 10 7 10H9C9.55228 10 10 9.55229 10 9Z",fill:"#272E35"})}),s=({component:t,description:i,docs:n})=>e.jsx(r.section,{p:"component-padding-3xLarge",display:"flex",flexDirection:"column",children:e.jsxs(r.div,{p:"component-padding-6xLarge",background:"linear-gradient(225deg, #FEF1E7 0%, #DDF3F9 100%);",borderRadius:"xLarge",children:[e.jsxs(r.div,{display:"flex",justifyContent:"space-between",children:[e.jsxs(r.div,{display:"flex",gap:"component-gap-medium",alignItems:"center",children:[e.jsx(x,{}),e.jsx(r.span,{text:"body-small",color:"content-secondary",children:"Components"})]}),e.jsx(r.a,{href:"https://tetrisly.com/",target:"_blank",children:e.jsx(H,{})})]}),e.jsxs(r.div,{my:"component-gap-xLarge",display:"flex",gap:"component-gap-large",flexDirection:"column",children:[e.jsx(r.h1,{text:"hero-medium",children:t}),e.jsx(r.p,{color:"content-secondary",text:"body-large",children:i})]}),n&&e.jsx(r.a,{href:n,target:"_blank",rel:"noreferrer",color:"action-primary-normal",children:"View documentation"})]})});try{s.displayName="Hero",s.__docgenInfo={description:"",displayName:"Hero",props:{component:{defaultValue:null,description:"",name:"component",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"",name:"description",required:!0,type:{name:"string"}},docs:{defaultValue:null,description:"",name:"docs",required:!0,type:{name:"string | null"}}}}}catch{}const o=({children:t,docs:i})=>{const{preparedMeta:{title:n,parameters:{docs:{description:{component:l}}}}}=a("meta",["meta"]);return e.jsxs(e.Fragment,{children:[e.jsx(c,{children:e.jsx(d,{children:e.jsxs(r.div,{w:"888px",children:[e.jsx(s,{component:n.split("/").pop()??"",description:l,docs:i}),t]})})}),e.jsx(p,{}),e.jsx(V,{}),e.jsx(C,{})]})};try{o.displayName="TetDocs",o.__docgenInfo={description:"",displayName:"TetDocs",props:{docs:{defaultValue:null,description:"",name:"docs",required:!0,type:{name:"string | null"}}}}}catch{}export{o as T}; +//# sourceMappingURL=TetDocs-f48e3431.js.map diff --git a/assets/TetDocs-8093825f.js.map b/assets/TetDocs-f48e3431.js.map similarity index 99% rename from assets/TetDocs-8093825f.js.map rename to assets/TetDocs-f48e3431.js.map index 54041709..b2d3dd2c 100644 --- a/assets/TetDocs-8093825f.js.map +++ b/assets/TetDocs-f48e3431.js.map @@ -1 +1 @@ -{"version":3,"file":"TetDocs-8093825f.js","sources":["../../src/docs-components/common/Logo.tsx","../../src/docs-components/common/TetrislyMark.tsx","../../src/docs-components/common/Hero.tsx","../../src/docs-components/TetDocs.tsx"],"sourcesContent":["import { tet } from '@/tetrisly';\n\nexport const Logo = () => (\n \n \n \n \n \n \n \n \n \n \n);\n","export const TetrislyMark = () => (\n \n \n \n);\n","import { FC } from 'react';\n\nimport { Logo } from './Logo';\nimport { TetrislyMark } from './TetrislyMark';\n\nimport { tet } from '@/tetrisly';\n\ntype HeroProps = {\n component: string;\n description: string;\n docs: string | null;\n};\n\nexport const Hero: FC = ({ component, description, docs }) => (\n \n \n \n \n \n \n Components\n \n \n \n \n \n \n \n {component}\n \n {description}\n \n \n {docs && (\n \n View documentation\n \n )}\n \n \n);\n","import { Primary, Controls, Stories, Unstyled, useOf } from '@storybook/blocks';\nimport { FC, PropsWithChildren } from 'react';\n\nimport { Hero } from './common/Hero';\n\nimport { TetrislyProvider, tet } from '@/tetrisly';\n\nexport const TetDocs: FC> = ({\n children,\n docs,\n}) => {\n const {\n preparedMeta: {\n title,\n parameters: {\n docs: {\n description: { component: description },\n },\n },\n },\n } = useOf('meta', ['meta']);\n return (\n <>\n \n \n \n \n {children}\n \n \n \n \n \n \n \n );\n};\n"],"names":["Logo","jsxs","tet","jsx","TetrislyMark","Hero","component","description","docs","TetDocs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AAA,SAAAC,EAAA,IAAAH,EAAA,CAAA,CAAA,CAAA,CAAA,CAGA,EAAA,EACFC,EAAA,KACAC,EAAA,IAAK,CAAJ,GAAA,uBACI,QAAA,OACK,IAAA,sBACJ,cAAA,SACU,SAAA,CAEdC,EAAA,IAAAD,EAAA,GAAA,CAAA,KAAA,cAAA,SAAAI,EAAA,EAAsCH,MAAAD,EAAA,EAAA,CAAA,MAAA,oBAAA,KAAA,aAAA,SAAAK,EAAA,CAGtC,CAAA,CAAA,EACFC,GAAAL,EAAA,IAEED,EAAA,EAAK,CAAJ,KAAAM,EACO,OAAA,SACC,IAAA,aACH,MAAA,wBACE,SAAA,oBACP,CAAA,CAED,CAAA,CAAA,CAEJ,CACF,2XClDK,MAAAC,EAAA,CAAA,CAAiE,SAAAC,EACtE,KAAAF,CAEF,IAAA,CACE,KAAA,CAAM,aAAA,CACU,MAAAG,EACZ,WAAA,CACY,KAAA,CACJ,YAAA,CAAA,UAAAJ,CAAA,CACkC,CACxC,CACF,CACF,EAAAK,EAAA,OAAA,CAAA,MAAA,CAAA,EAEF,OAAAX,EAAA,KAAAY,WAAA,CAAA,SAAA,CAEIV,EAAAA,IAAAW,EAAA,CAAA,SAAAX,EAAA,IAAAY,EAAA,CAAA,SAAAd,EAAA,KAAAC,EAAA,IAAA,CAAA,EAAA,QAAA,SAAA,CAGMC,EAAA,IAAAE,EAAC,CAAA,UAAAM,EAAA,MAAA,GAAA,EAAA,IAAA,GAAA,GACsC,YAAAJ,EACrC,KAAAC,CACA,CAAA,EACFE,CACC,CAAA,CAAA,CAAA,CAAA,EAAA,EAGPP,EAAA,IAAAa,EAAA,EAAA,EACSb,EAAA,IAAAc,EAAA,EAAA,EACCd,EAAA,IAAAe,EAAA,EAAA,CACD,CAAA,CAAA,CAGf"} \ No newline at end of file +{"version":3,"file":"TetDocs-f48e3431.js","sources":["../../src/docs-components/common/Logo.tsx","../../src/docs-components/common/TetrislyMark.tsx","../../src/docs-components/common/Hero.tsx","../../src/docs-components/TetDocs.tsx"],"sourcesContent":["import { tet } from '@/tetrisly';\n\nexport const Logo = () => (\n \n \n \n \n \n \n \n \n \n \n);\n","export const TetrislyMark = () => (\n \n \n \n);\n","import { FC } from 'react';\n\nimport { Logo } from './Logo';\nimport { TetrislyMark } from './TetrislyMark';\n\nimport { tet } from '@/tetrisly';\n\ntype HeroProps = {\n component: string;\n description: string;\n docs: string | null;\n};\n\nexport const Hero: FC = ({ component, description, docs }) => (\n \n \n \n \n \n \n Components\n \n \n \n \n \n \n \n {component}\n \n {description}\n \n \n {docs && (\n \n View documentation\n \n )}\n \n \n);\n","import { Primary, Controls, Stories, Unstyled, useOf } from '@storybook/blocks';\nimport { FC, PropsWithChildren } from 'react';\n\nimport { Hero } from './common/Hero';\n\nimport { TetrislyProvider, tet } from '@/tetrisly';\n\nexport const TetDocs: FC> = ({\n children,\n docs,\n}) => {\n const {\n preparedMeta: {\n title,\n parameters: {\n docs: {\n description: { component: description },\n },\n },\n },\n } = useOf('meta', ['meta']);\n return (\n <>\n \n \n \n \n {children}\n \n \n \n \n \n \n \n );\n};\n"],"names":["Logo","jsxs","tet","jsx","TetrislyMark","Hero","component","description","docs","TetDocs","children","title","useOf","Fragment","Unstyled","TetrislyProvider","Primary","Controls","Stories"],"mappings":"qIAEO,MAAMA,EAAO,IAClBC,EAAA,KAACC,EAAI,IAAJ,CACC,MAAM,MACN,OAAO,KACP,QAAQ,aACR,KAAK,OACL,MAAM,6BAEN,SAAA,CAAAC,EAAA,IAAC,IAAE,CAAA,GAAG,OAAO,SAAS,uBACpB,SAAAA,EAAA,IAAC,OAAA,CACC,GAAG,SACH,EAAE,+5FACF,KAAK,SAAA,CAAA,EAET,EACCA,MAAA,OAAA,CACC,SAACA,EAAAA,IAAA,WAAA,CAAS,GAAG,iBACX,SAAAA,EAAAA,IAAC,OAAK,CAAA,MAAM,MAAM,OAAO,KAAK,KAAK,OAAA,CAAQ,CAC7C,CAAA,EACF,CAAA,CAAA,CACF,ECtBWC,E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AAF,CAEF,IAAA,CACE,KAAA,CAAM,aAAA,CACU,MAAAG,EACZ,WAAA,CACY,KAAA,CACJ,YAAA,CAAA,UAAAJ,CAAA,CACkC,CACxC,CACF,CACF,EAAAK,EAAA,OAAA,CAAA,MAAA,CAAA,EAEF,OAAAX,EAAA,KAAAY,WAAA,CAAA,SAAA,CAEIV,EAAAA,IAAAW,EAAA,CAAA,SAAAX,EAAA,IAAAY,EAAA,CAAA,SAAAd,EAAA,KAAAC,EAAA,IAAA,CAAA,EAAA,QAAA,SAAA,CAGMC,EAAA,IAAAE,EAAC,CAAA,UAAAM,EAAA,MAAA,GAAA,EAAA,IAAA,GAAA,GACsC,YAAAJ,EACrC,KAAAC,CACA,CAAA,EACFE,CACC,CAAA,CAAA,CAAA,CAAA,EAAA,EAGPP,EAAA,IAAAa,EAAA,EAAA,EACSb,EAAA,IAAAc,EAAA,EAAA,EACCd,EAAA,IAAAe,EAAA,EAAA,CACD,CAAA,CAAA,CAGf"} \ No newline at end of file diff --git a/assets/TextInput-3ac35c9f.js b/assets/TextInput-3ac35c9f.js deleted file mode 100644 index ede6ce93..00000000 --- a/assets/TextInput-3ac35c9f.js +++ /dev/null @@ -1,2 +0,0 @@ -import{j as t,t as i}from"./TetrislyProvider-07235cd3.js";import{R as I}from"./tetrisly-icons.es-3ae3ef26.js";import{r as o}from"./index-76fb7be0.js";import{B as m}from"./Button-7524adde.js";import{I as j}from"./IconButton-83d763b2.js";import{m as T}from"./mergeConfigWithCutom-789678df.js";const O=["m","margin","mt","marginTop","mr","marginRight","mb","marginBottom","ml","marginLeft","mx","my"],W=l=>{if(!(l instanceof Object))return[{},{}];const n=Object.entries(l),[e,s]=n.reduce(([d,p],[r,a])=>O.includes(r)?[{...d,[r]:a},p]:[d,{...p,[r]:a}],[{},{}]);return[e,s]},z={display:"flex",alignItems:"center",h:"medium",padding:"component-padding-small component-padding-large",flexShrink:0,ring:"100",ringColor:{_:"interaction-border-neutral-normal",hover:"interaction-border-hover",focus:"interaction-focus-default",alert:"interaction-border-alert"},borderRadius:"large",opacity:{disabled:"disabled"},outlineStyle:{focusWithin:"solid"},outlineColor:{focusWithin:"interaction-focus-default"},outlineWidth:{focusWithin:"focus"},outlineOffset:{alert:"focus"},transition:!0,transitionDuration:50,cursor:"text",pointerEvents:{disabled:"none"},innerComponents:{input:{w:"100%",h:"100%",outline:"none",text:"body-medium",color:{placeholder:"content-tertiary"},backgroundColor:"interaction-background-formField"},icon:{color:"content-secondary"},text:{text:"body-medium",color:"content-secondary"},clearButton:{marginLeft:"component-gap-small"}},spacing:{beforeComponent:{Icon:{marginLeft:"component-padding-medium",marginRight:"component-padding-small"},Avatar:{margin:"0 component-padding-small"},Prefix:{margin:"0 component-padding-large"},Dropdown:{marginLeft:"component-padding-xSmall",marginRight:"component-padding-small"}},afterComponent:{Icon:{marginLeft:"component-padding-small",marginRight:"component-padding-large"},Sufix:{marginLeft:"component-padding-small",marginRight:"component-padding-large"},Button:{marginLeft:"component-padding-small",marginRight:"component-padding-xSmall"},IconButton:{marginLeft:"component-padding-small",marginRight:"component-padding-xSmall"},Dropdown:{marginLeft:"component-padding-small",marginRight:"component-padding-xSmall"}}}},S=o.forwardRef(({type:l="text",beforeComponent:n,afterComponent:e,state:s,hasClearButton:d,custom:p,value:r,onChange:a,...B},R)=>{const[g,f]=o.useState(""),[w,L]=W(B),{innerComponents:{input:P,icon:x,text:y,clearButton:_},spacing:h,...D}=T({defaultConfig:z,custom:p}),c=o.useRef(null),V=o.useCallback(u=>{var b;if(u.target===c.current){const v=(b=c.current)==null?void 0:b.querySelector("input");v&&v.focus()}},[c]),k=o.useCallback(u=>{f(u.target.value),a==null||a(u)},[a]),q=o.useCallback(()=>{f(""),a==null||a({target:{value:""}})},[a]);return t.jsxs(i.div,{ref:c,onClick:V,...D,pl:!!n&&"0",pr:!!e&&"0",...w,"data-state":s,"data-testid":"text-input",children:[!!n&&t.jsxs(i.span,{...h.beforeComponent[n.type],"data-testid":"text-input-before-component",children:[n.type==="Icon"&&t.jsx(i.span,{...x,children:t.jsx(I,{...n.props})}),n.type==="Prefix"&&t.jsx(i.span,{...y,children:n.props.text}),n.type==="Dropdown"&&t.jsx(m,{size:"small",variant:"ghost",label:n.props.label,dropdownIndicator:!0})]}),t.jsx(i.input,{...P,value:r||g,onChange:k,...L,type:l,disabled:s==="disabled",ref:R,"data-testid":"text-input-input"}),!!d&&(r||g)&&t.jsx(j,{variant:"bare",icon:"20-close",onClick:q,..._,"data-testid":"text-input-clear-button"}),!!e&&t.jsxs(i.span,{...h.afterComponent[e.type],"data-testid":"text-input-after-component",children:[e.type==="Icon"&&t.jsx(i.span,{...x,children:t.jsx(I,{...e.props})}),e.type==="IconButton"&&t.jsx(j,{variant:"ghost",size:"small",...e.props}),e.type==="Sufix"&&t.jsx(i.span,{...y,children:e.props.text}),e.type==="Button"&&t.jsx(m,{size:"small",variant:"ghost",label:"Label"}),e.type==="Dropdown"&&t.jsx(m,{size:"small",variant:"ghost",label:e.props.label,dropdownIndicator:!0})]})]})});try{S.displayName="TextInput",S.__docgenInfo={description:"",displayName:"TextInput",props:{type:{defaultValue:{value:"text"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"email"'},{value:'"password"'},{value:'"search"'},{value:'"tel"'},{value:'"url"'}]}},beforeComponent:{defaultValue:null,description:"",name:"beforeComponent",required:!1,type:{name:"Icon | Prefix | Dropdown"}},afterComponent:{defaultValue:null,description:"",name:"afterComponent",required:!1,type:{name:"Icon | Dropdown | IconButton | Sufix | Button"}},state:{defaultValue:null,description:"",name:"state",required:!1,type:{name:"enum",value:[{value:'"disabled"'},{value:'"alert"'}]}},hasClearButton:{defaultValue:null,description:"",name:"hasClearButton",required:!1,type:{name:"boolean"}},custom:{defaultValue:null,description:"",name:"custom",required:!1,type:{name:"DeepPartial"}}}}}catch{}export{S as T}; -//# sourceMappingURL=TextInput-3ac35c9f.js.map diff --git a/assets/TextInput-3ac35c9f.js.map b/assets/TextInput-3ac35c9f.js.map deleted file mode 100644 index e65af3b1..00000000 --- a/assets/TextInput-3ac35c9f.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextInput-3ac35c9f.js","sources":["../../src/services/extractMarginProps/extractMarginProps.ts","../../src/components/TextInput/TextInput.style.ts","../../src/components/TextInput/TextInput.tsx"],"sourcesContent":["/**\n * Function extracts all spacing props (ex. ''m', 'ml', 'mr' etc.), returns array with space props and rest objects\n */\nimport {\n MarginBottomProps,\n MarginLeftProps,\n MarginProps,\n MarginRightProps,\n MarginTopProps,\n MarginXProps,\n MarginYProps,\n} from '@xstyled/styled-components';\n\ninterface MarginsProps\n extends MarginProps,\n MarginLeftProps,\n MarginBottomProps,\n MarginTopProps,\n MarginRightProps,\n MarginXProps,\n MarginYProps {}\n\nconst marginPropsKeys: (keyof MarginsProps)[] = [\n 'm',\n 'margin',\n 'mt',\n 'marginTop',\n 'mr',\n 'marginRight',\n 'mb',\n 'marginBottom',\n 'ml',\n 'marginLeft',\n 'mx',\n 'my',\n];\n\ntype OmitMarginProps = Omit<\n T,\n | 'm'\n | 'margin'\n | 'mt'\n | 'marginTop'\n | 'mr'\n | 'marginRight'\n | 'mb'\n | 'marginBottom'\n | 'ml'\n | 'marginLeft'\n | 'mx'\n | 'my'\n>;\n\nexport const extractMarginProps = (\n props: T,\n): [MarginsProps, OmitMarginProps] => {\n if (!(props instanceof Object)) return [{}, {} as T];\n\n const entries = Object.entries(props) as [keyof MarginProps, object][];\n const [marginsProps, restProps] = entries.reduce(\n ([margins, rest], [key, value]) => {\n if (marginPropsKeys.includes(key)) {\n return [{ ...margins, [key]: value }, rest];\n }\n return [margins, { ...rest, [key]: value }];\n },\n [{} as MarginProps, {} as OmitMarginProps],\n );\n\n return [marginsProps, restProps];\n};\n","import { BaseProps } from '@/types/BaseProps';\n\nexport type TextInputConfig = {\n innerComponents: Record<'input' | 'icon' | 'text' | 'clearButton', BaseProps>;\n spacing:\n | Record<\n 'beforeComponent',\n Record<'Icon' | 'Avatar' | 'Prefix' | 'Dropdown', BaseProps>\n >\n | Record<\n 'afterComponent',\n Record<\n 'Icon' | 'Sufix' | 'Button' | 'IconButton' | 'Dropdown',\n BaseProps\n >\n >;\n} & BaseProps;\n\nexport const defaultConfig = {\n display: 'flex',\n alignItems: 'center',\n h: 'medium',\n padding: 'component-padding-small component-padding-large',\n flexShrink: 0,\n ring: '100',\n ringColor: {\n _: 'interaction-border-neutral-normal',\n hover: 'interaction-border-hover',\n focus: 'interaction-focus-default',\n alert: 'interaction-border-alert',\n },\n borderRadius: 'large',\n opacity: {\n disabled: 'disabled',\n },\n outlineStyle: {\n focusWithin: 'solid',\n },\n outlineColor: {\n focusWithin: 'interaction-focus-default',\n },\n outlineWidth: {\n focusWithin: 'focus',\n },\n outlineOffset: {\n alert: 'focus',\n },\n transition: true,\n transitionDuration: 50,\n cursor: 'text',\n pointerEvents: {\n disabled: 'none',\n },\n innerComponents: {\n input: {\n w: '100%',\n h: '100%',\n outline: 'none',\n text: 'body-medium',\n color: {\n placeholder: 'content-tertiary',\n },\n backgroundColor: 'interaction-background-formField',\n },\n icon: {\n color: 'content-secondary',\n },\n text: {\n text: 'body-medium',\n color: 'content-secondary',\n },\n clearButton: {\n marginLeft: 'component-gap-small',\n },\n },\n spacing: {\n beforeComponent: {\n Icon: {\n marginLeft: 'component-padding-medium',\n marginRight: 'component-padding-small',\n },\n Avatar: {\n margin: '0 component-padding-small',\n },\n Prefix: {\n margin: '0 component-padding-large',\n },\n Dropdown: {\n marginLeft: 'component-padding-xSmall',\n marginRight: 'component-padding-small',\n },\n },\n afterComponent: {\n Icon: {\n marginLeft: 'component-padding-small',\n marginRight: 'component-padding-large',\n },\n Sufix: {\n marginLeft: 'component-padding-small',\n marginRight: 'component-padding-large',\n },\n Button: {\n marginLeft: 'component-padding-small',\n marginRight: 'component-padding-xSmall',\n },\n IconButton: {\n marginLeft: 'component-padding-small',\n marginRight: 'component-padding-xSmall',\n },\n Dropdown: {\n marginLeft: 'component-padding-small',\n marginRight: 'component-padding-xSmall',\n },\n },\n },\n} satisfies TextInputConfig;\n","import { Icon } from '@virtuslab/tetrisly-icons';\nimport {\n forwardRef,\n useRef,\n useCallback,\n useState,\n ChangeEventHandler,\n MouseEventHandler,\n ChangeEvent,\n} from 'react';\n\nimport { TextInputProps } from './TextInput.props';\nimport { defaultConfig } from './TextInput.style';\nimport { Button } from '../Button';\nimport { IconButton } from '../IconButton';\n\nimport { mergeConfigWithCustom } from '@/services';\nimport { extractMarginProps } from '@/services/extractMarginProps';\nimport { tet } from '@/tetrisly';\nimport { MarginProps } from '@/types/MarginProps';\n\nexport const TextInput = forwardRef<\n HTMLInputElement,\n TextInputProps & MarginProps\n>(\n (\n {\n type = 'text',\n beforeComponent,\n afterComponent,\n state,\n hasClearButton,\n custom,\n value,\n onChange,\n ...rest\n },\n inputRef,\n ) => {\n const [innerValue, setInnerValue] = useState('');\n const [marginProps, inputProps] = extractMarginProps<\n TextInputProps & MarginProps\n >(rest);\n\n const {\n innerComponents: {\n input: inputStyles,\n icon: iconStyles,\n text: textStyles,\n clearButton: clearButtonStyles,\n },\n spacing,\n ...defaultStyles\n } = mergeConfigWithCustom({ defaultConfig, custom });\n\n const containerRef = useRef(null);\n\n const handleContainerClick: MouseEventHandler = useCallback(\n (e) => {\n if (e.target === containerRef.current) {\n const input = containerRef.current?.querySelector('input');\n\n if (input) input.focus();\n }\n },\n [containerRef],\n );\n\n const handleOnChange: ChangeEventHandler = useCallback(\n (e) => {\n setInnerValue(e.target.value);\n onChange?.(e);\n },\n [onChange],\n );\n\n const handleOnClear: MouseEventHandler =\n useCallback(() => {\n setInnerValue('');\n onChange?.({ target: { value: '' } } as ChangeEvent);\n }, [onChange]);\n\n return (\n \n {!!beforeComponent && (\n \n {beforeComponent.type === 'Icon' && (\n \n \n \n )}\n {beforeComponent.type === 'Prefix' && (\n {beforeComponent.props.text}\n )}\n {beforeComponent.type === 'Dropdown' && (\n \n )}\n \n )}\n \n {!!hasClearButton && (value || innerValue) && (\n \n )}\n {!!afterComponent && (\n \n {afterComponent.type === 'Icon' && (\n \n \n \n )}\n {afterComponent.type === 'IconButton' && (\n \n )}\n {afterComponent.type === 'Sufix' && (\n {afterComponent.props.text}\n )}\n {afterComponent.type === 'Button' && (\n