@ardium-ui/ui 5.0.0-alpha.36 → 5.0.0-alpha.37
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/ardium-ui-ui.mjs +118 -48
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/buttons/_button-base.d.ts +9 -6
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +3 -4
- package/lib/buttons/button/button.defaults.d.ts +0 -2
- package/lib/buttons/button/button.directive.d.ts +17 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +2 -1
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/inputs/number-input/number-input.component.d.ts +3 -2
- package/package.json +1 -1
- package/prebuilt-themes/default/buttons/button.css +22 -33
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +23 -29
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +19 -26
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/themes/default/buttons/_button-mixins.scss +13 -16
- package/themes/default/buttons/button.scss +8 -17
- package/themes/default/buttons/fab.scss +12 -17
- package/themes/default/buttons/icon-button.scss +7 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/buttons/icon-button.scss","../../../../../projects/ui/src/themes/default/buttons/_button-mixins.scss","../../../../../projects/ui/src/themes/default/_coloring.scss","../../../../../projects/ui/src/themes/default/_mixins.scss","../../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../../../../projects/ui/src/themes/default/buttons/icon-button.scss","../../../../../projects/ui/src/themes/default/buttons/_button-mixins.scss","../../../../../projects/ui/src/themes/default/_coloring.scss","../../../../../projects/ui/src/themes/default/_mixins.scss","../../../../../projects/ui/src/themes/_variables.scss"],"names":[],"mappings":"AAEA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGF;ECbE;EACA,QDcE;ECbF,SDcE;ECbF;EACA,aDcE;ECbF,WDYE;ECXF;EACA;EACA;EACA;EACA;EDcA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AE5CA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEF;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AD1GF;EACE;EEhBF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAEA;EFSE;;AAGA;EACE,SDDF;;ACKA;EACE,SDLF;;ACUA;EACE,SDVF;;ACcA;EACE,SDdF;;ACkBF;EAEE;EACA;EACA;;AAEA;EACE;;AAGJ;EAEE,YGnEC;EHoED;EACA,YGnCY;;AHqCZ;EAEE,YGtCW;;AHwCb;EACE,YGxCW;;AH2Cf;EACE,YGhFC;EHiFD;EACA;;AAEA;EACE;;AAGJ;EACE,YGzFC;EH0FD;EACA;EAMA;;AAJA;EACE;;AAIF;EAEE;EACA;;AAGJ;EAEE;EACA;EACA;;AAEA;EACE;;AAEF;EACE;;AAIJ;EACE;;AAEA;EACE;;ADzEJ;EACE;EACA;;AAGF;EACE;EACA;;AAGF;EACE;;;AAKF;ECgEA;EACA,SD/DI;ECgEJ;;AAEA;EACE,SDlEE;ECmEF;;AAKA;AAAA;EAEE,SD3EA;;AC6EF;EACE;;AD1EF;EACE;;AAGJ;EACE;;AAEA;EACE","file":"icon-button.css"}
|
|
@@ -25,33 +25,30 @@
|
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
outline: none;
|
|
27
27
|
|
|
28
|
-
//! button icon
|
|
29
|
-
.ard-button-icon {
|
|
30
|
-
@include defaultMixins.icon(1);
|
|
31
|
-
}
|
|
32
28
|
//! button focus inficator
|
|
33
|
-
|
|
29
|
+
&::before {
|
|
30
|
+
content: '';
|
|
34
31
|
@include defaultMixins.focus-overlay;
|
|
35
32
|
background-color: var(--ard-cmpcl--overlay);
|
|
36
33
|
}
|
|
37
34
|
&:hover {
|
|
38
|
-
|
|
35
|
+
&::before {
|
|
39
36
|
opacity: $hover-opacity;
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
39
|
&:focus {
|
|
43
|
-
|
|
40
|
+
&::before {
|
|
44
41
|
opacity: $focus-opacity;
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
&.ard-active,
|
|
48
45
|
&:active {
|
|
49
|
-
|
|
46
|
+
&::before {
|
|
50
47
|
opacity: $active-opacity;
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
50
|
&:focus-visible {
|
|
54
|
-
|
|
51
|
+
&::before {
|
|
55
52
|
opacity: $focus-visible-opacity;
|
|
56
53
|
}
|
|
57
54
|
}
|
|
@@ -62,7 +59,7 @@
|
|
|
62
59
|
color: var(--ard-cmpcl--content);
|
|
63
60
|
border: none;
|
|
64
61
|
|
|
65
|
-
|
|
62
|
+
&::before {
|
|
66
63
|
background: var(--ard-cmpcl--overlay-colored);
|
|
67
64
|
}
|
|
68
65
|
}
|
|
@@ -85,7 +82,7 @@
|
|
|
85
82
|
color: var(--ard-cmpcl--content);
|
|
86
83
|
border: 1px solid ARD.$border-light;
|
|
87
84
|
|
|
88
|
-
|
|
85
|
+
&::before {
|
|
89
86
|
background: var(--ard-cmpcl--overlay-colored);
|
|
90
87
|
}
|
|
91
88
|
}
|
|
@@ -94,7 +91,7 @@
|
|
|
94
91
|
color: var(--ard-cmpcl--content);
|
|
95
92
|
border: 1px solid ARD.$border-light;
|
|
96
93
|
|
|
97
|
-
|
|
94
|
+
&::before {
|
|
98
95
|
display: none;
|
|
99
96
|
}
|
|
100
97
|
|
|
@@ -111,7 +108,7 @@
|
|
|
111
108
|
color: var(--ard-cmpcl--on-bg-colored);
|
|
112
109
|
border: 1px solid var(--ard-cmpcl--bg-colored);
|
|
113
110
|
|
|
114
|
-
|
|
111
|
+
&::before {
|
|
115
112
|
background: var(--ard-cmpcl--on-bg);
|
|
116
113
|
}
|
|
117
114
|
&:focus-visible {
|
|
@@ -122,7 +119,7 @@
|
|
|
122
119
|
&.ard-appearance-transparent.ard-light-coloring {
|
|
123
120
|
color: var(--ard-cmpcl--content-light);
|
|
124
121
|
|
|
125
|
-
|
|
122
|
+
&::before {
|
|
126
123
|
background: var(--ard-cmpcl--overlay-colored-light);
|
|
127
124
|
}
|
|
128
125
|
}
|
|
@@ -134,7 +131,7 @@
|
|
|
134
131
|
opacity: $opacity;
|
|
135
132
|
cursor: not-allowed;
|
|
136
133
|
|
|
137
|
-
|
|
134
|
+
&::before {
|
|
138
135
|
opacity: $overlay-opacity;
|
|
139
136
|
transform: scale(1);
|
|
140
137
|
}
|
|
@@ -145,7 +142,7 @@
|
|
|
145
142
|
.ard-button-content {
|
|
146
143
|
opacity: $opacity;
|
|
147
144
|
}
|
|
148
|
-
|
|
145
|
+
&::before {
|
|
149
146
|
background: var(--ard-cmpcl--overlay);
|
|
150
147
|
}
|
|
151
148
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--ard-button-padding-compact: 0 0.9em;
|
|
9
9
|
--ard-button-padding-vertical: 0.3em 1em;
|
|
10
10
|
--ard-button-padding-vertical-compact: 0.2em 0.8em;
|
|
11
|
+
--ard-button-gap: 0.375rem;
|
|
11
12
|
--ard-button-font-size: 0.875rem;
|
|
12
13
|
--ard-button-font-size-compact: 0.75rem;
|
|
13
14
|
--ard-button-font-weight: 500;
|
|
@@ -38,22 +39,17 @@ ard-button {
|
|
|
38
39
|
var(--ard-button-overlay-focus-visible-opacity, 0.24)
|
|
39
40
|
);
|
|
40
41
|
background: transparent;
|
|
41
|
-
gap: 0.375rem;
|
|
42
|
+
gap: var(--ard-button-gap, 0.375rem);
|
|
42
43
|
font-size: var(--ard-button-font-size, 0.875rem);
|
|
43
44
|
height: var(--ard-button-height, 2.5em);
|
|
44
45
|
padding: var(--ard-button-padding, 0 1.2em);
|
|
45
|
-
|
|
46
|
-
width: 100%;
|
|
46
|
+
width: max-content;
|
|
47
47
|
min-width: max-content;
|
|
48
|
+
letter-spacing: 0.5px;
|
|
48
49
|
justify-content: center;
|
|
49
50
|
margin: 0;
|
|
50
51
|
user-select: none;
|
|
51
|
-
|
|
52
|
-
.ard-button-content {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
gap: 0.375rem;
|
|
56
|
-
}
|
|
52
|
+
text-decoration: none;
|
|
57
53
|
|
|
58
54
|
//! aligns
|
|
59
55
|
&.ard-align-left {
|
|
@@ -93,16 +89,11 @@ ard-button {
|
|
|
93
89
|
gap: 0;
|
|
94
90
|
}
|
|
95
91
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
ard-button.ard-disabled {
|
|
99
|
-
> .ard-button {
|
|
92
|
+
//! disabled
|
|
93
|
+
&.ard-disabled {
|
|
100
94
|
@include shared.button-disabled(var(--ard-button-disabled-opacity, 0.6), var(--ard-button-overlay-disabled-opacity, 0.2));
|
|
101
|
-
}
|
|
102
|
-
&.ard-button-with-pointer-events-when-disabled {
|
|
103
|
-
pointer-events: all;
|
|
104
95
|
|
|
105
|
-
|
|
96
|
+
&.ard-button-with-pointer-events-when-disabled {
|
|
106
97
|
pointer-events: all;
|
|
107
98
|
}
|
|
108
99
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--ard-fab-size-standard-font-size: 1.75rem;
|
|
9
9
|
--ard-fab-size-small-font-size: 1.375rem;
|
|
10
10
|
--ard-fab-font-weight: 900;
|
|
11
|
+
--ard-fab-extended-gap: 0.75em;
|
|
11
12
|
--ard-fab-overlay-hover-opacity: 0.04;
|
|
12
13
|
--ard-fab-overlay-focus-opacity: 0.12;
|
|
13
14
|
--ard-fab-overlay-active-opacity: 0.18;
|
|
@@ -37,10 +38,17 @@ ard-fab {
|
|
|
37
38
|
);
|
|
38
39
|
height: var(--ard-_fab-size);
|
|
39
40
|
width: var(--ard-_fab-size);
|
|
41
|
+
max-height: var(--ard-_fab-size);
|
|
42
|
+
max-width: var(--ard-_fab-size);
|
|
43
|
+
min-height: var(--ard-_fab-size);
|
|
44
|
+
min-width: var(--ard-_fab-size);
|
|
40
45
|
user-select: none;
|
|
41
46
|
border-radius: 9999px;
|
|
42
47
|
justify-content: center;
|
|
43
48
|
margin: 0;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
transition: max-width 0.5s ease;
|
|
44
52
|
|
|
45
53
|
&.ard-fab-size-standard {
|
|
46
54
|
--ard-_fab-size: var(--ard-fab-size-standard, 3.5rem);
|
|
@@ -54,26 +62,13 @@ ard-fab {
|
|
|
54
62
|
min-width: var(--ard-_fab-size);
|
|
55
63
|
width: max-content;
|
|
56
64
|
font-weight: unset;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
gap: 0.75em;
|
|
60
|
-
max-width: 10em;
|
|
61
|
-
}
|
|
65
|
+
gap: var(--ard-fab-extended-gap, 1em);
|
|
66
|
+
max-width: 10em;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
font-weight: 500;
|
|
67
|
-
justify-content: flex-start !important;
|
|
68
|
-
max-width: 1.5em;
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
transition: max-width 0.5s ease;
|
|
71
|
-
|
|
72
|
-
ard-icon {
|
|
73
|
-
font-size: 1em;
|
|
74
|
-
}
|
|
69
|
+
ard-icon {
|
|
70
|
+
font-size: 1em;
|
|
75
71
|
}
|
|
76
|
-
|
|
77
72
|
&.ard-appearance-transparent {
|
|
78
73
|
@include CM.focus-overlay-scale-addon();
|
|
79
74
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
--ard-icon-button-height-compact: 2.25em;
|
|
6
6
|
--ard-icon-button-margin: 0;
|
|
7
7
|
--ard-icon-button-font-size: 1rem;
|
|
8
|
+
--ard-icon-button-icon-font-size: 1.5em;
|
|
8
9
|
--ard-icon-button-font-size-compact: 0.75rem;
|
|
9
10
|
--ard-icon-button-font-weight: 600;
|
|
10
11
|
--ard-icon-button-overlay-hover-opacity: var(--ard-button-overlay-hover-opacity, 0.04);
|
|
@@ -37,7 +38,7 @@ ard-icon-button {
|
|
|
37
38
|
var(--ard-icon-button-overlay-focus-visible-opacity, var(--ard-button-overlay-focus-visible-opacity, 0.24))
|
|
38
39
|
);
|
|
39
40
|
background: transparent;
|
|
40
|
-
height: 2.1875em;
|
|
41
|
+
height: var(--ard-icon-button-height, 2.1875em);
|
|
41
42
|
aspect-ratio: 1;
|
|
42
43
|
border-radius: 9999px;
|
|
43
44
|
align-items: center;
|
|
@@ -46,20 +47,14 @@ ard-icon-button {
|
|
|
46
47
|
overflow: hidden;
|
|
47
48
|
color: var(--ard-cmpcl--bg-colored);
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
> ard-icon {
|
|
54
|
-
font-weight: 500;
|
|
55
|
-
font-size: 1.5em;
|
|
56
|
-
}
|
|
50
|
+
> ard-icon {
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
font-size: var(--ard-icon-button-icon-font-size);
|
|
57
53
|
}
|
|
58
|
-
|
|
59
54
|
//! compact
|
|
60
55
|
&.ard-compact {
|
|
61
|
-
height: 2.25em;
|
|
62
|
-
font-size: 0.
|
|
56
|
+
height: var(--ard-icon-button-height-compact, 2.25em);
|
|
57
|
+
font-size: var(--ard-icon-button-font-size-compact, 0.75rem);
|
|
63
58
|
}
|
|
64
59
|
//! light coloring
|
|
65
60
|
&.ard-light-coloring {
|