@scania/tegel 0.0.1-beta.3 → 0.0.1-beta.4
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/dist/cjs/index-e1c79686.js +1912 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/popper-11d5f714.js +1801 -0
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +34 -0
- package/dist/cjs/sdds-accordion.cjs.entry.js +21 -0
- package/dist/cjs/sdds-badges.cjs.entry.js +55 -0
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +173 -0
- package/dist/cjs/sdds-button.cjs.entry.js +36 -0
- package/dist/cjs/sdds-datetime.cjs.entry.js +66 -0
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +92 -0
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +335 -0
- package/dist/cjs/sdds-header-cell.cjs.entry.js +141 -0
- package/dist/cjs/sdds-icon.cjs.entry.js +42 -0
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +96 -0
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +211 -0
- package/dist/cjs/sdds-modal.cjs.entry.js +49 -0
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +95 -0
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +76 -0
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +75 -0
- package/dist/cjs/sdds-slider.cjs.entry.js +336 -0
- package/dist/cjs/sdds-spinner.cjs.entry.js +21 -0
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +81 -0
- package/dist/cjs/sdds-table-body.cjs.entry.js +289 -0
- package/dist/cjs/sdds-table-footer.cjs.entry.js +165 -0
- package/dist/cjs/sdds-table-header.cjs.entry.js +100 -0
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +66 -0
- package/dist/cjs/sdds-table.cjs.entry.js +69 -0
- package/dist/cjs/sdds-textarea.cjs.entry.js +61 -0
- package/dist/cjs/sdds-textfield.cjs.entry.js +82 -0
- package/dist/cjs/sdds-tooltip.cjs.entry.js +95 -0
- package/dist/cjs/tegel.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +40 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +134 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +146 -0
- package/dist/collection/components/accordion/accordion.css +77 -0
- package/dist/collection/components/accordion/accordion.js +62 -0
- package/dist/collection/components/accordion/accordion.stories.js +91 -0
- package/dist/collection/components/badge/badge.stories.js +101 -0
- package/dist/collection/components/badge/badges.css +42 -0
- package/dist/collection/components/badge/badges.js +150 -0
- package/dist/collection/components/banner/banner.stories.js +93 -0
- package/dist/collection/components/block/block.stories.js +46 -0
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +26 -0
- package/dist/collection/components/button/button-component.js +154 -0
- package/dist/collection/components/button/button-native.stories.js +183 -0
- package/dist/collection/components/button/button-webcomponent.stories.js +182 -0
- package/dist/collection/components/button/button.css +658 -0
- package/dist/collection/components/card/card.stories.js +181 -0
- package/dist/collection/components/checkbox/checkbox.stories.js +54 -0
- package/dist/collection/components/chips/chips.stories.js +124 -0
- package/dist/collection/components/data-table/native-table.stories.js +182 -0
- package/dist/collection/components/data-table/table/table.css +15 -0
- package/dist/collection/components/data-table/table/table.js +253 -0
- package/dist/collection/components/data-table/table-body/table-body.css +22 -0
- package/dist/collection/components/data-table/table-body/table-body.js +425 -0
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +40 -0
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +169 -0
- package/dist/collection/components/data-table/table-body-row/table-body-row.css +196 -0
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +164 -0
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +79 -0
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +155 -0
- package/dist/collection/components/data-table/table-component-basic.stories.js +163 -0
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +129 -0
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +58 -0
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +198 -0
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +153 -0
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +137 -0
- package/dist/collection/components/data-table/table-component-filtering.stories.js +139 -0
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +160 -0
- package/dist/collection/components/data-table/table-component-pagination.stories.js +129 -0
- package/dist/collection/components/data-table/table-component-sorting.stories.js +107 -0
- package/dist/collection/components/data-table/table-footer/table-footer.css +93 -0
- package/dist/collection/components/data-table/table-footer/table-footer.js +355 -0
- package/dist/collection/components/data-table/table-header/table-header.css +204 -0
- package/dist/collection/components/data-table/table-header/table-header.js +153 -0
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +126 -0
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +320 -0
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +92 -0
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +142 -0
- package/dist/collection/components/datetime/datetime.css +375 -0
- package/dist/collection/components/datetime/datetime.js +251 -0
- package/dist/collection/components/datetime/datetime.stories.js +149 -0
- package/dist/collection/components/divider/divider.stories.js +116 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +339 -0
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +130 -0
- package/dist/collection/components/dropdown/dropdown-native.stories.js +90 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +185 -0
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +151 -0
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +146 -0
- package/dist/collection/components/dropdown/dropdown.css +891 -0
- package/dist/collection/components/dropdown/dropdown.js +554 -0
- package/dist/collection/components/footer/footer.stories.js +100 -0
- package/dist/collection/components/header/header-all.stories.js +217 -0
- package/dist/collection/components/header/header-default.stories.js +47 -0
- package/dist/collection/components/header/header-inline.stories.js +113 -0
- package/dist/collection/components/header/header-search.stories.js +263 -0
- package/dist/collection/components/header/header-toolbar.stories.js +204 -0
- package/dist/collection/components/icon/icon-font.stories.js +57 -0
- package/dist/collection/components/icon/icon-web-component.stories.js +51 -0
- package/dist/collection/components/icon/icon.css +16 -0
- package/dist/collection/components/icon/icon.js +89 -0
- package/dist/collection/components/icon/iconsArray.js +2 -0
- package/dist/collection/components/link/link.stories.js +45 -0
- package/dist/collection/components/message/message.stories.js +117 -0
- package/dist/collection/components/modal/modal-native.stories.js +121 -0
- package/dist/collection/components/modal/modal-webcomponent.stories.js +78 -0
- package/dist/collection/components/modal/modal.css +324 -0
- package/dist/collection/components/modal/modal.js +146 -0
- package/dist/collection/components/popover-canvas/popover-canvas.css +20 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +190 -0
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +87 -0
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +132 -0
- package/dist/collection/components/popover-menu/popover-menu.css +19 -0
- package/dist/collection/components/popover-menu/popover-menu.js +189 -0
- package/dist/collection/components/popover-menu/popover-menu.stories.js +109 -0
- package/dist/collection/components/radio-button/radio-button.stories.js +68 -0
- package/dist/collection/components/side-menu/side-menu.stories.js +182 -0
- package/dist/collection/components/slider/slider.css +260 -0
- package/dist/collection/components/slider/slider.js +682 -0
- package/dist/collection/components/slider/slider.stories.js +251 -0
- package/dist/collection/components/spinner/spinner.css +79 -0
- package/dist/collection/components/spinner/spinner.js +61 -0
- package/dist/collection/components/spinner/spinner.stories.js +59 -0
- package/dist/collection/components/stepper/stepper.stories.js +139 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +159 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +302 -0
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +65 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +172 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +126 -0
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +43 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +153 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +103 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +32 -0
- package/dist/collection/components/textarea/textarea.css +283 -0
- package/dist/collection/components/textarea/textarea.js +336 -0
- package/dist/collection/components/textarea/textarea.stories.js +149 -0
- package/dist/collection/components/textfield/textfield.css +494 -0
- package/dist/collection/components/textfield/textfield.js +359 -0
- package/dist/collection/components/textfield/textfield.stories.js +222 -0
- package/dist/collection/components/toast/toast.stories.js +119 -0
- package/dist/collection/components/toggle/toggle.stories.js +62 -0
- package/dist/collection/components/tooltip/tooltip.css +46 -0
- package/dist/collection/components/tooltip/tooltip.js +200 -0
- package/dist/collection/components/tooltip/tooltip.stories.js +113 -0
- package/dist/collection/components/utility/colour/background-color.stories.js +96 -0
- package/dist/collection/components/utility/colour/text-color.stories.js +94 -0
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +38 -0
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +71 -0
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +40 -0
- package/dist/collection/foundations-stories/grid/grid.stories.js +386 -0
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +100 -0
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +94 -0
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +16 -0
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +17 -0
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +39 -0
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +12 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/collection/utils/utils.js +12 -0
- package/dist/esm/index-b67b15a6.js +1884 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-f860750c.js +1799 -0
- package/dist/esm/sdds-accordion-item.entry.js +30 -0
- package/dist/esm/sdds-accordion.entry.js +17 -0
- package/dist/esm/sdds-badges.entry.js +51 -0
- package/dist/esm/sdds-body-cell_2.entry.js +168 -0
- package/dist/esm/sdds-button.entry.js +32 -0
- package/dist/esm/sdds-datetime.entry.js +62 -0
- package/dist/esm/sdds-dropdown-filter.entry.js +88 -0
- package/dist/esm/sdds-dropdown_2.entry.js +330 -0
- package/dist/esm/sdds-header-cell.entry.js +137 -0
- package/dist/esm/sdds-icon.entry.js +38 -0
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +92 -0
- package/dist/esm/sdds-inline-tabs.entry.js +207 -0
- package/dist/esm/sdds-modal.entry.js +45 -0
- package/dist/esm/sdds-navigation-tabs.entry.js +91 -0
- package/dist/esm/sdds-popover-canvas.entry.js +72 -0
- package/dist/esm/sdds-popover-menu.entry.js +71 -0
- package/dist/esm/sdds-slider.entry.js +332 -0
- package/dist/esm/sdds-spinner.entry.js +17 -0
- package/dist/esm/sdds-table-body-row-expandable.entry.js +77 -0
- package/dist/esm/sdds-table-body.entry.js +285 -0
- package/dist/esm/sdds-table-footer.entry.js +161 -0
- package/dist/esm/sdds-table-header.entry.js +96 -0
- package/dist/esm/sdds-table-toolbar.entry.js +62 -0
- package/dist/esm/sdds-table.entry.js +65 -0
- package/dist/esm/sdds-textarea.entry.js +57 -0
- package/dist/esm/sdds-textfield.entry.js +78 -0
- package/dist/esm/sdds-tooltip.entry.js +91 -0
- package/dist/esm/tegel.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/tegel/index.esm.js +0 -0
- package/dist/tegel/p-040efb32.entry.js +1 -0
- package/dist/tegel/p-12ca5cfa.entry.js +1 -0
- package/dist/tegel/p-157e1618.js +2 -0
- package/dist/tegel/p-1fe61cf6.entry.js +1 -0
- package/dist/tegel/p-2f376504.entry.js +1 -0
- package/dist/tegel/p-44ced895.entry.js +1 -0
- package/dist/tegel/p-4880f03d.entry.js +1 -0
- package/dist/tegel/p-4aba73a3.entry.js +1 -0
- package/dist/tegel/p-4b58a02c.entry.js +1 -0
- package/dist/tegel/p-4cb85347.entry.js +1 -0
- package/dist/tegel/p-52031b5a.entry.js +1 -0
- package/dist/tegel/p-677baf7f.entry.js +1 -0
- package/dist/tegel/p-71797eaf.entry.js +1 -0
- package/dist/tegel/p-7373284c.entry.js +1 -0
- package/dist/tegel/p-7451779b.entry.js +1 -0
- package/dist/tegel/p-77aeea3b.entry.js +1 -0
- package/dist/tegel/p-8582d6a7.entry.js +1 -0
- package/dist/tegel/p-96021bd0.entry.js +1 -0
- package/dist/tegel/p-9d8caf51.entry.js +1 -0
- package/dist/tegel/p-a5919930.entry.js +1 -0
- package/dist/tegel/p-b01cface.entry.js +1 -0
- package/dist/tegel/p-bf896643.entry.js +1 -0
- package/dist/tegel/p-c311725c.entry.js +1 -0
- package/dist/tegel/p-cf72dfd9.entry.js +1 -0
- package/dist/tegel/p-d91caec6.entry.js +1 -0
- package/dist/tegel/p-e10eec33.entry.js +1 -0
- package/dist/tegel/p-ec26fc38.js +1 -0
- package/dist/tegel/p-f2262a69.entry.js +1 -0
- package/dist/tegel/p-f2f7aa45.entry.js +1 -0
- package/dist/tegel/tegel.css +101 -0
- package/dist/tegel/tegel.esm.js +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class AccordionItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.header = '';
|
|
5
|
+
this.expandIconPosition = 'end';
|
|
6
|
+
this.disabled = false;
|
|
7
|
+
this.expanded = false;
|
|
8
|
+
this.paddingReset = false;
|
|
9
|
+
}
|
|
10
|
+
openAccordion() {
|
|
11
|
+
this.expanded = !this.expanded;
|
|
12
|
+
this.accordionItemToggle.emit(this.expanded);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h(Host, null, h("div", { class: `sdds-accordion-item
|
|
16
|
+
${this.disabled ? 'disabled' : ''}
|
|
17
|
+
${this.expanded ? 'expanded' : ''}
|
|
18
|
+
` }, h("div", { class: `sdds-accordion-header-icon-${this.expandIconPosition}`, onClick: () => this.openAccordion() }, h("div", { class: "sdds-accordion-title" }, this.header), h("div", { class: "sdds-accordion-icon" }, h("sdds-icon", { name: "chevron_down", size: "16px" }))), h("div", { class: `sdds-accordion-panel
|
|
19
|
+
${this.paddingReset ? 'sdds-accordion-panel--padding-reset ' : ''}
|
|
20
|
+
` }, h("slot", null)))));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "sdds-accordion-item"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() {
|
|
25
|
+
return {
|
|
26
|
+
"$": ["accordion-item.scss"]
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static get styleUrls() {
|
|
30
|
+
return {
|
|
31
|
+
"$": ["accordion-item.css"]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
static get properties() {
|
|
35
|
+
return {
|
|
36
|
+
"header": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"mutable": false,
|
|
39
|
+
"complexType": {
|
|
40
|
+
"original": "string",
|
|
41
|
+
"resolved": "string",
|
|
42
|
+
"references": {}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": "The header gives users the context about the additional information available inside the panel"
|
|
49
|
+
},
|
|
50
|
+
"attribute": "header",
|
|
51
|
+
"reflect": false,
|
|
52
|
+
"defaultValue": "''"
|
|
53
|
+
},
|
|
54
|
+
"expandIconPosition": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "'start' | 'end'",
|
|
59
|
+
"resolved": "\"end\" | \"start\"",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Changes where the expand icon is placed."
|
|
67
|
+
},
|
|
68
|
+
"attribute": "expand-icon-position",
|
|
69
|
+
"reflect": false,
|
|
70
|
+
"defaultValue": "'end'"
|
|
71
|
+
},
|
|
72
|
+
"disabled": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "boolean",
|
|
77
|
+
"resolved": "boolean",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": "Disabled option in `boolean`."
|
|
85
|
+
},
|
|
86
|
+
"attribute": "disabled",
|
|
87
|
+
"reflect": false,
|
|
88
|
+
"defaultValue": "false"
|
|
89
|
+
},
|
|
90
|
+
"expanded": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "boolean",
|
|
95
|
+
"resolved": "boolean",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": "Set to true to expand panel open"
|
|
103
|
+
},
|
|
104
|
+
"attribute": "expanded",
|
|
105
|
+
"reflect": false,
|
|
106
|
+
"defaultValue": "false"
|
|
107
|
+
},
|
|
108
|
+
"paddingReset": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "boolean",
|
|
113
|
+
"resolved": "boolean",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "When true 16px on right padding instead of 64px"
|
|
121
|
+
},
|
|
122
|
+
"attribute": "padding-reset",
|
|
123
|
+
"reflect": false,
|
|
124
|
+
"defaultValue": "false"
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static get events() {
|
|
129
|
+
return [{
|
|
130
|
+
"method": "accordionItemToggle",
|
|
131
|
+
"name": "accordionItemToggle",
|
|
132
|
+
"bubbles": true,
|
|
133
|
+
"cancelable": true,
|
|
134
|
+
"composed": true,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Fires after the accordion item is closed or opened, emitting the value (as boolean) of the current state of the accordion"
|
|
138
|
+
},
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "boolean",
|
|
141
|
+
"resolved": "boolean",
|
|
142
|
+
"references": {}
|
|
143
|
+
}
|
|
144
|
+
}];
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
:host * {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
:host .sdds-accordion-header-icon-start,
|
|
9
|
+
:host .sdds-accordion-header-icon-end {
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
:host .sdds-accordion-header-icon-start::after,
|
|
13
|
+
:host .sdds-accordion-header-icon-end::after {
|
|
14
|
+
content: "";
|
|
15
|
+
position: absolute;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
z-index: 2;
|
|
20
|
+
}
|
|
21
|
+
:host .sdds-accordion-header-icon-start::after,
|
|
22
|
+
:host .sdds-accordion-header-icon-end::after {
|
|
23
|
+
bottom: -1px;
|
|
24
|
+
border-bottom: 1px solid transparent;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host(:focus) {
|
|
28
|
+
outline: 2px solid var(--sdds-blue-400);
|
|
29
|
+
outline-offset: -2px;
|
|
30
|
+
}
|
|
31
|
+
:host(:focus) .sdds-accordion-item .sdds-accordion-header-icon-start,
|
|
32
|
+
:host(:focus) .sdds-accordion-item .sdds-accordion-header-icon-end {
|
|
33
|
+
background-color: var(--sdds-accordion-bg-focus);
|
|
34
|
+
outline: none;
|
|
35
|
+
}
|
|
36
|
+
:host(:focus) .sdds-accordion-item .sdds-accordion-header-icon-start::after,
|
|
37
|
+
:host(:focus) .sdds-accordion-item .sdds-accordion-header-icon-end::after {
|
|
38
|
+
border-color: var(--sdds-accordion-border-focus);
|
|
39
|
+
}
|
|
40
|
+
:host(:focus) .disabled,
|
|
41
|
+
:host(:focus) .disabled * {
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
}
|
|
44
|
+
:host(:focus) .disabled .sdds-accordion-header-icon-start,
|
|
45
|
+
:host(:focus) .disabled .sdds-accordion-header-icon-end {
|
|
46
|
+
background-color: var(--sdds-accordion-bg);
|
|
47
|
+
outline: none;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
}
|
|
50
|
+
:host(:focus) .disabled .sdds-accordion-header-icon-start::after,
|
|
51
|
+
:host(:focus) .disabled .sdds-accordion-header-icon-end::after {
|
|
52
|
+
border-color: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:host(:active) .sdds-accordion-header-icon-start,
|
|
56
|
+
:host(:active) .sdds-accordion-header-icon-end {
|
|
57
|
+
background-color: var(--sdds-accordion-bg-active);
|
|
58
|
+
outline: none;
|
|
59
|
+
}
|
|
60
|
+
:host(:active) .disabled,
|
|
61
|
+
:host(:active) .disabled * {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
}
|
|
64
|
+
:host(:active) .disabled .sdds-accordion-header-icon-start,
|
|
65
|
+
:host(:active) .disabled .sdds-accordion-header-icon-end {
|
|
66
|
+
background-color: var(--sdds-accordion-bg);
|
|
67
|
+
outline: none;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
|
+
:host(:active) .disabled .sdds-accordion-header-icon-start::after,
|
|
71
|
+
:host(:active) .disabled .sdds-accordion-header-icon-end::after {
|
|
72
|
+
border-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host(:last-child) {
|
|
76
|
+
border-bottom: 1px solid var(--sdds-accordion-border);
|
|
77
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class Accordion {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.divider = true;
|
|
5
|
+
this.modeVariant = 'primary';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: `sdds-accordion ${this.divider ? 'sdds-accordion-divider' : ''} ${this.modeVariant}` }, h("slot", null)));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "sdds-accordion"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["accordion.scss"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["accordion.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"divider": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"mutable": false,
|
|
27
|
+
"complexType": {
|
|
28
|
+
"original": "boolean",
|
|
29
|
+
"resolved": "boolean",
|
|
30
|
+
"references": {}
|
|
31
|
+
},
|
|
32
|
+
"required": false,
|
|
33
|
+
"optional": false,
|
|
34
|
+
"docs": {
|
|
35
|
+
"tags": [],
|
|
36
|
+
"text": "Enable or disable divider lines between items"
|
|
37
|
+
},
|
|
38
|
+
"attribute": "divider",
|
|
39
|
+
"reflect": false,
|
|
40
|
+
"defaultValue": "true"
|
|
41
|
+
},
|
|
42
|
+
"modeVariant": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"mutable": false,
|
|
45
|
+
"complexType": {
|
|
46
|
+
"original": "'primary' | 'secondary'",
|
|
47
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
48
|
+
"references": {}
|
|
49
|
+
},
|
|
50
|
+
"required": false,
|
|
51
|
+
"optional": false,
|
|
52
|
+
"docs": {
|
|
53
|
+
"tags": [],
|
|
54
|
+
"text": "Set the variant of the the accordion."
|
|
55
|
+
},
|
|
56
|
+
"attribute": "mode-variant",
|
|
57
|
+
"reflect": false,
|
|
58
|
+
"defaultValue": "'primary'"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
import readmeItem from './accordion-item/readme.md';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Components/Accordion',
|
|
6
|
+
argTypes: {
|
|
7
|
+
iconPosition: {
|
|
8
|
+
name: 'Expand icon position',
|
|
9
|
+
control: {
|
|
10
|
+
type: 'radio',
|
|
11
|
+
},
|
|
12
|
+
options: { End: 'end', Start: 'start' },
|
|
13
|
+
description: 'The horizontal position of the expand icon.',
|
|
14
|
+
table: {
|
|
15
|
+
defaultValue: { summary: 'end' },
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
disabled: {
|
|
19
|
+
name: 'Disable all items',
|
|
20
|
+
description: 'Disable all accordion items.',
|
|
21
|
+
control: {
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
},
|
|
24
|
+
table: {
|
|
25
|
+
defaultValue: { summary: 'false' },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
paddingReset: {
|
|
29
|
+
name: 'Less padding right',
|
|
30
|
+
description: 'Less padding on the right inside accordion items.',
|
|
31
|
+
control: {
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
},
|
|
34
|
+
table: {
|
|
35
|
+
defaultValue: { summary: 'false' },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
modeVariant: {
|
|
39
|
+
name: 'Mode variant',
|
|
40
|
+
description: 'Variant of the component.',
|
|
41
|
+
control: {
|
|
42
|
+
type: 'radio',
|
|
43
|
+
},
|
|
44
|
+
options: ['Primary', 'Secondary'],
|
|
45
|
+
table: {
|
|
46
|
+
defaultValue: { summary: 'primary' },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
parameters: {
|
|
51
|
+
notes: { 'Accordion': readme, 'Accordion item': readmeItem },
|
|
52
|
+
design: [
|
|
53
|
+
{
|
|
54
|
+
name: 'Figma',
|
|
55
|
+
type: 'figma',
|
|
56
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2762%3A84&t=rVXuTOgTmXPauyHd-1',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'Link',
|
|
60
|
+
type: 'link',
|
|
61
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=2762%3A84&t=rVXuTOgTmXPauyHd-1',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
args: {
|
|
66
|
+
disabled: false,
|
|
67
|
+
paddingReset: false,
|
|
68
|
+
iconPosition: 'end',
|
|
69
|
+
modeVariant: 'Primary',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
const Template = ({ disabled, iconPosition, paddingReset, modeVariant }) => {
|
|
73
|
+
const affixAttr = iconPosition === 'start' ? 'expand-icon-position="start"' : '';
|
|
74
|
+
const disabledAttr = disabled ? 'disabled' : '';
|
|
75
|
+
const paddingResetAttr = paddingReset ? 'padding-reset' : '';
|
|
76
|
+
const tabIndexAttr = 'tabindex="0"';
|
|
77
|
+
return formatHtmlPreview(`
|
|
78
|
+
<sdds-accordion mode-variant="${modeVariant.toLowerCase()}">
|
|
79
|
+
<sdds-accordion-item header="First item" ${tabIndexAttr} ${affixAttr} ${disabledAttr} ${paddingResetAttr}>
|
|
80
|
+
This is the panel, which contains associated information with the header. Usually it contains text, set in the same size as the header.
|
|
81
|
+
Lorem ipsum doler sit amet.
|
|
82
|
+
</sdds-accordion-item>
|
|
83
|
+
<sdds-accordion-item header="Second item" ${tabIndexAttr} ${affixAttr} ${disabledAttr} ${paddingResetAttr} expanded>
|
|
84
|
+
This is the panel, which contains associated information with the header. Usually it contains text, set in the same size as the header.
|
|
85
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis laoreet vestibulum fermentum.
|
|
86
|
+
</sdds-accordion-item>
|
|
87
|
+
</sdds-accordion>
|
|
88
|
+
`);
|
|
89
|
+
};
|
|
90
|
+
export const Default = Template.bind({});
|
|
91
|
+
Default.args = {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
+
import readme from './readme.md';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Badge',
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: 'centered',
|
|
7
|
+
notes: readme,
|
|
8
|
+
design: [
|
|
9
|
+
{
|
|
10
|
+
name: 'Figma',
|
|
11
|
+
type: 'figma',
|
|
12
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=7477%3A297479&t=rVXuTOgTmXPauyHd-1',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'Link',
|
|
16
|
+
type: 'link',
|
|
17
|
+
url: 'https://www.figma.com/file/d8bTgEx7h694MSesi2CTLF/Tegel-UI-Library?node-id=7477%3A297479&t=rVXuTOgTmXPauyHd-1',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
argTypes: {
|
|
22
|
+
visible: {
|
|
23
|
+
name: 'Visible',
|
|
24
|
+
description: 'Toggle visibility of badge',
|
|
25
|
+
control: {
|
|
26
|
+
type: 'boolean',
|
|
27
|
+
},
|
|
28
|
+
table: {
|
|
29
|
+
defaultValue: { summary: false },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
value: {
|
|
33
|
+
name: 'Value',
|
|
34
|
+
description: 'Set a value to show on the badge',
|
|
35
|
+
control: {
|
|
36
|
+
type: 'number',
|
|
37
|
+
},
|
|
38
|
+
if: { arg: 'size', neq: 'sm' },
|
|
39
|
+
table: {
|
|
40
|
+
defaultValue: { summary: null },
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
name: 'Size',
|
|
45
|
+
description: 'Size of the component',
|
|
46
|
+
options: {
|
|
47
|
+
Large: 'lg',
|
|
48
|
+
Small: 'sm',
|
|
49
|
+
},
|
|
50
|
+
control: {
|
|
51
|
+
type: 'radio',
|
|
52
|
+
},
|
|
53
|
+
table: {
|
|
54
|
+
defaultValue: { summary: 'lg' },
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
args: {
|
|
59
|
+
visible: true,
|
|
60
|
+
size: 'lg',
|
|
61
|
+
value: 1,
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
const Template = ({ value, size, visible }) => formatHtmlPreview(`<sdds-badges
|
|
65
|
+
${value ? `value="${value}"` : ''}
|
|
66
|
+
is-visible=${visible}
|
|
67
|
+
size="${size}">
|
|
68
|
+
</sdds-badges>`);
|
|
69
|
+
export const Default = Template.bind({});
|
|
70
|
+
const WithDemoTemplate = ({ value, size, visible }) => formatHtmlPreview(`
|
|
71
|
+
<style>
|
|
72
|
+
/* Note: Demo classes used here are just for demo purposes in Storybook */
|
|
73
|
+
.badges-demo-box {
|
|
74
|
+
margin:5px;
|
|
75
|
+
height: 32px;
|
|
76
|
+
width: 32px;
|
|
77
|
+
position: relative;
|
|
78
|
+
background-color: #C4C4C4;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.badges-demo-box sdds-badges[size="lg"]{
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: 16px;
|
|
84
|
+
top: -5px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.badges-demo-box sdds-badges[size="sm"]{
|
|
88
|
+
position: absolute;
|
|
89
|
+
left: 26px;
|
|
90
|
+
top: -2px;
|
|
91
|
+
}
|
|
92
|
+
</style>
|
|
93
|
+
|
|
94
|
+
<div class="badges-demo-box">
|
|
95
|
+
<sdds-badges
|
|
96
|
+
${value ? `value="${value}"` : ''}
|
|
97
|
+
is-visible=${visible}
|
|
98
|
+
size="${size}">
|
|
99
|
+
</sdds-badges>
|
|
100
|
+
</div>`);
|
|
101
|
+
export const WithDemoComponent = WithDemoTemplate.bind({});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--sdds-badges-bg-color: var(--sdds-negative);
|
|
3
|
+
--sdds-badges-color-text: var(--sdds-white);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
:host * {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sdds-badges {
|
|
12
|
+
display: block;
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
background-color: var(--sdds-badges-bg-color);
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
.sdds-badges.sdds-badges-sm {
|
|
18
|
+
height: 8px;
|
|
19
|
+
width: 8px;
|
|
20
|
+
line-height: 8px;
|
|
21
|
+
}
|
|
22
|
+
.sdds-badges.sdds-badges-lg {
|
|
23
|
+
height: 20px;
|
|
24
|
+
line-height: 20px;
|
|
25
|
+
width: 20px;
|
|
26
|
+
}
|
|
27
|
+
.sdds-badges.sdds-badges-pill {
|
|
28
|
+
display: inline-block;
|
|
29
|
+
width: unset;
|
|
30
|
+
padding-left: 8px;
|
|
31
|
+
padding-right: 8px;
|
|
32
|
+
}
|
|
33
|
+
.sdds-badges.sdds-badges-hidden {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.sdds-badges-text {
|
|
38
|
+
font-family: var(--sdds-font-family-semi-condensed-bold);
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
color: var(--sdds-badges-color-text);
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
export class SddsBadges {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.value = '';
|
|
5
|
+
this.isVisible = true;
|
|
6
|
+
this.isSmall = false;
|
|
7
|
+
this.size = 'lg';
|
|
8
|
+
this.shape = '';
|
|
9
|
+
this.text = '';
|
|
10
|
+
}
|
|
11
|
+
watchProps() {
|
|
12
|
+
this.checkProps();
|
|
13
|
+
}
|
|
14
|
+
componentWillLoad() {
|
|
15
|
+
this.checkProps();
|
|
16
|
+
if (this.isSmall) {
|
|
17
|
+
this.size = 'sm';
|
|
18
|
+
console.warn('Prop isSmall is deprecated. Use size"small" instead');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
checkProps() {
|
|
22
|
+
const valueAsNumber = parseInt(this.value);
|
|
23
|
+
if (!Number.isNaN(valueAsNumber) && this.size !== 'sm') {
|
|
24
|
+
this.shape = this.value.toString().length >= 2 ? 'pill' : '';
|
|
25
|
+
this.size = 'lg';
|
|
26
|
+
this.text = valueAsNumber.toString().length >= 3 ? '99+' : valueAsNumber.toString();
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
30
|
+
this.value !== '' && this.size !== 'sm'
|
|
31
|
+
? console.warn('The provided value is either empty or string, please provide value as number.')
|
|
32
|
+
: '';
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
return (h("host", { class: `sdds-badges sdds-badges-${this.size} ${this.shape === 'pill' ? 'sdds-badges-pill' : ''} ${this.isVisible ? '' : 'sdds-badges-hidden'}` }, h("div", { class: "sdds-badges-text" }, this.text)));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "sdds-badges"; }
|
|
39
|
+
static get encapsulation() { return "shadow"; }
|
|
40
|
+
static get originalStyleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["badges.scss"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get styleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["badges.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get properties() {
|
|
51
|
+
return {
|
|
52
|
+
"value": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"mutable": false,
|
|
55
|
+
"complexType": {
|
|
56
|
+
"original": "string",
|
|
57
|
+
"resolved": "string",
|
|
58
|
+
"references": {}
|
|
59
|
+
},
|
|
60
|
+
"required": false,
|
|
61
|
+
"optional": false,
|
|
62
|
+
"docs": {
|
|
63
|
+
"tags": [],
|
|
64
|
+
"text": "Value shown in badge"
|
|
65
|
+
},
|
|
66
|
+
"attribute": "value",
|
|
67
|
+
"reflect": false,
|
|
68
|
+
"defaultValue": "''"
|
|
69
|
+
},
|
|
70
|
+
"isVisible": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "boolean",
|
|
75
|
+
"resolved": "boolean",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Changes visibility of badge"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "is-visible",
|
|
85
|
+
"reflect": false,
|
|
86
|
+
"defaultValue": "true"
|
|
87
|
+
},
|
|
88
|
+
"isSmall": {
|
|
89
|
+
"type": "boolean",
|
|
90
|
+
"mutable": false,
|
|
91
|
+
"complexType": {
|
|
92
|
+
"original": "boolean",
|
|
93
|
+
"resolved": "boolean",
|
|
94
|
+
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [{
|
|
100
|
+
"name": "deprecated",
|
|
101
|
+
"text": "Use size prop instead. Changes badge from large to small size"
|
|
102
|
+
}],
|
|
103
|
+
"text": ""
|
|
104
|
+
},
|
|
105
|
+
"attribute": "is-small",
|
|
106
|
+
"reflect": false,
|
|
107
|
+
"defaultValue": "false"
|
|
108
|
+
},
|
|
109
|
+
"size": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"mutable": false,
|
|
112
|
+
"complexType": {
|
|
113
|
+
"original": "'lg' | 'sm'",
|
|
114
|
+
"resolved": "\"lg\" | \"sm\"",
|
|
115
|
+
"references": {}
|
|
116
|
+
},
|
|
117
|
+
"required": false,
|
|
118
|
+
"optional": false,
|
|
119
|
+
"docs": {
|
|
120
|
+
"tags": [],
|
|
121
|
+
"text": "Sets component size."
|
|
122
|
+
},
|
|
123
|
+
"attribute": "size",
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "'lg'"
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
static get states() {
|
|
130
|
+
return {
|
|
131
|
+
"shape": {},
|
|
132
|
+
"text": {}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
static get watchers() {
|
|
136
|
+
return [{
|
|
137
|
+
"propName": "value",
|
|
138
|
+
"methodName": "watchProps"
|
|
139
|
+
}, {
|
|
140
|
+
"propName": "isVisible",
|
|
141
|
+
"methodName": "watchProps"
|
|
142
|
+
}, {
|
|
143
|
+
"propName": "isSmall",
|
|
144
|
+
"methodName": "watchProps"
|
|
145
|
+
}, {
|
|
146
|
+
"propName": "size",
|
|
147
|
+
"methodName": "watchProps"
|
|
148
|
+
}];
|
|
149
|
+
}
|
|
150
|
+
}
|