@nmorph/nmorph-ui-kit 1.0.87 → 1.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -208,7 +208,7 @@ const Lt = (t) => {
208
208
  });
209
209
  };
210
210
  return { placement: c, placementCoords: d };
211
- }, $o = "@nmorph/nmorph-ui-kit", Mo = "module", ko = "1.0.87", zo = "MIT", Ho = {
211
+ }, $o = "@nmorph/nmorph-ui-kit", Mo = "module", ko = "1.0.89", zo = "MIT", Ho = {
212
212
  node: "18.13.0",
213
213
  npm: "8.19.3"
214
214
  }, Vo = "./dist/index.d.ts", Bo = "./dist/index.umd.js", Co = "./dist/index.es.js", So = "./dist/style.css", Io = [
@@ -321,22 +321,22 @@ const Lt = (t) => {
321
321
  }
322
322
  }, Do = (t, e) => {
323
323
  console.log(`%c ${e} `, `background: ${Bn[t].bg}; color: ${Bn[t].text}`);
324
- }, y0 = [
325
- { name: "--nmorph-info-color", color: "#d4e5edbb" },
326
- { name: "--nmorph-info-text-color", color: "#506c80" },
327
- { name: "--nmorph-success-color", color: "#67C23A" },
328
- { name: "--nmorph-success-text-color", color: "#0b5b1d" },
329
- { name: "--nmorph-error-color", color: "#F56C6C" },
330
- { name: "--nmorph-error-text-color", color: "#8d3333" },
331
- { name: "--nmorph-warn-color", color: "#E6A21C" },
332
- { name: "--nmorph-warn-text-color", color: "#7a6712" },
333
- { name: "--nmorph-white-color", color: "#ffffff" },
334
- { name: "--nmorph-gray-color", color: "#c9d2dee6" },
335
- { name: "--nmorph-black-color", color: "#000000" },
336
- { name: "--nmorph-overlay-color", color: "#00000095" }
337
- ], Po = {
324
+ }, y0 = {
325
+ info: "#d4e5edbb",
326
+ infoText: "#506c80",
327
+ success: "#67C23A",
328
+ successText: "#0b5b1d",
329
+ error: "#F56C6C",
330
+ errorText: "#8d3333",
331
+ warn: "#E6A21C",
332
+ warnText: "#7a6712",
333
+ gray: "#c9d2dee6",
334
+ white: "#ffffff",
335
+ black: "#000000",
336
+ overlay: "#00000095"
337
+ }, Po = {
338
338
  darkShade: "#c8c9ca",
339
- main: "#eaf2f9",
339
+ main: "#E9ECEC",
340
340
  lightShade: "#ffffff",
341
341
  text: "#687b9e",
342
342
  accent: "#4a90e2",
@@ -361,8 +361,8 @@ const Lt = (t) => {
361
361
  darkShadeGeneratorCoefficient: -45,
362
362
  lightShadeGeneratorCoefficient: 45,
363
363
  other: {
364
- baseShadowWidth: "2px",
365
- baseShadowBlurCoefficient: "3"
364
+ baseShadowWidth: "3px",
365
+ baseShadowBlurCoefficient: "2.3"
366
366
  }
367
367
  }, Ro = (t) => /^#[0-9A-Fa-f]{6}$/.test(t), Wo = (t) => {
368
368
  if (!Ro(t))
@@ -392,21 +392,22 @@ const Lt = (t) => {
392
392
  } catch (p) {
393
393
  console.error(p.message);
394
394
  }
395
- }, r = (g) => (console.log(g, "yay"), Object.entries(g).map(([p, M]) => ({
395
+ }, r = (g) => Object.entries(g).map(([p, M]) => ({
396
396
  name: `--nmorph-${Hn(p)}-color`,
397
397
  color: M
398
- }))), l = (g, p) => {
398
+ })), l = (g, p) => {
399
399
  const M = (b) => b.map((w) => `${w.name}: ${w.color};`).join(" "), H = Object.entries(p).map(([b, w]) => `--${Hn(b)}: ${w};`).join(" "), _ = [];
400
400
  return Object.entries(g).forEach(([b, w]) => {
401
+ const V = r(y0);
401
402
  if (b === "common")
402
- _.push(M(Yo(y0, w)));
403
+ _.push(M(Yo(V, w)));
403
404
  else {
404
- const V = `
405
+ const C = `
405
406
  &[${Oe}='${b}'] {
406
407
  ${M(w)}
407
408
  }
408
409
  `;
409
- _.push(V);
410
+ _.push(C);
410
411
  }
411
412
  }), `
412
413
  :root {
@@ -9339,7 +9340,7 @@ const xg = {
9339
9340
  border-bottom: 1px solid var(--nmorph-main-color);
9340
9341
  transition: ease-in-out var(--transition-01) background;
9341
9342
  ${ne()}
9342
-
9343
+ transition: background 0s;
9343
9344
  -moz-appearance: textfield;
9344
9345
  }
9345
9346
 
@@ -10422,11 +10423,11 @@ const xg = {
10422
10423
  }, ho = /* @__PURE__ */ A({
10423
10424
  __name: "NmorphRadio",
10424
10425
  props: {
10426
+ value: { default: "" },
10425
10427
  styleType: { default: "button" },
10426
10428
  checked: { type: Boolean, default: !1 },
10427
10429
  disabled: { type: Boolean, default: !1 },
10428
10430
  label: { default: "" },
10429
- value: {},
10430
10431
  tabindex: { default: 0 }
10431
10432
  },
10432
10433
  setup(t, { expose: e }) {
@@ -11377,8 +11378,8 @@ const jm = {
11377
11378
  c.global.mergeLocaleMessage(d, u);
11378
11379
  }), i.global.locale.value && (c.global.locale.value = i.global.locale.value)) : t.use(i);
11379
11380
  }
11380
- } catch {
11381
- console.log("yay");
11381
+ } catch (i) {
11382
+ console.error(i);
11382
11383
  }
11383
11384
  o2();
11384
11385
  const n = Uo(e.theme), r = r2(), l = { theme: n, browser: r };
package/dist/index.umd.js CHANGED
@@ -63,11 +63,11 @@
63
63
  text-overflow: ellipsis;
64
64
  `,je=()=>`
65
65
  outline: 2px solid var(--nmorph-accent-color);
66
- `,Or=(n,t=!1)=>{const o=e.reactive({}),r=e.reactive({}),l=e.reactive(dn(n)),c=e.ref(!1),i=e.ref(!1),s=()=>{Object.entries(n).forEach(([h,_])=>{r[h]=ft({inputValue:_.value,rules:_.rules}),r[h].validate()}),c.value=Object.entries(r).every(([h,_])=>_.valid)},d=()=>{Object.entries(n).forEach(([h,_])=>{o[h]=ft({inputValue:_.value,rules:_.rules}),o[h].validate()})},m=(h,_)=>Object.keys(_).filter(p=>{const b=h[p]?JSON.stringify(h[p]):null,B=JSON.stringify(_[p]);return b!==B}),k=h=>{m(l,h).forEach(f=>{const p=h[f];o[f]=ft({inputValue:p.value,rules:p.rules}),o[f].validate()}),Object.assign(l,dn(h)),s(),i.value=!0};return e.watch(n,k,{deep:!0}),t&&d(),{fields:o,isFormValid:e.readonly(c),isAnyTouched:e.readonly(i)}},un=n=>{const{initialPlacement:t,relativeElement:o,contentDOMElement:r,yOffset:l=0,xOffset:c=0}=n,i=e.ref(t),s=e.ref({x:"0px",y:"0px"}),d=e.inject("nmorph"),m=e.ref(null);e.watch(()=>d.browser,()=>{f()},{deep:!0}),e.onMounted(()=>{f(),k(),h()}),e.onUnmounted(()=>{_()});const k=()=>{let p=r.value;for(;p;){const b=window.getComputedStyle(p);if(b.overflowY==="auto"||b.overflowY==="scroll"){m.value=p;break}p=p.parentElement}},h=()=>{m.value?m.value.addEventListener("scroll",f,{passive:!0}):window.addEventListener("scroll",f,{passive:!0})},_=()=>{m.value?m.value.removeEventListener("scroll",f):window.removeEventListener("scroll",f)},f=()=>{e.nextTick(()=>{if(!r.value||!o){console.warn("There is no relative element or content DOM element");return}const p=r.value.getBoundingClientRect(),b=p.width,B=p.height,u="value"in o?o.value:o;if(!u){console.warn("Relative element is not an HTMLElement");return}const w=u.getBoundingClientRect(),{x:g,y}=w,x=w.width,$=w.height,E=window.innerWidth,N=window.innerHeight;i.value==="top"&&y-B<0&&(i.value="bottom"),i.value==="bottom"&&y+$+B>N&&(i.value="top"),i.value==="left"&&g-b<0&&(i.value="right"),i.value==="right"&&g+x+b>E&&(i.value="left"),i.value==="top"&&(s.value={x:`${g+c}px`,y:`${y-B+l}px`}),i.value==="bottom"&&(s.value={x:`${g+c}px`,y:`${y+$+l}px`}),i.value==="right"&&(s.value={x:`${g+x+c}px`,y:`${y+l}px`}),i.value==="left"&&(s.value={x:`${g-b+c}px`,y:`${y+l}px`})})};return{placement:i,placementCoords:s}},Fr={name:"@nmorph/nmorph-ui-kit",type:"module",private:!1,version:"1.0.87",license:"MIT",engines:{node:"18.13.0",npm:"8.19.3"},types:"./dist/index.d.ts",main:"./dist/index.umd.js",module:"./dist/index.es.js",style:"./dist/style.css",sideEffects:["*.css"],files:["dist","tsconfig.base.json",".eslintrc.base.cjs",".stylelintrc.base.cjs",".prettierrc.base.cjs"],exports:{".":{import:{types:"./dist/index.d.ts",default:"./dist/index.es.js"},require:"./dist/index.umd.js"},"./dist/index.d.ts":"./dist/index.d.ts","./dist/style.css":"./dist/style.css","./dist/styles/abstracts/_variables.scss":"./dist/styles/abstracts/_variables.scss","./dist/styles/abstracts/_mixins.scss":"./dist/styles/abstracts/_mixins.scss","./dist/styles/abstracts/_functions.scss":"./dist/styles/abstracts/_functions.scss","./dist/styles/main.scss":"./dist/styles/main.scss"},scripts:{build:"npm run build:types && vite build",watch:"vite build --watch","lint:es:check":"eslint --ext .js,.ts,.vue --ignore-path .gitignore src/","lint:es":"eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src/","lint:style:check":"stylelint ./src/**/*.{scss,vue}","lint:style":"stylelint ./src/**/*.{scss,vue} --fix","lint:check":"npm run lint:es:check && npm run lint:style:check",lint:"npm run lint:es && npm run lint:style","dev:type":"vue-tsc -p ./tsconfig.vue.json",prepare:"cd .. && husky install ./library/.husky","validate-branch-name":"node .husky/validate-branch-name.cjs","validate-commit-msg":"node .husky/validate-commit-msg.cjs","build:types":"vue-tsc --declaration --emitDeclarationOnly --outDir dist"},dependencies:{"@vue-styled-components/core":"^1.9.0",vue:"^3.5.13","vue-i18n":"^9.9.0"},devDependencies:{"@types/node":"^20.10.8","@types/vue":"^2.0.0","@types/vue-router":"^2.0.0","@typescript-eslint/eslint-plugin":"^6.18.1","@typescript-eslint/parser":"^6.18.1","@vitejs/plugin-vue":"^4.4.0",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-storybook":"^0.6.15","eslint-plugin-vue":"^9.19.2","happy-dom":"^15.11.7",husky:"^8.0.3",prettier:"^3.1.1","rollup-plugin-ignore":"^1.0.10",sass:"^1.69.7",stylelint:"^16.1.0","stylelint-config-idiomatic-order":"^10.0.0","stylelint-config-rational-order":"^0.0.4","stylelint-config-recommended-scss":"^14.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard":"^36.0.0","stylelint-config-standard-scss":"^13.0.0","stylelint-order":"^6.0.4","stylelint-prettier":"^5.0.0","stylelint-scss":"^6.0.0",typescript:"~5.1.6",vite:"^4.5.0","vite-plugin-dts":"^4.3.0","vite-plugin-static-copy":"^0.17.1","vite-svg-loader":"^5.1.0","vue-eslint-parser":"^9.4.0","vue-tsc":"^1.6.5"}},gn={error:{bg:"#000000",text:"red"},success:{bg:"#000000",text:"green"},warn:{bg:"#000000",text:"orange"},info:{bg:"#000000",text:"blue"}},wn=(n,t)=>{console.log(`%c ${t} `,`background: ${gn[n].bg}; color: ${gn[n].text}`)},_n=[{name:"--nmorph-info-color",color:"#d4e5edbb"},{name:"--nmorph-info-text-color",color:"#506c80"},{name:"--nmorph-success-color",color:"#67C23A"},{name:"--nmorph-success-text-color",color:"#0b5b1d"},{name:"--nmorph-error-color",color:"#F56C6C"},{name:"--nmorph-error-text-color",color:"#8d3333"},{name:"--nmorph-warn-color",color:"#E6A21C"},{name:"--nmorph-warn-text-color",color:"#7a6712"},{name:"--nmorph-white-color",color:"#ffffff"},{name:"--nmorph-gray-color",color:"#c9d2dee6"},{name:"--nmorph-black-color",color:"#000000"},{name:"--nmorph-overlay-color",color:"#00000095"}],Pr={darkShade:"#c8c9ca",main:"#eaf2f9",lightShade:"#ffffff",text:"#687b9e",accent:"#4a90e2",focusText:"#ffffff",placeholderText:"#c1c9cf"},Rr={darkShade:"#0f1112",main:"#1c1f21",lightShade:"#292d30",text:"#778288",accent:"#006cb6",focusText:"#ffffff",placeholderText:"#575757"},we="nmorph-data-theme",qr={themes:{common:_n,light:Pr,dark:Rr},defaultTheme:"dark",saveCurrentThemeToLS:!0,darkShadeGeneratorCoefficient:-45,lightShadeGeneratorCoefficient:45,other:{baseShadowWidth:"2px",baseShadowBlurCoefficient:"3"}},Wr=n=>/^#[0-9A-Fa-f]{6}$/.test(n),Ur=n=>{if(!Wr(n))throw new Error(`Invalid hex color: ${n}`);return n},Yr=(n,t)=>{const o={};return n.forEach(({name:r,color:l})=>{o[r]=l}),t.forEach(({name:r,color:l})=>{o[r]=l}),Object.entries(o).map(([r,l])=>({name:r,color:l}))},kn=(n,t)=>{let o=parseInt(n.substring(1,3),16),r=parseInt(n.substring(3,5),16),l=parseInt(n.substring(5,7),16);o=Math.round(o*(1+t/100)),r=Math.round(r*(1+t/100)),l=Math.round(l*(1+t/100)),o=Math.min(255,Math.max(0,o)),r=Math.min(255,Math.max(0,r)),l=Math.min(255,Math.max(0,l));const c=o.toString(16).padStart(2,"0"),i=r.toString(16).padStart(2,"0"),s=l.toString(16).padStart(2,"0");return`#${c}${i}${s}`},bn=n=>{wn("warn",`NMORPH(v${Fr.version})`);const t={...qr,...n},o=f=>{try{const p=Ur(f),b=kn(p,t.darkShadeGeneratorCoefficient),B=kn(p,t.lightShadeGeneratorCoefficient);return[{name:"--nmorph-dark-shade-color",color:b},{name:"--nmorph-light-shade-color",color:B}]}catch(p){console.error(p.message)}},r=f=>(console.log(f,"yay"),Object.entries(f).map(([p,b])=>({name:`--nmorph-${sn(p)}-color`,color:b}))),l=(f,p)=>{const b=w=>w.map(g=>`${g.name}: ${g.color};`).join(" "),B=Object.entries(p).map(([w,g])=>`--${sn(w)}: ${g};`).join(" "),u=[];return Object.entries(f).forEach(([w,g])=>{if(w==="common")u.push(b(Yr(_n,g)));else{const y=`
66
+ `,Or=(n,t=!1)=>{const o=e.reactive({}),r=e.reactive({}),l=e.reactive(dn(n)),c=e.ref(!1),i=e.ref(!1),s=()=>{Object.entries(n).forEach(([h,_])=>{r[h]=ft({inputValue:_.value,rules:_.rules}),r[h].validate()}),c.value=Object.entries(r).every(([h,_])=>_.valid)},d=()=>{Object.entries(n).forEach(([h,_])=>{o[h]=ft({inputValue:_.value,rules:_.rules}),o[h].validate()})},m=(h,_)=>Object.keys(_).filter(p=>{const b=h[p]?JSON.stringify(h[p]):null,B=JSON.stringify(_[p]);return b!==B}),k=h=>{m(l,h).forEach(f=>{const p=h[f];o[f]=ft({inputValue:p.value,rules:p.rules}),o[f].validate()}),Object.assign(l,dn(h)),s(),i.value=!0};return e.watch(n,k,{deep:!0}),t&&d(),{fields:o,isFormValid:e.readonly(c),isAnyTouched:e.readonly(i)}},un=n=>{const{initialPlacement:t,relativeElement:o,contentDOMElement:r,yOffset:l=0,xOffset:c=0}=n,i=e.ref(t),s=e.ref({x:"0px",y:"0px"}),d=e.inject("nmorph"),m=e.ref(null);e.watch(()=>d.browser,()=>{f()},{deep:!0}),e.onMounted(()=>{f(),k(),h()}),e.onUnmounted(()=>{_()});const k=()=>{let p=r.value;for(;p;){const b=window.getComputedStyle(p);if(b.overflowY==="auto"||b.overflowY==="scroll"){m.value=p;break}p=p.parentElement}},h=()=>{m.value?m.value.addEventListener("scroll",f,{passive:!0}):window.addEventListener("scroll",f,{passive:!0})},_=()=>{m.value?m.value.removeEventListener("scroll",f):window.removeEventListener("scroll",f)},f=()=>{e.nextTick(()=>{if(!r.value||!o){console.warn("There is no relative element or content DOM element");return}const p=r.value.getBoundingClientRect(),b=p.width,B=p.height,u="value"in o?o.value:o;if(!u){console.warn("Relative element is not an HTMLElement");return}const w=u.getBoundingClientRect(),{x:g,y}=w,x=w.width,$=w.height,E=window.innerWidth,N=window.innerHeight;i.value==="top"&&y-B<0&&(i.value="bottom"),i.value==="bottom"&&y+$+B>N&&(i.value="top"),i.value==="left"&&g-b<0&&(i.value="right"),i.value==="right"&&g+x+b>E&&(i.value="left"),i.value==="top"&&(s.value={x:`${g+c}px`,y:`${y-B+l}px`}),i.value==="bottom"&&(s.value={x:`${g+c}px`,y:`${y+$+l}px`}),i.value==="right"&&(s.value={x:`${g+x+c}px`,y:`${y+l}px`}),i.value==="left"&&(s.value={x:`${g-b+c}px`,y:`${y+l}px`})})};return{placement:i,placementCoords:s}},Fr={name:"@nmorph/nmorph-ui-kit",type:"module",private:!1,version:"1.0.89",license:"MIT",engines:{node:"18.13.0",npm:"8.19.3"},types:"./dist/index.d.ts",main:"./dist/index.umd.js",module:"./dist/index.es.js",style:"./dist/style.css",sideEffects:["*.css"],files:["dist","tsconfig.base.json",".eslintrc.base.cjs",".stylelintrc.base.cjs",".prettierrc.base.cjs"],exports:{".":{import:{types:"./dist/index.d.ts",default:"./dist/index.es.js"},require:"./dist/index.umd.js"},"./dist/index.d.ts":"./dist/index.d.ts","./dist/style.css":"./dist/style.css","./dist/styles/abstracts/_variables.scss":"./dist/styles/abstracts/_variables.scss","./dist/styles/abstracts/_mixins.scss":"./dist/styles/abstracts/_mixins.scss","./dist/styles/abstracts/_functions.scss":"./dist/styles/abstracts/_functions.scss","./dist/styles/main.scss":"./dist/styles/main.scss"},scripts:{build:"npm run build:types && vite build",watch:"vite build --watch","lint:es:check":"eslint --ext .js,.ts,.vue --ignore-path .gitignore src/","lint:es":"eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src/","lint:style:check":"stylelint ./src/**/*.{scss,vue}","lint:style":"stylelint ./src/**/*.{scss,vue} --fix","lint:check":"npm run lint:es:check && npm run lint:style:check",lint:"npm run lint:es && npm run lint:style","dev:type":"vue-tsc -p ./tsconfig.vue.json",prepare:"cd .. && husky install ./library/.husky","validate-branch-name":"node .husky/validate-branch-name.cjs","validate-commit-msg":"node .husky/validate-commit-msg.cjs","build:types":"vue-tsc --declaration --emitDeclarationOnly --outDir dist"},dependencies:{"@vue-styled-components/core":"^1.9.0",vue:"^3.5.13","vue-i18n":"^9.9.0"},devDependencies:{"@types/node":"^20.10.8","@types/vue":"^2.0.0","@types/vue-router":"^2.0.0","@typescript-eslint/eslint-plugin":"^6.18.1","@typescript-eslint/parser":"^6.18.1","@vitejs/plugin-vue":"^4.4.0",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-storybook":"^0.6.15","eslint-plugin-vue":"^9.19.2","happy-dom":"^15.11.7",husky:"^8.0.3",prettier:"^3.1.1","rollup-plugin-ignore":"^1.0.10",sass:"^1.69.7",stylelint:"^16.1.0","stylelint-config-idiomatic-order":"^10.0.0","stylelint-config-rational-order":"^0.0.4","stylelint-config-recommended-scss":"^14.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard":"^36.0.0","stylelint-config-standard-scss":"^13.0.0","stylelint-order":"^6.0.4","stylelint-prettier":"^5.0.0","stylelint-scss":"^6.0.0",typescript:"~5.1.6",vite:"^4.5.0","vite-plugin-dts":"^4.3.0","vite-plugin-static-copy":"^0.17.1","vite-svg-loader":"^5.1.0","vue-eslint-parser":"^9.4.0","vue-tsc":"^1.6.5"}},gn={error:{bg:"#000000",text:"red"},success:{bg:"#000000",text:"green"},warn:{bg:"#000000",text:"orange"},info:{bg:"#000000",text:"blue"}},wn=(n,t)=>{console.log(`%c ${t} `,`background: ${gn[n].bg}; color: ${gn[n].text}`)},_n={info:"#d4e5edbb",infoText:"#506c80",success:"#67C23A",successText:"#0b5b1d",error:"#F56C6C",errorText:"#8d3333",warn:"#E6A21C",warnText:"#7a6712",gray:"#c9d2dee6",white:"#ffffff",black:"#000000",overlay:"#00000095"},Pr={darkShade:"#c8c9ca",main:"#E9ECEC",lightShade:"#ffffff",text:"#687b9e",accent:"#4a90e2",focusText:"#ffffff",placeholderText:"#c1c9cf"},Rr={darkShade:"#0f1112",main:"#1c1f21",lightShade:"#292d30",text:"#778288",accent:"#006cb6",focusText:"#ffffff",placeholderText:"#575757"},we="nmorph-data-theme",qr={themes:{common:_n,light:Pr,dark:Rr},defaultTheme:"dark",saveCurrentThemeToLS:!0,darkShadeGeneratorCoefficient:-45,lightShadeGeneratorCoefficient:45,other:{baseShadowWidth:"3px",baseShadowBlurCoefficient:"2.3"}},Wr=n=>/^#[0-9A-Fa-f]{6}$/.test(n),Ur=n=>{if(!Wr(n))throw new Error(`Invalid hex color: ${n}`);return n},Yr=(n,t)=>{const o={};return n.forEach(({name:r,color:l})=>{o[r]=l}),t.forEach(({name:r,color:l})=>{o[r]=l}),Object.entries(o).map(([r,l])=>({name:r,color:l}))},kn=(n,t)=>{let o=parseInt(n.substring(1,3),16),r=parseInt(n.substring(3,5),16),l=parseInt(n.substring(5,7),16);o=Math.round(o*(1+t/100)),r=Math.round(r*(1+t/100)),l=Math.round(l*(1+t/100)),o=Math.min(255,Math.max(0,o)),r=Math.min(255,Math.max(0,r)),l=Math.min(255,Math.max(0,l));const c=o.toString(16).padStart(2,"0"),i=r.toString(16).padStart(2,"0"),s=l.toString(16).padStart(2,"0");return`#${c}${i}${s}`},bn=n=>{wn("warn",`NMORPH(v${Fr.version})`);const t={...qr,...n},o=f=>{try{const p=Ur(f),b=kn(p,t.darkShadeGeneratorCoefficient),B=kn(p,t.lightShadeGeneratorCoefficient);return[{name:"--nmorph-dark-shade-color",color:b},{name:"--nmorph-light-shade-color",color:B}]}catch(p){console.error(p.message)}},r=f=>Object.entries(f).map(([p,b])=>({name:`--nmorph-${sn(p)}-color`,color:b})),l=(f,p)=>{const b=w=>w.map(g=>`${g.name}: ${g.color};`).join(" "),B=Object.entries(p).map(([w,g])=>`--${sn(w)}: ${g};`).join(" "),u=[];return Object.entries(f).forEach(([w,g])=>{const y=r(_n);if(w==="common")u.push(b(Yr(y,g)));else{const x=`
67
67
  &[${we}='${w}'] {
68
68
  ${b(g)}
69
69
  }
70
- `;u.push(y)}}),`
70
+ `;u.push(x)}}),`
71
71
  :root {
72
72
  ${u.join(" ")}
73
73
  ${B}
@@ -1975,7 +1975,7 @@
1975
1975
  border-bottom: 1px solid var(--nmorph-main-color);
1976
1976
  transition: ease-in-out var(--transition-01) background;
1977
1977
  ${F()}
1978
-
1978
+ transition: background 0s;
1979
1979
  -moz-appearance: textfield;
1980
1980
  }
1981
1981
 
@@ -2445,7 +2445,7 @@
2445
2445
  input {
2446
2446
  text-indent: ${g=>g.indentation};
2447
2447
  }
2448
- `;return(g,y)=>(e.openBlock(),e.createBlock(w,{class:e.normalizeClass(c.value),props:{indentation:B.value}},{default:e.withCtx(()=>[e.createElementVNode("div",tg,[e.unref(r)["prepend-icon"]?(e.openBlock(),e.createElementBlock("div",ng,[e.renderSlot(g.$slots,"prepend-icon")])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputDOMRef",ref:f,class:"nmorph-native-input",type:m.value,placeholder:l.placeholder,disabled:l.disabled,value:l.modelValue,onInput:i,onFocus:h,onBlur:_,onKeyup:y[0]||(y[0]=e.withKeys(x=>p("on-enter"),["enter"]))},null,40,og),l.typePassword||l.clearable?(e.openBlock(),e.createBlock(e.unref(T),{key:1,disabled:l.disabled,class:"nmorph-text-input__password-btn","style-type":"transparent",width:"32px",height:l.height,onClick:d},{default:e.withCtx(()=>[e.createVNode(e.unref(H),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.value)))]),_:1})]),_:1},8,["disabled","height"])):e.createCommentVNode("",!0)])]),_:3},8,["class","props"]))}}),rg={key:0,class:"nmorph-radio__content"},ag={class:"nmorph-radio__input-wrapper"},lg=["name","value","checked","tabindex"],cg={key:0,class:"nmorph-radio__fake-checked"},ig={key:0,class:"nmorph-radio__label"},sg={key:1,class:"nmorph-radio__content"},dg=["disabled","name","value","checked","tabindex"],mg={key:0,class:"nmorph-radio__fake"},pg={key:1,class:"nmorph-radio__fake"},rn=e.defineComponent({__name:"NmorphRadio",props:{styleType:{default:"button"},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{default:""},value:{},tabindex:{default:0}},setup(n,{expose:t}){const o=e.inject("radio-group-selected-value",void 0),r=e.inject("change-radio-button-value-handler",void 0),l=n,c=()=>{r&&!l.disabled&&r(l.value)},i=e.computed(()=>o?.value===l.value||l.checked),s=e.computed(()=>v({"nmorph-radio":[`${l.disabled&&"disabled"}`,`${i.value&&"checked"}`,l.styleType]})),d=e.ref(null);t({inputDOMRef:d});const m=z`
2448
+ `;return(g,y)=>(e.openBlock(),e.createBlock(w,{class:e.normalizeClass(c.value),props:{indentation:B.value}},{default:e.withCtx(()=>[e.createElementVNode("div",tg,[e.unref(r)["prepend-icon"]?(e.openBlock(),e.createElementBlock("div",ng,[e.renderSlot(g.$slots,"prepend-icon")])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"inputDOMRef",ref:f,class:"nmorph-native-input",type:m.value,placeholder:l.placeholder,disabled:l.disabled,value:l.modelValue,onInput:i,onFocus:h,onBlur:_,onKeyup:y[0]||(y[0]=e.withKeys(x=>p("on-enter"),["enter"]))},null,40,og),l.typePassword||l.clearable?(e.openBlock(),e.createBlock(e.unref(T),{key:1,disabled:l.disabled,class:"nmorph-text-input__password-btn","style-type":"transparent",width:"32px",height:l.height,onClick:d},{default:e.withCtx(()=>[e.createVNode(e.unref(H),null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.value)))]),_:1})]),_:1},8,["disabled","height"])):e.createCommentVNode("",!0)])]),_:3},8,["class","props"]))}}),rg={key:0,class:"nmorph-radio__content"},ag={class:"nmorph-radio__input-wrapper"},lg=["name","value","checked","tabindex"],cg={key:0,class:"nmorph-radio__fake-checked"},ig={key:0,class:"nmorph-radio__label"},sg={key:1,class:"nmorph-radio__content"},dg=["disabled","name","value","checked","tabindex"],mg={key:0,class:"nmorph-radio__fake"},pg={key:1,class:"nmorph-radio__fake"},rn=e.defineComponent({__name:"NmorphRadio",props:{value:{default:""},styleType:{default:"button"},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{default:""},tabindex:{default:0}},setup(n,{expose:t}){const o=e.inject("radio-group-selected-value",void 0),r=e.inject("change-radio-button-value-handler",void 0),l=n,c=()=>{r&&!l.disabled&&r(l.value)},i=e.computed(()=>o?.value===l.value||l.checked),s=e.computed(()=>v({"nmorph-radio":[`${l.disabled&&"disabled"}`,`${i.value&&"checked"}`,l.styleType]})),d=e.ref(null);t({inputDOMRef:d});const m=z`
2449
2449
  --size: var(--extra-thin-component);
2450
2450
  cursor: pointer;
2451
2451
 
@@ -2904,4 +2904,4 @@
2904
2904
  }
2905
2905
  `,d=C.div`
2906
2906
  ${s}
2907
- `;return(m,k)=>(e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`nmorph-notification-provider nmorph-notification-provider--${c.placement}`),style:e.normalizeStyle({zIndex:i.value})},{default:e.withCtx(()=>[e.createVNode(e.TransitionGroup,{name:"nmorph-notification",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,style:e.normalizeStyle({width:h.width}),class:"nmorph-notification-provider__notification"},[e.createVNode(e.unref(Cr),e.mergeProps({ref_for:!0},h,{onClose:()=>l(h.id)}),null,16,["onClose"])],4))),128))]),_:1})]),_:1},8,["class","style"]))}});var Ar=(n=>(n["top-left"]="top-left",n["top-center"]="top-center",n["top-right"]="top-right",n["bottom-left"]="bottom-left",n["bottom-center"]="bottom-center",n["bottom-right"]="bottom-right",n))(Ar||{});const Mg={install(n,t={}){try{if(!t?.i18n?.outsideMessagesMerge){const c=Gr(t.i18n),i=n.__VUE_I18N__;i?(c.global.messages.value&&Object.entries(c.global.messages.value).forEach(([s,d])=>{i.global.mergeLocaleMessage(s,d)}),c.global.locale.value&&(i.global.locale.value=c.global.locale.value)):n.use(c)}}catch{console.log("yay")}Kr();const o=bn(t.theme),r=Cn(),l={theme:o,browser:r};return n.provide("nmorph",l),n}};a.AvatarShapeType=Bn,a.Locale=De,a.NmorphAlert=Cr,a.NmorphAlertType=Ne,a.NmorphArchiveResolution=st,a.NmorphAudioResolution=it,a.NmorphAutocomplete=e7,a.NmorphAvatar=wf,a.NmorphBacktop=ug,a.NmorphBadge=bf,a.NmorphBreadcrumb=_g,a.NmorphBreadcrumbItem=kg,a.NmorphButton=T,a.NmorphButtonShape=qo,a.NmorphButtonStyle=Po,a.NmorphButtonType=Ro,a.NmorphCalendar=gr,a.NmorphCard=zf,a.NmorphCarousel=Lf,a.NmorphCarouselItem=Af,a.NmorphCheckbox=zr,a.NmorphCheckboxGroup=Xu,a.NmorphCollapse=Tf,a.NmorphCollapseItem=jf,a.NmorphColor=bt,a.NmorphComponentDirection=xn,a.NmorphComponentHeight=J,a.NmorphComponentPosition=Vn,a.NmorphDatePicker=u7,a.NmorphDialog=zu,a.NmorphDivider=Lr,a.NmorphDocResolution=tn,a.NmorphDropdown=dt,a.NmorphFileUpload=y7,a.NmorphForm=$7,a.NmorphFormItem=M7,a.NmorphIcon=H,a.NmorphIconAddLocation=N1,a.NmorphIconAim=M1,a.NmorphIconAlarmClock=S1,a.NmorphIconApple=A1,a.NmorphIconArchive=Uo,a.NmorphIconArrowDown=F1,a.NmorphIconArrowLeft=Yo,a.NmorphIconArrowRight=Go,a.NmorphIconArrowUp=G1,a.NmorphIconAudio=Xo,a.NmorphIconAvatar=Ko,a.NmorphIconBack=tc,a.NmorphIconBell=cc,a.NmorphIconBellFilled=rc,a.NmorphIconBicycle=dc,a.NmorphIconBottom=kc,a.NmorphIconBottomLeft=hc,a.NmorphIconBottomRight=gc,a.NmorphIconBurger=yc,a.NmorphIconCalendar=Qo,a.NmorphIconCamera=Nc,a.NmorphIconCaretBottom=Mc,a.NmorphIconCaretLeft=Sc,a.NmorphIconCaretRight=Ac,a.NmorphIconCaretTop=Dc,a.NmorphIconCellphone=Pc,a.NmorphIconChatDotRound=Wc,a.NmorphIconChatDotSquare=Gc,a.NmorphIconChatLineRound=Qc,a.NmorphIconChatLineSquare=ei,a.NmorphIconChatRound=oi,a.NmorphIconChatSquare=li,a.NmorphIconCheck=si,a.NmorphIconChecked=pi,a.NmorphIconCherry=ui,a.NmorphIconChevronDoubleDown=Wt,a.NmorphIconChevronDown=X,a.NmorphIconChromeFilled=yi,a.NmorphIconCircleCheck=Ei,a.NmorphIconCircleCheckFilled=$i,a.NmorphIconCircleClose=Si,a.NmorphIconCircleCloseFilled=Zo,a.NmorphIconCirclePlus=Di,a.NmorphIconCirclePlusFilled=Ai,a.NmorphIconClock=Pi,a.NmorphIconClose=Wi,a.NmorphIconCloudy=Gi,a.NmorphIconCode=Qi,a.NmorphIconCoffee=os,a.NmorphIconCoffeeCup=es,a.NmorphIconCoin=ls,a.NmorphIconCollection=ps,a.NmorphIconCollectionTag=ss,a.NmorphIconCompass=us,a.NmorphIconConnection=_s,a.NmorphIconCoordinate=Bs,a.NmorphIconCopy=Ns,a.NmorphIconCopyDocument=Vs,a.NmorphIconCpu=Ms,a.NmorphIconCreditCard=Ss,a.NmorphIconCrop=As,a.NmorphIconCross=Ut,a.NmorphIconDelete=qs,a.NmorphIconDeleteFilled=Fs,a.NmorphIconDessert=Ys,a.NmorphIconDiscount=Ks,a.NmorphIconDoc=Jo,a.NmorphIconDocument=g4,a.NmorphIconDocumentAdd=t4,a.NmorphIconDocumentChecked=r4,a.NmorphIconDocumentCopy=c4,a.NmorphIconDocumentDelete=d4,a.NmorphIconDocumentRemove=h4,a.NmorphIconDownload=k4,a.NmorphIconEdit=$4,a.NmorphIconEditPen=y4,a.NmorphIconEnlarge=er,a.NmorphIconError=Yt,a.NmorphIconExpand=M4,a.NmorphIconEye=L4,a.NmorphIconEyeBlocked=j4,a.NmorphIconFailed=F4,a.NmorphIconFiles=q4,a.NmorphIconFilm=Y4,a.NmorphIconFilter=K4,a.NmorphIconFinished=J4,a.NmorphIconFlag=n3,a.NmorphIconFold=a3,a.NmorphIconFolder=b3,a.NmorphIconFolderAdd=i3,a.NmorphIconFolderChecked=m3,a.NmorphIconFolderDelete=f3,a.NmorphIconFolderOpened=w3,a.NmorphIconFood=x3,a.NmorphIconForkSpoon=v3,a.NmorphIconFullScreen=C3,a.NmorphIconGoblet=H3,a.NmorphIconGoldMedal=L3,a.NmorphIconGoods=F3,a.NmorphIconGoodsFilled=j3,a.NmorphIconGrape=q3,a.NmorphIconGrid=Y3,a.NmorphIconGuide=K3,a.NmorphIconHandbag=J3,a.NmorphIconHeadset=nd,a.NmorphIconHistogram=ad,a.NmorphIconHotWater=id,a.NmorphIconHouse=md,a.NmorphIconIceCreamRound=fd,a.NmorphIconIceDrink=wd,a.NmorphIconImage=Gt,a.NmorphIconInfo=yd,a.NmorphIconInfoFilled=tr,a.NmorphIconKey=Nd,a.NmorphIconKnifeFork=Md,a.NmorphIconLightning=Sd,a.NmorphIconLink=Ad,a.NmorphIconList=Dd,a.NmorphIconLoader=nt,a.NmorphIconLoading=nr,a.NmorphIconLocation=t6,a.NmorphIconLocationFilled=Ud,a.NmorphIconLocationInformation=Xd,a.NmorphIconLock=r6,a.NmorphIconLogo=Zd,a.NmorphIconLollipop=c6,a.NmorphIconMagicStick=d6,a.NmorphIconMagnet=h6,a.NmorphIconMale=g6,a.NmorphIconManagement=k6,a.NmorphIconMapLocation=y6,a.NmorphIconMedal=$6,a.NmorphIconMemo=E6,a.NmorphIconMenu=z6,a.NmorphIconMessage=T6,a.NmorphIconMessageBox=I6,a.NmorphIconMic=O6,a.NmorphIconMicrophone=R6,a.NmorphIconMinus=U6,a.NmorphIconMinusThin=Xt,a.NmorphIconMoney=Q6,a.NmorphIconMonitor=e8,a.NmorphIconMoon=o8,a.NmorphIconMore=s8,a.NmorphIconMoreFilled=l8,a.NmorphIconMostlyCloudy=p8,a.NmorphIconMouse=u8,a.NmorphIconMug=_8,a.NmorphIconMute=V8,a.NmorphIconMuteNotification=B8,a.NmorphIconNoSmoking=N8,a.NmorphIconNotebook=M8,a.NmorphIconNotification=S8,a.NmorphIconOfficeBuilding=A8,a.NmorphIconOperation=D8,a.NmorphIconOpportunity=P8,a.NmorphIconOrange=W8,a.NmorphIconPaperclip=G8,a.NmorphIconPartlyCloudy=Q8,a.NmorphIconPear=em,a.NmorphIconPhone=lm,a.NmorphIconPhoneFilled=om,a.NmorphIconPicture=sm,a.NmorphIconPieChart=pm,a.NmorphIconPlace=um,a.NmorphIconPlatform=_m,a.NmorphIconPlus=Bm,a.NmorphIconPlusThin=Kt,a.NmorphIconPointer=vm,a.NmorphIconPosition=Cm,a.NmorphIconPostCard=Hm,a.NmorphIconPouring=Lm,a.NmorphIconPresent=jm,a.NmorphIconPriceTag=Fm,a.NmorphIconPrinter=qm,a.NmorphIconPromotion=Ym,a.NmorphIconQuartzWatch=Km,a.NmorphIconQuestionFilled=Jm,a.NmorphIconRank=np,a.NmorphIconReading=ip,a.NmorphIconReadingLamp=ap,a.NmorphIconRefresh=wp,a.NmorphIconRefreshLeft=mp,a.NmorphIconRefreshRight=fp,a.NmorphIconRefrigerator=bp,a.NmorphIconRemove=vp,a.NmorphIconRemoveFilled=xp,a.NmorphIconRight=Cp,a.NmorphIconRotateLeft=or,a.NmorphIconRotateRight=rr,a.NmorphIconScaleToOriginal=Ap,a.NmorphIconSchool=Dp,a.NmorphIconScissor=Pp,a.NmorphIconSearch=Wp,a.NmorphIconSelect=Gp,a.NmorphIconSell=Qp,a.NmorphIconSemiSelect=eh,a.NmorphIconService=oh,a.NmorphIconSetting=lh,a.NmorphIconShare=sh,a.NmorphIconShip=ph,a.NmorphIconShop=uh,a.NmorphIconShoppingBag=_h,a.NmorphIconShoppingCart=Vh,a.NmorphIconShoppingCartFull=Bh,a.NmorphIconShrink=ar,a.NmorphIconSize=Wo,a.NmorphIconSmoking=Ch,a.NmorphIconSoccer=Hh,a.NmorphIconSoldOut=Lh,a.NmorphIconSort=qh,a.NmorphIconSortDown=jh,a.NmorphIconSortUp=Fh,a.NmorphIconStamp=Yh,a.NmorphIconStar=Jh,a.NmorphIconStarFilled=Kh,a.NmorphIconSuccess=cr,a.NmorphIconSuccessFilled=lr,a.NmorphIconSugar=l5,a.NmorphIconSunny=s5,a.NmorphIconSunrise=p5,a.NmorphIconSunset=u5,a.NmorphIconSwitch=V5,a.NmorphIconSwitchButton=_5,a.NmorphIconSwitchFilled=B5,a.NmorphIconTakeawayBox=N5,a.NmorphIconTicket=M5,a.NmorphIconTickets=S5,a.NmorphIconTime=A5,a.NmorphIconTimer=D5,a.NmorphIconToiletPaper=P5,a.NmorphIconTools=W5,a.NmorphIconTop=e9,a.NmorphIconTopLeft=G5,a.NmorphIconTopRight=Q5,a.NmorphIconTrendCharts=o9,a.NmorphIconTriangleDown=Qt,a.NmorphIconTrophy=m9,a.NmorphIconTrophyBase=i9,a.NmorphIconTurnOff=f9,a.NmorphIconUmbrella=w9,a.NmorphIconUnlock=b9,a.NmorphIconUpload=v9,a.NmorphIconUploadFilled=x9,a.NmorphIconUser=H9,a.NmorphIconUserFilled=C9,a.NmorphIconVan=L9,a.NmorphIconVideo=sr,a.NmorphIconVideoCamera=ir,a.NmorphIconVideoPause=O9,a.NmorphIconVideoPlay=R9,a.NmorphIconView=ir,a.NmorphIconWallet=Q9,a.NmorphIconWalletFilled=G9,a.NmorphIconWarnTriangleFilled=dr,a.NmorphIconWarning=nf,a.NmorphIconWatch=af,a.NmorphIconWindPower=sf,a.NmorphIconZoomIn=mr,a.NmorphIconZoomOut=pr,a.NmorphImage=rt,a.NmorphImageFit=$n,a.NmorphImagePreview=xr,a.NmorphImageResolution=lt,a.NmorphLibrary=Mg,a.NmorphLink=uf,a.NmorphLinkTarget=hr,a.NmorphNotificationPlacement=Ar,a.NmorphNotificationProvider=Cg,a.NmorphNumberInput=D7,a.NmorphOverflowProp=fr,a.NmorphOverlay=mt,a.NmorphPagination=Yf,a.NmorphProgress=ou,a.NmorphRadio=rn,a.NmorphRadioGroup=an,a.NmorphRadioStyleType=vn,a.NmorphScroll=gf,a.NmorphScrollBehavior=ur,a.NmorphSelect=U7,a.NmorphSelectOption=Sr,a.NmorphSelectionDateType=Nn,a.NmorphShadowType=kt,a.NmorphSkeleton=cu,a.NmorphSkeletonItem=$r,a.NmorphSkeletonItemPropsType=Vr,a.NmorphSlider=Q7,a.NmorphSortOrder=yn,a.NmorphSwitch=eg,a.NmorphTabPane=Eg,a.NmorphTable=vr,a.NmorphTableCell=Nr,a.NmorphTableColumn=Er,a.NmorphTabs=Ng,a.NmorphTagItem=en,a.NmorphTagList=ku,a.NmorphTextInput=Ir,a.NmorphTooltip=Mr,a.NmorphVideoResolution=ct,a.formatDateIntl=Zt,a.getDecadeYears=wr,a.getMonthDaysByWeek=yr,a.getMonthName=Jt,a.getTabContentId=cn,a.getTabLabelId=ln,a.hasAnyRangeDateInNextMonth=kr,a.hasAnyRangeDateInPrevMonth=_r,a.isTodayInMonthRange=br,a.nmorphLog=wn,a.resetTimeToZero=ie,a.resolution=x7,a.ru=Jr,a.useCalendarTexts=ot,a.useNmorph=Zr,a.useNmorphBrowser=Cn,a.useNmorphNotification=Qr,a.useNmorphTheme=bn,a.zh=e0,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
2907
+ `;return(m,k)=>(e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`nmorph-notification-provider nmorph-notification-provider--${c.placement}`),style:e.normalizeStyle({zIndex:i.value})},{default:e.withCtx(()=>[e.createVNode(e.TransitionGroup,{name:"nmorph-notification",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,style:e.normalizeStyle({width:h.width}),class:"nmorph-notification-provider__notification"},[e.createVNode(e.unref(Cr),e.mergeProps({ref_for:!0},h,{onClose:()=>l(h.id)}),null,16,["onClose"])],4))),128))]),_:1})]),_:1},8,["class","style"]))}});var Ar=(n=>(n["top-left"]="top-left",n["top-center"]="top-center",n["top-right"]="top-right",n["bottom-left"]="bottom-left",n["bottom-center"]="bottom-center",n["bottom-right"]="bottom-right",n))(Ar||{});const Mg={install(n,t={}){try{if(!t?.i18n?.outsideMessagesMerge){const c=Gr(t.i18n),i=n.__VUE_I18N__;i?(c.global.messages.value&&Object.entries(c.global.messages.value).forEach(([s,d])=>{i.global.mergeLocaleMessage(s,d)}),c.global.locale.value&&(i.global.locale.value=c.global.locale.value)):n.use(c)}}catch(c){console.error(c)}Kr();const o=bn(t.theme),r=Cn(),l={theme:o,browser:r};return n.provide("nmorph",l),n}};a.AvatarShapeType=Bn,a.Locale=De,a.NmorphAlert=Cr,a.NmorphAlertType=Ne,a.NmorphArchiveResolution=st,a.NmorphAudioResolution=it,a.NmorphAutocomplete=e7,a.NmorphAvatar=wf,a.NmorphBacktop=ug,a.NmorphBadge=bf,a.NmorphBreadcrumb=_g,a.NmorphBreadcrumbItem=kg,a.NmorphButton=T,a.NmorphButtonShape=qo,a.NmorphButtonStyle=Po,a.NmorphButtonType=Ro,a.NmorphCalendar=gr,a.NmorphCard=zf,a.NmorphCarousel=Lf,a.NmorphCarouselItem=Af,a.NmorphCheckbox=zr,a.NmorphCheckboxGroup=Xu,a.NmorphCollapse=Tf,a.NmorphCollapseItem=jf,a.NmorphColor=bt,a.NmorphComponentDirection=xn,a.NmorphComponentHeight=J,a.NmorphComponentPosition=Vn,a.NmorphDatePicker=u7,a.NmorphDialog=zu,a.NmorphDivider=Lr,a.NmorphDocResolution=tn,a.NmorphDropdown=dt,a.NmorphFileUpload=y7,a.NmorphForm=$7,a.NmorphFormItem=M7,a.NmorphIcon=H,a.NmorphIconAddLocation=N1,a.NmorphIconAim=M1,a.NmorphIconAlarmClock=S1,a.NmorphIconApple=A1,a.NmorphIconArchive=Uo,a.NmorphIconArrowDown=F1,a.NmorphIconArrowLeft=Yo,a.NmorphIconArrowRight=Go,a.NmorphIconArrowUp=G1,a.NmorphIconAudio=Xo,a.NmorphIconAvatar=Ko,a.NmorphIconBack=tc,a.NmorphIconBell=cc,a.NmorphIconBellFilled=rc,a.NmorphIconBicycle=dc,a.NmorphIconBottom=kc,a.NmorphIconBottomLeft=hc,a.NmorphIconBottomRight=gc,a.NmorphIconBurger=yc,a.NmorphIconCalendar=Qo,a.NmorphIconCamera=Nc,a.NmorphIconCaretBottom=Mc,a.NmorphIconCaretLeft=Sc,a.NmorphIconCaretRight=Ac,a.NmorphIconCaretTop=Dc,a.NmorphIconCellphone=Pc,a.NmorphIconChatDotRound=Wc,a.NmorphIconChatDotSquare=Gc,a.NmorphIconChatLineRound=Qc,a.NmorphIconChatLineSquare=ei,a.NmorphIconChatRound=oi,a.NmorphIconChatSquare=li,a.NmorphIconCheck=si,a.NmorphIconChecked=pi,a.NmorphIconCherry=ui,a.NmorphIconChevronDoubleDown=Wt,a.NmorphIconChevronDown=X,a.NmorphIconChromeFilled=yi,a.NmorphIconCircleCheck=Ei,a.NmorphIconCircleCheckFilled=$i,a.NmorphIconCircleClose=Si,a.NmorphIconCircleCloseFilled=Zo,a.NmorphIconCirclePlus=Di,a.NmorphIconCirclePlusFilled=Ai,a.NmorphIconClock=Pi,a.NmorphIconClose=Wi,a.NmorphIconCloudy=Gi,a.NmorphIconCode=Qi,a.NmorphIconCoffee=os,a.NmorphIconCoffeeCup=es,a.NmorphIconCoin=ls,a.NmorphIconCollection=ps,a.NmorphIconCollectionTag=ss,a.NmorphIconCompass=us,a.NmorphIconConnection=_s,a.NmorphIconCoordinate=Bs,a.NmorphIconCopy=Ns,a.NmorphIconCopyDocument=Vs,a.NmorphIconCpu=Ms,a.NmorphIconCreditCard=Ss,a.NmorphIconCrop=As,a.NmorphIconCross=Ut,a.NmorphIconDelete=qs,a.NmorphIconDeleteFilled=Fs,a.NmorphIconDessert=Ys,a.NmorphIconDiscount=Ks,a.NmorphIconDoc=Jo,a.NmorphIconDocument=g4,a.NmorphIconDocumentAdd=t4,a.NmorphIconDocumentChecked=r4,a.NmorphIconDocumentCopy=c4,a.NmorphIconDocumentDelete=d4,a.NmorphIconDocumentRemove=h4,a.NmorphIconDownload=k4,a.NmorphIconEdit=$4,a.NmorphIconEditPen=y4,a.NmorphIconEnlarge=er,a.NmorphIconError=Yt,a.NmorphIconExpand=M4,a.NmorphIconEye=L4,a.NmorphIconEyeBlocked=j4,a.NmorphIconFailed=F4,a.NmorphIconFiles=q4,a.NmorphIconFilm=Y4,a.NmorphIconFilter=K4,a.NmorphIconFinished=J4,a.NmorphIconFlag=n3,a.NmorphIconFold=a3,a.NmorphIconFolder=b3,a.NmorphIconFolderAdd=i3,a.NmorphIconFolderChecked=m3,a.NmorphIconFolderDelete=f3,a.NmorphIconFolderOpened=w3,a.NmorphIconFood=x3,a.NmorphIconForkSpoon=v3,a.NmorphIconFullScreen=C3,a.NmorphIconGoblet=H3,a.NmorphIconGoldMedal=L3,a.NmorphIconGoods=F3,a.NmorphIconGoodsFilled=j3,a.NmorphIconGrape=q3,a.NmorphIconGrid=Y3,a.NmorphIconGuide=K3,a.NmorphIconHandbag=J3,a.NmorphIconHeadset=nd,a.NmorphIconHistogram=ad,a.NmorphIconHotWater=id,a.NmorphIconHouse=md,a.NmorphIconIceCreamRound=fd,a.NmorphIconIceDrink=wd,a.NmorphIconImage=Gt,a.NmorphIconInfo=yd,a.NmorphIconInfoFilled=tr,a.NmorphIconKey=Nd,a.NmorphIconKnifeFork=Md,a.NmorphIconLightning=Sd,a.NmorphIconLink=Ad,a.NmorphIconList=Dd,a.NmorphIconLoader=nt,a.NmorphIconLoading=nr,a.NmorphIconLocation=t6,a.NmorphIconLocationFilled=Ud,a.NmorphIconLocationInformation=Xd,a.NmorphIconLock=r6,a.NmorphIconLogo=Zd,a.NmorphIconLollipop=c6,a.NmorphIconMagicStick=d6,a.NmorphIconMagnet=h6,a.NmorphIconMale=g6,a.NmorphIconManagement=k6,a.NmorphIconMapLocation=y6,a.NmorphIconMedal=$6,a.NmorphIconMemo=E6,a.NmorphIconMenu=z6,a.NmorphIconMessage=T6,a.NmorphIconMessageBox=I6,a.NmorphIconMic=O6,a.NmorphIconMicrophone=R6,a.NmorphIconMinus=U6,a.NmorphIconMinusThin=Xt,a.NmorphIconMoney=Q6,a.NmorphIconMonitor=e8,a.NmorphIconMoon=o8,a.NmorphIconMore=s8,a.NmorphIconMoreFilled=l8,a.NmorphIconMostlyCloudy=p8,a.NmorphIconMouse=u8,a.NmorphIconMug=_8,a.NmorphIconMute=V8,a.NmorphIconMuteNotification=B8,a.NmorphIconNoSmoking=N8,a.NmorphIconNotebook=M8,a.NmorphIconNotification=S8,a.NmorphIconOfficeBuilding=A8,a.NmorphIconOperation=D8,a.NmorphIconOpportunity=P8,a.NmorphIconOrange=W8,a.NmorphIconPaperclip=G8,a.NmorphIconPartlyCloudy=Q8,a.NmorphIconPear=em,a.NmorphIconPhone=lm,a.NmorphIconPhoneFilled=om,a.NmorphIconPicture=sm,a.NmorphIconPieChart=pm,a.NmorphIconPlace=um,a.NmorphIconPlatform=_m,a.NmorphIconPlus=Bm,a.NmorphIconPlusThin=Kt,a.NmorphIconPointer=vm,a.NmorphIconPosition=Cm,a.NmorphIconPostCard=Hm,a.NmorphIconPouring=Lm,a.NmorphIconPresent=jm,a.NmorphIconPriceTag=Fm,a.NmorphIconPrinter=qm,a.NmorphIconPromotion=Ym,a.NmorphIconQuartzWatch=Km,a.NmorphIconQuestionFilled=Jm,a.NmorphIconRank=np,a.NmorphIconReading=ip,a.NmorphIconReadingLamp=ap,a.NmorphIconRefresh=wp,a.NmorphIconRefreshLeft=mp,a.NmorphIconRefreshRight=fp,a.NmorphIconRefrigerator=bp,a.NmorphIconRemove=vp,a.NmorphIconRemoveFilled=xp,a.NmorphIconRight=Cp,a.NmorphIconRotateLeft=or,a.NmorphIconRotateRight=rr,a.NmorphIconScaleToOriginal=Ap,a.NmorphIconSchool=Dp,a.NmorphIconScissor=Pp,a.NmorphIconSearch=Wp,a.NmorphIconSelect=Gp,a.NmorphIconSell=Qp,a.NmorphIconSemiSelect=eh,a.NmorphIconService=oh,a.NmorphIconSetting=lh,a.NmorphIconShare=sh,a.NmorphIconShip=ph,a.NmorphIconShop=uh,a.NmorphIconShoppingBag=_h,a.NmorphIconShoppingCart=Vh,a.NmorphIconShoppingCartFull=Bh,a.NmorphIconShrink=ar,a.NmorphIconSize=Wo,a.NmorphIconSmoking=Ch,a.NmorphIconSoccer=Hh,a.NmorphIconSoldOut=Lh,a.NmorphIconSort=qh,a.NmorphIconSortDown=jh,a.NmorphIconSortUp=Fh,a.NmorphIconStamp=Yh,a.NmorphIconStar=Jh,a.NmorphIconStarFilled=Kh,a.NmorphIconSuccess=cr,a.NmorphIconSuccessFilled=lr,a.NmorphIconSugar=l5,a.NmorphIconSunny=s5,a.NmorphIconSunrise=p5,a.NmorphIconSunset=u5,a.NmorphIconSwitch=V5,a.NmorphIconSwitchButton=_5,a.NmorphIconSwitchFilled=B5,a.NmorphIconTakeawayBox=N5,a.NmorphIconTicket=M5,a.NmorphIconTickets=S5,a.NmorphIconTime=A5,a.NmorphIconTimer=D5,a.NmorphIconToiletPaper=P5,a.NmorphIconTools=W5,a.NmorphIconTop=e9,a.NmorphIconTopLeft=G5,a.NmorphIconTopRight=Q5,a.NmorphIconTrendCharts=o9,a.NmorphIconTriangleDown=Qt,a.NmorphIconTrophy=m9,a.NmorphIconTrophyBase=i9,a.NmorphIconTurnOff=f9,a.NmorphIconUmbrella=w9,a.NmorphIconUnlock=b9,a.NmorphIconUpload=v9,a.NmorphIconUploadFilled=x9,a.NmorphIconUser=H9,a.NmorphIconUserFilled=C9,a.NmorphIconVan=L9,a.NmorphIconVideo=sr,a.NmorphIconVideoCamera=ir,a.NmorphIconVideoPause=O9,a.NmorphIconVideoPlay=R9,a.NmorphIconView=ir,a.NmorphIconWallet=Q9,a.NmorphIconWalletFilled=G9,a.NmorphIconWarnTriangleFilled=dr,a.NmorphIconWarning=nf,a.NmorphIconWatch=af,a.NmorphIconWindPower=sf,a.NmorphIconZoomIn=mr,a.NmorphIconZoomOut=pr,a.NmorphImage=rt,a.NmorphImageFit=$n,a.NmorphImagePreview=xr,a.NmorphImageResolution=lt,a.NmorphLibrary=Mg,a.NmorphLink=uf,a.NmorphLinkTarget=hr,a.NmorphNotificationPlacement=Ar,a.NmorphNotificationProvider=Cg,a.NmorphNumberInput=D7,a.NmorphOverflowProp=fr,a.NmorphOverlay=mt,a.NmorphPagination=Yf,a.NmorphProgress=ou,a.NmorphRadio=rn,a.NmorphRadioGroup=an,a.NmorphRadioStyleType=vn,a.NmorphScroll=gf,a.NmorphScrollBehavior=ur,a.NmorphSelect=U7,a.NmorphSelectOption=Sr,a.NmorphSelectionDateType=Nn,a.NmorphShadowType=kt,a.NmorphSkeleton=cu,a.NmorphSkeletonItem=$r,a.NmorphSkeletonItemPropsType=Vr,a.NmorphSlider=Q7,a.NmorphSortOrder=yn,a.NmorphSwitch=eg,a.NmorphTabPane=Eg,a.NmorphTable=vr,a.NmorphTableCell=Nr,a.NmorphTableColumn=Er,a.NmorphTabs=Ng,a.NmorphTagItem=en,a.NmorphTagList=ku,a.NmorphTextInput=Ir,a.NmorphTooltip=Mr,a.NmorphVideoResolution=ct,a.formatDateIntl=Zt,a.getDecadeYears=wr,a.getMonthDaysByWeek=yr,a.getMonthName=Jt,a.getTabContentId=cn,a.getTabLabelId=ln,a.hasAnyRangeDateInNextMonth=kr,a.hasAnyRangeDateInPrevMonth=_r,a.isTodayInMonthRange=br,a.nmorphLog=wn,a.resetTimeToZero=ie,a.resolution=x7,a.ru=Jr,a.useCalendarTexts=ot,a.useNmorph=Zr,a.useNmorphBrowser=Cn,a.useNmorphNotification=Qr,a.useNmorphTheme=bn,a.zh=e0,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
@@ -1,18 +1,20 @@
1
1
  import { INmorphRadioOption, NmorphRadioStyleType } from '../../../types';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- interface INmorphProps extends INmorphRadioOption {
3
+ interface INmorphProps extends Omit<INmorphRadioOption, 'value'> {
4
+ value?: string;
4
5
  styleType?: keyof typeof NmorphRadioStyleType;
5
6
  checked?: boolean;
6
7
  }
7
8
  declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
8
9
  inputDOMRef: Ref<HTMLElement, HTMLElement>;
9
10
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
11
+ value: string;
10
12
  styleType: "button" | "radio-style";
11
13
  tabindex: number;
12
14
  disabled: boolean;
13
15
  label: string;
14
16
  checked: boolean;
15
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
17
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
16
18
  label?(_: {}): any;
17
19
  label?(_: {}): any;
18
20
  }>;
@@ -1,32 +1,7 @@
1
1
  import { INmorphApplyTranslation, Locale, TranslateMessages } from '../types';
2
2
  import { I18n } from 'vue-i18n';
3
3
  export declare const useNmorphTranslation: (data: INmorphApplyTranslation) => I18n<{
4
- en: {
5
- sun: string;
6
- mon: string;
7
- tue: string;
8
- wed: string;
9
- thu: string;
10
- fri: string;
11
- sat: string;
12
- jan: string;
13
- feb: string;
14
- mar: string;
15
- apr: string;
16
- may: string;
17
- jun: string;
18
- jul: string;
19
- aug: string;
20
- sep: string;
21
- oct: string;
22
- nov: string;
23
- dec: string;
24
- pickADate: string;
25
- loadingText: string;
26
- loadFailedText: string;
27
- noElementPlaceholder: string;
28
- selectFile: string;
29
- };
4
+ en: any;
30
5
  ru?: TranslateMessages;
31
6
  zh?: TranslateMessages;
32
7
  }, {}, {}, "en" | "ru" | "zh" | Locale, false>;
@@ -56,7 +56,6 @@ export interface INmorphCoords<T> {
56
56
  x: T;
57
57
  y: T;
58
58
  }
59
- export type HexColor = `#${string}`;
60
59
  export declare enum NmorphImageFit {
61
60
  fill = "fill",
62
61
  contain = "contain",
@@ -66,7 +65,7 @@ export declare enum NmorphImageFit {
66
65
  }
67
66
  export interface INmorphColorVariable {
68
67
  name: string;
69
- color: HexColor;
68
+ color: string;
70
69
  }
71
70
  export interface INmorphOtherThemeOptions {
72
71
  baseShadowWidth?: string;
@@ -83,32 +82,31 @@ export interface INmorphThemeOptions {
83
82
  export interface INmorphOptions {
84
83
  theme?: INmorphThemeOptions;
85
84
  i18n?: INmorphApplyTranslation;
86
- components?: string[];
87
85
  }
88
86
  export type NmorphThemeOptionsType = Record<string, INmorphThemeOptions>;
89
87
  export interface INmorphStaticColors {
90
- info?: HexColor;
91
- infoText?: HexColor;
92
- success?: HexColor;
93
- successText?: HexColor;
94
- error?: HexColor;
95
- errorText?: HexColor;
96
- warn?: HexColor;
97
- warnText?: HexColor;
98
- gray?: HexColor;
99
- accent?: HexColor;
100
- white?: HexColor;
101
- black?: HexColor;
102
- text?: HexColor;
103
- overlay?: HexColor;
104
- focusTextColor?: HexColor;
88
+ info?: string;
89
+ infoText?: string;
90
+ success?: string;
91
+ successText?: string;
92
+ error?: string;
93
+ errorText?: string;
94
+ warn?: string;
95
+ warnText?: string;
96
+ gray?: string;
97
+ accent?: string;
98
+ white?: string;
99
+ black?: string;
100
+ text?: string;
101
+ overlay?: string;
102
+ focusTextColor?: string;
105
103
  }
106
104
  export interface INmorphDynamicColors {
107
- darkShade?: HexColor;
108
- lightShade?: HexColor;
105
+ darkShade?: string;
106
+ lightShade?: string;
109
107
  }
110
108
  export interface INmorphThemeOptions extends INmorphDynamicColors, INmorphStaticColors {
111
- main?: HexColor;
109
+ main?: string;
112
110
  }
113
111
  export type NmorphThemeMapType = Record<string, INmorphColorVariable[]>;
114
112
  export declare enum Locale {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "1.0.87",
5
+ "version": "1.0.89",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",
@@ -1,27 +0,0 @@
1
- declare const _default: {
2
- sun: string;
3
- mon: string;
4
- tue: string;
5
- wed: string;
6
- thu: string;
7
- fri: string;
8
- sat: string;
9
- jan: string;
10
- feb: string;
11
- mar: string;
12
- apr: string;
13
- may: string;
14
- jun: string;
15
- jul: string;
16
- aug: string;
17
- sep: string;
18
- oct: string;
19
- nov: string;
20
- dec: string;
21
- pickADate: string;
22
- loadingText: string;
23
- loadFailedText: string;
24
- noElementPlaceholder: string;
25
- selectFile: string;
26
- };
27
- export default _default;