@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.
- package/LICENSE.MD +9 -9
- package/README.md +158 -180
- package/dist/css/stacks.css +6 -0
- package/dist/js/stacks.min.js +1 -1
- package/lib/atomic/border.less +139 -139
- package/lib/atomic/color.less +36 -36
- package/lib/atomic/flex.less +426 -426
- package/lib/atomic/gap.less +44 -44
- package/lib/atomic/grid.less +139 -139
- package/lib/atomic/misc.less +374 -374
- package/lib/atomic/spacing.less +98 -98
- package/lib/atomic/typography.less +266 -264
- package/lib/atomic/width-height.less +194 -194
- package/lib/base/body.less +44 -44
- package/lib/base/configuration-static.less +61 -61
- package/lib/base/fieldset.less +5 -5
- package/lib/base/icon.less +11 -11
- package/lib/base/internal.less +220 -220
- package/lib/base/reset-meyer.less +64 -64
- package/lib/base/reset-normalize.less +449 -449
- package/lib/base/reset.less +20 -20
- package/lib/components/activity-indicator/activity-indicator.less +53 -53
- package/lib/components/avatar/avatar.less +108 -108
- package/lib/components/award-bling/award-bling.less +31 -31
- package/lib/components/banner/banner.less +44 -44
- package/lib/components/banner/banner.ts +149 -149
- package/lib/components/block-link/block-link.less +82 -82
- package/lib/components/breadcrumbs/breadcrumbs.less +41 -41
- package/lib/components/button-group/button-group.less +82 -82
- package/lib/components/card/card.less +37 -37
- package/lib/components/check-control/check-control.less +17 -17
- package/lib/components/check-group/check-group.less +19 -19
- package/lib/components/checkbox_radio/checkbox_radio.less +159 -159
- package/lib/components/code-block/code-block.fixtures.ts +88 -88
- package/lib/components/code-block/code-block.less +116 -116
- package/lib/components/description/description.less +9 -9
- package/lib/components/empty-state/empty-state.less +16 -16
- package/lib/components/expandable/expandable.less +118 -118
- package/lib/components/input-fill/input-fill.less +35 -35
- package/lib/components/input-icon/input-icon.less +45 -45
- package/lib/components/input-message/input-message.less +49 -49
- package/lib/components/label/label.less +110 -110
- package/lib/components/link-preview/link-preview.less +148 -148
- package/lib/components/menu/menu.less +41 -41
- package/lib/components/modal/modal.less +118 -118
- package/lib/components/modal/modal.ts +383 -383
- package/lib/components/navigation/navigation.less +136 -136
- package/lib/components/navigation/navigation.ts +128 -128
- package/lib/components/page-title/page-title.less +51 -51
- package/lib/components/popover/popover.less +159 -159
- package/lib/components/popover/popover.ts +651 -651
- package/lib/components/post-summary/post-summary.less +457 -457
- package/lib/components/progress-bar/progress-bar.less +291 -291
- package/lib/components/prose/prose.less +452 -452
- package/lib/components/select/select.less +138 -138
- package/lib/components/spinner/spinner.less +103 -103
- package/lib/components/table/table.ts +296 -296
- package/lib/components/table-container/table-container.less +4 -4
- package/lib/components/tag/tag.less +186 -186
- package/lib/components/toast/toast.less +35 -35
- package/lib/components/toast/toast.ts +357 -357
- package/lib/components/toggle-switch/toggle-switch.less +104 -104
- package/lib/components/topbar/topbar.less +553 -553
- package/lib/components/uploader/uploader.less +205 -205
- package/lib/components/user-card/user-card.less +129 -129
- package/lib/controllers.ts +33 -33
- package/lib/exports/color-mixins.less +283 -283
- package/lib/exports/constants-helpers.less +108 -108
- package/lib/exports/constants-type.less +155 -155
- package/lib/exports/exports.less +15 -15
- package/lib/exports/mixins.less +334 -333
- package/lib/exports/spacing-mixins.less +67 -67
- package/lib/index.ts +32 -32
- package/lib/input-utils.less +41 -41
- package/lib/stacks-dynamic.less +24 -24
- package/lib/stacks-static.less +93 -93
- package/lib/stacks.less +13 -13
- package/lib/test/assertions.ts +36 -36
- package/lib/test/less-test-utils.ts +28 -28
- package/lib/test/open-wc-testing-patch.d.ts +26 -26
- package/lib/tsconfig.build.json +4 -4
- package/lib/tsconfig.json +17 -17
- 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";
|
package/lib/tsconfig.build.json
CHANGED
|
@@ -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.
|
|
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": "^
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
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.
|
|
53
|
-
"@stackoverflow/stacks-icons": "^6.0
|
|
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.
|
|
59
|
+
"@testing-library/user-event": "^14.6.1",
|
|
56
60
|
"@types/cssbeautify": "^0.3.5",
|
|
57
|
-
"@types/less": "^3.0.
|
|
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.
|
|
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.
|
|
74
|
-
"eslint-config-prettier": "^
|
|
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.
|
|
87
|
+
"prettier": "^3.5.3",
|
|
84
88
|
"rollup-plugin-postcss": "^4.0.2",
|
|
85
|
-
"stylelint": "^16.
|
|
86
|
-
"stylelint-config-recommended": "^
|
|
87
|
-
"stylelint-config-standard": "^
|
|
88
|
-
"terser-webpack-plugin": "^5.3.
|
|
89
|
-
"ts-loader": "^9.5.
|
|
90
|
-
"typescript": "^5.
|
|
91
|
-
"typescript-eslint": "^8.
|
|
92
|
-
"vitest": "^
|
|
93
|
-
"webpack": "^5.
|
|
94
|
-
"webpack-cli": "^
|
|
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": [
|