design-system-silkhaus 3.11.0-beta-image-viewer.18 → 3.11.0-beta.month-range-picker.1
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-Da7wwKtY.js → ButtonsGroupSelector-CshRIOBN.js} +480 -473
- package/dist/app/index.js +2 -2
- package/dist/index.d.ts +50 -79
- package/dist/index.js +12613 -14314
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +28 -0
- package/package.json +4 -6
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, x as cs, y as us, C as fs, l as xs, k as ms, n as ps } from "../ButtonsGroupSelector-CshRIOBN.js";
|
|
14
|
+
import { w as ks } from "../ButtonsGroupSelector-CshRIOBN.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,8 +82,6 @@ export declare interface AlertDialogProps {
|
|
|
82
82
|
onSecondaryBtnClick?: () => void;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
declare type AllTextVariants = keyof typeof textVariants;
|
|
86
|
-
|
|
87
85
|
export declare const AnimatedModal: ForwardRefExoticComponent<AnimatedModalProps & RefAttributes<HTMLDivElement>>;
|
|
88
86
|
|
|
89
87
|
export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -106,10 +104,6 @@ export declare interface AnimatedModalProps extends HTMLAttributes<HTMLDivElemen
|
|
|
106
104
|
overlayBlur?: boolean;
|
|
107
105
|
}
|
|
108
106
|
|
|
109
|
-
export declare const ArrowLeftIcon: FC<{
|
|
110
|
-
className?: string;
|
|
111
|
-
}>;
|
|
112
|
-
|
|
113
107
|
export declare const ArrowRightIcon: FC<{
|
|
114
108
|
className?: string;
|
|
115
109
|
}>;
|
|
@@ -223,7 +217,7 @@ export declare const BurjKhalifaIcon: FC<{
|
|
|
223
217
|
export declare const Button: default_2.ForwardRefExoticComponent<ButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
224
218
|
|
|
225
219
|
export declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
226
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary'
|
|
220
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'quaternary';
|
|
227
221
|
size?: 'small' | 'large';
|
|
228
222
|
disabled?: true | false;
|
|
229
223
|
startIcon?: default_2.ReactNode;
|
|
@@ -287,10 +281,6 @@ export declare const CalendarPlusIcon: FC<{
|
|
|
287
281
|
className?: string;
|
|
288
282
|
}>;
|
|
289
283
|
|
|
290
|
-
export declare const CallBellIcon: FC<{
|
|
291
|
-
className?: string;
|
|
292
|
-
}>;
|
|
293
|
-
|
|
294
284
|
export declare const Card: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
295
285
|
|
|
296
286
|
export declare const CardContent: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -401,35 +391,6 @@ export declare const DashboardOutlineIcon: FC<{
|
|
|
401
391
|
className?: string;
|
|
402
392
|
}>;
|
|
403
393
|
|
|
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
|
-
|
|
433
394
|
export declare const DateRangePicker: default_2.ForwardRefExoticComponent<DateRangePickerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
434
395
|
|
|
435
396
|
declare interface DateRangePickerProps {
|
|
@@ -502,6 +463,8 @@ export declare const DeleteIcon: FC<{
|
|
|
502
463
|
|
|
503
464
|
export declare const desktopMinWidth: number;
|
|
504
465
|
|
|
466
|
+
export declare const DesktopMonthRangePicker: FC<PropsWithChildren<MonthRangePickerProps>>;
|
|
467
|
+
|
|
505
468
|
export declare const DesktopPopover: FC<PropsWithChildren<PopoverProps>>;
|
|
506
469
|
|
|
507
470
|
export declare const DesktopTooltip: FC<PropsWithChildren<TooltipProps>>;
|
|
@@ -730,20 +693,6 @@ export declare interface ImageCarouselProps extends default_2.HTMLAttributes<HTM
|
|
|
730
693
|
images: string[];
|
|
731
694
|
}
|
|
732
695
|
|
|
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
|
-
|
|
747
696
|
export declare const InfoIcon: FC<{
|
|
748
697
|
className?: string;
|
|
749
698
|
}>;
|
|
@@ -921,10 +870,6 @@ export declare const MagnifyGlassIcon: FC<{
|
|
|
921
870
|
className?: string;
|
|
922
871
|
}>;
|
|
923
872
|
|
|
924
|
-
export declare const MessageIcon: FC<{
|
|
925
|
-
className?: string;
|
|
926
|
-
}>;
|
|
927
|
-
|
|
928
873
|
export declare const MetroIcon: FC<{
|
|
929
874
|
className?: string;
|
|
930
875
|
}>;
|
|
@@ -1003,11 +948,37 @@ export declare const MoneyIcon: FC<{
|
|
|
1003
948
|
className?: string;
|
|
1004
949
|
}>;
|
|
1005
950
|
|
|
1006
|
-
export declare
|
|
1007
|
-
|
|
1008
|
-
|
|
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>>;
|
|
1009
959
|
|
|
1010
|
-
export declare
|
|
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
|
+
export declare const MoonIcon: FC<{
|
|
1011
982
|
className?: string;
|
|
1012
983
|
}>;
|
|
1013
984
|
|
|
@@ -1047,18 +1018,10 @@ export declare const PartnerIcon: FC<{
|
|
|
1047
1018
|
className?: string;
|
|
1048
1019
|
}>;
|
|
1049
1020
|
|
|
1050
|
-
export declare const PartyPopperFilledIcon: FC<{
|
|
1051
|
-
className?: string;
|
|
1052
|
-
}>;
|
|
1053
|
-
|
|
1054
1021
|
export declare const PartyPopperIcon: FC<{
|
|
1055
1022
|
className?: string;
|
|
1056
1023
|
}>;
|
|
1057
1024
|
|
|
1058
|
-
export declare const PawIcon: FC<{
|
|
1059
|
-
className?: string;
|
|
1060
|
-
}>;
|
|
1061
|
-
|
|
1062
1025
|
declare const PaymentItem_2: default_2.FC<PaymentScheduleItemProps>;
|
|
1063
1026
|
export { PaymentItem_2 as PaymentItem }
|
|
1064
1027
|
|
|
@@ -1293,10 +1256,6 @@ export declare interface PriceRangeSliderProps {
|
|
|
1293
1256
|
uptoLabel?: string;
|
|
1294
1257
|
}
|
|
1295
1258
|
|
|
1296
|
-
export declare const PriceTagFilledIcon: FC<{
|
|
1297
|
-
className?: string;
|
|
1298
|
-
}>;
|
|
1299
|
-
|
|
1300
1259
|
export declare const PriceTagIcon: FC<{
|
|
1301
1260
|
className?: string;
|
|
1302
1261
|
}>;
|
|
@@ -1629,7 +1588,7 @@ export declare type TextProps<T extends ElementType = 'div'> = React.PropsWithCh
|
|
|
1629
1588
|
isResponsive?: boolean;
|
|
1630
1589
|
}> & React.ComponentPropsWithoutRef<T>;
|
|
1631
1590
|
|
|
1632
|
-
declare type TextVariant =
|
|
1591
|
+
declare type TextVariant = keyof typeof textVariants;
|
|
1633
1592
|
|
|
1634
1593
|
declare const textVariants: {
|
|
1635
1594
|
readonly xLargeHeroTitleRegular: readonly ["var(--xLargeHero-TitleRegular-font-size)", {
|
|
@@ -1880,14 +1839,30 @@ declare const textVariants: {
|
|
|
1880
1839
|
readonly lineHeight: "var(--SmallTitle-3Regular-line-height)";
|
|
1881
1840
|
readonly fontWeight: "var(--font-weight-semibold)";
|
|
1882
1841
|
}];
|
|
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
|
+
}];
|
|
1883
1850
|
readonly smallBody1Regular: readonly ["var(--SmallBody-1Regular-font-size)", {
|
|
1884
1851
|
readonly lineHeight: "var(--SmallBody-1Regular-line-height)";
|
|
1885
1852
|
readonly fontWeight: "var(--SmallBody-1Regular-font-weight)";
|
|
1886
1853
|
}];
|
|
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
|
+
}];
|
|
1887
1858
|
readonly smallBody2Regular: readonly ["var(--SmallBody-2Regular-font-size)", {
|
|
1888
1859
|
readonly lineHeight: "var(--SmallBody-2Regular-line-height)";
|
|
1889
1860
|
readonly fontWeight: "var(--SmallBody-2Regular-font-weight)";
|
|
1890
1861
|
}];
|
|
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
|
+
}];
|
|
1891
1866
|
readonly smallSubheadRegular: readonly ["var(--SmallSubhead-Regular-font-size)", {
|
|
1892
1867
|
readonly lineHeight: "var(--SmallSubhead-Regular-line-height)";
|
|
1893
1868
|
readonly fontWeight: "var(--font-weight-normal)";
|
|
@@ -2220,10 +2195,6 @@ export declare const WhatsappIcon: FC<{
|
|
|
2220
2195
|
className?: string;
|
|
2221
2196
|
}>;
|
|
2222
2197
|
|
|
2223
|
-
export declare const WifiDotIcon: FC<{
|
|
2224
|
-
className?: string;
|
|
2225
|
-
}>;
|
|
2226
|
-
|
|
2227
2198
|
export declare const WifiIcon: FC<{
|
|
2228
2199
|
className?: string;
|
|
2229
2200
|
}>;
|