docthub-core-components 2.53.0 → 2.55.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.
@@ -42,10 +42,12 @@ interface AutocompleteProps<T> {
42
42
  emptyMessage?: string;
43
43
  className?: string;
44
44
  inputClassName?: string;
45
+ /** Applied to each chip in multiselect mode */
46
+ chipClassName?: string;
45
47
  debounceMs?: number;
46
48
  minSearchLength?: number;
47
49
  /** Control built-in bolding of matched query segments (default: false) */
48
50
  ntt?: boolean;
49
51
  }
50
- export declare const DoctAutocomplete: <T extends OptionType>({ options, dataSource, value, onChange, change, onInputChange, placeholder, multiple, freeSolo, disabled, loading, size, variant, label, helperText, error, required, fullWidth, clearable, disableCloseOnSelect, filterOptions, getOptionLabel, getOptionValue, isOptionEqualToValue, renderOption, renderTags, fields, noOptionsText, emptyMessage, className, inputClassName, debounceMs, minSearchLength, ntt, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
52
+ export declare const DoctAutocomplete: <T extends OptionType>({ options, dataSource, value, onChange, change, onInputChange, placeholder, multiple, freeSolo, disabled, loading, size, variant, label, helperText, error, required, fullWidth, clearable, disableCloseOnSelect, filterOptions, getOptionLabel, getOptionValue, isOptionEqualToValue, renderOption, renderTags, fields, noOptionsText, emptyMessage, className, inputClassName, chipClassName, debounceMs, minSearchLength, ntt, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
51
53
  export {};
@@ -21,6 +21,12 @@ interface LabeledInputProps extends React.InputHTMLAttributes<HTMLInputElement>
21
21
  fridged?: boolean;
22
22
  "aria-label"?: string;
23
23
  "aria-describedby"?: string;
24
+ /**
25
+ * When true and type="number", prevents mouse wheel scroll from changing the input value.
26
+ * Useful for enterprise/business-critical forms where accidental value changes should be avoided.
27
+ * @default true
28
+ */
29
+ disableScrollOnNumber?: boolean;
24
30
  }
25
31
  export declare const LabeledInput: FC<LabeledInputProps>;
26
32
  export {};
@@ -2,6 +2,12 @@ import * as React from "react";
2
2
  export interface InputProps extends React.ComponentProps<"input"> {
3
3
  error?: boolean;
4
4
  hasError?: boolean;
5
+ /**
6
+ * When true and type="number", prevents mouse wheel scroll from changing the input value.
7
+ * Useful for enterprise/business-critical forms where accidental value changes should be avoided.
8
+ * @default true
9
+ */
10
+ disableScrollOnNumber?: boolean;
5
11
  }
6
12
  declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
7
13
  export { Input };
package/package.json CHANGED
@@ -1,170 +1,170 @@
1
- {
2
- "name": "docthub-core-components",
3
- "version": "2.53.0",
4
- "type": "module",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "style": "dist/style.css",
8
- "types": "dist/index.d.ts",
9
- "files": [
10
- "dist"
11
- ],
12
- "exports": {
13
- ".": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/index.esm.js"
16
- },
17
- "./docthub-core-components.css": "./dist/style.css",
18
- "./style.css": "./dist/style.css",
19
- "./dist/*": "./dist/*"
20
- },
21
- "sideEffects": [
22
- "**/*.css"
23
- ],
24
- "peerDependencies": {
25
- "@radix-ui/react-avatar": "^1.1.10",
26
- "@radix-ui/react-checkbox": "^1.3.2",
27
- "@radix-ui/react-collapsible": "^1.1.11",
28
- "@radix-ui/react-dialog": "^1.1.14",
29
- "@radix-ui/react-dropdown-menu": "^2.1.15",
30
- "@radix-ui/react-label": "^2.1.7",
31
- "@radix-ui/react-popover": "^1.1.14",
32
- "@radix-ui/react-progress": "^1.1.7",
33
- "@radix-ui/react-radio-group": "^1.3.7",
34
- "@radix-ui/react-select": "^2.2.5",
35
- "@radix-ui/react-slot": "^1.2.3",
36
- "@radix-ui/react-tabs": "^1.1.12",
37
- "@radix-ui/react-tooltip": "^1.2.7",
38
- "class-variance-authority": "^0.7.1",
39
- "clsx": "^2.1.1",
40
- "cmdk": "^1.1.1",
41
- "dayjs": "1.11.13",
42
- "lucide-react": "^0.474.0",
43
- "react": "^19.0.0",
44
- "react-day-picker": "^9.7.0",
45
- "react-dom": "^19.0.0",
46
- "react-hook-form": "^7.58.1",
47
- "sonner": "^2.0.5",
48
- "tailwind-merge": "^3.0.1",
49
- "tailwindcss-animate": "^1.0.7",
50
- "vaul": "^1.1.2"
51
- },
52
- "scripts": {
53
- "dev": "vite",
54
- "build": "npm run build:css && vite build",
55
- "build:css": "postcss src/index.css -o dist/style.css --verbose",
56
- "lint": "biome lint .",
57
- "lint:fix": "biome lint --write .",
58
- "format": "biome format --write .",
59
- "format:check": "biome format .",
60
- "check": "biome check .",
61
- "check:fix": "biome check --write .",
62
- "check:fix:unsafe": "biome check --write --unsafe .",
63
- "biome:staged": "biome check --staged .",
64
- "biome:staged:write": "biome check --staged --write .",
65
- "type-check": "tsc -p tsconfig.typecheck.json",
66
- "preview": "vite preview",
67
- "storybook": "storybook dev -p 6006",
68
- "build-storybook": "storybook build",
69
- "postinstall": "node node_modules/esbuild/install.js || echo esbuild-install-skipped",
70
- "prepare": "husky",
71
- "test": "vitest",
72
- "test:run": "vitest run",
73
- "analyze": "vite build --config vite.analyze.config.ts",
74
- "build:registry": "node scripts/build-registry.mjs",
75
- "copy:registry": "node scripts/copy-registry.mjs",
76
- "sync:registry": "node scripts/build-and-sync-registry.mjs",
77
- "check-branch": "sh scripts/check-branch-name.sh"
78
- },
79
- "dependencies": {
80
- "@radix-ui/react-avatar": "^1.1.10",
81
- "@radix-ui/react-checkbox": "^1.3.2",
82
- "@radix-ui/react-collapsible": "^1.1.11",
83
- "@radix-ui/react-dialog": "^1.1.14",
84
- "@radix-ui/react-dropdown-menu": "^2.1.15",
85
- "@radix-ui/react-label": "^2.1.7",
86
- "@radix-ui/react-popover": "^1.1.14",
87
- "@radix-ui/react-progress": "^1.1.7",
88
- "@radix-ui/react-radio-group": "^1.3.7",
89
- "@radix-ui/react-select": "^2.2.5",
90
- "@radix-ui/react-separator": "^1.1.7",
91
- "@radix-ui/react-slot": "^1.2.3",
92
- "@radix-ui/react-tabs": "^1.1.12",
93
- "@radix-ui/react-tooltip": "^1.2.7",
94
- "class-variance-authority": "^0.7.1",
95
- "clsx": "^2.1.1",
96
- "cmdk": "^1.1.1",
97
- "dayjs": "1.11.13",
98
- "force": "^0.0.3",
99
- "lucide-react": "^0.474.0",
100
- "react-compiler-runtime": "^1.0.0",
101
- "react-day-picker": "^9.7.0",
102
- "react-hook-form": "^7.58.1",
103
- "react-phone-number-input": "^3.4.14",
104
- "sonner": "^2.0.5",
105
- "tailwind-merge": "^3.0.1",
106
- "vaul": "^1.1.2",
107
- "vite-tsconfig-paths": "^5.1.4"
108
- },
109
- "devDependencies": {
110
- "@babel/preset-env": "^7.28.5",
111
- "@biomejs/biome": "^2.3.11",
112
- "@radix-ui/react-avatar": "^1.1.10",
113
- "@radix-ui/react-checkbox": "^1.3.2",
114
- "@radix-ui/react-collapsible": "^1.1.11",
115
- "@radix-ui/react-dialog": "^1.1.14",
116
- "@radix-ui/react-dropdown-menu": "^2.1.15",
117
- "@radix-ui/react-label": "^2.1.7",
118
- "@radix-ui/react-popover": "^1.1.14",
119
- "@radix-ui/react-progress": "^1.1.7",
120
- "@radix-ui/react-radio-group": "^1.3.7",
121
- "@radix-ui/react-select": "^2.2.5",
122
- "@radix-ui/react-slot": "^1.2.3",
123
- "@radix-ui/react-tabs": "^1.1.12",
124
- "@radix-ui/react-tooltip": "^1.2.7",
125
- "@storybook/addon-docs": "9.1.10",
126
- "@storybook/react-vite": "9.1.10",
127
- "@tailwindcss/postcss": "^4.1.14",
128
- "@testing-library/jest-dom": "^6.6.3",
129
- "@testing-library/react": "^16.3.0",
130
- "@testing-library/user-event": "^14.6.1",
131
- "@types/estree": "1.0.0",
132
- "@types/node": "^22.13.1",
133
- "@types/react": "^19.2.0",
134
- "@types/react-dom": "^19.2.0",
135
- "@vitejs/plugin-react": "^4.7.0",
136
- "ajv": "^8.17.1",
137
- "autoprefixer": "^10.4.20",
138
- "babel-plugin-react-compiler": "^1.0.0",
139
- "class-variance-authority": "^0.7.1",
140
- "clsx": "^2.1.1",
141
- "cmdk": "^1.1.1",
142
- "cssnano": "^7.1.1",
143
- "dayjs": "1.11.13",
144
- "esbuild": "^0.19.12",
145
- "husky": "^9.1.7",
146
- "jsdom": "^26.1.0",
147
- "lucide-react": "^0.474.0",
148
- "picocolors": "^1.0.0",
149
- "postcss": "^8.5.1",
150
- "postcss-cli": "^11.0.1",
151
- "react": "^18.3.1",
152
- "react-day-picker": "^9.7.0",
153
- "react-dom": "^18.3.1",
154
- "react-hook-form": "^7.58.1",
155
- "rollup-plugin-postcss": "^4.0.2",
156
- "rollup-plugin-visualizer": "^6.0.3",
157
- "shadcn": "^2.7.0",
158
- "sonner": "^2.0.5",
159
- "storybook": "9.1.10",
160
- "tailwind-merge": "^3.0.1",
161
- "tailwindcss": "^3.4.16",
162
- "tailwindcss-animate": "^1.0.7",
163
- "typescript": "~5.6.2",
164
- "vaul": "^1.1.2",
165
- "vite": "^5.4.11",
166
- "vite-plugin-dts": "^4.5.4",
167
- "vite-tsconfig-paths": "^5.1.4",
168
- "vitest": "^2.1.4"
169
- }
170
- }
1
+ {
2
+ "name": "docthub-core-components",
3
+ "version": "2.55.0",
4
+ "type": "module",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "style": "dist/style.css",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.esm.js"
16
+ },
17
+ "./docthub-core-components.css": "./dist/style.css",
18
+ "./style.css": "./dist/style.css",
19
+ "./dist/*": "./dist/*"
20
+ },
21
+ "sideEffects": [
22
+ "**/*.css"
23
+ ],
24
+ "peerDependencies": {
25
+ "@radix-ui/react-avatar": "^1.1.10",
26
+ "@radix-ui/react-checkbox": "^1.3.2",
27
+ "@radix-ui/react-collapsible": "^1.1.11",
28
+ "@radix-ui/react-dialog": "^1.1.14",
29
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
30
+ "@radix-ui/react-label": "^2.1.7",
31
+ "@radix-ui/react-popover": "^1.1.14",
32
+ "@radix-ui/react-progress": "^1.1.7",
33
+ "@radix-ui/react-radio-group": "^1.3.7",
34
+ "@radix-ui/react-select": "^2.2.5",
35
+ "@radix-ui/react-slot": "^1.2.3",
36
+ "@radix-ui/react-tabs": "^1.1.12",
37
+ "@radix-ui/react-tooltip": "^1.2.7",
38
+ "class-variance-authority": "^0.7.1",
39
+ "clsx": "^2.1.1",
40
+ "cmdk": "^1.1.1",
41
+ "dayjs": "1.11.13",
42
+ "lucide-react": "^0.474.0",
43
+ "react": "^19.0.0",
44
+ "react-day-picker": "^9.7.0",
45
+ "react-dom": "^19.0.0",
46
+ "react-hook-form": "^7.58.1",
47
+ "sonner": "^2.0.5",
48
+ "tailwind-merge": "^3.0.1",
49
+ "tailwindcss-animate": "^1.0.7",
50
+ "vaul": "^1.1.2"
51
+ },
52
+ "scripts": {
53
+ "dev": "vite",
54
+ "build": "npm run build:css && vite build",
55
+ "build:css": "postcss src/index.css -o dist/style.css --verbose",
56
+ "lint": "biome lint .",
57
+ "lint:fix": "biome lint --write .",
58
+ "format": "biome format --write .",
59
+ "format:check": "biome format .",
60
+ "check": "biome check .",
61
+ "check:fix": "biome check --write .",
62
+ "check:fix:unsafe": "biome check --write --unsafe .",
63
+ "biome:staged": "biome check --staged .",
64
+ "biome:staged:write": "biome check --staged --write .",
65
+ "type-check": "tsc -p tsconfig.typecheck.json",
66
+ "preview": "vite preview",
67
+ "storybook": "storybook dev -p 6006",
68
+ "build-storybook": "storybook build",
69
+ "postinstall": "node node_modules/esbuild/install.js || echo esbuild-install-skipped",
70
+ "prepare": "husky",
71
+ "test": "vitest",
72
+ "test:run": "vitest run",
73
+ "analyze": "vite build --config vite.analyze.config.ts",
74
+ "build:registry": "node scripts/build-registry.mjs",
75
+ "copy:registry": "node scripts/copy-registry.mjs",
76
+ "sync:registry": "node scripts/build-and-sync-registry.mjs",
77
+ "check-branch": "sh scripts/check-branch-name.sh"
78
+ },
79
+ "dependencies": {
80
+ "@radix-ui/react-avatar": "^1.1.10",
81
+ "@radix-ui/react-checkbox": "^1.3.2",
82
+ "@radix-ui/react-collapsible": "^1.1.11",
83
+ "@radix-ui/react-dialog": "^1.1.14",
84
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
85
+ "@radix-ui/react-label": "^2.1.7",
86
+ "@radix-ui/react-popover": "^1.1.14",
87
+ "@radix-ui/react-progress": "^1.1.7",
88
+ "@radix-ui/react-radio-group": "^1.3.7",
89
+ "@radix-ui/react-select": "^2.2.5",
90
+ "@radix-ui/react-separator": "^1.1.7",
91
+ "@radix-ui/react-slot": "^1.2.3",
92
+ "@radix-ui/react-tabs": "^1.1.12",
93
+ "@radix-ui/react-tooltip": "^1.2.7",
94
+ "class-variance-authority": "^0.7.1",
95
+ "clsx": "^2.1.1",
96
+ "cmdk": "^1.1.1",
97
+ "dayjs": "1.11.13",
98
+ "force": "^0.0.3",
99
+ "lucide-react": "^0.474.0",
100
+ "react-compiler-runtime": "^1.0.0",
101
+ "react-day-picker": "^9.7.0",
102
+ "react-hook-form": "^7.58.1",
103
+ "react-phone-number-input": "^3.4.14",
104
+ "sonner": "^2.0.5",
105
+ "tailwind-merge": "^3.0.1",
106
+ "vaul": "^1.1.2",
107
+ "vite-tsconfig-paths": "^5.1.4"
108
+ },
109
+ "devDependencies": {
110
+ "@babel/preset-env": "^7.28.5",
111
+ "@biomejs/biome": "^2.3.11",
112
+ "@radix-ui/react-avatar": "^1.1.10",
113
+ "@radix-ui/react-checkbox": "^1.3.2",
114
+ "@radix-ui/react-collapsible": "^1.1.11",
115
+ "@radix-ui/react-dialog": "^1.1.14",
116
+ "@radix-ui/react-dropdown-menu": "^2.1.15",
117
+ "@radix-ui/react-label": "^2.1.7",
118
+ "@radix-ui/react-popover": "^1.1.14",
119
+ "@radix-ui/react-progress": "^1.1.7",
120
+ "@radix-ui/react-radio-group": "^1.3.7",
121
+ "@radix-ui/react-select": "^2.2.5",
122
+ "@radix-ui/react-slot": "^1.2.3",
123
+ "@radix-ui/react-tabs": "^1.1.12",
124
+ "@radix-ui/react-tooltip": "^1.2.7",
125
+ "@storybook/addon-docs": "9.1.10",
126
+ "@storybook/react-vite": "9.1.10",
127
+ "@tailwindcss/postcss": "^4.1.14",
128
+ "@testing-library/jest-dom": "^6.6.3",
129
+ "@testing-library/react": "^16.3.0",
130
+ "@testing-library/user-event": "^14.6.1",
131
+ "@types/estree": "1.0.0",
132
+ "@types/node": "^22.13.1",
133
+ "@types/react": "^19.2.0",
134
+ "@types/react-dom": "^19.2.0",
135
+ "@vitejs/plugin-react": "^4.7.0",
136
+ "ajv": "^8.17.1",
137
+ "autoprefixer": "^10.4.20",
138
+ "babel-plugin-react-compiler": "^1.0.0",
139
+ "class-variance-authority": "^0.7.1",
140
+ "clsx": "^2.1.1",
141
+ "cmdk": "^1.1.1",
142
+ "cssnano": "^7.1.1",
143
+ "dayjs": "1.11.13",
144
+ "esbuild": "^0.19.12",
145
+ "husky": "^9.1.7",
146
+ "jsdom": "^26.1.0",
147
+ "lucide-react": "^0.474.0",
148
+ "picocolors": "^1.0.0",
149
+ "postcss": "^8.5.1",
150
+ "postcss-cli": "^11.0.1",
151
+ "react": "^18.3.1",
152
+ "react-day-picker": "^9.7.0",
153
+ "react-dom": "^18.3.1",
154
+ "react-hook-form": "^7.58.1",
155
+ "rollup-plugin-postcss": "^4.0.2",
156
+ "rollup-plugin-visualizer": "^6.0.3",
157
+ "shadcn": "^2.7.0",
158
+ "sonner": "^2.0.5",
159
+ "storybook": "9.1.10",
160
+ "tailwind-merge": "^3.0.1",
161
+ "tailwindcss": "^3.4.16",
162
+ "tailwindcss-animate": "^1.0.7",
163
+ "typescript": "~5.6.2",
164
+ "vaul": "^1.1.2",
165
+ "vite": "^5.4.11",
166
+ "vite-plugin-dts": "^4.5.4",
167
+ "vite-tsconfig-paths": "^5.1.4",
168
+ "vitest": "^2.1.4"
169
+ }
170
+ }