@bitrise/bitkit 13.257.0 → 13.259.0
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/package.json +1 -1
- package/src/Components/Table/Table.theme.ts +1 -1
- package/src/Components/components.theme.ts +2 -2
- package/src/Patterns/{NotificationCard/NotificationCard.tsx → NoteCard/NoteCard.tsx} +4 -12
- package/src/index.ts +2 -2
- /package/src/Patterns/{NotificationCard/NotificationCard.theme.ts → NoteCard/NoteCard.theme.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import NoteCard from '../Patterns/NoteCard/NoteCard.theme';
|
|
2
2
|
import SettingsCard from '../Patterns/SettingsCard/SettingsCard.theme';
|
|
3
3
|
import Alert from './Alert/Alert.theme';
|
|
4
4
|
import Accordion from './Accordion/Accordion.theme';
|
|
@@ -83,7 +83,7 @@ const components = {
|
|
|
83
83
|
Menu,
|
|
84
84
|
Modal: Dialog,
|
|
85
85
|
Note,
|
|
86
|
-
|
|
86
|
+
NoteCard,
|
|
87
87
|
NumberInput,
|
|
88
88
|
Popover,
|
|
89
89
|
Progress: ProgressBar,
|
|
@@ -15,7 +15,7 @@ export type ActionProps = {
|
|
|
15
15
|
target?: string;
|
|
16
16
|
} & Omit<ButtonProps, 'as' | 'children' | 'size'>;
|
|
17
17
|
|
|
18
|
-
export type
|
|
18
|
+
export type NoteCardProps = {
|
|
19
19
|
action?: ActionProps;
|
|
20
20
|
message: ReactNode;
|
|
21
21
|
details?: ReactNode;
|
|
@@ -32,21 +32,13 @@ export type NotificationCardProps = {
|
|
|
32
32
|
) &
|
|
33
33
|
CardProps;
|
|
34
34
|
|
|
35
|
-
const
|
|
36
|
-
action,
|
|
37
|
-
details,
|
|
38
|
-
status,
|
|
39
|
-
statusIconName,
|
|
40
|
-
message,
|
|
41
|
-
title,
|
|
42
|
-
...rest
|
|
43
|
-
}: NotificationCardProps) => {
|
|
35
|
+
const NoteCard = ({ action, details, status, statusIconName, message, title, ...rest }: NoteCardProps) => {
|
|
44
36
|
const [isDetailsOpen, setIsDetailsOpen] = useState(false);
|
|
45
37
|
const { colorScheme, defaultIcon } = NOTIFICATION_STATUSES[status || 'info'];
|
|
46
38
|
|
|
47
39
|
const statusIcon = statusIconName ? <Icon name={statusIconName} /> : defaultIcon;
|
|
48
40
|
|
|
49
|
-
const style = useMultiStyleConfig('
|
|
41
|
+
const style = useMultiStyleConfig('NoteCard', { colorScheme });
|
|
50
42
|
const { borderColor, bg, color } = style.card;
|
|
51
43
|
const { borderRadius } = useStyleConfig('Card', { colorScheme });
|
|
52
44
|
|
|
@@ -122,4 +114,4 @@ const NotificationCard = ({
|
|
|
122
114
|
);
|
|
123
115
|
};
|
|
124
116
|
|
|
125
|
-
export default
|
|
117
|
+
export default NoteCard;
|
package/src/index.ts
CHANGED
|
@@ -160,8 +160,8 @@ export {
|
|
|
160
160
|
export type { NotificationProps } from './Components/Notification/Notification';
|
|
161
161
|
export { default as Notification } from './Components/Notification/Notification';
|
|
162
162
|
|
|
163
|
-
export type {
|
|
164
|
-
export { default as
|
|
163
|
+
export type { NoteCardProps } from './Patterns/NoteCard/NoteCard';
|
|
164
|
+
export { default as NoteCard } from './Patterns/NoteCard/NoteCard';
|
|
165
165
|
|
|
166
166
|
export type { AccordionProps } from './Components/Accordion/Accordion';
|
|
167
167
|
export { default as Accordion } from './Components/Accordion/Accordion';
|
/package/src/Patterns/{NotificationCard/NotificationCard.theme.ts → NoteCard/NoteCard.theme.ts}
RENAMED
|
File without changes
|