thailife-react 0.0.22 → 0.0.24
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/cjs/index.js +508 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts +18 -0
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/dist/esm/components/Autocomplete/index.d.ts +2 -0
- package/dist/esm/components/Autocomplete/index.d.ts.map +1 -0
- package/dist/esm/components/Button/Button.d.ts +14 -0
- package/dist/esm/components/Button/Button.d.ts.map +1 -0
- package/dist/esm/components/Button/index.d.ts +3 -0
- package/dist/esm/components/Button/index.d.ts.map +1 -0
- package/dist/esm/components/Checkbox/Checkbox.d.ts +12 -0
- package/dist/esm/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/esm/components/Checkbox/index.d.ts +3 -0
- package/dist/esm/components/Checkbox/index.d.ts.map +1 -0
- package/dist/esm/components/Datepicker/Datepicker.d.ts +23 -0
- package/dist/esm/components/Datepicker/Datepicker.d.ts.map +1 -0
- package/dist/esm/components/Datepicker/index.d.ts +3 -0
- package/dist/esm/components/Datepicker/index.d.ts.map +1 -0
- package/dist/esm/components/Input/Input.d.ts +27 -0
- package/dist/esm/components/Input/Input.d.ts.map +1 -0
- package/dist/esm/components/Input/index.d.ts +3 -0
- package/dist/esm/components/Input/index.d.ts.map +1 -0
- package/dist/esm/components/Radio/Radio.d.ts +12 -0
- package/dist/esm/components/Radio/Radio.d.ts.map +1 -0
- package/dist/esm/components/Radio/index.d.ts +3 -0
- package/dist/esm/components/Radio/index.d.ts.map +1 -0
- package/dist/esm/components/Select/Select.d.ts +16 -0
- package/dist/esm/components/Select/Select.d.ts.map +1 -0
- package/dist/esm/components/Select/index.d.ts +3 -0
- package/dist/esm/components/Select/index.d.ts.map +1 -0
- package/dist/esm/components/index.d.ts +8 -0
- package/dist/esm/components/index.d.ts.map +1 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +500 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +42 -73
- package/LICENSE +0 -21
- package/README.md +0 -118
- package/dist/components/Button/Button.d.ts +0 -12
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -14
- package/dist/components/Button/Button.stories.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -18
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -15
- package/dist/components/Checkbox/Checkbox.stories.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -38
- package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -17
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +0 -1
- package/dist/components/DatePicker/examples.d.ts +0 -4
- package/dist/components/DatePicker/examples.d.ts.map +0 -1
- package/dist/components/DatePicker/index.d.ts +0 -4
- package/dist/components/DatePicker/index.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts +0 -16
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.stories.d.ts +0 -15
- package/dist/components/Input/Input.stories.d.ts.map +0 -1
- package/dist/components/InputFile/InputFile.d.ts +0 -22
- package/dist/components/InputFile/InputFile.d.ts.map +0 -1
- package/dist/components/InputFile/InputFile.stories.d.ts +0 -15
- package/dist/components/InputFile/InputFile.stories.d.ts.map +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -16
- package/dist/components/Radio/Radio.d.ts.map +0 -1
- package/dist/components/Radio/Radio.stories.d.ts +0 -14
- package/dist/components/Radio/Radio.stories.d.ts.map +0 -1
- package/dist/components/Select/Select.d.ts +0 -25
- package/dist/components/Select/Select.d.ts.map +0 -1
- package/dist/components/Select/Select.stories.d.ts +0 -15
- package/dist/components/Select/Select.stories.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -18
- package/dist/components/Textarea/Textarea.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -15
- package/dist/components/Textarea/Textarea.stories.d.ts.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm.js +0 -2368
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -2399
- package/dist/index.js.map +0 -1
- package/dist/styles/index.css +0 -602
- package/dist/styles/index.d.ts +0 -77
- package/dist/styles/index.d.ts.map +0 -1
- package/dist/styles/theme.d.ts +0 -87
- package/dist/styles/theme.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvG,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,QAAA,MAAM,QAAQ,wFA4BZ,CAAC;AAIH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Checkbox } from "./Checkbox";
|
|
3
|
-
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Checked: Story;
|
|
8
|
-
export declare const WithHelperText: Story;
|
|
9
|
-
export declare const WithError: Story;
|
|
10
|
-
export declare const Small: Story;
|
|
11
|
-
export declare const Large: Story;
|
|
12
|
-
export declare const Indeterminate: Story;
|
|
13
|
-
export declare const Disabled: Story;
|
|
14
|
-
export declare const DisabledChecked: Story;
|
|
15
|
-
//# sourceMappingURL=Checkbox.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAyB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAK3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export type DateFormat = 'DD/MM/YYYY' | 'DD/MM/YYYY HH:mm' | 'MM/DD/YYYY' | 'MM/DD/YYYY HH:mm' | 'YYYY-MM-DD' | 'YYYY-MM-DD HH:mm';
|
|
3
|
-
export type Language = 'th' | 'en';
|
|
4
|
-
export type YearType = 'be' | 'ad';
|
|
5
|
-
export interface DateTimePickerProps {
|
|
6
|
-
/** Date format - determines if time picker is shown */
|
|
7
|
-
format?: DateFormat;
|
|
8
|
-
/** UI language */
|
|
9
|
-
language?: Language;
|
|
10
|
-
/** Year type (Buddhist Era or Anno Domini) */
|
|
11
|
-
yearType?: YearType;
|
|
12
|
-
/** Current value */
|
|
13
|
-
value?: Date | string | null;
|
|
14
|
-
/** Change handler */
|
|
15
|
-
onChange?: (date: Date | null) => void;
|
|
16
|
-
/** Placeholder text */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** Disabled state */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** Minimum selectable date */
|
|
21
|
-
minDate?: Date;
|
|
22
|
-
/** Maximum selectable date */
|
|
23
|
-
maxDate?: Date;
|
|
24
|
-
/** CSS class name */
|
|
25
|
-
className?: string;
|
|
26
|
-
/** Show clear button */
|
|
27
|
-
showClear?: boolean;
|
|
28
|
-
/** Show today button */
|
|
29
|
-
showToday?: boolean;
|
|
30
|
-
/** Disable past dates */
|
|
31
|
-
disabledPast?: boolean;
|
|
32
|
-
/** Disable future dates */
|
|
33
|
-
disabledFuture?: boolean;
|
|
34
|
-
}
|
|
35
|
-
declare const DatePicker: React.FC<DateTimePickerProps>;
|
|
36
|
-
export default DatePicker;
|
|
37
|
-
export { DatePicker };
|
|
38
|
-
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAwkBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,GAAG,YAAY,GAAG,kBAAkB,CAAC;AACnI,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AACnC,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnC,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,kBAAkB;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,oBAAoB;IACpB,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAC7B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,8BAA8B;IAC9B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yBAAyB;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AA8ED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAipB7C,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { DatePicker } from './DatePicker';
|
|
3
|
-
declare const meta: Meta<typeof DatePicker>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof DatePicker>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithTime: Story;
|
|
8
|
-
export declare const ThaiLanguage: Story;
|
|
9
|
-
export declare const BuddhistEra: Story;
|
|
10
|
-
export declare const AmericanFormat: Story;
|
|
11
|
-
export declare const ISOFormat: Story;
|
|
12
|
-
export declare const ISOWithTime: Story;
|
|
13
|
-
export declare const PreSelected: Story;
|
|
14
|
-
export declare const Disabled: Story;
|
|
15
|
-
export declare const WithoutButtons: Story;
|
|
16
|
-
export declare const AllCombinations: Story;
|
|
17
|
-
//# sourceMappingURL=DatePicker.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAA4B,MAAM,cAAc,CAAC;AA6BpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CA8DjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAGzC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAkBtB,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAiB5B,CAAC;AAGF,eAAO,MAAM,SAAS,EAAE,KAiBvB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAiB5B,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,KAwG7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"examples.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/examples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAgEtC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
3
|
-
/** Label for the input */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Error message to display */
|
|
6
|
-
error?: string;
|
|
7
|
-
/** Helper text to display */
|
|
8
|
-
helperText?: string;
|
|
9
|
-
/** Size of the input */
|
|
10
|
-
size?: "sm" | "md" | "lg";
|
|
11
|
-
/** Whether the input should take full width */
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
-
export { Input };
|
|
16
|
-
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3F,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,KAAK,qFAmBT,CAAC;AAIH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Input } from "./Input";
|
|
3
|
-
declare const meta: Meta<typeof Input>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithLabel: Story;
|
|
8
|
-
export declare const WithError: Story;
|
|
9
|
-
export declare const WithHelperText: Story;
|
|
10
|
-
export declare const Disabled: Story;
|
|
11
|
-
export declare const Small: Story;
|
|
12
|
-
export declare const Large: Story;
|
|
13
|
-
export declare const FullWidth: Story;
|
|
14
|
-
export declare const AllSizes: Story;
|
|
15
|
-
//# sourceMappingURL=Input.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CA0B5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface InputFileProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
3
|
-
/** Label for the file input */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Error message to display */
|
|
6
|
-
error?: string;
|
|
7
|
-
/** Helper text to display */
|
|
8
|
-
helperText?: string;
|
|
9
|
-
/** Size of the file input */
|
|
10
|
-
size?: "sm" | "md" | "lg";
|
|
11
|
-
/** Whether the file input should take full width */
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
/** Whether to allow multiple file selection */
|
|
14
|
-
multiple?: boolean;
|
|
15
|
-
/** Accepted file types */
|
|
16
|
-
accept?: string;
|
|
17
|
-
/** Button text to display */
|
|
18
|
-
buttonText?: string;
|
|
19
|
-
}
|
|
20
|
-
declare const InputFile: React.ForwardRefExoticComponent<InputFileProps & React.RefAttributes<HTMLInputElement>>;
|
|
21
|
-
export { InputFile };
|
|
22
|
-
//# sourceMappingURL=InputFile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputFile.d.ts","sourceRoot":"","sources":["../../../src/components/InputFile/InputFile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxG,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,oDAAoD;IACpD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,yFA2Bd,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { InputFile } from "./InputFile";
|
|
3
|
-
declare const meta: Meta<typeof InputFile>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithLabel: Story;
|
|
8
|
-
export declare const WithHelperText: Story;
|
|
9
|
-
export declare const WithError: Story;
|
|
10
|
-
export declare const MultipleFiles: Story;
|
|
11
|
-
export declare const Small: Story;
|
|
12
|
-
export declare const Large: Story;
|
|
13
|
-
export declare const FullWidth: Story;
|
|
14
|
-
export declare const Disabled: Story;
|
|
15
|
-
//# sourceMappingURL=InputFile.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputFile.stories.d.ts","sourceRoot":"","sources":["../../../src/components/InputFile/InputFile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA4BhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> {
|
|
3
|
-
/** Label for the radio button */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Error message to display */
|
|
6
|
-
error?: string;
|
|
7
|
-
/** Helper text to display */
|
|
8
|
-
helperText?: string;
|
|
9
|
-
/** Size of the radio button */
|
|
10
|
-
size?: "sm" | "md" | "lg";
|
|
11
|
-
/** Whether the radio should take full width */
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
|
-
export { Radio };
|
|
16
|
-
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpG,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,KAAK,qFAsBT,CAAC;AAIH,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Radio } from "./Radio";
|
|
3
|
-
declare const meta: Meta<typeof Radio>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Checked: Story;
|
|
8
|
-
export declare const WithHelperText: Story;
|
|
9
|
-
export declare const WithError: Story;
|
|
10
|
-
export declare const Small: Story;
|
|
11
|
-
export declare const Large: Story;
|
|
12
|
-
export declare const Disabled: Story;
|
|
13
|
-
export declare const DisabledChecked: Story;
|
|
14
|
-
//# sourceMappingURL=Radio.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAsB5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface SelectOption {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface SelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size"> {
|
|
8
|
-
/** Label for the select */
|
|
9
|
-
label?: string;
|
|
10
|
-
/** Error message to display */
|
|
11
|
-
error?: string;
|
|
12
|
-
/** Helper text to display */
|
|
13
|
-
helperText?: string;
|
|
14
|
-
/** Size of the select */
|
|
15
|
-
size?: "sm" | "md" | "lg";
|
|
16
|
-
/** Whether the select should take full width */
|
|
17
|
-
fullWidth?: boolean;
|
|
18
|
-
/** Options for the select */
|
|
19
|
-
options: SelectOption[];
|
|
20
|
-
/** Placeholder text */
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
}
|
|
23
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
24
|
-
export { Select };
|
|
25
|
-
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC9F,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,gDAAgD;IAChD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,MAAM,uFAqCV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Select } from "./Select";
|
|
3
|
-
declare const meta: Meta<typeof Select>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithLabel: Story;
|
|
8
|
-
export declare const WithHelperText: Story;
|
|
9
|
-
export declare const WithError: Story;
|
|
10
|
-
export declare const Small: Story;
|
|
11
|
-
export declare const Large: Story;
|
|
12
|
-
export declare const FullWidth: Story;
|
|
13
|
-
export declare const Disabled: Story;
|
|
14
|
-
export declare const WithDisabledOptions: Story;
|
|
15
|
-
//# sourceMappingURL=Select.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAsB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAwBnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAUjC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
|
|
3
|
-
/** Label for the textarea */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Error message to display */
|
|
6
|
-
error?: string;
|
|
7
|
-
/** Helper text to display */
|
|
8
|
-
helperText?: string;
|
|
9
|
-
/** Size of the textarea */
|
|
10
|
-
size?: "sm" | "md" | "lg";
|
|
11
|
-
/** Whether the textarea should take full width */
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
/** Number of rows to display */
|
|
14
|
-
rows?: number;
|
|
15
|
-
}
|
|
16
|
-
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
-
export { Textarea };
|
|
18
|
-
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACpG,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,2FAmBZ,CAAC;AAIH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Textarea } from "./Textarea";
|
|
3
|
-
declare const meta: Meta<typeof Textarea>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const WithLabel: Story;
|
|
8
|
-
export declare const WithHelperText: Story;
|
|
9
|
-
export declare const WithError: Story;
|
|
10
|
-
export declare const Small: Story;
|
|
11
|
-
export declare const Large: Story;
|
|
12
|
-
export declare const FullWidth: Story;
|
|
13
|
-
export declare const Disabled: Story;
|
|
14
|
-
export declare const AllSizes: Story;
|
|
15
|
-
//# sourceMappingURL=Textarea.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAyB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAOnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export { Button } from "./components/Button/Button";
|
|
3
|
-
export type { ButtonProps } from "./components/Button/Button";
|
|
4
|
-
export { Input } from "./components/Input/Input";
|
|
5
|
-
export type { InputProps } from "./components/Input/Input";
|
|
6
|
-
export { Textarea } from "./components/Textarea/Textarea";
|
|
7
|
-
export type { TextareaProps } from "./components/Textarea/Textarea";
|
|
8
|
-
export { InputFile } from "./components/InputFile/InputFile";
|
|
9
|
-
export type { InputFileProps } from "./components/InputFile/InputFile";
|
|
10
|
-
export { Checkbox } from "./components/Checkbox/Checkbox";
|
|
11
|
-
export type { CheckboxProps } from "./components/Checkbox/Checkbox";
|
|
12
|
-
export { Radio } from "./components/Radio/Radio";
|
|
13
|
-
export type { RadioProps } from "./components/Radio/Radio";
|
|
14
|
-
export { Select } from "./components/Select/Select";
|
|
15
|
-
export type { SelectProps, SelectOption } from "./components/Select/Select";
|
|
16
|
-
export { DatePicker } from "./components/DatePicker/DatePicker";
|
|
17
|
-
export type { DateTimePickerProps } from "./components/DatePicker/DatePicker";
|
|
18
|
-
export { cssClasses } from "./styles";
|
|
19
|
-
export type { CSSClasses } from "./styles";
|
|
20
|
-
export { React };
|
|
21
|
-
export default React;
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,YAAY,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAkB9E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,OAAO,EAAE,KAAK,EAAE,CAAC;AAGjB,eAAe,KAAK,CAAC"}
|