@pismo/marola 2.1.4 → 2.1.7
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/assets/Fieldset.css +1 -0
- package/dist/assets/TransactionRow.css +1 -1
- package/dist/components/Chip/Chip.js +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +8 -0
- package/dist/components/Fieldset/Fieldset.js +17 -0
- package/dist/components/Fieldset/Fieldset.spec.d.ts +1 -0
- package/dist/components/Fieldset/Fieldset.stories.d.ts +13 -0
- package/dist/components/Icon/Icon.js +116 -110
- package/dist/components/Icon/types.d.ts +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/components/TransactionRow/TransactionRow.js +30 -30
- package/dist/main.d.ts +1 -0
- package/dist/main.js +86 -84
- 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
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._fieldset_jfgs1_1{display:block;padding:.5rem 1rem 1rem;-webkit-appearance:inherit;-moz-appearance:inherit;appearance:inherit;border-color:var(--gray-25);border-style:solid;border-width:1px;border-radius:var(--border-radius)}._fieldset_jfgs1_1 legend{margin-left:-.5rem;font-size:var(--base-font-size-sm);color:var(--colors-neutral-text-color-text)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_kdqr0_1{width:100%;height:56px;border-top:1px solid var(--border-secondary)}._container-grid_kdqr0_6{display:grid;grid-template-columns:1fr 1.5fr .5fr 5fr 2fr 2fr;align-items:center;justify-content:space-between;padding:12px 16px}._container-pending_kdqr0_13{display:flex;align-items:center;justify-content:flex-start;padding:12px 16px}._container-pending--right_kdqr0_19{margin-left:auto}._container_kdqr0_1 :hover{cursor:pointer;background-color:var(--border-secondary)}._info-section_kdqr0_27{display:flex}._info-section--item_kdqr0_30{padding-left:8px}._info-section--item_kdqr0_30:not(:first-child){margin-left:8px;border-left:1px solid var(--border-secondary)}._info-section--right_kdqr0_37{display:flex;justify-content:flex-end}
|
|
@@ -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";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type FieldsetProps = PropsWithChildren<{
|
|
3
|
+
legend?: React.ReactNode;
|
|
4
|
+
'data-testid'?: string;
|
|
5
|
+
classNameWrapper?: string;
|
|
6
|
+
classNameLegend?: string;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const Fieldset: ({ children, legend, "data-testid": dataTestId, classNameWrapper, classNameLegend, }: FieldsetProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../../assets/Fieldset.css';const r = "_fieldset_jfgs1_1", f = {
|
|
4
|
+
fieldset: r
|
|
5
|
+
}, n = ({
|
|
6
|
+
children: e,
|
|
7
|
+
legend: s,
|
|
8
|
+
"data-testid": t,
|
|
9
|
+
classNameWrapper: d,
|
|
10
|
+
classNameLegend: i
|
|
11
|
+
}) => /* @__PURE__ */ l("fieldset", { "data-testid": t, className: c(f.fieldset, d), children: [
|
|
12
|
+
s && /* @__PURE__ */ a("legend", { className: i, children: s }),
|
|
13
|
+
e
|
|
14
|
+
] });
|
|
15
|
+
export {
|
|
16
|
+
n as Fieldset
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { FieldsetProps } from './Fieldset';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ children, legend, "data-testid": dataTestId, classNameWrapper, classNameLegend, }: FieldsetProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Simple: Story;
|