@yelison/forma-ui 0.0.1-bootstrap.0 → 0.1.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/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/README.md +244 -0
- package/dist/base.css +25 -0
- package/dist/components/Badge/Badge.d.ts +14 -0
- package/dist/components/Badge/Badge.js +12 -0
- package/dist/components/Badge/Badge.module.css.js +11 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +23 -0
- package/dist/components/Button/Button.js +34 -0
- package/dist/components/Button/Button.module.css.js +13 -0
- package/dist/components/Button/IconButton.d.ts +17 -0
- package/dist/components/Button/IconButton.js +20 -0
- package/dist/components/Button/IconButton.module.css.js +8 -0
- package/dist/components/Button/buttonClassName.d.ts +17 -0
- package/dist/components/Button/buttonClassName.js +8 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Dialog/Dialog.d.ts +51 -0
- package/dist/components/Dialog/Dialog.js +38 -0
- package/dist/components/Dialog/Dialog.module.css.js +12 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Field/Field.d.ts +42 -0
- package/dist/components/Field/Field.js +40 -0
- package/dist/components/Field/Field.module.css.js +9 -0
- package/dist/components/Field/control.module.css.js +4 -0
- package/dist/components/Field/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +19 -0
- package/dist/components/Icon/Icon.js +27 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/paths.d.ts +26 -0
- package/dist/components/Icon/paths.js +32 -0
- package/dist/components/Input/Input.d.ts +24 -0
- package/dist/components/Input/Input.js +23 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +65 -0
- package/dist/components/Tooltip/Tooltip.js +51 -0
- package/dist/components/Tooltip/Tooltip.module.css.js +4 -0
- package/dist/components/Tooltip/activeTooltip.d.ts +4 -0
- package/dist/components/Tooltip/activeTooltip.js +10 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/contrast-pairs.json +368 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +19 -0
- package/dist/lib/cx.d.ts +4 -0
- package/dist/lib/cx.js +6 -0
- package/dist/lib/position.d.ts +22 -0
- package/dist/lib/position.js +21 -0
- package/dist/lib/scrollLock.d.ts +13 -0
- package/dist/lib/scrollLock.js +22 -0
- package/dist/lib/useFloating.d.ts +25 -0
- package/dist/lib/useFloating.js +48 -0
- package/dist/lib/useModalDialog.d.ts +15 -0
- package/dist/lib/useModalDialog.js +42 -0
- package/dist/provider/FormaProvider.d.ts +17 -0
- package/dist/provider/FormaProvider.js +16 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/strings.d.ts +14 -0
- package/dist/provider/strings.js +7 -0
- package/dist/provider/stringsContext.d.ts +6 -0
- package/dist/provider/stringsContext.js +6 -0
- package/dist/provider/useFormaStrings.d.ts +3 -0
- package/dist/provider/useFormaStrings.js +8 -0
- package/dist/styles.css +2 -0
- package/dist/theme/index.d.ts +5 -0
- package/dist/theme/themeScript.d.ts +21 -0
- package/dist/theme/themeScript.js +7 -0
- package/dist/theme/themeStore.d.ts +42 -0
- package/dist/theme/themeStore.js +55 -0
- package/dist/theme/useTheme.d.ts +21 -0
- package/dist/theme/useTheme.js +16 -0
- package/dist/tokens/contrast.d.ts +12 -0
- package/dist/tokens/contrast.js +25 -0
- package/dist/tokens/tokens.d.ts +2 -0
- package/dist/tokens/tokens.js +4 -0
- package/dist/tokens.css +156 -0
- package/dist/tokens.json +154 -0
- package/package.json +93 -3
package/package.json
CHANGED
|
@@ -1,7 +1,97 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yelison/forma-ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Forma UI: accessible React components and design tokens extracted from Resolve.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"design-system",
|
|
8
|
+
"components",
|
|
9
|
+
"accessibility",
|
|
10
|
+
"a11y",
|
|
11
|
+
"design-tokens",
|
|
12
|
+
"css-custom-properties",
|
|
13
|
+
"dark-mode",
|
|
14
|
+
"typescript"
|
|
15
|
+
],
|
|
16
|
+
"homepage": "https://yelison.github.io/forma-ui/",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/Yelison/forma-ui/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/Yelison/forma-ui.git",
|
|
23
|
+
"directory": "packages/forma-ui"
|
|
24
|
+
},
|
|
5
25
|
"license": "MIT",
|
|
6
|
-
"
|
|
26
|
+
"type": "module",
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"*.css"
|
|
29
|
+
],
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"!dist/css-modules.json",
|
|
35
|
+
"CHANGELOG.md"
|
|
36
|
+
],
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"import": "./dist/index.js",
|
|
41
|
+
"default": "./dist/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./base.css": "./dist/base.css",
|
|
44
|
+
"./contrast-pairs.json": "./dist/contrast-pairs.json",
|
|
45
|
+
"./styles.css": "./dist/styles.css",
|
|
46
|
+
"./tokens.css": "./dist/tokens.css",
|
|
47
|
+
"./tokens.json": "./dist/tokens.json",
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
52
|
+
"build:tokens": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/build-tokens.ts",
|
|
53
|
+
"build:icons": "node --experimental-strip-types --disable-warning=ExperimentalWarning --disable-warning=MODULE_TYPELESS_PACKAGE_JSON scripts/build-icons.ts",
|
|
54
|
+
"build": "npm run clean && npm run build:tokens && npm run build:icons && vite build && tsc -p tsconfig.build.json",
|
|
55
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
56
|
+
"check:consumer": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-consumer.ts",
|
|
57
|
+
"pack:check": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/pack-check.ts",
|
|
58
|
+
"pack:reproducible": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/pack-reproducible.ts",
|
|
59
|
+
"check:changeset": "node --experimental-strip-types --disable-warning=ExperimentalWarning scripts/check-changeset.ts",
|
|
60
|
+
"test": "vitest run",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"test:browser": "vitest run --config vitest.browser.config.ts",
|
|
63
|
+
"test:scripts": "node --experimental-strip-types --disable-warning=ExperimentalWarning --test \"scripts/**/*.test.ts\""
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"react": "^19.2",
|
|
67
|
+
"react-dom": "^19.2"
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=22.12"
|
|
71
|
+
},
|
|
72
|
+
"publishConfig": {
|
|
73
|
+
"access": "public",
|
|
74
|
+
"provenance": true
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
78
|
+
"@testing-library/jest-dom": "^7.0.1",
|
|
79
|
+
"@testing-library/react": "^16.3.3",
|
|
80
|
+
"@testing-library/user-event": "^14.6.7",
|
|
81
|
+
"@types/node": "^22.20.5",
|
|
82
|
+
"@types/react": "^19.2.18",
|
|
83
|
+
"@types/react-dom": "^19.2.7",
|
|
84
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
85
|
+
"@vitest/browser-playwright": "5.0.3",
|
|
86
|
+
"@vitest/coverage-v8": "5.0.3",
|
|
87
|
+
"axe-core": "~4.13.0",
|
|
88
|
+
"jsdom": "^29.1.1",
|
|
89
|
+
"playwright": "^1.63.0",
|
|
90
|
+
"publint": "^0.3.25",
|
|
91
|
+
"react": "^19.2.8",
|
|
92
|
+
"react-dom": "^19.2.8",
|
|
93
|
+
"typescript": "~6.0.2",
|
|
94
|
+
"vite": "^8.3.0",
|
|
95
|
+
"vitest": "^5.0.3"
|
|
96
|
+
}
|
|
7
97
|
}
|