@stackoverflow/stacks 2.7.3 → 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 (83) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +158 -180
  3. package/dist/css/stacks.css +6 -0
  4. package/dist/js/stacks.min.js +1 -1
  5. package/lib/atomic/border.less +139 -139
  6. package/lib/atomic/color.less +36 -36
  7. package/lib/atomic/flex.less +426 -426
  8. package/lib/atomic/gap.less +44 -44
  9. package/lib/atomic/grid.less +139 -139
  10. package/lib/atomic/misc.less +374 -374
  11. package/lib/atomic/spacing.less +98 -98
  12. package/lib/atomic/typography.less +266 -264
  13. package/lib/atomic/width-height.less +194 -194
  14. package/lib/base/body.less +44 -44
  15. package/lib/base/configuration-static.less +61 -61
  16. package/lib/base/fieldset.less +5 -5
  17. package/lib/base/icon.less +11 -11
  18. package/lib/base/internal.less +220 -220
  19. package/lib/base/reset-meyer.less +64 -64
  20. package/lib/base/reset-normalize.less +449 -449
  21. package/lib/base/reset.less +20 -20
  22. package/lib/components/activity-indicator/activity-indicator.less +53 -53
  23. package/lib/components/avatar/avatar.less +108 -108
  24. package/lib/components/award-bling/award-bling.less +31 -31
  25. package/lib/components/banner/banner.less +44 -44
  26. package/lib/components/banner/banner.ts +149 -149
  27. package/lib/components/block-link/block-link.less +82 -82
  28. package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
  29. package/lib/components/button-group/button-group.less +82 -82
  30. package/lib/components/card/card.less +37 -37
  31. package/lib/components/check-control/check-control.less +17 -17
  32. package/lib/components/check-group/check-group.less +19 -19
  33. package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
  34. package/lib/components/code-block/code-block.fixtures.ts +88 -88
  35. package/lib/components/code-block/code-block.less +116 -116
  36. package/lib/components/description/description.less +9 -9
  37. package/lib/components/empty-state/empty-state.less +16 -16
  38. package/lib/components/expandable/expandable.less +118 -118
  39. package/lib/components/input-fill/input-fill.less +35 -35
  40. package/lib/components/input-icon/input-icon.less +45 -45
  41. package/lib/components/input-message/input-message.less +49 -49
  42. package/lib/components/label/label.less +110 -110
  43. package/lib/components/link-preview/link-preview.less +148 -148
  44. package/lib/components/menu/menu.less +41 -41
  45. package/lib/components/modal/modal.less +118 -118
  46. package/lib/components/modal/modal.ts +383 -383
  47. package/lib/components/navigation/navigation.less +136 -136
  48. package/lib/components/navigation/navigation.ts +128 -128
  49. package/lib/components/page-title/page-title.less +51 -51
  50. package/lib/components/popover/popover.less +159 -159
  51. package/lib/components/popover/popover.ts +651 -651
  52. package/lib/components/post-summary/post-summary.less +457 -457
  53. package/lib/components/progress-bar/progress-bar.less +291 -291
  54. package/lib/components/prose/prose.less +452 -452
  55. package/lib/components/select/select.less +138 -138
  56. package/lib/components/spinner/spinner.less +103 -103
  57. package/lib/components/table/table.ts +296 -296
  58. package/lib/components/table-container/table-container.less +4 -4
  59. package/lib/components/tag/tag.less +186 -186
  60. package/lib/components/toast/toast.less +35 -35
  61. package/lib/components/toast/toast.ts +357 -357
  62. package/lib/components/toggle-switch/toggle-switch.less +104 -104
  63. package/lib/components/topbar/topbar.less +553 -553
  64. package/lib/components/uploader/uploader.less +205 -205
  65. package/lib/components/user-card/user-card.less +129 -129
  66. package/lib/controllers.ts +33 -33
  67. package/lib/exports/color-mixins.less +283 -283
  68. package/lib/exports/constants-helpers.less +108 -108
  69. package/lib/exports/constants-type.less +155 -155
  70. package/lib/exports/exports.less +15 -15
  71. package/lib/exports/mixins.less +334 -333
  72. package/lib/exports/spacing-mixins.less +67 -67
  73. package/lib/index.ts +32 -32
  74. package/lib/input-utils.less +41 -41
  75. package/lib/stacks-dynamic.less +24 -24
  76. package/lib/stacks-static.less +93 -93
  77. package/lib/stacks.less +13 -13
  78. package/lib/test/assertions.ts +36 -36
  79. package/lib/test/less-test-utils.ts +28 -28
  80. package/lib/test/open-wc-testing-patch.d.ts +26 -26
  81. package/lib/tsconfig.build.json +4 -4
  82. package/lib/tsconfig.json +17 -17
  83. 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
+ }