@scania/tegel 0.0.1-beta.2 → 0.0.1-beta.3
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/components/dropdown-option.js +1 -0
- package/dist/components/dropdown.js +1 -0
- package/dist/components/icon.js +1 -0
- package/dist/components/sdds-accordion-item.js +1 -0
- package/dist/components/sdds-accordion.js +1 -0
- package/dist/components/sdds-badges.js +1 -0
- package/dist/components/sdds-button.js +1 -0
- package/dist/components/sdds-datetime.js +1 -0
- package/dist/components/sdds-dropdown-filter.js +1 -0
- package/dist/components/sdds-header-cell.js +1 -0
- package/dist/components/sdds-inline-tabs-fullbleed.js +1 -0
- package/dist/components/sdds-inline-tabs.js +1 -0
- package/dist/components/sdds-modal.js +1 -0
- package/dist/components/sdds-navigation-tabs.js +1 -0
- package/dist/components/sdds-popover-canvas.js +1 -0
- package/dist/components/sdds-popover-menu.js +1 -0
- package/dist/components/sdds-slider.js +1 -0
- package/dist/components/sdds-spinner.js +1 -0
- package/dist/components/sdds-table-body-row-expandable.js +1 -0
- package/dist/components/sdds-table-body.js +1 -0
- package/dist/components/sdds-table-footer.js +1 -0
- package/dist/components/sdds-table-header.js +1 -0
- package/dist/components/sdds-table-toolbar.js +1 -0
- package/dist/components/sdds-table.js +1 -0
- package/dist/components/sdds-textarea.js +1 -0
- package/dist/components/sdds-textfield.js +1 -0
- package/dist/components/sdds-tooltip.js +1 -0
- package/dist/components/table-body-cell.js +1 -0
- package/dist/components/table-body-row.js +1 -0
- package/package.json +2 -2
- package/dist/cjs/index-e1c79686.js +0 -1912
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/popper-11d5f714.js +0 -1801
- package/dist/cjs/sdds-accordion-item.cjs.entry.js +0 -34
- package/dist/cjs/sdds-accordion.cjs.entry.js +0 -21
- package/dist/cjs/sdds-badges.cjs.entry.js +0 -55
- package/dist/cjs/sdds-body-cell_2.cjs.entry.js +0 -173
- package/dist/cjs/sdds-button.cjs.entry.js +0 -36
- package/dist/cjs/sdds-datetime.cjs.entry.js +0 -66
- package/dist/cjs/sdds-dropdown-filter.cjs.entry.js +0 -92
- package/dist/cjs/sdds-dropdown_2.cjs.entry.js +0 -335
- package/dist/cjs/sdds-header-cell.cjs.entry.js +0 -141
- package/dist/cjs/sdds-icon.cjs.entry.js +0 -42
- package/dist/cjs/sdds-inline-tabs-fullbleed.cjs.entry.js +0 -96
- package/dist/cjs/sdds-inline-tabs.cjs.entry.js +0 -211
- package/dist/cjs/sdds-modal.cjs.entry.js +0 -49
- package/dist/cjs/sdds-navigation-tabs.cjs.entry.js +0 -95
- package/dist/cjs/sdds-popover-canvas.cjs.entry.js +0 -76
- package/dist/cjs/sdds-popover-menu.cjs.entry.js +0 -75
- package/dist/cjs/sdds-slider.cjs.entry.js +0 -336
- package/dist/cjs/sdds-spinner.cjs.entry.js +0 -21
- package/dist/cjs/sdds-table-body-row-expandable.cjs.entry.js +0 -81
- package/dist/cjs/sdds-table-body.cjs.entry.js +0 -289
- package/dist/cjs/sdds-table-footer.cjs.entry.js +0 -165
- package/dist/cjs/sdds-table-header.cjs.entry.js +0 -100
- package/dist/cjs/sdds-table-toolbar.cjs.entry.js +0 -66
- package/dist/cjs/sdds-table.cjs.entry.js +0 -69
- package/dist/cjs/sdds-textarea.cjs.entry.js +0 -61
- package/dist/cjs/sdds-textfield.cjs.entry.js +0 -82
- package/dist/cjs/sdds-tooltip.cjs.entry.js +0 -95
- package/dist/cjs/tegel.cjs.js +0 -19
- package/dist/collection/collection-manifest.json +0 -40
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +0 -134
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +0 -146
- package/dist/collection/components/accordion/accordion.css +0 -77
- package/dist/collection/components/accordion/accordion.js +0 -62
- package/dist/collection/components/accordion/accordion.stories.js +0 -91
- package/dist/collection/components/badge/badge.stories.js +0 -101
- package/dist/collection/components/badge/badges.css +0 -42
- package/dist/collection/components/badge/badges.js +0 -150
- package/dist/collection/components/banner/banner.stories.js +0 -93
- package/dist/collection/components/block/block.stories.js +0 -46
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +0 -26
- package/dist/collection/components/button/button-component.js +0 -154
- package/dist/collection/components/button/button-native.stories.js +0 -183
- package/dist/collection/components/button/button-webcomponent.stories.js +0 -182
- package/dist/collection/components/button/button.css +0 -658
- package/dist/collection/components/card/card.stories.js +0 -181
- package/dist/collection/components/checkbox/checkbox.stories.js +0 -54
- package/dist/collection/components/chips/chips.stories.js +0 -124
- package/dist/collection/components/data-table/native-table.stories.js +0 -182
- package/dist/collection/components/data-table/table/table.css +0 -15
- package/dist/collection/components/data-table/table/table.js +0 -253
- package/dist/collection/components/data-table/table-body/table-body.css +0 -22
- package/dist/collection/components/data-table/table-body/table-body.js +0 -425
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.css +0 -40
- package/dist/collection/components/data-table/table-body-cell/table-body-cell.js +0 -169
- package/dist/collection/components/data-table/table-body-row/table-body-row.css +0 -196
- package/dist/collection/components/data-table/table-body-row/table-body-row.js +0 -164
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.css +0 -79
- package/dist/collection/components/data-table/table-body-row-expandable/table-body-row-expandable.js +0 -155
- package/dist/collection/components/data-table/table-component-basic.stories.js +0 -163
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +0 -58
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +0 -198
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +0 -153
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +0 -137
- package/dist/collection/components/data-table/table-component-filtering.stories.js +0 -139
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +0 -160
- package/dist/collection/components/data-table/table-component-pagination.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-sorting.stories.js +0 -107
- package/dist/collection/components/data-table/table-footer/table-footer.css +0 -93
- package/dist/collection/components/data-table/table-footer/table-footer.js +0 -355
- package/dist/collection/components/data-table/table-header/table-header.css +0 -204
- package/dist/collection/components/data-table/table-header/table-header.js +0 -153
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.css +0 -126
- package/dist/collection/components/data-table/table-header-cell/table-header-cell.js +0 -320
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.css +0 -92
- package/dist/collection/components/data-table/table-toolbar/table-toolbar.js +0 -142
- package/dist/collection/components/datetime/datetime.css +0 -375
- package/dist/collection/components/datetime/datetime.js +0 -251
- package/dist/collection/components/datetime/datetime.stories.js +0 -149
- package/dist/collection/components/divider/divider.stories.js +0 -116
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +0 -130
- package/dist/collection/components/dropdown/dropdown-native.stories.js +0 -90
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +0 -185
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +0 -151
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +0 -146
- package/dist/collection/components/dropdown/dropdown.css +0 -891
- package/dist/collection/components/dropdown/dropdown.js +0 -554
- package/dist/collection/components/footer/footer.stories.js +0 -100
- package/dist/collection/components/header/header-all.stories.js +0 -217
- package/dist/collection/components/header/header-default.stories.js +0 -47
- package/dist/collection/components/header/header-inline.stories.js +0 -113
- package/dist/collection/components/header/header-search.stories.js +0 -263
- package/dist/collection/components/header/header-toolbar.stories.js +0 -204
- package/dist/collection/components/icon/icon-font.stories.js +0 -57
- package/dist/collection/components/icon/icon-web-component.stories.js +0 -51
- package/dist/collection/components/icon/icon.css +0 -16
- package/dist/collection/components/icon/icon.js +0 -89
- package/dist/collection/components/icon/iconsArray.js +0 -2
- package/dist/collection/components/link/link.stories.js +0 -45
- package/dist/collection/components/message/message.stories.js +0 -117
- package/dist/collection/components/modal/modal-native.stories.js +0 -121
- package/dist/collection/components/modal/modal-webcomponent.stories.js +0 -78
- package/dist/collection/components/modal/modal.css +0 -324
- package/dist/collection/components/modal/modal.js +0 -146
- package/dist/collection/components/popover-canvas/popover-canvas.css +0 -20
- package/dist/collection/components/popover-canvas/popover-canvas.js +0 -190
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -87
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +0 -132
- package/dist/collection/components/popover-menu/popover-menu.css +0 -19
- package/dist/collection/components/popover-menu/popover-menu.js +0 -189
- package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -109
- package/dist/collection/components/radio-button/radio-button.stories.js +0 -68
- package/dist/collection/components/side-menu/side-menu.stories.js +0 -182
- package/dist/collection/components/slider/slider.css +0 -260
- package/dist/collection/components/slider/slider.js +0 -682
- package/dist/collection/components/slider/slider.stories.js +0 -251
- package/dist/collection/components/spinner/spinner.css +0 -79
- package/dist/collection/components/spinner/spinner.js +0 -61
- package/dist/collection/components/spinner/spinner.stories.js +0 -59
- package/dist/collection/components/stepper/stepper.stories.js +0 -139
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.css +0 -159
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.js +0 -302
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +0 -65
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.css +0 -172
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.js +0 -126
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +0 -43
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +0 -153
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +0 -103
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -32
- package/dist/collection/components/textarea/textarea.css +0 -283
- package/dist/collection/components/textarea/textarea.js +0 -336
- package/dist/collection/components/textarea/textarea.stories.js +0 -149
- package/dist/collection/components/textfield/textfield.css +0 -494
- package/dist/collection/components/textfield/textfield.js +0 -359
- package/dist/collection/components/textfield/textfield.stories.js +0 -222
- package/dist/collection/components/toast/toast.stories.js +0 -119
- package/dist/collection/components/toggle/toggle.stories.js +0 -62
- package/dist/collection/components/tooltip/tooltip.css +0 -46
- package/dist/collection/components/tooltip/tooltip.js +0 -200
- package/dist/collection/components/tooltip/tooltip.stories.js +0 -113
- package/dist/collection/components/utility/colour/background-color.stories.js +0 -96
- package/dist/collection/components/utility/colour/text-color.stories.js +0 -94
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +0 -38
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +0 -71
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +0 -40
- package/dist/collection/foundations-stories/grid/grid.stories.js +0 -386
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +0 -100
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +0 -94
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +0 -16
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +0 -17
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +0 -39
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +0 -12
- package/dist/collection/index.js +0 -1
- package/dist/collection/stories/assets/code-brackets.svg +0 -1
- package/dist/collection/stories/assets/colors.svg +0 -1
- package/dist/collection/stories/assets/comments.svg +0 -1
- package/dist/collection/stories/assets/direction.svg +0 -1
- package/dist/collection/stories/assets/flow.svg +0 -1
- package/dist/collection/stories/assets/plugin.svg +0 -1
- package/dist/collection/stories/assets/repo.svg +0 -1
- package/dist/collection/stories/assets/stackalt.svg +0 -1
- package/dist/collection/utils/utils.js +0 -12
- package/dist/esm/index-b67b15a6.js +0 -1884
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/popper-f860750c.js +0 -1799
- package/dist/esm/sdds-accordion-item.entry.js +0 -30
- package/dist/esm/sdds-accordion.entry.js +0 -17
- package/dist/esm/sdds-badges.entry.js +0 -51
- package/dist/esm/sdds-body-cell_2.entry.js +0 -168
- package/dist/esm/sdds-button.entry.js +0 -32
- package/dist/esm/sdds-datetime.entry.js +0 -62
- package/dist/esm/sdds-dropdown-filter.entry.js +0 -88
- package/dist/esm/sdds-dropdown_2.entry.js +0 -330
- package/dist/esm/sdds-header-cell.entry.js +0 -137
- package/dist/esm/sdds-icon.entry.js +0 -38
- package/dist/esm/sdds-inline-tabs-fullbleed.entry.js +0 -92
- package/dist/esm/sdds-inline-tabs.entry.js +0 -207
- package/dist/esm/sdds-modal.entry.js +0 -45
- package/dist/esm/sdds-navigation-tabs.entry.js +0 -91
- package/dist/esm/sdds-popover-canvas.entry.js +0 -72
- package/dist/esm/sdds-popover-menu.entry.js +0 -71
- package/dist/esm/sdds-slider.entry.js +0 -332
- package/dist/esm/sdds-spinner.entry.js +0 -17
- package/dist/esm/sdds-table-body-row-expandable.entry.js +0 -77
- package/dist/esm/sdds-table-body.entry.js +0 -285
- package/dist/esm/sdds-table-footer.entry.js +0 -161
- package/dist/esm/sdds-table-header.entry.js +0 -96
- package/dist/esm/sdds-table-toolbar.entry.js +0 -62
- package/dist/esm/sdds-table.entry.js +0 -65
- package/dist/esm/sdds-textarea.entry.js +0 -57
- package/dist/esm/sdds-textfield.entry.js +0 -78
- package/dist/esm/sdds-tooltip.entry.js +0 -91
- package/dist/esm/tegel.js +0 -17
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/tegel/index.esm.js +0 -0
- package/dist/tegel/p-040efb32.entry.js +0 -1
- package/dist/tegel/p-12ca5cfa.entry.js +0 -1
- package/dist/tegel/p-157e1618.js +0 -2
- package/dist/tegel/p-1fe61cf6.entry.js +0 -1
- package/dist/tegel/p-2f376504.entry.js +0 -1
- package/dist/tegel/p-44ced895.entry.js +0 -1
- package/dist/tegel/p-4880f03d.entry.js +0 -1
- package/dist/tegel/p-4aba73a3.entry.js +0 -1
- package/dist/tegel/p-4b58a02c.entry.js +0 -1
- package/dist/tegel/p-4cb85347.entry.js +0 -1
- package/dist/tegel/p-52031b5a.entry.js +0 -1
- package/dist/tegel/p-677baf7f.entry.js +0 -1
- package/dist/tegel/p-71797eaf.entry.js +0 -1
- package/dist/tegel/p-7373284c.entry.js +0 -1
- package/dist/tegel/p-7451779b.entry.js +0 -1
- package/dist/tegel/p-77aeea3b.entry.js +0 -1
- package/dist/tegel/p-8582d6a7.entry.js +0 -1
- package/dist/tegel/p-96021bd0.entry.js +0 -1
- package/dist/tegel/p-9d8caf51.entry.js +0 -1
- package/dist/tegel/p-a5919930.entry.js +0 -1
- package/dist/tegel/p-b01cface.entry.js +0 -1
- package/dist/tegel/p-bf896643.entry.js +0 -1
- package/dist/tegel/p-c311725c.entry.js +0 -1
- package/dist/tegel/p-cf72dfd9.entry.js +0 -1
- package/dist/tegel/p-d91caec6.entry.js +0 -1
- package/dist/tegel/p-e10eec33.entry.js +0 -1
- package/dist/tegel/p-ec26fc38.js +0 -1
- package/dist/tegel/p-f2262a69.entry.js +0 -1
- package/dist/tegel/p-f2f7aa45.entry.js +0 -1
- package/dist/tegel/tegel.css +0 -101
- package/dist/tegel/tegel.esm.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
|
@@ -1,146 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
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 = {};
|
|
@@ -1,101 +0,0 @@
|
|
|
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({});
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
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
|
-
}
|