@viasat/beam-web-components 2.38.0 → 2.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/InputChoiceGroup/InputChoiceGroup.js +49 -49
- package/TextField/TextField.js +40 -40
- package/custom-elements.json +808 -808
- package/local/InputChoiceGroup/InputChoiceGroup.js +48 -48
- package/local/TextField/TextField.js +36 -36
- package/local/wip/Checkbox/Checkbox.js +11 -11
- package/local/wip/NativeSelect/NativeSelect.js +58 -58
- package/local/wip/RadioButton/RadioButton.js +40 -40
- package/local/wip/Switch/Switch.js +41 -41
- package/local/wip/TextArea/TextArea.js +98 -98
- package/package.json +6 -6
- package/vscode.html-custom-data.json +165 -165
- package/wip/Checkbox/Checkbox.js +32 -32
- package/wip/NativeSelect/NativeSelect.js +55 -55
- package/wip/RadioButton/RadioButton.js +25 -25
- package/wip/Switch/Switch.js +40 -40
- package/wip/TextArea/TextArea.js +100 -100
|
@@ -62,17 +62,12 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"name": "bm-badge
|
|
66
|
-
"description": "`bm-badge
|
|
65
|
+
"name": "bm-badge",
|
|
66
|
+
"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",
|
|
67
67
|
"attributes": [
|
|
68
|
-
{
|
|
69
|
-
"name": "theme",
|
|
70
|
-
"description": "Specify the theme of the BadgeDot. By default it inherits the theme from the parent",
|
|
71
|
-
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
72
|
-
},
|
|
73
68
|
{
|
|
74
69
|
"name": "appearance",
|
|
75
|
-
"description": "Specify the appearance of the
|
|
70
|
+
"description": "Specify the appearance of the Badge",
|
|
76
71
|
"values": [
|
|
77
72
|
{ "name": "infoPrimary" },
|
|
78
73
|
{ "name": "infoSecondary" },
|
|
@@ -82,30 +77,65 @@
|
|
|
82
77
|
]
|
|
83
78
|
},
|
|
84
79
|
{
|
|
85
|
-
"name": "
|
|
86
|
-
"description": "
|
|
87
|
-
"values": [{ "name": "
|
|
80
|
+
"name": "theme",
|
|
81
|
+
"description": "Theme of the Badge",
|
|
82
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
88
83
|
},
|
|
89
84
|
{
|
|
90
|
-
"name": "
|
|
91
|
-
"description": "
|
|
92
|
-
"values": []
|
|
93
|
-
}
|
|
85
|
+
"name": "size",
|
|
86
|
+
"description": "Specify the size of the Badge",
|
|
87
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "emphasis",
|
|
91
|
+
"description": "Specify the emphasis of the Badge",
|
|
92
|
+
"values": [
|
|
93
|
+
{ "name": "strong" },
|
|
94
|
+
{ "name": "medium" },
|
|
95
|
+
{ "name": "subtle" }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{ "name": "hideIcon", "description": "Hides Badge icon", "values": [] }
|
|
94
99
|
],
|
|
95
100
|
"references": [
|
|
96
101
|
{
|
|
97
102
|
"name": "Storybook",
|
|
98
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-
|
|
103
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
|
|
99
104
|
}
|
|
100
105
|
]
|
|
101
106
|
},
|
|
102
107
|
{
|
|
103
|
-
"name": "bm-
|
|
104
|
-
"description": "`bm-
|
|
108
|
+
"name": "bm-alert",
|
|
109
|
+
"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",
|
|
105
110
|
"attributes": [
|
|
111
|
+
{
|
|
112
|
+
"name": "heading",
|
|
113
|
+
"description": "Specify the heading text for Alert",
|
|
114
|
+
"values": []
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "body",
|
|
118
|
+
"description": "Specify the body text for Alert",
|
|
119
|
+
"values": []
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "size",
|
|
123
|
+
"description": "Specify the size of the Alert",
|
|
124
|
+
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "fullWidth",
|
|
128
|
+
"description": "Specify if the Alert has no border radius",
|
|
129
|
+
"values": []
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "theme",
|
|
133
|
+
"description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
|
|
134
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
135
|
+
},
|
|
106
136
|
{
|
|
107
137
|
"name": "appearance",
|
|
108
|
-
"description": "Specify the appearance of the
|
|
138
|
+
"description": "Specify the appearance of the Alert",
|
|
109
139
|
"values": [
|
|
110
140
|
{ "name": "infoPrimary" },
|
|
111
141
|
{ "name": "infoSecondary" },
|
|
@@ -114,31 +144,74 @@
|
|
|
114
144
|
{ "name": "negative" }
|
|
115
145
|
]
|
|
116
146
|
},
|
|
147
|
+
{
|
|
148
|
+
"name": "hidden",
|
|
149
|
+
"description": "Specify if the Alert is hidden",
|
|
150
|
+
"values": []
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "hideIcon",
|
|
154
|
+
"description": "Specify if the icon displays on the Alert",
|
|
155
|
+
"values": []
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "dismissible",
|
|
159
|
+
"description": "Specify if the Alert can be dismissed",
|
|
160
|
+
"values": []
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "disableAutoFocus",
|
|
164
|
+
"description": "Prevent autofocus on show",
|
|
165
|
+
"values": []
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "disableCloseOnEscape",
|
|
169
|
+
"description": "Prevent Escape from closing",
|
|
170
|
+
"values": []
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"references": [
|
|
174
|
+
{
|
|
175
|
+
"name": "Storybook",
|
|
176
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "bm-badge-dot",
|
|
182
|
+
"description": "`bm-badge-dot`\n\n### Attributes:\n- **theme** - Specify the theme of the BadgeDot. By default it inherits the theme from the parent\n- **appearance** - Specify the appearance of the BadgeDot\n- **emphasis** - Specify the emphasis of the BadgeDot\n- **overrideDotColor** - Overrides default dot color\n---\n\n\n### **Slots:**\n - **default** - Provide text for the BadgeDot",
|
|
183
|
+
"attributes": [
|
|
117
184
|
{
|
|
118
185
|
"name": "theme",
|
|
119
|
-
"description": "
|
|
186
|
+
"description": "Specify the theme of the BadgeDot. By default it inherits the theme from the parent",
|
|
120
187
|
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
121
188
|
},
|
|
122
189
|
{
|
|
123
|
-
"name": "
|
|
124
|
-
"description": "Specify the
|
|
125
|
-
"values": [
|
|
190
|
+
"name": "appearance",
|
|
191
|
+
"description": "Specify the appearance of the BadgeDot",
|
|
192
|
+
"values": [
|
|
193
|
+
{ "name": "infoPrimary" },
|
|
194
|
+
{ "name": "infoSecondary" },
|
|
195
|
+
{ "name": "positive" },
|
|
196
|
+
{ "name": "warning" },
|
|
197
|
+
{ "name": "negative" }
|
|
198
|
+
]
|
|
126
199
|
},
|
|
127
200
|
{
|
|
128
201
|
"name": "emphasis",
|
|
129
|
-
"description": "Specify the emphasis of the
|
|
130
|
-
"values": [
|
|
131
|
-
{ "name": "strong" },
|
|
132
|
-
{ "name": "medium" },
|
|
133
|
-
{ "name": "subtle" }
|
|
134
|
-
]
|
|
202
|
+
"description": "Specify the emphasis of the BadgeDot",
|
|
203
|
+
"values": [{ "name": "strong" }, { "name": "subtle" }]
|
|
135
204
|
},
|
|
136
|
-
{
|
|
205
|
+
{
|
|
206
|
+
"name": "overrideDotColor",
|
|
207
|
+
"description": "Overrides default dot color",
|
|
208
|
+
"values": []
|
|
209
|
+
}
|
|
137
210
|
],
|
|
138
211
|
"references": [
|
|
139
212
|
{
|
|
140
213
|
"name": "Storybook",
|
|
141
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-
|
|
214
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-badgedot"
|
|
142
215
|
}
|
|
143
216
|
]
|
|
144
217
|
},
|
|
@@ -545,67 +618,6 @@
|
|
|
545
618
|
}
|
|
546
619
|
]
|
|
547
620
|
},
|
|
548
|
-
{
|
|
549
|
-
"name": "bm-breadcrumb",
|
|
550
|
-
"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",
|
|
551
|
-
"attributes": [
|
|
552
|
-
{
|
|
553
|
-
"name": "wrap",
|
|
554
|
-
"description": "Specify if items wrap or collapse to an ellipsis",
|
|
555
|
-
"values": []
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"name": "itemsBeforeCollapse",
|
|
559
|
-
"description": "Specify how many items show before ellipsis",
|
|
560
|
-
"values": []
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
"name": "itemsAfterCollapse",
|
|
564
|
-
"description": "Specify how many items show after ellipsis",
|
|
565
|
-
"values": []
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"name": "theme",
|
|
569
|
-
"description": "Specify the theme of the Breadcrumbs. By default, it inherits the theme from the parent",
|
|
570
|
-
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
571
|
-
}
|
|
572
|
-
],
|
|
573
|
-
"references": [
|
|
574
|
-
{
|
|
575
|
-
"name": "Storybook",
|
|
576
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
|
|
577
|
-
}
|
|
578
|
-
]
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
"name": "bm-breadcrumb-item",
|
|
582
|
-
"description": "`bm-breadcrumb-item`\n\n### Attributes:\n- **href** - Pass href to an item\n- **clickable** - Specify if the item is interactive without an href\n- **truncationWidth** - Specify truncation width of the items. Sets max-width for all items but the last.\n- **isCurrent** - Specify explicitly if the item is the last one\n- **isCollapsed** \n---\n\n\n### **Slots:**\n - **default** - Pass text to an item\n- **icon** - Pass icon to an item",
|
|
583
|
-
"attributes": [
|
|
584
|
-
{ "name": "href", "description": "Pass href to an item", "values": [] },
|
|
585
|
-
{
|
|
586
|
-
"name": "clickable",
|
|
587
|
-
"description": "Specify if the item is interactive without an href",
|
|
588
|
-
"values": []
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
"name": "truncationWidth",
|
|
592
|
-
"description": "Specify truncation width of the items. Sets max-width for all items but the last.",
|
|
593
|
-
"values": []
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
"name": "isCurrent",
|
|
597
|
-
"description": "Specify explicitly if the item is the last one",
|
|
598
|
-
"values": []
|
|
599
|
-
},
|
|
600
|
-
{ "name": "isCollapsed", "values": [] }
|
|
601
|
-
],
|
|
602
|
-
"references": [
|
|
603
|
-
{
|
|
604
|
-
"name": "Storybook",
|
|
605
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
|
|
606
|
-
}
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
621
|
{
|
|
610
622
|
"name": "bm-avatar",
|
|
611
623
|
"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",
|
|
@@ -704,6 +716,67 @@
|
|
|
704
716
|
}
|
|
705
717
|
]
|
|
706
718
|
},
|
|
719
|
+
{
|
|
720
|
+
"name": "bm-breadcrumb",
|
|
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",
|
|
722
|
+
"attributes": [
|
|
723
|
+
{
|
|
724
|
+
"name": "wrap",
|
|
725
|
+
"description": "Specify if items wrap or collapse to an ellipsis",
|
|
726
|
+
"values": []
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "itemsBeforeCollapse",
|
|
730
|
+
"description": "Specify how many items show before ellipsis",
|
|
731
|
+
"values": []
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "itemsAfterCollapse",
|
|
735
|
+
"description": "Specify how many items show after ellipsis",
|
|
736
|
+
"values": []
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "theme",
|
|
740
|
+
"description": "Specify the theme of the Breadcrumbs. By default, it inherits the theme from the parent",
|
|
741
|
+
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"references": [
|
|
745
|
+
{
|
|
746
|
+
"name": "Storybook",
|
|
747
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"name": "bm-breadcrumb-item",
|
|
753
|
+
"description": "`bm-breadcrumb-item`\n\n### Attributes:\n- **href** - Pass href to an item\n- **clickable** - Specify if the item is interactive without an href\n- **truncationWidth** - Specify truncation width of the items. Sets max-width for all items but the last.\n- **isCurrent** - Specify explicitly if the item is the last one\n- **isCollapsed** \n---\n\n\n### **Slots:**\n - **default** - Pass text to an item\n- **icon** - Pass icon to an item",
|
|
754
|
+
"attributes": [
|
|
755
|
+
{ "name": "href", "description": "Pass href to an item", "values": [] },
|
|
756
|
+
{
|
|
757
|
+
"name": "clickable",
|
|
758
|
+
"description": "Specify if the item is interactive without an href",
|
|
759
|
+
"values": []
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "truncationWidth",
|
|
763
|
+
"description": "Specify truncation width of the items. Sets max-width for all items but the last.",
|
|
764
|
+
"values": []
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "isCurrent",
|
|
768
|
+
"description": "Specify explicitly if the item is the last one",
|
|
769
|
+
"values": []
|
|
770
|
+
},
|
|
771
|
+
{ "name": "isCollapsed", "values": [] }
|
|
772
|
+
],
|
|
773
|
+
"references": [
|
|
774
|
+
{
|
|
775
|
+
"name": "Storybook",
|
|
776
|
+
"url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
|
|
777
|
+
}
|
|
778
|
+
]
|
|
779
|
+
},
|
|
707
780
|
{
|
|
708
781
|
"name": "bm-button",
|
|
709
782
|
"description": "`bm-button`\n\n### Attributes:\n- **appearance** - Specify the appearance of a Button\n- **kind** - Specify the kind of Button\n- **size** - Specify the size of a Button\n- **disabled** - Specify if the Button is disabled\n- **fluid** - Specify if Button is fluid\n- **width** - Specify the width of a Button\n- **height** - Specify the height of a Button\n- **theme** - Specify the theme of the Button\n- **iconOnly** - Specify if the icon displays without text\n- **type** \n---\n\n\n### **Slots:**\n - **default** - Provide content for the Button\n- **iconBefore** - Specify if the Button displays icon before the text\n- **iconAfter** - Specify if the Button displays icon after the text",
|
|
@@ -772,79 +845,6 @@
|
|
|
772
845
|
}
|
|
773
846
|
]
|
|
774
847
|
},
|
|
775
|
-
{
|
|
776
|
-
"name": "bm-alert",
|
|
777
|
-
"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",
|
|
778
|
-
"attributes": [
|
|
779
|
-
{
|
|
780
|
-
"name": "heading",
|
|
781
|
-
"description": "Specify the heading text for Alert",
|
|
782
|
-
"values": []
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
"name": "body",
|
|
786
|
-
"description": "Specify the body text for Alert",
|
|
787
|
-
"values": []
|
|
788
|
-
},
|
|
789
|
-
{
|
|
790
|
-
"name": "size",
|
|
791
|
-
"description": "Specify the size of the Alert",
|
|
792
|
-
"values": [{ "name": "sm" }, { "name": "md" }]
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
"name": "fullWidth",
|
|
796
|
-
"description": "Specify if the Alert has no border radius",
|
|
797
|
-
"values": []
|
|
798
|
-
},
|
|
799
|
-
{
|
|
800
|
-
"name": "theme",
|
|
801
|
-
"description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
|
|
802
|
-
"values": [{ "name": "light" }, { "name": "dark" }]
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
"name": "appearance",
|
|
806
|
-
"description": "Specify the appearance of the Alert",
|
|
807
|
-
"values": [
|
|
808
|
-
{ "name": "infoPrimary" },
|
|
809
|
-
{ "name": "infoSecondary" },
|
|
810
|
-
{ "name": "positive" },
|
|
811
|
-
{ "name": "warning" },
|
|
812
|
-
{ "name": "negative" }
|
|
813
|
-
]
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"name": "hidden",
|
|
817
|
-
"description": "Specify if the Alert is hidden",
|
|
818
|
-
"values": []
|
|
819
|
-
},
|
|
820
|
-
{
|
|
821
|
-
"name": "hideIcon",
|
|
822
|
-
"description": "Specify if the icon displays on the Alert",
|
|
823
|
-
"values": []
|
|
824
|
-
},
|
|
825
|
-
{
|
|
826
|
-
"name": "dismissible",
|
|
827
|
-
"description": "Specify if the Alert can be dismissed",
|
|
828
|
-
"values": []
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"name": "disableAutoFocus",
|
|
832
|
-
"description": "Prevent autofocus on show",
|
|
833
|
-
"values": []
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"name": "disableCloseOnEscape",
|
|
837
|
-
"description": "Prevent Escape from closing",
|
|
838
|
-
"values": []
|
|
839
|
-
}
|
|
840
|
-
],
|
|
841
|
-
"references": [
|
|
842
|
-
{
|
|
843
|
-
"name": "Storybook",
|
|
844
|
-
"url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
|
|
845
|
-
}
|
|
846
|
-
]
|
|
847
|
-
},
|
|
848
848
|
{
|
|
849
849
|
"name": "bm-close-button",
|
|
850
850
|
"description": "`bm-close-button`\n\n### Attributes:\n- **size** - Specify the size of the CloseButton\n- **disabled** - Specify if the CloseButton is disabled\n---\n",
|
package/wip/Checkbox/Checkbox.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { consume as k } from "@lit/context";
|
|
2
|
-
import { unsafeCSS as y, LitElement as _, nothing as
|
|
2
|
+
import { unsafeCSS as y, LitElement as _, nothing as u, html as h } from "lit";
|
|
3
3
|
import { property as i } from "lit/decorators.js";
|
|
4
4
|
import w from "clsx";
|
|
5
5
|
import { g as z } from "../../chunks/classNames.BQclmCHG.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { r as
|
|
6
|
+
import { t as S } from "../../chunks/constants.ZIKMMCJH.js";
|
|
7
|
+
import { r as C } 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,.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-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-default, #00768f );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-default, #00768f );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-alias-color-brand-primary-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-sm: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" );--bm-comp-input-typo-md: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-lg: 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-sm: var(--bm-sem-space-75, .75rem);--bm-comp-input-space-field-x-md: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-x-lg: var(--bm-sem-space-125, 1.25rem);--bm-comp-input-space-field-y-sm: var(--bm-sem-space-25, .25rem);--bm-comp-input-space-field-y-md: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-y-lg: var(--bm-sem-space-75, .75rem);--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-height-sm: var(--bm-sem-size-height-sm, 2rem);--bm-comp-input-size-field-height-md: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-height-lg: var(--bm-sem-size-height-lg, 3rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-field-icon-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-icon-lg: 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-alias-color-brand-primary-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-alias-color-brand-primary-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-alias-color-brand-primary-default, #43bfd6 );--bm-comp-input-color-choice-radio-selected-inner-circle: var( --bm-alias-color-brand-primary-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-sm: var( --bm-sem-typo-compact-body-sm, 400 .875rem/1rem "Source Sans Pro" );--bm-comp-input-typo-md: var( --bm-sem-typo-compact-body-md, 400 1rem/1.25rem "Source Sans Pro" );--bm-comp-input-typo-lg: 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-sm: var(--bm-sem-space-75, .75rem);--bm-comp-input-space-field-x-md: var(--bm-sem-space-100, 1rem);--bm-comp-input-space-field-x-lg: var(--bm-sem-space-125, 1.25rem);--bm-comp-input-space-field-y-sm: var(--bm-sem-space-25, .25rem);--bm-comp-input-space-field-y-md: var(--bm-sem-space-50, .5rem);--bm-comp-input-space-field-y-lg: var(--bm-sem-space-75, .75rem);--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-height-sm: var(--bm-sem-size-height-sm, 2rem);--bm-comp-input-size-field-height-md: var(--bm-sem-size-height-md, 2.5rem);--bm-comp-input-size-field-height-lg: var(--bm-sem-size-height-lg, 3rem);--bm-comp-input-size-field-width: var(--bm-primitive-dimension-1800, 18rem);--bm-comp-input-size-field-icon-sm: var(--bm-sem-size-icon-sm, 1rem);--bm-comp-input-size-field-icon-md: var(--bm-sem-size-icon-md, 1.25rem);--bm-comp-input-size-field-icon-lg: 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-md);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
|
-
},
|
|
14
|
-
for (var
|
|
15
|
-
(s = e[
|
|
16
|
-
return
|
|
17
|
-
}, L = (e, o,
|
|
13
|
+
}, c = (e, o, m, a) => {
|
|
14
|
+
for (var b = a > 1 ? void 0 : a ? B(o, m) : o, t = e.length - 1, s; t >= 0; t--)
|
|
15
|
+
(s = e[t]) && (b = (a ? s(o, m, b) : s(b)) || b);
|
|
16
|
+
return a && b && E(o, m, b), b;
|
|
17
|
+
}, L = (e, o, m) => o.has(e) || f("Cannot " + m), M = (e, o, m) => (L(e, o, "read from private field"), m ? m.call(e) : o.get(e)), D = (e, o, m) => o.has(e) ? f("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(e) : o.set(e, m), n;
|
|
18
18
|
const { baseClassNamePrefix: G, subElementClassPrefix: v, classModifierPrefix: p } = z("checkbox");
|
|
19
19
|
let r = class extends _ {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this.readOnly = !1, this.indeterminate = !1, this.disabled = !1, this.checked = !1, D(this, n, () => this.label ?
|
|
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
|
}
|
|
23
23
|
clickHandler(e) {
|
|
24
24
|
this.readOnly && (e.preventDefault(), e.stopPropagation());
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
const { ariaInvalid: e, ariaLabel: o } = this,
|
|
28
|
-
required:
|
|
29
|
-
error:
|
|
30
|
-
readOnly:
|
|
27
|
+
const { ariaInvalid: e, ariaLabel: o } = this, m = !!e || !!this.error, {
|
|
28
|
+
required: a,
|
|
29
|
+
error: b,
|
|
30
|
+
readOnly: t,
|
|
31
31
|
disabled: s,
|
|
32
32
|
name: g
|
|
33
|
-
} = this.inputChoiceGroupContext || {}, l = this.disabled || s, d = this.readOnly ||
|
|
33
|
+
} = this.inputChoiceGroupContext || {}, l = this.disabled || s, d = this.readOnly || t, x = w(
|
|
34
34
|
G,
|
|
35
|
-
this.theme &&
|
|
36
|
-
(this.error ||
|
|
35
|
+
this.theme && S(this.theme),
|
|
36
|
+
(this.error || b) && `${p}error`,
|
|
37
37
|
this.label && `${p}with-label`,
|
|
38
38
|
l && `${p}disabled`,
|
|
39
39
|
d && `${p}read-only`,
|
|
40
40
|
this.indeterminate && `${p}indeterminate`
|
|
41
41
|
);
|
|
42
|
-
return
|
|
42
|
+
return h`
|
|
43
43
|
<div class="${x}">
|
|
44
44
|
<label tabindex="{-1}" class="${v}label">
|
|
45
45
|
<input
|
|
@@ -48,13 +48,13 @@ let r = class extends _ {
|
|
|
48
48
|
value=${this.value}
|
|
49
49
|
id=${this.id}
|
|
50
50
|
?checked=${this.checked}
|
|
51
|
-
?required=${
|
|
51
|
+
?required=${a}
|
|
52
52
|
?disabled=${l}
|
|
53
53
|
?readOnly=${d}
|
|
54
54
|
class="${v}input"
|
|
55
55
|
@click=${this.clickHandler}
|
|
56
56
|
aria-label=${o}
|
|
57
|
-
aria-invalid=${
|
|
57
|
+
aria-invalid=${m || u}
|
|
58
58
|
/>
|
|
59
59
|
${M(this, n).call(this)}
|
|
60
60
|
</label>
|
|
@@ -63,40 +63,40 @@ let r = class extends _ {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
n = /* @__PURE__ */ new WeakMap();
|
|
66
|
-
|
|
66
|
+
C(r);
|
|
67
67
|
r.styles = y(O);
|
|
68
|
-
|
|
68
|
+
c([
|
|
69
69
|
i({ type: String })
|
|
70
70
|
], r.prototype, "theme", 2);
|
|
71
|
-
|
|
71
|
+
c([
|
|
72
72
|
i({ type: String })
|
|
73
73
|
], r.prototype, "label", 2);
|
|
74
|
-
|
|
74
|
+
c([
|
|
75
75
|
i({ type: String })
|
|
76
76
|
], r.prototype, "name", 2);
|
|
77
|
-
|
|
77
|
+
c([
|
|
78
78
|
i({ type: String })
|
|
79
79
|
], r.prototype, "value", 2);
|
|
80
|
-
|
|
80
|
+
c([
|
|
81
81
|
i({ type: Boolean })
|
|
82
82
|
], r.prototype, "error", 2);
|
|
83
|
-
|
|
83
|
+
c([
|
|
84
84
|
i({ type: Boolean })
|
|
85
85
|
], r.prototype, "readOnly", 2);
|
|
86
|
-
|
|
86
|
+
c([
|
|
87
87
|
i({ type: Boolean })
|
|
88
88
|
], r.prototype, "indeterminate", 2);
|
|
89
|
-
|
|
89
|
+
c([
|
|
90
90
|
i({ type: Boolean })
|
|
91
91
|
], r.prototype, "disabled", 2);
|
|
92
|
-
|
|
92
|
+
c([
|
|
93
93
|
i({ type: Boolean })
|
|
94
94
|
], r.prototype, "checked", 2);
|
|
95
|
-
|
|
95
|
+
c([
|
|
96
96
|
k({ context: P, subscribe: !0 }),
|
|
97
97
|
i({ attribute: !1 })
|
|
98
98
|
], r.prototype, "inputChoiceGroupContext", 2);
|
|
99
|
-
r =
|
|
99
|
+
r = c([
|
|
100
100
|
$("bm-checkbox")
|
|
101
101
|
], r);
|
|
102
102
|
export {
|