@rainbow-robotics/muscat-plugin-kit 1.3.3 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/docker/Dockerfile.cpp +1 -1
- package/cli/docker/Dockerfile.dev +1 -1
- package/cli/src/build.mjs +17 -0
- package/cli/src/devBack.mjs +52 -6
- package/cli/src/manifest.mjs +11 -0
- package/cli/src/mcp.mjs +2 -1
- package/cli/src/new.mjs +7 -1
- package/cli/storybook-dist/_stories-src/RBInput/RBSelectBox.stories.tsx +98 -1
- package/cli/storybook-dist/assets/{Color-YHDXOIA2-DPI4Is-F.js → Color-YHDXOIA2-B2UeRrKo.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-DDYksosp.js → Docs--RZRtFEG.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-TMe-1-I2.js → Docs-0e3RdOES.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-CbCty_Qg.js → Docs-BOQIr4GF.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-CQnf2HJu.js → Docs-ByEENH63.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-CKTHz6Db.js → Docs-C9piXmyp.js} +1 -1
- package/cli/storybook-dist/assets/{Docs-Dow4_Rnl.js → Docs-Ldq5Lk3l.js} +1 -1
- package/cli/storybook-dist/assets/{DocsRenderer-CFRXHY34-DSTzrCAK.js → DocsRenderer-CFRXHY34-BqtNk965.js} +1 -1
- package/cli/storybook-dist/assets/{NxAvatar.stories-B3OxXBgc.js → NxAvatar.stories-vhMGYFV3.js} +1 -1
- package/cli/storybook-dist/assets/{NxButton.stories-UTqX8ZkA.js → NxButton.stories-g3PPaKCF.js} +1 -1
- package/cli/storybook-dist/assets/{NxNumberInput.stories-GoLEe-uJ.js → NxNumberInput.stories-DqMOTXut.js} +1 -1
- package/cli/storybook-dist/assets/{NxPagination.stories-Jj6dt6eG.js → NxPagination.stories-Ck9eWMxu.js} +1 -1
- package/cli/storybook-dist/assets/{NxPointerHoldButton.stories-tLN9u4nC.js → NxPointerHoldButton.stories-Co0n4bRm.js} +1 -1
- package/cli/storybook-dist/assets/{NxRangeInput.stories-C-MK73xb.js → NxRangeInput.stories-DJ4Dc_Br.js} +1 -1
- package/cli/storybook-dist/assets/{NxSelectBox.stories-CBcFcOIX.js → NxSelectBox.stories-sKn1_PSs.js} +1 -1
- package/cli/storybook-dist/assets/{NxSlideRange.stories-oNQkoW66.js → NxSlideRange.stories-tYCfNfrK.js} +1 -1
- package/cli/storybook-dist/assets/{NxSwitch.stories-CqBkO5GC.js → NxSwitch.stories-D1CESdtI.js} +1 -1
- package/cli/storybook-dist/assets/{NxTextArea.stories-DtysSyl4.js → NxTextArea.stories-gXgdkMpM.js} +1 -1
- package/cli/storybook-dist/assets/{NxTextInput.stories-BOLDbSgF.js → NxTextInput.stories-BVtu1SGw.js} +1 -1
- package/cli/storybook-dist/assets/{RBAccordion.stories-D9-wu9LY.js → RBAccordion.stories-ITTXwvIC.js} +1 -1
- package/cli/storybook-dist/assets/{RBAccordionGroup.stories-BPfnIKm6.js → RBAccordionGroup.stories-DHRZ0DAZ.js} +1 -1
- package/cli/storybook-dist/assets/{RBAlert.stories-CGn-c2ac.js → RBAlert.stories-DAGPBzy6.js} +1 -1
- package/cli/storybook-dist/assets/{RBBadge.stories-CBLmeoq1.js → RBBadge.stories-_5EIgPVn.js} +1 -1
- package/cli/storybook-dist/assets/{RBBattery.stories-oo47rbDh.js → RBBattery.stories-79bKYMPL.js} +1 -1
- package/cli/storybook-dist/assets/{RBCard.stories-SiD2VfQ4.js → RBCard.stories-DNmgScpm.js} +1 -1
- package/cli/storybook-dist/assets/{RBCheckBox.stories-sEEVrjSg.js → RBCheckBox.stories-DI_96r8j.js} +1 -1
- package/cli/storybook-dist/assets/{RBCheckIconButton.stories-C5GQUjZf.js → RBCheckIconButton.stories-CbmSpA0D.js} +1 -1
- package/cli/storybook-dist/assets/{RBCheckLabelButton.stories-DTaTqBvJ.js → RBCheckLabelButton.stories-CoPpdXMB.js} +1 -1
- package/cli/storybook-dist/assets/{RBChipTab.stories-3AZr4kOz.js → RBChipTab.stories-BS-iPRc9.js} +1 -1
- package/cli/storybook-dist/assets/{RBChipsBoxTab.stories-hCJnBYQl.js → RBChipsBoxTab.stories-DyBVIzLX.js} +1 -1
- package/cli/storybook-dist/assets/{RBColorIcons.stories-BX4RJygu.js → RBColorIcons.stories-D7N2NFhV.js} +1 -1
- package/cli/storybook-dist/assets/{RBCommand.stories-BidZ4H8f.js → RBCommand.stories-C7d_H0yh.js} +1 -1
- package/cli/storybook-dist/assets/{RBConfirm.stories-D3Txw1kT.js → RBConfirm.stories-eUy660-L.js} +1 -1
- package/cli/storybook-dist/assets/{RBDateInput.stories-CLxRaN6T.js → RBDateInput.stories-DkniiLTP.js} +1 -1
- package/cli/storybook-dist/assets/{RBDialog.stories-CEhmUGp-.js → RBDialog.stories-D1EWiZSD.js} +1 -1
- package/cli/storybook-dist/assets/{RBDivider.stories-peXP2KG9.js → RBDivider.stories-C7n_c-5k.js} +1 -1
- package/cli/storybook-dist/assets/{RBDrawer.stories-38iDf6uC.js → RBDrawer.stories-BFrHR8Iq.js} +1 -1
- package/cli/storybook-dist/assets/{RBDropdownMenu.stories-Dsi8tqSy.js → RBDropdownMenu.stories-DHKOHSab.js} +1 -1
- package/cli/storybook-dist/assets/{RBEmptyView.stories-VMxWhzLP.js → RBEmptyView.stories-ByuI33BT.js} +1 -1
- package/cli/storybook-dist/assets/{RBIconButton.stories-BPLhceGO.js → RBIconButton.stories-B9nDdXcG.js} +1 -1
- package/cli/storybook-dist/assets/{RBIcons.stories-DuYdO951.js → RBIcons.stories-Cg5DyQv7.js} +1 -1
- package/cli/storybook-dist/assets/{RBInlineLabelButton.stories-CGNYhQyl.js → RBInlineLabelButton.stories-Dw20jVap.js} +1 -1
- package/cli/storybook-dist/assets/{RBJoyStick.stories-CCmn-LMy.js → RBJoyStick.stories-DRnBLCMK.js} +1 -1
- package/cli/storybook-dist/assets/{RBLabelButton.stories-IkKjthGk.js → RBLabelButton.stories-BSq9R58x.js} +1 -1
- package/cli/storybook-dist/assets/{RBLight.stories-eJFQOjPH.js → RBLight.stories-DU1fcd2i.js} +1 -1
- package/cli/storybook-dist/assets/{RBMenubar.stories-kg-xXGrW.js → RBMenubar.stories-BMbcFRh3.js} +1 -1
- package/cli/storybook-dist/assets/{RBMultiRangeInput.stories-Czr1r3gd.js → RBMultiRangeInput.stories-DLSOVm4n.js} +1 -1
- package/cli/storybook-dist/assets/{RBPagination.stories-Dyu6Khnl.js → RBPagination.stories-Bk1aO3_Q.js} +1 -1
- package/cli/storybook-dist/assets/{RBPopover.stories-CAM6hpf2.js → RBPopover.stories-CuFAtQHi.js} +1 -1
- package/cli/storybook-dist/assets/{RBPrompt.stories-B4M-veaf.js → RBPrompt.stories-Bo4x13ZF.js} +1 -1
- package/cli/storybook-dist/assets/{RBRadioBox.stories-DeAOKvil.js → RBRadioBox.stories-ePsrSWZw.js} +1 -1
- package/cli/storybook-dist/assets/{RBRadioButton.stories-DjXwYXFy.js → RBRadioButton.stories-BPgZcc3F.js} +1 -1
- package/cli/storybook-dist/assets/{RBRangeDateInput.stories-9pzKhXGf.js → RBRangeDateInput.stories-Bn2jQYdc.js} +1 -1
- package/cli/storybook-dist/assets/{RBResizable.stories-B4Hi4DUD.js → RBResizable.stories-CcZAke_t.js} +1 -1
- package/cli/storybook-dist/assets/RBSelectBox.stories-D2TmMKuY.js +74 -0
- package/cli/storybook-dist/assets/{RBSheet.stories-BwOCmaNN.js → RBSheet.stories-DMX5cfpA.js} +1 -1
- package/cli/storybook-dist/assets/{RBSideNumberInput.stories-BbGOIitU.js → RBSideNumberInput.stories-DQsk7EcR.js} +1 -1
- package/cli/storybook-dist/assets/{RBSlider.stories-yIDdawYQ.js → RBSlider.stories-Mo-EYOeG.js} +1 -1
- package/cli/storybook-dist/assets/{RBSpinner.stories-CIJvpbgK.js → RBSpinner.stories-DUfDdtn3.js} +1 -1
- package/cli/storybook-dist/assets/{RBSwitch.stories-Bo8hrSiq.js → RBSwitch.stories-D_Hkm4Me.js} +1 -1
- package/cli/storybook-dist/assets/{RBTab.stories-Cq3N4Dgb.js → RBTab.stories-z6PQh3xa.js} +1 -1
- package/cli/storybook-dist/assets/{RBTable.stories-DDeZf-Wb.js → RBTable.stories-BtzyR3B8.js} +1 -1
- package/cli/storybook-dist/assets/{RBTableRow.stories-BeKVMSo3.js → RBTableRow.stories-6TTrEoWD.js} +1 -1
- package/cli/storybook-dist/assets/{RBTabs.stories-DovB7PPB.js → RBTabs.stories-DOmlQMqX.js} +1 -1
- package/cli/storybook-dist/assets/{RBTextArea.stories-D7H4RvP8.js → RBTextArea.stories-9uAHQJRh.js} +1 -1
- package/cli/storybook-dist/assets/{RBTextField.stories-CmkNXeEk.js → RBTextField.stories-BJW5uhdX.js} +1 -1
- package/cli/storybook-dist/assets/{RBTextInput.stories-hnxbQJsb.js → RBTextInput.stories-C1h13ZAZ.js} +1 -1
- package/cli/storybook-dist/assets/{RBToast.stories-BklGGkNh.js → RBToast.stories-u5HCr9aM.js} +1 -1
- package/cli/storybook-dist/assets/{RBToggle.stories-C56AXyxq.js → RBToggle.stories-DVQIA_jh.js} +1 -1
- package/cli/storybook-dist/assets/{RBToggleGroup.stories-CpLPdAF0.js → RBToggleGroup.stories-2vKpENMG.js} +1 -1
- package/cli/storybook-dist/assets/{RBTooltip.stories-BdOnCwGk.js → RBTooltip.stories-Xq5vQ9vj.js} +1 -1
- package/cli/storybook-dist/assets/{SideNumberInput-DLmM2_Dy.js → SideNumberInput-CrfOgiZy.js} +96 -96
- package/cli/storybook-dist/assets/{entry-preview-tBizwvut.js → entry-preview-DHU-f_i4.js} +1 -1
- package/cli/storybook-dist/assets/{iframe-BVXraKDc.js → iframe-DTWBaDhL.js} +2 -2
- package/cli/storybook-dist/assets/{index-CI3FxSvF.js → index-B38mYhND.js} +3 -3
- package/cli/storybook-dist/assets/{index-C1OzuK6-.js → index-ClAc6FBW.js} +1 -1
- package/cli/storybook-dist/assets/{preview-CILRoSnB.js → preview-BVJwlGUF.js} +1 -1
- package/cli/storybook-dist/assets/{preview-BUOha-H6.js → preview-DSAOVIDc.js} +2 -2
- package/cli/storybook-dist/assets/preview-J5nqEP13.js +3 -0
- package/cli/storybook-dist/iframe.html +1 -1
- package/cli/storybook-dist/index.json +1 -1
- package/cli/storybook-dist/project.json +1 -1
- package/cli/templates/common/README.md +27 -2
- package/cli/templates/common/requirements.txt +3 -3
- package/cli/templates/readme-cpp/README.md +26 -2
- package/cli/templates/ros2-cpp/ros2_ws/src/__PLUGIN_SLUG__/src/node.cpp +3 -4
- package/package.json +3 -3
- package/cli/storybook-dist/assets/RBSelectBox.stories-tVVv4c6z.js +0 -6
- package/cli/storybook-dist/assets/preview-DGIRF99V.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as x}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-B4FGfHer.js";import{b as n,U as l}from"./index-
|
|
1
|
+
import{j as x}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-B4FGfHer.js";import{b as n,U as l}from"./index-B38mYhND.js";import{c as i}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./index-Dmy2JGbm.js";import"./iframe-DTWBaDhL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const c={"down-2xs":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px 1px 4px 0px rgba(9, 9, 11, 0.188)"},"down-xs":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px 4px 10px 0px rgba(9, 9, 11, 0.18)"},"down-sm":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px 10px 16px 0px rgba(9, 9, 11, 0.169)"},"down-md":{$type:"shadow",$value:"0px 0px 2px 0px rgba(9, 9, 11, 0.2), 0px 20px 32px 0px rgba(9, 9, 11, 0.161)"},"down-lg":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px 34px 48px 0px rgba(9, 9, 11, 0.149)"},"down-xl":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px 52px 64px 0px rgba(9, 9, 11, 0.141)"},"up-2xs":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px -1px 4px 0px rgba(9, 9, 11, 0.188)"},"up-xs":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px -4px 10px 0px rgba(9, 9, 11, 0.18)"},"up-sm":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px -10px 16px 0px rgba(9, 9, 11, 0.169)"},"up-md":{$type:"shadow",$value:"0px 0px 2px 0px rgba(9, 9, 11, 0.2), 0px -20px 32px 0px rgba(9, 9, 11, 0.161)"},"up-lg":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px -34px 48px 0px rgba(9, 9, 11, 0.149)"},"up-xl":{$type:"shadow",$value:"0px 0px 1px 0px rgba(9, 9, 11, 0.2), 0px -52px 64px 0px rgba(9, 9, 11, 0.141)"}},h={shadow:c},u=Object.entries(h.shadow).map(([e,p])=>({token:`shadow-${e}`,value:p.$value})),m=e=>{i({text:e}),alert("복사가 완료되었습니다.")},w=e=>{const p=[];let a="",s=0;for(const o of e){if(o==="("&&(s+=1),o===")"&&(s-=1),o===","&&s===0){p.push(a.trim()),a="";continue}a+=o}return a.trim()&&p.push(a.trim()),p},d=()=>x.jsx("div",{className:"grid gap-4 md:grid-cols-3",children:u.map(({token:e,value:p})=>x.jsxs("button",{type:"button",className:"border-default bg-default text-default cursor-copy rounded-lg border p-4 text-left",style:{boxShadow:p},onClick:()=>m(e),title:`Copy ${e}`,children:[x.jsx("p",{className:"text-sm font-medium",children:e}),w(p).map((a,s)=>x.jsx("p",{className:"text-subtle mt-1 text-sm",children:`Layer ${s+1}: ${a}`},`${e}-${s}`))]},e))});d.__docgenInfo={description:"",methods:[],displayName:"ShadowPreview"};function r(e){const p={code:"code",h1:"h1",li:"li",p:"p",pre:"pre",ul:"ul",...t(),...e.components};return x.jsxs(x.Fragment,{children:[x.jsx(n,{title:"1.foundations/shadow"}),`
|
|
2
2
|
`,x.jsx(p.h1,{id:"shadow",children:"Shadow"}),`
|
|
3
3
|
`,x.jsxs(p.p,{children:[x.jsx(p.code,{children:"--shadow-*"})," 토큰은 2개의 레이어를 합성해서 만듭니다."]}),`
|
|
4
4
|
`,x.jsxs(p.ul,{children:[`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-B4FGfHer.js";import{b as a,U as l}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-B4FGfHer.js";import{b as a,U as l}from"./index-B38mYhND.js";import{I as d}from"./index-DKFBREX_.js";import{c as p}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./index-Dmy2JGbm.js";import"./iframe-DTWBaDhL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const m=t=>{p({text:t}),alert("복사가 완료되었습니다.")},n=t=>`<${t} className="size-5" />`,c=()=>{const t=Object.entries(d).filter(([,o])=>typeof o=="function");return e.jsx("div",{className:"grid grid-cols-3 gap-3 md:grid-cols-6 xl:grid-cols-8",children:t.map(([o,i])=>e.jsxs("button",{type:"button",className:"border-default bg-default text-default flex cursor-copy flex-col items-center gap-2 rounded-lg border p-3",onClick:()=>m(n(o)),title:`Copy ${n(o)}`,children:[e.jsx(i,{className:"size-5"}),e.jsx("span",{className:"text-subtle text-center text-sm break-all",children:n(o)})]},o))})};c.__docgenInfo={description:"",methods:[],displayName:"IconPreview"};function s(t){const o={code:"code",h1:"h1",p:"p",pre:"pre",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"1.foundations/icon"}),`
|
|
2
2
|
`,e.jsx(o.h1,{id:"icon",children:"Icon"}),`
|
|
3
3
|
`,e.jsxs(o.p,{children:[e.jsx(o.code,{children:"@repo/rb-components/icons"}),"의 아이콘 전체를 미리보기에서 확인합니다."]}),`
|
|
4
4
|
`,e.jsx(o.pre,{children:e.jsx(o.code,{className:"language-tsx",children:`import { SvgIcoSearch } from '@repo/rb-components/icons';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as l}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as y}from"./index-B4FGfHer.js";import{b as g,U as b}from"./index-CI3FxSvF.js";import{d as p,e as n,f as c,g as t}from"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-Dmy2JGbm.js";import{c as f}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./iframe-BVXraKDc.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const k={"scale color":{red:{500:{$type:"color",$value:"#fb2c36"},600:{$type:"color",$value:"#e7000b"},"alpha-50p":{$type:"color",$value:"#fb2c3680"},"alpha-30p":{$type:"color",$value:"#fb2c364d"},"alpha-10p":{$type:"color",$value:"#fb2c361a"},"alpha-20p":{$type:"color",$value:"#fb2c3633"}},orange:{500:{$type:"color",$value:"#ff6900"},600:{$type:"color",$value:"#f54a00"},"alpha-50p":{$type:"color",$value:"#ff690080"},"alpha-30p":{$type:"color",$value:"#ff69004d"},"alpha-10p":{$type:"color",$value:"#ff69001a"},"alpha-20p":{$type:"color",$value:"#ff690033"}},green:{500:{$type:"color",$value:"#00c951"},600:{$type:"color",$value:"#00a63e"},"alpha-50p":{$type:"color",$value:"#00c95180"},"alpha-30p":{$type:"color",$value:"#00c9514d"},"alpha-10p":{$type:"color",$value:"#00c9511a"},"alpha-20p":{$type:"color",$value:"#00c95133"}},blue:{500:{$type:"color",$value:"#2b7fff"},600:{$type:"color",$value:"#155dfc"},"alpha-50p":{$type:"color",$value:"#2b7fff80"},"alpha-30p":{$type:"color",$value:"#2b7fff4d"},"alpha-10p":{$type:"color",$value:"#2b7fff1a"},"alpha-20p":{$type:"color",$value:"#2b7fff33"}},"zinc-950-alpha":{5:{$type:"color",$value:"#09090b0d"},10:{$type:"color",$value:"#09090b1a"},15:{$type:"color",$value:"#09090b26"},20:{$type:"color",$value:"#09090b33"},25:{$type:"color",$value:"#09090b40"},30:{$type:"color",$value:"#09090b4d"},40:{$type:"color",$value:"#09090b66"},50:{$type:"color",$value:"#09090b80"},60:{$type:"color",$value:"#09090b99"},70:{$type:"color",$value:"#09090bb3"},75:{$type:"color",$value:"#09090bbf"},80:{$type:"color",$value:"#09090bcc"},85:{$type:"color",$value:"#09090bd9"},90:{$type:"color",$value:"#09090be6"},95:{$type:"color",$value:"#09090bf2"}},"zinc-50-alpha":{5:{$type:"color",$value:"#fafafa0d"},10:{$type:"color",$value:"#fafafa1a"},15:{$type:"color",$value:"#fafafa26"},20:{$type:"color",$value:"#fafafa33"},25:{$type:"color",$value:"#fafafa40"},30:{$type:"color",$value:"#fafafa4d"},40:{$type:"color",$value:"#fafafa66"},50:{$type:"color",$value:"#fafafa80"},60:{$type:"color",$value:"#fafafa99"},70:{$type:"color",$value:"#fafafab3"},75:{$type:"color",$value:"#fafafabf"},80:{$type:"color",$value:"#fafafacc"},85:{$type:"color",$value:"#fafafad9"},90:{$type:"color",$value:"#fafafae6"},95:{$type:"color",$value:"#fafafaf2"}},zinc:{50:{$type:"color",$value:"#fafafa"},100:{$type:"color",$value:"#f4f4f5"},200:{$type:"color",$value:"#e4e4e7"},300:{$type:"color",$value:"#d4d4d8"},400:{$type:"color",$value:"#9f9fa9"},500:{$type:"color",$value:"#71717b"},600:{$type:"color",$value:"#52525c"},700:{$type:"color",$value:"#3f3f46"},800:{$type:"color",$value:"#232326"},900:{$type:"color",$value:"#18181b"},950:{$type:"color",$value:"#09090b"}},base:{black:{$type:"color",$value:"#000000"},transparent:{$type:"color",$value:"#ffffff00"},white:{$type:"color",$value:"#ffffff"}},yellow:{400:{$type:"color",$value:"#fcc800"},500:{$type:"color",$value:"#efb100"},"alpha-50p":{$type:"color",$value:"#fcc80080"},"alpha-30p":{$type:"color",$value:"#fcc8004d"},"alpha-10p":{$type:"color",$value:"#fcc8001a"},"alpha-20p":{$type:"color",$value:"#fcc80033"}},primary:{"alpha-10p":{$type:"color",$value:"#155dfc1a"},"alpha-30p":{$type:"color",$value:"#155dfc4d"},stronger:{$type:"color",$value:"#003baf"},strong:{$type:"color",$value:"#154dd0"},"alpha-50p":{$type:"color",$value:"#155dfc80"},normal:{$type:"color",$value:"#155dfc"}},custom:{"gray-100":{$type:"color",$value:"#18181a"},"gray-200":{$type:"color",$value:"#1f1f22"},"gray-300":{$type:"color",$value:"#2a2a2d"}},violet:{500:{$type:"color",$value:"#8e51ff"},600:{$type:"color",$value:"#7f22fe"},"alpha-50p":{$type:"color",$value:"#8e51ff80"},"alpha-30p":{$type:"color",$value:"#8e51ff4d"},"alpha-20p":{$type:"color",$value:"#8e51ff33"},"alpha-10p":{$type:"color",$value:"#8e51ff1a"}},rainbow:{normal:{$type:"color",$value:"#e6331b"},strong:{$type:"color",$value:"#cf2d18"},stronger:{$type:"color",$value:"#b82815"},"alpha-50p":{$type:"color",$value:"#e6331b80"},"alpha-30p":{$type:"color",$value:"#e6331b4d"},"alpha-10p":{$type:"color",$value:"#e6331b1a"}},"icon-primary":{$type:"color",$value:"#5c9cff"},navy:{normal:{$type:"color",$value:"#0b558c"},strong:{$type:"color",$value:"#094a7a"},stronger:{$type:"color",$value:"#073e67"},"alpha-50p":{$type:"color",$value:"#0b558c80"},"alpha-30p":{$type:"color",$value:"#082a6c4d"},"alpha-10p":{$type:"color",$value:"#082a6c1a"},"alpha-20p":{$type:"color",$value:"#0b558c33"},"alpha-15p":{$type:"color",$value:"#0b558c26"}}}},L={"semantic color":JSON.parse('{"fg":{"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.50}","Light":"{color.scale.zinc.950}"}},"danger-subtle":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-30p}","Light":"{color.scale.red.alpha-50p}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-subtle":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-50p}","Light":"{color.scale.orange.alpha-50p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-subtle":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-50p}","Light":"{color.scale.green.alpha-50p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.600}"}},"information-subtle":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-50p}","Light":"{color.scale.blue.alpha-50p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.20}","Light":"{color.scale.zinc-950-alpha.25}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc.950}","Light":"{color.scale.zinc.50}"}},"subtlest":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.40}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.60}","Light":"{color.scale.zinc-950-alpha.70}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.40}","Light":"{color.scale.zinc-950-alpha.60}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.15}","Light":"{color.scale.zinc-50-alpha.20}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand-subtle":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"default-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.80}","Light":"{color.scale.zinc-950-alpha.80}"}},"brand-hovered":{"$type":"color","$value":{"Dark":"{color.scale.primary.strong}","Light":"{color.scale.primary.strong}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"caution-subtle":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-50p}","Light":"{color.scale.yellow.alpha-50p}"}},"static-white":{"$type":"color","$value":{"Dark":"{color.scale.base.white}","Light":"{color.scale.base.white}"}},"static-white-subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc.500}","Light":"{color.scale.zinc.500}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug-subtle":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-50p}","Light":"{color.scale.violet.alpha-50p}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb-subtle":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy-subtle":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}},"navy-hovered":{"$type":"color","$value":{"Dark":"{color.scale.navy.strong}","Light":"{color.scale.navy.strong}"}}},"border":{"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.20}"}},"danger-stronger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-stronger":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-stronger":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.500}"}},"information-stronger":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"inverse-stronger":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.90}","Light":"{color.scale.zinc-50-alpha.90}"}},"stronger":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.90}","Light":"{color.scale.zinc-950-alpha.90}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.20}","Light":"{color.scale.zinc-50-alpha.30}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-50p}","Light":"{color.scale.red.alpha-50p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-50p}","Light":"{color.scale.orange.alpha-50p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-50p}","Light":"{color.scale.blue.alpha-50p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-50p}","Light":"{color.scale.green.alpha-50p}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.15}","Light":"{color.scale.zinc-950-alpha.15}"}},"input-focused":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.90}","Light":"{color.scale.zinc-950-alpha.90}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.10}","Light":"{color.scale.zinc-50-alpha.10}"}},"brand-stronger":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"caution-stronger":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-50p}","Light":"{color.scale.yellow.alpha-50p}"}},"debug-stronger":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-50p}","Light":"{color.scale.violet.alpha-50p}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.zinc-950-alpha.10}"}},"rb-stronger":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"navy-stronger":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}}},"fill":{"danger-subtle":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-30p}","Light":"{color.scale.red.alpha-30p}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-subtle":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-30p}","Light":"{color.scale.orange.alpha-30p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-subtle":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-30p}","Light":"{color.scale.green.alpha-30p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.500}"}},"information-subtle":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-30p}","Light":"{color.scale.blue.alpha-30p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"control surface":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.50}","Light":"{color.scale.zinc.50}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc.900}","Light":"{color.scale.zinc.100}"}},"inverse-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc.700}","Light":"{color.scale.zinc.300}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.40}","Light":"{color.scale.zinc-950-alpha.40}"}},"subtle-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.30}"}},"transparent":{"$type":"color","$value":{"Dark":"{color.scale.base.transparent}","Light":"{color.scale.base.transparent}"}},"transparent-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.100}","Light":"{color.scale.zinc.900}"}},"default-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc.300}","Light":"{color.scale.zinc.700}"}},"inverse-subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.40}","Light":"{color.scale.zinc-50-alpha.40}"}},"inverse-subtle-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.30}","Light":"{color.scale.zinc-50-alpha.30}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.10}","Light":"{color.scale.zinc-50-alpha.10}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand-subtle":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.20}","Light":"{color.scale.zinc-950-alpha.20}"}},"subtler-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.15}","Light":"{color.scale.zinc-950-alpha.15}"}},"brand-hovered":{"$type":"color","$value":{"Dark":"{color.scale.primary.strong}","Light":"{color.scale.primary.strong}"}},"control surface-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.30}","Light":"{color.scale.zinc.100}"}},"caution-subtle":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-30p}","Light":"{color.scale.yellow.alpha-30p}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"danger-subtler":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-20p}","Light":"{color.scale.red.alpha-20p}"}},"warning-subtler":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-20p}","Light":"{color.scale.orange.alpha-20p}"}},"caution-subtler":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-20p}","Light":"{color.scale.yellow.alpha-20p}"}},"success-subtler":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-20p}","Light":"{color.scale.green.alpha-20p}"}},"information-subtler":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-20p}","Light":"{color.scale.blue.alpha-20p}"}},"subtlest":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.zinc-950-alpha.10}"}},"subtlest-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"warning-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-10p}","Light":"{color.scale.orange.alpha-10p}"}},"caution-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-10p}","Light":"{color.scale.yellow.alpha-10p}"}},"information-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-10p}","Light":"{color.scale.blue.alpha-10p}"}},"success-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-10p}","Light":"{color.scale.green.alpha-10p}"}},"danger-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-10p}","Light":"{color.scale.red.alpha-10p}"}},"danger-hovered":{"$type":"color","$value":{"Dark":"{color.scale.red.600}","Light":"{color.scale.red.600}"}},"warning-hovered":{"$type":"color","$value":{"Dark":"{color.scale.orange.600}","Light":"{color.scale.orange.600}"}},"caution-hovered":{"$type":"color","$value":{"Dark":"{color.scale.yellow.500}","Light":"{color.scale.yellow.500}"}},"information-hovered":{"$type":"color","$value":{"Dark":"{color.scale.blue.600}","Light":"{color.scale.blue.600}"}},"success-hovered":{"$type":"color","$value":{"Dark":"{color.scale.green.600}","Light":"{color.scale.green.600}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug-hovered":{"$type":"color","$value":{"Dark":"{color.scale.violet.600}","Light":"{color.scale.violet.600}"}},"debug-subtle":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-30p}","Light":"{color.scale.violet.alpha-30p}"}},"debug-subtler":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-20p}","Light":"{color.scale.violet.alpha-20p}"}},"debug-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-10p}","Light":"{color.scale.violet.alpha-10p}"}},"control surface-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.25}","Light":"{color.scale.zinc.50}"}},"brand-subtler":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-30p}","Light":"{color.scale.primary.alpha-30p}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb-hovered":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.strong}","Light":"{color.scale.rainbow.strong}"}},"rb-subtle":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"rb-subtler":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-30p}","Light":"{color.scale.rainbow.alpha-30p}"}},"rb-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-10p}","Light":"{color.scale.rainbow.alpha-10p}"}},"icon-program":{"$type":"color","$value":{"Dark":"{color.scale.icon-primary}","Light":"{color.scale.icon-primary}"}},"brand-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-10p}","Light":"{color.scale.primary.alpha-10p}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy-hovered":{"$type":"color","$value":{"Dark":"{color.scale.navy.strong}","Light":"{color.scale.navy.strong}"}},"navy-subtle":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}},"navy-subtler":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-20p}","Light":"{color.scale.navy.alpha-20p}"}},"navy-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-15p}","Light":"{color.scale.navy.alpha-15p}"}}},"bg":{"dim":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.80}","Light":"{color.scale.zinc-950-alpha.50}"}},"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.950}","Light":"{color.scale.zinc.50}"}},"overlay":{"$type":"color","$value":{"Dark":"{color.scale.zinc.700}","Light":"{color.scale.zinc.100}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.base.white}","Light":"{color.scale.zinc.950}"}},"raised":{"$type":"color","$value":{"Dark":"{color.scale.custom.gray-300}","Light":"{color.scale.zinc.100}"}},"card":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.base.white}"}},"alt-1":{"$type":"color","$value":{"Dark":"{color.scale.zinc.900}","Light":"{color.scale.zinc.200}"}},"alt-2":{"$type":"color","$value":{"Dark":"{color.scale.zinc.800}","Light":"{color.scale.zinc.300}"}},"translucent":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.60}","Light":"{color.scale.zinc-50-alpha.50}"}},"overlay-high":{"$type":"color","$value":{"Dark":"{color.scale.zinc.600}","Light":"{color.scale.zinc.200}"}},"tooltip":{"$type":"color","$value":{"Dark":"{color.scale.zinc.50}","Light":"{color.scale.zinc.900}"}}}}')},m=e=>{f({text:e}),alert("복사가 완료되었습니다.")},D=e=>typeof e=="object"&&e!==null&&"$value"in e,h=(e,a=[])=>{if(D(e))return[a.join("-")];const o=[];return Object.entries(e).forEach(([r,s])=>{r.startsWith("$")||o.push(...h(s,[...a,r]))}),o},z=()=>{const e=k["scale color"];return Object.entries(e).map(([a,o])=>{const r=h(o,[a]);return{title:a,tokens:r.map(s=>`bg-scale-${s}`)}})},x=()=>{const e=L["semantic color"];return Object.entries(e).map(([a,o])=>{const r=h(o,[a]);return{title:a,tokens:r}})},i=z(),$=x(),j={backgroundColor:"#f1f1f4",backgroundImage:"linear-gradient(45deg, #bfbfc7 25%, transparent 25%), linear-gradient(-45deg, #bfbfc7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bfbfc7 75%), linear-gradient(-45deg, transparent 75%, #bfbfc7 75%)",backgroundSize:"10px 10px",backgroundPosition:"0 0, 0 5px, 5px -5px, -5px 0px"},w=e=>e.includes("alpha")||e.includes("transparent"),C=e=>e.startsWith("bg-scale-")?`--color-scale-${e.replace(/^bg-scale-/,"")}`:`--color-${e}`,N=({utility:e})=>{const a=C(e),o=w(e);return l.jsxs("button",{type:"button",className:"border-default bg-default cursor-copy rounded-md border p-2 text-left",onClick:()=>m(e),title:`Copy ${e}`,children:[l.jsx("div",{className:"border-subtle relative h-10 overflow-hidden rounded border",style:o?j:void 0,children:l.jsx("div",{className:"absolute inset-0",style:{backgroundColor:`var(${a})`}})}),l.jsx("p",{className:"text-subtle mt-2 text-sm break-all",children:e}),l.jsx("p",{className:"text-subtler mt-1 text-sm break-all",children:a})]})},u=({title:e,tokens:a})=>l.jsxs("section",{className:"border-default bg-default text-default space-y-2 rounded-lg border p-4",children:[l.jsx("h4",{className:"text-base font-semibold capitalize",children:e}),l.jsx("div",{className:"grid gap-2 sm:grid-cols-2 xl:grid-cols-3",children:a.map(o=>l.jsx(N,{utility:o},o))})]}),d=()=>{var e,a;return l.jsxs(p,{defaultValue:"scale",className:"w-full",children:[l.jsxs(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-2 z-20 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:[l.jsx(c,{value:"scale",children:"Scale"}),l.jsx(c,{value:"semantic",children:"Semantic"})]}),l.jsx(t,{value:"scale",className:"text-default",children:l.jsxs(p,{defaultValue:((e=i[0])==null?void 0:e.title)||"",className:"w-full",children:[l.jsx(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-14 z-10 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:i.map(o=>l.jsx(c,{value:o.title,children:o.title},o.title))}),i.map(o=>l.jsx(t,{value:o.title,className:"text-default",children:l.jsx(u,{title:o.title,tokens:o.tokens})},o.title))]})}),l.jsx(t,{value:"semantic",className:"text-default",children:l.jsxs(p,{defaultValue:((a=$[0])==null?void 0:a.title)||"",className:"w-full",children:[l.jsx(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-14 z-10 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:$.map(o=>l.jsx(c,{value:o.title,children:o.title},o.title))}),$.map(o=>l.jsx(t,{value:o.title,className:"text-default",children:l.jsx(u,{title:o.title,tokens:o.tokens})},o.title))]})})]})};d.__docgenInfo={description:"",methods:[],displayName:"ColorPreview"};function v(e){const a={code:"code",h1:"h1",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...y(),...e.components};return l.jsxs(l.Fragment,{children:[l.jsx(g,{title:"1.foundations/color"}),`
|
|
1
|
+
import{j as l}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as y}from"./index-B4FGfHer.js";import{b as g,U as b}from"./index-B38mYhND.js";import{d as p,e as n,f as c,g as t}from"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-Dmy2JGbm.js";import{c as f}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./iframe-DTWBaDhL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const k={"scale color":{red:{500:{$type:"color",$value:"#fb2c36"},600:{$type:"color",$value:"#e7000b"},"alpha-50p":{$type:"color",$value:"#fb2c3680"},"alpha-30p":{$type:"color",$value:"#fb2c364d"},"alpha-10p":{$type:"color",$value:"#fb2c361a"},"alpha-20p":{$type:"color",$value:"#fb2c3633"}},orange:{500:{$type:"color",$value:"#ff6900"},600:{$type:"color",$value:"#f54a00"},"alpha-50p":{$type:"color",$value:"#ff690080"},"alpha-30p":{$type:"color",$value:"#ff69004d"},"alpha-10p":{$type:"color",$value:"#ff69001a"},"alpha-20p":{$type:"color",$value:"#ff690033"}},green:{500:{$type:"color",$value:"#00c951"},600:{$type:"color",$value:"#00a63e"},"alpha-50p":{$type:"color",$value:"#00c95180"},"alpha-30p":{$type:"color",$value:"#00c9514d"},"alpha-10p":{$type:"color",$value:"#00c9511a"},"alpha-20p":{$type:"color",$value:"#00c95133"}},blue:{500:{$type:"color",$value:"#2b7fff"},600:{$type:"color",$value:"#155dfc"},"alpha-50p":{$type:"color",$value:"#2b7fff80"},"alpha-30p":{$type:"color",$value:"#2b7fff4d"},"alpha-10p":{$type:"color",$value:"#2b7fff1a"},"alpha-20p":{$type:"color",$value:"#2b7fff33"}},"zinc-950-alpha":{5:{$type:"color",$value:"#09090b0d"},10:{$type:"color",$value:"#09090b1a"},15:{$type:"color",$value:"#09090b26"},20:{$type:"color",$value:"#09090b33"},25:{$type:"color",$value:"#09090b40"},30:{$type:"color",$value:"#09090b4d"},40:{$type:"color",$value:"#09090b66"},50:{$type:"color",$value:"#09090b80"},60:{$type:"color",$value:"#09090b99"},70:{$type:"color",$value:"#09090bb3"},75:{$type:"color",$value:"#09090bbf"},80:{$type:"color",$value:"#09090bcc"},85:{$type:"color",$value:"#09090bd9"},90:{$type:"color",$value:"#09090be6"},95:{$type:"color",$value:"#09090bf2"}},"zinc-50-alpha":{5:{$type:"color",$value:"#fafafa0d"},10:{$type:"color",$value:"#fafafa1a"},15:{$type:"color",$value:"#fafafa26"},20:{$type:"color",$value:"#fafafa33"},25:{$type:"color",$value:"#fafafa40"},30:{$type:"color",$value:"#fafafa4d"},40:{$type:"color",$value:"#fafafa66"},50:{$type:"color",$value:"#fafafa80"},60:{$type:"color",$value:"#fafafa99"},70:{$type:"color",$value:"#fafafab3"},75:{$type:"color",$value:"#fafafabf"},80:{$type:"color",$value:"#fafafacc"},85:{$type:"color",$value:"#fafafad9"},90:{$type:"color",$value:"#fafafae6"},95:{$type:"color",$value:"#fafafaf2"}},zinc:{50:{$type:"color",$value:"#fafafa"},100:{$type:"color",$value:"#f4f4f5"},200:{$type:"color",$value:"#e4e4e7"},300:{$type:"color",$value:"#d4d4d8"},400:{$type:"color",$value:"#9f9fa9"},500:{$type:"color",$value:"#71717b"},600:{$type:"color",$value:"#52525c"},700:{$type:"color",$value:"#3f3f46"},800:{$type:"color",$value:"#232326"},900:{$type:"color",$value:"#18181b"},950:{$type:"color",$value:"#09090b"}},base:{black:{$type:"color",$value:"#000000"},transparent:{$type:"color",$value:"#ffffff00"},white:{$type:"color",$value:"#ffffff"}},yellow:{400:{$type:"color",$value:"#fcc800"},500:{$type:"color",$value:"#efb100"},"alpha-50p":{$type:"color",$value:"#fcc80080"},"alpha-30p":{$type:"color",$value:"#fcc8004d"},"alpha-10p":{$type:"color",$value:"#fcc8001a"},"alpha-20p":{$type:"color",$value:"#fcc80033"}},primary:{"alpha-10p":{$type:"color",$value:"#155dfc1a"},"alpha-30p":{$type:"color",$value:"#155dfc4d"},stronger:{$type:"color",$value:"#003baf"},strong:{$type:"color",$value:"#154dd0"},"alpha-50p":{$type:"color",$value:"#155dfc80"},normal:{$type:"color",$value:"#155dfc"}},custom:{"gray-100":{$type:"color",$value:"#18181a"},"gray-200":{$type:"color",$value:"#1f1f22"},"gray-300":{$type:"color",$value:"#2a2a2d"}},violet:{500:{$type:"color",$value:"#8e51ff"},600:{$type:"color",$value:"#7f22fe"},"alpha-50p":{$type:"color",$value:"#8e51ff80"},"alpha-30p":{$type:"color",$value:"#8e51ff4d"},"alpha-20p":{$type:"color",$value:"#8e51ff33"},"alpha-10p":{$type:"color",$value:"#8e51ff1a"}},rainbow:{normal:{$type:"color",$value:"#e6331b"},strong:{$type:"color",$value:"#cf2d18"},stronger:{$type:"color",$value:"#b82815"},"alpha-50p":{$type:"color",$value:"#e6331b80"},"alpha-30p":{$type:"color",$value:"#e6331b4d"},"alpha-10p":{$type:"color",$value:"#e6331b1a"}},"icon-primary":{$type:"color",$value:"#5c9cff"},navy:{normal:{$type:"color",$value:"#0b558c"},strong:{$type:"color",$value:"#094a7a"},stronger:{$type:"color",$value:"#073e67"},"alpha-50p":{$type:"color",$value:"#0b558c80"},"alpha-30p":{$type:"color",$value:"#082a6c4d"},"alpha-10p":{$type:"color",$value:"#082a6c1a"},"alpha-20p":{$type:"color",$value:"#0b558c33"},"alpha-15p":{$type:"color",$value:"#0b558c26"}}}},L={"semantic color":JSON.parse('{"fg":{"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.50}","Light":"{color.scale.zinc.950}"}},"danger-subtle":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-30p}","Light":"{color.scale.red.alpha-50p}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-subtle":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-50p}","Light":"{color.scale.orange.alpha-50p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-subtle":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-50p}","Light":"{color.scale.green.alpha-50p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.600}"}},"information-subtle":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-50p}","Light":"{color.scale.blue.alpha-50p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.20}","Light":"{color.scale.zinc-950-alpha.25}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc.950}","Light":"{color.scale.zinc.50}"}},"subtlest":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.40}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.60}","Light":"{color.scale.zinc-950-alpha.70}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.40}","Light":"{color.scale.zinc-950-alpha.60}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.15}","Light":"{color.scale.zinc-50-alpha.20}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand-subtle":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"default-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.80}","Light":"{color.scale.zinc-950-alpha.80}"}},"brand-hovered":{"$type":"color","$value":{"Dark":"{color.scale.primary.strong}","Light":"{color.scale.primary.strong}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"caution-subtle":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-50p}","Light":"{color.scale.yellow.alpha-50p}"}},"static-white":{"$type":"color","$value":{"Dark":"{color.scale.base.white}","Light":"{color.scale.base.white}"}},"static-white-subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc.500}","Light":"{color.scale.zinc.500}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug-subtle":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-50p}","Light":"{color.scale.violet.alpha-50p}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb-subtle":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy-subtle":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}},"navy-hovered":{"$type":"color","$value":{"Dark":"{color.scale.navy.strong}","Light":"{color.scale.navy.strong}"}}},"border":{"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.20}"}},"danger-stronger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-stronger":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-stronger":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.500}"}},"information-stronger":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"inverse-stronger":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.90}","Light":"{color.scale.zinc-50-alpha.90}"}},"stronger":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.90}","Light":"{color.scale.zinc-950-alpha.90}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.20}","Light":"{color.scale.zinc-50-alpha.30}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-50p}","Light":"{color.scale.red.alpha-50p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-50p}","Light":"{color.scale.orange.alpha-50p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-50p}","Light":"{color.scale.blue.alpha-50p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-50p}","Light":"{color.scale.green.alpha-50p}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.15}","Light":"{color.scale.zinc-950-alpha.15}"}},"input-focused":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.90}","Light":"{color.scale.zinc-950-alpha.90}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.10}","Light":"{color.scale.zinc-50-alpha.10}"}},"brand-stronger":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"caution-stronger":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-50p}","Light":"{color.scale.yellow.alpha-50p}"}},"debug-stronger":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-50p}","Light":"{color.scale.violet.alpha-50p}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.zinc-950-alpha.10}"}},"rb-stronger":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"navy-stronger":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}}},"fill":{"danger-subtle":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-30p}","Light":"{color.scale.red.alpha-30p}"}},"danger":{"$type":"color","$value":{"Dark":"{color.scale.red.500}","Light":"{color.scale.red.500}"}},"warning-subtle":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-30p}","Light":"{color.scale.orange.alpha-30p}"}},"warning":{"$type":"color","$value":{"Dark":"{color.scale.orange.500}","Light":"{color.scale.orange.500}"}},"success-subtle":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-30p}","Light":"{color.scale.green.alpha-30p}"}},"success":{"$type":"color","$value":{"Dark":"{color.scale.green.500}","Light":"{color.scale.green.500}"}},"information-subtle":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-30p}","Light":"{color.scale.blue.alpha-30p}"}},"information":{"$type":"color","$value":{"Dark":"{color.scale.blue.500}","Light":"{color.scale.blue.500}"}},"disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"control surface":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.50}","Light":"{color.scale.zinc.50}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.zinc.900}","Light":"{color.scale.zinc.100}"}},"inverse-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc.700}","Light":"{color.scale.zinc.300}"}},"subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.40}","Light":"{color.scale.zinc-950-alpha.40}"}},"subtle-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.30}","Light":"{color.scale.zinc-950-alpha.30}"}},"transparent":{"$type":"color","$value":{"Dark":"{color.scale.base.transparent}","Light":"{color.scale.base.transparent}"}},"transparent-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.100}","Light":"{color.scale.zinc.900}"}},"default-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc.300}","Light":"{color.scale.zinc.700}"}},"inverse-subtle":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.40}","Light":"{color.scale.zinc-50-alpha.40}"}},"inverse-subtle-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.30}","Light":"{color.scale.zinc-50-alpha.30}"}},"inverse-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.10}","Light":"{color.scale.zinc-50-alpha.10}"}},"brand":{"$type":"color","$value":{"Dark":"{color.scale.primary.normal}","Light":"{color.scale.primary.normal}"}},"brand-subtle":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-50p}","Light":"{color.scale.primary.alpha-50p}"}},"subtler":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.20}","Light":"{color.scale.zinc-950-alpha.20}"}},"subtler-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.15}","Light":"{color.scale.zinc-950-alpha.15}"}},"brand-hovered":{"$type":"color","$value":{"Dark":"{color.scale.primary.strong}","Light":"{color.scale.primary.strong}"}},"control surface-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.30}","Light":"{color.scale.zinc.100}"}},"caution-subtle":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-30p}","Light":"{color.scale.yellow.alpha-30p}"}},"caution":{"$type":"color","$value":{"Dark":"{color.scale.yellow.400}","Light":"{color.scale.yellow.400}"}},"danger-subtler":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-20p}","Light":"{color.scale.red.alpha-20p}"}},"warning-subtler":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-20p}","Light":"{color.scale.orange.alpha-20p}"}},"caution-subtler":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-20p}","Light":"{color.scale.yellow.alpha-20p}"}},"success-subtler":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-20p}","Light":"{color.scale.green.alpha-20p}"}},"information-subtler":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-20p}","Light":"{color.scale.blue.alpha-20p}"}},"subtlest":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.zinc-950-alpha.10}"}},"subtlest-hovered":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.5}","Light":"{color.scale.zinc-950-alpha.5}"}},"warning-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.orange.alpha-10p}","Light":"{color.scale.orange.alpha-10p}"}},"caution-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.yellow.alpha-10p}","Light":"{color.scale.yellow.alpha-10p}"}},"information-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.blue.alpha-10p}","Light":"{color.scale.blue.alpha-10p}"}},"success-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.green.alpha-10p}","Light":"{color.scale.green.alpha-10p}"}},"danger-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.red.alpha-10p}","Light":"{color.scale.red.alpha-10p}"}},"danger-hovered":{"$type":"color","$value":{"Dark":"{color.scale.red.600}","Light":"{color.scale.red.600}"}},"warning-hovered":{"$type":"color","$value":{"Dark":"{color.scale.orange.600}","Light":"{color.scale.orange.600}"}},"caution-hovered":{"$type":"color","$value":{"Dark":"{color.scale.yellow.500}","Light":"{color.scale.yellow.500}"}},"information-hovered":{"$type":"color","$value":{"Dark":"{color.scale.blue.600}","Light":"{color.scale.blue.600}"}},"success-hovered":{"$type":"color","$value":{"Dark":"{color.scale.green.600}","Light":"{color.scale.green.600}"}},"debug":{"$type":"color","$value":{"Dark":"{color.scale.violet.500}","Light":"{color.scale.violet.500}"}},"debug-hovered":{"$type":"color","$value":{"Dark":"{color.scale.violet.600}","Light":"{color.scale.violet.600}"}},"debug-subtle":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-30p}","Light":"{color.scale.violet.alpha-30p}"}},"debug-subtler":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-20p}","Light":"{color.scale.violet.alpha-20p}"}},"debug-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.violet.alpha-10p}","Light":"{color.scale.violet.alpha-10p}"}},"control surface-disabled":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.25}","Light":"{color.scale.zinc.50}"}},"brand-subtler":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-30p}","Light":"{color.scale.primary.alpha-30p}"}},"rb":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.normal}","Light":"{color.scale.rainbow.normal}"}},"rb-hovered":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.strong}","Light":"{color.scale.rainbow.strong}"}},"rb-subtle":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-50p}","Light":"{color.scale.rainbow.alpha-50p}"}},"rb-subtler":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-30p}","Light":"{color.scale.rainbow.alpha-30p}"}},"rb-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.rainbow.alpha-10p}","Light":"{color.scale.rainbow.alpha-10p}"}},"icon-program":{"$type":"color","$value":{"Dark":"{color.scale.icon-primary}","Light":"{color.scale.icon-primary}"}},"brand-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.primary.alpha-10p}","Light":"{color.scale.primary.alpha-10p}"}},"navy":{"$type":"color","$value":{"Dark":"{color.scale.navy.normal}","Light":"{color.scale.navy.normal}"}},"navy-hovered":{"$type":"color","$value":{"Dark":"{color.scale.navy.strong}","Light":"{color.scale.navy.strong}"}},"navy-subtle":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-50p}","Light":"{color.scale.navy.alpha-50p}"}},"navy-subtler":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-20p}","Light":"{color.scale.navy.alpha-20p}"}},"navy-subtlest":{"$type":"color","$value":{"Dark":"{color.scale.navy.alpha-15p}","Light":"{color.scale.navy.alpha-15p}"}}},"bg":{"dim":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.80}","Light":"{color.scale.zinc-950-alpha.50}"}},"default":{"$type":"color","$value":{"Dark":"{color.scale.zinc.950}","Light":"{color.scale.zinc.50}"}},"overlay":{"$type":"color","$value":{"Dark":"{color.scale.zinc.700}","Light":"{color.scale.zinc.100}"}},"inverse":{"$type":"color","$value":{"Dark":"{color.scale.base.white}","Light":"{color.scale.zinc.950}"}},"raised":{"$type":"color","$value":{"Dark":"{color.scale.custom.gray-300}","Light":"{color.scale.zinc.100}"}},"card":{"$type":"color","$value":{"Dark":"{color.scale.zinc-50-alpha.10}","Light":"{color.scale.base.white}"}},"alt-1":{"$type":"color","$value":{"Dark":"{color.scale.zinc.900}","Light":"{color.scale.zinc.200}"}},"alt-2":{"$type":"color","$value":{"Dark":"{color.scale.zinc.800}","Light":"{color.scale.zinc.300}"}},"translucent":{"$type":"color","$value":{"Dark":"{color.scale.zinc-950-alpha.60}","Light":"{color.scale.zinc-50-alpha.50}"}},"overlay-high":{"$type":"color","$value":{"Dark":"{color.scale.zinc.600}","Light":"{color.scale.zinc.200}"}},"tooltip":{"$type":"color","$value":{"Dark":"{color.scale.zinc.50}","Light":"{color.scale.zinc.900}"}}}}')},m=e=>{f({text:e}),alert("복사가 완료되었습니다.")},D=e=>typeof e=="object"&&e!==null&&"$value"in e,h=(e,a=[])=>{if(D(e))return[a.join("-")];const o=[];return Object.entries(e).forEach(([r,s])=>{r.startsWith("$")||o.push(...h(s,[...a,r]))}),o},z=()=>{const e=k["scale color"];return Object.entries(e).map(([a,o])=>{const r=h(o,[a]);return{title:a,tokens:r.map(s=>`bg-scale-${s}`)}})},x=()=>{const e=L["semantic color"];return Object.entries(e).map(([a,o])=>{const r=h(o,[a]);return{title:a,tokens:r}})},i=z(),$=x(),j={backgroundColor:"#f1f1f4",backgroundImage:"linear-gradient(45deg, #bfbfc7 25%, transparent 25%), linear-gradient(-45deg, #bfbfc7 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bfbfc7 75%), linear-gradient(-45deg, transparent 75%, #bfbfc7 75%)",backgroundSize:"10px 10px",backgroundPosition:"0 0, 0 5px, 5px -5px, -5px 0px"},w=e=>e.includes("alpha")||e.includes("transparent"),C=e=>e.startsWith("bg-scale-")?`--color-scale-${e.replace(/^bg-scale-/,"")}`:`--color-${e}`,N=({utility:e})=>{const a=C(e),o=w(e);return l.jsxs("button",{type:"button",className:"border-default bg-default cursor-copy rounded-md border p-2 text-left",onClick:()=>m(e),title:`Copy ${e}`,children:[l.jsx("div",{className:"border-subtle relative h-10 overflow-hidden rounded border",style:o?j:void 0,children:l.jsx("div",{className:"absolute inset-0",style:{backgroundColor:`var(${a})`}})}),l.jsx("p",{className:"text-subtle mt-2 text-sm break-all",children:e}),l.jsx("p",{className:"text-subtler mt-1 text-sm break-all",children:a})]})},u=({title:e,tokens:a})=>l.jsxs("section",{className:"border-default bg-default text-default space-y-2 rounded-lg border p-4",children:[l.jsx("h4",{className:"text-base font-semibold capitalize",children:e}),l.jsx("div",{className:"grid gap-2 sm:grid-cols-2 xl:grid-cols-3",children:a.map(o=>l.jsx(N,{utility:o},o))})]}),d=()=>{var e,a;return l.jsxs(p,{defaultValue:"scale",className:"w-full",children:[l.jsxs(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-2 z-20 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:[l.jsx(c,{value:"scale",children:"Scale"}),l.jsx(c,{value:"semantic",children:"Semantic"})]}),l.jsx(t,{value:"scale",className:"text-default",children:l.jsxs(p,{defaultValue:((e=i[0])==null?void 0:e.title)||"",className:"w-full",children:[l.jsx(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-14 z-10 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:i.map(o=>l.jsx(c,{value:o.title,children:o.title},o.title))}),i.map(o=>l.jsx(t,{value:o.title,className:"text-default",children:l.jsx(u,{title:o.title,tokens:o.tokens})},o.title))]})}),l.jsx(t,{value:"semantic",className:"text-default",children:l.jsxs(p,{defaultValue:((a=$[0])==null?void 0:a.title)||"",className:"w-full",children:[l.jsx(n,{className:"border-default bg-default text-default supports-[backdrop-filter]:bg-default sticky top-14 z-10 mb-3 rounded-lg border p-1 shadow-sm backdrop-blur",children:$.map(o=>l.jsx(c,{value:o.title,children:o.title},o.title))}),$.map(o=>l.jsx(t,{value:o.title,className:"text-default",children:l.jsx(u,{title:o.title,tokens:o.tokens})},o.title))]})})]})};d.__docgenInfo={description:"",methods:[],displayName:"ColorPreview"};function v(e){const a={code:"code",h1:"h1",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...y(),...e.components};return l.jsxs(l.Fragment,{children:[l.jsx(g,{title:"1.foundations/color"}),`
|
|
2
2
|
`,l.jsx(a.h1,{id:"color",children:"Color"}),`
|
|
3
3
|
`,l.jsxs(a.p,{children:[l.jsx(a.code,{children:"rb-token.css"}),"에 정의된 색상 토큰 전체를 미리보기에서 확인합니다."]}),`
|
|
4
4
|
`,l.jsx(a.pre,{children:l.jsx(a.code,{className:"language-tsx",children:`<div className="bg-default text-default border border-default" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as c}from"./index-B4FGfHer.js";import{b as l,U as r}from"./index-
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as c}from"./index-B4FGfHer.js";import{b as l,U as r}from"./index-B38mYhND.js";import{c as o}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./index-Dmy2JGbm.js";import"./iframe-DTWBaDhL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const $={0:{$type:"spacing",$value:0},1:{$type:"spacing",$value:4},2:{$type:"spacing",$value:8},3:{$type:"spacing",$value:12},4:{$type:"spacing",$value:16},5:{$type:"spacing",$value:20},6:{$type:"spacing",$value:24},7:{$type:"spacing",$value:28},8:{$type:"spacing",$value:32},9:{$type:"spacing",$value:36},10:{$type:"spacing",$value:40},11:{$type:"spacing",$value:44},12:{$type:"spacing",$value:48},14:{$type:"spacing",$value:56},16:{$type:"spacing",$value:64},20:{$type:"spacing",$value:80},24:{$type:"spacing",$value:96},28:{$type:"spacing",$value:112},32:{$type:"spacing",$value:128},36:{$type:"spacing",$value:144},40:{$type:"spacing",$value:160},44:{$type:"spacing",$value:176},48:{$type:"spacing",$value:192},50:{$type:"spacing",$value:200},"3_5":{$type:"spacing",$value:14},"1_5":{$type:"spacing",$value:6},"0_5":{$type:"spacing",$value:2},"2_5":{$type:"spacing",$value:10}},u={spacing:$},d=e=>`${e/16}rem`,n=e=>Number(e.replace("_",".")),g=Object.entries(u.spacing).sort(([e],[s])=>n(e)-n(s)).map(([e,s])=>({token:`spacing-${e}`,utility:`p-${e}`,value:d(s.$value)})),m=e=>{o({text:e}),alert("복사가 완료되었습니다.")},i=()=>a.jsx("div",{className:"border-default bg-default text-default space-y-2 rounded-lg border p-4",children:g.map(({token:e,utility:s,value:t})=>a.jsxs("button",{type:"button",className:"border-subtle grid w-full cursor-copy grid-cols-[180px_1fr] items-center gap-3 rounded-md border p-2 text-left",onClick:()=>m(s),title:`Copy ${s}`,children:[a.jsx("p",{className:"text-subtle text-xs",children:s}),a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"bg-fill-brand h-2 rounded-full",style:{width:t}}),a.jsx("span",{className:"text-subtle text-sm",children:t})]})]},e))});i.__docgenInfo={description:"",methods:[],displayName:"SpacingPreview"};function p(e){const s={code:"code",h1:"h1",p:"p",pre:"pre",...c(),...e.components};return a.jsxs(a.Fragment,{children:[a.jsx(l,{title:"1.foundations/spacing"}),`
|
|
2
2
|
`,a.jsx(s.h1,{id:"spacing",children:"Spacing"}),`
|
|
3
3
|
`,a.jsxs(s.p,{children:[a.jsx(s.code,{children:"--spacing-*"})," 전체 토큰을 미리보기에서 확인합니다."]}),`
|
|
4
4
|
`,a.jsx(s.pre,{children:a.jsx(s.code,{className:"language-tsx",children:`<div className="p-4 gap-2" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-B4FGfHer.js";import{b as n,U as a}from"./index-
|
|
1
|
+
import{j as d}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-B4FGfHer.js";import{b as n,U as a}from"./index-B38mYhND.js";import{c as u}from"./browserUtils-CQM9Za7e.js";import"./index-ChsGqxH_.js";import"./index-Dmy2JGbm.js";import"./iframe-DTWBaDhL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";const i={"rounded-full":{$type:"borderRadius",$value:9999},"rounded-4xl":{$type:"borderRadius",$value:32},"rounded-3xl":{$type:"borderRadius",$value:24},"rounded-2xl":{$type:"borderRadius",$value:16},"rounded-xl":{$type:"borderRadius",$value:12},"rounded-sm":{$type:"borderRadius",$value:4},"rounded-lg":{$type:"borderRadius",$value:8},"rounded-md":{$type:"borderRadius",$value:6},"rounded-xs":{$type:"borderRadius",$value:2}},l={rounded:i},c=e=>`${e/16}rem`,m=Object.entries(l.rounded).map(([e,r])=>({token:e,value:c(r.$value)})),p=e=>{u({text:e}),alert("복사가 완료되었습니다.")},o=()=>d.jsx("div",{className:"grid gap-3 md:grid-cols-3",children:m.map(({token:e,value:r})=>d.jsxs("button",{type:"button",className:"border-default bg-default text-default cursor-copy rounded-md border p-3 text-left",onClick:()=>p(e),title:`Copy ${e}`,children:[d.jsx("div",{className:"border-subtle bg-fill-subtler h-16 border",style:{borderRadius:r}}),d.jsx("p",{className:"text-subtle mt-2 text-sm",children:e}),d.jsx("p",{className:"text-subtler mt-1 text-sm",children:r})]},e))});o.__docgenInfo={description:"",methods:[],displayName:"RadiusPreview"};function s(e){const r={code:"code",h1:"h1",p:"p",pre:"pre",...t(),...e.components};return d.jsxs(d.Fragment,{children:[d.jsx(n,{title:"1.foundations/radius"}),`
|
|
2
2
|
`,d.jsx(r.h1,{id:"radius",children:"Radius"}),`
|
|
3
3
|
`,d.jsxs(r.p,{children:[d.jsx(r.code,{children:"--radius-*"})," 전체 토큰을 미리보기에서 확인합니다."]}),`
|
|
4
4
|
`,d.jsx(r.pre,{children:d.jsx(r.code,{className:"language-tsx",children:`<div className="rounded-xs" />
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B4FGfHer.js","./index-Dmy2JGbm.js","./index-ChsGqxH_.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as l}from"./iframe-
|
|
2
|
+
import{_ as l}from"./iframe-DTWBaDhL.js";import{r as s,R as n}from"./index-Dmy2JGbm.js";import{H as p,A as h,C as E,D as d}from"./index-B38mYhND.js";import{c as R}from"./client-DTf7SId2.js";import"./index-ChsGqxH_.js";import"./jsx-runtime-BTJTZTIL.js";import"./index-CT3U1fyk.js";import"./index-BRq5TIsn.js";import"./index-DgH-xKnr.js";import"./index-DrFu-skq.js";var i=new Map;function v(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var f=({callback:e,children:t})=>{let r=s.useRef();return s.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}});var w=async(e,t,r)=>{let o=await x(t,r);if(v()){o.render(e);return}let{promise:a,resolve:m}=Promise.withResolvers();return o.render(s.createElement(f,{callback:m},e)),a},_=(e,t)=>{let r=i.get(e);r&&(r.unmount(),i.delete(e))},x=async(e,t)=>{let r=i.get(e);return r||(r=R.createRoot(e,t),i.set(e,r)),r},g={code:E,a:h,...p},y=class extends s.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:n.createElement(n.Fragment,null,t)}},F=class{constructor(){this.render=async(e,t,r)=>{let o={...g,...t==null?void 0:t.components},a=d;return new Promise((m,c)=>{l(async()=>{const{MDXProvider:u}=await import("./index-B4FGfHer.js");return{MDXProvider:u}},__vite__mapDeps([0,1,2]),import.meta.url).then(({MDXProvider:u})=>w(n.createElement(y,{showException:c,key:Math.random()},n.createElement(u,{components:o},n.createElement(a,{context:e,docsParameter:t}))),r)).then(()=>m())})},this.unmount=e=>{_(e)}}};export{F as DocsRenderer,g as defaultComponents};
|
package/cli/storybook-dist/assets/{NxAvatar.stories-B3OxXBgc.js → NxAvatar.stories-vhMGYFV3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{c as a}from"./react-resizable-panels.browser-CYcsrUgg.js";import{V as p}from"./SideNumberInput-
|
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{c as a}from"./react-resizable-panels.browser-CYcsrUgg.js";import{V as p}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const l=5177,u=()=>{if(typeof window>"u")return"";const e=window.__RB_ASSETS_BASE_URL__;if(e)return e;const{protocol:r,hostname:s}=window.location;return r==="file:"||!s?`http://127.0.0.1:${l}`:`${r}//${s}:${l}`},f=e=>{const r=e.startsWith("/")?e:`/${e}`;return`${u()}${r}`},g=e=>f(`/imgs${e.startsWith("/")?e:`/${e}`}`),o=({className:e,imgSize:r,src:s,name:i})=>t.jsxs(p,{className:a("NxAvatar","relative gap-0.5",e),alignItems:"center",children:[t.jsx("div",{className:"relative",style:{width:r,height:r},children:t.jsx("div",{className:a("bg-fill-subtle absolute top-0 left-0 h-full w-full overflow-hidden rounded-full"),children:t.jsx("img",{src:s||g("profile.svg"),alt:i||"avatar",className:"inline-block h-full w-full object-cover object-center align-middle"})})}),t.jsx("span",{className:"typo-compact-xs2-medium text-fg-default !text-[0.625rem] !leading-none !font-medium",children:i})]});o.__docgenInfo={description:"",methods:[],displayName:"NxAvatar",props:{className:{required:!1,tsType:{name:"string"},description:""},imgSize:{required:!1,tsType:{name:'CSSProperties["width"]',raw:'CSSProperties["width"]'},description:""},src:{required:!1,tsType:{name:"string"},description:""},name:{required:!1,tsType:{name:"string"},description:""}}};const T={component:o,tags:["autodocs"]},x=e=>t.jsx(o,{...e}),n={parameters:{docs:{description:{story:""}}},args:{imgSize:"3rem"},render:x};var c,d,m;n.parameters={...n.parameters,docs:{...(c=n.parameters)==null?void 0:c.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
package/cli/storybook-dist/assets/{NxButton.stories-UTqX8ZkA.js → NxButton.stories-g3PPaKCF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{S as u,c as b}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bk as y,bl as x}from"./SideNumberInput-
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{S as u,c as b}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bk as y,bl as x}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const n=({className:a,variant:e,rippleOption:p,loading:s,children:c,...o})=>r.jsx(y,{...p,children:r.jsx(u,{className:b("NxButton","relative rounded-sm text-base select-none",{"pointer-events-none":s,"border-1 border-slate-600 bg-slate-700":e==="default","bg-slate-700":e==="tertiary","border-1 border-blue-500 bg-blue-500 text-white":e==="primary","border-1 border-slate-600 bg-slate-600 text-slate-400 opacity-50":e==="primary"&&o.disabled,"border-1 border-slate-600 bg-[#2d3748] text-slate-100":e==="secondary","border-1 border-slate-600 bg-slate-600 text-slate-100":e==="cancel","border-1 border-[#06b6d4] bg-[#06b6d4] text-white hover:bg-[#0891b2]":e==="cyan"},a),...o,onContextMenu:m=>{m.preventDefault()},children:s?r.jsx(x,{}):c})});n.__docgenInfo={description:"",methods:[],displayName:"NxButton",props:{className:{required:!1,tsType:{name:"string"},description:""},rippleOption:{required:!1,tsType:{name:"RippleOption"},description:""},loading:{required:!1,tsType:{name:"boolean"},description:""},variant:{required:!1,tsType:{name:"union",raw:`| "default"
|
|
2
2
|
| "primary"
|
|
3
3
|
| "secondary"
|
|
4
4
|
| "tertiary"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{a as m,u as c,c as a}from"./react-resizable-panels.browser-CYcsrUgg.js";import{br as d}from"./SideNumberInput-
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{a as m,u as c,c as a}from"./react-resizable-panels.browser-CYcsrUgg.js";import{br as d}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";/**
|
|
2
2
|
* @license lucide-react v0.486.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{c as p}from"./react-resizable-panels.browser-CYcsrUgg.js";import{b9 as a}from"./SideNumberInput-
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{c as p}from"./react-resizable-panels.browser-CYcsrUgg.js";import{b9 as a}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const s=({className:e,...l})=>r.jsx(a,{className:p("Pagination","w-full gap-0 pt-4 pb-4","[&>li]:flex [&>li]:h-7 [&>li]:w-7 [&>li]:shrink-0 [&>li]:items-center [&>li]:justify-center","[&>li>button]:flex [&>li>button]:size-full [&>li>button]:items-center [&>li>button]:justify-center [&>li>button]:bg-transparent","[&>li>button]:text-fg-subtler [&>li>button:not(.pagination-page):not(:disabled)]:text-fg-default","[&>li]:typo-compact-xs2-semibold","[&>li>.selected]:outline-border-default [&>li>.selected]:text-fg-default [&>li>.selected]:outline-1","[&>li>.pagination-next]:m-0 [&>li>.pagination-next-double]:m-0 [&>li>.pagination-prev]:m-0 [&>li>.pagination-prev-double]:m-0",e),...l});s.__docgenInfo={description:"",methods:[],displayName:"NxPagination",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const N={component:a,tags:["autodocs"]},m=e=>r.jsx(s,{...e}),t={parameters:{docs:{description:{story:""}}},args:{},render:m};var i,n,o;t.parameters={...t.parameters,docs:{...(i=t.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as x}from"./jsx-runtime-BTJTZTIL.js";import{m as w}from"./SideNumberInput-
|
|
1
|
+
import{j as x}from"./jsx-runtime-BTJTZTIL.js";import{m as w}from"./SideNumberInput-CrfOgiZy.js";import{u as b,c as E}from"./react-resizable-panels.browser-CYcsrUgg.js";import{r as i}from"./index-Dmy2JGbm.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const u=({className:c,variant:m,onButtonDown:a,onButtonUp:e,onButtonCancel:d,...p})=>{const t=i.useRef(!1),{theme:P}=b(),h=i.useCallback(()=>{t.current||(a==null||a(),t.current=!0)},[a]),n=i.useCallback(()=>{t.current&&(t.current=!1,e==null||e())},[e]),l=i.useCallback(()=>{t.current&&(t.current=!1,d?d():e==null||e())},[d,e]);return i.useEffect(()=>{const r=()=>{n==null||n()},s=()=>{l()};return window.addEventListener("pointerup",r),window.addEventListener("pointercancel",s),()=>{window.removeEventListener("pointerup",r),window.removeEventListener("pointercancel",s)}},[n,l]),x.jsx(w,{variant:m,className:E("NxPointerHoldButton",P==="light"&&m==="outlined"&&"outline-fg-navy text-fg-navy",c),...p,onContextMenu:r=>{r.preventDefault()},onPointerDown:r=>{var s,f;(f=(s=r.currentTarget).setPointerCapture)==null||f.call(s,r.pointerId),h()},onPointerUp:n,onPointerCancel:l,children:p.children})};u.__docgenInfo={description:"버튼을 누르고 있는 동안 특정 행동이 지속되는 버튼 컴포넌트",methods:[],displayName:"NxPointerHoldButton",props:{className:{required:!1,tsType:{name:"string"},description:""},onButtonDown:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onButtonUp:{required:!0,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},onButtonCancel:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""}},composes:["ComponentProps"]};const z={component:u,tags:["autodocs"],argTypes:{children:{control:"text",description:"버튼에 표시될 내용",table:{type:{summary:"string | ReactNode"}}},size:{control:{type:"select"},options:["default","sm","lg","icon"],description:"버튼 크기",table:{type:{summary:'"default" | "sm" | "lg" | "icon"'},defaultValue:{summary:"default"}}},disabled:{type:"boolean"}}},C=c=>x.jsx(u,{...c}),o={parameters:{docs:{description:{story:""}}},args:{children:"Hold Button",size:"sm"},render:C};var g,y,v;o.parameters={...o.parameters,docs:{...(g=o.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as g}from"./jsx-runtime-BTJTZTIL.js";import{n as v,bm as d}from"./SideNumberInput-
|
|
1
|
+
import{j as g}from"./jsx-runtime-BTJTZTIL.js";import{n as v,bm as d}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const p=e=>{if(!e)return;const r=new Date(e.replace(" ","T"));return isNaN(r.getTime())?void 0:r},s=({className:e,name:r,readOnly:l,value:n,includeTime:y,handleChange:i,size:T,variant:D})=>g.jsx(v,{className:e,name:r,value:[p(n==null?void 0:n.from),p(n==null?void 0:n.to)],readOnly:l,size:T,variant:D,handleChange:(a,o,q)=>{const m=y?"YYYY-MM-DD HH:mm":"YYYY-MM-DD";i==null||i({from:a!==void 0?d(a.getTime(),m):void 0,to:o!==void 0?d(o.getTime(),m):void 0},q)}});s.__docgenInfo={description:"",methods:[],displayName:"NxRangeInput",props:{className:{required:!1,tsType:{name:"string"},description:""},name:{required:!1,tsType:{name:"string"},description:""},readOnly:{required:!1,tsType:{name:"boolean"},description:""},value:{required:!1,tsType:{name:"signature",type:"object",raw:`{
|
|
2
2
|
from: string | undefined;
|
|
3
3
|
to: string | undefined;
|
|
4
4
|
}`,signature:{properties:[{key:"from",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}},{key:"to",value:{name:"union",raw:"string | undefined",elements:[{name:"string"},{name:"undefined"}],required:!0}}]}},description:""},includeTime:{required:!1,tsType:{name:"boolean"},description:""},handleChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: SelectedDate, name: string) => void",signature:{arguments:[{type:{name:"signature",type:"object",raw:`{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as u}from"./index-Dmy2JGbm.js";import{u as b,c as n}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bn as g,bo as s}from"./SideNumberInput-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as u}from"./index-Dmy2JGbm.js";import{u as b,c as n}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bn as g,bo as s}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const t=u.forwardRef(({className:r,dropBoxClassName:d,modalBoxClassName:c,...m},x)=>{const{theme:a}=b();return e.jsx(g,{ref:x,className:n("NxSelectBox","rounded-sm",{"border-[#45556C] bg-[#314158] has-[&:focus]:border-slate-400 [&_.ico-arrow]:size-[1.1rem] [&_.ico-arrow_svg]:text-slate-400 [&_input::placeholder]:text-slate-500 [&.disabled]:opacity-70":a==="dark"},r),dropBoxClassName:n("NxSelectBox-dropBox",{"[&_.drop-box-contents]:border-slate-500 [&_.drop-box-contents]:bg-[#314158] [&_.option]:border-slate-600 [&_.option:not(:first-child)]:border-t":a==="dark"},d),modalBoxClassName:n("NxSelectBox-modalBox",{"w-fit max-w-[450px] min-w-[350px] border-slate-600 bg-slate-800 p-0 [&_.option]:border-slate-700 [&_.option:nth-of-type(1)]:border-none":a==="dark"},c),enableModal:!0,...m})});t.displayName="NxSelectBox";t.__docgenInfo={description:"",methods:[],displayName:"NxSelectBox",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const j={component:t,tags:["autodocs"],argTypes:{value:{control:"text",description:"string | number"},children:{control:!1,description:"Option 컴포넌트를 children으로 전달"},keepDropDown:{type:"boolean",description:"Option 선택 후 DropBox를 닫을지 유지할지 여부"},error:{type:"boolean"},onChange:{action:"onChange",description:"값이 변경될 때 호출되는 함수",table:{type:{summary:`(
|
|
2
2
|
e: ChangeEvent<HTMLInputElement> | { target: HTMLInputElement },
|
|
3
3
|
) => void`,detail:`
|
|
4
4
|
- e: 변경된 value의 ChangeEvent. e.target.value로 변경하려는 value값을 가져옴
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{aN as p}from"./SideNumberInput-
|
|
1
|
+
import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{aN as p}from"./SideNumberInput-CrfOgiZy.js";import{c}from"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-Dmy2JGbm.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const s=({className:r,rangeClassName:l,trackClassName:u,thumbClassName:g,...m})=>o.jsx(p,{className:c("NxSlideRange",r),...m,onContextMenu:i=>i.preventDefault()});s.__docgenInfo={description:"",methods:[],displayName:"NxSlideRange",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const j={component:s,tags:["autodocs"],argTypes:{min:{control:"number"},max:{control:"number"},trackClassName:{type:"string"},rangeClassName:{type:"string"},thumbClassName:{type:"string"}}},d=r=>o.jsx(s,{...r}),e={parameters:{docs:{description:{story:""}}},args:{min:0,max:100},render:d};var a,t,n;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
package/cli/storybook-dist/assets/{NxSwitch.stories-CqBkO5GC.js → NxSwitch.stories-D1CESdtI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as i}from"./index-Dmy2JGbm.js";import{l as h,L as S,c as m,b as j}from"./react-resizable-panels.browser-CYcsrUgg.js";import{X as v}from"./SideNumberInput-
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as i}from"./index-Dmy2JGbm.js";import{l as h,L as S,c as m,b as j}from"./react-resizable-panels.browser-CYcsrUgg.js";import{X as v}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const l=({className:s,name:t,label:c,value:n=!1,checkedValue:r=!0,unCheckedValue:x=!1,labelClassName:w,switchClassName:T,disabled:q,handleChange:o})=>{const[u]=i.useState(h.uniqueId()),[d,p]=i.useState(n),N=()=>{const f=d===r?x:r;p(f),o==null||o(f,t??"")};return i.useEffect(()=>{p(n)},[n]),a.jsxs(v,{className:m("NxSwitch","gap-2",s),inline:!0,alignItems:"center",justifyContent:"space-between",children:[!!c&&a.jsx(S,{id:t||u,className:m("leading-[normal] text-gray-300",w),children:c}),a.jsx(j,{name:t||u,disabled:q,checked:d===r,onCheckedChange:N,className:m("data-[state=unchecked]:bg-slate-500","data-[state=checked]:bg-blue-500",T)})]})};l.__docgenInfo={description:"",methods:[],displayName:"NxSwitch",props:{className:{required:!1,tsType:{name:"string"},description:""},label:{required:!1,tsType:{name:"string"},description:""},name:{required:!1,tsType:{name:"string"},description:""},value:{required:!1,tsType:{name:"union",raw:"string | number | boolean",elements:[{name:"string"},{name:"number"},{name:"boolean"}]},description:"",defaultValue:{value:"false",computed:!1}},checkedValue:{required:!1,tsType:{name:"union",raw:"string | number | boolean",elements:[{name:"string"},{name:"number"},{name:"boolean"}]},description:"",defaultValue:{value:"true",computed:!1}},unCheckedValue:{required:!1,tsType:{name:"union",raw:"string | number | boolean",elements:[{name:"string"},{name:"number"},{name:"boolean"}]},description:"",defaultValue:{value:"false",computed:!1}},labelClassName:{required:!1,tsType:{name:"string"},description:""},switchClassName:{required:!1,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},handleChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(value: AllowAny, name: string) => void",signature:{arguments:[{type:{name:"AllowAny"},name:"value"},{type:{name:"string"},name:"name"}],return:{name:"void"}}},description:""}}};const O={component:l,tags:["autodocs"]},k=s=>a.jsx(l,{...s}),e={parameters:{docs:{description:{story:""}}},args:{},render:k};var g,b,y;e.parameters={...e.parameters,docs:{...(g=e.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
package/cli/storybook-dist/assets/{NxTextArea.stories-DtysSyl4.js → NxTextArea.stories-gXgdkMpM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{r as d}from"./index-Dmy2JGbm.js";import{u as c,c as x}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bp as l}from"./SideNumberInput-
|
|
1
|
+
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{r as d}from"./index-Dmy2JGbm.js";import{u as c,c as x}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bp as l}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const r=d.forwardRef(({className:t,...p},m)=>{const{theme:i}=c();return n.jsx(l,{ref:m,className:x("NxTextArea","rounded-sm",{"border-slate-600 has-[&:focus]:border-slate-400 [&.disabled]:opacity-70 [&>textarea]:!bg-slate-700 [&>textarea]:!px-4 [&>textarea]:!text-slate-200 [&>textarea::placeholder]:!text-slate-500":i==="dark"},t),...p})});r.displayName="NxTextArea";r.__docgenInfo={description:"",methods:[],displayName:"NxTextArea",props:{className:{required:!1,tsType:{name:"string"},description:""}}};const j={component:r,tags:["autodocs"],argTypes:{maxLength:{type:"number"},error:{type:"boolean"},info:{type:"boolean"},handleChange:{action:"onChange",description:"값이 변경될 때 호출되는 함수",table:{type:{summary:"(value: string, name?: string) => void"}}}}},u=t=>n.jsx(r,{...t}),e={parameters:{docs:{description:{story:""}}},args:{},render:u};var a,s,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as m}from"./jsx-runtime-BTJTZTIL.js";import{r as x}from"./index-Dmy2JGbm.js";import{u as f,c as y}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bq as b}from"./SideNumberInput-
|
|
1
|
+
import{j as m}from"./jsx-runtime-BTJTZTIL.js";import{r as x}from"./index-Dmy2JGbm.js";import{u as f,c as y}from"./react-resizable-panels.browser-CYcsrUgg.js";import{bq as b}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const r=x.forwardRef(({className:o,onChange:a,autoComplete:c="off",...e},d)=>{const{theme:l}=f(),u=p=>{a==null||a(p)};return m.jsx(b,{ref:d,className:y("NxTextInput","h-10 rounded-sm px-4",{"border-slate-600 bg-slate-700 has-[&:focus]:border-slate-400 [&_.ico-prefix_svg]:text-slate-500 [&_input::placeholder]:text-slate-500 [&.disabled]:opacity-70":l==="dark","border-red-600":e==null?void 0:e.error,"!opacity-40":e==null?void 0:e.disabled},o),onChange:u,...e,autoComplete:c})});r.displayName="NxTextInput";r.__docgenInfo={description:"",methods:[],displayName:"NxTextInput",props:{className:{required:!1,tsType:{name:"string"},description:""},autoComplete:{defaultValue:{value:'"off"',computed:!1},required:!1}}};const R={component:r,tags:["autodocs"],argTypes:{value:{control:"text",description:"string | number"},error:{type:"boolean"},handleChange:{action:"onChange",description:"값이 변경될 때 호출되는 함수",table:{type:{summary:"(value: AllowAny, name?: string) => void"}}}}},g=o=>m.jsx(r,{...o}),t={parameters:{docs:{description:{story:""}}},args:{},render:g};var s,n,i;t.parameters={...t.parameters,docs:{...(s=t.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{A as s}from"./SideNumberInput-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{A as s}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const g={component:s,tags:["autodocs"],argTypes:{type:{control:{type:"select"},options:["transparent","fill"],table:{type:{summary:'"transparent" | "fill"'}}}}},c=a=>e.jsx("div",{className:"w-64",children:e.jsx(s,{...a})}),t={parameters:{docs:{description:{story:""}}},args:{type:"transparent",title:"Accordion Title",children:e.jsx("div",{className:"typo-compact-xs-normal text-fg-subtle flex h-12 items-center justify-center",children:"Accordion Content"})},render:c};var r,n,o;t.parameters={...t.parameters,docs:{...(r=t.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{a as c}from"./SideNumberInput-
|
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{a as c}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const h={component:c,tags:["autodocs"],argTypes:{type:{control:{type:"select"},options:["transparent","fill"],table:{type:{summary:'"transparent" | "fill"'}}}}},s=i=>t.jsxs("div",{className:"w-64",children:[t.jsx(c,{...i}),";"]}),e={parameters:{docs:{description:{story:""}}},args:{list:[{title:"Accordion Title",children:t.jsx("div",{className:"typo-compact-xs-normal text-fg-subtle flex h-12 items-center justify-center",children:"Accordion Content"})},{title:"Accordion Title",children:t.jsx("div",{className:"typo-compact-xs-normal text-fg-subtle flex h-12 items-center justify-center",children:"Accordion Content"})},{title:"Accordion Title",children:t.jsx("div",{className:"typo-compact-xs-normal text-fg-subtle flex h-12 items-center justify-center",children:"Accordion Content"})},{title:"Accordion Title",children:t.jsx("div",{className:"typo-compact-xs-normal text-fg-subtle flex h-12 items-center justify-center",children:"Accordion Content"})}]},render:s};var n,o,r;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
package/cli/storybook-dist/assets/{RBAlert.stories-CGn-c2ac.js → RBAlert.stories-DAGPBzy6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import{r as m}from"./index-Dmy2JGbm.js";import{o as a,m as p}from"./SideNumberInput-
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import{r as m}from"./index-Dmy2JGbm.js";import{o as a,m as p}from"./SideNumberInput-CrfOgiZy.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const B={component:a,tags:["autodocs"]},d=i=>{const[l,t]=m.useState(!0);return r.jsxs("div",{children:[r.jsx(p,{size:"sm",variant:"solid",onClick:()=>t(!0),children:"Open Alert"}),r.jsx(a,{...i,open:l,onOpenChange:t,resolve:()=>t(!1),onConfirm:()=>t(!1)})]})},e={parameters:{docs:{description:{story:""}}},args:{title:"Alert Modal",content:r.jsx("div",{className:"text-fg-default px-4 py-2 text-sm",children:"Alert Modal Body Text"}),buttonText:"Confirm"},render:d};var o,s,n;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
|
2
2
|
parameters: {
|
|
3
3
|
docs: {
|
|
4
4
|
description: {
|
package/cli/storybook-dist/assets/{RBBadge.stories-CBLmeoq1.js → RBBadge.stories-_5EIgPVn.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{R as l,S as o,b as p,c,d as m,e as d,f as g}from"./SideNumberInput-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{R as l,S as o,b as p,c,d as m,e as d,f as g}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const u={red:e.jsx(g,{className:"size-3 shrink-0"}),orange:e.jsx(d,{className:"size-3 shrink-0"}),green:e.jsx(m,{className:"size-3 shrink-0"}),blue:e.jsx(c,{className:"size-3 shrink-0"}),purple:e.jsx(p,{className:"size-3 shrink-0"}),gray:e.jsx(o,{className:"size-3 shrink-0"}),"gray-subtle":e.jsx(o,{className:"size-3 shrink-0"})},y=r=>{const i=r.children??(r.type==="number"?"8":"Badge Label");return e.jsx(l,{...r,leadingIcon:r.type==="transparent"?r.leadingIcon??u[r.color??"red"]:void 0,children:i})},z={component:l,tags:["autodocs"],render:y,argTypes:{type:{control:{type:"select"},options:["number","capsule","transparent"],table:{type:{summary:'"number" | "capsule" | "transparent"'}}},numberVariant:{control:{type:"select"},options:["solid","soft","outlined","ghost"],table:{type:{summary:'"solid" | "soft" | "outlined" | "ghost"'}}},color:{control:{type:"select"},options:["red","orange","green","blue","purple","gray","gray-subtle"],table:{type:{summary:'"red" | "orange" | "green" | "blue" | "purple" | "gray" | "gray-subtle"'}}},leadingIcon:{control:!1,table:{type:{summary:"ReactNode"}}},children:{control:{type:"text"}}},args:{type:"number",numberVariant:"solid",color:"red"}},s={};var t,a,n;s.parameters={...s.parameters,docs:{...(t=s.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(n=(a=s.parameters)==null?void 0:a.docs)==null?void 0:n.source}}};const B=["Playground"];export{s as Playground,B as __namedExportsOrder,z as default};
|
package/cli/storybook-dist/assets/{RBBattery.stories-oo47rbDh.js → RBBattery.stories-79bKYMPL.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as d}from"./jsx-runtime-BTJTZTIL.js";import{g as l}from"./SideNumberInput-
|
|
1
|
+
import{j as d}from"./jsx-runtime-BTJTZTIL.js";import{g as l}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const m=e=>{const i=e.showPercentLabel&&e.percent==null?0:e.percent;return d.jsx(l,{...e,percent:i})},P={component:l,tags:["autodocs"],argTypes:{status:{control:{type:"select"},table:{type:{summary:'"critical" | "low" | "normal" | "full"'}},options:["critical","low","normal","full"]},size:{control:{type:"select"},options:["xs","sm","md","lg"],table:{type:{summary:'"xs" | "sm" | "md" | "lg"'}}},borderColor:{control:{type:"color"},description:"배터리 보더 오버레이 색상을 직접 지정합니다.",table:{type:{summary:"string"}}},showPercentLabel:{control:{type:"boolean"},description:"true면 배터리 아이콘 오른쪽에 `percent` 라벨을 표시합니다.",table:{type:{summary:"boolean"}}},wrapperClassName:{control:{type:"text"},description:"아이콘+라벨 전체 wrapper에 추가되는 클래스입니다. 간격/정렬 조정용입니다.",table:{type:{summary:"string"}}},percentLabelClassName:{control:{type:"text"},description:"퍼센트 텍스트 라벨에만 적용되는 클래스입니다. 색상/타이포 조정용입니다.",table:{type:{summary:"string"}}}},args:{size:"md",status:void 0,percent:void 0,charging:!1,borderColor:void 0,showPercentLabel:!1}},r={args:{},render:m},t={args:{percent:72,showPercentLabel:!0},render:m};var o,s,a;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
|
2
2
|
args: {},
|
|
3
3
|
render: Template
|
|
4
4
|
}`,...(a=(s=r.parameters)==null?void 0:s.docs)==null?void 0:a.source}}};var n,p,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{N as i,O as m,P as p,Q as u,T as x,U as B,V as s,W as t,u as r,X as f,Y as R,m as l}from"./SideNumberInput-
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import"./index-Dmy2JGbm.js";import{N as i,O as m,P as p,Q as u,T as x,U as B,V as s,W as t,u as r,X as f,Y as R,m as l}from"./SideNumberInput-CrfOgiZy.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const z={component:i,tags:["autodocs"],argTypes:{size:{control:{type:"select"},options:["sm","md"],table:{type:{summary:'"sm" | "md"'}}}},args:{size:"md"}},e={render:({size:d})=>a.jsxs(i,{size:d,children:[a.jsx(m,{children:a.jsxs(p,{children:[a.jsx(u,{children:"Title Text"}),a.jsx(x,{children:"This is a card description."})]})}),a.jsx(B,{children:a.jsxs(s,{className:"w-full gap-6",children:[a.jsxs(s,{className:"w-full gap-2",children:[a.jsx(t,{label:"Email"}),a.jsx(r,{defaultValue:"m@example.com",type:"email",size:"sm",className:"w-full"})]}),a.jsxs(s,{className:"w-full gap-2",children:[a.jsxs(f,{className:"w-full items-start justify-between",children:[a.jsx(t,{label:"Password",className:"w-auto"}),a.jsx("span",{className:"text-fg-default typo-compact-xs-normal whitespace-nowrap",children:"Forgot your password?"})]}),a.jsx(r,{defaultValue:"Placeholder",type:"password",size:"sm",className:"w-full"})]}),a.jsx("p",{className:"text-fg-default typo-body-xs-normal",children:'The card component supports a size prop that can be set to "sm" for a more compact appearance.'})]})}),a.jsxs(R,{children:[a.jsx(l,{size:"sm",variant:"solid",className:"w-full",children:"Login"}),a.jsx(l,{size:"sm",variant:"outlined",className:"w-full",children:"Login with Google"})]})]})};var n,o,c;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
2
2
|
render: ({
|
|
3
3
|
size
|
|
4
4
|
}) => {
|
package/cli/storybook-dist/assets/{RBCheckBox.stories-sEEVrjSg.js → RBCheckBox.stories-DI_96r8j.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{C as r}from"./SideNumberInput-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{C as r}from"./SideNumberInput-CrfOgiZy.js";import{r as x}from"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const f=t=>{const l=[1,2,3,4],[a,p]=x.useState([1,2]),c=(o,h)=>{var n;Array.isArray(o)&&p(o),(n=t.handleChange)==null||n.call(t,o,h)};return e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsx(r,{...t,name:"rb-checkbox-demo-all",checkValue:l,value:a,handleChange:c,children:"전체 선택"}),l.map(o=>e.jsx(r,{...t,name:"rb-checkbox-demo",checkValue:o,value:a,handleChange:c,children:e.jsxs(e.Fragment,{children:[e.jsx("span",{children:t.children??"CheckBox Dummy Text"}),e.jsx("span",{children:o})]})},o))]}),e.jsxs("div",{className:"text-fg-default text-xs",children:["DATA: [",a.map(String).join(", "),"]"]})]})},B={component:r,tags:["autodocs"],argTypes:{size:{control:{type:"select"},options:["sm","md"],table:{type:{summary:'"sm" | "md"'}}},disabled:{control:{type:"boolean"}},readOnly:{control:{type:"boolean"}},children:{control:{type:"text"}},selected:{control:{type:"boolean"}},partial:{control:{type:"boolean"}},checkValue:{control:!1},value:{control:!1},handleChange:{control:!1}},args:{size:"sm",disabled:!1,readOnly:!1,selected:!1,partial:!1},render:f},s={};var i,d,m;s.parameters={...s.parameters,docs:{...(i=s.parameters)==null?void 0:i.docs,source:{originalSource:"{}",...(m=(d=s.parameters)==null?void 0:d.docs)==null?void 0:m.source}}};const D=["Default"];export{s as Default,D as __namedExportsOrder,B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import{h as a,i}from"./SideNumberInput-
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import{h as a,i}from"./SideNumberInput-CrfOgiZy.js";import"./index-Dmy2JGbm.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const n=c=>r.jsx(a,{...c}),h={component:a,tags:["autodocs"],argTypes:{size:{control:{type:"select"},options:["xs","xs2"]},icon:{control:!1},children:{control:!1}},args:{size:"xs",icon:r.jsx(i,{}),disabled:!1},render:n},o={};var s,t,e;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const j=["Default"];export{o as Default,j as __namedExportsOrder,h as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as f}from"./index-Dmy2JGbm.js";import{j as n}from"./SideNumberInput-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as f}from"./index-Dmy2JGbm.js";import{j as n}from"./SideNumberInput-CrfOgiZy.js";import"./react-resizable-panels.browser-CYcsrUgg.js";import"./index-DKFBREX_.js";import"./index-CT3U1fyk.js";import"./index-ChsGqxH_.js";import"./browserUtils-CQM9Za7e.js";import"./index-BRq5TIsn.js";const v=t=>e.jsx(n,{...t}),y={component:n,tags:["autodocs"],argTypes:{size:{control:{type:"select"},options:["xs","xs2"]},leadingIcon:{control:!1},trailingIcon:{control:!1}},args:{children:"버튼 라벨",size:"xs",disabled:!1},render:v},l={},r={render:t=>{const[a,g]=f.useState(["button-1"]),c=o=>x=>{g(s=>x.target.checked?s.includes(o)?s:[...s,o]:s.filter(b=>b!==o))};return e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(n,{...t,value:a,checkValue:"button-1",onChange:c("button-1"),children:"버튼 1"}),e.jsx(n,{...t,value:a,checkValue:"button-2",onChange:c("button-2"),children:"버튼 2"}),e.jsx(n,{...t,className:"w-20",value:a,checkValue:"button-3",onChange:c("button-3"),children:"버튼 3"})]}),e.jsxs("div",{className:"text-default text-xs",children:["selected: ",JSON.stringify(a)]})]})}};var u,d,i;l.parameters={...l.parameters,docs:{...(u=l.parameters)==null?void 0:u.docs,source:{originalSource:"{}",...(i=(d=l.parameters)==null?void 0:d.docs)==null?void 0:i.source}}};var h,m,p;r.parameters={...r.parameters,docs:{...(h=r.parameters)==null?void 0:h.docs,source:{originalSource:`{
|
|
2
2
|
render: args => {
|
|
3
3
|
const [selected, setSelected] = useState<Array<string | number>>(["button-1"]);
|
|
4
4
|
const handleChange = (value: string) => (e: ChangeEvent<HTMLInputElement>) => {
|