claritas-web-framework 8.5.7 → 8.5.9

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 (86) hide show
  1. package/.prettierrc +10 -10
  2. package/README.md +1 -1
  3. package/dist/index.css +1 -1
  4. package/index.html +20 -20
  5. package/index.js +2 -2
  6. package/package.json +33 -33
  7. package/sass/_functions.scss +55 -55
  8. package/sass/_helpers.scss +8 -8
  9. package/sass/_mixins.scss +12 -12
  10. package/sass/_modules.scss +30 -30
  11. package/sass/_reboot.scss +264 -265
  12. package/sass/_root.scss +56 -56
  13. package/sass/_utilities.scss +17 -17
  14. package/sass/_variables.scss +445 -449
  15. package/sass/helpers/_container.scss +11 -11
  16. package/sass/helpers/_embed.scss +36 -36
  17. package/sass/helpers/_grid.scss +53 -53
  18. package/sass/helpers/_image.scss +5 -5
  19. package/sass/helpers/_link.scss +15 -15
  20. package/sass/helpers/_rfs.scss +303 -303
  21. package/sass/helpers/_screenReader.scss +13 -13
  22. package/sass/helpers/_wrap.scss +5 -5
  23. package/sass/index.scss +12 -12
  24. package/sass/mixins/_breakpoints.scss +133 -133
  25. package/sass/mixins/_button.scss +116 -116
  26. package/sass/mixins/_caret.scss +41 -41
  27. package/sass/mixins/_clearfix.scss +7 -7
  28. package/sass/mixins/_colors.scss +23 -23
  29. package/sass/mixins/_container.scss +21 -21
  30. package/sass/mixins/_gradient.scss +55 -55
  31. package/sass/mixins/_grid.scss +156 -156
  32. package/sass/mixins/_group.scss +70 -70
  33. package/sass/mixins/_list.scss +18 -18
  34. package/sass/mixins/_screenReader.scss +22 -22
  35. package/sass/mixins/_wrap.scss +7 -7
  36. package/sass/modules/_alert.scss +60 -60
  37. package/sass/modules/_breadcrumbs.scss +43 -43
  38. package/sass/modules/_button.scss +170 -172
  39. package/sass/modules/_card.scss +107 -107
  40. package/sass/modules/_close.scss +59 -59
  41. package/sass/modules/_details.scss +48 -48
  42. package/sass/modules/_dialog.scss +47 -47
  43. package/sass/modules/_dropdown.scss +44 -43
  44. package/sass/modules/_form.scss +261 -263
  45. package/sass/modules/_list.scss +78 -78
  46. package/sass/modules/_loader.scss +183 -183
  47. package/sass/modules/_modal.scss +45 -45
  48. package/sass/modules/_nav.scss +136 -136
  49. package/sass/modules/_pill.scss +61 -61
  50. package/sass/modules/_table.scss +96 -96
  51. package/sass/modules/_tabs.scss +88 -93
  52. package/sass/modules/_tag.scss +72 -72
  53. package/sass/modules/_tile.scss +101 -101
  54. package/sass/modules/_tooltip.scss +108 -108
  55. package/sass/modules/form/_checkbox.scss +78 -78
  56. package/sass/modules/form/_file.scss +149 -149
  57. package/sass/modules/form/_formFieldGroup.scss +60 -60
  58. package/sass/modules/form/_output.scss +6 -6
  59. package/sass/modules/form/_progress.scss +55 -55
  60. package/sass/modules/form/_radio.scss +57 -57
  61. package/sass/modules/form/_range.scss +144 -144
  62. package/sass/modules/form/_select.scss +22 -22
  63. package/sass/modules/form/_text.scss +28 -28
  64. package/sass/modules/form/_textarea.scss +3 -3
  65. package/sass/modules/form/_toggle.scss +68 -68
  66. package/sass/utilities/_align.scss +25 -25
  67. package/sass/utilities/_border.scss +59 -59
  68. package/sass/utilities/_colors.scss +76 -76
  69. package/sass/utilities/_display.scss +25 -25
  70. package/sass/utilities/_flex.scss +65 -65
  71. package/sass/utilities/_float.scss +17 -17
  72. package/sass/utilities/_order.scss +23 -23
  73. package/sass/utilities/_overflow.scss +25 -25
  74. package/sass/utilities/_pointerEvents.scss +17 -17
  75. package/sass/utilities/_position.scss +59 -59
  76. package/sass/utilities/_shadow.scss +7 -7
  77. package/sass/utilities/_size.scss +118 -118
  78. package/sass/utilities/_spacing.scss +107 -107
  79. package/sass/utilities/_translate.scss +15 -15
  80. package/sass/utilities/_typography.scss +62 -62
  81. package/sass/utilities/_visibility.scss +17 -17
  82. package/sass/utilities/_zIndex.scss +15 -15
  83. package/tests.js +5 -5
  84. package/webpack.config.js +27 -27
  85. package/webpack.plugins.js +15 -15
  86. package/webpack.rules.js +8 -8
@@ -1,136 +1,136 @@
1
- @use "sass:color";
2
- @use "./../variables" as *;
3
- @use "./../mixins/list" as *;
4
- @use "./../mixins/colors" as *;
5
-
6
- .nav,
7
- .nav > ul {
8
- display: flex;
9
- flex-wrap: wrap;
10
- list-style: none;
11
- align-items: center;
12
- position: relative;
13
-
14
- @include make-list-unstyled;
15
-
16
- & ul {
17
- @include make-list-unstyled;
18
-
19
- margin: 0;
20
- }
21
-
22
- & li {
23
- margin: 0;
24
- padding: 0;
25
-
26
- & ul {
27
- border-left: var(--nav-item-border-width) var(--nav-item-border-style) var(--nav-item-border-color);
28
- margin: calc(var(--spacer) * 0.75);
29
- padding-left: calc(var(--spacer) * 0.75);
30
- }
31
- }
32
-
33
- & .nav__label,
34
- & .nav__title,
35
- & .nav__item {
36
- --nav-item-border-width: 1px;
37
- --nav-item-border-style: solid;
38
- --nav-item-border-color: transparent;
39
- --nav-item-active-border-color: transparent;
40
- --nav-item-border-radius: 0;
41
- --nav-item-line-height: #{$nav-item-line-height};
42
- --nav-item-padding-x: #{$nav-item-padding-x};
43
- --nav-item-padding-y: #{$nav-item-padding-y};
44
- --nav-item-color: var(--body-color);
45
- --nav-item-hover-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
46
- --nav-item-focus-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
47
- --nav-item-active-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
48
- --nav-item-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
49
- --nav-label-hover-color: var(--medium);
50
- --nav-item-background: hsl(from var(--white) h s l / 0%);
51
- --nav-item-hover-background: hsl(from var(--white) h s l / 30%);
52
- --nav-item-focus-background: hsl(from var(--white) h s l / 30%);
53
- --nav-item-active-background: hsl(from var(--white) h s l / 20%);
54
- --nav-item-disabled-background: hsl(from var(--white) h s l / 0%);
55
-
56
- border-width: var(--nav-item-border-width);
57
- border-style: var(--nav-item-border-style);
58
- border-color: var(--nav-item-border-color);
59
- border-radius: var(--nav-item-border-radius);
60
- padding: var(--nav-item-padding-y) var(--nav-item-padding-x);
61
- color: var(--nav-item-color);
62
- background-color: var(--nav-item-background);
63
- line-height: var(--nav-item-line-height);
64
- white-space: nowrap;
65
- display: inline-flex;
66
- text-align: center;
67
- align-items: center;
68
- justify-content: center;
69
- vertical-align: middle;
70
- flex-shrink: 0;
71
- }
72
-
73
- & .nav__label {
74
- font-size: var(--font-size-small);
75
- font-weight: bolder;
76
- color: var(--nav-label-hover-color);
77
- }
78
-
79
- & .nav__title {
80
- font-family: $headings-font-family;
81
- font-style: $headings-font-style;
82
- font-weight: $headings-font-weight;
83
- color: $headings-color;
84
- }
85
-
86
- & .nav__item {
87
- text-decoration: none;
88
- cursor: pointer;
89
- user-select: none;
90
- outline: 0;
91
- transition: $form-transition;
92
-
93
- &:hover {
94
- color: var(--nav-item-hover-color);
95
- background: var(--nav-item-hover-background);
96
- }
97
-
98
- &:focus-visible {
99
- color: var(--nav-item-focus-color);
100
- background: var(--nav-item-focus-background);
101
- }
102
-
103
- &[data-active="true"],
104
- &:active,
105
- &.active {
106
- color: var(--nav-item-active-color);
107
- background: var(--nav-item-active-background);
108
-
109
- &:hover {
110
- background: var(--nav-item-hover-background);
111
- }
112
- }
113
-
114
- &:disabled,
115
- &.disabled,
116
- fieldset:disabled & {
117
- color: var(--nav-item-disabled-color);
118
- background: var(--nav-item-disabled-background);
119
- pointer-events: none;
120
- }
121
- }
122
-
123
- &.nav--column,
124
- &.nav--column > ul {
125
- flex-flow: column nowrap;
126
- align-items: stretch;
127
-
128
- & .nav__label,
129
- & .nav__title,
130
- & .nav__item {
131
- text-align: left;
132
- justify-content: flex-start;
133
- display: flex;
134
- }
135
- }
136
- }
1
+ @use "sass:color";
2
+ @use "./../variables" as *;
3
+ @use "./../mixins/list" as *;
4
+ @use "./../mixins/colors" as *;
5
+
6
+ .nav,
7
+ .nav > ul {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ list-style: none;
11
+ align-items: center;
12
+ position: relative;
13
+
14
+ @include make-list-unstyled;
15
+
16
+ & ul {
17
+ @include make-list-unstyled;
18
+
19
+ margin: 0;
20
+ }
21
+
22
+ & li {
23
+ margin: 0;
24
+ padding: 0;
25
+
26
+ & ul {
27
+ border-left: var(--nav-item-border-width) var(--nav-item-border-style) var(--nav-item-border-color);
28
+ margin: calc(var(--spacer) * 0.75);
29
+ padding-left: calc(var(--spacer) * 0.75);
30
+ }
31
+ }
32
+
33
+ & .nav__label,
34
+ & .nav__title,
35
+ & .nav__item {
36
+ --nav-item-border-width: 1px;
37
+ --nav-item-border-style: solid;
38
+ --nav-item-border-color: transparent;
39
+ --nav-item-active-border-color: transparent;
40
+ --nav-item-border-radius: 0;
41
+ --nav-item-line-height: #{$nav-item-line-height};
42
+ --nav-item-padding-x: #{$nav-item-padding-x};
43
+ --nav-item-padding-y: #{$nav-item-padding-y};
44
+ --nav-item-color: var(--body-color);
45
+ --nav-item-hover-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
46
+ --nav-item-focus-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
47
+ --nav-item-active-color: color-mix(in oklab, var(--body-color), #000 #{$link-shade-percentage});
48
+ --nav-item-disabled-color: hsl(from var(--body-color) h s l / #{$color-disabled-alpha});
49
+ --nav-label-hover-color: var(--medium);
50
+ --nav-item-background: hsl(from var(--white) h s l / 0%);
51
+ --nav-item-hover-background: hsl(from var(--white) h s l / 30%);
52
+ --nav-item-focus-background: hsl(from var(--white) h s l / 30%);
53
+ --nav-item-active-background: hsl(from var(--white) h s l / 20%);
54
+ --nav-item-disabled-background: hsl(from var(--white) h s l / 0%);
55
+
56
+ border-width: var(--nav-item-border-width);
57
+ border-style: var(--nav-item-border-style);
58
+ border-color: var(--nav-item-border-color);
59
+ border-radius: var(--nav-item-border-radius);
60
+ padding: var(--nav-item-padding-y) var(--nav-item-padding-x);
61
+ color: var(--nav-item-color);
62
+ background-color: var(--nav-item-background);
63
+ line-height: var(--nav-item-line-height);
64
+ white-space: nowrap;
65
+ display: inline-flex;
66
+ text-align: center;
67
+ align-items: center;
68
+ justify-content: center;
69
+ vertical-align: middle;
70
+ flex-shrink: 0;
71
+ }
72
+
73
+ & .nav__label {
74
+ font-size: var(--font-size-small);
75
+ font-weight: bolder;
76
+ color: var(--nav-label-hover-color);
77
+ }
78
+
79
+ & .nav__title {
80
+ font-style: $headings-font-style;
81
+ font-weight: $headings-font-weight;
82
+ color: $headings-color;
83
+ }
84
+
85
+ & .nav__item {
86
+ text-decoration: none;
87
+ cursor: pointer;
88
+ user-select: none;
89
+ outline: 0;
90
+ transition: $form-transition;
91
+
92
+ &:hover {
93
+ color: var(--nav-item-hover-color);
94
+ background: var(--nav-item-hover-background);
95
+ }
96
+
97
+ &:focus-visible {
98
+ color: var(--nav-item-focus-color);
99
+ background: var(--nav-item-focus-background);
100
+ }
101
+
102
+ &[data-active="true"],
103
+ &[aria-selected="true"],
104
+ &:active,
105
+ &.active {
106
+ color: var(--nav-item-active-color);
107
+ background: var(--nav-item-active-background);
108
+
109
+ &:hover {
110
+ background: var(--nav-item-hover-background);
111
+ }
112
+ }
113
+
114
+ &:disabled,
115
+ &.disabled,
116
+ fieldset:disabled & {
117
+ color: var(--nav-item-disabled-color);
118
+ background: var(--nav-item-disabled-background);
119
+ pointer-events: none;
120
+ }
121
+ }
122
+
123
+ &.nav--column,
124
+ &.nav--column > ul {
125
+ flex-flow: column nowrap;
126
+ align-items: stretch;
127
+
128
+ & .nav__label,
129
+ & .nav__title,
130
+ & .nav__item {
131
+ text-align: left;
132
+ justify-content: flex-start;
133
+ display: flex;
134
+ }
135
+ }
136
+ }
@@ -1,61 +1,61 @@
1
- @use "sass:color";
2
- @use "./../helpers" as *;
3
- @use "./../variables" as *;
4
- @use "./../functions" as *;
5
- @use "./../mixins/group" as *;
6
-
7
- .pill {
8
- --pill-color: var(--body-color);
9
- --pill-border-color: var(--border-color-main);
10
- --pill-background: var(--white);
11
-
12
- // Static
13
- --pill-padding-x: #{$pill-padding-x};
14
- --pill-padding-y: #{$pill-padding-y};
15
- --pill-border-width: 1px;
16
- --pill-border-style: solid;
17
- --pill-font-weight: #{$pill-font-weight};
18
-
19
- @include rfs($pill-font-size, --pill-font-size);
20
-
21
- @include font-size(var(--pill-font-size));
22
-
23
- color: var(--pill-color);
24
- padding: var(--pill-padding-y) var(--pill-padding-x);
25
- border: var(--pill-border-width) var(--pill-border-style) var(--pill-border-color);
26
- background: var(--pill-background);
27
- font-weight: var(--pill-font-weight);
28
- border-radius: var(--border-radius-round);
29
- min-width: var(--spacer);
30
- line-height: 1;
31
- text-decoration: none;
32
- white-space: nowrap;
33
- display: inline-flex;
34
- align-items: center;
35
- vertical-align: top;
36
- justify-content: center;
37
- height: auto;
38
- outline: 0;
39
- }
40
-
41
- @each $key, $value in $all-colors {
42
- .pill--#{$key} {
43
- --pill-color: #{color-flip($key, $value, $pill-color-flip-threshold, $pill-color-flip-l)};
44
- --pill-background: var(--#{$key});
45
- --pill-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
46
- }
47
- }
48
-
49
- .pills {
50
- @include make-group-row;
51
-
52
- & .pill {
53
- &:empty {
54
- align-self: stretch;
55
- }
56
- }
57
-
58
- &.pills--grouped {
59
- @include make-grouped-row(".pill");
60
- }
61
- }
1
+ @use "sass:color";
2
+ @use "./../helpers" as *;
3
+ @use "./../variables" as *;
4
+ @use "./../functions" as *;
5
+ @use "./../mixins/group" as *;
6
+
7
+ .pill {
8
+ --pill-color: var(--body-color);
9
+ --pill-border-color: var(--border-color-main);
10
+ --pill-background: var(--white);
11
+
12
+ // Static
13
+ --pill-padding-x: #{$pill-padding-x};
14
+ --pill-padding-y: #{$pill-padding-y};
15
+ --pill-border-width: 1px;
16
+ --pill-border-style: solid;
17
+ --pill-font-weight: #{$pill-font-weight};
18
+
19
+ @include rfs($pill-font-size, --pill-font-size);
20
+
21
+ @include font-size(var(--pill-font-size));
22
+
23
+ color: var(--pill-color);
24
+ padding: var(--pill-padding-y) var(--pill-padding-x);
25
+ border: var(--pill-border-width) var(--pill-border-style) var(--pill-border-color);
26
+ background: var(--pill-background);
27
+ font-weight: var(--pill-font-weight);
28
+ border-radius: var(--border-radius-round);
29
+ min-width: var(--spacer);
30
+ line-height: 1;
31
+ text-decoration: none;
32
+ white-space: nowrap;
33
+ display: inline-flex;
34
+ align-items: center;
35
+ vertical-align: top;
36
+ justify-content: center;
37
+ height: auto;
38
+ outline: 0;
39
+ }
40
+
41
+ @each $key, $value in $all-colors {
42
+ .pill--#{$key} {
43
+ --pill-color: #{color-flip($key, $value, $pill-color-flip-threshold, $pill-color-flip-l)};
44
+ --pill-background: var(--#{$key});
45
+ --pill-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
46
+ }
47
+ }
48
+
49
+ .pills {
50
+ @include make-group-row;
51
+
52
+ & .pill {
53
+ &:empty {
54
+ align-self: stretch;
55
+ }
56
+ }
57
+
58
+ &.pills--grouped {
59
+ @include make-grouped-row(".pill");
60
+ }
61
+ }
@@ -1,96 +1,96 @@
1
- @use "./../variables" as *;
2
-
3
- .table {
4
- width: 100%;
5
-
6
- & td,
7
- & th {
8
- padding: $table-cell-padding-y $table-cell-padding-x;
9
- vertical-align: $table-cell-valign;
10
- border-style: $table-cell-border-style;
11
- border-color: var(--border-color-main);
12
- border-width: 0 0 $table-cell-border-width 0;
13
- }
14
-
15
- & thead {
16
- & tr {
17
- background-color: $table-head-background-color;
18
-
19
- & > * {
20
- border-width: 0 0 $table-th-border-width 0;
21
- }
22
- }
23
- }
24
-
25
- & tbody {
26
- & tr {
27
- background-color: $table-background-color;
28
- }
29
- }
30
-
31
- & tfoot {
32
- & tr {
33
- & > * {
34
- border-width: $table-th-border-width 0 $table-cell-border-width 0;
35
- }
36
- }
37
- }
38
-
39
- &.table--small {
40
- & td,
41
- & th {
42
- padding: $table-small-cell-padding-y $table-small-cell-padding-x;
43
- }
44
- }
45
-
46
- &.table--bordered {
47
- & td,
48
- & th {
49
- border-width: $table-cell-border-width;
50
- }
51
-
52
- & thead {
53
- & tr {
54
- & > * {
55
- border-width: $table-cell-border-width $table-cell-border-width $table-th-border-width
56
- $table-cell-border-width;
57
- }
58
- }
59
- }
60
-
61
- & tfoot {
62
- & tr {
63
- & > * {
64
- border-width: $table-th-border-width $table-cell-border-width $table-cell-border-width
65
- $table-cell-border-width;
66
- }
67
- }
68
- }
69
- }
70
-
71
- &.table--striped {
72
- & tbody {
73
- & tr {
74
- &:nth-of-type(even) {
75
- background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
76
- }
77
-
78
- &:nth-of-type(odd) {
79
- background-color: hsl(from var(--light) h s l / #{$table-striped-background-opacity});
80
- }
81
- }
82
- }
83
- }
84
-
85
- &.table--hover {
86
- & tbody {
87
- & tr {
88
- &:hover {
89
- & > * {
90
- background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
91
- }
92
- }
93
- }
94
- }
95
- }
96
- }
1
+ @use "./../variables" as *;
2
+
3
+ .table {
4
+ width: 100%;
5
+
6
+ & td,
7
+ & th {
8
+ padding: $table-cell-padding-y $table-cell-padding-x;
9
+ vertical-align: $table-cell-valign;
10
+ border-style: $table-cell-border-style;
11
+ border-color: var(--border-color-main);
12
+ border-width: 0 0 $table-cell-border-width 0;
13
+ }
14
+
15
+ & thead {
16
+ & tr {
17
+ background-color: $table-head-background-color;
18
+
19
+ & > * {
20
+ border-width: 0 0 $table-th-border-width 0;
21
+ }
22
+ }
23
+ }
24
+
25
+ & tbody {
26
+ & tr {
27
+ background-color: $table-background-color;
28
+ }
29
+ }
30
+
31
+ & tfoot {
32
+ & tr {
33
+ & > * {
34
+ border-width: $table-th-border-width 0 $table-cell-border-width 0;
35
+ }
36
+ }
37
+ }
38
+
39
+ &.table--small {
40
+ & td,
41
+ & th {
42
+ padding: $table-small-cell-padding-y $table-small-cell-padding-x;
43
+ }
44
+ }
45
+
46
+ &.table--bordered {
47
+ & td,
48
+ & th {
49
+ border-width: $table-cell-border-width;
50
+ }
51
+
52
+ & thead {
53
+ & tr {
54
+ & > * {
55
+ border-width: $table-cell-border-width $table-cell-border-width $table-th-border-width
56
+ $table-cell-border-width;
57
+ }
58
+ }
59
+ }
60
+
61
+ & tfoot {
62
+ & tr {
63
+ & > * {
64
+ border-width: $table-th-border-width $table-cell-border-width $table-cell-border-width
65
+ $table-cell-border-width;
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ &.table--striped {
72
+ & tbody {
73
+ & tr {
74
+ &:nth-of-type(even) {
75
+ background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
76
+ }
77
+
78
+ &:nth-of-type(odd) {
79
+ background-color: hsl(from var(--light) h s l / #{$table-striped-background-opacity});
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ &.table--hover {
86
+ & tbody {
87
+ & tr {
88
+ &:hover {
89
+ & > * {
90
+ background-color: hsl(from var(--dark) h s l / #{$table-striped-background-opacity});
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }