smoothly 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cjs/{index-3efe2a41.js → index-3fb97927.js} +467 -269
  2. package/dist/cjs/{index-2a011313.js → index-7b75b331.js} +1 -1
  3. package/dist/cjs/index.cjs.js +2 -2
  4. package/dist/cjs/loader.cjs.js +3 -3
  5. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +68 -26
  6. package/dist/cjs/smoothly-google-font.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
  9. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  10. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  11. package/dist/cjs/smoothly.cjs.js +3 -3
  12. package/dist/collection/collection-manifest.json +2 -2
  13. package/dist/collection/components/App.js +38 -46
  14. package/dist/collection/components/accordion/index.js +65 -55
  15. package/dist/collection/components/accordion-item/index.js +133 -131
  16. package/dist/collection/components/app/index.js +37 -32
  17. package/dist/collection/components/app-demo/index.js +39 -68
  18. package/dist/collection/components/backtotop/index.js +73 -66
  19. package/dist/collection/components/button/index.js +144 -141
  20. package/dist/collection/components/calendar/index.js +277 -268
  21. package/dist/collection/components/checkbox/index.js +120 -110
  22. package/dist/collection/components/dialog/index.js +97 -93
  23. package/dist/collection/components/dialog-demo/index.js +2 -3
  24. package/dist/collection/components/display/index.js +108 -102
  25. package/dist/collection/components/display-amount/index.js +68 -63
  26. package/dist/collection/components/display-date-time/index.js +35 -30
  27. package/dist/collection/components/display-demo/index.js +23 -129
  28. package/dist/collection/components/frame/index.js +134 -124
  29. package/dist/collection/components/google-font/index.js +26 -24
  30. package/dist/collection/components/icon/index.js +116 -107
  31. package/dist/collection/components/icon-demo/index.js +11 -7
  32. package/dist/collection/components/input/index.js +364 -355
  33. package/dist/collection/components/input-date/index.js +165 -156
  34. package/dist/collection/components/input-date-range/index.js +220 -213
  35. package/dist/collection/components/input-demo/index.js +2 -87
  36. package/dist/collection/components/input-month/index.js +65 -57
  37. package/dist/collection/components/item/index.js +101 -87
  38. package/dist/collection/components/menu-options/index.js +287 -275
  39. package/dist/collection/components/notification/index.js +74 -63
  40. package/dist/collection/components/notifier/index.js +31 -23
  41. package/dist/collection/components/option/index.js +227 -223
  42. package/dist/collection/components/picker/index.js +404 -397
  43. package/dist/collection/components/popup/index.js +73 -69
  44. package/dist/collection/components/quiet/index.js +33 -28
  45. package/dist/collection/components/radio/index.js +98 -91
  46. package/dist/collection/components/radio-button/index.js +92 -83
  47. package/dist/collection/components/radio-button/item/index.js +91 -66
  48. package/dist/collection/components/radio-button/item/style.css +18 -13
  49. package/dist/collection/components/radio-group/index.js +33 -27
  50. package/dist/collection/components/reorder/index.js +28 -23
  51. package/dist/collection/components/room/index.js +73 -71
  52. package/dist/collection/components/select/index.js +82 -75
  53. package/dist/collection/components/select-demo/index.js +24 -42
  54. package/dist/collection/components/selector/index.js +71 -68
  55. package/dist/collection/components/skeleton/index.js +112 -106
  56. package/dist/collection/components/spinner/index.js +50 -46
  57. package/dist/collection/components/submit/index.js +174 -163
  58. package/dist/collection/components/svg/index.js +65 -60
  59. package/dist/collection/components/tab/index.js +84 -75
  60. package/dist/collection/components/tab-switch/index.js +32 -23
  61. package/dist/collection/components/table/cell/index.js +12 -9
  62. package/dist/collection/components/table/demo/index.js +13 -59
  63. package/dist/collection/components/table/expandable/cell/index.js +100 -95
  64. package/dist/collection/components/table/expandable/row/index.js +85 -79
  65. package/dist/collection/components/table/header/index.js +33 -28
  66. package/dist/collection/components/table/index.js +44 -36
  67. package/dist/collection/components/table/row/index.js +26 -20
  68. package/dist/collection/components/trigger/index.js +174 -166
  69. package/dist/collection/components/trigger-sink/index.js +73 -65
  70. package/dist/collection/components/trigger-source/index.js +71 -63
  71. package/dist/collection/components/tuple/index.js +19 -17
  72. package/dist/collection/components/urlencoded/index.js +22 -20
  73. package/dist/collection/model/Listenable.js +4 -2
  74. package/dist/custom-elements/index.js +67 -25
  75. package/dist/esm/{index-1d438ba2.js → index-3b463176.js} +1 -1
  76. package/dist/esm/{index-4d9efff8.js → index-fcf8bdd3.js} +467 -269
  77. package/dist/esm/index.js +2 -2
  78. package/dist/esm/loader.js +3 -3
  79. package/dist/esm/polyfills/css-shim.js +1 -1
  80. package/dist/esm/smoothly-accordion_53.entry.js +68 -26
  81. package/dist/esm/smoothly-google-font.entry.js +1 -1
  82. package/dist/esm/smoothly-radio-group.entry.js +1 -1
  83. package/dist/esm/smoothly-reorder.entry.js +1 -1
  84. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  85. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  86. package/dist/esm/smoothly.js +3 -3
  87. package/dist/smoothly/index.esm.js +1 -1
  88. package/dist/smoothly/{p-d5d4832d.entry.js → p-0833f25c.entry.js} +1 -1
  89. package/dist/smoothly/{p-919ae3e8.entry.js → p-2bf8c660.entry.js} +1 -1
  90. package/dist/smoothly/{p-8e4e941e.entry.js → p-3bd18eea.entry.js} +1 -1
  91. package/dist/smoothly/p-8ab82f55.entry.js +1 -0
  92. package/dist/smoothly/{p-9bc77fba.entry.js → p-a1c137fc.entry.js} +1 -1
  93. package/dist/smoothly/p-af90d05a.js +2 -0
  94. package/dist/smoothly/{p-76e88859.js → p-e5191036.js} +1 -1
  95. package/dist/smoothly/{p-7a5eda51.entry.js → p-f67259c5.entry.js} +1 -1
  96. package/dist/smoothly/smoothly.esm.js +1 -1
  97. package/dist/types/components/radio-button/item/index.d.ts +2 -0
  98. package/dist/types/components.d.ts +3 -1
  99. package/dist/types/stencil-public-runtime.d.ts +15 -4
  100. package/loader/package.json +1 -0
  101. package/package.json +6 -6
  102. package/dist/smoothly/p-191ee4b8.js +0 -2
  103. package/dist/smoothly/p-59c574cb.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { Component, Event, h, Host, Prop } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  export class SmoothlyRadioButtonItem {
3
3
  componentWillLoad() {
4
4
  this.selected && this.select(this.selected);
@@ -11,76 +11,101 @@ export class SmoothlyRadioButtonItem {
11
11
  });
12
12
  }
13
13
  render() {
14
- return (h(Host, null,
15
- h("header", { onClick: () => this.select(!this.selected) },
16
- h("smoothly-icon", { color: this.selected ? "success" : "medium", fill: "solid", name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "tiny", toolTip: "Select" }),
17
- h("slot", null),
18
- h("slot", { name: "end" })),
19
- h("slot", { name: "expansion" })));
14
+ return (h(Host, null, h("header", { onClick: () => this.select(!this.selected) }, h("smoothly-icon", { color: this.selected ? "success" : "medium", fill: "solid", name: this.selected ? "checkmark-circle" : "ellipse-outline", size: "tiny", toolTip: "Select" }), h("slot", null), h("slot", { name: "end" })), h("slot", { name: "expansion" })));
20
15
  }
21
16
  static get is() { return "smoothly-radio-button-item"; }
22
17
  static get encapsulation() { return "scoped"; }
23
- static get originalStyleUrls() { return {
24
- "$": ["style.css"]
25
- }; }
26
- static get styleUrls() { return {
27
- "$": ["style.css"]
28
- }; }
29
- static get properties() { return {
30
- "value": {
31
- "type": "any",
32
- "mutable": false,
33
- "complexType": {
34
- "original": "any",
35
- "resolved": "any",
36
- "references": {}
37
- },
38
- "required": false,
39
- "optional": false,
40
- "docs": {
41
- "tags": [],
42
- "text": ""
43
- },
44
- "attribute": "value",
45
- "reflect": false
46
- },
47
- "selected": {
48
- "type": "boolean",
49
- "mutable": true,
50
- "complexType": {
51
- "original": "boolean",
52
- "resolved": "boolean",
53
- "references": {}
54
- },
55
- "required": false,
56
- "optional": false,
57
- "docs": {
58
- "tags": [],
59
- "text": ""
18
+ static get originalStyleUrls() {
19
+ return {
20
+ "$": ["style.css"]
21
+ };
22
+ }
23
+ static get styleUrls() {
24
+ return {
25
+ "$": ["style.css"]
26
+ };
27
+ }
28
+ static get properties() {
29
+ return {
30
+ "value": {
31
+ "type": "any",
32
+ "mutable": false,
33
+ "complexType": {
34
+ "original": "any",
35
+ "resolved": "any",
36
+ "references": {}
37
+ },
38
+ "required": false,
39
+ "optional": false,
40
+ "docs": {
41
+ "tags": [],
42
+ "text": ""
43
+ },
44
+ "attribute": "value",
45
+ "reflect": false
60
46
  },
61
- "attribute": "selected",
62
- "reflect": true
63
- }
64
- }; }
65
- static get events() { return [{
66
- "method": "radioItemSelectInternal",
67
- "name": "radioItemSelectInternal",
68
- "bubbles": true,
69
- "cancelable": true,
70
- "composed": true,
71
- "docs": {
72
- "tags": [],
73
- "text": ""
47
+ "selected": {
48
+ "type": "boolean",
49
+ "mutable": true,
50
+ "complexType": {
51
+ "original": "boolean",
52
+ "resolved": "boolean",
53
+ "references": {}
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "attribute": "selected",
62
+ "reflect": true
74
63
  },
75
- "complexType": {
76
- "original": "Selected",
77
- "resolved": "Selected",
78
- "references": {
79
- "Selected": {
80
- "location": "import",
81
- "path": "../Selected"
64
+ "color": {
65
+ "type": "string",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "Color",
69
+ "resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
70
+ "references": {
71
+ "Color": {
72
+ "location": "import",
73
+ "path": "../../../model"
74
+ }
82
75
  }
83
- }
76
+ },
77
+ "required": false,
78
+ "optional": true,
79
+ "docs": {
80
+ "tags": [],
81
+ "text": ""
82
+ },
83
+ "attribute": "color",
84
+ "reflect": true
84
85
  }
85
- }]; }
86
+ };
87
+ }
88
+ static get events() {
89
+ return [{
90
+ "method": "radioItemSelectInternal",
91
+ "name": "radioItemSelectInternal",
92
+ "bubbles": true,
93
+ "cancelable": true,
94
+ "composed": true,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "complexType": {
100
+ "original": "Selected",
101
+ "resolved": "Selected",
102
+ "references": {
103
+ "Selected": {
104
+ "location": "import",
105
+ "path": "../Selected"
106
+ }
107
+ }
108
+ }
109
+ }];
110
+ }
86
111
  }
@@ -1,6 +1,7 @@
1
1
  smoothly-radio-button[decoration=radio] :host {
2
- background: rgb(var(--smoothly-primary-shade));
3
- color: rgb(var(--smoothly-primary-contrast));
2
+ background: rgb(var(--smoothly-secondary-shade));
3
+ color: rgb(var(--smoothly-secondary-contrast));
4
+ transition: 0.2s;
4
5
  }
5
6
 
6
7
  smoothly-radio-button[decoration=radio] :host > header {
@@ -12,19 +13,23 @@ smoothly-radio-button[decoration=radio] :host > header > smoothly-icon {
12
13
  display: none;
13
14
  }
14
15
  smoothly-radio-button[decoration=radio] :host[selected] > header {
15
- color: rgb(var(--smoothly-primary-contrast));
16
- background: rgb(var(--smoothly-primary-color));
16
+ color: rgb(var(--smoothly-secondary-contrast));
17
+ background: rgb(var(--smoothly-secondary-shade));
17
18
  }
18
19
 
19
20
  smoothly-radio-button[decoration=radio] ::slotted([slot=expansion])::before {
20
21
  content: unset;
21
22
  }
22
23
 
23
- smoothly-radio-button[decoration=button] :host {
24
- margin-bottom: 0.5rem;
24
+ @media screen and (min-width: 900px) {
25
+ smoothly-radio-button[decoration=radio] :host:hover {
26
+ background: rgb(var(--smoothly-secondary-shade));
27
+ cursor: pointer;
28
+ }
25
29
  }
26
- smoothly-radio-button[decoration=button] :host:last-child {
27
- margin-bottom: 0;
30
+
31
+ smoothly-radio-button[decoration=button] :host {
32
+ padding: 0.3rem;
28
33
  }
29
34
 
30
35
  smoothly-radio-button[decoration=button] :host > header > smoothly-icon {
@@ -42,8 +47,8 @@ smoothly-radio-button[decoration=button] :host[selected] > header > smoothly-ico
42
47
  }
43
48
 
44
49
  smoothly-radio-button[decoration=button] ::slotted([slot=expansion]) {
45
- background: rgb(var(--smoothly-primary-color));
46
- color: rgb(var(--smoothly-primary-contrast));
50
+ background: rgb(var(--smoothly-secondary-color));
51
+ color: rgb(var(--smoothly-secondary-contrast));
47
52
  border-radius: 5px;
48
53
  margin-top: 0.5rem;
49
54
  }
@@ -53,7 +58,7 @@ smoothly-radio-button[decoration=button] ::slotted([slot=expansion])::before {
53
58
  position: absolute;
54
59
  top: -0.8rem;
55
60
  left: 3rem;
56
- color: rgb(var(--smoothly-primary-color));
61
+ color: rgb(var(--smoothly-secondary-color));
57
62
  }
58
63
 
59
64
  @media screen and (min-width: 900px){
@@ -80,8 +85,8 @@ smoothly-radio-button[decoration=button] ::slotted([slot=expansion])::before {
80
85
 
81
86
  ::slotted([slot=expansion]) {
82
87
  display: none;
83
- background: rgb(var(--smoothly-primary-tint));
84
- color: rgb(var(--smoothly-primary-contrast));
88
+ background: rgb(var(--smoothly-secondary-tint));
89
+ color: rgb(var(--smoothly-secondary-contrast));
85
90
  padding: 0;
86
91
  position: relative;
87
92
  transition: 0.1s;
@@ -1,4 +1,4 @@
1
- import { Component, h, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyToggleGroup {
3
3
  constructor() {
4
4
  this.orientation = "horizontal";
@@ -7,30 +7,36 @@ export class SmoothlyToggleGroup {
7
7
  return h("slot", null);
8
8
  }
9
9
  static get is() { return "smoothly-radio-group"; }
10
- static get originalStyleUrls() { return {
11
- "$": ["style.css"]
12
- }; }
13
- static get styleUrls() { return {
14
- "$": ["style.css"]
15
- }; }
16
- static get properties() { return {
17
- "orientation": {
18
- "type": "string",
19
- "mutable": false,
20
- "complexType": {
21
- "original": "\"horizontal\" | \"vertical\"",
22
- "resolved": "\"horizontal\" | \"vertical\" | undefined",
23
- "references": {}
24
- },
25
- "required": false,
26
- "optional": true,
27
- "docs": {
28
- "tags": [],
29
- "text": ""
30
- },
31
- "attribute": "orientation",
32
- "reflect": true,
33
- "defaultValue": "\"horizontal\""
34
- }
35
- }; }
10
+ static get originalStyleUrls() {
11
+ return {
12
+ "$": ["style.css"]
13
+ };
14
+ }
15
+ static get styleUrls() {
16
+ return {
17
+ "$": ["style.css"]
18
+ };
19
+ }
20
+ static get properties() {
21
+ return {
22
+ "orientation": {
23
+ "type": "string",
24
+ "mutable": false,
25
+ "complexType": {
26
+ "original": "\"horizontal\" | \"vertical\"",
27
+ "resolved": "\"horizontal\" | \"vertical\" | undefined",
28
+ "references": {}
29
+ },
30
+ "required": false,
31
+ "optional": true,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": ""
35
+ },
36
+ "attribute": "orientation",
37
+ "reflect": true,
38
+ "defaultValue": "\"horizontal\""
39
+ }
40
+ };
41
+ }
36
42
  }
@@ -1,4 +1,3 @@
1
- import { Component, Element, Event } from "@stencil/core";
2
1
  export class SmoothlyReorder {
3
2
  get children() {
4
3
  let result = [];
@@ -86,27 +85,33 @@ export class SmoothlyReorder {
86
85
  });
87
86
  }
88
87
  static get is() { return "smoothly-reorder"; }
89
- static get originalStyleUrls() { return {
90
- "$": ["style.css"]
91
- }; }
92
- static get styleUrls() { return {
93
- "$": ["style.css"]
94
- }; }
95
- static get events() { return [{
96
- "method": "reorder",
97
- "name": "reorder",
98
- "bubbles": true,
99
- "cancelable": true,
100
- "composed": true,
101
- "docs": {
102
- "tags": [],
103
- "text": ""
104
- },
105
- "complexType": {
106
- "original": "[number, number]",
107
- "resolved": "[number, number]",
108
- "references": {}
109
- }
110
- }]; }
88
+ static get originalStyleUrls() {
89
+ return {
90
+ "$": ["style.css"]
91
+ };
92
+ }
93
+ static get styleUrls() {
94
+ return {
95
+ "$": ["style.css"]
96
+ };
97
+ }
98
+ static get events() {
99
+ return [{
100
+ "method": "reorder",
101
+ "name": "reorder",
102
+ "bubbles": true,
103
+ "cancelable": true,
104
+ "composed": true,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": ""
108
+ },
109
+ "complexType": {
110
+ "original": "[number, number]",
111
+ "resolved": "[number, number]",
112
+ "references": {}
113
+ }
114
+ }];
115
+ }
111
116
  static get elementRef() { return "element"; }
112
117
  }
@@ -1,81 +1,83 @@
1
- import { Component, h, Prop } from "@stencil/core";
1
+ import { h } from "@stencil/core";
2
2
  export class SmoothlyRoom {
3
3
  render() {
4
4
  return h("slot", null);
5
5
  }
6
6
  static get is() { return "smoothly-room"; }
7
- static get properties() { return {
8
- "label": {
9
- "type": "string",
10
- "mutable": false,
11
- "complexType": {
12
- "original": "string",
13
- "resolved": "string | undefined",
14
- "references": {}
7
+ static get properties() {
8
+ return {
9
+ "label": {
10
+ "type": "string",
11
+ "mutable": false,
12
+ "complexType": {
13
+ "original": "string",
14
+ "resolved": "string | undefined",
15
+ "references": {}
16
+ },
17
+ "required": false,
18
+ "optional": true,
19
+ "docs": {
20
+ "tags": [],
21
+ "text": ""
22
+ },
23
+ "attribute": "label",
24
+ "reflect": false
15
25
  },
16
- "required": false,
17
- "optional": true,
18
- "docs": {
19
- "tags": [],
20
- "text": ""
26
+ "icon": {
27
+ "type": "string",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "string",
31
+ "resolved": "string | undefined",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": true,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": ""
39
+ },
40
+ "attribute": "icon",
41
+ "reflect": false
21
42
  },
22
- "attribute": "label",
23
- "reflect": false
24
- },
25
- "icon": {
26
- "type": "string",
27
- "mutable": false,
28
- "complexType": {
29
- "original": "string",
30
- "resolved": "string | undefined",
31
- "references": {}
32
- },
33
- "required": false,
34
- "optional": true,
35
- "docs": {
36
- "tags": [],
37
- "text": ""
38
- },
39
- "attribute": "icon",
40
- "reflect": false
41
- },
42
- "path": {
43
- "type": "string",
44
- "mutable": false,
45
- "complexType": {
46
- "original": "string | RegExp",
47
- "resolved": "RegExp | string",
48
- "references": {
49
- "RegExp": {
50
- "location": "global"
43
+ "path": {
44
+ "type": "string",
45
+ "mutable": false,
46
+ "complexType": {
47
+ "original": "string | RegExp",
48
+ "resolved": "RegExp | string",
49
+ "references": {
50
+ "RegExp": {
51
+ "location": "global"
52
+ }
51
53
  }
52
- }
53
- },
54
- "required": false,
55
- "optional": false,
56
- "docs": {
57
- "tags": [],
58
- "text": ""
54
+ },
55
+ "required": false,
56
+ "optional": false,
57
+ "docs": {
58
+ "tags": [],
59
+ "text": ""
60
+ },
61
+ "attribute": "path",
62
+ "reflect": false
59
63
  },
60
- "attribute": "path",
61
- "reflect": false
62
- },
63
- "to": {
64
- "type": "string",
65
- "mutable": false,
66
- "complexType": {
67
- "original": "string",
68
- "resolved": "string | undefined",
69
- "references": {}
70
- },
71
- "required": false,
72
- "optional": true,
73
- "docs": {
74
- "tags": [],
75
- "text": ""
76
- },
77
- "attribute": "to",
78
- "reflect": false
79
- }
80
- }; }
64
+ "to": {
65
+ "type": "string",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "string",
69
+ "resolved": "string | undefined",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": true,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": ""
77
+ },
78
+ "attribute": "to",
79
+ "reflect": false
80
+ }
81
+ };
82
+ }
81
83
  }