@taiv/ui 1.6.1 → 1.8.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/Inputs/TextInputs/AutoComplete/AutoComplete.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/AutoComplete/AutoComplete.js +8 -1
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.js +63 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/NumberInput/NumberInput.stories.js +245 -0
- package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/PasswordInput/PasswordInput.js +14 -1
- package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/SearchBar/SearchBar.js +8 -1
- package/dist/components/Inputs/TextInputs/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/TextArea/TextArea.js +9 -1
- package/dist/components/Inputs/TextInputs/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/Inputs/TextInputs/TextInput/TextInput.js +9 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -0
- package/package.json +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,GAAI,2DAA+F,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AutoComplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/AutoComplete/AutoComplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuC,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,eAAe,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB;IACjE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,YAAY,GAAI,2DAA+F,iBAAiB,4CA4D5I,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete as MantineAutocomplete } from '@mantine/core';
|
|
3
|
-
import { neutral } from '../../../../constants/colors';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
4
|
import { fontBase } from '../../../../constants/font';
|
|
5
5
|
import { componentSizes } from '../../Dropdowns/shared/sizes';
|
|
6
6
|
export const AutoComplete = ({ size = 'md', width, fullWidth = false, placeholder = 'Select an option', styles, ...props }) => {
|
|
@@ -15,6 +15,13 @@ export const AutoComplete = ({ size = 'md', width, fullWidth = false, placeholde
|
|
|
15
15
|
color: neutral[300],
|
|
16
16
|
transition: 'all 200ms ease-in-out',
|
|
17
17
|
borderRadius: '8px',
|
|
18
|
+
'&[data-invalid]': {
|
|
19
|
+
borderColor: red[200],
|
|
20
|
+
color: neutral[200],
|
|
21
|
+
'&::placeholder': {
|
|
22
|
+
color: red[200],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
18
25
|
},
|
|
19
26
|
label: {
|
|
20
27
|
...fontBase,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NumberInputProps as MantineNumberInputProps } from '@mantine/core';
|
|
2
|
+
import { CSSObject } from '@mantine/styles';
|
|
3
|
+
import { componentSizes } from '../shared/sizes';
|
|
4
|
+
interface NumberInputProps extends MantineNumberInputProps {
|
|
5
|
+
size?: keyof typeof componentSizes;
|
|
6
|
+
width?: string | number;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
styles?: Record<string, CSSObject>;
|
|
9
|
+
}
|
|
10
|
+
declare const NumberInput: ({ size, width, fullWidth, styles, step, ...props }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { NumberInput };
|
|
12
|
+
//# sourceMappingURL=NumberInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/NumberInput/NumberInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,gBAAgB,IAAI,uBAAuB,EAC5C,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,UAAU,gBAAiB,SAAQ,uBAAuB;IACxD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,WAAW,GAAI,oDAOlB,gBAAgB,4CAoElB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { NumberInput as MantineNumberInput, } from '@mantine/core';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
|
+
import { fontBase } from '../../../../constants/font';
|
|
5
|
+
import { componentSizes } from '../shared/sizes';
|
|
6
|
+
const NumberInput = ({ size = 'md', width, fullWidth = false, styles, step = 1, ...props }) => {
|
|
7
|
+
const selectedSize = componentSizes[size];
|
|
8
|
+
const computedWidth = fullWidth ? '100%' : width || `${selectedSize.width}rem`;
|
|
9
|
+
const hasError = !!props.error;
|
|
10
|
+
const style = {
|
|
11
|
+
input: {
|
|
12
|
+
height: `${selectedSize.height}rem`,
|
|
13
|
+
fontSize: selectedSize.fontSize,
|
|
14
|
+
padding: '0 1rem',
|
|
15
|
+
...fontBase,
|
|
16
|
+
color: neutral[200],
|
|
17
|
+
transition: 'all 200ms ease-in-out',
|
|
18
|
+
borderRadius: '8px',
|
|
19
|
+
'&[data-invalid]': {
|
|
20
|
+
borderColor: red[200],
|
|
21
|
+
color: neutral[200],
|
|
22
|
+
'&::placeholder': {
|
|
23
|
+
color: red[200],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
rightSection: {
|
|
28
|
+
height: 'auto',
|
|
29
|
+
margin: 'auto 0',
|
|
30
|
+
gap: 0,
|
|
31
|
+
width: '4.8rem',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
},
|
|
34
|
+
control: {
|
|
35
|
+
color: hasError ? red[200] : neutral[200],
|
|
36
|
+
border: 'none',
|
|
37
|
+
background: 'transparent',
|
|
38
|
+
width: '2rem',
|
|
39
|
+
height: '1.2rem',
|
|
40
|
+
flex: '0 0 auto',
|
|
41
|
+
'& svg': {
|
|
42
|
+
width: '2rem',
|
|
43
|
+
height: '1.2rem',
|
|
44
|
+
},
|
|
45
|
+
'&:hover': {
|
|
46
|
+
cursor: 'pointer',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
label: {
|
|
50
|
+
...fontBase,
|
|
51
|
+
fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
|
|
52
|
+
color: neutral[200],
|
|
53
|
+
},
|
|
54
|
+
error: {
|
|
55
|
+
...fontBase,
|
|
56
|
+
fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
|
|
57
|
+
color: red[200],
|
|
58
|
+
},
|
|
59
|
+
...styles,
|
|
60
|
+
};
|
|
61
|
+
return (_jsx(MantineNumberInput, { w: computedWidth, size: size, step: step, hideControls: false, styles: style, type: "number", ...props }));
|
|
62
|
+
};
|
|
63
|
+
export { NumberInput };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { NumberInput } from './NumberInput';
|
|
3
|
+
declare const meta: Meta<typeof NumberInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Variants: Story;
|
|
8
|
+
export declare const Sizes: Story;
|
|
9
|
+
export declare const States: Story;
|
|
10
|
+
export declare const AdditionalFunctionality: Story;
|
|
11
|
+
export declare const CustomStyling: Story;
|
|
12
|
+
//# sourceMappingURL=NumberInput.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/NumberInput/NumberInput.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAuHlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KA2BrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAetB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAgBnB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAiBpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAiCrC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KA6C3B,CAAC"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { NumberInput } from './NumberInput';
|
|
3
|
+
import { Group } from '../../../Layout/Group/Group';
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Components/Inputs/TextInputs/NumberInput',
|
|
6
|
+
component: NumberInput,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'centered',
|
|
9
|
+
},
|
|
10
|
+
argTypes: {
|
|
11
|
+
size: {
|
|
12
|
+
control: { type: 'select' },
|
|
13
|
+
options: ['sm', 'md', 'lg'],
|
|
14
|
+
description: 'Controls the number input size',
|
|
15
|
+
table: {
|
|
16
|
+
type: { summary: "'sm' | 'md' | 'lg'" },
|
|
17
|
+
defaultValue: { summary: "'md'" },
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
placeholder: {
|
|
21
|
+
control: { type: 'text' },
|
|
22
|
+
description: 'Placeholder text',
|
|
23
|
+
table: {
|
|
24
|
+
type: { summary: 'string' },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
label: {
|
|
28
|
+
control: { type: 'text' },
|
|
29
|
+
description: 'Number input label',
|
|
30
|
+
table: {
|
|
31
|
+
type: { summary: 'string' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
description: {
|
|
35
|
+
control: { type: 'text' },
|
|
36
|
+
description: 'Description text',
|
|
37
|
+
table: {
|
|
38
|
+
type: { summary: 'string' },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
error: {
|
|
42
|
+
control: { type: 'text' },
|
|
43
|
+
description: 'Error message',
|
|
44
|
+
table: {
|
|
45
|
+
type: { summary: 'string' },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
disabled: {
|
|
49
|
+
control: { type: 'boolean' },
|
|
50
|
+
description: 'Disabled state',
|
|
51
|
+
table: {
|
|
52
|
+
type: { summary: 'boolean' },
|
|
53
|
+
defaultValue: { summary: 'false' },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
required: {
|
|
57
|
+
control: { type: 'boolean' },
|
|
58
|
+
description: 'Required field',
|
|
59
|
+
table: {
|
|
60
|
+
type: { summary: 'boolean' },
|
|
61
|
+
defaultValue: { summary: 'false' },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
fullWidth: {
|
|
65
|
+
control: { type: 'boolean' },
|
|
66
|
+
description: 'Full width of container',
|
|
67
|
+
table: {
|
|
68
|
+
type: { summary: 'boolean' },
|
|
69
|
+
defaultValue: { summary: 'false' },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
width: {
|
|
73
|
+
control: { type: 'text' },
|
|
74
|
+
description: 'Custom width',
|
|
75
|
+
table: {
|
|
76
|
+
type: { summary: 'string | number' },
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
min: {
|
|
80
|
+
control: { type: 'number' },
|
|
81
|
+
description: 'Minimum value',
|
|
82
|
+
table: {
|
|
83
|
+
type: { summary: 'number' },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
max: {
|
|
87
|
+
control: { type: 'number' },
|
|
88
|
+
description: 'Maximum value',
|
|
89
|
+
table: {
|
|
90
|
+
type: { summary: 'number' },
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
step: {
|
|
94
|
+
control: { type: 'number' },
|
|
95
|
+
description: 'Step value for increment/decrement',
|
|
96
|
+
table: {
|
|
97
|
+
type: { summary: 'number' },
|
|
98
|
+
defaultValue: { summary: '1' },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
precision: {
|
|
102
|
+
control: { type: 'number' },
|
|
103
|
+
description: 'Number of decimal places',
|
|
104
|
+
table: {
|
|
105
|
+
type: { summary: 'number' },
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
styles: {
|
|
109
|
+
control: { type: 'object' },
|
|
110
|
+
description: 'Custom styles object',
|
|
111
|
+
table: {
|
|
112
|
+
type: { summary: 'Record<string, CSSObject>' },
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
onChange: {
|
|
116
|
+
action: 'changed',
|
|
117
|
+
description: 'Change handler function',
|
|
118
|
+
table: {
|
|
119
|
+
type: { summary: '(value: number | string) => void' },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
export default meta;
|
|
125
|
+
export const Default = {
|
|
126
|
+
args: {
|
|
127
|
+
label: 'Age',
|
|
128
|
+
placeholder: 'Enter your age',
|
|
129
|
+
size: 'md',
|
|
130
|
+
disabled: false,
|
|
131
|
+
required: false,
|
|
132
|
+
fullWidth: false,
|
|
133
|
+
step: 1,
|
|
134
|
+
min: 0,
|
|
135
|
+
max: 120,
|
|
136
|
+
},
|
|
137
|
+
parameters: {
|
|
138
|
+
docs: {
|
|
139
|
+
source: {
|
|
140
|
+
code: `<NumberInput
|
|
141
|
+
label="Age"
|
|
142
|
+
placeholder="Enter your age"
|
|
143
|
+
min={0}
|
|
144
|
+
max={120}
|
|
145
|
+
step={1}
|
|
146
|
+
value={age}
|
|
147
|
+
onChange={setAge}
|
|
148
|
+
/>`,
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
export const Variants = {
|
|
154
|
+
render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Basic Number Input" }), _jsx(NumberInput, { label: "With Placeholder", placeholder: "Enter a value" }), _jsx(NumberInput, { label: "With Description", description: "Enter a value between 0 and 100", min: 0, max: 100 })] })),
|
|
155
|
+
parameters: {
|
|
156
|
+
docs: {
|
|
157
|
+
source: {
|
|
158
|
+
code: false,
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
export const Sizes = {
|
|
164
|
+
render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { size: "sm", label: "Small Number Input", placeholder: "Small value" }), _jsx(NumberInput, { size: "md", label: "Medium Number Input (Default)", placeholder: "Medium value" }), _jsx(NumberInput, { size: "lg", label: "Large Number Input", placeholder: "Large value" })] })),
|
|
165
|
+
parameters: {
|
|
166
|
+
docs: {
|
|
167
|
+
source: {
|
|
168
|
+
code: `<NumberInput size="sm" label="Small Number Input" placeholder="Small value" />
|
|
169
|
+
<NumberInput size="lg" label="Large Number Input" placeholder="Large value" />`,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
export const States = {
|
|
175
|
+
render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Normal Number Input" }), _jsx(NumberInput, { label: "Disabled Number Input", disabled: true }), _jsx(NumberInput, { label: "Required Number Input", required: true }), _jsx(NumberInput, { label: "Number Input with Description", description: "Please enter a numeric value" }), _jsx(NumberInput, { label: "Number Input with Error", error: "Value is required" })] })),
|
|
176
|
+
parameters: {
|
|
177
|
+
docs: {
|
|
178
|
+
source: {
|
|
179
|
+
code: false,
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
export const AdditionalFunctionality = {
|
|
185
|
+
render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Step of 1", placeholder: "Integer values", step: 1 }), _jsx(NumberInput, { label: "Step of 0.5", placeholder: "Decimal values", step: 0.5, precision: 1 }), _jsx(NumberInput, { label: "With Min/Max", placeholder: "Between 0 and 10", min: 0, max: 10, step: 1 }), _jsx(NumberInput, { label: "Custom Width", placeholder: "Custom width", width: "300rem" })] })),
|
|
186
|
+
parameters: {
|
|
187
|
+
docs: {
|
|
188
|
+
source: {
|
|
189
|
+
code: `<NumberInput
|
|
190
|
+
label="Step of 0.5"
|
|
191
|
+
placeholder="Decimal values"
|
|
192
|
+
step={0.5}
|
|
193
|
+
precision={1}
|
|
194
|
+
value={amount}
|
|
195
|
+
onChange={setAmount}
|
|
196
|
+
/>
|
|
197
|
+
|
|
198
|
+
<NumberInput
|
|
199
|
+
label="With Min/Max"
|
|
200
|
+
placeholder="Between 0 and 10"
|
|
201
|
+
min={0}
|
|
202
|
+
max={10}
|
|
203
|
+
step={1}
|
|
204
|
+
value={count}
|
|
205
|
+
onChange={setCount}
|
|
206
|
+
/>`,
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
};
|
|
211
|
+
export const CustomStyling = {
|
|
212
|
+
render: () => (_jsxs(Group, { gap: "2rem", children: [_jsx(NumberInput, { label: "Custom Styled Number Input", styles: {
|
|
213
|
+
input: {
|
|
214
|
+
borderColor: '#ff6b6b',
|
|
215
|
+
'&:focus': {
|
|
216
|
+
borderColor: '#ff6b6b',
|
|
217
|
+
boxShadow: '0 0 0 2px rgba(255, 107, 107, 0.2)',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
label: {
|
|
221
|
+
color: '#ff6b6b',
|
|
222
|
+
fontWeight: 600,
|
|
223
|
+
},
|
|
224
|
+
} }), _jsx(NumberInput, { label: "Another Custom Style", styles: {
|
|
225
|
+
input: {
|
|
226
|
+
backgroundColor: '#f8f9fa',
|
|
227
|
+
borderColor: '#4CAF50',
|
|
228
|
+
'&:focus': {
|
|
229
|
+
borderColor: '#4CAF50',
|
|
230
|
+
boxShadow: '0 0 0 2px rgba(76, 175, 80, 0.2)',
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
label: {
|
|
234
|
+
color: '#4CAF50',
|
|
235
|
+
fontSize: '16px',
|
|
236
|
+
},
|
|
237
|
+
} })] })),
|
|
238
|
+
parameters: {
|
|
239
|
+
docs: {
|
|
240
|
+
source: {
|
|
241
|
+
code: false,
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AASjD,KAAK,kBAAkB,GAAG,yBAAyB,GAAG;IACpD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,2DAA6F,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AASjD,KAAK,kBAAkB,GAAG,yBAAyB,GAAG;IACpD,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,GAAI,2DAA6F,kBAAkB,4CAsDrI,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { PasswordInput as MantinePasswordInput } from '@mantine/core';
|
|
3
|
-
import { neutral } from '../../../../constants/colors';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
4
|
import { fontBase } from '../../../../constants/font';
|
|
5
5
|
import { componentSizes } from '../shared/sizes';
|
|
6
6
|
// Workaround for Icon sizing since we dont have a Provider setup
|
|
@@ -21,6 +21,12 @@ const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placehol
|
|
|
21
21
|
height: `${selectedSize.height}rem`,
|
|
22
22
|
fontSize: selectedSize.fontSize,
|
|
23
23
|
padding: '0 1rem',
|
|
24
|
+
'&[data-invalid]': {
|
|
25
|
+
borderColor: red[200],
|
|
26
|
+
'&::placeholder': {
|
|
27
|
+
color: red[200],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
24
30
|
},
|
|
25
31
|
label: {
|
|
26
32
|
...fontBase,
|
|
@@ -30,6 +36,7 @@ const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placehol
|
|
|
30
36
|
error: {
|
|
31
37
|
...fontBase,
|
|
32
38
|
fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
|
|
39
|
+
color: red[200],
|
|
33
40
|
},
|
|
34
41
|
innerInput: {
|
|
35
42
|
...fontBase,
|
|
@@ -37,6 +44,12 @@ const PasswordInput = ({ size = 'md', width, fullWidth = false, styles, placehol
|
|
|
37
44
|
height: `${selectedSize.height}rem`,
|
|
38
45
|
fontSize: selectedSize.fontSize,
|
|
39
46
|
padding: '0 1rem',
|
|
47
|
+
'&[data-invalid]': {
|
|
48
|
+
color: neutral[200],
|
|
49
|
+
'&::placeholder': {
|
|
50
|
+
color: red[200],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
40
53
|
},
|
|
41
54
|
visibilityToggle: {
|
|
42
55
|
color: neutral[200],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/SearchBar/SearchBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAM/C,UAAU,cAAe,SAAQ,cAAc;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,
|
|
1
|
+
{"version":3,"file":"SearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/SearchBar/SearchBar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAM/C,UAAU,cAAe,SAAQ,cAAc;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,4CAmC7F,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TextInput } from '../TextInput/TextInput';
|
|
3
|
-
import { neutral } from '../../../../constants/colors';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
4
|
import { fontBase } from '../../../../constants/font';
|
|
5
5
|
import { componentSizes } from '../shared/sizes';
|
|
6
6
|
const SearchBar = ({ width, fullWidth = false, size = 'md', styles, ...props }) => {
|
|
@@ -15,6 +15,13 @@ const SearchBar = ({ width, fullWidth = false, size = 'md', styles, ...props })
|
|
|
15
15
|
borderRadius: '8px',
|
|
16
16
|
height: `${selectedSize.height}rem`,
|
|
17
17
|
transition: 'all 200ms ease-in-out',
|
|
18
|
+
'&[data-invalid]': {
|
|
19
|
+
borderColor: red[200],
|
|
20
|
+
color: neutral[200],
|
|
21
|
+
'&::placeholder': {
|
|
22
|
+
color: red[200],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
18
25
|
},
|
|
19
26
|
...styles,
|
|
20
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,aAAa,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,aAAa,GAAG,oBAAoB,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,8CAA6D,aAAa,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,aAAa,IAAI,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACnG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,aAAa,GAAG,oBAAoB,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,8CAA6D,aAAa,4CAoC3F,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Textarea as MantineTextarea } from '@mantine/core';
|
|
3
|
-
import { neutral } from '../../../../constants/colors';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
4
|
import { fontBase } from '../../../../constants/font';
|
|
5
5
|
import { componentSizes } from '../shared/sizes';
|
|
6
6
|
const TextArea = ({ size = 'md', width, fullWidth = false, styles, ...props }) => {
|
|
@@ -16,6 +16,13 @@ const TextArea = ({ size = 'md', width, fullWidth = false, styles, ...props }) =
|
|
|
16
16
|
transition: 'all 200ms ease-in-out',
|
|
17
17
|
borderRadius: '8px',
|
|
18
18
|
resize: 'vertical',
|
|
19
|
+
'&[data-invalid]': {
|
|
20
|
+
borderColor: red[200],
|
|
21
|
+
color: neutral[200],
|
|
22
|
+
'&::placeholder': {
|
|
23
|
+
color: red[200],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
19
26
|
},
|
|
20
27
|
label: {
|
|
21
28
|
...fontBase,
|
|
@@ -25,6 +32,7 @@ const TextArea = ({ size = 'md', width, fullWidth = false, styles, ...props }) =
|
|
|
25
32
|
error: {
|
|
26
33
|
...fontBase,
|
|
27
34
|
fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
|
|
35
|
+
color: red[200],
|
|
28
36
|
},
|
|
29
37
|
...styles,
|
|
30
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextInput/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,cAAc,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,cAAc,GAAG,qBAAqB,GAAG;IAC5C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/TextInputs/TextInput/TextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiC,cAAc,IAAI,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,cAAc,GAAG,qBAAqB,GAAG;IAC5C,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,8CAA6D,cAAc,4CAmC7F,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TextInput as MantineTextInput } from '@mantine/core';
|
|
3
|
-
import { neutral } from '../../../../constants/colors';
|
|
3
|
+
import { neutral, red } from '../../../../constants/colors';
|
|
4
4
|
import { fontBase } from '../../../../constants/font';
|
|
5
5
|
import { componentSizes } from '../shared/sizes';
|
|
6
6
|
const TextInput = ({ size = 'md', width, fullWidth = false, styles, ...props }) => {
|
|
@@ -15,6 +15,13 @@ const TextInput = ({ size = 'md', width, fullWidth = false, styles, ...props })
|
|
|
15
15
|
color: neutral[200],
|
|
16
16
|
transition: 'all 200ms ease-in-out',
|
|
17
17
|
borderRadius: '8px',
|
|
18
|
+
'&[data-invalid]': {
|
|
19
|
+
borderColor: red[200],
|
|
20
|
+
color: neutral[200],
|
|
21
|
+
'&::placeholder': {
|
|
22
|
+
color: red[200],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
18
25
|
},
|
|
19
26
|
label: {
|
|
20
27
|
...fontBase,
|
|
@@ -24,6 +31,7 @@ const TextInput = ({ size = 'md', width, fullWidth = false, styles, ...props })
|
|
|
24
31
|
error: {
|
|
25
32
|
...fontBase,
|
|
26
33
|
fontSize: `calc(${selectedSize.fontSize} - 0.05rem)`,
|
|
34
|
+
color: red[200]
|
|
27
35
|
},
|
|
28
36
|
...styles,
|
|
29
37
|
};
|
|
@@ -32,6 +32,7 @@ export { TextArea } from './Inputs/TextInputs/TextArea/TextArea';
|
|
|
32
32
|
export { TextInput } from './Inputs/TextInputs/TextInput/TextInput';
|
|
33
33
|
export { PasswordInput } from './Inputs/TextInputs/PasswordInput/PasswordInput';
|
|
34
34
|
export { DatePicker } from './Inputs/Dates/DatePicker/DatePicker';
|
|
35
|
+
export { NumberInput } from './Inputs/TextInputs/NumberInput/NumberInput';
|
|
35
36
|
export { AutoGrid } from './Layout/AutoGrid/AutoGrid';
|
|
36
37
|
export { Grid } from './Layout/Grid/Grid';
|
|
37
38
|
export { Box } from './Layout/Box/Box';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG1D,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AACtG,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAq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EAAE,MAAM,sCAAsC,CAAC"}
|
package/dist/components/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export { TextArea } from './Inputs/TextInputs/TextArea/TextArea';
|
|
|
35
35
|
export { TextInput } from './Inputs/TextInputs/TextInput/TextInput';
|
|
36
36
|
export { PasswordInput } from './Inputs/TextInputs/PasswordInput/PasswordInput';
|
|
37
37
|
export { DatePicker } from './Inputs/Dates/DatePicker/DatePicker';
|
|
38
|
+
export { NumberInput } from './Inputs/TextInputs/NumberInput/NumberInput';
|
|
38
39
|
//Layout
|
|
39
40
|
export { AutoGrid } from './Layout/AutoGrid/AutoGrid';
|
|
40
41
|
export { Grid } from './Layout/Grid/Grid';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiv/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.9",
|
|
4
4
|
"author": "Taiv",
|
|
5
5
|
"description": "Taiv's web UI Toolkit built on Mantine v6",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/alborz-taiv/taiv-ui"
|
|
14
|
+
},
|
|
11
15
|
"scripts": {
|
|
12
16
|
"build": "tsc",
|
|
13
|
-
"dev": "tsc --watch",
|
|
17
|
+
"dev": "npm link && tsc --watch",
|
|
14
18
|
"clean": "rm -rf dist",
|
|
15
19
|
"storybook": "storybook dev -p 6006",
|
|
16
20
|
"build-storybook": "storybook build",
|