mblabs-roccato-frontend-commons 0.2.13 → 0.2.15
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 +25 -3
- package/dist/mblabs-roccato-frontend-commons.css +1 -1
- package/dist/mblabs-roccato-frontend-commons.js +14003 -13744
- package/package.json +1 -1
- package/src/components/atoms/Calendar/calendar.tsx +9 -4
- package/src/components/icons/annotation.tsx +22 -0
- package/src/components/icons/chevron-left-double.tsx +22 -0
- package/src/components/icons/chevron-right-double.tsx +22 -0
- package/src/components/icons/index.ts +4 -0
- package/src/components/icons/route.tsx +22 -0
- package/src/components/molecules/DatePicker/date-picker.stories.tsx +56 -3
- package/src/components/molecules/DatePicker/date-picker.tsx +294 -9
package/dist/index.d.ts
CHANGED
|
@@ -137,6 +137,8 @@ export declare function AlignCenter(props: ComponentProps<'svg'>): JSX.Element;
|
|
|
137
137
|
|
|
138
138
|
export declare function AlignLeft(props: ComponentProps<'svg'>): JSX.Element;
|
|
139
139
|
|
|
140
|
+
export declare function Annotation(props: ComponentProps<'svg'>): JSX.Element;
|
|
141
|
+
|
|
140
142
|
export declare function AnnotationDots(props: ComponentProps<'svg'>): JSX.Element;
|
|
141
143
|
|
|
142
144
|
export declare function Announcement01(props: ComponentProps<'svg'>): JSX.Element;
|
|
@@ -196,6 +198,10 @@ declare interface BaseDatePickerProps {
|
|
|
196
198
|
maxDate?: Date;
|
|
197
199
|
rangeText?: string;
|
|
198
200
|
multipleText?: string;
|
|
201
|
+
locale?: string;
|
|
202
|
+
withTime?: boolean;
|
|
203
|
+
timeLabel?: string;
|
|
204
|
+
timePlaceholder?: string;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
export declare function Bell01(props: ComponentProps<'svg'>): JSX.Element;
|
|
@@ -289,12 +295,16 @@ export declare const buttonVariants: (props?: ({
|
|
|
289
295
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
290
296
|
} & ClassProp) | undefined) => string;
|
|
291
297
|
|
|
292
|
-
export declare function Calendar({ className, showOutsideDays, ...props }:
|
|
298
|
+
export declare function Calendar({ className, showOutsideDays, formatLocale, ...props }: CalendarProps): JSX.Element;
|
|
293
299
|
|
|
294
300
|
export declare function CalendarIcon(props: ComponentProps<'svg'>): JSX.Element;
|
|
295
301
|
|
|
296
302
|
export declare function CalendarMinus02(props: ComponentProps<'svg'>): JSX.Element;
|
|
297
303
|
|
|
304
|
+
declare type CalendarProps = React_2.ComponentProps<typeof DayPicker> & {
|
|
305
|
+
formatLocale?: string;
|
|
306
|
+
};
|
|
307
|
+
|
|
298
308
|
export declare const capitalizeFirst: (value: string) => string;
|
|
299
309
|
|
|
300
310
|
export declare function Card({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
@@ -450,8 +460,12 @@ export declare function ChevronDownDouble(props: ComponentProps<'svg'>): JSX.Ele
|
|
|
450
460
|
|
|
451
461
|
export declare function ChevronLeft(props: ComponentProps<'svg'>): JSX.Element;
|
|
452
462
|
|
|
463
|
+
export declare function ChevronLeftDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
464
|
+
|
|
453
465
|
export declare function ChevronRight(props: ComponentProps<'svg'>): JSX.Element;
|
|
454
466
|
|
|
467
|
+
export declare function ChevronRightDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
468
|
+
|
|
455
469
|
export declare function ChevronUpDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
456
470
|
|
|
457
471
|
export declare function ClockRewind(props: ComponentProps<'svg'>): JSX.Element;
|
|
@@ -801,9 +815,9 @@ export declare function currencyShortener(value: number): string;
|
|
|
801
815
|
|
|
802
816
|
export declare function Dataflow03(props: ComponentProps<'svg'>): JSX.Element;
|
|
803
817
|
|
|
804
|
-
export declare function DatePicker({ value, onChange, placeholder, disabled, className, size, mode, footer, rounded, 'data-testid': dataTestId, minDate, maxDate, rangeText, multipleText, }: DatePickerProps): JSX.Element;
|
|
818
|
+
export declare function DatePicker({ value, onChange, placeholder, disabled, className, size, mode, footer, rounded, 'data-testid': dataTestId, minDate, maxDate, rangeText, multipleText, locale, withTime, timeLabel, timePlaceholder, }: DatePickerProps): JSX.Element;
|
|
805
819
|
|
|
806
|
-
declare type DatePickerProps = SingleDatePickerProps | MultipleDatePickerProps | RangeDatePickerProps;
|
|
820
|
+
declare type DatePickerProps = SingleDatePickerProps | MultipleDatePickerProps | RangeDatePickerProps | MonthDatePickerProps;
|
|
807
821
|
|
|
808
822
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
809
823
|
|
|
@@ -1403,6 +1417,12 @@ export declare function MiddleStage(props: ComponentProps<'svg'>): JSX.Element;
|
|
|
1403
1417
|
|
|
1404
1418
|
export declare const MIN_ZOOM = 0.6;
|
|
1405
1419
|
|
|
1420
|
+
declare interface MonthDatePickerProps extends BaseDatePickerProps {
|
|
1421
|
+
mode: 'month';
|
|
1422
|
+
value?: Date;
|
|
1423
|
+
onChange?: (date: Date | undefined) => void;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1406
1426
|
export declare function MsOutlook(props: ComponentProps<'svg'>): JSX.Element;
|
|
1407
1427
|
|
|
1408
1428
|
declare interface MultipleDatePickerProps extends BaseDatePickerProps {
|
|
@@ -1592,6 +1612,8 @@ declare interface RichTextEditorProps {
|
|
|
1592
1612
|
isRequired?: boolean;
|
|
1593
1613
|
}
|
|
1594
1614
|
|
|
1615
|
+
export declare function Route(props: ComponentProps<'svg'>): JSX.Element;
|
|
1616
|
+
|
|
1595
1617
|
export declare function Save01(props: ComponentProps<'svg'>): JSX.Element;
|
|
1596
1618
|
|
|
1597
1619
|
declare interface ScreenSizes {
|