@connectif/ui-components 0.0.3 → 0.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.
Files changed (55) hide show
  1. package/dist/components/alert/index.d.ts +2 -1
  2. package/dist/components/avatar/index.d.ts +6 -3
  3. package/dist/components/button/Button.d.ts +1 -1
  4. package/dist/components/button/ButtonWithActions.d.ts +3 -3
  5. package/dist/components/button/IconButton.d.ts +1 -1
  6. package/dist/components/button/IconToggleButton.d.ts +1 -1
  7. package/dist/components/button/MenuButton.d.ts +1 -1
  8. package/dist/components/button/MenuIconButton.d.ts +3 -3
  9. package/dist/components/button/index.d.ts +22 -11
  10. package/dist/components/card/index.d.ts +28 -14
  11. package/dist/components/chart/index.d.ts +16 -8
  12. package/dist/components/chat/index.d.ts +4 -2
  13. package/dist/components/chip/Chip.d.ts +1 -1
  14. package/dist/components/chip/MenuChip.d.ts +1 -1
  15. package/dist/components/chip/index.d.ts +6 -3
  16. package/dist/components/dialog/index.d.ts +4 -2
  17. package/dist/components/divider/index.d.ts +2 -1
  18. package/dist/components/drawer/index.d.ts +4 -2
  19. package/dist/components/formatter/index.d.ts +10 -5
  20. package/dist/components/header/index.d.ts +6 -3
  21. package/dist/components/icon/index.d.ts +2 -1
  22. package/dist/components/image/index.d.ts +2 -1
  23. package/dist/components/info/index.d.ts +2 -1
  24. package/dist/components/input/DatePicker.d.ts +1 -1
  25. package/dist/components/input/InputLabel.d.ts +3 -2
  26. package/dist/components/input/NumberField.d.ts +1 -1
  27. package/dist/components/input/PhoneField.d.ts +1 -1
  28. package/dist/components/input/TextField.d.ts +2 -1
  29. package/dist/components/input/index.d.ts +52 -26
  30. package/dist/components/layout/index.d.ts +24 -12
  31. package/dist/components/list/ListItemButton.d.ts +1 -1
  32. package/dist/components/list/index.d.ts +6 -3
  33. package/dist/components/navbar/index.d.ts +8 -4
  34. package/dist/components/overlay/index.d.ts +2 -1
  35. package/dist/components/popover/index.d.ts +2 -1
  36. package/dist/components/progress/CircularProgress.d.ts +24 -3
  37. package/dist/components/progress/DonutProgress.d.ts +48 -0
  38. package/dist/components/progress/index.d.ts +6 -2
  39. package/dist/components/scrollable/index.d.ts +2 -1
  40. package/dist/components/skeleton/index.d.ts +2 -1
  41. package/dist/components/snackbar/index.d.ts +2 -1
  42. package/dist/components/tab/index.d.ts +6 -3
  43. package/dist/components/table/index.d.ts +16 -8
  44. package/dist/components/toolbar/index.d.ts +8 -4
  45. package/dist/components/tooltip/Tooltip.d.ts +1 -1
  46. package/dist/components/tooltip/index.d.ts +8 -4
  47. package/dist/components/transition/index.d.ts +2 -1
  48. package/dist/components/typography/Typography.d.ts +1 -1
  49. package/dist/components/typography/index.d.ts +4 -2
  50. package/dist/components/widget/index.d.ts +8 -4
  51. package/dist/components/window/index.d.ts +2 -1
  52. package/dist/index.js +8104 -7935
  53. package/dist/theme/Colors.d.ts +9 -0
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/package.json +19 -15
@@ -1,9 +1,14 @@
1
+ import * as React from 'react';
2
+ import { CircularProgressProps as MuiCircularProgressProps } from '@mui/material/CircularProgress';
3
+ import { TypographyVariant } from '../../theme/Typography';
1
4
  declare const circularSizes: {
2
5
  readonly XS: "20px";
3
6
  readonly SM: "24px";
4
7
  readonly MD: "40px";
8
+ readonly LG: "48px";
9
+ readonly XL: "64px";
5
10
  };
6
- export type CircularProgressProps = {
11
+ export type CircularProgressProps = Pick<MuiCircularProgressProps, 'thickness'> & {
7
12
  /**
8
13
  * The value to fill the circular progress bar. Only applied with determinate variant
9
14
  */
@@ -11,7 +16,7 @@ export type CircularProgressProps = {
11
16
  /**
12
17
  * The label to set on the circular progress. Only applied with determinate variant
13
18
  */
14
- label?: string;
19
+ label?: string | React.ReactNode;
15
20
  /**
16
21
  * The size of the circle.
17
22
  */
@@ -29,6 +34,22 @@ export type CircularProgressProps = {
29
34
  * Show the circular background not filled in circular progress.
30
35
  */
31
36
  showCircularBackground?: boolean;
37
+ /**
38
+ * Whether the stroke of the circular progress should be rounded.
39
+ */
40
+ roundedStroke?: boolean;
41
+ /**
42
+ * The rotation degrees of the circular progress.
43
+ */
44
+ rotationDegrees?: number;
45
+ /**
46
+ * The typography variant to use for the label.
47
+ */
48
+ typographyVariant?: TypographyVariant;
49
+ /**
50
+ * The color of the typography.
51
+ */
52
+ typographyColor?: string;
32
53
  };
33
- declare const CircularProgress: ({ value, label, variant, color, size, showCircularBackground }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
54
+ declare const CircularProgress: ({ value, label, variant, color, size, showCircularBackground, thickness, roundedStroke, rotationDegrees, typographyVariant, typographyColor }: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
34
55
  export default CircularProgress;
@@ -0,0 +1,48 @@
1
+ import { CircularProgressProps } from './CircularProgress';
2
+ declare const variants: {
3
+ readonly empty: {
4
+ readonly emptyColor: "#EEEEEE";
5
+ readonly filledColor: "transparent";
6
+ readonly labelChipBackgroundColor: "transparent";
7
+ readonly labelChipColor: "transparent";
8
+ };
9
+ readonly success: {
10
+ readonly emptyColor: "#C3F6C5";
11
+ readonly filledColor: "#00CA20";
12
+ readonly labelChipBackgroundColor: "#E6FCE8";
13
+ readonly labelChipColor: "#008400";
14
+ };
15
+ readonly warning: {
16
+ readonly emptyColor: "#F5E0B9";
17
+ readonly filledColor: "#E29029";
18
+ readonly labelChipBackgroundColor: "#FBF3E3";
19
+ readonly labelChipColor: "#CC5D14";
20
+ };
21
+ readonly error: {
22
+ readonly emptyColor: "#FFCDD2";
23
+ readonly filledColor: "#E53935";
24
+ readonly labelChipBackgroundColor: "#FFEBEE";
25
+ readonly labelChipColor: "#B71C1C";
26
+ };
27
+ };
28
+ export type DonutProgressProps = Pick<CircularProgressProps, 'size'> & {
29
+ /**
30
+ * The percentage to fill the donut progress bar. Value is from 0 to 100.
31
+ */
32
+ percentage: number;
33
+ /**
34
+ * The variant of the donut progress.
35
+ */
36
+ variant: keyof typeof variants;
37
+ /**
38
+ * The label to set on the donut progress.
39
+ */
40
+ label?: string;
41
+ /**
42
+ * Show percentage in label.
43
+ */
44
+ showPercentageSymbol?: boolean;
45
+ labelChip?: string;
46
+ };
47
+ declare const DonutProgress: ({ label, variant, size, percentage, labelChip, showPercentageSymbol }: DonutProgressProps) => import("react/jsx-runtime").JSX.Element;
48
+ export default DonutProgress;
@@ -1,2 +1,6 @@
1
- export { default as LinearProgress, LinearProgressProps } from './LinearProgress';
2
- export { default as CircularProgress, CircularProgressProps } from './CircularProgress';
1
+ export { default as LinearProgress } from './LinearProgress';
2
+ export type { LinearProgressProps } from './LinearProgress';
3
+ export { default as CircularProgress } from './CircularProgress';
4
+ export type { CircularProgressProps } from './CircularProgress';
5
+ export { default as DonutProgress } from './DonutProgress';
6
+ export type { DonutProgressProps } from './DonutProgress';
@@ -1 +1,2 @@
1
- export { default as HorizontalScrollable, HorizontalScrollableProps } from './HorizontalScrollable';
1
+ export { default as HorizontalScrollable } from './HorizontalScrollable';
2
+ export type { HorizontalScrollableProps } from './HorizontalScrollable';
@@ -1 +1,2 @@
1
- export { default as Skeleton, SkeletonProps } from '../skeleton/Skeleton';
1
+ export { default as Skeleton } from '../skeleton/Skeleton';
2
+ export type { SkeletonProps } from '../skeleton/Skeleton';
@@ -1,3 +1,4 @@
1
1
  export { default as SnackbarProvider } from './SnackbarProvider';
2
- export { default as Snackbar, SnackbarProps } from './Snackbar';
3
2
  export * from './enqueueSnackbar';
3
+ export { default as Snackbar } from './Snackbar';
4
+ export type { SnackbarProps } from './Snackbar';
@@ -1,3 +1,6 @@
1
- export { default as TabButton, TabButtonProps } from './TabButton';
2
- export { default as Tabs, TabsProps } from './Tabs';
3
- export { default as TabContent, TabContentProps } from './TabContent';
1
+ export { default as TabButton } from './TabButton';
2
+ export { default as Tabs } from './Tabs';
3
+ export { default as TabContent } from './TabContent';
4
+ export type { TabButtonProps } from './TabButton';
5
+ export type { TabsProps } from './Tabs';
6
+ export type { TabContentProps } from './TabContent';
@@ -1,9 +1,17 @@
1
- export { default as Table, TableProps } from './Table';
2
- export { default as TableBody, TableBodyProps } from './TableBody';
3
- export { default as TableCell, TableCellProps } from './TableCell';
4
- export { default as TableCellCopy, TableCellCopyProps } from './TableCellCopy';
5
1
  export { default as TableDivider } from './TableDivider';
6
- export { default as TableHead, TableHeadProps } from './TableHead';
7
- export { default as TableRow, TableRowProps } from './TableRow';
8
- export { default as TableSortLabel, TableSortLabelProps } from './TableSortLabel';
9
- export { default as NestedTable, NestedTableProps } from './NestedTable';
2
+ export { default as TableSortLabel } from './TableSortLabel';
3
+ export type { TableSortLabelProps } from './TableSortLabel';
4
+ export { default as Table } from './Table';
5
+ export { default as TableBody } from './TableBody';
6
+ export { default as TableCell } from './TableCell';
7
+ export { default as TableCellCopy } from './TableCellCopy';
8
+ export { default as TableHead } from './TableHead';
9
+ export { default as TableRow } from './TableRow';
10
+ export { default as NestedTable } from './NestedTable';
11
+ export type { TableProps } from './Table';
12
+ export type { TableBodyProps } from './TableBody';
13
+ export type { TableCellProps } from './TableCell';
14
+ export type { TableCellCopyProps } from './TableCellCopy';
15
+ export type { TableHeadProps } from './TableHead';
16
+ export type { TableRowProps } from './TableRow';
17
+ export type { NestedTableProps } from './NestedTable';
@@ -1,4 +1,8 @@
1
- export { default as Toolbar, ToolbarProps } from './Toolbar';
2
- export { default as ToolbarTitle, ToolbarTitleProps } from './ToolbarTitle';
3
- export { default as ToolbarBreadcrumb, ToolbarBreadcrumbProps } from './ToolbarBreadcrumb';
4
- export { default as ToolbarBreadcrumbButton, ToolbarBreadcrumbButtonProps } from './ToolbarBreadcrumbButton';
1
+ export { default as ToolbarBreadcrumb } from './ToolbarBreadcrumb';
2
+ export type { ToolbarBreadcrumbProps } from './ToolbarBreadcrumb';
3
+ export { default as ToolbarBreadcrumbButton } from './ToolbarBreadcrumbButton';
4
+ export type { ToolbarBreadcrumbButtonProps } from './ToolbarBreadcrumbButton';
5
+ export { default as Toolbar } from './Toolbar';
6
+ export { default as ToolbarTitle } from './ToolbarTitle';
7
+ export type { ToolbarProps } from './Toolbar';
8
+ export type { ToolbarTitleProps } from './ToolbarTitle';
@@ -55,5 +55,5 @@ export type TooltipProps = Pick<MuiTooltipProps, 'children' | 'disableHoverListe
55
55
  * - https://mui.com/material-ui/guides/composition/#caveat-with-refs
56
56
  * - https://reactjs.org/docs/forwarding-refs.html#forwarding-refs-to-dom-components
57
57
  */
58
- declare const Tooltip: ({ children, title, placement, interactive, allowDisabled, variant, textVariant, enableArrow, borderRadius, popperClass, zIndex, ...rest }: TooltipProps) => React.ReactElement<any, any>;
58
+ declare const Tooltip: ({ children, title, placement, interactive, allowDisabled, variant, textVariant, enableArrow, borderRadius, popperClass, zIndex, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
59
59
  export default Tooltip;
@@ -1,4 +1,8 @@
1
- export { default as Tooltip, TooltipProps } from './Tooltip';
2
- export { default as TooltipMenu, TooltipMenuProps } from './TooltipMenu';
3
- export { default as TextEllipsisTooltip, TextEllipsisTooltipProps } from './TextEllipsisTooltip';
4
- export { default as TextEllipsis, TextEllipsisProps } from './TextEllipsis';
1
+ export { default as TextEllipsisTooltip } from './TextEllipsisTooltip';
2
+ export type { TextEllipsisTooltipProps } from './TextEllipsisTooltip';
3
+ export { default as Tooltip } from './Tooltip';
4
+ export { default as TooltipMenu } from './TooltipMenu';
5
+ export { default as TextEllipsis } from './TextEllipsis';
6
+ export type { TooltipProps } from './Tooltip';
7
+ export type { TooltipMenuProps } from './TooltipMenu';
8
+ export type { TextEllipsisProps } from './TextEllipsis';
@@ -1 +1,2 @@
1
- export { default as Slide, SlideProps } from './Slide';
1
+ export { default as Slide } from './Slide';
2
+ export type { SlideProps } from './Slide';
@@ -20,7 +20,7 @@ export type TypographyProps = Pick<MuiTypographyProps, 'noWrap' | 'sx' | 'childr
20
20
  /**
21
21
  * A component that displays text.
22
22
  */
23
- declare const Typography: React.ForwardRefExoticComponent<Pick<MuiTypographyProps, "id" | "className" | "children" | "sx" | "onMouseEnter" | "onMouseLeave" | "noWrap"> & {
23
+ declare const Typography: React.ForwardRefExoticComponent<Pick<MuiTypographyProps, "className" | "children" | "sx" | "id" | "onMouseEnter" | "onMouseLeave" | "noWrap"> & {
24
24
  variant?: TypographyVariant;
25
25
  /**
26
26
  * Color of the text.
@@ -1,2 +1,4 @@
1
- export { default as Typography, TypographyProps } from './Typography';
2
- export { default as TextMarker, TextMarkerProps } from './TextMarker';
1
+ export { default as Typography } from './Typography';
2
+ export { default as TextMarker } from './TextMarker';
3
+ export type { TypographyProps } from './Typography';
4
+ export type { TextMarkerProps } from './TextMarker';
@@ -1,4 +1,8 @@
1
- export { default as Widget, WidgetProps } from './Widget';
2
- export { default as WidgetActions, WidgetActionsProps } from './WidgetActions';
3
- export { default as WidgetLegendItem, WidgetLegendItemProps } from './WidgetLegendItem';
4
- export { default as WidgetTitle, WidgetTitleProps } from './WidgetTitle';
1
+ export { default as WidgetLegendItem } from './WidgetLegendItem';
2
+ export type { WidgetLegendItemProps } from './WidgetLegendItem';
3
+ export { default as Widget } from './Widget';
4
+ export { default as WidgetActions } from './WidgetActions';
5
+ export { default as WidgetTitle } from './WidgetTitle';
6
+ export type { WidgetProps } from './Widget';
7
+ export type { WidgetActionsProps } from './WidgetActions';
8
+ export type { WidgetTitleProps } from './WidgetTitle';
@@ -1 +1,2 @@
1
- export { default as MinimizableWindow, MinimizableWindowProps } from './MinimizableWindow';
1
+ export { default as MinimizableWindow } from './MinimizableWindow';
2
+ export type { MinimizableWindowProps } from './MinimizableWindow';