@pismo/marola 1.0.0-beta.43 → 1.0.0-beta.45
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 +30 -0
- package/dist/SelectButton-rvRI0bTU.js +73 -0
- package/dist/{Toggle-CJvN6vqW.js → Toggle-BbmXeuJd.js} +1 -1
- package/dist/assets/Group.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/Icon/Icon.js +77 -71
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Input/Input.js +197 -201
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.d.ts +14 -0
- package/dist/components/Select/Select.js +433 -414
- package/dist/components/Select/SelectButton.js +3 -2
- package/dist/components/ToggleGroup/Group.d.ts +2 -0
- package/dist/components/ToggleGroup/Group.js +4 -2
- package/dist/components/ToggleGroup/Toggle.d.ts +1 -0
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -0
- package/dist/main.js +2 -2
- package/package.json +1 -1
- package/dist/Group-B80_u5Q1.js +0 -27
- package/dist/SelectButton-BlVl6pJn.js +0 -70
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import "../Icon/Icon.js";
|
|
4
5
|
import "../Typography/Typography.js";
|
|
5
|
-
import { S
|
|
6
|
+
import { S } from "../../SelectButton-rvRI0bTU.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
S as SelectButton
|
|
8
9
|
};
|
|
@@ -13,6 +13,8 @@ export type ToggleGroupProps = {
|
|
|
13
13
|
* error and legend append their names e.g. {data-testid}-error and {data-testid}-legend
|
|
14
14
|
* */
|
|
15
15
|
'data-testid'?: string;
|
|
16
|
+
/** Controls if children items should have same width */
|
|
17
|
+
equalWidth?: boolean;
|
|
16
18
|
};
|
|
17
19
|
declare const Group: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
18
20
|
export default Group;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
+
import "../../clsx-DB4S2d7J.js";
|
|
3
4
|
import "../Icon/Icon.js";
|
|
4
|
-
import
|
|
5
|
+
import "../Typography/Typography.js";
|
|
6
|
+
import { G as e } from "../../Group-DspH8hyO.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
e as default
|
|
7
9
|
};
|
|
@@ -10,6 +10,7 @@ export type ToggleGroupItemProps<T extends string | number> = {
|
|
|
10
10
|
onChange: (value: T | '') => void;
|
|
11
11
|
/** Dataset test id only used for tests to reach in and grab the rendered DOM node of the label */
|
|
12
12
|
'data-testid'?: string;
|
|
13
|
+
/** Controls if component should be disabled */
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
};
|
|
15
16
|
declare const Toggle: import('react').ForwardRefExoticComponent<ToggleGroupItemProps<string | number> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -5,14 +5,14 @@ import "../Icon/Icon.js";
|
|
|
5
5
|
import "../Typography/Typography.js";
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
|
-
import { T as g } from "../../Toggle-
|
|
8
|
+
import { T as g } from "../../Toggle-BbmXeuJd.js";
|
|
9
9
|
import "../Dialog/Dialog.js";
|
|
10
10
|
import "../IconButton/IconButton.js";
|
|
11
11
|
import "../Select/Select.js";
|
|
12
12
|
import "../Popover/Popover.js";
|
|
13
13
|
import "../Table/Table.js";
|
|
14
14
|
import "../Tabs/Tabs.js";
|
|
15
|
-
import "../../Group-
|
|
15
|
+
import "../../Group-DspH8hyO.js";
|
|
16
16
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
17
17
|
export {
|
|
18
18
|
g as default
|
|
@@ -11,6 +11,7 @@ declare const meta: {
|
|
|
11
11
|
error?: import('react').ReactNode;
|
|
12
12
|
children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>, string | import('react').JSXElementConstructor<any>>[];
|
|
13
13
|
'data-testid'?: string | undefined;
|
|
14
|
+
equalWidth?: boolean | undefined;
|
|
14
15
|
ref?: import('react').LegacyRef<HTMLFieldSetElement> | undefined;
|
|
15
16
|
key?: import('react').Key | null | undefined;
|
|
16
17
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -23,3 +24,4 @@ type Story = StoryObj<typeof meta>;
|
|
|
23
24
|
export declare const Simple: Story;
|
|
24
25
|
export declare const NoLegend: Story;
|
|
25
26
|
export declare const WithError: Story;
|
|
27
|
+
export declare const ItemsWithEqualWidth: Story;
|
package/dist/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Advice as p } from "./components/Advice/Advice.js";
|
|
|
3
3
|
import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
|
|
4
4
|
import { Button as x } from "./components/Button/Button.js";
|
|
5
5
|
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
|
6
|
-
import { C as T, R as s, T as c } from "./Toggle-
|
|
6
|
+
import { C as T, R as s, T as c } from "./Toggle-BbmXeuJd.js";
|
|
7
7
|
import { Dialog as u } from "./components/Dialog/Dialog.js";
|
|
8
8
|
import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
9
9
|
import { Icon as k } from "./components/Icon/Icon.js";
|
|
@@ -25,7 +25,7 @@ import { TBody as ro, THead as eo, Table as to, Td as po, Th as ao, Tr as fo } f
|
|
|
25
25
|
import { Tabs as xo } from "./components/Tabs/Tabs.js";
|
|
26
26
|
import { TextDisplay as lo } from "./components/TextDisplay/TextDisplay.js";
|
|
27
27
|
import { Toggle as To } from "./components/Toggle/Toggle.js";
|
|
28
|
-
import { G as co } from "./Group-
|
|
28
|
+
import { G as co } from "./Group-DspH8hyO.js";
|
|
29
29
|
import { Tooltip as uo } from "./components/Tooltip/Tooltip.js";
|
|
30
30
|
import { Text as bo, Typography as ko } from "./components/Typography/Typography.js";
|
|
31
31
|
import { SnackbarContext as Co, SnackbarProvider as Io, useSnackbar as Do } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
package/package.json
CHANGED
package/dist/Group-B80_u5Q1.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import './assets/Group.css';
|
|
2
|
-
import { jsxs as g, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as i } from "react";
|
|
4
|
-
import { Icon as n } from "./components/Icon/Icon.js";
|
|
5
|
-
const c = "_toggle__input_f3ebk_1", b = "_toggle__label_f3ebk_11", _ = {
|
|
6
|
-
toggle__input: c,
|
|
7
|
-
toggle__label: b,
|
|
8
|
-
"toggle__label--selected": "_toggle__label--selected_f3ebk_20",
|
|
9
|
-
"toggle__label--disabled": "_toggle__label--disabled_f3ebk_24",
|
|
10
|
-
"toggle-group__fieldset": "_toggle-group__fieldset_f3ebk_30",
|
|
11
|
-
"toggle-group__options": "_toggle-group__options_f3ebk_35",
|
|
12
|
-
"toggle-group__error": "_toggle-group__error_f3ebk_39"
|
|
13
|
-
}, p = i((e, r) => {
|
|
14
|
-
const { children: d, legend: o, error: l } = e, a = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, s = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
|
|
15
|
-
return /* @__PURE__ */ g("fieldset", { ref: r, "data-testid": e["data-testid"], className: _["toggle-group__fieldset"], children: [
|
|
16
|
-
o && /* @__PURE__ */ t("legend", { "data-testid": a, children: o }),
|
|
17
|
-
/* @__PURE__ */ t("div", { className: _["toggle-group__options"], children: d }),
|
|
18
|
-
l && /* @__PURE__ */ g("div", { className: _["toggle-group__error"], "data-testid": s, children: [
|
|
19
|
-
/* @__PURE__ */ t(n, { icon: "circle-exclamation", size: 24, color: "var(--alert)" }),
|
|
20
|
-
l
|
|
21
|
-
] })
|
|
22
|
-
] });
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
p as G,
|
|
26
|
-
_ as s
|
|
27
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import './assets/SelectButton.css';
|
|
2
|
-
import { jsxs as p, jsx as _ } from "react/jsx-runtime";
|
|
3
|
-
import * as o from "react";
|
|
4
|
-
import { forwardRef as b } from "react";
|
|
5
|
-
import { c as w } from "./clsx-DB4S2d7J.js";
|
|
6
|
-
import { Typography as c } from "./components/Typography/Typography.js";
|
|
7
|
-
const g = "_select__listbox__option__text_1w1kt_65", d = "_select__wrapper_1w1kt_78", k = "_select__label_1w1kt_84", x = "_select_1w1kt_65", m = "_select__popup_1w1kt_93", f = "_select__listbox_1w1kt_65", C = "_select__listbox__option_1w1kt_65", v = "_select__listbox__option__icon_1w1kt_121", L = "_select__list__option__icon_1w1kt_143", e = {
|
|
8
|
-
"u-typography-h1": "_u-typography-h1_1w1kt_1",
|
|
9
|
-
"u-typography-h2": "_u-typography-h2_1w1kt_8",
|
|
10
|
-
"u-typography-h3": "_u-typography-h3_1w1kt_15",
|
|
11
|
-
"u-typography-h4": "_u-typography-h4_1w1kt_22",
|
|
12
|
-
"u-typography-h5": "_u-typography-h5_1w1kt_29",
|
|
13
|
-
"u-typography-h6": "_u-typography-h6_1w1kt_36",
|
|
14
|
-
"u-typography-base": "_u-typography-base_1w1kt_43",
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1w1kt_49",
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--xl_1w1kt_53",
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--lg_1w1kt_57",
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--sm_1w1kt_61",
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--bold_1w1kt_65",
|
|
20
|
-
select__listbox__option__text: g,
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1w1kt_68",
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_1w1kt_71",
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1w1kt_74",
|
|
24
|
-
select__wrapper: d,
|
|
25
|
-
"select__wrapper--fit-content-width": "_select__wrapper--fit-content-width_1w1kt_81",
|
|
26
|
-
select__label: k,
|
|
27
|
-
select: x,
|
|
28
|
-
select__popup: m,
|
|
29
|
-
select__listbox: f,
|
|
30
|
-
select__listbox__option: C,
|
|
31
|
-
select__listbox__option__icon: v,
|
|
32
|
-
"select__listbox__option--disabled": "_select__listbox__option--disabled_1w1kt_125",
|
|
33
|
-
"select__listbox__option--selected": "_select__listbox__option--selected_1w1kt_134",
|
|
34
|
-
select__list__option__icon: L,
|
|
35
|
-
"select-button": "_select-button_1w1kt_148",
|
|
36
|
-
"select-button--full-width": "_select-button--full-width_1w1kt_163",
|
|
37
|
-
"base-Select-popup": "_base-Select-popup_1w1kt_169",
|
|
38
|
-
"select-button__text": "_select-button__text_1w1kt_172",
|
|
39
|
-
"select-button__icon": "_select-button__icon_1w1kt_181",
|
|
40
|
-
"select-button--active": "_select-button--active_1w1kt_187"
|
|
41
|
-
}, S = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M2.11104 4.9999C2.36691 4.9999 2.62291 5.09756 2.81791 5.29287L8.11104 10.5843L13.4048 5.29053C13.7954 4.8999 14.4282 4.8999 14.8188 5.29053C15.2095 5.68115 15.2095 6.31396 14.8188 6.70459L8.81885 12.7046C8.42822 13.0952 7.79541 13.0952 7.40479 12.7046L1.40479 6.70459C1.01416 6.31396 1.01416 5.68115 1.40479 5.29053C1.59854 5.09678 1.85479 4.9999 2.11104 4.9999Z", fill: "currentColor" })), B = (t) => /* @__PURE__ */ o.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M13.8889 11C13.633 11 13.377 10.9023 13.182 10.707L7.8889 5.41563L2.59515 10.7094C2.20453 11.1 1.57172 11.1 1.18109 10.7094C0.790466 10.3188 0.790466 9.68594 1.18109 9.29532L7.18109 3.29532C7.57172 2.90469 8.20453 2.90469 8.59515 3.29532L14.5952 9.29532C14.9858 9.68594 14.9858 10.3188 14.5952 10.7094C14.4014 10.9031 14.1452 11 13.8889 11Z", fill: "#3F3D4B", fillOpacity: 0.88 })), D = b((t, a) => {
|
|
42
|
-
const { children: i, disabled: n, className: r, "data-testid": h, prefix: s, onClick: u, fullWidth: y } = t, l = t["aria-expanded"];
|
|
43
|
-
return /* @__PURE__ */ p(
|
|
44
|
-
"button",
|
|
45
|
-
{
|
|
46
|
-
className: w(
|
|
47
|
-
r,
|
|
48
|
-
l ? e["select-button--active"] : "",
|
|
49
|
-
e["select-button"],
|
|
50
|
-
y && e["select-button--full-width"]
|
|
51
|
-
),
|
|
52
|
-
type: "button",
|
|
53
|
-
onClick: u,
|
|
54
|
-
disabled: n,
|
|
55
|
-
"data-testid": h,
|
|
56
|
-
ref: a,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ p("span", { className: e["select-button__text"], children: [
|
|
59
|
-
s && /* @__PURE__ */ _(c, { children: s }),
|
|
60
|
-
/* @__PURE__ */ _(c, { children: i })
|
|
61
|
-
] }),
|
|
62
|
-
/* @__PURE__ */ _("span", { className: e["select-button__icon"], children: l ? /* @__PURE__ */ _(B, {}) : /* @__PURE__ */ _(S, {}) })
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
D as S,
|
|
69
|
-
e as s
|
|
70
|
-
};
|