@ultraviolet/ui 1.4.5 → 1.5.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/README.md +7 -0
- package/dist/index.d.ts +131 -127
- package/dist/src/components/Icon/index.js +4 -0
- package/dist/src/components/List/Cell.js +6 -0
- package/package.json +13 -11
package/README.md
CHANGED
|
@@ -10,6 +10,13 @@ Ultraviolet UI is a set of React components and utilities to build fast applicat
|
|
|
10
10
|
$ pnpm add @ultraviolet/ui @emotion/react @emotion/styled
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
You will also need to import fonts in your project by adding:
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link href="https://fonts.cdnfonts.com/css/asap?styles=20325,20323,20320" rel="stylesheet">
|
|
17
|
+
<link href="https://fonts.cdnfonts.com/css/jetbrains-mono-2?styles=156604" rel="stylesheet">
|
|
18
|
+
```
|
|
19
|
+
|
|
13
20
|
### Usage
|
|
14
21
|
|
|
15
22
|
```js
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, SVGProps, ComponentProps, ButtonHTMLAttributes, AriaRole, MouseEventHandler, JSX, MouseEvent, InputHTMLAttributes, HTMLAttributeAnchorTarget, AnchorHTMLAttributes, ReactElement, Ref, RefObject, CSSProperties, ChangeEventHandler, FocusEventHandler, ForwardRefExoticComponent, ForwardedRef, HTMLAttributes, ElementType, KeyboardEventHandler, TextareaHTMLAttributes } from 'react';
|
|
3
|
-
import * as
|
|
3
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
4
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
import * as _emotion_react from '@emotion/react';
|
|
6
6
|
import { Theme, CSSObject, css } from '@emotion/react';
|
|
@@ -719,87 +719,91 @@ type Color = Extract<keyof typeof consoleLightTheme.colors, 'primary' | 'neutral
|
|
|
719
719
|
declare const SENTIMENTS: readonly ["primary", "neutral", "success", "danger", "warning", "info"];
|
|
720
720
|
|
|
721
721
|
declare const ICONS: {
|
|
722
|
-
readonly alert: () =>
|
|
723
|
-
readonly anchor: () =>
|
|
724
|
-
readonly 'arrow-down': () =>
|
|
725
|
-
readonly 'arrow-left': () =>
|
|
726
|
-
readonly 'arrow-left-double': () =>
|
|
727
|
-
readonly 'arrow-right': () =>
|
|
728
|
-
readonly 'arrow-right-bottom': () =>
|
|
729
|
-
readonly 'arrow-right-double': () =>
|
|
730
|
-
readonly 'arrow-up': () =>
|
|
731
|
-
readonly asterisk: () =>
|
|
732
|
-
readonly 'auto-fix': () =>
|
|
733
|
-
readonly bullhorn: () =>
|
|
734
|
-
readonly burger: () =>
|
|
735
|
-
readonly 'book-open-outline': () =>
|
|
736
|
-
readonly calculator: () =>
|
|
737
|
-
readonly 'calendar-range': () =>
|
|
738
|
-
readonly cancel: () =>
|
|
739
|
-
readonly id: () =>
|
|
740
|
-
readonly check: () =>
|
|
741
|
-
readonly 'checkbox-circle-outline': () =>
|
|
742
|
-
readonly 'clock-outline': () =>
|
|
743
|
-
readonly close: () =>
|
|
744
|
-
readonly 'close-circle-outline': () =>
|
|
745
|
-
readonly 'copy-content': () =>
|
|
746
|
-
readonly credentials: () =>
|
|
747
|
-
readonly 'credit-card': () =>
|
|
748
|
-
readonly delete: () =>
|
|
749
|
-
readonly detach: () =>
|
|
750
|
-
readonly doc: () =>
|
|
751
|
-
readonly 'dots-horizontal': () =>
|
|
752
|
-
readonly 'dots-vertical': () =>
|
|
753
|
-
readonly download: () =>
|
|
754
|
-
readonly 'drag-variant': () =>
|
|
755
|
-
readonly 'drag-vertical': () =>
|
|
756
|
-
readonly east: () =>
|
|
757
|
-
readonly 'email-outline': () =>
|
|
758
|
-
readonly expand: () =>
|
|
759
|
-
readonly eye: () =>
|
|
760
|
-
readonly 'eye-off': () =>
|
|
761
|
-
readonly filter: () =>
|
|
762
|
-
readonly github: () =>
|
|
763
|
-
readonly 'help-circle-outline': () =>
|
|
764
|
-
readonly 'information-outline': () =>
|
|
765
|
-
readonly lock: () =>
|
|
766
|
-
readonly logout: () =>
|
|
767
|
-
readonly members: () =>
|
|
768
|
-
readonly minus: () =>
|
|
769
|
-
readonly moon: () =>
|
|
770
|
-
readonly 'open-in-new': () =>
|
|
771
|
-
readonly organization: () =>
|
|
772
|
-
readonly pencil: () =>
|
|
773
|
-
readonly 'play-circle-outline': () =>
|
|
774
|
-
readonly plus: () =>
|
|
775
|
-
readonly privacy: () =>
|
|
776
|
-
readonly profile: () =>
|
|
777
|
-
readonly 'progress-check': () =>
|
|
778
|
-
readonly 'ray-end-arrow': () =>
|
|
779
|
-
readonly 'ray-start-arrow': () =>
|
|
780
|
-
readonly 'ray-start-end': () =>
|
|
781
|
-
readonly 'ray-top-arrow': () =>
|
|
782
|
-
readonly reboot: () =>
|
|
783
|
-
readonly restore: () =>
|
|
784
|
-
readonly revoke: () =>
|
|
785
|
-
readonly rocket: () =>
|
|
786
|
-
readonly search: () =>
|
|
787
|
-
readonly send: () =>
|
|
788
|
-
readonly settings: () =>
|
|
789
|
-
readonly sort: () =>
|
|
790
|
-
readonly sun: () =>
|
|
791
|
-
readonly support: () =>
|
|
792
|
-
readonly switch_orga: () =>
|
|
793
|
-
readonly unlock: () =>
|
|
794
|
-
readonly upload: () =>
|
|
795
|
-
readonly view: () =>
|
|
796
|
-
readonly 'weather-night': () =>
|
|
797
|
-
readonly attach: () =>
|
|
798
|
-
readonly phone: () =>
|
|
799
|
-
readonly earth: () =>
|
|
800
|
-
readonly 'email-remove-outline': () =>
|
|
722
|
+
readonly alert: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
723
|
+
readonly anchor: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
724
|
+
readonly 'arrow-down': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
725
|
+
readonly 'arrow-left': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
726
|
+
readonly 'arrow-left-double': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
727
|
+
readonly 'arrow-right': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
728
|
+
readonly 'arrow-right-bottom': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
729
|
+
readonly 'arrow-right-double': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
730
|
+
readonly 'arrow-up': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
731
|
+
readonly asterisk: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
732
|
+
readonly 'auto-fix': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
733
|
+
readonly bullhorn: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
734
|
+
readonly burger: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
735
|
+
readonly 'book-open-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
736
|
+
readonly calculator: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
737
|
+
readonly 'calendar-range': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
738
|
+
readonly cancel: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
739
|
+
readonly id: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
740
|
+
readonly check: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
741
|
+
readonly 'checkbox-circle-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
742
|
+
readonly 'clock-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
743
|
+
readonly close: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
744
|
+
readonly 'close-circle-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
745
|
+
readonly 'copy-content': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
746
|
+
readonly credentials: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
747
|
+
readonly 'credit-card': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
748
|
+
readonly delete: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
749
|
+
readonly detach: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
750
|
+
readonly doc: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
751
|
+
readonly 'dots-horizontal': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
752
|
+
readonly 'dots-vertical': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
753
|
+
readonly download: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
754
|
+
readonly 'drag-variant': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
755
|
+
readonly 'drag-vertical': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
756
|
+
readonly east: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
757
|
+
readonly 'email-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
758
|
+
readonly expand: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
759
|
+
readonly eye: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
760
|
+
readonly 'eye-off': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
761
|
+
readonly filter: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
762
|
+
readonly github: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
763
|
+
readonly 'help-circle-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
764
|
+
readonly 'information-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
765
|
+
readonly lock: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
766
|
+
readonly logout: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
767
|
+
readonly members: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
768
|
+
readonly minus: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
769
|
+
readonly moon: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
770
|
+
readonly 'open-in-new': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
771
|
+
readonly organization: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
772
|
+
readonly pencil: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
773
|
+
readonly 'play-circle-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
774
|
+
readonly plus: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
775
|
+
readonly privacy: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
776
|
+
readonly profile: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
777
|
+
readonly 'progress-check': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
778
|
+
readonly 'ray-end-arrow': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
779
|
+
readonly 'ray-start-arrow': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
780
|
+
readonly 'ray-start-end': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
781
|
+
readonly 'ray-top-arrow': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
782
|
+
readonly reboot: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
783
|
+
readonly restore: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
784
|
+
readonly revoke: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
785
|
+
readonly rocket: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
786
|
+
readonly search: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
787
|
+
readonly send: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
788
|
+
readonly settings: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
789
|
+
readonly sort: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
790
|
+
readonly sun: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
791
|
+
readonly support: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
792
|
+
readonly switch_orga: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
793
|
+
readonly unlock: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
794
|
+
readonly upload: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
795
|
+
readonly view: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
796
|
+
readonly 'weather-night': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
797
|
+
readonly attach: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
798
|
+
readonly phone: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
799
|
+
readonly earth: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
800
|
+
readonly 'email-remove-outline': () => _emotion_react_jsx_runtime.JSX.Element;
|
|
801
801
|
};
|
|
802
802
|
type IconName = keyof typeof ICONS;
|
|
803
|
+
/**
|
|
804
|
+
* @deprecated This component is deprecated. Please use `Icon` from `@ultraviolet/icons` instead.
|
|
805
|
+
* The component is same but has been move on another package.
|
|
806
|
+
*/
|
|
803
807
|
declare const Icon: react.ForwardRefExoticComponent<{
|
|
804
808
|
size?: string | number | undefined;
|
|
805
809
|
name?: "filter" | "view" | "sort" | "id" | "alert" | "search" | "anchor" | "arrow-down" | "arrow-left" | "arrow-left-double" | "arrow-right" | "arrow-right-bottom" | "arrow-right-double" | "arrow-up" | "asterisk" | "auto-fix" | "bullhorn" | "burger" | "book-open-outline" | "calculator" | "calendar-range" | "cancel" | "check" | "checkbox-circle-outline" | "clock-outline" | "close" | "close-circle-outline" | "copy-content" | "credentials" | "credit-card" | "delete" | "detach" | "doc" | "dots-horizontal" | "dots-vertical" | "download" | "drag-variant" | "drag-vertical" | "east" | "email-outline" | "expand" | "eye" | "eye-off" | "github" | "help-circle-outline" | "information-outline" | "lock" | "logout" | "members" | "minus" | "moon" | "open-in-new" | "organization" | "pencil" | "play-circle-outline" | "plus" | "privacy" | "profile" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rocket" | "send" | "settings" | "sun" | "support" | "switch_orga" | "unlock" | "upload" | "weather-night" | "attach" | "phone" | "earth" | "email-remove-outline" | undefined;
|
|
@@ -934,7 +938,7 @@ type AlertProps = {
|
|
|
934
938
|
*/
|
|
935
939
|
disabled?: boolean;
|
|
936
940
|
};
|
|
937
|
-
declare const Alert: ({ children, title, sentiment, buttonText, onClickButton, closable, onClose, className, disabled, "data-testid": dataTestId, }: AlertProps) =>
|
|
941
|
+
declare const Alert: ({ children, title, sentiment, buttonText, onClickButton, closable, onClose, className, disabled, "data-testid": dataTestId, }: AlertProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
938
942
|
|
|
939
943
|
type Without<T, U> = {
|
|
940
944
|
[P in Exclude<keyof T, keyof U>]?: never;
|
|
@@ -979,7 +983,7 @@ type AvatarProps = {
|
|
|
979
983
|
text: string;
|
|
980
984
|
}
|
|
981
985
|
]>;
|
|
982
|
-
declare const Avatar: ({ image, size, text, textBgColor, textColor, textSize, lock, className, "data-testid": dataTestId, }: AvatarProps) =>
|
|
986
|
+
declare const Avatar: ({ image, size, text, textBgColor, textColor, textSize, lock, className, "data-testid": dataTestId, }: AvatarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
983
987
|
|
|
984
988
|
declare const SIZES: {
|
|
985
989
|
large: number;
|
|
@@ -1003,7 +1007,7 @@ type BadgeProps = {
|
|
|
1003
1007
|
children: ReactNode;
|
|
1004
1008
|
'data-testid'?: string;
|
|
1005
1009
|
};
|
|
1006
|
-
declare const Badge: ({ sentiment, size, prominence, icon, disabled, className, children, "data-testid": dataTestId, }: BadgeProps) =>
|
|
1010
|
+
declare const Badge: ({ sentiment, size, prominence, icon, disabled, className, children, "data-testid": dataTestId, }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1007
1011
|
|
|
1008
1012
|
type Variant$1 = 'intro' | 'promotional';
|
|
1009
1013
|
type BannerProps = {
|
|
@@ -1020,7 +1024,7 @@ type BannerProps = {
|
|
|
1020
1024
|
image?: ReactNode;
|
|
1021
1025
|
className?: string;
|
|
1022
1026
|
};
|
|
1023
|
-
declare const Banner: ({ variant, size, title, children, direction, onClose, buttonText, onClickButton, linkText, linkHref, image, className, }: BannerProps) =>
|
|
1027
|
+
declare const Banner: ({ variant, size, title, children, direction, onClose, buttonText, onClickButton, linkText, linkHref, image, className, }: BannerProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1024
1028
|
|
|
1025
1029
|
type BarChartToolTipProps = {
|
|
1026
1030
|
color: string;
|
|
@@ -1029,7 +1033,7 @@ type BarChartToolTipProps = {
|
|
|
1029
1033
|
className?: string;
|
|
1030
1034
|
'data-testid'?: string;
|
|
1031
1035
|
};
|
|
1032
|
-
declare const BarChartToolTip: ({ formattedValue, indexValue, color, className, "data-testid": dataTestId, }: BarChartToolTipProps) =>
|
|
1036
|
+
declare const BarChartToolTip: ({ formattedValue, indexValue, color, className, "data-testid": dataTestId, }: BarChartToolTipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1033
1037
|
|
|
1034
1038
|
type Formatter = ValueFormat<DatumValue>;
|
|
1035
1039
|
type TickSpec = NonNullable<ComponentProps<typeof ResponsiveBar>['axisBottom']>['tickValues'];
|
|
@@ -1049,7 +1053,7 @@ type BarChartProps = {
|
|
|
1049
1053
|
/**
|
|
1050
1054
|
* @experimental This component is experimental and may be subject to breaking changes in the future.
|
|
1051
1055
|
*/
|
|
1052
|
-
declare const BarChart: ({ height, margin, data, axisFormatters, tickValues, keys, tooltipFunction, chartProps, className, "data-testid": dataTestId, }: BarChartProps) =>
|
|
1056
|
+
declare const BarChart: ({ height, margin, data, axisFormatters, tickValues, keys, tooltipFunction, chartProps, className, "data-testid": dataTestId, }: BarChartProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1053
1057
|
|
|
1054
1058
|
type BarProps = {
|
|
1055
1059
|
/**
|
|
@@ -1097,7 +1101,7 @@ type ItemProps$1 = {
|
|
|
1097
1101
|
step?: number;
|
|
1098
1102
|
onClick?: (event: MouseEvent<HTMLLIElement>, step: number) => void;
|
|
1099
1103
|
};
|
|
1100
|
-
declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, step, }: ItemProps$1) =>
|
|
1104
|
+
declare const Item: ({ to, children, disabled, "aria-current": ariaCurrent, onClick, step, }: ItemProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1101
1105
|
type BreadcrumbsProps = {
|
|
1102
1106
|
selected?: number;
|
|
1103
1107
|
children: ReactNode;
|
|
@@ -1138,7 +1142,7 @@ type BulletProps = {
|
|
|
1138
1142
|
'data-testid'?: string;
|
|
1139
1143
|
prominence?: ProminenceType;
|
|
1140
1144
|
} & ContentProps$1;
|
|
1141
|
-
declare const Bullet: ({ className, sentiment, size, icon, text, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, }: BulletProps) =>
|
|
1145
|
+
declare const Bullet: ({ className, sentiment, size, icon, text, tooltip, tooltipBaseId, "data-testid": dataTestId, prominence, }: BulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1142
1146
|
|
|
1143
1147
|
type CardProps = {
|
|
1144
1148
|
children: ReactNode;
|
|
@@ -1202,7 +1206,7 @@ type CopyButtonProps = {
|
|
|
1202
1206
|
className?: string;
|
|
1203
1207
|
'data-testid'?: string;
|
|
1204
1208
|
};
|
|
1205
|
-
declare const CopyButton: ({ size, value, copyText, copiedText, sentiment, noBorder, className, "data-testid": dataTestId, }: CopyButtonProps) =>
|
|
1209
|
+
declare const CopyButton: ({ size, value, copyText, copiedText, sentiment, noBorder, className, "data-testid": dataTestId, }: CopyButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1206
1210
|
|
|
1207
1211
|
type DateInputProps = Pick<ReactDatePickerProps<string>, 'autoFocus' | 'disabled' | 'locale' | 'maxDate' | 'minDate' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'required'> & {
|
|
1208
1212
|
error?: string;
|
|
@@ -1215,7 +1219,7 @@ type DateInputProps = Pick<ReactDatePickerProps<string>, 'autoFocus' | 'disabled
|
|
|
1215
1219
|
className?: string;
|
|
1216
1220
|
'data-testid'?: string;
|
|
1217
1221
|
};
|
|
1218
|
-
declare const DateInput: ({ autoFocus, disabled, error, format, label, locale, maxDate, minDate, name, onBlur, onChange, onFocus, required, value, className, "data-testid": dataTestId, }: DateInputProps) =>
|
|
1222
|
+
declare const DateInput: ({ autoFocus, disabled, error, format, label, locale, maxDate, minDate, name, onBlur, onChange, onFocus, required, value, className, "data-testid": dataTestId, }: DateInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1219
1223
|
|
|
1220
1224
|
declare const CONTAINER_SIZES: {
|
|
1221
1225
|
readonly small: 720;
|
|
@@ -1249,7 +1253,7 @@ type EmptyStateProps = {
|
|
|
1249
1253
|
children?: ReactNode;
|
|
1250
1254
|
'data-testid'?: string;
|
|
1251
1255
|
};
|
|
1252
|
-
declare const EmptyState: ({ image, title, size, description, primaryButton, secondaryButton, learnMore, className, bordered, children, "data-testid": dataTestId, }: EmptyStateProps) =>
|
|
1256
|
+
declare const EmptyState: ({ image, title, size, description, primaryButton, secondaryButton, learnMore, className, bordered, children, "data-testid": dataTestId, }: EmptyStateProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1253
1257
|
|
|
1254
1258
|
type ExpandableProps = {
|
|
1255
1259
|
/**
|
|
@@ -1267,7 +1271,7 @@ type ExpandableProps = {
|
|
|
1267
1271
|
className?: string;
|
|
1268
1272
|
'data-testid'?: string;
|
|
1269
1273
|
};
|
|
1270
|
-
declare const Expandable: ({ children, opened, minHeight, className, "data-testid": dataTestId, }: ExpandableProps) =>
|
|
1274
|
+
declare const Expandable: ({ children, opened, minHeight, className, "data-testid": dataTestId, }: ExpandableProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1271
1275
|
|
|
1272
1276
|
type Transformer = (value: DatumValue) => string;
|
|
1273
1277
|
type CustomLegendProps = {
|
|
@@ -1278,7 +1282,7 @@ type CustomLegendProps = {
|
|
|
1278
1282
|
className?: string;
|
|
1279
1283
|
'data-testid'?: string;
|
|
1280
1284
|
};
|
|
1281
|
-
declare const CustomLegend: ({ axisTransformer, data, selected, setSelected, className, "data-testid": dataTestId, }: CustomLegendProps) =>
|
|
1285
|
+
declare const CustomLegend: ({ axisTransformer, data, selected, setSelected, className, "data-testid": dataTestId, }: CustomLegendProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1282
1286
|
|
|
1283
1287
|
type LineChartProps = {
|
|
1284
1288
|
height?: string | number;
|
|
@@ -1296,7 +1300,7 @@ type LineChartProps = {
|
|
|
1296
1300
|
/**
|
|
1297
1301
|
* @experimental This component is experimental and may be subject to breaking changes in the future.
|
|
1298
1302
|
*/
|
|
1299
|
-
declare const LineChart: ({ height, margin, xScale, yScale, data, withLegend, axisFormatters, pointFormatters, tickValues, chartProps, "data-testid": dataTestId, }: LineChartProps) =>
|
|
1303
|
+
declare const LineChart: ({ height, margin, xScale, yScale, data, withLegend, axisFormatters, pointFormatters, tickValues, chartProps, "data-testid": dataTestId, }: LineChartProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1300
1304
|
|
|
1301
1305
|
declare const PROMINENCES$1: {
|
|
1302
1306
|
default: string;
|
|
@@ -1332,7 +1336,7 @@ type HeaderCellProps$1 = {
|
|
|
1332
1336
|
onOrder?: (newOrder: 'asc' | 'desc') => void;
|
|
1333
1337
|
info?: string;
|
|
1334
1338
|
};
|
|
1335
|
-
declare const HeaderCell$1: ({ children, isOrdered, orderDirection, onOrder, className, info, }: HeaderCellProps$1) =>
|
|
1339
|
+
declare const HeaderCell$1: ({ children, isOrdered, orderDirection, onOrder, className, info, }: HeaderCellProps$1) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1336
1340
|
|
|
1337
1341
|
type SelectBarProps$1<T> = {
|
|
1338
1342
|
className?: string;
|
|
@@ -1346,7 +1350,7 @@ type SelectBarProps$1<T> = {
|
|
|
1346
1350
|
* */
|
|
1347
1351
|
idKey: keyof T;
|
|
1348
1352
|
};
|
|
1349
|
-
declare function SelectBar$1<T>({ children, data, idKey, className, }: SelectBarProps$1<T>):
|
|
1353
|
+
declare function SelectBar$1<T>({ children, data, idKey, className, }: SelectBarProps$1<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1350
1354
|
|
|
1351
1355
|
type ColumnProps$1 = Pick<ComponentProps<typeof HeaderCell$1>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
|
|
1352
1356
|
label?: string;
|
|
@@ -1420,7 +1424,7 @@ type LoaderProps = {
|
|
|
1420
1424
|
*/
|
|
1421
1425
|
label?: string;
|
|
1422
1426
|
};
|
|
1423
|
-
declare const Loader: ({ percentage, text, size, strokeWidth, color, trailColor, active, label, }: LoaderProps) =>
|
|
1427
|
+
declare const Loader: ({ percentage, text, size, strokeWidth, color, trailColor, active, label, }: LoaderProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1424
1428
|
|
|
1425
1429
|
type DisclosureElement = ((popover: Partial<PopoverStateReturn>) => ReactElement<ButtonHTMLAttributes<HTMLButtonElement>>) | (ReactElement<ButtonHTMLAttributes<HTMLButtonElement>> & {
|
|
1426
1430
|
ref?: Ref<HTMLButtonElement>;
|
|
@@ -1561,14 +1565,14 @@ type ModalProps = Partial<Pick<DialogProps, 'animated' | 'id' | 'hideOnEsc' | 'h
|
|
|
1561
1565
|
className?: string;
|
|
1562
1566
|
'data-testid'?: string;
|
|
1563
1567
|
};
|
|
1564
|
-
declare const Modal: react.MemoExoticComponent<({ animated, animation, ariaLabel, id, bordered, children, customDialogBackdropStyles, customDialogStyles, disclosure, height, hideOnClickOutside, hideOnEsc, isClosable, modal, onClose, onBeforeClose, opened, placement, preventBodyScroll, width, className, "data-testid": dataTestId, }: ModalProps) =>
|
|
1568
|
+
declare const Modal: react.MemoExoticComponent<({ animated, animation, ariaLabel, id, bordered, children, customDialogBackdropStyles, customDialogStyles, disclosure, height, hideOnClickOutside, hideOnEsc, isClosable, modal, onClose, onBeforeClose, opened, placement, preventBodyScroll, width, className, "data-testid": dataTestId, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element>;
|
|
1565
1569
|
|
|
1566
1570
|
type NoticeProps = {
|
|
1567
1571
|
children: ReactNode;
|
|
1568
1572
|
className?: string;
|
|
1569
1573
|
'data-testid'?: string;
|
|
1570
1574
|
};
|
|
1571
|
-
declare const Notice: ({ children, className, "data-testid": dataTestId, }: NoticeProps) =>
|
|
1575
|
+
declare const Notice: ({ children, className, "data-testid": dataTestId, }: NoticeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1572
1576
|
|
|
1573
1577
|
declare const containerSizes: {
|
|
1574
1578
|
large: number;
|
|
@@ -1605,7 +1609,7 @@ type NumberInputProps = {
|
|
|
1605
1609
|
placeholder?: string;
|
|
1606
1610
|
error?: string | boolean;
|
|
1607
1611
|
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange' | 'value' | 'defaultValue'>;
|
|
1608
|
-
declare const NumberInput: ({ disabled, maxValue, minValue, name, onChange, onFocus, onBlur, onMaxCrossed, onMinCrossed, size, step, text, defaultValue, value, disabledTooltip, className, label, id, placeholder, error, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "data-testid": dataTestId, }: NumberInputProps) =>
|
|
1612
|
+
declare const NumberInput: ({ disabled, maxValue, minValue, name, onChange, onFocus, onBlur, onMaxCrossed, onMinCrossed, size, step, text, defaultValue, value, disabledTooltip, className, label, id, placeholder, error, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, "data-testid": dataTestId, }: NumberInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1609
1613
|
|
|
1610
1614
|
type PaginationProps = {
|
|
1611
1615
|
/**
|
|
@@ -1650,7 +1654,7 @@ type PasswordCheckProps = {
|
|
|
1650
1654
|
className?: string;
|
|
1651
1655
|
'data-testid'?: string;
|
|
1652
1656
|
};
|
|
1653
|
-
declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) =>
|
|
1657
|
+
declare const PasswordCheck: ({ rules, className, "data-testid": dataTestId, }: PasswordCheckProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1654
1658
|
|
|
1655
1659
|
type Strength = {
|
|
1656
1660
|
/**
|
|
@@ -1711,7 +1715,7 @@ type PieChartProps = {
|
|
|
1711
1715
|
/**
|
|
1712
1716
|
* @experimental This component is experimental and may be subject to breaking changes in the future.
|
|
1713
1717
|
*/
|
|
1714
|
-
declare const PieChart: ({ height, width, data, emptyLegend, content, withLegend, margin, chartProps, }: PieChartProps) =>
|
|
1718
|
+
declare const PieChart: ({ height, width, data, emptyLegend, content, withLegend, margin, chartProps, }: PieChartProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1715
1719
|
|
|
1716
1720
|
type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left' | 'auto';
|
|
1717
1721
|
|
|
@@ -1765,7 +1769,7 @@ type PopoverProps = {
|
|
|
1765
1769
|
className?: string;
|
|
1766
1770
|
'data-testid'?: string;
|
|
1767
1771
|
} & Pick<ComponentProps<typeof Tooltip>, 'placement'>;
|
|
1768
|
-
declare const Popover: ({ visible, children, placement, content, title, sentiment, size, onClose, className, "data-testid": dataTestId, }: PopoverProps) =>
|
|
1772
|
+
declare const Popover: ({ visible, children, placement, content, title, sentiment, size, onClose, className, "data-testid": dataTestId, }: PopoverProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1769
1773
|
|
|
1770
1774
|
declare const progressBarSentiments: readonly ["primary", "success", "warning", "info"];
|
|
1771
1775
|
type ProgressBarProps = {
|
|
@@ -1776,7 +1780,7 @@ type ProgressBarProps = {
|
|
|
1776
1780
|
className?: string;
|
|
1777
1781
|
'data-testid'?: string;
|
|
1778
1782
|
};
|
|
1779
|
-
declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, }: ProgressBarProps) =>
|
|
1783
|
+
declare const ProgressBar: ({ progress, value, sentiment, className, "data-testid": dataTestId, }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1780
1784
|
|
|
1781
1785
|
type RadioProps = {
|
|
1782
1786
|
error?: string | ReactNode;
|
|
@@ -1803,7 +1807,7 @@ type RowProps = {
|
|
|
1803
1807
|
alignItems?: CSSProperties['alignItems'];
|
|
1804
1808
|
justifyContent?: CSSProperties['justifyContent'];
|
|
1805
1809
|
};
|
|
1806
|
-
declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, }: RowProps) =>
|
|
1810
|
+
declare const Row: ({ className, "data-testid": dataTestId, children, templateColumns, alignItems, justifyContent, gap, }: RowProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1807
1811
|
|
|
1808
1812
|
type SelectableCardProps = {
|
|
1809
1813
|
name?: string;
|
|
@@ -1904,16 +1908,16 @@ declare const Separator: ({ direction, thickness, color, icon, className, "data-
|
|
|
1904
1908
|
declare const variants$1: {
|
|
1905
1909
|
readonly block: ({ length }: {
|
|
1906
1910
|
length?: number | undefined;
|
|
1907
|
-
}) =>
|
|
1911
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1908
1912
|
readonly blocks: ({ col, length, }: {
|
|
1909
1913
|
col?: number | undefined;
|
|
1910
1914
|
length?: number | undefined;
|
|
1911
|
-
}) =>
|
|
1915
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1912
1916
|
readonly box: ({ col, length, }: {
|
|
1913
1917
|
col?: number | undefined;
|
|
1914
1918
|
length?: number | undefined;
|
|
1915
|
-
}) =>
|
|
1916
|
-
readonly donut: () =>
|
|
1919
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1920
|
+
readonly donut: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
1917
1921
|
readonly line: _emotion_styled.StyledComponent<{
|
|
1918
1922
|
theme?: _emotion_react.Theme | undefined;
|
|
1919
1923
|
as?: react.ElementType<any> | undefined;
|
|
@@ -1921,10 +1925,10 @@ declare const variants$1: {
|
|
|
1921
1925
|
readonly list: ({ length, col, }: {
|
|
1922
1926
|
length?: number | undefined;
|
|
1923
1927
|
col?: number | undefined;
|
|
1924
|
-
}) =>
|
|
1928
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1925
1929
|
readonly slider: ({ length }: {
|
|
1926
1930
|
length?: number | undefined;
|
|
1927
|
-
}) =>
|
|
1931
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1928
1932
|
};
|
|
1929
1933
|
type SkeletonVariant = keyof typeof variants$1;
|
|
1930
1934
|
type SkeletonProps = {
|
|
@@ -1933,7 +1937,7 @@ type SkeletonProps = {
|
|
|
1933
1937
|
col?: number;
|
|
1934
1938
|
className?: string;
|
|
1935
1939
|
};
|
|
1936
|
-
declare const Skeleton: ({ variant, length, col, className, }: SkeletonProps) =>
|
|
1940
|
+
declare const Skeleton: ({ variant, length, col, className, }: SkeletonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1937
1941
|
|
|
1938
1942
|
type Prefixes = 'lines' | 'command';
|
|
1939
1943
|
type SnippetProps = {
|
|
@@ -1949,7 +1953,7 @@ type SnippetProps = {
|
|
|
1949
1953
|
hideText?: string;
|
|
1950
1954
|
'data-testid'?: string;
|
|
1951
1955
|
} & Pick<ComponentProps<typeof CopyButton>, 'copyText' | 'copiedText'>;
|
|
1952
|
-
declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, }: SnippetProps) =>
|
|
1956
|
+
declare const Snippet: ({ children, copyText, copiedText, showText, hideText, prefix, className, "data-testid": dataTestId, }: SnippetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1953
1957
|
|
|
1954
1958
|
type StackProps = {
|
|
1955
1959
|
gap?: keyof SCWUITheme['space'] | number;
|
|
@@ -2017,8 +2021,8 @@ type StepListProps = {
|
|
|
2017
2021
|
* @experimental This component is experimental and may be subject to breaking changes in the future.
|
|
2018
2022
|
*/
|
|
2019
2023
|
declare const StepList: {
|
|
2020
|
-
({ children, className, "data-testid": dataTestId, }: StepListProps):
|
|
2021
|
-
Item: ({ bulletText, bulletIcon, sentiment, children, size, disabled, className, }: ItemProps) =>
|
|
2024
|
+
({ children, className, "data-testid": dataTestId, }: StepListProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
2025
|
+
Item: ({ bulletText, bulletIcon, sentiment, children, size, disabled, className, }: ItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2022
2026
|
};
|
|
2023
2027
|
|
|
2024
2028
|
type StepperProps = {
|
|
@@ -2028,7 +2032,7 @@ type StepperProps = {
|
|
|
2028
2032
|
className?: string;
|
|
2029
2033
|
'data-testid'?: string;
|
|
2030
2034
|
};
|
|
2031
|
-
declare const Stepper: ({ children, selected, animated, className, "data-testid": dataTestId, }: StepperProps) =>
|
|
2035
|
+
declare const Stepper: ({ children, selected, animated, className, "data-testid": dataTestId, }: StepperProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2032
2036
|
|
|
2033
2037
|
type SwitchButtonProps = {
|
|
2034
2038
|
name: string;
|
|
@@ -2050,7 +2054,7 @@ type SwitchButtonProps = {
|
|
|
2050
2054
|
className?: string;
|
|
2051
2055
|
'data-testid'?: string;
|
|
2052
2056
|
};
|
|
2053
|
-
declare const SwitchButton: ({ value, onChange, onFocus, onBlur, name, leftButton, rightButton, tooltip, className, "data-testid": dataTestId, }: SwitchButtonProps) =>
|
|
2057
|
+
declare const SwitchButton: ({ value, onChange, onFocus, onBlur, name, leftButton, rightButton, tooltip, className, "data-testid": dataTestId, }: SwitchButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2054
2058
|
|
|
2055
2059
|
type HeaderCellProps = {
|
|
2056
2060
|
children: ReactNode;
|
|
@@ -2063,7 +2067,7 @@ type HeaderCellProps = {
|
|
|
2063
2067
|
maxWidth?: string;
|
|
2064
2068
|
info?: string;
|
|
2065
2069
|
};
|
|
2066
|
-
declare const HeaderCell: ({ children, className, isOrdered, onOrder, orderDirection, width, maxWidth, minWidth, info, }: HeaderCellProps) =>
|
|
2070
|
+
declare const HeaderCell: ({ children, className, isOrdered, onOrder, orderDirection, width, maxWidth, minWidth, info, }: HeaderCellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2067
2071
|
|
|
2068
2072
|
type SelectBarProps<T> = {
|
|
2069
2073
|
className?: string;
|
|
@@ -2077,7 +2081,7 @@ type SelectBarProps<T> = {
|
|
|
2077
2081
|
* */
|
|
2078
2082
|
idKey: keyof T;
|
|
2079
2083
|
};
|
|
2080
|
-
declare function SelectBar<T>({ children, data, idKey, className, }: SelectBarProps<T>):
|
|
2084
|
+
declare function SelectBar<T>({ children, data, idKey, className, }: SelectBarProps<T>): _emotion_react_jsx_runtime.JSX.Element | null;
|
|
2081
2085
|
|
|
2082
2086
|
type ColumnProps = Pick<ComponentProps<typeof HeaderCell>, 'isOrdered' | 'onOrder' | 'orderDirection'> & {
|
|
2083
2087
|
label?: string;
|
|
@@ -2100,20 +2104,20 @@ type TableProps = {
|
|
|
2100
2104
|
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>> & {
|
|
2101
2105
|
Body: ({ children }: {
|
|
2102
2106
|
children: ReactNode;
|
|
2103
|
-
}) =>
|
|
2107
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2104
2108
|
Row: ({ children, className, id, selectDisabled, "data-testid": dataTestid, }: {
|
|
2105
2109
|
children: ReactNode;
|
|
2106
2110
|
className?: string | undefined;
|
|
2107
2111
|
id: string;
|
|
2108
2112
|
'data-testid'?: string | undefined;
|
|
2109
2113
|
selectDisabled?: string | boolean | undefined;
|
|
2110
|
-
}) =>
|
|
2114
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2111
2115
|
Cell: ({ children, className, colSpan, rowSpan }: {
|
|
2112
2116
|
children?: ReactNode;
|
|
2113
2117
|
className?: string | undefined;
|
|
2114
2118
|
colSpan?: number | undefined;
|
|
2115
2119
|
rowSpan?: number | undefined;
|
|
2116
|
-
}) =>
|
|
2120
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2117
2121
|
useTableContext: () => {
|
|
2118
2122
|
bordered: boolean;
|
|
2119
2123
|
stripped: boolean;
|
|
@@ -2139,7 +2143,7 @@ type TabsProps = {
|
|
|
2139
2143
|
'data-testid'?: string;
|
|
2140
2144
|
} & Omit<HTMLAttributes<HTMLElement>, 'onChange' | 'role'>;
|
|
2141
2145
|
declare const Tabs: {
|
|
2142
|
-
({ children, onChange, moreDisclosure, selected, className, "data-testid": dataTestId, ...props }: TabsProps):
|
|
2146
|
+
({ children, onChange, moreDisclosure, selected, className, "data-testid": dataTestId, ...props }: TabsProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
2143
2147
|
Tab: react.ForwardRefExoticComponent<Omit<{
|
|
2144
2148
|
as?: react.ElementType | undefined;
|
|
2145
2149
|
badge?: ReactNode;
|
|
@@ -2172,7 +2176,7 @@ declare const Tabs: {
|
|
|
2172
2176
|
'data-testid'?: string | undefined;
|
|
2173
2177
|
} & react.RefAttributes<HTMLElement> & {
|
|
2174
2178
|
theme?: _emotion_react.Theme | undefined;
|
|
2175
|
-
}) =>
|
|
2179
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2176
2180
|
};
|
|
2177
2181
|
|
|
2178
2182
|
type TagProps = {
|
|
@@ -2191,7 +2195,7 @@ type TagProps = {
|
|
|
2191
2195
|
children: ReactNode;
|
|
2192
2196
|
'data-testid'?: string;
|
|
2193
2197
|
};
|
|
2194
|
-
declare const Tag: ({ children, isLoading, onClose, icon, copiable, copyText, copiedText, disabled, sentiment, className, "data-testid": dataTestId, }: TagProps) =>
|
|
2198
|
+
declare const Tag: ({ children, isLoading, onClose, icon, copiable, copyText, copiedText, disabled, sentiment, className, "data-testid": dataTestId, }: TagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2195
2199
|
|
|
2196
2200
|
declare const variants: {
|
|
2197
2201
|
readonly base: ({ theme: { colors, shadows, radii } }: {
|
|
@@ -2274,7 +2278,7 @@ type TextProps = {
|
|
|
2274
2278
|
htmlFor?: string;
|
|
2275
2279
|
'data-testid'?: string;
|
|
2276
2280
|
};
|
|
2277
|
-
declare const Text: ({ variant, children, as, color, oneLine, prominence, className, disabled, italic, underline, id, dir, htmlFor, "data-testid": dataTestId, }: TextProps) =>
|
|
2281
|
+
declare const Text: ({ variant, children, as, color, oneLine, prominence, className, disabled, italic, underline, id, dir, htmlFor, "data-testid": dataTestId, }: TextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2278
2282
|
|
|
2279
2283
|
declare const inputSizes: {
|
|
2280
2284
|
medium: {
|
|
@@ -2385,7 +2389,7 @@ type ToastContainerProps = {
|
|
|
2385
2389
|
position?: ToastOptions['position'];
|
|
2386
2390
|
'data-testid'?: string;
|
|
2387
2391
|
};
|
|
2388
|
-
declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, }: ToastContainerProps) =>
|
|
2392
|
+
declare const ToastContainer: ({ newestOnTop, limit, position, "data-testid": dataTestId, }: ToastContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2389
2393
|
|
|
2390
2394
|
type ToggleProps = {
|
|
2391
2395
|
id?: string;
|
|
@@ -316,6 +316,10 @@ const StyledIcon = /*#__PURE__*/_styled('svg', {
|
|
|
316
316
|
const icon = `icon${definedProminence}${disabled ? 'Disabled' : ''}`;
|
|
317
317
|
return theme.colors?.[color]?.[icon] || color;
|
|
318
318
|
}, ";", sizeStyles, ";");
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated This component is deprecated. Please use `Icon` from `@ultraviolet/icons` instead.
|
|
321
|
+
* The component is same but has been move on another package.
|
|
322
|
+
*/
|
|
319
323
|
const Icon = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
320
324
|
let {
|
|
321
325
|
name = 'alert',
|
|
@@ -25,11 +25,17 @@ const Cell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
25
25
|
event.stopPropagation();
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
+
const handleKeyDown = event => {
|
|
29
|
+
if (preventClick) {
|
|
30
|
+
event.stopPropagation();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
28
33
|
return jsx(StyledCell, {
|
|
29
34
|
ref: ref,
|
|
30
35
|
role: "cell",
|
|
31
36
|
className: className,
|
|
32
37
|
onClick: handleClick,
|
|
38
|
+
onKeyDown: handleKeyDown,
|
|
33
39
|
"data-testid": dataTestid,
|
|
34
40
|
children: children
|
|
35
41
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Ultraviolet UI",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -26,10 +26,12 @@
|
|
|
26
26
|
"linux"
|
|
27
27
|
],
|
|
28
28
|
"sideEffects": false,
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
29
|
+
"type": "module",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/src/index.js"
|
|
34
|
+
},
|
|
33
35
|
"peerDependencies": {
|
|
34
36
|
"@emotion/react": "11.11.1",
|
|
35
37
|
"@emotion/styled": "11.11.0",
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
"react-dom": "18.2.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
|
40
|
-
"@babel/core": "7.22.
|
|
42
|
+
"@babel/core": "7.22.8",
|
|
41
43
|
"@emotion/babel-plugin": "11.11.0",
|
|
42
44
|
"@emotion/react": "11.11.1",
|
|
43
45
|
"@emotion/styled": "11.11.0",
|
|
@@ -55,16 +57,16 @@
|
|
|
55
57
|
"@nivo/pie": "0.80.0",
|
|
56
58
|
"@nivo/scales": "0.80.0",
|
|
57
59
|
"@nivo/tooltip": "0.80.0",
|
|
58
|
-
"@scaleway/random-name": "4.0.
|
|
59
|
-
"@scaleway/use-media": "2.0.
|
|
60
|
+
"@scaleway/random-name": "4.0.2",
|
|
61
|
+
"@scaleway/use-media": "2.0.1",
|
|
60
62
|
"deepmerge": "4.3.1",
|
|
61
63
|
"prop-types": "15.8.1",
|
|
62
|
-
"react-datepicker": "4.
|
|
64
|
+
"react-datepicker": "4.16.0",
|
|
63
65
|
"react-flatten-children": "1.1.2",
|
|
64
|
-
"react-select": "5.7.
|
|
66
|
+
"react-select": "5.7.4",
|
|
65
67
|
"react-toastify": "9.1.3",
|
|
66
68
|
"react-use-clipboard": "1.0.9",
|
|
67
69
|
"reakit": "1.3.11",
|
|
68
|
-
"@ultraviolet/themes": "1.1.
|
|
70
|
+
"@ultraviolet/themes": "1.1.5"
|
|
69
71
|
}
|
|
70
72
|
}
|