@newlogic-digital/ui 3.4.2 → 3.7.5

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 (180) hide show
  1. package/README.md +21 -15
  2. package/package.json +32 -24
  3. package/src/data/main.json +25 -15
  4. package/src/emails/styles/main/+.css +3 -0
  5. package/src/emails/styles/main/Base/+.css +2 -0
  6. package/src/emails/styles/main/Base/config.css +22 -0
  7. package/src/emails/styles/main/Components/+.css +1 -0
  8. package/src/emails/styles/main/Components/Card.css +12 -0
  9. package/src/emails/styles/main/Ui/+.css +3 -0
  10. package/src/emails/styles/main/Ui/Btn.css +78 -0
  11. package/src/emails/styles/main/Ui/Heading.css +8 -0
  12. package/src/emails/styles/main/Ui/Text.css +12 -0
  13. package/src/emails/styles/main.css +92 -0
  14. package/src/emails/{templates/Layout.twig → templates.test/Layout.latte} +17 -5
  15. package/src/emails/templates.test/Sections/Footer.latte +22 -0
  16. package/src/emails/templates.test/Sections/Header.latte +37 -0
  17. package/src/emails/templates.test/Sections/Text.latte +24 -0
  18. package/src/icons.svg +27 -21
  19. package/src/scripts/Components/+.js +2 -1
  20. package/src/scripts/Components/Drawer.js +60 -0
  21. package/src/scripts/Components/Popover.js +65 -0
  22. package/src/scripts/Layout/+.js +0 -1
  23. package/src/scripts/Layout/Header.js +14 -24
  24. package/src/scripts/Libraries/+.js +4 -8
  25. package/src/scripts/Libraries/CookieConsent.js +65 -52
  26. package/src/scripts/Libraries/Dialog.js +19 -36
  27. package/src/scripts/Libraries/Form.js +5 -25
  28. package/src/scripts/Libraries/Naja.js +22 -20
  29. package/src/scripts/Libraries/ReCaptcha.js +8 -30
  30. package/src/scripts/Libraries/Reveal.js +32 -0
  31. package/src/scripts/Libraries/Ripple.js +6 -22
  32. package/src/scripts/Libraries/Stimulus.js +49 -5
  33. package/src/scripts/Libraries/Swup.js +45 -32
  34. package/src/scripts/Libraries/Toaster.js +55 -0
  35. package/src/scripts/Ui/+.js +3 -3
  36. package/src/scripts/Ui/Check.js +8 -0
  37. package/src/scripts/Ui/Control.js +194 -0
  38. package/src/scripts/Ui/ControlSelect.js +25 -0
  39. package/src/scripts/Ui/Text.js +9 -11
  40. package/src/scripts/Utils/+.js +3 -3
  41. package/src/scripts/Utils/cdn.js +1 -3
  42. package/src/scripts/Utils/initAfter.js +11 -0
  43. package/src/scripts/Utils/naja.js +41 -0
  44. package/src/scripts/Utils/utilities.js +8 -0
  45. package/src/scripts/main.js +2 -1
  46. package/src/styles/Components/+.css +4 -3
  47. package/src/styles/Components/Dialog/+.css +2 -0
  48. package/src/styles/Components/Dialog/Content.css +2 -0
  49. package/src/styles/Components/Dialog/CookieConsent.css +17 -0
  50. package/src/styles/Components/Dialog/Default.css +2 -43
  51. package/src/styles/Components/Drawer.css +18 -0
  52. package/src/styles/Components/Field.css +1 -0
  53. package/src/styles/Components/Popover.css +1 -0
  54. package/src/styles/Components/Toaster.css +2 -0
  55. package/src/styles/Layout/Header.css +9 -45
  56. package/src/styles/Layout/Main.css +11 -75
  57. package/src/styles/Layout/Nav.css +13 -33
  58. package/src/styles/Libraries/+.css +1 -7
  59. package/src/styles/Libraries/Datepicker.css +38 -229
  60. package/src/styles/Libraries/Pickr.css +13 -0
  61. package/src/styles/Ui/+.css +5 -5
  62. package/src/styles/Ui/Badge.css +8 -82
  63. package/src/styles/Ui/Btn.css +14 -226
  64. package/src/styles/Ui/Check.css +1 -0
  65. package/src/styles/Ui/Control.css +57 -0
  66. package/src/styles/Ui/ControlSelect.css +57 -0
  67. package/src/styles/Ui/Group.css +1 -0
  68. package/src/styles/Ui/Heading.css +4 -22
  69. package/src/styles/Ui/Image.css +1 -17
  70. package/src/styles/Ui/Info.css +1 -0
  71. package/src/styles/Ui/Label.css +1 -14
  72. package/src/styles/Ui/Link.css +6 -39
  73. package/src/styles/Ui/Notice.css +5 -43
  74. package/src/styles/Ui/Progress.css +1 -56
  75. package/src/styles/Ui/Switch.css +1 -70
  76. package/src/styles/Ui/Text.css +1 -254
  77. package/src/styles/Ui/Title.css +4 -15
  78. package/src/styles/Utils/+.css +6 -10
  79. package/src/styles/Utils/breakpoints.css +1 -9
  80. package/src/styles/Utils/config.css +16 -0
  81. package/src/styles/Utils/default.css +15 -26
  82. package/src/styles/Utils/keyframes.css +1 -182
  83. package/src/styles/Utils/theme/+.css +1 -1
  84. package/src/styles/Utils/theme/main.css +28 -23
  85. package/src/styles/Utils/utilities.css +42 -0
  86. package/src/styles/main.css +16 -14
  87. package/src/styles/tinymce.css +34 -0
  88. package/src/templates/Components/Dialog/Basic.latte +24 -0
  89. package/src/templates/Components/Dialog/CookieConsent.latte +27 -0
  90. package/src/templates/Components/Form/CookieConsent.latte +47 -0
  91. package/src/templates/Layout/Header.latte +38 -0
  92. package/src/templates/Layout/Main.latte +73 -0
  93. package/src/templates/Sections/CookieConsent.latte +69 -0
  94. package/src/templates/Sections/Site.latte +213 -0
  95. package/src/templates/Sections/Text.latte +64 -0
  96. package/src/templates/Sections/Ui/Docs/@intro.html +16 -65
  97. package/src/templates/Sections/Ui/Docs/@nav.html +68 -129
  98. package/src/templates/Sections/Ui/Docs/@styles.html +3 -7
  99. package/src/templates/Sections/Ui/Docs/Default.latte +979 -0
  100. package/src/templates/Sections/Ui/Icons.html +11 -9
  101. package/src/templates/Sections/Ui/Intro.html +62 -79
  102. package/src/templates/Sections/Ui.latte +8 -0
  103. package/src/templates/Ui/+.latte +5 -0
  104. package/src/templates/Ui/Check.latte +7 -0
  105. package/src/templates/Ui/Control.latte +9 -0
  106. package/src/templates/Ui/ControlDate.latte +14 -0
  107. package/src/templates/Ui/ControlSelect.latte +9 -0
  108. package/src/templates/Ui/ControlTime.latte +14 -0
  109. package/src/templates/Utils/sections.latte +3 -0
  110. package/src/views/dialog/basic.json.latte +5 -0
  111. package/src/views/email/email.latte +6 -0
  112. package/src/views/email/email.test.latte +6 -0
  113. package/src/views/gdpr.json +6 -4
  114. package/src/views/index.json +1 -1
  115. package/src/views/popover/info.json.latte +15 -0
  116. package/src/views/site.json +11 -0
  117. package/src/views/ui-icons.json +1 -1
  118. package/src/views/ui.json +1 -1
  119. package/vite.config.js +17 -16
  120. package/src/emails/styles/email.css +0 -77
  121. package/src/emails/templates/Content.twig +0 -16
  122. package/src/emails/templates/Header.twig +0 -14
  123. package/src/scripts/Components/CookieConsent.js +0 -83
  124. package/src/scripts/Layout/Main.js +0 -47
  125. package/src/scripts/Libraries/Anchor.js +0 -35
  126. package/src/scripts/Libraries/Drawer.js +0 -45
  127. package/src/scripts/Libraries/NativeSlider.js +0 -138
  128. package/src/scripts/Libraries/Script.js +0 -19
  129. package/src/scripts/Libraries/Tabs.js +0 -16
  130. package/src/scripts/Libraries/Tippy.js +0 -120
  131. package/src/scripts/Ui/Checkbox.js +0 -10
  132. package/src/scripts/Ui/Input.js +0 -259
  133. package/src/scripts/Ui/Select.js +0 -53
  134. package/src/scripts/Utils/Functions/+.js +0 -6
  135. package/src/scripts/Utils/Functions/checkValidity.js +0 -44
  136. package/src/scripts/Utils/Functions/dataValue.js +0 -52
  137. package/src/scripts/Utils/Functions/importScript.js +0 -17
  138. package/src/scripts/Utils/Functions/importStyle.js +0 -18
  139. package/src/scripts/Utils/Functions/loadStimulus.js +0 -42
  140. package/src/scripts/Utils/Functions/replaceTag.js +0 -12
  141. package/src/scripts/Utils/global.js +0 -15
  142. package/src/styles/Components/CookieConsent.css +0 -71
  143. package/src/styles/Components/Dropdown/+.css +0 -1
  144. package/src/styles/Components/Dropdown/Default.css +0 -5
  145. package/src/styles/Components/Form/+.css +0 -1
  146. package/src/styles/Components/Form/CookieConsent.css +0 -31
  147. package/src/styles/Libraries/Dialog.css +0 -35
  148. package/src/styles/Libraries/Drawer.css +0 -70
  149. package/src/styles/Libraries/Hint.css +0 -201
  150. package/src/styles/Libraries/NativeSlider.css +0 -60
  151. package/src/styles/Libraries/Ripple.css +0 -16
  152. package/src/styles/Libraries/Tabs.css +0 -19
  153. package/src/styles/Libraries/Tippy.css +0 -87
  154. package/src/styles/Ui/Checkbox.css +0 -150
  155. package/src/styles/Ui/Icon.css +0 -33
  156. package/src/styles/Ui/Input.css +0 -467
  157. package/src/styles/Ui/Radio.css +0 -4
  158. package/src/styles/Ui/Select.css +0 -137
  159. package/src/styles/Utils/icons.css +0 -9
  160. package/src/styles/Utils/normalize.css +0 -223
  161. package/src/styles/Utils/tailwind/+.css +0 -3
  162. package/src/styles/Utils/tailwind/base.css +0 -3
  163. package/src/styles/Utils/tailwind/gutters.css +0 -346
  164. package/src/styles/Utils/tailwind/utilities.css +0 -48
  165. package/src/styles/Utils/vars.css +0 -91
  166. package/src/styles/Utils/vendor.css +0 -2
  167. package/src/templates/Components/CookieConsent.twig +0 -30
  168. package/src/templates/Components/Dialogs/Basic.twig +0 -22
  169. package/src/templates/Layout/Header.twig +0 -42
  170. package/src/templates/Layout/Main.twig +0 -49
  171. package/src/templates/Sections/Gdpr.twig +0 -64
  172. package/src/templates/Sections/Ui/Docs/Default.twig +0 -1600
  173. package/src/templates/Sections/Ui.twig +0 -8
  174. package/src/templates/Utils/sections.twig +0 -3
  175. package/src/views/dialog/basic.json.twig +0 -3
  176. package/src/views/dropdown/tippy.json.twig +0 -16
  177. package/src/views/email/email.twig +0 -6
  178. /package/src/{styles/Utils/print.css → emails/styles/main/Base/font.css} +0 -0
  179. /package/src/{templates/Components/Items → emails/templates}/.gitkeep +0 -0
  180. /package/src/templates/Layout/{Footer.twig → Footer.latte} +0 -0
@@ -1,43 +1,2 @@
1
- .c-dialog {
2
- --c-dialog-py: 1.5rem;
3
- --c-dialog-px: 1.5rem;
4
- --c-dialog-width: 40rem;
5
- --c-dialog-animation-duration: 0.3s;
6
-
7
- animation: var(--c-dialog-animation-duration) ease 0s backwards 1 fade-in-down;
8
- position: relative;
9
- z-index: var(--z-20);
10
- margin: auto;
11
- background-color: rgb(var(--color-background));
12
- width: 100%;
13
- max-width: var(--c-dialog-width);
14
- border-radius: var(--rounded-md);
15
- padding: var(--c-dialog-py) var(--c-dialog-px);
16
-
17
- @nest dialog:not([open]) & {
18
- animation: var(--c-dialog-animation-duration) ease 0s forwards 1 fade-out-up;
19
- }
20
-
21
- &:--size-sm {
22
- --c-dialog-width: 32rem;
23
- }
24
-
25
- &:--size-lg {
26
- --c-dialog-width: 80rem;
27
- }
28
-
29
- &:--type-scrollable {
30
- height: 100%;
31
- display: flex;
32
- flex-direction: column;
33
-
34
- & .wrp_dialog_body {
35
- flex: 1 1 auto;
36
- overflow: auto;
37
- margin: var(--c-dialog-py) calc(var(--c-dialog-px) * -1);
38
- padding: 0 var(--c-dialog-px);
39
- overscroll-behavior: contain;
40
- -webkit-overflow-scrolling: touch;
41
- }
42
- }
43
- }
1
+ @import "winduum/src/components/dialog/default.css";
2
+ @import "winduum/src/components/dialog/default-props.css";
@@ -0,0 +1,18 @@
1
+ @import "winduum/src/components/drawer/default-props.css";
2
+ @import "winduum/src/components/drawer/default.css";
3
+ @import "winduum/src/components/drawer/content-props.css";
4
+ @import "winduum/src/components/drawer/content.css";
5
+
6
+ .c-drawer {
7
+ --c-drawer-content-width: min(calc(100vw - 2rem), 22rem);
8
+ --c-drawer-content-height: 100dvh;
9
+
10
+ &:not(.active) {
11
+ opacity: 0;
12
+ }
13
+ }
14
+
15
+ .c-drawer-content {
16
+ overflow-y: auto;
17
+ overscroll-behavior: contain;
18
+ }
@@ -0,0 +1 @@
1
+ @import "winduum/src/components/field/index.css";
@@ -0,0 +1 @@
1
+ @import "winduum/src/components/popover/index.css";
@@ -0,0 +1,2 @@
1
+ @import "winduum/src/components/toaster/index.css";
2
+ @import "winduum/src/components/toast/index.css";
@@ -3,52 +3,16 @@
3
3
  --l-scroll-padding-top: calc(var(--l-header-height) + 1rem);
4
4
  }
5
5
 
6
- #l-header {
7
- z-index: var(--z-20);
8
- position: fixed;
6
+ .l-header {
7
+ position: sticky;
9
8
  top: 0;
10
- left: 0;
11
- right: 0;
12
- padding: 0 2rem;
13
- background-color: rgb(var(--color-dark));
14
- color: rgb(var(--color-light));
15
-
16
- @nest .dark & {
17
- background-color: rgb(var(--color-background-100));
18
- }
19
-
20
- &.is-l-header-normal {
21
- & ~ #l-main {
22
- padding-top: var(--l-header-height);
23
- }
24
- }
25
-
26
- & .wrp_header_body {
27
- align-items: center;
28
- height: var(--l-header-height);
29
- }
30
-
31
- & .elm_header_logo {
32
- font-size: 1.5rem;
33
- margin-right: 3rem;
34
- }
35
-
36
- & .elm_header_menu {
37
- position: relative;
38
- font-size: 1.75rem;
39
-
40
- &::after {
41
- position: absolute;
42
- inset: -0.5rem;
43
- content: "";
44
- }
45
- }
46
-
47
- & .elm_header_nav {
48
- --gx: 2rem;
9
+ z-index: var(--z-20);
10
+ padding-inline: 2rem calc(2rem + var(--c-dialog-scrollbar-width, 0rem));
11
+ background-color: var(--color-dark);
12
+ color: var(--color-light);
13
+ height: var(--l-header-height);
49
14
 
50
- & .ui-link {
51
- padding: 1.25rem 0;
52
- }
15
+ .dark & {
16
+ background-color: var(--color-body-secondary);
53
17
  }
54
18
  }
@@ -1,95 +1,31 @@
1
1
  html {
2
- font-family: sans-serif;
3
- scroll-padding-top: var(--l-scroll-padding-top, 0);
4
- scroll-behavior: smooth;
5
- accent-color: rgb(var(--color-accent));
2
+ scroll-padding-top: var(--l-scroll-padding-top);
6
3
 
7
- @media (--media-sm) {
8
- font-size: 95%;
9
- }
10
-
11
- @media not all and (--media-sm), (--media-md) {
12
- font-size: 90%;
13
- }
14
-
15
- @media (--media-2xl) {
16
- font-size: 100%;
17
- }
18
-
19
- @media (max-width: 64em) and (--media-lg) {
20
- font-size: 80%;
21
- }
22
-
23
- &.no-touch, &.no-touch * {
24
- scrollbar-color: rgb(var(--color-current) / 0.2) rgb(var(--color-background));
25
- scrollbar-width: thin;
26
-
27
- &::-webkit-scrollbar {
28
- width: 8px;
29
- }
30
-
31
- &::-webkit-scrollbar-track {
32
- background-color: rgb(var(--color-background));
33
- }
34
-
35
- &::-webkit-scrollbar-thumb {
36
- background-color: rgb(var(--color-current) / 0.2);
37
- }
4
+ @media (min-width: 60em) and (max-width: 75.9375rem) {
5
+ font-size: 87.5%;
38
6
  }
39
7
  }
40
8
 
41
9
  body {
42
- font-family: var(--font-primary);
43
- color: rgb(var(--color-current));
44
- font-weight: var(--font-normal);
45
- line-height: 1.5;
46
- position: relative;
47
- background-color: rgb(var(--color-background));
48
- cursor: default;
49
-
50
- &::before {
51
- position: fixed;
52
- inset: 0;
53
- content: "";
54
- background-color: rgb(var(--color-dark) / 0.6);
55
- z-index: var(--z-30);
56
- transition: var(--transition-opacity);
57
- opacity: 0;
58
- pointer-events: none;
59
-
60
- @nest .m\:is-body-overlay & {
61
- @media (--media-m) {
62
- pointer-events: auto;
63
- opacity: 1;
64
- }
65
- }
66
- }
67
-
68
- & .l-default {
69
- min-height: 100vh;
70
- display: flex;
71
- flex-direction: column;
72
- }
10
+ background-color: var(--color-body);
11
+ display: flex;
12
+ flex-direction: column;
13
+ overflow-x: clip;
73
14
  }
74
15
 
75
- #l-main {
76
- background-color: rgb(var(--color-background));
16
+ .l-main {
77
17
  flex-grow: 1;
78
18
  display: flex;
79
19
  flex-direction: column;
80
20
 
81
- &.transition-fade {
82
- @nest html.swup-enabled & {
83
- /* clean-css ignore:start */
21
+ &.swup-transition {
22
+ html.swup-enabled & {
84
23
  transition: opacity 0.15s;
85
24
  opacity: 1;
86
- /* clean-css ignore:end */
87
25
  }
88
26
 
89
- @nest html.is-animating & {
90
- /* clean-css ignore:start */
27
+ html.is-animating & {
91
28
  opacity: 0;
92
- /* clean-css ignore:end */
93
29
  }
94
30
  }
95
31
  }
@@ -1,42 +1,22 @@
1
- #l-nav {
2
- & > .wrp_nav {
3
- min-width: 22.5rem;
4
- background-color: rgb(var(--color-background));
5
- height: 100vh;
6
-
7
- @nest .is-transition& {
8
- transition: var(--transition-transform);
9
- }
1
+ .l-nav {
2
+ .c-drawer-content {
3
+ padding: 2rem;
10
4
  }
11
5
 
12
- & .wrp_nav_head {
13
- padding: 2rem 3rem;
14
-
15
- & .elm_header_logo {
16
- font-size: 1.875rem;
17
-
18
- & .icon {
19
- &, &::before {
20
- display: block;
21
- }
22
- }
23
- }
6
+ [data-part~="logo"] {
7
+ display: flex;
8
+ padding: 0.75rem 0 2.5rem;
24
9
  }
25
10
 
26
- & .wrp_nav_body {
27
- & .elm_header_nav {
28
- display: block;
29
- }
30
-
31
- & .col {
32
- margin: 0.75rem 0;
33
- }
11
+ [data-part~="nav"] {
12
+ display: flex;
13
+ flex-direction: column;
14
+ gap: 0.5rem;
15
+ align-items: flex-start;
34
16
 
35
17
  & a {
36
- font-size: 1.5rem;
37
- padding: 0 3rem;
38
- font-weight: var(--font-medium);
39
- text-align: left;
18
+ padding: 0.5rem 0;
19
+ font-size: 1.75rem;
40
20
  display: block;
41
21
  }
42
22
  }
@@ -1,8 +1,2 @@
1
1
  @import "Datepicker.css";
2
- @import "Dialog.css";
3
- @import "Drawer.css";
4
- @import "Hint.css";
5
- @import "NativeSlider.css";
6
- @import "Ripple.css";
7
- @import "Tabs.css";
8
- @import "Tippy.css";
2
+ @import "Pickr.css";
@@ -1,245 +1,54 @@
1
- .datepicker-dropdown {
2
- --color-current: var(--color-default);
1
+ @import "air-datepicker/air-datepicker.css";
3
2
 
4
- z-index: 9999;
5
- transition: var(--transition-opacity), var(--transition-transform);
6
- will-change: transform;
7
- color: rgb(var(--color-current));
3
+ .air-datepicker {
4
+ --adp-btn-color: var(--color-primary);
5
+ --adp-day-name-color: var(--color-primary);
6
+ --adp-color-current-date: var(--color-main);
7
+ --adp-cell-background-color-selected: var(--color-primary);
8
+ --adp-cell-background-color-selected-hover: var(--color-primary);
9
+ --adp-cell-border-radius: var(--rounded);
10
+ --adp-border-radius: var(--rounded);
8
11
 
9
- @nest html:not(.no-pointer-events) & {
10
- display: block;
12
+ .dark & {
13
+ --adp-background-color: var(--color-body-tertiary);
14
+ --adp-background-color-hover: var(--color-body-secondary);
15
+ --adp-background-color-active: var(--color-body-secondary);
16
+ --adp-color: var(--color-main);
17
+ --adp-color-secondary: var(--color-main);
18
+ --adp-color-other-month: color-mix(in srgb, var(--color-main) 50%, var(--color-dark));
19
+ --adp-border-color: var(--color-body-secondary);
20
+ --adp-border-color-inner: var(--color-body-secondary);
21
+ --adp-border-color-inline: var(--color-body-secondary);
11
22
  }
12
23
 
13
- & .datepicker-picker {
14
- box-shadow: 0 0.15em 1.5em 0 rgb(var(--color-dark) / 0.05), 0 0 1em 0 rgb(var(--color-dark) / 0.05);
15
- overflow: hidden;
16
- display: block;
17
- border-radius: var(--radius);
18
- }
19
-
20
- &.datepicker-orient-top {
21
- padding-bottom: 0;
22
- margin-top: -0.75rem;
23
-
24
- &::after, &::before {
25
- top: 100%;
26
- left: 1.3125rem;
27
- border: solid transparent;
28
- content: "";
29
- height: 0;
30
- width: 0;
31
- position: absolute;
32
- pointer-events: none;
33
- margin-top: -1px;
34
- }
35
-
36
- &::after {
37
- border-top-color: #fff;
38
- border-width: 0.375rem;
39
- margin-left: -0.375rem;
40
- }
24
+ font-family: inherit;
41
25
 
42
- &::before {
43
- border-top-color: #eee;
44
- border-width: 0.4375rem;
45
- margin-left: -0.4375rem;
46
- }
47
-
48
- &:not(.active) {
49
- transform: translateY(0.75rem);
50
- }
26
+ & input[type="range"] {
27
+ border: 0;
28
+ outline: 0;
51
29
  }
52
30
 
53
- &.datepicker-orient-bottom {
54
- padding-top: 0;
55
- margin-top: 0.75rem;
56
-
57
- &::after, &::before {
58
- bottom: 100%;
59
- left: 1.3125rem;
60
- border: solid transparent;
61
- content: "";
62
- height: 0;
63
- width: 0;
64
- position: absolute;
65
- pointer-events: none;
66
- }
67
-
31
+ .air-datepicker--pointer {
68
32
  &::after {
69
- border-bottom-color: #fff;
70
- border-width: 0.375rem;
71
- margin-left: -0.375rem;
72
- }
73
-
74
- &::before {
75
- border-bottom-color: #eee;
76
- border-width: 0.4375rem;
77
- margin-left: -0.4375rem;
78
- }
79
-
80
- &:not(.active) {
81
- transform: translateY(-0.75rem);
82
- }
83
- }
84
-
85
- &:not(.active) {
86
- opacity: 0;
87
- pointer-events: none;
88
- }
89
- }
90
-
91
- .datepicker-view .dow {
92
- font-size: 0.75rem;
93
- font-weight: var(--font-semibold);
94
- text-transform: uppercase;
95
- color: rgb(var(--color-accent));
96
- }
97
-
98
- .datepicker-cell {
99
- font-size: 0.875rem;
100
- }
101
-
102
- .datepicker-cell.selected, .datepicker-cell.selected:hover {
103
- background-color: rgb(var(--color-accent));
104
- }
105
-
106
- .datepicker-controls {
107
- display: flex;
108
- justify-content: center;
109
- align-items: center;
110
- padding: 0.125rem;
111
-
112
- & .ok-btn {
113
- background: rgb(var(--color-accent));
114
- color: rgb(var(--color-light)) !important;
115
- border-color: rgb(var(--color-accent)) !important;
116
- font-weight: var(--font-medium);
117
- }
118
-
119
- & :is(.button, input) {
120
- margin-left: 0.125rem !important;
121
- margin-right: 0.125rem !important;
122
- }
123
-
124
- & input {
125
- color: rgb(var(--color-current));
126
- font-size: 0.8125rem;
127
- min-width: 4.5rem;
128
- max-width: 4.5rem;
129
- font-weight: var(--font-normal);
130
- background-color: transparent;
131
- border: 1px solid #dbdbdb;
132
- height: 1.6875rem;
133
- border-radius: var(--radius) !important;
134
- padding: 0 0.1875rem !important;
135
-
136
- @nest .chrome & {
137
- padding: 0 0.125rem 0 0.25rem !important;
138
- min-width: 3.75rem;
139
- }
140
-
141
- @nest .safari & {
142
- min-width: 3rem;
143
- }
144
-
145
- &::-webkit-calendar-picker-indicator {
146
- padding: 0;
147
- margin: 0;
148
- }
149
- }
150
- }
151
-
152
- .datepicker-input.in-edit:active, .datepicker-input.in-edit:focus {
153
- box-shadow: inherit;
154
- }
155
-
156
- .button {
157
- &.prev-btn, &.next-btn {
158
- font-size: 0;
159
- height: 2.25rem;
160
-
161
- &::before {
162
- width: 1em;
163
- height: 1em;
164
- font-size: 1rem;
165
- display: block;
166
- background-color: currentColor;
167
- content: "";
168
- }
169
- }
170
-
171
- &.prev-btn {
172
- &::before {
173
- mask: var(--icon-chevron-left);
174
- }
175
- }
176
-
177
- &.next-btn {
178
- &::before {
179
- mask: var(--icon-chevron-right);
180
- }
181
- }
182
-
183
- &.view-switch {
184
- font-size: 0.875rem;
185
- font-weight: var(--font-medium) !important;
186
- }
187
- }
188
-
189
- .datepicker-footer {
190
- background-color: rgb(var(--color-background));
191
- box-shadow: none;
192
- border-top: 1px solid rgb(var(--color-current) / 0.05);
193
-
194
- & .datepicker-controls {
195
- & + .datepicker-time {
196
- padding-top: 0.25rem;
33
+ background: var(--adp-background-color);
197
34
  }
198
35
  }
199
36
 
200
- & .button {
201
- border-radius: var(--radius) !important;
202
- }
203
- }
204
-
205
- .dark {
206
- & :is(.datepicker-picker, .datepicker-time) {
207
- background-color: rgb(var(--color-background-100));
208
- }
209
-
210
- & .datepicker-dropdown.datepicker-orient-bottom {
211
- &::before, &::after {
212
- border-bottom-color: rgb(var(--color-background-100));
213
- }
214
- }
37
+ .air-datepicker-cell {
38
+ &.-current- {
39
+ --sq: 0.25rem;
40
+ --bottom: 0.25rem;
215
41
 
216
- & .datepicker-dropdown.datepicker-orient-top {
217
- &::before, &::after {
218
- border-top-color: rgb(var(--color-background-100));
219
- }
220
- }
221
-
222
- & .datepicker-controls .button {
223
- border-color: transparent;
224
- background-color: rgb(var(--color-background-100));
225
- color: rgb(var(--color-current)) !important;
226
- }
227
-
228
- & .datepicker-header .datepicker-controls {
229
- align-items: center;
230
-
231
- & .button {
232
- &:hover {
233
- background-color: rgb(var(--color-light) / 0.1);
42
+ &::before {
43
+ content: "";
44
+ width: var(--sq);
45
+ height: var(--sq);
46
+ border-radius: var(--rounded-full);
47
+ background-color: var(--color-success);
48
+ position: absolute;
49
+ bottom: var(--bottom);
50
+ left: calc(50% - var(--sq) / 2);
234
51
  }
235
52
  }
236
53
  }
237
-
238
- & .datepicker-cell:not(.disabled):hover {
239
- background-color: rgb(var(--color-light) / 0.1);
240
- }
241
-
242
- & .datepicker-cell.focused:not(.selected) {
243
- background-color: rgb(var(--color-light) / 0.2);
244
- }
245
54
  }
@@ -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,16 +1,16 @@
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 "Group.css";
4
7
  @import "Heading.css";
5
- @import "Icon.css";
6
8
  @import "Image.css";
7
- @import "Input.css";
9
+ @import "Info.css";
8
10
  @import "Label.css";
9
11
  @import "Link.css";
10
12
  @import "Notice.css";
11
13
  @import "Progress.css";
12
- @import "Radio.css";
13
- @import "Select.css";
14
14
  @import "Switch.css";
15
15
  @import "Text.css";
16
16
  @import "Title.css";