@acusti/uikit-docs 0.1.0 → 0.2.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/.storybook/main.ts +3 -7
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/package.json +12 -12
- package/stories/Introduction.mdx +6 -6
- package/stories/useKeyboardEvents.css +6 -4
package/.storybook/main.ts
CHANGED
|
@@ -2,13 +2,9 @@ import { dirname, join } from 'path';
|
|
|
2
2
|
|
|
3
3
|
import type { StorybookConfig } from '@storybook/react-vite';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
function getAbsolutePath(value: string): any {
|
|
10
|
-
return dirname(require.resolve(join(value, 'package.json')));
|
|
11
|
-
}
|
|
5
|
+
// https://storybook.js.org/docs/faq#how-do-i-fix-module-resolution-in-special-environments
|
|
6
|
+
const getAbsolutePath = (value: string): any =>
|
|
7
|
+
dirname(import.meta.resolve(join(value, 'package.json'))).replace(/^file:\/\//, '');
|
|
12
8
|
|
|
13
9
|
const config: StorybookConfig = {
|
|
14
10
|
addons: [getAbsolutePath('@storybook/addon-essentials')],
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# @acusti/uikit-docs
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update all NPM and CI dependencies to latest, including eslint,
|
|
8
|
+
typescript (v5.8.3), vitest, babel, and node-gyp, resolving all known
|
|
9
|
+
security vulnerabilities, and adopt the eslint canonical plugin and
|
|
10
|
+
enable new rules.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @acusti/uikit-docs
|
|
2
2
|
|
|
3
|
-
#### [:blue_book: Storybook instance](https://
|
|
3
|
+
#### [:blue_book: Storybook instance](https://uikit.acusti.ca/)
|
|
4
4
|
|
|
5
5
|
This is where the storybook-based documentation and examples live for
|
|
6
6
|
test-driving the components and libraries in UIKit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acusti/uikit-docs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14"
|
|
6
6
|
},
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
"storybook": "storybook dev -p 6006"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@storybook/addon-essentials": "^8.
|
|
13
|
-
"@storybook/blocks": "^8.
|
|
14
|
-
"@storybook/manager-api": "^8.
|
|
15
|
-
"@storybook/react": "^8.
|
|
16
|
-
"@storybook/react-vite": "^8.
|
|
17
|
-
"@storybook/test": "^8.
|
|
18
|
-
"@types/react": "^19.
|
|
19
|
-
"core-js": "^3.
|
|
12
|
+
"@storybook/addon-essentials": "^8.6",
|
|
13
|
+
"@storybook/blocks": "^8.6",
|
|
14
|
+
"@storybook/manager-api": "^8.6",
|
|
15
|
+
"@storybook/react": "^8.6",
|
|
16
|
+
"@storybook/react-vite": "^8.6",
|
|
17
|
+
"@storybook/test": "^8.6",
|
|
18
|
+
"@types/react": "^19.1.1",
|
|
19
|
+
"core-js": "^3.41.0",
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"react-dom": "^19.0.0",
|
|
22
|
-
"storybook": "^8.
|
|
23
|
-
"typescript": "5.
|
|
24
|
-
"vite": "^
|
|
22
|
+
"storybook": "^8.6",
|
|
23
|
+
"typescript": "5.8.3",
|
|
24
|
+
"vite": "^6"
|
|
25
25
|
}
|
|
26
26
|
}
|
package/stories/Introduction.mdx
CHANGED
|
@@ -24,15 +24,15 @@ web and mobile applications. To see what the components look like and how
|
|
|
24
24
|
to use them, explore everything under the “Controls” folder in the sidebar.
|
|
25
25
|
The four components currently documented here are:
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
27
|
+
- [InputText](../?path=/docs/uikit-controls-inputtext--docs)
|
|
28
|
+
- [CSSValueInput](../?path=/docs/uikit-controls-CSSValueInput--docs)
|
|
29
|
+
- [Dropdown](../?path=/docs/uikit-controls-Dropdown--docs)
|
|
30
|
+
- [DatePicker](../?path=/docs/uikit-controls-datepicker-datepicker--docs)
|
|
31
31
|
|
|
32
32
|
There are also two custom React hooks available under the “Hooks” folder:
|
|
33
33
|
|
|
34
|
-
-
|
|
35
|
-
-
|
|
34
|
+
- [useIsOutOfBounds](../?path=/docs/uikit-hooks-useisoutofbounds--docs)
|
|
35
|
+
- [useKeyboardEvents](../?path=/docs/uikit-hooks-usekeyboardevents--docs)
|
|
36
36
|
|
|
37
37
|
See below for more about Storybook and how it works.
|
|
38
38
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.keyboard-event-row {
|
|
2
|
-
font-family:
|
|
3
|
-
|
|
2
|
+
font-family:
|
|
3
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
|
|
4
|
+
Cantarell, "Helvetica Neue", sans-serif;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
.keyboard-event-row .label {
|
|
@@ -14,6 +15,7 @@
|
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
.keyboard-event-row .code {
|
|
17
|
-
font-family:
|
|
18
|
-
"Source Code Pro",
|
|
18
|
+
font-family:
|
|
19
|
+
"SF Mono", Monaco, Inconsolata, "Fira Mono", "Droid Sans Mono", "Source Code Pro",
|
|
20
|
+
monospace;
|
|
19
21
|
}
|