@baloise/ds-core 19.9.4-nightly.20260513 → 19.9.5

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 (214) hide show
  1. package/components/all.d.ts +0 -2
  2. package/components/all.js +0 -3
  3. package/components/animation.decorator.js +1 -1
  4. package/components/bal-accordion.js +1 -1
  5. package/components/bal-app.js +102 -1
  6. package/components/bal-button2.js +1 -1
  7. package/components/bal-carousel-item.js +1 -1
  8. package/components/bal-checkbox-group.js +21 -3
  9. package/components/bal-checkbox2.js +21 -4
  10. package/components/bal-date-calendar2.js +1 -1
  11. package/components/bal-date.js +1 -1
  12. package/components/bal-dropdown.js +1 -1
  13. package/components/bal-field.js +1 -1
  14. package/components/bal-footer.js +1 -1
  15. package/components/bal-form.js +1 -1
  16. package/components/bal-input-stepper.js +1 -1
  17. package/components/bal-list-item-accordion-body2.js +1 -1
  18. package/components/bal-list-item2.js +1 -1
  19. package/components/bal-logo2.js +1 -1
  20. package/components/bal-modal.js +1 -1
  21. package/components/bal-nav.js +65 -53
  22. package/components/bal-navbar-brand.js +1 -1
  23. package/components/bal-option-list2.js +1 -1
  24. package/components/bal-popup2.js +1 -1
  25. package/components/bal-radio-group.js +1 -1
  26. package/components/bal-segment-item.js +1 -1
  27. package/components/bal-select2.js +23 -11
  28. package/components/bal-spinner2.js +1 -1
  29. package/components/bal-stage-image.js +1 -1
  30. package/components/bal-switch.js +1 -74
  31. package/{dist/esm/bal-switch.entry.js → components/bal-switch2.js} +36 -8
  32. package/components/bal-tabs2.js +29 -17
  33. package/components/breakpoints.subject.js +1 -1
  34. package/components/element-states.decorator.js +1 -1
  35. package/components/floating-ui.js +1 -1
  36. package/components/focus.decorator.js +1 -1
  37. package/components/form-input.js +1 -1
  38. package/components/helpers.js +1 -1
  39. package/components/index.js +449 -5
  40. package/components/mutation.decorator.js +1 -1
  41. package/components/overlays.js +1 -1
  42. package/components/resize.decorator.js +1 -1
  43. package/components/swipe.subject.js +1 -1
  44. package/components/swiper.util.js +1 -1
  45. package/components/tokens.esm.js +1 -1
  46. package/components/visibility.decorator.js +1 -1
  47. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  48. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  49. package/dist/baloise-design-system/index.esm.js +1 -1
  50. package/dist/baloise-design-system/{p-09d63730a7.entry.js → p-1bb5b8696e.entry.js} +1 -1
  51. package/dist/baloise-design-system/p-1d7406989c.system.entry.js +1 -0
  52. package/dist/baloise-design-system/{p-0b1aeaaed8.entry.js → p-3850595dd0.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-81c4b117a6.system.entry.js → p-43dd693355.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-8f510eed45.entry.js → p-477359bbf9.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-873a0bf9d9.system.entry.js → p-59129fb1d1.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-CIBedZ4h.js → p-5GEK9UQy.js} +1 -1
  57. package/dist/baloise-design-system/{p-8bc92b4b2e.system.entry.js → p-607125007c.system.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-38888ff243.system.entry.js → p-64d45da025.system.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-89a45b7719.system.entry.js → p-68baccfba9.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-8da007a406.entry.js → p-68f77714ab.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-9459a04689.system.entry.js → p-6c3d087d59.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-627def5e99.entry.js → p-74fe27789f.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-41e1ac82bb.entry.js → p-8268d61dd6.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-b273a2f73a.entry.js → p-8e3412d465.entry.js} +1 -1
  65. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
  66. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
  67. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +1 -0
  68. package/dist/baloise-design-system/p-CKN3W8qn.js +1 -0
  69. package/dist/baloise-design-system/{p-x0vPGP6t.system.js → p-CPHPFMUC.system.js} +1 -1
  70. package/dist/baloise-design-system/{p-3VlTyI5Z.system.js → p-CsPrCX4f.system.js} +1 -1
  71. package/dist/baloise-design-system/{p-CWajPM1f.system.js → p-DLLNm5Gs.system.js} +1 -1
  72. package/dist/baloise-design-system/{p-BQ-ZBPGz.js → p-DvLv1IDC.js} +1 -1
  73. package/dist/baloise-design-system/{p-DOmwcY8I.system.js → p-DxnFuP0T.system.js} +1 -1
  74. package/dist/baloise-design-system/{p-BeOuHPcP.js → p-Oz8SBVmc.js} +1 -1
  75. package/dist/baloise-design-system/p-aDM_iThE.system.js +1 -0
  76. package/dist/baloise-design-system/{p-bd8e1fd900.entry.js → p-af05694fd5.entry.js} +1 -1
  77. package/dist/baloise-design-system/{p-2bd8d02b81.entry.js → p-b670d9cae9.entry.js} +1 -1
  78. package/dist/baloise-design-system/{p-46986c305d.system.entry.js → p-b6e82651ef.system.entry.js} +1 -1
  79. package/dist/baloise-design-system/{p-4df7edd98f.entry.js → p-bac3d30df3.entry.js} +1 -1
  80. package/dist/baloise-design-system/{p-1922f177ca.system.entry.js → p-bbeeefc31a.system.entry.js} +1 -1
  81. package/dist/baloise-design-system/{p-b75d71bb54.entry.js → p-c31dc8146b.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-439f4eac54.system.entry.js → p-c4a244b558.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-4f5b4d3b9e.entry.js → p-c5ae87f18e.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-15a9d2bdb4.entry.js → p-c8b853074f.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-8058e17e38.system.entry.js → p-d21134a60b.system.entry.js} +1 -1
  86. package/dist/baloise-design-system/{p-c6f0c6f765.system.entry.js → p-d5bd821ab7.system.entry.js} +1 -1
  87. package/dist/baloise-design-system/p-d9349f5eb0.entry.js +1 -0
  88. package/dist/baloise-design-system/{p-7d611a8e60.entry.js → p-e6f03ecdd0.entry.js} +1 -1
  89. package/dist/baloise-design-system/{p-c72c874ad0.system.entry.js → p-eb2f5b22de.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-4b6f33ea10.system.entry.js → p-f2435a528c.system.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-2cab716afd.system.entry.js → p-fa728470a3.system.entry.js} +1 -1
  92. package/dist/cjs/{global-BOGOCc0T.js → app-globals-D4xKyILL.js} +4 -2
  93. package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
  94. package/dist/cjs/{bal-dropdown_3.cjs.entry.js → bal-check_7.cjs.entry.js} +815 -9
  95. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  96. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  97. package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
  98. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  99. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  100. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  101. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  102. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  103. package/dist/cjs/{bal-radio_2.cjs.entry.js → bal-radio_3.cjs.entry.js} +50 -0
  104. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  105. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  106. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  107. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  108. package/dist/cjs/baloise-design-system.cjs.js +2 -3
  109. package/dist/cjs/{breakpoints.decorator-CDD6cOv6.js → breakpoints.decorator-DPrGtqtk.js} +1 -1
  110. package/dist/cjs/{breakpoints.subject-DpuyBCjh.js → breakpoints.subject-C1p-ePFH.js} +1 -1
  111. package/dist/cjs/index.cjs.js +2 -2
  112. package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
  113. package/dist/cjs/loader.cjs.js +2 -3
  114. package/dist/cjs/{tokens.esm-LV2Uuiay.js → tokens.esm-BWWYqtq4.js} +1 -1
  115. package/dist/cjs/{window-resize.decorator-C-w0-60C.js → window-resize.decorator-DRN0wiUR.js} +1 -1
  116. package/dist/collection/collection-manifest.json +15 -17
  117. package/dist/collection/components/bal-checkbox/bal-checkbox.js +2 -3
  118. package/dist/collection/utils/constants/version.constant.js +1 -1
  119. package/dist/esm/{global-Llrc69_N.js → app-globals-Blx--ecs.js} +4 -2
  120. package/dist/esm/bal-carousel_2.entry.js +3 -3
  121. package/dist/esm/{bal-dropdown_3.entry.js → bal-check_7.entry.js} +815 -13
  122. package/dist/esm/bal-field_5.entry.js +3 -3
  123. package/dist/esm/bal-hint_5.entry.js +3 -3
  124. package/dist/esm/bal-list_8.entry.js +3 -3
  125. package/dist/esm/bal-logo.entry.js +3 -3
  126. package/dist/esm/bal-nav_8.entry.js +3 -3
  127. package/dist/esm/bal-navbar_5.entry.js +3 -3
  128. package/dist/esm/bal-pagination.entry.js +3 -3
  129. package/dist/esm/bal-progress-bar.entry.js +4 -4
  130. package/dist/esm/{bal-radio_2.entry.js → bal-radio_3.entry.js} +50 -1
  131. package/dist/esm/bal-segment_2.entry.js +4 -4
  132. package/dist/esm/bal-shape.entry.js +1 -1
  133. package/dist/esm/bal-steps.entry.js +3 -3
  134. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  135. package/dist/esm/baloise-design-system.js +2 -3
  136. package/dist/esm/{breakpoints.decorator-DcfCKRvu.js → breakpoints.decorator-DwhK_t2m.js} +1 -1
  137. package/dist/esm/{breakpoints.subject-9qUvMXOC.js → breakpoints.subject-PxavGndB.js} +1 -1
  138. package/dist/esm/index.js +3 -3
  139. package/dist/esm/initialize-W3od-FM9.js +1 -1
  140. package/dist/esm/loader.js +2 -3
  141. package/dist/esm/{tokens.esm-CvA86VZU.js → tokens.esm-Dk6PruGq.js} +1 -1
  142. package/dist/esm/{window-resize.decorator-DNh3w5KW.js → window-resize.decorator-DiNYHJee.js} +1 -1
  143. package/dist/esm-es5/app-globals-Blx--ecs.js +1 -0
  144. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  145. package/dist/esm-es5/bal-check_7.entry.js +1 -0
  146. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  147. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  148. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  149. package/dist/esm-es5/bal-logo.entry.js +1 -1
  150. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  151. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  152. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  153. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  154. package/dist/esm-es5/{bal-radio_2.entry.js → bal-radio_3.entry.js} +1 -1
  155. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  156. package/dist/esm-es5/bal-shape.entry.js +1 -1
  157. package/dist/esm-es5/bal-steps.entry.js +1 -1
  158. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  159. package/dist/esm-es5/baloise-design-system.js +1 -1
  160. package/dist/esm-es5/{breakpoints.decorator-DcfCKRvu.js → breakpoints.decorator-DwhK_t2m.js} +1 -1
  161. package/dist/esm-es5/{breakpoints.subject-9qUvMXOC.js → breakpoints.subject-PxavGndB.js} +1 -1
  162. package/dist/esm-es5/index.js +1 -1
  163. package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
  164. package/dist/esm-es5/loader.js +1 -1
  165. package/dist/esm-es5/{window-resize.decorator-DNh3w5KW.js → window-resize.decorator-DiNYHJee.js} +1 -1
  166. package/dist/types/components.d.ts +0 -75
  167. package/package.json +6 -6
  168. package/components/bal-app2.js +0 -104
  169. package/components/bal-doc-app.d.ts +0 -11
  170. package/components/bal-doc-app.js +0 -264
  171. package/components/initialize.js +0 -450
  172. package/dist/baloise-design-system/p-00d493e589.system.entry.js +0 -1
  173. package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +0 -1
  174. package/dist/baloise-design-system/p-24185181f1.system.entry.js +0 -1
  175. package/dist/baloise-design-system/p-2dbbdfb785.system.entry.js +0 -1
  176. package/dist/baloise-design-system/p-5965694a0f.entry.js +0 -1
  177. package/dist/baloise-design-system/p-75f3abf19e.system.entry.js +0 -1
  178. package/dist/baloise-design-system/p-90d225c57c.system.entry.js +0 -1
  179. package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +0 -1
  180. package/dist/baloise-design-system/p-BvSkuJ_n.js +0 -1
  181. package/dist/baloise-design-system/p-BzIZLOtt.system.js +0 -1
  182. package/dist/baloise-design-system/p-C_qvcMEM.system.js +0 -1
  183. package/dist/baloise-design-system/p-DrynNwPm.system.js +0 -1
  184. package/dist/baloise-design-system/p-Ectc3YAG.js +0 -1
  185. package/dist/baloise-design-system/p-a97c5309f7.entry.js +0 -1
  186. package/dist/baloise-design-system/p-f217ad88a9.entry.js +0 -1
  187. package/dist/baloise-design-system/p-f7b16f08ab.entry.js +0 -1
  188. package/dist/baloise-design-system/p-fc9a46b295.entry.js +0 -1
  189. package/dist/cjs/app-globals-DcKvQZAC.js +0 -7
  190. package/dist/cjs/bal-check.cjs.entry.js +0 -55
  191. package/dist/cjs/bal-checkbox_2.cjs.entry.js +0 -734
  192. package/dist/cjs/bal-doc-app.cjs.entry.js +0 -231
  193. package/dist/cjs/bal-radio-icon.cjs.entry.js +0 -55
  194. package/dist/cjs/bal-switch.cjs.entry.js +0 -50
  195. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
  196. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -248
  197. package/dist/esm/app-globals-CIj5uAPM.js +0 -5
  198. package/dist/esm/bal-check.entry.js +0 -53
  199. package/dist/esm/bal-checkbox_2.entry.js +0 -731
  200. package/dist/esm/bal-doc-app.entry.js +0 -229
  201. package/dist/esm/bal-radio-icon.entry.js +0 -53
  202. package/dist/esm-es5/app-globals-CIj5uAPM.js +0 -1
  203. package/dist/esm-es5/bal-check.entry.js +0 -1
  204. package/dist/esm-es5/bal-checkbox_2.entry.js +0 -1
  205. package/dist/esm-es5/bal-doc-app.entry.js +0 -1
  206. package/dist/esm-es5/bal-dropdown_3.entry.js +0 -1
  207. package/dist/esm-es5/bal-radio-icon.entry.js +0 -1
  208. package/dist/esm-es5/bal-switch.entry.js +0 -1
  209. package/dist/esm-es5/global-Llrc69_N.js +0 -1
  210. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
  211. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
  212. /package/dist/baloise-design-system/{p-CvA86VZU.js → p-Dk6PruGq.js} +0 -0
  213. /package/dist/baloise-design-system/{p-BpG6m494.system.js → p-Nqmo3uHl.system.js} +0 -0
  214. /package/dist/esm-es5/{tokens.esm-CvA86VZU.js → tokens.esm-Dk6PruGq.js} +0 -0
@@ -3,37 +3,39 @@ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
3
  import { B as BEM } from './bem.js';
4
4
  import { b as balBrowser } from './browser.js';
5
5
  import { s as stopEventBubbling } from './form-input.js';
6
- import { n as rIC, i as isDescendant, f as waitForComponent, b as waitAfterIdleCallback } from './helpers.js';
6
+ import { m as rIC, i as isDescendant, w as waitForComponent, e as waitAfterIdleCallback } from './helpers.js';
7
7
  import { L as Logger } from './log.js';
8
8
  import { B as BalScrollHandler } from './scroll.js';
9
9
  import { s as sanitizeSvg } from './svg.js';
10
10
  import { e as isTabKey } from './keyboard.helpers.js';
11
- import { d as defineCustomElement$t } from './bal-badge2.js';
12
- import { d as defineCustomElement$s } from './bal-button2.js';
13
- import { d as defineCustomElement$r } from './bal-checkbox2.js';
14
- import { d as defineCustomElement$q } from './bal-close2.js';
15
- import { d as defineCustomElement$p } from './bal-heading2.js';
16
- import { d as defineCustomElement$o } from './bal-icon2.js';
17
- import { d as defineCustomElement$n } from './bal-list2.js';
18
- import { d as defineCustomElement$m } from './bal-list-item2.js';
19
- import { d as defineCustomElement$l } from './bal-list-item-accordion-body2.js';
20
- import { d as defineCustomElement$k } from './bal-list-item-accordion-head2.js';
21
- import { d as defineCustomElement$j } from './bal-list-item-content2.js';
22
- import { d as defineCustomElement$i } from './bal-list-item-icon2.js';
23
- import { d as defineCustomElement$h } from './bal-list-item-title2.js';
24
- import { d as defineCustomElement$g } from './bal-logo2.js';
25
- import { d as defineCustomElement$f } from './bal-nav-link2.js';
26
- import { d as defineCustomElement$e } from './bal-nav-link-grid2.js';
27
- import { d as defineCustomElement$d } from './bal-nav-link-grid-col2.js';
28
- import { d as defineCustomElement$c } from './bal-nav-menu-bar2.js';
29
- import { d as defineCustomElement$b } from './bal-nav-menu-flyout2.js';
30
- import { d as defineCustomElement$a } from './bal-nav-meta-bar2.js';
31
- import { d as defineCustomElement$9 } from './bal-popover2.js';
32
- import { d as defineCustomElement$8 } from './bal-popover-content2.js';
33
- import { d as defineCustomElement$7 } from './bal-select2.js';
34
- import { d as defineCustomElement$6 } from './bal-select-option2.js';
35
- import { d as defineCustomElement$5 } from './bal-spinner2.js';
36
- import { d as defineCustomElement$4 } from './bal-stack2.js';
11
+ import { d as defineCustomElement$v } from './bal-badge2.js';
12
+ import { d as defineCustomElement$u } from './bal-button2.js';
13
+ import { d as defineCustomElement$t } from './bal-check2.js';
14
+ import { d as defineCustomElement$s } from './bal-checkbox2.js';
15
+ import { d as defineCustomElement$r } from './bal-close2.js';
16
+ import { d as defineCustomElement$q } from './bal-heading2.js';
17
+ import { d as defineCustomElement$p } from './bal-icon2.js';
18
+ import { d as defineCustomElement$o } from './bal-list2.js';
19
+ import { d as defineCustomElement$n } from './bal-list-item2.js';
20
+ import { d as defineCustomElement$m } from './bal-list-item-accordion-body2.js';
21
+ import { d as defineCustomElement$l } from './bal-list-item-accordion-head2.js';
22
+ import { d as defineCustomElement$k } from './bal-list-item-content2.js';
23
+ import { d as defineCustomElement$j } from './bal-list-item-icon2.js';
24
+ import { d as defineCustomElement$i } from './bal-list-item-title2.js';
25
+ import { d as defineCustomElement$h } from './bal-logo2.js';
26
+ import { d as defineCustomElement$g } from './bal-nav-link2.js';
27
+ import { d as defineCustomElement$f } from './bal-nav-link-grid2.js';
28
+ import { d as defineCustomElement$e } from './bal-nav-link-grid-col2.js';
29
+ import { d as defineCustomElement$d } from './bal-nav-menu-bar2.js';
30
+ import { d as defineCustomElement$c } from './bal-nav-menu-flyout2.js';
31
+ import { d as defineCustomElement$b } from './bal-nav-meta-bar2.js';
32
+ import { d as defineCustomElement$a } from './bal-popover2.js';
33
+ import { d as defineCustomElement$9 } from './bal-popover-content2.js';
34
+ import { d as defineCustomElement$8 } from './bal-select2.js';
35
+ import { d as defineCustomElement$7 } from './bal-select-option2.js';
36
+ import { d as defineCustomElement$6 } from './bal-spinner2.js';
37
+ import { d as defineCustomElement$5 } from './bal-stack2.js';
38
+ import { d as defineCustomElement$4 } from './bal-switch2.js';
37
39
  import { d as defineCustomElement$3 } from './bal-tabs2.js';
38
40
  import { d as defineCustomElement$2 } from './bal-tag2.js';
39
41
  import { b as balBreakpoints } from './breakpoints.subject.js';
@@ -885,7 +887,7 @@ function defineCustomElement$1() {
885
887
  if (typeof customElements === "undefined") {
886
888
  return;
887
889
  }
888
- const components = ["bal-nav", "bal-badge", "bal-button", "bal-checkbox", "bal-close", "bal-heading", "bal-icon", "bal-list", "bal-list-item", "bal-list-item-accordion-body", "bal-list-item-accordion-head", "bal-list-item-content", "bal-list-item-icon", "bal-list-item-title", "bal-logo", "bal-nav-link", "bal-nav-link-grid", "bal-nav-link-grid-col", "bal-nav-menu-bar", "bal-nav-menu-flyout", "bal-nav-meta-bar", "bal-popover", "bal-popover-content", "bal-select", "bal-select-option", "bal-spinner", "bal-stack", "bal-tabs", "bal-tag"];
890
+ const components = ["bal-nav", "bal-badge", "bal-button", "bal-check", "bal-checkbox", "bal-close", "bal-heading", "bal-icon", "bal-list", "bal-list-item", "bal-list-item-accordion-body", "bal-list-item-accordion-head", "bal-list-item-content", "bal-list-item-icon", "bal-list-item-title", "bal-logo", "bal-nav-link", "bal-nav-link-grid", "bal-nav-link-grid-col", "bal-nav-menu-bar", "bal-nav-menu-flyout", "bal-nav-meta-bar", "bal-popover", "bal-popover-content", "bal-select", "bal-select-option", "bal-spinner", "bal-stack", "bal-switch", "bal-tabs", "bal-tag"];
889
891
  components.forEach(tagName => { switch (tagName) {
890
892
  case "bal-nav":
891
893
  if (!customElements.get(tagName)) {
@@ -894,130 +896,140 @@ function defineCustomElement$1() {
894
896
  break;
895
897
  case "bal-badge":
896
898
  if (!customElements.get(tagName)) {
897
- defineCustomElement$t();
899
+ defineCustomElement$v();
898
900
  }
899
901
  break;
900
902
  case "bal-button":
901
903
  if (!customElements.get(tagName)) {
902
- defineCustomElement$s();
904
+ defineCustomElement$u();
905
+ }
906
+ break;
907
+ case "bal-check":
908
+ if (!customElements.get(tagName)) {
909
+ defineCustomElement$t();
903
910
  }
904
911
  break;
905
912
  case "bal-checkbox":
906
913
  if (!customElements.get(tagName)) {
907
- defineCustomElement$r();
914
+ defineCustomElement$s();
908
915
  }
909
916
  break;
910
917
  case "bal-close":
911
918
  if (!customElements.get(tagName)) {
912
- defineCustomElement$q();
919
+ defineCustomElement$r();
913
920
  }
914
921
  break;
915
922
  case "bal-heading":
916
923
  if (!customElements.get(tagName)) {
917
- defineCustomElement$p();
924
+ defineCustomElement$q();
918
925
  }
919
926
  break;
920
927
  case "bal-icon":
921
928
  if (!customElements.get(tagName)) {
922
- defineCustomElement$o();
929
+ defineCustomElement$p();
923
930
  }
924
931
  break;
925
932
  case "bal-list":
926
933
  if (!customElements.get(tagName)) {
927
- defineCustomElement$n();
934
+ defineCustomElement$o();
928
935
  }
929
936
  break;
930
937
  case "bal-list-item":
931
938
  if (!customElements.get(tagName)) {
932
- defineCustomElement$m();
939
+ defineCustomElement$n();
933
940
  }
934
941
  break;
935
942
  case "bal-list-item-accordion-body":
936
943
  if (!customElements.get(tagName)) {
937
- defineCustomElement$l();
944
+ defineCustomElement$m();
938
945
  }
939
946
  break;
940
947
  case "bal-list-item-accordion-head":
941
948
  if (!customElements.get(tagName)) {
942
- defineCustomElement$k();
949
+ defineCustomElement$l();
943
950
  }
944
951
  break;
945
952
  case "bal-list-item-content":
946
953
  if (!customElements.get(tagName)) {
947
- defineCustomElement$j();
954
+ defineCustomElement$k();
948
955
  }
949
956
  break;
950
957
  case "bal-list-item-icon":
951
958
  if (!customElements.get(tagName)) {
952
- defineCustomElement$i();
959
+ defineCustomElement$j();
953
960
  }
954
961
  break;
955
962
  case "bal-list-item-title":
956
963
  if (!customElements.get(tagName)) {
957
- defineCustomElement$h();
964
+ defineCustomElement$i();
958
965
  }
959
966
  break;
960
967
  case "bal-logo":
961
968
  if (!customElements.get(tagName)) {
962
- defineCustomElement$g();
969
+ defineCustomElement$h();
963
970
  }
964
971
  break;
965
972
  case "bal-nav-link":
966
973
  if (!customElements.get(tagName)) {
967
- defineCustomElement$f();
974
+ defineCustomElement$g();
968
975
  }
969
976
  break;
970
977
  case "bal-nav-link-grid":
971
978
  if (!customElements.get(tagName)) {
972
- defineCustomElement$e();
979
+ defineCustomElement$f();
973
980
  }
974
981
  break;
975
982
  case "bal-nav-link-grid-col":
976
983
  if (!customElements.get(tagName)) {
977
- defineCustomElement$d();
984
+ defineCustomElement$e();
978
985
  }
979
986
  break;
980
987
  case "bal-nav-menu-bar":
981
988
  if (!customElements.get(tagName)) {
982
- defineCustomElement$c();
989
+ defineCustomElement$d();
983
990
  }
984
991
  break;
985
992
  case "bal-nav-menu-flyout":
986
993
  if (!customElements.get(tagName)) {
987
- defineCustomElement$b();
994
+ defineCustomElement$c();
988
995
  }
989
996
  break;
990
997
  case "bal-nav-meta-bar":
991
998
  if (!customElements.get(tagName)) {
992
- defineCustomElement$a();
999
+ defineCustomElement$b();
993
1000
  }
994
1001
  break;
995
1002
  case "bal-popover":
996
1003
  if (!customElements.get(tagName)) {
997
- defineCustomElement$9();
1004
+ defineCustomElement$a();
998
1005
  }
999
1006
  break;
1000
1007
  case "bal-popover-content":
1001
1008
  if (!customElements.get(tagName)) {
1002
- defineCustomElement$8();
1009
+ defineCustomElement$9();
1003
1010
  }
1004
1011
  break;
1005
1012
  case "bal-select":
1006
1013
  if (!customElements.get(tagName)) {
1007
- defineCustomElement$7();
1014
+ defineCustomElement$8();
1008
1015
  }
1009
1016
  break;
1010
1017
  case "bal-select-option":
1011
1018
  if (!customElements.get(tagName)) {
1012
- defineCustomElement$6();
1019
+ defineCustomElement$7();
1013
1020
  }
1014
1021
  break;
1015
1022
  case "bal-spinner":
1016
1023
  if (!customElements.get(tagName)) {
1017
- defineCustomElement$5();
1024
+ defineCustomElement$6();
1018
1025
  }
1019
1026
  break;
1020
1027
  case "bal-stack":
1028
+ if (!customElements.get(tagName)) {
1029
+ defineCustomElement$5();
1030
+ }
1031
+ break;
1032
+ case "bal-switch":
1021
1033
  if (!customElements.get(tagName)) {
1022
1034
  defineCustomElement$4();
1023
1035
  }
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
2
2
  import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
3
  import { B as BEM } from './bem.js';
4
4
  import { b as balBrowser } from './browser.js';
5
- import { w as wait } from './helpers.js';
5
+ import { a as wait } from './helpers.js';
6
6
  import { B as BalScrollHandler } from './scroll.js';
7
7
  import { d as defineCustomElement$5 } from './bal-button2.js';
8
8
  import { d as defineCustomElement$4 } from './bal-icon2.js';
@@ -5,7 +5,7 @@ import { a as ariaBooleanToString } from './aria.js';
5
5
  import { i as inheritAttributes } from './attributes.js';
6
6
  import { B as BEM } from './bem.js';
7
7
  import { d as defaultBalAriaForm } from './form.js';
8
- import { a as waitAfterFramePaint, r as raf } from './helpers.js';
8
+ import { b as waitAfterFramePaint, r as raf } from './helpers.js';
9
9
  import { L as Logger } from './log.js';
10
10
  import { i as includes, s as startsWith } from './utils.js';
11
11
 
@@ -3,7 +3,7 @@ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
3
  import { B as BEM } from './bem.js';
4
4
  import { b as balBrowser } from './browser.js';
5
5
  import { s as stopEventBubbling } from './form-input.js';
6
- import { q as debounce, i as isDescendant } from './helpers.js';
6
+ import { l as debounce, i as isDescendant } from './helpers.js';
7
7
  import { L as Logger } from './log.js';
8
8
  import { d as defineCustomElement$4 } from './bal-close2.js';
9
9
  import { d as defineCustomElement$3 } from './bal-heading2.js';
@@ -5,7 +5,7 @@ import { i as inheritAttributes } from './attributes.js';
5
5
  import { B as BEM } from './bem.js';
6
6
  import { d as defaultBalAriaForm } from './form.js';
7
7
  import { s as stopEventBubbling } from './form-input.js';
8
- import { i as isDescendant, m as hasTagName } from './helpers.js';
8
+ import { i as isDescendant, o as hasTagName } from './helpers.js';
9
9
  import { L as Logger } from './log.js';
10
10
  import { d as defineCustomElement$3 } from './bal-radio2.js';
11
11
  import { d as defineCustomElement$2 } from './bal-radio-icon2.js';
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
2
2
  import { i as inheritAttributes } from './attributes.js';
3
3
  import { B as BEM } from './bem.js';
4
4
  import { d as defaultBalAriaForm } from './form.js';
5
- import { o as addEventListener, r as raf, p as removeEventListener } from './helpers.js';
5
+ import { p as addEventListener, r as raf, q as removeEventListener } from './helpers.js';
6
6
  import { d as defineCustomElement$5 } from './bal-content2.js';
7
7
  import { d as defineCustomElement$4 } from './bal-icon2.js';
8
8
  import { d as defineCustomElement$3 } from './bal-label2.js';
@@ -7,14 +7,16 @@ import { i as inheritAttributes } from './attributes.js';
7
7
  import { B as BEM } from './bem.js';
8
8
  import { d as defaultBalAriaForm } from './form.js';
9
9
  import { s as stopEventBubbling } from './form-input.js';
10
- import { n as rIC, q as debounce, b as waitAfterIdleCallback, d as deepReady, i as isDescendant } from './helpers.js';
10
+ import { m as rIC, l as debounce, e as waitAfterIdleCallback, d as deepReady, i as isDescendant } from './helpers.js';
11
11
  import { L as Logger } from './log.js';
12
12
  import { r as removeValue, p as preventDefault, l as length, g as getValues, i as includes, s as startsWith, a as addValue, f as findLabelByValue, b as findOptionByLabel, v as validateAfterBlur } from './utils.js';
13
- import { d as defineCustomElement$6 } from './bal-checkbox2.js';
14
- import { d as defineCustomElement$5 } from './bal-close2.js';
15
- import { d as defineCustomElement$4 } from './bal-icon2.js';
16
- import { d as defineCustomElement$3 } from './bal-popover2.js';
17
- import { d as defineCustomElement$2 } from './bal-popover-content2.js';
13
+ import { d as defineCustomElement$8 } from './bal-check2.js';
14
+ import { d as defineCustomElement$7 } from './bal-checkbox2.js';
15
+ import { d as defineCustomElement$6 } from './bal-close2.js';
16
+ import { d as defineCustomElement$5 } from './bal-icon2.js';
17
+ import { d as defineCustomElement$4 } from './bal-popover2.js';
18
+ import { d as defineCustomElement$3 } from './bal-popover-content2.js';
19
+ import { d as defineCustomElement$2 } from './bal-switch2.js';
18
20
  import { d as defineCustomElement$1 } from './bal-tag2.js';
19
21
  import { a as isSpaceKey, b as isArrowDownKey, c as isArrowUpKey, i as isEnterKey, d as isEscapeKey, f as isBackspaceKey } from './keyboard.helpers.js';
20
22
 
@@ -870,34 +872,44 @@ function defineCustomElement() {
870
872
  if (typeof customElements === "undefined") {
871
873
  return;
872
874
  }
873
- const components = ["bal-select", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-tag"];
875
+ const components = ["bal-select", "bal-check", "bal-checkbox", "bal-close", "bal-icon", "bal-popover", "bal-popover-content", "bal-switch", "bal-tag"];
874
876
  components.forEach(tagName => { switch (tagName) {
875
877
  case "bal-select":
876
878
  if (!customElements.get(tagName)) {
877
879
  customElements.define(tagName, Select);
878
880
  }
879
881
  break;
882
+ case "bal-check":
883
+ if (!customElements.get(tagName)) {
884
+ defineCustomElement$8();
885
+ }
886
+ break;
880
887
  case "bal-checkbox":
881
888
  if (!customElements.get(tagName)) {
882
- defineCustomElement$6();
889
+ defineCustomElement$7();
883
890
  }
884
891
  break;
885
892
  case "bal-close":
886
893
  if (!customElements.get(tagName)) {
887
- defineCustomElement$5();
894
+ defineCustomElement$6();
888
895
  }
889
896
  break;
890
897
  case "bal-icon":
891
898
  if (!customElements.get(tagName)) {
892
- defineCustomElement$4();
899
+ defineCustomElement$5();
893
900
  }
894
901
  break;
895
902
  case "bal-popover":
896
903
  if (!customElements.get(tagName)) {
897
- defineCustomElement$3();
904
+ defineCustomElement$4();
898
905
  }
899
906
  break;
900
907
  case "bal-popover-content":
908
+ if (!customElements.get(tagName)) {
909
+ defineCustomElement$3();
910
+ }
911
+ break;
912
+ case "bal-switch":
901
913
  if (!customElements.get(tagName)) {
902
914
  defineCustomElement$2();
903
915
  }
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
3
  import { B as BEM } from './bem.js';
4
- import { r as raf, l as rOnLoad } from './helpers.js';
4
+ import { r as raf, n as rOnLoad } from './helpers.js';
5
5
  import { L as Logger } from './log.js';
6
6
  import { d as defaultConfig } from './config.default.js';
7
7
  import { L as ListenToConfig } from './config.decorator.js';
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { l as rOnLoad } from './helpers.js';
2
+ import { n as rOnLoad } from './helpers.js';
3
3
  import { i as inheritAttributes } from './attributes.js';
4
4
  import { B as BEM } from './bem.js';
5
5
 
@@ -1,77 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { B as BEM } from './bem.js';
3
- import { d as defineCustomElement$2 } from './bal-icon2.js';
4
-
5
- const balSwitchCss = ":root{--bal-checkbox-switch-label-background-before:var(--bal-color-primary-1);--bal-checkbox-switch-label-background-after:var(--bal-color-primary);--bal-checkbox-switch-label-background-hover-after:var(--bal-color-light-blue-5);--bal-checkbox-switch-label-background-active-after:var(--bal-color-primary-6);--bal-checkbox-switch-label-background-pressed-after:var(--bal-color-border-primary-pressed);--bal-checkbox-switch-label-background-checked-before:var(--bal-color-success-4);--bal-checkbox-switch-label-background-checked-after:var(--bal-color-white);--bal-checkbox-switch-label-background-checked-hover-before:var(--bal-color-success-5);--bal-checkbox-switch-label-background-checked-active-before:var(--bal-color-success-6);--bal-checkbox-switch-label-background-invalid-before:var(--bal-color-danger-1);--bal-checkbox-switch-label-background-invalid-after:var(--bal-color-border-danger);--bal-checkbox-switch-label-background-invalid-hover-after:var(--bal-color-border-danger-hovered);--bal-checkbox-switch-label-background-invalid-active-after:var(--bal-color-border-danger);--bal-checkbox-switch-label-background-invalid-pressed-after:var(--bal-color-border-danger-pressed);--bal-checkbox-switch-label-background-invalid-checked-before:var(--bal-color-danger-4);--bal-checkbox-switch-label-background-invalid-checked-after:var(--bal-color-white);--bal-checkbox-switch-label-background-invalid-checked-hover-before:var(--bal-color-danger-5);--bal-checkbox-switch-label-background-invalid-checked-active-before:var(--bal-color-danger-6);--bal-checkbox-switch-label-background-invalid-checked-hovered-before:var(--bal-color-border-danger-hovered);--bal-checkbox-switch-label-background-invalid-checked-pressed-before:var(--bal-color-border-danger-pressed);--bal-checkbox-switch-label-background-disabled-hover-active-before:var(--bal-color-grey-3);--bal-checkbox-switch-label-background-disabled-hover-active-after:var(--bal-color-border-grey-dark);--bal-checkbox-switch-label-background-disabled-checked-hover-active-before:var(--bal-color-border-grey-dark);--bal-checkbox-switch-label-background-disabled-checked-hover-active-after:var(--bal-color-white)}.bal-switch{display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:2.5rem;height:1.5rem;padding:.25rem;border-radius:var(--bal-radius-rounded);overflow:hidden;background:var(--bal-checkbox-switch-label-background-before)}@media (hover: hover)and (pointer: fine){.bal-switch--hovered,.bal-switch:hover{background:var(--bal-checkbox-switch-label-background-before)}.bal-switch--hovered .bal-switch__toggle,.bal-switch:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-hover-after)}}.bal-switch--pressed,.bal-switch:active{background:var(--bal-checkbox-switch-label-background-before)}.bal-switch--pressed .bal-switch__toggle,.bal-switch:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-pressed-after)}.bal-switch--checked{background:var(--bal-checkbox-switch-label-background-checked-before)}.bal-switch--checked .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}@media (hover: hover)and (pointer: fine){.bal-switch--checked.bal-switch--hovered,.bal-switch--checked:hover{background:var(--bal-checkbox-switch-label-background-checked-hover-before)}.bal-switch--checked.bal-switch--hovered .bal-switch__toggle,.bal-switch--checked:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}}.bal-switch--checked.bal-switch--pressed,.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-checked-active-before)}.bal-switch--checked.bal-switch--pressed .bal-switch__toggle,.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}.bal-switch--invalid{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-after)}@media (hover: hover)and (pointer: fine){.bal-switch--invalid.bal-switch--hovered,.bal-switch--invalid:hover{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid.bal-switch--hovered .bal-switch__toggle,.bal-switch--invalid:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-hover-after)}}.bal-switch--invalid.bal-switch--pressed,.bal-switch--invalid:active{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid.bal-switch--pressed .bal-switch__toggle,.bal-switch--invalid:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-pressed-after)}.bal-switch--invalid.bal-switch--checked.bal-switch,.bal-switch--invalid.bal-switch--checked{background:var(--bal-checkbox-switch-label-background-invalid-checked-before)}.bal-switch--invalid.bal-switch--checked.bal-switch .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--invalid.bal-switch--checked.bal-switch--hovered,.bal-switch--invalid.bal-switch--checked:hover{background:var(--bal-checkbox-switch-label-background-invalid-checked-hovered-before)}.bal-switch--invalid.bal-switch--checked.bal-switch--hovered .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--invalid.bal-switch--checked.bal-switch--pressed,.bal-switch--invalid.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-invalid-checked-pressed-before)}.bal-switch--invalid.bal-switch--checked.bal-switch--pressed .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--disabled,.bal-switch--disabled:hover,.bal-switch--disabled:active{background:var(--bal-checkbox-switch-label-background-disabled-hover-active-before)}.bal-switch--disabled .bal-switch__toggle,.bal-switch--disabled:hover .bal-switch__toggle,.bal-switch--disabled:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-disabled-hover-active-after)}.bal-switch--disabled.bal-switch--checked,.bal-switch--disabled.bal-switch--checked:hover,.bal-switch--disabled.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-disabled-checked-hover-active-before)}.bal-switch--disabled.bal-switch--checked .bal-switch__toggle,.bal-switch--disabled.bal-switch--checked:hover .bal-switch__toggle,.bal-switch--disabled.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-disabled-checked-hover-active-after)}.bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-after);border-radius:50%;position:absolute;top:.25rem;width:1rem;height:1rem;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out, -webkit-transform .3s ease-in-out}.bal-switch__toggle--checked{-webkit-transform:translateX(100%);transform:translateX(100%);background:var(--bal-checkbox-switch-label-background-checked-after)}.bal-switch .bal-icon{position:absolute}.bal-switch .bal-icon .bal-switch__icon--checked{opacity:1}.bal-switch .bal-icon .bal-switch__icon{opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}";
6
-
7
- const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement {
8
- constructor(registerHost) {
9
- super();
10
- if (registerHost !== false) {
11
- this.__registerHost();
12
- }
13
- /**
14
- * PUBLIC PROPERTY API
15
- * ------------------------------------------------------
16
- */
17
- /**
18
- * If `true`, the checkbox is selected.
19
- */
20
- this.checked = false;
21
- /**
22
- * If `true` the component gets a invalid red style.
23
- */
24
- this.invalid = undefined;
25
- /**
26
- * If `true`, the element is not mutable, focusable, or even submitted with the form. The user can neither edit nor focus on the control, nor its form control descendants.
27
- */
28
- this.disabled = undefined;
29
- /**
30
- * @internal
31
- */
32
- this.hovered = false;
33
- /**
34
- * @internal
35
- */
36
- this.pressed = false;
37
- }
38
- /**
39
- * RENDER
40
- * ------------------------------------------------------
41
- */
42
- render() {
43
- const block = BEM.block('switch');
44
- const checked = !!this.checked;
45
- const disabled = !!this.disabled;
46
- const invalid = !!this.invalid;
47
- return (h(Host, { key: '44e17aefdee7df228e92368c3863509a4dcd4bc8', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('checked').class(checked)), block.modifier('disabled').class(disabled)), block.modifier('invalid').class(invalid)), block.modifier('hovered').class(this.hovered)), block.modifier('pressed').class(this.pressed)) }, h("bal-icon", { key: '1f27c8f3f92467ea80de321666e597c8ea7cde89', name: "check", color: "white", size: "small", "aria-hidden": "true", colorHovered: "white", colorPressed: "white", hovered: this.hovered, pressed: this.pressed, class: Object.assign({}, block.element('icon').modifier('checked').class(checked)) }), h("div", { key: 'd22b87a1a091669422db72acf16d48a4c4e8825f', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('toggle').class()), block.element('toggle').modifier('checked').class(checked)), block.element('toggle').modifier('disabled').class(disabled)), block.element('toggle').modifier('invalid').class(invalid)), block.modifier('hovered').class(this.hovered)), block.modifier('pressed').class(this.pressed)) })));
48
- }
49
- static get style() { return balSwitchCss; }
50
- }, [256, "bal-switch", {
51
- "checked": [1028],
52
- "invalid": [4],
53
- "disabled": [4],
54
- "hovered": [4],
55
- "pressed": [4]
56
- }]);
57
- function defineCustomElement$1() {
58
- if (typeof customElements === "undefined") {
59
- return;
60
- }
61
- const components = ["bal-switch", "bal-icon"];
62
- components.forEach(tagName => { switch (tagName) {
63
- case "bal-switch":
64
- if (!customElements.get(tagName)) {
65
- customElements.define(tagName, Switch);
66
- }
67
- break;
68
- case "bal-icon":
69
- if (!customElements.get(tagName)) {
70
- defineCustomElement$2();
71
- }
72
- break;
73
- } });
74
- }
1
+ import { S as Switch, d as defineCustomElement$1 } from './bal-switch2.js';
75
2
 
76
3
  const BalSwitch = Switch;
77
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,11 +1,15 @@
1
- import { r as registerInstance, h, H as Host } from './index-BdVwMG9u.js';
2
- import { B as BEM } from './bem-ByiN-QjD.js';
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { B as BEM } from './bem.js';
3
+ import { d as defineCustomElement$1 } from './bal-icon2.js';
3
4
 
4
5
  const balSwitchCss = ":root{--bal-checkbox-switch-label-background-before:var(--bal-color-primary-1);--bal-checkbox-switch-label-background-after:var(--bal-color-primary);--bal-checkbox-switch-label-background-hover-after:var(--bal-color-light-blue-5);--bal-checkbox-switch-label-background-active-after:var(--bal-color-primary-6);--bal-checkbox-switch-label-background-pressed-after:var(--bal-color-border-primary-pressed);--bal-checkbox-switch-label-background-checked-before:var(--bal-color-success-4);--bal-checkbox-switch-label-background-checked-after:var(--bal-color-white);--bal-checkbox-switch-label-background-checked-hover-before:var(--bal-color-success-5);--bal-checkbox-switch-label-background-checked-active-before:var(--bal-color-success-6);--bal-checkbox-switch-label-background-invalid-before:var(--bal-color-danger-1);--bal-checkbox-switch-label-background-invalid-after:var(--bal-color-border-danger);--bal-checkbox-switch-label-background-invalid-hover-after:var(--bal-color-border-danger-hovered);--bal-checkbox-switch-label-background-invalid-active-after:var(--bal-color-border-danger);--bal-checkbox-switch-label-background-invalid-pressed-after:var(--bal-color-border-danger-pressed);--bal-checkbox-switch-label-background-invalid-checked-before:var(--bal-color-danger-4);--bal-checkbox-switch-label-background-invalid-checked-after:var(--bal-color-white);--bal-checkbox-switch-label-background-invalid-checked-hover-before:var(--bal-color-danger-5);--bal-checkbox-switch-label-background-invalid-checked-active-before:var(--bal-color-danger-6);--bal-checkbox-switch-label-background-invalid-checked-hovered-before:var(--bal-color-border-danger-hovered);--bal-checkbox-switch-label-background-invalid-checked-pressed-before:var(--bal-color-border-danger-pressed);--bal-checkbox-switch-label-background-disabled-hover-active-before:var(--bal-color-grey-3);--bal-checkbox-switch-label-background-disabled-hover-active-after:var(--bal-color-border-grey-dark);--bal-checkbox-switch-label-background-disabled-checked-hover-active-before:var(--bal-color-border-grey-dark);--bal-checkbox-switch-label-background-disabled-checked-hover-active-after:var(--bal-color-white)}.bal-switch{display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:2.5rem;height:1.5rem;padding:.25rem;border-radius:var(--bal-radius-rounded);overflow:hidden;background:var(--bal-checkbox-switch-label-background-before)}@media (hover: hover)and (pointer: fine){.bal-switch--hovered,.bal-switch:hover{background:var(--bal-checkbox-switch-label-background-before)}.bal-switch--hovered .bal-switch__toggle,.bal-switch:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-hover-after)}}.bal-switch--pressed,.bal-switch:active{background:var(--bal-checkbox-switch-label-background-before)}.bal-switch--pressed .bal-switch__toggle,.bal-switch:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-pressed-after)}.bal-switch--checked{background:var(--bal-checkbox-switch-label-background-checked-before)}.bal-switch--checked .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}@media (hover: hover)and (pointer: fine){.bal-switch--checked.bal-switch--hovered,.bal-switch--checked:hover{background:var(--bal-checkbox-switch-label-background-checked-hover-before)}.bal-switch--checked.bal-switch--hovered .bal-switch__toggle,.bal-switch--checked:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}}.bal-switch--checked.bal-switch--pressed,.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-checked-active-before)}.bal-switch--checked.bal-switch--pressed .bal-switch__toggle,.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-checked-after)}.bal-switch--invalid{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-after)}@media (hover: hover)and (pointer: fine){.bal-switch--invalid.bal-switch--hovered,.bal-switch--invalid:hover{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid.bal-switch--hovered .bal-switch__toggle,.bal-switch--invalid:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-hover-after)}}.bal-switch--invalid.bal-switch--pressed,.bal-switch--invalid:active{background:var(--bal-checkbox-switch-label-background-invalid-before)}.bal-switch--invalid.bal-switch--pressed .bal-switch__toggle,.bal-switch--invalid:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-pressed-after)}.bal-switch--invalid.bal-switch--checked.bal-switch,.bal-switch--invalid.bal-switch--checked{background:var(--bal-checkbox-switch-label-background-invalid-checked-before)}.bal-switch--invalid.bal-switch--checked.bal-switch .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--invalid.bal-switch--checked.bal-switch--hovered,.bal-switch--invalid.bal-switch--checked:hover{background:var(--bal-checkbox-switch-label-background-invalid-checked-hovered-before)}.bal-switch--invalid.bal-switch--checked.bal-switch--hovered .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked:hover .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--invalid.bal-switch--checked.bal-switch--pressed,.bal-switch--invalid.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-invalid-checked-pressed-before)}.bal-switch--invalid.bal-switch--checked.bal-switch--pressed .bal-switch__toggle,.bal-switch--invalid.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-invalid-checked-after)}.bal-switch--disabled,.bal-switch--disabled:hover,.bal-switch--disabled:active{background:var(--bal-checkbox-switch-label-background-disabled-hover-active-before)}.bal-switch--disabled .bal-switch__toggle,.bal-switch--disabled:hover .bal-switch__toggle,.bal-switch--disabled:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-disabled-hover-active-after)}.bal-switch--disabled.bal-switch--checked,.bal-switch--disabled.bal-switch--checked:hover,.bal-switch--disabled.bal-switch--checked:active{background:var(--bal-checkbox-switch-label-background-disabled-checked-hover-active-before)}.bal-switch--disabled.bal-switch--checked .bal-switch__toggle,.bal-switch--disabled.bal-switch--checked:hover .bal-switch__toggle,.bal-switch--disabled.bal-switch--checked:active .bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-disabled-checked-hover-active-after)}.bal-switch__toggle{background:var(--bal-checkbox-switch-label-background-after);border-radius:50%;position:absolute;top:.25rem;width:1rem;height:1rem;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out, -webkit-transform .3s ease-in-out}.bal-switch__toggle--checked{-webkit-transform:translateX(100%);transform:translateX(100%);background:var(--bal-checkbox-switch-label-background-checked-after)}.bal-switch .bal-icon{position:absolute}.bal-switch .bal-icon .bal-switch__icon--checked{opacity:1}.bal-switch .bal-icon .bal-switch__icon{opacity:0;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}";
5
6
 
6
- const Switch = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
7
+ const Switch = /*@__PURE__*/ proxyCustomElement(class Switch extends HTMLElement {
8
+ constructor(registerHost) {
9
+ super();
10
+ if (registerHost !== false) {
11
+ this.__registerHost();
12
+ }
9
13
  /**
10
14
  * PUBLIC PROPERTY API
11
15
  * ------------------------------------------------------
@@ -42,7 +46,31 @@ const Switch = class {
42
46
  const invalid = !!this.invalid;
43
47
  return (h(Host, { key: '44e17aefdee7df228e92368c3863509a4dcd4bc8', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('checked').class(checked)), block.modifier('disabled').class(disabled)), block.modifier('invalid').class(invalid)), block.modifier('hovered').class(this.hovered)), block.modifier('pressed').class(this.pressed)) }, h("bal-icon", { key: '1f27c8f3f92467ea80de321666e597c8ea7cde89', name: "check", color: "white", size: "small", "aria-hidden": "true", colorHovered: "white", colorPressed: "white", hovered: this.hovered, pressed: this.pressed, class: Object.assign({}, block.element('icon').modifier('checked').class(checked)) }), h("div", { key: 'd22b87a1a091669422db72acf16d48a4c4e8825f', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.element('toggle').class()), block.element('toggle').modifier('checked').class(checked)), block.element('toggle').modifier('disabled').class(disabled)), block.element('toggle').modifier('invalid').class(invalid)), block.modifier('hovered').class(this.hovered)), block.modifier('pressed').class(this.pressed)) })));
44
48
  }
45
- };
46
- Switch.style = balSwitchCss;
49
+ static get style() { return balSwitchCss; }
50
+ }, [256, "bal-switch", {
51
+ "checked": [1028],
52
+ "invalid": [4],
53
+ "disabled": [4],
54
+ "hovered": [4],
55
+ "pressed": [4]
56
+ }]);
57
+ function defineCustomElement() {
58
+ if (typeof customElements === "undefined") {
59
+ return;
60
+ }
61
+ const components = ["bal-switch", "bal-icon"];
62
+ components.forEach(tagName => { switch (tagName) {
63
+ case "bal-switch":
64
+ if (!customElements.get(tagName)) {
65
+ customElements.define(tagName, Switch);
66
+ }
67
+ break;
68
+ case "bal-icon":
69
+ if (!customElements.get(tagName)) {
70
+ defineCustomElement$1();
71
+ }
72
+ break;
73
+ } });
74
+ }
47
75
 
48
- export { Switch as bal_switch };
76
+ export { Switch as S, defineCustomElement as d };