@hive-ui/date-picker 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.
@@ -0,0 +1,8 @@
1
+ import { InputProps } from "@hive-ui/input";
2
+ import * as _$react from "react";
3
+
4
+ //#region src/DatePicker.d.ts
5
+ type DatePickerProps = Omit<InputProps, "type" | "insertBefore" | "insertAfter">;
6
+ declare const DatePicker: _$react.ForwardRefExoticComponent<DatePickerProps & _$react.RefAttributes<HTMLElement>>;
7
+ //#endregion
8
+ export { DatePicker, type DatePickerProps };
package/dist/index.mjs ADDED
@@ -0,0 +1,15 @@
1
+ import { Input } from "@hive-ui/input";
2
+ import { forwardRef } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/DatePicker.tsx
5
+ const DatePicker = forwardRef(({ element = "DATEPICKER", ...props }, ref) => {
6
+ return /* @__PURE__ */ jsx(Input, {
7
+ element,
8
+ max: "9999-12-31",
9
+ ...props,
10
+ type: "date",
11
+ ref
12
+ });
13
+ });
14
+ //#endregion
15
+ export { DatePicker };
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@hive-ui/date-picker",
3
+ "version": "0.1.0",
4
+ "description": "Hive UI Date Picker Component",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "type": "module",
9
+ "exports": {
10
+ ".": "./dist/index.mjs",
11
+ "./package.json": "./package.json"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "scripts": {
17
+ "build": "vp pack",
18
+ "dev": "vp pack --watch",
19
+ "test": "vp test",
20
+ "check": "vp check",
21
+ "prepublishOnly": "vp run build"
22
+ },
23
+ "dependencies": {
24
+ "@hive-ui/input": "^0.1.0"
25
+ },
26
+ "devDependencies": {
27
+ "@types/node": "^25.6.2",
28
+ "@typescript/native-preview": "7.0.0-dev.20260509.2",
29
+ "bumpp": "^11.1.0",
30
+ "typescript": "^6.0.3",
31
+ "vite-plus": "^0.1.20",
32
+ "vitest": "npm:@voidzero-dev/vite-plus-test@^0.1.20"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "19.2.6"
36
+ }
37
+ }