@philosaether/chipper 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/LICENSE +21 -0
- package/README.md +778 -0
- package/dist/base.css +1 -0
- package/dist/headless.d.ts +16 -0
- package/dist/headless.d.ts.map +1 -0
- package/dist/headless.js +18 -0
- package/dist/index.js +1445 -0
- package/dist/src/builder/index.d.ts +82 -0
- package/dist/src/builder/index.d.ts.map +1 -0
- package/dist/src/builder/predicates.d.ts +18 -0
- package/dist/src/builder/predicates.d.ts.map +1 -0
- package/dist/src/components/Chip.d.ts +15 -0
- package/dist/src/components/Chip.d.ts.map +1 -0
- package/dist/src/components/ChipInfoPopup.d.ts +12 -0
- package/dist/src/components/ChipInfoPopup.d.ts.map +1 -0
- package/dist/src/components/ChipPopup.d.ts +20 -0
- package/dist/src/components/ChipPopup.d.ts.map +1 -0
- package/dist/src/components/Chipper.d.ts +25 -0
- package/dist/src/components/Chipper.d.ts.map +1 -0
- package/dist/src/components/Clause.d.ts +13 -0
- package/dist/src/components/Clause.d.ts.map +1 -0
- package/dist/src/components/Sentence.d.ts +15 -0
- package/dist/src/components/Sentence.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +12 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/popups/AlternativeCoordinatePopup.d.ts +16 -0
- package/dist/src/components/popups/AlternativeCoordinatePopup.d.ts.map +1 -0
- package/dist/src/components/popups/KeywordGroupList.d.ts +29 -0
- package/dist/src/components/popups/KeywordGroupList.d.ts.map +1 -0
- package/dist/src/components/popups/KeywordOrExpressionPopup.d.ts +30 -0
- package/dist/src/components/popups/KeywordOrExpressionPopup.d.ts.map +1 -0
- package/dist/src/components/popups/MultiSelectPopup.d.ts +20 -0
- package/dist/src/components/popups/MultiSelectPopup.d.ts.map +1 -0
- package/dist/src/components/popups/NumericInput.d.ts +16 -0
- package/dist/src/components/popups/NumericInput.d.ts.map +1 -0
- package/dist/src/components/popups/ReferencePopup.d.ts +20 -0
- package/dist/src/components/popups/ReferencePopup.d.ts.map +1 -0
- package/dist/src/core/actions/set-chip-value.d.ts +17 -0
- package/dist/src/core/actions/set-chip-value.d.ts.map +1 -0
- package/dist/src/core/actions/set-context.d.ts +18 -0
- package/dist/src/core/actions/set-context.d.ts.map +1 -0
- package/dist/src/core/actions/set-display-value.d.ts +18 -0
- package/dist/src/core/actions/set-display-value.d.ts.map +1 -0
- package/dist/src/core/actions/toggle-clause.d.ts +15 -0
- package/dist/src/core/actions/toggle-clause.d.ts.map +1 -0
- package/dist/src/core/context-resolution.d.ts +36 -0
- package/dist/src/core/context-resolution.d.ts.map +1 -0
- package/dist/src/core/initialize.d.ts +43 -0
- package/dist/src/core/initialize.d.ts.map +1 -0
- package/dist/src/core/mode-switching.d.ts +10 -0
- package/dist/src/core/mode-switching.d.ts.map +1 -0
- package/dist/src/core/reducer.d.ts +16 -0
- package/dist/src/core/reducer.d.ts.map +1 -0
- package/dist/src/core/resolve-keyword-label.d.ts +7 -0
- package/dist/src/core/resolve-keyword-label.d.ts.map +1 -0
- package/dist/src/core/serialize.d.ts +34 -0
- package/dist/src/core/serialize.d.ts.map +1 -0
- package/dist/src/core/state.d.ts +59 -0
- package/dist/src/core/state.d.ts.map +1 -0
- package/dist/src/core/store.d.ts +23 -0
- package/dist/src/core/store.d.ts.map +1 -0
- package/dist/src/core/types.d.ts +242 -0
- package/dist/src/core/types.d.ts.map +1 -0
- package/dist/src/domains/alternative-coordinate.d.ts +110 -0
- package/dist/src/domains/alternative-coordinate.d.ts.map +1 -0
- package/dist/src/domains/create-domain.d.ts +30 -0
- package/dist/src/domains/create-domain.d.ts.map +1 -0
- package/dist/src/domains/facades.d.ts +134 -0
- package/dist/src/domains/facades.d.ts.map +1 -0
- package/dist/src/domains/index.d.ts +14 -0
- package/dist/src/domains/index.d.ts.map +1 -0
- package/dist/src/domains/keyword-or-expression.d.ts +148 -0
- package/dist/src/domains/keyword-or-expression.d.ts.map +1 -0
- package/dist/src/domains/multi-select.d.ts +68 -0
- package/dist/src/domains/multi-select.d.ts.map +1 -0
- package/dist/src/domains/normalize-keywords.d.ts +83 -0
- package/dist/src/domains/normalize-keywords.d.ts.map +1 -0
- package/dist/src/domains/reference.d.ts +89 -0
- package/dist/src/domains/reference.d.ts.map +1 -0
- package/dist/src/hooks/SentenceProvider.d.ts +17 -0
- package/dist/src/hooks/SentenceProvider.d.ts.map +1 -0
- package/dist/src/hooks/context.d.ts +31 -0
- package/dist/src/hooks/context.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +13 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/useChip.d.ts +21 -0
- package/dist/src/hooks/useChip.d.ts.map +1 -0
- package/dist/src/hooks/useDisplaySource.d.ts +16 -0
- package/dist/src/hooks/useDisplaySource.d.ts.map +1 -0
- package/dist/src/hooks/useKeyboardNavigation.d.ts +44 -0
- package/dist/src/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/src/hooks/usePopup.d.ts +13 -0
- package/dist/src/hooks/usePopup.d.ts.map +1 -0
- package/dist/src/hooks/useReferenceDisplay.d.ts +22 -0
- package/dist/src/hooks/useReferenceDisplay.d.ts.map +1 -0
- package/dist/src/hooks/useSentence.d.ts +14 -0
- package/dist/src/hooks/useSentence.d.ts.map +1 -0
- package/dist/src/index.d.ts +25 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/palette/index.d.ts +29 -0
- package/dist/src/palette/index.d.ts.map +1 -0
- package/dist/src/themes/apply-theme.d.ts +34 -0
- package/dist/src/themes/apply-theme.d.ts.map +1 -0
- package/dist/src/themes/create-hue.d.ts +23 -0
- package/dist/src/themes/create-hue.d.ts.map +1 -0
- package/dist/src/themes/index.d.ts +13 -0
- package/dist/src/themes/index.d.ts.map +1 -0
- package/dist/src/themes/midnight.d.ts +11 -0
- package/dist/src/themes/midnight.d.ts.map +1 -0
- package/dist/src/themes/praxis.d.ts +11 -0
- package/dist/src/themes/praxis.d.ts.map +1 -0
- package/dist/src/themes/terminal.d.ts +9 -0
- package/dist/src/themes/terminal.d.ts.map +1 -0
- package/dist/src/themes/types.d.ts +72 -0
- package/dist/src/themes/types.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/themes/index.js +256 -0
- package/dist/themes/midnight.css +1 -0
- package/dist/themes/praxis.css +1 -0
- package/dist/themes/terminal.css +1 -0
- package/dist/usePopup-Of6OHa1_.js +653 -0
- package/package.json +75 -0
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@philosaether/chipper",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Plain-English editing interfaces for complex configuration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./headless": {
|
|
14
|
+
"types": "./dist/headless.d.ts",
|
|
15
|
+
"import": "./dist/headless.js"
|
|
16
|
+
},
|
|
17
|
+
"./themes": {
|
|
18
|
+
"types": "./dist/src/themes/index.d.ts",
|
|
19
|
+
"import": "./dist/themes/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styles/base.css": "./dist/base.css",
|
|
23
|
+
"./themes/praxis.css": "./dist/themes/praxis.css",
|
|
24
|
+
"./themes/midnight.css": "./dist/themes/midnight.css",
|
|
25
|
+
"./themes/terminal.css": "./dist/themes/terminal.css"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"README.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"build": "vite build && tsc -p tsconfig.build.json && npm run build:css",
|
|
35
|
+
"build:css": "sass --style=compressed --no-source-map src/styles/chipper.scss:dist/styles.css src/styles/chipper-base.scss:dist/base.css src/styles/themes/praxis-theme.scss:dist/themes/praxis.css src/styles/themes/midnight-theme.scss:dist/themes/midnight.css src/styles/themes/terminal-theme.scss:dist/themes/terminal.css",
|
|
36
|
+
"lint": "eslint src/",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"test:watch": "vitest",
|
|
39
|
+
"prepublishOnly": "npm run build"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
43
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@testing-library/react": "^16.3.2",
|
|
47
|
+
"@types/react": "^19.0.0",
|
|
48
|
+
"@types/react-dom": "^19.0.0",
|
|
49
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
50
|
+
"eslint": "^9.0.0",
|
|
51
|
+
"jsdom": "^29.1.0",
|
|
52
|
+
"prettier": "^3.0.0",
|
|
53
|
+
"react": "^19.0.0",
|
|
54
|
+
"react-dom": "^19.0.0",
|
|
55
|
+
"sass": "^1.99.0",
|
|
56
|
+
"typescript": "^5.7.0",
|
|
57
|
+
"vite": "^6.0.0",
|
|
58
|
+
"vitest": "^3.0.0"
|
|
59
|
+
},
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"homepage": "https://github.com/philosaether/chipper",
|
|
62
|
+
"repository": {
|
|
63
|
+
"type": "git",
|
|
64
|
+
"url": "https://github.com/philosaether/chipper"
|
|
65
|
+
},
|
|
66
|
+
"keywords": [
|
|
67
|
+
"react",
|
|
68
|
+
"form",
|
|
69
|
+
"input",
|
|
70
|
+
"chips",
|
|
71
|
+
"sentence",
|
|
72
|
+
"configuration",
|
|
73
|
+
"ui"
|
|
74
|
+
]
|
|
75
|
+
}
|