forstok-ui-lib 5.2.31 → 5.2.38

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.css ADDED
@@ -0,0 +1 @@
1
+ .DateRangePicker{display:inline-block;margin-bottom:10px;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.DateRangePicker__Legend{color:#52575e;font-size:14px;line-height:16px;list-style-type:none;margin:20px 0;padding:0}.DateRangePicker__LegendItem{display:inline-block;margin:0 20px}.DateRangePicker__LegendItemColor{border:1px solid rgba(0,0,0,.25);border-radius:50%;display:inline-block;height:14px;margin-right:6px;vertical-align:text-bottom;width:14px}.DateRangePicker__LegendItemColor--selection{background-color:#ed5434}.DateRangePicker__PaginationArrow{border:0;cursor:pointer;display:block;height:35px;outline:none;overflow:hidden;padding:0;position:absolute;text-align:center;top:0;white-space:nowrap;width:35px;z-index:1}.DateRangePicker__PaginationArrow--previous{left:20px}.DateRangePicker__PaginationArrow--next{right:20px}.DateRangePicker__PaginationArrow:hover{background-color:#ccc}.DateRangePicker__PaginationArrowIcon{border-bottom:8px solid transparent;border-top:8px solid transparent;height:0;position:absolute;top:10px;width:0}.DateRangePicker__PaginationArrowIcon--is-disabled{opacity:.25}.DateRangePicker__PaginationArrowIcon--previous{border-left:8px solid transparent;border-right:8px solid #aaa;right:11px}.DateRangePicker__PaginationArrowIcon--next{border-left:8px solid #aaa;border-right:8px solid transparent;left:11px}.DateRangePicker__Month{color:#333;display:inline-block;margin:0 20px;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:275px}.DateRangePicker__MonthHeader{color:#000;font-size:14px;font-weight:700;height:35px;line-height:35px;position:relative;text-align:center}.DateRangePicker__MonthHeaderLabel{display:inline-block;position:relative}.DateRangePicker__MonthHeaderSelect{background:#e4e4e4;border:0;cursor:pointer;display:inline-block;height:100%;left:0;margin:0;opacity:0;position:absolute;top:0;width:100%;z-index:5}.DateRangePicker__MonthDates{border-bottom:1px solid #f4f5f6;border-collapse:separate;border-spacing:0 1px;margin:0;width:100%}.DateRangePicker__Date,.DateRangePicker__WeekdayHeading{font-size:12px;line-height:1;padding:10px 0;text-align:center;width:14.285714285714286%}.DateRangePicker__WeekdayHeading{border-bottom:1px solid #f4f5f6;color:#000;font-weight:700}.DateRangePicker__WeekdayHeading abbr[title]{border-bottom-width:0;color:#000;cursor:pointer;font-size:inherit;text-decoration:none}.DateRangePicker__Date{border:solid #f4f5f6;border-width:0 1px 0 0;cursor:pointer;overflow:hidden;position:relative}.DateRangePicker__Date:first-child{border-left-width:1px}.DateRangePicker__Date--weekend{background-color:#f6f7f9}.DateRangePicker__Date--otherMonth{opacity:.25}.DateRangePicker__Date--is-disabled{color:#cdcdd1;cursor:default}.DateRangePicker__Date--is-selected{color:#fff}.DateRangePicker__Date--is-highlighted{color:#333}.DateRangePicker__CalendarDatePeriod{bottom:0;position:absolute;top:0}.DateRangePicker__CalendarDatePeriod--am{left:0;right:50%}.DateRangePicker__CalendarDatePeriod--pm{left:50%;right:0}.DateRangePicker__CalendarSelection{background-color:#ed5434;border:1px solid #eb401d;bottom:5px;left:0;position:absolute;right:0;top:5px}.DateRangePicker__CalendarSelection--inOtherMonth{opacity:.5}.DateRangePicker__CalendarSelection--start{border-bottom-left-radius:5px;border-right-width:0;border-top-left-radius:5px;left:5px}.DateRangePicker__CalendarSelection--end{border-bottom-right-radius:5px;border-left-width:0;border-top-right-radius:5px;right:5px}.DateRangePicker__CalendarSelection--segment{border-left-width:0;border-right-width:0}.DateRangePicker__CalendarSelection--single{border-radius:5px;left:5px;right:5px}.DateRangePicker__CalendarSelection--is-pending{background-color:rgba(237,84,52,.75);border-width:0}.DateRangePicker__CalendarHighlight{background-color:hsla(0,0%,100%,.25);border:1px solid rgba(0,0,0,.25);bottom:5px;left:0;position:absolute;right:0;top:5px}.DateRangePicker__CalendarHighlight--inOtherMonth{opacity:.5}.DateRangePicker__CalendarHighlight--start{border-bottom-left-radius:5px;border-right-width:0;border-top-left-radius:5px;left:5px}.DateRangePicker__CalendarHighlight--end{border-bottom-right-radius:5px;border-left-width:0;border-top-right-radius:5px;right:5px}.DateRangePicker__CalendarHighlight--segment{border-left-width:0;border-right-width:0}.DateRangePicker__CalendarHighlight--single{background-color:#fff;border:1px solid #eb401d;border-radius:5px;left:5px;right:5px}.DateRangePicker__HalfDateStates{bottom:-50px;left:-50px;position:absolute;right:-50px;top:-50px;transform:rotate(30deg)}.DateRangePicker__FullDateStates{bottom:0;left:0;position:absolute;right:0;top:0}.DateRangePicker__DateLabel{display:block;position:relative;text-align:center;width:100%;z-index:1}#popup-portal .react-datepicker-popper{z-index:1000}
package/dist/index.d.ts CHANGED
@@ -421,6 +421,28 @@ declare const TextAreaWithRefComponent: react.ForwardRefExoticComponent<Textarea
421
421
  $isError?: boolean;
422
422
  } & react.RefAttributes<HTMLTextAreaElement>>;
423
423
 
424
+ type TModerateDateFunction = (startDateObj: string, endDateObj: string, rangeDateObj: string, callback: () => void) => void;
425
+
426
+ type TDateRange = {
427
+ mode: string;
428
+ placeholder?: string;
429
+ startDate?: string | null;
430
+ endDate?: string | null;
431
+ rangeDate?: string;
432
+ minDate?: string;
433
+ evModDate: TModerateDateFunction;
434
+ portalId?: string;
435
+ isForceUpdate?: boolean;
436
+ setForceUpdate?: TState<boolean>;
437
+ isCheckType?: boolean;
438
+ size?: string;
439
+ };
440
+ declare const DateRangeComponent: ({ mode, placeholder, startDate, endDate, rangeDate, minDate, evModDate, portalId, isForceUpdate, setForceUpdate, isCheckType, size }: TDateRange) => react_jsx_runtime.JSX.Element;
441
+
442
+ declare const DateTimeComponent: ({ dateTimeData }: {
443
+ dateTimeData: string;
444
+ }) => react_jsx_runtime.JSX.Element;
445
+
424
446
  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>, {
425
447
  name?: string;
426
448
  }>> & string;
@@ -523,4 +545,15 @@ declare const getSizeContainer: (full?: boolean) => {
523
545
  height: number;
524
546
  };
525
547
 
526
- export { ButtonComponent, CheckboxComponent, ContentLoaderAccountsList, ContentLoaderActivityList, ContentLoaderAddition, ContentLoaderAnalyticsMenu, ContentLoaderCategoryList, ContentLoaderChatAccounts, ContentLoaderChatMessages, ContentLoaderChatProducts, ContentLoaderChatStores, ContentLoaderDashboardCard, ContentLoaderEditBundle, ContentLoaderFilterCategories, ContentLoaderFilters, ContentLoaderInvoiceListPaymentreceiveDetail, ContentLoaderMasterBundleDetail, ContentLoaderMasterDetail, ContentLoaderMasterList, ContentLoaderMasterListingDetail, ContentLoaderNonOrderList, ContentLoaderNotifUpdate, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, DropDownComponent as DropdownComponent, ErrorComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MenuList, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, type TActionMeta, type TCSSObject, type TCSSObjectWithLabel, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TControlProps, type TCustomStyles, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type TGroupBase, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TLoadOption, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TOnChangeValue, type TOnChangeValueFalse, type TOption, type TOptionProps, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TSelectAsyncPaginate, type TState, type TUser, TabsContainer, TabsContent, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, currencyNumber, debounce, dropBase, elipsis, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, getSizeContainer, getStorage, headTable, multiElipsis, removeStorage, responseWidth, setStorage, thirdElipsis };
548
+ declare const dateRangeStatus: (value: string) => any;
549
+ declare const dateRangeDays: (value: string) => any;
550
+
551
+ declare const configDateRange: {
552
+ rangeDate: string;
553
+ startDate: string;
554
+ endDate: string;
555
+ placeholder: string;
556
+ minDate: string;
557
+ };
558
+
559
+ export { ButtonComponent, CheckboxComponent, ContentLoaderAccountsList, ContentLoaderActivityList, ContentLoaderAddition, ContentLoaderAnalyticsMenu, ContentLoaderCategoryList, ContentLoaderChatAccounts, ContentLoaderChatMessages, ContentLoaderChatProducts, ContentLoaderChatStores, ContentLoaderDashboardCard, ContentLoaderEditBundle, ContentLoaderFilterCategories, ContentLoaderFilters, ContentLoaderInvoiceListPaymentreceiveDetail, ContentLoaderMasterBundleDetail, ContentLoaderMasterDetail, ContentLoaderMasterList, ContentLoaderMasterListingDetail, ContentLoaderNonOrderList, ContentLoaderNotifUpdate, ContentLoaderOneLinePromotion, ContentLoaderOnlyBodyDashboardCard, ContentLoaderOnlyBodyTableList, ContentLoaderOnlyHeaderTableList, ContentLoaderOrderDetail, ContentLoaderOrderList, ContentLoaderPagination, ContentLoaderPopupBundle, ContentLoaderPopupChooseStore, ContentLoaderPopupLinkedListing, ContentLoaderPopupListOrder, ContentLoaderPopupPaymentReceive, ContentLoaderPopupPaymentReceived, ContentLoaderPopupPicklist, ContentLoaderPopupReadyToShip, ContentLoaderPopupStoreSelect, ContentLoaderPromotionHover, ContentLoaderReportingDashboard, ContentLoaderSetting, ContentLoaderTableList, DateRangeComponent, DateTimeComponent, DropDownComponent as DropdownComponent, ErrorComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MenuList, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, type TActionMeta, type TCSSObject, type TCSSObjectWithLabel, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TControlProps, type TCustomStyles, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type TGroupBase, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TLoadOption, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TModerateDateFunction, type TMouseEvent, type TObject, type TOnChangeValue, type TOnChangeValueFalse, type TOption, type TOptionProps, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TSelectAsyncPaginate, type TState, type TUser, TabsContainer, TabsContent, TextAreaComponent, TextAreaWithRefComponent as TextAreaRefComponent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, configDateRange, currencyNumber, dateRangeDays, dateRangeStatus, debounce, dropBase, elipsis, evUpdateInputRc, formLabel, formatNumber, generateMessage, generateMessageQuestion, getSizeContainer, getStorage, headTable, multiElipsis, removeStorage, responseWidth, setStorage, thirdElipsis };