@cloudtower/eagle 0.34.8 → 0.34.9
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/cjs/coreX/BarChart/index.js +5 -2
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +28 -8
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +1692 -1688
- package/dist/esm/coreX/BarChart/index.js +4 -2
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +28 -8
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2333 -2329
- package/dist/src/coreX/BarChart/index.d.ts +1 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +5 -0
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +8 -0
- package/dist/style.css +1692 -1688
- package/package.json +4 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { formatPercent } from '../../utils/tower.js';
|
|
2
2
|
import React__default, { useMemo } from 'react';
|
|
3
|
+
import cs from 'classnames';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
5
6
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
@@ -63,10 +64,11 @@ const BarItem = props => {
|
|
|
63
64
|
};
|
|
64
65
|
const BarChart = ({
|
|
65
66
|
data,
|
|
66
|
-
total
|
|
67
|
+
total,
|
|
68
|
+
className
|
|
67
69
|
}) => {
|
|
68
70
|
return /* @__PURE__ */React__default.createElement("div", {
|
|
69
|
-
className: StackBar
|
|
71
|
+
className: cs(StackBar, className)
|
|
70
72
|
}, (data || []).map((item, index) => {
|
|
71
73
|
const {
|
|
72
74
|
value,
|
|
@@ -1,15 +1,33 @@
|
|
|
1
1
|
import { cx } from '@linaria/core';
|
|
2
|
+
import { SmallDialog } from '../../../core/SmallDialog/SmallDialog.js';
|
|
2
3
|
import { Typo } from '../../../core/Typo/index.js';
|
|
3
4
|
import React__default from 'react';
|
|
4
|
-
import { SmallDialog } from '../../../core/SmallDialog/SmallDialog.js';
|
|
5
5
|
import { RejectDialogType } from './RejectDialog.type.js';
|
|
6
6
|
import useParrotTranslation from '../../../hooks/useParrotTranslation.js';
|
|
7
7
|
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value
|
|
17
|
+
}) : obj[key] = value;
|
|
18
|
+
var __spreadValues = (a, b) => {
|
|
19
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
20
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
8
25
|
const ContentList = "E_c1ss4prm";
|
|
9
26
|
const MultiRejectContentList = "E_ms3tlei";
|
|
10
27
|
const Description = "E_du44iy7";
|
|
11
|
-
const
|
|
12
|
-
const
|
|
28
|
+
const PartialDescription = "E_p1qmhanr";
|
|
29
|
+
const SecondaryDesc = "E_srje1h0";
|
|
30
|
+
const Divider = "E_di3zi7v";
|
|
13
31
|
const SingleRejectContent = ({
|
|
14
32
|
content
|
|
15
33
|
}) => {
|
|
@@ -43,9 +61,11 @@ const RejectDialog = props => {
|
|
|
43
61
|
const {
|
|
44
62
|
title,
|
|
45
63
|
cancelText,
|
|
64
|
+
beforeDescription,
|
|
46
65
|
description,
|
|
47
66
|
className,
|
|
48
|
-
footerClassName
|
|
67
|
+
footerClassName,
|
|
68
|
+
okButtonProps
|
|
49
69
|
} = props;
|
|
50
70
|
const renderContent = () => {
|
|
51
71
|
switch (props.type) {
|
|
@@ -60,7 +80,7 @@ const RejectDialog = props => {
|
|
|
60
80
|
}, props.secondaryDesc), props.type === RejectDialogType.Part && /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement("div", {
|
|
61
81
|
className: Divider
|
|
62
82
|
}), /* @__PURE__ */React__default.createElement("div", {
|
|
63
|
-
className: cx(
|
|
83
|
+
className: cx(PartialDescription, Typo.Label.l3_regular)
|
|
64
84
|
}, props.partialDescription)), /* @__PURE__ */React__default.createElement(MultiRejectContent, {
|
|
65
85
|
content: props.content,
|
|
66
86
|
resourceIcon: props.resourceIcon
|
|
@@ -75,13 +95,13 @@ const RejectDialog = props => {
|
|
|
75
95
|
showOk: props.type === RejectDialogType.Part,
|
|
76
96
|
okText: props.type === RejectDialogType.Part ? props.okText : void 0,
|
|
77
97
|
onOk: props.type === RejectDialogType.Part ? props.onOk : void 0,
|
|
78
|
-
okButtonProps: {
|
|
98
|
+
okButtonProps: __spreadValues({
|
|
79
99
|
danger: props.type === RejectDialogType.Part
|
|
80
|
-
},
|
|
100
|
+
}, okButtonProps),
|
|
81
101
|
onCancel: props.onCancel,
|
|
82
102
|
className,
|
|
83
103
|
footerClassName
|
|
84
|
-
}, description && /* @__PURE__ */React__default.createElement("div", {
|
|
104
|
+
}, beforeDescription, description && /* @__PURE__ */React__default.createElement("div", {
|
|
85
105
|
className: cx(Description, Typo.Label.l3_regular)
|
|
86
106
|
}, description), renderContent());
|
|
87
107
|
};
|