@digigov/css 2.0.0-rc.2 → 2.0.0-rc.21

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 (143) 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 +14 -10
  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/postcss.config.js +11 -10
  13. package/src/base/tailwind.config.js +4 -11
  14. package/src/components/accordion.css +61 -54
  15. package/src/components/admin-header.css +2 -19
  16. package/src/components/admin-layout.css +13 -22
  17. package/src/components/autocomplete.css +89 -46
  18. package/src/components/back-to-top.css +3 -4
  19. package/src/components/blockquote.common.css +14 -0
  20. package/src/components/blockquote.css +9 -0
  21. package/src/components/blockquote.native.css +11 -0
  22. package/src/components/bottom-info.css +2 -1
  23. package/src/components/breadcrumbs.css +17 -8
  24. package/src/components/button.common.css +62 -0
  25. package/src/components/button.css +57 -71
  26. package/src/components/button.native.css +56 -0
  27. package/src/components/card.common.css +33 -0
  28. package/src/components/card.css +65 -52
  29. package/src/components/card.native.css +29 -0
  30. package/src/components/checkboxes.common.css +16 -0
  31. package/src/components/checkboxes.css +26 -31
  32. package/src/components/checkboxes.native.css +28 -0
  33. package/src/components/chip.css +28 -29
  34. package/src/components/code.css +127 -0
  35. package/src/components/components.css +2 -2
  36. package/src/components/copy-to-clipboard.css +27 -26
  37. package/src/components/copy-to-clipboard.native.css +28 -0
  38. package/src/components/details.common.css +26 -0
  39. package/src/components/details.css +14 -15
  40. package/src/components/details.native.css +26 -0
  41. package/src/components/dev-theme.css +2 -3
  42. package/src/components/drawer.css +47 -48
  43. package/src/components/dropdown.common.css +23 -0
  44. package/src/components/dropdown.css +57 -48
  45. package/src/components/dropdown.native.css +28 -0
  46. package/src/components/experimental.css +12 -12
  47. package/src/components/fillable.css +5 -5
  48. package/src/components/filter.css +15 -20
  49. package/src/components/footer.css +35 -21
  50. package/src/components/form.common.css +82 -0
  51. package/src/components/form.css +87 -49
  52. package/src/components/form.native.css +133 -0
  53. package/src/components/full-page-background.css +1 -1
  54. package/src/components/header.common.css +36 -0
  55. package/src/components/header.css +44 -43
  56. package/src/components/header.native.css +34 -0
  57. package/src/components/hidden.css +17 -17
  58. package/src/components/index.css +49 -47
  59. package/src/components/kitchensink.css +33 -33
  60. package/src/components/layout.common.css +36 -0
  61. package/src/components/layout.css +41 -42
  62. package/src/components/layout.native.css +39 -0
  63. package/src/components/loader.css +28 -28
  64. package/src/components/masthead.css +56 -55
  65. package/src/components/misc.css +37 -15
  66. package/src/components/modal.common.css +17 -0
  67. package/src/components/modal.css +31 -20
  68. package/src/components/modal.native.css +18 -0
  69. package/src/components/nav.common.css +22 -0
  70. package/src/components/nav.css +72 -67
  71. package/src/components/nav.native.css +41 -0
  72. package/src/components/notification-banner.common.css +46 -0
  73. package/src/components/notification-banner.css +23 -19
  74. package/src/components/notification-banner.native.css +42 -0
  75. package/src/components/pagination.css +30 -31
  76. package/src/components/panel.common.css +30 -0
  77. package/src/components/panel.css +10 -18
  78. package/src/components/panel.native.css +20 -0
  79. package/src/components/phase-banner.common.css +23 -0
  80. package/src/components/phase-banner.css +11 -10
  81. package/src/components/phase-banner.native.css +31 -0
  82. package/src/components/postcss.config.js +7 -6
  83. package/src/components/radios.common.css +16 -0
  84. package/src/components/radios.css +27 -30
  85. package/src/components/radios.native.css +24 -0
  86. package/src/components/skeleton.css +85 -0
  87. package/src/components/skiplink.css +2 -2
  88. package/src/components/stack.css +63 -63
  89. package/src/components/stepnav.css +35 -32
  90. package/src/components/summary-list.common.css +92 -0
  91. package/src/components/summary-list.css +101 -27
  92. package/src/components/summary-list.native.css +93 -0
  93. package/src/components/svg-icons.common.css +56 -0
  94. package/src/components/svg-icons.css +78 -80
  95. package/src/components/svg-icons.native.css +55 -0
  96. package/src/components/table.css +163 -182
  97. package/src/components/tabs.css +52 -67
  98. package/src/components/task-list.css +28 -23
  99. package/src/components/test.css +7 -0
  100. package/src/components/timeline.css +20 -18
  101. package/src/components/typography.common.css +135 -0
  102. package/src/components/typography.css +98 -189
  103. package/src/components/typography.native.css +97 -0
  104. package/src/components/warning-text.common.css +23 -0
  105. package/src/components/warning-text.css +11 -8
  106. package/src/components/warning-text.native.css +22 -0
  107. package/src/index.native.css +21 -0
  108. package/src/pages/index.js +1 -1
  109. package/src/utilities/gap.css +141 -0
  110. package/src/utilities/index.css +6 -1655
  111. package/src/utilities/index.native.css +6 -0
  112. package/src/utilities/layout.css +231 -0
  113. package/src/utilities/layout.native.css +278 -0
  114. package/src/utilities/margin.css +4299 -0
  115. package/src/utilities/padding.css +4299 -0
  116. package/src/utilities/postcss.config.js +7 -6
  117. package/src/utilities/print.css +11 -0
  118. package/src/utilities/utilities.css +3 -1660
  119. package/tailwind.config.js +101 -104
  120. package/theming.js +121 -0
  121. package/defaultTheme/accordion.json +0 -8
  122. package/defaultTheme/back-to-top.json +0 -27
  123. package/defaultTheme/brandConfig.json +0 -135
  124. package/defaultTheme/breadcrumbs.json +0 -8
  125. package/defaultTheme/button.json +0 -81
  126. package/defaultTheme/card.json +0 -12
  127. package/defaultTheme/footer.json +0 -8
  128. package/defaultTheme/form.json +0 -15
  129. package/defaultTheme/globals.json +0 -71
  130. package/defaultTheme/index.js +0 -27
  131. package/defaultTheme/misc.json +0 -48
  132. package/defaultTheme/panel.json +0 -43
  133. package/defaultTheme/phase-banner.json +0 -8
  134. package/defaultTheme/radios.json +0 -8
  135. package/defaultTheme/summary-list.json +0 -8
  136. package/defaultTheme/typography.json +0 -295
  137. package/src/pages/admin-filtering-data.js +0 -160
  138. package/src/pages/admin.js +0 -61
  139. package/src/pages/dropdown.js +0 -249
  140. package/src/pages/form.js +0 -400
  141. package/src/pages/pagination.js +0 -124
  142. package/src/pages/table.js +0 -308
  143. package/themes.plugin.js +0 -148
@@ -1,6 +1,10 @@
1
+ @import './notification-banner.common.css';
2
+
1
3
  .ds-notification-banner {
2
- @apply border-5 mb-6 md:mb-8 font-normal print:bg-white;
3
- &.ds-notification-banner--dense, .ds-dense & {
4
+ @apply util-notification-banner util-notification-banner-text ;
5
+ border-radius: var(--notification-banner-border-radius);
6
+ &.ds-notification-banner--dense,
7
+ .ds-dense & {
4
8
  @apply border-4 mb-4 md:mb-5;
5
9
  .ds-notification-banner__title {
6
10
  @apply px-2 sm:px-3 pb-1;
@@ -9,35 +13,35 @@
9
13
  @apply p-3 md:p-4;
10
14
  }
11
15
  }
12
- }
13
- .ds-notification-banner--info {
14
- @apply bg-info border-info;
15
- }
16
- .ds-notification-banner--success {
17
- @apply bg-success border-success;
18
- .ds-notification-banner__link {
19
- &:link:not(:focus) {
20
- @apply text-success;
16
+ &.ds-notification-banner--info {
17
+ @apply util-notification-banner--info;
18
+ }
19
+ &.ds-notification-banner--success {
20
+ @apply util-notification-banner--success;
21
+ .ds-notification-banner__link {
22
+ &:link:not(:focus) {
23
+ @apply text-success;
24
+ }
21
25
  }
22
26
  }
23
- }
24
- .ds-notification-banner--error {
25
- @apply bg-error border-error;
26
- .ds-notification-banner__link {
27
- &:link:not(:focus) {
28
- @apply text-error;
27
+ &.ds-notification-banner--error {
28
+ @apply util-notification-banner--error;
29
+ .ds-notification-banner__link {
30
+ &:link:not(:focus) {
31
+ @apply text-error;
32
+ }
29
33
  }
30
34
  }
31
35
  }
32
36
  .ds-notification-banner__header {
33
37
  @apply text-white p-0 m-0 text-base md:text-lg
34
- print:border-b print:border-base-400 print:text-base-content print:pt-2;
38
+ util-notification-banner__header;
35
39
  }
36
40
  .ds-notification-banner__title {
37
41
  @apply border-b border-transparent pt-1 px-4 sm:px-5 pb-2 font-bold;
38
42
  }
39
43
  .ds-notification-banner__content {
40
- @apply bg-base-100 text-base-content p-4 md:p-5;
44
+ @apply util-notification-banner__content util-notification-banner__content-text;
41
45
  & > * {
42
46
  @apply box-border max-w-xl;
43
47
  }
@@ -0,0 +1,42 @@
1
+ /* stylelint-disable declaration-block-no-redundant-longhand-properties */
2
+ /* stylelint-disable digigov/nest-related-rules */
3
+ @import './notification-banner.common.css';
4
+
5
+ .ds-notification-banner {
6
+ @apply util-notification-banner;
7
+ }
8
+ .ds-notification-banner__text {
9
+ @apply util-notification-banner-text;
10
+ }
11
+ .ds-notification-banner--info {
12
+ @apply util-notification-banner--info;
13
+ }
14
+ .ds-notification-banner--error {
15
+ @apply util-notification-banner--error;
16
+ }
17
+ .ds-notification-banner--success {
18
+ @apply util-notification-banner--success;
19
+ }
20
+
21
+ .ds-notification-banner__header {
22
+ @apply util-notification-banner__header;
23
+ }
24
+ .ds-notification-banner__title__text {
25
+ @apply util-notification-banner__title-text px-2 font-bold;
26
+ @apply mb-0 !important;
27
+ }
28
+ .ds-notification-banner__content {
29
+ @apply util-notification-banner__content;
30
+ }
31
+ .ds-notification-banner__content__text {
32
+ @apply util-notification-banner__content-text;
33
+ }
34
+ .ds-notification-banner__link__text {
35
+ @apply util-notification-banner_link-text;
36
+ }
37
+ .ds-notification-banner__link--success__text {
38
+ @apply util-notification-banner_link--success-text;
39
+ }
40
+ .ds-notification-banner__link--error__text {
41
+ @apply util-notification-banner_link--error-text;
42
+ }
@@ -1,5 +1,11 @@
1
1
  .ds-pagination {
2
- @apply flex flex-wrap items-center justify-items-center justify-between;
2
+ @apply flex flex-wrap items-center justify-items-center justify-between mb-4 md:mb-8;
3
+ &.ds-pagination--sm {
4
+ .ds-pagination__label,
5
+ .ds-pagination__item--current {
6
+ @apply md:text-base text-sm;
7
+ }
8
+ }
3
9
  .ds-pagination__label {
4
10
  @apply md:text-lg text-base;
5
11
  }
@@ -7,12 +13,6 @@
7
13
  @apply md:text-lg text-base;
8
14
  }
9
15
  }
10
- .ds-pagination--sm {
11
- .ds-pagination__label,
12
- .ds-pagination__item--current {
13
- @apply md:text-base text-sm;
14
- }
15
- }
16
16
  .ds-pagination__label {
17
17
  @apply text-base-content md:leading-normal;
18
18
  }
@@ -27,49 +27,48 @@
27
27
  &:last-child {
28
28
  @apply pr-0;
29
29
  }
30
- }
31
- .ds-pagination__item--current,
32
- .ds-pagination__item--dots {
33
- @apply font-bold;
30
+ &.ds-pagination__item--current,
31
+ &.ds-pagination__item--dots {
32
+ @apply font-bold;
33
+ }
34
34
  }
35
35
 
36
36
  /* overrides */
37
37
 
38
38
  .ds-pagination {
39
+ &.ds-pagination--sm {
40
+ .ds-label,
41
+ .ds-select {
42
+ @apply md:text-base text-sm;
43
+ }
44
+ .ds-pagination__list {
45
+ .ds-link {
46
+ @apply md:text-base text-sm !important;
47
+ }
48
+ }
49
+ }
39
50
  .ds-label {
40
51
  @apply text-base-content md:leading-normal flex-row items-center gap-2 md:text-lg text-base;
41
52
  }
42
53
  .ds-select {
43
- text-indent: 0px;
44
54
  @apply flex text-base-content md:leading-normal border md:text-lg text-base;
55
+ text-indent: 0;
45
56
  &:focus {
46
- -webkit-box-shadow: inset 0 0 0 1px;
47
57
  box-shadow: inset 0 0 0 1px;
48
58
  }
49
59
  }
50
60
  }
51
- .ds-pagination--sm {
52
- .ds-label,
53
- .ds-select {
54
- @apply md:text-base text-sm;
55
- }
56
- .ds-pagination__list {
61
+ .ds-pagination__item {
62
+ &.ds-pagination__item--inactive {
57
63
  .ds-link {
58
- @apply md:text-base text-sm !important;
64
+ @apply text-base-800;
65
+ pointer-events: none;
66
+ .ds-svg-icon {
67
+ fill: var(--color-base-800);
68
+ }
59
69
  }
60
70
  }
61
- }
62
- .ds-pagination__item {
63
71
  .ds-link {
64
72
  @apply flex items-center no-underline;
65
73
  }
66
74
  }
67
- .ds-pagination__item--inactive {
68
- .ds-link {
69
- pointer-events: none;
70
- @apply text-base-800;
71
- .ds-svg-icon {
72
- fill: var(--color-base-800);
73
- }
74
- }
75
- }
@@ -0,0 +1,30 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-panel {
5
+ @apply mb-4 md:mb-8 p-8 border-5 border-transparent
6
+ print:p-4 print:border-4 print:text-base-content print:bg-white;
7
+ border-radius: var(--panel-border-radius);
8
+ }
9
+ .util-panel-text {
10
+ @apply text-white text-center;
11
+ }
12
+ .util-panel--success {
13
+ @apply bg-success print:border-success;
14
+ }
15
+ .util-panel__title {
16
+ @apply mx-auto mt-0;
17
+ margin-bottom: var(--panel__title-margin-bottom);
18
+ }
19
+ .util-panel__title-text {
20
+ font-size: var(--panel__title-font-size);
21
+ line-height: var(--panel__title-line-height);
22
+ font-weight: var(--panel__title-font-weight);
23
+ letter-spacing: var(--panel__title-letter-spacing);
24
+ }
25
+ .util-panel__body-text {
26
+ font-size: var(--panel__body-font-size);
27
+ line-height: var(--panel__body-line-height);
28
+ letter-spacing: var(--panel__body-letter-spacing);
29
+ }
30
+ }
@@ -1,23 +1,15 @@
1
+ @import './panel.common.css';
2
+
1
3
  .ds-panel {
2
- @apply box-border mb-4 p-8 border-5 border-transparent text-center
3
- print:p-4 text-white
4
- print:border-4 print:text-base-content print:bg-white;
5
- }
6
- .ds-panel--success {
7
- @apply bg-success print:border-success;
4
+ @apply box-border util-panel util-panel-text;
5
+ &.ds-panel--success {
6
+ @apply util-panel--success;
7
+ }
8
8
  }
9
9
  .ds-panel__title {
10
- @apply mx-auto mt-0;
11
- font-size: var(--panel__title-font-size);
12
- line-height:var(--panel__title-line-height);
13
- margin-bottom:var(--panel__title-margin-bottom);
14
- font-weight: var(--panel__title-font-weight);
15
- letter-spacing: var(--panel__title-letter-spacing);
10
+ @apply util-panel__title util-panel__title-text;
16
11
  }
17
12
  .ds-panel__body {
18
- @apply break-words;
19
- font-size: var(--panel__body-font-size);
20
- line-height:var(--panel__body-line-height);
21
- margin:var(--panel__body-margin);
22
- letter-spacing: var(--panel__body-letter-spacing);
23
- }
13
+ @apply break-words util-panel__body-text;
14
+ margin: var(--panel__body-margin);
15
+ }
@@ -0,0 +1,20 @@
1
+ @import './panel.common.css';
2
+
3
+ .ds-panel {
4
+ @apply util-panel;
5
+ }
6
+ .ds-panel__text {
7
+ @apply util-panel-text;
8
+ }
9
+ .ds-panel--success {
10
+ @apply util-panel--success;
11
+ }
12
+ .ds-panel__title {
13
+ @apply util-panel__title;
14
+ }
15
+ .ds-panel__title__text {
16
+ @apply util-panel-text util-panel__title-text ;
17
+ }
18
+ .ds-panel__body__text {
19
+ @apply util-panel-text util-panel__body-text;
20
+ }
@@ -0,0 +1,23 @@
1
+ /* stylelint-disable digigov/nest-related-rules */
2
+ /* stylelint-disable digigov/enforce-class-selector-namespace */
3
+
4
+ @tailwind utilities;
5
+
6
+ @layer utilities {
7
+ .util-phase-banner {
8
+ @apply py-2 mb-4 md:mb-8;
9
+ }
10
+ .util-phase-banner--underline {
11
+ @apply border-b border-base-500;
12
+ }
13
+ .util-phase-banner__text {
14
+ @apply text-base-content;
15
+ }
16
+ .util-phase-banner__tag {
17
+ @apply bg-info px-2 py-1
18
+ print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
19
+ }
20
+ .util-phase-banner__tag-text {
21
+ @apply text-white font-bold uppercase text-sm;
22
+ }
23
+ }
@@ -1,4 +1,6 @@
1
- .ds-phase-banner__header {
1
+ @import './phase-banner.common.css';
2
+
3
+ .ds-phase-banner-header {
2
4
  @apply bg-focus top-0 z-30
3
5
  print:bg-white print:border-focus print:border-2 print:px-4;
4
6
  .ds-phase-banner {
@@ -6,19 +8,18 @@
6
8
  }
7
9
  }
8
10
  .ds-phase-banner {
9
- @apply py-2 mb-4;
10
- }
11
- .ds-phase-banner--underline {
12
- @apply border-base-500 border-b;
11
+ @apply util-phase-banner;
12
+ &.ds-phase-banner--underline {
13
+ @apply util-phase-banner--underline;
14
+ }
13
15
  }
14
16
  .ds-phase-banner__content {
15
- font-size: var(--phase-banner__content-font-size);
16
17
  @apply table;
18
+ font-size: var(--phase-banner__content-font-size);
17
19
  }
18
20
  .ds-phase-banner__tag {
19
- @apply px-2 py-1 mr-2 inline-block bg-info font-sans text-white text-sm uppercase tracking-widest
20
- print:bg-white print:border-2 print:border-info print:text-info print:mr-4;
21
+ @apply util-phase-banner__tag util-phase-banner__tag-text mr-2 inline-block font-sans tracking-widest;
21
22
  }
22
- .ds-phase-banner__text {
23
- @apply table-cell text-base-content;
23
+ .ds-phase-banner__message {
24
+ @apply table-cell util-phase-banner__text;
24
25
  }
@@ -0,0 +1,31 @@
1
+ /* stylelint-disable comment-empty-line-before */
2
+ /* stylelint-disable digigov/nest-related-rules */
3
+ @import './phase-banner.common.css';
4
+
5
+ .ds-phase-banner {
6
+ @apply util-phase-banner flex flex-row flex-nowrap m-0;
7
+ }
8
+
9
+ .ds-phase-banner--underline {
10
+ @apply util-phase-banner--underline;
11
+ }
12
+ .ds-phase-banner__content {
13
+ @apply flex-1 flex flex-row flex-nowrap items-center;
14
+ }
15
+ .ds-phase-banner__content__text {
16
+ @apply flex-1;
17
+ }
18
+ .ds-phase-banner__tag {
19
+ @apply util-phase-banner__tag mr-2;
20
+ }
21
+ .ds-phase-banner__tag__text {
22
+ @apply util-phase-banner__tag-text;
23
+ }
24
+ .ds-phase-banner__message {
25
+ @apply mr-2;
26
+ }
27
+ .ds-phase-banner__message__text {
28
+ @apply util-phase-banner__text;
29
+ font-size: var(--phase-banner__content-font-size);
30
+ }
31
+
@@ -1,13 +1,14 @@
1
1
  /** @type {import('postcss-load-config').Config} */
2
2
  const config = {
3
3
  plugins: [
4
- require("postcss-import"),
5
- require("tailwindcss/nesting"),
6
- require("tailwindcss")("./src/components/tailwind.config.js"),
7
- require("autoprefixer"),
8
- require("cssnano")({
4
+ require('postcss-import'),
5
+ require('tailwindcss/nesting'),
6
+ require('tailwindcss')('./src/components/tailwind.config.js'),
7
+ require('autoprefixer'),
8
+ require('postcss-sort-media-queries'),
9
+ require('cssnano')({
9
10
  preset: [
10
- "default",
11
+ 'default',
11
12
  {
12
13
  mergeRules: false,
13
14
  },
@@ -0,0 +1,16 @@
1
+ @tailwind utilities;
2
+
3
+ @layer utilities {
4
+ .util-radios__item {
5
+ @apply relative mb-4 min-h-10;
6
+ }
7
+ .util-radios__label {
8
+ font-size: var(--radios__label-font-size);
9
+ }
10
+ .util-radios__input {
11
+ @apply absolute z-1 left-0.5 -top-1 m-0 w-10 h-10 opacity-100 bg-base-100 rounded-full;
12
+ width: 40px;
13
+ height: 40px;
14
+ border: 2px solid currentcolor;
15
+ }
16
+ }
@@ -1,5 +1,8 @@
1
+ @import './radios.common.css';
2
+
1
3
  .ds-radios {
2
- &.ds-radios--dense, ds-dense & {
4
+ &.ds-radios--dense,
5
+ ds-dense & {
3
6
  .ds-radios__item {
4
7
  @apply mb-2 pl-9 min-h-8;
5
8
  }
@@ -10,35 +13,28 @@
10
13
  }
11
14
  }
12
15
  }
16
+ &.ds-radios--horizontal {
17
+ @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
18
+ }
13
19
  }
14
20
  .ds-radios__item {
15
- @apply block relative mb-4 pl-12;
16
- min-height: 40px;
17
- }
18
- .ds-radios--horizontal {
19
- @apply inline-flex flex-wrap items-baseline gap-4 md:gap-6;
20
- }
21
- .ds-radios__item {
22
- @apply block relative mb-4 pl-12;
23
- min-height: 40px;
21
+ @apply util-radios__item pl-12 block;
24
22
  }
25
23
  .ds-radios__label {
26
- font-size: var(--radios__label-font-size);
27
- @apply inline-block py-1 px-2 cursor-pointer;
24
+ @apply util-radios__label inline-block py-1 px-2 cursor-pointer;
28
25
  }
29
26
  .ds-radios__input {
30
- @apply absolute z-1 left-0.5 -top-1 m-0
31
- w-10 h-10 opacity-100 cursor-pointer
32
- bg-base-100;
27
+ @apply util-radios__input cursor-pointer;
33
28
  appearance: none;
34
- width: 40px;
35
- height: 40px;
36
- border: 2px solid currentColor;
37
- border-radius: 50%;
38
29
  &:checked {
39
- box-shadow: inset 0 0 0px 6px var(--color-base-100), inset 0 0 0 20px var(--color-base-content);
30
+ box-shadow:
31
+ inset 0 0 0 6px var(--color-base-100),
32
+ inset 0 0 0 20px var(--color-base-content);
40
33
  &:focus {
41
- box-shadow: 0 0 0 4px var(--color-focus), inset 0 0 0px 4px var(--color-base-100), inset 0 0 0 20px var(--color-base-content);
34
+ box-shadow:
35
+ 0 0 0 4px var(--color-focus),
36
+ inset 0 0 0 4px var(--color-base-100),
37
+ inset 0 0 0 20px var(--color-base-content);
42
38
  }
43
39
  }
44
40
  &:focus {
@@ -49,20 +45,21 @@
49
45
  }
50
46
  }
51
47
  .ds-radios__conditional {
52
- @apply border-l-4 border-base-500 ml-4 pl-6;
48
+ @apply border-l-4 border-base-500 ml-4 pl-6;
53
49
  }
54
50
 
55
51
  /* overrides */
56
-
57
- .ds-radios--horizontal {
58
- .ds-choice-divider-text {
59
- @apply min-w-max mx-2;
60
- }
61
- }
62
52
  .ds-radios {
63
- &.ds-radios--dense, .ds-dense & {
53
+ &.ds-radios--dense,
54
+ .ds-dense & {
64
55
  .ds-field {
65
56
  @apply mb-4 md:mb-6;
66
57
  }
67
58
  }
68
- }
59
+
60
+ &.ds-radios--horizontal {
61
+ .ds-choice-divider-text {
62
+ @apply min-w-max mx-2;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,24 @@
1
+ @import './radios.common.css';
2
+
3
+ .ds-radios__item {
4
+ @apply util-radios__item;
5
+ }
6
+ .ds-radios__label {
7
+ @apply pl-14;
8
+
9
+ }
10
+ .ds-radios__input {
11
+ @apply util-radios__input justify-center items-center;
12
+ }
13
+
14
+ .ds-radios__input--checked {
15
+ @apply rounded-full bg-black;
16
+ height: 26;
17
+ width: 26;
18
+ }
19
+
20
+ .ds-radios__label__text {
21
+ font-size: var(--label-font-size);
22
+ line-height: 2rem;
23
+ letter-spacing: 0rem;
24
+ }
@@ -0,0 +1,85 @@
1
+ .ds-skeleton {
2
+ @apply block bg-base-300 h-auto w-full max-w-full rounded-sm;
3
+
4
+ /* max-width: 105ch; */
5
+ &.ds-skeleton--text {
6
+ /* @apply text-lg; */
7
+ &::before {
8
+ content: '\00a0';
9
+ visibility: hidden;
10
+ }
11
+ &.ds-skeleton--font-xs {
12
+ @apply text-sm md:text-base mb-2 md:mb-4;
13
+ line-height: 1rem;
14
+ }
15
+ &.ds-skeleton--font-sm {
16
+ @apply text-base md:text-lg mb-3 md:mb-5;
17
+ }
18
+ &.ds-skeleton--font-md {
19
+ @apply text-xl md:text-2xl mb-5 md:mb-6;
20
+ }
21
+ &.ds-skeleton--font-lg {
22
+ @apply text-2xl md:text-3xl mb-6 md:mb-7;
23
+ }
24
+ &.ds-skeleton--font-xl {
25
+ @apply text-3xl md:text-4xl mb-8 md:mb-10;
26
+ }
27
+ }
28
+ &.ds-skeleton--circular {
29
+ border-radius: 50%;
30
+ }
31
+ &.ds-skeleton--rectangular {
32
+ }
33
+ &.ds-skeleton--button {
34
+ @apply mb-8 w-fit min-h-10 md:min-h-12 px-6 py-3
35
+ border-b-2 border-gray-400
36
+ flex items-center justify-center;
37
+ .ds-skeleton__line {
38
+ @apply block bg-base-400 w-full max-w-full max-h-full visible;
39
+ &::before {
40
+ content: '\00a0';
41
+ }
42
+ &.ds-skeleton__line--size-default {
43
+ @apply h-4 w-20;
44
+ }
45
+ }
46
+ }
47
+
48
+ /* Skeleton with a child. */
49
+ &.ds-skeleton--width-fit-content {
50
+ @apply w-fit;
51
+ }
52
+ &.ds-skeleton--animate {
53
+ /* @apply animate-pulse; */
54
+ position: relative;
55
+ overflow: hidden;
56
+ mask-image: radial-gradient(white, black);
57
+ &::after {
58
+ @apply absolute top-0 bottom-0 left-0 right-0;
59
+ animation: wave 2s linear 0.5s infinite;
60
+ background: linear-gradient(
61
+ 90deg,
62
+ transparent,
63
+ rgba(0, 0, 0, 0.05),
64
+ transparent
65
+ );
66
+ content: '';
67
+ transform: translateX(-100%);
68
+ }
69
+ }
70
+ > * {
71
+ @apply invisible;
72
+ }
73
+ }
74
+
75
+ @keyframes wave {
76
+ 0% {
77
+ transform: translateX(-100%);
78
+ }
79
+ 50% {
80
+ transform: translateX(100%);
81
+ }
82
+ 100% {
83
+ transform: translateX(100%);
84
+ }
85
+ }
@@ -2,7 +2,7 @@
2
2
  @apply absolute w-px h-px underline overflow-hidden top-auto;
3
3
  &:focus {
4
4
  @apply z-0 overflow-auto bg-focus static py-2 px-4 top-auto left-auto w-auto h-auto;
5
- outline-offset: 0px;
6
- outline: 0px solid var(--color-focus);
5
+ outline-offset: 0;
6
+ outline: 0 solid var(--color-focus);
7
7
  }
8
8
  }