@newtonschool/grauity 1.1.2 → 1.1.4
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/css/grauity-icons.scss +320 -312
- package/dist/fonts/grauity-icons.eot +0 -0
- package/dist/fonts/grauity-icons.ttf +0 -0
- package/dist/fonts/grauity-icons.woff +0 -0
- package/dist/fonts/grauity-icons.woff2 +0 -0
- package/dist/index.d.ts +144 -54
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/core/icons/iconTags.d.ts +2 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
- package/dist/ui/core/icons/iconTypes.d.ts +4 -2
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/BottomSheet.styles.d.ts +2 -3
- package/dist/ui/elements/BottomSheet/BottomSheet.styles.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/constants.d.ts +1 -1
- package/dist/ui/elements/BottomSheet/constants.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/types.d.ts +0 -3
- package/dist/ui/elements/BottomSheet/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.d.ts +1 -0
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/types.d.ts +1 -0
- package/dist/ui/elements/Calendar/types.d.ts.map +1 -1
- package/dist/ui/elements/Icon/index.d.ts +1 -1
- package/dist/ui/elements/Icon/index.d.ts.map +1 -1
- package/dist/ui/elements/Icon/types.d.ts +1 -1
- package/dist/ui/elements/Icon/types.d.ts.map +1 -1
- package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts +2 -3
- package/dist/ui/elements/Modal/ConfirmationDialog/index.d.ts.map +1 -1
- package/dist/ui/elements/Modal/Modal.d.ts +2 -2
- package/dist/ui/elements/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/elements/Modal/Modal.styles.d.ts +1 -2
- package/dist/ui/elements/Modal/Modal.styles.d.ts.map +1 -1
- package/dist/ui/elements/Modal/MultiStepModal/index.d.ts +1 -1
- package/dist/ui/elements/Modal/MultiStepModal/index.d.ts.map +1 -1
- package/dist/ui/elements/Modal/types.d.ts +0 -4
- package/dist/ui/elements/Modal/types.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/Overlay.d.ts +5 -0
- package/dist/ui/elements/Overlay/Overlay.d.ts.map +1 -0
- package/dist/ui/elements/Overlay/Overlay.styles.d.ts +3 -0
- package/dist/ui/elements/Overlay/Overlay.styles.d.ts.map +1 -0
- package/dist/ui/elements/Overlay/index.d.ts +3 -0
- package/dist/ui/elements/Overlay/index.d.ts.map +1 -0
- package/dist/ui/elements/Overlay/types.d.ts +48 -0
- package/dist/ui/elements/Overlay/types.d.ts.map +1 -0
- package/dist/ui/elements/PopOver/PopOver.d.ts.map +1 -1
- package/dist/ui/elements/PopOver/PopOver.styles.d.ts +1 -1
- package/dist/ui/elements/PopOver/PopOver.styles.d.ts.map +1 -1
- package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts.map +1 -1
- package/dist/ui/index.d.ts +6 -4
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/themes/GlobalStyle.d.ts +1 -1
- package/dist/ui/themes/GlobalStyle.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts +0 -7
- package/dist/stories/atoms/Colors/FoundationColors.stories.d.ts.map +0 -1
- package/dist/stories/atoms/Colors/index.stories.d.ts +0 -18
- package/dist/stories/atoms/Colors/index.stories.d.ts.map +0 -1
- package/dist/stories/atoms/CornerRadius/index.stories.d.ts +0 -7
- package/dist/stories/atoms/CornerRadius/index.stories.d.ts.map +0 -1
- package/dist/stories/atoms/Spacing/index.stories.d.ts +0 -7
- package/dist/stories/atoms/Spacing/index.stories.d.ts.map +0 -1
- package/dist/stories/decorators/withEnableBodyScroll.d.ts +0 -8
- package/dist/stories/decorators/withEnableBodyScroll.d.ts.map +0 -1
- package/dist/stories/decorators/withInlineContainer.d.ts +0 -15
- package/dist/stories/decorators/withInlineContainer.d.ts.map +0 -1
- package/dist/stories/elements/Accordion/index.stories.d.ts +0 -10
- package/dist/stories/elements/Accordion/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Alert/Gallery.stories.d.ts +0 -30
- package/dist/stories/elements/Alert/Gallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/Alert/index.stories.d.ts +0 -30
- package/dist/stories/elements/Alert/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts +0 -33
- package/dist/stories/elements/AlertBanner/Gallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/AlertBanner/index.stories.d.ts +0 -30
- package/dist/stories/elements/AlertBanner/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/BottomSheet/index.stories.d.ts +0 -16
- package/dist/stories/elements/BottomSheet/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Button/Gallery.stories.d.ts +0 -10
- package/dist/stories/elements/Button/Gallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/Button/index.stories.d.ts +0 -9
- package/dist/stories/elements/Button/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Calendar/CalendarEvent/index.stories.d.ts +0 -11
- package/dist/stories/elements/Calendar/CalendarEvent/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Calendar/WeeklyCalendar/WithoutWeekControls.stories.d.ts +0 -10
- package/dist/stories/elements/Calendar/WeeklyCalendar/WithoutWeekControls.stories.d.ts.map +0 -1
- package/dist/stories/elements/Calendar/WeeklyCalendar/index.stories.d.ts +0 -17
- package/dist/stories/elements/Calendar/WeeklyCalendar/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Chip/Gallery.stories.d.ts +0 -10
- package/dist/stories/elements/Chip/Gallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/Chip/index.stories.d.ts +0 -9
- package/dist/stories/elements/Chip/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/DisableBodyScroll/index.stories.d.ts +0 -11
- package/dist/stories/elements/DisableBodyScroll/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Icon/index.stories.d.ts +0 -14
- package/dist/stories/elements/Icon/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/IconButton/Gallery.stories.d.ts +0 -10
- package/dist/stories/elements/IconButton/Gallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/IconButton/index.stories.d.ts +0 -9
- package/dist/stories/elements/IconButton/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts +0 -3
- package/dist/stories/elements/Modal/ConfirmationDialog.source.d.ts.map +0 -1
- package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts +0 -10
- package/dist/stories/elements/Modal/ConfirmationDialog.stories.d.ts.map +0 -1
- package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts +0 -10
- package/dist/stories/elements/Modal/ConfirmationDialogWithTrigger.stories.d.ts.map +0 -1
- package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts +0 -14
- package/dist/stories/elements/Modal/MultiStepModal.stories.d.ts.map +0 -1
- package/dist/stories/elements/Modal/index.stories.d.ts +0 -32
- package/dist/stories/elements/Modal/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Modal/multiStepArgs.d.ts +0 -4
- package/dist/stories/elements/Modal/multiStepArgs.d.ts.map +0 -1
- package/dist/stories/elements/Modal/singleStepArgs.d.ts +0 -4
- package/dist/stories/elements/Modal/singleStepArgs.d.ts.map +0 -1
- package/dist/stories/elements/MultiSelectDropdown/index.stories.d.ts +0 -11
- package/dist/stories/elements/MultiSelectDropdown/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/PopOver/index.stories.d.ts +0 -10
- package/dist/stories/elements/PopOver/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/SelectDropdown/index.stories.d.ts +0 -11
- package/dist/stories/elements/SelectDropdown/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Table/Manual.source.d.ts +0 -3
- package/dist/stories/elements/Table/Manual.source.d.ts.map +0 -1
- package/dist/stories/elements/Table/Manual.stories.d.ts +0 -24
- package/dist/stories/elements/Table/Manual.stories.d.ts.map +0 -1
- package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts +0 -3
- package/dist/stories/elements/Table/ManualColumnNesting.source.d.ts.map +0 -1
- package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts +0 -23
- package/dist/stories/elements/Table/ManualColumnNesting.stories.d.ts.map +0 -1
- package/dist/stories/elements/Table/index.stories.d.ts +0 -16
- package/dist/stories/elements/Table/index.stories.d.ts.map +0 -1
- package/dist/stories/elements/Table/simpleArgs.d.ts +0 -4
- package/dist/stories/elements/Table/simpleArgs.d.ts.map +0 -1
- package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts +0 -9
- package/dist/stories/elements/Typography/TypographyGallery.stories.d.ts.map +0 -1
- package/dist/stories/elements/Typography/index.stories.d.ts +0 -8
- package/dist/stories/elements/Typography/index.stories.d.ts.map +0 -1
- package/dist/stories/helper-components/ColorRenderer/index.d.ts +0 -6
- package/dist/stories/helper-components/ColorRenderer/index.d.ts.map +0 -1
- package/dist/stories/helper-components/DocPageWithPlayground.d.ts +0 -7
- package/dist/stories/helper-components/DocPageWithPlayground.d.ts.map +0 -1
- package/dist/stories/helper-components/TokenBlock/index.d.ts +0 -9
- package/dist/stories/helper-components/TokenBlock/index.d.ts.map +0 -1
- package/dist/stories/helper-components/TokenBlock/index.styles.d.ts +0 -4
- package/dist/stories/helper-components/TokenBlock/index.styles.d.ts.map +0 -1
- package/dist/stories/utils/index.d.ts +0 -82
- package/dist/stories/utils/index.d.ts.map +0 -1
- package/dist/ui/core/colors/colorTypes.d.ts +0 -1
- package/dist/ui/core/colors/colorTypes.d.ts.map +0 -1
- package/dist/ui/core/colors/index.d.ts +0 -1
- package/dist/ui/core/colors/index.d.ts.map +0 -1
- package/dist/ui/elements/Accordion/Accordion.test.d.ts +0 -2
- package/dist/ui/elements/Accordion/Accordion.test.d.ts.map +0 -1
- package/dist/ui/elements/Alert/Alert.d.ts +0 -8
- package/dist/ui/elements/Alert/Alert.d.ts.map +0 -1
- package/dist/ui/elements/Alert/Alert.styles.d.ts +0 -7
- package/dist/ui/elements/Alert/Alert.styles.d.ts.map +0 -1
- package/dist/ui/elements/Alert/Alert.test.d.ts +0 -2
- package/dist/ui/elements/Alert/Alert.test.d.ts.map +0 -1
- package/dist/ui/elements/Alert/constants.d.ts +0 -140
- package/dist/ui/elements/Alert/constants.d.ts.map +0 -1
- package/dist/ui/elements/Alert/index.d.ts +0 -7
- package/dist/ui/elements/Alert/index.d.ts.map +0 -1
- package/dist/ui/elements/Alert/types.d.ts +0 -125
- package/dist/ui/elements/Alert/types.d.ts.map +0 -1
- package/dist/ui/elements/Alert/utils.d.ts +0 -1
- package/dist/ui/elements/Alert/utils.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts +0 -9
- package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts +0 -4
- package/dist/ui/elements/AlertBanner/AlertBanner.styles.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts +0 -2
- package/dist/ui/elements/AlertBanner/AlertBanner.test.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/constants.d.ts +0 -140
- package/dist/ui/elements/AlertBanner/constants.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/index.d.ts +0 -7
- package/dist/ui/elements/AlertBanner/index.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/types.d.ts +0 -111
- package/dist/ui/elements/AlertBanner/types.d.ts.map +0 -1
- package/dist/ui/elements/AlertBanner/utils.d.ts +0 -105
- package/dist/ui/elements/AlertBanner/utils.d.ts.map +0 -1
- package/dist/ui/elements/BottomSheet/BottomSheet.test.d.ts +0 -2
- package/dist/ui/elements/BottomSheet/BottomSheet.test.d.ts.map +0 -1
- package/dist/ui/elements/Button/Button.test.d.ts +0 -2
- package/dist/ui/elements/Button/Button.test.d.ts.map +0 -1
- package/dist/ui/elements/Button/IconButton.test.d.ts +0 -2
- package/dist/ui/elements/Button/IconButton.test.d.ts.map +0 -1
- package/dist/ui/elements/Button/utils.d.ts +0 -1
- package/dist/ui/elements/Button/utils.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.test.d.ts +0 -2
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.test.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.test.d.ts +0 -2
- package/dist/ui/elements/Calendar/WeeklyCalendar.test.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/index.d.ts +0 -5
- package/dist/ui/elements/Calendar/index.d.ts.map +0 -1
- package/dist/ui/elements/Chip/Chip.test.d.ts +0 -2
- package/dist/ui/elements/Chip/Chip.test.d.ts.map +0 -1
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.d.ts +0 -5
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.d.ts.map +0 -1
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.styles.d.ts +0 -3
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.styles.d.ts.map +0 -1
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.test.d.ts +0 -2
- package/dist/ui/elements/DisableBodyScroll/DisableBodyScroll.test.d.ts.map +0 -1
- package/dist/ui/elements/DisableBodyScroll/index.d.ts +0 -3
- package/dist/ui/elements/DisableBodyScroll/index.d.ts.map +0 -1
- package/dist/ui/elements/DisableBodyScroll/types.d.ts +0 -17
- package/dist/ui/elements/DisableBodyScroll/types.d.ts.map +0 -1
- package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts +0 -2
- package/dist/ui/elements/Modal/ConfirmationDialog/index.test.d.ts.map +0 -1
- package/dist/ui/elements/Modal/Modal.test.d.ts +0 -2
- package/dist/ui/elements/Modal/Modal.test.d.ts.map +0 -1
- package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts +0 -2
- package/dist/ui/elements/Modal/MultiStepModal/index.test.d.ts.map +0 -1
- package/dist/ui/elements/Modal/index.d.ts +0 -5
- package/dist/ui/elements/Modal/index.d.ts.map +0 -1
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.d.ts +0 -2
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.test.d.ts.map +0 -1
- package/dist/ui/elements/PopOver/PopOver.test.d.ts +0 -2
- package/dist/ui/elements/PopOver/PopOver.test.d.ts.map +0 -1
- package/dist/ui/elements/SelectDropdown/SelectDropdown.test.d.ts +0 -2
- package/dist/ui/elements/SelectDropdown/SelectDropdown.test.d.ts.map +0 -1
- package/dist/ui/elements/Table/Table.test.d.ts +0 -2
- package/dist/ui/elements/Table/Table.test.d.ts.map +0 -1
- package/dist/ui/elements/Table/constants.d.ts +0 -1
- package/dist/ui/elements/Table/constants.d.ts.map +0 -1
- package/dist/ui/elements/Table/utils.d.ts +0 -1
- package/dist/ui/elements/Table/utils.d.ts.map +0 -1
- package/dist/ui/themes/tokens.d.ts +0 -1
- package/dist/ui/themes/tokens.d.ts.map +0 -1
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { grauityIconName } from '../../core';
|
|
3
|
-
import { ButtonProps } from '../Button';
|
|
4
|
-
export type AlertType = 'default' | 'outlined' | 'filled';
|
|
5
|
-
export type AlertVariant = 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
6
|
-
export interface AlertProps {
|
|
7
|
-
/**
|
|
8
|
-
* Type of the alert
|
|
9
|
-
*
|
|
10
|
-
* Available choices: `'default'`, `'outlined'`, `'filled'`
|
|
11
|
-
*
|
|
12
|
-
* Default: `'default'`
|
|
13
|
-
* */
|
|
14
|
-
type?: AlertType;
|
|
15
|
-
/**
|
|
16
|
-
* Variant of the alert
|
|
17
|
-
*
|
|
18
|
-
* Available choices: `'primary'`, `'secondary'`, `'tertiary'`, `'success'`, `'danger'`, `'warning'`
|
|
19
|
-
*
|
|
20
|
-
* Default: `'primary'`
|
|
21
|
-
* */
|
|
22
|
-
variant?: AlertVariant;
|
|
23
|
-
/**
|
|
24
|
-
* Alert icon, used to override the default icons used in the alert
|
|
25
|
-
*
|
|
26
|
-
* Use value `auto` to automatically select the icon based on the variant (error vs checkmark icon)
|
|
27
|
-
*
|
|
28
|
-
* Default: `null`
|
|
29
|
-
* */
|
|
30
|
-
icon?: grauityIconName | 'auto' | null;
|
|
31
|
-
/**
|
|
32
|
-
* Alert title
|
|
33
|
-
* */
|
|
34
|
-
title?: React.ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Alert description
|
|
37
|
-
* */
|
|
38
|
-
description?: React.ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Alert top position, useful for fixed positioning
|
|
41
|
-
*
|
|
42
|
-
* Default: `null`
|
|
43
|
-
* */
|
|
44
|
-
top?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Alert bottom position, useful for fixed positioning
|
|
47
|
-
*
|
|
48
|
-
* Default: `null`
|
|
49
|
-
* */
|
|
50
|
-
bottom?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Alert left position, useful for fixed positioning
|
|
53
|
-
*
|
|
54
|
-
* Default: `null`
|
|
55
|
-
* */
|
|
56
|
-
left?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Alert right position, useful for fixed positioning
|
|
59
|
-
*
|
|
60
|
-
* Default: `null`
|
|
61
|
-
* */
|
|
62
|
-
right?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Alert position, useful for fixed positioning
|
|
65
|
-
*
|
|
66
|
-
* Default: `'static'`
|
|
67
|
-
* */
|
|
68
|
-
position?: 'static' | 'fixed' | 'absolute' | 'relative';
|
|
69
|
-
/**
|
|
70
|
-
* Alert close button click handler
|
|
71
|
-
* */
|
|
72
|
-
onClose?: () => void;
|
|
73
|
-
/**
|
|
74
|
-
* Show close button
|
|
75
|
-
*
|
|
76
|
-
* Default: `false`
|
|
77
|
-
* */
|
|
78
|
-
showCloseButton?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Alert action buttons.
|
|
81
|
-
*
|
|
82
|
-
* Type: ButtonProps[]
|
|
83
|
-
* */
|
|
84
|
-
actionButtons?: ButtonProps[];
|
|
85
|
-
/**
|
|
86
|
-
* Show action buttons inline
|
|
87
|
-
*
|
|
88
|
-
* Default: `false`
|
|
89
|
-
* */
|
|
90
|
-
inlineButtons?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Maximum width of the alert
|
|
93
|
-
*
|
|
94
|
-
* Default: `'440px'`
|
|
95
|
-
* */
|
|
96
|
-
maxWidth?: string;
|
|
97
|
-
}
|
|
98
|
-
export interface AlertContainerProps {
|
|
99
|
-
position: string;
|
|
100
|
-
top: string;
|
|
101
|
-
bottom: string;
|
|
102
|
-
left: string;
|
|
103
|
-
right: string;
|
|
104
|
-
backgroundColor: string;
|
|
105
|
-
borderColor: string;
|
|
106
|
-
ref: React.Ref<HTMLDivElement>;
|
|
107
|
-
role: string;
|
|
108
|
-
children: React.ReactNode;
|
|
109
|
-
maxWidth: string;
|
|
110
|
-
}
|
|
111
|
-
export interface AlertBodyProps {
|
|
112
|
-
inlineButtons: boolean;
|
|
113
|
-
children: React.ReactNode;
|
|
114
|
-
}
|
|
115
|
-
export interface AlertTitleProps {
|
|
116
|
-
textColor: string;
|
|
117
|
-
children: React.ReactNode;
|
|
118
|
-
id: string;
|
|
119
|
-
}
|
|
120
|
-
export interface AlertDescriptionProps {
|
|
121
|
-
textColor: string;
|
|
122
|
-
children: React.ReactNode;
|
|
123
|
-
id?: string;
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Alert/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE1D,MAAM,MAAM,YAAY,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,CAAC;AAEhB,MAAM,WAAW,UAAU;IACvB;;;;;;SAMK;IACL,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;;;;SAMK;IACL,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;;;;SAMK;IACL,IAAI,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IAEvC;;SAEK;IACL,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;SAEK;IACL,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;SAIK;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;SAIK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;SAIK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;SAIK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;SAIK;IACL,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAExD;;SAEK;IACL,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;SAIK;IACL,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;SAIK;IACL,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAE9B;;;;SAIK;IACL,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;SAIK;IACL,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Alert/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AlertBannerProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* An alert banner is a component that is used to typically display
|
|
5
|
-
* important messages to the user. It is normally shown at the top of the page.
|
|
6
|
-
*/
|
|
7
|
-
declare const AlertBanner: React.ForwardRefExoticComponent<AlertBannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export default AlertBanner;
|
|
9
|
-
//# sourceMappingURL=AlertBanner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/AlertBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAO3C;;;GAGG;AACH,QAAA,MAAM,WAAW,yFAiFhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AlertBannerContainerProps } from './types';
|
|
2
|
-
export declare const StyledAlertBannerContainer: import("styled-components").StyledComponent<string, any, AlertBannerContainerProps, never>;
|
|
3
|
-
export declare const StyledAlertBannerContent: import("styled-components").StyledComponent<string, any, any, never>;
|
|
4
|
-
//# sourceMappingURL=AlertBanner.styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/AlertBanner.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,0BAA0B,4FAkBtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,sEAUpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlertBanner.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/AlertBanner.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { grauityIconName } from '../../core';
|
|
2
|
-
import { BUTTON_VARIANTS_ENUM } from '../Button';
|
|
3
|
-
export declare enum ALERT_BANNER_TYPES_ENUM {
|
|
4
|
-
DEFAULT = "default",
|
|
5
|
-
OUTLINED = "outlined",
|
|
6
|
-
FILLED = "filled"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ALERT_BANNER_VARIANTS_ENUM {
|
|
9
|
-
PRIMARY = "primary",
|
|
10
|
-
SUCCESS = "success",
|
|
11
|
-
WARNING = "warning",
|
|
12
|
-
ERROR = "error",
|
|
13
|
-
DEFAULT = "default"
|
|
14
|
-
}
|
|
15
|
-
export declare const ERRONEOUS_ALERT_BANNER_VARIANTS: ALERT_BANNER_VARIANTS_ENUM[];
|
|
16
|
-
export declare const ALERT_BANNER_VARIANTS: ALERT_BANNER_VARIANTS_ENUM[];
|
|
17
|
-
export declare const ALERT_BANNER_TYPES: ALERT_BANNER_TYPES_ENUM[];
|
|
18
|
-
export declare const DEFAULT_ALERT_VARIANT_ICON_MAPPING: Record<ALERT_BANNER_VARIANTS_ENUM, grauityIconName>;
|
|
19
|
-
export declare const ALERT_BANNER_COLOR_MAPPINGS: {
|
|
20
|
-
default: {
|
|
21
|
-
primary: {
|
|
22
|
-
iconColor: string;
|
|
23
|
-
textColor: string;
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
borderColor: string;
|
|
26
|
-
};
|
|
27
|
-
success: {
|
|
28
|
-
iconColor: string;
|
|
29
|
-
textColor: string;
|
|
30
|
-
backgroundColor: string;
|
|
31
|
-
borderColor: string;
|
|
32
|
-
};
|
|
33
|
-
warning: {
|
|
34
|
-
iconColor: string;
|
|
35
|
-
textColor: string;
|
|
36
|
-
backgroundColor: string;
|
|
37
|
-
borderColor: string;
|
|
38
|
-
};
|
|
39
|
-
error: {
|
|
40
|
-
iconColor: string;
|
|
41
|
-
textColor: string;
|
|
42
|
-
backgroundColor: string;
|
|
43
|
-
borderColor: string;
|
|
44
|
-
};
|
|
45
|
-
default: {
|
|
46
|
-
iconColor: string;
|
|
47
|
-
textColor: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
borderColor: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
outlined: {
|
|
53
|
-
primary: {
|
|
54
|
-
iconColor: string;
|
|
55
|
-
textColor: string;
|
|
56
|
-
backgroundColor: string;
|
|
57
|
-
borderColor: string;
|
|
58
|
-
};
|
|
59
|
-
success: {
|
|
60
|
-
iconColor: string;
|
|
61
|
-
textColor: string;
|
|
62
|
-
backgroundColor: string;
|
|
63
|
-
borderColor: string;
|
|
64
|
-
};
|
|
65
|
-
warning: {
|
|
66
|
-
iconColor: string;
|
|
67
|
-
textColor: string;
|
|
68
|
-
backgroundColor: string;
|
|
69
|
-
borderColor: string;
|
|
70
|
-
};
|
|
71
|
-
error: {
|
|
72
|
-
iconColor: string;
|
|
73
|
-
textColor: string;
|
|
74
|
-
backgroundColor: string;
|
|
75
|
-
borderColor: string;
|
|
76
|
-
};
|
|
77
|
-
default: {
|
|
78
|
-
iconColor: string;
|
|
79
|
-
textColor: string;
|
|
80
|
-
backgroundColor: string;
|
|
81
|
-
borderColor: string;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
filled: {
|
|
85
|
-
primary: {
|
|
86
|
-
iconColor: string;
|
|
87
|
-
textColor: string;
|
|
88
|
-
backgroundColor: string;
|
|
89
|
-
borderColor: string;
|
|
90
|
-
};
|
|
91
|
-
success: {
|
|
92
|
-
iconColor: string;
|
|
93
|
-
textColor: string;
|
|
94
|
-
backgroundColor: string;
|
|
95
|
-
borderColor: string;
|
|
96
|
-
};
|
|
97
|
-
warning: {
|
|
98
|
-
iconColor: string;
|
|
99
|
-
textColor: string;
|
|
100
|
-
backgroundColor: string;
|
|
101
|
-
borderColor: string;
|
|
102
|
-
};
|
|
103
|
-
error: {
|
|
104
|
-
iconColor: string;
|
|
105
|
-
textColor: string;
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
borderColor: string;
|
|
108
|
-
};
|
|
109
|
-
default: {
|
|
110
|
-
iconColor: string;
|
|
111
|
-
textColor: string;
|
|
112
|
-
backgroundColor: string;
|
|
113
|
-
borderColor: string;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
export declare const ALERT_BANNER_TYPE_AND_VARIANT_TO_BUTTON_VARIANT_MAPPING: {
|
|
118
|
-
default: {
|
|
119
|
-
primary: BUTTON_VARIANTS_ENUM;
|
|
120
|
-
success: BUTTON_VARIANTS_ENUM;
|
|
121
|
-
warning: BUTTON_VARIANTS_ENUM;
|
|
122
|
-
error: BUTTON_VARIANTS_ENUM;
|
|
123
|
-
default: BUTTON_VARIANTS_ENUM;
|
|
124
|
-
};
|
|
125
|
-
outlined: {
|
|
126
|
-
primary: BUTTON_VARIANTS_ENUM;
|
|
127
|
-
success: BUTTON_VARIANTS_ENUM;
|
|
128
|
-
warning: BUTTON_VARIANTS_ENUM;
|
|
129
|
-
error: BUTTON_VARIANTS_ENUM;
|
|
130
|
-
default: BUTTON_VARIANTS_ENUM;
|
|
131
|
-
};
|
|
132
|
-
filled: {
|
|
133
|
-
primary: BUTTON_VARIANTS_ENUM;
|
|
134
|
-
success: BUTTON_VARIANTS_ENUM;
|
|
135
|
-
warning: BUTTON_VARIANTS_ENUM;
|
|
136
|
-
error: BUTTON_VARIANTS_ENUM;
|
|
137
|
-
default: BUTTON_VARIANTS_ENUM;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEjD,oBAAY,uBAAuB;IAC/B,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAED,oBAAY,0BAA0B;IAClC,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,eAAO,MAAM,+BAA+B,8BAG3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,8BAMjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,2BAI9B,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACnD,0BAA0B,EAC1B,eAAe,CAOlB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGvC,CAAC;AAEF,eAAO,MAAM,uDAAuD;;;;;;;;;;;;;;;;;;;;;;CAgCnE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default } from './AlertBanner';
|
|
2
|
-
export { ALERT_BANNER_VARIANTS_ENUM } from './constants';
|
|
3
|
-
export { ALERT_BANNER_VARIANTS } from './constants';
|
|
4
|
-
export { ALERT_BANNER_TYPES_ENUM } from './constants';
|
|
5
|
-
export { ALERT_BANNER_TYPES } from './constants';
|
|
6
|
-
export type { AlertBannerProps } from './types';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { grauityIconName } from '../../core';
|
|
3
|
-
import { ButtonProps } from '../Button';
|
|
4
|
-
export type AlertBannerType = 'default' | 'outlined' | 'filled';
|
|
5
|
-
export type AlertBannerVariant = 'primary' | 'success' | 'warning' | 'error' | 'default';
|
|
6
|
-
export interface AlertBannerProps {
|
|
7
|
-
/**
|
|
8
|
-
* Type of the alert banner
|
|
9
|
-
*
|
|
10
|
-
* Available choices: `'default'`, `'outlined'`, `'filled'`
|
|
11
|
-
*
|
|
12
|
-
* Default: `'default'`
|
|
13
|
-
* */
|
|
14
|
-
type?: AlertBannerType;
|
|
15
|
-
/**
|
|
16
|
-
* Variant of the alert banner
|
|
17
|
-
*
|
|
18
|
-
* Available choices: `'primary'`, `'secondary'`, `'tertiary'`, `'success'`, `'danger'`, `'warning'`
|
|
19
|
-
*
|
|
20
|
-
* Default: `'primary'`
|
|
21
|
-
* */
|
|
22
|
-
variant?: AlertBannerVariant;
|
|
23
|
-
/**
|
|
24
|
-
* Alert banner padding
|
|
25
|
-
*
|
|
26
|
-
* Default: `'var(--spacing-8px, 8px)'`
|
|
27
|
-
* */
|
|
28
|
-
padding?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Alert banner icon, used to override the default icons used in the alert banner
|
|
31
|
-
*
|
|
32
|
-
* Use value `auto` to automatically select the icon based on the variant (error vs checkmark icon)
|
|
33
|
-
*
|
|
34
|
-
* Default: `null`
|
|
35
|
-
* */
|
|
36
|
-
icon?: grauityIconName | 'auto';
|
|
37
|
-
/**
|
|
38
|
-
* Alert banner top position, useful for fixed positioning
|
|
39
|
-
*
|
|
40
|
-
* Default: `null`
|
|
41
|
-
* */
|
|
42
|
-
top?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Alert banner bottom position, useful for fixed positioning
|
|
45
|
-
*
|
|
46
|
-
* Default: `null`
|
|
47
|
-
* */
|
|
48
|
-
bottom?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Alert banner left position, useful for fixed positioning
|
|
51
|
-
*
|
|
52
|
-
* Default: `null`
|
|
53
|
-
* */
|
|
54
|
-
left?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Alert banner right position, useful for fixed positioning
|
|
57
|
-
*
|
|
58
|
-
* Default: `null`
|
|
59
|
-
* */
|
|
60
|
-
right?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Alert banner position, useful for fixed positioning
|
|
63
|
-
*
|
|
64
|
-
* Default: `'static'`
|
|
65
|
-
* */
|
|
66
|
-
position?: 'static' | 'fixed' | 'absolute' | 'relative';
|
|
67
|
-
/**
|
|
68
|
-
* Alert banner content
|
|
69
|
-
* */
|
|
70
|
-
children: React.ReactNode;
|
|
71
|
-
/**
|
|
72
|
-
* Alert banner content justify content
|
|
73
|
-
*
|
|
74
|
-
* Default: `'center'`
|
|
75
|
-
* */
|
|
76
|
-
justifyContent?: 'center' | 'space-between' | 'space-around';
|
|
77
|
-
/**
|
|
78
|
-
* Alert banner close button click handler
|
|
79
|
-
* */
|
|
80
|
-
onClose?: () => void;
|
|
81
|
-
/**
|
|
82
|
-
* Show close button
|
|
83
|
-
*
|
|
84
|
-
* Default: `false`
|
|
85
|
-
* */
|
|
86
|
-
showCloseButton?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Alert banner action buttons.
|
|
89
|
-
*
|
|
90
|
-
* Type: ButtonProps[]
|
|
91
|
-
* */
|
|
92
|
-
actionButtons?: ButtonProps[];
|
|
93
|
-
}
|
|
94
|
-
export interface AlertBannerContainerProps {
|
|
95
|
-
type: AlertBannerType;
|
|
96
|
-
variant: AlertBannerVariant;
|
|
97
|
-
justifyContent: string;
|
|
98
|
-
padding: string;
|
|
99
|
-
top: string;
|
|
100
|
-
bottom: string;
|
|
101
|
-
left: string;
|
|
102
|
-
right: string;
|
|
103
|
-
position: string;
|
|
104
|
-
textColor: string;
|
|
105
|
-
backgroundColor: string;
|
|
106
|
-
borderColor: string;
|
|
107
|
-
children: React.ReactNode;
|
|
108
|
-
ref: React.Ref<HTMLDivElement>;
|
|
109
|
-
role: string;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GACxB,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,CAAC;AAEhB,MAAM,WAAW,gBAAgB;IAC7B;;;;;;SAMK;IACL,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;;;;;SAMK;IACL,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;SAIK;IACL,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;SAMK;IACL,IAAI,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAEhC;;;;SAIK;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;SAIK;IACL,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;SAIK;IACL,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;SAIK;IACL,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;SAIK;IACL,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAExD;;SAEK;IACL,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;;SAIK;IACL,cAAc,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,cAAc,CAAC;IAE7D;;SAEK;IACL,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;SAIK;IACL,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;SAIK;IACL,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,yBAAyB;IACtC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { AlertProps, AlertType, AlertVariant } from '../Alert/types';
|
|
2
|
-
import { AlertBannerProps, AlertBannerType, AlertBannerVariant } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Get alert banner icon name based on variant and icon prop
|
|
5
|
-
*
|
|
6
|
-
* If icon prop is set to 'auto', the icon will be selected based on the variant
|
|
7
|
-
*
|
|
8
|
-
* @param icon - Alert banner icon prop
|
|
9
|
-
* @param variant - Alert banner variant
|
|
10
|
-
* @returns Alert banner icon name
|
|
11
|
-
*/
|
|
12
|
-
export declare const getAlertIconName: (icon: AlertBannerProps['icon'] | AlertProps['icon'], variant: AlertBannerVariant | AlertVariant) => import("../../core").grauityIconName;
|
|
13
|
-
/**
|
|
14
|
-
* Get alert banner colors based on variant and type
|
|
15
|
-
*
|
|
16
|
-
* @param variant - Alert banner variant
|
|
17
|
-
* @param type - Alert banner type
|
|
18
|
-
* @returns Alert banner colors
|
|
19
|
-
*/
|
|
20
|
-
export declare const getAlertBannerColors: (variant: AlertBannerVariant | AlertVariant, type: AlertBannerType | AlertType) => {
|
|
21
|
-
iconColor: string;
|
|
22
|
-
textColor: string;
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
} | {
|
|
26
|
-
iconColor: string;
|
|
27
|
-
textColor: string;
|
|
28
|
-
backgroundColor: string;
|
|
29
|
-
borderColor: string;
|
|
30
|
-
} | {
|
|
31
|
-
iconColor: string;
|
|
32
|
-
textColor: string;
|
|
33
|
-
backgroundColor: string;
|
|
34
|
-
borderColor: string;
|
|
35
|
-
} | {
|
|
36
|
-
iconColor: string;
|
|
37
|
-
textColor: string;
|
|
38
|
-
backgroundColor: string;
|
|
39
|
-
borderColor: string;
|
|
40
|
-
} | {
|
|
41
|
-
iconColor: string;
|
|
42
|
-
textColor: string;
|
|
43
|
-
backgroundColor: string;
|
|
44
|
-
borderColor: string;
|
|
45
|
-
} | {
|
|
46
|
-
iconColor: string;
|
|
47
|
-
textColor: string;
|
|
48
|
-
backgroundColor: string;
|
|
49
|
-
borderColor: string;
|
|
50
|
-
} | {
|
|
51
|
-
iconColor: string;
|
|
52
|
-
textColor: string;
|
|
53
|
-
backgroundColor: string;
|
|
54
|
-
borderColor: string;
|
|
55
|
-
} | {
|
|
56
|
-
iconColor: string;
|
|
57
|
-
textColor: string;
|
|
58
|
-
backgroundColor: string;
|
|
59
|
-
borderColor: string;
|
|
60
|
-
} | {
|
|
61
|
-
iconColor: string;
|
|
62
|
-
textColor: string;
|
|
63
|
-
backgroundColor: string;
|
|
64
|
-
borderColor: string;
|
|
65
|
-
} | {
|
|
66
|
-
iconColor: string;
|
|
67
|
-
textColor: string;
|
|
68
|
-
backgroundColor: string;
|
|
69
|
-
borderColor: string;
|
|
70
|
-
} | {
|
|
71
|
-
iconColor: string;
|
|
72
|
-
textColor: string;
|
|
73
|
-
backgroundColor: string;
|
|
74
|
-
borderColor: string;
|
|
75
|
-
} | {
|
|
76
|
-
iconColor: string;
|
|
77
|
-
textColor: string;
|
|
78
|
-
backgroundColor: string;
|
|
79
|
-
borderColor: string;
|
|
80
|
-
} | {
|
|
81
|
-
iconColor: string;
|
|
82
|
-
textColor: string;
|
|
83
|
-
backgroundColor: string;
|
|
84
|
-
borderColor: string;
|
|
85
|
-
} | {
|
|
86
|
-
iconColor: string;
|
|
87
|
-
textColor: string;
|
|
88
|
-
backgroundColor: string;
|
|
89
|
-
borderColor: string;
|
|
90
|
-
} | {
|
|
91
|
-
iconColor: string;
|
|
92
|
-
textColor: string;
|
|
93
|
-
backgroundColor: string;
|
|
94
|
-
borderColor: string;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Get button variant based on alert banner variant and type.
|
|
98
|
-
* Useful for showing correct variant for close button.
|
|
99
|
-
*
|
|
100
|
-
* @param variant - Alert banner variant
|
|
101
|
-
* @param type - Alert banner type
|
|
102
|
-
* @returns Button variant
|
|
103
|
-
*/
|
|
104
|
-
export declare const getButtonVariantFromAlertBannerTypeVariant: (variant: AlertBannerVariant | AlertVariant, type: AlertBannerType | AlertType) => import("../Button").BUTTON_VARIANTS_ENUM;
|
|
105
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/AlertBanner/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAMrE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEhF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,SACnB,gBAAgB,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,WAC1C,kBAAkB,GAAG,YAAY,yCAO7C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,YACpB,kBAAkB,GAAG,YAAY,QACpC,eAAe,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACU,CAAC;AAEhD;;;;;;;GAOG;AACH,eAAO,MAAM,0CAA0C,YAC1C,kBAAkB,GAAG,YAAY,QACpC,eAAe,GAAG,SAAS,6CACsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/BottomSheet/BottomSheet.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Button/Button.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Button/IconButton.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Button/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarEvent.test.d.ts","sourceRoot":"","sources":["../../../../../ui/elements/Calendar/CalendarEvent/CalendarEvent.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WeeklyCalendar.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/WeeklyCalendar.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type { WeeklyCalendarProps } from './types';
|
|
2
|
-
export { default } from './WeeklyCalendar';
|
|
3
|
-
export { default as CalendarEvent } from './CalendarEvent/CalendarEvent';
|
|
4
|
-
export type { CalendarEventProps } from './CalendarEvent/types';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Calendar/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/Chip/Chip.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { DisableBodyScrollProps } from './types';
|
|
3
|
-
declare const DisableBodyScroll: React.ForwardRefExoticComponent<DisableBodyScrollProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export default DisableBodyScroll;
|
|
5
|
-
//# sourceMappingURL=DisableBodyScroll.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DisableBodyScroll/DisableBodyScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAK1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,QAAA,MAAM,iBAAiB,+FAatB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisableBodyScroll.styles.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DisableBodyScroll/DisableBodyScroll.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAEvD,eAAO,MAAM,uBAAuB,+FAenC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DisableBodyScroll.test.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DisableBodyScroll/DisableBodyScroll.test.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../ui/elements/DisableBodyScroll/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|