@bitrise/bitkit 13.257.0 → 13.258.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit",
3
3
  "description": "Bitrise React component library",
4
- "version": "13.257.0",
4
+ "version": "13.258.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+ssh://git@github.com/bitrise-io/bitkit.git"
@@ -1,4 +1,4 @@
1
- import NotificationCard from '../Patterns/NotificationCard/NotificationCard.theme';
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
- NotificationCard,
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 NotificationCardProps = {
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 NotificationCard = ({
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('NotificationCard', { colorScheme });
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 NotificationCard;
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 { NotificationCardProps } from './Patterns/NotificationCard/NotificationCard';
164
- export { default as NotificationCard } from './Patterns/NotificationCard/NotificationCard';
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';