@ukic/canary-web-components 2.0.0-canary.10 → 2.0.0-canary.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/helpers-7a069459.js.map +1 -1
  3. package/dist/cjs/helpers-f75cf7cf.js.map +1 -1
  4. package/dist/cjs/ic-badge.cjs.entry.js +15 -7
  5. package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
  6. package/dist/cjs/ic-date-input.cjs.entry.js +24 -8
  7. package/dist/cjs/ic-date-input.cjs.entry.js.map +1 -1
  8. package/dist/cjs/ic-date-picker.cjs.entry.js +3 -3
  9. package/dist/cjs/ic-date-picker.cjs.entry.js.map +1 -1
  10. package/dist/cjs/ic-dialog.cjs.entry.js +2 -1
  11. package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/collection/components/ic-date-input/ic-date-input.js +52 -8
  14. package/dist/collection/components/ic-date-input/ic-date-input.js.map +1 -1
  15. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js +0 -17
  16. package/dist/collection/components/ic-date-input/test/basic/ic-date-input.spec.js.map +1 -1
  17. package/dist/collection/components/ic-date-picker/ic-date-picker.js +3 -3
  18. package/dist/collection/components/ic-date-picker/ic-date-picker.js.map +1 -1
  19. package/dist/collection/components/ic-date-picker/story-data.js +1 -0
  20. package/dist/collection/components/ic-date-picker/story-data.js.map +1 -1
  21. package/dist/collection/utils/helpers.js +14 -0
  22. package/dist/collection/utils/helpers.js.map +1 -1
  23. package/dist/components/helpers.js.map +1 -1
  24. package/dist/components/helpers2.js.map +1 -1
  25. package/dist/components/ic-badge.js +16 -8
  26. package/dist/components/ic-badge.js.map +1 -1
  27. package/dist/components/ic-date-input2.js +26 -9
  28. package/dist/components/ic-date-input2.js.map +1 -1
  29. package/dist/components/ic-date-picker.js +3 -3
  30. package/dist/components/ic-date-picker.js.map +1 -1
  31. package/dist/components/ic-dialog.js +2 -1
  32. package/dist/components/ic-dialog.js.map +1 -1
  33. package/dist/core/core.esm.js +1 -1
  34. package/dist/core/core.esm.js.map +1 -1
  35. package/dist/core/{p-ca8cbd6a.entry.js → p-0080bbce.entry.js} +2 -2
  36. package/dist/core/{p-6690bc04.entry.js → p-02d0ecd2.entry.js} +2 -2
  37. package/dist/core/{p-a0f9b259.entry.js → p-0388b484.entry.js} +2 -2
  38. package/dist/core/{p-982a6e88.entry.js → p-06aef486.entry.js} +2 -2
  39. package/dist/core/{p-1ce75941.entry.js → p-0b32ba5b.entry.js} +2 -2
  40. package/dist/core/{p-d4fdd8c1.entry.js → p-170f6408.entry.js} +2 -2
  41. package/dist/core/{p-2c1fecb9.entry.js → p-1857e9a7.entry.js} +2 -2
  42. package/dist/core/{p-a42c2f37.entry.js → p-1f1b4b8b.entry.js} +2 -2
  43. package/dist/core/{p-2e2e0099.entry.js → p-21da96a9.entry.js} +2 -2
  44. package/dist/core/{p-b306cbc8.entry.js → p-221d03e1.entry.js} +2 -2
  45. package/dist/core/{p-7cecf5d5.entry.js → p-23a13636.entry.js} +2 -2
  46. package/dist/core/{p-86012178.entry.js → p-25a458bf.entry.js} +2 -2
  47. package/dist/core/{p-d35c7c18.js → p-2c3cdfa3.js} +2 -2
  48. package/dist/core/{p-d35c7c18.js.map → p-2c3cdfa3.js.map} +1 -1
  49. package/dist/core/{p-5fe96107.entry.js → p-2f31bb92.entry.js} +2 -2
  50. package/dist/core/{p-8c90110a.entry.js → p-31fdb740.entry.js} +2 -2
  51. package/dist/core/p-40ba5a51.entry.js +2 -0
  52. package/dist/core/p-40ba5a51.entry.js.map +1 -0
  53. package/dist/core/p-4f0178a7.entry.js +2 -0
  54. package/dist/core/{p-d5c99ec3.entry.js.map → p-4f0178a7.entry.js.map} +1 -1
  55. package/dist/core/{p-9d540656.entry.js → p-56d01bdb.entry.js} +2 -2
  56. package/dist/core/p-5d6750ea.entry.js +2 -0
  57. package/dist/core/p-5d6750ea.entry.js.map +1 -0
  58. package/dist/core/{p-776671cf.entry.js → p-655df7fe.entry.js} +2 -2
  59. package/dist/core/{p-1b7d426b.entry.js → p-65a8c1d6.entry.js} +2 -2
  60. package/dist/core/{p-a6447b13.entry.js → p-6e32683c.entry.js} +2 -2
  61. package/dist/core/{p-5e2e6c3b.entry.js → p-70b48a14.entry.js} +2 -2
  62. package/dist/core/{p-76d26018.entry.js → p-7373beb0.entry.js} +2 -2
  63. package/dist/core/{p-1832f4b5.entry.js → p-75a2cdac.entry.js} +2 -2
  64. package/dist/core/{p-8ab12a15.entry.js → p-7c0f24b6.entry.js} +2 -2
  65. package/dist/core/{p-98448bdb.entry.js → p-8f1aa87d.entry.js} +2 -2
  66. package/dist/core/{p-e74f1d09.entry.js → p-95374ba1.entry.js} +2 -2
  67. package/dist/core/{p-06ae5bec.entry.js → p-98c8d46a.entry.js} +2 -2
  68. package/dist/core/{p-f55ad6ae.entry.js → p-9f9b3151.entry.js} +2 -2
  69. package/dist/core/{p-4f1ffa39.entry.js → p-a16c6ff3.entry.js} +2 -2
  70. package/dist/core/{p-5392bca0.entry.js → p-a22fd338.entry.js} +2 -2
  71. package/dist/core/{p-85609bdd.entry.js → p-a6e9a8e7.entry.js} +2 -2
  72. package/dist/core/p-b1e3f20a.entry.js +2 -0
  73. package/dist/core/{p-8ea47d42.entry.js.map → p-b1e3f20a.entry.js.map} +1 -1
  74. package/dist/core/{p-5759d771.entry.js → p-b1e646e4.entry.js} +2 -2
  75. package/dist/core/{p-d3856ed3.entry.js → p-b3ce9fe4.entry.js} +2 -2
  76. package/dist/core/{p-33679c06.entry.js → p-c680c7f9.entry.js} +2 -2
  77. package/dist/core/p-cd799087.js.map +1 -1
  78. package/dist/core/{p-0939ce92.entry.js → p-ce898d90.entry.js} +2 -2
  79. package/dist/core/p-d184d9e2.entry.js +2 -0
  80. package/dist/core/p-d184d9e2.entry.js.map +1 -0
  81. package/dist/core/{p-16f67397.entry.js → p-df5d7aa4.entry.js} +2 -2
  82. package/dist/core/{p-9d01a7ad.entry.js → p-df63896a.entry.js} +2 -2
  83. package/dist/core/{p-62e22508.entry.js → p-e21083c8.entry.js} +2 -2
  84. package/dist/core/{p-47ac6838.entry.js → p-e2155d7f.entry.js} +2 -2
  85. package/dist/core/{p-caf857de.entry.js → p-e33bdca9.entry.js} +2 -2
  86. package/dist/core/{p-3745da83.entry.js → p-e9e7a7f9.entry.js} +2 -2
  87. package/dist/core/{p-c7820c23.entry.js → p-ee09f1b3.entry.js} +2 -2
  88. package/dist/core/{p-f91527a0.entry.js → p-eeacd610.entry.js} +2 -2
  89. package/dist/core/{p-6c0e2ceb.entry.js → p-f24c9356.entry.js} +2 -2
  90. package/dist/core/p-f5d5f0be.entry.js +2 -0
  91. package/dist/core/p-f5d5f0be.entry.js.map +1 -0
  92. package/dist/core/{p-d32692e2.entry.js → p-f62cd6d2.entry.js} +2 -2
  93. package/dist/core/{p-ae422058.entry.js → p-fb58d1d1.entry.js} +2 -2
  94. package/dist/esm/core.js +1 -1
  95. package/dist/esm/{helpers-7aa21b0a.js → helpers-b5f64263.js} +2 -2
  96. package/dist/esm/{helpers-7aa21b0a.js.map → helpers-b5f64263.js.map} +1 -1
  97. package/dist/esm/helpers-f328a7b6.js.map +1 -1
  98. package/dist/esm/ic-accordion.entry.js +1 -1
  99. package/dist/esm/ic-alert.entry.js +1 -1
  100. package/dist/esm/ic-back-to-top.entry.js +1 -1
  101. package/dist/esm/ic-badge.entry.js +16 -8
  102. package/dist/esm/ic-badge.entry.js.map +1 -1
  103. package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
  104. package/dist/esm/ic-breadcrumb.entry.js +1 -1
  105. package/dist/esm/ic-button_3.entry.js +1 -1
  106. package/dist/esm/ic-card.entry.js +1 -1
  107. package/dist/esm/ic-checkbox-group.entry.js +1 -1
  108. package/dist/esm/ic-checkbox.entry.js +1 -1
  109. package/dist/esm/ic-chip.entry.js +1 -1
  110. package/dist/esm/ic-data-row.entry.js +1 -1
  111. package/dist/esm/ic-date-input.entry.js +24 -8
  112. package/dist/esm/ic-date-input.entry.js.map +1 -1
  113. package/dist/esm/ic-date-picker.entry.js +3 -3
  114. package/dist/esm/ic-date-picker.entry.js.map +1 -1
  115. package/dist/esm/ic-dialog.entry.js +3 -2
  116. package/dist/esm/ic-dialog.entry.js.map +1 -1
  117. package/dist/esm/ic-divider.entry.js +1 -1
  118. package/dist/esm/ic-empty-state.entry.js +1 -1
  119. package/dist/esm/ic-footer-link-group.entry.js +1 -1
  120. package/dist/esm/ic-footer-link.entry.js +1 -1
  121. package/dist/esm/ic-footer.entry.js +1 -1
  122. package/dist/esm/ic-hero.entry.js +1 -1
  123. package/dist/esm/ic-horizontal-scroll.entry.js +1 -1
  124. package/dist/esm/ic-input-component-container_4.entry.js +1 -1
  125. package/dist/esm/ic-link.entry.js +1 -1
  126. package/dist/esm/ic-menu-group.entry.js +1 -1
  127. package/dist/esm/ic-menu-item.entry.js +1 -1
  128. package/dist/esm/ic-menu.entry.js +1 -1
  129. package/dist/esm/ic-navigation-button.entry.js +1 -1
  130. package/dist/esm/ic-navigation-group.entry.js +1 -1
  131. package/dist/esm/ic-navigation-item.entry.js +1 -1
  132. package/dist/esm/ic-navigation-menu.entry.js +1 -1
  133. package/dist/esm/ic-page-header.entry.js +1 -1
  134. package/dist/esm/ic-pagination_4.entry.js +1 -1
  135. package/dist/esm/ic-popover-menu.entry.js +1 -1
  136. package/dist/esm/ic-radio-group.entry.js +1 -1
  137. package/dist/esm/ic-radio-option.entry.js +1 -1
  138. package/dist/esm/ic-search-bar.entry.js +1 -1
  139. package/dist/esm/ic-side-navigation.entry.js +1 -1
  140. package/dist/esm/ic-status-tag.entry.js +1 -1
  141. package/dist/esm/ic-step.entry.js +1 -1
  142. package/dist/esm/ic-stepper.entry.js +1 -1
  143. package/dist/esm/ic-switch.entry.js +1 -1
  144. package/dist/esm/ic-tab-group.entry.js +1 -1
  145. package/dist/esm/ic-tab-panel.entry.js +1 -1
  146. package/dist/esm/ic-tab.entry.js +1 -1
  147. package/dist/esm/ic-theme.entry.js +1 -1
  148. package/dist/esm/ic-toast.entry.js +1 -1
  149. package/dist/esm/ic-toggle-button.entry.js +1 -1
  150. package/dist/esm/ic-top-navigation.entry.js +1 -1
  151. package/dist/esm/ic-typography.entry.js +1 -1
  152. package/dist/esm/loader.js +1 -1
  153. package/dist/types/components/ic-date-input/ic-date-input.d.ts +6 -0
  154. package/dist/types/components.d.ts +1 -0
  155. package/dist/types/utils/helpers.d.ts +1 -0
  156. package/hydrate/index.js +46 -20
  157. package/package.json +3 -3
  158. package/dist/core/p-36508aad.entry.js +0 -2
  159. package/dist/core/p-36508aad.entry.js.map +0 -1
  160. package/dist/core/p-550a5674.entry.js +0 -2
  161. package/dist/core/p-550a5674.entry.js.map +0 -1
  162. package/dist/core/p-8ea47d42.entry.js +0 -2
  163. package/dist/core/p-d5c99ec3.entry.js +0 -2
  164. package/dist/core/p-e5d76564.entry.js +0 -2
  165. package/dist/core/p-e5d76564.entry.js.map +0 -1
  166. package/dist/core/p-e84b0310.entry.js +0 -2
  167. package/dist/core/p-e84b0310.entry.js.map +0 -1
  168. /package/dist/core/{p-ca8cbd6a.entry.js.map → p-0080bbce.entry.js.map} +0 -0
  169. /package/dist/core/{p-6690bc04.entry.js.map → p-02d0ecd2.entry.js.map} +0 -0
  170. /package/dist/core/{p-a0f9b259.entry.js.map → p-0388b484.entry.js.map} +0 -0
  171. /package/dist/core/{p-982a6e88.entry.js.map → p-06aef486.entry.js.map} +0 -0
  172. /package/dist/core/{p-1ce75941.entry.js.map → p-0b32ba5b.entry.js.map} +0 -0
  173. /package/dist/core/{p-d4fdd8c1.entry.js.map → p-170f6408.entry.js.map} +0 -0
  174. /package/dist/core/{p-2c1fecb9.entry.js.map → p-1857e9a7.entry.js.map} +0 -0
  175. /package/dist/core/{p-a42c2f37.entry.js.map → p-1f1b4b8b.entry.js.map} +0 -0
  176. /package/dist/core/{p-2e2e0099.entry.js.map → p-21da96a9.entry.js.map} +0 -0
  177. /package/dist/core/{p-b306cbc8.entry.js.map → p-221d03e1.entry.js.map} +0 -0
  178. /package/dist/core/{p-7cecf5d5.entry.js.map → p-23a13636.entry.js.map} +0 -0
  179. /package/dist/core/{p-86012178.entry.js.map → p-25a458bf.entry.js.map} +0 -0
  180. /package/dist/core/{p-5fe96107.entry.js.map → p-2f31bb92.entry.js.map} +0 -0
  181. /package/dist/core/{p-8c90110a.entry.js.map → p-31fdb740.entry.js.map} +0 -0
  182. /package/dist/core/{p-9d540656.entry.js.map → p-56d01bdb.entry.js.map} +0 -0
  183. /package/dist/core/{p-776671cf.entry.js.map → p-655df7fe.entry.js.map} +0 -0
  184. /package/dist/core/{p-1b7d426b.entry.js.map → p-65a8c1d6.entry.js.map} +0 -0
  185. /package/dist/core/{p-a6447b13.entry.js.map → p-6e32683c.entry.js.map} +0 -0
  186. /package/dist/core/{p-5e2e6c3b.entry.js.map → p-70b48a14.entry.js.map} +0 -0
  187. /package/dist/core/{p-76d26018.entry.js.map → p-7373beb0.entry.js.map} +0 -0
  188. /package/dist/core/{p-1832f4b5.entry.js.map → p-75a2cdac.entry.js.map} +0 -0
  189. /package/dist/core/{p-8ab12a15.entry.js.map → p-7c0f24b6.entry.js.map} +0 -0
  190. /package/dist/core/{p-98448bdb.entry.js.map → p-8f1aa87d.entry.js.map} +0 -0
  191. /package/dist/core/{p-e74f1d09.entry.js.map → p-95374ba1.entry.js.map} +0 -0
  192. /package/dist/core/{p-06ae5bec.entry.js.map → p-98c8d46a.entry.js.map} +0 -0
  193. /package/dist/core/{p-f55ad6ae.entry.js.map → p-9f9b3151.entry.js.map} +0 -0
  194. /package/dist/core/{p-4f1ffa39.entry.js.map → p-a16c6ff3.entry.js.map} +0 -0
  195. /package/dist/core/{p-5392bca0.entry.js.map → p-a22fd338.entry.js.map} +0 -0
  196. /package/dist/core/{p-85609bdd.entry.js.map → p-a6e9a8e7.entry.js.map} +0 -0
  197. /package/dist/core/{p-5759d771.entry.js.map → p-b1e646e4.entry.js.map} +0 -0
  198. /package/dist/core/{p-d3856ed3.entry.js.map → p-b3ce9fe4.entry.js.map} +0 -0
  199. /package/dist/core/{p-33679c06.entry.js.map → p-c680c7f9.entry.js.map} +0 -0
  200. /package/dist/core/{p-0939ce92.entry.js.map → p-ce898d90.entry.js.map} +0 -0
  201. /package/dist/core/{p-16f67397.entry.js.map → p-df5d7aa4.entry.js.map} +0 -0
  202. /package/dist/core/{p-9d01a7ad.entry.js.map → p-df63896a.entry.js.map} +0 -0
  203. /package/dist/core/{p-62e22508.entry.js.map → p-e21083c8.entry.js.map} +0 -0
  204. /package/dist/core/{p-47ac6838.entry.js.map → p-e2155d7f.entry.js.map} +0 -0
  205. /package/dist/core/{p-caf857de.entry.js.map → p-e33bdca9.entry.js.map} +0 -0
  206. /package/dist/core/{p-3745da83.entry.js.map → p-e9e7a7f9.entry.js.map} +0 -0
  207. /package/dist/core/{p-c7820c23.entry.js.map → p-ee09f1b3.entry.js.map} +0 -0
  208. /package/dist/core/{p-f91527a0.entry.js.map → p-eeacd610.entry.js.map} +0 -0
  209. /package/dist/core/{p-6c0e2ceb.entry.js.map → p-f24c9356.entry.js.map} +0 -0
  210. /package/dist/core/{p-d32692e2.entry.js.map → p-f62cd6d2.entry.js.map} +0 -0
  211. /package/dist/core/{p-ae422058.entry.js.map → p-fb58d1d1.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- import{r as s,h as a,H as t,g as i}from"./p-8455d1bb.js";import{I as c}from"./p-fd186591.js";import{h as r,r as e,g as o,b as h,c as n,d as l,a as p}from"./p-d35c7c18.js";const d="@media (prefers-reduced-motion: no-preference){:host(.show){animation:expand var(--ic-transition-duration-slow)}:host(.hide){animation:shrink var(--ic-transition-duration-slow)}}:host{display:flex;height:var(--ic-space-md);min-width:var(--ic-space-md);width:-moz-fit-content;width:fit-content;border-radius:calc(2 * var(--ic-space-xxl));position:absolute}:host(.neutral){background-color:var(--ic-architectural-500)}:host(.light){background-color:var(--ic-architectural-40)}:host(.info){background-color:var(--ic-status-info)}:host(.warning){background-color:var(--ic-status-warning-mid)}:host(.error){background-color:var(--ic-status-error)}:host(.success){background-color:var(--ic-status-success)}:host(.small){height:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.large){height:calc(var(--ic-space-md) + var(--ic-space-xxs));min-width:calc(var(--ic-space-md) + var(--ic-space-xxs))}:host(.dot.default){height:var(--ic-space-xs);width:var(--ic-space-xs);min-width:var(--ic-space-xs)}:host(.dot.small){height:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs));min-width:calc(var(--ic-space-xxs) + var(--ic-space-xxxs))}:host(.dot.large){height:var(--ic-space-sm);width:var(--ic-space-sm);min-width:var(--ic-space-sm)}:host(.foreground-dark) ::slotted(*){fill:var(--ic-color-primary-text)}:host(.foreground-light) ::slotted(*){fill:white}:host(.foreground-dark) ic-typography{color:var(--ic-color-primary-text)}:host(.foreground-light) ic-typography{color:white}:host(.text) ic-typography{align-self:center;padding:0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.text.small) ic-typography{padding:0 0.2132rem}:host(.text.large) ic-typography{padding:0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px)}:host(.icon) ::slotted(svg){width:var(--ic-space-sm);height:var(--ic-space-sm);padding:var(--ic-space-xxxs)}:host(.icon.small) ::slotted(svg){width:var(--ic-space-xs);height:var(--ic-space-xs)}:host(.icon.large) ::slotted(svg){width:calc(var(--ic-space-sm) + var(--ic-space-xxxs));height:calc(var(--ic-space-sm) + var(--ic-space-xxxs));padding:calc(var(--ic-space-xxxs) + var(--ic-space-1px))}:host(.far){top:calc(-1 * var(--ic-space-xs));right:calc(-1 * var(--ic-space-xs))}:host(.far.small),:host(.dot.far.large){top:calc(-1 * var(--ic-space-xxs));right:calc(-1 * var(--ic-space-xxs))}:host(.dot.far),:host(.dot.far.small){top:calc(-1 * var(--ic-space-xxxs));right:calc(-1 * var(--ic-space-xxxs))}:host(.near){top:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));right:calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)))}:host(.dot.near){top:calc(-1 * var(--ic-space-1px));right:calc(-1 * var(--ic-space-1px))}:host(.inline){position:static}:host(.hide){visibility:hidden !important;transition:visibility var(--ic-transition-duration-slow)}@keyframes expand{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes shrink{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";const g=class{constructor(a){s(this,a);this.setBadgeColour=()=>{let s=null;if(this.customColor!==null){const a=this.customColor.slice(0,1);if(a==="#"){s=r(this.customColor)}else if(a.toLowerCase()==="r"){s=e(this.customColor)}this.customColorRGBA=s;this.el.style.backgroundColor=`rgba(${s.r.toString()}, ${s.g.toString()}, ${s.b.toString()}, ${s.a.toString()})`}};this.getBadgeForeground=()=>{let s;let a;let t;switch(this.variant){case"custom":s=this.customColorRGBA.r;a=this.customColorRGBA.g;t=this.customColorRGBA.b;break;case"error":s=parseInt(o("--ic-status-error-r"));a=parseInt(o("--ic-status-error-g"));t=parseInt(o("--ic-status-error-b"));break;case"success":s=parseInt(o("--ic-status-success-r"));a=parseInt(o("--ic-status-success-g"));t=parseInt(o("--ic-status-success-b"));break;case"warning":s=parseInt(o("--ic-status-warning-r"));a=parseInt(o("--ic-status-warning-g"));t=parseInt(o("--ic-status-warning-b"));break;case"info":{const i=r(o("--ic-status-info"));s=i.r;a=i.g;t=i.b;break}case"neutral":{const i=r(o("--ic-architectural-500"));s=i.r;a=i.g;t=i.b;break}case"light":{const i=r(o("--ic-architectural-40"));s=i.r;a=i.g;t=i.b;break}}const i=(s*299+a*587+t*114)/1e3;this.foregroundColour=i>133.3505?c.Dark:c.Light};this.getTextLabel=()=>{let s;if(this.textLabel!==null){if(this.maxNumber!==null){s=Number(this.textLabel)>this.maxNumber?`${this.maxNumber}+`:this.textLabel}else{s=this.textLabel}}return s};this.setAccessibleLabel=()=>{if(h(this.el)!==null){if(n(this.el)==="IC-TAB"){h(this.el).setAttribute("aria-describedby","badge")}else{h(this.el).ariaLabel=`badge displaying ${this.accessibleLabel}`}}};this.isAccessibleLabelDefined=()=>l(this.accessibleLabel)&&this.accessibleLabel!==null;this.accessibleLabel=undefined;this.customColor=null;this.maxNumber=undefined;this.position="far";this.size="default";this.textLabel=undefined;this.type="text";this.variant="neutral";this.visible=true}componentWillLoad(){this.variant==="custom"&&this.setBadgeColour();this.getBadgeForeground();this.isAccessibleLabelDefined()&&this.setAccessibleLabel()}componentDidLoad(){this.type==="text"&&p([{prop:this.textLabel,propName:"text-label"}],"Badge")}async showBadge(){this.visible=true}async hideBadge(){this.visible=false}render(){const{position:s,size:i,type:c,variant:r,foregroundColour:e,visible:o}=this;return a(t,{class:{[`${s}`]:true,[`${i}`]:true,[`${r}`]:true,[`${c}`]:true,[`foreground-${e}`]:e!==null,["show"]:o,["hide"]:!o},id:this.el.id||null,"aria-label":this.isAccessibleLabelDefined()?`badge displaying ${this.accessibleLabel}`:"badge being displayed",role:"status"},c==="icon"&&a("slot",{name:"badge-icon"}),c==="text"&&a("ic-typography",{variant:i==="small"?"badge-small":"badge"},this.getTextLabel()))}static get delegatesFocus(){return true}get el(){return i(this)}};g.style=d;export{g as ic_badge};
2
- //# sourceMappingURL=p-e84b0310.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["icBadgeCss","Badge","constructor","hostRef","this","setBadgeColour","colorRGBA","customColor","firstChar","slice","hexToRgba","toLowerCase","rgbaStrToObj","customColorRGBA","el","style","backgroundColor","r","toString","g","b","a","getBadgeForeground","red","green","blue","variant","parseInt","getCssProperty","info","neutral","light","brightness","foregroundColour","IcThemeForegroundEnum","Dark","Light","getTextLabel","label","textLabel","maxNumber","Number","setAccessibleLabel","getParentElement","getParentElementType","setAttribute","ariaLabel","accessibleLabel","isAccessibleLabelDefined","isPropDefined","undefined","position","size","type","visible","componentWillLoad","componentDidLoad","onComponentRequiredPropUndefined","prop","propName","showBadge","hideBadge","render","h","Host","class","id","role","name","delegatesFocus"],"sources":["../web-components/dist/collection/components/ic-badge/ic-badge.css?tag=ic-badge&encapsulation=shadow","../web-components/dist/collection/components/ic-badge/ic-badge.js"],"sourcesContent":["@media (prefers-reduced-motion: no-preference) {\n :host(.show) {\n animation: expand var(--ic-transition-duration-slow);\n }\n\n :host(.hide) {\n animation: shrink var(--ic-transition-duration-slow);\n }\n}\n\n:host {\n display: flex;\n height: var(--ic-space-md);\n min-width: var(--ic-space-md);\n width: -moz-fit-content;\n width: fit-content;\n border-radius: calc(2 * var(--ic-space-xxl));\n position: absolute;\n}\n\n:host(.neutral) {\n background-color: var(--ic-architectural-500);\n}\n\n:host(.light) {\n background-color: var(--ic-architectural-40);\n}\n\n:host(.info) {\n background-color: var(--ic-status-info);\n}\n\n:host(.warning) {\n background-color: var(--ic-status-warning-mid);\n}\n\n:host(.error) {\n background-color: var(--ic-status-error);\n}\n\n:host(.success) {\n background-color: var(--ic-status-success);\n}\n\n:host(.small) {\n height: var(--ic-space-sm);\n min-width: var(--ic-space-sm);\n}\n\n:host(.large) {\n height: calc(var(--ic-space-md) + var(--ic-space-xxs));\n min-width: calc(var(--ic-space-md) + var(--ic-space-xxs));\n}\n\n:host(.dot.default) {\n height: var(--ic-space-xs);\n width: var(--ic-space-xs);\n min-width: var(--ic-space-xs);\n}\n\n:host(.dot.small) {\n height: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n width: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n min-width: calc(var(--ic-space-xxs) + var(--ic-space-xxxs));\n}\n\n:host(.dot.large) {\n height: var(--ic-space-sm);\n width: var(--ic-space-sm);\n min-width: var(--ic-space-sm);\n}\n\n:host(.foreground-dark) ::slotted(*) {\n fill: var(--ic-color-primary-text);\n}\n\n:host(.foreground-light) ::slotted(*) {\n fill: white;\n}\n\n:host(.foreground-dark) ic-typography {\n color: var(--ic-color-primary-text);\n}\n\n:host(.foreground-light) ic-typography {\n color: white;\n}\n\n:host(.text) ic-typography {\n align-self: center;\n padding: 0 calc((var(--ic-space-xs) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px);\n}\n\n:host(.text.small) ic-typography {\n padding: 0 0.2132rem;\n}\n\n:host(.text.large) ic-typography {\n padding: 0 calc((var(--ic-space-sm) + var(--ic-space-1px)) / 2)\n var(--ic-space-1px);\n}\n\n:host(.icon) ::slotted(svg) {\n width: var(--ic-space-sm);\n height: var(--ic-space-sm);\n padding: var(--ic-space-xxxs);\n}\n\n:host(.icon.small) ::slotted(svg) {\n width: var(--ic-space-xs);\n height: var(--ic-space-xs);\n}\n\n:host(.icon.large) ::slotted(svg) {\n width: calc(var(--ic-space-sm) + var(--ic-space-xxxs));\n height: calc(var(--ic-space-sm) + var(--ic-space-xxxs));\n padding: calc(var(--ic-space-xxxs) + var(--ic-space-1px));\n}\n\n:host(.far) {\n top: calc(-1 * var(--ic-space-xs));\n right: calc(-1 * var(--ic-space-xs));\n}\n\n:host(.far.small),\n:host(.dot.far.large) {\n top: calc(-1 * var(--ic-space-xxs));\n right: calc(-1 * var(--ic-space-xxs));\n}\n\n:host(.dot.far),\n:host(.dot.far.small) {\n top: calc(-1 * var(--ic-space-xxxs));\n right: calc(-1 * var(--ic-space-xxxs));\n}\n\n:host(.near) {\n top: calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));\n right: calc(-1 * calc(var(--ic-space-xxs) + var(--ic-space-1px)));\n}\n\n:host(.dot.near) {\n top: calc(-1 * var(--ic-space-1px));\n right: calc(-1 * var(--ic-space-1px));\n}\n\n:host(.inline) {\n position: static;\n}\n\n:host(.hide) {\n visibility: hidden !important;\n transition: visibility var(--ic-transition-duration-slow);\n}\n\n@keyframes expand {\n from {\n opacity: 0;\n transform: scale(0);\n }\n\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes shrink {\n from {\n opacity: 1;\n transform: scale(1);\n }\n\n to {\n opacity: 0;\n transform: scale(0);\n }\n}\n","import { Host, h } from \"@stencil/core\";\nimport { IcThemeForegroundEnum, } from \"../../utils/types\";\nimport { getCssProperty, getParentElement, getParentElementType, hexToRgba, isPropDefined, onComponentRequiredPropUndefined, rgbaStrToObj, } from \"../../utils/helpers\";\n/**\n * @slot badge-icon - Icon will be rendered inside the badge if type is set to icon.\n */\nexport class Badge {\n constructor() {\n this.setBadgeColour = () => {\n let colorRGBA = null;\n if (this.customColor !== null) {\n const firstChar = this.customColor.slice(0, 1);\n if (firstChar === \"#\") {\n colorRGBA = hexToRgba(this.customColor);\n }\n else if (firstChar.toLowerCase() === \"r\") {\n colorRGBA = rgbaStrToObj(this.customColor);\n }\n this.customColorRGBA = colorRGBA;\n this.el.style.backgroundColor = `rgba(${colorRGBA.r.toString()}, ${colorRGBA.g.toString()}, ${colorRGBA.b.toString()}, ${colorRGBA.a.toString()})`;\n }\n };\n this.getBadgeForeground = () => {\n let red;\n let green;\n let blue;\n switch (this.variant) {\n case \"custom\":\n red = this.customColorRGBA.r;\n green = this.customColorRGBA.g;\n blue = this.customColorRGBA.b;\n break;\n case \"error\":\n red = parseInt(getCssProperty(\"--ic-status-error-r\"));\n green = parseInt(getCssProperty(\"--ic-status-error-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-error-b\"));\n break;\n case \"success\":\n red = parseInt(getCssProperty(\"--ic-status-success-r\"));\n green = parseInt(getCssProperty(\"--ic-status-success-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-success-b\"));\n break;\n case \"warning\":\n red = parseInt(getCssProperty(\"--ic-status-warning-r\"));\n green = parseInt(getCssProperty(\"--ic-status-warning-g\"));\n blue = parseInt(getCssProperty(\"--ic-status-warning-b\"));\n break;\n case \"info\": {\n const info = hexToRgba(getCssProperty(\"--ic-status-info\"));\n red = info.r;\n green = info.g;\n blue = info.b;\n break;\n }\n case \"neutral\": {\n const neutral = hexToRgba(getCssProperty(\"--ic-architectural-500\"));\n red = neutral.r;\n green = neutral.g;\n blue = neutral.b;\n break;\n }\n case \"light\": {\n const light = hexToRgba(getCssProperty(\"--ic-architectural-40\"));\n red = light.r;\n green = light.g;\n blue = light.b;\n break;\n }\n }\n const brightness = (red * 299 + green * 587 + blue * 114) / 1000;\n this.foregroundColour =\n brightness > 133.3505\n ? IcThemeForegroundEnum.Dark\n : IcThemeForegroundEnum.Light;\n };\n this.getTextLabel = () => {\n let label;\n if (this.textLabel !== null) {\n if (this.maxNumber !== null) {\n label =\n Number(this.textLabel) > this.maxNumber\n ? `${this.maxNumber}+`\n : this.textLabel;\n }\n else {\n label = this.textLabel;\n }\n }\n return label;\n };\n this.setAccessibleLabel = () => {\n if (getParentElement(this.el) !== null) {\n if (getParentElementType(this.el) === \"IC-TAB\") {\n getParentElement(this.el).setAttribute(\"aria-describedby\", \"badge\");\n }\n else {\n getParentElement(this.el).ariaLabel = `badge displaying ${this.accessibleLabel}`;\n }\n }\n };\n this.isAccessibleLabelDefined = () => {\n return isPropDefined(this.accessibleLabel) && this.accessibleLabel !== null;\n };\n this.accessibleLabel = undefined;\n this.customColor = null;\n this.maxNumber = undefined;\n this.position = \"far\";\n this.size = \"default\";\n this.textLabel = undefined;\n this.type = \"text\";\n this.variant = \"neutral\";\n this.visible = true;\n }\n componentWillLoad() {\n this.variant === \"custom\" && this.setBadgeColour();\n this.getBadgeForeground();\n this.isAccessibleLabelDefined() && this.setAccessibleLabel();\n }\n componentDidLoad() {\n this.type === \"text\" &&\n onComponentRequiredPropUndefined([{ prop: this.textLabel, propName: \"text-label\" }], \"Badge\");\n }\n /**\n * @deprecated This method should not be used anymore. Use visible prop to set badge visibility.\n */\n async showBadge() {\n this.visible = true;\n }\n /**\n * @deprecated This method should not be used anymore. Use visible prop to set badge visibility.\n */\n async hideBadge() {\n this.visible = false;\n }\n render() {\n const { position, size, type, variant, foregroundColour, visible } = this;\n return (h(Host, { class: {\n [`${position}`]: true,\n [`${size}`]: true,\n [`${variant}`]: true,\n [`${type}`]: true,\n [`foreground-${foregroundColour}`]: foregroundColour !== null,\n [\"show\"]: visible,\n [\"hide\"]: !visible,\n }, id: this.el.id || null, \"aria-label\": this.isAccessibleLabelDefined()\n ? `badge displaying ${this.accessibleLabel}`\n : \"badge being displayed\", role: \"status\" }, type === \"icon\" && h(\"slot\", { name: \"badge-icon\" }), type === \"text\" && (h(\"ic-typography\", { variant: size === \"small\" ? \"badge-small\" : \"badge\" }, this.getTextLabel()))));\n }\n static get is() { return \"ic-badge\"; }\n static get encapsulation() { return \"shadow\"; }\n static get delegatesFocus() { return true; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"ic-badge.css\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"ic-badge.css\"]\n };\n }\n static get properties() {\n return {\n \"accessibleLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The accessible label of the badge component to provide context for screen reader users.\"\n },\n \"attribute\": \"accessible-label\",\n \"reflect\": false\n },\n \"customColor\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcColor\",\n \"resolved\": \"`#${string}` | `rgb(${string})` | `rgba(${string})`\",\n \"references\": {\n \"IcColor\": {\n \"location\": \"import\",\n \"path\": \"./ic-badge.types\",\n \"id\": \"src/components/ic-badge/ic-badge.types.ts::IcColor\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The custom badge colour. This will only style the badge component if variant=\\\"custom\\\".\\nCan be a hex value e.g. \\\"#ff0000\\\", RGB e.g. \\\"rgb(255, 0, 0)\\\", or RGBA e.g. \\\"rgba(255, 0, 0, 1)\\\".\"\n },\n \"attribute\": \"custom-color\",\n \"reflect\": false,\n \"defaultValue\": \"null\"\n },\n \"maxNumber\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The maximum number shown on the badge appended with a +.\\nThis will only be displayed if type=\\\"text\\\" and textLabel is not empty.\"\n },\n \"attribute\": \"max-number\",\n \"reflect\": false\n },\n \"position\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcBadgePositions\",\n \"resolved\": \"\\\"far\\\" | \\\"inline\\\" | \\\"near\\\"\",\n \"references\": {\n \"IcBadgePositions\": {\n \"location\": \"import\",\n \"path\": \"./ic-badge.types\",\n \"id\": \"src/components/ic-badge/ic-badge.types.ts::IcBadgePositions\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The positioning of the badge in reference to the parent element.\"\n },\n \"attribute\": \"position\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"far\\\"\"\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcSizes\",\n \"resolved\": \"\\\"default\\\" | \\\"large\\\" | \\\"small\\\"\",\n \"references\": {\n \"IcSizes\": {\n \"location\": \"import\",\n \"path\": \"../../utils/types\",\n \"id\": \"src/utils/types.ts::IcSizes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the badge to be displayed.\"\n },\n \"attribute\": \"size\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"default\\\"\"\n },\n \"textLabel\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The text displayed in the badge. This will only be displayed if type=\\\"text\\\".\"\n },\n \"attribute\": \"text-label\",\n \"reflect\": false\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcBadgeTypes\",\n \"resolved\": \"\\\"dot\\\" | \\\"icon\\\" | \\\"text\\\"\",\n \"references\": {\n \"IcBadgeTypes\": {\n \"location\": \"import\",\n \"path\": \"./ic-badge.types\",\n \"id\": \"src/components/ic-badge/ic-badge.types.ts::IcBadgeTypes\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The type of badge to be displayed.\"\n },\n \"attribute\": \"type\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"text\\\"\"\n },\n \"variant\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"IcBadgeVariants\",\n \"resolved\": \"\\\"custom\\\" | \\\"error\\\" | \\\"info\\\" | \\\"light\\\" | \\\"neutral\\\" | \\\"success\\\" | \\\"warning\\\"\",\n \"references\": {\n \"IcBadgeVariants\": {\n \"location\": \"import\",\n \"path\": \"./ic-badge.types\",\n \"id\": \"src/components/ic-badge/ic-badge.types.ts::IcBadgeVariants\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The variant of the badge to be displayed.\"\n },\n \"attribute\": \"variant\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"neutral\\\"\"\n },\n \"visible\": {\n \"type\": \"boolean\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"If `true`, the badge will be displayed.\"\n },\n \"attribute\": \"visible\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n }\n };\n }\n static get methods() {\n return {\n \"showBadge\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"This method should not be used anymore. Use visible prop to set badge visibility.\"\n }]\n }\n },\n \"hideBadge\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\",\n \"id\": \"global::Promise\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"\",\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"This method should not be used anymore. Use visible prop to set badge visibility.\"\n }]\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n//# sourceMappingURL=ic-badge.js.map\n"],"mappings":"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"}