@teja-app/ui 0.0.8 → 0.0.9
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/dist/components/DateInput/DateInput.d.ts +2 -1
- package/dist/components/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput/DateInput.types.d.ts +25 -2
- package/dist/components/DateInput/DateInput.types.d.ts.map +1 -1
- package/dist/index.cjs +4661 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4661 -101
- package/dist/index.js.map +1 -1
- package/dist/tailwind/index.cjs +3 -2
- package/dist/tailwind/index.cjs.map +1 -1
- package/dist/tailwind/index.js +3 -2
- package/dist/tailwind/index.js.map +1 -1
- package/dist/tailwind/spacing.d.ts +1 -1
- package/dist/tailwind/spacing.d.ts.map +1 -1
- package/dist/ui.css +457 -0
- package/package.json +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.tsx"],"names":[],"mappings":"AAWA,OAAO,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA+JxD;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,6GAgcrB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export interface DateInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange' | 'value'> {
|
|
1
|
+
export interface DateInputProps {
|
|
3
2
|
/** Current date value in YYYY-MM-DD format */
|
|
4
3
|
value: string | null;
|
|
5
4
|
/** Called when the date changes */
|
|
@@ -12,5 +11,29 @@ export interface DateInputProps extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
12
11
|
helperText?: string;
|
|
13
12
|
/** Whether the input should take full width */
|
|
14
13
|
fullWidth?: boolean;
|
|
14
|
+
/** Whether the input is disabled */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/** Whether the field is required */
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/** Minimum date in YYYY-MM-DD format */
|
|
19
|
+
min?: string;
|
|
20
|
+
/** Maximum date in YYYY-MM-DD format */
|
|
21
|
+
max?: string;
|
|
22
|
+
/** Additional CSS class for the input element */
|
|
23
|
+
className?: string;
|
|
24
|
+
/** HTML id attribute */
|
|
25
|
+
id?: string;
|
|
26
|
+
/** Test ID following teja-ui suffix pattern */
|
|
27
|
+
testId?: string;
|
|
28
|
+
/** Placeholder text (default: "Select date") */
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/** Custom function to disable specific dates */
|
|
31
|
+
disabledDate?: (date: Date) => boolean;
|
|
32
|
+
/** Show clear button when value is set (default: true) */
|
|
33
|
+
allowClear?: boolean;
|
|
34
|
+
/** Locale for the calendar (import from "react-day-picker/locale") */
|
|
35
|
+
locale?: Partial<import('react-day-picker').Locale>;
|
|
36
|
+
/** Format function to display the date in the input. Receives the Date and locale. Default: YYYY-MM-DD */
|
|
37
|
+
formatDisplayValue?: (date: Date, locale?: Partial<import('react-day-picker').Locale>) => string;
|
|
15
38
|
}
|
|
16
39
|
//# sourceMappingURL=DateInput.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"DateInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,mCAAmC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,0BA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