@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.
Files changed (151) hide show
  1. package/README.md +10 -14
  2. package/package.json +23 -23
  3. package/src/data/main.json +2 -8
  4. package/src/emails/{templates/Content.twig → templates.test/Content.latte} +10 -2
  5. package/src/emails/{templates/Header.twig → templates.test/Header.latte} +1 -1
  6. package/src/emails/{templates/Layout.twig → templates.test/Layout.latte} +2 -2
  7. package/src/icons.svg +34 -28
  8. package/src/scripts/Components/CookieConsent.js +22 -28
  9. package/src/scripts/Layout/Header.js +25 -11
  10. package/src/scripts/Layout/Main.js +25 -55
  11. package/src/scripts/Libraries/+.js +4 -5
  12. package/src/scripts/Libraries/Dialog.js +37 -72
  13. package/src/scripts/Libraries/Drawer.js +22 -21
  14. package/src/scripts/Libraries/Form.js +8 -13
  15. package/src/scripts/Libraries/Naja.js +33 -0
  16. package/src/scripts/Libraries/ReCaptcha.js +14 -4
  17. package/src/scripts/Libraries/Ripple.js +6 -22
  18. package/src/scripts/Libraries/Script.js +1 -2
  19. package/src/scripts/Libraries/Slider.js +160 -0
  20. package/src/scripts/Libraries/Stimulus.js +0 -1
  21. package/src/scripts/Libraries/Swup.js +54 -38
  22. package/src/scripts/Libraries/Tippy.js +17 -20
  23. package/src/scripts/Ui/+.js +3 -3
  24. package/src/scripts/Ui/Check.js +8 -0
  25. package/src/scripts/Ui/Control.js +186 -0
  26. package/src/scripts/Ui/ControlSelect.js +24 -0
  27. package/src/scripts/Ui/Text.js +8 -10
  28. package/src/scripts/Utils/Functions/+.js +3 -3
  29. package/src/scripts/Utils/Functions/importScript.js +1 -1
  30. package/src/scripts/Utils/Functions/importStyle.js +1 -1
  31. package/src/scripts/Utils/Functions/inputStep.js +9 -0
  32. package/src/scripts/Utils/Functions/inputValidity.js +57 -0
  33. package/src/scripts/Utils/Functions/loadStimulus.js +12 -9
  34. package/src/scripts/Utils/Functions/replaceScript.js +4 -0
  35. package/src/scripts/Utils/Functions/replaceTag.js +1 -5
  36. package/src/scripts/Utils/cdn.js +2 -3
  37. package/src/scripts/Utils/global.js +1 -1
  38. package/src/styles/Components/+.css +1 -1
  39. package/src/styles/Components/CookieConsent.css +22 -25
  40. package/src/styles/Components/Dialog/Default.css +10 -62
  41. package/src/styles/Components/Dropdown/Default.css +6 -3
  42. package/src/styles/Components/Field.css +1 -0
  43. package/src/styles/Layout/Header.css +13 -17
  44. package/src/styles/Layout/Main.css +8 -91
  45. package/src/styles/Layout/Nav.css +31 -27
  46. package/src/styles/Libraries/+.css +1 -2
  47. package/src/styles/Libraries/Datepicker.css +38 -229
  48. package/src/styles/Libraries/Dialog.css +1 -19
  49. package/src/styles/Libraries/Drawer.css +17 -29
  50. package/src/styles/Libraries/Hint.css +86 -101
  51. package/src/styles/Libraries/Pickr.css +13 -0
  52. package/src/styles/Libraries/Ripple.css +1 -29
  53. package/src/styles/Libraries/Tippy.css +25 -39
  54. package/src/styles/Ui/+.css +6 -5
  55. package/src/styles/Ui/Badge.css +7 -82
  56. package/src/styles/Ui/Btn.css +13 -226
  57. package/src/styles/Ui/Check.css +1 -0
  58. package/src/styles/Ui/Control.css +47 -0
  59. package/src/styles/Ui/ControlSelect.css +66 -0
  60. package/src/styles/Ui/Dot.css +22 -0
  61. package/src/styles/Ui/Group.css +1 -0
  62. package/src/styles/Ui/Heading.css +3 -22
  63. package/src/styles/Ui/Image.css +1 -17
  64. package/src/styles/Ui/Info.css +1 -0
  65. package/src/styles/Ui/Label.css +1 -14
  66. package/src/styles/Ui/Link.css +2 -41
  67. package/src/styles/Ui/Notice.css +1 -47
  68. package/src/styles/Ui/Progress.css +1 -56
  69. package/src/styles/Ui/Switch.css +1 -70
  70. package/src/styles/Ui/Text.css +4 -245
  71. package/src/styles/Ui/Title.css +5 -13
  72. package/src/styles/Utils/+.css +3 -4
  73. package/src/styles/Utils/breakpoints.css +1 -0
  74. package/src/styles/Utils/config.css +5 -0
  75. package/src/styles/Utils/default.css +8 -122
  76. package/src/styles/Utils/icons.css +3 -7
  77. package/src/styles/Utils/keyframes.css +1 -182
  78. package/src/styles/Utils/{tailwind/base.css → tailwind.css} +31 -21
  79. package/src/styles/Utils/theme/+.css +1 -1
  80. package/src/styles/Utils/theme/main.css +14 -23
  81. package/src/styles/main.css +19 -15
  82. package/src/styles/tinymce.css +34 -0
  83. package/src/templates/Components/CookieConsent.latte +28 -0
  84. package/src/templates/Components/Dialogs/Basic.latte +22 -0
  85. package/src/templates/Layout/{Header.twig → Header.latte} +15 -17
  86. package/src/templates/Layout/Main.latte +62 -0
  87. package/src/templates/Sections/Gdpr.latte +127 -0
  88. package/src/templates/Sections/Site.latte +141 -0
  89. package/src/templates/Sections/Ui/Docs/@intro.html +13 -62
  90. package/src/templates/Sections/Ui/Docs/@nav.html +41 -92
  91. package/src/templates/Sections/Ui/Docs/@styles.html +2 -6
  92. package/src/templates/Sections/Ui/Docs/Default.latte +1059 -0
  93. package/src/templates/Sections/Ui/Icons.html +11 -9
  94. package/src/templates/Sections/Ui/Intro.html +66 -37
  95. package/src/templates/Sections/Ui.latte +8 -0
  96. package/src/templates/Ui/+.latte +5 -0
  97. package/src/templates/Ui/Check.latte +7 -0
  98. package/src/templates/Ui/Control.latte +9 -0
  99. package/src/templates/Ui/ControlDate.latte +14 -0
  100. package/src/templates/Ui/ControlSelect.latte +9 -0
  101. package/src/templates/Ui/ControlTime.latte +14 -0
  102. package/src/templates/Utils/sections.latte +3 -0
  103. package/src/views/dialog/basic.json.latte +5 -0
  104. package/src/views/dropdown/{tippy.json.twig → tippy.json.latte} +7 -4
  105. package/src/views/email/email.latte +6 -0
  106. package/src/views/email/email.test.latte +6 -0
  107. package/src/views/gdpr.json +1 -1
  108. package/src/views/index.json +1 -1
  109. package/src/views/site.json +11 -0
  110. package/src/views/ui-icons.json +1 -1
  111. package/src/views/ui.json +1 -1
  112. package/vite.config.js +16 -6
  113. package/.eslintrc +0 -13
  114. package/.stylelintrc +0 -18
  115. package/public/sw.js +0 -30
  116. package/src/emails/email.prod.html +0 -6
  117. package/src/emails/email.twig.html +0 -6
  118. package/src/scripts/Libraries/Anchor.js +0 -35
  119. package/src/scripts/Libraries/NativeSlider.js +0 -138
  120. package/src/scripts/Libraries/Tabs.js +0 -16
  121. package/src/scripts/Ui/Checkbox.js +0 -10
  122. package/src/scripts/Ui/Input.js +0 -259
  123. package/src/scripts/Ui/Select.js +0 -53
  124. package/src/scripts/Utils/Functions/checkValidity.js +0 -44
  125. package/src/scripts/Utils/Functions/dataValue.js +0 -52
  126. package/src/scripts/Utils/Functions/inView.js +0 -24
  127. package/src/styles/Components/Form/+.css +0 -1
  128. package/src/styles/Components/Form/CookieConsent.css +0 -31
  129. package/src/styles/Libraries/NativeSlider.css +0 -60
  130. package/src/styles/Libraries/Tabs.css +0 -19
  131. package/src/styles/Ui/Checkbox.css +0 -151
  132. package/src/styles/Ui/Icon.css +0 -33
  133. package/src/styles/Ui/Input.css +0 -467
  134. package/src/styles/Ui/Radio.css +0 -4
  135. package/src/styles/Ui/Select.css +0 -137
  136. package/src/styles/Utils/normalize.css +0 -223
  137. package/src/styles/Utils/tailwind/+.css +0 -2
  138. package/src/styles/Utils/tailwind/gutters.css +0 -346
  139. package/src/styles/Utils/vars.css +0 -126
  140. package/src/styles/Utils/vendor.css +0 -1
  141. package/src/templates/Components/CookieConsent.twig +0 -30
  142. package/src/templates/Components/Dialogs/Basic.twig +0 -24
  143. package/src/templates/Layout/Main.twig +0 -49
  144. package/src/templates/Sections/Gdpr.twig +0 -64
  145. package/src/templates/Sections/Ui/Docs/Default.twig +0 -1600
  146. package/src/templates/Sections/Ui.twig +0 -8
  147. package/src/templates/Utils/sections.twig +0 -3
  148. package/src/views/dialog/basic.json.twig +0 -3
  149. package/tailwind.config.cjs +0 -69
  150. /package/src/emails/{templates.prod → templates}/.gitkeep +0 -0
  151. /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
- top: 0;
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
- &:--state-active {
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
- top: 0;
41
- bottom: 0;
42
- right: 0;
43
- left: 0;
37
+ inset: 0;
44
38
  z-index: -1;
45
- background-color: rgb(var(--color-dark) / 0.6);
39
+ background-color: rgb(var(--color-dark-rgb) / 50%);
46
40
  content: "";
47
41
  opacity: var(--lib-drawer-opacity);
42
+ }
48
43
 
49
- @nest .is-opacity& {
50
- transition: var(--transition-opacity);
51
- }
44
+ &::after {
45
+ content: "";
46
+ display: block;
47
+ min-width: 100vw;
48
+ scroll-snap-align: end;
49
+ }
52
50
 
53
- @nest :not(:--state-active)& {
54
- opacity: 0;
51
+ &.is-opacity {
52
+ &::before {
53
+ transition: var(--transition-opacity);
55
54
  }
56
55
  }
57
56
 
58
- &:not(:--state-active) {
57
+ &:not(.active) {
59
58
  pointer-events: none;
60
59
 
61
- & > div {
62
- transform: translateX(-28.125rem);
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
- --lib-hint-bg: var(--color-dark);
3
- --lib-hint-fg: var(--color-light);
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(--radius);
77
- background-color: rgb(var(--lib-hint-bg));
78
- color: rgb(var(--lib-hint-fg));
30
+ border-radius: var(--rounded);
31
+ background-color: var(--color-accent);
32
+ color: var(--color-current);
79
33
  padding: 0.75rem;
80
- font-size: 0.875rem;
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: 0.25rem 0.25rem 0.5rem rgb(var(--lib-hint-bg) / 0.15);
85
- font-weight: var(--font-normal);
86
-
87
- @nest .lib-hint-light& {
88
- box-shadow: 0.25rem 0.25rem 0.5rem rgb(var(--color-dark) / 0.15);
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
- @nest :is(:hover, :focus-visible)& {
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
- @nest :hover& {
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
  }
@@ -0,0 +1,13 @@
1
+ .pcr-app {
2
+ border-radius: var(--rounded);
3
+ overflow: hidden;
4
+
5
+ .dark & {
6
+ background: var(--color-body-secondary);
7
+
8
+ .pcr-interaction input {
9
+ background: var(--color-body-tertiary);
10
+ box-shadow: none;
11
+ }
12
+ }
13
+ }
@@ -1,29 +1 @@
1
- [data-action*="lib#ripple"] {
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
- --lib-tippy-bg: var(--color-dark);
7
-
8
- &[data-theme~="light-border"] {
9
- background-color: rgb(var(--color-background));
10
- background-clip: padding-box;
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
- [data-controller*="lib-tippy"]:not([data-lib-tippy^="dropdown"]) {
50
- cursor: default;
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-m) {
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 !important;
55
+ left: 0;
75
56
  right: 0;
76
- border-radius: 2rem 2rem 0 0 !important;
77
- transition-timing-function: ease !important;
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
  }
@@ -1,16 +1,17 @@
1
1
  @import "Badge.css";
2
2
  @import "Btn.css";
3
- @import "Checkbox.css";
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 "Input.css";
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";
@@ -1,82 +1,7 @@
1
- .ui-badge {
2
- --ui-badge-width: auto;
3
- --ui-badge-height: 1.5rem;
4
- --ui-badge-py: 0.375rem;
5
- --ui-badge-px: 0.5rem;
6
- --ui-badge-size: 0.75rem;
7
- --ui-badge-radius: var(--radius);
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";