mblabs-roccato-frontend-commons 0.2.13 → 0.2.14
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 +22 -3
- package/dist/mblabs-roccato-frontend-commons.css +1 -1
- package/dist/mblabs-roccato-frontend-commons.js +13165 -12943
- 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 +26 -2
- package/src/components/molecules/DatePicker/date-picker.tsx +228 -8
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,7 @@ declare interface BaseDatePickerProps {
|
|
|
196
198
|
maxDate?: Date;
|
|
197
199
|
rangeText?: string;
|
|
198
200
|
multipleText?: string;
|
|
201
|
+
locale?: string;
|
|
199
202
|
}
|
|
200
203
|
|
|
201
204
|
export declare function Bell01(props: ComponentProps<'svg'>): JSX.Element;
|
|
@@ -289,12 +292,16 @@ export declare const buttonVariants: (props?: ({
|
|
|
289
292
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
290
293
|
} & ClassProp) | undefined) => string;
|
|
291
294
|
|
|
292
|
-
export declare function Calendar({ className, showOutsideDays, ...props }:
|
|
295
|
+
export declare function Calendar({ className, showOutsideDays, formatLocale, ...props }: CalendarProps): JSX.Element;
|
|
293
296
|
|
|
294
297
|
export declare function CalendarIcon(props: ComponentProps<'svg'>): JSX.Element;
|
|
295
298
|
|
|
296
299
|
export declare function CalendarMinus02(props: ComponentProps<'svg'>): JSX.Element;
|
|
297
300
|
|
|
301
|
+
declare type CalendarProps = React_2.ComponentProps<typeof DayPicker> & {
|
|
302
|
+
formatLocale?: string;
|
|
303
|
+
};
|
|
304
|
+
|
|
298
305
|
export declare const capitalizeFirst: (value: string) => string;
|
|
299
306
|
|
|
300
307
|
export declare function Card({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element;
|
|
@@ -450,8 +457,12 @@ export declare function ChevronDownDouble(props: ComponentProps<'svg'>): JSX.Ele
|
|
|
450
457
|
|
|
451
458
|
export declare function ChevronLeft(props: ComponentProps<'svg'>): JSX.Element;
|
|
452
459
|
|
|
460
|
+
export declare function ChevronLeftDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
461
|
+
|
|
453
462
|
export declare function ChevronRight(props: ComponentProps<'svg'>): JSX.Element;
|
|
454
463
|
|
|
464
|
+
export declare function ChevronRightDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
465
|
+
|
|
455
466
|
export declare function ChevronUpDouble(props: ComponentProps<'svg'>): JSX.Element;
|
|
456
467
|
|
|
457
468
|
export declare function ClockRewind(props: ComponentProps<'svg'>): JSX.Element;
|
|
@@ -801,9 +812,9 @@ export declare function currencyShortener(value: number): string;
|
|
|
801
812
|
|
|
802
813
|
export declare function Dataflow03(props: ComponentProps<'svg'>): JSX.Element;
|
|
803
814
|
|
|
804
|
-
export declare function DatePicker({ value, onChange, placeholder, disabled, className, size, mode, footer, rounded, 'data-testid': dataTestId, minDate, maxDate, rangeText, multipleText, }: DatePickerProps): JSX.Element;
|
|
815
|
+
export declare function DatePicker({ value, onChange, placeholder, disabled, className, size, mode, footer, rounded, 'data-testid': dataTestId, minDate, maxDate, rangeText, multipleText, locale, }: DatePickerProps): JSX.Element;
|
|
805
816
|
|
|
806
|
-
declare type DatePickerProps = SingleDatePickerProps | MultipleDatePickerProps | RangeDatePickerProps;
|
|
817
|
+
declare type DatePickerProps = SingleDatePickerProps | MultipleDatePickerProps | RangeDatePickerProps | MonthDatePickerProps;
|
|
807
818
|
|
|
808
819
|
export declare function Dialog({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root>): JSX.Element;
|
|
809
820
|
|
|
@@ -1403,6 +1414,12 @@ export declare function MiddleStage(props: ComponentProps<'svg'>): JSX.Element;
|
|
|
1403
1414
|
|
|
1404
1415
|
export declare const MIN_ZOOM = 0.6;
|
|
1405
1416
|
|
|
1417
|
+
declare interface MonthDatePickerProps extends BaseDatePickerProps {
|
|
1418
|
+
mode: 'month';
|
|
1419
|
+
value?: Date;
|
|
1420
|
+
onChange?: (date: Date | undefined) => void;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1406
1423
|
export declare function MsOutlook(props: ComponentProps<'svg'>): JSX.Element;
|
|
1407
1424
|
|
|
1408
1425
|
declare interface MultipleDatePickerProps extends BaseDatePickerProps {
|
|
@@ -1592,6 +1609,8 @@ declare interface RichTextEditorProps {
|
|
|
1592
1609
|
isRequired?: boolean;
|
|
1593
1610
|
}
|
|
1594
1611
|
|
|
1612
|
+
export declare function Route(props: ComponentProps<'svg'>): JSX.Element;
|
|
1613
|
+
|
|
1595
1614
|
export declare function Save01(props: ComponentProps<'svg'>): JSX.Element;
|
|
1596
1615
|
|
|
1597
1616
|
declare interface ScreenSizes {
|