claritas-web-framework 8.5.8 → 8.5.91

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 -264
  12. package/sass/_root.scss +56 -56
  13. package/sass/_utilities.scss +17 -17
  14. package/sass/_variables.scss +445 -445
  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 -170
  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 -261
  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 -135
  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,93 +1,88 @@
1
- @use "sass:color";
2
- @use "./../variables" as *;
3
-
4
- .tabs--wrapper {
5
- --tabs-border-width: 1px;
6
- --tabs-border-style: solid;
7
- --tabs-border-color: var(--border-color-main);
8
- --tabs-background: var(--white);
9
-
10
- $tabs-margin-fallback: if($enable-margins, var(--spacer), 0);
11
-
12
- margin-bottom: var(--tabs-margin-bottom, #{$tabs-margin-fallback});
13
-
14
- & .nav--tabs {
15
- margin-bottom: 0;
16
- z-index: 1;
17
- overflow: unset;
18
- flex-wrap: nowrap;
19
-
20
- &:not(:empty) {
21
- border-bottom: var(--tabs-border-width) var(--tabs-border-style) var(--tabs-border-color);
22
- }
23
-
24
- & .nav__item {
25
- --nav-item-border-color: var(--tabs-border-color);
26
- --nav-item-border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
27
- --nav-item-background: var(--tabs-background);
28
- --nav-item-active-background: transparent;
29
-
30
- margin-bottom: -1px;
31
-
32
- &:not(:last-child) {
33
- margin-right: calc(var(--spacer) * 0.125);
34
- }
35
-
36
- &[data-active="true"],
37
- &:active,
38
- &.active {
39
- border-bottom-color: var(--tabs-background);
40
- }
41
- }
42
- }
43
-
44
- & .tabs__body {
45
- border-width: var(--tabs-border-width);
46
- border-style: var(--tabs-border-style);
47
- border-color: transparent var(--tabs-border-color) var(--tabs-border-color);
48
- background-color: var(--tabs-background);
49
- border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
50
- display: none;
51
- flex-direction: column;
52
- min-width: 0;
53
- word-wrap: break-word;
54
- width: 100%;
55
- position: relative;
56
- margin-bottom: var(--spacer);
57
- padding: var(--spacer);
58
-
59
- & > *:last-child {
60
- margin-bottom: 0;
61
- }
62
-
63
- &[data-active="true"],
64
- &:active,
65
- &.active {
66
- display: flex;
67
- }
68
- }
69
-
70
- &.card {
71
- & .nav--tabs {
72
- & .nav__item {
73
- --nav-item-border-radius: 0;
74
- --nav-item-active-background: color-mix(in oklab, var(--body-color), #fff 95%);
75
- --nav-item-border-color: transparent var(--tabs-border-color) transparent transparent;
76
-
77
- margin: 0;
78
-
79
- &:first-child {
80
- border-top-left-radius: calc(var(--card-border-radius) - 1px);
81
- }
82
- }
83
- }
84
-
85
- & .tabs__body {
86
- border: 0 none;
87
- padding: var(--spacer);
88
- margin: 0;
89
- border-bottom-left-radius: calc(var(--border-radius-medium) - 1px);
90
- border-bottom-right-radius: calc(var(--border-radius-medium) - 1px);
91
- }
92
- }
93
- }
1
+ @use "sass:color";
2
+ @use "./../variables" as *;
3
+
4
+ .tabs--wrapper {
5
+ --tabs-border-width: 1px;
6
+ --tabs-border-style: solid;
7
+ --tabs-border-color: var(--border-color-main);
8
+ --tabs-background: var(--white);
9
+
10
+ $tabs-margin-fallback: if($enable-margins, var(--spacer), 0);
11
+
12
+ margin-bottom: var(--tabs-margin-bottom, #{$tabs-margin-fallback});
13
+
14
+ & .nav--tabs {
15
+ margin-bottom: 0;
16
+ z-index: 1;
17
+ overflow: unset;
18
+ flex-wrap: nowrap;
19
+
20
+ &:not(:empty) {
21
+ border-bottom: var(--tabs-border-width) var(--tabs-border-style) var(--tabs-border-color);
22
+ }
23
+
24
+ & .nav__item {
25
+ --nav-item-border-color: var(--tabs-border-color);
26
+ --nav-item-border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
27
+ --nav-item-background: var(--tabs-background);
28
+ --nav-item-active-background: transparent;
29
+
30
+ margin-bottom: -1px;
31
+
32
+ &:not(:last-child) {
33
+ margin-right: calc(var(--spacer) * 0.125);
34
+ }
35
+
36
+ &[data-active="true"],
37
+ &[aria-selected="true"],
38
+ &:active,
39
+ &.active {
40
+ border-bottom-color: var(--tabs-background);
41
+ }
42
+ }
43
+ }
44
+
45
+ & .tabs__body {
46
+ border-width: var(--tabs-border-width);
47
+ border-style: var(--tabs-border-style);
48
+ border-color: transparent var(--tabs-border-color) var(--tabs-border-color);
49
+ background-color: var(--tabs-background);
50
+ border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
51
+ display: var(--tabs-body-display, flex);
52
+ flex-direction: column;
53
+ min-width: 0;
54
+ word-wrap: break-word;
55
+ width: 100%;
56
+ position: relative;
57
+ margin-bottom: var(--spacer);
58
+ padding: var(--spacer);
59
+
60
+ & > *:last-child {
61
+ margin-bottom: 0;
62
+ }
63
+ }
64
+
65
+ &.card {
66
+ & .nav--tabs {
67
+ & .nav__item {
68
+ --nav-item-border-radius: 0;
69
+ --nav-item-active-background: color-mix(in oklab, var(--body-color), #fff 95%);
70
+ --nav-item-border-color: transparent var(--tabs-border-color) transparent transparent;
71
+
72
+ margin: 0;
73
+
74
+ &:first-child {
75
+ border-top-left-radius: calc(var(--card-border-radius) - 1px);
76
+ }
77
+ }
78
+ }
79
+
80
+ & .tabs__body {
81
+ border: 0 none;
82
+ padding: var(--spacer);
83
+ margin: 0;
84
+ border-bottom-left-radius: calc(var(--border-radius-medium) - 1px);
85
+ border-bottom-right-radius: calc(var(--border-radius-medium) - 1px);
86
+ }
87
+ }
88
+ }
@@ -1,72 +1,72 @@
1
- @use "sass:color";
2
- @use "./../helpers" as *;
3
- @use "./../variables" as *;
4
- @use "./../functions" as *;
5
- @use "./../mixins/colors" as *;
6
- @use "./../mixins/group" as *;
7
-
8
- .tag {
9
- --tag-color: var(--body-color);
10
- --tag-border-color: var(--border-color-main);
11
- --tag-background: var(--white);
12
-
13
- // Static
14
- --tag-padding-x: #{$tag-padding-x};
15
- --tag-padding-y: #{$tag-padding-y};
16
- --tag-border-width: 1px;
17
- --tag-border-style: solid;
18
- --tag-border-radius: var(--border-radius-medium);
19
- --tag-round-border-radius: var(--border-radius-round);
20
- --tag-font-weight: #{$tag-font-weight};
21
-
22
- @include rfs($tag-font-size, --tag-font-size);
23
-
24
- @include font-size(var(--tag-font-size));
25
-
26
- color: var(--tag-color);
27
- padding: var(--tag-padding-y) var(--tag-padding-x);
28
- border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);
29
- border-radius: var(--tag-border-radius);
30
- background: var(--tag-background);
31
- font-weight: var(--tag-font-weight);
32
- line-height: 1;
33
- text-decoration: none;
34
- white-space: nowrap;
35
- display: inline-flex;
36
- align-items: center;
37
- vertical-align: top;
38
- justify-content: center;
39
- height: auto;
40
- min-width: var(--spacer);
41
- outline: 0;
42
-
43
- &.tag--rounded {
44
- border-radius: var(--tag-round-border-radius);
45
- }
46
-
47
- &.tag--square {
48
- border-radius: 0;
49
- }
50
- }
51
-
52
- @each $key, $value in $all-colors {
53
- .tag--#{$key} {
54
- --tag-color: #{color-flip($key, $value, $tag-color-flip-threshold, $tag-color-flip-l)};
55
- --tag-background: var(--#{$key});
56
- --tag-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
57
- }
58
- }
59
-
60
- .tags {
61
- @include make-group-row;
62
-
63
- & .tag {
64
- &:empty {
65
- align-self: stretch;
66
- }
67
- }
68
-
69
- &.tags--grouped {
70
- @include make-grouped-row(".tag");
71
- }
72
- }
1
+ @use "sass:color";
2
+ @use "./../helpers" as *;
3
+ @use "./../variables" as *;
4
+ @use "./../functions" as *;
5
+ @use "./../mixins/colors" as *;
6
+ @use "./../mixins/group" as *;
7
+
8
+ .tag {
9
+ --tag-color: var(--body-color);
10
+ --tag-border-color: var(--border-color-main);
11
+ --tag-background: var(--white);
12
+
13
+ // Static
14
+ --tag-padding-x: #{$tag-padding-x};
15
+ --tag-padding-y: #{$tag-padding-y};
16
+ --tag-border-width: 1px;
17
+ --tag-border-style: solid;
18
+ --tag-border-radius: var(--border-radius-medium);
19
+ --tag-round-border-radius: var(--border-radius-round);
20
+ --tag-font-weight: #{$tag-font-weight};
21
+
22
+ @include rfs($tag-font-size, --tag-font-size);
23
+
24
+ @include font-size(var(--tag-font-size));
25
+
26
+ color: var(--tag-color);
27
+ padding: var(--tag-padding-y) var(--tag-padding-x);
28
+ border: var(--tag-border-width) var(--tag-border-style) var(--tag-border-color);
29
+ border-radius: var(--tag-border-radius);
30
+ background: var(--tag-background);
31
+ font-weight: var(--tag-font-weight);
32
+ line-height: 1;
33
+ text-decoration: none;
34
+ white-space: nowrap;
35
+ display: inline-flex;
36
+ align-items: center;
37
+ vertical-align: top;
38
+ justify-content: center;
39
+ height: auto;
40
+ min-width: var(--spacer);
41
+ outline: 0;
42
+
43
+ &.tag--rounded {
44
+ border-radius: var(--tag-round-border-radius);
45
+ }
46
+
47
+ &.tag--square {
48
+ border-radius: 0;
49
+ }
50
+ }
51
+
52
+ @each $key, $value in $all-colors {
53
+ .tag--#{$key} {
54
+ --tag-color: #{color-flip($key, $value, $tag-color-flip-threshold, $tag-color-flip-l)};
55
+ --tag-background: var(--#{$key});
56
+ --tag-border-color: color-mix(in oklab, var(--#{$key}), #000 #{$border-shade-percentage});
57
+ }
58
+ }
59
+
60
+ .tags {
61
+ @include make-group-row;
62
+
63
+ & .tag {
64
+ &:empty {
65
+ align-self: stretch;
66
+ }
67
+ }
68
+
69
+ &.tags--grouped {
70
+ @include make-grouped-row(".tag");
71
+ }
72
+ }
@@ -1,101 +1,101 @@
1
- @use "sass:color";
2
- @use "./../variables" as *;
3
- @use "./../mixins/group" as *;
4
-
5
- .tile {
6
- --tile-background: var(--white);
7
- --tile-hover-background: color-mix(in oklab, var(--body-color), #fff 95%);
8
- --tile-border-width: 1px;
9
- --tile-border-left-width: 4px;
10
- --tile-border-left-color: color-mix(in oklab, var(--body-color), #fff 95%);
11
- --tile-border-style: solid;
12
- --tile-border-color: var(--border-color-main);
13
- --tile-border-radius: 0;
14
- --tile-header-footer-padding-y: #{$tile-header-footer-padding-y};
15
- --tile-header-footer-padding-x: #{$tile-header-footer-padding-x};
16
- --tile-body-padding-y: #{$tile-body-padding-y};
17
- --tile-body-padding-x: #{$tile-body-padding-x};
18
-
19
- background-color: var(--tile-background);
20
- border: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
21
- border-left-width: var(--tile-border-left-width);
22
- border-left-color: var(--tile-border-left-color);
23
- border-radius: var(--tile-border-radius);
24
- display: flex;
25
- flex-direction: column;
26
- min-width: 0;
27
- word-wrap: break-word;
28
- flex: 1 1 auto;
29
- position: relative;
30
-
31
- $tile-margin-fallback: if($enable-margins, var(--spacer), 0);
32
-
33
- margin-bottom: var(--tile-margin-bottom, #{$tile-margin-fallback});
34
-
35
- & > * {
36
- &:first-child {
37
- border-top-left-radius: calc(var(--tile-border-radius) - 1px);
38
- border-top-right-radius: calc(var(--tile-border-radius) - 1px);
39
- }
40
-
41
- &:last-child {
42
- border-bottom-left-radius: calc(var(--tile-border-radius) - 1px);
43
- border-bottom-right-radius: calc(var(--tile-border-radius) - 1px);
44
- }
45
- }
46
-
47
- & .tile__header,
48
- & .tile__footer {
49
- display: flex;
50
- flex-flow: row wrap;
51
- align-items: normal;
52
- padding: var(--tile-header-footer-padding-y) var(--tile-header-footer-padding-x);
53
-
54
- & > * {
55
- margin-bottom: 0;
56
- }
57
- }
58
-
59
- & .tile__header {
60
- border-bottom: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
61
- }
62
-
63
- & .tile__footer {
64
- margin-top: auto;
65
- border-top: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
66
- }
67
-
68
- & .tile__body {
69
- flex: 1 1 auto;
70
- width: 100%;
71
- padding: var(--tile-body-padding-y) var(--tile-body-padding-x);
72
-
73
- & + .tile__body {
74
- border-top: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
75
- }
76
- }
77
-
78
- & .tile__image {
79
- flex: 1 0 100%;
80
- overflow: hidden;
81
-
82
- & img {
83
- width: 100%;
84
- height: auto;
85
- }
86
- }
87
- }
88
-
89
- .tiles {
90
- @include make-group-column;
91
-
92
- &.tiles--grouped {
93
- @include make-grouped-column;
94
- }
95
- }
96
-
97
- @each $key, $value in $all-colors {
98
- .tile--#{$key} {
99
- --tile-border-left-color: var(--#{$key});
100
- }
101
- }
1
+ @use "sass:color";
2
+ @use "./../variables" as *;
3
+ @use "./../mixins/group" as *;
4
+
5
+ .tile {
6
+ --tile-background: var(--white);
7
+ --tile-hover-background: color-mix(in oklab, var(--body-color), #fff 95%);
8
+ --tile-border-width: 1px;
9
+ --tile-border-left-width: 4px;
10
+ --tile-border-left-color: color-mix(in oklab, var(--body-color), #fff 95%);
11
+ --tile-border-style: solid;
12
+ --tile-border-color: var(--border-color-main);
13
+ --tile-border-radius: 0;
14
+ --tile-header-footer-padding-y: #{$tile-header-footer-padding-y};
15
+ --tile-header-footer-padding-x: #{$tile-header-footer-padding-x};
16
+ --tile-body-padding-y: #{$tile-body-padding-y};
17
+ --tile-body-padding-x: #{$tile-body-padding-x};
18
+
19
+ background-color: var(--tile-background);
20
+ border: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
21
+ border-left-width: var(--tile-border-left-width);
22
+ border-left-color: var(--tile-border-left-color);
23
+ border-radius: var(--tile-border-radius);
24
+ display: flex;
25
+ flex-direction: column;
26
+ min-width: 0;
27
+ word-wrap: break-word;
28
+ flex: 1 1 auto;
29
+ position: relative;
30
+
31
+ $tile-margin-fallback: if($enable-margins, var(--spacer), 0);
32
+
33
+ margin-bottom: var(--tile-margin-bottom, #{$tile-margin-fallback});
34
+
35
+ & > * {
36
+ &:first-child {
37
+ border-top-left-radius: calc(var(--tile-border-radius) - 1px);
38
+ border-top-right-radius: calc(var(--tile-border-radius) - 1px);
39
+ }
40
+
41
+ &:last-child {
42
+ border-bottom-left-radius: calc(var(--tile-border-radius) - 1px);
43
+ border-bottom-right-radius: calc(var(--tile-border-radius) - 1px);
44
+ }
45
+ }
46
+
47
+ & .tile__header,
48
+ & .tile__footer {
49
+ display: flex;
50
+ flex-flow: row wrap;
51
+ align-items: normal;
52
+ padding: var(--tile-header-footer-padding-y) var(--tile-header-footer-padding-x);
53
+
54
+ & > * {
55
+ margin-bottom: 0;
56
+ }
57
+ }
58
+
59
+ & .tile__header {
60
+ border-bottom: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
61
+ }
62
+
63
+ & .tile__footer {
64
+ margin-top: auto;
65
+ border-top: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
66
+ }
67
+
68
+ & .tile__body {
69
+ flex: 1 1 auto;
70
+ width: 100%;
71
+ padding: var(--tile-body-padding-y) var(--tile-body-padding-x);
72
+
73
+ & + .tile__body {
74
+ border-top: var(--tile-border-width) var(--tile-border-style) var(--tile-border-color);
75
+ }
76
+ }
77
+
78
+ & .tile__image {
79
+ flex: 1 0 100%;
80
+ overflow: hidden;
81
+
82
+ & img {
83
+ width: 100%;
84
+ height: auto;
85
+ }
86
+ }
87
+ }
88
+
89
+ .tiles {
90
+ @include make-group-column;
91
+
92
+ &.tiles--grouped {
93
+ @include make-grouped-column;
94
+ }
95
+ }
96
+
97
+ @each $key, $value in $all-colors {
98
+ .tile--#{$key} {
99
+ --tile-border-left-color: var(--#{$key});
100
+ }
101
+ }