@kwantis-id3/frontend-library 1.0.0-rc.30 → 1.0.0-rc.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -326,7 +326,7 @@ import{jsx as e,jsxs as t,Fragment as n}from"@emotion/react/jsx-runtime";import*
|
|
|
326
326
|
label: DialogExitButtonContainer;
|
|
327
327
|
display: flex;
|
|
328
328
|
justify-content: flex-end;
|
|
329
|
-
`,Co=({children:n,isOpen:i,onOpen:o,onClose:r,width:l,height:c,sx:s})=>{const d=N(),g=u(!0),p=u(null);return a((()=>{const e=p.current;e&&(i?(e.showModal(),o&&o()):e.close()),g.current=!1}),[i,r,o]),t(vo,{ref:p,onCancel:e=>{e.preventDefault(),r()},$height:c,$width:l,$bgColor:d.activePalette.surface.main,$textColor:d.activePalette.surface.contrast,style:s,children:[e(Io,{children:e(Te,{"data-testid":"close-modal",onClick:r,sx:{padding:"0px",boxShadow:"none"},variant:"text",children:e(A,{icon:"material-symbols:close-rounded",width:20,height:20})})}),n]})},xo={live:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.main}),e("path",{d:"M12.6953 5L5.69531 13.4H11.9953L11.2953 19L18.2953 10.6H11.9953L12.6953 5Z",fill:n.innerColor??i.activePalette.indicator.mainFill})]})},success:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.success}),e("path",{d:"M16 9.25L10.5 14.75L8 12.25",stroke:n.innerColor??i.activePalette.indicator.successFill,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.warning}),t("g",{stroke:n.innerColor??i.activePalette.indicator.warningFill,strokeWidth:"1",transform:"scale(0.8) translate(3, 3)",children:[e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M13.253 5.98L12 13.5l-1.253-7.52a1.27 1.27 0 1 1 2.506 0"}),e("circle",{cx:"12",cy:"19",r:"1",strokeWidth:"2"})]})]})},error:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.error}),e("path",{fill:n.innerColor??i.activePalette.indicator.errorFill,transform:"scale(0.9) translate(5.8, 5.8)",d:"M3.64 2.27L7.5 6.13l3.84-3.84A.92.92 0 0 1 12 2a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l3.89 3.89A.9.9 0 0 1 13 12a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-3.85 3.85A.92.92 0 0 1 3 13a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L2.27 3.61A.9.9 0 0 1 2 3a1 1 0 0 1 1-1c.24.003.47.1.64.27"})]})},neutral:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.neutral}),e("path",{
|
|
329
|
+
`,Co=({children:n,isOpen:i,onOpen:o,onClose:r,width:l,height:c,sx:s})=>{const d=N(),g=u(!0),p=u(null);return a((()=>{const e=p.current;e&&(i?(e.showModal(),o&&o()):e.close()),g.current=!1}),[i,r,o]),t(vo,{ref:p,onCancel:e=>{e.preventDefault(),r()},$height:c,$width:l,$bgColor:d.activePalette.surface.main,$textColor:d.activePalette.surface.contrast,style:s,children:[e(Io,{children:e(Te,{"data-testid":"close-modal",onClick:r,sx:{padding:"0px",boxShadow:"none"},variant:"text",children:e(A,{icon:"material-symbols:close-rounded",width:20,height:20})})}),n]})},xo={live:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.main}),e("path",{d:"M12.6953 5L5.69531 13.4H11.9953L11.2953 19L18.2953 10.6H11.9953L12.6953 5Z",fill:n.innerColor??i.activePalette.indicator.mainFill})]})},success:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.success}),e("path",{d:"M16 9.25L10.5 14.75L8 12.25",stroke:n.innerColor??i.activePalette.indicator.successFill,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})},warning:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.warning}),t("g",{stroke:n.innerColor??i.activePalette.indicator.warningFill,strokeWidth:"1",transform:"scale(0.8) translate(3, 3)",children:[e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M13.253 5.98L12 13.5l-1.253-7.52a1.27 1.27 0 1 1 2.506 0"}),e("circle",{cx:"12",cy:"19",r:"1",strokeWidth:"2"})]})]})},error:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.error}),e("path",{fill:n.innerColor??i.activePalette.indicator.errorFill,transform:"scale(0.9) translate(5.8, 5.8)",d:"M3.64 2.27L7.5 6.13l3.84-3.84A.92.92 0 0 1 12 2a1 1 0 0 1 1 1a.9.9 0 0 1-.27.66L8.84 7.5l3.89 3.89A.9.9 0 0 1 13 12a1 1 0 0 1-1 1a.92.92 0 0 1-.69-.27L7.5 8.87l-3.85 3.85A.92.92 0 0 1 3 13a1 1 0 0 1-1-1a.9.9 0 0 1 .27-.66L6.16 7.5L2.27 3.61A.9.9 0 0 1 2 3a1 1 0 0 1 1-1c.24.003.47.1.64.27"})]})},neutral:n=>{const i=N();return t("svg",{width:n.size??24,height:n.size??24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:n.onClick,children:[e("title",{children:n.title}),e("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:n.outerColor??i.activePalette.indicator.neutral}),e("path",{stroke:n.innerColor??i.activePalette.indicator.neutralFill,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M6 12h12"})]})}},yo=t=>{const n=c((()=>xo[t.variant]),[t.variant]);return e(n,{...t})},Ao=x("span",we)`
|
|
330
330
|
padding: 5px 6px 5px 6px;
|
|
331
331
|
border-radius: 5px;
|
|
332
332
|
font-size: 11px;
|