aidos-ui 5.0.3 → 5.0.5
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/index.d.ts +66 -34
- package/dist/index.js +278 -122
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,15 +21,17 @@ type Gap = Spacing;
|
|
|
21
21
|
type Padding = Spacing | [Spacing, Spacing];
|
|
22
22
|
type Margin = Spacing | [Spacing, Spacing];
|
|
23
23
|
type Material = "aurora" | "dawn" | "mist" | "twilight";
|
|
24
|
+
type Surface = "primary" | "secondary" | "overlay";
|
|
24
25
|
type Direction = "horizontal" | "vertical";
|
|
25
26
|
type Position = "start" | "end";
|
|
26
27
|
type Justify = "none" | "center" | "flex-start" | "space-between" | "flex-end" | "stretch";
|
|
27
28
|
type Align = "none" | "center" | "stretch" | "flex-start" | "flex-end";
|
|
28
29
|
type FlexDirection = "row" | "column";
|
|
29
30
|
type Color = "none" | "light" | "dark" | "negative" | "warning" | "highlight" | "primary-background" | "secondary-background" | "divider" | "inherit";
|
|
30
|
-
type TextColor = "primary" | "secondary" | "highlight" | "negative" | "subtle" | "light" | "inverse" | "inherit";
|
|
31
|
+
type TextColor = "primary" | "secondary" | "highlight" | "warning" | "negative" | "subtle" | "light" | "inverse" | "inherit";
|
|
31
32
|
declare function cssVar(string: keyof Theme): string;
|
|
32
33
|
declare function getMaterial(material: Material): Styles;
|
|
34
|
+
declare function getSurface(surface: Surface): Styles;
|
|
33
35
|
declare function getSize(size: Size): string;
|
|
34
36
|
declare function getSpacing(spacing: Spacing): string;
|
|
35
37
|
declare function getPadding(padding: Padding): JSS;
|
|
@@ -99,9 +101,9 @@ declare const getBackground: (color: Color) => JSS;
|
|
|
99
101
|
declare const MOBILE = 750;
|
|
100
102
|
declare const TABLET = 1000;
|
|
101
103
|
declare const LAPTOP = 1200;
|
|
102
|
-
declare const MOBILE_MEDIA = "@media (min-width: 0px) and (max-width:
|
|
103
|
-
declare const TABLET_MEDIA = "@media (min-width: 750px) and (max-width:
|
|
104
|
-
declare const LAPTOP_MEDIA = "@media (min-width: 1000px) and (max-width:
|
|
104
|
+
declare const MOBILE_MEDIA = "@media (min-width: 0px) and (max-width: 749px)";
|
|
105
|
+
declare const TABLET_MEDIA = "@media (min-width: 750px) and (max-width: 999px)";
|
|
106
|
+
declare const LAPTOP_MEDIA = "@media (min-width: 1000px) and (max-width: 1199px)";
|
|
105
107
|
declare const DESKTOP_MEDIA = "@media (min-width: 1200px)";
|
|
106
108
|
declare function mobile(jss: JSS): {
|
|
107
109
|
[key: string]: JSS;
|
|
@@ -131,6 +133,8 @@ declare const getTextColor: (color: TextColor) => {
|
|
|
131
133
|
color: string;
|
|
132
134
|
} | {
|
|
133
135
|
color: string;
|
|
136
|
+
} | {
|
|
137
|
+
color: string;
|
|
134
138
|
};
|
|
135
139
|
declare function getBaseStyles(themes: {
|
|
136
140
|
light: Theme;
|
|
@@ -147,6 +151,41 @@ interface AvatarProps {
|
|
|
147
151
|
}
|
|
148
152
|
declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLElement>>;
|
|
149
153
|
|
|
154
|
+
interface BaseViewProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
155
|
+
jss?: JSS;
|
|
156
|
+
ref?: React__default.Ref<HTMLDivElement>;
|
|
157
|
+
className?: undefined;
|
|
158
|
+
grow?: boolean;
|
|
159
|
+
shrink?: boolean;
|
|
160
|
+
relative?: boolean;
|
|
161
|
+
tag?: keyof HTMLElementTagNameMap;
|
|
162
|
+
}
|
|
163
|
+
declare const BaseView: React__default.ForwardRefExoticComponent<Omit<BaseViewProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
164
|
+
|
|
165
|
+
interface FlexLayoutProps extends BaseViewProps {
|
|
166
|
+
justify?: Justify;
|
|
167
|
+
gap?: Gap;
|
|
168
|
+
align?: Align;
|
|
169
|
+
padding?: Padding;
|
|
170
|
+
direction?: FlexDirection;
|
|
171
|
+
surface?: Surface;
|
|
172
|
+
basis?: string | number;
|
|
173
|
+
}
|
|
174
|
+
declare const FlexLayout: React__default.ForwardRefExoticComponent<Omit<FlexLayoutProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
175
|
+
|
|
176
|
+
interface RowProps extends FlexLayoutProps {
|
|
177
|
+
direction?: "row";
|
|
178
|
+
wrap?: boolean;
|
|
179
|
+
}
|
|
180
|
+
declare const Row: React__default.ForwardRefExoticComponent<Omit<RowProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
181
|
+
|
|
182
|
+
interface AvatarStackProps extends Omit<RowProps, "children" | "gap"> {
|
|
183
|
+
children: ReactNode;
|
|
184
|
+
overlap?: number;
|
|
185
|
+
jss?: JSS;
|
|
186
|
+
}
|
|
187
|
+
declare const AvatarStack: React__default.ForwardRefExoticComponent<Omit<AvatarStackProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
188
|
+
|
|
150
189
|
declare function Badge({ size, color, jss, }: {
|
|
151
190
|
size?: Size;
|
|
152
191
|
color?: Color;
|
|
@@ -197,26 +236,6 @@ interface BaseLinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorEl
|
|
|
197
236
|
declare const BaseLinkComponentOverrideContext: React__default.Context<(props: any) => react_jsx_runtime.JSX.Element>;
|
|
198
237
|
declare const BaseLink: React__default.ForwardRefExoticComponent<BaseLinkProps & React__default.RefAttributes<HTMLAnchorElement>>;
|
|
199
238
|
|
|
200
|
-
interface BaseViewProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
201
|
-
jss?: JSS;
|
|
202
|
-
ref?: React__default.Ref<HTMLDivElement>;
|
|
203
|
-
className?: undefined;
|
|
204
|
-
grow?: boolean;
|
|
205
|
-
shrink?: boolean;
|
|
206
|
-
relative?: boolean;
|
|
207
|
-
tag?: keyof HTMLElementTagNameMap;
|
|
208
|
-
}
|
|
209
|
-
declare const BaseView: React__default.ForwardRefExoticComponent<Omit<BaseViewProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
210
|
-
|
|
211
|
-
interface FlexLayoutProps extends BaseViewProps {
|
|
212
|
-
justify?: Justify;
|
|
213
|
-
gap?: Gap;
|
|
214
|
-
align?: Align;
|
|
215
|
-
padding?: Padding;
|
|
216
|
-
direction?: FlexDirection;
|
|
217
|
-
}
|
|
218
|
-
declare const FlexLayout: React__default.ForwardRefExoticComponent<Omit<FlexLayoutProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
219
|
-
|
|
220
239
|
interface ColumnProps extends FlexLayoutProps {
|
|
221
240
|
direction?: "column";
|
|
222
241
|
}
|
|
@@ -231,11 +250,6 @@ interface BaseListAddOnProps extends BaseViewProps {
|
|
|
231
250
|
}
|
|
232
251
|
declare const BaseListAddOn: React__default.ForwardRefExoticComponent<Omit<BaseListAddOnProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
233
252
|
|
|
234
|
-
interface RowProps extends FlexLayoutProps {
|
|
235
|
-
direction?: "row";
|
|
236
|
-
}
|
|
237
|
-
declare const Row: React__default.ForwardRefExoticComponent<Omit<RowProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
238
|
-
|
|
239
253
|
interface BaseListItemProps extends Omit<RowProps, "children" | "jss" | "role"> {
|
|
240
254
|
children: (elements: {
|
|
241
255
|
content: React__default.JSX.Element;
|
|
@@ -249,6 +263,7 @@ interface BaseListItemProps extends Omit<RowProps, "children" | "jss" | "role">
|
|
|
249
263
|
body?: string;
|
|
250
264
|
bodySize?: Size;
|
|
251
265
|
bodyColor?: TextColor;
|
|
266
|
+
bodyEllipsis?: boolean;
|
|
252
267
|
addOn?: ReactNode;
|
|
253
268
|
addOnPosition?: Position;
|
|
254
269
|
outerAddOn?: ReactNode;
|
|
@@ -310,7 +325,7 @@ declare const Calendar: React__default.ForwardRefExoticComponent<{
|
|
|
310
325
|
}) => React__default.JSX.Element;
|
|
311
326
|
} & React__default.RefAttributes<HTMLElement>>;
|
|
312
327
|
|
|
313
|
-
type CardVariant = "default" | "tonal" | "floating";
|
|
328
|
+
type CardVariant = "default" | "tonal" | "floating" | "flat";
|
|
314
329
|
interface CardProps extends FlexLayoutProps {
|
|
315
330
|
variant?: CardVariant;
|
|
316
331
|
material?: Material;
|
|
@@ -400,12 +415,14 @@ declare function guid(): string;
|
|
|
400
415
|
|
|
401
416
|
declare function hash(source: string, modulus?: number): number;
|
|
402
417
|
|
|
403
|
-
|
|
418
|
+
interface IconProps {
|
|
404
419
|
ariaLabel?: string;
|
|
405
420
|
icon: IconType;
|
|
406
421
|
size: Size;
|
|
407
422
|
color: TextColor;
|
|
408
|
-
|
|
423
|
+
jss?: JSS;
|
|
424
|
+
}
|
|
425
|
+
declare function Icon({ icon, size, color, ariaLabel, jss }: IconProps): react_jsx_runtime.JSX.Element;
|
|
409
426
|
|
|
410
427
|
interface IconButtonProps extends Omit<BaseButtonProps, "border" | "padding"> {
|
|
411
428
|
icon: IconType;
|
|
@@ -438,7 +455,7 @@ interface ListProps extends BaseListProps {
|
|
|
438
455
|
role?: undefined;
|
|
439
456
|
navigation?: boolean;
|
|
440
457
|
}
|
|
441
|
-
declare function List({ ariaLabel, jss, autofocus, navigation, ...otherProps }: ListProps): react_jsx_runtime.JSX.Element;
|
|
458
|
+
declare function List({ ariaLabel, jss, gap, autofocus, navigation, ...otherProps }: ListProps): react_jsx_runtime.JSX.Element;
|
|
442
459
|
|
|
443
460
|
interface ListButtonItemProps extends Omit<BaseListItemProps, "children" | "onClick"> {
|
|
444
461
|
color?: InteractableColor;
|
|
@@ -824,6 +841,21 @@ interface TimeInputProps {
|
|
|
824
841
|
}
|
|
825
842
|
declare const TimeInput: React__default.ForwardRefExoticComponent<TimeInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
826
843
|
|
|
844
|
+
interface ToolbarProps extends Omit<RowProps, "children"> {
|
|
845
|
+
headline: ReactNode;
|
|
846
|
+
body?: ReactNode;
|
|
847
|
+
leading?: ReactNode;
|
|
848
|
+
actions?: ReactNode;
|
|
849
|
+
actionsGap?: Gap;
|
|
850
|
+
headlineColor?: TextColor;
|
|
851
|
+
headlineSize?: Size;
|
|
852
|
+
headlineBold?: boolean;
|
|
853
|
+
bodyColor?: TextColor;
|
|
854
|
+
bodySize?: Size;
|
|
855
|
+
bodyEllipsis?: boolean;
|
|
856
|
+
}
|
|
857
|
+
declare const Toolbar: React__default.ForwardRefExoticComponent<Omit<ToolbarProps, "ref"> & React__default.RefAttributes<HTMLElement>>;
|
|
858
|
+
|
|
827
859
|
interface TooltipProps {
|
|
828
860
|
content: string;
|
|
829
861
|
jss?: JSS;
|
|
@@ -873,4 +905,4 @@ declare function usePromise<T>(promiseFactory: () => Promise<T>, inputs: Readonl
|
|
|
873
905
|
|
|
874
906
|
declare function useRefEffect<T>(callback: (root: T) => (() => void) | void): (root: T) => void;
|
|
875
907
|
|
|
876
|
-
export { type Align, Avatar, type AvatarProps, type AvatarSize, Badge, BaseButton, type BaseButtonProps, BaseInput, type BaseInputProps, BaseLink, BaseLinkComponentOverrideContext, type BaseLinkProps, BaseList, BaseListAddOn, type BaseListAddOnProps, BaseListItem, type BaseListItemProps, type BaseListProps, BaseView, type BaseViewProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupOption, type ButtonGroupProps, type ButtonGroupValue, type ButtonProps, Calendar, type Callback, Card, type CardProps, type CardVariant, Checkbox, Circle, type Color, Column, type ColumnProps, DESKTOP_MEDIA, DarkModeContext, DarkModeProvider, DarkModeToggle, DateInput, type DateInputProps, DatetimeInput, type DatetimeInputProps, Dialog, DialogProvider, type Direction, type FlexDirection, FlexLayout, type FlexLayoutProps, type Gap, H1, H2, H3, H4, Icon, IconButton, type IconButtonProps, IconLink, type IconLinkProps, type IconType, type JSS, JSSProvider, JSServerStyles, type Justify, type KeyboardShortcut, LAPTOP, LAPTOP_MEDIA, Label, Li, Link, type LinkProps, List, ListButtonItem, ListDivider, ListHeaderItem, ListItem, ListLinkItem, ListSpacer, MOBILE, MOBILE_MEDIA, type Margin, type Material, MenuIcon, NavigationSplitView, type NavigationSplitViewProps, OnVisible, P, type Padding, Popover, PopoverTrigger, type Position, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Providers, RangeInput, type RangeInputProps, type Reducer, RootView, Row, type RowProps, Select, type SelectOption, type SelectProps, type SelectValue, type Size, type Spacing, Span, StackContextProvider, StaticCheckbox, type Styles, Sublist, SubmitIconInput, type Subscribe, TABLET, TABLET_MEDIA, type Tab, TabBar, type TabBarProps, type TabBarVariant, Table, type TableProps, Tabs, type TabsProps, type TabsVariant, Text, TextArea, type TextAreaProps, type TextColor, TextInput, type TextInputProps, TextInputWithState, type TextInputWithStateProps, TextPairing, type TextPairingProps, type TextProps, type TextType, type Theme, TimeInput, type TimeInputProps, Toggle, type ToggleProps, Tooltip, baseStyles, createEmitter, createStorage, cssVar, darkTheme, desktop, getBackground, getBaseStyles, getColorValue, getCookie, getMargin, getMaterial, getPadding, getSize, getSpacing, getTextColor, guid, hasCookie, hash, laptop, lightTheme, mobile, numberToBase, sizes, stateMachineContextFactory, tablet, timeFormatter, toClassnames, useCookie, useDialog, useIsTopOfStack, useKeyboard, useNavigation, usePromise, useRefEffect, useStream };
|
|
908
|
+
export { type Align, Avatar, type AvatarProps, type AvatarSize, AvatarStack, type AvatarStackProps, Badge, BaseButton, type BaseButtonProps, BaseInput, type BaseInputProps, BaseLink, BaseLinkComponentOverrideContext, type BaseLinkProps, BaseList, BaseListAddOn, type BaseListAddOnProps, BaseListItem, type BaseListItemProps, type BaseListProps, BaseView, type BaseViewProps, Box, type BoxProps, Button, ButtonGroup, type ButtonGroupOption, type ButtonGroupProps, type ButtonGroupValue, type ButtonProps, Calendar, type Callback, Card, type CardProps, type CardVariant, Checkbox, Circle, type Color, Column, type ColumnProps, DESKTOP_MEDIA, DarkModeContext, DarkModeProvider, DarkModeToggle, DateInput, type DateInputProps, DatetimeInput, type DatetimeInputProps, Dialog, DialogProvider, type Direction, type FlexDirection, FlexLayout, type FlexLayoutProps, type Gap, H1, H2, H3, H4, Icon, IconButton, type IconButtonProps, IconLink, type IconLinkProps, type IconProps, type IconType, type InteractableColor, type JSS, JSSProvider, JSServerStyles, type Justify, type KeyboardShortcut, LAPTOP, LAPTOP_MEDIA, Label, Li, Link, type LinkProps, List, ListButtonItem, type ListButtonItemProps, ListDivider, ListHeaderItem, ListItem, type ListItemProps, ListLinkItem, type ListLinkItemProps, type ListProps, ListSpacer, MOBILE, MOBILE_MEDIA, type Margin, type Material, MenuIcon, NavigationSplitView, type NavigationSplitViewProps, OnVisible, P, type Padding, Popover, PopoverTrigger, type Position, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressCircle, type ProgressCircleProps, type ProgressCircleSize, Providers, RangeInput, type RangeInputProps, type Reducer, RootView, Row, type RowProps, Select, type SelectOption, type SelectProps, type SelectValue, type Size, type Spacing, Span, StackContextProvider, StaticCheckbox, type Styles, Sublist, SubmitIconInput, type Subscribe, type Surface, TABLET, TABLET_MEDIA, type Tab, TabBar, type TabBarProps, type TabBarVariant, Table, type TableProps, Tabs, type TabsProps, type TabsVariant, Text, TextArea, type TextAreaProps, type TextColor, TextInput, type TextInputProps, TextInputWithState, type TextInputWithStateProps, TextPairing, type TextPairingProps, type TextProps, type TextType, type Theme, TimeInput, type TimeInputProps, Toggle, type ToggleProps, Toolbar, type ToolbarProps, Tooltip, baseStyles, createEmitter, createStorage, cssVar, darkTheme, desktop, getBackground, getBaseStyles, getColorValue, getCookie, getMargin, getMaterial, getPadding, getSize, getSpacing, getSurface, getTextColor, guid, hasCookie, hash, laptop, lightTheme, mobile, numberToBase, sizes, stateMachineContextFactory, tablet, timeFormatter, toClassnames, useCookie, useDialog, useIsTopOfStack, useKeyboard, useNavigation, usePromise, useRefEffect, useStream };
|