forstok-ui-lib 3.0.1 → 4.0.0
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 +92 -1
- package/dist/index.js +406 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +406 -65
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -2
- package/src/assets/stylesheets/shares.styles.ts +1 -1
- package/src/components/dropdown/dropdown.styles.ts +325 -0
- package/src/components/dropdown/dropdown.tsx +254 -0
- package/src/components/dropdown/dropdown.typed.ts +24 -0
- package/src/components/index.ts +9 -0
- package/src/components/message/message.styles.ts +211 -0
- package/src/components/message/message.tsx +62 -0
- package/src/components/message/message.typed.ts +18 -0
- package/src/components/message/message_question.tsx +72 -0
- package/src/components/popup/popup.styles.ts +315 -0
- package/src/components/popup/popup.tsx +92 -0
- package/src/components/popup/popup.typed.ts +33 -0
- package/src/components/portal/react_portal.tsx +37 -0
- package/src/typeds/shares.typed.ts +18 -0
package/dist/index.d.ts
CHANGED
|
@@ -147,6 +147,84 @@ type TLoading = HTMLAttributes<HTMLDivElement> & {
|
|
|
147
147
|
};
|
|
148
148
|
declare const LoadingComponent: ({ $mode, $position, $shape, $color, $extendClass, ...props }: TLoading) => react_jsx_runtime.JSX.Element;
|
|
149
149
|
|
|
150
|
+
type TDropdown = {
|
|
151
|
+
children: ReactNode[];
|
|
152
|
+
title?: string;
|
|
153
|
+
subTitle?: string;
|
|
154
|
+
$externalWidth?: string;
|
|
155
|
+
$externalMinWidth?: string;
|
|
156
|
+
$internalWidth?: string;
|
|
157
|
+
$area?: string;
|
|
158
|
+
$openPosition?: string;
|
|
159
|
+
$placement?: string;
|
|
160
|
+
$top?: string;
|
|
161
|
+
$bottom?: string;
|
|
162
|
+
$alias?: string;
|
|
163
|
+
type?: string;
|
|
164
|
+
portalId?: string;
|
|
165
|
+
onClick?: TMouseEvent;
|
|
166
|
+
detail?: string;
|
|
167
|
+
};
|
|
168
|
+
type TCloseDropdownFunction = (currentTarget: EventTarget & HTMLElement) => void;
|
|
169
|
+
|
|
170
|
+
declare const DropDownComponent: ({ children, title, subTitle, $externalWidth, $externalMinWidth, $internalWidth, $area, $openPosition, $placement, $top, onClick, $alias, type, portalId, $bottom, ...props }: TDropdown) => react_jsx_runtime.JSX.Element;
|
|
171
|
+
|
|
172
|
+
type TMessage = {
|
|
173
|
+
timer?: number;
|
|
174
|
+
$type: string;
|
|
175
|
+
message: string | ReactNode;
|
|
176
|
+
callback?: () => void;
|
|
177
|
+
};
|
|
178
|
+
type TMessageQuestion = {
|
|
179
|
+
$type: string;
|
|
180
|
+
title: string;
|
|
181
|
+
subtitle: string;
|
|
182
|
+
callback?: () => void;
|
|
183
|
+
buttonSubmit?: string;
|
|
184
|
+
cancelCallback?: () => void;
|
|
185
|
+
};
|
|
186
|
+
type TMessageFunction = ({ timer, $type, message, callback }: TMessage) => void;
|
|
187
|
+
type TMessageQuestionFunction = ({ $type, title, subtitle, callback, buttonSubmit }: TMessageQuestion) => void;
|
|
188
|
+
|
|
189
|
+
declare const MessageComponent: ({ timer, $type, message, callback }: TMessage) => react_jsx_runtime.JSX.Element;
|
|
190
|
+
|
|
191
|
+
declare const MessageQuestionComponent: ({ $type, title, subtitle, callback, buttonSubmit, cancelCallback }: TMessageQuestion) => react_jsx_runtime.JSX.Element;
|
|
192
|
+
|
|
193
|
+
type TPopupOpenFunction = (e: MouseEvent, el?: string) => void;
|
|
194
|
+
type TPopupFunctionParam = {
|
|
195
|
+
mode?: string | null;
|
|
196
|
+
path?: string | null;
|
|
197
|
+
action?: string | null;
|
|
198
|
+
detail?: any;
|
|
199
|
+
};
|
|
200
|
+
type TPopupFunction = (props?: TPopupFunctionParam) => void;
|
|
201
|
+
type TPopupFunctionGroup = {
|
|
202
|
+
evTooglePopup?: TPopupFunction;
|
|
203
|
+
evCreateMessage?: TMessageFunction;
|
|
204
|
+
evForcePopUp?: TPopupFunction;
|
|
205
|
+
};
|
|
206
|
+
type TPopupContainer = {
|
|
207
|
+
isOpen: boolean;
|
|
208
|
+
} & Required<TPopupFunctionParam> & Required<TPopupFunctionGroup>;
|
|
209
|
+
type TPopup = {
|
|
210
|
+
isOpen: boolean;
|
|
211
|
+
body?: string;
|
|
212
|
+
height?: string | number;
|
|
213
|
+
width?: string | number;
|
|
214
|
+
type?: string;
|
|
215
|
+
} & TPopupFunctionParam & TPopupFunctionGroup;
|
|
216
|
+
|
|
217
|
+
type TPopupOtherProp = {
|
|
218
|
+
children: ReactNode[];
|
|
219
|
+
'data-qa-id'?: string;
|
|
220
|
+
};
|
|
221
|
+
declare const PopupComponent: ({ children, body, mode, height, width, isOpen, evTooglePopup, ...props }: TPopup & TPopupOtherProp) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
declare function ReactPortalComponent({ children, wrapperId }: {
|
|
224
|
+
children: ReactNode;
|
|
225
|
+
wrapperId?: string;
|
|
226
|
+
}): react_jsx_runtime.JSX.Element;
|
|
227
|
+
|
|
150
228
|
declare const clearList: styled_components.RuleSet<object>;
|
|
151
229
|
declare const responseWidth: styled_components.RuleSet<object>;
|
|
152
230
|
declare const elipsis: styled_components.RuleSet<object>;
|
|
@@ -191,5 +269,18 @@ type TUser = {
|
|
|
191
269
|
};
|
|
192
270
|
has_access_orderV1: boolean;
|
|
193
271
|
};
|
|
272
|
+
type THierarchy = {
|
|
273
|
+
evTooglePopup?: TPopupFunction;
|
|
274
|
+
evCreateMessage?: TMessageFunction;
|
|
275
|
+
evForcePopUp?: TPopupFunction;
|
|
276
|
+
isOpenPopup: boolean;
|
|
277
|
+
modePopup: string;
|
|
278
|
+
pathPopup: string;
|
|
279
|
+
actionPopup: string;
|
|
280
|
+
detailPopup?: TObject;
|
|
281
|
+
evOpenPopup?: TPopupOpenFunction;
|
|
282
|
+
evCloseDropdown?: TCloseDropdownFunction;
|
|
283
|
+
evCreateMessageQuestion?: TMessageQuestionFunction;
|
|
284
|
+
};
|
|
194
285
|
|
|
195
|
-
export { ButtonComponent, CheckboxComponent, FoContainer, HeaderContainer, IconComponent, InfoGroup, InputComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, PanelContainer, PanelWrapper, type PartialBy, type TChangeEvent, type TDragEvent, type TEnterEvent, type TFile, type TFileImage, type TIdNum, type TIdStr, type TKeyboadEvent, type TMouseEvent, type TObject, type TPage, type TState, type TUser, TabsContainer, TabsContent, TextComponent, Title, type WithRequired, boxBase, clearList, dropBase, elipsis, formLabel, headTable, multiElipsis, responseWidth, thirdElipsis };
|
|
286
|
+
export { ButtonComponent, CheckboxComponent, DropDownComponent as DropdownComponent, FoContainer, HeaderContainer, IconComponent, InfoGroup, InputComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MessageComponent, MessageQuestionComponent, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, type TChangeEvent, 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 };
|