@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.
- package/Accordion/Accordion.d.ts +56 -0
- package/Accordion/Accordion.js +12 -0
- package/Accordion/AccordionGroup.context.d.ts +10 -0
- package/Accordion/AccordionGroup.context.js +8 -0
- package/Accordion/AccordionGroup.d.ts +33 -0
- package/Accordion/AccordionGroup.js +79 -0
- package/Accordion/index.d.ts +3 -0
- package/Accordion/index.js +6 -0
- package/Alert/Alert.d.ts +64 -0
- package/Alert/Alert.js +300 -0
- package/Alert/index.d.ts +2 -0
- package/Alert/index.js +4 -0
- package/Avatar/Avatar.d.ts +60 -0
- package/Avatar/Avatar.js +12 -0
- package/Avatar/AvatarGroup.context.d.ts +11 -0
- package/Avatar/AvatarGroup.context.js +8 -0
- package/Avatar/AvatarGroup.d.ts +43 -0
- package/Avatar/AvatarGroup.js +181 -0
- package/Avatar/index.d.ts +3 -0
- package/Avatar/index.js +6 -0
- package/Badge/Badge.d.ts +40 -0
- package/Badge/Badge.js +125 -0
- package/Badge/index.d.ts +2 -0
- package/Badge/index.js +4 -0
- package/BadgeDot/BadgeDot.d.ts +38 -0
- package/BadgeDot/BadgeDot.js +59 -0
- package/BadgeDot/index.d.ts +2 -0
- package/BadgeDot/index.js +4 -0
- package/Box/Box.d.ts +99 -0
- package/Box/Box.js +115 -0
- package/Box/index.d.ts +2 -0
- package/Box/index.js +4 -0
- package/Breadcrumbs/Breadcrumbs.context.d.ts +10 -0
- package/Breadcrumbs/Breadcrumbs.context.js +8 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +38 -0
- package/Breadcrumbs/Breadcrumbs.js +115 -0
- package/Breadcrumbs/BreadcrumbsItem.d.ts +39 -0
- package/Breadcrumbs/BreadcrumbsItem.js +13 -0
- package/Breadcrumbs/index.d.ts +3 -0
- package/Breadcrumbs/index.js +6 -0
- package/Button/Button.d.ts +73 -0
- package/Button/Button.js +125 -0
- package/Button/index.d.ts +2 -0
- package/Button/index.js +4 -0
- package/CloseButton/CloseButton.d.ts +25 -0
- package/CloseButton/CloseButton.js +60 -0
- package/CloseButton/index.d.ts +2 -0
- package/CloseButton/index.js +4 -0
- package/Divider/Divider.d.ts +56 -0
- package/Divider/Divider.js +111 -0
- package/Divider/index.d.ts +2 -0
- package/Divider/index.js +4 -0
- package/EmptyState/EmptyState.d.ts +36 -0
- package/EmptyState/EmptyState.js +56 -0
- package/EmptyState/index.d.ts +2 -0
- package/EmptyState/index.js +4 -0
- package/HelperText/HelperText.d.ts +45 -0
- package/HelperText/HelperText.js +11 -0
- package/HelperText/index.d.ts +2 -0
- package/HelperText/index.js +4 -0
- package/Icon/Icon.d.ts +35 -0
- package/Icon/Icon.js +62 -0
- package/Icon/index.d.ts +2 -0
- package/Icon/index.js +4 -0
- package/InputChoiceGroup/InputChoiceGroup.context.d.ts +13 -0
- package/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
- package/InputChoiceGroup/InputChoiceGroup.d.ts +87 -0
- package/InputChoiceGroup/InputChoiceGroup.js +205 -0
- package/InputChoiceGroup/index.d.ts +2 -0
- package/InputChoiceGroup/index.js +4 -0
- package/Link/Link.d.ts +48 -0
- package/Link/Link.js +77 -0
- package/Link/index.d.ts +2 -0
- package/Link/index.js +4 -0
- package/List/List.context.d.ts +15 -0
- package/List/List.context.js +8 -0
- package/List/List.d.ts +43 -0
- package/List/List.js +101 -0
- package/List/ListItem.d.ts +23 -0
- package/List/ListItem.js +90 -0
- package/List/index.d.ts +3 -0
- package/List/index.js +6 -0
- package/ProgressBar/ProgressBar.d.ts +52 -0
- package/ProgressBar/ProgressBar.js +128 -0
- package/ProgressBar/index.d.ts +2 -0
- package/ProgressBar/index.js +4 -0
- package/README.md +360 -0
- package/SegmentedControl/SegmentedControl.context.d.ts +16 -0
- package/SegmentedControl/SegmentedControl.context.js +8 -0
- package/SegmentedControl/SegmentedControl.d.ts +41 -0
- package/SegmentedControl/SegmentedControl.js +103 -0
- package/SegmentedControl/SegmentedControlItem.d.ts +54 -0
- package/SegmentedControl/SegmentedControlItem.js +284 -0
- package/SegmentedControl/SegmentedControlList.d.ts +23 -0
- package/SegmentedControl/SegmentedControlList.js +61 -0
- package/SegmentedControl/SegmentedControlPanel.d.ts +21 -0
- package/SegmentedControl/SegmentedControlPanel.js +43 -0
- package/SegmentedControl/index.d.ts +5 -0
- package/SegmentedControl/index.js +10 -0
- package/Spinner/Spinner.d.ts +50 -0
- package/Spinner/Spinner.js +186 -0
- package/Spinner/index.d.ts +2 -0
- package/Spinner/index.js +4 -0
- package/StateLayer/StateLayer.d.ts +17 -0
- package/StateLayer/StateLayer.js +6 -0
- package/StateLayer/index.d.ts +2 -0
- package/StateLayer/index.js +5 -0
- package/Text/Text.d.ts +85 -0
- package/Text/Text.js +103 -0
- package/Text/index.d.ts +2 -0
- package/Text/index.js +4 -0
- package/Tooltip/Tooltip.d.ts +139 -0
- package/Tooltip/Tooltip.js +1827 -0
- package/Tooltip/index.d.ts +2 -0
- package/Tooltip/index.js +5 -0
- package/chunks/Accordion.DYD3XcAx.js +161 -0
- package/chunks/Avatar.C2rfzUGP.js +174 -0
- package/chunks/BreadcrumbsItem.4ZR6wbMz.js +121 -0
- package/chunks/CSSLookup.BdqZ5Li9.js +106 -0
- package/chunks/HelperText.CcVVOtA3.js +108 -0
- package/chunks/Upload.B9YEyp7b.js +12 -0
- package/chunks/WarningOutlined.DPfQnPPj.js +12 -0
- package/chunks/classNames.Cq_tbDRp.js +94 -0
- package/chunks/constants.jOWREYQE.js +30 -0
- package/chunks/delegate.baxDQosr.js +63 -0
- package/chunks/dom.C98AFbJh.js +22 -0
- package/chunks/fileUpload.module.kN6o64aL.js +4 -0
- package/chunks/globals.Bz4SVF2g.js +4 -0
- package/chunks/helpers.AwJwaZvv.js +53 -0
- package/chunks/list.module.CZRPBLzy.js +4 -0
- package/chunks/register-custom-element.DHGKOhmA.js +17 -0
- package/chunks/segmentedControl.module.BPXEWodj.js +4 -0
- package/chunks/tokens.CTW8Tt94.js +9 -0
- package/custom-elements.json +11341 -0
- package/local/Accordion/Accordion.js +12 -0
- package/local/Accordion/AccordionGroup.context.js +8 -0
- package/local/Accordion/AccordionGroup.js +78 -0
- package/local/Accordion/index.js +6 -0
- package/local/Alert/Alert.js +301 -0
- package/local/Alert/index.js +4 -0
- package/local/Avatar/Avatar.js +11 -0
- package/local/Avatar/AvatarGroup.context.js +8 -0
- package/local/Avatar/AvatarGroup.js +180 -0
- package/local/Avatar/index.js +6 -0
- package/local/Badge/Badge.js +123 -0
- package/local/Badge/index.js +4 -0
- package/local/BadgeDot/BadgeDot.js +57 -0
- package/local/BadgeDot/index.js +4 -0
- package/local/Box/Box.js +113 -0
- package/local/Box/index.js +4 -0
- package/local/Breadcrumbs/Breadcrumbs.context.js +8 -0
- package/local/Breadcrumbs/Breadcrumbs.js +113 -0
- package/local/Breadcrumbs/BreadcrumbsItem.js +13 -0
- package/local/Breadcrumbs/index.js +6 -0
- package/local/Button/Button.js +154 -0
- package/local/Button/index.js +4 -0
- package/local/CloseButton/CloseButton.js +58 -0
- package/local/CloseButton/index.js +4 -0
- package/local/Divider/Divider.js +111 -0
- package/local/Divider/index.js +4 -0
- package/local/EmptyState/EmptyState.js +54 -0
- package/local/EmptyState/index.js +4 -0
- package/local/HelperText/HelperText.js +9 -0
- package/local/HelperText/index.js +4 -0
- package/local/Icon/Icon.js +60 -0
- package/local/Icon/index.js +4 -0
- package/local/InputChoiceGroup/InputChoiceGroup.context.js +8 -0
- package/local/InputChoiceGroup/InputChoiceGroup.js +205 -0
- package/local/InputChoiceGroup/index.js +4 -0
- package/local/Link/Link.js +75 -0
- package/local/Link/index.js +4 -0
- package/local/List/List.context.js +8 -0
- package/local/List/List.js +101 -0
- package/local/List/ListItem.js +90 -0
- package/local/List/index.js +6 -0
- package/local/ProgressBar/ProgressBar.js +126 -0
- package/local/ProgressBar/index.js +4 -0
- package/local/SegmentedControl/SegmentedControl.context.js +8 -0
- package/local/SegmentedControl/SegmentedControl.js +103 -0
- package/local/SegmentedControl/SegmentedControlItem.js +284 -0
- package/local/SegmentedControl/SegmentedControlList.js +59 -0
- package/local/SegmentedControl/SegmentedControlPanel.js +41 -0
- package/local/SegmentedControl/index.js +10 -0
- package/local/Spinner/Spinner.js +185 -0
- package/local/Spinner/index.js +4 -0
- package/local/StateLayer/StateLayer.js +6 -0
- package/local/StateLayer/index.js +5 -0
- package/local/Text/Text.js +121 -0
- package/local/Text/index.js +4 -0
- package/local/Tooltip/Tooltip.js +1826 -0
- package/local/Tooltip/index.js +5 -0
- package/local/chunks/Accordion.PGU7OILE.js +161 -0
- package/local/chunks/Avatar.CvTOzaRT.js +172 -0
- package/local/chunks/BreadcrumbsItem.GM6sBp_o.js +121 -0
- package/local/chunks/CSSLookup.BdqZ5Li9.js +106 -0
- package/local/chunks/Upload.B9YEyp7b.js +12 -0
- package/local/chunks/WarningOutlined.DPfQnPPj.js +12 -0
- package/local/chunks/base.D76d76ww.js +9 -0
- package/local/chunks/classNames.C6fNrXWF.js +106 -0
- package/local/chunks/constants.jOWREYQE.js +30 -0
- package/local/chunks/consume.Ce9k1-wN.js +47 -0
- package/local/chunks/context-request-event.Bl9Vpkzl.js +13 -0
- package/local/chunks/create-context.DS1OG3vJ.js +11 -0
- package/local/chunks/delegate.baxDQosr.js +63 -0
- package/local/chunks/directive.kLG6oqUu.js +27 -0
- package/local/chunks/dom.C98AFbJh.js +22 -0
- package/local/chunks/fileUpload.module.kN6o64aL.js +4 -0
- package/local/chunks/globals.Bz4SVF2g.js +4 -0
- package/local/chunks/helpers.BWcXAteC.js +53 -0
- package/local/chunks/index.Bz1Jq4c2.js +106 -0
- package/local/chunks/list.module.CZRPBLzy.js +4 -0
- package/local/chunks/lit-element.CJtt9wj5.js +557 -0
- package/local/chunks/provide.i2FlUkOu.js +110 -0
- package/local/chunks/query-assigned-elements.Drkgpk9q.js +19 -0
- package/local/chunks/query-assigned-nodes.Dgvsf6BR.js +19 -0
- package/local/chunks/query.lbpOn5CD.js +20 -0
- package/local/chunks/ref.B7e1Hu4F.js +107 -0
- package/local/chunks/register-custom-element.vod7zfGv.js +51 -0
- package/local/chunks/segmentedControl.module.BPXEWodj.js +4 -0
- package/local/chunks/state.CqiuSzAl.js +12 -0
- package/local/chunks/tokens.CTW8Tt94.js +9 -0
- package/local/chunks/unsafe-html.BzhXEygn.js +27 -0
- package/local/chunks/unsafe-svg.HSGf1NCU.js +14 -0
- package/local/wip/Checkbox/Checkbox.js +102 -0
- package/local/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
- package/local/wip/Checkbox/index.js +6 -0
- package/local/wip/FileUpload/FileUpload.Button.js +75 -0
- package/local/wip/FileUpload/FileUpload.Dropzone.js +149 -0
- package/local/wip/FileUpload/FileUpload.List.Item.js +201 -0
- package/local/wip/FileUpload/FileUpload.List.js +105 -0
- package/local/wip/FileUpload/FileUpload.js +452 -0
- package/local/wip/FileUpload/FileUploadContext.js +8 -0
- package/local/wip/FileUpload/FileUploadListContext.js +8 -0
- package/local/wip/FileUpload/index.js +13 -0
- package/local/wip/Form/Form.context.js +20 -0
- package/local/wip/Form/Form.decorator.js +145 -0
- package/local/wip/Form/Form.js +288 -0
- package/local/wip/Form/Form.utils.js +8 -0
- package/local/wip/Form/index.js +7 -0
- package/local/wip/Label/Label.js +86 -0
- package/local/wip/Label/index.js +4 -0
- package/local/wip/NativeSelect/NativeSelect.js +162 -0
- package/local/wip/NativeSelect/index.js +4 -0
- package/local/wip/RadioButton/RadioButton.js +123 -0
- package/local/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
- package/local/wip/RadioButton/index.js +6 -0
- package/local/wip/Switch/Switch.js +153 -0
- package/local/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
- package/local/wip/Switch/index.js +6 -0
- package/local/wip/TextArea/TextArea.js +192 -0
- package/local/wip/TextArea/index.js +4 -0
- package/local/wip/TextField/TextField.js +169 -0
- package/local/wip/TextField/index.js +4 -0
- package/package.json +78 -0
- package/vscode.css-custom-data.json +6 -0
- package/vscode.html-custom-data.json +2704 -0
- package/wip/Checkbox/Checkbox.d.ts +55 -0
- package/wip/Checkbox/Checkbox.js +104 -0
- package/wip/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/wip/Checkbox/CheckboxGroup/CheckboxGroup.js +27 -0
- package/wip/Checkbox/index.d.ts +3 -0
- package/wip/Checkbox/index.js +6 -0
- package/wip/FileUpload/FileUpload.Button.d.ts +36 -0
- package/wip/FileUpload/FileUpload.Button.js +77 -0
- package/wip/FileUpload/FileUpload.Dropzone.d.ts +55 -0
- package/wip/FileUpload/FileUpload.Dropzone.js +150 -0
- package/wip/FileUpload/FileUpload.List.Item.d.ts +62 -0
- package/wip/FileUpload/FileUpload.List.Item.js +203 -0
- package/wip/FileUpload/FileUpload.List.d.ts +46 -0
- package/wip/FileUpload/FileUpload.List.js +106 -0
- package/wip/FileUpload/FileUpload.d.ts +101 -0
- package/wip/FileUpload/FileUpload.js +451 -0
- package/wip/FileUpload/FileUploadContext.d.ts +5 -0
- package/wip/FileUpload/FileUploadContext.js +8 -0
- package/wip/FileUpload/FileUploadListContext.d.ts +5 -0
- package/wip/FileUpload/FileUploadListContext.js +8 -0
- package/wip/FileUpload/index.d.ts +6 -0
- package/wip/FileUpload/index.js +13 -0
- package/wip/Form/Form.context.d.ts +19 -0
- package/wip/Form/Form.context.js +20 -0
- package/wip/Form/Form.d.ts +50 -0
- package/wip/Form/Form.decorator.d.ts +47 -0
- package/wip/Form/Form.decorator.js +144 -0
- package/wip/Form/Form.js +288 -0
- package/wip/Form/Form.utils.d.ts +2 -0
- package/wip/Form/Form.utils.js +8 -0
- package/wip/Form/index.d.ts +3 -0
- package/wip/Form/index.js +7 -0
- package/wip/Label/Label.d.ts +43 -0
- package/wip/Label/Label.js +87 -0
- package/wip/Label/index.d.ts +2 -0
- package/wip/Label/index.js +4 -0
- package/wip/NativeSelect/NativeSelect.d.ts +69 -0
- package/wip/NativeSelect/NativeSelect.js +163 -0
- package/wip/NativeSelect/index.d.ts +2 -0
- package/wip/NativeSelect/index.js +4 -0
- package/wip/RadioButton/RadioButton.d.ts +56 -0
- package/wip/RadioButton/RadioButton.js +125 -0
- package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.d.ts +23 -0
- package/wip/RadioButton/RadioButtonGroup/RadioButtonGroup.js +96 -0
- package/wip/RadioButton/index.d.ts +3 -0
- package/wip/RadioButton/index.js +6 -0
- package/wip/Switch/Switch.d.ts +62 -0
- package/wip/Switch/Switch.js +155 -0
- package/wip/Switch/SwitchGroup/SwitchGroup.d.ts +15 -0
- package/wip/Switch/SwitchGroup/SwitchGroup.js +15 -0
- package/wip/Switch/index.d.ts +3 -0
- package/wip/Switch/index.js +6 -0
- package/wip/TextArea/TextArea.d.ts +89 -0
- package/wip/TextArea/TextArea.js +193 -0
- package/wip/TextArea/index.d.ts +2 -0
- package/wip/TextArea/index.js +4 -0
- package/wip/TextField/TextField.d.ts +70 -0
- package/wip/TextField/TextField.js +169 -0
- package/wip/TextField/index.d.ts +2 -0
- package/wip/TextField/index.js +4 -0
package/Box/Box.d.ts
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { BoxBackgroundColor, BoxBorderColor, BoxBorderWidth, BoxBorderRadius, BoxShadow } from '@viasat/beam-shared/components/box';
|
|
3
|
+
import { Spacing } from '@viasat/beam-shared/utils';
|
|
4
|
+
/**
|
|
5
|
+
* `bm-box`
|
|
6
|
+
*
|
|
7
|
+
* @slot default - Provide content for the Box
|
|
8
|
+
*/
|
|
9
|
+
export declare class BmBox extends LitElement {
|
|
10
|
+
static styles: import('lit').CSSResult;
|
|
11
|
+
/**
|
|
12
|
+
* Specify the background color of a Box
|
|
13
|
+
* @default 'transparent'
|
|
14
|
+
*/
|
|
15
|
+
backgroundColor: BoxBackgroundColor;
|
|
16
|
+
/**
|
|
17
|
+
* Specify the border color of a Box
|
|
18
|
+
*/
|
|
19
|
+
borderColor?: BoxBorderColor;
|
|
20
|
+
/**
|
|
21
|
+
* Specify the border width of a Box
|
|
22
|
+
*/
|
|
23
|
+
borderWidth?: BoxBorderWidth;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the border radius of a Box
|
|
26
|
+
*/
|
|
27
|
+
borderRadius?: BoxBorderRadius;
|
|
28
|
+
/**
|
|
29
|
+
* Specify before and after padding of a Box
|
|
30
|
+
*/
|
|
31
|
+
px?: Spacing;
|
|
32
|
+
/**
|
|
33
|
+
* Specify top and bottom padding of a Box
|
|
34
|
+
*/
|
|
35
|
+
py?: Spacing;
|
|
36
|
+
/**
|
|
37
|
+
* Specify top padding of a Box
|
|
38
|
+
*/
|
|
39
|
+
pTop?: Spacing;
|
|
40
|
+
/**
|
|
41
|
+
* Specify bottom padding of a Box
|
|
42
|
+
*/
|
|
43
|
+
pBottom?: Spacing;
|
|
44
|
+
/**
|
|
45
|
+
* Specify before padding of a Box
|
|
46
|
+
*/
|
|
47
|
+
pBefore?: Spacing;
|
|
48
|
+
/**
|
|
49
|
+
* Specify after padding of a Box
|
|
50
|
+
*/
|
|
51
|
+
pAfter?: Spacing;
|
|
52
|
+
/**
|
|
53
|
+
* Specify before and after margin of a Box
|
|
54
|
+
*/
|
|
55
|
+
mx?: Spacing;
|
|
56
|
+
/**
|
|
57
|
+
* Specify top and bottom margin of a Box
|
|
58
|
+
*/
|
|
59
|
+
my?: Spacing;
|
|
60
|
+
/**
|
|
61
|
+
* Specify top margin of a Box
|
|
62
|
+
*/
|
|
63
|
+
mTop?: Spacing;
|
|
64
|
+
/**
|
|
65
|
+
* Specify bottom margin of a Box
|
|
66
|
+
*/
|
|
67
|
+
mBottom?: Spacing;
|
|
68
|
+
/**
|
|
69
|
+
* Specify before margin of a Box
|
|
70
|
+
*/
|
|
71
|
+
mBefore?: Spacing;
|
|
72
|
+
/**
|
|
73
|
+
* Specify after margin of a Box
|
|
74
|
+
*/
|
|
75
|
+
mAfter?: Spacing;
|
|
76
|
+
/**
|
|
77
|
+
* Specify all margin
|
|
78
|
+
*/
|
|
79
|
+
m?: Spacing;
|
|
80
|
+
/**
|
|
81
|
+
* Specify all padding
|
|
82
|
+
*/
|
|
83
|
+
p?: Spacing;
|
|
84
|
+
/**
|
|
85
|
+
* Specify gap between child elements
|
|
86
|
+
*/
|
|
87
|
+
gap?: Spacing;
|
|
88
|
+
/**
|
|
89
|
+
* Specify if a Box has a shadow
|
|
90
|
+
*/
|
|
91
|
+
shadow?: BoxShadow;
|
|
92
|
+
render(): TemplateResult;
|
|
93
|
+
}
|
|
94
|
+
declare global {
|
|
95
|
+
interface HTMLElementTagNameMap {
|
|
96
|
+
'bm-box': BmBox;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=Box.d.ts.map
|
package/Box/Box.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { unsafeCSS as l, LitElement as c, html as p } from "lit";
|
|
2
|
+
import { property as e } from "lit/decorators.js";
|
|
3
|
+
import h from "clsx";
|
|
4
|
+
import { g as v, b as g } from "../chunks/classNames.Cq_tbDRp.js";
|
|
5
|
+
import { g as x } from "../chunks/globals.Bz4SVF2g.js";
|
|
6
|
+
import { c as w } from "../chunks/register-custom-element.DHGKOhmA.js";
|
|
7
|
+
const u = ".bm-box--border-width-none{border-width:var(--bm-sem-border-width-none);border-style:solid}.bm-box--border-width-md{border-width:var(--bm-sem-border-width-md);border-style:solid}.bm-box--border-width-lg{border-width:var(--bm-sem-border-width-lg);border-style:solid}.bm-box--border-width-xl{border-width:var(--bm-sem-border-width-xl);border-style:solid}.bm-box--border-width-divider{border-width:var(--bm-sem-border-width-md);border-style:solid;border-top-width:0;border-right-width:0;border-left-width:0}.bm-box--surface-00{background:var(--bm-sem-color-surface-00)}.bm-box--surface-00-alt{background:var(--bm-sem-color-surface-00-alt)}.bm-box--surface-01{background:var(--bm-sem-color-surface-01)}.bm-box--surface-02{background:var(--bm-sem-color-surface-02)}.bm-box--surface-03{background:var(--bm-sem-color-surface-03)}.bm-box--surface-positive{background:var(--bm-sem-color-surface-positive)}.bm-box--surface-warning{background:var(--bm-sem-color-surface-warning)}.bm-box--surface-negative{background:var(--bm-sem-color-surface-negative)}.bm-box--surface-info-primary{background:var(--bm-sem-color-surface-info-primary)}.bm-box--surface-info-secondary{background:var(--bm-sem-color-surface-info-secondary)}.bm-box--surface-positive-strong{background:var(--bm-sem-color-surface-positive-strong)}.bm-box--surface-warning-strong{background:var(--bm-sem-color-surface-warning-strong)}.bm-box--surface-negative-strong{background:var(--bm-sem-color-surface-negative-strong)}.bm-box--surface-info-primary-strong{background:var(--bm-sem-color-surface-info-primary-strong)}.bm-box--surface-info-secondary-strong{background:var(--bm-sem-color-surface-info-secondary-strong)}.bm-box--surface-selected{background:var(--bm-sem-color-surface-selected)}.bm-box--surface-selected-subtle{background:var(--bm-sem-color-surface-selected-subtle)}.bm-box--surface-highlight{background:var(--bm-sem-color-surface-highlight)}.bm-box--surface-transparent{background:var(--bm-sem-color-surface-transparent)}.bm-box--surface-inverse{background:var(--bm-sem-color-surface-inverse)}.bm-box--surface-expressive{background:var(--bm-expressive-color-bg)}.bm-box--surface-expressive-stronger{background:var(--bm-expressive-color-bg-stronger)}.bm-box--surface-expressive-inverse{background:var(--bm-expressive-color-inverse-bg)}.bm-box--border-00{border-color:var(--bm-sem-color-border-00);border-style:solid}.bm-box--border-00:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-00-alt{border-color:var(--bm-sem-color-border-00-alt);border-style:solid}.bm-box--border-00-alt:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-01{border-color:var(--bm-sem-color-border-01);border-style:solid}.bm-box--border-01:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-02{border-color:var(--bm-sem-color-border-02);border-style:solid}.bm-box--border-02:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-03{border-color:var(--bm-sem-color-border-03);border-style:solid}.bm-box--border-03:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-strong{border-color:var(--bm-sem-color-border-strong);border-style:solid}.bm-box--border-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-positive{border-color:var(--bm-sem-color-border-positive);border-style:solid}.bm-box--border-positive:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-warning{border-color:var(--bm-sem-color-border-warning);border-style:solid}.bm-box--border-warning:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-negative{border-color:var(--bm-sem-color-border-negative);border-style:solid}.bm-box--border-negative:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-info-primary{border-color:var(--bm-sem-color-border-info-primary);border-style:solid}.bm-box--border-info-primary:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-info-secondary{border-color:var(--bm-sem-color-border-info-secondary);border-style:solid}.bm-box--border-info-secondary:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-positive-strong{border-color:var(--bm-sem-color-border-positive-strong);border-style:solid}.bm-box--border-positive-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-warning-strong{border-color:var(--bm-sem-color-border-warning-strong);border-style:solid}.bm-box--border-warning-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-negative-strong{border-color:var(--bm-sem-color-border-negative-strong);border-style:solid}.bm-box--border-negative-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-info-primary-strong{border-color:var(--bm-sem-color-border-info-primary-strong);border-style:solid}.bm-box--border-info-primary-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-info-secondary-strong{border-color:var(--bm-sem-color-border-info-secondary-strong);border-style:solid}.bm-box--border-info-secondary-strong:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-selected{border-color:var(--bm-sem-color-border-selected);border-style:solid}.bm-box--border-selected:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-focus{border-color:var(--bm-sem-color-border-focus);border-style:solid}.bm-box--border-focus:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-inverse{border-color:var(--bm-sem-color-border-inverse);border-style:solid}.bm-box--border-inverse:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-expressive{border-color:var(--bm-expressive-color-border);border-style:solid}.bm-box--border-expressive:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-expressive-stronger{border-color:var(--bm-expressive-color-border-stronger);border-style:solid}.bm-box--border-expressive-stronger:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--border-transparent{border-color:var(--bm-sem-color-border-transparent);border-style:solid}.bm-box--border-transparent:not([class*=border-width-]){border-width:var(--bm-sem-border-width-md)}.bm-box--radius-none{border-radius:var(--bm-sem-radius-none)}.bm-box--radius-xs{border-radius:var(--bm-sem-radius-xs)}.bm-box--radius-sm{border-radius:var(--bm-sem-radius-sm)}.bm-box--radius-md{border-radius:var(--bm-sem-radius-md)}.bm-box--radius-lg{border-radius:var(--bm-sem-radius-lg)}.bm-box--radius-round{border-radius:var(--bm-sem-radius-round)}.bm-box--shadow-none{box-shadow:var(--bm-sem-shadow-none)}.bm-box--shadow-sm{box-shadow:var(--bm-sem-shadow-sm)}.bm-box--shadow-md{box-shadow:var(--bm-sem-shadow-md)}.bm-box--shadow-lg{box-shadow:var(--bm-sem-shadow-lg)}.bm-box--shadow-overlay{box-shadow:var(--bm-sem-shadow-overlay)}";
|
|
8
|
+
var y = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (t, d, a, m) => {
|
|
9
|
+
for (var b = m > 1 ? void 0 : m ? f(d, a) : d, i = t.length - 1, n; i >= 0; i--)
|
|
10
|
+
(n = t[i]) && (b = (m ? n(d, a, b) : n(b)) || b);
|
|
11
|
+
return m && b && y(d, a, b), b;
|
|
12
|
+
};
|
|
13
|
+
const { baseClassNamePrefix: S, classModifierPrefix: s } = v("box");
|
|
14
|
+
let r = class extends c {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.backgroundColor = "transparent";
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
const t = {
|
|
20
|
+
px: this.px,
|
|
21
|
+
py: this.py,
|
|
22
|
+
"p-top": this.pTop,
|
|
23
|
+
"p-bottom": this.pBottom,
|
|
24
|
+
"p-before": this.pBefore,
|
|
25
|
+
"p-after": this.pAfter,
|
|
26
|
+
mx: this.mx,
|
|
27
|
+
my: this.my,
|
|
28
|
+
"m-top": this.mTop,
|
|
29
|
+
"m-bottom": this.mBottom,
|
|
30
|
+
"m-before": this.mBefore,
|
|
31
|
+
"m-after": this.mAfter,
|
|
32
|
+
m: this.m,
|
|
33
|
+
p: this.p,
|
|
34
|
+
gap: this.gap
|
|
35
|
+
}, d = h(
|
|
36
|
+
S,
|
|
37
|
+
this.backgroundColor && `${s}surface-${this.backgroundColor}`,
|
|
38
|
+
this.borderColor && `${s}border-${this.borderColor}`,
|
|
39
|
+
this.borderWidth && `${s}border-width-${this.borderWidth}`,
|
|
40
|
+
this.borderRadius && `${s}radius-${this.borderRadius}`,
|
|
41
|
+
...g(t),
|
|
42
|
+
this.shadow && `${s}shadow-${this.shadow}`
|
|
43
|
+
);
|
|
44
|
+
return p`<div part="box" class=${d}>
|
|
45
|
+
<slot></slot>
|
|
46
|
+
</div>`;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
r.styles = l([u, x]);
|
|
50
|
+
o([
|
|
51
|
+
e({ type: String })
|
|
52
|
+
], r.prototype, "backgroundColor", 2);
|
|
53
|
+
o([
|
|
54
|
+
e({ type: String })
|
|
55
|
+
], r.prototype, "borderColor", 2);
|
|
56
|
+
o([
|
|
57
|
+
e({ type: String })
|
|
58
|
+
], r.prototype, "borderWidth", 2);
|
|
59
|
+
o([
|
|
60
|
+
e({ type: String })
|
|
61
|
+
], r.prototype, "borderRadius", 2);
|
|
62
|
+
o([
|
|
63
|
+
e({ type: String })
|
|
64
|
+
], r.prototype, "px", 2);
|
|
65
|
+
o([
|
|
66
|
+
e({ type: String })
|
|
67
|
+
], r.prototype, "py", 2);
|
|
68
|
+
o([
|
|
69
|
+
e({ type: String })
|
|
70
|
+
], r.prototype, "pTop", 2);
|
|
71
|
+
o([
|
|
72
|
+
e({ type: String })
|
|
73
|
+
], r.prototype, "pBottom", 2);
|
|
74
|
+
o([
|
|
75
|
+
e({ type: String })
|
|
76
|
+
], r.prototype, "pBefore", 2);
|
|
77
|
+
o([
|
|
78
|
+
e({ type: String })
|
|
79
|
+
], r.prototype, "pAfter", 2);
|
|
80
|
+
o([
|
|
81
|
+
e({ type: String })
|
|
82
|
+
], r.prototype, "mx", 2);
|
|
83
|
+
o([
|
|
84
|
+
e({ type: String })
|
|
85
|
+
], r.prototype, "my", 2);
|
|
86
|
+
o([
|
|
87
|
+
e({ type: String })
|
|
88
|
+
], r.prototype, "mTop", 2);
|
|
89
|
+
o([
|
|
90
|
+
e({ type: String })
|
|
91
|
+
], r.prototype, "mBottom", 2);
|
|
92
|
+
o([
|
|
93
|
+
e({ type: String })
|
|
94
|
+
], r.prototype, "mBefore", 2);
|
|
95
|
+
o([
|
|
96
|
+
e({ type: String })
|
|
97
|
+
], r.prototype, "mAfter", 2);
|
|
98
|
+
o([
|
|
99
|
+
e({ type: String })
|
|
100
|
+
], r.prototype, "m", 2);
|
|
101
|
+
o([
|
|
102
|
+
e({ type: String })
|
|
103
|
+
], r.prototype, "p", 2);
|
|
104
|
+
o([
|
|
105
|
+
e({ type: String })
|
|
106
|
+
], r.prototype, "gap", 2);
|
|
107
|
+
o([
|
|
108
|
+
e({ type: String })
|
|
109
|
+
], r.prototype, "shadow", 2);
|
|
110
|
+
r = o([
|
|
111
|
+
w("bm-box")
|
|
112
|
+
], r);
|
|
113
|
+
export {
|
|
114
|
+
r as BmBox
|
|
115
|
+
};
|
package/Box/index.d.ts
ADDED
package/Box/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BmBreadcrumbsItem } from './BreadcrumbsItem';
|
|
2
|
+
export interface BreadcrumbGroupCtxValue {
|
|
3
|
+
register: (el: BmBreadcrumbsItem) => void;
|
|
4
|
+
unregister: (el: BmBreadcrumbsItem) => void;
|
|
5
|
+
currentIndex: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const BreadcrumbGroupCtx: {
|
|
8
|
+
__context__: BreadcrumbGroupCtxValue;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Breadcrumbs.context.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ThemeTypes } from '@viasat/beam-shared/utils/constants';
|
|
3
|
+
/**
|
|
4
|
+
* `bm-breadcrumb`
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @slot default - Pass items to the Breadcrumb
|
|
8
|
+
*/
|
|
9
|
+
export declare class BmBreadcrumbs extends LitElement {
|
|
10
|
+
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Specify if items wrap or collapse to an ellipsis
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
wrap: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Specify how many items show before ellipsis
|
|
18
|
+
*/
|
|
19
|
+
itemsBeforeCollapse: number;
|
|
20
|
+
/**
|
|
21
|
+
* Specify how many items show after ellipsis
|
|
22
|
+
*/
|
|
23
|
+
itemsAfterCollapse: number;
|
|
24
|
+
/**
|
|
25
|
+
* Specify the theme of the Breadcrumbs. By default, it inherits the theme from the parent
|
|
26
|
+
*/
|
|
27
|
+
theme?: ThemeTypes;
|
|
28
|
+
private groupCtx;
|
|
29
|
+
static styles: import('lit').CSSResult;
|
|
30
|
+
protected updated(): void;
|
|
31
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'bm-breadcrumb': BmBreadcrumbs;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { provide as B } from "@lit/context";
|
|
2
|
+
import { unsafeCSS as W, LitElement as E, html as P } from "lit";
|
|
3
|
+
import { property as d } from "lit/decorators.js";
|
|
4
|
+
import N from "clsx";
|
|
5
|
+
import { g as k } from "../chunks/classNames.Cq_tbDRp.js";
|
|
6
|
+
import { t as $ } from "../chunks/constants.jOWREYQE.js";
|
|
7
|
+
import { f as I } from "../chunks/dom.C98AFbJh.js";
|
|
8
|
+
import { b as L } from "../chunks/BreadcrumbsItem.4ZR6wbMz.js";
|
|
9
|
+
import { c as O } from "../chunks/register-custom-element.DHGKOhmA.js";
|
|
10
|
+
import { BreadcrumbGroupCtx as T } from "./Breadcrumbs.context.js";
|
|
11
|
+
var q = Object.defineProperty, D = Object.getOwnPropertyDescriptor, A = (t) => {
|
|
12
|
+
throw TypeError(t);
|
|
13
|
+
}, m = (t, e, r, i) => {
|
|
14
|
+
for (var s = i > 1 ? void 0 : i ? D(e, r) : e, p = t.length - 1, n; p >= 0; p--)
|
|
15
|
+
(n = t[p]) && (s = (i ? n(e, r, s) : n(s)) || s);
|
|
16
|
+
return i && s && q(e, r, s), s;
|
|
17
|
+
}, M = (t, e, r) => e.has(t) || A("Cannot " + r), a = (t, e, r) => (M(t, e, "read from private field"), r ? r.call(t) : e.get(t)), l = (t, e, r) => e.has(t) ? A("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), v = (t, e, r) => (M(t, e, "access private method"), r), c, h, _, g, u, f, S, w, b;
|
|
18
|
+
const { baseClassNamePrefix: G, subElementClassPrefix: U, classModifierPrefix: F } = k("breadcrumbs");
|
|
19
|
+
let o = class extends E {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), l(this, f), this.wrap = !0, this.itemsBeforeCollapse = 1, this.itemsAfterCollapse = 1, l(this, c, /* @__PURE__ */ new Set()), l(this, h, /* @__PURE__ */ new WeakMap()), this.groupCtx = {
|
|
22
|
+
register: (t) => a(this, _).call(this, t),
|
|
23
|
+
unregister: (t) => a(this, g).call(this, t),
|
|
24
|
+
currentIndex: 0
|
|
25
|
+
}, l(this, _, (t) => {
|
|
26
|
+
a(this, c).add(t), a(this, u).call(this, t), this.requestUpdate();
|
|
27
|
+
}), l(this, g, (t) => {
|
|
28
|
+
a(this, c).delete(t), a(this, h).delete(t), this.requestUpdate();
|
|
29
|
+
}), l(this, u, (t) => {
|
|
30
|
+
var s;
|
|
31
|
+
const e = a(this, h).get(t);
|
|
32
|
+
if (e && e.isConnected) return e;
|
|
33
|
+
const r = (s = this.shadowRoot) == null ? void 0 : s.querySelector("slot"), i = I(t, this, r);
|
|
34
|
+
return a(this, h).set(t, i), i;
|
|
35
|
+
}), l(this, b, () => {
|
|
36
|
+
v(this, f, w).call(this);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
updated() {
|
|
40
|
+
this.groupCtx, v(this, f, w).call(this);
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
const t = N(
|
|
44
|
+
G,
|
|
45
|
+
this.theme && $(this.theme),
|
|
46
|
+
this.wrap && `${F}wrap`
|
|
47
|
+
);
|
|
48
|
+
return P`
|
|
49
|
+
<nav aria-label="Breadcrumbs" class=${t}>
|
|
50
|
+
<ol class=${`${U}list`}>
|
|
51
|
+
<slot @slotchange=${a(this, b)}></slot>
|
|
52
|
+
</ol>
|
|
53
|
+
</nav>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
c = /* @__PURE__ */ new WeakMap();
|
|
58
|
+
h = /* @__PURE__ */ new WeakMap();
|
|
59
|
+
_ = /* @__PURE__ */ new WeakMap();
|
|
60
|
+
g = /* @__PURE__ */ new WeakMap();
|
|
61
|
+
u = /* @__PURE__ */ new WeakMap();
|
|
62
|
+
f = /* @__PURE__ */ new WeakSet();
|
|
63
|
+
S = function(t) {
|
|
64
|
+
t.forEach((e) => {
|
|
65
|
+
e.isCurrent = !1, e.isCollapsed = !1, e.removeAttribute("isCurrent"), e.removeAttribute("isCollapsed"), e.removeAttribute("hidden");
|
|
66
|
+
const r = a(this, h).get(e);
|
|
67
|
+
r && r.removeAttribute("hidden");
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
w = function() {
|
|
71
|
+
const t = Array.from(a(this, c));
|
|
72
|
+
if (!t.length) return;
|
|
73
|
+
v(this, f, S).call(this, t);
|
|
74
|
+
const e = Math.max(0, this.itemsBeforeCollapse), r = Math.max(1, this.itemsAfterCollapse), i = e + r + 1, s = t.length - 1;
|
|
75
|
+
if (this.wrap || t.length <= i) {
|
|
76
|
+
const n = t[s];
|
|
77
|
+
n.isCurrent = !0;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const p = Math.max(e + 1, t.length - r);
|
|
81
|
+
if (p - e > 0) {
|
|
82
|
+
const n = t[e];
|
|
83
|
+
n.isCollapsed = !0;
|
|
84
|
+
for (let C = e + 1; C < p; C++) {
|
|
85
|
+
const y = t[C];
|
|
86
|
+
y.setAttribute("hidden", "true");
|
|
87
|
+
const x = a(this, u).call(this, y);
|
|
88
|
+
x && x.setAttribute("hidden", "true");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
t[s].isCurrent = !0;
|
|
92
|
+
};
|
|
93
|
+
b = /* @__PURE__ */ new WeakMap();
|
|
94
|
+
o.styles = W(L);
|
|
95
|
+
m([
|
|
96
|
+
d({ type: Boolean })
|
|
97
|
+
], o.prototype, "wrap", 2);
|
|
98
|
+
m([
|
|
99
|
+
d({ type: Number })
|
|
100
|
+
], o.prototype, "itemsBeforeCollapse", 2);
|
|
101
|
+
m([
|
|
102
|
+
d({ type: Number })
|
|
103
|
+
], o.prototype, "itemsAfterCollapse", 2);
|
|
104
|
+
m([
|
|
105
|
+
d({ type: String })
|
|
106
|
+
], o.prototype, "theme", 2);
|
|
107
|
+
m([
|
|
108
|
+
B({ context: T })
|
|
109
|
+
], o.prototype, "groupCtx", 2);
|
|
110
|
+
o = m([
|
|
111
|
+
O("bm-breadcrumb")
|
|
112
|
+
], o);
|
|
113
|
+
export {
|
|
114
|
+
o as BmBreadcrumbs
|
|
115
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* `bm-breadcrumb-item`
|
|
4
|
+
*
|
|
5
|
+
* @slot default - Pass text to an item
|
|
6
|
+
* @slot icon - Pass icon to an item
|
|
7
|
+
*/
|
|
8
|
+
export declare class BmBreadcrumbsItem extends LitElement {
|
|
9
|
+
#private;
|
|
10
|
+
static styles: import('lit').CSSResult;
|
|
11
|
+
/**
|
|
12
|
+
* Pass href to an item
|
|
13
|
+
*/
|
|
14
|
+
href?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Specify if the item is interactive without an href
|
|
17
|
+
*/
|
|
18
|
+
clickable: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Specify truncation width of the items. Sets max-width for all items but the last.
|
|
21
|
+
*/
|
|
22
|
+
truncationWidth?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Specify explicitly if the item is the last one
|
|
25
|
+
*/
|
|
26
|
+
isCurrent: boolean;
|
|
27
|
+
isCollapsed: boolean;
|
|
28
|
+
private _iconNode;
|
|
29
|
+
private group?;
|
|
30
|
+
connectedCallback(): void;
|
|
31
|
+
disconnectedCallback(): void;
|
|
32
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
33
|
+
}
|
|
34
|
+
declare global {
|
|
35
|
+
interface HTMLElementTagNameMap {
|
|
36
|
+
'bm-breadcrumb-item': BmBreadcrumbsItem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=BreadcrumbsItem.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "@lit/context";
|
|
2
|
+
import "lit";
|
|
3
|
+
import "lit/decorators.js";
|
|
4
|
+
import "lit/directives/unsafe-svg.js";
|
|
5
|
+
import { B as c } from "../chunks/BreadcrumbsItem.4ZR6wbMz.js";
|
|
6
|
+
import "../chunks/classNames.Cq_tbDRp.js";
|
|
7
|
+
import "../chunks/register-custom-element.DHGKOhmA.js";
|
|
8
|
+
import "../chunks/helpers.AwJwaZvv.js";
|
|
9
|
+
import "./Breadcrumbs.context.js";
|
|
10
|
+
import "../Link/Link.js";
|
|
11
|
+
export {
|
|
12
|
+
c as BmBreadcrumbsItem
|
|
13
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { ButtonAppearance, ButtonKind, ButtonSize } from '@viasat/beam-shared/components/button';
|
|
3
|
+
import { ThemeTypes } from '@viasat/beam-shared/utils';
|
|
4
|
+
import { BmFormContext } from '../wip/Form/Form.context';
|
|
5
|
+
/**
|
|
6
|
+
* `bm-button`
|
|
7
|
+
*
|
|
8
|
+
* @slot default - Provide content for the Button
|
|
9
|
+
* @slot iconBefore - Specify if the Button displays icon before the text
|
|
10
|
+
* @slot iconAfter - Specify if the Button displays icon after the text
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class BmButton extends LitElement {
|
|
14
|
+
#private;
|
|
15
|
+
static formAssociated: boolean;
|
|
16
|
+
static styles: import('lit').CSSResult[];
|
|
17
|
+
/**
|
|
18
|
+
* Specify the appearance of a Button
|
|
19
|
+
* @default 'accent'
|
|
20
|
+
*/
|
|
21
|
+
appearance: ButtonAppearance;
|
|
22
|
+
/**
|
|
23
|
+
* Specify the kind of Button
|
|
24
|
+
* @default 'filled'
|
|
25
|
+
*/
|
|
26
|
+
kind: ButtonKind;
|
|
27
|
+
/**
|
|
28
|
+
* Specify the size of a Button
|
|
29
|
+
* @default 'md'
|
|
30
|
+
*/
|
|
31
|
+
size: ButtonSize;
|
|
32
|
+
/**
|
|
33
|
+
* Specify if the Button is disabled
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specify if Button is fluid
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
fluid: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Specify the width of a Button
|
|
44
|
+
*/
|
|
45
|
+
width?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specify the height of a Button
|
|
48
|
+
*/
|
|
49
|
+
height?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Specify the theme of the Button
|
|
52
|
+
*/
|
|
53
|
+
theme?: ThemeTypes;
|
|
54
|
+
/**
|
|
55
|
+
* Specify if the icon displays without text
|
|
56
|
+
*/
|
|
57
|
+
iconOnly?: boolean;
|
|
58
|
+
type: string;
|
|
59
|
+
private _internals;
|
|
60
|
+
formContext: BmFormContext;
|
|
61
|
+
protected defaultLabel: string;
|
|
62
|
+
protected defaultIcons: {
|
|
63
|
+
iconBefore: string;
|
|
64
|
+
iconAfter: string;
|
|
65
|
+
};
|
|
66
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'bm-button': BmButton;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=Button.d.ts.map
|