@axinom/mosaic-ui 0.26.0-rc.9 → 0.26.1
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/Buttons/Button/Button.d.ts +1 -1
- package/dist/components/Buttons/Button/Button.d.ts.map +1 -1
- package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts +22 -0
- package/dist/components/Buttons/CompositeButton/CompositeButton.d.ts.map +1 -0
- package/dist/components/Buttons/index.d.ts +1 -0
- package/dist/components/Buttons/index.d.ts.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts.map +1 -1
- package/dist/components/FormStation/SaveOnNavigate/SaveOnNavigate.d.ts.map +1 -1
- package/dist/components/Icons/Icons.d.ts.map +1 -1
- package/dist/components/Icons/Icons.models.d.ts +15 -12
- package/dist/components/Icons/Icons.models.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.js +4 -4
- package/dist/initialize.d.ts +11 -0
- package/dist/initialize.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/ui-config.d.ts +20 -0
- package/dist/types/ui-config.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Buttons/Button/Button.tsx +54 -49
- package/src/components/Buttons/Buttons.stories.tsx +29 -7
- package/src/components/Buttons/CompositeButton/CompositeButton.scss +116 -0
- package/src/components/Buttons/CompositeButton/CompositeButton.spec.tsx +137 -0
- package/src/components/Buttons/CompositeButton/CompositeButton.tsx +70 -0
- package/src/components/Buttons/index.ts +4 -0
- package/src/components/Explorer/Explorer.tsx +4 -2
- package/src/components/FormElements/CustomTags/CustomTags.scss +1 -2
- package/src/components/FormStation/SaveOnNavigate/SaveOnNavigate.tsx +10 -2
- package/src/components/Icons/Icons.models.ts +3 -0
- package/src/components/Icons/Icons.spec.tsx +38 -29
- package/src/components/Icons/Icons.stories.tsx +30 -14
- package/src/components/Icons/Icons.tsx +129 -90
- package/src/index.ts +2 -0
- package/src/initialize.ts +25 -0
- package/src/styles/variables.scss +4 -0
- package/src/types/index.ts +1 -0
- package/src/types/ui-config.ts +30 -0
|
@@ -262,3 +262,7 @@ $infotooltip-icon-color: $gray;
|
|
|
262
262
|
$infotooltip-background-color: $light-gray;
|
|
263
263
|
$infotooltip-text-color: $dark-gray;
|
|
264
264
|
$infotooltip-font-size: 16px;
|
|
265
|
+
|
|
266
|
+
/* Video Player */
|
|
267
|
+
$video-player-controls-background: $light-gray-2;
|
|
268
|
+
$video-player-controls-text-color: $dark-gray;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ui-config';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type ShowNotification = (notification: Notification) => NotificationId;
|
|
4
|
+
|
|
5
|
+
export type UpdateNotification = (
|
|
6
|
+
id: NotificationId,
|
|
7
|
+
notification: Notification,
|
|
8
|
+
) => void;
|
|
9
|
+
|
|
10
|
+
export type DismissNotification = (id: NotificationId) => void;
|
|
11
|
+
|
|
12
|
+
export interface Notification {
|
|
13
|
+
/** Title shown in toast messages header */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Optional body of the notification */
|
|
16
|
+
body?: NotificationBody;
|
|
17
|
+
/** Additional options for the notification */
|
|
18
|
+
options?: NotificationOptions;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface NotificationOptions {
|
|
22
|
+
type?: NotificationType;
|
|
23
|
+
autoClose?: number | false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type NotificationId = string | number;
|
|
27
|
+
|
|
28
|
+
export type NotificationBody = string | ReactNode | Component;
|
|
29
|
+
|
|
30
|
+
export type NotificationType = 'success' | 'error' | 'info' | 'warning';
|