@viasat/beam-web-components 2.38.1 → 2.39.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.38.1",
3
+ "version": "2.39.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.38.1",
68
- "@viasat/beam-shared": "2.38.1",
69
- "@viasat/beam-styles": "2.38.1",
70
- "@viasat/beam-tokens": "2.38.1",
71
- "@viasat/beam-icons": "2.38.1",
67
+ "@viasat/beam-fonts": "2.39.0",
68
+ "@viasat/beam-shared": "2.39.0",
69
+ "@viasat/beam-styles": "2.39.0",
70
+ "@viasat/beam-tokens": "2.39.0",
71
+ "@viasat/beam-icons": "2.39.0",
72
72
  "clsx": "^1.2.1",
73
73
  "lit": "^3.1.0",
74
74
  "@lit/context": "^1.1.1",
@@ -61,49 +61,6 @@
61
61
  }
62
62
  ]
63
63
  },
64
- {
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
- "attributes": [
68
- {
69
- "name": "appearance",
70
- "description": "Specify the appearance of the Badge",
71
- "values": [
72
- { "name": "infoPrimary" },
73
- { "name": "infoSecondary" },
74
- { "name": "positive" },
75
- { "name": "warning" },
76
- { "name": "negative" }
77
- ]
78
- },
79
- {
80
- "name": "theme",
81
- "description": "Theme of the Badge",
82
- "values": [{ "name": "light" }, { "name": "dark" }]
83
- },
84
- {
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": [] }
99
- ],
100
- "references": [
101
- {
102
- "name": "Storybook",
103
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
104
- }
105
- ]
106
- },
107
64
  {
108
65
  "name": "bm-alert",
109
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",
@@ -177,6 +134,49 @@
177
134
  }
178
135
  ]
179
136
  },
137
+ {
138
+ "name": "bm-badge",
139
+ "description": "`bm-badge`\n\n### Attributes:\n- **appearance** - Specify the appearance of the Badge\n- **theme** - Theme of the Badge\n- **size** - Specify the size of the Badge\n- **emphasis** - Specify the emphasis of the Badge\n- **hideIcon** - Hides Badge icon\n---\n\n\n### **Slots:**\n - **default** - Provide text for the Badge\n- **icon** - Specify a different icon for the Badge",
140
+ "attributes": [
141
+ {
142
+ "name": "appearance",
143
+ "description": "Specify the appearance of the Badge",
144
+ "values": [
145
+ { "name": "infoPrimary" },
146
+ { "name": "infoSecondary" },
147
+ { "name": "positive" },
148
+ { "name": "warning" },
149
+ { "name": "negative" }
150
+ ]
151
+ },
152
+ {
153
+ "name": "theme",
154
+ "description": "Theme of the Badge",
155
+ "values": [{ "name": "light" }, { "name": "dark" }]
156
+ },
157
+ {
158
+ "name": "size",
159
+ "description": "Specify the size of the Badge",
160
+ "values": [{ "name": "sm" }, { "name": "md" }]
161
+ },
162
+ {
163
+ "name": "emphasis",
164
+ "description": "Specify the emphasis of the Badge",
165
+ "values": [
166
+ { "name": "strong" },
167
+ { "name": "medium" },
168
+ { "name": "subtle" }
169
+ ]
170
+ },
171
+ { "name": "hideIcon", "description": "Hides Badge icon", "values": [] }
172
+ ],
173
+ "references": [
174
+ {
175
+ "name": "Storybook",
176
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-badge"
177
+ }
178
+ ]
179
+ },
180
180
  {
181
181
  "name": "bm-badge-dot",
182
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",
@@ -618,104 +618,6 @@
618
618
  }
619
619
  ]
620
620
  },
621
- {
622
- "name": "bm-avatar",
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",
624
- "attributes": [
625
- {
626
- "name": "appearance",
627
- "description": "Specify the appearance of the Avatar",
628
- "values": [{ "name": "accent" }, { "name": "neutral" }]
629
- },
630
- {
631
- "name": "name",
632
- "description": "Specify a name to display initials in the Avatar",
633
- "values": []
634
- },
635
- {
636
- "name": "src",
637
- "description": "Pass an image to the Avatar",
638
- "values": []
639
- },
640
- { "name": "alt", "description": "Specify alt for image", "values": [] },
641
- {
642
- "name": "size",
643
- "description": "Specify the size of the Avatar",
644
- "values": [
645
- { "name": "xs" },
646
- { "name": "sm" },
647
- { "name": "md" },
648
- { "name": "lg" },
649
- { "name": "xl" }
650
- ]
651
- },
652
- {
653
- "name": "disabled",
654
- "description": "Specify if the Avatar is disabled",
655
- "values": []
656
- },
657
- {
658
- "name": "shape",
659
- "description": "Specify the shape of the Avatar",
660
- "values": [{ "name": "circle" }, { "name": "square" }]
661
- },
662
- {
663
- "name": "isInteractive",
664
- "description": "If Avatar is interactive, use `isInteractive` to make the Avatar focusable and show state layer",
665
- "values": []
666
- },
667
- {
668
- "name": "isFocusable",
669
- "description": "If Avatar is not interactive and Tooltip is provided, use `isFocusable` to make the Avatar focusable",
670
- "values": []
671
- },
672
- { "name": "withBorder", "values": [] }
673
- ],
674
- "references": [
675
- {
676
- "name": "Storybook",
677
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-avatar"
678
- }
679
- ]
680
- },
681
- {
682
- "name": "bm-avatar-group",
683
- "description": "`bm-avatar-group`\n\n### Attributes:\n- **wrapping** - Specify if the AvatarGroup wraps\n- **maxCount** - Specify the max number of avatars displayed in the group.\n- **size** - Specify the size of all Avatars\n- **layout** - Specify the kind of the group.\n---\n\n\n### **Slots:**\n - **default** - Add Avatars to create a group",
684
- "attributes": [
685
- {
686
- "name": "wrapping",
687
- "description": "Specify if the AvatarGroup wraps",
688
- "values": []
689
- },
690
- {
691
- "name": "maxCount",
692
- "description": "Specify the max number of avatars displayed in the group.",
693
- "values": []
694
- },
695
- {
696
- "name": "size",
697
- "description": "Specify the size of all Avatars",
698
- "values": [
699
- { "name": "xs" },
700
- { "name": "sm" },
701
- { "name": "md" },
702
- { "name": "lg" },
703
- { "name": "xl" }
704
- ]
705
- },
706
- {
707
- "name": "layout",
708
- "description": "Specify the kind of the group.",
709
- "values": [{ "name": "stacked" }, { "name": "spaced" }]
710
- }
711
- ],
712
- "references": [
713
- {
714
- "name": "Storybook",
715
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-avatar"
716
- }
717
- ]
718
- },
719
621
  {
720
622
  "name": "bm-breadcrumb",
721
623
  "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",
@@ -845,6 +747,104 @@
845
747
  }
846
748
  ]
847
749
  },
750
+ {
751
+ "name": "bm-avatar",
752
+ "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",
753
+ "attributes": [
754
+ {
755
+ "name": "appearance",
756
+ "description": "Specify the appearance of the Avatar",
757
+ "values": [{ "name": "accent" }, { "name": "neutral" }]
758
+ },
759
+ {
760
+ "name": "name",
761
+ "description": "Specify a name to display initials in the Avatar",
762
+ "values": []
763
+ },
764
+ {
765
+ "name": "src",
766
+ "description": "Pass an image to the Avatar",
767
+ "values": []
768
+ },
769
+ { "name": "alt", "description": "Specify alt for image", "values": [] },
770
+ {
771
+ "name": "size",
772
+ "description": "Specify the size of the Avatar",
773
+ "values": [
774
+ { "name": "xs" },
775
+ { "name": "sm" },
776
+ { "name": "md" },
777
+ { "name": "lg" },
778
+ { "name": "xl" }
779
+ ]
780
+ },
781
+ {
782
+ "name": "disabled",
783
+ "description": "Specify if the Avatar is disabled",
784
+ "values": []
785
+ },
786
+ {
787
+ "name": "shape",
788
+ "description": "Specify the shape of the Avatar",
789
+ "values": [{ "name": "circle" }, { "name": "square" }]
790
+ },
791
+ {
792
+ "name": "isInteractive",
793
+ "description": "If Avatar is interactive, use `isInteractive` to make the Avatar focusable and show state layer",
794
+ "values": []
795
+ },
796
+ {
797
+ "name": "isFocusable",
798
+ "description": "If Avatar is not interactive and Tooltip is provided, use `isFocusable` to make the Avatar focusable",
799
+ "values": []
800
+ },
801
+ { "name": "withBorder", "values": [] }
802
+ ],
803
+ "references": [
804
+ {
805
+ "name": "Storybook",
806
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-avatar"
807
+ }
808
+ ]
809
+ },
810
+ {
811
+ "name": "bm-avatar-group",
812
+ "description": "`bm-avatar-group`\n\n### Attributes:\n- **wrapping** - Specify if the AvatarGroup wraps\n- **maxCount** - Specify the max number of avatars displayed in the group.\n- **size** - Specify the size of all Avatars\n- **layout** - Specify the kind of the group.\n---\n\n\n### **Slots:**\n - **default** - Add Avatars to create a group",
813
+ "attributes": [
814
+ {
815
+ "name": "wrapping",
816
+ "description": "Specify if the AvatarGroup wraps",
817
+ "values": []
818
+ },
819
+ {
820
+ "name": "maxCount",
821
+ "description": "Specify the max number of avatars displayed in the group.",
822
+ "values": []
823
+ },
824
+ {
825
+ "name": "size",
826
+ "description": "Specify the size of all Avatars",
827
+ "values": [
828
+ { "name": "xs" },
829
+ { "name": "sm" },
830
+ { "name": "md" },
831
+ { "name": "lg" },
832
+ { "name": "xl" }
833
+ ]
834
+ },
835
+ {
836
+ "name": "layout",
837
+ "description": "Specify the kind of the group.",
838
+ "values": [{ "name": "stacked" }, { "name": "spaced" }]
839
+ }
840
+ ],
841
+ "references": [
842
+ {
843
+ "name": "Storybook",
844
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-avatar"
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",
@@ -873,6 +873,38 @@
873
873
  }
874
874
  ]
875
875
  },
876
+ {
877
+ "name": "bm-empty-state",
878
+ "description": "`bm-empty-state`\n\n### Attributes:\n- **heading** - Specify heading text for EmptyState\n- **body** - Specify body text for EmptyState\n- **actions** - Specify action for EmptyState\n- **theme** - Specify the theme of EmptyState. By default it inherits the theme from the parent\n---\n\n\n### **Slots:**\n - **icon** - Specify an icon for EmptyState\n- **heading** - Specify heading text for EmptyState\n- **body** - Specify body text for EmptyState\n- **actions** - Add actions to EmptyState",
879
+ "attributes": [
880
+ {
881
+ "name": "heading",
882
+ "description": "Specify heading text for EmptyState",
883
+ "values": []
884
+ },
885
+ {
886
+ "name": "body",
887
+ "description": "Specify body text for EmptyState",
888
+ "values": []
889
+ },
890
+ {
891
+ "name": "actions",
892
+ "description": "Specify action for EmptyState",
893
+ "values": [{ "name": "HTMLSlotElement" }]
894
+ },
895
+ {
896
+ "name": "theme",
897
+ "description": "Specify the theme of EmptyState. By default it inherits the theme from the parent",
898
+ "values": [{ "name": "light" }, { "name": "dark" }]
899
+ }
900
+ ],
901
+ "references": [
902
+ {
903
+ "name": "Storybook",
904
+ "url": "https://web-components.beam.viasat.com/?path=/docs/components-emptystate"
905
+ }
906
+ ]
907
+ },
876
908
  {
877
909
  "name": "bm-divider",
878
910
  "description": "`bm-divider`\n\n### Attributes:\n- **orientation** - Specify the direction of the Divider\n- **borderColor** - Specify the border color of the divider line\n- **borderWidth** - Specify the width of the divider line\n- **borderStyle** - Specify the style of the divider line\n- **alignContent** - Align content to the divider line\n- **length** \n- **inset** - Add equal padding to each side of the Divider\n---\n\n\n### **Slots:**\n - **default** - Add text to the Divider\n- **icon** - Add an icon to the Divider",
@@ -957,38 +989,6 @@
957
989
  }
958
990
  ]
959
991
  },
960
- {
961
- "name": "bm-empty-state",
962
- "description": "`bm-empty-state`\n\n### Attributes:\n- **heading** - Specify heading text for EmptyState\n- **body** - Specify body text for EmptyState\n- **actions** - Specify action for EmptyState\n- **theme** - Specify the theme of EmptyState. By default it inherits the theme from the parent\n---\n\n\n### **Slots:**\n - **icon** - Specify an icon for EmptyState\n- **heading** - Specify heading text for EmptyState\n- **body** - Specify body text for EmptyState\n- **actions** - Add actions to EmptyState",
963
- "attributes": [
964
- {
965
- "name": "heading",
966
- "description": "Specify heading text for EmptyState",
967
- "values": []
968
- },
969
- {
970
- "name": "body",
971
- "description": "Specify body text for EmptyState",
972
- "values": []
973
- },
974
- {
975
- "name": "actions",
976
- "description": "Specify action for EmptyState",
977
- "values": [{ "name": "HTMLSlotElement" }]
978
- },
979
- {
980
- "name": "theme",
981
- "description": "Specify the theme of EmptyState. By default it inherits the theme from the parent",
982
- "values": [{ "name": "light" }, { "name": "dark" }]
983
- }
984
- ],
985
- "references": [
986
- {
987
- "name": "Storybook",
988
- "url": "https://web-components.beam.viasat.com/?path=/docs/components-emptystate"
989
- }
990
- ]
991
- },
992
992
  {
993
993
  "name": "bm-helper-text",
994
994
  "description": "### Attributes:\n- **appearance** - Specify the appearance of the HelperText\n- **size** - Specify the size of the HelperText\n- **disabled** - Specify if the message is disabled for HelpText\n- **hideIcon** - Specify if the icon displays on the HelperText\n- **text** - Add or customize content in the HelperText\n- **theme** - Specify the theme of the HelperText. By default it inherits the theme from the parent\n---\n\n\n### **Slots:**\n - **default** - Add or customize content in the HelperText\n- **icon** - Specify a different icon for the HelperText",
@@ -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",
@@ -2216,51 +2261,6 @@
2216
2261
  }
2217
2262
  ]
2218
2263
  },
2219
- {
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",
2222
- "attributes": [
2223
- {
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>" }]
2236
- },
2237
- {
2238
- "name": "required",
2239
- "description": "Specify if input is a required",
2240
- "values": []
2241
- },
2242
- {
2243
- "name": "disabled",
2244
- "description": "Specify if input is a disabled",
2245
- "values": []
2246
- },
2247
- {
2248
- "name": "readOnly",
2249
- "description": "Specify if input is a read only",
2250
- "values": []
2251
- },
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
2264
  {
2265
2265
  "name": "bm-native-select",
2266
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",