smoothly 0.3.0 → 0.3.2
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/loader.cjs.js +1 -1
- package/dist/cjs/{smoothly-accordion_50.cjs.entry.js → smoothly-accordion_52.cjs.entry.js} +103 -57
- package/dist/cjs/smoothly.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/display-amount/index.js +22 -1
- package/dist/collection/components/display-demo/index.js +9 -0
- package/dist/collection/components/input-demo/index.js +9 -0
- package/dist/collection/components/radio-button/Selected.js +1 -0
- package/dist/collection/components/radio-button/index.js +48 -0
- package/dist/collection/components/radio-button/item/index.js +107 -0
- package/dist/collection/components/radio-button/item/style.css +67 -0
- package/dist/collection/components/radio-button/style.css +3 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +108 -58
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{smoothly-accordion_50.entry.js → smoothly-accordion_52.entry.js} +102 -58
- package/dist/esm/smoothly.js +1 -1
- package/dist/smoothly/{p-71443887.entry.js → p-ed84bc93.entry.js} +1 -1
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/display-amount/index.d.ts +1 -0
- package/dist/types/components/radio-button/Selected.d.ts +5 -0
- package/dist/types/components/radio-button/index.d.ts +7 -0
- package/dist/types/components/radio-button/item/index.d.ts +11 -0
- package/dist/types/components.d.ts +42 -0
- package/package.json +1 -1
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-svg.cjs",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-
|
|
18
|
+
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-svg.cjs",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_52.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[2,"smoothly-table-demo"],[0,"smoothly-display-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[1,"smoothly-picker",{"disabled":[516],"readonly":[516],"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"mutable":[4],"optionStyle":[8,"option-style"],"options":[1040],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectAllName":[1025,"select-all-name"],"selectionName":[1025,"selection-name"],"newOptionLabel":[1025,"new-option-label"],"valueValidator":[16],"isOpen":[32],"empty":[32]},[[0,"optionSelect","optionSelectHandler"],[0,"optionUnselect","optionSelectHandler"],[0,"optionAdd","optionAddHandler"],[0,"menuEmpty","emptyHandler"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-radio-button-item",{"value":[8],"selected":[1540],"expansion":[4]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",{"align":[1],"open":[1540]},[[0,"click","onClick"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1],"format":[16]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-radio-button",{"value":[1032]},[[0,"radioSelect","radioSelectHandler"]]],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1025],"color":[1],"period":[2],"distance":[1],"align":[513]}],[6,"smoothly-table",null,[[0,"expansionLoad","handleEvents"],[0,"expansionOpen","handleEvents"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-header",{"name":[1]}],[6,"smoothly-table-row",null,[[0,"expansionLoad","onExpansionLoad"],[0,"expansionOpen","onExpansionOpen"]]],[6,"smoothly-input-date",{"name":[513],"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[1,"smoothly-menu-options",{"toggle":[4],"emptyMenuLabel":[1025,"empty-menu-label"],"newOptionLabel":[1,"new-option-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"mutable":[4],"filteredOptions":[32],"highlightIndex":[32],"keyword":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[2,"smoothly-display-amount",{"amount":[8],"currency":[1],"toInteger":[4,"to-integer"]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540],"checkbox":[4],"new":[4],"toggle":[4],"checked":[1028]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"readonly":[1028],"currency":[513],"initialValue":[32],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
19
19
|
});
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"./components/popup/index.js",
|
|
33
33
|
"./components/quiet/index.js",
|
|
34
34
|
"./components/radio/index.js",
|
|
35
|
+
"./components/radio-button/index.js",
|
|
36
|
+
"./components/radio-button/item/index.js",
|
|
35
37
|
"./components/radio-group/index.js",
|
|
36
38
|
"./components/reorder/index.js",
|
|
37
39
|
"./components/room/index.js",
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Component, Prop } from "@stencil/core";
|
|
2
2
|
import { Currency } from "isoly";
|
|
3
3
|
export class SmoothlyDisplayAmount {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.toInteger = false;
|
|
6
|
+
}
|
|
4
7
|
format(amount) {
|
|
5
8
|
const digitsPerGroup = 3;
|
|
6
9
|
const defaultDecimals = 2;
|
|
@@ -20,7 +23,7 @@ export class SmoothlyDisplayAmount {
|
|
|
20
23
|
result = result.padEnd(separator + maxDecimals + 1, "0");
|
|
21
24
|
result = result.substring(0, separator + maxDecimals + 1);
|
|
22
25
|
}
|
|
23
|
-
else {
|
|
26
|
+
else if (!this.toInteger) {
|
|
24
27
|
result = result + ".";
|
|
25
28
|
separator = result.length - 1;
|
|
26
29
|
result = result.padEnd(separator + maxDecimals + 1, "0");
|
|
@@ -89,6 +92,24 @@ export class SmoothlyDisplayAmount {
|
|
|
89
92
|
},
|
|
90
93
|
"attribute": "currency",
|
|
91
94
|
"reflect": false
|
|
95
|
+
},
|
|
96
|
+
"toInteger": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"mutable": false,
|
|
99
|
+
"complexType": {
|
|
100
|
+
"original": "boolean",
|
|
101
|
+
"resolved": "boolean",
|
|
102
|
+
"references": {}
|
|
103
|
+
},
|
|
104
|
+
"required": false,
|
|
105
|
+
"optional": false,
|
|
106
|
+
"docs": {
|
|
107
|
+
"tags": [],
|
|
108
|
+
"text": ""
|
|
109
|
+
},
|
|
110
|
+
"attribute": "to-integer",
|
|
111
|
+
"reflect": false,
|
|
112
|
+
"defaultValue": "false"
|
|
92
113
|
}
|
|
93
114
|
}; }
|
|
94
115
|
}
|
|
@@ -28,6 +28,15 @@ export class SmoothlyDisplayDemo {
|
|
|
28
28
|
h("dt", null, "price"),
|
|
29
29
|
h("dd", null,
|
|
30
30
|
h("smoothly-display", { type: "price", value: "13.37", currency: "SEK" })),
|
|
31
|
+
h("dt", null, "display amount without decimals"),
|
|
32
|
+
h("dd", null,
|
|
33
|
+
h("smoothly-display-amount", { amount: 200, currency: "SEK", toInteger: true })),
|
|
34
|
+
h("dt", null, "display amount with decimals if they are set, otherwise no decimal"),
|
|
35
|
+
h("dd", null,
|
|
36
|
+
h("smoothly-display-amount", { amount: 200.20, currency: "SEK", toInteger: true })),
|
|
37
|
+
h("dt", null, "display amount with decimals"),
|
|
38
|
+
h("dd", null,
|
|
39
|
+
h("smoothly-display-amount", { amount: 200.20, currency: "SEK" })),
|
|
31
40
|
h("dt", null, "percent"),
|
|
32
41
|
h("dd", null,
|
|
33
42
|
h("smoothly-display", { type: "percent", value: "42" })),
|
|
@@ -17,6 +17,15 @@ export class SmoothlyInputDemo {
|
|
|
17
17
|
h("smoothly-input", { type: "card-number", name: "card" }, "Card #"),
|
|
18
18
|
h("smoothly-input", { type: "card-expires", name: "card", style: { width: "calc(60% - 2px)" } }, "Expires"),
|
|
19
19
|
h("smoothly-input", { type: "card-csc", name: "card", style: { width: "calc(40% - 1px)", borderLeft: "none" } }, "CVV/CVC"),
|
|
20
|
+
h("smoothly-radio-button", null,
|
|
21
|
+
h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, expansion: true },
|
|
22
|
+
h("span", null, "Option 1"),
|
|
23
|
+
h("span", { slot: "expansion" }, "Some description.")),
|
|
24
|
+
h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, expansion: true },
|
|
25
|
+
h("span", null, "Option 2"),
|
|
26
|
+
h("span", { slot: "expansion" }, "Some other description.")),
|
|
27
|
+
h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } },
|
|
28
|
+
h("span", null, "Option 3"))),
|
|
20
29
|
h("smoothly-radio", { name: "option", value: "1" }, "option 1"),
|
|
21
30
|
h("smoothly-radio", { name: "option", value: "2", checked: true }, "option 2"),
|
|
22
31
|
h("smoothly-radio", { name: "option", value: "3" }, "option 3"),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Component, h, Host, Listen, Prop } from "@stencil/core";
|
|
2
|
+
export class SmoothlyRadioButton {
|
|
3
|
+
radioSelectHandler(event) {
|
|
4
|
+
var _a;
|
|
5
|
+
(_a = this.active) === null || _a === void 0 ? void 0 : _a.select(false);
|
|
6
|
+
this.active = event.detail;
|
|
7
|
+
this.value = this.active.selected ? event.detail.value : undefined;
|
|
8
|
+
this.active.select(this.active.selected);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, null,
|
|
12
|
+
h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
static get is() { return "smoothly-radio-button"; }
|
|
15
|
+
static get encapsulation() { return "scoped"; }
|
|
16
|
+
static get originalStyleUrls() { return {
|
|
17
|
+
"$": ["style.css"]
|
|
18
|
+
}; }
|
|
19
|
+
static get styleUrls() { return {
|
|
20
|
+
"$": ["style.css"]
|
|
21
|
+
}; }
|
|
22
|
+
static get properties() { return {
|
|
23
|
+
"value": {
|
|
24
|
+
"type": "any",
|
|
25
|
+
"mutable": true,
|
|
26
|
+
"complexType": {
|
|
27
|
+
"original": "any",
|
|
28
|
+
"resolved": "any",
|
|
29
|
+
"references": {}
|
|
30
|
+
},
|
|
31
|
+
"required": false,
|
|
32
|
+
"optional": true,
|
|
33
|
+
"docs": {
|
|
34
|
+
"tags": [],
|
|
35
|
+
"text": ""
|
|
36
|
+
},
|
|
37
|
+
"attribute": "value",
|
|
38
|
+
"reflect": false
|
|
39
|
+
}
|
|
40
|
+
}; }
|
|
41
|
+
static get listeners() { return [{
|
|
42
|
+
"name": "radioSelect",
|
|
43
|
+
"method": "radioSelectHandler",
|
|
44
|
+
"target": undefined,
|
|
45
|
+
"capture": false,
|
|
46
|
+
"passive": false
|
|
47
|
+
}]; }
|
|
48
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Component, Event, h, Host, Prop } from "@stencil/core";
|
|
2
|
+
export class SmoothlyRadioButtonItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.expansion = false;
|
|
5
|
+
}
|
|
6
|
+
componentWillLoad() {
|
|
7
|
+
this.select(this.selected);
|
|
8
|
+
}
|
|
9
|
+
select(selected = false) {
|
|
10
|
+
this.radioSelect.emit({
|
|
11
|
+
value: this.value,
|
|
12
|
+
selected,
|
|
13
|
+
select: s => (this.selected = s),
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, null,
|
|
18
|
+
h("header", { onClick: () => this.select(!this.selected) },
|
|
19
|
+
h("smoothly-icon", { color: this.selected ? "success" : "medium", fill: "solid", name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "tiny", toolTip: "Select" }),
|
|
20
|
+
h("slot", null)),
|
|
21
|
+
h("aside", { class: this.expansion ? "" : "hide" },
|
|
22
|
+
h("slot", { name: "expansion" }))));
|
|
23
|
+
}
|
|
24
|
+
static get is() { return "smoothly-radio-button-item"; }
|
|
25
|
+
static get encapsulation() { return "scoped"; }
|
|
26
|
+
static get originalStyleUrls() { return {
|
|
27
|
+
"$": ["style.css"]
|
|
28
|
+
}; }
|
|
29
|
+
static get styleUrls() { return {
|
|
30
|
+
"$": ["style.css"]
|
|
31
|
+
}; }
|
|
32
|
+
static get properties() { return {
|
|
33
|
+
"value": {
|
|
34
|
+
"type": "any",
|
|
35
|
+
"mutable": false,
|
|
36
|
+
"complexType": {
|
|
37
|
+
"original": "any",
|
|
38
|
+
"resolved": "any",
|
|
39
|
+
"references": {}
|
|
40
|
+
},
|
|
41
|
+
"required": false,
|
|
42
|
+
"optional": false,
|
|
43
|
+
"docs": {
|
|
44
|
+
"tags": [],
|
|
45
|
+
"text": ""
|
|
46
|
+
},
|
|
47
|
+
"attribute": "value",
|
|
48
|
+
"reflect": false
|
|
49
|
+
},
|
|
50
|
+
"selected": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"mutable": true,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "boolean",
|
|
55
|
+
"resolved": "boolean",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "selected",
|
|
65
|
+
"reflect": true
|
|
66
|
+
},
|
|
67
|
+
"expansion": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "expansion",
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"defaultValue": "false"
|
|
84
|
+
}
|
|
85
|
+
}; }
|
|
86
|
+
static get events() { return [{
|
|
87
|
+
"method": "radioSelect",
|
|
88
|
+
"name": "radioSelect",
|
|
89
|
+
"bubbles": true,
|
|
90
|
+
"cancelable": true,
|
|
91
|
+
"composed": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": ""
|
|
95
|
+
},
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "Selected",
|
|
98
|
+
"resolved": "Selected",
|
|
99
|
+
"references": {
|
|
100
|
+
"Selected": {
|
|
101
|
+
"location": "import",
|
|
102
|
+
"path": "../Selected"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}]; }
|
|
107
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
margin-bottom: 0.5rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host:last-child {
|
|
7
|
+
margin-bottom: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:host > header {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host > header > smoothly-icon {
|
|
16
|
+
margin-right: 0.5rem;
|
|
17
|
+
border-radius: 100%;
|
|
18
|
+
font-size: 1.3rem;
|
|
19
|
+
display: flex;
|
|
20
|
+
background: rgb(var(--smoothly-light-color));
|
|
21
|
+
transition: 0.2s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host[selected] > header > smoothly-icon {
|
|
25
|
+
color: rgb(var(--smoothly-success-color));
|
|
26
|
+
background: rgb(var(--smoothly-success-shade));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:host > aside {
|
|
30
|
+
display: none;
|
|
31
|
+
background: rgb(var(--smoothly-light-color));
|
|
32
|
+
color: rgb(var(--smoothly-light-contrast));
|
|
33
|
+
padding: 0;
|
|
34
|
+
border-radius: 5px;
|
|
35
|
+
margin-top: 0.5rem;
|
|
36
|
+
position: relative;
|
|
37
|
+
transition: 0.1s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host > aside::before {
|
|
41
|
+
content: "\25B2";
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: -0.8rem;
|
|
44
|
+
left: 3rem;
|
|
45
|
+
color: rgb(var(--smoothly-light-color));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host[selected] > aside {
|
|
49
|
+
display: block;
|
|
50
|
+
padding: 0.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host > aside.hide {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media screen and (min-width: 900px){
|
|
58
|
+
:host > header:hover > smoothly-icon {
|
|
59
|
+
background: rgb(var(--smoothly-success-color));
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
:host[selected] > header:hover > smoothly-icon {
|
|
63
|
+
background: rgb(var(--smoothly-warning-shade));
|
|
64
|
+
color: rgb(var(--smoothly-warning-color));
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -194,6 +194,18 @@ export const SmoothlyRadio: {
|
|
|
194
194
|
new (): SmoothlyRadio;
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
+
interface SmoothlyRadioButton extends Components.SmoothlyRadioButton, HTMLElement {}
|
|
198
|
+
export const SmoothlyRadioButton: {
|
|
199
|
+
prototype: SmoothlyRadioButton;
|
|
200
|
+
new (): SmoothlyRadioButton;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
interface SmoothlyRadioButtonItem extends Components.SmoothlyRadioButtonItem, HTMLElement {}
|
|
204
|
+
export const SmoothlyRadioButtonItem: {
|
|
205
|
+
prototype: SmoothlyRadioButtonItem;
|
|
206
|
+
new (): SmoothlyRadioButtonItem;
|
|
207
|
+
};
|
|
208
|
+
|
|
197
209
|
interface SmoothlyRadioGroup extends Components.SmoothlyRadioGroup, HTMLElement {}
|
|
198
210
|
export const SmoothlyRadioGroup: {
|
|
199
211
|
prototype: SmoothlyRadioGroup;
|