@digigov/css 1.3.0-dcbd7ded → 2.0.0-0138f8bd

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 (154) hide show
  1. package/dist/base/index.css +1 -1
  2. package/dist/base.js +1 -1
  3. package/dist/components.js +1 -1
  4. package/dist/digigov.css +3 -3
  5. package/dist/utilities/index.css +1 -1
  6. package/dist/utilities.js +1 -1
  7. package/index.js +99 -69
  8. package/package.json +17 -13
  9. package/postcss.config.js +4 -3
  10. package/src/base/base.css +1 -1
  11. package/src/base/index.css +6 -5
  12. package/src/base/index.native.css +0 -0
  13. package/src/base/postcss.config.js +11 -10
  14. package/src/base/tailwind.config.js +4 -11
  15. package/src/components/accordion.common.css +29 -0
  16. package/src/components/accordion.css +86 -61
  17. package/src/components/accordion.native.css +27 -0
  18. package/src/components/admin-header.css +2 -19
  19. package/src/components/admin-layout.css +13 -22
  20. package/src/components/autocomplete.css +93 -48
  21. package/src/components/back-to-top.css +3 -4
  22. package/src/components/blockquote.common.css +14 -0
  23. package/src/components/blockquote.css +9 -0
  24. package/src/components/blockquote.native.css +14 -0
  25. package/src/components/bottom-info.css +2 -1
  26. package/src/components/breadcrumbs.css +17 -8
  27. package/src/components/button.common.css +62 -0
  28. package/src/components/button.css +57 -71
  29. package/src/components/button.native.css +55 -0
  30. package/src/components/card.common.css +33 -0
  31. package/src/components/card.css +65 -52
  32. package/src/components/card.native.css +29 -0
  33. package/src/components/checkboxes.common.css +16 -0
  34. package/src/components/checkboxes.css +26 -31
  35. package/src/components/checkboxes.native.css +27 -0
  36. package/src/components/chip.common.css +19 -0
  37. package/src/components/chip.css +32 -32
  38. package/src/components/chip.native.css +15 -0
  39. package/src/components/code.css +128 -0
  40. package/src/components/components.css +2 -2
  41. package/src/components/copy-to-clipboard.css +27 -26
  42. package/src/components/copy-to-clipboard.native.css +26 -0
  43. package/src/components/details.common.css +26 -0
  44. package/src/components/details.css +18 -15
  45. package/src/components/details.native.css +34 -0
  46. package/src/components/dev-theme.css +2 -3
  47. package/src/components/drawer.css +63 -47
  48. package/src/components/dropdown.common.css +23 -0
  49. package/src/components/dropdown.css +57 -48
  50. package/src/components/dropdown.native.css +27 -0
  51. package/src/components/experimental.css +12 -12
  52. package/src/components/fillable.css +4 -4
  53. package/src/components/filter.css +76 -32
  54. package/src/components/footer.css +36 -21
  55. package/src/components/form.common.css +81 -0
  56. package/src/components/form.css +94 -52
  57. package/src/components/form.native.css +182 -0
  58. package/src/components/full-page-background.css +1 -1
  59. package/src/components/header.common.css +35 -0
  60. package/src/components/header.css +43 -46
  61. package/src/components/header.native.css +29 -0
  62. package/src/components/hidden.css +17 -17
  63. package/src/components/index.css +49 -47
  64. package/src/components/kitchensink.css +33 -33
  65. package/src/components/layout.common.css +36 -0
  66. package/src/components/layout.css +40 -41
  67. package/src/components/layout.native.css +40 -0
  68. package/src/components/loader.common.css +7 -0
  69. package/src/components/loader.css +31 -29
  70. package/src/components/loader.native.css +5 -0
  71. package/src/components/masthead.css +56 -55
  72. package/src/components/misc.css +38 -16
  73. package/src/components/modal.common.css +16 -0
  74. package/src/components/modal.css +33 -22
  75. package/src/components/modal.native.css +18 -0
  76. package/src/components/nav.common.css +22 -0
  77. package/src/components/nav.css +72 -67
  78. package/src/components/nav.native.css +39 -0
  79. package/src/components/notification-banner.common.css +46 -0
  80. package/src/components/notification-banner.css +41 -19
  81. package/src/components/notification-banner.native.css +42 -0
  82. package/src/components/pagination.css +44 -29
  83. package/src/components/panel.common.css +30 -0
  84. package/src/components/panel.css +10 -18
  85. package/src/components/panel.native.css +26 -0
  86. package/src/components/phase-banner.common.css +23 -0
  87. package/src/components/phase-banner.css +11 -10
  88. package/src/components/phase-banner.native.css +30 -0
  89. package/src/components/postcss.config.js +7 -6
  90. package/src/components/radios.common.css +16 -0
  91. package/src/components/radios.css +27 -30
  92. package/src/components/radios.native.css +23 -0
  93. package/src/components/skeleton.common.css +20 -0
  94. package/src/components/skeleton.css +82 -0
  95. package/src/components/skeleton.native.css +53 -0
  96. package/src/components/skiplink.css +2 -2
  97. package/src/components/stack.common.css +67 -0
  98. package/src/components/stack.css +66 -64
  99. package/src/components/stack.native.css +68 -0
  100. package/src/components/stepnav.css +33 -29
  101. package/src/components/summary-list.common.css +102 -0
  102. package/src/components/summary-list.css +114 -31
  103. package/src/components/summary-list.native.css +97 -0
  104. package/src/components/svg-icons.common.css +56 -0
  105. package/src/components/svg-icons.css +78 -74
  106. package/src/components/svg-icons.native.css +54 -0
  107. package/src/components/table.css +198 -178
  108. package/src/components/tabs.css +51 -67
  109. package/src/components/task-list.css +18 -18
  110. package/src/components/test.css +7 -0
  111. package/src/components/timeline.css +4 -3
  112. package/src/components/typography.common.css +135 -0
  113. package/src/components/typography.css +109 -179
  114. package/src/components/typography.native.css +128 -0
  115. package/src/components/warning-text.common.css +23 -0
  116. package/src/components/warning-text.css +15 -13
  117. package/src/components/warning-text.native.css +22 -0
  118. package/src/index.native.css +26 -0
  119. package/src/pages/index.js +1 -1
  120. package/src/utilities/gap.css +141 -0
  121. package/src/utilities/index.css +6 -585
  122. package/src/utilities/index.native.css +6 -0
  123. package/src/utilities/layout.css +231 -0
  124. package/src/utilities/layout.native.css +278 -0
  125. package/src/utilities/margin.css +4299 -0
  126. package/src/utilities/padding.css +4299 -0
  127. package/src/utilities/postcss.config.js +7 -6
  128. package/src/utilities/print.css +11 -0
  129. package/src/utilities/utilities.css +3 -1252
  130. package/tailwind.config.js +102 -104
  131. package/theming.js +121 -0
  132. package/defaultTheme/accordion.json +0 -8
  133. package/defaultTheme/back-to-top.json +0 -27
  134. package/defaultTheme/brandConfig.json +0 -135
  135. package/defaultTheme/breadcrumbs.json +0 -8
  136. package/defaultTheme/button.json +0 -81
  137. package/defaultTheme/card.json +0 -12
  138. package/defaultTheme/footer.json +0 -8
  139. package/defaultTheme/form.json +0 -15
  140. package/defaultTheme/globals.json +0 -71
  141. package/defaultTheme/index.js +0 -27
  142. package/defaultTheme/misc.json +0 -48
  143. package/defaultTheme/panel.json +0 -43
  144. package/defaultTheme/phase-banner.json +0 -8
  145. package/defaultTheme/radios.json +0 -8
  146. package/defaultTheme/summary-list.json +0 -8
  147. package/defaultTheme/typography.json +0 -295
  148. package/src/pages/admin-filtering-data.js +0 -160
  149. package/src/pages/admin.js +0 -61
  150. package/src/pages/dropdown.js +0 -249
  151. package/src/pages/form.js +0 -400
  152. package/src/pages/pagination.js +0 -124
  153. package/src/pages/table.js +0 -308
  154. package/themes.plugin.js +0 -148
@@ -1,41 +1,46 @@
1
1
  .ds-copy-to-clipboard {
2
2
  @apply flex w-fit;
3
+
4
+ &.ds-copy-to-clipboard--hidden {
5
+ @apply invisible w-0 h-0;
6
+ }
3
7
  }
4
8
  .ds-copy-to-clipboard__tooltip {
5
9
  @apply relative;
6
- .ds-copy-to-clipboard__message {
7
- @apply bg-success py-4 px-6 absolute mt-4 text-center z-50 w-fit md:w-max;
10
+ &.ds-copy-to-clipboard__tooltip--dense,
11
+ .ds-dense & {
8
12
  &::before {
9
- content: "";
10
- @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
11
- absolute -top-1;
12
- transform: rotate(45deg);
13
+ @apply w-2 h-2;
13
14
  }
14
- }
15
- &.ds-copy-to-clipboard__tooltip--dense, .ds-dense & {
16
15
  .ds-copy-to-clipboard__message {
17
16
  @apply py-2 px-4;
18
17
  }
19
- &::before {
20
- @apply w-2 h-2;
18
+ }
19
+ &.ds-copy-to-clipboard__tooltip--right {
20
+ .ds-copy-to-clipboard__message {
21
+ @apply right-0;
22
+ &::before {
23
+ @apply right-4;
24
+ content: '';
25
+ }
21
26
  }
22
27
  }
23
- }
24
- .ds-copy-to-clipboard__tooltip--right {
25
- .ds-copy-to-clipboard__message {
26
- @apply right-0;
27
- &::before {
28
- content: "";
29
- @apply right-4;
28
+ &.ds-copy-to-clipboard__tooltip--left {
29
+ .ds-copy-to-clipboard__message {
30
+ @apply left-0;
31
+ &::before {
32
+ @apply left-4;
33
+ content: '';
34
+ }
30
35
  }
31
36
  }
32
- }
33
- .ds-copy-to-clipboard__tooltip--left {
34
37
  .ds-copy-to-clipboard__message {
35
- @apply left-0;
38
+ @apply bg-success py-4 px-6 absolute mt-4 text-center z-40 w-fit md:w-max;
36
39
  &::before {
37
- content: "";
38
- @apply left-4;
40
+ @apply w-4 h-4 border-t-8 border-l-8 border-success transform rotate-45
41
+ absolute -top-1;
42
+ content: '';
43
+ transform: rotate(45deg);
39
44
  }
40
45
  }
41
46
  }
@@ -45,10 +50,6 @@
45
50
  }
46
51
  }
47
52
 
48
- .ds-copy-to-clipboard--hidden {
49
- @apply invisible w-0 h-0;
50
- }
51
-
52
53
  /* overrides */
53
54
 
54
55
  .ds-copy-to-clipboard__tooltip {
@@ -0,0 +1,26 @@
1
+ .ds-copy-to-clipboard {
2
+ @apply flex z-10;
3
+ }
4
+ .ds-copy-to-clipboard--hidden {
5
+ @apply hidden w-0 h-0;
6
+ }
7
+ .ds-copy-to-clipboard__before {
8
+ @apply w-4 h-4 border-t-8 border-l-8 border-success absolute bottom-1;
9
+ /* stylelint-disable-next-line plugin/no-react-native-incompatible-css */
10
+ transform: rotate(45deg);
11
+ left: 50%;
12
+ }
13
+ .ds-copy-to-clipboard__message {
14
+ @apply bg-success w-full mb-4
15
+ absolute -top-4;
16
+ }
17
+ .ds-copy-to-clipboard__message__text {
18
+ @apply p-2 flex-1 text-center text-white py-3 px-4;
19
+ }
20
+ .ds-copy-to-clipboard__tooltip {
21
+ }
22
+ .ds-copy-to-clipboard__banner {
23
+ }
24
+ .ds-copy-to-clipboard__message--dense {
25
+ @apply py-2 px-4;
26
+ }
@@ -0,0 +1,26 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-details {
5
+ @apply md:mb-8 mb-4;
6
+ }
7
+ .util-details-text {
8
+ @apply md:text-lg;
9
+ font-size: var(--details-font-size);
10
+ line-height: var(--details-line-height);
11
+ }
12
+ .util-details__summary {
13
+ @apply mb-0;
14
+ }
15
+ .util-details__summary-text {
16
+ @apply underline;
17
+ }
18
+ .util-details__summary--lg-text {
19
+ @apply font-semibold;
20
+ font-size: var(--details__summary--lg-font-size);
21
+ line-height: var(--details__summary--lg-line-height);
22
+ }
23
+ .util-details__content {
24
+ @apply border-l-2 border-base-500 py-2 px-4 mt-4;
25
+ }
26
+ }
@@ -1,31 +1,34 @@
1
+ @import './details.common.css';
2
+
1
3
  .ds-details {
2
- @apply md:text-lg;
3
- @apply md:mb-8 mb-4;
4
- font-size: var(--details-font-size);
5
- line-height: var(--details-line-height);
4
+ @apply util-details util-details-text;
6
5
  }
7
6
  .ds-details__summary {
8
- @apply mb-0 underline cursor-pointer w-fit;
7
+ @apply util-details__summary util-details__summary-text cursor-pointer w-fit;
9
8
  &:hover {
10
9
  text-decoration-thickness: 2px;
11
10
  }
12
11
  &:focus {
13
12
  background-color: var(--color-focus);
14
- box-shadow: 0 -2px var(--color-focus), 0 4px var(--color-base-content);
15
- text-decoration:none;
13
+ box-shadow:
14
+ 0 -2px var(--color-focus),
15
+ 0 4px var(--color-base-content);
16
+ text-decoration: none;
16
17
  }
17
18
  &:focus-within {
18
19
  @apply outline-none;
19
20
  }
20
- }
21
- .ds-details__summary--lg {
22
- @apply font-semibold;
23
- font-size: var(--details__summary--lg-font-size);
24
- line-height: var(--details__summary--lg-line-height);
21
+ &.ds-details__summary--lg {
22
+ @apply util-details__summary--lg-text;
23
+ }
25
24
  }
26
25
  .ds-details__content {
27
- @apply border-l-2 border-base-500 py-2 px-4 mt-4;
28
- >*:last-child {
26
+ @apply util-details__content;
27
+ &.ds-details__content--secondary {
28
+ @apply border-0 bg-base-200 py-4 mt-2;
29
+ border-radius:0 0 0.25rem 0.25rem;
30
+ }
31
+ > *:last-child {
29
32
  @apply mb-0;
30
33
  }
31
- }
34
+ }
@@ -0,0 +1,34 @@
1
+ @import './details.common.css';
2
+
3
+ .ds-details {
4
+ @apply util-details;
5
+ }
6
+ .ds-details__text {
7
+ @apply util-details-text;
8
+ line-height: calc(var(--details-line-height) * var(--details-font-size));
9
+ }
10
+ .ds-details__summary {
11
+ @apply util-details__summary;
12
+ }
13
+ .ds-details__summary--focus {
14
+ background-color: var(--color-focus);
15
+ box-shadow:
16
+ 0 -2px var(--color-focus),
17
+ 0 4px var(--color-base-content);
18
+ }
19
+ .ds-details__summary__text {
20
+ @apply util-details__summary-text;
21
+ }
22
+ .ds-details__summary--lg__text {
23
+ @apply util-details__summary--lg-text;
24
+ line-height: calc(
25
+ var(--details--lg-line-height) * var(--details--lg-font-size)
26
+ );
27
+ }
28
+ .ds-details__content {
29
+ @apply util-details__content;
30
+ }
31
+ .ds-details__content__text {
32
+ font-size: var(--details-font-size);
33
+ line-height: calc(var(--details-line-height) * var(--details-font-size));
34
+ }
@@ -1,10 +1,9 @@
1
1
  /* Experimental css file. */
2
2
 
3
3
  .dark {
4
- /*
4
+ /*
5
5
  Here we can experiment with dark theme.
6
6
  Storybook does not need restart when writing here.
7
7
  Final styling should then go to themes/ds-dark/overrides/index.css
8
8
  */
9
-
10
- }
9
+ }
@@ -1,38 +1,55 @@
1
+ .ds-drawer-container {
2
+ @apply justify-center items-center content-center
3
+ left-0 top-0 w-full h-full overflow-auto
4
+ flex fixed z-50 bg-opacity-50 bg-base-700;
5
+ &.ds-drawer-container--relative-sm {
6
+ @apply sm:bg-transparent sm:z-0 sm:relative sm:block;
7
+ }
8
+ &.ds-drawer-container--relative-md {
9
+ @apply md:bg-transparent md:z-0 md:relative md:block;
10
+ }
11
+ &.ds-drawer-container--relative-lg {
12
+ @apply lg:bg-transparent lg:z-0 lg:relative lg:block;
13
+ }
14
+ &.ds-drawer-container--closed {
15
+ @apply hidden;
16
+ }
17
+ }
1
18
  .ds-drawer {
2
19
  @apply border border-base-300 bg-base-100 p-4
3
20
  h-full max-h-screen min-h-screen overflow-y-scroll w-4/5 max-w-md flex flex-col
4
21
  fixed top-0 bottom-0 z-40;
5
22
  @apply shadow-thick !important;
6
- }
7
- .ds-drawer--relative-sm {
8
- @apply sm:relative sm:w-full max-h-full shadow-thick sm:shadow-none !important;
9
- }
10
- .ds-drawer--relative-md {
11
- @apply md:relative md:w-full max-h-full shadow-thick md:shadow-none !important;
12
- }
13
- .ds-drawer--relative-lg {
14
- @apply lg:relative lg:w-full max-h-full shadow-thick lg:shadow-none !important;
15
- }
16
- .ds-drawer--right {
17
- @apply right-0;
18
- }
19
- .ds-drawer--left {
20
- @apply left-0;
21
- }
22
- .ds-drawer--bg-secondary {
23
- @apply bg-base-200 border-0;
24
- @apply shadow-xl !important;
25
- }
26
- .ds-drawer--closed {
27
- @apply hidden;
28
23
  &.ds-drawer--relative-sm {
29
- @apply hidden sm:flex;
24
+ @apply sm:relative sm:w-full sm:min-h-fit shadow-thick sm:shadow-none !important;
30
25
  }
31
26
  &.ds-drawer--relative-md {
32
- @apply hidden md:flex;
27
+ @apply md:relative md:w-full md:min-h-fit shadow-thick md:shadow-none !important;
33
28
  }
34
29
  &.ds-drawer--relative-lg {
35
- @apply hidden lg:flex;
30
+ @apply lg:relative lg:w-full lg:min-h-fit shadow-thick lg:shadow-none !important;
31
+ }
32
+ &.ds-drawer--right {
33
+ @apply right-0;
34
+ }
35
+ &.ds-drawer--left {
36
+ @apply left-0;
37
+ }
38
+ &.ds-drawer--bg-secondary {
39
+ @apply bg-base-200 border-0;
40
+ @apply shadow-xl !important;
41
+ }
42
+ &.ds-drawer--closed {
43
+ @apply hidden;
44
+ &.ds-drawer--relative-sm {
45
+ @apply hidden sm:flex;
46
+ }
47
+ &.ds-drawer--relative-md {
48
+ @apply hidden md:flex;
49
+ }
50
+ &.ds-drawer--relative-lg {
51
+ @apply hidden lg:flex;
52
+ }
36
53
  }
37
54
  }
38
55
  .ds-drawer__heading {
@@ -45,6 +62,27 @@
45
62
  /* overrides */
46
63
 
47
64
  .ds-drawer {
65
+ &.ds-drawer--relative-sm {
66
+ .ds-drawer__heading {
67
+ > .ds-close-btn {
68
+ @apply sm:hidden;
69
+ }
70
+ }
71
+ }
72
+ &.ds-drawer--relative-md {
73
+ .ds-drawer__heading {
74
+ > .ds-close-btn {
75
+ @apply md:hidden;
76
+ }
77
+ }
78
+ }
79
+ &.ds-drawer--relative-lg {
80
+ .ds-drawer__heading {
81
+ > .ds-close-btn {
82
+ @apply lg:hidden;
83
+ }
84
+ }
85
+ }
48
86
  > .ds-container {
49
87
  @apply p-0;
50
88
  }
@@ -58,25 +96,3 @@
58
96
  @apply m-0;
59
97
  }
60
98
  }
61
- .ds-drawer--relative-sm {
62
- .ds-drawer__heading {
63
- >.ds-close-btn {
64
- @apply sm:hidden;
65
- }
66
- }
67
- }
68
- .ds-drawer--relative-md {
69
- .ds-drawer__heading {
70
- >.ds-close-btn {
71
- @apply md:hidden;
72
- }
73
- }
74
- }
75
- .ds-drawer--relative-lg {
76
- .ds-drawer__heading {
77
- >.ds-close-btn {
78
- @apply lg:hidden;
79
- }
80
- }
81
- }
82
-
@@ -0,0 +1,23 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-dropdown {
5
+ @apply relative;
6
+ }
7
+ .util-dropdown--right {
8
+ @apply right-0 mr-0 ml-4;
9
+ }
10
+ .util-dropdown__content {
11
+ @apply border-base-400 bg-base-100
12
+ max-w-xs min-w-full absolute transition z-3 mr-4 -mt-4;
13
+ box-shadow:
14
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
15
+ 0 -2px 0 var(--color-base-500);
16
+ }
17
+ .util-dropdown__content--full-width {
18
+ @apply min-w-full;
19
+ }
20
+ .util-dropdown__content--scrollable {
21
+ @apply max-h-64 md:max-h-96;
22
+ }
23
+ }
@@ -1,5 +1,7 @@
1
+ @import './dropdown.common.css';
2
+
1
3
  .ds-dropdown {
2
- @apply w-fit relative;
4
+ @apply util-dropdown w-fit;
3
5
  &.ds-dropdown--up {
4
6
  .ds-dropdown__content {
5
7
  @apply mb-4 border border-b-0 bottom-full;
@@ -13,7 +15,7 @@
13
15
  }
14
16
  &.ds-dropdown--right {
15
17
  .ds-dropdown__content {
16
- @apply right-0 mr-0 ml-4;
18
+ @apply util-dropdown--right;
17
19
  }
18
20
  }
19
21
  &.ds-dropdown--disabled {
@@ -30,33 +32,35 @@
30
32
  @apply p-2;
31
33
  }
32
34
  }
33
- .ds-dropdown__button {
34
- @apply w-fit print:text-base-content;
35
- &::marker {
36
- font-size: 0px;
37
- }
35
+ }
36
+ .ds-dropdown__button {
37
+ @apply w-fit print:text-base-content;
38
+ &::marker {
39
+ font-size: 0;
38
40
  }
39
- .ds-dropdown__button.ds-link + .ds-dropdown__content {
40
- @apply mt-4 print:text-base-content;
41
+ &::-webkit-details-marker {
42
+ display: none;
41
43
  }
42
- .ds-btn-group .ds-btn + .ds-dropdown__content {
43
- @apply mt-4;
44
+ }
45
+ .ds-dropdown__button.ds-link + .ds-dropdown__content {
46
+ @apply mt-4 print:text-base-content;
47
+ }
48
+ .ds-btn-group .ds-btn + .ds-dropdown__content {
49
+ @apply mt-4;
50
+ }
51
+ .ds-dropdown__content {
52
+ @apply util-dropdown__content border p-4 border-t-0 w-max;
53
+ -webkit-box-box-shadow:
54
+ 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
55
+ 0 -2px 0 var(--color-base-500);
56
+ &.ds-dropdown__content--full-width {
57
+ @apply util-dropdown__content--full-width;
44
58
  }
45
- .ds-dropdown__content {
46
- @apply border border-base-400 p-4 bg-base-100 border-t-0
47
- max-w-xs w-max min-w-full absolute transition z-3 mr-4 -mt-4;
48
- -webkit-box-box-shadow:
49
- 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
50
- 0 -2px 0 var(--color-base-500);
51
- box-shadow:
52
- 0 2px 8px rgba(var(--color-base-900-rgb), 0.3),
53
- 0 -2px 0 var(--color-base-500);
54
- *:last-child {
55
- @apply mb-0;
56
- }
59
+ &.ds-dropdown__content--scrollable {
60
+ @apply overflow-y-auto util-dropdown__content--scrollable;
57
61
  }
58
- .ds-dropdown__content--full-width {
59
- @apply min-w-full;
62
+ *:last-child {
63
+ @apply mb-0;
60
64
  }
61
65
  }
62
66
 
@@ -64,11 +68,6 @@
64
68
 
65
69
  .ds-dropdown {
66
70
  &[open] {
67
- .ds-dropdown__button--chevron {
68
- .ds-svg-icon--chevron {
69
- @apply transform -rotate-180;
70
- }
71
- }
72
71
  .ds-dropdown__button {
73
72
  &.ds-btn-primary {
74
73
  background-color: var(--btn-primary-background-color-hover);
@@ -82,21 +81,36 @@
82
81
  background-color: var(--btn-warning-background-color-hover);
83
82
  color: var(--btn-warning-color-hover);
84
83
  }
84
+ &.ds-dropdown__button--chevron {
85
+ .ds-svg-icon--chevron {
86
+ @apply transform -rotate-180;
87
+ }
88
+ }
85
89
  }
86
90
  }
87
- .ds-dropdown__button--chevron {
88
- .ds-svg-icon--chevron {
89
- @apply transition duration-300;
91
+ &.ds-dropdown--dense,
92
+ .ds-dense & {
93
+ .ds-dropdown__content {
94
+ .ds-section-break {
95
+ @apply -mx-2 w-auto;
96
+ }
97
+ > .ds-nav__list {
98
+ @apply w-auto -mx-2 flex-col;
99
+ }
90
100
  }
91
101
  }
92
102
  .ds-dropdown__button {
93
- .ds-svg-icon {
94
- @apply w-5 h-6 md:h-8;
95
- @apply print:hidden;
96
- }
97
103
  &.ds-link {
98
104
  @apply inline-flex gap-1 items-center;
99
105
  }
106
+ &.ds-dropdown__button--chevron {
107
+ .ds-svg-icon--chevron {
108
+ @apply transition duration-300;
109
+ }
110
+ }
111
+ .ds-svg-icon {
112
+ @apply w-5 h-6 md:h-8 min-w-4 print:hidden;
113
+ }
100
114
  }
101
115
  .ds-dropdown__content {
102
116
  .ds-field {
@@ -107,6 +121,12 @@
107
121
  }
108
122
  > .ds-nav__list {
109
123
  @apply w-auto -mx-4 flex-col;
124
+ &:nth-child(1) {
125
+ @apply -mt-4;
126
+ }
127
+ &:last-child {
128
+ @apply -mb-4 !important;
129
+ }
110
130
  .ds-nav__list-item {
111
131
  @apply border-b border-base-300 py-2 px-4;
112
132
  &:last-child {
@@ -118,15 +138,4 @@
118
138
  }
119
139
  }
120
140
  }
121
- &.ds-dropdown--dense,
122
- .ds-dense & {
123
- .ds-dropdown__content {
124
- .ds-section-break {
125
- @apply -mx-2 w-auto;
126
- }
127
- > .ds-nav__list {
128
- @apply w-auto -mx-2 flex-col;
129
- }
130
- }
131
- }
132
141
  }
@@ -0,0 +1,27 @@
1
+ @import './dropdown.common.css';
2
+
3
+ .ds-dropdown {
4
+ @apply util-dropdown;
5
+ z-index: 2;
6
+ }
7
+ .ds-dropdown--right {
8
+ @apply util-dropdown--right;
9
+ }
10
+
11
+ .ds-dropdown__button {
12
+ @apply gap-1 items-center p-2;
13
+ flex-flow: row wrap;
14
+ }
15
+ .ds-dropdown__button__text {
16
+ color: var(--color-base-100);
17
+ }
18
+
19
+ .ds-dropdown__content {
20
+ @apply util-dropdown__content p-2 border-2;
21
+ }
22
+ .ds-dropdown__content--full-width {
23
+ @apply util-dropdown__content--full-width;
24
+ }
25
+ .ds-dropdown__content--scrollable {
26
+ @apply util-dropdown__content--scrollable;
27
+ }
@@ -1,7 +1,7 @@
1
1
  .ds-floating-btn {
2
2
  @apply absolute bottom-4;
3
3
  @apply p-4 rounded-full border-0 !important;
4
- box-shadow: 0px 2px 8px rgba(var(--color-base-900-rgb), 0.3);
4
+ box-shadow: 0 2px 8px rgba(var(--color-base-900-rgb), 0.3);
5
5
  &.ds-floating-btn--right {
6
6
  @apply right-4;
7
7
  }
@@ -18,14 +18,14 @@
18
18
  &:hover {
19
19
  @apply border-base-content;
20
20
  }
21
- }
22
- .ds-option-btn--selected {
23
- @apply border-success border-4 text-success p-4 !important;
24
- .ds-option-btn__steps {
25
- @apply opacity-100;
26
- }
27
- .ds-svg-icon {
28
- fill: var(--color-success) !important;
21
+ &.ds-option-btn--selected {
22
+ @apply border-success border-4 text-success p-4 !important;
23
+ .ds-option-btn__steps {
24
+ @apply opacity-100;
25
+ }
26
+ .ds-svg-icon {
27
+ fill: var(--color-success) !important;
28
+ }
29
29
  }
30
30
  }
31
31
  .ds-option-btn__steps {
@@ -33,7 +33,7 @@
33
33
  }
34
34
  .ds-option-btn__step {
35
35
  @apply bg-base-300 w-full;
36
+ &.ds-option-btn__step--active {
37
+ @apply bg-success;
38
+ }
36
39
  }
37
- .ds-option-btn__step--active {
38
- @apply bg-success;
39
- }
@@ -3,8 +3,8 @@
3
3
  text-base-content md:text-lg leading-relaxed text-base;
4
4
  }
5
5
  .ds-labeled-text {
6
- @apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
6
+ @apply bg-base-300 w-fit inline-block px-3 mx-1 mt-px font-bold border-0 border-b-2 border-base-800;
7
+ &.ds-labeled-text--active {
8
+ @apply bg-focus;
9
+ }
7
10
  }
8
- .ds-labeled-text--active {
9
- @apply bg-focus;
10
- }