@ah-automation.nl/component-lib 0.0.1 → 0.0.3

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.
@@ -0,0 +1,3 @@
1
+ export type { SidebarNavItem, SidebarNavProps } from "./sidebar-nav";
2
+ export type { SingleSelectOption, SingleSelectProps } from "./single-select";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { ComponentType, MouseEvent, ReactNode } from "react";
2
+ type SidebarNavIcon = ComponentType<{
3
+ className?: string;
4
+ }>;
5
+ export type SidebarNavItem = {
6
+ label: string;
7
+ route: string;
8
+ icon?: SidebarNavIcon;
9
+ disabled?: boolean;
10
+ className?: string;
11
+ badge?: ReactNode;
12
+ };
13
+ export type SidebarNavProps = {
14
+ items: SidebarNavItem[];
15
+ activeRoute?: string;
16
+ defaultCollapsed?: boolean;
17
+ onItemClick?: (item: SidebarNavItem, event: MouseEvent<HTMLAnchorElement>) => void;
18
+ logo?: ReactNode;
19
+ footer?: ReactNode;
20
+ className?: string;
21
+ headerClassName?: string;
22
+ contentClassName?: string;
23
+ menuClassName?: string;
24
+ itemClassName?: string;
25
+ footerClassName?: string;
26
+ };
27
+ export {};
28
+ //# sourceMappingURL=sidebar-nav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-nav.d.ts","sourceRoot":"","sources":["../../src/types/sidebar-nav.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,KAAK,cAAc,GAAG,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,CACZ,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KACjC,IAAI,CAAC;IACV,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,20 @@
1
+ export type SingleSelectOption = {
2
+ label: string;
3
+ value: string;
4
+ disabled?: boolean;
5
+ };
6
+ export type SingleSelectProps = {
7
+ options: SingleSelectOption[];
8
+ defaultOption?: SingleSelectOption;
9
+ value?: string;
10
+ defaultValue?: string;
11
+ onValueChange?: (value: string) => void;
12
+ placeholder?: string;
13
+ disabled?: boolean;
14
+ name?: string;
15
+ size?: "sm" | "default";
16
+ className?: string;
17
+ triggerClassName?: string;
18
+ contentClassName?: string;
19
+ };
20
+ //# sourceMappingURL=single-select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-select.d.ts","sourceRoot":"","sources":["../../src/types/single-select.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ah-automation.nl/component-lib",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -21,6 +21,8 @@
21
21
  "build:types": "tsc -p tsconfig.lib.json",
22
22
  "build": "npm run typecheck && vite build && npm run build:types",
23
23
  "lint": "eslint .",
24
+ "lint:fix": "eslint . --fix",
25
+ "format": "prettier --write .",
24
26
  "preview": "vite preview"
25
27
  },
26
28
  "peerDependencies": {
@@ -44,15 +46,17 @@
44
46
  "@types/node": "^24.12.0",
45
47
  "@types/react": "^19.2.14",
46
48
  "@types/react-dom": "^19.2.3",
47
- "@vitejs/plugin-react": "^6.0.0",
49
+ "@vitejs/plugin-react": "^5.1.1",
48
50
  "eslint": "^9.39.4",
51
+ "eslint-config-prettier": "^10.1.8",
49
52
  "eslint-plugin-react-hooks": "^7.0.1",
50
53
  "eslint-plugin-react-refresh": "^0.5.2",
51
54
  "globals": "^17.4.0",
55
+ "prettier": "3.8.1",
52
56
  "react": "^19.2.4",
53
57
  "react-dom": "^19.2.4",
54
58
  "typescript": "~5.9.3",
55
59
  "typescript-eslint": "^8.56.1",
56
- "vite": "^8.0.0"
60
+ "vite": "^7.2.4"
57
61
  }
58
62
  }