@viasat/beam-web-components 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/Accordion/Accordion.d.ts +56 -0
  2. package/Accordion/Accordion.js +12 -0
  3. package/Accordion/AccordionGroup.context.d.ts +10 -0
  4. package/Accordion/AccordionGroup.context.js +8 -0
  5. package/Accordion/AccordionGroup.d.ts +33 -0
  6. package/Accordion/AccordionGroup.js +79 -0
  7. package/Accordion/index.d.ts +3 -0
  8. package/Accordion/index.js +6 -0
  9. package/Alert/Alert.d.ts +64 -0
  10. package/Alert/Alert.js +300 -0
  11. package/Alert/index.d.ts +2 -0
  12. package/Alert/index.js +4 -0
  13. package/Avatar/Avatar.d.ts +60 -0
  14. package/Avatar/Avatar.js +12 -0
  15. package/Avatar/AvatarGroup.context.d.ts +11 -0
  16. package/Avatar/AvatarGroup.context.js +8 -0
  17. package/Avatar/AvatarGroup.d.ts +43 -0
  18. package/Avatar/AvatarGroup.js +181 -0
  19. package/Avatar/index.d.ts +3 -0
  20. package/Avatar/index.js +6 -0
  21. package/Badge/Badge.d.ts +40 -0
  22. package/Badge/Badge.js +125 -0
  23. package/Badge/index.d.ts +2 -0
  24. package/Badge/index.js +4 -0
  25. package/BadgeDot/BadgeDot.d.ts +38 -0
  26. package/BadgeDot/BadgeDot.js +59 -0
  27. package/BadgeDot/index.d.ts +2 -0
  28. package/BadgeDot/index.js +4 -0
  29. package/Box/Box.d.ts +99 -0
  30. package/Box/Box.js +115 -0
  31. package/Box/index.d.ts +2 -0
  32. package/Box/index.js +4 -0
  33. package/Breadcrumbs/Breadcrumbs.context.d.ts +10 -0
  34. package/Breadcrumbs/Breadcrumbs.context.js +8 -0
  35. package/Breadcrumbs/Breadcrumbs.d.ts +38 -0
  36. package/Breadcrumbs/Breadcrumbs.js +115 -0
  37. package/Breadcrumbs/BreadcrumbsItem.d.ts +39 -0
  38. package/Breadcrumbs/BreadcrumbsItem.js +13 -0
  39. package/Breadcrumbs/index.d.ts +3 -0
  40. package/Breadcrumbs/index.js +6 -0
  41. package/Button/Button.d.ts +73 -0
  42. package/Button/Button.js +125 -0
  43. package/Button/index.d.ts +2 -0
  44. package/Button/index.js +4 -0
  45. package/CloseButton/CloseButton.d.ts +25 -0
  46. package/CloseButton/CloseButton.js +60 -0
  47. package/CloseButton/index.d.ts +2 -0
  48. package/CloseButton/index.js +4 -0
  49. package/Divider/Divider.d.ts +56 -0
  50. package/Divider/Divider.js +111 -0
  51. package/Divider/index.d.ts +2 -0
  52. package/Divider/index.js +4 -0
  53. package/EmptyState/EmptyState.d.ts +36 -0
  54. package/EmptyState/EmptyState.js +56 -0
  55. package/EmptyState/index.d.ts +2 -0
  56. package/EmptyState/index.js +4 -0
  57. package/HelperText/HelperText.d.ts +45 -0
  58. package/HelperText/HelperText.js +11 -0
  59. package/HelperText/index.d.ts +2 -0
  60. package/HelperText/index.js +4 -0
  61. package/Icon/Icon.d.ts +35 -0
  62. package/Icon/Icon.js +62 -0
  63. package/Icon/index.d.ts +2 -0
  64. package/Icon/index.js +4 -0
  65. package/InputChoiceGroup/InputChoiceGroup.context.d.ts +13 -0
  66. package/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  67. package/InputChoiceGroup/InputChoiceGroup.d.ts +87 -0
  68. package/InputChoiceGroup/InputChoiceGroup.js +205 -0
  69. package/InputChoiceGroup/index.d.ts +2 -0
  70. package/InputChoiceGroup/index.js +4 -0
  71. package/Link/Link.d.ts +48 -0
  72. package/Link/Link.js +77 -0
  73. package/Link/index.d.ts +2 -0
  74. package/Link/index.js +4 -0
  75. package/List/List.context.d.ts +15 -0
  76. package/List/List.context.js +8 -0
  77. package/List/List.d.ts +43 -0
  78. package/List/List.js +101 -0
  79. package/List/ListItem.d.ts +23 -0
  80. package/List/ListItem.js +90 -0
  81. package/List/index.d.ts +3 -0
  82. package/List/index.js +6 -0
  83. package/ProgressBar/ProgressBar.d.ts +52 -0
  84. package/ProgressBar/ProgressBar.js +128 -0
  85. package/ProgressBar/index.d.ts +2 -0
  86. package/ProgressBar/index.js +4 -0
  87. package/README.md +360 -0
  88. package/SegmentedControl/SegmentedControl.context.d.ts +16 -0
  89. package/SegmentedControl/SegmentedControl.context.js +8 -0
  90. package/SegmentedControl/SegmentedControl.d.ts +41 -0
  91. package/SegmentedControl/SegmentedControl.js +103 -0
  92. package/SegmentedControl/SegmentedControlItem.d.ts +54 -0
  93. package/SegmentedControl/SegmentedControlItem.js +284 -0
  94. package/SegmentedControl/SegmentedControlList.d.ts +23 -0
  95. package/SegmentedControl/SegmentedControlList.js +61 -0
  96. package/SegmentedControl/SegmentedControlPanel.d.ts +21 -0
  97. package/SegmentedControl/SegmentedControlPanel.js +43 -0
  98. package/SegmentedControl/index.d.ts +5 -0
  99. package/SegmentedControl/index.js +10 -0
  100. package/Spinner/Spinner.d.ts +50 -0
  101. package/Spinner/Spinner.js +186 -0
  102. package/Spinner/index.d.ts +2 -0
  103. package/Spinner/index.js +4 -0
  104. package/StateLayer/StateLayer.d.ts +17 -0
  105. package/StateLayer/StateLayer.js +6 -0
  106. package/StateLayer/index.d.ts +2 -0
  107. package/StateLayer/index.js +5 -0
  108. package/Text/Text.d.ts +85 -0
  109. package/Text/Text.js +103 -0
  110. package/Text/index.d.ts +2 -0
  111. package/Text/index.js +4 -0
  112. package/Tooltip/Tooltip.d.ts +139 -0
  113. package/Tooltip/Tooltip.js +1827 -0
  114. package/Tooltip/index.d.ts +2 -0
  115. package/Tooltip/index.js +5 -0
  116. package/chunks/Accordion.DYD3XcAx.js +161 -0
  117. package/chunks/Avatar.C2rfzUGP.js +174 -0
  118. package/chunks/BreadcrumbsItem.4ZR6wbMz.js +121 -0
  119. package/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  120. package/chunks/HelperText.CcVVOtA3.js +108 -0
  121. package/chunks/Upload.B9YEyp7b.js +12 -0
  122. package/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  123. package/chunks/classNames.Cq_tbDRp.js +94 -0
  124. package/chunks/constants.jOWREYQE.js +30 -0
  125. package/chunks/delegate.baxDQosr.js +63 -0
  126. package/chunks/dom.C98AFbJh.js +22 -0
  127. package/chunks/fileUpload.module.kN6o64aL.js +4 -0
  128. package/chunks/globals.Bz4SVF2g.js +4 -0
  129. package/chunks/helpers.AwJwaZvv.js +53 -0
  130. package/chunks/list.module.CZRPBLzy.js +4 -0
  131. package/chunks/register-custom-element.DHGKOhmA.js +17 -0
  132. package/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  133. package/chunks/tokens.CTW8Tt94.js +9 -0
  134. package/custom-elements.json +11341 -0
  135. package/local/Accordion/Accordion.js +12 -0
  136. package/local/Accordion/AccordionGroup.context.js +8 -0
  137. package/local/Accordion/AccordionGroup.js +78 -0
  138. package/local/Accordion/index.js +6 -0
  139. package/local/Alert/Alert.js +301 -0
  140. package/local/Alert/index.js +4 -0
  141. package/local/Avatar/Avatar.js +11 -0
  142. package/local/Avatar/AvatarGroup.context.js +8 -0
  143. package/local/Avatar/AvatarGroup.js +180 -0
  144. package/local/Avatar/index.js +6 -0
  145. package/local/Badge/Badge.js +123 -0
  146. package/local/Badge/index.js +4 -0
  147. package/local/BadgeDot/BadgeDot.js +57 -0
  148. package/local/BadgeDot/index.js +4 -0
  149. package/local/Box/Box.js +113 -0
  150. package/local/Box/index.js +4 -0
  151. package/local/Breadcrumbs/Breadcrumbs.context.js +8 -0
  152. package/local/Breadcrumbs/Breadcrumbs.js +113 -0
  153. package/local/Breadcrumbs/BreadcrumbsItem.js +13 -0
  154. package/local/Breadcrumbs/index.js +6 -0
  155. package/local/Button/Button.js +154 -0
  156. package/local/Button/index.js +4 -0
  157. package/local/CloseButton/CloseButton.js +58 -0
  158. package/local/CloseButton/index.js +4 -0
  159. package/local/Divider/Divider.js +111 -0
  160. package/local/Divider/index.js +4 -0
  161. package/local/EmptyState/EmptyState.js +54 -0
  162. package/local/EmptyState/index.js +4 -0
  163. package/local/HelperText/HelperText.js +9 -0
  164. package/local/HelperText/index.js +4 -0
  165. package/local/Icon/Icon.js +60 -0
  166. package/local/Icon/index.js +4 -0
  167. package/local/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
  168. package/local/InputChoiceGroup/InputChoiceGroup.js +205 -0
  169. package/local/InputChoiceGroup/index.js +4 -0
  170. package/local/Link/Link.js +75 -0
  171. package/local/Link/index.js +4 -0
  172. package/local/List/List.context.js +8 -0
  173. package/local/List/List.js +101 -0
  174. package/local/List/ListItem.js +90 -0
  175. package/local/List/index.js +6 -0
  176. package/local/ProgressBar/ProgressBar.js +126 -0
  177. package/local/ProgressBar/index.js +4 -0
  178. package/local/SegmentedControl/SegmentedControl.context.js +8 -0
  179. package/local/SegmentedControl/SegmentedControl.js +103 -0
  180. package/local/SegmentedControl/SegmentedControlItem.js +284 -0
  181. package/local/SegmentedControl/SegmentedControlList.js +59 -0
  182. package/local/SegmentedControl/SegmentedControlPanel.js +41 -0
  183. package/local/SegmentedControl/index.js +10 -0
  184. package/local/Spinner/Spinner.js +185 -0
  185. package/local/Spinner/index.js +4 -0
  186. package/local/StateLayer/StateLayer.js +6 -0
  187. package/local/StateLayer/index.js +5 -0
  188. package/local/Text/Text.js +121 -0
  189. package/local/Text/index.js +4 -0
  190. package/local/Tooltip/Tooltip.js +1826 -0
  191. package/local/Tooltip/index.js +5 -0
  192. package/local/chunks/Accordion.PGU7OILE.js +161 -0
  193. package/local/chunks/Avatar.CvTOzaRT.js +172 -0
  194. package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +121 -0
  195. package/local/chunks/CSSLookup.BdqZ5Li9.js +106 -0
  196. package/local/chunks/Upload.B9YEyp7b.js +12 -0
  197. package/local/chunks/WarningOutlined.DPfQnPPj.js +12 -0
  198. package/local/chunks/base.D76d76ww.js +9 -0
  199. package/local/chunks/classNames.C6fNrXWF.js +106 -0
  200. package/local/chunks/constants.jOWREYQE.js +30 -0
  201. package/local/chunks/consume.Ce9k1-wN.js +47 -0
  202. package/local/chunks/context-request-event.Bl9Vpkzl.js +13 -0
  203. package/local/chunks/create-context.DS1OG3vJ.js +11 -0
  204. package/local/chunks/delegate.baxDQosr.js +63 -0
  205. package/local/chunks/directive.kLG6oqUu.js +27 -0
  206. package/local/chunks/dom.C98AFbJh.js +22 -0
  207. package/local/chunks/fileUpload.module.kN6o64aL.js +4 -0
  208. package/local/chunks/globals.Bz4SVF2g.js +4 -0
  209. package/local/chunks/helpers.BWcXAteC.js +53 -0
  210. package/local/chunks/index.Bz1Jq4c2.js +106 -0
  211. package/local/chunks/list.module.CZRPBLzy.js +4 -0
  212. package/local/chunks/lit-element.CJtt9wj5.js +557 -0
  213. package/local/chunks/provide.i2FlUkOu.js +110 -0
  214. package/local/chunks/query-assigned-elements.Drkgpk9q.js +19 -0
  215. package/local/chunks/query-assigned-nodes.Dgvsf6BR.js +19 -0
  216. package/local/chunks/query.lbpOn5CD.js +20 -0
  217. package/local/chunks/ref.B7e1Hu4F.js +107 -0
  218. package/local/chunks/register-custom-element.vod7zfGv.js +51 -0
  219. package/local/chunks/segmentedControl.module.BPXEWodj.js +4 -0
  220. package/local/chunks/state.CqiuSzAl.js +12 -0
  221. package/local/chunks/tokens.CTW8Tt94.js +9 -0
  222. package/local/chunks/unsafe-html.BzhXEygn.js +27 -0
  223. package/local/chunks/unsafe-svg.HSGf1NCU.js +14 -0
  224. package/local/wip/Checkbox/Checkbox.js +102 -0
  225. package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  226. package/local/wip/Checkbox/index.js +6 -0
  227. package/local/wip/FileUpload/FileUpload.Button.js +75 -0
  228. package/local/wip/FileUpload/FileUpload.Dropzone.js +149 -0
  229. package/local/wip/FileUpload/FileUpload.List.Item.js +201 -0
  230. package/local/wip/FileUpload/FileUpload.List.js +105 -0
  231. package/local/wip/FileUpload/FileUpload.js +452 -0
  232. package/local/wip/FileUpload/FileUploadContext.js +8 -0
  233. package/local/wip/FileUpload/FileUploadListContext.js +8 -0
  234. package/local/wip/FileUpload/index.js +13 -0
  235. package/local/wip/Form/Form.context.js +20 -0
  236. package/local/wip/Form/Form.decorator.js +145 -0
  237. package/local/wip/Form/Form.js +288 -0
  238. package/local/wip/Form/Form.utils.js +8 -0
  239. package/local/wip/Form/index.js +7 -0
  240. package/local/wip/Label/Label.js +86 -0
  241. package/local/wip/Label/index.js +4 -0
  242. package/local/wip/NativeSelect/NativeSelect.js +162 -0
  243. package/local/wip/NativeSelect/index.js +4 -0
  244. package/local/wip/RadioButton/RadioButton.js +123 -0
  245. package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  246. package/local/wip/RadioButton/index.js +6 -0
  247. package/local/wip/Switch/Switch.js +153 -0
  248. package/local/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  249. package/local/wip/Switch/index.js +6 -0
  250. package/local/wip/TextArea/TextArea.js +192 -0
  251. package/local/wip/TextArea/index.js +4 -0
  252. package/local/wip/TextField/TextField.js +169 -0
  253. package/local/wip/TextField/index.js +4 -0
  254. package/package.json +78 -0
  255. package/vscode.css-custom-data.json +6 -0
  256. package/vscode.html-custom-data.json +2704 -0
  257. package/wip/Checkbox/Checkbox.d.ts +55 -0
  258. package/wip/Checkbox/Checkbox.js +104 -0
  259. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  260. package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
  261. package/wip/Checkbox/index.d.ts +3 -0
  262. package/wip/Checkbox/index.js +6 -0
  263. package/wip/FileUpload/FileUpload.Button.d.ts +36 -0
  264. package/wip/FileUpload/FileUpload.Button.js +77 -0
  265. package/wip/FileUpload/FileUpload.Dropzone.d.ts +55 -0
  266. package/wip/FileUpload/FileUpload.Dropzone.js +150 -0
  267. package/wip/FileUpload/FileUpload.List.Item.d.ts +62 -0
  268. package/wip/FileUpload/FileUpload.List.Item.js +203 -0
  269. package/wip/FileUpload/FileUpload.List.d.ts +46 -0
  270. package/wip/FileUpload/FileUpload.List.js +106 -0
  271. package/wip/FileUpload/FileUpload.d.ts +101 -0
  272. package/wip/FileUpload/FileUpload.js +451 -0
  273. package/wip/FileUpload/FileUploadContext.d.ts +5 -0
  274. package/wip/FileUpload/FileUploadContext.js +8 -0
  275. package/wip/FileUpload/FileUploadListContext.d.ts +5 -0
  276. package/wip/FileUpload/FileUploadListContext.js +8 -0
  277. package/wip/FileUpload/index.d.ts +6 -0
  278. package/wip/FileUpload/index.js +13 -0
  279. package/wip/Form/Form.context.d.ts +19 -0
  280. package/wip/Form/Form.context.js +20 -0
  281. package/wip/Form/Form.d.ts +50 -0
  282. package/wip/Form/Form.decorator.d.ts +47 -0
  283. package/wip/Form/Form.decorator.js +144 -0
  284. package/wip/Form/Form.js +288 -0
  285. package/wip/Form/Form.utils.d.ts +2 -0
  286. package/wip/Form/Form.utils.js +8 -0
  287. package/wip/Form/index.d.ts +3 -0
  288. package/wip/Form/index.js +7 -0
  289. package/wip/Label/Label.d.ts +43 -0
  290. package/wip/Label/Label.js +87 -0
  291. package/wip/Label/index.d.ts +2 -0
  292. package/wip/Label/index.js +4 -0
  293. package/wip/NativeSelect/NativeSelect.d.ts +69 -0
  294. package/wip/NativeSelect/NativeSelect.js +163 -0
  295. package/wip/NativeSelect/index.d.ts +2 -0
  296. package/wip/NativeSelect/index.js +4 -0
  297. package/wip/RadioButton/RadioButton.d.ts +56 -0
  298. package/wip/RadioButton/RadioButton.js +125 -0
  299. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.d.ts +23 -0
  300. package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
  301. package/wip/RadioButton/index.d.ts +3 -0
  302. package/wip/RadioButton/index.js +6 -0
  303. package/wip/Switch/Switch.d.ts +62 -0
  304. package/wip/Switch/Switch.js +155 -0
  305. package/wip/Switch/SwitchGroup/SwitchGroup.d.ts +15 -0
  306. package/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
  307. package/wip/Switch/index.d.ts +3 -0
  308. package/wip/Switch/index.js +6 -0
  309. package/wip/TextArea/TextArea.d.ts +89 -0
  310. package/wip/TextArea/TextArea.js +193 -0
  311. package/wip/TextArea/index.d.ts +2 -0
  312. package/wip/TextArea/index.js +4 -0
  313. package/wip/TextField/TextField.d.ts +70 -0
  314. package/wip/TextField/TextField.js +169 -0
  315. package/wip/TextField/index.d.ts +2 -0
  316. package/wip/TextField/index.js +4 -0
package/List/List.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ import { LitElement } from 'lit';
2
+ import { ListKind, ListSize, ListDensity } from '@viasat/beam-shared/components/list';
3
+ import { ListContext } from './List.context';
4
+ /**
5
+ * @slot default - Add list items to create a List
6
+ */
7
+ export declare class BmList extends LitElement {
8
+ #private;
9
+ static styles: import('lit').CSSResult;
10
+ private listeners;
11
+ listContext: ListContext;
12
+ parentListContext: ListContext | undefined;
13
+ /**
14
+ * Specify the kind of List
15
+ * @default 'ordered'
16
+ */
17
+ kind?: ListKind;
18
+ /**
19
+ * Specify the size of List
20
+ * @default 'md'
21
+ */
22
+ size?: ListSize;
23
+ /**
24
+ * Specify the density of the List
25
+ * @default 'md'
26
+ */
27
+ density?: ListDensity;
28
+ /**
29
+ * Specify if the List has an indentation.
30
+ * Valid only for `unstyled` and `withIcons` List kinds.
31
+ * @default true
32
+ */
33
+ indent?: boolean;
34
+ updated(): void;
35
+ nested: boolean;
36
+ render(): import('lit-html').TemplateResult<1>;
37
+ }
38
+ declare global {
39
+ interface HTMLElementTagNameMap {
40
+ 'bm-list': BmList;
41
+ }
42
+ }
43
+ //# sourceMappingURL=List.d.ts.map
package/List/List.js ADDED
@@ -0,0 +1,101 @@
1
+ import { provide as w, consume as S } from "@lit/context";
2
+ import { unsafeCSS as P, LitElement as z, html as m } from "lit";
3
+ import { property as d, state as E } from "lit/decorators.js";
4
+ import c from "clsx";
5
+ import { g as M } from "../chunks/classNames.Cq_tbDRp.js";
6
+ import "../chunks/constants.jOWREYQE.js";
7
+ import { l as W } from "../chunks/list.module.CZRPBLzy.js";
8
+ import { c as B } from "../chunks/register-custom-element.DHGKOhmA.js";
9
+ import { ListContext as v } from "./List.context.js";
10
+ var N = Object.defineProperty, O = Object.getOwnPropertyDescriptor, _ = (t) => {
11
+ throw TypeError(t);
12
+ }, n = (t, e, s, a) => {
13
+ for (var o = a > 1 ? void 0 : a ? O(e, s) : e, h = t.length - 1, p; h >= 0; h--)
14
+ (p = t[h]) && (o = (a ? p(e, s, o) : p(o)) || o);
15
+ return a && o && N(e, s, o), o;
16
+ }, k = (t, e, s) => e.has(t) || _("Cannot " + s), y = (t, e, s) => (k(t, e, "read from private field"), s ? s.call(t) : e.get(t)), C = (t, e, s) => e.has(t) ? _("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), f = (t, e, s) => (k(t, e, "access private method"), s), x, u, l, L, $, g;
17
+ const { baseClassNamePrefix: I, classModifierPrefix: r } = M("list");
18
+ let i = class extends z {
19
+ constructor() {
20
+ super(...arguments), C(this, l), this.listeners = /* @__PURE__ */ new Set(), this.listContext = {
21
+ kind: void 0,
22
+ size: void 0,
23
+ density: void 0,
24
+ indent: void 0,
25
+ nestCount: 0,
26
+ register: (t) => y(this, x).call(this, t),
27
+ unregister: (t) => y(this, u).call(this, t)
28
+ }, this.indent = !0, C(this, x, (t) => {
29
+ this.listeners.add(t);
30
+ }), C(this, u, (t) => {
31
+ this.listeners.delete(t);
32
+ }), this.nested = !1;
33
+ }
34
+ updated() {
35
+ f(this, l, L).call(this);
36
+ }
37
+ render() {
38
+ f(this, l, $).call(this), f(this, l, g).call(this);
39
+ let t = c(
40
+ I,
41
+ `${r}${this.listContext.kind}`,
42
+ `${r}${this.listContext.size}`,
43
+ `${r}density-${this.listContext.density}`,
44
+ this.nested && `${r}density-${this.listContext.density}--nested`
45
+ );
46
+ if (this.listContext.kind === "ordered")
47
+ return m`
48
+ <ol class=${t}>
49
+ <slot></slot>
50
+ </ol>
51
+ `;
52
+ const e = this.listContext.kind === "unstyled" || this.listContext.kind === "withIcons" ? this.listContext.indent : !1;
53
+ return t = c(t, e && `${r}indent`), this.listContext.nestCount > 0 && this.listContext.kind === "withIcons" && (t = c(t, `${r}wcWithIcons`)), m`
54
+ <ul class=${t}>
55
+ <slot></slot>
56
+ </ul>
57
+ `;
58
+ }
59
+ };
60
+ x = /* @__PURE__ */ new WeakMap();
61
+ u = /* @__PURE__ */ new WeakMap();
62
+ l = /* @__PURE__ */ new WeakSet();
63
+ L = function() {
64
+ for (const t of this.listeners)
65
+ t.requestUpdate();
66
+ };
67
+ $ = function() {
68
+ var t, e, s;
69
+ this.listContext.kind = this.kind || ((t = this.parentListContext) == null ? void 0 : t.kind) || "ordered", this.listContext.size = this.size || ((e = this.parentListContext) == null ? void 0 : e.size) || "md", this.listContext.density = this.density || ((s = this.parentListContext) == null ? void 0 : s.density) || "md", this.listContext.indent = this.indent ?? !0;
70
+ };
71
+ g = function() {
72
+ this.parentListContext ? (this.listContext.kind === this.parentListContext.kind && (this.listContext.nestCount = this.parentListContext.nestCount + 1), this.nested = !0) : this.listContext.nestCount = 0;
73
+ };
74
+ i.styles = P(W);
75
+ n([
76
+ w({ context: v })
77
+ ], i.prototype, "listContext", 2);
78
+ n([
79
+ S({ context: v, subscribe: !0 })
80
+ ], i.prototype, "parentListContext", 2);
81
+ n([
82
+ d({ type: String })
83
+ ], i.prototype, "kind", 2);
84
+ n([
85
+ d({ type: String })
86
+ ], i.prototype, "size", 2);
87
+ n([
88
+ d({ type: String })
89
+ ], i.prototype, "density", 2);
90
+ n([
91
+ d({ type: Boolean })
92
+ ], i.prototype, "indent", 2);
93
+ n([
94
+ E()
95
+ ], i.prototype, "nested", 2);
96
+ i = n([
97
+ B("bm-list")
98
+ ], i);
99
+ export {
100
+ i as BmList
101
+ };
@@ -0,0 +1,23 @@
1
+ import { LitElement } from 'lit';
2
+ import { ListContext } from './List.context';
3
+ /**
4
+ * @slot icon - Specify an Icon for the List.Item
5
+ * @slot default - Specify the text for List.Item
6
+ */
7
+ export declare class BmListItem extends LitElement {
8
+ #private;
9
+ static styles: import('lit').CSSResult;
10
+ listContext: ListContext | undefined;
11
+ connectedCallback(): void;
12
+ disconnectedCallback(): void;
13
+ private _listComponents;
14
+ private _hasList;
15
+ updated(): void;
16
+ render(): import('lit-html').TemplateResult<1>;
17
+ }
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'bm-list-item': BmListItem;
21
+ }
22
+ }
23
+ //# sourceMappingURL=ListItem.d.ts.map
@@ -0,0 +1,90 @@
1
+ import { consume as _ } from "@lit/context";
2
+ import { unsafeCSS as v, LitElement as x, html as m, nothing as $ } from "lit";
3
+ import { queryAssignedElements as g, state as y } from "lit/decorators.js";
4
+ import { unsafeSVG as L } from "lit/directives/unsafe-svg.js";
5
+ import c from "clsx";
6
+ import "../chunks/constants.jOWREYQE.js";
7
+ import { g as w } from "../chunks/classNames.Cq_tbDRp.js";
8
+ import { l as S } from "../chunks/list.module.CZRPBLzy.js";
9
+ import { c as b } from "../chunks/register-custom-element.DHGKOhmA.js";
10
+ import { ListContext as E } from "./List.context.js";
11
+ const I = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
12
+ <path
13
+ fill-rule="evenodd"
14
+ clip-rule="evenodd"
15
+ d="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM5 4.99H8C8 6.65 6.66 8 5 8V4.99ZM5 12V10C7.76 10 10 7.75 10 4.99H12C12 8.86 8.87 12 5 12ZM5 18L8.5 13.5L11 16.51L14.5 12L19 18H5Z"
16
+ fill="currentColor"
17
+ />
18
+ </svg>
19
+ `, d = ["decimal", "lower-alpha", "lower-roman"], p = ["disc", "circle"];
20
+ var M = Object.defineProperty, k = Object.getOwnPropertyDescriptor, C = (t) => {
21
+ throw TypeError(t);
22
+ }, a = (t, s, e, n) => {
23
+ for (var i = n > 1 ? void 0 : n ? k(s, e) : s, l = t.length - 1, o; l >= 0; l--)
24
+ (o = t[l]) && (i = (n ? o(s, e, i) : o(i)) || i);
25
+ return n && i && M(s, e, i), i;
26
+ }, B = (t, s, e) => s.has(t) || C("Cannot " + e), H = (t, s, e) => s.has(t) ? C("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(t) : s.set(t, e), P = (t, s, e) => (B(t, s, "access private method"), e), h, u;
27
+ const { subElementClassPrefix: f } = w("list");
28
+ let r = class extends x {
29
+ constructor() {
30
+ super(...arguments), H(this, h), this._hasList = !1;
31
+ }
32
+ connectedCallback() {
33
+ var t, s;
34
+ super.connectedCallback(), (s = (t = this.listContext) == null ? void 0 : t.register) == null || s.call(t, this);
35
+ }
36
+ disconnectedCallback() {
37
+ var t, s;
38
+ super.disconnectedCallback(), (s = (t = this.listContext) == null ? void 0 : t.unregister) == null || s.call(t, this);
39
+ }
40
+ updated() {
41
+ this._hasList = this._listComponents.length > 0;
42
+ }
43
+ render() {
44
+ var e, n, i, l;
45
+ const t = `${f}item`;
46
+ let s = c(
47
+ t,
48
+ `${t}--${(e = this.listContext) == null ? void 0 : e.size}`,
49
+ !this._hasList && `${t}--density-${(n = this.listContext) == null ? void 0 : n.density}`
50
+ );
51
+ if (((i = this.listContext) == null ? void 0 : i.kind) === "ordered") {
52
+ const o = d[this.listContext.nestCount % d.length];
53
+ s = c(s, `${t}--${o}`);
54
+ }
55
+ if (((l = this.listContext) == null ? void 0 : l.kind) === "unordered") {
56
+ const o = p[this.listContext.nestCount % p.length];
57
+ s = c(s, `${t}--${o}`);
58
+ }
59
+ return m` <li class=${s}>
60
+ <span class=${`${t}__content`}>
61
+ ${P(this, h, u).call(this)}
62
+ <div>
63
+ <slot></slot>
64
+ </div>
65
+ </span>
66
+ </li>`;
67
+ }
68
+ };
69
+ h = /* @__PURE__ */ new WeakSet();
70
+ u = function() {
71
+ var e, n;
72
+ const t = L(I), s = `${f}item--${(e = this.listContext) == null ? void 0 : e.size}__icon`;
73
+ return m`${((n = this.listContext) == null ? void 0 : n.kind) === "withIcons" ? m`<slot name="icon" class=${s}>${t}</slot>` : $}`;
74
+ };
75
+ r.styles = v(S);
76
+ a([
77
+ _({ context: E, subscribe: !0 })
78
+ ], r.prototype, "listContext", 2);
79
+ a([
80
+ g({ selector: "bm-list" })
81
+ ], r.prototype, "_listComponents", 2);
82
+ a([
83
+ y()
84
+ ], r.prototype, "_hasList", 2);
85
+ r = a([
86
+ b("bm-list-item")
87
+ ], r);
88
+ export {
89
+ r as BmListItem
90
+ };
@@ -0,0 +1,3 @@
1
+ export * from './List';
2
+ export * from './ListItem';
3
+ //# sourceMappingURL=index.d.ts.map
package/List/index.js ADDED
@@ -0,0 +1,6 @@
1
+ import { BmList as o } from "./List.js";
2
+ import { BmListItem as e } from "./ListItem.js";
3
+ export {
4
+ o as BmList,
5
+ e as BmListItem
6
+ };
@@ -0,0 +1,52 @@
1
+ import { LitElement } from 'lit';
2
+ import { ProgressBarSize, ProgressBarState } from '@viasat/beam-shared/components/progressBar';
3
+ import { ThemeTypes } from '@viasat/beam-shared/utils/constants';
4
+ /**
5
+ * `bm-progress-bar`
6
+ */
7
+ export declare class BmProgressBar extends LitElement {
8
+ #private;
9
+ static styles: import('lit').CSSResult[];
10
+ /**
11
+ * Specify the ProgressBar state
12
+ * @default 'active'
13
+ */
14
+ state: ProgressBarState;
15
+ /**
16
+ * Specify the size of the ProgressBar
17
+ * @default 'md'
18
+ */
19
+ size: ProgressBarSize;
20
+ /**
21
+ * Provide text for the ProgressBar label
22
+ */
23
+ label?: string | undefined;
24
+ /**
25
+ * Specify helperText for ProgressBar. helperText is required for the Error state.
26
+ */
27
+ helperText?: string | undefined;
28
+ /**
29
+ * Specify if the ProgressBar has no corner radius
30
+ * @default false
31
+ */
32
+ fullWidth: boolean;
33
+ /**
34
+ * Specify the theme of the ProgressBar. By default it inherits the theme from the parent
35
+ */
36
+ theme: ThemeTypes | undefined;
37
+ /**
38
+ * Specify if a ProgressBar is determinate by setting a value between 0 and 100.
39
+ */
40
+ value?: number;
41
+ /**
42
+ * Specify the aria-label for the ProgressBar
43
+ */
44
+ progressbarAriaLabel?: string;
45
+ render(): import('lit-html').TemplateResult<1>;
46
+ }
47
+ declare global {
48
+ interface HTMLElementTagNameMap {
49
+ 'bm-progress-bar': BmProgressBar;
50
+ }
51
+ }
52
+ //# sourceMappingURL=ProgressBar.d.ts.map
@@ -0,0 +1,128 @@
1
+ import { unsafeCSS as k, LitElement as y, html as m, nothing as p } from "lit";
2
+ import { property as o } from "lit/decorators.js";
3
+ import $ from "clsx";
4
+ import { t as x } from "../chunks/constants.jOWREYQE.js";
5
+ import { g as w } from "../chunks/classNames.Cq_tbDRp.js";
6
+ import { r as z } from "../chunks/delegate.baxDQosr.js";
7
+ import { c as S } from "../chunks/register-custom-element.DHGKOhmA.js";
8
+ function P(r, e) {
9
+ if (r === "error")
10
+ return Math.max(4, e ?? 4);
11
+ if (r === "success")
12
+ return 100;
13
+ if (e !== void 0)
14
+ return Math.max(0, Math.min(100, e));
15
+ }
16
+ function C(r) {
17
+ return r === "success" ? {
18
+ appearance: "positive",
19
+ hideIcon: !1
20
+ } : r === "error" ? {
21
+ appearance: "negative",
22
+ hideIcon: !1
23
+ } : {
24
+ appearance: "info",
25
+ hideIcon: !0
26
+ };
27
+ }
28
+ const T = ':root,:host,.bm-light,.bm-dark .bm-inverse,[data-bm-theme~=bm-light]{--bm-comp-progress-bar-color-indicator-default: var( --bm-utility-color-accent-default, #00768f );--bm-comp-progress-bar-color-indicator-success: var( --bm-sem-color-surface-positive-strong, #187c36 );--bm-comp-progress-bar-color-indicator-error: var( --bm-sem-color-surface-negative-strong, #cc2429 );--bm-comp-progress-bar-color-track: var(--bm-sem-color-border-02, #d1dae0);--bm-comp-progress-bar-color-label: var(--bm-sem-color-text-primary, #141d24);--bm-comp-progress-bar-radius: var(--bm-sem-radius-round, 624.938rem);--bm-comp-progress-bar-space-label-bottom: var(--bm-sem-space-50, .5rem);--bm-comp-progress-bar-space-status-top: var(--bm-sem-space-25, .25rem);--bm-comp-progress-bar-size-sm-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-progress-bar-size-md-height: var( --bm-primitive-dimension-50, .5rem );--bm-comp-progress-bar-size-lg-height: var( --bm-primitive-dimension-75, .75rem );--bm-comp-progress-bar-typo-label: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" )}:host,.bm-dark,.bm-light .bm-inverse,[data-bm-theme~=bm-dark]{--bm-comp-progress-bar-color-indicator-default: var( --bm-utility-color-accent-default, #43bfd6 );--bm-comp-progress-bar-color-indicator-success: var( --bm-sem-color-surface-positive-strong, #b3eb9e );--bm-comp-progress-bar-color-indicator-error: var( --bm-sem-color-surface-negative-strong, #f67378 );--bm-comp-progress-bar-color-track: var(--bm-sem-color-border-02, #465967);--bm-comp-progress-bar-color-label: var(--bm-sem-color-text-primary, #ffffff);--bm-comp-progress-bar-radius: var(--bm-sem-radius-round, 624.938rem);--bm-comp-progress-bar-space-label-bottom: var(--bm-sem-space-50, .5rem);--bm-comp-progress-bar-space-status-top: var(--bm-sem-space-25, .25rem);--bm-comp-progress-bar-size-sm-height: var( --bm-primitive-dimension-25, .25rem );--bm-comp-progress-bar-size-md-height: var( --bm-primitive-dimension-50, .5rem );--bm-comp-progress-bar-size-lg-height: var( --bm-primitive-dimension-75, .75rem );--bm-comp-progress-bar-typo-label: var( --bm-sem-typo-body-md, 400 1rem/1.5rem "Source Sans Pro" )}.bm-progress-bar{display:flex;align-items:stretch;flex-direction:column}.bm-progress-bar .bm-progress-bar__label{margin-bottom:var(--bm-comp-progress-bar-space-label-bottom);font:var(--bm-comp-progress-bar-typo-label);color:var(--bm-comp-progress-bar-color-label)}.bm-progress-bar .bm-progress-bar__track{height:var(--bm-comp-progress-bar-size-md-height);border-radius:var(--bm-comp-progress-bar-radius);background-color:var(--bm-comp-progress-bar-color-track);display:flex;overflow:hidden}.bm-progress-bar .bm-progress-bar__status{margin-top:var(--bm-comp-progress-bar-space-status-top)}.bm-progress-bar--sm .bm-progress-bar__track{height:var(--bm-comp-progress-bar-size-sm-height)}.bm-progress-bar--lg .bm-progress-bar__track{height:var(--bm-comp-progress-bar-size-lg-height)}.bm-progress-bar--full-width .bm-progress-bar__track{border-radius:0}.bm-progress-bar--active .bm-progress-bar__indicator{background-color:var(--bm-comp-progress-bar-color-indicator-default)}.bm-progress-bar--success .bm-progress-bar__indicator{background-color:var(--bm-comp-progress-bar-color-indicator-success)}.bm-progress-bar--error .bm-progress-bar__indicator{background-color:var(--bm-comp-progress-bar-color-indicator-error)}.bm-progress-bar--determinate .bm-progress-bar__indicator{transition-property:width;transition-duration:.3s;transition-timing-function:ease-out}.bm-progress-bar--indeterminate.bm-progress-bar--active .bm-progress-bar__indicator{width:100%;-webkit-mask-image:linear-gradient(to right,transparent 43.0555555556%,black 50%,transparent 56.9444444444%);mask-image:linear-gradient(to right,transparent 43.0555555556%,black 50%,transparent 56.9444444444%);-webkit-mask-size:240%;mask-size:240%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;animation:2s linear infinite bm-progress-bar-indeterminate-indicator-animation}.bm-progress-bar--indeterminate.bm-progress-bar--active .bm-progress-bar__indicator:dir(rtl){animation-direction:reverse}@keyframes bm-progress-bar-indeterminate-indicator-animation{0%{-webkit-mask-position:right;mask-position:right}to{-webkit-mask-position:left;mask-position:left}}';
29
+ var W = Object.defineProperty, M = Object.getOwnPropertyDescriptor, _ = (r) => {
30
+ throw TypeError(r);
31
+ }, t = (r, e, s, c) => {
32
+ for (var i = c > 1 ? void 0 : c ? M(e, s) : e, l = r.length - 1, g; l >= 0; l--)
33
+ (g = r[l]) && (i = (c ? g(e, s, i) : g(i)) || i);
34
+ return c && i && W(e, s, i), i;
35
+ }, E = (r, e, s) => e.has(r) || _("Cannot " + s), d = (r, e, s) => (E(r, e, "read from private field"), s ? s.call(r) : e.get(r)), h = (r, e, s) => e.has(r) ? _("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, s), v, u, f;
36
+ const { baseClassNamePrefix: N, subElementClassPrefix: b, classModifierPrefix: n } = w("progress-bar");
37
+ let a = class extends y {
38
+ constructor() {
39
+ super(...arguments), this.state = "active", this.size = "md", this.fullWidth = !1, h(this, v, () => this.label ? m`<label
40
+ id="label"
41
+ for="progress"
42
+ class=${`${b}label`}
43
+ >${this.label}</label
44
+ >` : ""), h(this, u, (r) => {
45
+ const { progressbarAriaLabel: e } = this, s = P(this.state, this.value);
46
+ return m`<div
47
+ id="progress"
48
+ role="progressbar"
49
+ aria-label=${e ?? p}
50
+ aria-labelledby=${this.label ? "label" : p}
51
+ aria-describedby=${this.helperText ? "status" : p}
52
+ aria-valuemin="0"
53
+ aria-valuemax="100"
54
+ aria-valuenow=${this.value ?? p}
55
+ class=${`${b}track`}
56
+ >
57
+ ${r === "determinate" ? m`<div
58
+ class=${`${b}indicator`}
59
+ style=${s !== void 0 ? `width: ${s}%` : p}
60
+ ></div>` : m`<div class=${`${b}indicator`}></div>`}
61
+ </div>`;
62
+ }), h(this, f, () => {
63
+ if (!this.helperText)
64
+ return "";
65
+ const r = C(this.state);
66
+ return m`
67
+ <bm-helper-text
68
+ id="status"
69
+ class=${`${b}status`}
70
+ .hideIcon=${r.hideIcon}
71
+ appearance=${r.appearance}
72
+ text=${this.helperText}
73
+ ></bm-helper-text>
74
+ `;
75
+ });
76
+ }
77
+ render() {
78
+ const r = this.state !== "success" && this.value === void 0 ? "indeterminate" : "determinate", e = $(
79
+ N,
80
+ this.theme && x(this.theme),
81
+ `${n}${r}`,
82
+ `${n}${this.state}`,
83
+ this.size && `${n}${this.size}`,
84
+ this.fullWidth && `${n}full-width`,
85
+ this.className
86
+ );
87
+ return m`
88
+ <div class=${e}>
89
+ ${d(this, v).call(this)} ${d(this, u).call(this, r)} ${d(this, f).call(this)}
90
+ </div>
91
+ `;
92
+ }
93
+ };
94
+ v = /* @__PURE__ */ new WeakMap();
95
+ u = /* @__PURE__ */ new WeakMap();
96
+ f = /* @__PURE__ */ new WeakMap();
97
+ z(a);
98
+ a.styles = [k(T)];
99
+ t([
100
+ o({ type: String })
101
+ ], a.prototype, "state", 2);
102
+ t([
103
+ o({ type: String })
104
+ ], a.prototype, "size", 2);
105
+ t([
106
+ o({ type: String })
107
+ ], a.prototype, "label", 2);
108
+ t([
109
+ o({ type: String })
110
+ ], a.prototype, "helperText", 2);
111
+ t([
112
+ o({ type: Boolean })
113
+ ], a.prototype, "fullWidth", 2);
114
+ t([
115
+ o({ type: String })
116
+ ], a.prototype, "theme", 2);
117
+ t([
118
+ o({ type: Number })
119
+ ], a.prototype, "value", 2);
120
+ t([
121
+ o({ type: String })
122
+ ], a.prototype, "progressbarAriaLabel", 2);
123
+ a = t([
124
+ S("bm-progress-bar")
125
+ ], a);
126
+ export {
127
+ a as BmProgressBar
128
+ };
@@ -0,0 +1,2 @@
1
+ export * from './ProgressBar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { BmProgressBar as e } from "./ProgressBar.js";
2
+ export {
3
+ e as BmProgressBar
4
+ };