@pismo/marola 2.1.4 → 2.1.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.
- package/dist/{Toggle-Dp20f7qn.js → Toggle-C-6aiSvn.js} +15 -15
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioOption.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +1 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +2 -0
- package/dist/components/ToggleGroup/Toggle.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
44
44
|
"chip__remove--disabled": "_chip__remove--disabled_1wvod_133",
|
|
45
45
|
"chip-loading": "_chip-loading_1wvod_137"
|
|
46
46
|
}, S = u((t, d) => {
|
|
47
|
-
const { children:
|
|
47
|
+
const { children: p, onClickContent: o, disabled: r, className: a, variant: s } = t;
|
|
48
48
|
let e = l(
|
|
49
49
|
n.chip,
|
|
50
50
|
{ [n["chip--outlined"]]: s === "outlined" },
|
|
@@ -59,12 +59,12 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
59
59
|
"data-testid": t["data-testid"],
|
|
60
60
|
ref: d,
|
|
61
61
|
className: e,
|
|
62
|
-
children:
|
|
62
|
+
children: p
|
|
63
63
|
}
|
|
64
|
-
)) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children:
|
|
64
|
+
)) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: d, className: e, children: p });
|
|
65
65
|
}), Y = u((t, d) => {
|
|
66
66
|
const {
|
|
67
|
-
label:
|
|
67
|
+
label: p,
|
|
68
68
|
className: o,
|
|
69
69
|
onClickContent: r,
|
|
70
70
|
leftAdornment: a,
|
|
@@ -93,7 +93,7 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
93
93
|
variant: g,
|
|
94
94
|
children: [
|
|
95
95
|
a && /* @__PURE__ */ i(v, { ...w }),
|
|
96
|
-
|
|
96
|
+
p,
|
|
97
97
|
m && /* @__PURE__ */ i(
|
|
98
98
|
"span",
|
|
99
99
|
{
|
|
@@ -101,8 +101,8 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
101
101
|
role: "button",
|
|
102
102
|
tabIndex: e ? -1 : 0,
|
|
103
103
|
"aria-label": "remove",
|
|
104
|
-
onClick: (
|
|
105
|
-
|
|
104
|
+
onClick: (_) => {
|
|
105
|
+
_ == null || _.stopPropagation(), _ == null || _.nativeEvent.stopImmediatePropagation(), m();
|
|
106
106
|
},
|
|
107
107
|
"aria-disabled": e,
|
|
108
108
|
children: /* @__PURE__ */ i(C, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
|
|
@@ -117,14 +117,14 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
117
117
|
"row-item--disabled": "_row-item--disabled_8z1a0_19",
|
|
118
118
|
"row-item__content": "_row-item__content_8z1a0_22"
|
|
119
119
|
}, Z = u((t, d) => {
|
|
120
|
-
const { children:
|
|
120
|
+
const { children: p, leftAdornment: o, disabled: r, onClick: a, buttons: s, ariaLabel: e, className: g } = t, m = l(o == null ? void 0 : o.className, h["row-item__adornment"]), w = {
|
|
121
121
|
onClick: (c) => {
|
|
122
122
|
r || a && a(c);
|
|
123
123
|
},
|
|
124
124
|
tabIndex: 0,
|
|
125
125
|
"aria-label": e,
|
|
126
126
|
role: "button"
|
|
127
|
-
},
|
|
127
|
+
}, _ = o != null && o.customIcon ? o : { size: "1rem", ...o };
|
|
128
128
|
return /* @__PURE__ */ k(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
@@ -138,8 +138,8 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
138
138
|
...!!a && w,
|
|
139
139
|
ref: d,
|
|
140
140
|
children: [
|
|
141
|
-
o && /* @__PURE__ */ i(v, { ...
|
|
142
|
-
/* @__PURE__ */ i("span", { className: l(h["row-item__content"]), children:
|
|
141
|
+
o && /* @__PURE__ */ i(v, { ..._, className: m, disabled: r }),
|
|
142
|
+
/* @__PURE__ */ i("span", { className: l(h["row-item__content"]), children: p }),
|
|
143
143
|
s && /* @__PURE__ */ i(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -153,7 +153,7 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
155
|
}), A = u((t, d) => {
|
|
156
|
-
const { text:
|
|
156
|
+
const { text: p, isSelected: o = !1, value: r, onChange: a, disabled: s, type: e } = t;
|
|
157
157
|
return /* @__PURE__ */ k(
|
|
158
158
|
"label",
|
|
159
159
|
{
|
|
@@ -168,17 +168,17 @@ import './assets/Toggle2.css';const I = "_chip_1wvod_61", P = "_chip__adornment_
|
|
|
168
168
|
"input",
|
|
169
169
|
{
|
|
170
170
|
className: l([y.toggle__input]),
|
|
171
|
-
type: "radio",
|
|
171
|
+
type: e ?? "radio",
|
|
172
172
|
ref: d,
|
|
173
173
|
value: r.toString(),
|
|
174
174
|
onChange: () => a(r),
|
|
175
|
-
role: "radio",
|
|
175
|
+
role: e ?? "radio",
|
|
176
176
|
checked: o,
|
|
177
177
|
"aria-checked": o,
|
|
178
178
|
disabled: s
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
|
-
/* @__PURE__ */ i(N, { bold: !0, children:
|
|
181
|
+
/* @__PURE__ */ i(N, { bold: !0, children: p })
|
|
182
182
|
]
|
|
183
183
|
}
|
|
184
184
|
);
|
|
@@ -7,7 +7,7 @@ import "../Typography/Typography.js";
|
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Avatar/Avatar.js";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import { C as v } from "../../Toggle-
|
|
10
|
+
import { C as v } from "../../Toggle-C-6aiSvn.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../DatePicker/DatePicker.js";
|
|
13
13
|
import "../Skeleton/Skeleton.js";
|
|
@@ -7,7 +7,7 @@ import { Typography as Me } from "../Typography/Typography.js";
|
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Avatar/Avatar.js";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import "../../Toggle-
|
|
10
|
+
import "../../Toggle-C-6aiSvn.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../DatePicker/DatePicker.js";
|
|
13
13
|
import "../IconButton/IconButton.js";
|
|
@@ -6,7 +6,7 @@ import * as a from "react";
|
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Avatar/Avatar.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import "../../Toggle-
|
|
9
|
+
import "../../Toggle-C-6aiSvn.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../DatePicker/DatePicker.js";
|
|
12
12
|
import "../IconButton/IconButton.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { C as t } from "../../Toggle-
|
|
2
|
+
import { C as t } from "../../Toggle-C-6aiSvn.js";
|
|
3
3
|
import '../../assets/ResultWithChips.css';const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
4
4
|
container: r,
|
|
5
5
|
"chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
|
|
@@ -7,7 +7,7 @@ import "../Typography/Typography.js";
|
|
|
7
7
|
import "../Input/Input.js";
|
|
8
8
|
import "../Avatar/Avatar.js";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import { R as j, R as k } from "../../Toggle-
|
|
10
|
+
import { R as j, R as k } from "../../Toggle-C-6aiSvn.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../DatePicker/DatePicker.js";
|
|
13
13
|
import "../IconButton/IconButton.js";
|
|
@@ -12,6 +12,8 @@ export type ToggleGroupItemProps<T extends string | number> = {
|
|
|
12
12
|
'data-testid'?: string;
|
|
13
13
|
/** Controls if component should be disabled */
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/** Set type radio or checkbox */
|
|
16
|
+
type?: 'radio' | 'checkbox';
|
|
15
17
|
};
|
|
16
18
|
declare const Toggle: import('react').ForwardRefExoticComponent<ToggleGroupItemProps<string | number> & import('react').RefAttributes<HTMLInputElement>>;
|
|
17
19
|
export default Toggle;
|
|
@@ -6,7 +6,7 @@ import "../Typography/Typography.js";
|
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Avatar/Avatar.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { T as k } from "../../Toggle-
|
|
9
|
+
import { T as k } from "../../Toggle-C-6aiSvn.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../DatePicker/DatePicker.js";
|
|
12
12
|
import "../IconButton/IconButton.js";
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ import { BankCard as g } from "./components/BankCard/BankCard.js";
|
|
|
8
8
|
import { Button as u } from "./components/Button/Button.js";
|
|
9
9
|
import { Calendar as C } from "./components/Calendar/Calendar.js";
|
|
10
10
|
import { Checkbox as k } from "./components/Checkbox/Checkbox.js";
|
|
11
|
-
import { C as D, R as A, T as B } from "./Toggle-
|
|
11
|
+
import { C as D, R as A, T as B } from "./Toggle-C-6aiSvn.js";
|
|
12
12
|
import { ConfirmationDialog as v } from "./components/ConfirmationDialog/ConfirmationDialog.js";
|
|
13
13
|
import "./components/DatePicker/DatePicker.js";
|
|
14
14
|
import { Description as R } from "./components/Description/Description.js";
|