@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,28 +1,28 @@
1
- import beautify from "cssbeautify";
2
- import * as less from "less";
3
- import * as path from "path";
4
- import * as fs from "fs";
5
-
6
- // cssbeautify is an old package that doesn't support ES modules
7
- const cssbeautify = beautify as (css: string) => string;
8
-
9
- const getSubdirectories = (dirPath: string): string[] => {
10
- const subdirs = fs
11
- .readdirSync(dirPath)
12
- .map((file) => path.join(dirPath, file))
13
- .filter((path) => fs.statSync(path).isDirectory());
14
- return subdirs.reduce(
15
- (acc, subdir) => [...acc, subdir, ...getSubdirectories(subdir)],
16
- subdirs
17
- );
18
- };
19
-
20
- const renderLess = async (lessCode: string) => {
21
- const { css } = await less.render(lessCode, {
22
- paths: getSubdirectories(path.join(__dirname, "../")),
23
- });
24
-
25
- return cssbeautify(css);
26
- };
27
-
28
- export { renderLess };
1
+ import beautify from "cssbeautify";
2
+ import * as less from "less";
3
+ import * as path from "path";
4
+ import * as fs from "fs";
5
+
6
+ // cssbeautify is an old package that doesn't support ES modules
7
+ const cssbeautify = beautify as (css: string) => string;
8
+
9
+ const getSubdirectories = (dirPath: string): string[] => {
10
+ const subdirs = fs
11
+ .readdirSync(dirPath)
12
+ .map((file) => path.join(dirPath, file))
13
+ .filter((path) => fs.statSync(path).isDirectory());
14
+ return subdirs.reduce(
15
+ (acc, subdir) => [...acc, subdir, ...getSubdirectories(subdir)],
16
+ subdirs
17
+ );
18
+ };
19
+
20
+ const renderLess = async (lessCode: string) => {
21
+ const { css } = await less.render(lessCode, {
22
+ paths: getSubdirectories(path.join(__dirname, "../")),
23
+ });
24
+
25
+ return cssbeautify(css);
26
+ };
27
+
28
+ export { renderLess };
@@ -1,26 +1,26 @@
1
- // patch for @open-wc/testing types
2
- // TODO: remove when this PR gets merged:
3
- // https://github.com/open-wc/open-wc/pull/2652
4
-
5
- // eslint-disable-next-line @typescript-eslint/triple-slash-reference
6
- /// <reference path="../../node_modules/@open-wc/testing/register-chai-plugins.d.ts" />
7
-
8
- export { html } from "@open-wc/testing-helpers";
9
- export { unsafeStatic } from "@open-wc/testing-helpers";
10
- export { triggerBlurFor } from "@open-wc/testing-helpers";
11
- export { triggerFocusFor } from "@open-wc/testing-helpers";
12
- export { oneEvent } from "@open-wc/testing-helpers";
13
- export { isIE } from "@open-wc/testing-helpers";
14
- export { defineCE } from "@open-wc/testing-helpers";
15
- export { aTimeout } from "@open-wc/testing-helpers";
16
- export { nextFrame } from "@open-wc/testing-helpers";
17
- export { litFixture } from "@open-wc/testing-helpers";
18
- export { litFixtureSync } from "@open-wc/testing-helpers";
19
- export { fixture } from "@open-wc/testing-helpers";
20
- export { fixtureSync } from "@open-wc/testing-helpers";
21
- export { fixtureCleanup } from "@open-wc/testing-helpers";
22
- export { elementUpdated } from "@open-wc/testing-helpers";
23
- export { waitUntil } from "@open-wc/testing-helpers";
24
-
25
- export * as chai from "chai";
26
- export { expect, assert, should } from "chai";
1
+ // patch for @open-wc/testing types
2
+ // TODO: remove when this PR gets merged:
3
+ // https://github.com/open-wc/open-wc/pull/2652
4
+
5
+ // eslint-disable-next-line @typescript-eslint/triple-slash-reference
6
+ /// <reference path="../../node_modules/@open-wc/testing/register-chai-plugins.d.ts" />
7
+
8
+ export { html } from "@open-wc/testing-helpers";
9
+ export { unsafeStatic } from "@open-wc/testing-helpers";
10
+ export { triggerBlurFor } from "@open-wc/testing-helpers";
11
+ export { triggerFocusFor } from "@open-wc/testing-helpers";
12
+ export { oneEvent } from "@open-wc/testing-helpers";
13
+ export { isIE } from "@open-wc/testing-helpers";
14
+ export { defineCE } from "@open-wc/testing-helpers";
15
+ export { aTimeout } from "@open-wc/testing-helpers";
16
+ export { nextFrame } from "@open-wc/testing-helpers";
17
+ export { litFixture } from "@open-wc/testing-helpers";
18
+ export { litFixtureSync } from "@open-wc/testing-helpers";
19
+ export { fixture } from "@open-wc/testing-helpers";
20
+ export { fixtureSync } from "@open-wc/testing-helpers";
21
+ export { fixtureCleanup } from "@open-wc/testing-helpers";
22
+ export { elementUpdated } from "@open-wc/testing-helpers";
23
+ export { waitUntil } from "@open-wc/testing-helpers";
24
+
25
+ export * as chai from "chai";
26
+ export { expect, assert, should } from "chai";
@@ -1,4 +1,4 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["test/**/*.ts", "**/*.test.ts", "**/*.setup.ts"]
4
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["test/**/*.ts", "**/*.test.ts", "**/*.setup.ts"]
4
+ }
package/lib/tsconfig.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "target": "es6",
5
- "lib": ["dom", "es6", "dom.iterable", "scripthost"],
6
- "outDir": "../dist",
7
- "sourceMap": true,
8
- "moduleResolution": "node",
9
- "skipLibCheck": true,
10
- "declaration": true,
11
- "allowSyntheticDefaultImports": true,
12
- "paths": {
13
- "@open-wc/testing": ["./test/open-wc-testing-patch.d.ts"]
14
- }
15
- },
16
- "include": ["**/*.ts"]
17
- }
1
+ {
2
+ "compilerOptions": {
3
+ "strict": true,
4
+ "target": "es6",
5
+ "lib": ["dom", "es6", "dom.iterable", "scripthost"],
6
+ "outDir": "../dist",
7
+ "sourceMap": true,
8
+ "moduleResolution": "node",
9
+ "skipLibCheck": true,
10
+ "declaration": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ "paths": {
13
+ "@open-wc/testing": ["./test/open-wc-testing-patch.d.ts"]
14
+ }
15
+ },
16
+ "include": ["**/*.ts"]
17
+ }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/StackExchange/Stacks.git"
7
7
  },
8
- "version": "2.7.3",
8
+ "version": "2.7.4",
9
9
  "files": [
10
10
  "dist",
11
11
  "lib",
@@ -31,6 +31,8 @@
31
31
  "test:less": "vitest run .less.test.ts",
32
32
  "test:less:update": "npm run test:less -- -u",
33
33
  "prepublishOnly": "npm run build",
34
+ "version": "changeset version && npm install --package-lock-only",
35
+ "release": "npm run build && changeset publish",
34
36
  "format": "prettier --write ./lib",
35
37
  "lint": "concurrently -n w: npm:lint:*",
36
38
  "lint:ts": "eslint ./lib",
@@ -43,18 +45,20 @@
43
45
  "@popperjs/core": "^2.11.8"
44
46
  },
45
47
  "devDependencies": {
46
- "@11ty/eleventy": "^2.0.1",
47
- "@eslint/js": "^9.14.0",
48
- "@highlightjs/cdn-assets": "^11.10.0",
48
+ "@11ty/eleventy": "^3.0.0",
49
+ "@changesets/changelog-github": "^0.5.1",
50
+ "@changesets/cli": "^2.28.1",
51
+ "@eslint/js": "^9.24.0",
52
+ "@highlightjs/cdn-assets": "^11.11.1",
49
53
  "@open-wc/testing": "^4.0.0",
50
54
  "@rollup/plugin-commonjs": "^26.0.1",
51
55
  "@rollup/plugin-replace": "^6.0.2",
52
- "@stackoverflow/stacks-editor": "^0.10.7",
53
- "@stackoverflow/stacks-icons": "^6.0.2",
56
+ "@stackoverflow/stacks-editor": "^0.11.1",
57
+ "@stackoverflow/stacks-icons": "^6.2.0",
54
58
  "@testing-library/dom": "^10.4.0",
55
- "@testing-library/user-event": "^14.5.2",
59
+ "@testing-library/user-event": "^14.6.1",
56
60
  "@types/cssbeautify": "^0.3.5",
57
- "@types/less": "^3.0.6",
61
+ "@types/less": "^3.0.8",
58
62
  "@types/mocha": "^10.0.10",
59
63
  "@web/dev-server-esbuild": "^1.0.4",
60
64
  "@web/dev-server-rollup": "^0.6.4",
@@ -63,15 +67,15 @@
63
67
  "@web/test-runner-visual-regression": "^0.10.0",
64
68
  "apca-check": "^0.1.1",
65
69
  "colorjs.io": "^0.5.2",
66
- "concurrently": "^9.1.0",
70
+ "concurrently": "^9.1.2",
67
71
  "css-loader": "^7.1.2",
68
72
  "cssbeautify": "^0.3.1",
69
73
  "cssnano": "^7.0.6",
70
74
  "docsearch.js": "^2.6.3",
71
75
  "eleventy-plugin-highlightjs": "^1.1.0",
72
76
  "eleventy-plugin-nesting-toc": "^1.3.0",
73
- "eslint": "^9.16.0",
74
- "eslint-config-prettier": "^9.1.0",
77
+ "eslint": "^9.24.0",
78
+ "eslint-config-prettier": "^10.1.1",
75
79
  "eslint-plugin-no-unsanitized": "^4.1.2",
76
80
  "jquery": "^3.7.1",
77
81
  "less-loader": "^12.2.0",
@@ -80,18 +84,18 @@
80
84
  "mini-css-extract-plugin": "^2.9.2",
81
85
  "postcss-less": "^6.0.0",
82
86
  "postcss-loader": "^8.1.1",
83
- "prettier": "^3.3.3",
87
+ "prettier": "^3.5.3",
84
88
  "rollup-plugin-postcss": "^4.0.2",
85
- "stylelint": "^16.12.0",
86
- "stylelint-config-recommended": "^14.0.1",
87
- "stylelint-config-standard": "^36.0.1",
88
- "terser-webpack-plugin": "^5.3.10",
89
- "ts-loader": "^9.5.1",
90
- "typescript": "^5.7.2",
91
- "typescript-eslint": "^8.18.2",
92
- "vitest": "^2.1.6",
93
- "webpack": "^5.96.1",
94
- "webpack-cli": "^5.1.4",
89
+ "stylelint": "^16.18.0",
90
+ "stylelint-config-recommended": "^16.0.0",
91
+ "stylelint-config-standard": "^38.0.0",
92
+ "terser-webpack-plugin": "^5.3.14",
93
+ "ts-loader": "^9.5.2",
94
+ "typescript": "^5.8.3",
95
+ "typescript-eslint": "^8.29.0",
96
+ "vitest": "^3.1.1",
97
+ "webpack": "^5.98.0",
98
+ "webpack-cli": "^6.0.1",
95
99
  "webpack-merge": "^6.0.1"
96
100
  },
97
101
  "browserslist": [