@ayseaistudio/ui-components 3.11.9 → 3.12.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.
@@ -0,0 +1,23 @@
1
+ import PropTypes from "prop-types";
2
+ import "./style.css";
3
+ interface Props {
4
+ spacing: "ON" | "OFF";
5
+ stroke: "ON" | "OFF";
6
+ twoDot: "ON" | "OFF";
7
+ className?: any;
8
+ labelText: string;
9
+ valueDotsValue: string;
10
+ valueDotsSize: "small" | "XX-small" | "x-small";
11
+ isStriked?: boolean;
12
+ onClick?: () => void;
13
+ }
14
+ export declare const ValueLabel: {
15
+ ({ spacing, stroke, twoDot, className, labelText, valueDotsValue, valueDotsSize, isStriked, onClick, }: Props): React.JSX.Element;
16
+ propTypes: {
17
+ spacing: PropTypes.Requireable<string>;
18
+ stroke: PropTypes.Requireable<string>;
19
+ twoDot: PropTypes.Requireable<string>;
20
+ isStriked: PropTypes.Requireable<boolean>;
21
+ };
22
+ };
23
+ export {};
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import PropTypes from "prop-types";
3
+ import "./style.css";
4
+ import { ValueDots } from "../ValueDots";
5
+ import { Label } from "../Label";
6
+ export const ValueLabel = ({ spacing, stroke, twoDot, className, labelText, valueDotsValue, valueDotsSize, isStriked = false, onClick, }) => {
7
+ return (_jsxs("div", { className: `value-label ${spacing} ${stroke} ${twoDot} ${isStriked ? "striked" : ""} ${className}`, onClick: onClick, children: [_jsx(ValueDots, { className: "value-dots-instance", size: valueDotsSize, value: valueDotsValue }), _jsx(Label, { bold: "off", className: "label-instance", color: "black", size: "small", spacing: "off", stroke: "off", text: labelText, version: "primary" })] }));
8
+ };
9
+ ValueLabel.propTypes = {
10
+ spacing: PropTypes.oneOf(["ON", "OFF"]),
11
+ stroke: PropTypes.oneOf(["ON", "OFF"]),
12
+ twoDot: PropTypes.oneOf(["ON", "OFF"]),
13
+ isStriked: PropTypes.bool,
14
+ };
@@ -0,0 +1 @@
1
+ export { ValueLabel } from "./ValueLabel";
@@ -0,0 +1 @@
1
+ export { ValueLabel } from "./ValueLabel";
@@ -0,0 +1,23 @@
1
+ .value-label {
2
+ align-items: center;
3
+ display: inline-flex;
4
+ gap: 4px;
5
+ position: relative;
6
+ }
7
+
8
+ .value-label * {
9
+ cursor: pointer !important;
10
+ }
11
+ .value-label.ON {
12
+ padding: 4px;
13
+ }
14
+
15
+ .value-label.ON {
16
+ border: 1px solid;
17
+ border-color: #e7e7e7;
18
+ border-radius: 8px;
19
+ }
20
+
21
+ .value-label.striked .label-instance {
22
+ text-decoration: line-through;
23
+ }
package/dist/index.d.ts CHANGED
@@ -40,3 +40,11 @@ export { ColorFlag } from "./ColorFlag/ColorFlag";
40
40
  export { CallCenterTasks } from "./CallCenterTasks/CallCenterTasks";
41
41
  export { Breadcrumbs } from "./Breadcrumbs/Breadcrumbs";
42
42
  export { Calendar } from "./Calendar/Calendar";
43
+ export { ValueDots } from "./ValueDots/ValueDots";
44
+ export { ValueLabel } from "./ValueLabel/ValueLabel";
45
+ export { PieChart } from "./PieChart/PieChart";
46
+ export { LineBarVertical } from "./LineBarVertical/LineBarVertical";
47
+ export { LineBarHorizontal } from "./LineBarHorizontal/LineBarHorizontal";
48
+ export { BarChart } from "./BarChart/BarChart";
49
+ export { GroupedBarChart } from "./BarChart/BarChart";
50
+ export type { ChartColumn, ChartSegment, LegendItem } from "./BarChart";
package/dist/index.js CHANGED
@@ -40,3 +40,10 @@ export { ColorFlag } from "./ColorFlag/ColorFlag";
40
40
  export { CallCenterTasks } from "./CallCenterTasks/CallCenterTasks";
41
41
  export { Breadcrumbs } from "./Breadcrumbs/Breadcrumbs";
42
42
  export { Calendar } from "./Calendar/Calendar";
43
+ export { ValueDots } from "./ValueDots/ValueDots";
44
+ export { ValueLabel } from "./ValueLabel/ValueLabel";
45
+ export { PieChart } from "./PieChart/PieChart";
46
+ export { LineBarVertical } from "./LineBarVertical/LineBarVertical";
47
+ export { LineBarHorizontal } from "./LineBarHorizontal/LineBarHorizontal";
48
+ export { BarChart } from "./BarChart/BarChart";
49
+ export { GroupedBarChart } from "./BarChart/BarChart";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ayseaistudio/ui-components",
3
- "version": "3.11.9",
3
+ "version": "3.12.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",