@viasat/beam-web-components 2.54.1 → 2.55.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viasat/beam-web-components",
3
- "version": "2.54.1",
3
+ "version": "2.55.1",
4
4
  "description": "Framework-agnostic web components for the Beam Design System built with Lit, compatible with Angular, Vue, Svelte, and vanilla JavaScript",
5
5
  "license": "MIT",
6
6
  "author": "Viasat",
@@ -64,11 +64,11 @@
64
64
  "access": "public"
65
65
  },
66
66
  "dependencies": {
67
- "@viasat/beam-fonts": "2.54.1",
68
- "@viasat/beam-shared": "2.54.1",
69
- "@viasat/beam-styles": "2.54.1",
70
- "@viasat/beam-tokens": "2.54.1",
71
- "@viasat/beam-icons": "2.54.1",
67
+ "@viasat/beam-fonts": "2.55.1",
68
+ "@viasat/beam-shared": "2.55.1",
69
+ "@viasat/beam-styles": "2.55.1",
70
+ "@viasat/beam-tokens": "2.55.1",
71
+ "@viasat/beam-icons": "2.55.1",
72
72
  "clsx": "^1.2.1",
73
73
  "lit": "^3.1.0",
74
74
  "@lit/context": "^1.1.1",
@@ -61,6 +61,79 @@
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
+ },
64
137
  {
65
138
  "name": "bm-avatar",
66
139
  "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",
@@ -203,75 +276,63 @@
203
276
  ]
204
277
  },
205
278
  {
206
- "name": "bm-alert",
207
- "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",
279
+ "name": "bm-breadcrumb",
280
+ "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",
208
281
  "attributes": [
209
282
  {
210
- "name": "heading",
211
- "description": "Specify the heading text for Alert",
283
+ "name": "wrap",
284
+ "description": "Specify if items wrap or collapse to an ellipsis",
212
285
  "values": []
213
286
  },
214
287
  {
215
- "name": "body",
216
- "description": "Specify the body text for Alert",
288
+ "name": "itemsBeforeCollapse",
289
+ "description": "Specify how many items show before ellipsis",
217
290
  "values": []
218
291
  },
219
292
  {
220
- "name": "size",
221
- "description": "Specify the size of the Alert",
222
- "values": [{ "name": "sm" }, { "name": "md" }]
223
- },
224
- {
225
- "name": "fullWidth",
226
- "description": "Specify if the Alert has no border radius",
293
+ "name": "itemsAfterCollapse",
294
+ "description": "Specify how many items show after ellipsis",
227
295
  "values": []
228
296
  },
229
297
  {
230
298
  "name": "theme",
231
- "description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
299
+ "description": "Specify the theme of the Breadcrumbs. By default, it inherits the theme from the parent",
232
300
  "values": [{ "name": "light" }, { "name": "dark" }]
233
- },
234
- {
235
- "name": "appearance",
236
- "description": "Specify the appearance of the Alert",
237
- "values": [
238
- { "name": "infoPrimary" },
239
- { "name": "infoSecondary" },
240
- { "name": "positive" },
241
- { "name": "warning" },
242
- { "name": "negative" }
243
- ]
244
- },
301
+ }
302
+ ],
303
+ "references": [
245
304
  {
246
- "name": "hidden",
247
- "description": "Specify if the Alert is hidden",
248
- "values": []
249
- },
305
+ "name": "Storybook",
306
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "name": "bm-breadcrumb-item",
312
+ "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",
313
+ "attributes": [
314
+ { "name": "href", "description": "Pass href to an item", "values": [] },
250
315
  {
251
- "name": "hideIcon",
252
- "description": "Specify if the icon displays on the Alert",
316
+ "name": "clickable",
317
+ "description": "Specify if the item is interactive without an href",
253
318
  "values": []
254
319
  },
255
320
  {
256
- "name": "dismissible",
257
- "description": "Specify if the Alert can be dismissed",
321
+ "name": "truncationWidth",
322
+ "description": "Specify truncation width of the items. Sets max-width for all items but the last.",
258
323
  "values": []
259
324
  },
260
325
  {
261
- "name": "disableAutoFocus",
262
- "description": "Prevent autofocus on show",
326
+ "name": "isCurrent",
327
+ "description": "Specify explicitly if the item is the last one",
263
328
  "values": []
264
329
  },
265
- {
266
- "name": "disableCloseOnEscape",
267
- "description": "Prevent Escape from closing",
268
- "values": []
269
- }
330
+ { "name": "isCollapsed", "values": [] }
270
331
  ],
271
332
  "references": [
272
333
  {
273
334
  "name": "Storybook",
274
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
335
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-breadcrumb"
275
336
  }
276
337
  ]
277
338
  },
@@ -716,67 +777,6 @@
716
777
  }
717
778
  ]
718
779
  },
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
- },
780
780
  {
781
781
  "name": "bm-button",
782
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",
@@ -1909,103 +1909,6 @@
1909
1909
  }
1910
1910
  ]
1911
1911
  },
1912
- {
1913
- "name": "bm-form",
1914
- "description": "`bm-form`\n---\n\n\n### **Events:**\n - **submit** - Validates the inputs and submits the form\n\n### **Slots:**\n - **slot** - Add controls to the Form",
1915
- "attributes": [
1916
- {
1917
- "name": "validationMode",
1918
- "description": "Specify if validation runs on change or when loosing focus",
1919
- "values": [
1920
- { "name": "onChange" },
1921
- { "name": "onBlur" },
1922
- { "name": "onSubmit" }
1923
- ]
1924
- },
1925
- {
1926
- "name": "initialValues",
1927
- "description": "Specify initial values on Form controls based on their names",
1928
- "values": [{ "name": "Record<string" }, { "name": "FormValue>" }]
1929
- },
1930
- {
1931
- "name": "required",
1932
- "description": "Specify if input is a required",
1933
- "values": []
1934
- },
1935
- {
1936
- "name": "disabled",
1937
- "description": "Specify if input is a disabled",
1938
- "values": []
1939
- },
1940
- {
1941
- "name": "readOnly",
1942
- "description": "Specify if input is a read only",
1943
- "values": []
1944
- },
1945
- { "name": "action", "values": [] },
1946
- { "name": "method", "values": [] },
1947
- { "name": "target", "values": [] },
1948
- { "name": "enctype", "values": [] }
1949
- ],
1950
- "references": [
1951
- {
1952
- "name": "Storybook",
1953
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-form"
1954
- }
1955
- ]
1956
- },
1957
- {
1958
- "name": "bm-radio-button",
1959
- "description": "`bm-radio-button`\n\n### Attributes:\n- **label** - Specify the text for the label\n- **error** - Specify error text and display error state of a RadioButton\n- **readOnly** - Specify if RadioButton displays in a read-only state\n- **disabled** - Specify if RadioButton displays in a disabled state\n- **theme** - Specify the theme of the RadioButton. By default it inherits the theme from the parent\n- **value** - The value attribute for the input element\n- **checked** - The checked attribute for the input element\n- **onKeyDown** - A user-defined function to handle keydown events\n---\n",
1960
- "attributes": [
1961
- {
1962
- "name": "label",
1963
- "description": "Specify the text for the label",
1964
- "values": []
1965
- },
1966
- {
1967
- "name": "error",
1968
- "description": "Specify error text and display error state of a RadioButton",
1969
- "values": []
1970
- },
1971
- {
1972
- "name": "readOnly",
1973
- "description": "Specify if RadioButton displays in a read-only state",
1974
- "values": []
1975
- },
1976
- {
1977
- "name": "disabled",
1978
- "description": "Specify if RadioButton displays in a disabled state",
1979
- "values": []
1980
- },
1981
- {
1982
- "name": "theme",
1983
- "description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
1984
- "values": [{ "name": "light" }, { "name": "dark" }]
1985
- },
1986
- {
1987
- "name": "value",
1988
- "description": "The value attribute for the input element",
1989
- "values": []
1990
- },
1991
- {
1992
- "name": "checked",
1993
- "description": "The checked attribute for the input element",
1994
- "values": []
1995
- },
1996
- {
1997
- "name": "onKeyDown",
1998
- "description": "A user-defined function to handle keydown events",
1999
- "values": [{ "name": "(event: KeyboardEvent) => void" }]
2000
- }
2001
- ],
2002
- "references": [
2003
- {
2004
- "name": "Storybook",
2005
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2006
- }
2007
- ]
2008
- },
2009
1912
  {
2010
1913
  "name": "bm-file-upload-button",
2011
1914
  "description": "`bm-file-upload-button`\n\n### Attributes:\n- **error** - Specify if FileUpload is in error state\n- **accept** - Specify the accepted file types\n- **multiple** - Specify if multiple files can be uploaded\n---\n\n\n### **Slots:**\n - **default** - Specify text 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",
@@ -2383,6 +2286,103 @@
2383
2286
  }
2384
2287
  ]
2385
2288
  },
2289
+ {
2290
+ "name": "bm-form",
2291
+ "description": "`bm-form`\n---\n\n\n### **Events:**\n - **submit** - Validates the inputs and submits the form\n\n### **Slots:**\n - **slot** - Add controls to the Form",
2292
+ "attributes": [
2293
+ {
2294
+ "name": "validationMode",
2295
+ "description": "Specify if validation runs on change or when loosing focus",
2296
+ "values": [
2297
+ { "name": "onChange" },
2298
+ { "name": "onBlur" },
2299
+ { "name": "onSubmit" }
2300
+ ]
2301
+ },
2302
+ {
2303
+ "name": "initialValues",
2304
+ "description": "Specify initial values on Form controls based on their names",
2305
+ "values": [{ "name": "Record<string" }, { "name": "FormValue>" }]
2306
+ },
2307
+ {
2308
+ "name": "required",
2309
+ "description": "Specify if input is a required",
2310
+ "values": []
2311
+ },
2312
+ {
2313
+ "name": "disabled",
2314
+ "description": "Specify if input is a disabled",
2315
+ "values": []
2316
+ },
2317
+ {
2318
+ "name": "readOnly",
2319
+ "description": "Specify if input is a read only",
2320
+ "values": []
2321
+ },
2322
+ { "name": "action", "values": [] },
2323
+ { "name": "method", "values": [] },
2324
+ { "name": "target", "values": [] },
2325
+ { "name": "enctype", "values": [] }
2326
+ ],
2327
+ "references": [
2328
+ {
2329
+ "name": "Storybook",
2330
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-form"
2331
+ }
2332
+ ]
2333
+ },
2334
+ {
2335
+ "name": "bm-radio-button",
2336
+ "description": "`bm-radio-button`\n\n### Attributes:\n- **label** - Specify the text for the label\n- **error** - Specify error text and display error state of a RadioButton\n- **readOnly** - Specify if RadioButton displays in a read-only state\n- **disabled** - Specify if RadioButton displays in a disabled state\n- **theme** - Specify the theme of the RadioButton. By default it inherits the theme from the parent\n- **value** - The value attribute for the input element\n- **checked** - The checked attribute for the input element\n- **onKeyDown** - A user-defined function to handle keydown events\n---\n",
2337
+ "attributes": [
2338
+ {
2339
+ "name": "label",
2340
+ "description": "Specify the text for the label",
2341
+ "values": []
2342
+ },
2343
+ {
2344
+ "name": "error",
2345
+ "description": "Specify error text and display error state of a RadioButton",
2346
+ "values": []
2347
+ },
2348
+ {
2349
+ "name": "readOnly",
2350
+ "description": "Specify if RadioButton displays in a read-only state",
2351
+ "values": []
2352
+ },
2353
+ {
2354
+ "name": "disabled",
2355
+ "description": "Specify if RadioButton displays in a disabled state",
2356
+ "values": []
2357
+ },
2358
+ {
2359
+ "name": "theme",
2360
+ "description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
2361
+ "values": [{ "name": "light" }, { "name": "dark" }]
2362
+ },
2363
+ {
2364
+ "name": "value",
2365
+ "description": "The value attribute for the input element",
2366
+ "values": []
2367
+ },
2368
+ {
2369
+ "name": "checked",
2370
+ "description": "The checked attribute for the input element",
2371
+ "values": []
2372
+ },
2373
+ {
2374
+ "name": "onKeyDown",
2375
+ "description": "A user-defined function to handle keydown events",
2376
+ "values": [{ "name": "(event: KeyboardEvent) => void" }]
2377
+ }
2378
+ ],
2379
+ "references": [
2380
+ {
2381
+ "name": "Storybook",
2382
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2383
+ }
2384
+ ]
2385
+ },
2386
2386
  {
2387
2387
  "name": "bm-text-area",
2388
2388
  "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",