@ahrowe/ui 0.1.5 → 0.1.6

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.
Files changed (30) hide show
  1. package/dist/index.cjs +4 -4
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.mjs +1831 -1164
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/types/package/common/iconPicker/iconPicker.d.ts +2 -21
  7. package/dist/types/package/common/iconPicker/iconPicker.types.d.ts +23 -0
  8. package/dist/types/package/common/iconPicker/index.d.ts +1 -2
  9. package/dist/types/package/common/inputDropdown/index.d.ts +1 -0
  10. package/dist/types/package/common/inputDropdown/inputDropdown.d.ts +2 -0
  11. package/dist/types/package/common/inputDropdown/inputDropdown.types.d.ts +21 -0
  12. package/dist/types/package/common/stepper/index.d.ts +1 -2
  13. package/dist/types/package/common/stepper/stepper.d.ts +2 -25
  14. package/dist/types/package/common/stepper/stepper.types.d.ts +21 -0
  15. package/dist/types/package/common/virtualList/index.d.ts +2 -0
  16. package/dist/types/package/common/virtualList/virtualList.d.ts +14 -0
  17. package/dist/types/package/common/virtualList/virtualList.types.d.ts +71 -0
  18. package/dist/types/package/common/wizard/index.d.ts +1 -2
  19. package/dist/types/package/common/wizard/wizard.d.ts +2 -27
  20. package/dist/types/package/common/wizard/wizard.types.d.ts +12 -0
  21. package/dist/types/package/index.d.ts +53 -37
  22. package/package.json +10 -2
  23. package/dist/types/package/common/icon/Icon.d.ts +0 -10
  24. package/dist/types/package/common/icon/index.d.ts +0 -2
  25. package/dist/types/package/common/icon/svg/can.d.ts +0 -2
  26. package/dist/types/package/common/inputDropdownModern/index.d.ts +0 -2
  27. package/dist/types/package/common/inputDropdownModern/inputDropdownModern.d.ts +0 -35
  28. package/dist/types/package/common/roleManager/index.d.ts +0 -2
  29. package/dist/types/package/common/roleManager/roleManager.container.d.ts +0 -2
  30. package/dist/types/package/common/roleManager/roleManager.d.ts +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahrowe/ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -43,12 +43,16 @@
43
43
  "dist",
44
44
  "docs"
45
45
  ],
46
+ "lint-staged": {
47
+ "*.{ts,tsx}": "vitest related --run"
48
+ },
46
49
  "scripts": {
47
50
  "dev": "vite",
48
51
  "build": "vite build",
49
52
  "build:lib": "vite build --config vite.lib.config.ts",
50
53
  "build:mcp": "vite build --config vite.mcp.config.ts",
51
54
  "preview": "vite preview",
55
+ "gen-barrel": "tsx scripts/gen-barrel.ts",
52
56
  "gc": "bash src/scripts/generateComponent.sh $INIT_CWD process.argv",
53
57
  "lint": "eslint .",
54
58
  "lint:fix": "eslint . --fix",
@@ -58,7 +62,8 @@
58
62
  "verify-package": "bash src/scripts/verify-package.sh",
59
63
  "test": "vitest run",
60
64
  "test:watch": "vitest",
61
- "test:ui": "vitest --ui"
65
+ "test:ui": "vitest --ui",
66
+ "prepare": "husky"
62
67
  },
63
68
  "peerDependencies": {
64
69
  "@fortawesome/fontawesome-svg-core": ">=6.0.0",
@@ -99,8 +104,10 @@
99
104
  "eslint-config-prettier": "^10.1.8",
100
105
  "eslint-plugin-react": "^7.37.5",
101
106
  "eslint-plugin-react-hooks": "^7.1.1",
107
+ "husky": "^9.1.7",
102
108
  "jiti": "^2.7.0",
103
109
  "jsdom": "^29.1.1",
110
+ "lint-staged": "^17.0.5",
104
111
  "postcss": "^8.5.15",
105
112
  "postcss-nested": "^7.0.2",
106
113
  "prettier": "^3.8.3",
@@ -108,6 +115,7 @@
108
115
  "react-dom": "^19.2.6",
109
116
  "react-element-to-jsx-string": "^17.0.1",
110
117
  "react-syntax-highlighter": "^16.1.1",
118
+ "tsx": "^4.22.3",
111
119
  "typescript": "^6.0.3",
112
120
  "typescript-eslint": "^8.60.0",
113
121
  "vite": "^8.0.14",
@@ -1,10 +0,0 @@
1
- export default Icon;
2
- declare function Icon({ type, ...rest }: {
3
- [x: string]: any;
4
- type: any;
5
- }): import("react/jsx-runtime").JSX.Element | null;
6
- declare namespace Icon {
7
- namespace propTypes {
8
- let type: any;
9
- }
10
- }
@@ -1,2 +0,0 @@
1
- import { default as Icon } from './Icon';
2
- export default Icon;
@@ -1,2 +0,0 @@
1
- export default Can;
2
- declare function Can(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as InputDropdownModern } from './inputDropdownModern.jsx';
2
- export default InputDropdownModern;
@@ -1,35 +0,0 @@
1
- import { ValidatableComponent } from '../../services/formValidation';
2
- export default InputDropdownModern;
3
- declare class InputDropdownModern extends ValidatableComponent<import('../../services/formValidation/validatableComponent').ValidatableComponentProps, import('../../services/formValidation/validatableComponent').ValidatableComponentState> {
4
- static propTypes: {
5
- label: any;
6
- value: any;
7
- formValidator: any;
8
- items: any;
9
- className: any;
10
- onSelect: any;
11
- placeholder: any;
12
- };
13
- static defaultProps: {
14
- label: string;
15
- value: string;
16
- formValidator: null;
17
- items: never[];
18
- className: string;
19
- onSelect: () => null;
20
- placeholder: string;
21
- };
22
- constructor(props: any);
23
- state: {
24
- isMenuShown: boolean;
25
- highlightedIndex: null;
26
- currItems: any;
27
- lastVal: string;
28
- };
29
- getItemsForValue: (value: any) => any;
30
- getValueFromProps: (props: any) => any;
31
- componentDidUpdate(prevProps: any, prevState: any): void;
32
- hideMenuTimeout: any;
33
- onKeyDown: (event: any) => void;
34
- render(): import("react/jsx-runtime").JSX.Element;
35
- }
@@ -1,2 +0,0 @@
1
- import { default as RoleManager } from './roleManager.container.js';
2
- export default RoleManager;
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- export default RoleManager;
3
- declare class RoleManager extends React.Component<any, any, any> {
4
- static propTypes: {
5
- children: any;
6
- anyRequiredRoles: any;
7
- allRequiredRoles: any;
8
- invalidRoleContent: any;
9
- user: any;
10
- household: any;
11
- };
12
- static defaultProps: {
13
- children: null;
14
- anyRequiredRoles: never[];
15
- allRequiredRoles: never[];
16
- invalidRoleContent: null;
17
- };
18
- constructor(props: any);
19
- state: {};
20
- checkIsRoleSufficient: () => any;
21
- render(): import("react/jsx-runtime").JSX.Element;
22
- }