@guardian/stand 0.0.65 → 0.0.67
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/dist/Badge.cjs +5 -0
- package/dist/Badge.d.cts +5 -0
- package/dist/Badge.d.ts +5 -0
- package/dist/Badge.js +3 -0
- package/dist/SidebarStepperNavigation.cjs +7 -0
- package/dist/SidebarStepperNavigation.d.cts +5 -0
- package/dist/SidebarStepperNavigation.d.ts +5 -0
- package/dist/SidebarStepperNavigation.js +4 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/components/Avatar/Avatar.cjs +4 -2
- package/dist/components/Avatar/Avatar.js +4 -2
- package/dist/components/AvatarButton/AvatarButton.cjs +2 -1
- package/dist/components/AvatarButton/AvatarButton.js +2 -1
- package/dist/components/AvatarLink/AvatarLink.cjs +2 -1
- package/dist/components/AvatarLink/AvatarLink.js +2 -1
- package/dist/components/Badge/Badge.cjs +18 -0
- package/dist/components/Badge/Badge.d.cts +5 -0
- package/dist/components/Badge/Badge.d.ts +5 -0
- package/dist/components/Badge/Badge.js +18 -0
- package/dist/components/Badge/styles.cjs +26 -0
- package/dist/components/Badge/styles.d.cts +9 -0
- package/dist/components/Badge/styles.d.ts +9 -0
- package/dist/components/Badge/styles.js +25 -0
- package/dist/components/Badge/types.d.cts +23 -0
- package/dist/components/Badge/types.d.ts +23 -0
- package/dist/components/Byline/Byline.cjs +4 -2
- package/dist/components/Byline/Byline.js +4 -2
- package/dist/components/Byline/Preview.cjs +13 -11
- package/dist/components/Byline/Preview.js +13 -11
- package/dist/components/Grid/Grid.cjs +4 -2
- package/dist/components/Grid/Grid.js +4 -2
- package/dist/components/HtmlPreviewLoader/styles.cjs +4 -3
- package/dist/components/HtmlPreviewLoader/styles.js +4 -3
- package/dist/components/Layout/Layout.cjs +4 -2
- package/dist/components/Layout/Layout.js +4 -2
- package/dist/components/Menu/Menu.cjs +4 -2
- package/dist/components/Menu/Menu.js +4 -2
- package/dist/components/Modal/Modal.cjs +6 -3
- package/dist/components/Modal/Modal.js +6 -3
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.cjs +161 -0
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.d.cts +5 -0
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.d.ts +5 -0
- package/dist/components/SidebarStepperNavigation/SidebarStepperNavigation.js +161 -0
- package/dist/components/SidebarStepperNavigation/styles.cjs +96 -0
- package/dist/components/SidebarStepperNavigation/styles.d.cts +8 -0
- package/dist/components/SidebarStepperNavigation/styles.d.ts +8 -0
- package/dist/components/SidebarStepperNavigation/styles.js +88 -0
- package/dist/components/SidebarStepperNavigation/types.cjs +9 -0
- package/dist/components/SidebarStepperNavigation/types.d.cts +26 -0
- package/dist/components/SidebarStepperNavigation/types.d.ts +26 -0
- package/dist/components/SidebarStepperNavigation/types.js +9 -0
- package/dist/components/Tabs/Tabs.cjs +2 -1
- package/dist/components/Tabs/Tabs.js +2 -1
- package/dist/components/TagPicker/styles.cjs +4 -2
- package/dist/components/TagPicker/styles.js +4 -2
- package/dist/components/TagTable/styles.cjs +2 -1
- package/dist/components/TagTable/styles.js +2 -1
- package/dist/components/TopBar/TopBarItem/TopBarItem.cjs +2 -1
- package/dist/components/TopBar/TopBarItem/TopBarItem.js +2 -1
- package/dist/components/Typography/Typography.cjs +2 -1
- package/dist/components/Typography/Typography.js +2 -1
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/styleD/build/css/component/badge.css +69 -0
- package/dist/styleD/build/css/component/sidebarStepperNavigation.css +51 -0
- package/dist/styleD/build/typescript/component/badge.cjs +137 -0
- package/dist/styleD/build/typescript/component/badge.d.cts +162 -0
- package/dist/styleD/build/typescript/component/badge.d.ts +162 -0
- package/dist/styleD/build/typescript/component/badge.js +137 -0
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.cjs +68 -0
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.d.cts +85 -0
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.d.ts +85 -0
- package/dist/styleD/build/typescript/component/sidebarStepperNavigation.js +68 -0
- package/dist/util/useId.cjs +16 -0
- package/dist/util/useId.js +14 -0
- package/package.json +48 -19
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/sidebarStepperNavigation.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentSidebarStepperNavigation = {
|
|
6
|
+
mobileToggle: { shared: {
|
|
7
|
+
border: "0.125rem solid #cccccc",
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "space-between",
|
|
11
|
+
height: "4.5rem",
|
|
12
|
+
paddingInline: "1rem",
|
|
13
|
+
width: "100%",
|
|
14
|
+
backgroundColor: "#f6f6f6",
|
|
15
|
+
hovered: { backgroundColor: "#ededed" },
|
|
16
|
+
pressed: { backgroundColor: "#e6e6e6" }
|
|
17
|
+
} },
|
|
18
|
+
navigation: { shared: {
|
|
19
|
+
border: "0.0625rem solid #8d8d8d",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
height: "100%"
|
|
22
|
+
} },
|
|
23
|
+
statusRow: { shared: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
gap: "0.375rem",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
text: {
|
|
28
|
+
color: "#545454",
|
|
29
|
+
disabledColor: "#999999"
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
size: "1rem",
|
|
33
|
+
optionalColor: "#cde4c9",
|
|
34
|
+
completeColor: "#326528",
|
|
35
|
+
incompleteColor: "#8c2113"
|
|
36
|
+
}
|
|
37
|
+
} },
|
|
38
|
+
step: { shared: {
|
|
39
|
+
height: "4.5rem",
|
|
40
|
+
backgroundColor: "#ffffff",
|
|
41
|
+
currentBackgroundColor: "#f6f6f6",
|
|
42
|
+
cursor: "pointer",
|
|
43
|
+
disabledCursor: "default",
|
|
44
|
+
border: "0.0625rem solid #cccccc",
|
|
45
|
+
text: {
|
|
46
|
+
color: "#000000",
|
|
47
|
+
disabledColor: "#999999",
|
|
48
|
+
inverseColor: "#ffffff"
|
|
49
|
+
},
|
|
50
|
+
numberColumnWidth: "2rem"
|
|
51
|
+
} },
|
|
52
|
+
stepNumber: { shared: {
|
|
53
|
+
height: "100%",
|
|
54
|
+
backgroundColor: "#005d8b",
|
|
55
|
+
display: "flex",
|
|
56
|
+
alignItems: "center",
|
|
57
|
+
justifyContent: "center"
|
|
58
|
+
} },
|
|
59
|
+
stepContent: { shared: {
|
|
60
|
+
display: "flex",
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
justifyContent: "center",
|
|
63
|
+
gap: "0.25rem",
|
|
64
|
+
marginLeft: "0.75rem"
|
|
65
|
+
} }
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
68
|
+
export { componentSidebarStepperNavigation };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let react = require("react");
|
|
3
|
+
react = require_runtime.__toESM(react, 1);
|
|
4
|
+
//#region src/util/useId.ts
|
|
5
|
+
let nextId = 0;
|
|
6
|
+
const reactUseId = react.useId;
|
|
7
|
+
/**
|
|
8
|
+
* Uses React's SSR-safe ID hook when available, falling back to a named counter
|
|
9
|
+
* for React 17 compatibility.
|
|
10
|
+
*/
|
|
11
|
+
const useId = (fallbackName) => {
|
|
12
|
+
const [fallbackId] = react.useState(() => `${fallbackName}-${nextId++}`);
|
|
13
|
+
return reactUseId?.() ?? fallbackId;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.useId = useId;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
//#region src/util/useId.ts
|
|
3
|
+
let nextId = 0;
|
|
4
|
+
const reactUseId = React$1.useId;
|
|
5
|
+
/**
|
|
6
|
+
* Uses React's SSR-safe ID hook when available, falling back to a named counter
|
|
7
|
+
* for React 17 compatibility.
|
|
8
|
+
*/
|
|
9
|
+
const useId = (fallbackName) => {
|
|
10
|
+
const [fallbackId] = React$1.useState(() => `${fallbackName}-${nextId++}`);
|
|
11
|
+
return reactUseId?.() ?? fallbackId;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -47,6 +47,16 @@
|
|
|
47
47
|
"default": "./dist/AvatarButton.cjs"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"./Badge": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/Badge.d.ts",
|
|
53
|
+
"default": "./dist/Badge.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/Badge.d.cts",
|
|
57
|
+
"default": "./dist/Badge.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
50
60
|
"./Button": {
|
|
51
61
|
"import": {
|
|
52
62
|
"types": "./dist/Button.d.ts",
|
|
@@ -267,6 +277,16 @@
|
|
|
267
277
|
"default": "./dist/TagPicker.cjs"
|
|
268
278
|
}
|
|
269
279
|
},
|
|
280
|
+
"./SidebarStepperNavigation": {
|
|
281
|
+
"import": {
|
|
282
|
+
"types": "./dist/SidebarStepperNavigation.d.ts",
|
|
283
|
+
"default": "./dist/SidebarStepperNavigation.js"
|
|
284
|
+
},
|
|
285
|
+
"require": {
|
|
286
|
+
"types": "./dist/SidebarStepperNavigation.d.cts",
|
|
287
|
+
"default": "./dist/SidebarStepperNavigation.cjs"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
270
290
|
"./UserMenu": {
|
|
271
291
|
"import": {
|
|
272
292
|
"types": "./dist/UserMenu.d.ts",
|
|
@@ -390,6 +410,7 @@
|
|
|
390
410
|
"./component/tagTable.css": "./dist/styleD/build/css/component/tagTable.css",
|
|
391
411
|
"./component/userMenu.css": "./dist/styleD/build/css/component/userMenu.css",
|
|
392
412
|
"./component/avatar.css": "./dist/styleD/build/css/component/avatar.css",
|
|
413
|
+
"./component/badge.css": "./dist/styleD/build/css/component/badge.css",
|
|
393
414
|
"./component/button.css": "./dist/styleD/build/css/component/button.css",
|
|
394
415
|
"./component/buttonGroup.css": "./dist/styleD/build/css/component/buttonGroup.css",
|
|
395
416
|
"./component/typography.css": "./dist/styleD/build/css/component/typography.css",
|
|
@@ -413,7 +434,8 @@
|
|
|
413
434
|
"./component/modal.css": "./dist/styleD/build/css/component/modal.css",
|
|
414
435
|
"./component/tabs.css": "./dist/styleD/build/css/component/tabs.css",
|
|
415
436
|
"./component/tooltip.css": "./dist/styleD/build/css/component/tooltip.css",
|
|
416
|
-
"./component/userFeedbackSummary.css": "./dist/styleD/build/css/component/userFeedbackSummary.css"
|
|
437
|
+
"./component/userFeedbackSummary.css": "./dist/styleD/build/css/component/userFeedbackSummary.css",
|
|
438
|
+
"./component/sidebarStepperNavigation.css": "./dist/styleD/build/css/component/sidebarStepperNavigation.css"
|
|
417
439
|
},
|
|
418
440
|
"main": "./dist/index.cjs",
|
|
419
441
|
"module": "./dist/index.js",
|
|
@@ -429,6 +451,9 @@
|
|
|
429
451
|
"AvatarLink": [
|
|
430
452
|
"./dist/AvatarLink.d.ts"
|
|
431
453
|
],
|
|
454
|
+
"Badge": [
|
|
455
|
+
"./dist/Badge.d.ts"
|
|
456
|
+
],
|
|
432
457
|
"Button": [
|
|
433
458
|
"./dist/Button.d.ts"
|
|
434
459
|
],
|
|
@@ -462,6 +487,9 @@
|
|
|
462
487
|
"TagPicker": [
|
|
463
488
|
"./dist/TagPicker.d.ts"
|
|
464
489
|
],
|
|
490
|
+
"SidebarStepperNavigation": [
|
|
491
|
+
"./dist/SidebarStepperNavigation.d.ts"
|
|
492
|
+
],
|
|
465
493
|
"UserMenu": [
|
|
466
494
|
"./dist/UserMenu.d.ts"
|
|
467
495
|
],
|
|
@@ -542,13 +570,14 @@
|
|
|
542
570
|
"@guardian/tsconfig": "1.0.1",
|
|
543
571
|
"@internationalized/date": "3.12.1",
|
|
544
572
|
"@material-design-icons/svg": "0.14.15",
|
|
545
|
-
"@playwright/experimental-ct-react17": "1.
|
|
546
|
-
"@storybook/addon-a11y": "10.5.
|
|
547
|
-
"@storybook/addon-docs": "10.5.
|
|
548
|
-
"@storybook/addon-themes": "10.5.
|
|
549
|
-
"@storybook/react-vite": "10.5.
|
|
550
|
-
"@testing-library/
|
|
551
|
-
"@
|
|
573
|
+
"@playwright/experimental-ct-react17": "1.62.1",
|
|
574
|
+
"@storybook/addon-a11y": "10.5.7",
|
|
575
|
+
"@storybook/addon-docs": "10.5.7",
|
|
576
|
+
"@storybook/addon-themes": "10.5.7",
|
|
577
|
+
"@storybook/react-vite": "10.5.7",
|
|
578
|
+
"@testing-library/dom": "^10.4.1",
|
|
579
|
+
"@testing-library/jest-dom": "7.0.0",
|
|
580
|
+
"@tsdown/css": "0.22.14",
|
|
552
581
|
"@types/jest": "30.0.0",
|
|
553
582
|
"@types/node": "24.10.1",
|
|
554
583
|
"@types/react": "17.0.76",
|
|
@@ -556,32 +585,32 @@
|
|
|
556
585
|
"change-case": "5.4.4",
|
|
557
586
|
"eslint": "9.39.3",
|
|
558
587
|
"eslint-plugin-check-file": "3.3.2",
|
|
559
|
-
"eslint-plugin-storybook": "10.5.
|
|
588
|
+
"eslint-plugin-storybook": "10.5.7",
|
|
560
589
|
"husky": "9.1.7",
|
|
561
590
|
"jest": "30.4.2",
|
|
562
591
|
"jest-environment-jsdom": "30.4.1",
|
|
563
|
-
"lint-staged": "17.
|
|
564
|
-
"prettier": "3.9.
|
|
592
|
+
"lint-staged": "17.3.0",
|
|
593
|
+
"prettier": "3.9.6",
|
|
565
594
|
"prosemirror-dropcursor": "1.8.2",
|
|
566
595
|
"prosemirror-history": "1.4.1",
|
|
567
596
|
"prosemirror-keymap": "1.2.2",
|
|
568
597
|
"prosemirror-model": "1.25.0",
|
|
569
598
|
"prosemirror-state": "1.4.3",
|
|
570
599
|
"prosemirror-view": "1.37.2",
|
|
571
|
-
"publint": "0.3.
|
|
600
|
+
"publint": "0.3.23",
|
|
572
601
|
"react": "17.0.2",
|
|
573
602
|
"react-aria-components": "1.14.0",
|
|
574
603
|
"react-dom": "17.0.2",
|
|
575
604
|
"remark-gfm": "4.0.1",
|
|
576
605
|
"rimraf": "6.1.3",
|
|
577
606
|
"sort-package-json": "4.0.0",
|
|
578
|
-
"storybook": "10.5.
|
|
579
|
-
"style-dictionary": "5.5.
|
|
580
|
-
"ts-jest": "29.4.
|
|
581
|
-
"tsdown": "0.22.
|
|
607
|
+
"storybook": "10.5.7",
|
|
608
|
+
"style-dictionary": "5.5.1",
|
|
609
|
+
"ts-jest": "29.4.12",
|
|
610
|
+
"tsdown": "0.22.14",
|
|
582
611
|
"tslib": "2.8.1",
|
|
583
612
|
"typescript": "5.1.3",
|
|
584
|
-
"vite": "8.1
|
|
613
|
+
"vite": "8.2.1",
|
|
585
614
|
"vite-plugin-svgr": "5.2.0"
|
|
586
615
|
},
|
|
587
616
|
"peerDependencies": {
|
|
@@ -595,7 +624,7 @@
|
|
|
595
624
|
"prosemirror-state": "^1.4.3",
|
|
596
625
|
"prosemirror-view": "^1.37.2",
|
|
597
626
|
"react": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
598
|
-
"react-aria-components": ">= 1.14.0 <= 1.
|
|
627
|
+
"react-aria-components": ">= 1.14.0 <= 1.20.0",
|
|
599
628
|
"react-dom": "^17.0.2 || ^18.0.0 || ^19.0.0",
|
|
600
629
|
"typescript": ">=5.0.0 <=5.9.3"
|
|
601
630
|
},
|