bromcom-ui 2.11.1-rc.9-3 → 2.11.1-rc.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.
Files changed (183) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-3cdfd8eb.entry.js → p-082b9695.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-14ed8029.entry.js → p-0da8ad9f.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-7fd22a35.entry.js → p-0ef4f5ec.entry.js} +1 -1
  6. package/dist/bromcom-ui/p-15199f10.entry.js +5 -0
  7. package/dist/bromcom-ui/{p-0eacfbb2.entry.js → p-198cccb5.entry.js} +1 -1
  8. package/dist/bromcom-ui/p-222203a4.entry.js +16 -0
  9. package/dist/bromcom-ui/{p-adcb30bc.entry.js → p-2ab3e5cb.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-2addde9e.js +5 -0
  11. package/dist/bromcom-ui/p-2b42d77e.entry.js +5 -0
  12. package/dist/bromcom-ui/{p-db15dca3.entry.js → p-2c9f9889.entry.js} +1 -1
  13. package/dist/bromcom-ui/{p-a018f340.entry.js → p-42d09898.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-6f37a4d7.entry.js → p-471c7f34.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-35c215f2.entry.js → p-4d0680e1.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-8b31581f.js → p-5cb99e9e.js} +1 -1
  17. package/dist/bromcom-ui/{p-9589f69c.entry.js → p-5d670fd7.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-e497cf5d.entry.js → p-5df2d3f1.entry.js} +1 -1
  19. package/dist/bromcom-ui/{p-70253803.entry.js → p-5ee56cae.entry.js} +1 -1
  20. package/dist/bromcom-ui/{p-e10780ed.entry.js → p-603efb90.entry.js} +1 -1
  21. package/dist/bromcom-ui/{p-178fa936.entry.js → p-64a8db1d.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-61753299.js → p-6bea284a.js} +1 -1
  23. package/dist/bromcom-ui/{p-dc607ae4.entry.js → p-7230713c.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-fba1682e.entry.js → p-7d4f57be.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-87e5fda5.entry.js +5 -0
  26. package/dist/bromcom-ui/{p-e93d6619.js → p-8f3ca5d9.js} +1 -1
  27. package/dist/bromcom-ui/p-9bbd341c.entry.js +5 -0
  28. package/dist/bromcom-ui/{p-bca0ff0a.entry.js → p-a292b41d.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-90223f9f.entry.js → p-a933ac12.entry.js} +1 -1
  30. package/dist/bromcom-ui/{p-5a22b74b.entry.js → p-adb21984.entry.js} +1 -1
  31. package/dist/bromcom-ui/p-aeb4be41.js +5 -0
  32. package/dist/bromcom-ui/p-b847cbea.js +5 -0
  33. package/dist/bromcom-ui/p-bbe8c777.entry.js +5 -0
  34. package/dist/bromcom-ui/{p-c10b07cc.entry.js → p-c157a7d4.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-ebeb9689.entry.js → p-c23d73fb.entry.js} +1 -1
  36. package/dist/bromcom-ui/p-c67a5e5f.entry.js +5 -0
  37. package/dist/bromcom-ui/p-c77541f4.js +10 -0
  38. package/dist/bromcom-ui/{p-abd2f9ff.entry.js → p-c89acfca.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-d1298c40.js +5 -0
  40. package/dist/bromcom-ui/{p-5bf1657b.entry.js → p-e8bb9019.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-627c7769.entry.js → p-e9928d0c.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-f478ad92.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-5a391fcd.js → p-fcf70988.js} +1 -1
  44. package/dist/cjs/{bcm-accordion_46.cjs.entry.js → bcm-accordion_47.cjs.entry.js} +8764 -8633
  45. package/dist/cjs/bcm-alert.cjs.entry.js +3 -3
  46. package/dist/cjs/bcm-attendance-actions-comment.cjs.entry.js +6 -6
  47. package/dist/cjs/bcm-attendance-actions-dropdown.cjs.entry.js +6 -6
  48. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +3 -3
  49. package/dist/cjs/bcm-caption.cjs.entry.js +6 -6
  50. package/dist/cjs/bcm-card.cjs.entry.js +4 -4
  51. package/dist/cjs/bcm-checkbox-lite_8.cjs.entry.js +3 -3
  52. package/dist/cjs/bcm-chip-group.cjs.entry.js +6 -6
  53. package/dist/cjs/bcm-collapse.cjs.entry.js +3 -3
  54. package/dist/cjs/bcm-date-picker.cjs.entry.js +3 -3
  55. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +3 -3
  56. package/dist/cjs/bcm-default.cjs.entry.js +3 -3
  57. package/dist/cjs/bcm-form-2.cjs.entry.js +5 -4
  58. package/dist/cjs/bcm-input-2.cjs.entry.js +153 -0
  59. package/dist/cjs/bcm-input-custom.cjs.entry.js +3 -3
  60. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +6 -6
  61. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +6 -6
  62. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +6 -6
  63. package/dist/cjs/bcm-modal-2.cjs.entry.js +6 -6
  64. package/dist/cjs/bcm-number-input.cjs.entry.js +260 -72
  65. package/dist/cjs/bcm-overlay_2.cjs.entry.js +1 -1
  66. package/dist/cjs/bcm-popover.cjs.entry.js +6 -6
  67. package/dist/cjs/bcm-range.cjs.entry.js +3 -3
  68. package/dist/cjs/bcm-react-number.cjs.entry.js +1230 -0
  69. package/dist/cjs/bcm-skeleton.cjs.entry.js +6 -6
  70. package/dist/cjs/bcm-table.cjs.entry.js +6 -6
  71. package/dist/cjs/bcm-tag.cjs.entry.js +4 -4
  72. package/dist/cjs/bcm-time-picker.cjs.entry.js +3 -3
  73. package/dist/cjs/bcm-toast.cjs.entry.js +3 -3
  74. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  75. package/dist/cjs/{color-helper-c3a819ea.js → color-helper-dc98a2ca.js} +1 -1
  76. package/dist/cjs/{colors-078851ec.js → colors-250d0982.js} +13 -7
  77. package/dist/cjs/{generate-f73a098d.js → generate-2f15ee94.js} +2 -2
  78. package/dist/cjs/{global-baf04c81.js → global-da78178f.js} +1 -1
  79. package/dist/cjs/index-e05a7c6f.js +545 -0
  80. package/dist/cjs/input.style-b5676e6a.js +122 -0
  81. package/dist/cjs/loader.cjs.js +3 -3
  82. package/dist/cjs/{number-helper-0543a62e.js → number-helper-9b0b5976.js} +1 -1
  83. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +4 -4
  84. package/dist/cjs/old-bcm-popover.cjs.entry.js +3 -3
  85. package/dist/cjs/{package-e717a31f.js → package-7b89373b.js} +1 -1
  86. package/dist/cjs/{validators-77768582.js → validators-082184cd.js} +1 -1
  87. package/dist/collection/collection-manifest.json +2 -0
  88. package/dist/collection/components/atoms/link/link.css +9 -3
  89. package/dist/collection/components/molecules/input/input.style.js +117 -0
  90. package/dist/collection/components/molecules/input/input2.js +918 -0
  91. package/dist/collection/components/molecules/number-input/number-input.js +776 -95
  92. package/dist/collection/components/molecules/number-input/react-input.js +96 -0
  93. package/dist/collection/components/molecules/radio/radio.js +1 -1
  94. package/dist/collection/components/organism/form/form.js +2 -2
  95. package/dist/collection/components/organism/form-2/bcm-form-components.js +2 -1
  96. package/dist/collection/components/organism/list/list.css +0 -1
  97. package/dist/collection/components/third-parts/rc-picker/date.js +1 -1
  98. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +40 -5
  99. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +11 -2
  100. package/dist/components/{raf.js → Overflow.js} +692 -69
  101. package/dist/components/bcm-date.js +1 -1
  102. package/dist/components/bcm-form-2.js +2 -1
  103. package/dist/components/bcm-input-2.d.ts +11 -0
  104. package/dist/components/bcm-input-2.js +225 -0
  105. package/dist/components/bcm-number-input.js +295 -79
  106. package/dist/components/bcm-react-number.d.ts +11 -0
  107. package/dist/components/bcm-react-number.js +10 -0
  108. package/dist/components/colors2.js +13 -7
  109. package/dist/components/form.js +2 -2
  110. package/dist/components/generate.js +1 -1
  111. package/dist/components/index.d.ts +2 -0
  112. package/dist/components/index.js +2 -0
  113. package/dist/components/input.style.js +120 -0
  114. package/dist/components/link.js +1 -1
  115. package/dist/components/list.js +1 -1
  116. package/dist/components/radio.js +1 -1
  117. package/dist/components/rc-overflow.js +1 -593
  118. package/dist/components/rc-picker.js +8620 -8025
  119. package/dist/components/react-input.js +1242 -0
  120. package/dist/esm/{bcm-accordion_46.entry.js → bcm-accordion_47.entry.js} +8656 -8526
  121. package/dist/esm/bcm-alert.entry.js +3 -3
  122. package/dist/esm/bcm-attendance-actions-comment.entry.js +6 -6
  123. package/dist/esm/bcm-attendance-actions-dropdown.entry.js +6 -6
  124. package/dist/esm/bcm-breadcrumb.entry.js +3 -3
  125. package/dist/esm/bcm-caption.entry.js +6 -6
  126. package/dist/esm/bcm-card.entry.js +4 -4
  127. package/dist/esm/bcm-checkbox-lite_8.entry.js +3 -3
  128. package/dist/esm/bcm-chip-group.entry.js +6 -6
  129. package/dist/esm/bcm-collapse.entry.js +3 -3
  130. package/dist/esm/bcm-date-picker.entry.js +3 -3
  131. package/dist/esm/bcm-datetime-picker.entry.js +3 -3
  132. package/dist/esm/bcm-default.entry.js +3 -3
  133. package/dist/esm/bcm-form-2.entry.js +5 -4
  134. package/dist/esm/bcm-input-2.entry.js +149 -0
  135. package/dist/esm/bcm-input-custom.entry.js +3 -3
  136. package/dist/esm/bcm-input-dropdown.entry.js +6 -6
  137. package/dist/esm/bcm-modal-2-footer.entry.js +6 -6
  138. package/dist/esm/bcm-modal-2-header.entry.js +6 -6
  139. package/dist/esm/bcm-modal-2.entry.js +6 -6
  140. package/dist/esm/bcm-number-input.entry.js +259 -71
  141. package/dist/esm/bcm-overlay_2.entry.js +1 -1
  142. package/dist/esm/bcm-popover.entry.js +6 -6
  143. package/dist/esm/bcm-range.entry.js +3 -3
  144. package/dist/esm/bcm-react-number.entry.js +1226 -0
  145. package/dist/esm/bcm-skeleton.entry.js +6 -6
  146. package/dist/esm/bcm-table.entry.js +6 -6
  147. package/dist/esm/bcm-tag.entry.js +4 -4
  148. package/dist/esm/bcm-time-picker.entry.js +3 -3
  149. package/dist/esm/bcm-toast.entry.js +3 -3
  150. package/dist/esm/bromcom-ui.js +3 -3
  151. package/dist/esm/{color-helper-3b528349.js → color-helper-74614f24.js} +1 -1
  152. package/dist/esm/{colors-c530a5b8.js → colors-dd598eea.js} +13 -7
  153. package/dist/esm/{generate-c2c0b02e.js → generate-df0f43b2.js} +2 -2
  154. package/dist/esm/{global-2473677b.js → global-72a67caf.js} +1 -1
  155. package/dist/esm/index-036974d7.js +541 -0
  156. package/dist/esm/input.style-e855c0f3.js +120 -0
  157. package/dist/esm/loader.js +3 -3
  158. package/dist/esm/{number-helper-75447fa6.js → number-helper-b012c05f.js} +1 -1
  159. package/dist/esm/old-bcm-popover-box.entry.js +4 -4
  160. package/dist/esm/old-bcm-popover.entry.js +3 -3
  161. package/dist/esm/{package-28dc6847.js → package-40075eb9.js} +1 -1
  162. package/dist/esm/{validators-5a383988.js → validators-166e2a4e.js} +1 -1
  163. package/dist/types/components/molecules/input/input.style.d.ts +576 -0
  164. package/dist/types/components/molecules/input/input2.d.ts +64 -0
  165. package/dist/types/components/molecules/number-input/number-input.d.ts +66 -17
  166. package/dist/types/components/molecules/number-input/react-input.d.ts +16 -0
  167. package/dist/types/components.d.ts +203 -19
  168. package/package.json +4 -3
  169. package/dist/bromcom-ui/p-3361f6c9.entry.js +0 -5
  170. package/dist/bromcom-ui/p-350dbff0.entry.js +0 -5
  171. package/dist/bromcom-ui/p-3a43bf45.js +0 -5
  172. package/dist/bromcom-ui/p-64f21481.entry.js +0 -20
  173. package/dist/bromcom-ui/p-930f3618.js +0 -5
  174. package/dist/bromcom-ui/p-a4b675ef.entry.js +0 -5
  175. package/dist/bromcom-ui/p-bb46d881.entry.js +0 -5
  176. package/dist/bromcom-ui/p-c7030364.entry.js +0 -5
  177. package/dist/bromcom-ui/p-de0b0192.entry.js +0 -5
  178. package/dist/bromcom-ui/p-ede82918.js +0 -5
  179. package/dist/cjs/bcm-link.cjs.entry.js +0 -51
  180. package/dist/collection/components/molecules/number-input/number-input.css +0 -137
  181. package/dist/collection/components/molecules/number-input/number-input.style.js +0 -45
  182. package/dist/esm/bcm-link.entry.js +0 -47
  183. package/dist/types/components/molecules/number-input/number-input.style.d.ts +0 -200
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{v as r}from"./p-8b31581f.js";import{c as t}from"./p-3a43bf45.js";var n,e;function o(r,t){try{var n=r();return void 0===n?t:n}catch(r){if(r instanceof TypeError)return t;throw r}}!function(r){r.info="info",r.error="error",r.warning="warning",r.success="success",r.default="default"}(n||(n={})),function(r){r.banner="banner",r.basic="basic"}(e||(e={}));const c=["localhost","beta-regression.bromcomcloud.com","beta-scrum.bromcomcloud.com","beta-kanban.bromcomcloud.com"];(()=>{const r=window.location.hostname;return c.includes(r)})()&&console.log(`%cbromcom ui%c version: ${r}-p `,"color: white; background:#1890FF; font-weight: 300; font-size:10px; padding:2px 6px; border-radius: 5px","font-size:10px;"),function(){const r=document.querySelector("body");let t=localStorage.getItem("bcm-theme");!r.classList.contains("bcm-theme-*")&&t&&r.classList.add(`bcm-theme-${t}`)}(),function(){const r=document.querySelector("body");let t=document.querySelector("#bcm-overlay-container");t||(t=document.createElement("div"),t.id="bcm-overlay-container",t.classList.add("bcm-overlay-container"),r.appendChild(t))}();class i{static prettify(r){const t={};for(const n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t}static getTwColor(r){const{color:n,variable:e,tones:o}=r=Object.assign({variable:"--bcm-color-default",defaultTone:"600",tones:{50:{},100:{},200:{},300:{},400:{},500:{},600:{},700:{},800:{},900:{},950:{}}},r);if(!n||!t[n])return!1;const c={};return"string"==typeof t[n]?(c[e]=t[n],c):((Array.isArray(o)?o:Object.keys(o)).forEach((r=>{t[n][r]&&(Array.isArray(o[r])?o[r].forEach((o=>{c[`${e}-${o}`]=t[n][r]})):c[`${e}-${r}`]=t[n][r])})),c)}}i.UID=(r="bcm")=>`${r}${Math.random().toString(36).substr(2,9)}`,i.getIconAttrWithStatusType=(r,t=!1)=>{if(t)return{icon:"far fa-spinner-third fa-spin"};switch(r){case n.info:return{icon:"far fa-info-circle"};case n.error:return{icon:"far fa-times-circle"};case n.warning:return{icon:"far fa-exclamation-circle"};case n.success:return{icon:"far fa-check-circle"}}},i.domParser=r=>(new DOMParser).parseFromString(r,"text/html").body.innerText,i.createComponent=(r,t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{n[r]=t[r]})),document.getElementById("bcm-overlay-container").appendChild(n),n},i.createElement=(r="div",t)=>{let n=document.getElementById(t.id);return n||(n=document.createElement(r)),Object.keys(t).forEach((r=>{"innerHTML"==r?n[r]=t[r]:n.setAttribute(r,t[r])})),document.body.appendChild(n),n},i.debounceInput=(r,t,n,e)=>{let o;return function(){let c=this,i=arguments;e&&e.apply(c,i);let u=function(){o=null,n||r.apply(c,i)},a=n&&!o;clearTimeout(o),o=setTimeout(u,t),a&&r.apply(c,i)}},i.flatArray=r=>r.reduce(((r,t)=>r.concat(Array.isArray(t)?i.flatArray(t):t)),[]),i.reverseNodeList=r=>{let t=[];for(let n=r.length-1;n>=0;n--)t.push(r[n]);return t},i.findEventPathWithKey=(r,t,n)=>{n=Array.isArray(n)?n:[n];let e=r.composedPath()||r.path;if(e)return void 0!==e.filter((r=>n.includes(r[t])))[0]},i.findEventPathHasAttribute=(r,t)=>{let n=r.composedPath()||r.path;if(n)return o((()=>!!n.find((r=>r.hasAttribute(t)))),!1)},i.findEventTarget=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.target||r.srcElement;if(n)return t.includes(n)},i.findEventPathWithNodeName=(r,t)=>{let n=r.composedPath()||r.path;if(n)return n.filter((r=>r.nodeName===t))[0]},i.findEventPath=(r,t)=>{t=Array.isArray(t)?t:[t];let n=r.composedPath()||r.path;if(n)return void 0!==n.filter((r=>t.includes(r)))[0]},i.objectIsEmpty=r=>0===Object.keys(r).length&&r.constructor===Object,i.convertIdsToNestedData=(r,t)=>{let n=[],e=[];return t.forEach((t=>{r&&r.indexOf(t.id.toString())>-1?n.push(t):t.items&&(e=i.convertIdsToNestedData(r,t.items),e.length>0&&(t.items=e,n.push(t)))})),n},i.nodeListToArray=r=>Array.prototype.slice.call(r),i.setAttributes=(r,t)=>{Object.keys(t).forEach((n=>{r.setAttribute(n,t[n])}))},i.computedStyle=(r,t)=>window.getComputedStyle(r,null).getPropertyValue(t),i.getAncestor=(r,t)=>{for(;(r=r.parentElement)&&!r.matches(t););return r},i.findParentElement=(r,t)=>{const n=t.charAt(0);if("*"===t)return r.parentElement;if("."===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.classList.contains(t))return r;r=r.parentElement}return null}(r.parentElement,n)}if("#"===n){const n=t.slice(1);return function(r,t){for(;null!==r;){if(r.id===t)return r;r=r.parentElement}return null}(r.parentElement,n)}if("["===n){const n=t.indexOf("]"),e=t.slice(1,n),o=t.slice(n+2,-1);return function(r,t,n){for(;null!==r;){if(r.hasAttribute(t)&&(void 0===n||r.getAttribute(t)===n))return r;r=r.parentElement}return null}(r.parentElement,e,o)}{const n=t.toLowerCase();return function(r,t){for(;null!==r;){if(r.tagName.toLowerCase()===t.toLowerCase())return r;r=r.parentElement}return null}(r.parentElement,n)}};export{i as G,n as S,e as T,o as s}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{h as s,r as t,c as i,g as e}from"./p-170cf07d.js";import{G as o}from"./p-930f3618.js";import{a as c}from"./p-a313fba6.js";import{c as h}from"./p-e0ab7b38.js";import{N as a}from"./p-ede82918.js";import{e as r}from"./p-8c018ae0.js";import{C as l}from"./p-436364c8.js";import{C as n}from"./p-2e73d572.js";import"./p-8b31581f.js";import"./p-3a43bf45.js";import"./p-6657830f.js";const m=({_id:t,color:i,customStyle:e,size:o,checked:m,hidden:p,value:d,type:f,onDismiss:b,onSelect:u})=>{!o&&(o=c.FontSize["size-1"]);const j=h(((s,t=!1)=>(a.isNumber(s)&&(s=c.FontSize["size-"+s]||c.FontSize["size-4"]),t?+(c.FontSizeValue[s]||c.FontSizeValue["size-4"])+2:s))(o),"bcm-tag__content",f),k=h("bcm-tag",{hidden:p});return s("div",{id:t,class:h(k,{checked:m})},s("span",{hidden:!0},s("slot",null)),s("span",{class:j,style:(s=>{if((f===c.TagType.basic||f==c.TagType.dismissable)&&n[s])return{color:r(l,n[s]+"-6"),borderColor:r(l,n[s]+"-3"),backgroundColor:r(l,n[s]+"-1")}})(i),onClick:s=>u(s)},f===c.TagType.add&&s("span",{class:"left"},s("bcm-icon",{icon:"far fa-plus"})),f===c.TagType.checkable&&s("input",{type:"checkbox",checked:m}),s("span",{class:"value",style:e},d),f===c.TagType.dismissable&&s("span",{class:"right close-button",onClick:s=>b(s)},s("bcm-icon",{icon:"fal fa-times"}))))},p=class{constructor(s){t(this,s),this.change=i(this,"bcm-change",7),this.tagDismissable=i(this,"bcm-tag-dismissable",7),this.bcmTagSelect=i(this,"bcm-tag-select",7),this._id=o.UID(),this._internal_id=o.UID(),this.hidden=!1,this.value="",this.type=c.TagType.basic,this.checked=!1,this.color=void 0,this.customStyle=void 0,this.itemObject=void 0,this.size=c.FontSize["size-1"],this.closeFunc=s=>s,this.selectFunc=s=>s}handleClick(){this.type===c.TagType.checkable&&this.handleChecked()}handleClose(){this.tagDismissable.emit(this.el)}handleChecked(){this.checked=!this.checked,this.change.emit(this.checked)}render(){const{type:t,color:i,value:e,customStyle:o,size:h,hidden:a,checked:r}=this;return s(m,{size:h,hidden:a,color:i,customStyle:o,checked:r,value:e,type:c.TagType[t],onSelect:s=>{this.bcmTagSelect.emit(s),this.selectFunc({event:s,id:this._id})},onDismiss:s=>{this.handleClose(),this.closeFunc(s)}})}get el(){return e(this)}};export{p as bcm_tag}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,h as e,H as s}from"./p-170cf07d.js";import"./p-61753299.js";import"./p-626a65e9.js";import{G as i}from"./p-930f3618.js";import"./p-ede82918.js";import"./p-a0d6d680.js";import"./p-e93d6619.js";import"./p-7e44e6b5.js";import"./p-a313fba6.js";import{c as r}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-3a43bf45.js";import"./p-6657830f.js";import"./p-8b31581f.js";const o=r({slots:{host:"tw-flex tw-flex-row tw-items-center tw-justify-center tw-flex-shrink-0 tw-relative tw-overflow-hidden tw-bg-gray-200"},variants:{variant:{rect:{host:"tw-rounded"},circle:{host:"tw-rounded-full"}},effect:{pulse:{host:"tw-animate-pulse"},ping:{host:"tw-animate-ping"},none:{host:"tw-animate-none"}},hidden:{true:{host:"tw-hidden"},false:{host:"tw-flex"}}},defaultVariants:{variant:"rect",effect:"pulse",hidden:!1}}),p=class{constructor(e){t(this,e),this._id=i.UID(),this.effect="pulse",this.variant="rect",this.hidden=!1,this.width="100%",this.height="16px",this.marginBottom=null,this.customStyles={}}render(){const{variant:t,effect:i,width:r,height:p,marginBottom:a,customStyles:n,hidden:h}=this,c=Object.assign(Object.assign(Object.assign(Object.assign({},r?{width:r}:{}),p?{height:p}:{}),a?{marginBottom:a}:{}),"string"==typeof n?JSON.parse(n):n),{host:m}=o({variant:t,effect:i,hidden:h});return e(s,{class:m(),style:c})}};export{p as bcm_skeleton}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as t,h as n,H as e}from"./p-170cf07d.js";import"./p-61753299.js";import"./p-626a65e9.js";import{G as i}from"./p-930f3618.js";import"./p-ede82918.js";import"./p-a0d6d680.js";import"./p-e93d6619.js";import"./p-7e44e6b5.js";import{B as s}from"./p-a313fba6.js";import{C as p}from"./p-2cd6cdee.js";import"./p-e0ab7b38.js";import"./p-3fac58f7.js";import"./p-2e73d572.js";import{c as a}from"./p-08c75801.js";import"./p-436364c8.js";import"./p-8c018ae0.js";import"./p-3a43bf45.js";import"./p-6657830f.js";import"./p-8b31581f.js";const r=a({slots:{host:"bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",container:"tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",inputContainer:"tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",input:"tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",caretContainer:"tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",caretIcon:"tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",slotIcon:"tw-text-slate-500"},variants:{size:{small:{host:"tw-gap-0.5 tw-text-xs",slotIcon:"tw-text-[10px]",inputContainer:"tw-py-[2px]",caretIcon:"tw-text-[10px]"},medium:{host:"tw-gap-1 tw-text-base",slotIcon:"tw-text-xs",inputContainer:"tw-py-[5px]"},large:{host:"tw-gap-2 tw-text-base",slotIcon:"tw-text-[14px]",inputContainer:"tw-py-2"}},focus:{true:{container:"tw-ring-1 tw-ring-blue-600",input:"tw-text-slate-700"}}},defaultVariants:{size:"medium"}}),o=class{constructor(n){t(this,n),this.blockInvalidChar=t=>["e","E","+","-"].includes(t.key)&&t.preventDefault(),this._id=i.UID(),this.size=s.Size.medium,this.min=0,this.max=100,this.step=1,this.placeholder=void 0,this.label=void 0,this.tooltip=void 0,this.value=0,this.disabled=!1,this.readonly=!1,this.required=!1,this.pattern=void 0,this.caption=void 0,this.noCaption=!1,this.captionType=s.Status.default,this.captionError=void 0,this.customErrorMessage=void 0,this.prefixIcon=void 0,this.suffixIcon=void 0,this.isFocus=!1,this.isError=!1}render(){const{_id:t,value:i,min:s,max:a,step:o,tooltip:l,disabled:c,size:x,label:m,caption:h,captionType:u,required:w,noCaption:d,captionError:f,customErrorMessage:g,prefixIcon:b,suffixIcon:z,pattern:j}=this,{host:v,input:y,container:C,inputContainer:I,caretContainer:E,caretIcon:k,slotIcon:_}=r({size:x,focus:this.isFocus});return n(e,{class:v(),onClick:()=>!c&&this.nativeInput.focus()},m&&n("bcm-label",{tooltip:l,"no-margin":!0,type:u,value:m,required:w,htmlFor:t}),n("div",{class:C()},n("div",{class:I()},b&&n("span",{class:_()},n("i",{class:b})),n("input",{type:"number",class:y(),min:s,max:a,step:o,value:i,inputmode:"numeric",pattern:j,ref:t=>this.nativeInput=t,onKeyPress:this.blockInvalidChar,onFocus:()=>this.isFocus=!0,onBlur:()=>this.isFocus=!1,onError:t=>console.log(t),onErrorCapture:t=>console.log(t)}),z&&n("span",{class:_()},n("i",{class:z}))),n("div",{class:E()},n("span",{class:k()},n("i",{class:"fas fa-caret-up"})),n("span",{class:k()},n("i",{class:"fas fa-caret-down"})))),n(p,{noCaption:d,captionType:u,captionError:f,caption:h,customErrorMessage:g}))}};o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");\n.size-1 {\n font-size: 12px;\n line-height: 20px;\n}\n\n.size-2 {\n font-size: 14px;\n line-height: 22px;\n}\n\n.size-3 {\n font-size: 16px;\n line-height: 24px;\n}\n\n.size-4 {\n font-size: 20px;\n line-height: 28px;\n}\n\n.size-5 {\n font-size: 24px;\n line-height: 32px;\n}\n\n.size-6 {\n font-size: 30px;\n line-height: 38px;\n}\n\n.size-7 {\n font-size: 38px;\n line-height: 46px;\n}\n\n.size-8 {\n font-size: 46px;\n line-height: 54px;\n}\n\n.size-9 {\n font-size: 56px;\n line-height: 64px;\n}\n\n.weight-regular {\n font-weight: 400;\n}\n\n.weight-semibold {\n font-weight: 500;\n}\n\n/**\n * Generator\n */\n.input-size-large {\n height: 40px;\n}\n\n.input-size-medium {\n height: 32px;\n}\n\n.input-size-small {\n height: 24px;\n}\n\n.resize-none textarea {\n resize: none;\n}\n\n.resize-vertical textarea {\n resize: vertical;\n}\n\n.resize-auto textarea {\n height: auto;\n resize: none;\n}\n\n.textarea-size-large {\n padding: 4px 0 0 4px;\n min-height: 40px;\n}\n.textarea-size-large .bcm-input-element {\n min-height: calc((40px - 8px) + 2px);\n}\n.textarea-size-large .input-clear-button {\n height: calc( 40px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-medium {\n padding: 4px 0 0 4px;\n min-height: 32px;\n}\n.textarea-size-medium .bcm-input-element {\n min-height: calc((32px - 8px) + 2px);\n}\n.textarea-size-medium .input-clear-button {\n height: calc( 32px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n.textarea-size-small {\n padding: 0px 0 0 4px;\n min-height: 24px;\n}\n.textarea-size-small .bcm-input-element {\n min-height: calc((24px - 8px) + 2px);\n}\n.textarea-size-small .input-clear-button {\n height: calc( 24px - 16px );\n top: 8px;\n padding: 0;\n margin-right: 8px;\n}\n\n@layer base {\n .bcm-number-input input[type=number]::-webkit-outer-spin-button,\n.bcm-number-input input[type=number]::-webkit-inner-spin-button,\n.bcm-number-input input[type=number] {\n -webkit-appearance: none;\n padding: 0px;\n margin: 0px;\n outline: none;\n border: 0px;\n vertical-align: baseline;\n -moz-appearance: textfield !important;\n }\n}';export{o as bcm_number_input}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{r as i,h as e,H as t,g as n}from"./p-170cf07d.js";import{c as s}from"./p-e0ab7b38.js";import{a}from"./p-a313fba6.js";import"./p-6657830f.js";const o=class{constructor(e){i(this,e),this.hidden=!1,this.href=void 0,this.target=void 0,this.icon=void 0,this.disabled=!1,this.iconPosition=a.IconPosition.prefix}handleOnClick(i){this.disabled&&(i.preventDefault(),i.stopPropagation())}linkIsExternal(i){return i&&!(!i.startsWith("http")&&!i.startsWith("//"))}render(){const{href:i,icon:n,hidden:o,target:l,iconPosition:r,disabled:p}=this,c=s("bcm-link",{disabled:p,hidden:o}),h=s("bcm-link__anchor",r,{suffix:this.linkIsExternal(i)});return e(t,{disabled:p,class:c},e(i?"a":"span",{class:h,href:i,target:this.linkIsExternal(i)?"_blank":l},n&&r===a.IconPosition.prefix&&e("bcm-icon",{class:"prefix-icon",icon:n}),e("slot",null),this.linkIsExternal(i)&&e("bcm-icon",{class:"suffix-icon",icon:"far fa-external-link-alt"})))}get el(){return n(this)}};o.style='@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-link{font-family:"Inter", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline;color:var(--bcm-new-ds-color-blue-500)}.bcm-link.hidden{display:none}.bcm-link.disabled{pointer-events:none;opacity:0.5;cursor:not-allowed}.bcm-link__anchor{display:inline-flex;align-items:baseline;font-size:inherit;color:inherit}.bcm-link__anchor.prefix .prefix-icon{margin-right:4px}.bcm-link__anchor.suffix .suffix-icon{margin-left:4px}.bcm-link__anchor:hover,.bcm-link__anchor:focus,.bcm-link__anchor:active,.bcm-link__anchor:focus-visible{outline:none}.bcm-link__anchor:hover{color:var(--bcm-new-ds-color-blue-600)}.bcm-link__anchor:active{color:var(--bcm-new-ds-color-blue-700)}.bcm-link__anchor:focus-visible{color:var(--bcm-new-ds-color-blue-800)}';export{o as bcm_link}
@@ -1,5 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import{s}from"./p-930f3618.js";class r{}r.isNumber=r=>s((()=>/^[0-9]+$/i.test(r))),r.convertToNumber=r=>s((()=>Number(r))),r.replaceNumber=r=>s((()=>r.replace(/[^0-9]/g,""))),r.replaceFloat=r=>s((()=>r.replace(/[^0-9.]/g,""))),r.toFixed=(r,a)=>s((()=>r.toFixed(a))),r.parseFloatFixed=(a,e)=>s((()=>parseFloat(r.replaceFloat(a)).toFixed(e))),r.getDecimalLength=r=>s((()=>r.split(".")[1]?r.split(".")[1].length:0)),r.toNumber=r=>s((()=>Number(r.replace(/[^0-9.]/g,""))));export{r as N}
@@ -1,51 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- 'use strict';
6
-
7
- Object.defineProperty(exports, '__esModule', { value: true });
8
-
9
- const index = require('./index-c591ecec.js');
10
- const index$1 = require('./index-95ae50d0.js');
11
- const bcm = require('./bcm-1d1fcf21.js');
12
- require('./_commonjsHelpers-ed84c3ca.js');
13
-
14
- const linkCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-link{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline;color:var(--bcm-new-ds-color-blue-500)}.bcm-link.hidden{display:none}.bcm-link.disabled{pointer-events:none;opacity:0.5;cursor:not-allowed}.bcm-link__anchor{display:inline-flex;align-items:baseline;font-size:inherit;color:inherit}.bcm-link__anchor.prefix .prefix-icon{margin-right:4px}.bcm-link__anchor.suffix .suffix-icon{margin-left:4px}.bcm-link__anchor:hover,.bcm-link__anchor:focus,.bcm-link__anchor:active,.bcm-link__anchor:focus-visible{outline:none}.bcm-link__anchor:hover{color:var(--bcm-new-ds-color-blue-600)}.bcm-link__anchor:active{color:var(--bcm-new-ds-color-blue-700)}.bcm-link__anchor:focus-visible{color:var(--bcm-new-ds-color-blue-800)}";
15
-
16
- const BcmLink = class {
17
- constructor(hostRef) {
18
- index.registerInstance(this, hostRef);
19
- this.hidden = false;
20
- this.href = undefined;
21
- this.target = undefined;
22
- this.icon = undefined;
23
- this.disabled = false;
24
- this.iconPosition = bcm.Bcm$1.IconPosition.prefix;
25
- }
26
- handleOnClick(e) {
27
- if (this.disabled) {
28
- e.preventDefault();
29
- e.stopPropagation();
30
- }
31
- }
32
- linkIsExternal(url) {
33
- return url && !!(url.startsWith('http') || url.startsWith('//'));
34
- }
35
- render() {
36
- const { href, icon, hidden, target, iconPosition, disabled } = this;
37
- const hostClasses = index$1.classnames('bcm-link', {
38
- disabled,
39
- hidden
40
- });
41
- const classes = index$1.classnames('bcm-link__anchor', iconPosition, {
42
- 'suffix': this.linkIsExternal(href)
43
- });
44
- const ElementTagType = href ? 'a' : 'span';
45
- return (index.h(index.Host, { disabled: disabled, class: hostClasses }, index.h(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === bcm.Bcm$1.IconPosition.prefix && index.h("bcm-icon", { class: "prefix-icon", icon: icon }), index.h("slot", null), this.linkIsExternal(href) && index.h("bcm-icon", { class: "suffix-icon", icon: "far fa-external-link-alt" }))));
46
- }
47
- get el() { return index.getElement(this); }
48
- };
49
- BcmLink.style = linkCss;
50
-
51
- exports.bcm_link = BcmLink;
@@ -1,137 +0,0 @@
1
- @import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
2
- .size-1 {
3
- font-size: 12px;
4
- line-height: 20px;
5
- }
6
-
7
- .size-2 {
8
- font-size: 14px;
9
- line-height: 22px;
10
- }
11
-
12
- .size-3 {
13
- font-size: 16px;
14
- line-height: 24px;
15
- }
16
-
17
- .size-4 {
18
- font-size: 20px;
19
- line-height: 28px;
20
- }
21
-
22
- .size-5 {
23
- font-size: 24px;
24
- line-height: 32px;
25
- }
26
-
27
- .size-6 {
28
- font-size: 30px;
29
- line-height: 38px;
30
- }
31
-
32
- .size-7 {
33
- font-size: 38px;
34
- line-height: 46px;
35
- }
36
-
37
- .size-8 {
38
- font-size: 46px;
39
- line-height: 54px;
40
- }
41
-
42
- .size-9 {
43
- font-size: 56px;
44
- line-height: 64px;
45
- }
46
-
47
- .weight-regular {
48
- font-weight: 400;
49
- }
50
-
51
- .weight-semibold {
52
- font-weight: 500;
53
- }
54
-
55
- /**
56
- * Generator
57
- */
58
- .input-size-large {
59
- height: 40px;
60
- }
61
-
62
- .input-size-medium {
63
- height: 32px;
64
- }
65
-
66
- .input-size-small {
67
- height: 24px;
68
- }
69
-
70
- .resize-none textarea {
71
- resize: none;
72
- }
73
-
74
- .resize-vertical textarea {
75
- resize: vertical;
76
- }
77
-
78
- .resize-auto textarea {
79
- height: auto;
80
- resize: none;
81
- }
82
-
83
- .textarea-size-large {
84
- padding: 4px 0 0 4px;
85
- min-height: 40px;
86
- }
87
- .textarea-size-large .bcm-input-element {
88
- min-height: calc((40px - 8px) + 2px);
89
- }
90
- .textarea-size-large .input-clear-button {
91
- height: calc( 40px - 16px );
92
- top: 8px;
93
- padding: 0;
94
- margin-right: 8px;
95
- }
96
-
97
- .textarea-size-medium {
98
- padding: 4px 0 0 4px;
99
- min-height: 32px;
100
- }
101
- .textarea-size-medium .bcm-input-element {
102
- min-height: calc((32px - 8px) + 2px);
103
- }
104
- .textarea-size-medium .input-clear-button {
105
- height: calc( 32px - 16px );
106
- top: 8px;
107
- padding: 0;
108
- margin-right: 8px;
109
- }
110
-
111
- .textarea-size-small {
112
- padding: 0px 0 0 4px;
113
- min-height: 24px;
114
- }
115
- .textarea-size-small .bcm-input-element {
116
- min-height: calc((24px - 8px) + 2px);
117
- }
118
- .textarea-size-small .input-clear-button {
119
- height: calc( 24px - 16px );
120
- top: 8px;
121
- padding: 0;
122
- margin-right: 8px;
123
- }
124
-
125
- @layer base {
126
- .bcm-number-input input[type=number]::-webkit-outer-spin-button,
127
- .bcm-number-input input[type=number]::-webkit-inner-spin-button,
128
- .bcm-number-input input[type=number] {
129
- -webkit-appearance: none;
130
- padding: 0px;
131
- margin: 0px;
132
- outline: none;
133
- border: 0px;
134
- vertical-align: baseline;
135
- -moz-appearance: textfield !important;
136
- }
137
- }
@@ -1,45 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { tv } from "tailwind-variants";
6
- export const numberInputStyle = tv({
7
- slots: {
8
- host: "bcm-number-input bcm-ui-element tw-flex tw-flex-col tw-items-start tw-justify-start tw-max-w-[256px] tw-w-full",
9
- container: "tw-flex tw-flex-row tw-items-center tw-justify-between tw-rounded tw-border tw-border-solid tw-border-slate-300 tw-w-full tw-min-h-full hover:tw-bg-slate-50",
10
- inputContainer: "tw-flex tw-min-h-fit tw-w-full tw-flex-row tw-items-center tw-justify-center tw-gap-2 tw-px-3",
11
- input: "tw-outline-none tw-appearance-none tw-flex-1 tw-bg-transparent tw-text-slate-400 tw-text-inherit tw-font-normal",
12
- caretContainer: "tw-flex tw-flex-col tw-min-h-full tw-border-l tw-items-stretch tw-self-stretch tw-justify-center tw-border-l-slate-300 tw-select-none tw-w-[30px]",
13
- caretIcon: "tw-flex tw-items-center tw-text-slate-500 tw-justify-center tw-h-full tw-cursor-pointer active:tw-bg-slate-400 last:tw-border-t last:tw-border-t-slate-300",
14
- slotIcon: "tw-text-slate-500",
15
- },
16
- variants: {
17
- size: {
18
- small: {
19
- host: "tw-gap-0.5 tw-text-xs",
20
- slotIcon: "tw-text-[10px]",
21
- inputContainer: "tw-py-[2px]",
22
- caretIcon: "tw-text-[10px]",
23
- },
24
- medium: {
25
- host: "tw-gap-1 tw-text-base",
26
- slotIcon: "tw-text-xs",
27
- inputContainer: "tw-py-[5px]",
28
- },
29
- large: {
30
- host: "tw-gap-2 tw-text-base",
31
- slotIcon: "tw-text-[14px]",
32
- inputContainer: "tw-py-2",
33
- },
34
- },
35
- focus: {
36
- true: {
37
- container: "tw-ring-1 tw-ring-blue-600",
38
- input: "tw-text-slate-700",
39
- },
40
- },
41
- },
42
- defaultVariants: {
43
- size: "medium",
44
- },
45
- });
@@ -1,47 +0,0 @@
1
- /*!
2
- * Built with Stencil
3
- * Copyright (c) Bromcom.
4
- */
5
- import { r as registerInstance, h, H as Host, g as getElement } from './index-0615c2b8.js';
6
- import { c as classnames } from './index-f549811f.js';
7
- import { a as Bcm } from './bcm-a50d55ba.js';
8
- import './_commonjsHelpers-82aa9212.js';
9
-
10
- const linkCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:400,500\");@import url(\"https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;600&display=swap\"); .size-1{font-size:12px;line-height:20px}.size-2{font-size:14px;line-height:22px}.size-3{font-size:16px;line-height:24px}.size-4{font-size:20px;line-height:28px}.size-5{font-size:24px;line-height:32px}.size-6{font-size:30px;line-height:38px}.size-7{font-size:38px;line-height:46px}.size-8{font-size:46px;line-height:54px}.size-9{font-size:56px;line-height:64px}.weight-regular{font-weight:400}.weight-semibold{font-weight:500}.input-size-large{height:40px}.input-size-medium{height:32px}.input-size-small{height:24px}.resize-none textarea{resize:none}.resize-vertical textarea{resize:vertical}.resize-auto textarea{height:auto;resize:none}.textarea-size-large{padding:4px 0 0 4px;min-height:40px}.textarea-size-large .bcm-input-element{min-height:calc((40px - 8px) + 2px)}.textarea-size-large .input-clear-button{height:calc( 40px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-medium{padding:4px 0 0 4px;min-height:32px}.textarea-size-medium .bcm-input-element{min-height:calc((32px - 8px) + 2px)}.textarea-size-medium .input-clear-button{height:calc( 32px - 16px );top:8px;padding:0;margin-right:8px}.textarea-size-small{padding:0px 0 0 4px;min-height:24px}.textarea-size-small .bcm-input-element{min-height:calc((24px - 8px) + 2px)}.textarea-size-small .input-clear-button{height:calc( 24px - 16px );top:8px;padding:0;margin-right:8px}*{box-sizing:border-box}.bcm-link{font-family:\"Inter\", sans-serif;font-size:14px;line-height:calc(14px + 8px);font-weight:400;display:inline;color:var(--bcm-new-ds-color-blue-500)}.bcm-link.hidden{display:none}.bcm-link.disabled{pointer-events:none;opacity:0.5;cursor:not-allowed}.bcm-link__anchor{display:inline-flex;align-items:baseline;font-size:inherit;color:inherit}.bcm-link__anchor.prefix .prefix-icon{margin-right:4px}.bcm-link__anchor.suffix .suffix-icon{margin-left:4px}.bcm-link__anchor:hover,.bcm-link__anchor:focus,.bcm-link__anchor:active,.bcm-link__anchor:focus-visible{outline:none}.bcm-link__anchor:hover{color:var(--bcm-new-ds-color-blue-600)}.bcm-link__anchor:active{color:var(--bcm-new-ds-color-blue-700)}.bcm-link__anchor:focus-visible{color:var(--bcm-new-ds-color-blue-800)}";
11
-
12
- const BcmLink = class {
13
- constructor(hostRef) {
14
- registerInstance(this, hostRef);
15
- this.hidden = false;
16
- this.href = undefined;
17
- this.target = undefined;
18
- this.icon = undefined;
19
- this.disabled = false;
20
- this.iconPosition = Bcm.IconPosition.prefix;
21
- }
22
- handleOnClick(e) {
23
- if (this.disabled) {
24
- e.preventDefault();
25
- e.stopPropagation();
26
- }
27
- }
28
- linkIsExternal(url) {
29
- return url && !!(url.startsWith('http') || url.startsWith('//'));
30
- }
31
- render() {
32
- const { href, icon, hidden, target, iconPosition, disabled } = this;
33
- const hostClasses = classnames('bcm-link', {
34
- disabled,
35
- hidden
36
- });
37
- const classes = classnames('bcm-link__anchor', iconPosition, {
38
- 'suffix': this.linkIsExternal(href)
39
- });
40
- const ElementTagType = href ? 'a' : 'span';
41
- return (h(Host, { disabled: disabled, class: hostClasses }, h(ElementTagType, { class: classes, href: href, target: this.linkIsExternal(href) ? '_blank' : target }, icon && iconPosition === Bcm.IconPosition.prefix && h("bcm-icon", { class: "prefix-icon", icon: icon }), h("slot", null), this.linkIsExternal(href) && h("bcm-icon", { class: "suffix-icon", icon: "far fa-external-link-alt" }))));
42
- }
43
- get el() { return getElement(this); }
44
- };
45
- BcmLink.style = linkCss;
46
-
47
- export { BcmLink as bcm_link };
@@ -1,200 +0,0 @@
1
- export declare const numberInputStyle: import("tailwind-variants").TVReturnType<{
2
- size: {
3
- small: {
4
- host: string;
5
- slotIcon: string;
6
- inputContainer: string;
7
- caretIcon: string;
8
- };
9
- medium: {
10
- host: string;
11
- slotIcon: string;
12
- inputContainer: string;
13
- };
14
- large: {
15
- host: string;
16
- slotIcon: string;
17
- inputContainer: string;
18
- };
19
- };
20
- focus: {
21
- true: {
22
- container: string;
23
- input: string;
24
- };
25
- };
26
- }, {
27
- host: string;
28
- container: string;
29
- inputContainer: string;
30
- input: string;
31
- caretContainer: string;
32
- caretIcon: string;
33
- slotIcon: string;
34
- }, undefined, import("tailwind-variants/dist/config").TVConfig<{
35
- size: {
36
- small: {
37
- host: string;
38
- slotIcon: string;
39
- inputContainer: string;
40
- caretIcon: string;
41
- };
42
- medium: {
43
- host: string;
44
- slotIcon: string;
45
- inputContainer: string;
46
- };
47
- large: {
48
- host: string;
49
- slotIcon: string;
50
- inputContainer: string;
51
- };
52
- };
53
- focus: {
54
- true: {
55
- container: string;
56
- input: string;
57
- };
58
- };
59
- }, {
60
- size: {
61
- small: {
62
- host: string;
63
- slotIcon: string;
64
- inputContainer: string;
65
- caretIcon: string;
66
- };
67
- medium: {
68
- host: string;
69
- slotIcon: string;
70
- inputContainer: string;
71
- };
72
- large: {
73
- host: string;
74
- slotIcon: string;
75
- inputContainer: string;
76
- };
77
- };
78
- focus: {
79
- true: {
80
- container: string;
81
- input: string;
82
- };
83
- };
84
- }>, {
85
- size: {
86
- small: {
87
- host: string;
88
- slotIcon: string;
89
- inputContainer: string;
90
- caretIcon: string;
91
- };
92
- medium: {
93
- host: string;
94
- slotIcon: string;
95
- inputContainer: string;
96
- };
97
- large: {
98
- host: string;
99
- slotIcon: string;
100
- inputContainer: string;
101
- };
102
- };
103
- focus: {
104
- true: {
105
- container: string;
106
- input: string;
107
- };
108
- };
109
- }, {
110
- host: string;
111
- container: string;
112
- inputContainer: string;
113
- input: string;
114
- caretContainer: string;
115
- caretIcon: string;
116
- slotIcon: string;
117
- }, import("tailwind-variants").TVReturnType<{
118
- size: {
119
- small: {
120
- host: string;
121
- slotIcon: string;
122
- inputContainer: string;
123
- caretIcon: string;
124
- };
125
- medium: {
126
- host: string;
127
- slotIcon: string;
128
- inputContainer: string;
129
- };
130
- large: {
131
- host: string;
132
- slotIcon: string;
133
- inputContainer: string;
134
- };
135
- };
136
- focus: {
137
- true: {
138
- container: string;
139
- input: string;
140
- };
141
- };
142
- }, {
143
- host: string;
144
- container: string;
145
- inputContainer: string;
146
- input: string;
147
- caretContainer: string;
148
- caretIcon: string;
149
- slotIcon: string;
150
- }, undefined, import("tailwind-variants/dist/config").TVConfig<{
151
- size: {
152
- small: {
153
- host: string;
154
- slotIcon: string;
155
- inputContainer: string;
156
- caretIcon: string;
157
- };
158
- medium: {
159
- host: string;
160
- slotIcon: string;
161
- inputContainer: string;
162
- };
163
- large: {
164
- host: string;
165
- slotIcon: string;
166
- inputContainer: string;
167
- };
168
- };
169
- focus: {
170
- true: {
171
- container: string;
172
- input: string;
173
- };
174
- };
175
- }, {
176
- size: {
177
- small: {
178
- host: string;
179
- slotIcon: string;
180
- inputContainer: string;
181
- caretIcon: string;
182
- };
183
- medium: {
184
- host: string;
185
- slotIcon: string;
186
- inputContainer: string;
187
- };
188
- large: {
189
- host: string;
190
- slotIcon: string;
191
- inputContainer: string;
192
- };
193
- };
194
- focus: {
195
- true: {
196
- container: string;
197
- input: string;
198
- };
199
- };
200
- }>, unknown, unknown, undefined>>;