@thalassic/ui 0.3.0 → 0.4.0
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/fesm2022/thalassic-ui.mjs +46 -46
- package/fesm2022/thalassic-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/thalassic-ui.d.ts +10 -10
- package/features/button/button.scss +0 -15
- package/features/divider/divider.scss +0 -91
- package/features/form/checkbox/checkbox.scss +0 -95
- package/features/form/input/input.scss +0 -9
- package/features/form/password/password.scss +0 -25
- package/features/form/radio-button/radio-button.scss +0 -103
- package/features/form/switch/switch-color.scss +0 -36
- package/features/form/switch/switch.scss +0 -82
- package/features/form-item/form-item.scss +0 -79
- package/features/icon/icon.scss +0 -15
- package/styles/components/_index.scss +0 -2
- package/styles/components/button/_button-appearance.scss +0 -136
- package/styles/components/button/_button-color.scss +0 -41
- package/styles/components/button/_button-size.scss +0 -52
- package/styles/components/button/_button.scss +0 -49
- package/styles/components/button/_index.scss +0 -4
- package/styles/components/form/_form-control-addon.scss +0 -2
- package/styles/components/form/_form-control-group-size.scss +0 -46
- package/styles/components/form/_form-control-group.scss +0 -58
- package/styles/components/form/_form-control-size.scss +0 -46
- package/styles/components/form/_form-control.scss +0 -45
- package/styles/components/form/_index.scss +0 -5
- package/styles/index.scss +0 -1
- package/styles/mixins/_index.scss +0 -1
- package/styles/mixins/focus-ring.scss +0 -4
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
:host.tls-divider {
|
|
2
|
-
--tls-divider-line-color: var(--color-outline-variant);
|
|
3
|
-
--tls-divider-line-size: 1px;
|
|
4
|
-
--tls-divider-content-gap: var(--spacing-3);
|
|
5
|
-
--tls-divider-inset: 5%;
|
|
6
|
-
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
gap: var(--tls-divider-content-gap);
|
|
11
|
-
|
|
12
|
-
.tls-divider-content {
|
|
13
|
-
min-width: fit-content;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&:has(.tls-divider-content:empty) {
|
|
17
|
-
.tls-divider-content {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.tls-divider-line.tls-divider-line--start {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Orientation
|
|
27
|
-
&.tls-divider--horizontal {
|
|
28
|
-
.tls-divider-line {
|
|
29
|
-
border-right-width: 0;
|
|
30
|
-
border-bottom-width: var(--tls-divider-line-size);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.tls-divider--vertical {
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
|
|
37
|
-
.tls-divider-line {
|
|
38
|
-
border-right-width: var(--tls-divider-line-size);
|
|
39
|
-
border-bottom-width: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Position
|
|
44
|
-
&.tls-divider--start {
|
|
45
|
-
.tls-divider-line.tls-divider-line--start {
|
|
46
|
-
flex-basis: var(--tls-divider-inset);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.tls-divider--flush {
|
|
50
|
-
.tls-divider-line.tls-divider-line--start {
|
|
51
|
-
display: none;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.tls-divider--end {
|
|
57
|
-
.tls-divider-line.tls-divider-line--end {
|
|
58
|
-
flex-basis: var(--tls-divider-inset);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.tls-divider--flush {
|
|
62
|
-
.tls-divider-line.tls-divider-line--end {
|
|
63
|
-
display: none;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Variant
|
|
69
|
-
&.tls-divider--dashed {
|
|
70
|
-
--tls-divider-line-variant: dashed;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.tls-divider--dotted {
|
|
74
|
-
--tls-divider-line-variant: dotted;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&.tls-divider--solid {
|
|
78
|
-
--tls-divider-line-variant: solid;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Divider line
|
|
82
|
-
.tls-divider-line {
|
|
83
|
-
flex-basis: 100%;
|
|
84
|
-
flex-grow: 1;
|
|
85
|
-
|
|
86
|
-
border-top-width: 0;
|
|
87
|
-
border-left-width: 0;
|
|
88
|
-
border-style: var(--tls-divider-line-variant);
|
|
89
|
-
border-color: var(--tls-divider-line-color);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
@use '../../../styles/mixins' as mixins;
|
|
2
|
-
|
|
3
|
-
:host.tls-checkbox {
|
|
4
|
-
--tls-checkbox-size: 20px;
|
|
5
|
-
--tls-checkbox-border-width: 1px;
|
|
6
|
-
--tls-checkbox-border-color: var(--color-primary);
|
|
7
|
-
--tls-checkbox-checked-icon-color: var(--color-surface);
|
|
8
|
-
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
width: var(--tls-checkbox-size);
|
|
12
|
-
height: var(--tls-checkbox-size);
|
|
13
|
-
|
|
14
|
-
display: inline-block;
|
|
15
|
-
|
|
16
|
-
transition: filter var(--motion-fast) var(--motion-ease-in-out);
|
|
17
|
-
|
|
18
|
-
.tls-checkbox-input {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
margin: 0;
|
|
22
|
-
|
|
23
|
-
appearance: none;
|
|
24
|
-
|
|
25
|
-
border: var(--tls-checkbox-border-width) solid var(--tls-checkbox-border-color);
|
|
26
|
-
border-radius: 4px;
|
|
27
|
-
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
|
|
30
|
-
background-color: var(--color-surface);
|
|
31
|
-
|
|
32
|
-
transition:
|
|
33
|
-
box-shadow var(--motion-fast) var(--motion-ease-in-out),
|
|
34
|
-
border-color var(--motion-fast) var(--motion-ease-in-out),
|
|
35
|
-
background-color var(--motion-fast) var(--motion-ease-in-out);
|
|
36
|
-
|
|
37
|
-
&:checked {
|
|
38
|
-
background-color: var(--color-primary);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:focus-visible {
|
|
42
|
-
@include mixins.focus-ring;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.tls-checkbox-icon {
|
|
47
|
-
position: absolute;
|
|
48
|
-
inset: 0;
|
|
49
|
-
|
|
50
|
-
opacity: 0;
|
|
51
|
-
scale: 0;
|
|
52
|
-
|
|
53
|
-
pointer-events: none;
|
|
54
|
-
|
|
55
|
-
color: var(--tls-checkbox-checked-icon-color);
|
|
56
|
-
|
|
57
|
-
transition:
|
|
58
|
-
scale var(--motion-default) var(--motion-ease-bounce),
|
|
59
|
-
opacity var(--motion-fast) var(--motion-ease-in-out);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
// Checked & Indeterminate
|
|
63
|
-
&.tls-checkbox--checked,
|
|
64
|
-
&.tls-checkbox--indeterminate {
|
|
65
|
-
.tls-checkbox-input {
|
|
66
|
-
background-color: var(--color-primary);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.tls-checkbox-icon {
|
|
70
|
-
opacity: 1;
|
|
71
|
-
scale: 1;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Form control
|
|
76
|
-
&.tls-checkbox--disabled {
|
|
77
|
-
--tls-checkbox-border-color: var(--color-outline);
|
|
78
|
-
|
|
79
|
-
filter: brightness(0.9);
|
|
80
|
-
|
|
81
|
-
cursor: not-allowed;
|
|
82
|
-
|
|
83
|
-
.tls-checkbox-input {
|
|
84
|
-
pointer-events: none;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&:not(.tls-checkbox--disabled).tls-checkbox--touched.tls-checkbox--invalid {
|
|
89
|
-
--tls-checkbox-border-color: var(--color-danger);
|
|
90
|
-
|
|
91
|
-
.tls-checkbox-input {
|
|
92
|
-
box-shadow: 0 0 4px -1px var(--color-danger);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@use '../../../styles/mixins';
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
|
|
6
|
-
.tls-password-toggle {
|
|
7
|
-
display: grid;
|
|
8
|
-
align-items: center;
|
|
9
|
-
|
|
10
|
-
&:focus-visible {
|
|
11
|
-
@include mixins.focus-ring;
|
|
12
|
-
border-radius: var(--radius-md);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&__item {
|
|
16
|
-
grid-area: 1 / 1;
|
|
17
|
-
|
|
18
|
-
text-align: center;
|
|
19
|
-
|
|
20
|
-
&--hidden {
|
|
21
|
-
visibility: hidden;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
@use '../../../styles/mixins' as mixins;
|
|
2
|
-
|
|
3
|
-
:host.tls-radio-button {
|
|
4
|
-
--tls-radio-button-size: 20px;
|
|
5
|
-
--tls-radio-button-circle-size: 12px;
|
|
6
|
-
--tls-radio-button-border-size: 1px;
|
|
7
|
-
--tls-radio-button-border-color: var(--color-primary);
|
|
8
|
-
--tls-radio-button-circle-color: var(--color-primary);
|
|
9
|
-
|
|
10
|
-
position: relative;
|
|
11
|
-
|
|
12
|
-
width: var(--tls-radio-button-size);
|
|
13
|
-
height: var(--tls-radio-button-size);
|
|
14
|
-
|
|
15
|
-
display: inline-block;
|
|
16
|
-
|
|
17
|
-
transition: filter var(--motion-fast) var(--motion-ease-in-out);
|
|
18
|
-
|
|
19
|
-
.tls-radio-button-input {
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
margin: 0;
|
|
23
|
-
|
|
24
|
-
appearance: none;
|
|
25
|
-
|
|
26
|
-
border: var(--tls-radio-button-border-size) solid var(--tls-radio-button-border-color);
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
|
|
31
|
-
background-color: var(--color-surface);
|
|
32
|
-
|
|
33
|
-
transition:
|
|
34
|
-
box-shadow var(--motion-fast) var(--motion-ease-in-out),
|
|
35
|
-
border-color var(--motion-fast) var(--motion-ease-in-out),
|
|
36
|
-
background-color var(--motion-fast) var(--motion-ease-in-out);
|
|
37
|
-
|
|
38
|
-
&:focus-visible {
|
|
39
|
-
@include mixins.focus-ring;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.tls-radio-button-circle {
|
|
44
|
-
position: absolute;
|
|
45
|
-
inset: 0;
|
|
46
|
-
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
|
|
53
|
-
&::before {
|
|
54
|
-
content: '';
|
|
55
|
-
|
|
56
|
-
width: var(--tls-radio-button-circle-size);
|
|
57
|
-
height: var(--tls-radio-button-circle-size);
|
|
58
|
-
|
|
59
|
-
display: inline-block;
|
|
60
|
-
|
|
61
|
-
opacity: 0;
|
|
62
|
-
scale: 0.75;
|
|
63
|
-
|
|
64
|
-
border-radius: 50%;
|
|
65
|
-
background-color: var(--tls-radio-button-circle-color);
|
|
66
|
-
|
|
67
|
-
transition:
|
|
68
|
-
scale var(--motion-fast) var(--motion-ease-in-out),
|
|
69
|
-
opacity var(--motion-default) var(--motion-ease-in-out);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Checked
|
|
74
|
-
&.tls-radio-button--checked {
|
|
75
|
-
.tls-radio-button-circle {
|
|
76
|
-
&::before {
|
|
77
|
-
opacity: 1;
|
|
78
|
-
scale: 1;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Form control
|
|
84
|
-
&.tls-radio-button--disabled {
|
|
85
|
-
--tls-radio-button-border-color: var(--color-outline);
|
|
86
|
-
|
|
87
|
-
filter: brightness(0.9);
|
|
88
|
-
|
|
89
|
-
cursor: not-allowed;
|
|
90
|
-
|
|
91
|
-
.tls-radio-button-input {
|
|
92
|
-
pointer-events: none;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&:not(.tls-radio-button--disabled).tls-radio-button--touched.tls-radio-button--invalid {
|
|
97
|
-
--tls-radio-button-border-color: var(--color-danger);
|
|
98
|
-
|
|
99
|
-
.tls-radio-button-input {
|
|
100
|
-
box-shadow: 0 0 4px -1px var(--color-danger);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
&.tls-switch--checked.tls-switch--primary {
|
|
3
|
-
--tls-switch-color: var(--color-primary);
|
|
4
|
-
--tls-switch-on-color: var(--color-on-primary);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
&.tls-switch--checked.tls-switch--secondary {
|
|
8
|
-
--tls-switch-color: var(--color-secondary);
|
|
9
|
-
--tls-switch-on-color: var(--color-on-secondary);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.tls-switch--checked.tls-switch--tertiary {
|
|
13
|
-
--tls-switch-color: var(--color-tertiary);
|
|
14
|
-
--tls-switch-on-color: var(--color-on-tertiary);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.tls-switch--checked.tls-switch--success {
|
|
18
|
-
--tls-switch-color: var(--color-success);
|
|
19
|
-
--tls-switch-on-color: var(--color-on-success);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&.tls-switch--checked.tls-switch--info {
|
|
23
|
-
--tls-switch-color: var(--color-info);
|
|
24
|
-
--tls-switch-on-color: var(--color-on-info);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.tls-switch--checked.tls-switch--warning {
|
|
28
|
-
--tls-switch-color: var(--color-warning);
|
|
29
|
-
--tls-switch-on-color: var(--color-on-warning);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.tls-switch--checked.tls-switch--danger {
|
|
33
|
-
--tls-switch-color: var(--color-danger);
|
|
34
|
-
--tls-switch-on-color: var(--color-on-danger);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
@use '../../../styles/mixins' as mixins;
|
|
2
|
-
|
|
3
|
-
:host.tls-switch {
|
|
4
|
-
--tls-switch-width: 48px;
|
|
5
|
-
--tls-switch-height: var(--control-height-sm);
|
|
6
|
-
--tls-switch-handle-gap: 4px;
|
|
7
|
-
--tls-switch-handle-size: calc(
|
|
8
|
-
var(--tls-switch-height) - (var(--tls-switch-handle-gap) * 2) -
|
|
9
|
-
(var(--tls-switch-border-width) * 2)
|
|
10
|
-
);
|
|
11
|
-
|
|
12
|
-
--tls-switch-border-width: 1px;
|
|
13
|
-
--tls-switch-border-radius: 24px;
|
|
14
|
-
|
|
15
|
-
--tls-switch-color: var(--color-surface-variant);
|
|
16
|
-
--tls-switch-on-color: var(--color-surface);
|
|
17
|
-
--tls-switch-border-color: var(--tls-switch-color);
|
|
18
|
-
|
|
19
|
-
width: var(--tls-switch-width);
|
|
20
|
-
height: var(--tls-switch-height);
|
|
21
|
-
|
|
22
|
-
display: flex;
|
|
23
|
-
|
|
24
|
-
border: var(--tls-switch-border-width) solid var(--tls-switch-border-color);
|
|
25
|
-
border-radius: var(--tls-switch-border-radius);
|
|
26
|
-
|
|
27
|
-
background-color: var(--tls-switch-color);
|
|
28
|
-
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
|
|
31
|
-
transition:
|
|
32
|
-
background-color var(--motion-fast) var(--motion-ease-in-out),
|
|
33
|
-
border-color var(--motion-fast) var(--motion-ease-in-out),
|
|
34
|
-
filter var(--motion-fast) var(--motion-ease-in-out);
|
|
35
|
-
|
|
36
|
-
&:focus-visible {
|
|
37
|
-
@include mixins.focus-ring;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.tls-switch-input {
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.tls-switch-handle {
|
|
45
|
-
width: var(--tls-switch-handle-size);
|
|
46
|
-
height: var(--tls-switch-handle-size);
|
|
47
|
-
|
|
48
|
-
margin: calc(var(--tls-switch-handle-gap));
|
|
49
|
-
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
|
|
52
|
-
background-color: var(--tls-switch-on-color);
|
|
53
|
-
|
|
54
|
-
box-shadow: var(--shadow-xs);
|
|
55
|
-
|
|
56
|
-
transition: transform var(--motion-fast) var(--motion-ease-in-out);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Checked
|
|
60
|
-
&.tls-switch--checked {
|
|
61
|
-
--tls-switch-handle-gap: 3px;
|
|
62
|
-
|
|
63
|
-
.tls-switch-handle {
|
|
64
|
-
$translate-x: calc(
|
|
65
|
-
var(--tls-switch-width) - var(--tls-switch-handle-size) -
|
|
66
|
-
(var(--tls-switch-handle-gap) * 2) - (var(--tls-switch-border-width) * 2)
|
|
67
|
-
);
|
|
68
|
-
|
|
69
|
-
transform: translateX(#{$translate-x});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Form control
|
|
74
|
-
&.tls-switch--disabled {
|
|
75
|
-
cursor: not-allowed;
|
|
76
|
-
filter: brightness(0.9);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:not(.tls-switch--disabled).tls-switch--touched.tls-switch--invalid {
|
|
80
|
-
--tls-switch-border-color: var(--color-danger);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
:host.tls-form-item {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
|
|
5
|
-
&.tls-form-item--invalid {
|
|
6
|
-
.form-item-label {
|
|
7
|
-
color: var(--color-danger);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&.tls-form-item--required {
|
|
12
|
-
.form-item-label__required {
|
|
13
|
-
display: inline;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&:not(.tls-form-item--error-space-reserved) {
|
|
18
|
-
.form-item-error {
|
|
19
|
-
min-height: auto;
|
|
20
|
-
|
|
21
|
-
&:empty {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.form-item-label {
|
|
28
|
-
margin-bottom: 0.25rem;
|
|
29
|
-
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: 0.25rem;
|
|
32
|
-
|
|
33
|
-
font-size: var(--font-label-medium-size);
|
|
34
|
-
font-weight: var(--font-label-medium-weight);
|
|
35
|
-
line-height: var(--font-label-medium-line-height);
|
|
36
|
-
letter-spacing: var(--font-label-medium-letter-spacing);
|
|
37
|
-
|
|
38
|
-
&:has(.form-item-label__text:empty) {
|
|
39
|
-
display: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&__required {
|
|
43
|
-
display: none;
|
|
44
|
-
color: var(--color-danger);
|
|
45
|
-
|
|
46
|
-
font-size: var(--font-label-large-size);
|
|
47
|
-
font-weight: var(--font-label-large-weight);
|
|
48
|
-
letter-spacing: var(--font-label-large-letter-spacing);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.form-item-error {
|
|
53
|
-
min-height: var(--font-label-small-line-height);
|
|
54
|
-
margin-top: 0.125rem;
|
|
55
|
-
|
|
56
|
-
color: var(--color-danger);
|
|
57
|
-
|
|
58
|
-
font-size: var(--font-label-small-size);
|
|
59
|
-
font-weight: var(--font-label-small-weight);
|
|
60
|
-
line-height: var(--font-label-small-line-height);
|
|
61
|
-
letter-spacing: var(--font-label-small-letter-spacing);
|
|
62
|
-
|
|
63
|
-
&__text {
|
|
64
|
-
display: inline-block;
|
|
65
|
-
|
|
66
|
-
opacity: 1;
|
|
67
|
-
transform: translateY(0);
|
|
68
|
-
|
|
69
|
-
transition:
|
|
70
|
-
transform var(--motion-default) var(--motion-ease-in),
|
|
71
|
-
opacity var(--motion-default) var(--motion-ease-in);
|
|
72
|
-
|
|
73
|
-
@starting-style {
|
|
74
|
-
opacity: 0;
|
|
75
|
-
transform: translateY(-100%);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
package/features/icon/icon.scss
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
.tls-button {
|
|
2
|
-
@mixin hover-focus-state {
|
|
3
|
-
&:not(.tls-button--disabled):hover,
|
|
4
|
-
&:not(.tls-button--disabled):focus-visible {
|
|
5
|
-
@content;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin active-state {
|
|
10
|
-
&:not(.tls-button--disabled):active {
|
|
11
|
-
@content;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Appearances
|
|
16
|
-
&--filled {
|
|
17
|
-
color: var(--tls-button-on-color);
|
|
18
|
-
|
|
19
|
-
&::before {
|
|
20
|
-
background-color: var(--tls-button-color);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@include hover-focus-state {
|
|
24
|
-
&::before {
|
|
25
|
-
opacity: 0.85;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@include active-state {
|
|
30
|
-
&::before {
|
|
31
|
-
opacity: 0.75;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&--outlined {
|
|
37
|
-
color: var(--tls-button-color);
|
|
38
|
-
|
|
39
|
-
&::before {
|
|
40
|
-
background-color: var(--tls-button-color);
|
|
41
|
-
|
|
42
|
-
opacity: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&::after {
|
|
46
|
-
border: var(--tls-button-border-width) solid var(--tls-button-color);
|
|
47
|
-
|
|
48
|
-
transition: border-color var(--motion-fast) var(--motion-ease-in-out);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@include hover-focus-state {
|
|
52
|
-
&::before {
|
|
53
|
-
opacity: 0.075;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@include active-state {
|
|
58
|
-
&::before {
|
|
59
|
-
opacity: 0.15;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&--text {
|
|
65
|
-
color: var(--tls-button-color);
|
|
66
|
-
|
|
67
|
-
&::before {
|
|
68
|
-
background-color: var(--tls-button-color);
|
|
69
|
-
|
|
70
|
-
opacity: 0;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@include hover-focus-state {
|
|
74
|
-
&::before {
|
|
75
|
-
opacity: 0.075;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@include active-state {
|
|
80
|
-
&::before {
|
|
81
|
-
opacity: 0.15;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&--elevated {
|
|
87
|
-
color: var(--tls-button-color);
|
|
88
|
-
|
|
89
|
-
transition: box-shadow var(--motion-fast) var(--motion-ease-in-out);
|
|
90
|
-
|
|
91
|
-
&::before {
|
|
92
|
-
background-color: var(--tls-button-color);
|
|
93
|
-
|
|
94
|
-
opacity: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&::after {
|
|
98
|
-
box-shadow: var(--shadow-sm);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@include hover-focus-state {
|
|
102
|
-
&::before {
|
|
103
|
-
opacity: 0.075;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@include active-state {
|
|
108
|
-
&::before {
|
|
109
|
-
opacity: 0.15;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&::after {
|
|
113
|
-
box-shadow: var(--shadow-xs);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&--disabled {
|
|
119
|
-
color: var(--tls-button-on-color);
|
|
120
|
-
|
|
121
|
-
cursor: not-allowed;
|
|
122
|
-
|
|
123
|
-
&::before {
|
|
124
|
-
opacity: 1;
|
|
125
|
-
|
|
126
|
-
transition: none;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
&::after {
|
|
130
|
-
border: var(--tls-button-border-width) solid var(--color-outline);
|
|
131
|
-
box-shadow: none;
|
|
132
|
-
|
|
133
|
-
transition: none;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|