@conboai/storybook.components 0.2.64 → 0.2.66
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IActionSelect } from '../../interfaces/actionSelect';
|
|
3
3
|
|
|
4
|
-
declare const ActionSelect: ({ options, setValue, value }: IActionSelect) => React.JSX.Element;
|
|
4
|
+
declare const ActionSelect: ({ options, setValue, value, disabled }: IActionSelect) => React.JSX.Element;
|
|
5
5
|
export default ActionSelect;
|
|
@@ -28060,17 +28060,22 @@ function Mt({ fill: t = "black", icon: e, width: n, height: r, fillOpacity: i })
|
|
|
28060
28060
|
}
|
|
28061
28061
|
);
|
|
28062
28062
|
}
|
|
28063
|
-
const wM = ({
|
|
28064
|
-
|
|
28063
|
+
const wM = ({
|
|
28064
|
+
options: t,
|
|
28065
|
+
setValue: e,
|
|
28066
|
+
value: n,
|
|
28067
|
+
disabled: r = !1
|
|
28068
|
+
}) => {
|
|
28069
|
+
const [i, s] = mt(
|
|
28065
28070
|
t && t[0].value
|
|
28066
|
-
),
|
|
28067
|
-
|
|
28068
|
-
}, a = () => {
|
|
28069
|
-
const c = ft(n).valueOf(), d = ft(c - r);
|
|
28070
|
-
e(d);
|
|
28071
|
+
), a = (d) => {
|
|
28072
|
+
s(d.target.value);
|
|
28071
28073
|
}, l = () => {
|
|
28072
|
-
const
|
|
28073
|
-
e(
|
|
28074
|
+
const d = ft(n).valueOf(), u = ft(d - i);
|
|
28075
|
+
e(u);
|
|
28076
|
+
}, c = () => {
|
|
28077
|
+
const d = ft(n).valueOf(), u = ft(i + d);
|
|
28078
|
+
e(u);
|
|
28074
28079
|
};
|
|
28075
28080
|
return /* @__PURE__ */ ee.jsx(lt, { children: /* @__PURE__ */ ee.jsx(_s, { fullWidth: !0, children: /* @__PURE__ */ ee.jsxs(
|
|
28076
28081
|
ht,
|
|
@@ -28084,8 +28089,8 @@ const wM = ({ options: t, setValue: e, value: n }) => {
|
|
|
28084
28089
|
Zr,
|
|
28085
28090
|
{
|
|
28086
28091
|
size: "small",
|
|
28087
|
-
onClick:
|
|
28088
|
-
disabled: !r,
|
|
28092
|
+
onClick: l,
|
|
28093
|
+
disabled: !i || r,
|
|
28089
28094
|
variant: "action",
|
|
28090
28095
|
children: /* @__PURE__ */ ee.jsx(Mt, { icon: "minus" })
|
|
28091
28096
|
}
|
|
@@ -28095,19 +28100,20 @@ const wM = ({ options: t, setValue: e, value: n }) => {
|
|
|
28095
28100
|
{
|
|
28096
28101
|
labelId: "action-select",
|
|
28097
28102
|
id: "action-select",
|
|
28098
|
-
value:
|
|
28099
|
-
onChange:
|
|
28103
|
+
value: i,
|
|
28104
|
+
onChange: a,
|
|
28100
28105
|
size: "small",
|
|
28101
28106
|
sx: TM,
|
|
28102
|
-
|
|
28107
|
+
disabled: r,
|
|
28108
|
+
children: t == null ? void 0 : t.map((d) => /* @__PURE__ */ ee.jsx(Ii, { value: d.value, children: d.label }, d.label))
|
|
28103
28109
|
}
|
|
28104
28110
|
),
|
|
28105
28111
|
/* @__PURE__ */ ee.jsx(
|
|
28106
28112
|
Zr,
|
|
28107
28113
|
{
|
|
28108
28114
|
size: "small",
|
|
28109
|
-
onClick:
|
|
28110
|
-
disabled: !r,
|
|
28115
|
+
onClick: c,
|
|
28116
|
+
disabled: !i || r,
|
|
28111
28117
|
variant: "action",
|
|
28112
28118
|
children: /* @__PURE__ */ ee.jsx(Mt, { icon: "plus" })
|
|
28113
28119
|
}
|
|
@@ -40809,6 +40815,7 @@ const j8 = ({
|
|
|
40809
40815
|
l && /* @__PURE__ */ ee.jsx(
|
|
40810
40816
|
wM,
|
|
40811
40817
|
{
|
|
40818
|
+
disabled: u,
|
|
40812
40819
|
options: a,
|
|
40813
40820
|
setValue: (b) => {
|
|
40814
40821
|
e(b == null ? void 0 : b.toDate());
|
|
@@ -59843,10 +59850,21 @@ const iV = ({
|
|
|
59843
59850
|
label: t,
|
|
59844
59851
|
options: e,
|
|
59845
59852
|
value: n,
|
|
59846
|
-
onChange: r
|
|
59853
|
+
onChange: r,
|
|
59854
|
+
disabled: i
|
|
59847
59855
|
}) => /* @__PURE__ */ ee.jsxs(_s, { fullWidth: !0, size: "small", children: [
|
|
59848
59856
|
/* @__PURE__ */ ee.jsx(Ti, { sx, children: t }),
|
|
59849
|
-
/* @__PURE__ */ ee.jsx(
|
|
59857
|
+
/* @__PURE__ */ ee.jsx(
|
|
59858
|
+
Di,
|
|
59859
|
+
{
|
|
59860
|
+
sx: ix,
|
|
59861
|
+
label: t,
|
|
59862
|
+
onChange: r,
|
|
59863
|
+
value: n,
|
|
59864
|
+
disabled: i,
|
|
59865
|
+
children: e.map((s) => /* @__PURE__ */ ee.jsx(Ii, { value: s.value, children: s.label }, s.value))
|
|
59866
|
+
}
|
|
59867
|
+
)
|
|
59850
59868
|
] });
|
|
59851
59869
|
function La(t) {
|
|
59852
59870
|
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|