@newlogic-digital/ui 3.3.0 → 3.5.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/README.md +10 -14
- package/package.json +23 -23
- package/src/data/main.json +2 -8
- package/src/emails/{templates/Content.twig → templates.test/Content.latte} +10 -2
- package/src/emails/{templates/Header.twig → templates.test/Header.latte} +1 -1
- package/src/emails/{templates/Layout.twig → templates.test/Layout.latte} +2 -2
- package/src/icons.svg +34 -28
- package/src/scripts/Components/CookieConsent.js +22 -28
- package/src/scripts/Layout/Header.js +25 -11
- package/src/scripts/Layout/Main.js +25 -55
- package/src/scripts/Libraries/+.js +4 -5
- package/src/scripts/Libraries/Dialog.js +37 -72
- package/src/scripts/Libraries/Drawer.js +22 -21
- package/src/scripts/Libraries/Form.js +8 -13
- package/src/scripts/Libraries/Naja.js +33 -0
- package/src/scripts/Libraries/ReCaptcha.js +14 -4
- package/src/scripts/Libraries/Ripple.js +6 -22
- package/src/scripts/Libraries/Script.js +1 -2
- package/src/scripts/Libraries/Slider.js +160 -0
- package/src/scripts/Libraries/Stimulus.js +0 -1
- package/src/scripts/Libraries/Swup.js +54 -38
- package/src/scripts/Libraries/Tippy.js +17 -20
- package/src/scripts/Ui/+.js +3 -3
- package/src/scripts/Ui/Check.js +8 -0
- package/src/scripts/Ui/Control.js +186 -0
- package/src/scripts/Ui/ControlSelect.js +24 -0
- package/src/scripts/Ui/Text.js +8 -10
- package/src/scripts/Utils/Functions/+.js +3 -3
- package/src/scripts/Utils/Functions/importScript.js +1 -1
- package/src/scripts/Utils/Functions/importStyle.js +1 -1
- package/src/scripts/Utils/Functions/inputStep.js +9 -0
- package/src/scripts/Utils/Functions/inputValidity.js +57 -0
- package/src/scripts/Utils/Functions/loadStimulus.js +12 -9
- package/src/scripts/Utils/Functions/replaceScript.js +4 -0
- package/src/scripts/Utils/Functions/replaceTag.js +1 -5
- package/src/scripts/Utils/cdn.js +2 -3
- package/src/scripts/Utils/global.js +1 -1
- package/src/styles/Components/+.css +1 -1
- package/src/styles/Components/CookieConsent.css +22 -25
- package/src/styles/Components/Dialog/Default.css +10 -62
- package/src/styles/Components/Dropdown/Default.css +6 -3
- package/src/styles/Components/Field.css +1 -0
- package/src/styles/Layout/Header.css +13 -17
- package/src/styles/Layout/Main.css +8 -91
- package/src/styles/Layout/Nav.css +31 -27
- package/src/styles/Libraries/+.css +1 -2
- package/src/styles/Libraries/Datepicker.css +38 -229
- package/src/styles/Libraries/Dialog.css +1 -19
- package/src/styles/Libraries/Drawer.css +17 -29
- package/src/styles/Libraries/Hint.css +86 -101
- package/src/styles/Libraries/Pickr.css +13 -0
- package/src/styles/Libraries/Ripple.css +1 -29
- package/src/styles/Libraries/Tippy.css +25 -39
- package/src/styles/Ui/+.css +6 -5
- package/src/styles/Ui/Badge.css +7 -82
- package/src/styles/Ui/Btn.css +13 -226
- package/src/styles/Ui/Check.css +1 -0
- package/src/styles/Ui/Control.css +47 -0
- package/src/styles/Ui/ControlSelect.css +66 -0
- package/src/styles/Ui/Dot.css +22 -0
- package/src/styles/Ui/Group.css +1 -0
- package/src/styles/Ui/Heading.css +3 -22
- package/src/styles/Ui/Image.css +1 -17
- package/src/styles/Ui/Info.css +1 -0
- package/src/styles/Ui/Label.css +1 -14
- package/src/styles/Ui/Link.css +2 -41
- package/src/styles/Ui/Notice.css +1 -47
- package/src/styles/Ui/Progress.css +1 -56
- package/src/styles/Ui/Switch.css +1 -70
- package/src/styles/Ui/Text.css +4 -245
- package/src/styles/Ui/Title.css +5 -13
- package/src/styles/Utils/+.css +3 -4
- package/src/styles/Utils/breakpoints.css +1 -0
- package/src/styles/Utils/config.css +5 -0
- package/src/styles/Utils/default.css +8 -122
- package/src/styles/Utils/icons.css +3 -7
- package/src/styles/Utils/keyframes.css +1 -182
- package/src/styles/Utils/{tailwind/base.css → tailwind.css} +31 -21
- package/src/styles/Utils/theme/+.css +1 -1
- package/src/styles/Utils/theme/main.css +14 -23
- package/src/styles/main.css +19 -15
- package/src/styles/tinymce.css +34 -0
- package/src/templates/Components/CookieConsent.latte +28 -0
- package/src/templates/Components/Dialogs/Basic.latte +22 -0
- package/src/templates/Layout/{Header.twig → Header.latte} +15 -17
- package/src/templates/Layout/Main.latte +62 -0
- package/src/templates/Sections/Gdpr.latte +127 -0
- package/src/templates/Sections/Site.latte +141 -0
- package/src/templates/Sections/Ui/Docs/@intro.html +13 -62
- package/src/templates/Sections/Ui/Docs/@nav.html +41 -92
- package/src/templates/Sections/Ui/Docs/@styles.html +2 -6
- package/src/templates/Sections/Ui/Docs/Default.latte +1059 -0
- package/src/templates/Sections/Ui/Icons.html +11 -9
- package/src/templates/Sections/Ui/Intro.html +66 -37
- package/src/templates/Sections/Ui.latte +8 -0
- package/src/templates/Ui/+.latte +5 -0
- package/src/templates/Ui/Check.latte +7 -0
- package/src/templates/Ui/Control.latte +9 -0
- package/src/templates/Ui/ControlDate.latte +14 -0
- package/src/templates/Ui/ControlSelect.latte +9 -0
- package/src/templates/Ui/ControlTime.latte +14 -0
- package/src/templates/Utils/sections.latte +3 -0
- package/src/views/dialog/basic.json.latte +5 -0
- package/src/views/dropdown/{tippy.json.twig → tippy.json.latte} +7 -4
- package/src/views/email/email.latte +6 -0
- package/src/views/email/email.test.latte +6 -0
- package/src/views/gdpr.json +1 -1
- package/src/views/index.json +1 -1
- package/src/views/site.json +11 -0
- package/src/views/ui-icons.json +1 -1
- package/src/views/ui.json +1 -1
- package/vite.config.js +16 -6
- package/.eslintrc +0 -13
- package/.stylelintrc +0 -18
- package/public/sw.js +0 -30
- package/src/emails/email.prod.html +0 -6
- package/src/emails/email.twig.html +0 -6
- package/src/scripts/Libraries/Anchor.js +0 -35
- package/src/scripts/Libraries/NativeSlider.js +0 -138
- package/src/scripts/Libraries/Tabs.js +0 -16
- package/src/scripts/Ui/Checkbox.js +0 -10
- package/src/scripts/Ui/Input.js +0 -259
- package/src/scripts/Ui/Select.js +0 -53
- package/src/scripts/Utils/Functions/checkValidity.js +0 -44
- package/src/scripts/Utils/Functions/dataValue.js +0 -52
- package/src/scripts/Utils/Functions/inView.js +0 -24
- package/src/styles/Components/Form/+.css +0 -1
- package/src/styles/Components/Form/CookieConsent.css +0 -31
- package/src/styles/Libraries/NativeSlider.css +0 -60
- package/src/styles/Libraries/Tabs.css +0 -19
- package/src/styles/Ui/Checkbox.css +0 -151
- package/src/styles/Ui/Icon.css +0 -33
- package/src/styles/Ui/Input.css +0 -467
- package/src/styles/Ui/Radio.css +0 -4
- package/src/styles/Ui/Select.css +0 -137
- package/src/styles/Utils/normalize.css +0 -223
- package/src/styles/Utils/tailwind/+.css +0 -2
- package/src/styles/Utils/tailwind/gutters.css +0 -346
- package/src/styles/Utils/vars.css +0 -126
- package/src/styles/Utils/vendor.css +0 -1
- package/src/templates/Components/CookieConsent.twig +0 -30
- package/src/templates/Components/Dialogs/Basic.twig +0 -24
- package/src/templates/Layout/Main.twig +0 -49
- package/src/templates/Sections/Gdpr.twig +0 -64
- package/src/templates/Sections/Ui/Docs/Default.twig +0 -1600
- package/src/templates/Sections/Ui.twig +0 -8
- package/src/templates/Utils/sections.twig +0 -3
- package/src/views/dialog/basic.json.twig +0 -3
- package/tailwind.config.cjs +0 -69
- /package/src/emails/{templates.prod → templates}/.gitkeep +0 -0
- /package/src/templates/Layout/{Footer.twig → Footer.latte} +0 -0
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
width: 100%;
|
|
6
6
|
height: 100%;
|
|
7
7
|
position: fixed;
|
|
8
|
-
|
|
9
|
-
bottom: 0;
|
|
10
|
-
left: 0;
|
|
11
|
-
right: 0;
|
|
8
|
+
inset: 0;
|
|
12
9
|
overflow: hidden;
|
|
13
10
|
display: flex;
|
|
14
11
|
flex-direction: row;
|
|
@@ -25,7 +22,7 @@
|
|
|
25
22
|
scrollbar-width: none;
|
|
26
23
|
-ms-overflow-style: none;
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
&.active {
|
|
29
26
|
scroll-snap-type: x proximity;
|
|
30
27
|
}
|
|
31
28
|
|
|
@@ -37,40 +34,31 @@
|
|
|
37
34
|
|
|
38
35
|
&::before {
|
|
39
36
|
position: fixed;
|
|
40
|
-
|
|
41
|
-
bottom: 0;
|
|
42
|
-
right: 0;
|
|
43
|
-
left: 0;
|
|
37
|
+
inset: 0;
|
|
44
38
|
z-index: -1;
|
|
45
|
-
background-color: rgb(var(--color-dark) /
|
|
39
|
+
background-color: rgb(var(--color-dark-rgb) / 50%);
|
|
46
40
|
content: "";
|
|
47
41
|
opacity: var(--lib-drawer-opacity);
|
|
42
|
+
}
|
|
48
43
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
&::after {
|
|
45
|
+
content: "";
|
|
46
|
+
display: block;
|
|
47
|
+
min-width: 100vw;
|
|
48
|
+
scroll-snap-align: end;
|
|
49
|
+
}
|
|
52
50
|
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
&.is-opacity {
|
|
52
|
+
&::before {
|
|
53
|
+
transition: var(--transition-opacity);
|
|
55
54
|
}
|
|
56
55
|
}
|
|
57
56
|
|
|
58
|
-
&:not(
|
|
57
|
+
&:not(.active) {
|
|
59
58
|
pointer-events: none;
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
@media (--media-m) {
|
|
65
|
-
transform: translateX(-22.5rem);
|
|
66
|
-
}
|
|
60
|
+
&::before {
|
|
61
|
+
opacity: 0;
|
|
67
62
|
}
|
|
68
63
|
}
|
|
69
|
-
|
|
70
|
-
&::after {
|
|
71
|
-
content: "";
|
|
72
|
-
display: block;
|
|
73
|
-
min-width: 100vw;
|
|
74
|
-
scroll-snap-align: end;
|
|
75
|
-
}
|
|
76
64
|
}
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
[class*="lib-hint-"] {
|
|
2
|
-
--
|
|
3
|
-
--
|
|
2
|
+
--color-accent: var(--color-body);
|
|
3
|
+
--color-current: var(--color-body-fg);
|
|
4
|
+
--lib-hint-font-size: 0.75rem;
|
|
5
|
+
--lib-hint-font-weight: var(--font-normal);
|
|
4
6
|
|
|
5
7
|
position: relative;
|
|
6
|
-
text-align: center;
|
|
7
|
-
|
|
8
|
-
@nest .dark & {
|
|
9
|
-
--lib-hint-bg: var(--color-background-200);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&.lib-hint-light {
|
|
13
|
-
--lib-hint-bg: var(--color-light);
|
|
14
|
-
--lib-hint-fg: var(--color-dark);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.lib-hint-error {
|
|
18
|
-
--lib-hint-bg: var(--color-error);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&.lib-hint-warning {
|
|
22
|
-
--lib-hint-bg: var(--color-warning);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.lib-hint-info {
|
|
26
|
-
--lib-hint-bg: var(--color-info);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.lib-hint-success {
|
|
30
|
-
--lib-hint-bg: var(--color-success);
|
|
31
|
-
}
|
|
32
8
|
|
|
33
9
|
&::before, &::after {
|
|
34
10
|
position: absolute;
|
|
@@ -36,16 +12,10 @@
|
|
|
36
12
|
opacity: 0;
|
|
37
13
|
z-index: var(--z-10);
|
|
38
14
|
pointer-events: none;
|
|
39
|
-
transition: var(--transition) ease;
|
|
15
|
+
transition: var(--transition-duration) ease;
|
|
40
16
|
transition-delay: 0ms;
|
|
41
17
|
will-change: transform;
|
|
42
18
|
backface-visibility: hidden;
|
|
43
|
-
|
|
44
|
-
@nest :is(:hover, :focus-visible)& {
|
|
45
|
-
visibility: visible;
|
|
46
|
-
opacity: 1;
|
|
47
|
-
transition-delay: 100ms;
|
|
48
|
-
}
|
|
49
19
|
}
|
|
50
20
|
|
|
51
21
|
&::before {
|
|
@@ -54,61 +24,22 @@
|
|
|
54
24
|
background-color: transparent;
|
|
55
25
|
border: 0.375rem solid transparent;
|
|
56
26
|
z-index: var(--z-20);
|
|
57
|
-
|
|
58
|
-
@nest [class*="lib-hint-top"]& {
|
|
59
|
-
border-top-color: rgb(var(--lib-hint-bg));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@nest [class*="lib-hint-bottom"]& {
|
|
63
|
-
border-bottom-color: rgb(var(--lib-hint-bg));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
@nest [class*="lib-hint-left"]& {
|
|
67
|
-
border-left-color: rgb(var(--lib-hint-bg));
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@nest [class*="lib-hint-right"]& {
|
|
71
|
-
border-right-color: rgb(var(--lib-hint-bg));
|
|
72
|
-
}
|
|
73
27
|
}
|
|
74
28
|
|
|
75
29
|
&::after {
|
|
76
|
-
border-radius: var(--
|
|
77
|
-
background-color:
|
|
78
|
-
color:
|
|
30
|
+
border-radius: var(--rounded);
|
|
31
|
+
background-color: var(--color-accent);
|
|
32
|
+
color: var(--color-current);
|
|
79
33
|
padding: 0.75rem;
|
|
80
|
-
font-size:
|
|
34
|
+
font-size: var(--lib-hint-font-size);
|
|
81
35
|
font-family: inherit;
|
|
82
36
|
line-height: 0.875rem;
|
|
83
37
|
white-space: nowrap;
|
|
84
|
-
box-shadow:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
@nest [aria-label]& {
|
|
92
|
-
content: attr(aria-label);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@nest :is(.lib-hint-sm, .lib-hint-md, .lib-hint-lg)& {
|
|
96
|
-
white-space: normal;
|
|
97
|
-
line-height: 1.5;
|
|
98
|
-
word-wrap: break-word;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@nest .lib-hint-sm& {
|
|
102
|
-
width: 5rem;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@nest .lib-hint-md& {
|
|
106
|
-
width: 10rem;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@nest .lib-hint-lg& {
|
|
110
|
-
width: 15rem;
|
|
111
|
-
}
|
|
38
|
+
box-shadow:
|
|
39
|
+
0 0.15rem 1.5rem 0 rgb(var(--color-main-rgb) / 10%),
|
|
40
|
+
0 0 1rem 0 rgb(var(--color-main-rgb) / 10%);
|
|
41
|
+
font-weight: var(--lib-hint-font-weight);
|
|
42
|
+
text-align: center;
|
|
112
43
|
}
|
|
113
44
|
|
|
114
45
|
&.lib-hint-top {
|
|
@@ -120,16 +51,18 @@
|
|
|
120
51
|
&::before {
|
|
121
52
|
left: calc(50% - 0.375rem);
|
|
122
53
|
margin-bottom: -0.6875rem;
|
|
123
|
-
|
|
124
|
-
@nest :is(:hover, :focus-visible)& {
|
|
125
|
-
transform: translateY(-0.5rem);
|
|
126
|
-
}
|
|
127
54
|
}
|
|
128
55
|
|
|
129
56
|
&::after {
|
|
130
57
|
transform: translateX(-50%);
|
|
58
|
+
}
|
|
131
59
|
|
|
132
|
-
|
|
60
|
+
&:is(:hover, :focus-visible) {
|
|
61
|
+
&::before {
|
|
62
|
+
transform: translateY(-0.5rem);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
133
66
|
transform: translateX(-50%) translateY(-0.5rem);
|
|
134
67
|
}
|
|
135
68
|
}
|
|
@@ -144,16 +77,18 @@
|
|
|
144
77
|
&::before {
|
|
145
78
|
left: calc(50% - 0.375rem);
|
|
146
79
|
margin-top: -0.6875rem;
|
|
147
|
-
|
|
148
|
-
@nest :hover& {
|
|
149
|
-
transform: translateY(0.5rem);
|
|
150
|
-
}
|
|
151
80
|
}
|
|
152
81
|
|
|
153
82
|
&::after {
|
|
154
83
|
transform: translateX(-50%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:is(:hover, :focus-visible) {
|
|
87
|
+
&::before {
|
|
88
|
+
transform: translateY(0.5rem);
|
|
89
|
+
}
|
|
155
90
|
|
|
156
|
-
|
|
91
|
+
&::after {
|
|
157
92
|
transform: translateX(-50%) translateY(0.5rem);
|
|
158
93
|
}
|
|
159
94
|
}
|
|
@@ -163,10 +98,6 @@
|
|
|
163
98
|
&::before, &::after {
|
|
164
99
|
left: 100%;
|
|
165
100
|
bottom: 50%;
|
|
166
|
-
|
|
167
|
-
@nest :hover& {
|
|
168
|
-
transform: translateX(0.5rem);
|
|
169
|
-
}
|
|
170
101
|
}
|
|
171
102
|
|
|
172
103
|
&::before {
|
|
@@ -177,16 +108,18 @@
|
|
|
177
108
|
&::after {
|
|
178
109
|
margin-bottom: -1.1875rem;
|
|
179
110
|
}
|
|
111
|
+
|
|
112
|
+
&:is(:hover, :focus-visible) {
|
|
113
|
+
&::before, &::after {
|
|
114
|
+
transform: translateX(0.5rem);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
180
117
|
}
|
|
181
118
|
|
|
182
119
|
&.lib-hint-left {
|
|
183
120
|
&::before, &::after {
|
|
184
121
|
right: 100%;
|
|
185
122
|
bottom: 50%;
|
|
186
|
-
|
|
187
|
-
@nest :hover& {
|
|
188
|
-
transform: translateX(-0.5rem);
|
|
189
|
-
}
|
|
190
123
|
}
|
|
191
124
|
|
|
192
125
|
&::before {
|
|
@@ -197,5 +130,57 @@
|
|
|
197
130
|
&::after {
|
|
198
131
|
margin-bottom: -1.1875rem;
|
|
199
132
|
}
|
|
133
|
+
|
|
134
|
+
&:is(:hover, :focus-visible) {
|
|
135
|
+
&::before, &::after {
|
|
136
|
+
transform: translateX(-0.5rem);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&[aria-label]::after {
|
|
142
|
+
content: attr(aria-label);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&[class*="lib-hint-top"]::before {
|
|
146
|
+
border-top-color: var(--color-accent);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[class*="lib-hint-bottom"]::before {
|
|
150
|
+
border-bottom-color: var(--color-accent);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&[class*="lib-hint-left"]::before {
|
|
154
|
+
border-left-color: var(--color-accent);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&[class*="lib-hint-right"]::before {
|
|
158
|
+
border-right-color: var(--color-accent);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:is(.lib-hint-sm, .lib-hint-md, .lib-hint-lg)::after {
|
|
162
|
+
white-space: normal;
|
|
163
|
+
line-height: 1.5;
|
|
164
|
+
word-wrap: break-word;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&.lib-hint-sm::after {
|
|
168
|
+
width: 5rem;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.lib-hint-md::after {
|
|
172
|
+
width: 10rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
&.lib-hint-lg::after {
|
|
176
|
+
width: 15rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:is(:hover, :focus-visible) {
|
|
180
|
+
&::before, &::after {
|
|
181
|
+
visibility: visible;
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transition-delay: 100ms;
|
|
184
|
+
}
|
|
200
185
|
}
|
|
201
186
|
}
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
--lib-ripple-bg: rgb(var(--color-background));
|
|
3
|
-
|
|
4
|
-
position: relative;
|
|
5
|
-
user-select: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.lib-ripple {
|
|
9
|
-
position: absolute;
|
|
10
|
-
background: var(--lib-ripple-bg);
|
|
11
|
-
border-radius: 50%;
|
|
12
|
-
transform: scale(0);
|
|
13
|
-
opacity: 0.4;
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
|
|
16
|
-
@nest body > & {
|
|
17
|
-
position: fixed;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@nest html.ie & {
|
|
21
|
-
z-index: -1;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.animation {
|
|
25
|
-
animation-name: ripple;
|
|
26
|
-
animation-duration: 1s;
|
|
27
|
-
animation-fill-mode: both;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
@import "winduum/src/libraries/ripple.css";
|
|
@@ -3,40 +3,16 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.tippy-box {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
border: 1px solid rgb(0 8 16 / 0.05);
|
|
12
|
-
color: rgb(var(--color-default));
|
|
13
|
-
box-shadow: 0 3px 14px -0.5px rgb(0 8 16 / 0.08);
|
|
14
|
-
border-radius: var(--radius);
|
|
15
|
-
left: 0.1875rem;
|
|
16
|
-
|
|
17
|
-
@nest .dark & {
|
|
18
|
-
--color-background: var(--color-background-200);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& .tippy-svg-arrow {
|
|
22
|
-
fill: rgb(var(--color-background));
|
|
23
|
-
|
|
24
|
-
&::after {
|
|
25
|
-
opacity: 0.3;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
6
|
+
background-color: transparent;
|
|
7
|
+
color: inherit;
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
font-size: inherit;
|
|
10
|
+
line-height: inherit;
|
|
29
11
|
|
|
30
12
|
&[data-placement="bottom-end"] {
|
|
31
13
|
&[data-animation="scale"] {
|
|
32
14
|
transform-origin: top right;
|
|
33
15
|
}
|
|
34
|
-
|
|
35
|
-
& .tippy-svg-arrow {
|
|
36
|
-
left: auto !important;
|
|
37
|
-
right: 0.5rem;
|
|
38
|
-
transform: none !important;
|
|
39
|
-
}
|
|
40
16
|
}
|
|
41
17
|
|
|
42
18
|
&[data-placement="bottom-start"] {
|
|
@@ -46,42 +22,52 @@
|
|
|
46
22
|
}
|
|
47
23
|
}
|
|
48
24
|
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
.tippy-svg-arrow {
|
|
26
|
+
fill: var(--color-body);
|
|
51
27
|
}
|
|
52
28
|
|
|
53
29
|
[data-tippy-root] {
|
|
54
30
|
&.is-full {
|
|
55
|
-
@media (--media-
|
|
31
|
+
@media not all and (--media-md) {
|
|
56
32
|
inset: 0 !important;
|
|
57
33
|
width: 100% !important;
|
|
58
34
|
height: 100% !important;
|
|
59
35
|
position: fixed !important;
|
|
60
36
|
transform: none !important;
|
|
37
|
+
visibility: visible !important;
|
|
61
38
|
pointer-events: none;
|
|
62
39
|
max-width: 100%;
|
|
40
|
+
background-color: color-mix(in srgb, var(--color-dark) 50%, transparent);
|
|
41
|
+
transition: var(--transition-opacity);
|
|
42
|
+
opacity: 0;
|
|
43
|
+
|
|
44
|
+
&:has(.tippy-content[data-state="visible"]) {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
63
47
|
|
|
64
48
|
& .tippy-content {
|
|
65
|
-
padding-bottom: env(safe-area-inset-bottom);
|
|
66
49
|
pointer-events: auto;
|
|
67
50
|
}
|
|
68
51
|
|
|
69
52
|
& .tippy-box {
|
|
70
|
-
max-width: 100% !important;
|
|
71
53
|
position: absolute;
|
|
72
|
-
border: 0 !important;
|
|
73
54
|
bottom: 0;
|
|
74
|
-
left: 0
|
|
55
|
+
left: 0;
|
|
75
56
|
right: 0;
|
|
76
|
-
|
|
77
|
-
transition-
|
|
78
|
-
transition-duration: 300ms !important;
|
|
57
|
+
transition-timing-function: ease;
|
|
58
|
+
transition-duration: 300ms;
|
|
79
59
|
|
|
80
60
|
&[data-state="hidden"] {
|
|
81
61
|
transform: translateY(100%);
|
|
82
62
|
opacity: 0;
|
|
83
63
|
}
|
|
84
64
|
}
|
|
65
|
+
|
|
66
|
+
.c-dropdown {
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
border-bottom-right-radius: 0;
|
|
69
|
+
border-bottom-left-radius: 0;
|
|
70
|
+
}
|
|
85
71
|
}
|
|
86
72
|
}
|
|
87
73
|
}
|
package/src/styles/Ui/+.css
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
@import "Badge.css";
|
|
2
2
|
@import "Btn.css";
|
|
3
|
-
@import "
|
|
3
|
+
@import "Check.css";
|
|
4
|
+
@import "Control.css";
|
|
5
|
+
@import "ControlSelect.css";
|
|
6
|
+
@import "Dot.css";
|
|
7
|
+
@import "Group.css";
|
|
4
8
|
@import "Heading.css";
|
|
5
|
-
@import "Icon.css";
|
|
6
9
|
@import "Image.css";
|
|
7
|
-
@import "
|
|
10
|
+
@import "Info.css";
|
|
8
11
|
@import "Label.css";
|
|
9
12
|
@import "Link.css";
|
|
10
13
|
@import "Notice.css";
|
|
11
14
|
@import "Progress.css";
|
|
12
|
-
@import "Radio.css";
|
|
13
|
-
@import "Select.css";
|
|
14
15
|
@import "Switch.css";
|
|
15
16
|
@import "Text.css";
|
|
16
17
|
@import "Title.css";
|
package/src/styles/Ui/Badge.css
CHANGED
|
@@ -1,82 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
--ui-badge-weight: var(--font-normal);
|
|
9
|
-
--ui-badge-bg-opacity: var(--tw-bg-opacity, 1);
|
|
10
|
-
--ui-badge-text-opacity: var(--tw-text-opacity, 1);
|
|
11
|
-
--ui-badge-bg: rgb(var(--color-accent) / var(--ui-badge-bg-opacity));
|
|
12
|
-
--ui-badge-color: rgb(var(--color-light) / var(--ui-badge-text-opacity));
|
|
13
|
-
--ui-badge-hover-opacity: 0.8;
|
|
14
|
-
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
align-self: flex-start;
|
|
17
|
-
align-items: center;
|
|
18
|
-
text-align: center;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
font-size: var(--ui-badge-size);
|
|
22
|
-
font-weight: var(--ui-badge-weight);
|
|
23
|
-
padding: var(--ui-badge-py) var(--ui-badge-px);
|
|
24
|
-
border-radius: var(--ui-badge-radius);
|
|
25
|
-
background-color: var(--ui-badge-bg);
|
|
26
|
-
color: var(--ui-badge-color);
|
|
27
|
-
width: var(--ui-badge-width);
|
|
28
|
-
height: var(--ui-badge-height);
|
|
29
|
-
line-height: var(--ui-badge-size);
|
|
30
|
-
transition: var(--transition-opacity);
|
|
31
|
-
|
|
32
|
-
@nest .no-touch &:is([href], button):is(:hover, :focus-visible) {
|
|
33
|
-
opacity: var(--ui-badge-hover-opacity);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
& svg {
|
|
37
|
-
width: 1em;
|
|
38
|
-
height: 1em;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&:--type-square, &:--type-circle {
|
|
42
|
-
--ui-badge-px: var(--ui-badge-py);
|
|
43
|
-
--ui-badge-width: var(--ui-badge-height);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:--type-circle {
|
|
47
|
-
border-radius: 50%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:--size-sm {
|
|
51
|
-
--ui-badge-height: 1.25rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&:--size-md {
|
|
55
|
-
--ui-badge-height: 1.75rem;
|
|
56
|
-
--ui-badge-py: 0.5rem;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ui-badge-group {
|
|
61
|
-
display: flex;
|
|
62
|
-
|
|
63
|
-
& .ui-badge {
|
|
64
|
-
&:not(:first-of-type) {
|
|
65
|
-
&, &::after {
|
|
66
|
-
border-top-left-radius: 0;
|
|
67
|
-
border-bottom-left-radius: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&::after {
|
|
71
|
-
border-left: 0;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&:not(:last-of-type) {
|
|
76
|
-
&, &::after {
|
|
77
|
-
border-top-right-radius: 0;
|
|
78
|
-
border-bottom-right-radius: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
1
|
+
@import "winduum/src/ui/badge/default.css";
|
|
2
|
+
@import "winduum/src/ui/badge/sm.css";
|
|
3
|
+
@import "winduum/src/ui/badge/lg.css";
|
|
4
|
+
@import "winduum/src/ui/badge/bordered.css";
|
|
5
|
+
@import "winduum/src/ui/badge/muted.css";
|
|
6
|
+
@import "winduum/src/ui/badge/square.css";
|
|
7
|
+
@import "winduum/src/ui/badge/circle.css";
|