@pismo/marola 1.0.4 → 1.0.6
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/{Group-DspH8hyO.js → Group-ZXteFV4M.js} +19 -9
- package/dist/{Toggle-MfR7l8Wn.js → Toggle-BuZjueQ7.js} +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/ToggleGroup/Group.d.ts +2 -0
- package/dist/components/ToggleGroup/Group.js +1 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -0
- package/dist/main.js +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './assets/Group.css';
|
|
2
2
|
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
|
-
import { c as
|
|
5
|
-
import { Icon as
|
|
4
|
+
import { c as m } from "./clsx-DB4S2d7J.js";
|
|
5
|
+
import { Icon as u } from "./components/Icon/Icon.js";
|
|
6
6
|
import { Typography as c } from "./components/Typography/Typography.js";
|
|
7
7
|
const p = "_toggle__input_hu6m0_1", h = "_toggle__label_hu6m0_11", t = {
|
|
8
8
|
toggle__input: p,
|
|
@@ -13,18 +13,28 @@ const p = "_toggle__input_hu6m0_1", h = "_toggle__label_hu6m0_11", t = {
|
|
|
13
13
|
"toggle-group__options": "_toggle-group__options_hu6m0_40",
|
|
14
14
|
"toggle-group__options-same-width": "_toggle-group__options-same-width_hu6m0_44",
|
|
15
15
|
"toggle-group__error": "_toggle-group__error_hu6m0_47"
|
|
16
|
-
},
|
|
17
|
-
const { children: s, legend: _, error: g, equalWidth: a } = e,
|
|
16
|
+
}, v = n((e, r) => {
|
|
17
|
+
const { children: s, legend: _, error: g, equalWidth: a } = e, i = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, d = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
18
18
|
return /* @__PURE__ */ l("fieldset", { ref: r, "data-testid": e["data-testid"], className: t["toggle-group__fieldset"], children: [
|
|
19
|
-
_ && /* @__PURE__ */ o("legend", { "data-testid":
|
|
20
|
-
/* @__PURE__ */ o(
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
_ && /* @__PURE__ */ o("legend", { "data-testid": i, children: _ }),
|
|
20
|
+
/* @__PURE__ */ o(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: m(
|
|
24
|
+
t["toggle-group__options"],
|
|
25
|
+
a && t["toggle-group__options-same-width"],
|
|
26
|
+
e.classNameForOptions
|
|
27
|
+
),
|
|
28
|
+
children: s
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
g && /* @__PURE__ */ l(c, { className: t["toggle-group__error"], "data-testid": d, children: [
|
|
32
|
+
/* @__PURE__ */ o(u, { icon: "circle-exclamation" }),
|
|
23
33
|
g
|
|
24
34
|
] })
|
|
25
35
|
] });
|
|
26
36
|
});
|
|
27
37
|
export {
|
|
28
|
-
|
|
38
|
+
v as G,
|
|
29
39
|
t as s
|
|
30
40
|
};
|
|
@@ -16,7 +16,7 @@ import "./components/Select/Select.js";
|
|
|
16
16
|
import "./components/Popover/Popover.js";
|
|
17
17
|
import "./components/Table/Table.js";
|
|
18
18
|
import "./components/Tabs/Tabs.js";
|
|
19
|
-
import { s as y } from "./Group-
|
|
19
|
+
import { s as y } from "./Group-ZXteFV4M.js";
|
|
20
20
|
import "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
21
21
|
import { B as x } from "./Button-BAljjMv3.js";
|
|
22
22
|
const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove_1wvod_121", n = {
|
|
@@ -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 u } from "../../Toggle-
|
|
10
|
+
import { C as u } from "../../Toggle-BuZjueQ7.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../Skeleton/Skeleton.js";
|
|
13
13
|
import "../IconButton/IconButton.js";
|
|
@@ -16,7 +16,7 @@ import "../Select/Select.js";
|
|
|
16
16
|
import "../Popover/Popover.js";
|
|
17
17
|
import "../Table/Table.js";
|
|
18
18
|
import "../Tabs/Tabs.js";
|
|
19
|
-
import "../../Group-
|
|
19
|
+
import "../../Group-ZXteFV4M.js";
|
|
20
20
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
21
21
|
import "../../Button-BAljjMv3.js";
|
|
22
22
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../assets/ResultWithChips.css';
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { C as t } from "../../Toggle-
|
|
3
|
+
import { C as t } from "../../Toggle-BuZjueQ7.js";
|
|
4
4
|
const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
|
|
5
5
|
container: r,
|
|
6
6
|
"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 h, R as j } from "../../Toggle-
|
|
10
|
+
import { R as h, R as j } from "../../Toggle-BuZjueQ7.js";
|
|
11
11
|
import "../Dialog/Dialog.js";
|
|
12
12
|
import "../IconButton/IconButton.js";
|
|
13
13
|
import "../InputSearch/InputSearch.js";
|
|
@@ -15,7 +15,7 @@ import "../Select/Select.js";
|
|
|
15
15
|
import "../Popover/Popover.js";
|
|
16
16
|
import "../Table/Table.js";
|
|
17
17
|
import "../Tabs/Tabs.js";
|
|
18
|
-
import "../../Group-
|
|
18
|
+
import "../../Group-ZXteFV4M.js";
|
|
19
19
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
20
20
|
export {
|
|
21
21
|
h as RowItem,
|
|
@@ -15,6 +15,8 @@ export type ToggleGroupProps = {
|
|
|
15
15
|
'data-testid'?: string;
|
|
16
16
|
/** Controls if children items should have same width */
|
|
17
17
|
equalWidth?: boolean;
|
|
18
|
+
/** Space separated list of CSS classes to apply to options */
|
|
19
|
+
classNameForOptions?: string;
|
|
18
20
|
};
|
|
19
21
|
declare const Group: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
20
22
|
export default Group;
|
|
@@ -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 j } from "../../Toggle-
|
|
9
|
+
import { T as j } from "../../Toggle-BuZjueQ7.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../IconButton/IconButton.js";
|
|
12
12
|
import "../InputSearch/InputSearch.js";
|
|
@@ -14,7 +14,7 @@ import "../Select/Select.js";
|
|
|
14
14
|
import "../Popover/Popover.js";
|
|
15
15
|
import "../Table/Table.js";
|
|
16
16
|
import "../Tabs/Tabs.js";
|
|
17
|
-
import "../../Group-
|
|
17
|
+
import "../../Group-ZXteFV4M.js";
|
|
18
18
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
19
19
|
export {
|
|
20
20
|
j as default
|
|
@@ -12,6 +12,7 @@ declare const meta: {
|
|
|
12
12
|
children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
|
|
13
13
|
'data-testid'?: string | undefined;
|
|
14
14
|
equalWidth?: boolean | undefined;
|
|
15
|
+
classNameForOptions?: string | undefined;
|
|
15
16
|
ref?: import('react').LegacyRef<HTMLFieldSetElement> | undefined;
|
|
16
17
|
key?: import('react').Key | null | undefined;
|
|
17
18
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
package/dist/main.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
|
|
|
5
5
|
import { Avatar as i } from "./components/Avatar/Avatar.js";
|
|
6
6
|
import { Button as T } from "./components/Button/Button.js";
|
|
7
7
|
import { Checkbox as g } from "./components/Checkbox/Checkbox.js";
|
|
8
|
-
import { C as u, R as S, T as d } from "./Toggle-
|
|
8
|
+
import { C as u, R as S, T as d } from "./Toggle-BuZjueQ7.js";
|
|
9
9
|
import { ConfirmationDialog as k } from "./components/ConfirmationDialog/ConfirmationDialog.js";
|
|
10
10
|
import { Description as h } from "./components/Description/Description.js";
|
|
11
11
|
import { Dialog as A } from "./components/Dialog/Dialog.js";
|
|
@@ -31,7 +31,7 @@ import { Tabs as bo } from "./components/Tabs/Tabs.js";
|
|
|
31
31
|
import { Tag as Co } from "./components/Tag/Tag.js";
|
|
32
32
|
import { TextDisplay as Do } from "./components/TextDisplay/TextDisplay.js";
|
|
33
33
|
import { Toggle as Io } from "./components/Toggle/Toggle.js";
|
|
34
|
-
import { G as Po } from "./Group-
|
|
34
|
+
import { G as Po } from "./Group-ZXteFV4M.js";
|
|
35
35
|
import { Tooltip as Bo } from "./components/Tooltip/Tooltip.js";
|
|
36
36
|
import { Text as Go, Typography as Ho } from "./components/Typography/Typography.js";
|
|
37
37
|
import { SnackbarContext as Eo, SnackbarProvider as Lo, useSnackbar as No } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|