elseware-ui 3.0.5 → 3.0.7
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/LICENSE +20 -20
- package/dist/index.css +60 -144
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -39
- package/dist/index.d.ts +9 -39
- package/dist/index.js +862 -361
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +858 -357
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.d.mts +13 -3
- package/dist/index.native.d.ts +13 -3
- package/dist/index.native.js +1011 -214
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +1008 -216
- package/dist/index.native.mjs.map +1 -1
- package/dist/{resolveGlobalConfigs-PbcnVEZr.d.mts → resolveGlobalConfigs-C0BREpe1.d.mts} +93 -1
- package/dist/{resolveGlobalConfigs-PbcnVEZr.d.ts → resolveGlobalConfigs-C0BREpe1.d.ts} +93 -1
- package/package.json +1 -1
|
@@ -224,6 +224,21 @@ interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
|
224
224
|
type FormikCheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
225
225
|
type CheckboxProps = FormikCheckboxProps;
|
|
226
226
|
|
|
227
|
+
interface BaseDateSelectorProps extends Omit<BaseComponentProps<HTMLInputElement>, "onChange"> {
|
|
228
|
+
name: string;
|
|
229
|
+
placeholder: string;
|
|
230
|
+
disabled?: boolean;
|
|
231
|
+
inputClassName?: string;
|
|
232
|
+
label?: string;
|
|
233
|
+
labelClassName?: string;
|
|
234
|
+
max?: string;
|
|
235
|
+
min?: string;
|
|
236
|
+
responseClassName?: string;
|
|
237
|
+
shape?: Shape;
|
|
238
|
+
styles?: string;
|
|
239
|
+
}
|
|
240
|
+
type DateSelectorProps = FieldHookConfig<string> & BaseDateSelectorProps;
|
|
241
|
+
|
|
227
242
|
type FormChildren<Values extends FormikValues = FormikValues> = ReactNode | ((formik: FormikProps<Values>) => ReactNode);
|
|
228
243
|
type FormChangeMeta<Values extends FormikValues = FormikValues> = {
|
|
229
244
|
changed: Partial<Values>;
|
|
@@ -266,6 +281,29 @@ interface BaseInputProps extends BaseComponentProps<HTMLInputElement> {
|
|
|
266
281
|
type FormikInputProps = FieldHookConfig<string> & BaseInputProps;
|
|
267
282
|
type InputProps = FormikInputProps;
|
|
268
283
|
|
|
284
|
+
interface NativeInputFileValue {
|
|
285
|
+
fileName?: string;
|
|
286
|
+
mimeType?: string;
|
|
287
|
+
name?: string;
|
|
288
|
+
size?: number;
|
|
289
|
+
type?: string;
|
|
290
|
+
uri?: string;
|
|
291
|
+
}
|
|
292
|
+
type InputFileValue = File | NativeInputFileValue | null;
|
|
293
|
+
type InputFilePicker = () => InputFileValue | Promise<InputFileValue | undefined | void> | undefined | void;
|
|
294
|
+
interface BaseInputFileProps extends Omit<BaseComponentProps<HTMLDivElement>, "onChange"> {
|
|
295
|
+
placeholder: string;
|
|
296
|
+
accept?: string;
|
|
297
|
+
disabled?: boolean;
|
|
298
|
+
inputClassName?: string;
|
|
299
|
+
label?: string;
|
|
300
|
+
labelClassName?: string;
|
|
301
|
+
responseClassName?: string;
|
|
302
|
+
shape?: Shape;
|
|
303
|
+
onFileSelect?: InputFilePicker;
|
|
304
|
+
}
|
|
305
|
+
type InputFileProps = FieldHookConfig<InputFileValue> & BaseInputFileProps;
|
|
306
|
+
|
|
269
307
|
interface InputLabelProps {
|
|
270
308
|
text?: string;
|
|
271
309
|
children?: ReactNode;
|
|
@@ -286,6 +324,60 @@ interface InputResponseProps {
|
|
|
286
324
|
message?: ReactNode;
|
|
287
325
|
}
|
|
288
326
|
|
|
327
|
+
type SelectOptionValue = string;
|
|
328
|
+
interface SelectOption {
|
|
329
|
+
value: SelectOptionValue;
|
|
330
|
+
label: ReactNode;
|
|
331
|
+
disabled?: boolean;
|
|
332
|
+
}
|
|
333
|
+
interface BaseSelectProps extends Omit<BaseComponentProps<HTMLSelectElement>, "onChange"> {
|
|
334
|
+
name: string;
|
|
335
|
+
placeholder: string;
|
|
336
|
+
options: SelectOption[];
|
|
337
|
+
disabled?: boolean;
|
|
338
|
+
inputClassName?: string;
|
|
339
|
+
label?: string;
|
|
340
|
+
labelClassName?: string;
|
|
341
|
+
responseClassName?: string;
|
|
342
|
+
shape?: Shape;
|
|
343
|
+
styles?: string;
|
|
344
|
+
}
|
|
345
|
+
type SelectProps = FieldHookConfig<string> & BaseSelectProps;
|
|
346
|
+
|
|
347
|
+
interface BaseTagsProps extends Omit<BaseComponentProps<HTMLDivElement>, "onBlur" | "onChange" | "onFocus"> {
|
|
348
|
+
name: string;
|
|
349
|
+
placeholder: string;
|
|
350
|
+
disabled?: boolean;
|
|
351
|
+
inputClassName?: string;
|
|
352
|
+
label?: string;
|
|
353
|
+
labelClassName?: string;
|
|
354
|
+
limit?: number;
|
|
355
|
+
responseClassName?: string;
|
|
356
|
+
shape?: Shape;
|
|
357
|
+
styles?: string;
|
|
358
|
+
tagClassName?: string;
|
|
359
|
+
removeButtonClassName?: string;
|
|
360
|
+
counterClassName?: string;
|
|
361
|
+
onBlur?: (event: unknown) => void;
|
|
362
|
+
onFocus?: (event: unknown) => void;
|
|
363
|
+
}
|
|
364
|
+
type TagsProps = FieldHookConfig<string[]> & BaseTagsProps;
|
|
365
|
+
|
|
366
|
+
interface BaseTextAreaProps extends Omit<BaseComponentProps<HTMLTextAreaElement>, "onChange"> {
|
|
367
|
+
name: string;
|
|
368
|
+
placeholder: string;
|
|
369
|
+
disabled?: boolean;
|
|
370
|
+
inputClassName?: string;
|
|
371
|
+
label?: string;
|
|
372
|
+
labelClassName?: string;
|
|
373
|
+
limit?: number;
|
|
374
|
+
responseClassName?: string;
|
|
375
|
+
rows?: number;
|
|
376
|
+
shape?: Shape;
|
|
377
|
+
styles?: string;
|
|
378
|
+
}
|
|
379
|
+
type TextAreaProps = FieldHookConfig<string> & BaseTextAreaProps;
|
|
380
|
+
|
|
289
381
|
interface EUIComponentDefaults {
|
|
290
382
|
variant?: keyof typeof Variant$1;
|
|
291
383
|
size?: keyof typeof Size$1;
|
|
@@ -313,4 +405,4 @@ declare const useEUIConfig: () => EUIContextValue;
|
|
|
313
405
|
|
|
314
406
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
315
407
|
|
|
316
|
-
export { type Appearance as A, type ButtonProps as B, type CheckboxProps as C,
|
|
408
|
+
export { type RouteTabMode as $, type Appearance as A, type ButtonProps as B, type CheckboxProps as C, type DateSelectorProps as D, type EUIComponentDefaults as E, type FormProps as F, type Size as G, type TitleBannerLevel as H, type InputProps as I, type ListDirection as J, type ListAlign as K, type ListBulletType as L, type CurrencyCode as M, type NativeInputFileValue as N, type OctilePosition as O, type SpinnerType as P, type SpinnerDirection as Q, type TextDecoration as R, type SelectProps as S, type TagsProps as T, Shape$1 as U, type Variant as V, ToastStatus as W, ToastPosition as X, Target as Y, TextVariant as Z, Decoration as _, type FormResponseProps as a, Variant$1 as a0, type CardinalPosition as a1, type CornerPosition as a2, type HorizontalPosition as a3, type HyperRefTarget as a4, type VerticalPosition as a5, type InputFileProps as b, type InputLabelProps as c, type InputResponseProps as d, type TextAreaProps as e, type BaseDateSelectorProps as f, type BaseSelectProps as g, type BaseTagsProps as h, type BaseTextAreaProps as i, type ButtonIcon as j, type ButtonMode as k, type CheckboxColumns as l, type CheckboxOption as m, type EUIConfigs as n, EUIProvider as o, type EUIRoute as p, type FormChangeMeta as q, type FormChildren as r, type InputFilePicker as s, type InputFileValue as t, type SelectOption as u, type SelectOptionValue as v, resolveWithGlobal as w, useEUIConfig as x, type BaseComponentProps as y, type Shape as z };
|
|
@@ -224,6 +224,21 @@ interface MultiCheckboxProps extends BaseCheckboxProps {
|
|
|
224
224
|
type FormikCheckboxProps = (SingleCheckboxProps & FieldHookConfig<boolean>) | (MultiCheckboxProps & FieldHookConfig<string[]>);
|
|
225
225
|
type CheckboxProps = FormikCheckboxProps;
|
|
226
226
|
|
|
227
|
+
interface BaseDateSelectorProps extends Omit<BaseComponentProps<HTMLInputElement>, "onChange"> {
|
|
228
|
+
name: string;
|
|
229
|
+
placeholder: string;
|
|
230
|
+
disabled?: boolean;
|
|
231
|
+
inputClassName?: string;
|
|
232
|
+
label?: string;
|
|
233
|
+
labelClassName?: string;
|
|
234
|
+
max?: string;
|
|
235
|
+
min?: string;
|
|
236
|
+
responseClassName?: string;
|
|
237
|
+
shape?: Shape;
|
|
238
|
+
styles?: string;
|
|
239
|
+
}
|
|
240
|
+
type DateSelectorProps = FieldHookConfig<string> & BaseDateSelectorProps;
|
|
241
|
+
|
|
227
242
|
type FormChildren<Values extends FormikValues = FormikValues> = ReactNode | ((formik: FormikProps<Values>) => ReactNode);
|
|
228
243
|
type FormChangeMeta<Values extends FormikValues = FormikValues> = {
|
|
229
244
|
changed: Partial<Values>;
|
|
@@ -266,6 +281,29 @@ interface BaseInputProps extends BaseComponentProps<HTMLInputElement> {
|
|
|
266
281
|
type FormikInputProps = FieldHookConfig<string> & BaseInputProps;
|
|
267
282
|
type InputProps = FormikInputProps;
|
|
268
283
|
|
|
284
|
+
interface NativeInputFileValue {
|
|
285
|
+
fileName?: string;
|
|
286
|
+
mimeType?: string;
|
|
287
|
+
name?: string;
|
|
288
|
+
size?: number;
|
|
289
|
+
type?: string;
|
|
290
|
+
uri?: string;
|
|
291
|
+
}
|
|
292
|
+
type InputFileValue = File | NativeInputFileValue | null;
|
|
293
|
+
type InputFilePicker = () => InputFileValue | Promise<InputFileValue | undefined | void> | undefined | void;
|
|
294
|
+
interface BaseInputFileProps extends Omit<BaseComponentProps<HTMLDivElement>, "onChange"> {
|
|
295
|
+
placeholder: string;
|
|
296
|
+
accept?: string;
|
|
297
|
+
disabled?: boolean;
|
|
298
|
+
inputClassName?: string;
|
|
299
|
+
label?: string;
|
|
300
|
+
labelClassName?: string;
|
|
301
|
+
responseClassName?: string;
|
|
302
|
+
shape?: Shape;
|
|
303
|
+
onFileSelect?: InputFilePicker;
|
|
304
|
+
}
|
|
305
|
+
type InputFileProps = FieldHookConfig<InputFileValue> & BaseInputFileProps;
|
|
306
|
+
|
|
269
307
|
interface InputLabelProps {
|
|
270
308
|
text?: string;
|
|
271
309
|
children?: ReactNode;
|
|
@@ -286,6 +324,60 @@ interface InputResponseProps {
|
|
|
286
324
|
message?: ReactNode;
|
|
287
325
|
}
|
|
288
326
|
|
|
327
|
+
type SelectOptionValue = string;
|
|
328
|
+
interface SelectOption {
|
|
329
|
+
value: SelectOptionValue;
|
|
330
|
+
label: ReactNode;
|
|
331
|
+
disabled?: boolean;
|
|
332
|
+
}
|
|
333
|
+
interface BaseSelectProps extends Omit<BaseComponentProps<HTMLSelectElement>, "onChange"> {
|
|
334
|
+
name: string;
|
|
335
|
+
placeholder: string;
|
|
336
|
+
options: SelectOption[];
|
|
337
|
+
disabled?: boolean;
|
|
338
|
+
inputClassName?: string;
|
|
339
|
+
label?: string;
|
|
340
|
+
labelClassName?: string;
|
|
341
|
+
responseClassName?: string;
|
|
342
|
+
shape?: Shape;
|
|
343
|
+
styles?: string;
|
|
344
|
+
}
|
|
345
|
+
type SelectProps = FieldHookConfig<string> & BaseSelectProps;
|
|
346
|
+
|
|
347
|
+
interface BaseTagsProps extends Omit<BaseComponentProps<HTMLDivElement>, "onBlur" | "onChange" | "onFocus"> {
|
|
348
|
+
name: string;
|
|
349
|
+
placeholder: string;
|
|
350
|
+
disabled?: boolean;
|
|
351
|
+
inputClassName?: string;
|
|
352
|
+
label?: string;
|
|
353
|
+
labelClassName?: string;
|
|
354
|
+
limit?: number;
|
|
355
|
+
responseClassName?: string;
|
|
356
|
+
shape?: Shape;
|
|
357
|
+
styles?: string;
|
|
358
|
+
tagClassName?: string;
|
|
359
|
+
removeButtonClassName?: string;
|
|
360
|
+
counterClassName?: string;
|
|
361
|
+
onBlur?: (event: unknown) => void;
|
|
362
|
+
onFocus?: (event: unknown) => void;
|
|
363
|
+
}
|
|
364
|
+
type TagsProps = FieldHookConfig<string[]> & BaseTagsProps;
|
|
365
|
+
|
|
366
|
+
interface BaseTextAreaProps extends Omit<BaseComponentProps<HTMLTextAreaElement>, "onChange"> {
|
|
367
|
+
name: string;
|
|
368
|
+
placeholder: string;
|
|
369
|
+
disabled?: boolean;
|
|
370
|
+
inputClassName?: string;
|
|
371
|
+
label?: string;
|
|
372
|
+
labelClassName?: string;
|
|
373
|
+
limit?: number;
|
|
374
|
+
responseClassName?: string;
|
|
375
|
+
rows?: number;
|
|
376
|
+
shape?: Shape;
|
|
377
|
+
styles?: string;
|
|
378
|
+
}
|
|
379
|
+
type TextAreaProps = FieldHookConfig<string> & BaseTextAreaProps;
|
|
380
|
+
|
|
289
381
|
interface EUIComponentDefaults {
|
|
290
382
|
variant?: keyof typeof Variant$1;
|
|
291
383
|
size?: keyof typeof Size$1;
|
|
@@ -313,4 +405,4 @@ declare const useEUIConfig: () => EUIContextValue;
|
|
|
313
405
|
|
|
314
406
|
declare function resolveWithGlobal<T>(config: EUIConfigs | null, props: T, defaults: Partial<T>): T;
|
|
315
407
|
|
|
316
|
-
export { type Appearance as A, type ButtonProps as B, type CheckboxProps as C,
|
|
408
|
+
export { type RouteTabMode as $, type Appearance as A, type ButtonProps as B, type CheckboxProps as C, type DateSelectorProps as D, type EUIComponentDefaults as E, type FormProps as F, type Size as G, type TitleBannerLevel as H, type InputProps as I, type ListDirection as J, type ListAlign as K, type ListBulletType as L, type CurrencyCode as M, type NativeInputFileValue as N, type OctilePosition as O, type SpinnerType as P, type SpinnerDirection as Q, type TextDecoration as R, type SelectProps as S, type TagsProps as T, Shape$1 as U, type Variant as V, ToastStatus as W, ToastPosition as X, Target as Y, TextVariant as Z, Decoration as _, type FormResponseProps as a, Variant$1 as a0, type CardinalPosition as a1, type CornerPosition as a2, type HorizontalPosition as a3, type HyperRefTarget as a4, type VerticalPosition as a5, type InputFileProps as b, type InputLabelProps as c, type InputResponseProps as d, type TextAreaProps as e, type BaseDateSelectorProps as f, type BaseSelectProps as g, type BaseTagsProps as h, type BaseTextAreaProps as i, type ButtonIcon as j, type ButtonMode as k, type CheckboxColumns as l, type CheckboxOption as m, type EUIConfigs as n, EUIProvider as o, type EUIRoute as p, type FormChangeMeta as q, type FormChildren as r, type InputFilePicker as s, type InputFileValue as t, type SelectOption as u, type SelectOptionValue as v, resolveWithGlobal as w, useEUIConfig as x, type BaseComponentProps as y, type Shape as z };
|