@viasat/beam-web-components 2.21.0 → 2.22.0

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 (122) hide show
  1. package/Accordion/Accordion.js +1 -1
  2. package/Accordion/AccordionGroup.js +1 -1
  3. package/Accordion/index.js +1 -1
  4. package/Alert/Alert.js +43 -43
  5. package/Avatar/Avatar.js +1 -1
  6. package/Avatar/AvatarGroup.js +1 -1
  7. package/Avatar/index.js +1 -1
  8. package/Badge/Badge.js +1 -1
  9. package/BadgeDot/BadgeDot.js +18 -18
  10. package/Breadcrumbs/Breadcrumbs.js +1 -1
  11. package/Breadcrumbs/BreadcrumbsItem.js +1 -1
  12. package/Breadcrumbs/index.js +1 -1
  13. package/Button/Button.js +10 -10
  14. package/CloseButton/CloseButton.js +16 -16
  15. package/Divider/Divider.js +17 -17
  16. package/EmptyState/EmptyState.js +20 -20
  17. package/HelperText/HelperText.js +1 -1
  18. package/HelperText/index.js +1 -1
  19. package/InputChoiceGroup/InputChoiceGroup.js +54 -54
  20. package/Label/Label.d.ts +68 -0
  21. package/Label/Label.js +110 -0
  22. package/Link/Link.js +51 -51
  23. package/List/List.js +1 -1
  24. package/List/ListItem.js +1 -1
  25. package/ProgressBar/ProgressBar.js +19 -19
  26. package/SegmentedControl/SegmentedControl.js +1 -1
  27. package/SegmentedControl/SegmentedControlItem.js +1 -1
  28. package/SegmentedControl/SegmentedControlList.js +1 -1
  29. package/SegmentedControl/SegmentedControlPanel.js +1 -1
  30. package/Spinner/Spinner.js +28 -28
  31. package/Tooltip/Tooltip.js +85 -85
  32. package/chunks/Accordion.Bwk3EG3j.js +161 -0
  33. package/chunks/Avatar.BgufO4-1.js +174 -0
  34. package/chunks/BreadcrumbsItem.DmudL_IG.js +121 -0
  35. package/chunks/HelperText.SJGM6Q5H.js +108 -0
  36. package/chunks/fileUpload.module.CNe9mg2f.js +4 -0
  37. package/chunks/list.module.BSL1AIzv.js +4 -0
  38. package/chunks/segmentedControl.module.5EsIjpJa.js +4 -0
  39. package/custom-elements.json +1143 -1126
  40. package/local/Accordion/Accordion.js +1 -1
  41. package/local/Accordion/AccordionGroup.js +1 -1
  42. package/local/Accordion/index.js +1 -1
  43. package/local/Alert/Alert.js +20 -20
  44. package/local/Avatar/Avatar.js +1 -1
  45. package/local/Avatar/AvatarGroup.js +1 -1
  46. package/local/Avatar/index.js +1 -1
  47. package/local/Badge/Badge.js +1 -1
  48. package/local/BadgeDot/BadgeDot.js +4 -4
  49. package/local/Breadcrumbs/Breadcrumbs.js +1 -1
  50. package/local/Breadcrumbs/BreadcrumbsItem.js +1 -1
  51. package/local/Breadcrumbs/index.js +1 -1
  52. package/local/Button/Button.js +10 -10
  53. package/local/CloseButton/CloseButton.js +24 -24
  54. package/local/Divider/Divider.js +22 -22
  55. package/local/EmptyState/EmptyState.js +18 -18
  56. package/local/HelperText/HelperText.js +1 -1
  57. package/local/HelperText/index.js +1 -1
  58. package/local/InputChoiceGroup/InputChoiceGroup.js +39 -39
  59. package/local/Label/Label.js +109 -0
  60. package/local/Link/Link.js +25 -25
  61. package/local/List/List.js +1 -1
  62. package/local/List/ListItem.js +1 -1
  63. package/local/ProgressBar/ProgressBar.js +19 -19
  64. package/local/SegmentedControl/SegmentedControl.js +1 -1
  65. package/local/SegmentedControl/SegmentedControlItem.js +1 -1
  66. package/local/SegmentedControl/SegmentedControlList.js +1 -1
  67. package/local/SegmentedControl/SegmentedControlPanel.js +1 -1
  68. package/local/Spinner/Spinner.js +34 -34
  69. package/local/Tooltip/Tooltip.js +85 -85
  70. package/local/chunks/Accordion.UOcVt0ft.js +161 -0
  71. package/local/chunks/Avatar.CEb3Se7H.js +172 -0
  72. package/local/chunks/BreadcrumbsItem.Dp9fzlcw.js +121 -0
  73. package/local/chunks/fileUpload.module.CNe9mg2f.js +4 -0
  74. package/local/chunks/index.DNafYKj-.js +106 -0
  75. package/local/chunks/list.module.BSL1AIzv.js +4 -0
  76. package/local/chunks/segmentedControl.module.5EsIjpJa.js +4 -0
  77. package/local/wip/Checkbox/Checkbox.js +1 -1
  78. package/local/wip/FileUpload/FileUpload.Button.js +1 -1
  79. package/local/wip/FileUpload/FileUpload.Dropzone.js +1 -1
  80. package/local/wip/FileUpload/FileUpload.List.Item.js +2 -2
  81. package/local/wip/FileUpload/FileUpload.List.js +1 -1
  82. package/local/wip/FileUpload/FileUpload.js +2 -2
  83. package/local/wip/Form/Form.decorator.js +1 -1
  84. package/local/wip/NativeSelect/NativeSelect.js +18 -18
  85. package/local/wip/RadioButton/RadioButton.js +9 -9
  86. package/local/wip/Switch/Switch.js +9 -9
  87. package/local/wip/TextArea/TextArea.js +21 -21
  88. package/local/wip/TextField/TextField.js +26 -26
  89. package/package.json +6 -6
  90. package/vscode.html-custom-data.json +201 -196
  91. package/wip/Checkbox/Checkbox.js +53 -53
  92. package/wip/FileUpload/FileUpload.Button.js +1 -1
  93. package/wip/FileUpload/FileUpload.Dropzone.js +1 -1
  94. package/wip/FileUpload/FileUpload.List.Item.js +2 -2
  95. package/wip/FileUpload/FileUpload.List.js +1 -1
  96. package/wip/FileUpload/FileUpload.js +2 -2
  97. package/wip/Form/Form.decorator.js +1 -1
  98. package/wip/NativeSelect/NativeSelect.js +25 -25
  99. package/wip/RadioButton/RadioButton.js +7 -7
  100. package/wip/Switch/Switch.js +9 -9
  101. package/wip/TextArea/TextArea.js +13 -13
  102. package/wip/TextField/TextField.js +26 -26
  103. package/chunks/Accordion.DYD3XcAx.js +0 -161
  104. package/chunks/Avatar.C2rfzUGP.js +0 -174
  105. package/chunks/BreadcrumbsItem.4ZR6wbMz.js +0 -121
  106. package/chunks/HelperText.CcVVOtA3.js +0 -108
  107. package/chunks/fileUpload.module.kN6o64aL.js +0 -4
  108. package/chunks/list.module.CZRPBLzy.js +0 -4
  109. package/chunks/segmentedControl.module.BPXEWodj.js +0 -4
  110. package/local/chunks/Accordion.BP1XR2Gd.js +0 -161
  111. package/local/chunks/Avatar.CvTOzaRT.js +0 -172
  112. package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +0 -121
  113. package/local/chunks/fileUpload.module.kN6o64aL.js +0 -4
  114. package/local/chunks/index.Bz1Jq4c2.js +0 -106
  115. package/local/chunks/list.module.CZRPBLzy.js +0 -4
  116. package/local/chunks/segmentedControl.module.BPXEWodj.js +0 -4
  117. package/local/wip/Label/Label.js +0 -86
  118. package/wip/Label/Label.d.ts +0 -43
  119. package/wip/Label/Label.js +0 -87
  120. /package/{wip/Label → Label}/index.d.ts +0 -0
  121. /package/{local/wip/Label → Label}/index.js +0 -0
  122. /package/{wip → local}/Label/index.js +0 -0
@@ -61,6 +61,122 @@
61
61
  }
62
62
  ]
63
63
  },
64
+ {
65
+ "name": "bm-alert",
66
+ "description": "`bm-alert`\n\n### Attributes:\n- **heading** - Specify the heading text for Alert\n- **body** - Specify the body text for Alert\n- **size** - Specify the size of the Alert\n- **fullWidth** - Specify if the Alert has no border radius\n- **theme** - Specify the theme of the Alert. By default it inherits the theme from the parent\n- **appearance** - Specify the appearance of the Alert\n- **hidden** - Specify if the Alert is hidden\n- **hideIcon** - Specify if the icon displays on the Alert\n- **dismissible** - Specify if the Alert can be dismissed\n- **disableAutoFocus** - Prevent autofocus on show\n- **disableCloseOnEscape** - Prevent Escape from closing\n---\n\n\n### **Events:**\n - **bm-dismiss** - Dispatched when the Alert has been dismissed\n\n### **Slots:**\n - **icon** - Specify a different icon for the Alert\n- **heading** - Specify the heading text for Alert or pass the `heading` attribute to set the heading\n- **body** - Specify the body text for Alert or pass the `body` attribute to set the body\n- **actions** - Specify if actions display on the Alert",
67
+ "attributes": [
68
+ {
69
+ "name": "heading",
70
+ "description": "Specify the heading text for Alert",
71
+ "values": []
72
+ },
73
+ {
74
+ "name": "body",
75
+ "description": "Specify the body text for Alert",
76
+ "values": []
77
+ },
78
+ {
79
+ "name": "size",
80
+ "description": "Specify the size of the Alert",
81
+ "values": [{ "name": "sm" }, { "name": "md" }]
82
+ },
83
+ {
84
+ "name": "fullWidth",
85
+ "description": "Specify if the Alert has no border radius",
86
+ "values": []
87
+ },
88
+ {
89
+ "name": "theme",
90
+ "description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
91
+ "values": [{ "name": "light" }, { "name": "dark" }]
92
+ },
93
+ {
94
+ "name": "appearance",
95
+ "description": "Specify the appearance of the Alert",
96
+ "values": [
97
+ { "name": "infoPrimary" },
98
+ { "name": "infoSecondary" },
99
+ { "name": "positive" },
100
+ { "name": "warning" },
101
+ { "name": "negative" }
102
+ ]
103
+ },
104
+ {
105
+ "name": "hidden",
106
+ "description": "Specify if the Alert is hidden",
107
+ "values": []
108
+ },
109
+ {
110
+ "name": "hideIcon",
111
+ "description": "Specify if the icon displays on the Alert",
112
+ "values": []
113
+ },
114
+ {
115
+ "name": "dismissible",
116
+ "description": "Specify if the Alert can be dismissed",
117
+ "values": []
118
+ },
119
+ {
120
+ "name": "disableAutoFocus",
121
+ "description": "Prevent autofocus on show",
122
+ "values": []
123
+ },
124
+ {
125
+ "name": "disableCloseOnEscape",
126
+ "description": "Prevent Escape from closing",
127
+ "values": []
128
+ }
129
+ ],
130
+ "references": [
131
+ {
132
+ "name": "Storybook",
133
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "name": "bm-badge",
139
+ "description": "`bm-badge`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Badge\n- **theme** - Theme of the Badge\n- **size** - Specify the size of the Badge\n- **emphasis** - Specify the emphasis of the Badge\n- **hideIcon** - Hides Badge icon\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Badge\n- **icon** - Specify a different icon for the Badge",
140
+ "attributes": [
141
+ {
142
+ "name": "appearance",
143
+ "description": "Specify the appearance of the Badge",
144
+ "values": [
145
+ { "name": "infoPrimary" },
146
+ { "name": "infoSecondary" },
147
+ { "name": "positive" },
148
+ { "name": "warning" },
149
+ { "name": "negative" }
150
+ ]
151
+ },
152
+ {
153
+ "name": "theme",
154
+ "description": "Theme of the Badge",
155
+ "values": [{ "name": "light" }, { "name": "dark" }]
156
+ },
157
+ {
158
+ "name": "size",
159
+ "description": "Specify the size of the Badge",
160
+ "values": [{ "name": "sm" }, { "name": "md" }]
161
+ },
162
+ {
163
+ "name": "emphasis",
164
+ "description": "Specify the emphasis of the Badge",
165
+ "values": [
166
+ { "name": "strong" },
167
+ { "name": "medium" },
168
+ { "name": "subtle" }
169
+ ]
170
+ },
171
+ { "name": "hideIcon", "description": "Hides Badge icon", "values": [] }
172
+ ],
173
+ "references": [
174
+ {
175
+ "name": "Storybook",
176
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
177
+ }
178
+ ]
179
+ },
64
180
  {
65
181
  "name": "bm-avatar",
66
182
  "description": "`bm-avatar`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Avatar\n- **name** - Specify a name to display initials in the Avatar\n- **src** - Pass an image to the Avatar\n- **alt** - Specify alt for image\n- **size** - Specify the size of the Avatar\n- **disabled** - Specify if the Avatar is disabled\n- **shape** - Specify the shape of the Avatar\n- **isInteractive** - If Avatar is interactive, use `isInteractive` to make the Avatar focusable and show state layer\n- **isFocusable** - If Avatar is not interactive and Tooltip is provided, use `isFocusable` to make the Avatar focusable\n- **withBorder** \n---\n\n\n### **Slots:**\n - **icon** - Customize the default icon",
@@ -197,49 +313,6 @@
197
313
  }
198
314
  ]
199
315
  },
200
- {
201
- "name": "bm-badge",
202
- "description": "`bm-badge`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Badge\n- **theme** - Theme of the Badge\n- **size** - Specify the size of the Badge\n- **emphasis** - Specify the emphasis of the Badge\n- **hideIcon** - Hides Badge icon\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Badge\n- **icon** - Specify a different icon for the Badge",
203
- "attributes": [
204
- {
205
- "name": "appearance",
206
- "description": "Specify the appearance of the Badge",
207
- "values": [
208
- { "name": "infoPrimary" },
209
- { "name": "infoSecondary" },
210
- { "name": "positive" },
211
- { "name": "warning" },
212
- { "name": "negative" }
213
- ]
214
- },
215
- {
216
- "name": "theme",
217
- "description": "Theme of the Badge",
218
- "values": [{ "name": "light" }, { "name": "dark" }]
219
- },
220
- {
221
- "name": "size",
222
- "description": "Specify the size of the Badge",
223
- "values": [{ "name": "sm" }, { "name": "md" }]
224
- },
225
- {
226
- "name": "emphasis",
227
- "description": "Specify the emphasis of the Badge",
228
- "values": [
229
- { "name": "strong" },
230
- { "name": "medium" },
231
- { "name": "subtle" }
232
- ]
233
- },
234
- { "name": "hideIcon", "description": "Hides Badge icon", "values": [] }
235
- ],
236
- "references": [
237
- {
238
- "name": "Storybook",
239
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
240
- }
241
- ]
242
- },
243
316
  {
244
317
  "name": "bm-box",
245
318
  "description": "`bm-box`\n\n### Attributes:\n- **backgroundColor** - Specify the background color of a Box\n- **borderColor** - Specify the border color of a Box\n- **borderWidth** - Specify the border width of a Box\n- **borderRadius** - Specify the border radius of a Box\n- **px** - Specify before and after padding of a Box\n- **py** - Specify top and bottom padding of a Box\n- **pTop** - Specify top padding of a Box\n- **pBottom** - Specify bottom padding of a Box\n- **pBefore** - Specify before padding of a Box\n- **pAfter** - Specify after padding of a Box\n- **mx** - Specify before and after margin of a Box\n- **my** - Specify top and bottom margin of a Box\n- **mTop** - Specify top margin of a Box\n- **mBottom** - Specify bottom margin of a Box\n- **mBefore** - Specify before margin of a Box\n- **mAfter** - Specify after margin of a Box\n- **m** - Specify all margin\n- **p** - Specify all padding\n- **gap** - Specify gap between child elements\n- **shadow** - Specify if a Box has a shadow\n---\n\n\n### **Slots:**\n - **default** - Provide content for the Box",
@@ -643,79 +716,6 @@
643
716
  }
644
717
  ]
645
718
  },
646
- {
647
- "name": "bm-alert",
648
- "description": "`bm-alert`\n\n### Attributes:\n- **heading** - Specify the heading text for Alert\n- **body** - Specify the body text for Alert\n- **size** - Specify the size of the Alert\n- **fullWidth** - Specify if the Alert has no border radius\n- **theme** - Specify the theme of the Alert. By default it inherits the theme from the parent\n- **appearance** - Specify the appearance of the Alert\n- **hidden** - Specify if the Alert is hidden\n- **hideIcon** - Specify if the icon displays on the Alert\n- **dismissible** - Specify if the Alert can be dismissed\n- **disableAutoFocus** - Prevent autofocus on show\n- **disableCloseOnEscape** - Prevent Escape from closing\n---\n\n\n### **Events:**\n - **bm-dismiss** - Dispatched when the Alert has been dismissed\n\n### **Slots:**\n - **icon** - Specify a different icon for the Alert\n- **heading** - Specify the heading text for Alert or pass the `heading` attribute to set the heading\n- **body** - Specify the body text for Alert or pass the `body` attribute to set the body\n- **actions** - Specify if actions display on the Alert",
649
- "attributes": [
650
- {
651
- "name": "heading",
652
- "description": "Specify the heading text for Alert",
653
- "values": []
654
- },
655
- {
656
- "name": "body",
657
- "description": "Specify the body text for Alert",
658
- "values": []
659
- },
660
- {
661
- "name": "size",
662
- "description": "Specify the size of the Alert",
663
- "values": [{ "name": "sm" }, { "name": "md" }]
664
- },
665
- {
666
- "name": "fullWidth",
667
- "description": "Specify if the Alert has no border radius",
668
- "values": []
669
- },
670
- {
671
- "name": "theme",
672
- "description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
673
- "values": [{ "name": "light" }, { "name": "dark" }]
674
- },
675
- {
676
- "name": "appearance",
677
- "description": "Specify the appearance of the Alert",
678
- "values": [
679
- { "name": "infoPrimary" },
680
- { "name": "infoSecondary" },
681
- { "name": "positive" },
682
- { "name": "warning" },
683
- { "name": "negative" }
684
- ]
685
- },
686
- {
687
- "name": "hidden",
688
- "description": "Specify if the Alert is hidden",
689
- "values": []
690
- },
691
- {
692
- "name": "hideIcon",
693
- "description": "Specify if the icon displays on the Alert",
694
- "values": []
695
- },
696
- {
697
- "name": "dismissible",
698
- "description": "Specify if the Alert can be dismissed",
699
- "values": []
700
- },
701
- {
702
- "name": "disableAutoFocus",
703
- "description": "Prevent autofocus on show",
704
- "values": []
705
- },
706
- {
707
- "name": "disableCloseOnEscape",
708
- "description": "Prevent Escape from closing",
709
- "values": []
710
- }
711
- ],
712
- "references": [
713
- {
714
- "name": "Storybook",
715
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
716
- }
717
- ]
718
- },
719
719
  {
720
720
  "name": "bm-breadcrumb",
721
721
  "description": "`bm-breadcrumb`\n\n### Attributes:\n- **wrap** - Specify if items wrap or collapse to an ellipsis\n- **itemsBeforeCollapse** - Specify how many items show before ellipsis\n- **itemsAfterCollapse** - Specify how many items show after ellipsis\n- **theme** - Specify the theme of the Breadcrumbs. By default, it inherits the theme from the parent\n---\n\n\n### **Slots:**\n - **default** - Pass items to the Breadcrumb",
@@ -1158,6 +1158,48 @@
1158
1158
  }
1159
1159
  ]
1160
1160
  },
1161
+ {
1162
+ "name": "bm-label",
1163
+ "description": "`bm-label`\n---\n\n\n### **Slots:**\n - **text** - Specify the text for Label\n- **optional** - Specify if the Label displays as optional\n- **tooltip** - Specify if the icon displays to add a Tooltip",
1164
+ "attributes": [
1165
+ {
1166
+ "name": "disabled",
1167
+ "description": "Specify if the Label displays disabled",
1168
+ "values": []
1169
+ },
1170
+ {
1171
+ "name": "required",
1172
+ "description": "Specify if the Label displays as required",
1173
+ "values": []
1174
+ },
1175
+ {
1176
+ "name": "text",
1177
+ "description": "Specify the text for Label",
1178
+ "values": []
1179
+ },
1180
+ {
1181
+ "name": "optional",
1182
+ "description": "Specify the optional text for Label",
1183
+ "values": []
1184
+ },
1185
+ {
1186
+ "name": "for",
1187
+ "description": "Specify the id of the form element the Label is associated with.\nHandles click-to-focus across shadow DOM. See class-level remarks\nfor accessibility guidance with non-Beam inputs.",
1188
+ "values": []
1189
+ },
1190
+ {
1191
+ "name": "theme",
1192
+ "description": "Specify the theme of the Label. By default it inherits the theme from the parent",
1193
+ "values": [{ "name": "light" }, { "name": "dark" }]
1194
+ }
1195
+ ],
1196
+ "references": [
1197
+ {
1198
+ "name": "Storybook",
1199
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-label"
1200
+ }
1201
+ ]
1202
+ },
1161
1203
  {
1162
1204
  "name": "bm-link",
1163
1205
  "description": "`bm-link`\n\n### Attributes:\n- **appearance** - Specify the appearance of a Link\n- **bold** - Specify if the Link displays as bold\n- **size** - Specify the size of a Link\n- **disabled** - Specify if the Link is disabled\n- **href** - Specify the target link for the href attribute\n- **text** - Provide text for the Link\n- **hideUnderline** - Specify if Link displays with an underline\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Link or use the `text` attribute\n- **iconBefore** - Specify if the Link displays icon before the text\n- **iconAfter** - Specify if the Link displays icon after the text",
@@ -2134,43 +2176,6 @@
2134
2176
  }
2135
2177
  ]
2136
2178
  },
2137
- {
2138
- "name": "bm-label",
2139
- "description": "`bm-label`\n---\n\n\n### **Slots:**\n - **text** - Specify the text for Label\n- **optional** - Specify if the Label displays as optional\n- **tooltip** - Specify if the icon displays to add a Tooltip",
2140
- "attributes": [
2141
- {
2142
- "name": "disabled",
2143
- "description": "Specify if the Label displays disabled",
2144
- "values": []
2145
- },
2146
- {
2147
- "name": "required",
2148
- "description": "Specify if the Label displays as required",
2149
- "values": []
2150
- },
2151
- {
2152
- "name": "text",
2153
- "description": "Specify the text for Label",
2154
- "values": []
2155
- },
2156
- {
2157
- "name": "optional",
2158
- "description": "Specify the text for Label",
2159
- "values": []
2160
- },
2161
- {
2162
- "name": "theme",
2163
- "description": "Specify the theme of the Label. By default it inherits the theme from the parent",
2164
- "values": [{ "name": "light" }, { "name": "dark" }]
2165
- }
2166
- ],
2167
- "references": [
2168
- {
2169
- "name": "Storybook",
2170
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-label"
2171
- }
2172
- ]
2173
- },
2174
2179
  {
2175
2180
  "name": "bm-native-select",
2176
2181
  "description": "`bm-native-select`\n---\n\n\n### **Slots:**\n - **slot** - Specify Options for NativeSelect\n- **label** - Specify Label for NativeSelect\n- **helper-text** - Specify HelperText for NativeSelect",
@@ -2288,49 +2293,6 @@
2288
2293
  }
2289
2294
  ]
2290
2295
  },
2291
- {
2292
- "name": "bm-switch",
2293
- "description": "`bm-switch`\n\n### Attributes:\n- **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.\n- **textPosition** - Specify the position of the side label\n- **readOnly** - Specify if Switch displays in a read-only state\n- **disabled** - Specify if Switch displays in a disabled state\n- **checked** \n- **value** - The value attribute for the input element\n---\n\n\n### **Slots:**\n - **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.",
2294
- "attributes": [
2295
- {
2296
- "name": "onText",
2297
- "description": "Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.",
2298
- "values": []
2299
- },
2300
- {
2301
- "name": "offText",
2302
- "description": "Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.",
2303
- "values": []
2304
- },
2305
- {
2306
- "name": "textPosition",
2307
- "description": "Specify the position of the side label",
2308
- "values": [{ "name": "before" }, { "name": "after" }]
2309
- },
2310
- {
2311
- "name": "readOnly",
2312
- "description": "Specify if Switch displays in a read-only state",
2313
- "values": []
2314
- },
2315
- {
2316
- "name": "disabled",
2317
- "description": "Specify if Switch displays in a disabled state",
2318
- "values": []
2319
- },
2320
- { "name": "checked", "values": [] },
2321
- {
2322
- "name": "value",
2323
- "description": "The value attribute for the input element",
2324
- "values": []
2325
- }
2326
- ],
2327
- "references": [
2328
- {
2329
- "name": "Storybook",
2330
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-switch"
2331
- }
2332
- ]
2333
- },
2334
2296
  {
2335
2297
  "name": "bm-text-area",
2336
2298
  "description": "`bm-text-area`\n---\n\n\n### **Slots:**\n - **label** - Specify the label for TextArea\n- **helper-text** - Specify the helper text for TextArea",
@@ -2421,6 +2383,49 @@
2421
2383
  }
2422
2384
  ]
2423
2385
  },
2386
+ {
2387
+ "name": "bm-switch",
2388
+ "description": "`bm-switch`\n\n### Attributes:\n- **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.\n- **textPosition** - Specify the position of the side label\n- **readOnly** - Specify if Switch displays in a read-only state\n- **disabled** - Specify if Switch displays in a disabled state\n- **checked** \n- **value** - The value attribute for the input element\n---\n\n\n### **Slots:**\n - **onText** - Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.\n- **offText** - Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.",
2389
+ "attributes": [
2390
+ {
2391
+ "name": "onText",
2392
+ "description": "Specify a side label for the “on” position. If onText is not specified, side label defaults to offText value.",
2393
+ "values": []
2394
+ },
2395
+ {
2396
+ "name": "offText",
2397
+ "description": "Specify a side label for the “off” position. If offText is not specified, side label defaults to onText value.",
2398
+ "values": []
2399
+ },
2400
+ {
2401
+ "name": "textPosition",
2402
+ "description": "Specify the position of the side label",
2403
+ "values": [{ "name": "before" }, { "name": "after" }]
2404
+ },
2405
+ {
2406
+ "name": "readOnly",
2407
+ "description": "Specify if Switch displays in a read-only state",
2408
+ "values": []
2409
+ },
2410
+ {
2411
+ "name": "disabled",
2412
+ "description": "Specify if Switch displays in a disabled state",
2413
+ "values": []
2414
+ },
2415
+ { "name": "checked", "values": [] },
2416
+ {
2417
+ "name": "value",
2418
+ "description": "The value attribute for the input element",
2419
+ "values": []
2420
+ }
2421
+ ],
2422
+ "references": [
2423
+ {
2424
+ "name": "Storybook",
2425
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-switch"
2426
+ }
2427
+ ]
2428
+ },
2424
2429
  {
2425
2430
  "name": "bm-text-field",
2426
2431
  "description": "`bm-text-field`\n---\n\n\n### **Slots:**\n - **label** - Specify the label for TextField\n- **helper-text** - Specify the helper text for TextField\n- **content-after** - Specify content to display after input\n- **content-before** - Specify content to display before input",
@@ -1,22 +1,22 @@
1
1
  import { consume as k } from "@lit/context";
2
2
  import { unsafeCSS as y, LitElement as _, nothing as u, html as h } from "lit";
3
- import { property as m } from "lit/decorators.js";
3
+ import { property as i } from "lit/decorators.js";
4
4
  import w from "clsx";
5
5
  import { g as z } from "../../chunks/classNames.Cq_tbDRp.js";
6
6
  import { t as C } from "../../chunks/constants.jOWREYQE.js";
7
7
  import { r as S } from "../../chunks/delegate.baxDQosr.js";
8
8
  import { c as $ } from "../../chunks/register-custom-element.DHGKOhmA.js";
9
9
  import { inputChoiceGroupContext as P } from "../../InputChoiceGroup/InputChoiceGroup.context.js";
10
- const O = `:root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-input-color-bg: var(--bm-sem-color-surface-01, #ffffff);--bm-comp-input-color-bg-disabled: var( --bm-sem-color-surface-highlight, rgba(159, 175, 188, .16) );--bm-comp-input-color-border: var(--bm-sem-color-border-strong, #8697a5);--bm-comp-input-color-border-error: var( --bm-sem-color-border-negative-strong, #cc2429 );--bm-comp-input-color-border-disabled: rgba(134, 151, 165, .4);--bm-comp-input-color-text: var(--bm-sem-color-text-primary, #141d24);--bm-comp-input-color-text-placeholder: var( --bm-sem-color-text-secondary, #576775 );--bm-comp-input-color-text-disabled: var( --bm-sem-color-text-disabled, rgba(87, 103, 117, .4) );--bm-comp-input-color-icon-disabled: var( --bm-sem-color-text-disabled, rgba(87, 103, 117, .4) );--bm-comp-input-color-icon: var(--bm-sem-color-icon-secondary, #576775);--bm-comp-input-color-icon-error: var( --bm-sem-color-icon-negative-strong, #cc2429 );--bm-comp-input-color-divider: var(--bm-sem-color-border-02, #d1dae0);--bm-comp-input-color-choice-checkbox-selected-bg: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-checkbox-selected-icon: var( --bm-sem-color-icon-primary-inverse, #ffffff );--bm-comp-input-color-choice-checkbox-selected-bg-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-color-choice-checkbox-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-switch-selected-bg: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-switch-selected-icon: var( --bm-sem-color-icon-primary-inverse, #ffffff );--bm-comp-input-color-choice-switch-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-radio-selected-bg: var( --bm-sem-color-surface-01, #ffffff );--bm-comp-input-color-choice-radio-selected-border: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-radio-selected-bg-error: var( --bm-sem-color-surface-01, #ffffff );--bm-comp-input-color-choice-radio-selected-border-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-color-choice-radio-selected-inner-circle-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-typo-default: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-character-count: var( --bm-sem-typo-body-sm, 400 .875rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-label-choice: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" );--bm-comp-input-space-field-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-gap: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-inside: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-choice-nudge: var( --bm-primitive-dimension-12, .125rem );--bm-comp-input-size-field-md-height: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-text-area-height: var( --bm-primitive-dimension-475, 4.75rem );--bm-comp-input-size-choice-checkbox: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio-inside: var( --bm-primitive-dimension-50, .5rem );--bm-comp-input-size-choice-switch-height: var( --bm-sem-size-icon-md, 1.25rem );--bm-comp-input-size-choice-switch-width: var( --bm-primitive-dimension-250, 2.5rem );--bm-comp-input-size-choice-switch-knob: var( --bm-primitive-dimension-87, .875rem );--bm-comp-input-radius-field: var(--bm-sem-radius-input-md, .25rem);--bm-comp-input-radius-choice-checkbox: var( --bm-sem-radius-input-sm, .125rem );--bm-comp-input-radius-choice-radio: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-radius-choice-switch: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-border-width-field-default: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-border-width-field-error: var( --bm-sem-border-width-lg, .125rem );--bm-comp-input-border-width-choice: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-shadow-field: var( --bm-sem-shadow-none, 0 0 0 0 rgb(0, 0, 0, 0) )}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-input-color-bg: var(--bm-sem-color-surface-01, #202e39);--bm-comp-input-color-bg-disabled: var( --bm-sem-color-surface-highlight, rgba(134, 151, 165, .16) );--bm-comp-input-color-border: var(--bm-sem-color-border-strong, #9fafbc);--bm-comp-input-color-border-error: var( --bm-sem-color-border-negative-strong, #f67378 );--bm-comp-input-color-border-disabled: rgba(159, 175, 188, .4);--bm-comp-input-color-text: var(--bm-sem-color-text-primary, #ffffff);--bm-comp-input-color-text-placeholder: var( --bm-sem-color-text-secondary, #c3cdd5 );--bm-comp-input-color-text-disabled: var( --bm-sem-color-text-disabled, rgba(195, 205, 213, .4) );--bm-comp-input-color-icon-disabled: var( --bm-sem-color-text-disabled, rgba(195, 205, 213, .4) );--bm-comp-input-color-icon: var(--bm-sem-color-icon-secondary, #c3cdd5);--bm-comp-input-color-icon-error: var( --bm-sem-color-icon-negative-strong, #f67378 );--bm-comp-input-color-divider: var(--bm-sem-color-border-02, #465967);--bm-comp-input-color-choice-checkbox-selected-bg: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-checkbox-selected-icon: var( --bm-sem-color-icon-primary-inverse, #141d24 );--bm-comp-input-color-choice-checkbox-selected-bg-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-color-choice-checkbox-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-switch-selected-bg: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-switch-selected-icon: var( --bm-sem-color-icon-primary-inverse, #141d24 );--bm-comp-input-color-choice-switch-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-radio-selected-bg: var( --bm-sem-color-surface-01, #202e39 );--bm-comp-input-color-choice-radio-selected-border: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-bg-error: var( --bm-sem-color-surface-01, #202e39 );--bm-comp-input-color-choice-radio-selected-border-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-color-choice-radio-selected-inner-circle-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-typo-default: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-character-count: var( --bm-sem-typo-body-sm, 400 .875rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-label-choice: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" );--bm-comp-input-space-field-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-gap: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-inside: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-choice-nudge: var( --bm-primitive-dimension-12, .125rem );--bm-comp-input-size-field-md-height: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-text-area-height: var( --bm-primitive-dimension-475, 4.75rem );--bm-comp-input-size-choice-checkbox: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio-inside: var( --bm-primitive-dimension-50, .5rem );--bm-comp-input-size-choice-switch-height: var( --bm-sem-size-icon-md, 1.25rem );--bm-comp-input-size-choice-switch-width: var( --bm-primitive-dimension-250, 2.5rem );--bm-comp-input-size-choice-switch-knob: var( --bm-primitive-dimension-87, .875rem );--bm-comp-input-radius-field: var(--bm-sem-radius-input-md, .25rem);--bm-comp-input-radius-choice-checkbox: var( --bm-sem-radius-input-sm, .125rem );--bm-comp-input-radius-choice-radio: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-radius-choice-switch: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-border-width-field-default: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-border-width-field-error: var( --bm-sem-border-width-lg, .125rem );--bm-comp-input-border-width-choice: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-shadow-field: var( --bm-sem-shadow-none, 0 0 0 0 rgb(0, 0, 0, 0) )}.bm-checkbox{display:inline-flex}.bm-checkbox--read-only{--bm-input-choice-cursor: default;--bm-input-choice-label-cursor: default;--bm-input-choice-label-pointer-events: none}.bm-checkbox--disabled{--bm-input-choice-cursor: not-allowed;--bm-input-choice-label-cursor: not-allowed}.bm-checkbox__label{display:inherit;word-break:break-word;color:var(--bm-comp-input-color-text);font:var(--bm-comp-input-typo-default);gap:var(--bm-comp-input-space-choice-gap-inside);cursor:var(--bm-input-choice-label-cursor, pointer)}.bm-checkbox--with-label .bm-checkbox__label .bm-checkbox__input{margin:var(--bm-comp-input-space-choice-nudge) var(--bm-sem-space-0)}.bm-checkbox--error .bm-checkbox__label{color:var(--bm-comp-input-color-text)}.bm-checkbox--error .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-error);background-color:var(--bm-comp-input-color-bg)}.bm-checkbox--error .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-choice-checkbox-selected-bg-error)}.bm-checkbox--read-only .bm-checkbox__label{color:var(--bm-comp-input-color-text)}.bm-checkbox--read-only .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-disabled);background-color:var(--bm-comp-input-color-bg-disabled)}.bm-checkbox--read-only .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-icon)}.bm-checkbox--disabled .bm-checkbox__label{color:var(--bm-comp-input-color-text-disabled)}.bm-checkbox--disabled .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-disabled);background-color:var(--bm-comp-input-color-bg-disabled)}.bm-checkbox--disabled .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-icon-disabled)}.bm-checkbox__label .bm-checkbox__input{appearance:none;-moz-appearance:none;-webkit-appearance:none;position:relative;margin:var(--bm-sem-space-0);flex-shrink:var(--bm-sem-space-0);cursor:var(--bm-input-choice-cursor, pointer);box-sizing:border-box;width:var(--bm-comp-input-size-choice-checkbox);height:var(--bm-comp-input-size-choice-checkbox);border-style:solid;border-width:var(--bm-comp-input-border-width-field-default);border-color:var(--bm-comp-input-color-border);border-radius:var(--bm-comp-input-radius-choice-checkbox);background-color:var(--bm-comp-input-color-bg)}.bm-checkbox__label .bm-checkbox__input:focus-visible{outline-offset:var(--bm-sem-size-focus-offset);outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-checkbox__label .bm-checkbox__input:checked{border-color:var(--bm-comp-input-color-choice-checkbox-selected-border);background-color:var(--bm-comp-input-color-choice-checkbox-selected-bg)}.bm-checkbox__label .bm-checkbox__input:checked:after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.178 7.363.808 4.697 0 5.598l3.178 3.573L10 1.501 9.198.6l-6.02 6.763Z' fill='%23fff'/%3E%3C/svg%3E");-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.178 7.363.808 4.697 0 5.598l3.178 3.573L10 1.501 9.198.6l-6.02 6.763Z' fill='%23fff'/%3E%3C/svg%3E");mask-size:cover;mask-position:center;mask-repeat:no-repeat;content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(var(--bm-comp-input-size-choice-checkbox) * 5 / 8);height:calc(var(--bm-comp-input-size-choice-checkbox) * 5 / 8);background-color:var(--bm-comp-input-color-choice-checkbox-selected-icon)}.bm-checkbox--indeterminate .bm-checkbox__input:checked:after{height:2px;width:50%;border-radius:var(--bm-comp-input-size-choice-checkbox);-webkit-mask-image:none;mask-image:none}`;
10
+ const O = `:root,:host,.bm-light,.bm-dark .bm-inverse,.bm-dark.bm-inverse,[data-bm-theme~=bm-dark] .bm-inverse,[data-bm-theme~=bm-dark].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-light]{--bm-comp-input-color-bg: var(--bm-sem-color-surface-01, #ffffff);--bm-comp-input-color-bg-disabled: var( --bm-sem-color-surface-highlight, rgba(159, 175, 188, .16) );--bm-comp-input-color-border: var(--bm-sem-color-border-strong, #8697a5);--bm-comp-input-color-border-error: var( --bm-sem-color-border-negative-strong, #cc2429 );--bm-comp-input-color-border-disabled: rgba(134, 151, 165, .4);--bm-comp-input-color-text: var(--bm-sem-color-text-primary, #141d24);--bm-comp-input-color-text-placeholder: var( --bm-sem-color-text-secondary, #576775 );--bm-comp-input-color-text-disabled: var( --bm-sem-color-text-disabled, rgba(87, 103, 117, .4) );--bm-comp-input-color-icon-disabled: var( --bm-sem-color-text-disabled, rgba(87, 103, 117, .4) );--bm-comp-input-color-icon: var(--bm-sem-color-icon-secondary, #576775);--bm-comp-input-color-icon-error: var( --bm-sem-color-icon-negative-strong, #cc2429 );--bm-comp-input-color-divider: var(--bm-sem-color-border-02, #d1dae0);--bm-comp-input-color-choice-checkbox-selected-bg: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-checkbox-selected-icon: var( --bm-sem-color-icon-primary-inverse, #ffffff );--bm-comp-input-color-choice-checkbox-selected-bg-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-color-choice-checkbox-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-switch-selected-bg: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-switch-selected-icon: var( --bm-sem-color-icon-primary-inverse, #ffffff );--bm-comp-input-color-choice-switch-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-radio-selected-bg: var( --bm-sem-color-surface-01, #ffffff );--bm-comp-input-color-choice-radio-selected-border: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-utility-color-accent-default, #00768f );--bm-comp-input-color-choice-radio-selected-bg-error: var( --bm-sem-color-surface-01, #ffffff );--bm-comp-input-color-choice-radio-selected-border-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-color-choice-radio-selected-inner-circle-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-input-typo-default: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-character-count: var( --bm-sem-typo-body-sm, 400 .875rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-label-choice: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" );--bm-comp-input-space-field-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-gap: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-inside: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-choice-nudge: var( --bm-primitive-dimension-12, .125rem );--bm-comp-input-size-field-md-height: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-text-area-height: var( --bm-primitive-dimension-475, 4.75rem );--bm-comp-input-size-choice-checkbox: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio-inside: var( --bm-primitive-dimension-50, .5rem );--bm-comp-input-size-choice-switch-height: var( --bm-sem-size-icon-md, 1.25rem );--bm-comp-input-size-choice-switch-width: var( --bm-primitive-dimension-250, 2.5rem );--bm-comp-input-size-choice-switch-knob: var( --bm-primitive-dimension-87, .875rem );--bm-comp-input-radius-field: var(--bm-sem-radius-input-md, .25rem);--bm-comp-input-radius-choice-checkbox: var( --bm-sem-radius-input-sm, .125rem );--bm-comp-input-radius-choice-radio: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-radius-choice-switch: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-border-width-field-default: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-border-width-field-error: var( --bm-sem-border-width-lg, .125rem );--bm-comp-input-border-width-choice: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-shadow-field: var( --bm-sem-shadow-none, 0 0 0 0 rgb(0, 0, 0, 0) )}:host,.bm-dark,.bm-light .bm-inverse,.bm-light.bm-inverse,[data-bm-theme~=bm-light] .bm-inverse,[data-bm-theme~=bm-light].bm-inverse,.bm-enterprise,.bm-consumer,[data-bm-theme~=bm-dark]{--bm-comp-input-color-bg: var(--bm-sem-color-surface-01, #202e39);--bm-comp-input-color-bg-disabled: var( --bm-sem-color-surface-highlight, rgba(134, 151, 165, .16) );--bm-comp-input-color-border: var(--bm-sem-color-border-strong, #9fafbc);--bm-comp-input-color-border-error: var( --bm-sem-color-border-negative-strong, #f67378 );--bm-comp-input-color-border-disabled: rgba(159, 175, 188, .4);--bm-comp-input-color-text: var(--bm-sem-color-text-primary, #ffffff);--bm-comp-input-color-text-placeholder: var( --bm-sem-color-text-secondary, #c3cdd5 );--bm-comp-input-color-text-disabled: var( --bm-sem-color-text-disabled, rgba(195, 205, 213, .4) );--bm-comp-input-color-icon-disabled: var( --bm-sem-color-text-disabled, rgba(195, 205, 213, .4) );--bm-comp-input-color-icon: var(--bm-sem-color-icon-secondary, #c3cdd5);--bm-comp-input-color-icon-error: var( --bm-sem-color-icon-negative-strong, #f67378 );--bm-comp-input-color-divider: var(--bm-sem-color-border-02, #465967);--bm-comp-input-color-choice-checkbox-selected-bg: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-checkbox-selected-icon: var( --bm-sem-color-icon-primary-inverse, #141d24 );--bm-comp-input-color-choice-checkbox-selected-bg-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-color-choice-checkbox-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-switch-selected-bg: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-switch-selected-icon: var( --bm-sem-color-icon-primary-inverse, #141d24 );--bm-comp-input-color-choice-switch-selected-border: var( --bm-sem-color-none, #ffffff00 );--bm-comp-input-color-choice-radio-selected-bg: var( --bm-sem-color-surface-01, #202e39 );--bm-comp-input-color-choice-radio-selected-border: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-bg-error: var( --bm-sem-color-surface-01, #202e39 );--bm-comp-input-color-choice-radio-selected-border-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-color-choice-radio-selected-inner-circle-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-input-typo-default: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-character-count: var( --bm-sem-typo-body-sm, 400 .875rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-label-choice: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" );--bm-comp-input-space-field-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-gap: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-inside: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-y: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-choice-gap-items-x: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-choice-nudge: var( --bm-primitive-dimension-12, .125rem );--bm-comp-input-size-field-md-height: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-text-area-height: var( --bm-primitive-dimension-475, 4.75rem );--bm-comp-input-size-choice-checkbox: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-choice-radio-inside: var( --bm-primitive-dimension-50, .5rem );--bm-comp-input-size-choice-switch-height: var( --bm-sem-size-icon-md, 1.25rem );--bm-comp-input-size-choice-switch-width: var( --bm-primitive-dimension-250, 2.5rem );--bm-comp-input-size-choice-switch-knob: var( --bm-primitive-dimension-87, .875rem );--bm-comp-input-radius-field: var(--bm-sem-radius-input-md, .25rem);--bm-comp-input-radius-choice-checkbox: var( --bm-sem-radius-input-sm, .125rem );--bm-comp-input-radius-choice-radio: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-radius-choice-switch: var( --bm-sem-radius-input-lg, 624.938rem );--bm-comp-input-border-width-field-default: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-border-width-field-error: var( --bm-sem-border-width-lg, .125rem );--bm-comp-input-border-width-choice: var( --bm-sem-border-width-input, .063rem );--bm-comp-input-shadow-field: var( --bm-sem-shadow-none, 0 0 0 0 rgb(0, 0, 0, 0) )}.bm-checkbox{display:inline-flex}.bm-checkbox--read-only{--bm-input-choice-cursor: default;--bm-input-choice-label-cursor: default;--bm-input-choice-label-pointer-events: none}.bm-checkbox--disabled{--bm-input-choice-cursor: not-allowed;--bm-input-choice-label-cursor: not-allowed}.bm-checkbox__label{display:inherit;word-break:break-word;color:var(--bm-comp-input-color-text);font:var(--bm-comp-input-typo-default);gap:var(--bm-comp-input-space-choice-gap-inside);cursor:var(--bm-input-choice-label-cursor, pointer)}.bm-checkbox--with-label .bm-checkbox__label .bm-checkbox__input{margin:var(--bm-comp-input-space-choice-nudge) var(--bm-sem-space-0)}.bm-checkbox--error .bm-checkbox__label{color:var(--bm-comp-input-color-text)}.bm-checkbox--error .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-error);background-color:var(--bm-comp-input-color-bg)}.bm-checkbox--error .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-choice-checkbox-selected-bg-error)}.bm-checkbox--read-only .bm-checkbox__label{color:var(--bm-comp-input-color-text)}.bm-checkbox--read-only .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-disabled);background-color:var(--bm-comp-input-color-bg-disabled)}.bm-checkbox--read-only .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-icon)}.bm-checkbox--disabled .bm-checkbox__label{color:var(--bm-comp-input-color-text-disabled)}.bm-checkbox--disabled .bm-checkbox__label .bm-checkbox__input{border-color:var(--bm-comp-input-color-border-disabled);background-color:var(--bm-comp-input-color-bg-disabled)}.bm-checkbox--disabled .bm-checkbox__label .bm-checkbox__input:checked{background-color:var(--bm-comp-input-color-icon-disabled)}.bm-checkbox__label .bm-checkbox__input{appearance:none;-moz-appearance:none;-webkit-appearance:none;position:relative;margin:var(--bm-sem-space-0);flex-shrink:var(--bm-sem-space-0);cursor:var(--bm-input-choice-cursor, pointer);box-sizing:border-box;width:var(--bm-comp-input-size-choice-checkbox);height:var(--bm-comp-input-size-choice-checkbox);border-style:solid;border-width:var(--bm-comp-input-border-width-field-default);border-color:var(--bm-comp-input-color-border);border-radius:var(--bm-comp-input-radius-choice-checkbox);background-color:var(--bm-comp-input-color-bg)}.bm-checkbox__label .bm-checkbox__input:focus-visible{outline-offset:var(--bm-sem-size-focus-offset);outline:var(--bm-sem-border-width-focus) solid var(--bm-sem-color-border-focus)}.bm-checkbox__label .bm-checkbox__input:checked{border-color:var(--bm-comp-input-color-choice-checkbox-selected-border);background-color:var(--bm-comp-input-color-choice-checkbox-selected-bg)}.bm-checkbox__label .bm-checkbox__input:checked:after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.178 7.363.808 4.697 0 5.598l3.178 3.573L10 1.501 9.198.6l-6.02 6.763Z' fill='%23fff'/%3E%3C/svg%3E");-webkit-mask-size:cover;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.178 7.363.808 4.697 0 5.598l3.178 3.573L10 1.501 9.198.6l-6.02 6.763Z' fill='%23fff'/%3E%3C/svg%3E");mask-size:cover;mask-position:center;mask-repeat:no-repeat;content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(var(--bm-comp-input-size-choice-checkbox) * 5 / 8);height:calc(var(--bm-comp-input-size-choice-checkbox) * 5 / 8);background-color:var(--bm-comp-input-color-choice-checkbox-selected-icon)}.bm-checkbox--indeterminate .bm-checkbox__input:checked:after{height:2px;width:50%;border-radius:var(--bm-comp-input-size-choice-checkbox);-webkit-mask-image:none;mask-image:none}`;
11
11
  var E = Object.defineProperty, B = Object.getOwnPropertyDescriptor, f = (e) => {
12
12
  throw TypeError(e);
13
- }, i = (e, o, r, b) => {
14
- for (var t = b > 1 ? void 0 : b ? B(o, r) : o, a = e.length - 1, p; a >= 0; a--)
15
- (p = e[a]) && (t = (b ? p(o, r, t) : p(t)) || t);
16
- return b && t && E(o, r, t), t;
17
- }, L = (e, o, r) => o.has(e) || f("Cannot " + r), M = (e, o, r) => (L(e, o, "read from private field"), r ? r.call(e) : o.get(e)), D = (e, o, r) => o.has(e) ? f("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, r), n;
18
- const { baseClassNamePrefix: G, subElementClassPrefix: v, classModifierPrefix: s } = z("checkbox");
19
- let c = class extends _ {
13
+ }, m = (e, o, c, b) => {
14
+ for (var t = b > 1 ? void 0 : b ? B(o, c) : o, a = e.length - 1, s; a >= 0; a--)
15
+ (s = e[a]) && (t = (b ? s(o, c, t) : s(t)) || t);
16
+ return b && t && E(o, c, t), t;
17
+ }, L = (e, o, c) => o.has(e) || f("Cannot " + c), M = (e, o, c) => (L(e, o, "read from private field"), c ? c.call(e) : o.get(e)), D = (e, o, c) => o.has(e) ? f("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, c), n;
18
+ const { baseClassNamePrefix: G, subElementClassPrefix: v, classModifierPrefix: p } = z("checkbox");
19
+ let r = class extends _ {
20
20
  constructor() {
21
21
  super(...arguments), this.readOnly = !1, this.indeterminate = !1, this.disabled = !1, this.checked = !1, D(this, n, () => this.label ? h`<span>${this.label}</span>` : u);
22
22
  }
@@ -24,20 +24,20 @@ let c = class extends _ {
24
24
  this.readOnly && (e.preventDefault(), e.stopPropagation());
25
25
  }
26
26
  render() {
27
- const { ariaInvalid: e, ariaLabel: o } = this, r = !!e || !!this.error, {
27
+ const { ariaInvalid: e, ariaLabel: o } = this, c = !!e || !!this.error, {
28
28
  required: b,
29
29
  error: t,
30
30
  readOnly: a,
31
- disabled: p,
31
+ disabled: s,
32
32
  name: g
33
- } = this.inputChoiceGroupContext || {}, l = this.disabled || p, d = this.readOnly || a, x = w(
33
+ } = this.inputChoiceGroupContext || {}, l = this.disabled || s, d = this.readOnly || a, x = w(
34
34
  G,
35
35
  this.theme && C(this.theme),
36
- (this.error || t) && `${s}error`,
37
- this.label && `${s}with-label`,
38
- l && `${s}disabled`,
39
- d && `${s}read-only`,
40
- this.indeterminate && `${s}indeterminate`
36
+ (this.error || t) && `${p}error`,
37
+ this.label && `${p}with-label`,
38
+ l && `${p}disabled`,
39
+ d && `${p}read-only`,
40
+ this.indeterminate && `${p}indeterminate`
41
41
  );
42
42
  return h`
43
43
  <div class="${x}">
@@ -54,7 +54,7 @@ let c = class extends _ {
54
54
  class="${v}input"
55
55
  @click=${this.clickHandler}
56
56
  aria-label=${o}
57
- aria-invalid=${r || u}
57
+ aria-invalid=${c || u}
58
58
  />
59
59
  ${M(this, n).call(this)}
60
60
  </label>
@@ -63,42 +63,42 @@ let c = class extends _ {
63
63
  }
64
64
  };
65
65
  n = /* @__PURE__ */ new WeakMap();
66
- S(c);
67
- c.styles = y(O);
68
- i([
69
- m({ type: String })
70
- ], c.prototype, "theme", 2);
71
- i([
72
- m({ type: String })
73
- ], c.prototype, "label", 2);
74
- i([
75
- m({ type: String })
76
- ], c.prototype, "name", 2);
77
- i([
78
- m({ type: String })
79
- ], c.prototype, "value", 2);
80
- i([
81
- m({ type: Boolean })
82
- ], c.prototype, "error", 2);
83
- i([
84
- m({ type: Boolean })
85
- ], c.prototype, "readOnly", 2);
86
- i([
87
- m({ type: Boolean })
88
- ], c.prototype, "indeterminate", 2);
89
- i([
90
- m({ type: Boolean })
91
- ], c.prototype, "disabled", 2);
92
- i([
93
- m({ type: Boolean })
94
- ], c.prototype, "checked", 2);
95
- i([
66
+ S(r);
67
+ r.styles = y(O);
68
+ m([
69
+ i({ type: String })
70
+ ], r.prototype, "theme", 2);
71
+ m([
72
+ i({ type: String })
73
+ ], r.prototype, "label", 2);
74
+ m([
75
+ i({ type: String })
76
+ ], r.prototype, "name", 2);
77
+ m([
78
+ i({ type: String })
79
+ ], r.prototype, "value", 2);
80
+ m([
81
+ i({ type: Boolean })
82
+ ], r.prototype, "error", 2);
83
+ m([
84
+ i({ type: Boolean })
85
+ ], r.prototype, "readOnly", 2);
86
+ m([
87
+ i({ type: Boolean })
88
+ ], r.prototype, "indeterminate", 2);
89
+ m([
90
+ i({ type: Boolean })
91
+ ], r.prototype, "disabled", 2);
92
+ m([
93
+ i({ type: Boolean })
94
+ ], r.prototype, "checked", 2);
95
+ m([
96
96
  k({ context: P, subscribe: !0 }),
97
- m({ attribute: !1 })
98
- ], c.prototype, "inputChoiceGroupContext", 2);
99
- c = i([
97
+ i({ attribute: !1 })
98
+ ], r.prototype, "inputChoiceGroupContext", 2);
99
+ r = m([
100
100
  $("bm-checkbox")
101
- ], c);
101
+ ], r);
102
102
  export {
103
- c as BmCheckbox
103
+ r as BmCheckbox
104
104
  };