@viasat/beam-web-components 2.68.0 → 2.69.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viasat/beam-web-components",
3
- "version": "2.68.0",
3
+ "version": "2.69.0",
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.68.0",
68
- "@viasat/beam-shared": "2.68.0",
69
- "@viasat/beam-styles": "2.68.0",
70
- "@viasat/beam-tokens": "2.68.0",
71
- "@viasat/beam-icons": "2.68.0",
67
+ "@viasat/beam-fonts": "2.69.0",
68
+ "@viasat/beam-shared": "2.69.0",
69
+ "@viasat/beam-styles": "2.69.0",
70
+ "@viasat/beam-tokens": "2.69.0",
71
+ "@viasat/beam-icons": "2.69.0",
72
72
  "clsx": "^1.2.1",
73
73
  "lit": "^3.1.0",
74
74
  "@lit/context": "^1.1.1",
@@ -606,79 +606,6 @@
606
606
  }
607
607
  ]
608
608
  },
609
- {
610
- "name": "bm-alert",
611
- "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",
612
- "attributes": [
613
- {
614
- "name": "heading",
615
- "description": "Specify the heading text for Alert",
616
- "values": []
617
- },
618
- {
619
- "name": "body",
620
- "description": "Specify the body text for Alert",
621
- "values": []
622
- },
623
- {
624
- "name": "size",
625
- "description": "Specify the size of the Alert",
626
- "values": [{ "name": "sm" }, { "name": "md" }]
627
- },
628
- {
629
- "name": "fullWidth",
630
- "description": "Specify if the Alert has no border radius",
631
- "values": []
632
- },
633
- {
634
- "name": "theme",
635
- "description": "Specify the theme of the Alert. By default it inherits the theme from the parent",
636
- "values": [{ "name": "light" }, { "name": "dark" }]
637
- },
638
- {
639
- "name": "appearance",
640
- "description": "Specify the appearance of the Alert",
641
- "values": [
642
- { "name": "infoPrimary" },
643
- { "name": "infoSecondary" },
644
- { "name": "positive" },
645
- { "name": "warning" },
646
- { "name": "negative" }
647
- ]
648
- },
649
- {
650
- "name": "hidden",
651
- "description": "Specify if the Alert is hidden",
652
- "values": []
653
- },
654
- {
655
- "name": "hideIcon",
656
- "description": "Specify if the icon displays on the Alert",
657
- "values": []
658
- },
659
- {
660
- "name": "dismissible",
661
- "description": "Specify if the Alert can be dismissed",
662
- "values": []
663
- },
664
- {
665
- "name": "disableAutoFocus",
666
- "description": "Prevent autofocus on show",
667
- "values": []
668
- },
669
- {
670
- "name": "disableCloseOnEscape",
671
- "description": "Prevent Escape from closing",
672
- "values": []
673
- }
674
- ],
675
- "references": [
676
- {
677
- "name": "Storybook",
678
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-alert"
679
- }
680
- ]
681
- },
682
609
  {
683
610
  "name": "bm-button",
684
611
  "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",
@@ -845,6 +772,79 @@
845
772
  }
846
773
  ]
847
774
  },
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",
@@ -1909,6 +1909,51 @@
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
+ },
1912
1957
  {
1913
1958
  "name": "bm-file-upload-button",
1914
1959
  "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",
@@ -2217,99 +2262,72 @@
2217
2262
  ]
2218
2263
  },
2219
2264
  {
2220
- "name": "bm-form",
2221
- "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",
2265
+ "name": "bm-native-select",
2266
+ "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",
2222
2267
  "attributes": [
2223
2268
  {
2224
- "name": "validationMode",
2225
- "description": "Specify if validation runs on change or when loosing focus",
2226
- "values": [
2227
- { "name": "onChange" },
2228
- { "name": "onBlur" },
2229
- { "name": "onSubmit" }
2230
- ]
2231
- },
2232
- {
2233
- "name": "initialValues",
2234
- "description": "Specify initial values on Form controls based on their names",
2235
- "values": [{ "name": "Record<string" }, { "name": "FormValue>" }]
2269
+ "name": "required",
2270
+ "description": "Specify if NativeSelect is a required input",
2271
+ "values": []
2236
2272
  },
2237
2273
  {
2238
- "name": "required",
2239
- "description": "Specify if input is a required",
2274
+ "name": "readOnly",
2275
+ "description": "Specify if NativeSelect displays in a read-only state",
2240
2276
  "values": []
2241
2277
  },
2242
2278
  {
2243
2279
  "name": "disabled",
2244
- "description": "Specify if input is a disabled",
2280
+ "description": "Specify if NativeSelect displays in a disabled state",
2245
2281
  "values": []
2246
2282
  },
2247
2283
  {
2248
- "name": "readOnly",
2249
- "description": "Specify if input is a read only",
2284
+ "name": "error",
2285
+ "description": "Specify error text and display error state of a NativeSelect",
2250
2286
  "values": []
2251
2287
  },
2252
- { "name": "action", "values": [] },
2253
- { "name": "method", "values": [] },
2254
- { "name": "target", "values": [] },
2255
- { "name": "enctype", "values": [] }
2256
- ],
2257
- "references": [
2258
- {
2259
- "name": "Storybook",
2260
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-form"
2261
- }
2262
- ]
2263
- },
2264
- {
2265
- "name": "bm-radio-button",
2266
- "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",
2267
- "attributes": [
2268
2288
  {
2269
- "name": "label",
2270
- "description": "Specify the text for the label",
2289
+ "name": "fluid",
2290
+ "description": "Specify if NativeSelect is fluid",
2271
2291
  "values": []
2272
2292
  },
2273
2293
  {
2274
- "name": "error",
2275
- "description": "Specify error text and display error state of a RadioButton",
2294
+ "name": "size",
2295
+ "description": "Specify the size of NativeSelect",
2296
+ "values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
2297
+ },
2298
+ {
2299
+ "name": "width",
2300
+ "description": "Specify the width of NativeSelect",
2276
2301
  "values": []
2277
2302
  },
2278
2303
  {
2279
- "name": "readOnly",
2280
- "description": "Specify if RadioButton displays in a read-only state",
2304
+ "name": "ellipse",
2305
+ "description": "Specify if overflow displays ellipsis",
2281
2306
  "values": []
2282
2307
  },
2283
2308
  {
2284
- "name": "disabled",
2285
- "description": "Specify if RadioButton displays in a disabled state",
2309
+ "name": "hideRequiredMarker",
2310
+ "description": "Specify if the NativeSelect displays with an asterisk",
2286
2311
  "values": []
2287
2312
  },
2288
2313
  {
2289
2314
  "name": "theme",
2290
- "description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
2315
+ "description": "Specify the theme of the NativeSelect. By default it inherits the theme from the parent",
2291
2316
  "values": [{ "name": "light" }, { "name": "dark" }]
2292
2317
  },
2318
+ { "name": "id", "values": [] },
2319
+ { "name": "name", "values": [] },
2320
+ { "name": "value", "values": [] },
2293
2321
  {
2294
- "name": "value",
2295
- "description": "The value attribute for the input element",
2296
- "values": []
2297
- },
2298
- {
2299
- "name": "checked",
2300
- "description": "The checked attribute for the input element",
2301
- "values": []
2322
+ "name": "validationRules",
2323
+ "values": [{ "name": "Array<FormValidator>" }]
2302
2324
  },
2303
- {
2304
- "name": "onKeyDown",
2305
- "description": "A user-defined function to handle keydown events",
2306
- "values": [{ "name": "(event: KeyboardEvent) => void" }]
2307
- }
2325
+ { "name": "input-aria-label", "values": [] }
2308
2326
  ],
2309
2327
  "references": [
2310
2328
  {
2311
2329
  "name": "Storybook",
2312
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2330
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-nativeselect"
2313
2331
  }
2314
2332
  ]
2315
2333
  },
@@ -2356,76 +2374,6 @@
2356
2374
  }
2357
2375
  ]
2358
2376
  },
2359
- {
2360
- "name": "bm-native-select",
2361
- "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",
2362
- "attributes": [
2363
- {
2364
- "name": "required",
2365
- "description": "Specify if NativeSelect is a required input",
2366
- "values": []
2367
- },
2368
- {
2369
- "name": "readOnly",
2370
- "description": "Specify if NativeSelect displays in a read-only state",
2371
- "values": []
2372
- },
2373
- {
2374
- "name": "disabled",
2375
- "description": "Specify if NativeSelect displays in a disabled state",
2376
- "values": []
2377
- },
2378
- {
2379
- "name": "error",
2380
- "description": "Specify error text and display error state of a NativeSelect",
2381
- "values": []
2382
- },
2383
- {
2384
- "name": "fluid",
2385
- "description": "Specify if NativeSelect is fluid",
2386
- "values": []
2387
- },
2388
- {
2389
- "name": "size",
2390
- "description": "Specify the size of NativeSelect",
2391
- "values": [{ "name": "sm" }, { "name": "md" }, { "name": "lg" }]
2392
- },
2393
- {
2394
- "name": "width",
2395
- "description": "Specify the width of NativeSelect",
2396
- "values": []
2397
- },
2398
- {
2399
- "name": "ellipse",
2400
- "description": "Specify if overflow displays ellipsis",
2401
- "values": []
2402
- },
2403
- {
2404
- "name": "hideRequiredMarker",
2405
- "description": "Specify if the NativeSelect displays with an asterisk",
2406
- "values": []
2407
- },
2408
- {
2409
- "name": "theme",
2410
- "description": "Specify the theme of the NativeSelect. By default it inherits the theme from the parent",
2411
- "values": [{ "name": "light" }, { "name": "dark" }]
2412
- },
2413
- { "name": "id", "values": [] },
2414
- { "name": "name", "values": [] },
2415
- { "name": "value", "values": [] },
2416
- {
2417
- "name": "validationRules",
2418
- "values": [{ "name": "Array<FormValidator>" }]
2419
- },
2420
- { "name": "input-aria-label", "values": [] }
2421
- ],
2422
- "references": [
2423
- {
2424
- "name": "Storybook",
2425
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-nativeselect"
2426
- }
2427
- ]
2428
- },
2429
2377
  {
2430
2378
  "name": "bm-text-area",
2431
2379
  "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",
@@ -2516,6 +2464,58 @@
2516
2464
  }
2517
2465
  ]
2518
2466
  },
2467
+ {
2468
+ "name": "bm-radio-button",
2469
+ "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",
2470
+ "attributes": [
2471
+ {
2472
+ "name": "label",
2473
+ "description": "Specify the text for the label",
2474
+ "values": []
2475
+ },
2476
+ {
2477
+ "name": "error",
2478
+ "description": "Specify error text and display error state of a RadioButton",
2479
+ "values": []
2480
+ },
2481
+ {
2482
+ "name": "readOnly",
2483
+ "description": "Specify if RadioButton displays in a read-only state",
2484
+ "values": []
2485
+ },
2486
+ {
2487
+ "name": "disabled",
2488
+ "description": "Specify if RadioButton displays in a disabled state",
2489
+ "values": []
2490
+ },
2491
+ {
2492
+ "name": "theme",
2493
+ "description": "Specify the theme of the RadioButton. By default it inherits the theme from the parent",
2494
+ "values": [{ "name": "light" }, { "name": "dark" }]
2495
+ },
2496
+ {
2497
+ "name": "value",
2498
+ "description": "The value attribute for the input element",
2499
+ "values": []
2500
+ },
2501
+ {
2502
+ "name": "checked",
2503
+ "description": "The checked attribute for the input element",
2504
+ "values": []
2505
+ },
2506
+ {
2507
+ "name": "onKeyDown",
2508
+ "description": "A user-defined function to handle keydown events",
2509
+ "values": [{ "name": "(event: KeyboardEvent) => void" }]
2510
+ }
2511
+ ],
2512
+ "references": [
2513
+ {
2514
+ "name": "Storybook",
2515
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2516
+ }
2517
+ ]
2518
+ },
2519
2519
  {
2520
2520
  "name": "bm-checkbox-group",
2521
2521
  "description": "\n---\n\n\n### **Slots:**\n - **label** - Add label text to the InputChoiceGroup\n- **helperText** - Add helper text to the InputChoiceGroup",
@@ -2586,8 +2586,8 @@
2586
2586
  ]
2587
2587
  },
2588
2588
  {
2589
- "name": "bm-radio-button-group",
2590
- "description": "\n---\n\n\n### **Slots:**\n - **label** - Add label text to the InputChoiceGroup\n- **helperText** - Add helper text to the InputChoiceGroup",
2589
+ "name": "bm-switch-group",
2590
+ "description": "`bm-switch-group`\n---\n\n\n### **Slots:**\n - **label** - Slot for the label of the SwitchGroup\n- **helperText** - Slot for the helper text of the SwitchGroup",
2591
2591
  "attributes": [
2592
2592
  {
2593
2593
  "name": "theme",
@@ -2650,13 +2650,13 @@
2650
2650
  "references": [
2651
2651
  {
2652
2652
  "name": "Storybook",
2653
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2653
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-switch"
2654
2654
  }
2655
2655
  ]
2656
2656
  },
2657
2657
  {
2658
- "name": "bm-switch-group",
2659
- "description": "`bm-switch-group`\n---\n\n\n### **Slots:**\n - **label** - Slot for the label of the SwitchGroup\n- **helperText** - Slot for the helper text of the SwitchGroup",
2658
+ "name": "bm-radio-button-group",
2659
+ "description": "\n---\n\n\n### **Slots:**\n - **label** - Add label text to the InputChoiceGroup\n- **helperText** - Add helper text to the InputChoiceGroup",
2660
2660
  "attributes": [
2661
2661
  {
2662
2662
  "name": "theme",
@@ -2719,7 +2719,7 @@
2719
2719
  "references": [
2720
2720
  {
2721
2721
  "name": "Storybook",
2722
- "url": "https://web-components.beam.viasat.com/?path=/docs/forms-switch"
2722
+ "url": "https://web-components.beam.viasat.com/?path=/docs/forms-radiobutton"
2723
2723
  }
2724
2724
  ]
2725
2725
  }