@selfdecode/sd-component-library 4.0.12 → 4.0.13-diet-2

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 (39) hide show
  1. package/lib/components/containers/layout-independend-max-width-container/interfaces.d.ts +4 -1
  2. package/lib/components/meters/compact-donut-gauge/compact-donut-gauge.d.ts +3 -0
  3. package/lib/components/meters/compact-donut-gauge/index.d.ts +1 -0
  4. package/lib/components/meters/compact-donut-gauge/interfaces.d.ts +12 -0
  5. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-segment/compact-donut-gauge-segment.d.ts +3 -0
  6. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-segment/index.d.ts +1 -0
  7. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-segment/interfaces.d.ts +5 -0
  8. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-value-indicator/compact-donut-gauge-value-indicator.d.ts +3 -0
  9. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-value-indicator/index.d.ts +1 -0
  10. package/lib/components/meters/compact-donut-gauge/partials/compact-donut-gauge-value-indicator/interfaces.d.ts +4 -0
  11. package/lib/components/meters/compact-donut-gauge/partials/index.d.ts +2 -0
  12. package/lib/components/meters/donut-diagram/donut-diagram.d.ts +3 -0
  13. package/lib/components/meters/donut-diagram/index.d.ts +1 -0
  14. package/lib/components/meters/donut-diagram/interfaces.d.ts +20 -0
  15. package/lib/components/meters/donut-diagram/partials/index.d.ts +1 -0
  16. package/lib/components/meters/donut-diagram/partials/segment/index.d.ts +1 -0
  17. package/lib/components/meters/donut-diagram/partials/segment/interfaces.d.ts +4 -0
  18. package/lib/components/meters/donut-diagram/partials/segment/segment.d.ts +3 -0
  19. package/lib/components/meters/donut-diagram/partials/segment-label/index.d.ts +1 -0
  20. package/lib/components/meters/donut-diagram/partials/segment-label/interfaces.d.ts +7 -0
  21. package/lib/components/meters/donut-diagram/partials/segment-label/segment-label.d.ts +3 -0
  22. package/lib/components/meters/donut-diagram/utils.d.ts +13 -0
  23. package/lib/components/meters/index.d.ts +4 -0
  24. package/lib/components/meters/linear-discrete-gauge-meter/index.d.ts +1 -0
  25. package/lib/components/meters/linear-discrete-gauge-meter/interfaces.d.ts +10 -0
  26. package/lib/components/meters/linear-discrete-gauge-meter/linear-discrete-gauge-meter.d.ts +3 -0
  27. package/lib/components/meters/linear-gauge-meter-partials/index.d.ts +2 -0
  28. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-label/index.d.ts +1 -0
  29. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-label/interfaces.d.ts +4 -0
  30. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-label/linear-gauge-label.d.ts +3 -0
  31. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-segment/index.d.ts +1 -0
  32. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-segment/interfaces.d.ts +6 -0
  33. package/lib/components/meters/linear-gauge-meter-partials/linear-gauge-segment/linear-gauge-segment.d.ts +3 -0
  34. package/lib/components/meters/linear-numeric-gauge-meter/index.d.ts +1 -0
  35. package/lib/components/meters/linear-numeric-gauge-meter/interfaces.d.ts +17 -0
  36. package/lib/components/meters/linear-numeric-gauge-meter/linear-numeric-gauge-meter.d.ts +3 -0
  37. package/lib/components/meters/linear-numeric-gauge-meter/utils.d.ts +2 -0
  38. package/lib/index.js +1 -1
  39. package/package.json +1 -1
@@ -1,3 +1,6 @@
1
- import { MaxWidthContainerProps } from "../max-width-container/interfaces";
1
+ import { BoxProps } from "rebass";
2
+ import { MaxWidthContainerProps } from "../max-width-container";
2
3
  export interface LayoutIndependentMaxWidthContainerProps extends MaxWidthContainerProps {
4
+ height?: BoxProps["height"];
5
+ left?: number | string | string[];
3
6
  }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { CompactDonutGaugeProps as Props } from "./interfaces";
3
+ export declare const CompactDonutGauge: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { CompactDonutGauge } from "./compact-donut-gauge";
@@ -0,0 +1,12 @@
1
+ export interface CompactDonutGaugeProps {
2
+ segments: CompactDonutSegment[];
3
+ value: number;
4
+ size?: number;
5
+ segmentWidth?: number;
6
+ outlineWidth?: number;
7
+ }
8
+ export interface CompactDonutSegment {
9
+ start: number;
10
+ end: number;
11
+ color: string;
12
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { CompactDonutGaugeSegmentProps as Props } from "./interfaces";
3
+ export declare const CompactDonutGaugeSegment: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { CompactDonutGaugeSegment } from "./compact-donut-gauge-segment";
@@ -0,0 +1,5 @@
1
+ import { CompactDonutGaugeProps, CompactDonutSegment } from "../../interfaces";
2
+ export interface CompactDonutGaugeSegmentProps extends Required<Pick<CompactDonutGaugeProps, "size" | "segmentWidth" | "outlineWidth">> {
3
+ segment: CompactDonutSegment;
4
+ isMatching: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { CompactDonutGaugeValueIndicatorProps as Props } from "./interfaces";
3
+ export declare const CompactDonutGaugeValueIndicator: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { CompactDonutGaugeValueIndicator } from "./compact-donut-gauge-value-indicator";
@@ -0,0 +1,4 @@
1
+ import { CompactDonutGaugeProps, CompactDonutSegment } from "../../interfaces";
2
+ export interface CompactDonutGaugeValueIndicatorProps extends Required<Pick<CompactDonutGaugeProps, "size">> {
3
+ segment: CompactDonutSegment;
4
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./compact-donut-gauge-segment";
2
+ export * from "./compact-donut-gauge-value-indicator";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { DonutDiagramProps as Props } from "./interfaces";
3
+ export declare const DonutDiagram: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { DonutDiagram } from "./donut-diagram";
@@ -0,0 +1,20 @@
1
+ export interface DonutDiagramProps {
2
+ segments: DonutSegment[];
3
+ size?: number;
4
+ outlineWidth?: number;
5
+ segmentWidth?: number;
6
+ sideOffset?: number;
7
+ labelOffset?: number;
8
+ labelOffsetMobile?: number;
9
+ labelPointerOffset?: number;
10
+ verticalOffset?: number;
11
+ verticalOffsetMobile?: number;
12
+ mobile?: boolean;
13
+ }
14
+ export interface DonutSegment {
15
+ start: number;
16
+ end: number;
17
+ text: string;
18
+ color: string;
19
+ }
20
+ export declare type DonutSegmentLabelPosition = "left" | "right";
@@ -0,0 +1 @@
1
+ export * from "./segment";
@@ -0,0 +1 @@
1
+ export { Segment } from "./segment";
@@ -0,0 +1,4 @@
1
+ import { DonutDiagramProps, DonutSegment } from "../../interfaces";
2
+ export interface SegmentProps extends Required<Pick<DonutDiagramProps, "size" | "outlineWidth" | "segmentWidth" | "labelOffset" | "labelPointerOffset" | "labelOffsetMobile" | "mobile">> {
3
+ segment: DonutSegment;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SegmentProps as Props } from "./interfaces";
3
+ export declare const Segment: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { SegmentLabel } from "./segment-label";
@@ -0,0 +1,7 @@
1
+ import { DonutDiagramProps, DonutSegment } from "../../interfaces";
2
+ export interface SegmentLabelProps extends Required<Pick<DonutDiagramProps, "labelPointerOffset" | "labelOffset" | "mobile" | "labelOffsetMobile">> {
3
+ segment: DonutSegment;
4
+ radius: number;
5
+ animationDuration: number;
6
+ isHover: boolean;
7
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { SegmentLabelProps as Props } from "./interfaces";
3
+ export declare const SegmentLabel: React.FC<Props>;
@@ -0,0 +1,13 @@
1
+ import { DonutSegment } from "./interfaces";
2
+ export declare const areSegmentsValid: (segments: Pick<DonutSegment, "start" | "end">[]) => boolean;
3
+ export declare const getSegmentCoordinates: ({ start, end }: Pick<DonutSegment, "start" | "end">, radius: number, segmentWidth: number) => {
4
+ startX: number;
5
+ startY: number;
6
+ endX: number;
7
+ endY: number;
8
+ startInnerX: number;
9
+ startInnerY: number;
10
+ endInnerX: number;
11
+ endInnerY: number;
12
+ arc: number;
13
+ };
@@ -10,3 +10,7 @@ export * from "./dashed-meter";
10
10
  export * from "./continuous-outline-meter";
11
11
  export * from "./base-outline-meter";
12
12
  export * from "./bars-meter";
13
+ export * from "./donut-diagram";
14
+ export * from "./compact-donut-gauge";
15
+ export * from "./linear-discrete-gauge-meter";
16
+ export * from "./linear-numeric-gauge-meter";
@@ -0,0 +1 @@
1
+ export { LinearDiscreteGaugeMeter } from "./linear-discrete-gauge-meter";
@@ -0,0 +1,10 @@
1
+ import { LinearGaugeProps } from "../linear-numeric-gauge-meter/interfaces";
2
+ export interface LinearDiscreteGaugeMeterProps<T> extends LinearGaugeProps {
3
+ value: T;
4
+ options: LinearDiscreteGaugeMeterSegment<T>[];
5
+ }
6
+ export interface LinearDiscreteGaugeMeterSegment<T> {
7
+ label: string;
8
+ value: T;
9
+ labelColor: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { LinearDiscreteGaugeMeterProps as Props } from "./interfaces";
3
+ export declare function LinearDiscreteGaugeMeter<T>(props: PropsWithChildren<Props<T>>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from "./linear-gauge-label";
2
+ export * from "./linear-gauge-segment";
@@ -0,0 +1 @@
1
+ export { LinearGaugeLabel } from "./linear-gauge-label";
@@ -0,0 +1,4 @@
1
+ export interface LinearGaugeLabelProps {
2
+ text: string;
3
+ color: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LinearGaugeLabelProps as Props } from "./interfaces";
3
+ export declare const LinearGaugeLabel: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { LinearGaugeSegment } from "./linear-gauge-segment";
@@ -0,0 +1,6 @@
1
+ export interface LinearGaugeSegmentProps {
2
+ color: string;
3
+ segmentHeight: number;
4
+ idx: number;
5
+ total: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LinearGaugeSegmentProps as Props } from "./interfaces";
3
+ export declare const LinearGaugeSegment: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { LinearNumericGaugeMeter } from "./linear-numeric-gauge-meter";
@@ -0,0 +1,17 @@
1
+ export interface LinearNumericGaugeMeterProps extends LinearGaugeProps {
2
+ options: LinearNumericGaugeMeterSegment[];
3
+ value: number;
4
+ }
5
+ export interface LinearNumericGaugeMeterSegment {
6
+ start: number;
7
+ end: number;
8
+ label: string;
9
+ labelColor: string;
10
+ }
11
+ export interface LinearGaugeProps {
12
+ segmentHeight?: number;
13
+ gap?: number;
14
+ labelGap?: number;
15
+ defaultColor?: string;
16
+ defaultMatchedColor?: string;
17
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LinearNumericGaugeMeterProps as Props } from "./interfaces";
3
+ export declare const LinearNumericGaugeMeter: React.FC<Props>;
@@ -0,0 +1,2 @@
1
+ import { LinearNumericGaugeMeterSegment } from "./interfaces";
2
+ export declare const isMatchingRange: ({ start, end }: Pick<LinearNumericGaugeMeterSegment, "start" | "end">, value: number) => boolean;