@gopherium/godmin 0.27.0 → 0.29.0
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/README.md +11 -6
- package/dist/base.css +71 -76
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/loading.d.ts +1 -10
- package/dist/loading.js +3 -12
- package/dist/toaster.d.ts +7 -9
- package/dist/toaster.js +41 -53
- package/docs/build-and-versioning.md +29 -0
- package/docs/design-system/accessibility.md +21 -25
- package/docs/design-system/color.md +1 -1
- package/docs/design-system/custom-properties.md +2 -5
- package/docs/design-system/layout.md +1 -1
- package/docs/design-system/loading.md +149 -0
- package/docs/design-system/motion.md +37 -46
- package/docs/design-system/overview.md +14 -4
- package/docs/design-system/radius-and-elevation.md +10 -4
- package/docs/design-system/toasts.md +189 -0
- package/docs/design-system/typography.md +1 -1
- package/docs/framing-an-application.md +1 -1
- package/docs/lists.md +70 -22
- package/docs/loading-and-feedback.md +129 -115
- package/docs/overview.md +1 -1
- package/package.json +13 -2
package/docs/overview.md
CHANGED
|
@@ -29,7 +29,7 @@ duplicates something the packages above already ship.
|
|
|
29
29
|
|
|
30
30
|
| Entry point | Contents |
|
|
31
31
|
| --- | --- |
|
|
32
|
-
| `@gopherium/godmin` | `AdminRoot`, `Frame`, `Page`, `PageTitle`, `PageTabs`, `PageTab`, `SectionTitle`, `InitialsAvatar`, `NavigationScreen`, `MenuCount`, `ErrorNotice`, `LoadMore`, `LogList`, `LogItem`, `LogTime`, `LoadingScreen`, `
|
|
32
|
+
| `@gopherium/godmin` | `AdminRoot`, `Frame`, `Page`, `PageTitle`, `PageTabs`, `PageTab`, `SectionTitle`, `InitialsAvatar`, `NavigationScreen`, `MenuCount`, `ErrorNotice`, `LoadMore`, `LogList`, `LogItem`, `LogTime`, `LoadingScreen`, `Toaster`, `useToaster`, `RepeatRows`, `RowControls`, `useRowKeys`, `keyFromLabel`, `listChromeCatalogFor`, `LIST_CHROME_DOMAIN`, `ListEmpty`, `ConfirmBody`, `RenameBody`, `FormBody`, `FileButton`, `useServerPaging`, `pageWindow`, `paginationOf`, `runEach`, `bulkNotes`, `useListRun`, `useBulkRun`, `RunConfirm`, `useCloseWhileOpen`, `focusInDialog`, `useFocusBack`, `focusedTrigger`, `openOnTap`, `useUnsavedText`, `markLatest`, `viewNarrows`, `offeredView`, `offeredSize`, `sizedView`, `useMediaQuery`, `useTokenDocument`, the breakpoints `HUGE_BREAKPOINT`, `SIDEBAR_BREAKPOINT`, `EDGE_BREAKPOINT`, `DENSE_BREAKPOINT`, `SHEET_BREAKPOINT`, `TITLE_BREAKPOINT` and `SMALL_VIEWPORT`, `SUPPORTED_WPDS` |
|
|
33
33
|
| `@gopherium/godmin/base.css` | Cascade layer order, design tokens, host rules, frame and screen styles |
|
|
34
34
|
| `@gopherium/godmin/dates` | `startListDates`, `listDate`, the only entry that loads `@wordpress/date` |
|
|
35
35
|
| `@gopherium/godmin/dialogs` | `ConfirmDialog`, `FormDialog`, the only entry that loads `@wordpress/components`. Load `@wordpress/components/build-style/style.css` once in your app, as DataViews asks |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gopherium/godmin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "The admin kit for Gopherium projects: host layer for React admin applications on the WordPress Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -55,9 +55,12 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && cp src/base.css dist/base.css",
|
|
58
|
-
"cover": "vitest run --coverage",
|
|
58
|
+
"cover": "vitest run --coverage --project unit",
|
|
59
59
|
"lint": "oxlint",
|
|
60
60
|
"lint:css": "stylelint 'src/**/*.css'",
|
|
61
|
+
"storybook:dev": "storybook dev",
|
|
62
|
+
"storybook:test": "vitest run --project storybook",
|
|
63
|
+
"test:browser": "vitest run --project browser",
|
|
61
64
|
"typecheck": "tsc --noEmit",
|
|
62
65
|
"prepublishOnly": "pnpm run build"
|
|
63
66
|
},
|
|
@@ -104,6 +107,10 @@
|
|
|
104
107
|
}
|
|
105
108
|
},
|
|
106
109
|
"devDependencies": {
|
|
110
|
+
"@argos-ci/storybook": "6.4.4",
|
|
111
|
+
"@storybook/addon-a11y": "10.6.3",
|
|
112
|
+
"@storybook/addon-vitest": "10.6.3",
|
|
113
|
+
"@storybook/react-vite": "10.6.3",
|
|
107
114
|
"@tanstack/react-router": "1.170.45",
|
|
108
115
|
"@testing-library/react": "^16.3.2",
|
|
109
116
|
"@testing-library/user-event": "^14.6.7",
|
|
@@ -111,6 +118,7 @@
|
|
|
111
118
|
"@types/node": "^26.1.2",
|
|
112
119
|
"@types/react": "^19.2.17",
|
|
113
120
|
"@vitejs/plugin-react": "^6.0.3",
|
|
121
|
+
"@vitest/browser-playwright": "^5.0.3",
|
|
114
122
|
"@vitest/coverage-v8": "^5.0.3",
|
|
115
123
|
"@wordpress/a11y": "4.57.0",
|
|
116
124
|
"@wordpress/components": "42.0.0",
|
|
@@ -125,14 +133,17 @@
|
|
|
125
133
|
"eslint": "^10.7.0",
|
|
126
134
|
"eslint-plugin-jsdoc": "^63.2.0",
|
|
127
135
|
"eslint-plugin-sonarjs": "^4.2.0",
|
|
136
|
+
"eslint-plugin-storybook": "10.6.3",
|
|
128
137
|
"eslint-plugin-tsdoc": "^0.5.2",
|
|
129
138
|
"github-slugger": "2.0.0",
|
|
130
139
|
"jsdom": "^30.1.2",
|
|
131
140
|
"mdast-util-from-markdown": "2.0.3",
|
|
132
141
|
"mdast-util-to-string": "4.0.0",
|
|
133
142
|
"oxlint": "^1.71.0",
|
|
143
|
+
"playwright": "1.64.1",
|
|
134
144
|
"react": "^19.2.8",
|
|
135
145
|
"react-dom": "^19.2.8",
|
|
146
|
+
"storybook": "10.6.3",
|
|
136
147
|
"stylelint": "^17.0.0",
|
|
137
148
|
"typescript": "~6.0.2",
|
|
138
149
|
"typescript-eslint": "^8.65.0",
|