@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.
@@ -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 u } from "./clsx-DB4S2d7J.js";
5
- import { Icon as m } from "./components/Icon/Icon.js";
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
- }, y = n((e, r) => {
17
- const { children: s, legend: _, error: g, equalWidth: a } = e, d = e["data-testid"] ? `${e["data-testid"]}-legend` : void 0, i = e["data-testid"] ? `${e["data-testid"]}-error` : void 0;
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": d, children: _ }),
20
- /* @__PURE__ */ o("div", { className: u(t["toggle-group__options"], a && t["toggle-group__options-same-width"]), children: s }),
21
- g && /* @__PURE__ */ l(c, { className: t["toggle-group__error"], "data-testid": i, children: [
22
- /* @__PURE__ */ o(m, { icon: "circle-exclamation" }),
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
- y as G,
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-DspH8hyO.js";
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-MfR7l8Wn.js";
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-DspH8hyO.js";
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-MfR7l8Wn.js";
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-MfR7l8Wn.js";
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-DspH8hyO.js";
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;
@@ -3,7 +3,7 @@ import "react";
3
3
  import "../../clsx-DB4S2d7J.js";
4
4
  import "../Icon/Icon.js";
5
5
  import "../Typography/Typography.js";
6
- import { G as e } from "../../Group-DspH8hyO.js";
6
+ import { G as e } from "../../Group-ZXteFV4M.js";
7
7
  export {
8
8
  e as default
9
9
  };
@@ -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-MfR7l8Wn.js";
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-DspH8hyO.js";
17
+ import "../../Group-ZXteFV4M.js";
18
18
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
19
19
  export {
20
20
  j as default
@@ -1,5 +1,5 @@
1
- import { T as e } from "../../Toggle-MfR7l8Wn.js";
2
- import { G as p } from "../../Group-DspH8hyO.js";
1
+ import { T as e } from "../../Toggle-BuZjueQ7.js";
2
+ import { G as p } from "../../Group-ZXteFV4M.js";
3
3
  export {
4
4
  p as ToggleGroup,
5
5
  e as ToggleGroupItem
@@ -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-MfR7l8Wn.js";
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-DspH8hyO.js";
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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pismo/marola",
3
3
  "description": "CDX tribe component library",
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",