forstok-ui-lib 5.1.0 → 5.1.2

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/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, MouseEvent, Dispatch, SetStateAction, KeyboardEvent, FocusEvent, ChangeEvent, DragEvent, InputHTMLAttributes, PropsWithChildren, ButtonHTMLAttributes, RefObject, ImgHTMLAttributes } from 'react';
4
+ import { OptionProps, SingleValueProps, OnChangeValue, ActionMeta } from 'react-select';
4
5
  import * as styled_components from 'styled-components';
5
6
  import * as styled_components_dist_types from 'styled-components/dist/types';
6
7
 
@@ -94,6 +95,13 @@ type TInput$1 = InputHTMLAttributes<HTMLInputElement> & {
94
95
  };
95
96
  declare const InputComponent: ({ $mode, $aliasLabel, $isError, $iconLeft, $iconRight, reset, setReset, isForceUpdate, setForceUpdate, evChange, evBlur, isField, evChangeCustom, evEnter, evKeyUp, ...props }: TInput$1) => react_jsx_runtime.JSX.Element;
96
97
 
98
+ declare const InputWithRefComponent: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
99
+ $mode?: string;
100
+ $iconLeft?: boolean;
101
+ $iconRight?: boolean;
102
+ $isError?: boolean;
103
+ } & react.RefAttributes<HTMLInputElement>>;
104
+
97
105
  type TInput = InputHTMLAttributes<HTMLInputElement> & {
98
106
  evChange?: (e: ChangeEvent<HTMLInputElement>) => void;
99
107
  $flow?: string;
@@ -231,39 +239,6 @@ type TImage = ImgHTMLAttributes<HTMLImageElement> & {
231
239
  };
232
240
  declare const ImageComponent: ({ $mode, ...props }: TImage) => react_jsx_runtime.JSX.Element;
233
241
 
234
- declare const FormContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>>, never>, {
235
- name?: string;
236
- }>> & string;
237
- declare const SingleFormContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
238
- $width?: string | number;
239
- }>> & string;
240
-
241
- declare const clearList: styled_components.RuleSet<object>;
242
- declare const responseWidth: styled_components.RuleSet<object>;
243
- declare const elipsis: styled_components.RuleSet<object>;
244
- declare const multiElipsis: styled_components.RuleSet<object>;
245
- declare const thirdElipsis: styled_components.RuleSet<object>;
246
- declare const boxBase: styled_components.RuleSet<object>;
247
- declare const dropBase: styled_components.RuleSet<object>;
248
- declare const headTable: styled_components.RuleSet<object>;
249
- declare const formLabel: styled_components.RuleSet<object>;
250
-
251
- declare const PanelContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
252
- declare const ListContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
253
- declare const PanelWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
254
- $mode?: string;
255
- }>> & string;
256
- declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
257
- declare const HeaderContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
258
- declare const TabsContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
259
- $mode?: string;
260
- }>> & string;
261
- declare const TabsContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
262
- $mode?: string;
263
- }>> & string;
264
- declare const FoContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
265
- declare const InfoGroup: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
266
-
267
242
  type TUser = {
268
243
  profile_id: number;
269
244
  profile_name: string;
@@ -316,4 +291,90 @@ type TChannel = {
316
291
  availableAPI?: boolean | null;
317
292
  };
318
293
 
319
- export { ButtonComponent, CheckboxComponent, DropDownComponent as DropdownComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MessageComponent, MessageQuestionComponent, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SingleFormContainer, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TState, type TUser, TabsContainer, TabsContent, TextComponent, Title, type WithRequired, boxBase, clearList, dropBase, elipsis, formLabel, headTable, multiElipsis, responseWidth, thirdElipsis };
294
+ type TOption = {
295
+ readonly value: any;
296
+ readonly label: string;
297
+ readonly name?: string;
298
+ readonly isFixed?: boolean;
299
+ readonly channel?: Omit<TChannel, 'stores'>;
300
+ postalCode?: string;
301
+ localId?: string;
302
+ option?: {
303
+ readonly value: any;
304
+ readonly label: string;
305
+ localId?: string;
306
+ }[];
307
+ };
308
+
309
+ type TSelect = {
310
+ type?: string;
311
+ mode?: string;
312
+ isError?: boolean;
313
+ name?: string;
314
+ customOption?: (arg0: OptionProps) => void;
315
+ customLabel?: (arg0: SingleValueProps) => void;
316
+ MenuList?: any;
317
+ isCreateable?: boolean;
318
+ isClearable?: boolean;
319
+ selectKey?: string;
320
+ disabled?: boolean;
321
+ width?: string | number;
322
+ reset?: boolean;
323
+ setReset?: TState<boolean>;
324
+ isForceUpdate?: boolean;
325
+ setForceUpdate?: TState<boolean>;
326
+ isCheckAutoCopy?: boolean;
327
+ isField?: boolean;
328
+ isMulti?: boolean;
329
+ evCreate?: (value: string) => void;
330
+ evChange?: (newValue: OnChangeValue<TOption, boolean>, actionMeta?: ActionMeta<TOption>) => void;
331
+ evChangeCustom?: (key: string, value: any) => void;
332
+ defaultValue?: OnChangeValue<TOption, boolean>;
333
+ options: TOption[] | null;
334
+ isMinOption?: boolean;
335
+ placeholder?: string;
336
+ 'data-qa-id'?: string;
337
+ removeMessage?: TObject;
338
+ evCreateMessageQuestion?: TMessageQuestionFunction;
339
+ };
340
+ declare const SelectComponent: ({ type, isError, mode, customOption, customLabel, MenuList, isCreateable, isClearable, selectKey, disabled, defaultValue, width, reset, setReset, isForceUpdate, setForceUpdate, isCheckAutoCopy, evChangeCustom, isField, evCreate, evChange, isMinOption, isMulti, options, name, placeholder, removeMessage, evCreateMessageQuestion, ...props }: TSelect) => react_jsx_runtime.JSX.Element;
341
+
342
+ declare const ErrorComponent: ({ children, $mode, ...props }: {
343
+ children?: ReactNode;
344
+ $mode?: string;
345
+ }) => react_jsx_runtime.JSX.Element;
346
+
347
+ declare const FormContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<styled_components.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, react.DetailedHTMLProps<react.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>>, never>, {
348
+ name?: string;
349
+ }>> & string;
350
+ declare const SingleFormContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
351
+ $width?: string | number;
352
+ }>> & string;
353
+
354
+ declare const clearList: styled_components.RuleSet<object>;
355
+ declare const responseWidth: styled_components.RuleSet<object>;
356
+ declare const elipsis: styled_components.RuleSet<object>;
357
+ declare const multiElipsis: styled_components.RuleSet<object>;
358
+ declare const thirdElipsis: styled_components.RuleSet<object>;
359
+ declare const boxBase: styled_components.RuleSet<object>;
360
+ declare const dropBase: styled_components.RuleSet<object>;
361
+ declare const headTable: styled_components.RuleSet<object>;
362
+ declare const formLabel: styled_components.RuleSet<object>;
363
+
364
+ declare const PanelContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
365
+ declare const ListContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
366
+ declare const PanelWrapper: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
367
+ $mode?: string;
368
+ }>> & string;
369
+ declare const Title: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
370
+ declare const HeaderContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
371
+ declare const TabsContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, {
372
+ $mode?: string;
373
+ }>> & string;
374
+ declare const TabsContent: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
375
+ $mode?: string;
376
+ }>> & string;
377
+ declare const FoContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
378
+ declare const InfoGroup: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
379
+
380
+ export { ButtonComponent, CheckboxComponent, DropDownComponent as DropdownComponent, ErrorComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, InputWithRefComponent as InputRefComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MessageComponent, MessageQuestionComponent, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TState, type TUser, TabsContainer, TabsContent, TextComponent, Title, type WithRequired, boxBase, clearList, dropBase, elipsis, formLabel, headTable, multiElipsis, responseWidth, thirdElipsis };