claritas-web-framework 8.1.2 → 8.3.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 (60) hide show
  1. package/dist/index.css +6 -67
  2. package/dist/index.html +1 -1
  3. package/index.html +3 -1
  4. package/package.json +9 -15
  5. package/sass/_functions.scss +3 -11
  6. package/sass/_helpers.scss +0 -6
  7. package/sass/_mixins.scss +0 -11
  8. package/sass/_modules.scss +0 -30
  9. package/sass/_reboot.scss +7 -8
  10. package/sass/_root.scss +24 -33
  11. package/sass/_utilities.scss +0 -16
  12. package/sass/_variables.scss +9 -4
  13. package/sass/helpers/_container.scss +0 -2
  14. package/sass/helpers/_embed.scss +0 -1
  15. package/sass/helpers/_grid.scss +0 -6
  16. package/sass/helpers/_link.scss +0 -1
  17. package/sass/helpers/_screenReader.scss +0 -2
  18. package/sass/helpers/_wrap.scss +0 -1
  19. package/sass/index.scss +2 -7
  20. package/sass/mixins/_breakpoints.scss +6 -28
  21. package/sass/mixins/_caret.scss +1 -5
  22. package/sass/mixins/_clearfix.scss +0 -1
  23. package/sass/mixins/_colors.scss +3 -3
  24. package/sass/mixins/_container.scss +0 -2
  25. package/sass/mixins/_grid.scss +3 -18
  26. package/sass/mixins/_group.scss +1 -7
  27. package/sass/mixins/_list.scss +1 -4
  28. package/sass/mixins/_screenReader.scss +0 -1
  29. package/sass/modules/_alert.scss +1 -4
  30. package/sass/modules/_breadcrumbs.scss +0 -1
  31. package/sass/modules/_button.scss +0 -8
  32. package/sass/modules/_card.scss +1 -8
  33. package/sass/modules/_details.scss +3 -4
  34. package/sass/modules/_dropdown.scss +0 -1
  35. package/sass/modules/_form.scss +0 -2
  36. package/sass/modules/_loader.scss +0 -10
  37. package/sass/modules/_pill.scss +0 -3
  38. package/sass/modules/_tabs.scss +1 -5
  39. package/sass/modules/_tag.scss +0 -3
  40. package/sass/modules/_tile.scss +1 -6
  41. package/sass/modules/_tooltip.scss +0 -5
  42. package/sass/modules/form/_checkbox.scss +0 -4
  43. package/sass/modules/form/_file.scss +0 -9
  44. package/sass/modules/form/_formFieldGroup.scss +0 -2
  45. package/sass/modules/form/_progress.scss +0 -1
  46. package/sass/modules/form/_radio.scss +0 -3
  47. package/sass/modules/form/_switch.scss +0 -3
  48. package/sass/modules/form/_toggle.scss +0 -2
  49. package/sass/utilities/_align.scss +0 -2
  50. package/sass/utilities/_colors.scss +0 -8
  51. package/sass/utilities/_display.scss +0 -2
  52. package/sass/utilities/_flex.scss +0 -1
  53. package/sass/utilities/_float.scss +0 -1
  54. package/sass/utilities/_order.scss +0 -1
  55. package/sass/utilities/_overflow.scss +0 -1
  56. package/sass/utilities/_pointerEvents.scss +0 -1
  57. package/sass/utilities/_spacing.scss +0 -1
  58. package/sass/utilities/_visibility.scss +0 -1
  59. package/sass/utilities/_zIndex.scss +0 -1
  60. package/.stylelintrc.json +0 -40
@@ -14,9 +14,7 @@
14
14
  }
15
15
 
16
16
  @mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $breakpoints) {
17
-
18
17
  @each $breakpoint, $container-max-width in $max-widths {
19
-
20
18
  @include media-breakpoint-up($breakpoint, $breakpoints) {
21
19
  max-width: $container-max-width;
22
20
  }
@@ -36,19 +36,16 @@
36
36
  flex-shrink: 0;
37
37
  width: 100%;
38
38
  max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
39
- padding-right: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
40
- padding-left: calc(var(--gutter-x) * 0.5); // stylelint-disable-line function-disallowed-list
39
+ padding-right: calc(var(--gutter-x) * 0.5);
40
+ padding-left: calc(var(--gutter-x) * 0.5);
41
41
  margin-top: var(--gutter-y);
42
42
  }
43
43
 
44
44
  @mixin make-col($size: false, $columns: $grid-columns) {
45
-
46
45
  @if $size {
47
46
  flex: 0 0 auto;
48
47
  width: math.percentage(math.div($size, $columns));
49
- }
50
-
51
- @else {
48
+ } @else {
52
49
  flex: 1 1 0;
53
50
  max-width: 100%;
54
51
  }
@@ -75,7 +72,6 @@
75
72
  // style grid.
76
73
 
77
74
  @mixin row-cols($count) {
78
-
79
75
  > * {
80
76
  flex: 0 0 auto;
81
77
  width: math.div(100%, $count);
@@ -87,41 +83,33 @@
87
83
  // any value of `$grid-columns`.
88
84
 
89
85
  @mixin make-grid-columns($columns: $grid-columns, $breakpoints: $breakpoints) {
90
-
91
86
  @each $breakpoint in map.keys($breakpoints) {
92
87
  $infix: breakpoint-infix($breakpoint, $breakpoints);
93
88
 
94
89
  @include media-breakpoint-up($breakpoint, $breakpoints) {
95
90
  .col-#{$infix},
96
91
  .col {
97
-
98
92
  @include make-col-fit;
99
93
  }
100
94
 
101
95
  .col-#{$infix}-auto {
102
-
103
96
  @include make-col-auto;
104
97
  }
105
98
 
106
99
  .col-#{$infix}-fit {
107
-
108
100
  @include make-col-fit;
109
101
  }
110
102
 
111
103
  @if $columns > 0 {
112
-
113
104
  @for $i from 1 through $columns {
114
105
  .col-#{$infix}-#{$i} {
115
-
116
106
  @include make-col($i, $columns);
117
107
  }
118
108
  }
119
109
 
120
110
  @for $i from 0 through ($columns - 1) {
121
-
122
111
  @if not($infix == "" and $i == 0) {
123
112
  .offset-#{$infix}-#{$i} {
124
-
125
113
  @include make-col-offset($i, $columns);
126
114
  }
127
115
  }
@@ -147,14 +135,11 @@
147
135
  }
148
136
 
149
137
  @mixin make-cssgrid($columns: $grid-columns, $breakpoints: $breakpoints) {
150
-
151
138
  @each $breakpoint in map.keys($breakpoints) {
152
139
  $infix: breakpoint-infix($breakpoint, $breakpoints);
153
140
 
154
141
  @include media-breakpoint-up($breakpoint, $breakpoints) {
155
-
156
142
  @if $columns > 0 {
157
-
158
143
  @for $i from 1 through $columns {
159
144
  .g-col-#{$infix}-#{$i} {
160
145
  grid-column: auto / span $i;
@@ -10,15 +10,12 @@
10
10
 
11
11
  @if $enable-margins {
12
12
  margin-bottom: var(--spacer);
13
- }
14
-
15
- @else {
13
+ } @else {
16
14
  margin-bottom: 0;
17
15
  }
18
16
  }
19
17
 
20
18
  @mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
21
-
22
19
  @include make-group;
23
20
 
24
21
  align-items: stretch;
@@ -27,7 +24,6 @@
27
24
  }
28
25
 
29
26
  @mixin make-group-row($gap: calc(var(--spacer) * 0.5)) {
30
-
31
27
  @include make-group;
32
28
 
33
29
  gap: $gap;
@@ -37,7 +33,6 @@
37
33
  gap: 0;
38
34
 
39
35
  & > * {
40
-
41
36
  &:not(:last-child) {
42
37
  border-bottom-right-radius: 0;
43
38
  border-bottom-left-radius: 0;
@@ -59,7 +54,6 @@
59
54
  gap: 0;
60
55
 
61
56
  & > #{$selector} {
62
-
63
57
  &:not(:last-child) {
64
58
  border-bottom-right-radius: 0;
65
59
  border-top-right-radius: 0;
@@ -9,15 +9,12 @@
9
9
 
10
10
  @if $enable-margins {
11
11
  margin-bottom: var(--spacer);
12
- }
13
-
14
- @else {
12
+ } @else {
15
13
  margin-bottom: 0;
16
14
  }
17
15
  }
18
16
 
19
17
  @mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
20
-
21
18
  @include make-group-row($gap);
22
19
 
23
20
  @include make-list-unstyled;
@@ -10,7 +10,6 @@
10
10
 
11
11
  &:active,
12
12
  &:focus {
13
-
14
13
  @if $focusable {
15
14
  position: static;
16
15
  width: auto;
@@ -25,9 +25,7 @@
25
25
 
26
26
  @if $enable-margins {
27
27
  margin-bottom: var(--spacer);
28
- }
29
-
30
- @else {
28
+ } @else {
31
29
  margin-bottom: 0;
32
30
  }
33
31
 
@@ -39,7 +37,6 @@
39
37
  }
40
38
 
41
39
  & > * {
42
-
43
40
  &:last-child {
44
41
  margin-bottom: 0;
45
42
  }
@@ -19,7 +19,6 @@
19
19
  position: relative;
20
20
 
21
21
  &:not(:last-child) {
22
-
23
22
  &::after {
24
23
  content: "";
25
24
  position: absolute;
@@ -139,12 +139,10 @@
139
139
  }
140
140
 
141
141
  &.button--link {
142
-
143
142
  @include button-variant-link("primary");
144
143
  }
145
144
 
146
145
  &.button--unstyled {
147
-
148
146
  @include button-variant-unstyled("body-color");
149
147
  }
150
148
 
@@ -160,32 +158,26 @@
160
158
  }
161
159
 
162
160
  .buttons {
163
-
164
161
  @include make-group-row;
165
162
 
166
163
  &.buttons--grouped {
167
-
168
164
  @include make-grouped-row(".button");
169
165
  }
170
166
  }
171
167
 
172
168
  @each $key, $value in $all-colors {
173
169
  .button--#{$key} {
174
-
175
170
  @include button-variant($key, $value);
176
171
 
177
172
  &.button--outline {
178
-
179
173
  @include button-variant-outline($key, $value);
180
174
  }
181
175
 
182
176
  &.button--link {
183
-
184
177
  @include button-variant-link($key);
185
178
  }
186
179
 
187
180
  &.button--unstyled {
188
-
189
181
  @include button-variant-unstyled($key);
190
182
  }
191
183
  }
@@ -28,14 +28,11 @@
28
28
 
29
29
  @if $enable-margins {
30
30
  margin-bottom: var(--spacer);
31
- }
32
-
33
- @else {
31
+ } @else {
34
32
  margin-bottom: 0;
35
33
  }
36
34
 
37
35
  & > * {
38
-
39
36
  &:first-child {
40
37
  border-top-left-radius: calc(var(--card-border-radius) - 1px);
41
38
  border-top-right-radius: calc(var(--card-border-radius) - 1px);
@@ -90,7 +87,6 @@
90
87
  }
91
88
 
92
89
  details.card {
93
-
94
90
  & .card--header {
95
91
  border-bottom-color: transparent;
96
92
 
@@ -100,7 +96,6 @@ details.card {
100
96
  }
101
97
 
102
98
  &[open] {
103
-
104
99
  & .card--header {
105
100
  border-bottom-color: var(--card-border-color);
106
101
  }
@@ -108,11 +103,9 @@ details.card {
108
103
  }
109
104
 
110
105
  .cards {
111
-
112
106
  @include make-group-column;
113
107
 
114
108
  &.cards--grouped {
115
-
116
109
  @include make-grouped-column;
117
110
  }
118
111
  }
@@ -3,12 +3,11 @@
3
3
  @use "./../mixins/caret" as *;
4
4
 
5
5
  details {
6
+ transition: $details-transition;
6
7
 
7
8
  @if $enable-margins {
8
9
  margin-bottom: var(--spacer);
9
- }
10
-
11
- @else {
10
+ } @else {
12
11
  margin-bottom: 0;
13
12
  }
14
13
 
@@ -43,9 +42,9 @@ details {
43
42
 
44
43
  &[open] {
45
44
  height: auto;
45
+ overflow: clip;
46
46
 
47
47
  & summary {
48
-
49
48
  @include make-caret-up($left: true, $color: "primary");
50
49
  }
51
50
  }
@@ -11,7 +11,6 @@
11
11
  &[data-active="true"],
12
12
  &:focus,
13
13
  &:hover {
14
-
15
14
  & .nav {
16
15
  display: flex;
17
16
  }
@@ -206,7 +206,6 @@ progress,
206
206
  .form--span,
207
207
  .input--div,
208
208
  .input--editor {
209
-
210
209
  @extend %input;
211
210
  }
212
211
 
@@ -246,7 +245,6 @@ progress,
246
245
  }
247
246
 
248
247
  &.stacked {
249
-
250
248
  & .form--label {
251
249
  order: -1;
252
250
  }
@@ -8,7 +8,6 @@
8
8
  vertical-align: middle;
9
9
 
10
10
  &.loader--ring {
11
-
12
11
  & span {
13
12
  box-sizing: border-box;
14
13
  display: block;
@@ -74,7 +73,6 @@
74
73
  height: calc(var(--spacer) * 2);
75
74
 
76
75
  &.loader--ring {
77
-
78
76
  & span {
79
77
  width: calc(var(--spacer) * 2);
80
78
  height: calc(var(--spacer) * 2);
@@ -87,7 +85,6 @@
87
85
  height: var(--spacer);
88
86
 
89
87
  & span {
90
-
91
88
  &:nth-child(1) {
92
89
  left: calc(var(--spacer) * 0.25);
93
90
  }
@@ -108,9 +105,7 @@
108
105
  }
109
106
 
110
107
  &.loader--small {
111
-
112
108
  &.loader--ellipsis {
113
-
114
109
  & span {
115
110
  width: calc(var(--spacer) * 0.25);
116
111
  height: calc(var(--spacer) * 0.25);
@@ -138,7 +133,6 @@
138
133
  }
139
134
 
140
135
  @keyframes ring {
141
-
142
136
  0% {
143
137
  transform: rotate(0deg);
144
138
  }
@@ -149,7 +143,6 @@
149
143
  }
150
144
 
151
145
  @keyframes ellipsis1 {
152
-
153
146
  0% {
154
147
  transform: scale(0);
155
148
  }
@@ -160,7 +153,6 @@
160
153
  }
161
154
 
162
155
  @keyframes ellipsis2 {
163
-
164
156
  0% {
165
157
  transform: translate(0, 0);
166
158
  }
@@ -171,7 +163,6 @@
171
163
  }
172
164
 
173
165
  @keyframes ellipsis3 {
174
-
175
166
  0% {
176
167
  transform: scale(1);
177
168
  }
@@ -182,7 +173,6 @@
182
173
  }
183
174
 
184
175
  @keyframes ellipsis2-small {
185
-
186
176
  0% {
187
177
  transform: translate(0, 0);
188
178
  }
@@ -53,18 +53,15 @@
53
53
  }
54
54
 
55
55
  .pills {
56
-
57
56
  @include make-group-row;
58
57
 
59
58
  & .pill {
60
-
61
59
  &:empty {
62
60
  align-self: stretch;
63
61
  }
64
62
  }
65
63
 
66
64
  &.pills--grouped {
67
-
68
65
  @include make-grouped-row(".pill");
69
66
  }
70
67
  }
@@ -10,9 +10,7 @@
10
10
 
11
11
  @if $enable-margins {
12
12
  margin-bottom: var(--spacer);
13
- }
14
-
15
- @else {
13
+ } @else {
16
14
  margin-bottom: 0;
17
15
  }
18
16
 
@@ -73,9 +71,7 @@
73
71
  }
74
72
 
75
73
  &.card {
76
-
77
74
  & .nav--tabs {
78
-
79
75
  & .nav--item {
80
76
  --nav-item-border-radius: 0;
81
77
  --nav-item-active-background: hsl(var(--body-color-h) var(--body-color-s) 95%);
@@ -65,18 +65,15 @@
65
65
  }
66
66
 
67
67
  .tags {
68
-
69
68
  @include make-group-row;
70
69
 
71
70
  & .tag {
72
-
73
71
  &:empty {
74
72
  align-self: stretch;
75
73
  }
76
74
  }
77
75
 
78
76
  &.tags--grouped {
79
-
80
77
  @include make-grouped-row(".tag");
81
78
  }
82
79
  }
@@ -32,14 +32,11 @@
32
32
 
33
33
  @if $enable-margins {
34
34
  margin-bottom: var(--spacer);
35
- }
36
-
37
- @else {
35
+ } @else {
38
36
  margin-bottom: 0;
39
37
  }
40
38
 
41
39
  & > * {
42
-
43
40
  &:first-child {
44
41
  border-top-left-radius: calc(var(--tile-border-radius) - 1px);
45
42
  border-top-right-radius: calc(var(--tile-border-radius) - 1px);
@@ -94,11 +91,9 @@
94
91
  }
95
92
 
96
93
  .tiles {
97
-
98
94
  @include make-group-column;
99
95
 
100
96
  &.tiles--grouped {
101
-
102
97
  @include make-grouped-column;
103
98
  }
104
99
  }
@@ -46,14 +46,12 @@
46
46
  }
47
47
 
48
48
  &.tooltip--large {
49
-
50
49
  &::after {
51
50
  min-width: calc(var(--spacer) * 16);
52
51
  }
53
52
  }
54
53
 
55
54
  &[data-placement="left"] {
56
-
57
55
  &::before {
58
56
  border-top: 6px solid transparent;
59
57
  border-right: 0 none;
@@ -70,7 +68,6 @@
70
68
  }
71
69
 
72
70
  &[data-placement="right"] {
73
-
74
71
  &::before {
75
72
  border-top: 6px solid transparent;
76
73
  border-right: 6px solid hsl(0deg 0% 0% / 75%);
@@ -87,7 +84,6 @@
87
84
  }
88
85
 
89
86
  &[data-placement="bottom"] {
90
-
91
87
  &::before {
92
88
  border-top: 0 none;
93
89
  border-right: 6px solid transparent;
@@ -104,7 +100,6 @@
104
100
  }
105
101
 
106
102
  &:hover {
107
-
108
103
  &::after,
109
104
  &::before {
110
105
  visibility: visible;
@@ -5,9 +5,7 @@
5
5
  @use "./../../mixins/breakpoints" as *;
6
6
 
7
7
  .form--control-checkbox {
8
-
9
8
  & > * {
10
-
11
9
  &:not(:last-child) {
12
10
  margin-right: var(--spacer);
13
11
 
@@ -53,7 +51,6 @@
53
51
 
54
52
  &:indeterminate,
55
53
  &[aria-checked="mixed"] {
56
-
57
54
  &::before {
58
55
  border: 2px solid var(--white);
59
56
  height: 0;
@@ -73,7 +70,6 @@
73
70
 
74
71
  @each $key, $value in $all-colors {
75
72
  &.input--#{$key} {
76
-
77
73
  &:checked {
78
74
  --input-detail-background: hsl(var(--#{$key}-h) var(--#{$key}-s) var(--#{$key}-l));
79
75
  --input-disabled-detail-background: hsl(
@@ -34,7 +34,6 @@
34
34
  }
35
35
 
36
36
  &:empty {
37
-
38
37
  & ~ .form--label {
39
38
  border-bottom-right-radius: var(--border-radius-medium);
40
39
  border-bottom-left-radius: var(--border-radius-medium);
@@ -76,7 +75,6 @@
76
75
  }
77
76
 
78
77
  &:hover {
79
-
80
78
  & ~ .form--label {
81
79
  border-color: var(--input-hover-border-color);
82
80
  background-color: var(--gray-2);
@@ -87,7 +85,6 @@
87
85
  }
88
86
 
89
87
  & ~ .file--name {
90
-
91
88
  &:not(:empty) {
92
89
  border-color: var(--input-hover-border-color);
93
90
  }
@@ -96,26 +93,22 @@
96
93
 
97
94
  @each $key, $value in $theme-colors {
98
95
  &.input--#{$key} {
99
-
100
96
  & ~ .form--label {
101
97
  border-color: $value;
102
98
  }
103
99
 
104
100
  & ~ .file--name {
105
-
106
101
  &:not(:empty) {
107
102
  border-color: $value;
108
103
  }
109
104
  }
110
105
 
111
106
  &:hover {
112
-
113
107
  & ~ .form--label {
114
108
  border-color: color.mix(black, $value, 25%);
115
109
  }
116
110
 
117
111
  & ~ .file--name {
118
-
119
112
  &:not(:empty) {
120
113
  border-color: color.mix(black, $value, 25%);
121
114
  }
@@ -148,9 +141,7 @@ input[type="file"] {
148
141
  }
149
142
 
150
143
  &:hover {
151
-
152
144
  &:not(:disabled, [readonly]) {
153
-
154
145
  &::-webkit-file-upload-button,
155
146
  &::file-selector-button {
156
147
  background-color: var(--gray-2);
@@ -26,7 +26,6 @@
26
26
  }
27
27
 
28
28
  &:first-child {
29
-
30
29
  & * {
31
30
  --input-border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
32
31
  --input-small-border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
@@ -43,7 +42,6 @@
43
42
  }
44
43
 
45
44
  &:last-child {
46
-
47
45
  & * {
48
46
  --input-border-radius: 0 var(--border-radius-medium) var(--border-radius-medium) 0;
49
47
  --input-small-border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
@@ -36,7 +36,6 @@ progress {
36
36
 
37
37
  @each $key, $value in $theme-colors {
38
38
  &.input--#{$key} {
39
-
40
39
  &::-webkit-progress-bar {
41
40
  background-color: hsl(var(--#{$key}-h) var(--#{$key}-s) var(--#{$key}-l) / 5%);
42
41
  }
@@ -7,9 +7,7 @@
7
7
  @use "./../../mixins/breakpoints" as *;
8
8
 
9
9
  .form--control-radio {
10
-
11
10
  & > * {
12
-
13
11
  &:not(:last-child) {
14
12
  margin-right: var(--spacer);
15
13
 
@@ -52,7 +50,6 @@
52
50
 
53
51
  @each $key, $value in $theme-colors {
54
52
  &.input--#{$key} {
55
-
56
53
  &:checked {
57
54
  --input-detail-background: hsl(var(--#{$key}-h) var(--#{$key}-s) var(--#{$key}-l));
58
55
  --input-disabled-detail-background: hsl(
@@ -14,7 +14,6 @@
14
14
 
15
15
  &[disabled],
16
16
  &:disabled {
17
-
18
17
  + .button {
19
18
  pointer-events: none;
20
19
  filter: none;
@@ -24,7 +23,6 @@
24
23
  }
25
24
 
26
25
  .switches {
27
-
28
26
  @include make-group-row;
29
27
 
30
28
  &.switches--grouped {
@@ -32,7 +30,6 @@
32
30
  flex-wrap: nowrap;
33
31
 
34
32
  & > .button {
35
-
36
33
  &:not(:last-child) {
37
34
  border-bottom-right-radius: 0;
38
35
  border-top-right-radius: 0;
@@ -5,9 +5,7 @@
5
5
  @use "./../../mixins/breakpoints" as *;
6
6
 
7
7
  .form--control-toggle {
8
-
9
8
  & > * {
10
-
11
9
  &:not(:last-child) {
12
10
  margin-right: var(--spacer);
13
11