@digigov/css 1.2.0-fd2cea11 → 1.2.0-mobile

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 (124) hide show
  1. package/defaultTheme/accordion.json +8 -0
  2. package/defaultTheme/brandConfig.json +14 -2
  3. package/defaultTheme/button.json +16 -3
  4. package/defaultTheme/card.json +16 -5
  5. package/defaultTheme/form.json +15 -0
  6. package/defaultTheme/globals.json +11 -1
  7. package/defaultTheme/index.js +1 -1
  8. package/defaultTheme/layout.json +55 -0
  9. package/defaultTheme/misc.json +20 -0
  10. package/defaultTheme/panel.json +5 -0
  11. package/defaultTheme/typography.json +12 -12
  12. package/dist/base/index.css +3 -3
  13. package/dist/base.js +1 -1
  14. package/dist/components.js +1 -1
  15. package/dist/digigov.css +5 -5
  16. package/dist/utilities/index.css +1 -1
  17. package/dist/utilities.js +1 -1
  18. package/package.json +19 -14
  19. package/postcss.config.js +1 -0
  20. package/src/base/base.css +1 -1
  21. package/src/base/index.css +5 -5
  22. package/src/components/accordion.css +76 -73
  23. package/src/components/admin-header.css +7 -24
  24. package/src/components/admin-layout.css +13 -22
  25. package/src/components/autocomplete.css +106 -63
  26. package/src/components/back-to-top.css +7 -8
  27. package/src/components/blockquote.common.css +14 -0
  28. package/src/components/blockquote.css +9 -0
  29. package/src/components/blockquote.native.css +11 -0
  30. package/src/components/bottom-info.css +3 -2
  31. package/src/components/breadcrumbs.css +21 -12
  32. package/src/components/button.common.css +64 -0
  33. package/src/components/button.css +79 -95
  34. package/src/components/button.native.css +42 -0
  35. package/src/components/card.common.css +33 -0
  36. package/src/components/card.css +77 -64
  37. package/src/components/card.native.css +29 -0
  38. package/src/components/checkboxes.css +34 -37
  39. package/src/components/chip.css +36 -37
  40. package/src/components/components.css +2 -2
  41. package/src/components/copy-to-clipboard.css +39 -38
  42. package/src/components/details.common.css +26 -0
  43. package/src/components/details.css +17 -18
  44. package/src/components/details.native.css +26 -0
  45. package/src/components/dev-theme.css +3 -4
  46. package/src/components/drawer.css +58 -59
  47. package/src/components/dropdown.common.css +58 -0
  48. package/src/components/dropdown.css +81 -68
  49. package/src/components/dropdown.native.css +58 -0
  50. package/src/components/experimental.css +18 -18
  51. package/src/components/fillable.css +6 -6
  52. package/src/components/filter.css +58 -63
  53. package/src/components/footer.css +53 -39
  54. package/src/components/form.common.css +49 -0
  55. package/src/components/form.css +125 -113
  56. package/src/components/form.native.css +58 -0
  57. package/src/components/full-page-background.css +2 -2
  58. package/src/components/header.common.css +36 -0
  59. package/src/components/header.css +78 -77
  60. package/src/components/header.native.css +34 -0
  61. package/src/components/hidden.css +23 -23
  62. package/src/components/index.css +48 -47
  63. package/src/components/kitchensink.css +41 -41
  64. package/src/components/layout.common.css +8 -0
  65. package/src/components/layout.css +56 -56
  66. package/src/components/layout.native.css +5 -0
  67. package/src/components/loader.css +31 -31
  68. package/src/components/masthead.css +60 -59
  69. package/src/components/misc.css +43 -21
  70. package/src/components/modal.css +28 -21
  71. package/src/components/nav.common.css +25 -0
  72. package/src/components/nav.css +96 -89
  73. package/src/components/nav.native.css +38 -0
  74. package/src/components/notification-banner.common.css +46 -0
  75. package/src/components/notification-banner.css +32 -28
  76. package/src/components/notification-banner.native.css +42 -0
  77. package/src/components/pagination.css +40 -41
  78. package/src/components/panel.common.css +30 -0
  79. package/src/components/panel.css +12 -20
  80. package/src/components/panel.native.css +20 -0
  81. package/src/components/phase-banner.common.css +23 -0
  82. package/src/components/phase-banner.css +15 -14
  83. package/src/components/phase-banner.native.css +31 -0
  84. package/src/components/radios.css +33 -30
  85. package/src/components/skeleton.css +85 -0
  86. package/src/components/skiplink.css +3 -3
  87. package/src/components/stack.css +64 -64
  88. package/src/components/stepnav.css +68 -64
  89. package/src/components/summary-list.common.css +25 -0
  90. package/src/components/summary-list.css +59 -47
  91. package/src/components/summary-list.native.css +27 -0
  92. package/src/components/svg-icons.common.css +56 -0
  93. package/src/components/svg-icons.css +79 -75
  94. package/src/components/svg-icons.native.css +55 -0
  95. package/src/components/table.css +189 -208
  96. package/src/components/tabs.css +52 -68
  97. package/src/components/task-list.css +31 -31
  98. package/src/components/test.css +7 -0
  99. package/src/components/timeline.css +19 -18
  100. package/src/components/typography.common.css +137 -0
  101. package/src/components/typography.css +159 -226
  102. package/src/components/typography.native.css +93 -0
  103. package/src/components/warning-text.common.css +23 -0
  104. package/src/components/warning-text.css +11 -11
  105. package/src/components/warning-text.native.css +22 -0
  106. package/src/index.native.css +17 -0
  107. package/src/pages/headings/service-heading.js +9 -9
  108. package/src/pages/index.js +201 -201
  109. package/src/utilities/grid.css +221 -0
  110. package/src/utilities/grid.native.css +274 -0
  111. package/src/utilities/index.css +3 -585
  112. package/src/utilities/index.native.css +2 -0
  113. package/src/utilities/print.css +11 -0
  114. package/src/utilities/spacing.css +2133 -0
  115. package/src/utilities/utilities.css +1647 -531
  116. package/tailwind.config.js +2 -2
  117. package/themes.plugin.js +1 -1
  118. package/defaultTheme/footer.json +0 -8
  119. package/src/pages/admin-filtering-data.js +0 -160
  120. package/src/pages/admin.js +0 -61
  121. package/src/pages/dropdown.js +0 -249
  122. package/src/pages/form.js +0 -400
  123. package/src/pages/pagination.js +0 -124
  124. package/src/pages/table.js +0 -308
@@ -1,58 +1,58 @@
1
- .govgr-task-list {
1
+ .ds-task-list {
2
2
  @apply mb-4 pl-6 pb-2;
3
3
  }
4
- .govgr-task-list__item {
4
+ .ds-task-list__item {
5
5
  @apply mb-8 md:mb-10;
6
6
  }
7
- .govgr-task-list__heading {
7
+ .ds-task-list__heading {
8
8
  @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2;
9
+ &.ds-task-list__heading--md {
10
+ @apply md:text-2xl text-xl md:mb-4 mb-2;
11
+ }
12
+ &.ds-task-list__heading--sm {
13
+ @apply md:text-lg text-base md:mb-3 mb-1;
14
+ }
9
15
  }
10
- .govgr-task-list__heading--md {
11
- @apply md:text-2xl text-xl md:mb-4 mb-2;
12
- }
13
- .govgr-task-list__heading--sm {
14
- @apply md:text-lg text-base md:mb-3 mb-1;
15
- }
16
- .govgr-task-list__content {
16
+ .ds-task-list__content {
17
17
  @apply mb-4;
18
18
  }
19
- .govgr-task-list__content__tag {
19
+ .ds-task-list__content__tag {
20
20
  @apply px-2 py-1 mr-2 inline-block font-sans text-sm uppercase tracking-widest print:border-2 print:bg-white print:mr-4;
21
- }
22
- .govgr-task-list__content__tag--info {
23
- @apply bg-info text-white print:border-info-hover print:text-info-hover;
24
- }
25
- .govgr-task-list__content__tag--primary {
26
- @apply bg-secondary text-base-content print:border-info print:text-info;
27
- }
28
- .govgr-task-list__content__tag--secondary {
29
- @apply bg-base-300 print:border-base-800 print:text-base-800;
21
+ &.ds-task-list__content__tag--info {
22
+ @apply bg-info text-white print:border-info-hover print:text-info-hover;
23
+ }
24
+ &.ds-task-list__content__tag--primary {
25
+ @apply bg-secondary text-base-content print:border-info print:text-info;
26
+ }
27
+ &.ds-task-list__content__tag--secondary {
28
+ @apply bg-base-300 print:border-base-800 print:text-base-800;
29
+ }
30
30
  }
31
31
 
32
32
  /* overrides */
33
33
 
34
- .govgr-task-list--dense{
35
- .govgr-task-list__item {
34
+ .ds-task-list--dense {
35
+ .ds-task-list__item {
36
36
  @apply mb-4 md:mb-6;
37
- .govgr-summary-list{
38
- @apply mb-4 md:mb-6;
37
+ .ds-summary-list {
38
+ @apply mb-4 md:mb-6;
39
39
  }
40
40
  }
41
41
  }
42
- .govgr-task-list__content {
43
- .govgr-body {
42
+ .ds-task-list__content {
43
+ .ds-body {
44
44
  @apply mb-2 md:mb-3;
45
45
  }
46
- .govgr-summary-list__row:first-child {
47
- & > .govgr-summary-list__key {
46
+ .ds-summary-list__row:first-child {
47
+ & > .ds-summary-list__key {
48
48
  @apply border-t-2 border-base-400;
49
49
  }
50
- & > .govgr-summary-list__value,
51
- & > .govgr-summary-list__actions {
50
+ & > .ds-summary-list__value,
51
+ & > .ds-summary-list__actions {
52
52
  @apply sm:border-t-2 sm:border-base-400;
53
53
  }
54
54
  }
55
- .govgr-summary-list__key {
55
+ .ds-summary-list__key {
56
56
  @apply font-normal sm:mb-0 mb-2 pt-2;
57
57
  }
58
58
  }
@@ -0,0 +1,7 @@
1
+ .ds-underline {
2
+ text-decoration-line: underline;
3
+ }
4
+
5
+ .ds-button:focus {
6
+ @apply ds-underline;
7
+ }
@@ -1,60 +1,61 @@
1
- .govgr-timeline {
1
+ .ds-timeline {
2
2
  @apply mb-4 pl-6 pb-2 border-l-4 border-secondary;
3
- &.govgr-timeline--dense, .govgr-dense & {
3
+ &.ds-timeline--dense,
4
+ .ds-dense & {
4
5
  @apply pb-0 border-l-3;
5
- .govgr-timeline__item {
6
+ .ds-timeline__item {
6
7
  @apply mb-4 md:mb-6;
7
8
  }
8
- .govgr-timeline__heading {
9
+ .ds-timeline__heading {
9
10
  @apply mb-2;
10
11
  &::before {
11
- content: "";
12
12
  @apply border-b-3;
13
+ content: '';
13
14
  }
14
15
  }
15
16
  }
16
17
  }
17
18
 
18
- .govgr-timeline__item {
19
+ .ds-timeline__item {
19
20
  @apply mb-10 md:mb-12;
20
21
  }
21
- .govgr-timeline__heading {
22
+ .ds-timeline__heading {
22
23
  @apply md:text-3xl text-2xl font-bold mx-0 md:mb-4 mb-2 relative;
23
24
  &::before {
24
- content: "";
25
25
  @apply block absolute top-4 -left-6 w-4
26
26
  border-b-4 border-secondary;
27
+ content: '';
27
28
  }
28
29
  }
29
- .govgr-timeline__heading-md {
30
+ .ds-timeline__heading-md {
30
31
  @apply md:text-2xl text-xl md:mb-4 mb-2;
31
32
  &::before {
32
33
  @apply top-3 w-3;
33
34
  }
34
35
  }
35
- .govgr-timeline__heading-sm {
36
+ .ds-timeline__heading-sm {
36
37
  @apply md:text-lg text-base md:mb-3 mb-1;
37
38
  &::before {
38
39
  @apply top-2.5 w-3;
39
40
  }
40
41
  }
41
- .govgr-timeline__content {
42
+ .ds-timeline__content {
42
43
  @apply mb-4;
43
44
  }
44
- .govgr-timeline__actions {
45
+ .ds-timeline__actions {
45
46
  @apply flex flex-wrap items-center gap-4 mb-6;
46
47
  }
47
48
 
48
49
  /* overrides */
49
- .govgr-timeline__content {
50
- .govgr-hint,
51
- .govgr-body {
50
+ .ds-timeline__content {
51
+ .ds-hint,
52
+ .ds-body {
52
53
  @apply mb-2 md:mb-3;
53
54
  }
54
55
  }
55
- .govgr-timeline__actions {
56
- .govgr-btn,
57
- .govgr-link {
56
+ .ds-timeline__actions {
57
+ .ds-btn,
58
+ .ds-link {
58
59
  @apply mb-0;
59
60
  }
60
61
  }
@@ -0,0 +1,137 @@
1
+ /* stylelint-disable digigov/enforce-class-selector-namespace */
2
+ @tailwind utilities;
3
+
4
+ @layer utilities {
5
+ .util-heading-xl {
6
+ @apply mx-0 max-w-2xl;
7
+ }
8
+ .util-heading-xl-text {
9
+ font-size: var(--heading-xl-font-size);
10
+ line-height: var(--heading-xl-line-height);
11
+ margin-bottom: var(--heading-xl-margin-bottom);
12
+ font-weight: var(--heading-xl-font-weight);
13
+ }
14
+ .util-heading-lg-text {
15
+ font-size: var(--heading-lg-font-size);
16
+ line-height: var(--heading-lg-line-height);
17
+ margin-bottom: var(--heading-lg-margin-bottom);
18
+ font-weight: var(--heading-lg-font-weight);
19
+ }
20
+ .util-heading-md-text {
21
+ font-size: var(--heading-md-font-size);
22
+ line-height: var(--heading-md-line-height);
23
+ margin-bottom: var(--heading-md-margin-bottom);
24
+ font-weight: var(--heading-md-font-weight);
25
+ }
26
+ .util-heading-sm-text {
27
+ font-size: var(--heading-sm-font-size);
28
+ line-height: var(--heading-sm-line-height);
29
+ margin-bottom: var(--heading-sm-margin-bottom);
30
+ font-weight: var(--heading-sm-font-weight);
31
+ }
32
+ .util-heading-xs-text {
33
+ font-size: var(--heading-xs-font-size);
34
+ line-height: var(--heading-xs-line-height);
35
+ margin-bottom: var(--heading-xs-margin-bottom);
36
+ font-weight: var(--heading-xs-font-weight);
37
+ }
38
+
39
+ .util-body-text {
40
+ font-size: var(--body-font-size);
41
+ line-height: calc(var(--body-line-height) * var(--body-font-size));
42
+ margin-bottom: var(--body-margin-bottom);
43
+ color: var(--body-color);
44
+ }
45
+ .util-body-lg-text {
46
+ font-size: var(--body--lg-font-size);
47
+ line-height: var(--body--lg-line-height);
48
+ }
49
+ .util-body-sm-text {
50
+ font-size: var(--body--sm-font-size);
51
+ line-height: var(--body--sm-line-height);
52
+ }
53
+ .util-link {
54
+ @apply focus:bg-focus;
55
+ padding: var(--link-padding);
56
+ }
57
+ .util-link-text {
58
+ @apply focus:text-link-active underline;
59
+ color: var(--link-color);
60
+ font-size: var(--link-font-size);
61
+ line-height: var(--link-line-height);
62
+ /* &:focus {
63
+ text-decoration: none !important;
64
+ } */
65
+ }
66
+
67
+ .util-caption-xl {
68
+ @apply mx-0 font-normal;
69
+ }
70
+ .util-caption-xl-text {
71
+ color: var(--caption-xl-color);
72
+ font-size: var(--caption-xl-font-size);
73
+ margin-bottom: var(--caption-xl-margin-bottom);
74
+ font-weight: var(--caption-xl-font-weight);
75
+ }
76
+ .util-caption-lg {
77
+ @apply mx-0 font-normal;
78
+ }
79
+ .util-caption-lg-text {
80
+ color: var(--caption-lg-color);
81
+ font-size: var(--caption-lg-font-size);
82
+ margin-bottom: var(--caption-lg-margin-bottom);
83
+ font-weight: var(--caption-lg-font-weight);
84
+ }
85
+ .util-caption-md {
86
+ @apply mx-0 font-normal;
87
+ }
88
+ .util-caption-md-text {
89
+ color: var(--caption-md-color);
90
+ font-size: var(--caption-md-font-size);
91
+ margin-bottom: var(--caption-md-margin-bottom);
92
+ font-weight: var(--caption-md-font-weight);
93
+ }
94
+
95
+ /* Hint */
96
+ .util-hint {
97
+ margin-bottom: var(--hint-margin-bottom);
98
+ }
99
+ .util-hint-text {
100
+ font-size: var(--hint-font-size);
101
+ line-height: var(--hint-line-height);
102
+ color: var(--hint-color);
103
+ }
104
+ .util-hint-lg-text {
105
+ font-size: var(--hint-lg-font-size);
106
+ line-height: var(--hint-lg-line-height);
107
+ }
108
+ .util-hint-sm-text {
109
+ font-size: var(--hint-sm-font-size);
110
+ line-height: var(--hint-sm-line-height);
111
+ }
112
+
113
+ /* List */
114
+ .util-list {
115
+ @apply mt-4;
116
+
117
+ @apply md:mb-8 mb-4 text-base-content;
118
+ }
119
+ .util-list-bullet {
120
+ @apply pl-4;
121
+ }
122
+ .util-list-number {
123
+ @apply pl-4;
124
+ }
125
+ .util-list-horizontal {
126
+ @apply flex flex-wrap gap-x-6 gap-y-3;
127
+ }
128
+ .util-list-spaced {
129
+ @apply gap-x-10 gap-y-5;
130
+ }
131
+ .util-list-item {
132
+ @apply mb-2 last:mb-0;
133
+ }
134
+ .util-list-item-horizontal {
135
+ @apply w-full;
136
+ }
137
+ }