@nectary/components 0.41.1 → 0.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.js +0 -16
- package/accordion/types.d.ts +9 -1
- package/accordion-item/index.js +0 -24
- package/accordion-item/types.d.ts +18 -3
- package/action-menu/index.js +1 -45
- package/action-menu-option/index.js +0 -18
- package/alert/index.js +0 -10
- package/alert/types.d.ts +6 -0
- package/avatar/index.js +57 -20
- package/avatar/types.d.ts +25 -7
- package/avatar/utils.d.ts +10 -2
- package/avatar/utils.js +23 -2
- package/badge/index.d.ts +11 -0
- package/badge/index.js +140 -0
- package/badge/types.d.ts +38 -0
- package/badge/utils.d.ts +11 -0
- package/badge/utils.js +23 -0
- package/button/index.js +0 -18
- package/card/index.js +0 -16
- package/card/types.d.ts +15 -3
- package/card-container/index.js +0 -1
- package/chat/index.js +0 -1
- package/chat-block/index.js +0 -19
- package/chat-block/types.d.ts +16 -4
- package/chat-bubble/index.js +0 -9
- package/chat-bubble/types.d.ts +6 -0
- package/checkbox/index.js +0 -23
- package/chip/index.js +16 -25
- package/chip/utils.d.ts +3 -0
- package/chip/utils.js +11 -0
- package/color-menu/index.js +8 -86
- package/color-menu/utils.js +0 -4
- package/color-swatch/index.js +17 -17
- package/color-swatch/types.d.ts +2 -2
- package/color-swatch/utils.d.ts +3 -0
- package/color-swatch/utils.js +11 -0
- package/date-picker/index.js +1 -50
- package/date-picker/utils.js +0 -7
- package/dialog/index.js +1 -17
- package/field/index.js +0 -19
- package/file-drop/index.js +0 -40
- package/file-drop/utils.js +0 -6
- package/file-picker/index.js +0 -17
- package/file-picker/utils.js +0 -1
- package/file-status/index.js +0 -12
- package/grid/index.js +0 -1
- package/grid-item/index.js +0 -9
- package/help-tooltip/index.js +0 -14
- package/horizontal-stepper/index.js +0 -12
- package/horizontal-stepper-item/index.js +0 -14
- package/icon-button/index.js +0 -15
- package/icons/create-icon-class.js +0 -2
- package/icons-branded/create-icon-class.js +0 -8
- package/icons-channel/create-icon-class.js +0 -6
- package/illustrations/create-illustration-class.js +0 -11
- package/inline-alert/index.js +0 -14
- package/input/index.js +0 -37
- package/link/index.js +0 -25
- package/list/index.js +0 -2
- package/list-item/index.js +0 -2
- package/logo/create-logo-class.js +0 -9
- package/package.json +3 -1
- package/pagination/index.js +0 -31
- package/pop/index.js +26 -68
- package/pop/utils.js +0 -1
- package/popover/index.js +0 -33
- package/popover/utils.js +0 -2
- package/progress/index.js +0 -10
- package/radio/index.js +0 -30
- package/radio-option/index.js +0 -20
- package/segment/index.js +0 -15
- package/segment-collapse/index.js +0 -13
- package/segmented-control/index.js +0 -12
- package/segmented-control-option/index.js +0 -18
- package/segmented-icon-control/index.js +0 -16
- package/segmented-icon-control-option/index.js +0 -14
- package/select-button/index.js +0 -23
- package/select-menu/index.js +1 -63
- package/select-menu-option/index.js +0 -14
- package/spinner/index.js +0 -4
- package/stop-events/index.js +0 -5
- package/table/index.js +0 -2
- package/table-body/index.js +0 -2
- package/table-cell/index.js +0 -4
- package/table-head/index.js +0 -2
- package/table-head-cell/index.js +0 -11
- package/table-row/index.js +0 -6
- package/tabs/index.js +0 -30
- package/tabs-option/index.js +0 -19
- package/tag/index.js +18 -21
- package/tag/utils.d.ts +3 -0
- package/tag/utils.js +11 -0
- package/text/index.js +1 -12
- package/textarea/index.js +0 -40
- package/theme/avatar.css +25 -0
- package/theme/badge.css +15 -0
- package/theme/chip.css +53 -0
- package/theme/color-swatch.css +65 -0
- package/{utils → theme}/colors.d.ts +0 -1
- package/{utils → theme}/colors.js +0 -1
- package/theme/elevation.css +7 -0
- package/theme/fonts.css +76 -0
- package/theme/fonts.json +79 -0
- package/theme/palette.css +90 -0
- package/theme/shapes.css +7 -0
- package/theme/tag.css +53 -0
- package/theme/typography.css +16 -0
- package/theme.css +13 -209
- package/tile-control/index.js +0 -24
- package/tile-control-option/index.js +0 -18
- package/time-picker/index.js +2 -51
- package/time-picker/utils.js +0 -18
- package/title/index.js +1 -12
- package/title/utils.js +0 -5
- package/toast/index.js +0 -19
- package/toast-manager/index.js +0 -27
- package/toggle/index.js +0 -23
- package/tooltip/index.js +0 -27
- package/tooltip/utils.js +0 -4
- package/utils/animation.js +0 -20
- package/utils/context.js +0 -6
- package/utils/index.d.ts +1 -0
- package/utils/index.js +11 -52
- package/vertical-stepper/index.js +0 -12
- package/vertical-stepper-item/index.js +0 -14
- package/avatar-badge/index.d.ts +0 -11
- package/avatar-badge/index.js +0 -38
- package/avatar-badge/types.d.ts +0 -8
- package/avatar-status/index.d.ts +0 -11
- package/avatar-status/index.js +0 -37
- package/avatar-status/types.d.ts +0 -9
- package/avatar-status/types.js +0 -1
- package/avatar-status/utils.d.ts +0 -5
- package/avatar-status/utils.js +0 -6
- package/chat-avatar/index.d.ts +0 -12
- package/chat-avatar/index.js +0 -52
- package/chat-avatar/types.d.ts +0 -12
- package/chat-avatar/types.js +0 -1
- /package/{avatar-badge → badge}/types.js +0 -0
package/textarea/index.js
CHANGED
|
@@ -6,14 +6,12 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
6
6
|
#$input;
|
|
7
7
|
#cursorPos = null;
|
|
8
8
|
#isPendingDk = false;
|
|
9
|
-
|
|
10
9
|
constructor() {
|
|
11
10
|
super();
|
|
12
11
|
const shadowRoot = this.attachShadow();
|
|
13
12
|
shadowRoot.appendChild(template.content.cloneNode(true));
|
|
14
13
|
this.#$input = shadowRoot.querySelector('#input');
|
|
15
14
|
}
|
|
16
|
-
|
|
17
15
|
connectedCallback() {
|
|
18
16
|
this.setAttribute('role', 'textbox');
|
|
19
17
|
this.setAttribute('aria-multiline', 'true');
|
|
@@ -27,7 +25,6 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
27
25
|
this.addEventListener('-focus', this.#onFocusReactHandler);
|
|
28
26
|
this.addEventListener('-blur', this.#onBlurReactHandler);
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
disconnectedCallback() {
|
|
32
29
|
this.#$input.removeEventListener('input', this.#onInput);
|
|
33
30
|
this.#$input.removeEventListener('compositionstart', this.#onCompositionStart);
|
|
@@ -39,48 +36,39 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
39
36
|
this.removeEventListener('-focus', this.#onFocusReactHandler);
|
|
40
37
|
this.removeEventListener('-blur', this.#onBlurReactHandler);
|
|
41
38
|
}
|
|
42
|
-
|
|
43
39
|
static get observedAttributes() {
|
|
44
40
|
return ['value', 'placeholder', 'invalid', 'disabled', 'rows'];
|
|
45
41
|
}
|
|
46
|
-
|
|
47
42
|
attributeChangedCallback(name, oldVal, newVal) {
|
|
48
43
|
if (oldVal === newVal) {
|
|
49
44
|
return;
|
|
50
45
|
}
|
|
51
|
-
|
|
52
46
|
switch (name) {
|
|
53
47
|
case 'value':
|
|
54
48
|
{
|
|
55
49
|
const nextVal = newVal ?? '';
|
|
56
50
|
const prevVal = this.#$input.value;
|
|
57
|
-
|
|
58
51
|
if (nextVal !== prevVal) {
|
|
59
52
|
const prevCursorPos = this.#$input.selectionEnd;
|
|
60
53
|
const isPrevCursorEnd = prevCursorPos === prevVal.length;
|
|
61
54
|
this.#$input.value = nextVal;
|
|
62
|
-
|
|
63
55
|
if (!isPrevCursorEnd) {
|
|
64
56
|
this.#$input.setSelectionRange(this.#cursorPos, this.#cursorPos);
|
|
65
57
|
}
|
|
66
58
|
}
|
|
67
|
-
|
|
68
59
|
break;
|
|
69
60
|
}
|
|
70
|
-
|
|
71
61
|
case 'placeholder':
|
|
72
62
|
{
|
|
73
63
|
this.#$input.placeholder = newVal ?? '';
|
|
74
64
|
updateAttribute(this, 'aria-placeholder', newVal);
|
|
75
65
|
break;
|
|
76
66
|
}
|
|
77
|
-
|
|
78
67
|
case 'invalid':
|
|
79
68
|
{
|
|
80
69
|
updateExplicitBooleanAttribute(this, 'aria-invalid', isAttrTrue(newVal));
|
|
81
70
|
break;
|
|
82
71
|
}
|
|
83
|
-
|
|
84
72
|
case 'disabled':
|
|
85
73
|
{
|
|
86
74
|
const isDisabled = isAttrTrue(newVal);
|
|
@@ -88,7 +76,6 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
88
76
|
updateBooleanAttribute(this, 'disabled', isDisabled);
|
|
89
77
|
break;
|
|
90
78
|
}
|
|
91
|
-
|
|
92
79
|
case 'rows':
|
|
93
80
|
{
|
|
94
81
|
updateAttribute(this.#$input, 'rows', newVal);
|
|
@@ -96,95 +83,72 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
96
83
|
}
|
|
97
84
|
}
|
|
98
85
|
}
|
|
99
|
-
|
|
100
86
|
get nodeName() {
|
|
101
87
|
return 'textarea';
|
|
102
88
|
}
|
|
103
|
-
|
|
104
89
|
set value(value) {
|
|
105
90
|
updateAttribute(this, 'value', value);
|
|
106
91
|
}
|
|
107
|
-
|
|
108
92
|
get value() {
|
|
109
93
|
return getAttribute(this, 'value', '');
|
|
110
94
|
}
|
|
111
|
-
|
|
112
95
|
set placeholder(value) {
|
|
113
96
|
updateAttribute(this, 'placeholder', value);
|
|
114
97
|
}
|
|
115
|
-
|
|
116
98
|
get placeholder() {
|
|
117
99
|
return getAttribute(this, 'placeholder');
|
|
118
100
|
}
|
|
119
|
-
|
|
120
101
|
set invalid(value) {
|
|
121
102
|
updateBooleanAttribute(this, 'invalid', value);
|
|
122
103
|
}
|
|
123
|
-
|
|
124
104
|
get invalid() {
|
|
125
105
|
return getBooleanAttribute(this, 'invalid');
|
|
126
106
|
}
|
|
127
|
-
|
|
128
107
|
set disabled(isDisabled) {
|
|
129
108
|
updateBooleanAttribute(this, 'disabled', isDisabled);
|
|
130
109
|
}
|
|
131
|
-
|
|
132
110
|
get disabled() {
|
|
133
111
|
return getBooleanAttribute(this, 'disabled');
|
|
134
112
|
}
|
|
135
|
-
|
|
136
113
|
set resizable(isResizable) {
|
|
137
114
|
updateBooleanAttribute(this, 'resizable', isResizable);
|
|
138
115
|
}
|
|
139
|
-
|
|
140
116
|
get resizable() {
|
|
141
117
|
return getBooleanAttribute(this, 'resizable');
|
|
142
118
|
}
|
|
143
|
-
|
|
144
119
|
set rows(value) {
|
|
145
120
|
updateAttribute(this, 'rows', value);
|
|
146
121
|
}
|
|
147
|
-
|
|
148
122
|
get rows() {
|
|
149
123
|
return getIntegerAttribute(this, 'rows', 0);
|
|
150
124
|
}
|
|
151
|
-
|
|
152
125
|
get selectionStart() {
|
|
153
126
|
return this.#$input.selectionStart;
|
|
154
127
|
}
|
|
155
|
-
|
|
156
128
|
set selectionStart(value) {
|
|
157
129
|
this.#$input.selectionStart = value;
|
|
158
130
|
}
|
|
159
|
-
|
|
160
131
|
get selectionEnd() {
|
|
161
132
|
return this.#$input.selectionEnd;
|
|
162
133
|
}
|
|
163
|
-
|
|
164
134
|
set selectionEnd(value) {
|
|
165
135
|
this.#$input.selectionEnd = value;
|
|
166
136
|
}
|
|
167
|
-
|
|
168
137
|
get selectionDirection() {
|
|
169
138
|
return this.#$input.selectionDirection;
|
|
170
139
|
}
|
|
171
|
-
|
|
172
140
|
set selectionDirection(value) {
|
|
173
141
|
this.#$input.selectionDirection = value;
|
|
174
142
|
}
|
|
175
|
-
|
|
176
143
|
get focusable() {
|
|
177
144
|
return true;
|
|
178
145
|
}
|
|
179
|
-
|
|
180
146
|
focus() {
|
|
181
147
|
this.#$input.focus();
|
|
182
148
|
}
|
|
183
|
-
|
|
184
149
|
blur() {
|
|
185
150
|
this.#$input.blur();
|
|
186
151
|
}
|
|
187
|
-
|
|
188
152
|
#onCompositionStart = () => {
|
|
189
153
|
this.#isPendingDk = true;
|
|
190
154
|
};
|
|
@@ -195,20 +159,16 @@ defineCustomElement('sinch-textarea', class extends NectaryElement {
|
|
|
195
159
|
e.stopPropagation();
|
|
196
160
|
const nextValue = this.#$input.value;
|
|
197
161
|
const prevValue = this.value;
|
|
198
|
-
|
|
199
162
|
if (prevValue !== nextValue) {
|
|
200
163
|
const nextCursorPos = this.#$input.selectionEnd;
|
|
201
|
-
|
|
202
164
|
if (!this.#isPendingDk) {
|
|
203
165
|
this.#$input.value = prevValue;
|
|
204
166
|
const prevCursorPos = this.#cursorPos;
|
|
205
167
|
const isPrevCursorEnd = prevCursorPos === null || prevCursorPos === prevValue.length;
|
|
206
|
-
|
|
207
168
|
if (!isPrevCursorEnd) {
|
|
208
169
|
this.#$input.setSelectionRange(prevCursorPos, prevCursorPos);
|
|
209
170
|
}
|
|
210
171
|
}
|
|
211
|
-
|
|
212
172
|
this.#isPendingDk = false;
|
|
213
173
|
this.#cursorPos = nextCursorPos;
|
|
214
174
|
this.dispatchEvent(new CustomEvent('change', {
|
package/theme/avatar.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-avatar-color-light-blue-bg: var(--sinch-color-night-200);
|
|
4
|
+
--sinch-avatar-color-light-blue-fg: var(--sinch-color-night-700);
|
|
5
|
+
--sinch-avatar-color-light-brown-bg: var(--sinch-color-mud-200);
|
|
6
|
+
--sinch-avatar-color-light-brown-fg: var(--sinch-color-mud-700);
|
|
7
|
+
--sinch-avatar-color-light-gray-bg: var(--sinch-color-dirt-200);
|
|
8
|
+
--sinch-avatar-color-light-gray-fg: var(--sinch-color-dirt-700);
|
|
9
|
+
--sinch-avatar-color-light-green-bg: var(--sinch-color-grass-200);
|
|
10
|
+
--sinch-avatar-color-light-green-fg: var(--sinch-color-grass-700);
|
|
11
|
+
--sinch-avatar-color-light-orange-bg: var(--sinch-color-orange-200);
|
|
12
|
+
--sinch-avatar-color-light-orange-fg: var(--sinch-color-orange-700);
|
|
13
|
+
--sinch-avatar-color-light-pink-bg: var(--sinch-color-candy-200);
|
|
14
|
+
--sinch-avatar-color-light-pink-fg: var(--sinch-color-candy-700);
|
|
15
|
+
--sinch-avatar-color-light-violet-bg: var(--sinch-color-violet-200);
|
|
16
|
+
--sinch-avatar-color-light-violet-fg: var(--sinch-color-violet-700);
|
|
17
|
+
--sinch-avatar-color-light-yellow-bg: var(--sinch-color-bolt-200);
|
|
18
|
+
--sinch-avatar-color-light-yellow-fg: var(--sinch-color-bolt-700);
|
|
19
|
+
--sinch-avatar-color-default-bg: var(--sinch-avatar-color-light-gray-bg);
|
|
20
|
+
--sinch-avatar-color-default-fg: var(--sinch-avatar-color-light-gray-fg);
|
|
21
|
+
--sinch-avatar-status-color-online: var(--sinch-color-grass-400);
|
|
22
|
+
--sinch-avatar-status-color-away: var(--sinch-color-honey-500);
|
|
23
|
+
--sinch-avatar-status-color-busy: var(--sinch-color-raspberry-500);
|
|
24
|
+
--sinch-avatar-status-color-offline: var(--sinch-color-stormy-200);
|
|
25
|
+
}
|
package/theme/badge.css
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-badge-color-yellow-bg: var(--sinch-color-bolt-400);
|
|
4
|
+
--sinch-badge-color-yellow-fg: var(--sinch-color-stormy-500);
|
|
5
|
+
--sinch-badge-color-red-bg: var(--sinch-color-raspberry-500);
|
|
6
|
+
--sinch-badge-color-red-fg: var(--sinch-color-snow-100);
|
|
7
|
+
--sinch-badge-color-black-bg: var(--sinch-color-stormy-500);
|
|
8
|
+
--sinch-badge-color-black-fg: var(--sinch-color-snow-100);
|
|
9
|
+
--sinch-badge-color-gray-bg: var(--sinch-color-snow-500);
|
|
10
|
+
--sinch-badge-color-gray-fg: var(--sinch-color-stormy-500);
|
|
11
|
+
--sinch-badge-color-green-bg: var(--sinch-color-grass-400);
|
|
12
|
+
--sinch-badge-color-green-fg: var(--sinch-color-snow-100);
|
|
13
|
+
--sinch-badge-color-default-bg: var(--sinch-badge-color-red-bg);
|
|
14
|
+
--sinch-badge-color-default-fg: var(--sinch-badge-color-red-fg);
|
|
15
|
+
}
|
package/theme/chip.css
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-chip-color-default-bg: var(--sinch-color-snow-500);
|
|
4
|
+
--sinch-chip-color-default-fg: var(--sinch-color-stormy-500);
|
|
5
|
+
--sinch-chip-color-light-blue-bg: var(--sinch-color-night-200);
|
|
6
|
+
--sinch-chip-color-light-blue-fg: var(--sinch-color-night-700);
|
|
7
|
+
--sinch-chip-color-light-brown-bg: var(--sinch-color-mud-200);
|
|
8
|
+
--sinch-chip-color-light-brown-fg: var(--sinch-color-mud-700);
|
|
9
|
+
--sinch-chip-color-light-gray-bg: var(--sinch-color-dirt-200);
|
|
10
|
+
--sinch-chip-color-light-gray-fg: var(--sinch-color-dirt-700);
|
|
11
|
+
--sinch-chip-color-light-green-bg: var(--sinch-color-grass-200);
|
|
12
|
+
--sinch-chip-color-light-green-fg: var(--sinch-color-grass-700);
|
|
13
|
+
--sinch-chip-color-light-orange-bg: var(--sinch-color-orange-200);
|
|
14
|
+
--sinch-chip-color-light-orange-fg: var(--sinch-color-orange-700);
|
|
15
|
+
--sinch-chip-color-light-pink-bg: var(--sinch-color-candy-200);
|
|
16
|
+
--sinch-chip-color-light-pink-fg: var(--sinch-color-candy-700);
|
|
17
|
+
--sinch-chip-color-light-violet-bg: var(--sinch-color-violet-200);
|
|
18
|
+
--sinch-chip-color-light-violet-fg: var(--sinch-color-violet-700);
|
|
19
|
+
--sinch-chip-color-light-yellow-bg: var(--sinch-color-bolt-200);
|
|
20
|
+
--sinch-chip-color-light-yellow-fg: var(--sinch-color-bolt-700);
|
|
21
|
+
--sinch-chip-color-dark-blue-bg: var(--sinch-color-night-700);
|
|
22
|
+
--sinch-chip-color-dark-blue-fg: var(--sinch-color-night-200);
|
|
23
|
+
--sinch-chip-color-dark-brown-bg: var(--sinch-color-mud-700);
|
|
24
|
+
--sinch-chip-color-dark-brown-fg: var(--sinch-color-mud-200);
|
|
25
|
+
--sinch-chip-color-dark-gray-bg: var(--sinch-color-dirt-700);
|
|
26
|
+
--sinch-chip-color-dark-gray-fg: var(--sinch-color-dirt-200);
|
|
27
|
+
--sinch-chip-color-dark-green-bg: var(--sinch-color-grass-700);
|
|
28
|
+
--sinch-chip-color-dark-green-fg: var(--sinch-color-grass-200);
|
|
29
|
+
--sinch-chip-color-dark-orange-bg: var(--sinch-color-orange-700);
|
|
30
|
+
--sinch-chip-color-dark-orange-fg: var(--sinch-color-orange-200);
|
|
31
|
+
--sinch-chip-color-dark-pink-bg: var(--sinch-color-candy-700);
|
|
32
|
+
--sinch-chip-color-dark-pink-fg: var(--sinch-color-candy-200);
|
|
33
|
+
--sinch-chip-color-dark-violet-bg: var(--sinch-color-violet-700);
|
|
34
|
+
--sinch-chip-color-dark-violet-fg: var(--sinch-color-violet-200);
|
|
35
|
+
--sinch-chip-color-dark-yellow-bg: var(--sinch-color-bolt-700);
|
|
36
|
+
--sinch-chip-color-dark-yellow-fg: var(--sinch-color-bolt-200);
|
|
37
|
+
--sinch-chip-color-blue-bg: var(--sinch-color-night-400);
|
|
38
|
+
--sinch-chip-color-blue-fg: var(--sinch-color-snow-100);
|
|
39
|
+
--sinch-chip-color-brown-bg: var(--sinch-color-mud-400);
|
|
40
|
+
--sinch-chip-color-brown-fg: var(--sinch-color-snow-100);
|
|
41
|
+
--sinch-chip-color-gray-bg: var(--sinch-color-dirt-400);
|
|
42
|
+
--sinch-chip-color-gray-fg: var(--sinch-color-snow-100);
|
|
43
|
+
--sinch-chip-color-green-bg: var(--sinch-color-grass-400);
|
|
44
|
+
--sinch-chip-color-green-fg: var(--sinch-color-stormy-500);
|
|
45
|
+
--sinch-chip-color-orange-bg: var(--sinch-color-orange-400);
|
|
46
|
+
--sinch-chip-color-orange-fg: var(--sinch-color-stormy-500);
|
|
47
|
+
--sinch-chip-color-pink-bg: var(--sinch-color-candy-400);
|
|
48
|
+
--sinch-chip-color-pink-fg: var(--sinch-color-stormy-500);
|
|
49
|
+
--sinch-chip-color-violet-bg: var(--sinch-color-violet-400);
|
|
50
|
+
--sinch-chip-color-violet-fg: var(--sinch-color-stormy-500);
|
|
51
|
+
--sinch-chip-color-yellow-bg: var(--sinch-color-bolt-400);
|
|
52
|
+
--sinch-chip-color-yellow-fg: var(--sinch-color-stormy-500);
|
|
53
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-color-swatch-color-default-bg: var(--sinch-color-snow-500);
|
|
4
|
+
--sinch-color-swatch-color-default-fg: var(--sinch-color-stormy-500);
|
|
5
|
+
--sinch-color-swatch-color-light-blue-bg: var(--sinch-color-night-200);
|
|
6
|
+
--sinch-color-swatch-color-light-blue-fg: var(--sinch-color-night-700);
|
|
7
|
+
--sinch-color-swatch-color-light-brown-bg: var(--sinch-color-mud-200);
|
|
8
|
+
--sinch-color-swatch-color-light-brown-fg: var(--sinch-color-mud-700);
|
|
9
|
+
--sinch-color-swatch-color-light-gray-bg: var(--sinch-color-dirt-200);
|
|
10
|
+
--sinch-color-swatch-color-light-gray-fg: var(--sinch-color-dirt-700);
|
|
11
|
+
--sinch-color-swatch-color-light-green-bg: var(--sinch-color-grass-200);
|
|
12
|
+
--sinch-color-swatch-color-light-green-fg: var(--sinch-color-grass-700);
|
|
13
|
+
--sinch-color-swatch-color-light-orange-bg: var(--sinch-color-orange-200);
|
|
14
|
+
--sinch-color-swatch-color-light-orange-fg: var(--sinch-color-orange-700);
|
|
15
|
+
--sinch-color-swatch-color-light-pink-bg: var(--sinch-color-candy-200);
|
|
16
|
+
--sinch-color-swatch-color-light-pink-fg: var(--sinch-color-candy-700);
|
|
17
|
+
--sinch-color-swatch-color-light-violet-bg: var(--sinch-color-violet-200);
|
|
18
|
+
--sinch-color-swatch-color-light-violet-fg: var(--sinch-color-violet-700);
|
|
19
|
+
--sinch-color-swatch-color-light-yellow-bg: var(--sinch-color-bolt-200);
|
|
20
|
+
--sinch-color-swatch-color-light-yellow-fg: var(--sinch-color-bolt-700);
|
|
21
|
+
--sinch-color-swatch-color-dark-blue-bg: var(--sinch-color-night-700);
|
|
22
|
+
--sinch-color-swatch-color-dark-blue-fg: var(--sinch-color-night-200);
|
|
23
|
+
--sinch-color-swatch-color-dark-brown-bg: var(--sinch-color-mud-700);
|
|
24
|
+
--sinch-color-swatch-color-dark-brown-fg: var(--sinch-color-mud-200);
|
|
25
|
+
--sinch-color-swatch-color-dark-gray-bg: var(--sinch-color-dirt-700);
|
|
26
|
+
--sinch-color-swatch-color-dark-gray-fg: var(--sinch-color-dirt-200);
|
|
27
|
+
--sinch-color-swatch-color-dark-green-bg: var(--sinch-color-grass-700);
|
|
28
|
+
--sinch-color-swatch-color-dark-green-fg: var(--sinch-color-grass-200);
|
|
29
|
+
--sinch-color-swatch-color-dark-orange-bg: var(--sinch-color-orange-700);
|
|
30
|
+
--sinch-color-swatch-color-dark-orange-fg: var(--sinch-color-orange-200);
|
|
31
|
+
--sinch-color-swatch-color-dark-pink-bg: var(--sinch-color-candy-700);
|
|
32
|
+
--sinch-color-swatch-color-dark-pink-fg: var(--sinch-color-candy-200);
|
|
33
|
+
--sinch-color-swatch-color-dark-violet-bg: var(--sinch-color-violet-700);
|
|
34
|
+
--sinch-color-swatch-color-dark-violet-fg: var(--sinch-color-violet-200);
|
|
35
|
+
--sinch-color-swatch-color-dark-yellow-bg: var(--sinch-color-bolt-700);
|
|
36
|
+
--sinch-color-swatch-color-dark-yellow-fg: var(--sinch-color-bolt-200);
|
|
37
|
+
--sinch-color-swatch-color-blue-bg: var(--sinch-color-night-400);
|
|
38
|
+
--sinch-color-swatch-color-blue-fg: var(--sinch-color-snow-100);
|
|
39
|
+
--sinch-color-swatch-color-brown-bg: var(--sinch-color-mud-400);
|
|
40
|
+
--sinch-color-swatch-color-brown-fg: var(--sinch-color-snow-100);
|
|
41
|
+
--sinch-color-swatch-color-gray-bg: var(--sinch-color-dirt-400);
|
|
42
|
+
--sinch-color-swatch-color-gray-fg: var(--sinch-color-snow-100);
|
|
43
|
+
--sinch-color-swatch-color-green-bg: var(--sinch-color-grass-400);
|
|
44
|
+
--sinch-color-swatch-color-green-fg: var(--sinch-color-stormy-500);
|
|
45
|
+
--sinch-color-swatch-color-orange-bg: var(--sinch-color-orange-400);
|
|
46
|
+
--sinch-color-swatch-color-orange-fg: var(--sinch-color-stormy-500);
|
|
47
|
+
--sinch-color-swatch-color-pink-bg: var(--sinch-color-candy-400);
|
|
48
|
+
--sinch-color-swatch-color-pink-fg: var(--sinch-color-stormy-500);
|
|
49
|
+
--sinch-color-swatch-color-violet-bg: var(--sinch-color-violet-400);
|
|
50
|
+
--sinch-color-swatch-color-violet-fg: var(--sinch-color-stormy-500);
|
|
51
|
+
--sinch-color-swatch-color-yellow-bg: var(--sinch-color-bolt-400);
|
|
52
|
+
--sinch-color-swatch-color-yellow-fg: var(--sinch-color-stormy-500);
|
|
53
|
+
--sinch-color-swatch-color-skin-tone-0-bg: var(--sinch-color-skin-tone-0);
|
|
54
|
+
--sinch-color-swatch-color-skin-tone-0-fg: var(--sinch-color-stormy-500);
|
|
55
|
+
--sinch-color-swatch-color-skin-tone-10-bg: var(--sinch-color-skin-tone-10);
|
|
56
|
+
--sinch-color-swatch-color-skin-tone-10-fg: var(--sinch-color-stormy-500);
|
|
57
|
+
--sinch-color-swatch-color-skin-tone-20-bg: var(--sinch-color-skin-tone-20);
|
|
58
|
+
--sinch-color-swatch-color-skin-tone-20-fg: var(--sinch-color-stormy-500);
|
|
59
|
+
--sinch-color-swatch-color-skin-tone-30-bg: var(--sinch-color-skin-tone-30);
|
|
60
|
+
--sinch-color-swatch-color-skin-tone-30-fg: var(--sinch-color-stormy-500);
|
|
61
|
+
--sinch-color-swatch-color-skin-tone-40-bg: var(--sinch-color-skin-tone-40);
|
|
62
|
+
--sinch-color-swatch-color-skin-tone-40-fg: var(--sinch-color-stormy-500);
|
|
63
|
+
--sinch-color-swatch-color-skin-tone-50-bg: var(--sinch-color-skin-tone-50);
|
|
64
|
+
--sinch-color-swatch-color-skin-tone-50-fg: var(--sinch-color-snow-100);
|
|
65
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export const NO_COLOR = '';
|
|
2
1
|
export const lightColorNames = ['light-violet', 'light-blue', 'light-green', 'light-yellow', 'light-orange', 'light-pink', 'light-brown', 'light-gray'].join(',');
|
|
3
2
|
export const darkColorNames = ['dark-violet', 'dark-blue', 'dark-green', 'dark-yellow', 'dark-orange', 'dark-pink', 'dark-brown', 'dark-gray'].join(',');
|
|
4
3
|
export const vibrantColorNames = ['violet', 'blue', 'green', 'yellow', 'orange', 'pink', 'brown', 'gray'].join(',');
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-elevation-level-0: 0 0 0 0 rgba(10, 39, 61, 0.1);
|
|
4
|
+
--sinch-elevation-level-1: 1px 2px 6px rgba(10, 39, 61, 0.1);
|
|
5
|
+
--sinch-elevation-level-2: 1px 4px 8px rgba(10, 39, 61, 0.1);
|
|
6
|
+
--sinch-elevation-level-3: 1px 6px 12px rgba(10, 39, 61, 0.15);
|
|
7
|
+
}
|
package/theme/fonts.css
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Gilroy";
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
src:
|
|
7
|
+
local("Gilroy-Regular"),
|
|
8
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-Regular.woff2") format("woff2"),
|
|
9
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-Regular.woff") format("woff");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: "Gilroy";
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
src:
|
|
18
|
+
local("Gilroy-SemiBold"),
|
|
19
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-SemiBold.woff2") format("woff2"),
|
|
20
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-SemiBold.woff") format("woff");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: "Gilroy";
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-display: swap;
|
|
28
|
+
src:
|
|
29
|
+
local("Gilroy-Bold"),
|
|
30
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-Bold.woff2") format("woff2"),
|
|
31
|
+
url("https://d2vu40klajma73.cloudfront.net/Gilroy-Bold.woff") format("woff");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@font-face {
|
|
35
|
+
font-family: "DM Sans";
|
|
36
|
+
font-weight: 400;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-display: swap;
|
|
39
|
+
src:
|
|
40
|
+
local("DMSans-Regular"),
|
|
41
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-400.woff2") format("woff2"),
|
|
42
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-400.woff") format("woff");
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@font-face {
|
|
46
|
+
font-family: "DM Sans";
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
src:
|
|
51
|
+
local("DMSans-Medium"),
|
|
52
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-500.woff2") format("woff2"),
|
|
53
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-500.woff") format("woff");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "DM Sans";
|
|
58
|
+
font-weight: 700;
|
|
59
|
+
font-style: normal;
|
|
60
|
+
font-display: swap;
|
|
61
|
+
src:
|
|
62
|
+
local("DMSans-Bold"),
|
|
63
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-700.woff2") format("woff2"),
|
|
64
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Sans-700.woff") format("woff");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: "DM Mono";
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-display: swap;
|
|
72
|
+
src:
|
|
73
|
+
local("DMMono-Regular"),
|
|
74
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Mono-400.woff2") format("woff2"),
|
|
75
|
+
url("https://d2vu40klajma73.cloudfront.net/DM-Mono-400.woff") format("woff");
|
|
76
|
+
}
|
package/theme/fonts.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"family": "Gilroy",
|
|
4
|
+
"weight": 400,
|
|
5
|
+
"style": "normal",
|
|
6
|
+
"display": "swap",
|
|
7
|
+
"src": {
|
|
8
|
+
"local": "Gilroy-Regular",
|
|
9
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/Gilroy-Regular.woff2",
|
|
10
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/Gilroy-Regular.woff"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"family": "Gilroy",
|
|
15
|
+
"weight": 600,
|
|
16
|
+
"style": "normal",
|
|
17
|
+
"display": "swap",
|
|
18
|
+
"src": {
|
|
19
|
+
"local": "Gilroy-SemiBold",
|
|
20
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/Gilroy-SemiBold.woff2",
|
|
21
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/Gilroy-SemiBold.woff"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"family": "Gilroy",
|
|
26
|
+
"weight": 700,
|
|
27
|
+
"style": "normal",
|
|
28
|
+
"display": "swap",
|
|
29
|
+
"src": {
|
|
30
|
+
"local": "Gilroy-Bold",
|
|
31
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/Gilroy-Bold.woff2",
|
|
32
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/Gilroy-Bold.woff"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"family": "DM Sans",
|
|
37
|
+
"weight": 400,
|
|
38
|
+
"style": "normal",
|
|
39
|
+
"display": "swap",
|
|
40
|
+
"src": {
|
|
41
|
+
"local": "DMSans-Regular",
|
|
42
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/DM-Sans-400.woff2",
|
|
43
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/DM-Sans-400.woff"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"family": "DM Sans",
|
|
48
|
+
"weight": 500,
|
|
49
|
+
"style": "normal",
|
|
50
|
+
"display": "swap",
|
|
51
|
+
"src": {
|
|
52
|
+
"local": "DMSans-Medium",
|
|
53
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/DM-Sans-500.woff2",
|
|
54
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/DM-Sans-500.woff"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"family": "DM Sans",
|
|
59
|
+
"weight": 700,
|
|
60
|
+
"style": "normal",
|
|
61
|
+
"display": "swap",
|
|
62
|
+
"src": {
|
|
63
|
+
"local": "DMSans-Bold",
|
|
64
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/DM-Sans-700.woff2",
|
|
65
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/DM-Sans-700.woff"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"family": "DM Mono",
|
|
70
|
+
"weight": 400,
|
|
71
|
+
"style": "normal",
|
|
72
|
+
"display": "swap",
|
|
73
|
+
"src": {
|
|
74
|
+
"local": "DMMono-Regular",
|
|
75
|
+
"woff2": "https://d2vu40klajma73.cloudfront.net/DM-Mono-400.woff2",
|
|
76
|
+
"woff": "https://d2vu40klajma73.cloudfront.net/DM-Mono-400.woff"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--sinch-color-honey-700: #CC8800;
|
|
4
|
+
--sinch-color-honey-600: #FFAA00;
|
|
5
|
+
--sinch-color-honey-500: #FFBE3C;
|
|
6
|
+
--sinch-color-honey-400: #FFCC66;
|
|
7
|
+
--sinch-color-honey-300: #FFDF9E;
|
|
8
|
+
--sinch-color-honey-200: #FCECCB;
|
|
9
|
+
--sinch-color-honey-100: #FFF7E6;
|
|
10
|
+
--sinch-color-tropical-700: #003D3D;
|
|
11
|
+
--sinch-color-tropical-600: #005757;
|
|
12
|
+
--sinch-color-tropical-500: #007171;
|
|
13
|
+
--sinch-color-tropical-400: #059688;
|
|
14
|
+
--sinch-color-tropical-300: #66AAAA;
|
|
15
|
+
--sinch-color-tropical-200: #A7D5C2;
|
|
16
|
+
--sinch-color-tropical-100: #DCEDE1;
|
|
17
|
+
--sinch-color-tropical-50: #E5F1F1;
|
|
18
|
+
--sinch-color-stormy-700: #000000;
|
|
19
|
+
--sinch-color-stormy-600: #171717;
|
|
20
|
+
--sinch-color-stormy-500: #242424;
|
|
21
|
+
--sinch-color-stormy-400: #595959;
|
|
22
|
+
--sinch-color-stormy-300: #767676;
|
|
23
|
+
--sinch-color-stormy-200: #8C8C8C;
|
|
24
|
+
--sinch-color-stormy-100: #A6A6A6;
|
|
25
|
+
--sinch-color-ocean-700: #1B3E65;
|
|
26
|
+
--sinch-color-ocean-600: #1686CB;
|
|
27
|
+
--sinch-color-ocean-500: #3AA7EA;
|
|
28
|
+
--sinch-color-ocean-400: #6EBBEE;
|
|
29
|
+
--sinch-color-ocean-300: #A1D5F5;
|
|
30
|
+
--sinch-color-ocean-200: #C8E6F9;
|
|
31
|
+
--sinch-color-ocean-100: #DEF2FF;
|
|
32
|
+
--sinch-color-ocean-50: #F3FAFE;
|
|
33
|
+
--sinch-color-snow-700: #CCCCCC;
|
|
34
|
+
--sinch-color-snow-600: #D9D9D9;
|
|
35
|
+
--sinch-color-snow-500: #E0E0E0;
|
|
36
|
+
--sinch-color-snow-400: #F2F2F2;
|
|
37
|
+
--sinch-color-snow-200: #F8F8F8;
|
|
38
|
+
--sinch-color-snow-100: #FFFFFF;
|
|
39
|
+
--sinch-color-raspberry-700: #882024;
|
|
40
|
+
--sinch-color-raspberry-600: #D13D42;
|
|
41
|
+
--sinch-color-raspberry-500: #EF5858;
|
|
42
|
+
--sinch-color-raspberry-400: #F38686;
|
|
43
|
+
--sinch-color-raspberry-300: #FFB8B8;
|
|
44
|
+
--sinch-color-raspberry-200: #FBD5D5;
|
|
45
|
+
--sinch-color-raspberry-100: #FFE8E4;
|
|
46
|
+
--sinch-color-raspberry-50: #FFF6F5;
|
|
47
|
+
--sinch-color-night-700: #1223a1;
|
|
48
|
+
--sinch-color-night-400: #3247E9;
|
|
49
|
+
--sinch-color-night-200: #D1D6FA;
|
|
50
|
+
--sinch-color-grass-700: #006602;
|
|
51
|
+
--sinch-color-grass-400: #39B93D;
|
|
52
|
+
--sinch-color-grass-200: #B4E4B5;
|
|
53
|
+
--sinch-color-dirt-700: #363230;
|
|
54
|
+
--sinch-color-dirt-400: #828282;
|
|
55
|
+
--sinch-color-dirt-200: #E0DDDC;
|
|
56
|
+
--sinch-color-candy-700: #981b77;
|
|
57
|
+
--sinch-color-candy-400: #E467C3;
|
|
58
|
+
--sinch-color-candy-200: #F6CBEA;
|
|
59
|
+
--sinch-color-mud-700: #6d4e46;
|
|
60
|
+
--sinch-color-mud-400: #8B6559;
|
|
61
|
+
--sinch-color-mud-200: #D7C6C1;
|
|
62
|
+
--sinch-color-orange-700: #974302;
|
|
63
|
+
--sinch-color-orange-400: #FF8C34;
|
|
64
|
+
--sinch-color-orange-200: #FFD4B3;
|
|
65
|
+
--sinch-color-bolt-700: #805500;
|
|
66
|
+
--sinch-color-bolt-400: #FFBE3C;
|
|
67
|
+
--sinch-color-bolt-200: #FFE6B3;
|
|
68
|
+
--sinch-color-violet-700: #4F1B98;
|
|
69
|
+
--sinch-color-violet-400: #9E67E4;
|
|
70
|
+
--sinch-color-violet-200: #DECBF6;
|
|
71
|
+
--sinch-color-error-700: #882024;
|
|
72
|
+
--sinch-color-error-500: #D13D42;
|
|
73
|
+
--sinch-color-error-200: #FBD5D5;
|
|
74
|
+
--sinch-color-success-700: #275D33;
|
|
75
|
+
--sinch-color-success-500: #46A65A;
|
|
76
|
+
--sinch-color-success-200: #D7F1D8;
|
|
77
|
+
--sinch-color-informative-700: #003B7E;
|
|
78
|
+
--sinch-color-informative-500: #2071CE;
|
|
79
|
+
--sinch-color-informative-200: #D5E5F8;
|
|
80
|
+
--sinch-color-warning-700: #9C2E00;
|
|
81
|
+
--sinch-color-warning-500: #F35B1C;
|
|
82
|
+
--sinch-color-warning-200: #FFE8D6;
|
|
83
|
+
--sinch-color-skin-tone-0: #FFCC4D;
|
|
84
|
+
--sinch-color-skin-tone-10: #F7DECE;
|
|
85
|
+
--sinch-color-skin-tone-20: #F3D2A2;
|
|
86
|
+
--sinch-color-skin-tone-30: #D4AB88;
|
|
87
|
+
--sinch-color-skin-tone-40: #AF7E57;
|
|
88
|
+
--sinch-color-skin-tone-50: #7C533E;
|
|
89
|
+
--sinch-color-transparent: transparent;
|
|
90
|
+
}
|