@stackoverflow/stacks 2.7.2 → 2.7.4

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 (85) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +158 -180
  3. package/dist/css/stacks.css +18 -4
  4. package/dist/css/stacks.min.css +1 -1
  5. package/dist/js/stacks.min.js +1 -1
  6. package/lib/atomic/border.less +139 -139
  7. package/lib/atomic/color.less +36 -36
  8. package/lib/atomic/flex.less +426 -426
  9. package/lib/atomic/gap.less +44 -44
  10. package/lib/atomic/grid.less +139 -139
  11. package/lib/atomic/misc.less +374 -374
  12. package/lib/atomic/spacing.less +98 -98
  13. package/lib/atomic/typography.less +266 -264
  14. package/lib/atomic/width-height.less +194 -194
  15. package/lib/base/body.less +44 -44
  16. package/lib/base/configuration-static.less +61 -61
  17. package/lib/base/fieldset.less +5 -5
  18. package/lib/base/icon.less +11 -11
  19. package/lib/base/internal.less +220 -220
  20. package/lib/base/reset-meyer.less +64 -64
  21. package/lib/base/reset-normalize.less +449 -449
  22. package/lib/base/reset.less +20 -20
  23. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  24. package/lib/components/avatar/avatar.less +108 -108
  25. package/lib/components/award-bling/award-bling.less +31 -31
  26. package/lib/components/banner/banner.less +44 -44
  27. package/lib/components/banner/banner.ts +149 -149
  28. package/lib/components/block-link/block-link.less +82 -82
  29. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  30. package/lib/components/button-group/button-group.less +82 -82
  31. package/lib/components/card/card.less +37 -37
  32. package/lib/components/check-control/check-control.less +17 -17
  33. package/lib/components/check-group/check-group.less +19 -19
  34. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  35. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  36. package/lib/components/code-block/code-block.less +116 -116
  37. package/lib/components/description/description.less +9 -9
  38. package/lib/components/empty-state/empty-state.less +16 -16
  39. package/lib/components/expandable/expandable.less +118 -118
  40. package/lib/components/input-fill/input-fill.less +35 -35
  41. package/lib/components/input-icon/input-icon.less +45 -45
  42. package/lib/components/input-message/input-message.less +49 -49
  43. package/lib/components/label/label.less +110 -110
  44. package/lib/components/link/link.less +7 -1
  45. package/lib/components/link-preview/link-preview.less +148 -148
  46. package/lib/components/menu/menu.less +41 -41
  47. package/lib/components/modal/modal.less +118 -118
  48. package/lib/components/modal/modal.ts +383 -383
  49. package/lib/components/navigation/navigation.less +136 -136
  50. package/lib/components/navigation/navigation.ts +128 -128
  51. package/lib/components/page-title/page-title.less +51 -51
  52. package/lib/components/popover/popover.less +159 -159
  53. package/lib/components/popover/popover.ts +651 -651
  54. package/lib/components/post-summary/post-summary.less +457 -457
  55. package/lib/components/progress-bar/progress-bar.less +291 -291
  56. package/lib/components/prose/prose.less +452 -452
  57. package/lib/components/select/select.less +138 -138
  58. package/lib/components/spinner/spinner.less +103 -103
  59. package/lib/components/table/table.ts +296 -296
  60. package/lib/components/table-container/table-container.less +4 -4
  61. package/lib/components/tag/tag.less +186 -186
  62. package/lib/components/toast/toast.less +35 -35
  63. package/lib/components/toast/toast.ts +357 -357
  64. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  65. package/lib/components/topbar/topbar.less +553 -553
  66. package/lib/components/uploader/uploader.less +205 -205
  67. package/lib/components/user-card/user-card.less +129 -129
  68. package/lib/controllers.ts +33 -33
  69. package/lib/exports/color-mixins.less +283 -283
  70. package/lib/exports/constants-helpers.less +108 -108
  71. package/lib/exports/constants-type.less +155 -155
  72. package/lib/exports/exports.less +15 -15
  73. package/lib/exports/mixins.less +334 -333
  74. package/lib/exports/spacing-mixins.less +67 -67
  75. package/lib/index.ts +32 -32
  76. package/lib/input-utils.less +41 -41
  77. package/lib/stacks-dynamic.less +24 -24
  78. package/lib/stacks-static.less +93 -93
  79. package/lib/stacks.less +13 -13
  80. package/lib/test/assertions.ts +36 -36
  81. package/lib/test/less-test-utils.ts +28 -28
  82. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  83. package/lib/tsconfig.build.json +4 -4
  84. package/lib/tsconfig.json +17 -17
  85. package/package.json +26 -22
@@ -1,118 +1,118 @@
1
- .s-modal {
2
- // TODO Replace this Less variable with a CSS variable or other solution
3
- --_mo-bg: fade(.set-black()[600], 50%); // Background remains fixed
4
- --_mo-hmx: unset;
5
- --_mo-wmx: unset;
6
- --_mo-close-t: var(--su8);
7
- --_mo-dialog-bg: var(--white);
8
- --_mo-dialog-pt: var(--su24);
9
- --_mo-header-fc: var(--fc-dark);
10
-
11
- // CONTEXTUAL STYLES
12
- .dark-mode({
13
- --_mo-dialog-bg: var(--black-225);
14
- });
15
-
16
- .highcontrast-dark-mode({
17
- --_mo-dialog-bg: var(--black-200);
18
- });
19
-
20
- &[aria-hidden="false"] {
21
- &,
22
- .s-modal--dialog {
23
- opacity: 1;
24
- transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
25
- transition: opacity 100ms var(--te-smooth) 10ms, z-index 0s 0s, visibility 0s 0s, transform 100ms var(--te-smooth) 10ms, transform 100ms var(--te-smooth) 10ms; // Transition in
26
- visibility: visible;
27
- z-index: var(--zi-modals);
28
- }
29
- }
30
-
31
- // MODIFIERS
32
- &&__celebration {
33
- --_mo-dialog-pt: var(--su64);
34
-
35
- .s-modal--dialog {
36
- .bg-confetti-animated;
37
- }
38
- }
39
-
40
- &&__full {
41
- --_mo-hmx: calc(100% - var(--su48));
42
- --_mo-wmx: calc(100% - var(--su48));
43
- }
44
-
45
- // VARIANTS
46
- &.has-danger,
47
- &&__danger {
48
- --_mo-bg: darken(fade(.set-red()[600], 50%), 18%);
49
- --_mo-header-fc: var(--red-500);
50
- }
51
-
52
- // CHILD ELEMENTS
53
- & &--body {
54
- color: var(--fc-medium);
55
- margin-bottom: var(--su24);
56
- }
57
-
58
- & &--close {
59
- // [1] To override .s-btn class attributes
60
- .svg-icon {
61
- margin: 0 !important;
62
- }
63
-
64
- padding: var(--su12) !important; // [1]
65
- position: absolute !important; // [1]
66
- right: var(--su8);
67
- top: var(--_mo-close-t);
68
- }
69
-
70
- & &--dialog {
71
- padding: var(--_mo-dialog-pt) var(--su24) var(--su24);
72
-
73
- @scrollbar-styles();
74
- backface-visibility: hidden;
75
- background-color: var(--_mo-dialog-bg);
76
- border-radius: var(--br-lg);
77
- box-shadow: var(--bs-lg);
78
- max-height: 100%;
79
- max-width: 600px;
80
- opacity: 0;
81
- overflow-y: auto;
82
- transform: translate3d(0, 30%, 0) scale3d(0.6, 0.6, 0.6);
83
- transition: opacity 200ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms, transform 100ms var(--te-smooth) 0s, transform 100ms var(--te-smooth) 0s; // Transition out
84
- visibility: hidden;
85
- will-change: visibility, z-index, opacity, transform; // Not supported by Edge
86
- z-index: var(--zi-hide); // Make sure it's also below everything so we can't interact with it.
87
- }
88
-
89
- & &--footer {
90
- margin-top: var(--su24);
91
- }
92
-
93
- & &--header {
94
- color: var(--_mo-header-fc);
95
-
96
- font-size: var(--fs-headline1);
97
- font-weight: normal;
98
- line-height: var(--lh-sm);
99
- margin-bottom: var(--su16);
100
- margin-right: var(--su24);
101
- }
102
-
103
- background-color: var(--_mo-bg);
104
- max-height: var(--_mo-hmx);
105
- max-width: var(--_mo-wmx);
106
-
107
- align-items: center;
108
- backface-visibility: hidden;
109
- display: flex;
110
- inset: 0; // This fills the entire viewport without having to worry about size.
111
- justify-content: center;
112
- opacity: 0;
113
- position: fixed;
114
- transition: opacity 100ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms; // Transition out
115
- visibility: hidden;
116
- will-change: visibility, z-index, opacity; // Not supported in Edge
117
- z-index: var(--zi-hide); // Make sure it's also below everything so we can't interact with it.
118
- }
1
+ .s-modal {
2
+ // TODO Replace this Less variable with a CSS variable or other solution
3
+ --_mo-bg: fade(.set-black()[600], 50%); // Background remains fixed
4
+ --_mo-hmx: unset;
5
+ --_mo-wmx: unset;
6
+ --_mo-close-t: var(--su8);
7
+ --_mo-dialog-bg: var(--white);
8
+ --_mo-dialog-pt: var(--su24);
9
+ --_mo-header-fc: var(--fc-dark);
10
+
11
+ // CONTEXTUAL STYLES
12
+ .dark-mode({
13
+ --_mo-dialog-bg: var(--black-225);
14
+ });
15
+
16
+ .highcontrast-dark-mode({
17
+ --_mo-dialog-bg: var(--black-200);
18
+ });
19
+
20
+ &[aria-hidden="false"] {
21
+ &,
22
+ .s-modal--dialog {
23
+ opacity: 1;
24
+ transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
25
+ transition: opacity 100ms var(--te-smooth) 10ms, z-index 0s 0s, visibility 0s 0s, transform 100ms var(--te-smooth) 10ms, transform 100ms var(--te-smooth) 10ms; // Transition in
26
+ visibility: visible;
27
+ z-index: var(--zi-modals);
28
+ }
29
+ }
30
+
31
+ // MODIFIERS
32
+ &&__celebration {
33
+ --_mo-dialog-pt: var(--su64);
34
+
35
+ .s-modal--dialog {
36
+ .bg-confetti-animated;
37
+ }
38
+ }
39
+
40
+ &&__full {
41
+ --_mo-hmx: calc(100% - var(--su48));
42
+ --_mo-wmx: calc(100% - var(--su48));
43
+ }
44
+
45
+ // VARIANTS
46
+ &.has-danger,
47
+ &&__danger {
48
+ --_mo-bg: darken(fade(.set-red()[600], 50%), 18%);
49
+ --_mo-header-fc: var(--red-500);
50
+ }
51
+
52
+ // CHILD ELEMENTS
53
+ & &--body {
54
+ color: var(--fc-medium);
55
+ margin-bottom: var(--su24);
56
+ }
57
+
58
+ & &--close {
59
+ // [1] To override .s-btn class attributes
60
+ .svg-icon {
61
+ margin: 0 !important;
62
+ }
63
+
64
+ padding: var(--su12) !important; // [1]
65
+ position: absolute !important; // [1]
66
+ right: var(--su8);
67
+ top: var(--_mo-close-t);
68
+ }
69
+
70
+ & &--dialog {
71
+ padding: var(--_mo-dialog-pt) var(--su24) var(--su24);
72
+
73
+ @scrollbar-styles();
74
+ backface-visibility: hidden;
75
+ background-color: var(--_mo-dialog-bg);
76
+ border-radius: var(--br-lg);
77
+ box-shadow: var(--bs-lg);
78
+ max-height: 100%;
79
+ max-width: 600px;
80
+ opacity: 0;
81
+ overflow-y: auto;
82
+ transform: translate3d(0, 30%, 0) scale3d(0.6, 0.6, 0.6);
83
+ transition: opacity 200ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms, transform 100ms var(--te-smooth) 0s, transform 100ms var(--te-smooth) 0s; // Transition out
84
+ visibility: hidden;
85
+ will-change: visibility, z-index, opacity, transform; // Not supported by Edge
86
+ z-index: var(--zi-hide); // Make sure it's also below everything so we can't interact with it.
87
+ }
88
+
89
+ & &--footer {
90
+ margin-top: var(--su24);
91
+ }
92
+
93
+ & &--header {
94
+ color: var(--_mo-header-fc);
95
+
96
+ font-size: var(--fs-headline1);
97
+ font-weight: normal;
98
+ line-height: var(--lh-sm);
99
+ margin-bottom: var(--su16);
100
+ margin-right: var(--su24);
101
+ }
102
+
103
+ background-color: var(--_mo-bg);
104
+ max-height: var(--_mo-hmx);
105
+ max-width: var(--_mo-wmx);
106
+
107
+ align-items: center;
108
+ backface-visibility: hidden;
109
+ display: flex;
110
+ inset: 0; // This fills the entire viewport without having to worry about size.
111
+ justify-content: center;
112
+ opacity: 0;
113
+ position: fixed;
114
+ transition: opacity 100ms var(--te-smooth) 0s, z-index 0s 100ms, visibility 0s 100ms; // Transition out
115
+ visibility: hidden;
116
+ will-change: visibility, z-index, opacity; // Not supported in Edge
117
+ z-index: var(--zi-hide); // Make sure it's also below everything so we can't interact with it.
118
+ }