design-system-silkhaus 3.11.0-beta.month-range-picker.1 → 3.11.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/{ButtonsGroupSelector-CshRIOBN.js → ButtonsGroupSelector-Da7wwKtY.js} +473 -480
- package/dist/app/index.js +2 -2
- package/dist/index.d.ts +79 -50
- package/dist/index.js +14312 -12611
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +0 -28
- package/package.json +6 -4
package/dist/app/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var I = (s, e, a) => e in s ? J(s, e, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
X.call(e, a) && I(s, a, e[a]);
|
|
11
11
|
return s;
|
|
12
12
|
}, k = (s, e) => K(s, L(e));
|
|
13
|
-
import { j as d, p as Y, u as Z, o as _, i as O, s as ss, r as es, v as ds, d as as, e as ls, f as ts, g as rs, a as m, F as ns, A as is, h as os,
|
|
14
|
-
import { w as ks } from "../ButtonsGroupSelector-
|
|
13
|
+
import { j as d, p as Y, u as Z, o as _, i as O, s as ss, r as es, v as ds, d as as, e as ls, f as ts, g as rs, a as m, F as ns, A as is, h as os, D as cs, x as us, C as fs, l as xs, k as ms, n as ps } from "../ButtonsGroupSelector-Da7wwKtY.js";
|
|
14
|
+
import { w as ks } from "../ButtonsGroupSelector-Da7wwKtY.js";
|
|
15
15
|
import { useState as b } from "react";
|
|
16
16
|
const hs = (s) => window.innerWidth < Y ? /* @__PURE__ */ d.jsx(R, x({}, s)) : /* @__PURE__ */ d.jsx(M, x({}, s));
|
|
17
17
|
hs.displayName = "Dropdown";
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,8 @@ export declare interface AlertDialogProps {
|
|
|
82
82
|
onSecondaryBtnClick?: () => void;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
declare type AllTextVariants = keyof typeof textVariants;
|
|
86
|
+
|
|
85
87
|
export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
|
|
86
88
|
|
|
87
89
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -104,6 +106,10 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
104
106
|
overlayBlur?: boolean;
|
|
105
107
|
}
|
|
106
108
|
|
|
109
|
+
export declare const ArrowLeftIcon: FC<{
|
|
110
|
+
className?: string;
|
|
111
|
+
}>;
|
|
112
|
+
|
|
107
113
|
export declare const ArrowRightIcon: FC<{
|
|
108
114
|
className?: string;
|
|
109
115
|
}>;
|
|
@@ -217,7 +223,7 @@ export declare const BurjKhalifaIcon: FC<{
|
|
|
217
223
|
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
218
224
|
|
|
219
225
|
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
220
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
226
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'empty';
|
|
221
227
|
size?: 'small' | 'large';
|
|
222
228
|
disabled?: true | false;
|
|
223
229
|
startIcon?: default_2.ReactNode;
|
|
@@ -281,6 +287,10 @@ export declare const CalendarPlusIcon: FC<{
|
|
|
281
287
|
className?: string;
|
|
282
288
|
}>;
|
|
283
289
|
|
|
290
|
+
export declare const CallBellIcon: FC<{
|
|
291
|
+
className?: string;
|
|
292
|
+
}>;
|
|
293
|
+
|
|
284
294
|
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
285
295
|
|
|
286
296
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -391,6 +401,35 @@ export declare const DashboardOutlineIcon: FC<{
|
|
|
391
401
|
className?: string;
|
|
392
402
|
}>;
|
|
393
403
|
|
|
404
|
+
export declare const DateRangeCalendar: default_2.FC<DateRangeCalendarProps>;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* A responsive date range calendar using react-dates' DayPickerRangeController.
|
|
408
|
+
* It adjusts to fill its parent's full width, showing 1 month on mobile and 2 months on larger screens.
|
|
409
|
+
*/
|
|
410
|
+
export declare interface DateRangeCalendarProps {
|
|
411
|
+
startDate: Moment | null;
|
|
412
|
+
endDate: Moment | null;
|
|
413
|
+
onDatesChange: ({ startDate, endDate, }: {
|
|
414
|
+
startDate: Moment | null;
|
|
415
|
+
endDate: Moment | null;
|
|
416
|
+
}) => void;
|
|
417
|
+
/**
|
|
418
|
+
* Callback to determine the initially visible month (defaults to current month)
|
|
419
|
+
*/
|
|
420
|
+
initialVisibleMonth?: () => Moment;
|
|
421
|
+
isDayBlocked?: ((day: Moment) => boolean) | undefined;
|
|
422
|
+
renderDayContents?: (day: Moment, modifiers: ModifiersShape) => default_2.ReactNode | null | undefined;
|
|
423
|
+
getParentWidth: () => number;
|
|
424
|
+
buttonText: string;
|
|
425
|
+
/**
|
|
426
|
+
* Used for RTL.
|
|
427
|
+
* Pass this as true when you have direction=rtl in your HTML
|
|
428
|
+
* @default false
|
|
429
|
+
*/
|
|
430
|
+
rtl?: boolean;
|
|
431
|
+
}
|
|
432
|
+
|
|
394
433
|
export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
395
434
|
|
|
396
435
|
declare interface DateRangePickerProps {
|
|
@@ -463,8 +502,6 @@ export declare const DeleteIcon: FC<{
|
|
|
463
502
|
|
|
464
503
|
export declare const desktopMinWidth: number;
|
|
465
504
|
|
|
466
|
-
export declare const DesktopMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
467
|
-
|
|
468
505
|
export declare const DesktopPopover: FC<PropsWithChildren<PopoverProps>>;
|
|
469
506
|
|
|
470
507
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
@@ -693,6 +730,20 @@ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTM
|
|
|
693
730
|
images: string[];
|
|
694
731
|
}
|
|
695
732
|
|
|
733
|
+
export declare interface ImageItem {
|
|
734
|
+
src: string;
|
|
735
|
+
caption: string;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
export declare const ImageViewer: FC<ImageViewerProps>;
|
|
739
|
+
|
|
740
|
+
export declare interface ImageViewerProps {
|
|
741
|
+
isOpen: boolean;
|
|
742
|
+
setOpen: (state: boolean) => void;
|
|
743
|
+
images: ImageItem[];
|
|
744
|
+
index?: number;
|
|
745
|
+
}
|
|
746
|
+
|
|
696
747
|
export declare const InfoIcon: FC<{
|
|
697
748
|
className?: string;
|
|
698
749
|
}>;
|
|
@@ -870,6 +921,10 @@ export declare const MagnifyGlassIcon: FC<{
|
|
|
870
921
|
className?: string;
|
|
871
922
|
}>;
|
|
872
923
|
|
|
924
|
+
export declare const MessageIcon: FC<{
|
|
925
|
+
className?: string;
|
|
926
|
+
}>;
|
|
927
|
+
|
|
873
928
|
export declare const MetroIcon: FC<{
|
|
874
929
|
className?: string;
|
|
875
930
|
}>;
|
|
@@ -948,40 +1003,14 @@ export declare const MoneyIcon: FC<{
|
|
|
948
1003
|
className?: string;
|
|
949
1004
|
}>;
|
|
950
1005
|
|
|
951
|
-
export declare type MonthIndex = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
952
|
-
|
|
953
|
-
export declare type MonthRange = {
|
|
954
|
-
startDate: MonthYear;
|
|
955
|
-
endDate?: MonthYear;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
export declare const MonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
959
|
-
|
|
960
|
-
export declare type MonthRangePickerProps = {
|
|
961
|
-
minDate: MonthYear;
|
|
962
|
-
maxDate: MonthYear;
|
|
963
|
-
value?: MonthRange;
|
|
964
|
-
onChange?: (value: MonthRange) => void;
|
|
965
|
-
trigger?: ReactNode;
|
|
966
|
-
triggerContainerClassName?: string;
|
|
967
|
-
disabled?: boolean;
|
|
968
|
-
placeholder?: string;
|
|
969
|
-
/**
|
|
970
|
-
* Pass this callback function if you want to override the default selected value display text.
|
|
971
|
-
* By default the dropdown will display the selected dates in the format of "MMM YY - MMM YY"
|
|
972
|
-
*/
|
|
973
|
-
getSelectedValueDisplayText?: (value?: MonthRange, placeholder?: string) => string;
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
export declare type MonthYear = {
|
|
977
|
-
month: MonthIndex;
|
|
978
|
-
year: number;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
1006
|
export declare const MoonIcon: FC<{
|
|
982
1007
|
className?: string;
|
|
983
1008
|
}>;
|
|
984
1009
|
|
|
1010
|
+
export declare const NoSmokingIcon: FC<{
|
|
1011
|
+
className?: string;
|
|
1012
|
+
}>;
|
|
1013
|
+
|
|
985
1014
|
export declare const NotificationItem: FC<NotificationItemProps>;
|
|
986
1015
|
|
|
987
1016
|
export declare type NotificationItemProps = {
|
|
@@ -1018,10 +1047,18 @@ export declare const PartnerIcon: FC<{
|
|
|
1018
1047
|
className?: string;
|
|
1019
1048
|
}>;
|
|
1020
1049
|
|
|
1050
|
+
export declare const PartyPopperFilledIcon: FC<{
|
|
1051
|
+
className?: string;
|
|
1052
|
+
}>;
|
|
1053
|
+
|
|
1021
1054
|
export declare const PartyPopperIcon: FC<{
|
|
1022
1055
|
className?: string;
|
|
1023
1056
|
}>;
|
|
1024
1057
|
|
|
1058
|
+
export declare const PawIcon: FC<{
|
|
1059
|
+
className?: string;
|
|
1060
|
+
}>;
|
|
1061
|
+
|
|
1025
1062
|
declare const PaymentItem_2: default_2.FC<PaymentScheduleItemProps>;
|
|
1026
1063
|
export { PaymentItem_2 as PaymentItem }
|
|
1027
1064
|
|
|
@@ -1256,6 +1293,10 @@ export declare interface PriceRangeSliderProps {
|
|
|
1256
1293
|
uptoLabel?: string;
|
|
1257
1294
|
}
|
|
1258
1295
|
|
|
1296
|
+
export declare const PriceTagFilledIcon: FC<{
|
|
1297
|
+
className?: string;
|
|
1298
|
+
}>;
|
|
1299
|
+
|
|
1259
1300
|
export declare const PriceTagIcon: FC<{
|
|
1260
1301
|
className?: string;
|
|
1261
1302
|
}>;
|
|
@@ -1588,7 +1629,7 @@ export declare type TextProps<T extends ElementType = 'div'> = React.PropsWithCh
|
|
|
1588
1629
|
isResponsive?: boolean;
|
|
1589
1630
|
}> & React.ComponentPropsWithoutRef<T>;
|
|
1590
1631
|
|
|
1591
|
-
declare type TextVariant =
|
|
1632
|
+
declare type TextVariant = Exclude<AllTextVariants, 'mediumSubHeadRegular' | 'mediumSubHeadEmphasized'>;
|
|
1592
1633
|
|
|
1593
1634
|
declare const textVariants: {
|
|
1594
1635
|
readonly xLargeHeroTitleRegular: readonly ["var(--xLargeHero-TitleRegular-font-size)", {
|
|
@@ -1839,30 +1880,14 @@ declare const textVariants: {
|
|
|
1839
1880
|
readonly lineHeight: "var(--SmallTitle-3Regular-line-height)";
|
|
1840
1881
|
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1841
1882
|
}];
|
|
1842
|
-
readonly smallBodyRegular: readonly ["15px", {
|
|
1843
|
-
readonly lineHeight: "24px";
|
|
1844
|
-
readonly fontWeight: "var(--font-weight-normal)";
|
|
1845
|
-
}];
|
|
1846
|
-
readonly smallBodyEmphasized: readonly ["15px", {
|
|
1847
|
-
readonly lineHeight: "24px";
|
|
1848
|
-
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1849
|
-
}];
|
|
1850
1883
|
readonly smallBody1Regular: readonly ["var(--SmallBody-1Regular-font-size)", {
|
|
1851
1884
|
readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
|
|
1852
1885
|
readonly fontWeight: "var(--SmallBody-1Regular-font-weight)";
|
|
1853
1886
|
}];
|
|
1854
|
-
readonly smallBody1Emphasized: readonly ["var(--SmallBody-1Regular-font-size)", {
|
|
1855
|
-
readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
|
|
1856
|
-
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1857
|
-
}];
|
|
1858
1887
|
readonly smallBody2Regular: readonly ["var(--SmallBody-2Regular-font-size)", {
|
|
1859
1888
|
readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
|
|
1860
1889
|
readonly fontWeight: "var(--SmallBody-2Regular-font-weight)";
|
|
1861
1890
|
}];
|
|
1862
|
-
readonly smallBody2Emphasized: readonly ["var(--SmallBody-2Regular-font-size)", {
|
|
1863
|
-
readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
|
|
1864
|
-
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1865
|
-
}];
|
|
1866
1891
|
readonly smallSubheadRegular: readonly ["var(--SmallSubhead-Regular-font-size)", {
|
|
1867
1892
|
readonly lineHeight: "var(--SmallSubhead-Regular-line-height)";
|
|
1868
1893
|
readonly fontWeight: "var(--font-weight-normal)";
|
|
@@ -2195,6 +2220,10 @@ export declare const WhatsappIcon: FC<{
|
|
|
2195
2220
|
className?: string;
|
|
2196
2221
|
}>;
|
|
2197
2222
|
|
|
2223
|
+
export declare const WifiDotIcon: FC<{
|
|
2224
|
+
className?: string;
|
|
2225
|
+
}>;
|
|
2226
|
+
|
|
2198
2227
|
export declare const WifiIcon: FC<{
|
|
2199
2228
|
className?: string;
|
|
2200
2229
|
}>;
|