@designbasekorea/ui-wc 0.9.3 → 0.9.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/CHANGELOG.md +9 -0
- package/dist/esm/components/date-picker-utils.js +1 -1
- package/dist/esm/components/db-activity-heatmap.js +1 -1
- package/dist/esm/components/db-ai-file-tree.js +1 -1
- package/dist/esm/components/db-calendar.d.ts +2 -1
- package/dist/esm/components/db-calendar.js +1 -1
- package/dist/esm/components/db-carousel.d.ts +2 -0
- package/dist/esm/components/db-carousel.js +1 -1
- package/dist/esm/components/db-checkbox.d.ts +15 -1
- package/dist/esm/components/db-checkbox.js +1 -1
- package/dist/esm/components/db-confirm.d.ts +2 -0
- package/dist/esm/components/db-confirm.js +1 -1
- package/dist/esm/components/db-credit-card.d.ts +3 -4
- package/dist/esm/components/db-credit-card.js +1 -1
- package/dist/esm/components/db-date-picker.d.ts +2 -1
- package/dist/esm/components/db-date-picker.js +1 -1
- package/dist/esm/components/db-design-toolbar.js +1 -1
- package/dist/esm/components/db-device-mockup.js +1 -1
- package/dist/esm/components/db-flight-status.d.ts +2 -2
- package/dist/esm/components/db-flight-status.js +1 -1
- package/dist/esm/components/db-gantt.js +1 -1
- package/dist/esm/components/db-indicator.d.ts +1 -0
- package/dist/esm/components/db-indicator.js +1 -1
- package/dist/esm/components/db-kanban.js +1 -1
- package/dist/esm/components/db-node.d.ts +1 -3
- package/dist/esm/components/db-node.js +1 -1
- package/dist/esm/components/db-radio.d.ts +19 -1
- package/dist/esm/components/db-radio.js +1 -1
- package/dist/esm/components/db-receipt.js +1 -1
- package/dist/esm/components/db-tabs.js +1 -1
- package/dist/esm/components/db-textarea.js +1 -1
- package/dist/esm/components/db-tool-button.js +1 -1
- package/dist/esm/components/db-voice-control.js +1 -1
- package/dist/esm/core/ai-element.d.ts +2 -1
- package/dist/esm/core/ai-element.js +1 -1
- package/dist/esm/core/i18n-en.js +1 -1
- package/dist/esm/core/i18n.d.ts +4 -0
- package/dist/esm/core/i18n.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/@designbasekorea/ui-contracts/dist/components.js +1 -1
- package/dist/esm/ui-contracts/dist/components.d.d.ts +9 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +58 -13
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +31 -9
- package/dist/react/index.esm.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,getDbLocale as e}from"../core/i18n.js";import{DbPaperCard as a,paperJson as r,paperNode as i,paperDetails as s}from"./paper-card.js";const
|
|
1
|
+
import{t,getDbLocale as e}from"../core/i18n.js";import{DbPaperCard as a,paperJson as r,paperNode as i,paperDetails as s}from"./paper-card.js";import{coerceToContract as n}from"../node_modules/@designbasekorea/ui-contracts/dist/primitives.js";import{RECEIPT_VARIANTS as o}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";const p={quantity:"수량",subtotal:"소계",discount:"할인",tax:"세금",total:"합계",payment:"결제수단",empty:"표시할 품목이 없습니다.",invalid:"품목과 금액 정보를 확인해주세요."},minor=t=>"number"==typeof t&&Number.isSafeInteger(t)&&t>=0;class DbReceipt extends a{constructor(){super(...arguments),this.data=void 0,this.customLabels={}}static get observedAttributes(){return["variant","code-image-src","code-alt","merchant","merchant-detail","reference","issued-at","items","currency","locale","discount-amount","tax-amount","payment-method","note","edge","action-label","disabled"]}upgradeNames(){return["items","labels"]}get items(){const t=this.data??r(this.attr("items"));return Array.isArray(t)?t.map(t=>({...t})):[]}set items(t){this.data=null==t?void 0:Array.isArray(t)?t.map(t=>({...t})):t,this.isConnected&&this.render()}get labels(){return{...Object.fromEntries(Object.entries(p).map(([e,a])=>[e,t(`receipt.${e}`,a)])),...this.customLabels}}set labels(t){this.customLabels={};for(const e of Object.keys(p))"string"==typeof t?.[e]&&(this.customLabels[e]=t[e]);this.isConnected&&this.render()}render(){const a="compact"===n(this.getAttribute("variant"),o,"default");this.dataset.variant=a?"compact":"default";const r=this.labels,p=i("section","db-paper__main");p.append(i("h3","db-paper__title",this.attr("merchant")||t("receipt.title"))),this.attr("merchant-detail")&&p.append(i("p","db-paper__description",this.attr("merchant-detail")));const c=i("div","db-paper__receipt-meta");let d;this.attr("issued-at")&&c.append(i("span","",this.attr("issued-at"))),!a&&this.attr("reference")&&c.append(i("span","",this.attr("reference"))),p.append(c);try{d=new Intl.NumberFormat(this.attr("locale")||("ko"===e()?"ko-KR":"en-US"),{style:"currency",currency:this.attr("currency")||"KRW"})}catch{d=new Intl.NumberFormat("ko"===e()?"ko-KR":"en-US",{style:"currency",currency:"KRW"})}const m=d.resolvedOptions().maximumFractionDigits||0,u=BigInt(10**m),l=new Intl.NumberFormat(d.resolvedOptions().locale,{useGrouping:!1,minimumIntegerDigits:Math.max(1,m),maximumFractionDigits:0}),money=t=>{const e=BigInt(t);return d.formatToParts(e/u).map(t=>"fraction"===t.type?l.format(e%u):t.value).join("")};let b=this.data;if(void 0===b)try{b=this.hasAttribute("items")?JSON.parse(this.attr("items")):[]}catch{b=null}const h=Array.isArray(b)?b:[];let y=Array.isArray(b),f=0;for(const t of h){if(!t||"string"!=typeof t.name||!Number.isSafeInteger(t.quantity)||t.quantity<=0||!minor(t.unitAmount)||!Number.isSafeInteger(t.quantity*t.unitAmount)){y=!1;break}if(f+=t.quantity*t.unitAmount,!Number.isSafeInteger(f)){y=!1;break}}const amount=t=>this.hasAttribute(t)&&""===this.attr(t).trim()?NaN:Number(this.getAttribute(t)??0),g=amount("discount-amount"),_=amount("tax-amount");y=y&&minor(g)&&minor(_)&&g<=f&&Number.isSafeInteger(f-g+_);const v=i("div","db-paper__receipt-items");if(y)if(h.length)for(const t of h){const e=i("div","db-paper__receipt-item"),a=i("div","");a.append(i("strong","",t.name),i("span","db-paper__label",`${r.quantity} ${t.quantity} × ${money(t.unitAmount)}`)),e.append(a,i("span","",money(t.unitAmount*t.quantity))),v.append(e)}else v.append(i("p","db-paper__note",r.empty));else{const t=i("p","db-paper__error",r.invalid);t.setAttribute("role","alert"),v.append(t)}p.append(v);const A=i("div","db-paper__stub"),N=a?p:A;if(y&&(!a||g||_)){const t=[{label:r.subtotal,value:money(f)}];g&&t.push({label:r.discount,value:"−"+money(g)}),_&&t.push({label:r.tax,value:money(_)}),N.append(s(t))}const I=i("div","db-paper__receipt-total");I.append(i("strong","",r.total),i("strong","db-paper__amount",y?money(f-g+_):"—")),N.append(I),this.attr("payment-method")&&N.append(s([{label:r.payment,value:this.attr("payment-method")}])),this.attr("note")&&N.append(i("p","db-paper__note",this.attr("note"))),(a||this.attr("code-image-src"))&&A.append(this.code(this.attr("reference")));const k=this.action(this.attr("reference"));k&&(k.toggleAttribute("disabled",!y||this.hasAttribute("disabled")),A.append(k)),this.replace(p,A)}}customElements.get("db-receipt")||customElements.define("db-receipt",DbReceipt);export{DbReceipt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createDbIcon as t}from"./db-icons.js";import{labelFrom as e}from"../core/i18n.js";import{coerceToContract as s}from"../node_modules/@designbasekorea/ui-contracts/dist/primitives.js";import{TABS_ORIENTATIONS as i,TABS_SIZES as a,TABS_VARIANTS as n}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";class DbTabs extends HTMLElement{constructor(){super(...arguments),this.tabButtons=[],this.inactivePanels=document.createDocumentFragment(),this.isRendering=!1,this.handleResize=()=>{this.resizeRaf&&cancelAnimationFrame(this.resizeRaf),this.resizeRaf=requestAnimationFrame(()=>{this.isRendering||(this.handleListScroll(),this.updateIndicator(!1))})},this.handleListScroll=()=>{if(!this.list)return;const t=this.list.scrollWidth>this.list.clientWidth,e=this.list.scrollLeft+this.list.clientWidth>=this.list.scrollWidth-5;this.list.classList.toggle("designbase-wc-tabs__list--show-gradient",t&&!e&&"horizontal"===this.orientation)}}static get observedAttributes(){return["labels","items","active-index","selected-id","orientation","size","variant","full-width"]}get labels(){const t=this.tabItems.map(t=>t.label);return t.length?t:(this.getAttribute("labels")||"").split(",").map(t=>t.trim()).filter(Boolean)}set labels(t){this.setAttribute("labels",Array.isArray(t)?t.join(","):t)}get tabItems(){try{const t=JSON.parse(this.getAttribute("items")||"[]");return Array.isArray(t)?t:[]}catch{return[]}}get items(){return this.tabItems}set items(t){this.setAttribute("items","string"==typeof t?t:JSON.stringify(t))}set tabItems(t){this.setAttribute("items","string"==typeof t?t:JSON.stringify(t))}get activeIndex(){const t=this.getAttribute("selected-id");if(t){const e=this.tabItems.findIndex((e,s)=>(e.id||String(s))===t);if(e>=0)return e}return Number(this.getAttribute("active-index")||0)}set activeIndex(t){this.setAttribute("active-index",String(t))}get orientation(){return s(this.getAttribute("orientation"),i,"horizontal")}set orientation(t){this.setAttribute("orientation",t)}get size(){return s(this.getAttribute("size"),a,"m")}set size(t){this.setAttribute("size",t)}get variant(){return s(this.getAttribute("variant"),n,"default")}set variant(t){this.setAttribute("variant",t)}get fullWidth(){return this.hasAttribute("full-width")}set fullWidth(t){this.toggleAttribute("full-width",Boolean(t))}connectedCallback(){this.render(),this.list?.addEventListener("scroll",this.handleListScroll,{passive:!0}),window.addEventListener("resize",this.handleResize),this.resizeObserver=new ResizeObserver(()=>this.handleResize()),this.resizeObserver.observe(this),this.childObserver=new MutationObserver(t=>{if(this.isRendering)return;t.some(t=>Array.from(t.addedNodes).some(t=>t instanceof HTMLElement&&(t.hasAttribute("slot")||void 0!==t.dataset.panelIndex)))&&this.render()}),this.childObserver.observe(this,{childList:!0})}disconnectedCallback(){this.list?.removeEventListener("scroll",this.handleListScroll),window.removeEventListener("resize",this.handleResize),this.resizeObserver?.disconnect(),this.resizeRaf&&cancelAnimationFrame(this.resizeRaf),this.childObserver?.disconnect()}attributeChangedCallback(){this.isConnected&&this.render()}collectPanelContent(){const t=new Map,register=(e,s)=>{if(!(e instanceof HTMLElement)||"SLOT"===e.tagName)return;t.has(s)||t.set(s,[]);const i=t.get(s);i.includes(e)||i.push(e)};return Array.from(this.children).forEach(t=>{const e=t.getAttribute("slot")?.match(/^panel-(\d+)$/);if(e)return void register(t,Number(e[1]));const s=t.dataset.panelIndex;void 0!==s&®ister(t,Number(s))}),this.panel?.querySelectorAll(":scope > .designbase-wc-tabs__panel-inner > [data-panel-index]").forEach(t=>{t instanceof HTMLElement&®ister(t,Number(t.dataset.panelIndex))}),Array.from(this.inactivePanels.children).forEach(t=>{t instanceof HTMLElement&&void 0!==t.dataset.panelIndex&®ister(t,Number(t.dataset.panelIndex))}),t}render(){this.isRendering=!0;const s=this.collectPanelContent(),i=this.labels,
|
|
1
|
+
import{createDbIcon as t}from"./db-icons.js";import{labelFrom as e}from"../core/i18n.js";import{coerceToContract as s}from"../node_modules/@designbasekorea/ui-contracts/dist/primitives.js";import{TABS_ORIENTATIONS as i,TABS_SIZES as a,TABS_VARIANTS as n}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";class DbTabs extends HTMLElement{constructor(){super(...arguments),this.tabButtons=[],this.inactivePanels=document.createDocumentFragment(),this.isRendering=!1,this.handleResize=()=>{this.resizeRaf&&cancelAnimationFrame(this.resizeRaf),this.resizeRaf=requestAnimationFrame(()=>{this.isRendering||(this.handleListScroll(),this.updateIndicator(!1))})},this.handleListScroll=()=>{if(!this.list)return;const t=this.list.scrollWidth>this.list.clientWidth,e=this.list.scrollLeft+this.list.clientWidth>=this.list.scrollWidth-5;this.list.classList.toggle("designbase-wc-tabs__list--show-gradient",t&&!e&&"horizontal"===this.orientation)}}static get observedAttributes(){return["labels","items","active-index","selected-id","orientation","size","variant","full-width"]}get labels(){const t=this.tabItems.map(t=>t.label);return t.length?t:(this.getAttribute("labels")||"").split(",").map(t=>t.trim()).filter(Boolean)}set labels(t){this.setAttribute("labels",Array.isArray(t)?t.join(","):t)}get tabItems(){try{const t=JSON.parse(this.getAttribute("items")||"[]");return Array.isArray(t)?t:[]}catch{return[]}}get items(){return this.tabItems}set items(t){this.setAttribute("items","string"==typeof t?t:JSON.stringify(t))}set tabItems(t){this.setAttribute("items","string"==typeof t?t:JSON.stringify(t))}get activeIndex(){const t=this.getAttribute("selected-id");if(t){const e=this.tabItems.findIndex((e,s)=>(e.id||String(s))===t);if(e>=0)return e}return Number(this.getAttribute("active-index")||0)}set activeIndex(t){this.setAttribute("active-index",String(t))}get orientation(){return s(this.getAttribute("orientation"),i,"horizontal")}set orientation(t){this.setAttribute("orientation",t)}get size(){return s(this.getAttribute("size"),a,"m")}set size(t){this.setAttribute("size",t)}get variant(){return s(this.getAttribute("variant"),n,"default")}set variant(t){this.setAttribute("variant",t)}get fullWidth(){return this.hasAttribute("full-width")}set fullWidth(t){this.toggleAttribute("full-width",Boolean(t))}connectedCallback(){this.render(),this.list?.addEventListener("scroll",this.handleListScroll,{passive:!0}),window.addEventListener("resize",this.handleResize),this.resizeObserver=new ResizeObserver(()=>this.handleResize()),this.resizeObserver.observe(this),this.childObserver=new MutationObserver(t=>{if(this.isRendering)return;t.some(t=>Array.from(t.addedNodes).some(t=>t instanceof HTMLElement&&(t.hasAttribute("slot")||void 0!==t.dataset.panelIndex)))&&this.render()}),this.childObserver.observe(this,{childList:!0})}disconnectedCallback(){this.list?.removeEventListener("scroll",this.handleListScroll),window.removeEventListener("resize",this.handleResize),this.resizeObserver?.disconnect(),this.resizeRaf&&cancelAnimationFrame(this.resizeRaf),this.childObserver?.disconnect()}attributeChangedCallback(){this.isConnected&&this.render()}collectPanelContent(){const t=new Map,register=(e,s)=>{if(!(e instanceof HTMLElement)||"SLOT"===e.tagName)return;t.has(s)||t.set(s,[]);const i=t.get(s);i.includes(e)||i.push(e)};return Array.from(this.children).forEach(t=>{const e=t.getAttribute("slot")?.match(/^panel-(\d+)$/);if(e)return void register(t,Number(e[1]));const s=t.dataset.panelIndex;void 0!==s&®ister(t,Number(s))}),this.panel?.querySelectorAll(":scope > .designbase-wc-tabs__panel-inner > [data-panel-index]").forEach(t=>{t instanceof HTMLElement&®ister(t,Number(t.dataset.panelIndex))}),Array.from(this.inactivePanels.children).forEach(t=>{t instanceof HTMLElement&&void 0!==t.dataset.panelIndex&®ister(t,Number(t.dataset.panelIndex))}),t}render(){this.isRendering=!0;const s=this.collectPanelContent(),i=[...s.values()].some(t=>t.length>0),a=this.labels,n=this.tabItems,r=Math.min(Math.max(this.activeIndex,0),Math.max(a.length-1,0)),l=this.size,o=this.orientation,d=this.variant,h="default"===d;this.className=["designbase-wc-tabs",`designbase-wc-tabs--${o}`,`designbase-wc-tabs--${l}`,`designbase-wc-tabs--${d}`,this.fullWidth&&"designbase-wc-tabs--full-width",!i&&"designbase-wc-tabs--nav-only"].filter(Boolean).join(" "),this.querySelectorAll(":scope > .designbase-wc-tabs__list, :scope > .designbase-wc-tabs__panel").forEach(t=>t.remove()),this.list=document.createElement("div"),this.list.className=["designbase-wc-tabs__list",`designbase-wc-tabs__list--${o}`,this.fullWidth&&"designbase-wc-tabs__list--full-width"].filter(Boolean).join(" "),this.list.setAttribute("role","tablist"),this.list.setAttribute("aria-orientation",o),this.list.setAttribute("aria-label",e(this,"label-tablist","tabs.label")),this.tabButtons=[],a.forEach((e,s)=>{const a=n[s],o=Boolean(a?.disabled),d=s===r,h=document.createElement("button");if(h.type="button",h.className=["designbase-wc-tabs__tab",d&&"designbase-wc-tabs__tab--selected",o&&"designbase-wc-tabs__tab--disabled"].filter(Boolean).join(" "),h.setAttribute("role","tab"),h.setAttribute("aria-selected",String(d)),i&&h.setAttribute("aria-controls",`panel-${s}`),h.id=`tab-${s}`,h.tabIndex=d?0:-1,h.disabled=o,a?.icon){const e=document.createElement("span");e.className="designbase-wc-tabs__tab-icon";const s="s"===l?16:"l"===l?20:18;e.setAttribute("aria-hidden","true"),e.append(t(a.icon,s)),h.append(e)}const c=document.createElement("span");c.className="designbase-wc-tabs__tab-label",c.textContent=e,h.append(c),h.addEventListener("click",()=>this.select(s)),h.addEventListener("keydown",t=>this.handleKeyDown(t,s)),this.list?.append(h),this.tabButtons.push(h)}),h?(this.indicator=document.createElement("span"),this.indicator.className="designbase-wc-tabs__indicator designbase-wc-tabs__indicator--no-transition",this.list.append(this.indicator),requestAnimationFrame(()=>this.updateIndicator(!1))):this.indicator=void 0,this.panel=document.createElement("div"),this.panel.className="designbase-wc-tabs__panel",this.panel.setAttribute("role","tabpanel"),this.panel.id=`panel-${r}`,this.panel.setAttribute("aria-labelledby",`tab-${r}`),this.panel.tabIndex=i?0:-1,this.panel.hidden=!i;const c=document.createElement("div");c.className="designbase-wc-tabs__panel-inner",s.forEach((t,e)=>{t.forEach(t=>{t.removeAttribute("slot"),t.dataset.panelIndex=String(e),e===r?c.append(t):this.inactivePanels.append(t)})}),this.panel.append(c),this.append(this.list,this.panel),requestAnimationFrame(()=>{this.handleListScroll(),h&&this.updateIndicator(!1)}),this.isRendering=!1}select(t){const e=this.labels,s=this.tabItems;if(!e[t]||s[t]?.disabled)return;this.activeIndex=t;const i=s[t]?.id||String(t);this.setAttribute("selected-id",i),this.dispatchEvent(new CustomEvent("db-change",{detail:{index:t,label:e[t],id:i},bubbles:!0,composed:!0})),this.render()}handleKeyDown(t,e){const s=this.labels,i=this.tabItems;let a=e;if("ArrowRight"===t.key||"ArrowDown"===t.key)a=(e+1)%s.length;else if("ArrowLeft"===t.key||"ArrowUp"===t.key)a=(e-1+s.length)%s.length;else if("Home"===t.key)a=0;else{if("End"!==t.key)return"Enter"===t.key||" "===t.key?(t.preventDefault(),void this.select(e)):void 0;a=s.length-1}t.preventDefault();let n=0;for(;i[a]?.disabled&&n<s.length;)a="ArrowLeft"===t.key||"ArrowUp"===t.key?(a-1+s.length)%s.length:(a+1)%s.length,n+=1;this.tabButtons[a]?.focus()}updateIndicator(t=!1){const e=this.list?.querySelector(".designbase-wc-tabs__tab--selected");if(!e||!this.indicator)return;const s="vertical"===this.orientation;this.indicator.classList.toggle("designbase-wc-tabs__indicator--no-transition",!t),this.indicator.classList.add(s?"designbase-wc-tabs__indicator--vertical":"designbase-wc-tabs__indicator--horizontal"),this.indicator.classList.add("designbase-wc-tabs__indicator--ready"),s?(this.indicator.style.width="2px",this.indicator.style.height=`${e.offsetHeight}px`,this.indicator.style.transform=`translate3d(0, ${e.offsetTop}px, 0)`):(this.indicator.style.width=`${e.offsetWidth}px`,this.indicator.style.height="2px",this.indicator.style.transform=`translate3d(${e.offsetLeft}px, 0, 0)`)}}customElements.get("db-tabs")||customElements.define("db-tabs",DbTabs);export{DbTabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dbUid as t}from"../core/uid.js";import{TEXTAREA_SIZES as e}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";class DbTextarea extends HTMLElement{constructor(){super(...arguments),this.built=!1,this.handleInput=t=>{t.stopPropagation(),this.field&&(this.getAttribute("value")!==this.field.value&&this.setAttribute("value",this.field.value),this.updateCharacterCount(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("db-input",{detail:{value:this.field.value,nativeEvent:t},bubbles:!0,composed:!0})))},this.handleChange=t=>{if(t.stopPropagation(),!this.field)return;const e=this.field.value;this.getAttribute("value")!==e&&this.setAttribute("value",e),this.updateCharacterCount(),this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new CustomEvent("db-change",{detail:{value:e,nativeEvent:t},bubbles:!0,composed:!0}))}}static get observedAttributes(){return["label","placeholder","value","default-value","name","size","rows","max-length","show-character-count","character-count-position","disabled","readonly","required","error","error-message","helper-text","full-width","resizable"]}get value(){return this.field?.value??this.getAttribute("value")??""}set value(t){this.setAttribute("value",t),this.field&&(this.field.value=t,this.updateCharacterCount())}get size(){return this.getAttribute("size")||"m"}set size(t){this.setAttribute("size",t)}connectedCallback(){this.built||this.build(),this.syncState()}attributeChangedCallback(t){if(this.built){if("value"===t&&this.field){const t=this.getAttribute("value")||"";return this.field.value!==t&&(this.field.value=t),void this.updateCharacterCount()}this.syncState()}}focus(){this.field?.focus()}get showCharacterCount(){return this.hasAttribute("show-character-count")}get characterCountPosition(){return this.getAttribute("character-count-position")||"bottom"}build(){const e=this.getAttribute("id")||t("db-textarea");this.hasAttribute("id")||this.setAttribute("id",e),this.labelEl=document.createElement("label"),this.labelEl.className="designbase-wc-textarea__label",this.labelEl.htmlFor=`${e}-field`,this.countTop=document.createElement("div"),this.countTop.className="designbase-wc-textarea__character-count designbase-wc-textarea__character-count--top",this.countTop.hidden=!0;const i=document.createElement("div");i.className="designbase-wc-textarea__wrapper",this.field=document.createElement("textarea"),this.field.id=`${e}-field`,this.field.className="designbase-wc-textarea__field",this.field.addEventListener("input",this.handleInput),this.field.addEventListener("change",this.handleChange),i.appendChild(this.field),this.footerEl=document.createElement("div"),this.footerEl.className="designbase-wc-textarea__footer",this.errorEl=document.createElement("div"),this.errorEl.className="designbase-wc-textarea__error-message",this.errorEl.setAttribute("role","alert"),this.helperEl=document.createElement("div"),this.helperEl.className="designbase-wc-textarea__helper-text",this.countBottom=document.createElement("div"),this.countBottom.className="designbase-wc-textarea__character-count designbase-wc-textarea__character-count--bottom",this.countBottom.hidden=!0,this.footerEl.append(this.errorEl,this.helperEl,this.countBottom),this.append(this.labelEl,this.countTop,i,this.footerEl),this.built=!0}syncState(){if(!this.field)return;const t=e.includes(this.size)?this.size:"m",i=this.getAttribute("label")||"",s=this.getAttribute("helper-text")||"",a=this.getAttribute("error-message")||"",r=this.hasAttribute("error"),h=this.getAttribute("value")??this.getAttribute("default-value")??"";if(this.className=["designbase-wc-textarea",`designbase-wc-textarea--${t}`,r&&"designbase-wc-textarea--error",this.hasAttribute("disabled")&&"designbase-wc-textarea--disabled",this.hasAttribute("readonly")&&"designbase-wc-textarea--readonly",this.hasAttribute("full-width")&&"designbase-wc-textarea--full-width",this.hasAttribute("resizable")?"":"designbase-wc-textarea--not-resizable"].filter(Boolean).join(" "),this.labelEl){const t=this.hasAttribute("required")?'<span aria-hidden="true"> *</span>':"";this.labelEl.innerHTML=i?`${this.escape(i)}${t}`:"",this.labelEl.hidden=!i}this.field.placeholder=this.getAttribute("placeholder")||"",this.field.name=this.getAttribute("name")||"",this.field.value!==h&&(this.field.value=h),this.field.rows=Number(this.getAttribute("rows")||4),this.field.disabled=this.hasAttribute("disabled"),this.field.readOnly=this.hasAttribute("readonly"),this.field.required=this.hasAttribute("required"),this.field.setAttribute("aria-invalid",String(r));const l=this.getAttribute("max-length");l?this.field.maxLength=Number(l):this.field.removeAttribute("maxLength");const n=`${this.getAttribute("id")}-helper`,d=`${this.getAttribute("id")}-error`;r&&a?(this.errorEl.id=d,this.errorEl.textContent=a,this.errorEl.hidden=!1,this.helperEl.hidden=!0,this.field.setAttribute("aria-describedby",d)):s?(this.helperEl.id=n,this.helperEl.textContent=s,this.helperEl.hidden=!1,this.errorEl.hidden=!0,this.field.setAttribute("aria-describedby",n)):(this.helperEl.hidden=!0,this.errorEl.hidden=!0,this.field.removeAttribute("aria-describedby")),this.updateCharacterCount()}updateCharacterCount(){if(!this.field||!this.countTop||!this.countBottom)return;const t=this.field.value.length,e=this.getAttribute("max-length"),i=Boolean(e&&t>Number(e)),s=`${t}${e?` / ${e}`:""}`,renderCount=t=>{let e=t.querySelector(".designbase-wc-textarea__character-count-text");e||(e=document.createElement("span"),t.replaceChildren(e)),e.className="designbase-wc-textarea__character-count-text",e.classList.toggle("designbase-wc-textarea__character-count-text--error",i),e.textContent=s};this.showCharacterCount&&"top"===this.characterCountPosition?(renderCount(this.countTop),this.countTop.hidden=!1,this.countBottom.hidden=!0):this.showCharacterCount?(renderCount(this.countBottom),this.countBottom.hidden=!1,this.countTop.hidden=!0):(this.countTop.hidden=!0,this.countBottom.hidden=!0)}escape(t){return t.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t]||t))}}customElements.get("db-textarea")||customElements.define("db-textarea",DbTextarea);export{DbTextarea};
|
|
1
|
+
import{dbUid as t}from"../core/uid.js";import{TEXTAREA_SIZES as e}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";class DbTextarea extends HTMLElement{constructor(){super(...arguments),this.built=!1,this.handleInput=t=>{t.stopPropagation(),this.field&&(this.getAttribute("value")!==this.field.value&&this.setAttribute("value",this.field.value),this.updateCharacterCount(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("db-input",{detail:{value:this.field.value,nativeEvent:t},bubbles:!0,composed:!0})))},this.handleChange=t=>{if(t.stopPropagation(),!this.field)return;const e=this.field.value;this.getAttribute("value")!==e&&this.setAttribute("value",e),this.updateCharacterCount(),this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new CustomEvent("db-change",{detail:{value:e,nativeEvent:t},bubbles:!0,composed:!0}))}}static get observedAttributes(){return["label","placeholder","value","default-value","name","size","rows","max-length","show-character-count","character-count-position","disabled","readonly","required","error","error-message","helper-text","full-width","resizable"]}get value(){return this.field?.value??this.getAttribute("value")??""}set value(t){this.setAttribute("value",t),this.field&&(this.field.value=t,this.updateCharacterCount())}get size(){return this.getAttribute("size")||"m"}set size(t){this.setAttribute("size",t)}connectedCallback(){this.built||this.build(),this.syncState()}attributeChangedCallback(t){if(this.built){if("value"===t&&this.field){const t=this.getAttribute("value")||"";return this.field.value!==t&&(this.field.value=t),void this.updateCharacterCount()}this.syncState()}}focus(){this.field?.focus()}get showCharacterCount(){return this.hasAttribute("show-character-count")}get characterCountPosition(){return this.getAttribute("character-count-position")||"bottom"}build(){const e=this.getAttribute("id")||t("db-textarea");this.hasAttribute("id")||this.setAttribute("id",e),this.labelEl=document.createElement("label"),this.labelEl.className="designbase-wc-textarea__label",this.labelEl.htmlFor=`${e}-field`,this.countTop=document.createElement("div"),this.countTop.className="designbase-wc-textarea__character-count designbase-wc-textarea__character-count--top",this.countTop.hidden=!0;const i=document.createElement("div");i.className="designbase-wc-textarea__wrapper",this.field=document.createElement("textarea"),this.field.id=`${e}-field`,this.field.className="designbase-wc-textarea__field",this.field.addEventListener("input",this.handleInput),this.field.addEventListener("change",this.handleChange),i.appendChild(this.field),this.footerEl=document.createElement("div"),this.footerEl.className="designbase-wc-textarea__footer",this.errorEl=document.createElement("div"),this.errorEl.className="designbase-wc-textarea__error-message",this.errorEl.setAttribute("role","alert"),this.helperEl=document.createElement("div"),this.helperEl.className="designbase-wc-textarea__helper-text",this.countBottom=document.createElement("div"),this.countBottom.className="designbase-wc-textarea__character-count designbase-wc-textarea__character-count--bottom",this.countBottom.hidden=!0,this.footerEl.append(this.errorEl,this.helperEl,this.countBottom),this.append(this.labelEl,this.countTop,i,this.footerEl),this.built=!0}syncState(){if(!this.field)return;const t=e.includes(this.size)?this.size:"m",i=this.getAttribute("label")||"",s=this.getAttribute("helper-text")||"",a=this.getAttribute("error-message")||"",r=this.hasAttribute("error"),h=this.getAttribute("value")??this.getAttribute("default-value")??"";if(this.className=["designbase-wc-textarea",`designbase-wc-textarea--${t}`,r&&"designbase-wc-textarea--error",this.hasAttribute("disabled")&&"designbase-wc-textarea--disabled",this.hasAttribute("readonly")&&"designbase-wc-textarea--readonly",this.hasAttribute("full-width")&&"designbase-wc-textarea--full-width",this.hasAttribute("rows")&&"designbase-wc-textarea--rows",this.hasAttribute("resizable")?"":"designbase-wc-textarea--not-resizable"].filter(Boolean).join(" "),this.labelEl){const t=this.hasAttribute("required")?'<span aria-hidden="true"> *</span>':"";this.labelEl.innerHTML=i?`${this.escape(i)}${t}`:"",this.labelEl.hidden=!i}this.field.placeholder=this.getAttribute("placeholder")||"",this.field.name=this.getAttribute("name")||"",this.field.value!==h&&(this.field.value=h),this.field.rows=Number(this.getAttribute("rows")||4),this.field.disabled=this.hasAttribute("disabled"),this.field.readOnly=this.hasAttribute("readonly"),this.field.required=this.hasAttribute("required"),this.field.setAttribute("aria-invalid",String(r));const l=this.getAttribute("max-length");l?this.field.maxLength=Number(l):this.field.removeAttribute("maxLength");const n=`${this.getAttribute("id")}-helper`,d=`${this.getAttribute("id")}-error`;r&&a?(this.errorEl.id=d,this.errorEl.textContent=a,this.errorEl.hidden=!1,this.helperEl.hidden=!0,this.field.setAttribute("aria-describedby",d)):s?(this.helperEl.id=n,this.helperEl.textContent=s,this.helperEl.hidden=!1,this.errorEl.hidden=!0,this.field.setAttribute("aria-describedby",n)):(this.helperEl.hidden=!0,this.errorEl.hidden=!0,this.field.removeAttribute("aria-describedby")),this.updateCharacterCount()}updateCharacterCount(){if(!this.field||!this.countTop||!this.countBottom)return;const t=this.field.value.length,e=this.getAttribute("max-length"),i=Boolean(e&&t>Number(e)),s=`${t}${e?` / ${e}`:""}`,renderCount=t=>{let e=t.querySelector(".designbase-wc-textarea__character-count-text");e||(e=document.createElement("span"),t.replaceChildren(e)),e.className="designbase-wc-textarea__character-count-text",e.classList.toggle("designbase-wc-textarea__character-count-text--error",i),e.textContent=s};this.showCharacterCount&&"top"===this.characterCountPosition?(renderCount(this.countTop),this.countTop.hidden=!1,this.countBottom.hidden=!0):this.showCharacterCount?(renderCount(this.countBottom),this.countBottom.hidden=!1,this.countTop.hidden=!0):(this.countTop.hidden=!0,this.countBottom.hidden=!0),this.footerEl&&(this.footerEl.hidden=Boolean(this.errorEl?.hidden&&this.helperEl?.hidden&&this.countBottom.hidden))}escape(t){return t.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t]||t))}}customElements.get("db-textarea")||customElements.define("db-textarea",DbTextarea);export{DbTextarea};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./db-button.js";import"./db-tooltip.js";import"./db-popover.js";import{isDbIconName as t,createDbIcon as e}from"./db-icons.js";import{dbUid as i}from"../core/uid.js";class DbToolButton extends HTMLElement{constructor(){super(...arguments),this.held=!1,this.menuSignature="",this.outsidePress=t=>{const e=t.composedPath();e.includes(this)||this.menu&&e.includes(this.menu)||this.closeMenu(!1)},this.menuKey=t=>{const e=Array.from(this.menu?.querySelectorAll("button:not(:disabled)")||[]),i=e.indexOf(document.activeElement);if(["ArrowDown","ArrowUp","Home","End","Escape","Tab"].includes(t.key)){if(t.stopPropagation(),"Escape"===t.key)return t.preventDefault(),void this.closeMenu();if("Tab"===t.key)return void this.closeMenu();t.preventDefault();const s="Home"===t.key?0:"End"===t.key?e.length-1:(i+("ArrowDown"===t.key?1:-1)+e.length)%e.length;e[s]?.focus()}},this.pressStart=t=>{0===t.button&&!this.disabled&&this.options.length&&(this.clearPress(),this.held=!1,this.pointer={x:t.clientX,y:t.clientY,id:t.pointerId},this.timer=setTimeout(()=>{this.held=!0,this.openMenu()},450))},this.pressEnd=()=>{this.clearPress()}}static get observedAttributes(){return["tool-id","label","icon","text","shortcut","active","toggle","disabled","options","value","menu-trigger","size","tone","placement"]}get options(){try{const t=JSON.parse(this.getAttribute("options")||"[]");return Array.isArray(t)?t.filter(t=>t&&"string"==typeof t.id&&"string"==typeof t.label):[]}catch{return[]}}set options(t){this.setAttribute("options","string"==typeof t?t:JSON.stringify(t))}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.hasAttribute("disabled")}connectedCallback(){this.ensure(),this.sync()}disconnectedCallback(){this.clearPress(),this.closeMenu(!1)}attributeChangedCallback(){this.isConnected&&(this.ensure(),this.sync())}ensure(){this.button||(this.classList.add("designbase-wc-tool-button"),this.tooltip=document.createElement("db-tooltip"),this.tooltip.setAttribute("position","bottom"),this.tooltip.setAttribute("focus-target","child"),this.tooltip.setAttribute("delay","350"),this.tooltip.setAttribute("size","s"),this.button=document.createElement("db-button"),this.button.id=i("design-tool"),this.button.setAttribute("variant","ghost"),this.button.setAttribute("type","button"),this.tooltip.append(this.button),this.menuPopover=document.createElement("db-popover"),this.menuPopover.setAttribute("trigger","manual"),this.menuPopover.setAttribute("open","false"),this.menuPopover.setAttribute("trigger-id",this.button.id),this.menuPopover.setAttribute("show-arrow","false"),this.menuPopover.setAttribute("size","s"),this.menuPopover.setAttribute("close-on-escape","false"),this.menuPopover.setAttribute("max-width","280"),this.menu=document.createElement("div"),this.menu.className="designbase-wc-tool-button__menu",this.menu.setAttribute("slot","content"),this.menu.setAttribute("role","menu"),this.menu.addEventListener("keydown",this.menuKey),this.menuPopover.append(this.menu),this.menuPopover.addEventListener("db-open-change",t=>{if(t.target!==this.menuPopover)return;const e=t.detail.open;this.button.setAttribute("aria-expanded",String(e)),this.tooltip.toggleAttribute("disabled",e),e||this.releaseMenuOwner()}),this.button.addEventListener("db-click",t=>{t.stopPropagation(),this.disabled||(this.held?this.held=!1:this.options.length&&"long-press"!==this.getAttribute("menu-trigger")?this.menuPopover?.open?this.closeMenu():this.openMenu():this.activate(this.options.find(t=>t.id===this.value)||this.options[0]))}),this.button.addEventListener("pointerdown",this.pressStart),this.button.addEventListener("pointerup",this.pressEnd),this.button.addEventListener("pointerleave",()=>this.clearPress()),this.button.addEventListener("pointercancel",()=>{this.held=!0,this.clearPress()}),this.button.addEventListener("pointermove",t=>{this.pointer&&Math.hypot(t.clientX-this.pointer.x,t.clientY-this.pointer.y)>8&&this.clearPress()}),this.button.addEventListener("contextmenu",t=>{this.options.length&&(t.preventDefault(),this.openMenu())}),this.button.addEventListener("keydown",t=>{const e="vertical"===this.closest("db-design-toolbar,db-context-bar")?.getAttribute("orientation");(t.key===(e?"ArrowRight":"ArrowDown")||t.altKey&&"Enter"===t.key)&&this.options.length&&(t.preventDefault(),t.stopPropagation(),this.openMenu())}),this.append(this.tooltip,this.menuPopover))}sync(){if(!this.button||!this.menu)return;const i=this.options,
|
|
1
|
+
import"./db-button.js";import"./db-tooltip.js";import"./db-popover.js";import{isDbIconName as t,createDbIcon as e}from"./db-icons.js";import{dbUid as i}from"../core/uid.js";import{coerceToContract as s}from"../node_modules/@designbasekorea/ui-contracts/dist/primitives.js";import{DESIGN_TOOL_SIZES as o,POPOVER_PLACEMENTS as n,DESIGN_TOOL_TONES as r}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";class DbToolButton extends HTMLElement{constructor(){super(...arguments),this.held=!1,this.menuSignature="",this.outsidePress=t=>{const e=t.composedPath();e.includes(this)||this.menu&&e.includes(this.menu)||this.closeMenu(!1)},this.menuKey=t=>{const e=Array.from(this.menu?.querySelectorAll("button:not(:disabled)")||[]),i=e.indexOf(document.activeElement);if(["ArrowDown","ArrowUp","Home","End","Escape","Tab"].includes(t.key)){if(t.stopPropagation(),"Escape"===t.key)return t.preventDefault(),void this.closeMenu();if("Tab"===t.key)return void this.closeMenu();t.preventDefault();const s="Home"===t.key?0:"End"===t.key?e.length-1:(i+("ArrowDown"===t.key?1:-1)+e.length)%e.length;e[s]?.focus()}},this.pressStart=t=>{0===t.button&&!this.disabled&&this.options.length&&(this.clearPress(),this.held=!1,this.pointer={x:t.clientX,y:t.clientY,id:t.pointerId},this.timer=setTimeout(()=>{this.held=!0,this.openMenu()},450))},this.pressEnd=()=>{this.clearPress()}}static get observedAttributes(){return["tool-id","label","icon","text","shortcut","active","toggle","disabled","options","value","menu-trigger","size","tone","placement"]}get options(){try{const t=JSON.parse(this.getAttribute("options")||"[]");return Array.isArray(t)?t.filter(t=>t&&"string"==typeof t.id&&"string"==typeof t.label):[]}catch{return[]}}set options(t){this.setAttribute("options","string"==typeof t?t:JSON.stringify(t))}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get disabled(){return this.hasAttribute("disabled")}connectedCallback(){this.ensure(),this.sync()}disconnectedCallback(){this.clearPress(),this.closeMenu(!1)}attributeChangedCallback(){this.isConnected&&(this.ensure(),this.sync())}ensure(){this.button||(this.classList.add("designbase-wc-tool-button"),this.tooltip=document.createElement("db-tooltip"),this.tooltip.setAttribute("position","bottom"),this.tooltip.setAttribute("focus-target","child"),this.tooltip.setAttribute("delay","350"),this.tooltip.setAttribute("size","s"),this.button=document.createElement("db-button"),this.button.id=i("design-tool"),this.button.setAttribute("variant","ghost"),this.button.setAttribute("type","button"),this.tooltip.append(this.button),this.menuPopover=document.createElement("db-popover"),this.menuPopover.setAttribute("trigger","manual"),this.menuPopover.setAttribute("open","false"),this.menuPopover.setAttribute("trigger-id",this.button.id),this.menuPopover.setAttribute("show-arrow","false"),this.menuPopover.setAttribute("size","s"),this.menuPopover.setAttribute("close-on-escape","false"),this.menuPopover.setAttribute("max-width","280"),this.menu=document.createElement("div"),this.menu.className="designbase-wc-tool-button__menu",this.menu.setAttribute("slot","content"),this.menu.setAttribute("role","menu"),this.menu.addEventListener("keydown",this.menuKey),this.menuPopover.append(this.menu),this.menuPopover.addEventListener("db-open-change",t=>{if(t.target!==this.menuPopover)return;const e=t.detail.open;this.button.setAttribute("aria-expanded",String(e)),this.tooltip.toggleAttribute("disabled",e),e||this.releaseMenuOwner()}),this.button.addEventListener("db-click",t=>{t.stopPropagation(),this.disabled||(this.held?this.held=!1:this.options.length&&"long-press"!==this.getAttribute("menu-trigger")?this.menuPopover?.open?this.closeMenu():this.openMenu():this.activate(this.options.find(t=>t.id===this.value)||this.options[0]))}),this.button.addEventListener("pointerdown",this.pressStart),this.button.addEventListener("pointerup",this.pressEnd),this.button.addEventListener("pointerleave",()=>this.clearPress()),this.button.addEventListener("pointercancel",()=>{this.held=!0,this.clearPress()}),this.button.addEventListener("pointermove",t=>{this.pointer&&Math.hypot(t.clientX-this.pointer.x,t.clientY-this.pointer.y)>8&&this.clearPress()}),this.button.addEventListener("contextmenu",t=>{this.options.length&&(t.preventDefault(),this.openMenu())}),this.button.addEventListener("keydown",t=>{const e="vertical"===this.closest("db-design-toolbar,db-context-bar")?.getAttribute("orientation");(t.key===(e?"ArrowRight":"ArrowDown")||t.altKey&&"Enter"===t.key)&&this.options.length&&(t.preventDefault(),t.stopPropagation(),this.openMenu())}),this.append(this.tooltip,this.menuPopover))}sync(){if(!this.button||!this.menu)return;const i=this.options,u=i.find(t=>t.id===this.value),a=(this.hasAttribute("text")?this.getAttribute("label"):u?.label)||this.getAttribute("label")||"도구",h=u?.icon||this.getAttribute("icon")||"",l=u?.shortcut||this.getAttribute("shortcut"),d=`${a}${l?` · ${l}`:""}${i.length&&"long-press"===this.getAttribute("menu-trigger")?" · 길게 눌러 도구 더 보기":""}`;this.button.setAttribute("aria-label",a),this.button.setAttribute("size",s(this.getAttribute("size"),o,"m")),this.button.toggleAttribute("disabled",this.disabled),this.button.toggleAttribute("icon-only",!this.hasAttribute("text")),this.hasAttribute("toggle")||this.hasAttribute("active")?this.button.setAttribute("aria-pressed",String(this.hasAttribute("active"))):this.button.removeAttribute("aria-pressed"),this.button.dataset.toolId=this.getAttribute("tool-id")||"",i.length?(this.button.setAttribute("aria-haspopup","menu"),this.button.setAttribute("aria-expanded",String(!!this.menuPopover?.open))):(this.button.removeAttribute("aria-haspopup"),this.button.removeAttribute("aria-expanded")),this.tooltip.content=d,this.menuPopover.setAttribute("placement",s((this.getAttribute("placement")||"bottom-start").replace(/^(top|bottom)-left$/,"$1-start").replace(/^(top|bottom)-right$/,"$1-end"),n,"bottom-start")),this.menu.setAttribute("aria-label",this.getAttribute("label")||a),this.menu.dataset.tone=s(this.getAttribute("tone"),r,"default");const b=`${h}|${this.getAttribute("text")||""}|${i.length>0}`;if(this.button.dataset.signature!==b){this.button.dataset.signature=b;const s=[];if(h&&t(h)&&s.push(e(h,20)),this.hasAttribute("text")){const t=document.createElement("span");t.textContent=this.getAttribute("text"),s.push(t)}if(i.length){const t=document.createElement("span");t.className="designbase-wc-tool-button__indicator",t.setAttribute("aria-hidden","true"),s.push(t)}this.button.replaceChildren(...s)}this.disabled&&this.menuPopover?.open&&this.closeMenu(!1);const p="long-press"===this.getAttribute("menu-trigger")||!!this.value,c=JSON.stringify([i,this.value,p]);this.menuSignature!==c&&(this.menuSignature=c,this.menu.replaceChildren(),i.forEach(i=>{const s=document.createElement("button");s.type="button",s.disabled=!!i.disabled,s.setAttribute("role",p?"menuitemradio":"menuitem"),p&&s.setAttribute("aria-checked",String(i.id===this.value)),s.tabIndex=-1,i.icon&&t(i.icon)&&s.append(e(i.icon,20));const o=document.createElement("span");if(o.textContent=i.label,s.append(o),i.shortcut){const t=document.createElement("kbd");t.textContent=i.shortcut,s.append(t)}i.id===this.value&&s.append(e("done",14)),s.addEventListener("click",()=>{p&&(this.value=i.id),this.closeMenu(!0),this.activate(i)}),this.menu.append(s)}))}activate(t){this.disabled||t?.disabled||this.dispatchEvent(new CustomEvent("db-tool-action",{detail:{id:this.getAttribute("tool-id")||"",optionId:t?.id,option:t},bubbles:!0,composed:!0}))}openMenu(){if(this.disabled||!this.options.length||!this.menuPopover)return;this.clearPress();const t=DbToolButton.openMenus.get(this.ownerDocument);t&&t!==this&&t.closeMenu(!1),DbToolButton.openMenus.set(this.ownerDocument,this),this.ownerDocument.addEventListener("pointerdown",this.outsidePress,!0),this.menuPopover.open=!0,this.button?.setAttribute("aria-expanded","true"),this.tooltip?.setAttribute("disabled",""),this.focusFrame&&cancelAnimationFrame(this.focusFrame),this.focusFrame=requestAnimationFrame(()=>{this.menu?.closest('[role="dialog"]')?.setAttribute("aria-label",this.getAttribute("label")||"도구 메뉴");const t=Array.from(this.menu?.querySelectorAll("button:not(:disabled)")||[]);(t.find(t=>"true"===t.getAttribute("aria-checked"))||t[0])?.focus()})}releaseMenuOwner(){DbToolButton.openMenus.get(this.ownerDocument)===this&&DbToolButton.openMenus.delete(this.ownerDocument),this.ownerDocument.removeEventListener("pointerdown",this.outsidePress,!0)}closeMenu(t=!0){this.releaseMenuOwner(),this.focusFrame&&cancelAnimationFrame(this.focusFrame),this.menuPopover?.setAttribute("open","false"),this.button?.setAttribute("aria-expanded","false"),this.tooltip?.removeAttribute("disabled"),t&&this.button?.focus()}clearPress(){this.timer&&clearTimeout(this.timer),this.timer=void 0,this.pointer=void 0}}DbToolButton.openMenus=new WeakMap,customElements.get("db-tool-button")||customElements.define("db-tool-button",DbToolButton);export{DbToolButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{labelFrom as t,t as e}from"../core/i18n.js";import"./db-button.js";class DbVoiceControl extends HTMLElement{constructor(){super(...arguments),this.built=!1}static get observedAttributes(){return["state","message","disabled","compact","start-label","stop-label","cancel-label"]}connectedCallback(){this.built||(this.built=!0,this.classList.add("designbase-wc-voice-control"),this.action=document.createElement("db-button"),this.label=document.createElement("span"),this.action.append(this.label),this.action.setAttribute("size","m"),this.action.setAttribute("radius","pill"),this.action.addEventListener("db-click",()=>{this.hasAttribute("disabled")||"unsupported"===this.getAttribute("state")||"stopping"===this.getAttribute("state")||this.emit(this.active?"stop":"start")}),this.cancel=document.createElement("db-button"),this.cancel.setAttribute("variant","ghost"),this.cancel.setAttribute("size","s"),this.cancel.setAttribute("start-icon","close"),this.cancel.setAttribute("icon-only",""),this.cancel.addEventListener("db-click",()=>{!this.hasAttribute("disabled")&&this.active&&this.emit("cancel")}),this.status=document.createElement("span"),this.status.setAttribute("role","status"),this.status.setAttribute("aria-live","polite"),this.append(this.action,this.status,this.cancel)),this.sync()}attributeChangedCallback(){this.built&&this.sync()}get active(){return["starting","listening","stopping"].includes(this.getAttribute("state")||"idle")}emit(t){this.dispatchEvent(new CustomEvent(
|
|
1
|
+
import{labelFrom as t,t as e}from"../core/i18n.js";import"./db-button.js";const i={start:"db-start",stop:"db-stop",cancel:"db-cancel"};class DbVoiceControl extends HTMLElement{constructor(){super(...arguments),this.built=!1}static get observedAttributes(){return["state","message","disabled","compact","start-label","stop-label","cancel-label"]}connectedCallback(){this.built||(this.built=!0,this.classList.add("designbase-wc-voice-control"),this.action=document.createElement("db-button"),this.label=document.createElement("span"),this.action.append(this.label),this.action.setAttribute("size","m"),this.action.setAttribute("radius","pill"),this.action.addEventListener("db-click",()=>{this.hasAttribute("disabled")||"unsupported"===this.getAttribute("state")||"stopping"===this.getAttribute("state")||this.emit(this.active?"stop":"start")}),this.cancel=document.createElement("db-button"),this.cancel.setAttribute("variant","ghost"),this.cancel.setAttribute("size","s"),this.cancel.setAttribute("start-icon","close"),this.cancel.setAttribute("icon-only",""),this.cancel.addEventListener("db-click",()=>{!this.hasAttribute("disabled")&&this.active&&this.emit("cancel")}),this.status=document.createElement("span"),this.status.setAttribute("role","status"),this.status.setAttribute("aria-live","polite"),this.append(this.action,this.status,this.cancel)),this.sync()}attributeChangedCallback(){this.built&&this.sync()}get active(){return["starting","listening","stopping"].includes(this.getAttribute("state")||"idle")}emit(t){this.dispatchEvent(new CustomEvent(i[t],{bubbles:!0,composed:!0}))}sync(){const i=this.getAttribute("state")||"idle",s=this.active?t(this,"stop-label","voice.stop"):t(this,"start-label","voice.start");this.action.setAttribute("aria-label",s),this.action.setAttribute("aria-pressed",String(this.active)),this.action.setAttribute("variant",this.active?"secondary":"ghost"),this.action.setAttribute("start-icon",this.active?"stop":"microphone"),this.action.toggleAttribute("icon-only",this.hasAttribute("compact")),this.label.textContent=s,this.label.hidden=this.hasAttribute("compact"),this.action.toggleAttribute("disabled",this.hasAttribute("disabled")||"unsupported"===i||"stopping"===i);const a={starting:e("voice.starting"),listening:e("voice.listening"),stopping:e("voice.stopping"),error:e("voice.error"),unsupported:e("voice.unsupported")};this.status.textContent=this.getAttribute("message")||a[i]||"",this.status.hidden=!this.status.textContent,this.cancel.hidden=!this.active,this.cancel.toggleAttribute("disabled",this.hasAttribute("disabled")),this.cancel.setAttribute("aria-label",t(this,"cancel-label","voice.cancel")),this.dataset.active=String(this.active)}}customElements.get("db-voice-control")||customElements.define("db-voice-control",DbVoiceControl);export{DbVoiceControl};
|
|
@@ -4,8 +4,9 @@ import '../components/db-button.js';
|
|
|
4
4
|
import '../components/db-badge.js';
|
|
5
5
|
import '../components/db-spinner.js';
|
|
6
6
|
import '../components/db-code-block.js';
|
|
7
|
+
import { AiElementStatus } from '../ui-contracts/dist/components.d.js';
|
|
7
8
|
|
|
8
|
-
type DbAiStatus =
|
|
9
|
+
type DbAiStatus = AiElementStatus;
|
|
9
10
|
interface DbAiItem {
|
|
10
11
|
id: string;
|
|
11
12
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DbElement as t}from"./base-element.js";import{textNode as e,replaceView as s}from"./credit-ui.js";import{sanitizeHref as i}from"./safe-url.js";import{t as a}from"./i18n.js";import{createDbIcon as n}from"../components/db-icons.js";import"../components/db-button.js";import"../components/db-badge.js";import"../components/db-spinner.js";import"../components/db-code-block.js";
|
|
1
|
+
import{DbElement as t}from"./base-element.js";import{textNode as e,replaceView as s}from"./credit-ui.js";import{sanitizeHref as i}from"./safe-url.js";import{t as a}from"./i18n.js";import{createDbIcon as n}from"../components/db-icons.js";import"../components/db-button.js";import"../components/db-badge.js";import"../components/db-spinner.js";import"../components/db-code-block.js";import{AI_ELEMENT_STATUSES as r}from"../node_modules/@designbasekorea/ui-contracts/dist/components.js";const o=e;function aiIcon(t){return n(t,18)}function aiState(t){return r.includes(t)?t:"pending"}function aiStatus(t,e){const s=o("span","designbase-wc-ai__icon","");if(s.dataset.status=t,s.setAttribute("role","img"),s.setAttribute("aria-label",a(`aiElement.${t}`)),"running"===t){const t=document.createElement("db-spinner");t.setAttribute("size","s"),t.setAttribute("color","var(--db-text-secondary)"),t.setAttribute("aria-hidden","true"),s.append(t)}else s.append(aiIcon("error"===t?"error-filled":e||("complete"===t?"circle-checked":"clock")));return s}function aiCode(t,e="text"){const s=document.createElement("db-code-block");return s.setAttribute("code",t),s.setAttribute("language",e),s.setAttribute("show-line-numbers","false"),s.setAttribute("show-language","false"),s}function aiLink(t){const e=i(t.href,""),s=o(e?"a":"span","designbase-wc-ai__source",""),a=o("db-badge","",t.label);return a.setAttribute("variant","secondary"),a.setAttribute("size","s"),s.append(a),s instanceof HTMLAnchorElement&&(s.href=e,s.target="_blank",s.rel="noopener noreferrer"),s}function readItems(t,e=0){if(!Array.isArray(t)||e>8)return[];const s=new Set;return t.slice(0,500).flatMap(t=>{if(!t||"object"!=typeof t||!("id"in t)||!("label"in t)||"string"!=typeof t.id||!t.id||s.has(t.id)||"string"!=typeof t.label)return[];s.add(t.id);const i={id:t.id,label:t.label};for(const e of["description","code","language","href","meta"]){const s=Reflect.get(t,e);"string"==typeof s&&(i[e]=s)}return"status"in t&&"string"==typeof t.status&&(i.status=aiState(t.status)),"open"in t&&"boolean"==typeof t.open&&(i.open=t.open),"children"in t&&(i.children=readItems(t.children,e+1)),[i]})}class DbAiDataElement extends t{constructor(){super(...arguments),this.data=[],this.disclosureState=new Map}get items(){return structuredClone(this.data)}set items(t){this.data=readItems(t),delete this.dataset.invalidItems,this.update()}get rows(){return this.data}connectedCallback(){this.upgradeProperties(["items"]),this.hasAttribute("items")&&this.readAttributeItems(),this.cleanups.listen(this,"db-click",t=>{const e=t.target;if(!(e instanceof HTMLElement)||e.closest(this.localName)!==this||this.hasAttribute("disabled"))return;const s=e.dataset.aiAction;s&&(t.stopPropagation(),this.action(s,e.dataset.id||""))}),this.cleanups.listen(this,"click",t=>{const e=t.target?.closest("summary[data-ai-disclosure]");if(!e||e.closest(this.localName)!==this)return;const s=e.parentElement;this.disclosureState.set(e.dataset.aiDisclosure||"",!s.open),this.dbEmit("open-change",{id:e.dataset.aiDisclosure,open:!s.open})}),this.update()}attributeChangedCallback(t,e,s){e!==s&&("items"===t&&this.readAttributeItems(),this.update("open"===t))}readAttributeItems(){delete this.dataset.invalidItems;try{this.data=readItems(JSON.parse(this.getAttribute("items")||"[]"))}catch{this.data=[],this.dataset.invalidItems="true"}}attr(t,e){return this.getAttribute(t)||(e?a(`aiElement.${e}`):"")}get state(){return aiState(this.getAttribute("status"))}action(t,e){this.dbEmit(t,{id:e||this.attr("item-id"),action:t})}button(t,e,s,i=""){const a=document.createElement("db-button");return a.dataset.aiAction=t,a.dataset.id=i,a.dataset.action=`${t}:${i}`,a.setAttribute("variant","ghost"),a.setAttribute("size","s"),a.toggleAttribute("disabled",this.hasAttribute("disabled")),s&&a.setAttribute("start-icon",s),a.textContent=e,a}closeDisclosure(t,e=!1){if(!t.open)return;t.open=!1;const s=t.dataset.key||"root";this.disclosureState.set(s,!1),this.dbEmit("open-change",{id:s,open:!1}),e&&Array.from(this.querySelectorAll("details[data-key]")).find(t=>t.dataset.key===s)?.querySelector("summary")?.focus()}disclosure(t,e,s,i,a=!1,n){const r=document.createElement("details");r.className="designbase-wc-ai__disclosure",r.dataset.key=t,r.open=this.disclosureState.get(t)??a;const d=o("summary","designbase-wc-ai__line","");d.dataset.aiDisclosure=t,d.dataset.action=`disclosure:${t}`,d.tabIndex=0,d.append(aiStatus(s,n),o("span","designbase-wc-ai__label",e),aiIcon("chevron-right"));const c=o("div","designbase-wc-ai__detail","");return c.append(...i),r.append(d,c),r}itemLine(t){const e=[];if(t.description&&e.push(o("p","designbase-wc-ai__description",t.description)),t.code&&e.push(aiCode(t.code,t.language)),t.children?.length){const s=o("div","designbase-wc-ai__sources","");s.append(...t.children.map(aiLink)),e.push(s)}if(e.length){const s=this.disclosure(`item:${t.id}`,t.label,t.status||"pending",e,t.open??"running"===t.status);return t.meta&&s.querySelector("summary")?.insertBefore(o("span","designbase-wc-ai__meta",t.meta),s.querySelector("summary").lastElementChild),s}const s=o("div","designbase-wc-ai__line","");return s.append(aiStatus(t.status||"pending"),o("span","designbase-wc-ai__label",t.label)),t.meta&&s.append(o("span","designbase-wc-ai__meta",t.meta)),s}update(t=!1){if(this.isConnected){for(const t of this.querySelectorAll("details[data-key]"))t.closest(this.localName)===this&&this.disclosureState.set(t.dataset.key||"",t.open);t&&this.disclosureState.delete("root"),this.classList.add("designbase-wc-ai",`designbase-wc-${this.localName.slice(3)}`),this.dataset.status=this.state,s(this,...this.view())}}}export{DbAiDataElement,aiCode,aiIcon,aiLink,o as aiNode,aiState,aiStatus};
|
package/dist/esm/core/i18n-en.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={"upload.title":"Drag files here or click to choose","upload.choose":"Choose files","upload.allFormats":"All file types supported","upload.maximum":" (up to {size})","upload.files":"Uploaded files ({count})","upload.retry":"Retry","upload.remove":"Remove","upload.illustration":"Upload illustration","creditCard.security":"Security code {code}","creditCard.label":"{issuer} card{lastFour}, flip","creditCard.ending":", ending in {digits}","creditCard.front":"Front","creditCard.back":"Back","creditCard.showing":"Showing {side}","creditCard.expiry":"Expires {expiry}","creditCard.show":"Press to show {side}","flight.scheduled":"Scheduled","flight.boarding":"Boarding","flight.in-flight":"In flight","flight.landed":"Landed","flight.delayed":"Delayed","flight.cancelled":"Cancelled","flight.title":"Flight status","flight.progress":"Journey progress","boardingPass.origin":"From","boardingPass.destination":"To","boardingPass.passenger":"Passenger","boardingPass.service":"Flight","boardingPass.date":"Date","boardingPass.boarding":"Boarding","boardingPass.departure":"Departure","boardingPass.arrival":"Arrival","boardingPass.terminal":"Terminal","boardingPass.gate":"Gate","boardingPass.seat":"Seat","boardingPass.travelClass":"Class","boardingPass.title":"Boarding pass","wallet.title":"My boarding passes","wallet.empty":"No boarding passes yet.","wallet.journeys":"Choose a journey","receipt.quantity":"Qty","receipt.subtotal":"Subtotal","receipt.discount":"Discount","receipt.tax":"Tax","receipt.total":"Total","receipt.payment":"Payment","receipt.empty":"No items to display.","receipt.invalid":"Check the items and amounts.","receipt.title":"Receipt","paper.codeImage":"Code image","aiElement.emptyFolder":"Empty folder","aiElement.noFiles":"No files to display.","attachment.title":"Attachments","attachment.empty":"No attachments yet.","attachment.queued":"Queued","attachment.uploading":"Uploading","attachment.processing":"Processing","attachment.ready":"Ready","attachment.error":"Failed","attachment.cancelled":"Cancelled","attachment.unknown":"Checking progress…","attachment.cancel":"Cancel","attachment.retry":"Retry","attachment.remove":"Remove from list","attachment.open":"View details","attachment.reload":"Reload","workspace.members":"Workspace members","workspace.invite":"Invite members","workspace.email":"Email","workspace.role":"Role","workspace.chooseRole":"Choose a role","workspace.description":"Review the email address and role of the person you want to invite.","workspace.submit":"Send invitation","workspace.emailError":"Enter a valid email address of up to 254 characters.","workspace.roleError":"Choose a role for the invitation.","workspace.retry":"Reload","workspace.reinvite":"Invite again","workspace.active":"Active","workspace.invited":"Invitation pending","workspace.expired":"Invitation expired","workspace.empty":"No members to display yet.","aiElement.pending":"Pending","aiElement.running":"In progress","aiElement.complete":"Complete","aiElement.error":"Failed","aiElement.cancelled":"Cancelled","aiElement.approval":"Awaiting approval","aiElement.researching":"Reviewing sources","aiElement.researched":"View research","aiElement.thinking":"Thinking","aiElement.reasoning":"Response summary","aiElement.plan":"Plan","aiElement.queue":"Queued requests","aiElement.remove":"Remove","aiElement.queueEmpty":"No queued requests.","aiElement.sources":"Sources","aiElement.citation":"Source","aiElement.checkpoint":"Checkpoint saved","aiElement.restore":"Restore from here","aiElement.confirmation":"Proceed with this action?","aiElement.allow":"Allow","aiElement.reject":"Reject","aiElement.accepted":"Action approved.","aiElement.rejected":"Action rejected.","aiElement.context":"Context","aiElement.tokens":"Tokens","aiElement.unknown":"Usage is not available yet.","aiElement.files":"Files","aiElement.task":"Task progress","aiElement.subagent":"Subagent","aiElement.tool":"Tool call","aiElement.terminal":"Terminal","aiElement.stackTrace":"Error details","aiElement.tests":"Test results","aiElement.passed":"Passed","aiElement.failed":"Failed","aiElement.input":"Input","aiElement.output":"Output","aiElement.user":"User","aiElement.assistant":"AI response","aiElement.copy":"Copy","aiElement.regenerate":"Regenerate","aiElement.like":"Like","aiElement.dislike":"Dislike","aiElement.latest":"Latest response","aiElement.conversation":"AI conversation","notification.title":"Notifications","notification.filters":"Notification filters","notification.all":"All","notification.unread":"Unread","notification.readAll":"Mark displayed notifications as read","notification.markRead":"Mark as read","notification.retry":"Reload","notification.empty":"No notifications yet.","notification.caughtUp":"You’re all caught up.","notification.countUnknown":"Needs review","aiModel.label":"Model","aiModel.choose":"Choose a model","aiModel.empty":"No models are available right now.","aiModel.capabilities":"Capabilities","aiModel.usage":"Usage unit","aiQuote.expires":"Quote expires","aiQuote.title":"Execution estimate","aiQuote.reserved":"Maximum credit reservation","aiQuote.providerCost":"Estimated provider cost","aiQuote.pricingVersion":"Pricing version","aiQuote.unknown":"Unconfirmed","aiQuote.idle":"Choose a model and enter a request to get an estimate.","aiQuote.loading":"Checking the estimate…","aiQuote.executing":"Processing your request. Do not submit it again.","aiQuote.stale":"The model or input has changed. Refresh the estimate.","aiQuote.expired":"The estimate has expired. Request a new estimate.","aiQuote.balanceUnknown":"Your balance is unavailable. Refresh to try again.","aiQuote.insufficient":"Additional credits needed:","aiQuote.ready":"Credits are reserved when execution starts and settled against actual usage when it finishes.","aiQuote.refresh":"Refresh estimate","aiQuote.request":"Get estimate","aiQuote.execute":"Run","plan.current":"Current plan","plan.usage":"Usage this period","plan.allowed":"Included","plan.locked":"Not included","plan.manage":"Manage plan","plan.retry":"Reload","history.title":"Credit history","history.empty":"No history yet.","history.unresolved":"Checking","history.grant":"Granted","history.charge":"Used","history.hold":"Reserved · not settled","history.release":"Reservation released","credits.choosePlan":"Credits to add","credits.rechargeDescription":"Choose an amount and review the price and terms.","credits.paymentAmount":"Payment amount","credits.paymentPending":"Checking payment status","credits.remaining":"Remaining credits","credits.available":"Available credits","credits.unit":"credits","credits.held":"Reserved","credits.spent":"Total used","credits.charged":"Charged","credits.low":"Your credit balance is running low.","credits.recharge":"Add credits","credits.checkout":"Continue to payment","credits.noPlans":"No credit packs are available right now.","aiTask.title":"AI task","aiTask.idle":"Not started","aiTask.queued":"Queued","aiTask.running":"Running","aiTask.succeeded":"Complete","aiTask.failed":"Failed","aiTask.cancelled":"Cancelled","aiTask.needs_attention":"Review needed","aiTask.attentionDescription":"We’re checking the result and usage. Reserved credits remain on hold until the review is complete.",close:"Close","modal.close":"Close modal","drawer.close":"Close drawer","dialog.close":"Close dialog","toast.close":"Dismiss notification",clear:"Clear",clearAll:"Clear all",loading:"Loading",required:"Required",optional:"Optional",error:"Error",success:"Success",warning:"Warning",info:"Information",previous:"Previous",next:"Next","select.placeholder":"Select…","select.noResults":"No results","navigationRail.label":"Main navigation","navigationRail.newNotification":"New notification","navigationRail.notifications":"Notifications","tabs.label":"Tabs","pagination.label":"Pagination","search.label":"Search","media.play":"Play","media.pause":"Pause","media.mute":"Mute","media.unmute":"Unmute","media.settings":"Settings","media.shuffle":"Shuffle","media.repeat":"Repeat","media.previous":"Previous track","media.next":"Next track","media.fullscreen":"Full screen","carousel.previous":"Previous slide","carousel.next":"Next slide","breadcrumbs.expand":"Show hidden path","input.showPassword":"Show password","input.hidePassword":"Hide password","input.clearSearch":"Clear search","verify.done":"Verified","verify.phoneDone":"Your phone number has been verified.","bentoCard.cta":"View details","tweetCard.loading":"Loading post…","tweetCard.error":"Unable to load this post.","tweetCard.viewOnTwitter":"View on X","tweetCard.like":"Like","tweetCard.retweet":"Repost","tweetCard.reply":"Reply","tweetCard.verified":"Verified account","tweetCard.retry":"Try again","chatComposer.placeholder":"Type a message…","chatComposer.send":"Send","chatComposer.stop":"Stop generating","chatComposer.attach":"Attach","voice.start":"Voice input","voice.stop":"Finish dictation","voice.cancel":"Cancel voice input","voice.starting":"Connecting microphone","voice.listening":"Listening","voice.stopping":"Finishing transcription","voice.error":"Voice recognition failed","voice.unsupported":"Voice input not supported"};export{e as ENGLISH_STRINGS};
|
|
1
|
+
const e={"upload.title":"Drag files here or click to choose","upload.choose":"Choose files","upload.allFormats":"All file types supported","upload.maximum":" (up to {size})","upload.files":"Uploaded files ({count})","upload.retry":"Retry","upload.remove":"Remove","upload.illustration":"Upload illustration","creditCard.security":"Security code {code}","creditCard.label":"{issuer} card{lastFour}, flip","creditCard.ending":", ending in {digits}","creditCard.front":"Front","creditCard.back":"Back","creditCard.showing":"Showing {side}","creditCard.expiry":"Expires {expiry}","creditCard.show":"Press to show {side}","flight.scheduled":"Scheduled","flight.boarding":"Boarding","flight.in-flight":"In flight","flight.landed":"Landed","flight.delayed":"Delayed","flight.cancelled":"Cancelled","flight.title":"Flight status","flight.progress":"Journey progress","boardingPass.origin":"From","boardingPass.destination":"To","boardingPass.passenger":"Passenger","boardingPass.service":"Flight","boardingPass.date":"Date","boardingPass.boarding":"Boarding","boardingPass.departure":"Departure","boardingPass.arrival":"Arrival","boardingPass.terminal":"Terminal","boardingPass.gate":"Gate","boardingPass.seat":"Seat","boardingPass.travelClass":"Class","boardingPass.title":"Boarding pass","wallet.title":"My boarding passes","wallet.empty":"No boarding passes yet.","wallet.journeys":"Choose a journey","receipt.quantity":"Qty","receipt.subtotal":"Subtotal","receipt.discount":"Discount","receipt.tax":"Tax","receipt.total":"Total","receipt.payment":"Payment","receipt.empty":"No items to display.","receipt.invalid":"Check the items and amounts.","receipt.title":"Receipt","paper.codeImage":"Code image","aiElement.emptyFolder":"Empty folder","aiElement.noFiles":"No files to display.","attachment.title":"Attachments","attachment.empty":"No attachments yet.","attachment.queued":"Queued","attachment.uploading":"Uploading","attachment.processing":"Processing","attachment.ready":"Ready","attachment.error":"Failed","attachment.cancelled":"Cancelled","attachment.unknown":"Checking progress…","attachment.cancel":"Cancel","attachment.retry":"Retry","attachment.remove":"Remove from list","attachment.open":"View details","attachment.reload":"Reload","workspace.members":"Workspace members","workspace.invite":"Invite members","workspace.email":"Email","workspace.role":"Role","workspace.chooseRole":"Choose a role","workspace.description":"Review the email address and role of the person you want to invite.","workspace.submit":"Send invitation","workspace.emailError":"Enter a valid email address of up to 254 characters.","workspace.roleError":"Choose a role for the invitation.","workspace.retry":"Reload","workspace.reinvite":"Invite again","workspace.active":"Active","workspace.invited":"Invitation pending","workspace.expired":"Invitation expired","workspace.empty":"No members to display yet.","aiElement.pending":"Pending","aiElement.running":"In progress","aiElement.complete":"Complete","aiElement.error":"Failed","aiElement.cancelled":"Cancelled","aiElement.approval":"Awaiting approval","aiElement.researching":"Reviewing sources","aiElement.researched":"View research","aiElement.thinking":"Thinking","aiElement.reasoning":"Response summary","aiElement.plan":"Plan","aiElement.queue":"Queued requests","aiElement.remove":"Remove","aiElement.queueEmpty":"No queued requests.","aiElement.sources":"Sources","aiElement.citation":"Source","aiElement.checkpoint":"Checkpoint saved","aiElement.restore":"Restore from here","aiElement.confirmation":"Proceed with this action?","aiElement.allow":"Allow","aiElement.reject":"Reject","aiElement.accepted":"Action approved.","aiElement.rejected":"Action rejected.","aiElement.context":"Context","aiElement.tokens":"Tokens","aiElement.unknown":"Usage is not available yet.","aiElement.files":"Files","aiElement.task":"Task progress","aiElement.subagent":"Subagent","aiElement.tool":"Tool call","aiElement.terminal":"Terminal","aiElement.stackTrace":"Error details","aiElement.tests":"Test results","aiElement.passed":"Passed","aiElement.failed":"Failed","aiElement.input":"Input","aiElement.output":"Output","aiElement.user":"User","aiElement.assistant":"AI response","aiElement.copy":"Copy","aiElement.regenerate":"Regenerate","aiElement.like":"Like","aiElement.dislike":"Dislike","aiElement.latest":"Latest response","aiElement.conversation":"AI conversation","notification.title":"Notifications","notification.filters":"Notification filters","notification.all":"All","notification.unread":"Unread","notification.readAll":"Mark displayed notifications as read","notification.markRead":"Mark as read","notification.retry":"Reload","notification.empty":"No notifications yet.","notification.caughtUp":"You’re all caught up.","notification.countUnknown":"Needs review","aiModel.label":"Model","aiModel.choose":"Choose a model","aiModel.empty":"No models are available right now.","aiModel.capabilities":"Capabilities","aiModel.usage":"Usage unit","aiQuote.expires":"Quote expires","aiQuote.title":"Execution estimate","aiQuote.reserved":"Maximum credit reservation","aiQuote.providerCost":"Estimated provider cost","aiQuote.pricingVersion":"Pricing version","aiQuote.unknown":"Unconfirmed","aiQuote.idle":"Choose a model and enter a request to get an estimate.","aiQuote.loading":"Checking the estimate…","aiQuote.executing":"Processing your request. Do not submit it again.","aiQuote.stale":"The model or input has changed. Refresh the estimate.","aiQuote.expired":"The estimate has expired. Request a new estimate.","aiQuote.balanceUnknown":"Your balance is unavailable. Refresh to try again.","aiQuote.insufficient":"Additional credits needed:","aiQuote.ready":"Credits are reserved when execution starts and settled against actual usage when it finishes.","aiQuote.refresh":"Refresh estimate","aiQuote.request":"Get estimate","aiQuote.execute":"Run","plan.current":"Current plan","plan.usage":"Usage this period","plan.allowed":"Included","plan.locked":"Not included","plan.manage":"Manage plan","plan.retry":"Reload","history.title":"Credit history","history.empty":"No history yet.","history.unresolved":"Checking","history.grant":"Granted","history.charge":"Used","history.hold":"Reserved · not settled","history.release":"Reservation released","credits.choosePlan":"Credits to add","credits.rechargeDescription":"Choose an amount and review the price and terms.","credits.paymentAmount":"Payment amount","credits.paymentPending":"Checking payment status","credits.remaining":"Remaining credits","credits.available":"Available credits","credits.unit":"credits","credits.held":"Reserved","credits.spent":"Total used","credits.charged":"Charged","credits.low":"Your credit balance is running low.","credits.recharge":"Add credits","credits.checkout":"Continue to payment","credits.noPlans":"No credit packs are available right now.","aiTask.title":"AI task","aiTask.idle":"Not started","aiTask.queued":"Queued","aiTask.running":"Running","aiTask.succeeded":"Complete","aiTask.failed":"Failed","aiTask.cancelled":"Cancelled","aiTask.needs_attention":"Review needed","aiTask.attentionDescription":"We’re checking the result and usage. Reserved credits remain on hold until the review is complete.",close:"Close","modal.close":"Close modal","drawer.close":"Close drawer","dialog.close":"Close dialog","toast.close":"Dismiss notification",clear:"Clear",clearAll:"Clear all",loading:"Loading",required:"Required",optional:"Optional",error:"Error",success:"Success",warning:"Warning",info:"Information",previous:"Previous",next:"Next","select.placeholder":"Select…","select.noResults":"No results","navigationRail.label":"Main navigation","navigationRail.newNotification":"New notification","navigationRail.notifications":"Notifications","tabs.label":"Tabs","pagination.label":"Pagination","search.label":"Search","media.play":"Play","media.pause":"Pause","media.mute":"Mute","media.unmute":"Unmute","media.settings":"Settings","media.shuffle":"Shuffle","media.repeat":"Repeat","media.previous":"Previous track","media.next":"Next track","media.fullscreen":"Full screen","confirm.ok":"Confirm","confirm.cancel":"Cancel","carousel.slide":"slide","carousel.role":"carousel","carousel.previous":"Previous slide","carousel.next":"Next slide","breadcrumbs.expand":"Show hidden path","input.showPassword":"Show password","input.hidePassword":"Hide password","input.clearSearch":"Clear search","verify.done":"Verified","verify.phoneDone":"Your phone number has been verified.","bentoCard.cta":"View details","tweetCard.loading":"Loading post…","tweetCard.error":"Unable to load this post.","tweetCard.viewOnTwitter":"View on X","tweetCard.like":"Like","tweetCard.retweet":"Repost","tweetCard.reply":"Reply","tweetCard.verified":"Verified account","tweetCard.retry":"Try again","chatComposer.placeholder":"Type a message…","chatComposer.send":"Send","chatComposer.stop":"Stop generating","chatComposer.attach":"Attach","voice.start":"Voice input","voice.stop":"Finish dictation","voice.cancel":"Cancel voice input","voice.starting":"Connecting microphone","voice.listening":"Listening","voice.stopping":"Finishing transcription","voice.error":"Voice recognition failed","voice.unsupported":"Voice input not supported"};export{e as ENGLISH_STRINGS};
|
package/dist/esm/core/i18n.d.ts
CHANGED
|
@@ -239,6 +239,10 @@ declare const DEFAULT_STRINGS: {
|
|
|
239
239
|
readonly 'media.previous': "이전 트랙";
|
|
240
240
|
readonly 'media.next': "다음 트랙";
|
|
241
241
|
readonly 'media.fullscreen': "전체화면";
|
|
242
|
+
readonly 'confirm.ok': "확인";
|
|
243
|
+
readonly 'confirm.cancel': "취소";
|
|
244
|
+
readonly 'carousel.slide': "슬라이드";
|
|
245
|
+
readonly 'carousel.role': "캐러셀";
|
|
242
246
|
readonly 'carousel.previous': "이전 슬라이드";
|
|
243
247
|
readonly 'carousel.next': "다음 슬라이드";
|
|
244
248
|
readonly 'breadcrumbs.expand': "생략된 경로 펼치기";
|
package/dist/esm/core/i18n.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{literalEnglish as e}from"./i18n-copy.js";import{ENGLISH_STRINGS as a}from"./i18n-en.js";const i={"upload.title":"파일을 드래그하여 업로드하거나 클릭하여 선택하세요","upload.choose":"파일 선택","upload.allFormats":"모든 파일 형식 지원","upload.maximum":" (최대 {size})","upload.files":"업로드된 파일들 ({count}개)","upload.retry":"재시도","upload.remove":"삭제","upload.illustration":"업로드 일러스트","creditCard.security":"보안 코드 {code}","creditCard.label":"{issuer} 카드{lastFour}, 뒤집기","creditCard.ending":", 끝자리 {digits}","creditCard.front":"앞면","creditCard.back":"뒷면","creditCard.showing":"{side} 표시 중","creditCard.expiry":"유효기간 {expiry}","creditCard.show":"누르면 {side}을 표시합니다","flight.scheduled":"출발 예정","flight.boarding":"탑승 중","flight.in-flight":"운항 중","flight.landed":"도착","flight.delayed":"지연","flight.cancelled":"취소","flight.title":"운항 현황","flight.progress":"여정 진행률","boardingPass.origin":"출발","boardingPass.destination":"도착","boardingPass.passenger":"탑승객","boardingPass.service":"편명","boardingPass.date":"날짜","boardingPass.boarding":"탑승 시각","boardingPass.departure":"출발 시각","boardingPass.arrival":"도착 시각","boardingPass.terminal":"터미널","boardingPass.gate":"게이트","boardingPass.seat":"좌석","boardingPass.travelClass":"등급","boardingPass.title":"탑승권","wallet.title":"나의 탑승권","wallet.empty":"등록된 탑승권이 없습니다.","wallet.journeys":"여정 선택","receipt.quantity":"수량","receipt.subtotal":"소계","receipt.discount":"할인","receipt.tax":"세금","receipt.total":"합계","receipt.payment":"결제수단","receipt.empty":"표시할 품목이 없습니다.","receipt.invalid":"품목과 금액 정보를 확인해주세요.","receipt.title":"영수증","paper.codeImage":"코드 이미지","aiElement.emptyFolder":"빈 폴더","aiElement.noFiles":"표시할 파일이 없습니다.","attachment.title":"첨부 파일","attachment.empty":"아직 첨부한 파일이 없습니다.","attachment.queued":"대기 중","attachment.uploading":"업로드 중","attachment.processing":"서버 처리 중","attachment.ready":"완료","attachment.error":"실패","attachment.cancelled":"취소됨","attachment.unknown":"진행률을 확인하고 있어요.","attachment.cancel":"취소","attachment.retry":"재시도","attachment.remove":"목록에서 제거","attachment.open":"상세 보기","attachment.reload":"다시 불러오기","workspace.members":"워크스페이스 멤버","workspace.invite":"멤버 초대","workspace.email":"이메일","workspace.role":"초대 역할","workspace.chooseRole":"역할을 선택하세요","workspace.description":"함께 작업할 사람의 이메일과 역할을 확인하세요.","workspace.submit":"초대 요청","workspace.emailError":"254자 이내의 올바른 이메일 주소를 입력해 주세요.","workspace.roleError":"초대할 역할을 선택해 주세요.","workspace.retry":"다시 불러오기","workspace.reinvite":"다시 초대","workspace.active":"이용 중","workspace.invited":"초대 대기","workspace.expired":"초대 만료","workspace.empty":"아직 표시할 멤버가 없습니다.","aiElement.pending":"대기 중","aiElement.running":"진행 중","aiElement.complete":"완료","aiElement.error":"실패","aiElement.cancelled":"취소됨","aiElement.approval":"승인 대기","aiElement.researching":"자료를 확인하고 있어요","aiElement.researched":"작업 과정 살펴보기","aiElement.thinking":"생각 정리 중","aiElement.reasoning":"응답 요약","aiElement.plan":"작업 계획","aiElement.queue":"대기 중인 요청","aiElement.remove":"제거","aiElement.queueEmpty":"대기 중인 요청이 없습니다.","aiElement.sources":"참고한 출처","aiElement.citation":"출처","aiElement.checkpoint":"체크포인트 저장됨","aiElement.restore":"여기부터 복원","aiElement.confirmation":"이 작업을 진행할까요?","aiElement.allow":"허용","aiElement.reject":"거절","aiElement.accepted":"작업을 허용했습니다.","aiElement.rejected":"작업을 거절했습니다.","aiElement.context":"컨텍스트","aiElement.tokens":"토큰","aiElement.unknown":"사용량을 아직 확인할 수 없습니다.","aiElement.files":"작업 파일","aiElement.task":"작업 진행","aiElement.subagent":"보조 에이전트","aiElement.tool":"도구 실행","aiElement.terminal":"터미널","aiElement.stackTrace":"오류 상세","aiElement.tests":"테스트 결과","aiElement.passed":"통과","aiElement.failed":"실패","aiElement.input":"입력","aiElement.output":"출력","aiElement.user":"사용자","aiElement.assistant":"AI 응답","aiElement.copy":"복사","aiElement.regenerate":"다시 생성","aiElement.like":"좋아요","aiElement.dislike":"싫어요","aiElement.latest":"최신 응답으로","aiElement.conversation":"AI와의 대화","notification.title":"알림","notification.filters":"알림 필터","notification.all":"전체","notification.unread":"안 읽음","notification.readAll":"표시된 알림 모두 읽음","notification.markRead":"읽음으로 표시","notification.retry":"다시 불러오기","notification.empty":"아직 도착한 알림이 없습니다.","notification.caughtUp":"모든 알림을 확인했어요.","notification.countUnknown":"확인 필요","aiModel.label":"사용 모델","aiModel.choose":"모델을 선택하세요","aiModel.empty":"현재 사용할 수 있는 모델이 없습니다.","aiModel.capabilities":"지원 작업","aiModel.usage":"사용량 단위","aiQuote.expires":"견적 유효 시간","aiQuote.title":"실행 전 견적","aiQuote.reserved":"예약할 최대 크레딧","aiQuote.providerCost":"예상 제공사 비용","aiQuote.pricingVersion":"가격표 버전","aiQuote.unknown":"미확정","aiQuote.idle":"모델과 요청 내용을 정한 뒤 견적을 확인하세요.","aiQuote.loading":"견적을 확인하고 있습니다.","aiQuote.executing":"요청을 처리하고 있습니다. 중복 실행하지 마세요.","aiQuote.stale":"모델 또는 입력이 변경됐습니다. 견적을 다시 확인하세요.","aiQuote.expired":"견적이 만료됐습니다. 견적을 다시 확인하세요.","aiQuote.balanceUnknown":"잔액을 확인할 수 없습니다. 새로 확인해 주세요.","aiQuote.insufficient":"추가로 필요한 크레딧:","aiQuote.ready":"실행 시 최대 크레딧을 예약하고, 결과 확인 후 실제 사용량으로 정산합니다.","aiQuote.refresh":"견적 다시 확인","aiQuote.request":"견적 확인","aiQuote.execute":"실행하기","plan.current":"현재 플랜","plan.usage":"이번 기간 사용","plan.allowed":"이용 가능","plan.locked":"미포함","plan.manage":"플랜 관리","plan.retry":"다시 불러오기","history.title":"크레딧 사용 내역","history.empty":"아직 표시할 내역이 없습니다.","history.unresolved":"확인 중","history.grant":"지급","history.charge":"사용","history.hold":"예약 · 정산 전","history.release":"예약 해제","credits.choosePlan":"충전할 크레딧","credits.rechargeDescription":"필요한 만큼 선택하고, 금액과 제공 조건을 확인하세요.","credits.paymentAmount":"결제 금액","credits.paymentPending":"결제 상태 확인 중","credits.remaining":"현재 남은 크레딧","credits.available":"사용 가능 크레딧","credits.unit":"크레딧","credits.held":"예약 중","credits.spent":"누적 사용","credits.charged":"차감","credits.low":"남은 크레딧이 적습니다.","credits.recharge":"크레딧 충전","credits.checkout":"결제 진행","credits.noPlans":"현재 충전 가능한 상품이 없습니다.","aiTask.title":"AI 작업","aiTask.idle":"작업 전","aiTask.queued":"실행 대기","aiTask.running":"실행 중","aiTask.succeeded":"완료","aiTask.failed":"실패","aiTask.cancelled":"취소됨","aiTask.needs_attention":"결과 확인 필요","aiTask.attentionDescription":"결과와 사용량을 확인하고 있습니다. 확인이 끝날 때까지 예약 크레딧이 유지됩니다.",close:"닫기","modal.close":"모달 닫기","drawer.close":"드로어 닫기","dialog.close":"대화상자 닫기","toast.close":"알림 닫기",clear:"지우기",clearAll:"모든 값 지우기",loading:"로딩 중",required:"필수",optional:"선택",error:"오류",success:"성공",warning:"경고",info:"안내",previous:"이전",next:"다음","select.placeholder":"선택하세요","select.noResults":"결과 없음","navigationRail.label":"주요 내비게이션","navigationRail.newNotification":"새 알림","navigationRail.notifications":"알림","tabs.label":"탭 목록","pagination.label":"페이지 번호","search.label":"검색","media.play":"재생","media.pause":"일시정지","media.mute":"음소거","media.unmute":"음소거 해제","media.settings":"설정","media.shuffle":"셔플","media.repeat":"반복","media.previous":"이전 트랙","media.next":"다음 트랙","media.fullscreen":"전체화면","carousel.previous":"이전 슬라이드","carousel.next":"다음 슬라이드","breadcrumbs.expand":"생략된 경로 펼치기","input.showPassword":"비밀번호 보기","input.hidePassword":"비밀번호 숨기기","input.clearSearch":"검색어 지우기","verify.done":"인증 완료","verify.phoneDone":"휴대폰 번호 인증이 완료되었습니다.","bentoCard.cta":"자세히 보기","tweetCard.loading":"트윗을 불러오는 중입니다...","tweetCard.error":"트윗을 불러올 수 없습니다.","tweetCard.viewOnTwitter":"X에서 보기","tweetCard.like":"좋아요","tweetCard.retweet":"리포스트","tweetCard.reply":"답글","tweetCard.verified":"인증된 계정","tweetCard.retry":"다시 시도","chatComposer.placeholder":"메시지를 입력하세요…","chatComposer.send":"전송","chatComposer.stop":"생성 중지","chatComposer.attach":"첨부","voice.start":"음성 입력","voice.stop":"받아쓰기 완료","voice.cancel":"음성 입력 취소","voice.starting":"마이크 연결 중","voice.listening":"음성 인식 중","voice.stopping":"마지막 문장 확인 중","voice.error":"음성 인식 실패","voice.unsupported":"음성 입력 미지원"}
|
|
1
|
+
import{literalEnglish as e}from"./i18n-copy.js";import{ENGLISH_STRINGS as a}from"./i18n-en.js";const i={"upload.title":"파일을 드래그하여 업로드하거나 클릭하여 선택하세요","upload.choose":"파일 선택","upload.allFormats":"모든 파일 형식 지원","upload.maximum":" (최대 {size})","upload.files":"업로드된 파일들 ({count}개)","upload.retry":"재시도","upload.remove":"삭제","upload.illustration":"업로드 일러스트","creditCard.security":"보안 코드 {code}","creditCard.label":"{issuer} 카드{lastFour}, 뒤집기","creditCard.ending":", 끝자리 {digits}","creditCard.front":"앞면","creditCard.back":"뒷면","creditCard.showing":"{side} 표시 중","creditCard.expiry":"유효기간 {expiry}","creditCard.show":"누르면 {side}을 표시합니다","flight.scheduled":"출발 예정","flight.boarding":"탑승 중","flight.in-flight":"운항 중","flight.landed":"도착","flight.delayed":"지연","flight.cancelled":"취소","flight.title":"운항 현황","flight.progress":"여정 진행률","boardingPass.origin":"출발","boardingPass.destination":"도착","boardingPass.passenger":"탑승객","boardingPass.service":"편명","boardingPass.date":"날짜","boardingPass.boarding":"탑승 시각","boardingPass.departure":"출발 시각","boardingPass.arrival":"도착 시각","boardingPass.terminal":"터미널","boardingPass.gate":"게이트","boardingPass.seat":"좌석","boardingPass.travelClass":"등급","boardingPass.title":"탑승권","wallet.title":"나의 탑승권","wallet.empty":"등록된 탑승권이 없습니다.","wallet.journeys":"여정 선택","receipt.quantity":"수량","receipt.subtotal":"소계","receipt.discount":"할인","receipt.tax":"세금","receipt.total":"합계","receipt.payment":"결제수단","receipt.empty":"표시할 품목이 없습니다.","receipt.invalid":"품목과 금액 정보를 확인해주세요.","receipt.title":"영수증","paper.codeImage":"코드 이미지","aiElement.emptyFolder":"빈 폴더","aiElement.noFiles":"표시할 파일이 없습니다.","attachment.title":"첨부 파일","attachment.empty":"아직 첨부한 파일이 없습니다.","attachment.queued":"대기 중","attachment.uploading":"업로드 중","attachment.processing":"서버 처리 중","attachment.ready":"완료","attachment.error":"실패","attachment.cancelled":"취소됨","attachment.unknown":"진행률을 확인하고 있어요.","attachment.cancel":"취소","attachment.retry":"재시도","attachment.remove":"목록에서 제거","attachment.open":"상세 보기","attachment.reload":"다시 불러오기","workspace.members":"워크스페이스 멤버","workspace.invite":"멤버 초대","workspace.email":"이메일","workspace.role":"초대 역할","workspace.chooseRole":"역할을 선택하세요","workspace.description":"함께 작업할 사람의 이메일과 역할을 확인하세요.","workspace.submit":"초대 요청","workspace.emailError":"254자 이내의 올바른 이메일 주소를 입력해 주세요.","workspace.roleError":"초대할 역할을 선택해 주세요.","workspace.retry":"다시 불러오기","workspace.reinvite":"다시 초대","workspace.active":"이용 중","workspace.invited":"초대 대기","workspace.expired":"초대 만료","workspace.empty":"아직 표시할 멤버가 없습니다.","aiElement.pending":"대기 중","aiElement.running":"진행 중","aiElement.complete":"완료","aiElement.error":"실패","aiElement.cancelled":"취소됨","aiElement.approval":"승인 대기","aiElement.researching":"자료를 확인하고 있어요","aiElement.researched":"작업 과정 살펴보기","aiElement.thinking":"생각 정리 중","aiElement.reasoning":"응답 요약","aiElement.plan":"작업 계획","aiElement.queue":"대기 중인 요청","aiElement.remove":"제거","aiElement.queueEmpty":"대기 중인 요청이 없습니다.","aiElement.sources":"참고한 출처","aiElement.citation":"출처","aiElement.checkpoint":"체크포인트 저장됨","aiElement.restore":"여기부터 복원","aiElement.confirmation":"이 작업을 진행할까요?","aiElement.allow":"허용","aiElement.reject":"거절","aiElement.accepted":"작업을 허용했습니다.","aiElement.rejected":"작업을 거절했습니다.","aiElement.context":"컨텍스트","aiElement.tokens":"토큰","aiElement.unknown":"사용량을 아직 확인할 수 없습니다.","aiElement.files":"작업 파일","aiElement.task":"작업 진행","aiElement.subagent":"보조 에이전트","aiElement.tool":"도구 실행","aiElement.terminal":"터미널","aiElement.stackTrace":"오류 상세","aiElement.tests":"테스트 결과","aiElement.passed":"통과","aiElement.failed":"실패","aiElement.input":"입력","aiElement.output":"출력","aiElement.user":"사용자","aiElement.assistant":"AI 응답","aiElement.copy":"복사","aiElement.regenerate":"다시 생성","aiElement.like":"좋아요","aiElement.dislike":"싫어요","aiElement.latest":"최신 응답으로","aiElement.conversation":"AI와의 대화","notification.title":"알림","notification.filters":"알림 필터","notification.all":"전체","notification.unread":"안 읽음","notification.readAll":"표시된 알림 모두 읽음","notification.markRead":"읽음으로 표시","notification.retry":"다시 불러오기","notification.empty":"아직 도착한 알림이 없습니다.","notification.caughtUp":"모든 알림을 확인했어요.","notification.countUnknown":"확인 필요","aiModel.label":"사용 모델","aiModel.choose":"모델을 선택하세요","aiModel.empty":"현재 사용할 수 있는 모델이 없습니다.","aiModel.capabilities":"지원 작업","aiModel.usage":"사용량 단위","aiQuote.expires":"견적 유효 시간","aiQuote.title":"실행 전 견적","aiQuote.reserved":"예약할 최대 크레딧","aiQuote.providerCost":"예상 제공사 비용","aiQuote.pricingVersion":"가격표 버전","aiQuote.unknown":"미확정","aiQuote.idle":"모델과 요청 내용을 정한 뒤 견적을 확인하세요.","aiQuote.loading":"견적을 확인하고 있습니다.","aiQuote.executing":"요청을 처리하고 있습니다. 중복 실행하지 마세요.","aiQuote.stale":"모델 또는 입력이 변경됐습니다. 견적을 다시 확인하세요.","aiQuote.expired":"견적이 만료됐습니다. 견적을 다시 확인하세요.","aiQuote.balanceUnknown":"잔액을 확인할 수 없습니다. 새로 확인해 주세요.","aiQuote.insufficient":"추가로 필요한 크레딧:","aiQuote.ready":"실행 시 최대 크레딧을 예약하고, 결과 확인 후 실제 사용량으로 정산합니다.","aiQuote.refresh":"견적 다시 확인","aiQuote.request":"견적 확인","aiQuote.execute":"실행하기","plan.current":"현재 플랜","plan.usage":"이번 기간 사용","plan.allowed":"이용 가능","plan.locked":"미포함","plan.manage":"플랜 관리","plan.retry":"다시 불러오기","history.title":"크레딧 사용 내역","history.empty":"아직 표시할 내역이 없습니다.","history.unresolved":"확인 중","history.grant":"지급","history.charge":"사용","history.hold":"예약 · 정산 전","history.release":"예약 해제","credits.choosePlan":"충전할 크레딧","credits.rechargeDescription":"필요한 만큼 선택하고, 금액과 제공 조건을 확인하세요.","credits.paymentAmount":"결제 금액","credits.paymentPending":"결제 상태 확인 중","credits.remaining":"현재 남은 크레딧","credits.available":"사용 가능 크레딧","credits.unit":"크레딧","credits.held":"예약 중","credits.spent":"누적 사용","credits.charged":"차감","credits.low":"남은 크레딧이 적습니다.","credits.recharge":"크레딧 충전","credits.checkout":"결제 진행","credits.noPlans":"현재 충전 가능한 상품이 없습니다.","aiTask.title":"AI 작업","aiTask.idle":"작업 전","aiTask.queued":"실행 대기","aiTask.running":"실행 중","aiTask.succeeded":"완료","aiTask.failed":"실패","aiTask.cancelled":"취소됨","aiTask.needs_attention":"결과 확인 필요","aiTask.attentionDescription":"결과와 사용량을 확인하고 있습니다. 확인이 끝날 때까지 예약 크레딧이 유지됩니다.",close:"닫기","modal.close":"모달 닫기","drawer.close":"드로어 닫기","dialog.close":"대화상자 닫기","toast.close":"알림 닫기",clear:"지우기",clearAll:"모든 값 지우기",loading:"로딩 중",required:"필수",optional:"선택",error:"오류",success:"성공",warning:"경고",info:"안내",previous:"이전",next:"다음","select.placeholder":"선택하세요","select.noResults":"결과 없음","navigationRail.label":"주요 내비게이션","navigationRail.newNotification":"새 알림","navigationRail.notifications":"알림","tabs.label":"탭 목록","pagination.label":"페이지 번호","search.label":"검색","media.play":"재생","media.pause":"일시정지","media.mute":"음소거","media.unmute":"음소거 해제","media.settings":"설정","media.shuffle":"셔플","media.repeat":"반복","media.previous":"이전 트랙","media.next":"다음 트랙","media.fullscreen":"전체화면","confirm.ok":"확인","confirm.cancel":"취소","carousel.slide":"슬라이드","carousel.role":"캐러셀","carousel.previous":"이전 슬라이드","carousel.next":"다음 슬라이드","breadcrumbs.expand":"생략된 경로 펼치기","input.showPassword":"비밀번호 보기","input.hidePassword":"비밀번호 숨기기","input.clearSearch":"검색어 지우기","verify.done":"인증 완료","verify.phoneDone":"휴대폰 번호 인증이 완료되었습니다.","bentoCard.cta":"자세히 보기","tweetCard.loading":"트윗을 불러오는 중입니다...","tweetCard.error":"트윗을 불러올 수 없습니다.","tweetCard.viewOnTwitter":"X에서 보기","tweetCard.like":"좋아요","tweetCard.retweet":"리포스트","tweetCard.reply":"답글","tweetCard.verified":"인증된 계정","tweetCard.retry":"다시 시도","chatComposer.placeholder":"메시지를 입력하세요…","chatComposer.send":"전송","chatComposer.stop":"생성 중지","chatComposer.attach":"첨부","voice.start":"음성 입력","voice.stop":"받아쓰기 완료","voice.cancel":"음성 입력 취소","voice.starting":"마이크 연결 중","voice.listening":"음성 인식 중","voice.stopping":"마지막 문장 확인 중","voice.error":"음성 인식 실패","voice.unsupported":"음성 입력 미지원"},n=Symbol.for("@designbasekorea/ui-wc/locale/v1"),o=globalThis,r=o[n]??(o[n]={overrides:{},activeLocale:"ko",listeners:new Set}),l=r.listeners;function subscribeDbLocale(e){return l.add(e),()=>{l.delete(e)}}function notifyLocale(){for(const e of[...l])e()}function dbUseLocale(e){r.activeLocale!==e&&(r.activeLocale=e,notifyLocale())}function dbSetLocale(e){r.overrides={...r.overrides,...e},notifyLocale()}function dbResetLocale(){r.overrides={},r.activeLocale="ko",notifyLocale()}function t(n,o){return n in r.overrides?r.overrides[n]:n in i?"en"===r.activeLocale?a[n]:i[n]:n.startsWith("copy.")&&"en"===r.activeLocale?e[n.slice(5)]??o??n:o??n}function labelFrom(e,a,i){return e.getAttribute(a)||t(i)}const c=new Map(Object.entries(e).map(([e,a])=>[a,e]));function dbText(e){const a=e.trim();if(!a)return e;const i=c.get(a.replace(/\s+/g," "))??a;return e.slice(0,e.indexOf(a))+t("copy."+i.replace(/\s+/g," "),i)+e.slice(e.indexOf(a)+a.length)}function getDbLocale(){return r.activeLocale}function dbFormat(e,a){return dbText(e).replace(/\{(\d+)\}/g,(e,i)=>String(a[Number(i)]??""))}export{dbFormat,dbResetLocale,dbSetLocale,dbText,dbUseLocale,getDbLocale,labelFrom,subscribeDbLocale,t};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -193,10 +193,10 @@ export { PAYMENT_BRANDS, getPaymentBrand } from './helpers/payment-brands.js';
|
|
|
193
193
|
export { DbFlightStatus, DbFlightStatusValue } from './components/db-flight-status.js';
|
|
194
194
|
export { DbBoardingPassStack, DbTravelPass, DbTravelPassChange } from './components/db-boarding-pass-stack.js';
|
|
195
195
|
export { DEVICE_MOCKUP_SCREENS, DbAndroidMockup, DbAppleWatchMockup, DbBrowserMockup, DbDuoMockup, DbFlipMockup, DbFoldMockup, DbIosMockup, DbMobileMockup, DbTabletMockup } from './components/db-device-mockup.js';
|
|
196
|
-
export { DbNode, DbNodeMove, DbNodePort, DbNodePortDrag, DbNodePortSelect, DbNodePortType
|
|
196
|
+
export { DbNode, DbNodeMove, DbNodePort, DbNodePortDrag, DbNodePortSelect, DbNodePortType } from './components/db-node.js';
|
|
197
197
|
export { DbDesignCanvas, DesignCanvasChange, DesignCanvasNode, DesignCanvasViewport } from './components/db-design-canvas.js';
|
|
198
198
|
export { DbToolButton, DesignToolAction, DesignToolOption } from './components/db-tool-button.js';
|
|
199
199
|
export { DbDesignToolbar, DesignToolbarItem } from './components/db-design-toolbar.js';
|
|
200
200
|
export { DbContextBar } from './components/db-context-bar.js';
|
|
201
201
|
export { DbNotificationAction, DbNotificationItem, DbNotificationReadAll } from './core/notification-ui.js';
|
|
202
|
-
export { ToastPosition as DbToastPosition, ToastVariant as DbToastVariant } from './ui-contracts/dist/components.d.js';
|
|
202
|
+
export { ToastPosition as DbToastPosition, ToastVariant as DbToastVariant, NODE_STATUSES, NODE_VARIANTS } from './ui-contracts/dist/components.d.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{dbUid,ensureId}from"./core/uid.js";export{CleanupBag,rafThrottle}from"./core/dom.js";export{createFocusTrap,getTabbables}from"./core/focus-trap.js";export{lockScroll,scrollLockDepth,unlockScroll}from"./core/scroll-lock.js";export{activateOnKey,announce,createSrOnly,politenessForTone,setAccessibleName}from"./core/a11y.js";export{dbResetLocale,dbSetLocale,dbUseLocale,labelFrom,t}from"./core/i18n.js";export{sanitizeHref}from"./core/safe-url.js";export{sanitizeHtmlFragment}from"./core/safe-html.js";export{DbElement}from"./core/base-element.js";export{DbNavigationRail}from"./components/db-navigation-rail.js";export{DbButton}from"./components/db-button.js";export{DbInput}from"./components/db-input.js";export{DbCheckbox}from"./components/db-checkbox.js";export{DbToggle}from"./components/db-toggle.js";export{DbBadge}from"./components/db-badge.js";export{DbBanner}from"./components/db-banner.js";export{DbSpinner}from"./components/db-spinner.js";export{DbCard}from"./components/db-card.js";export{DbTabs}from"./components/db-tabs.js";export{DbModal}from"./components/db-modal.js";export{DbDropdown}from"./components/db-dropdown.js";export{DbTooltip}from"./components/db-tooltip.js";export{DbAccordion}from"./components/db-accordion.js";export{DbAvatar}from"./components/db-avatar.js";export{DbDivider}from"./components/db-divider.js";export{DbProgress}from"./components/db-progress.js";export{DbSelect}from"./components/db-select.js";export{DbTextarea}from"./components/db-textarea.js";export{DbRadio}from"./components/db-radio.js";export{DbPagination}from"./components/db-pagination.js";export{DbBreadcrumbs}from"./components/db-breadcrumbs.js";export{DbTable}from"./components/db-table.js";export{DbAlert}from"./components/db-alert.js";export{DbChip}from"./components/db-chip.js";export{DbSkeleton}from"./components/db-skeleton.js";export{DbLabel}from"./components/db-label.js";export{DbLogo}from"./components/db-logo.js";export{DbEmptyState}from"./components/db-empty-state.js";export{DbBackdrop}from"./components/db-backdrop.js";export{DbPopover}from"./components/db-popover.js";export{DbDrawer}from"./components/db-drawer.js";export{DbToast}from"./components/db-toast.js";export{DbConfirm}from"./components/db-confirm.js";export{DbIndicator}from"./components/db-indicator.js";export{DbList}from"./components/db-list.js";export{DbMenuItem}from"./components/db-menu-item.js";export{DbSearchBar}from"./components/db-search-bar.js";export{DbShare}from"./components/db-share.js";export{DbTopBanner}from"./components/db-top-banner.js";export{DbCookieBanner}from"./components/db-cookie-banner.js";export{DbStat}from"./components/db-stat.js";export{DbActivityHeatmap}from"./components/db-activity-heatmap.js";export{DbImage}from"./components/db-image.js";export{DbImagePlaceholder}from"./components/db-image-placeholder.js";export{DbImageList}from"./components/db-image-list.js";export{DbLightbox}from"./components/db-lightbox.js";export{DbBottomNavigation}from"./components/db-bottom-navigation.js";export{DbNavbar}from"./components/db-navbar.js";export{DbFooter}from"./components/db-footer.js";export{DbSidebar}from"./components/db-sidebar.js";export{DbContextMenu}from"./components/db-context-menu.js";export{DbProgressbar}from"./components/db-progressbar.js";export{DbProgressStep}from"./components/db-progress-step.js";export{DbRangeSlider}from"./components/db-range-slider.js";export{DbSegmentControl}from"./components/db-segment-control.js";export{DbStepper}from"./components/db-stepper.js";export{DbContainer}from"./components/db-container.js";export{DbStack}from"./components/db-stack.js";export{DbGrid,DbGridItem}from"./components/db-grid.js";export{DbFilterBar}from"./components/db-filter-bar.js";export{DbToolbar}from"./components/db-toolbar.js";export{DbForm}from"./components/db-form.js";export{DbPageHeader}from"./components/db-page-header.js";export{DbSection}from"./components/db-section.js";export{DbFloatingActionButton}from"./components/db-floating-action-button.js";export{DbBottomSheet}from"./components/db-bottom-sheet.js";export{DbScrollArea}from"./components/db-scroll-area.js";export{DbDropzone}from"./components/db-dropzone.js";export{DbOnboardingModal}from"./components/db-onboarding-modal.js";export{DbSplitView}from"./components/db-split-view.js";export{DbFileUploader}from"./components/db-file-uploader.js";export{DbDatePicker}from"./components/db-date-picker.js";export{DbTimePicker}from"./components/db-time-picker.js";export{DbCalendar}from"./components/db-calendar.js";export{DbRating}from"./components/db-rating.js";export{DbSignature}from"./components/db-signature.js";export{DbCountdown}from"./components/db-countdown.js";export{DbMasonry}from"./components/db-masonry.js";export{DbCarousel}from"./components/db-carousel.js";export{DbColorPicker}from"./components/db-color-picker.js";export{DbColorSwatch}from"./components/db-color-swatch.js";export{DbReorder}from"./components/db-reorder.js";export{DbKanban}from"./components/db-kanban.js";export{DbGantt}from"./components/db-gantt.js";export{DbResizablePanels}from"./components/db-resizable-panels.js";export{DbVideoPlayer}from"./components/db-video-player.js";export{DbYouTubePlayer}from"./components/db-youtube-player.js";export{DbAudioPlayer}from"./components/db-audio-player.js";export{DbCodeBlock}from"./components/db-code-block.js";export{DbMarkdownEditor}from"./components/db-markdown-editor.js";export{DbTestimonial}from"./components/db-testimonial.js";export{DbSectionHero}from"./components/db-section-hero.js";export{DbSectionFeature}from"./components/db-section-feature.js";export{DbAppBadge}from"./components/db-app-badge.js";export{DbSectionContact}from"./components/db-section-contact.js";export{DbSectionAppDownload}from"./components/db-section-app-download.js";export{DbSectionCta}from"./components/db-section-cta.js";export{DbSectionTestimonials}from"./components/db-section-testimonials.js";export{DbSectionFeatureGrid}from"./components/db-section-feature-grid.js";export{DbSectionLogoCloud}from"./components/db-section-logo-cloud.js";export{DbSectionStats}from"./components/db-section-stats.js";export{DbSectionFaq}from"./components/db-section-faq.js";export{DbSectionPricing}from"./components/db-section-pricing.js";export{DbMarquee}from"./components/db-marquee.js";export{DbGradient}from"./components/db-gradient.js";export{DbRandomGradient}from"./components/db-random-gradient.js";export{DbAdBanner}from"./components/db-ad-banner.js";export{DbTimeline}from"./components/db-timeline.js";export{DbAnimationText}from"./components/db-animation-text.js";export{DbTutorial}from"./components/db-tutorial.js";export{DbAnimationBackground}from"./components/db-animation-background.js";export{DbGridBackground}from"./components/db-grid-background.js";export{DbCursorFollower}from"./components/db-cursor-follower.js";export{DbDownloadProgress}from"./components/db-download-progress.js";export{DbOtpInput}from"./components/db-otp-input.js";export{DbPhoneVerify}from"./components/db-phone-verify.js";export{DbEmailVerify}from"./components/db-email-verify.js";export{DbTwoFactor}from"./components/db-two-factor.js";export{DbAiGlow}from"./components/db-ai-glow.js";export{DbChatOrb}from"./components/db-chat-orb.js";export{DbChatWelcome}from"./components/db-chat-welcome.js";export{DbChatComposer}from"./components/db-chat-composer.js";export{DbChatSuggestions}from"./components/db-chat-suggestions.js";export{DbChatMessage}from"./components/db-chat-message.js";export{DbChatTyping}from"./components/db-chat-typing.js";export{DbChatWidget}from"./components/db-chat-widget.js";export{DbAiChat}from"./components/db-ai-chat.js";export{DbAiChatList}from"./components/db-ai-chat-list.js";export{DbChatList}from"./components/db-chat-list.js";export{DbChatRoom}from"./components/db-chat-room.js";export{toast as dbToast,showToast,toast}from"./helpers/toast.js";export{confirm,confirm as dbConfirm}from"./helpers/confirm.js";export{DbCreditBalance}from"./components/db-credit-balance.js";export{DbCreditRecharge}from"./components/db-credit-recharge.js";export{DbAiTaskStatus}from"./components/db-ai-task-status.js";export{DbCreditDropdown}from"./components/db-credit-dropdown.js";export{DbCreditRechargeModal}from"./components/db-credit-recharge-modal.js";export{DbPlanOverview}from"./components/db-plan-overview.js";export{DbCreditHistory}from"./components/db-credit-history.js";export{DbAiModelSelect}from"./components/db-ai-model-select.js";export{DbAiExecutionQuote}from"./components/db-ai-execution-quote.js";export{DbNotificationInbox}from"./components/db-notification-inbox.js";export{DbNotificationDropdown}from"./components/db-notification-dropdown.js";export{DbAiChainOfThought}from"./components/db-ai-chain-of-thought.js";export{DbAiReasoning}from"./components/db-ai-reasoning.js";export{DbAiPlan}from"./components/db-ai-plan.js";export{DbAiQueue}from"./components/db-ai-queue.js";export{DbAiSources}from"./components/db-ai-sources.js";export{DbAiInlineCitation}from"./components/db-ai-inline-citation.js";export{DbAiCheckpoint}from"./components/db-ai-checkpoint.js";export{DbAiConfirmation}from"./components/db-ai-confirmation.js";export{DbAiContext}from"./components/db-ai-context.js";export{DbAiFileTree}from"./components/db-ai-file-tree.js";export{DbAiTask}from"./components/db-ai-task.js";export{DbAiSubagent}from"./components/db-ai-subagent.js";export{DbAiTool}from"./components/db-ai-tool.js";export{DbAiTerminal}from"./components/db-ai-terminal.js";export{DbAiStackTrace}from"./components/db-ai-stack-trace.js";export{DbAiTestResults}from"./components/db-ai-test-results.js";export{DbAiMessage}from"./components/db-ai-message.js";export{DbAiConversation}from"./components/db-ai-conversation.js";export{DbWorkspaceMembers}from"./components/db-workspace-members.js";export{DbWorkspaceInviteModal}from"./components/db-workspace-invite-modal.js";export{DbAttachmentList}from"./components/db-attachment-list.js";export{DbBentoGrid}from"./components/db-bento-grid.js";export{DbBentoCard}from"./components/db-bento-card.js";export{DbTweetCard}from"./components/db-tweet-card.js";export{DbProgressiveBlur}from"./components/db-progressive-blur.js";export{DbBorderBeam}from"./components/db-border-beam.js";export{DbConfetti,confetti}from"./components/db-confetti.js";export{DbGlyphMatrix}from"./components/db-glyph-matrix.js";export{DbVoiceControl}from"./components/db-voice-control.js";export{DbTicket}from"./components/db-ticket.js";export{DbBoardingPass}from"./components/db-boarding-pass.js";export{DbReceipt}from"./components/db-receipt.js";export{DbCreditCard}from"./components/db-credit-card.js";export{DbAchievementList}from"./components/db-achievement-list.js";export{DbAchievementModal}from"./components/db-achievement-modal.js";export{PAYMENT_BRANDS,getPaymentBrand}from"./helpers/payment-brands.js";export{DbFlightStatus}from"./components/db-flight-status.js";export{DbBoardingPassStack}from"./components/db-boarding-pass-stack.js";export{DEVICE_MOCKUP_SCREENS,DbAndroidMockup,DbAppleWatchMockup,DbBrowserMockup,DbDuoMockup,DbFlipMockup,DbFoldMockup,DbIosMockup,DbMobileMockup,DbTabletMockup}from"./components/db-device-mockup.js";export{DbNode,NODE_STATUSES,NODE_VARIANTS}from"./components/db-node.js";export{DbDesignCanvas}from"./components/db-design-canvas.js";export{DbToolButton}from"./components/db-tool-button.js";export{DbDesignToolbar}from"./components/db-design-toolbar.js";export{DbContextBar}from"./components/db-context-bar.js";
|
|
1
|
+
export{dbUid,ensureId}from"./core/uid.js";export{CleanupBag,rafThrottle}from"./core/dom.js";export{createFocusTrap,getTabbables}from"./core/focus-trap.js";export{lockScroll,scrollLockDepth,unlockScroll}from"./core/scroll-lock.js";export{activateOnKey,announce,createSrOnly,politenessForTone,setAccessibleName}from"./core/a11y.js";export{dbResetLocale,dbSetLocale,dbUseLocale,labelFrom,t}from"./core/i18n.js";export{sanitizeHref}from"./core/safe-url.js";export{sanitizeHtmlFragment}from"./core/safe-html.js";export{DbElement}from"./core/base-element.js";export{DbNavigationRail}from"./components/db-navigation-rail.js";export{DbButton}from"./components/db-button.js";export{DbInput}from"./components/db-input.js";export{DbCheckbox}from"./components/db-checkbox.js";export{DbToggle}from"./components/db-toggle.js";export{DbBadge}from"./components/db-badge.js";export{DbBanner}from"./components/db-banner.js";export{DbSpinner}from"./components/db-spinner.js";export{DbCard}from"./components/db-card.js";export{DbTabs}from"./components/db-tabs.js";export{DbModal}from"./components/db-modal.js";export{DbDropdown}from"./components/db-dropdown.js";export{DbTooltip}from"./components/db-tooltip.js";export{DbAccordion}from"./components/db-accordion.js";export{DbAvatar}from"./components/db-avatar.js";export{DbDivider}from"./components/db-divider.js";export{DbProgress}from"./components/db-progress.js";export{DbSelect}from"./components/db-select.js";export{DbTextarea}from"./components/db-textarea.js";export{DbRadio}from"./components/db-radio.js";export{DbPagination}from"./components/db-pagination.js";export{DbBreadcrumbs}from"./components/db-breadcrumbs.js";export{DbTable}from"./components/db-table.js";export{DbAlert}from"./components/db-alert.js";export{DbChip}from"./components/db-chip.js";export{DbSkeleton}from"./components/db-skeleton.js";export{DbLabel}from"./components/db-label.js";export{DbLogo}from"./components/db-logo.js";export{DbEmptyState}from"./components/db-empty-state.js";export{DbBackdrop}from"./components/db-backdrop.js";export{DbPopover}from"./components/db-popover.js";export{DbDrawer}from"./components/db-drawer.js";export{DbToast}from"./components/db-toast.js";export{DbConfirm}from"./components/db-confirm.js";export{DbIndicator}from"./components/db-indicator.js";export{DbList}from"./components/db-list.js";export{DbMenuItem}from"./components/db-menu-item.js";export{DbSearchBar}from"./components/db-search-bar.js";export{DbShare}from"./components/db-share.js";export{DbTopBanner}from"./components/db-top-banner.js";export{DbCookieBanner}from"./components/db-cookie-banner.js";export{DbStat}from"./components/db-stat.js";export{DbActivityHeatmap}from"./components/db-activity-heatmap.js";export{DbImage}from"./components/db-image.js";export{DbImagePlaceholder}from"./components/db-image-placeholder.js";export{DbImageList}from"./components/db-image-list.js";export{DbLightbox}from"./components/db-lightbox.js";export{DbBottomNavigation}from"./components/db-bottom-navigation.js";export{DbNavbar}from"./components/db-navbar.js";export{DbFooter}from"./components/db-footer.js";export{DbSidebar}from"./components/db-sidebar.js";export{DbContextMenu}from"./components/db-context-menu.js";export{DbProgressbar}from"./components/db-progressbar.js";export{DbProgressStep}from"./components/db-progress-step.js";export{DbRangeSlider}from"./components/db-range-slider.js";export{DbSegmentControl}from"./components/db-segment-control.js";export{DbStepper}from"./components/db-stepper.js";export{DbContainer}from"./components/db-container.js";export{DbStack}from"./components/db-stack.js";export{DbGrid,DbGridItem}from"./components/db-grid.js";export{DbFilterBar}from"./components/db-filter-bar.js";export{DbToolbar}from"./components/db-toolbar.js";export{DbForm}from"./components/db-form.js";export{DbPageHeader}from"./components/db-page-header.js";export{DbSection}from"./components/db-section.js";export{DbFloatingActionButton}from"./components/db-floating-action-button.js";export{DbBottomSheet}from"./components/db-bottom-sheet.js";export{DbScrollArea}from"./components/db-scroll-area.js";export{DbDropzone}from"./components/db-dropzone.js";export{DbOnboardingModal}from"./components/db-onboarding-modal.js";export{DbSplitView}from"./components/db-split-view.js";export{DbFileUploader}from"./components/db-file-uploader.js";export{DbDatePicker}from"./components/db-date-picker.js";export{DbTimePicker}from"./components/db-time-picker.js";export{DbCalendar}from"./components/db-calendar.js";export{DbRating}from"./components/db-rating.js";export{DbSignature}from"./components/db-signature.js";export{DbCountdown}from"./components/db-countdown.js";export{DbMasonry}from"./components/db-masonry.js";export{DbCarousel}from"./components/db-carousel.js";export{DbColorPicker}from"./components/db-color-picker.js";export{DbColorSwatch}from"./components/db-color-swatch.js";export{DbReorder}from"./components/db-reorder.js";export{DbKanban}from"./components/db-kanban.js";export{DbGantt}from"./components/db-gantt.js";export{DbResizablePanels}from"./components/db-resizable-panels.js";export{DbVideoPlayer}from"./components/db-video-player.js";export{DbYouTubePlayer}from"./components/db-youtube-player.js";export{DbAudioPlayer}from"./components/db-audio-player.js";export{DbCodeBlock}from"./components/db-code-block.js";export{DbMarkdownEditor}from"./components/db-markdown-editor.js";export{DbTestimonial}from"./components/db-testimonial.js";export{DbSectionHero}from"./components/db-section-hero.js";export{DbSectionFeature}from"./components/db-section-feature.js";export{DbAppBadge}from"./components/db-app-badge.js";export{DbSectionContact}from"./components/db-section-contact.js";export{DbSectionAppDownload}from"./components/db-section-app-download.js";export{DbSectionCta}from"./components/db-section-cta.js";export{DbSectionTestimonials}from"./components/db-section-testimonials.js";export{DbSectionFeatureGrid}from"./components/db-section-feature-grid.js";export{DbSectionLogoCloud}from"./components/db-section-logo-cloud.js";export{DbSectionStats}from"./components/db-section-stats.js";export{DbSectionFaq}from"./components/db-section-faq.js";export{DbSectionPricing}from"./components/db-section-pricing.js";export{DbMarquee}from"./components/db-marquee.js";export{DbGradient}from"./components/db-gradient.js";export{DbRandomGradient}from"./components/db-random-gradient.js";export{DbAdBanner}from"./components/db-ad-banner.js";export{DbTimeline}from"./components/db-timeline.js";export{DbAnimationText}from"./components/db-animation-text.js";export{DbTutorial}from"./components/db-tutorial.js";export{DbAnimationBackground}from"./components/db-animation-background.js";export{DbGridBackground}from"./components/db-grid-background.js";export{DbCursorFollower}from"./components/db-cursor-follower.js";export{DbDownloadProgress}from"./components/db-download-progress.js";export{DbOtpInput}from"./components/db-otp-input.js";export{DbPhoneVerify}from"./components/db-phone-verify.js";export{DbEmailVerify}from"./components/db-email-verify.js";export{DbTwoFactor}from"./components/db-two-factor.js";export{DbAiGlow}from"./components/db-ai-glow.js";export{DbChatOrb}from"./components/db-chat-orb.js";export{DbChatWelcome}from"./components/db-chat-welcome.js";export{DbChatComposer}from"./components/db-chat-composer.js";export{DbChatSuggestions}from"./components/db-chat-suggestions.js";export{DbChatMessage}from"./components/db-chat-message.js";export{DbChatTyping}from"./components/db-chat-typing.js";export{DbChatWidget}from"./components/db-chat-widget.js";export{DbAiChat}from"./components/db-ai-chat.js";export{DbAiChatList}from"./components/db-ai-chat-list.js";export{DbChatList}from"./components/db-chat-list.js";export{DbChatRoom}from"./components/db-chat-room.js";export{toast as dbToast,showToast,toast}from"./helpers/toast.js";export{confirm,confirm as dbConfirm}from"./helpers/confirm.js";export{DbCreditBalance}from"./components/db-credit-balance.js";export{DbCreditRecharge}from"./components/db-credit-recharge.js";export{DbAiTaskStatus}from"./components/db-ai-task-status.js";export{DbCreditDropdown}from"./components/db-credit-dropdown.js";export{DbCreditRechargeModal}from"./components/db-credit-recharge-modal.js";export{DbPlanOverview}from"./components/db-plan-overview.js";export{DbCreditHistory}from"./components/db-credit-history.js";export{DbAiModelSelect}from"./components/db-ai-model-select.js";export{DbAiExecutionQuote}from"./components/db-ai-execution-quote.js";export{DbNotificationInbox}from"./components/db-notification-inbox.js";export{DbNotificationDropdown}from"./components/db-notification-dropdown.js";export{DbAiChainOfThought}from"./components/db-ai-chain-of-thought.js";export{DbAiReasoning}from"./components/db-ai-reasoning.js";export{DbAiPlan}from"./components/db-ai-plan.js";export{DbAiQueue}from"./components/db-ai-queue.js";export{DbAiSources}from"./components/db-ai-sources.js";export{DbAiInlineCitation}from"./components/db-ai-inline-citation.js";export{DbAiCheckpoint}from"./components/db-ai-checkpoint.js";export{DbAiConfirmation}from"./components/db-ai-confirmation.js";export{DbAiContext}from"./components/db-ai-context.js";export{DbAiFileTree}from"./components/db-ai-file-tree.js";export{DbAiTask}from"./components/db-ai-task.js";export{DbAiSubagent}from"./components/db-ai-subagent.js";export{DbAiTool}from"./components/db-ai-tool.js";export{DbAiTerminal}from"./components/db-ai-terminal.js";export{DbAiStackTrace}from"./components/db-ai-stack-trace.js";export{DbAiTestResults}from"./components/db-ai-test-results.js";export{DbAiMessage}from"./components/db-ai-message.js";export{DbAiConversation}from"./components/db-ai-conversation.js";export{DbWorkspaceMembers}from"./components/db-workspace-members.js";export{DbWorkspaceInviteModal}from"./components/db-workspace-invite-modal.js";export{DbAttachmentList}from"./components/db-attachment-list.js";export{DbBentoGrid}from"./components/db-bento-grid.js";export{DbBentoCard}from"./components/db-bento-card.js";export{DbTweetCard}from"./components/db-tweet-card.js";export{DbProgressiveBlur}from"./components/db-progressive-blur.js";export{DbBorderBeam}from"./components/db-border-beam.js";export{DbConfetti,confetti}from"./components/db-confetti.js";export{DbGlyphMatrix}from"./components/db-glyph-matrix.js";export{DbVoiceControl}from"./components/db-voice-control.js";export{DbTicket}from"./components/db-ticket.js";export{DbBoardingPass}from"./components/db-boarding-pass.js";export{DbReceipt}from"./components/db-receipt.js";export{DbCreditCard}from"./components/db-credit-card.js";export{DbAchievementList}from"./components/db-achievement-list.js";export{DbAchievementModal}from"./components/db-achievement-modal.js";export{PAYMENT_BRANDS,getPaymentBrand}from"./helpers/payment-brands.js";export{DbFlightStatus}from"./components/db-flight-status.js";export{DbBoardingPassStack}from"./components/db-boarding-pass-stack.js";export{DEVICE_MOCKUP_SCREENS,DbAndroidMockup,DbAppleWatchMockup,DbBrowserMockup,DbDuoMockup,DbFlipMockup,DbFoldMockup,DbIosMockup,DbMobileMockup,DbTabletMockup}from"./components/db-device-mockup.js";export{DbNode}from"./components/db-node.js";export{DbDesignCanvas}from"./components/db-design-canvas.js";export{DbToolButton}from"./components/db-tool-button.js";export{DbDesignToolbar}from"./components/db-design-toolbar.js";export{DbContextBar}from"./components/db-context-bar.js";export{NODE_STATUSES,NODE_VARIANTS}from"./node_modules/@designbasekorea/ui-contracts/dist/components.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SIZE_SML as t,RADIUS_SCALE as e,SIZE_XS_XL as a,SIZE_XS_2XL as l,FEEDBACK_TONES as r}from"./primitives.js";const i=["primary","secondary","tertiary","destructive","ghost","accent"],o={danger:"destructive"},n=t,d=e,s=["solid","gradient","backlight","outline","prism"],m=t,u=["text","email","password","url","search","tel","number"],f=["default","flat"],c=t,g=["primary","secondary","info","success","warning","danger"],p=t,h=["dot","number","text","outlined"],b=l,y=["default","primary","success","warning","danger","info"],w=["online","offline","away","busy"],x=["default","primary","success","warning","danger","info","neutral"],v=t,k=["primary","secondary","success","warning","danger","muted"],z=a,j=["circular","dots","bars","pulse","ripple"],q=t,B=["default","neutral"],A=t,C=t,D=["default",...r],E=t,F=["default",...r],G=["s","m","l","xl","full"],H=["default","persistent","temporary","fullscreen"],I=["slide","fade","scale","none"],J=["default","pills"],K=t,L=["horizontal","vertical"],M=t,N=["bottom","top"],O=["default","transparent"],P=t,Q=["fixed","sticky","static"],R=t,S=["tooltip","always"],T=t,U=["default","glass","transparent"],V=t,W=["vertical","horizontal"],X=["text","circular","rectangular","rounded"],Y=a,Z=["default","primary",...r],$=t,_=["solid","striped","animated"],tt=["default","bordered","separated","contained"],et=t,at=["primary","secondary","tertiary","outline","image"],lt=t,rt=["default","contained","underlined"],it=t,ot=["no-data","no-results","no-access","error","onboarding"],nt=t,dt=["default","original","primary","secondary","light","dark","white"],st=["xs","s","m","l","xl"],mt=["default","primary","success","warning","danger","info"],ut=t,ft=["default","outlined","minimal"],ct=t,gt=t,pt=t,ht=["green","primary"],bt=["user","assistant","system"],yt=["aurora","brand"],wt=["thinking","working","listening"],xt=t,vt=a,kt=["aurora","ocean","emerald","violet","mono"],zt=["idle","thinking","listening"],jt=["auto","light","dark"],qt=["center","left"],Bt=["home","messages","conversation","help","article"],At=["bottom-right","bottom-left"],Ct=["s","m","l","xl","full"],Dt=["none","s","m","l","xl"],Et=t,Ft=["default","outlined","filled"],Gt=["downloading","paused","error","complete"],Ht=["bottom-right","bottom-left","bottom-center","top-right","top-left","top-center"],It=["left","right","top","bottom"],Jt=["s","m","l","xl","full"],Kt=t,Lt=["bottom-left","bottom-right","top-left","top-right"],Mt=["primary","secondary","tertiary","danger","ghost"],Nt=t,Ot=["default","outlined","filled"],Pt=t,Qt=t,Rt=["default","outlined","filled"],St=["default","compact","minimal"],Tt=t,Ut=["dots","numbers","line","dot-line","slide","fill","combined"],Vt=t,Wt=["horizontal","vertical"],Xt=["s","m","l","xl"],Yt=t,Zt=["default","minimal"],$t=["center","left"],_t=t,te=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],ee=["click","hover","focus","manual"],ae=t,le=["default","success","warning","danger"],re=["default","minimal"],ie=t,oe=["app","navigation","category"],ne=t,de=["default","dark","light"],se=["default","wrapper"],me=["left","right"],ue=["auto","adjacent","replace"],fe=["nav-top","nav","nav-bottom"],ce=t,ge=["default","minimal","card","colored","iconBox"],pe=["horizontal","vertical","reverse"],he=["primary","secondary","success","warning","error","info","custom"],be=t,ye=["default","striped","hoverable"],we=["list","card","logo","image","text"],xe=t,ve=t,ke=["12h","24h","12h-with-seconds","24h-with-seconds"],ze=["auto","bottom-start","bottom-end","top-start","top-end"],je=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],qe=t,Be=["default","primary","success","warning","danger","info"],Ae=["primary","white","dark"],Ce=t,De=["primary","secondary","success","warning","error"],Ee=t,Fe=["xs","s","m","l","xl","2xl","3xl"],Ge=["left","center","right","justify"],He=t,Ie=["default","minimal","compact","full"],Je=["s","m","l","xl"],Ke=["default","cards","gallery","hero","testimonial"],Le=["s","m","l","xl"],Me=t,Ne=["bottom-start","bottom-end","top-start","top-end"],Oe=t,Pe=["default","info","success","warning","danger"],Qe=t,Re=["default","compact","minimal"],Se=t,Te=["default","animated","mesh"],Ue=["s","m","l","xl","full"],Ve=t,We=["default","minimal","bordered","card","navigation"],Xe=t,Ye=["default","filled","outlined"],Ze=t,$e=["default","filled","outlined"],_e=t,ta=t,ea=["light","vivid","dark"],aa=["default","minimal","card","inline","large"],la=t,ra=["default","bordered","filled","minimal"],ia=t,oa=["left","center","right"],na=t,da=t,sa=["default","dark","light","gradient","tinted"],ma=t,ua=t,fa=t,ca=t,ga=["default","showcase","split","overlay","centered"],pa=["grid","inline","minimal","marquee"],ha=t,ba=t,ya=t,wa=["grid","list","carousel","cards"],xa=t,va=["button","dropdown","modal","inline"],ka=t,za=["top","bottom","left","right"],ja=["dashed","outlined"],qa=["default","alternate","left","right"],Ba=t,Aa=["default","filled","outlined","ghost"],Ca=t,Da=["top","bottom","left","right","floating"],Ea=["default","minimal","theater"],Fa=["s","m","l","xl"],Ga=["default","minimal","theater","full"],Ha=["s","m","l","xl"],Ia=t,Ja=["1","2","3","4"],Ka=["default","flat","elevated"],La=t,Ma=["top","cover"],Na=["default","flat","outlined"],Oa=t,Pa=["top","bottom","both","left","right"],Qa=t,Ra=["default","rainbow","glow"],Sa=["cannon","fireworks","stars","pride","snow"],Ta=["manual","auto","click"],Ua=["mix","square","circle","star"],Va=["code","matrix","binary","dots","alphanumeric"],Wa=t,Xa=["realistic","minimal","gradient"];export{et as ACCORDION_SIZES,tt as ACCORDION_VARIANTS,ht as ACTIVITY_HEATMAP_COLOR_SCHEMES,pt as ACTIVITY_HEATMAP_SIZES,Ee as AD_BANNER_SIZES,De as AD_BANNER_VARIANTS,xt as AI_GLOW_SIZES,wt as AI_GLOW_STATES,yt as AI_GLOW_VARIANTS,E as ALERT_SIZES,D as ALERT_VARIANTS,Ge as ANIMATION_TEXT_ALIGNS,Fe as ANIMATION_TEXT_SIZES,He as APP_BADGE_SIZES,Je as AUDIO_PLAYER_SIZES,Ie as AUDIO_PLAYER_VARIANTS,b as AVATAR_SIZES,w as AVATAR_STATUSES,y as AVATAR_VARIANTS,p as BADGE_SIZES,h as BADGE_TYPES,g as BADGE_VARIANTS,lt as BANNER_SIZES,at as BANNER_VARIANTS,Ma as BENTO_CARD_IMAGE_POSITIONS,La as BENTO_CARD_SIZES,Ka as BENTO_CARD_VARIANTS,Ja as BENTO_GRID_COLUMNS,Ia as BENTO_GRID_SIZES,Ra as BORDER_BEAM_VARIANTS,U as BOTTOM_NAV_BACKGROUNDS,T as BOTTOM_NAV_SIZES,I as BOTTOM_SHEET_ANIMATIONS,H as BOTTOM_SHEET_VARIANTS,it as BREADCRUMBS_SIZES,rt as BREADCRUMBS_VARIANTS,s as BUTTON_ACCENT_STYLES,d as BUTTON_RADII,n as BUTTON_SIZES,i as BUTTON_VARIANTS,o as BUTTON_VARIANT_ALIASES,c as CARD_SIZES,f as CARD_VARIANTS,Le as CAROUSEL_SIZES,Ke as CAROUSEL_VARIANTS,bt as CHAT_MESSAGE_ROLES,vt as CHAT_ORB_SIZES,zt as CHAT_ORB_STATES,jt as CHAT_ORB_THEMES,kt as CHAT_ORB_VARIANTS,qt as CHAT_WELCOME_ALIGNS,At as CHAT_WIDGET_POSITIONS,Bt as CHAT_WIDGET_VIEWS,A as CHECKBOX_SIZES,v as CHIP_SIZES,x as CHIP_VARIANTS,Ne as COLOR_PICKER_POSITIONS,Me as COLOR_PICKER_SIZES,Oe as COLOR_SWATCH_SIZES,Sa as CONFETTI_MODES,Ua as CONFETTI_SHAPES,Ta as CONFETTI_TRIGGERS,Qe as CONFIRM_SIZES,Pe as CONFIRM_VARIANTS,Dt as CONTAINER_PADDINGS,Ct as CONTAINER_SIZES,Se as COUNTDOWN_SIZES,Re as COUNTDOWN_VARIANTS,Et as DATE_PICKER_SIZES,Ft as DATE_PICKER_VARIANTS,k as DIVIDER_COLORS,Ht as DOWNLOAD_PROGRESS_POSITIONS,Gt as DOWNLOAD_PROGRESS_STATUSES,It as DRAWER_POSITIONS,Jt as DRAWER_SIZES,Lt as DROPDOWN_PLACEMENTS,Kt as DROPDOWN_SIZES,Mt as DROPDOWN_TRIGGER_VARIANTS,Nt as DROPZONE_SIZES,Ot as DROPZONE_VARIANTS,Pt as EMAIL_VERIFY_SIZES,nt as EMPTY_STATE_SIZES,ot as EMPTY_STATE_VARIANTS,Qt as FILE_UPLOADER_SIZES,Rt as FILE_UPLOADER_VARIANTS,Tt as FOOTER_SIZES,St as FOOTER_VARIANTS,Va as GLYPH_MATRIX_PRESETS,Wa as GLYPH_MATRIX_SIZES,Ue as GRADIENT_SIZES,Te as GRADIENT_VARIANTS,Wt as INDICATOR_DIRECTIONS,Vt as INDICATOR_SIZES,Ut as INDICATOR_TYPES,m as INPUT_SIZES,u as INPUT_TYPES,gt as KANBAN_SIZES,Ve as LABEL_SIZES,Xt as LIGHTBOX_SIZES,Xe as LIST_SIZES,We as LIST_VARIANTS,st as LOGO_SIZES,dt as LOGO_VARIANTS,Ze as MARKDOWN_EDITOR_SIZES,Ye as MARKDOWN_EDITOR_VARIANTS,_e as MARQUEE_SIZES,$e as MARQUEE_VARIANTS,ut as MENU_ITEM_SIZES,mt as MENU_ITEM_VARIANTS,Xa as MOCKUP_VARIANTS,G as MODAL_SIZES,Q as NAVBAR_POSITIONS,P as NAVBAR_SIZES,O as NAVBAR_VARIANTS,S as NAVIGATION_RAIL_LABEL_DISPLAYS,R as NAVIGATION_RAIL_SIZES,Yt as OTP_INPUT_SIZES,$t as PAGE_HEADER_ALIGNS,Zt as PAGE_HEADER_VARIANTS,ct as PAGINATION_SIZES,ft as PAGINATION_VARIANTS,_t as PHONE_VERIFY_SIZES,te as POPOVER_PLACEMENTS,ee as POPOVER_TRIGGERS,Pa as PROGRESSIVE_BLUR_POSITIONS,Qa as PROGRESSIVE_BLUR_SIZES,$ as PROGRESS_BAR_SIZES,_ as PROGRESS_BAR_STYLES,Z as PROGRESS_BAR_VARIANTS,re as PROGRESS_CIRCULAR_STYLES,ae as PROGRESS_SIZES,ta as PROGRESS_STEP_SIZES,le as PROGRESS_VARIANTS,C as RADIO_SIZES,ea as RANDOM_GRADIENT_TONES,la as RATING_SIZES,aa as RATING_VARIANTS,ia as REORDER_SIZES,ra as REORDER_VARIANTS,W as SEARCH_BAR_RECENT_LAYOUTS,V as SEARCH_BAR_SIZES,oa as SECTION_ALIGNS,na as SECTION_APP_DOWNLOAD_SIZES,da as SECTION_CONTACT_SIZES,ma as SECTION_CTA_SIZES,sa as SECTION_CTA_VARIANTS,ua as SECTION_FAQ_SIZES,ca as SECTION_FEATURE_GRID_SIZES,fa as SECTION_FEATURE_SIZES,ga as SECTION_HERO_VARIANTS,ha as SECTION_LOGO_CLOUD_SIZES,pa as SECTION_LOGO_CLOUD_VARIANTS,ba as SECTION_PRICING_SIZES,ie as SECTION_SIZES,ya as SECTION_STATS_SIZES,xa as SECTION_TESTIMONIALS_SIZES,wa as SECTION_TESTIMONIALS_VARIANTS,N as SELECT_POSITIONS,M as SELECT_SIZES,za as SHARE_POSITIONS,ka as SHARE_SIZES,va as SHARE_VARIANTS,fe as SIDEBAR_CUSTOM_NAV_SLOTS,ue as SIDEBAR_PANEL_MODES,me as SIDEBAR_POSITIONS,ne as SIDEBAR_SIZES,de as SIDEBAR_THEMES,oe as SIDEBAR_TYPES,se as SIDEBAR_VARIANTS,ja as SIGNATURE_VARIANTS,Y as SKELETON_SIZES,X as SKELETON_VARIANTS,z as SPINNER_SIZES,j as SPINNER_TYPES,he as STAT_COLORS,pe as STAT_LAYOUTS,ce as STAT_SIZES,ge as STAT_VARIANTS,be as TABLE_SIZES,ye as TABLE_VARIANTS,L as TABS_ORIENTATIONS,K as TABS_SIZES,J as TABS_VARIANTS,we as TESTIMONIAL_VARIANTS,xe as TEXTAREA_SIZES,Ba as TIMELINE_SIZES,qa as TIMELINE_VARIANTS,ze as TIME_PICKER_DROPDOWN_POSITIONS,ke as TIME_PICKER_FORMATS,ve as TIME_PICKER_SIZES,F as TOAST_VARIANTS,q as TOGGLE_SIZES,B as TOGGLE_VARIANTS,Da as TOOLBAR_POSITIONS,Ca as TOOLBAR_SIZES,Aa as TOOLBAR_VARIANTS,je as TOOLTIP_POSITIONS,qe as TOOLTIP_SIZES,Be as TOOLTIP_VARIANTS,Ae as TOP_BANNER_VARIANTS,Oa as TWEET_CARD_SIZES,Na as TWEET_CARD_VARIANTS,Ce as TWO_FACTOR_SIZES,Fa as VIDEO_PLAYER_SIZES,Ea as VIDEO_PLAYER_VARIANTS,Ha as YOUTUBE_PLAYER_SIZES,Ga as YOUTUBE_PLAYER_VARIANTS};
|
|
1
|
+
import{SIZE_SML as t,RADIUS_SCALE as e,SIZE_XS_XL as a,SIZE_XS_2XL as l,FEEDBACK_TONES as r}from"./primitives.js";const i=["primary","secondary","tertiary","destructive","ghost","accent"],o={danger:"destructive"},n=t,d=e,s=["solid","gradient","backlight","outline","prism"],u=t,m=["text","email","password","url","search","tel","number"],c=["default","flat"],f=t,g=["primary","secondary","info","success","warning","danger"],p=t,h=["dot","number","text","outlined"],b=l,y=["default","primary","success","warning","danger","info"],w=["online","offline","away","busy"],x=["default","primary","success","warning","danger","info","neutral"],v=t,k=["primary","secondary","success","warning","danger","muted"],z=a,j=["circular","dots","bars","pulse","ripple"],q=t,B=["default","neutral"],A=t,C=t,D=["default",...r],E=t,F=["default",...r],G=["s","m","l","xl","full"],H=["default","persistent","temporary","fullscreen"],I=["slide","fade","scale","none"],J=["default","pills"],K=t,L=["horizontal","vertical"],M=t,N=["bottom","top"],O=["default","transparent"],P=t,Q=["fixed","sticky","static"],R=t,S=["tooltip","always"],T=t,U=["default","glass","transparent"],V=t,W=["vertical","horizontal"],X=["text","circular","rectangular","rounded"],Y=a,Z=["default","primary",...r],$=t,_=["solid","striped","animated"],tt=["default","bordered","separated","contained"],et=t,at=["primary","secondary","tertiary","outline","image"],lt=t,rt=["default","contained","underlined"],it=t,ot=["no-data","no-results","no-access","error","onboarding"],nt=t,dt=["default","original","primary","secondary","light","dark","white"],st=["xs","s","m","l","xl"],ut=["default","primary","success","warning","danger","info"],mt=t,ct=["default","outlined","minimal"],ft=t,gt=t,pt=t,ht=["green","primary"],bt=["user","assistant","system"],yt=["aurora","brand"],wt=["thinking","working","listening"],xt=t,vt=a,kt=["aurora","ocean","emerald","violet","mono"],zt=["idle","thinking","listening"],jt=["auto","light","dark"],qt=["center","left"],Bt=["home","messages","conversation","help","article"],At=["bottom-right","bottom-left"],Ct=["s","m","l","xl","full"],Dt=["none","s","m","l","xl"],Et=t,Ft=["default","outlined","filled"],Gt=["downloading","paused","error","complete"],Ht=["bottom-right","bottom-left","bottom-center","top-right","top-left","top-center"],It=["left","right","top","bottom"],Jt=["s","m","l","xl","full"],Kt=t,Lt=["bottom-left","bottom-right","top-left","top-right"],Mt=["primary","secondary","tertiary","danger","ghost"],Nt=t,Ot=["default","outlined","filled"],Pt=t,Qt=t,Rt=["default","outlined","filled"],St=["default","compact","minimal"],Tt=t,Ut=["dots","numbers","line","dot-line","slide","fill","combined"],Vt=t,Wt=["horizontal","vertical"],Xt=["s","m","l","xl"],Yt=t,Zt=["default","minimal"],$t=["center","left"],_t=t,te=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],ee=["click","hover","focus","manual"],ae=t,le=["default","success","warning","danger"],re=["default","minimal"],ie=t,oe=["app","navigation","category"],ne=t,de=["default","dark","light"],se=["default","wrapper"],ue=["left","right"],me=["auto","adjacent","replace"],ce=["nav-top","nav","nav-bottom"],fe=t,ge=["default","minimal","card","colored","iconBox"],pe=["horizontal","vertical","reverse"],he=["primary","secondary","success","warning","error","info","custom"],be=t,ye=["default","striped","hoverable"],we=["list","card","logo","image","text"],xe=t,ve=t,ke=["12h","24h","12h-with-seconds","24h-with-seconds"],ze=["auto","bottom-start","bottom-end","top-start","top-end"],je=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],qe=t,Be=["default","primary","success","warning","danger","info"],Ae=["primary","white","dark"],Ce=t,De=["primary","secondary","success","warning","error"],Ee=t,Fe=["xs","s","m","l","xl","2xl","3xl"],Ge=["left","center","right","justify"],He=t,Ie=["default","minimal","compact","full"],Je=["s","m","l","xl"],Ke=["default","cards","gallery","hero","testimonial"],Le=["s","m","l","xl"],Me=t,Ne=["bottom-start","bottom-end","top-start","top-end"],Oe=t,Pe=["default","info","success","warning","danger"],Qe=t,Re=["default","compact","minimal"],Se=t,Te=["default","animated","mesh"],Ue=["s","m","l","xl","full"],Ve=t,We=["default","minimal","bordered","card","navigation"],Xe=t,Ye=["default","filled","outlined"],Ze=t,$e=["default","filled","outlined"],_e=t,ta=t,ea=["light","vivid","dark"],aa=["default","minimal","card","inline","large"],la=t,ra=["default","bordered","filled","minimal"],ia=t,oa=["left","center","right"],na=t,da=t,sa=["default","dark","light","gradient","tinted"],ua=t,ma=t,ca=t,fa=t,ga=["default","showcase","split","overlay","centered"],pa=["grid","inline","minimal","marquee"],ha=t,ba=t,ya=t,wa=["grid","list","carousel","cards"],xa=t,va=["button","dropdown","modal","inline"],ka=t,za=["top","bottom","left","right"],ja=["dashed","outlined"],qa=["default","alternate","left","right"],Ba=t,Aa=["default","filled","outlined","ghost"],Ca=t,Da=["top","bottom","left","right","floating"],Ea=["default","minimal","theater"],Fa=["s","m","l","xl"],Ga=["default","minimal","theater","full"],Ha=["s","m","l","xl"],Ia=t,Ja=["1","2","3","4"],Ka=["default","flat","elevated"],La=t,Ma=["top","cover"],Na=["default","flat","outlined"],Oa=t,Pa=["top","bottom","both","left","right"],Qa=t,Ra=["default","rainbow","glow"],Sa=["cannon","fireworks","stars","pride","snow"],Ta=["manual","auto","click"],Ua=["mix","square","circle","star"],Va=["code","matrix","binary","dots","alphanumeric"],Wa=t,Xa=["realistic","minimal","gradient"],Ya=["pending","running","complete","error","cancelled","approval"],Za=["default","contrast","metal","blue","sage","rose","cobalt","coral","lime"],$a=["scheduled","boarding","in-flight","landed","delayed","cancelled"],_a=["default","compact"],tl=["default","compact"],el=["idle","running","success","error"],al=["s","m"],ll=["default","dark"];export{et as ACCORDION_SIZES,tt as ACCORDION_VARIANTS,ht as ACTIVITY_HEATMAP_COLOR_SCHEMES,pt as ACTIVITY_HEATMAP_SIZES,Ee as AD_BANNER_SIZES,De as AD_BANNER_VARIANTS,Ya as AI_ELEMENT_STATUSES,xt as AI_GLOW_SIZES,wt as AI_GLOW_STATES,yt as AI_GLOW_VARIANTS,E as ALERT_SIZES,D as ALERT_VARIANTS,Ge as ANIMATION_TEXT_ALIGNS,Fe as ANIMATION_TEXT_SIZES,He as APP_BADGE_SIZES,Je as AUDIO_PLAYER_SIZES,Ie as AUDIO_PLAYER_VARIANTS,b as AVATAR_SIZES,w as AVATAR_STATUSES,y as AVATAR_VARIANTS,p as BADGE_SIZES,h as BADGE_TYPES,g as BADGE_VARIANTS,lt as BANNER_SIZES,at as BANNER_VARIANTS,Ma as BENTO_CARD_IMAGE_POSITIONS,La as BENTO_CARD_SIZES,Ka as BENTO_CARD_VARIANTS,Ja as BENTO_GRID_COLUMNS,Ia as BENTO_GRID_SIZES,Ra as BORDER_BEAM_VARIANTS,U as BOTTOM_NAV_BACKGROUNDS,T as BOTTOM_NAV_SIZES,I as BOTTOM_SHEET_ANIMATIONS,H as BOTTOM_SHEET_VARIANTS,it as BREADCRUMBS_SIZES,rt as BREADCRUMBS_VARIANTS,s as BUTTON_ACCENT_STYLES,d as BUTTON_RADII,n as BUTTON_SIZES,i as BUTTON_VARIANTS,o as BUTTON_VARIANT_ALIASES,f as CARD_SIZES,c as CARD_VARIANTS,Le as CAROUSEL_SIZES,Ke as CAROUSEL_VARIANTS,bt as CHAT_MESSAGE_ROLES,vt as CHAT_ORB_SIZES,zt as CHAT_ORB_STATES,jt as CHAT_ORB_THEMES,kt as CHAT_ORB_VARIANTS,qt as CHAT_WELCOME_ALIGNS,At as CHAT_WIDGET_POSITIONS,Bt as CHAT_WIDGET_VIEWS,A as CHECKBOX_SIZES,v as CHIP_SIZES,x as CHIP_VARIANTS,Ne as COLOR_PICKER_POSITIONS,Me as COLOR_PICKER_SIZES,Oe as COLOR_SWATCH_SIZES,Sa as CONFETTI_MODES,Ua as CONFETTI_SHAPES,Ta as CONFETTI_TRIGGERS,Qe as CONFIRM_SIZES,Pe as CONFIRM_VARIANTS,Dt as CONTAINER_PADDINGS,Ct as CONTAINER_SIZES,Se as COUNTDOWN_SIZES,Re as COUNTDOWN_VARIANTS,Za as CREDIT_CARD_VARIANTS,Et as DATE_PICKER_SIZES,Ft as DATE_PICKER_VARIANTS,al as DESIGN_TOOL_SIZES,ll as DESIGN_TOOL_TONES,k as DIVIDER_COLORS,Ht as DOWNLOAD_PROGRESS_POSITIONS,Gt as DOWNLOAD_PROGRESS_STATUSES,It as DRAWER_POSITIONS,Jt as DRAWER_SIZES,Lt as DROPDOWN_PLACEMENTS,Kt as DROPDOWN_SIZES,Mt as DROPDOWN_TRIGGER_VARIANTS,Nt as DROPZONE_SIZES,Ot as DROPZONE_VARIANTS,Pt as EMAIL_VERIFY_SIZES,nt as EMPTY_STATE_SIZES,ot as EMPTY_STATE_VARIANTS,Qt as FILE_UPLOADER_SIZES,Rt as FILE_UPLOADER_VARIANTS,$a as FLIGHT_STATUSES,Tt as FOOTER_SIZES,St as FOOTER_VARIANTS,Va as GLYPH_MATRIX_PRESETS,Wa as GLYPH_MATRIX_SIZES,Ue as GRADIENT_SIZES,Te as GRADIENT_VARIANTS,Wt as INDICATOR_DIRECTIONS,Vt as INDICATOR_SIZES,Ut as INDICATOR_TYPES,u as INPUT_SIZES,m as INPUT_TYPES,gt as KANBAN_SIZES,Ve as LABEL_SIZES,Xt as LIGHTBOX_SIZES,Xe as LIST_SIZES,We as LIST_VARIANTS,st as LOGO_SIZES,dt as LOGO_VARIANTS,Ze as MARKDOWN_EDITOR_SIZES,Ye as MARKDOWN_EDITOR_VARIANTS,_e as MARQUEE_SIZES,$e as MARQUEE_VARIANTS,mt as MENU_ITEM_SIZES,ut as MENU_ITEM_VARIANTS,Xa as MOCKUP_VARIANTS,G as MODAL_SIZES,Q as NAVBAR_POSITIONS,P as NAVBAR_SIZES,O as NAVBAR_VARIANTS,S as NAVIGATION_RAIL_LABEL_DISPLAYS,R as NAVIGATION_RAIL_SIZES,el as NODE_STATUSES,tl as NODE_VARIANTS,Yt as OTP_INPUT_SIZES,$t as PAGE_HEADER_ALIGNS,Zt as PAGE_HEADER_VARIANTS,ft as PAGINATION_SIZES,ct as PAGINATION_VARIANTS,_t as PHONE_VERIFY_SIZES,te as POPOVER_PLACEMENTS,ee as POPOVER_TRIGGERS,Pa as PROGRESSIVE_BLUR_POSITIONS,Qa as PROGRESSIVE_BLUR_SIZES,$ as PROGRESS_BAR_SIZES,_ as PROGRESS_BAR_STYLES,Z as PROGRESS_BAR_VARIANTS,re as PROGRESS_CIRCULAR_STYLES,ae as PROGRESS_SIZES,ta as PROGRESS_STEP_SIZES,le as PROGRESS_VARIANTS,C as RADIO_SIZES,ea as RANDOM_GRADIENT_TONES,la as RATING_SIZES,aa as RATING_VARIANTS,_a as RECEIPT_VARIANTS,ia as REORDER_SIZES,ra as REORDER_VARIANTS,W as SEARCH_BAR_RECENT_LAYOUTS,V as SEARCH_BAR_SIZES,oa as SECTION_ALIGNS,na as SECTION_APP_DOWNLOAD_SIZES,da as SECTION_CONTACT_SIZES,ua as SECTION_CTA_SIZES,sa as SECTION_CTA_VARIANTS,ma as SECTION_FAQ_SIZES,fa as SECTION_FEATURE_GRID_SIZES,ca as SECTION_FEATURE_SIZES,ga as SECTION_HERO_VARIANTS,ha as SECTION_LOGO_CLOUD_SIZES,pa as SECTION_LOGO_CLOUD_VARIANTS,ba as SECTION_PRICING_SIZES,ie as SECTION_SIZES,ya as SECTION_STATS_SIZES,xa as SECTION_TESTIMONIALS_SIZES,wa as SECTION_TESTIMONIALS_VARIANTS,N as SELECT_POSITIONS,M as SELECT_SIZES,za as SHARE_POSITIONS,ka as SHARE_SIZES,va as SHARE_VARIANTS,ce as SIDEBAR_CUSTOM_NAV_SLOTS,me as SIDEBAR_PANEL_MODES,ue as SIDEBAR_POSITIONS,ne as SIDEBAR_SIZES,de as SIDEBAR_THEMES,oe as SIDEBAR_TYPES,se as SIDEBAR_VARIANTS,ja as SIGNATURE_VARIANTS,Y as SKELETON_SIZES,X as SKELETON_VARIANTS,z as SPINNER_SIZES,j as SPINNER_TYPES,he as STAT_COLORS,pe as STAT_LAYOUTS,fe as STAT_SIZES,ge as STAT_VARIANTS,be as TABLE_SIZES,ye as TABLE_VARIANTS,L as TABS_ORIENTATIONS,K as TABS_SIZES,J as TABS_VARIANTS,we as TESTIMONIAL_VARIANTS,xe as TEXTAREA_SIZES,Ba as TIMELINE_SIZES,qa as TIMELINE_VARIANTS,ze as TIME_PICKER_DROPDOWN_POSITIONS,ke as TIME_PICKER_FORMATS,ve as TIME_PICKER_SIZES,F as TOAST_VARIANTS,q as TOGGLE_SIZES,B as TOGGLE_VARIANTS,Da as TOOLBAR_POSITIONS,Ca as TOOLBAR_SIZES,Aa as TOOLBAR_VARIANTS,je as TOOLTIP_POSITIONS,qe as TOOLTIP_SIZES,Be as TOOLTIP_VARIANTS,Ae as TOP_BANNER_VARIANTS,Oa as TWEET_CARD_SIZES,Na as TWEET_CARD_VARIANTS,Ce as TWO_FACTOR_SIZES,Fa as VIDEO_PLAYER_SIZES,Ea as VIDEO_PLAYER_VARIANTS,Ha as YOUTUBE_PLAYER_SIZES,Ga as YOUTUBE_PLAYER_VARIANTS};
|