greenole-design-system 1.1.51 → 1.1.53
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/components/BottomSheet/BottomSheet.d.ts +4 -0
- package/dist/components/BottomSheet/BottomSheet.stories.d.ts +6 -0
- package/dist/components/BottomSheet/BottomSheet.styles.d.ts +34 -0
- package/dist/components/BottomSheet/BottomSheet.types.d.ts +16 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +4 -6
- package/dist/components/Calendar/Calendar.styles.d.ts +16 -5
- package/dist/components/Calendar/Calendar.types.d.ts +2 -0
- package/dist/components/Calendar/DateRangePicker.d.ts +4 -1
- package/dist/greenole-design-system.cjs.js +441 -405
- package/dist/greenole-design-system.es.js +2703 -2599
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fullscreen overlay behind the sheet.
|
|
3
|
+
* Controls z-index, fade/opacity and pointer-events.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Overlay: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$z: number;
|
|
7
|
+
$show: boolean;
|
|
8
|
+
$animMs: number;
|
|
9
|
+
}>> & string;
|
|
10
|
+
/**
|
|
11
|
+
* The sheet container itself.
|
|
12
|
+
* Supports "full" height mode and animates in/out vertically.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Sheet: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
$maxH: string;
|
|
16
|
+
$height: "auto" | "content" | "full";
|
|
17
|
+
$show: boolean;
|
|
18
|
+
$animMs: number;
|
|
19
|
+
}>> & string;
|
|
20
|
+
/**
|
|
21
|
+
* Small handle shown at the top of the sheet for affordance.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Handle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
|
+
/**
|
|
25
|
+
* Scrollable content area inside the sheet.
|
|
26
|
+
* When not compact, we provide internal padding.
|
|
27
|
+
*/
|
|
28
|
+
export declare const Content: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
29
|
+
$compact: boolean;
|
|
30
|
+
}>> & string;
|
|
31
|
+
/**
|
|
32
|
+
* Spacer to respect iOS safe-area at the bottom.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SafeAreaSpacer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
export type BottomSheetHeight = "auto" | "content" | "full";
|
|
3
|
+
export interface BottomSheetProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
closeOnOverlayClick?: boolean;
|
|
8
|
+
closeOnEsc?: boolean;
|
|
9
|
+
showHandle?: boolean;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
height?: BottomSheetHeight;
|
|
12
|
+
maxHeight?: string | number;
|
|
13
|
+
initialFocusRef?: RefObject<HTMLElement>;
|
|
14
|
+
className?: string;
|
|
15
|
+
disableAnimation?: boolean;
|
|
16
|
+
}
|
|
@@ -5,10 +5,8 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof Calendar>;
|
|
6
6
|
export declare const InlineSingle: Story;
|
|
7
7
|
export declare const InlineRange: Story;
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const InputSingle_WeekendsDisabled: Story;
|
|
11
|
-
export declare const InputRange_WeekendsDisabled: Story;
|
|
12
|
-
export declare const InputRange_DisabledBlock: Story;
|
|
8
|
+
export declare const InputSingle: Story;
|
|
9
|
+
export declare const InputRange: Story;
|
|
13
10
|
export declare const InputSingle_MinMax: Story;
|
|
14
|
-
export declare const
|
|
11
|
+
export declare const InputRange_WeekendsDisabled: Story;
|
|
12
|
+
export declare const MobileRange_Sheet: Story;
|
|
@@ -4,15 +4,26 @@ export declare const PresetButton: import('styled-components/dist/types').IStyle
|
|
|
4
4
|
$isActive?: boolean;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const DateRangeContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
-
export declare const MonthContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const MonthContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
|
+
$isMobile?: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export declare const MonthHeader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
|
+
$isMobile?: boolean;
|
|
12
|
+
}>> & string;
|
|
13
|
+
export declare const MonthTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
+
$isMobile?: boolean;
|
|
15
|
+
}>> & string;
|
|
10
16
|
export declare const NavButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
11
|
-
export declare const DaysOfWeekContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
12
|
-
|
|
17
|
+
export declare const DaysOfWeekContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
|
+
$isMobile?: boolean;
|
|
19
|
+
}>> & string;
|
|
20
|
+
export declare const DaysGrid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
21
|
+
$isMobile?: boolean;
|
|
22
|
+
}>> & string;
|
|
13
23
|
export declare const DayButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
14
24
|
$isSelected?: boolean;
|
|
15
25
|
$inRange?: boolean;
|
|
16
26
|
$isStart?: boolean;
|
|
17
27
|
$isEnd?: boolean;
|
|
28
|
+
$isMobile?: boolean;
|
|
18
29
|
}>> & string;
|
|
@@ -2,7 +2,7 @@ import { Dayjs } from 'dayjs';
|
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { DateRange } from './Calendar.types';
|
|
4
4
|
interface Props {
|
|
5
|
-
mode:
|
|
5
|
+
mode: 'single' | 'range';
|
|
6
6
|
selectedDate?: Dayjs | null;
|
|
7
7
|
selectedRange?: DateRange;
|
|
8
8
|
onChange: (date: Dayjs | null, range?: DateRange) => void;
|
|
@@ -10,6 +10,9 @@ interface Props {
|
|
|
10
10
|
maxDate?: Dayjs;
|
|
11
11
|
locale: string;
|
|
12
12
|
disabledDates: Dayjs[];
|
|
13
|
+
rangeSinglePanel?: boolean;
|
|
14
|
+
/** Ativa espaçamento/tamanhos mais confortáveis */
|
|
15
|
+
isMobile?: boolean;
|
|
13
16
|
}
|
|
14
17
|
export declare const DateRangePicker: React.FC<Props>;
|
|
15
18
|
export {};
|