@pismo/marola 1.2.0 → 2.0.0
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/{Button-BAljjMv3.js → Button-cCziLrIy.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-CUayzVlD.js} +3 -3
- package/dist/Dialog.module-BtKUNFVu.js +13 -0
- package/dist/{Group-BKXO7GzU.js → Group-Cyc1W1kV.js} +1 -1
- package/dist/{Popup-Ck3XlWMq.js → Popup-C7AXLoP0.js} +5 -7
- package/dist/{Portal-oY3enyAm.js → Portal-CYV5TK_i.js} +2 -2
- package/dist/SelectButton-k61YYjLu.js +58 -0
- package/dist/Tabs.module-DyJgAZt8.js +28 -0
- package/dist/{Toggle-Bkf8bKbA.js → Toggle-DEVeyo2f.js} +3 -3
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-BCXoX9Nx.js} +20 -21
- package/dist/components/Adornment/Adornment.d.ts +2 -3
- package/dist/components/Adornment/Adornment.js +1 -1
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -1
- package/dist/components/Advice/Advice.d.ts +2 -3
- package/dist/components/Advice/Advice.js +1 -1
- package/dist/components/Advice/Advice.stories.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -2
- package/dist/components/Autocomplete/Autocomplete.js +282 -298
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +1 -2
- package/dist/components/BankCard/BankCard.js +1 -1
- package/dist/components/BankCard/BankCard.stories.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +1 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/components/Chip/Chip.d.ts +1 -2
- package/dist/components/Chip/Chip.js +4 -4
- package/dist/components/Chip/Chip.stories.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -2
- package/dist/components/Description/Description.d.ts +0 -1
- package/dist/components/Description/Description.js +27 -42
- package/dist/components/Description/Description.stories.d.ts +0 -1
- package/dist/components/Dialog/Actions.d.ts +0 -1
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +0 -1
- package/dist/components/Dialog/Backdrop.js +2 -2
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Content.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts +5 -6
- package/dist/components/Dialog/Dialog.js +6 -6
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -1
- package/dist/components/Dialog/DialogTitle.d.ts +1 -2
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +9 -5
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -2
- package/dist/components/IconButton/Icon.stories.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -2
- package/dist/components/IconButton/IconButton.js +2 -2
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +259 -274
- package/dist/components/Input/Input.stories.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.js +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -2
- package/dist/components/PageHeader/PageHeader.js +65 -80
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -1
- package/dist/components/Pagination/Pagination.js +43 -58
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -2
- package/dist/components/Popover/Popover.d.ts +0 -1
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/Popover.stories.d.ts +1 -2
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.d.ts +2 -3
- package/dist/components/RowItem/RowItem.js +3 -3
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/Select.stories.d.ts +1 -2
- package/dist/components/Select/SelectButton.d.ts +0 -1
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +7 -8
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -2
- package/dist/components/SortTooltip/SortTooltip.d.ts +0 -1
- package/dist/components/SortTooltip/SortTooltip.js +34 -51
- package/dist/components/Stepper/Stepper.d.ts +0 -1
- package/dist/components/Stepper/Stepper.js +19 -34
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -2
- package/dist/components/StepperNavigator/StepperNavigator.js +1 -1
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +3 -4
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.stories.d.ts +0 -1
- package/dist/components/Table/TableContext.d.ts +2 -3
- package/dist/components/Table/TableContext.js +4 -4
- package/dist/components/Table/_Table.TBody.stories.d.ts +1 -2
- package/dist/components/Table/_Table.THead.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Td.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Th.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Tr.stories.d.ts +1 -2
- package/dist/components/Tabs/Tab.d.ts +1 -2
- package/dist/components/Tabs/Tab.js +5 -5
- package/dist/components/Tabs/Tab.stories.d.ts +1 -2
- package/dist/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/TabPanel.stories.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.js +5 -5
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -2
- package/dist/components/Tag/Tag.d.ts +0 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.js +1 -1
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.js +1 -1
- package/dist/components/ToastCard/ToastCard.stories.d.ts +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -1
- package/dist/components/Toggle/Toggle.js +102 -117
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -1
- package/dist/components/ToggleGroup/Group.d.ts +1 -2
- package/dist/components/ToggleGroup/Group.js +2 -2
- package/dist/components/ToggleGroup/Toggle.js +3 -3
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.d.ts +13 -9
- package/dist/components/Tooltip/Tooltip.js +146 -105
- package/dist/components/Tooltip/Tooltip.stories.d.ts +18 -10
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/TransactionRow/TransactionRow.d.ts +0 -1
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +5 -5
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -2
- package/dist/{index-bQFToy-I.js → index-CATDT7fJ.js} +7927 -8368
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-CAHSRRik.js} +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-eF8MXAli.js} +1 -1
- package/dist/{useList-B9C55YB7.js → useList-CPY2roI7.js} +3 -4
- package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-DSnfx453.js} +123 -126
- package/dist/utils/inputNumberAsText.d.ts +0 -1
- package/dist/utils/inputNumberAsText.js +2 -4
- package/dist/utils/styleStrings.d.ts +0 -1
- package/package.json +1 -1
- package/dist/Dialog.module-CE1Q-5tJ.js +0 -28
- package/dist/SelectButton-DbiTJagF.js +0 -74
- package/dist/Tabs.module-CF9eCJzU.js +0 -28
- package/dist/clsx-DB4S2d7J.js +0 -22
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import * as P from "react";
|
|
3
3
|
import { forwardRef as v } from "react";
|
|
4
|
-
import { c as y } from "../../clsx-
|
|
5
|
-
import { u as x, s as C } from "../../Tabs.module-
|
|
6
|
-
import { g as N, a as _, u as w, b, _ as O, c as E,
|
|
4
|
+
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { u as x, s as C } from "../../Tabs.module-DyJgAZt8.js";
|
|
6
|
+
import { g as N, a as _, u as w, b, _ as O, c as E, d as I, e as S, P as o } from "../../useSlotProps-DSnfx453.js";
|
|
7
7
|
import { u as U } from "../../useId-BW-oWmul.js";
|
|
8
8
|
import { u as j } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
9
9
|
const h = "TabPanel";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TabPanelProps } from './Tabs.tsx';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { TabPanelProps } from './Tabs.tsx';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: import('react').ForwardRefExoticComponent<TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { forwardRef as q } from "react";
|
|
4
|
-
import { c as B } from "../../clsx-
|
|
5
|
-
import { T as G, u as J, s as Q } from "../../Tabs.module-
|
|
4
|
+
import { c as B } from "../../clsx-OuTLNxxd.js";
|
|
5
|
+
import { T as G, u as J, s as Q } from "../../Tabs.module-DyJgAZt8.js";
|
|
6
6
|
import { Tab as Ie } from "./Tab.js";
|
|
7
7
|
import { TabPanel as Fe } from "./TabPanel.js";
|
|
8
|
-
import { g as I, a as _, b as C, _ as F, c as $,
|
|
8
|
+
import { g as I, a as _, b as C, _ as F, c as $, d as N, e as w, P as t } from "../../useSlotProps-DSnfx453.js";
|
|
9
9
|
import { a as M, C as O } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
10
10
|
import { u as X } from "../../useControlled-CCMYYdCM.js";
|
|
11
|
-
import { L as Y, a as Z } from "../../combineHooksSlotProps-
|
|
12
|
-
import { l as ee, m as te, u as oe } from "../../useList-
|
|
11
|
+
import { L as Y, a as Z } from "../../combineHooksSlotProps-BCXoX9Nx.js";
|
|
12
|
+
import { l as ee, m as te, u as oe } from "../../useList-CPY2roI7.js";
|
|
13
13
|
const k = "Tabs";
|
|
14
14
|
function se(s) {
|
|
15
15
|
return I(k, s);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TabsProps } from './Tabs.tsx';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { TabsProps } from './Tabs.tsx';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: import('react').ForwardRefExoticComponent<TabsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
type TagVariant = 'success' | 'error' | 'warning' | 'default' | 'processing';
|
|
4
3
|
type TagColor = 'magenta' | 'blue' | 'cyan' | 'geek-blue' | 'gold' | 'green' | 'lime' | 'orange' | 'purple' | 'red' | 'volcano';
|
|
5
4
|
export type TagProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as k, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as g } from "react";
|
|
3
|
-
import { c } from "../../clsx-
|
|
3
|
+
import { c } from "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import { Icon as m } from "../Icon/Icon.js";
|
|
5
5
|
import '../../assets/Tag.css';const p = "_container_14kte_1", e = {
|
|
6
6
|
container: p,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TagProps } from '../../main';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { TagProps } from '../../main';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ variant, color, children, "data-testid": dataTestId, outlined, "with-icon": withIcon, iconSize, }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as f, jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { c as $ } from "../../clsx-
|
|
2
|
+
import { c as $ } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Skeleton as m } from "../Skeleton/Skeleton.js";
|
|
4
4
|
import { Typography as y } from "../Typography/Typography.js";
|
|
5
5
|
import '../../assets/TextDisplay.css';const g = "_container_ia8vu_1", e = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: ({ label, value, isLoading, "data-testid": dataTestId, labelOptions, valueOptions, inline, }: import('./TextDisplay').TextDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a, Fragment as u } from "react/jsx-runtime";
|
|
2
|
-
import { c as d } from "../../clsx-
|
|
2
|
+
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Icon as N } from "../Icon/Icon.js";
|
|
4
4
|
import { IconButton as h } from "../IconButton/IconButton.js";
|
|
5
5
|
import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: ({ variant, className, "data-testid": dataTestId, title, "data-testid-title-wrapper": dataTestIdTitleWrapper, classNameTitleWrapper, children, "data-testid-children-wrapper": dataTestIdChildrenWrapper, classNameChildrenWrapper, footer, "data-testid-footer-wrapper": dataTestIdFooterWrapper, classNameFooterWrapper, onClose, }: import('./ToastCard').ToastCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { jsxs as j, jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as E, b as
|
|
4
|
-
import * as
|
|
1
|
+
import { jsxs as j, jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import { c as F } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { u as E, b as y, g as v, a as U, _ as H, c as N, d as M, e as A, P as e } from "../../useSlotProps-DSnfx453.js";
|
|
4
|
+
import * as V from "react";
|
|
5
5
|
import { u as D } from "../../useControlled-CCMYYdCM.js";
|
|
6
6
|
import { u as L } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
7
7
|
import '../../assets/Toggle.css';function W(l) {
|
|
8
8
|
const {
|
|
9
9
|
checked: s,
|
|
10
|
-
defaultChecked:
|
|
11
|
-
disabled:
|
|
12
|
-
onBlur:
|
|
13
|
-
onChange:
|
|
14
|
-
onFocus:
|
|
10
|
+
defaultChecked: p,
|
|
11
|
+
disabled: c,
|
|
12
|
+
onBlur: a,
|
|
13
|
+
onChange: g,
|
|
14
|
+
onFocus: r,
|
|
15
15
|
onFocusVisible: u,
|
|
16
|
-
readOnly:
|
|
17
|
-
required:
|
|
18
|
-
} = l, [
|
|
16
|
+
readOnly: n,
|
|
17
|
+
required: i
|
|
18
|
+
} = l, [S, q] = D({
|
|
19
19
|
controlled: s,
|
|
20
|
-
default: !!
|
|
20
|
+
default: !!p,
|
|
21
21
|
name: "Switch",
|
|
22
22
|
state: "checked"
|
|
23
|
-
}),
|
|
24
|
-
var
|
|
25
|
-
o.nativeEvent.defaultPrevented || (
|
|
23
|
+
}), x = (t) => (o) => {
|
|
24
|
+
var b;
|
|
25
|
+
o.nativeEvent.defaultPrevented || (q(o.target.checked), g == null || g(o), (b = t.onChange) == null || b.call(t, o));
|
|
26
26
|
}, {
|
|
27
|
-
isFocusVisibleRef:
|
|
27
|
+
isFocusVisibleRef: _,
|
|
28
28
|
onBlur: B,
|
|
29
|
-
onFocus:
|
|
30
|
-
ref:
|
|
31
|
-
} = L(), [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
const
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
var
|
|
40
|
-
B(o),
|
|
41
|
-
},
|
|
29
|
+
onFocus: f,
|
|
30
|
+
ref: m
|
|
31
|
+
} = L(), [h, P] = V.useState(!1);
|
|
32
|
+
c && h && P(!1), V.useEffect(() => {
|
|
33
|
+
_.current = h;
|
|
34
|
+
}, [h, _]);
|
|
35
|
+
const k = V.useRef(null), w = (t) => (o) => {
|
|
36
|
+
var b;
|
|
37
|
+
k.current || (k.current = o.currentTarget), f(o), _.current === !0 && (P(!0), u == null || u(o)), r == null || r(o), (b = t.onFocus) == null || b.call(t, o);
|
|
38
|
+
}, O = (t) => (o) => {
|
|
39
|
+
var b;
|
|
40
|
+
B(o), _.current === !1 && P(!1), a == null || a(o), (b = t.onBlur) == null || b.call(t, o);
|
|
41
|
+
}, C = E(m, k);
|
|
42
42
|
return {
|
|
43
|
-
checked:
|
|
44
|
-
disabled: !!
|
|
45
|
-
focusVisible:
|
|
46
|
-
getInputProps: (t = {}) =>
|
|
43
|
+
checked: S,
|
|
44
|
+
disabled: !!c,
|
|
45
|
+
focusVisible: h,
|
|
46
|
+
getInputProps: (t = {}) => y({
|
|
47
47
|
checked: s,
|
|
48
|
-
defaultChecked:
|
|
49
|
-
disabled:
|
|
50
|
-
readOnly:
|
|
51
|
-
ref:
|
|
52
|
-
required:
|
|
48
|
+
defaultChecked: p,
|
|
49
|
+
disabled: c,
|
|
50
|
+
readOnly: n,
|
|
51
|
+
ref: C,
|
|
52
|
+
required: i,
|
|
53
53
|
type: "checkbox",
|
|
54
54
|
role: "switch",
|
|
55
55
|
"aria-checked": s
|
|
56
56
|
}, t, {
|
|
57
|
-
onChange:
|
|
57
|
+
onChange: x(t),
|
|
58
58
|
onFocus: w(t),
|
|
59
|
-
onBlur:
|
|
59
|
+
onBlur: O(t)
|
|
60
60
|
}),
|
|
61
|
-
inputRef:
|
|
62
|
-
readOnly: !!
|
|
61
|
+
inputRef: C,
|
|
62
|
+
readOnly: !!n
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
const I = "Switch";
|
|
@@ -70,60 +70,60 @@ U(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible",
|
|
|
70
70
|
const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "slotProps", "slots"], J = (l) => {
|
|
71
71
|
const {
|
|
72
72
|
checked: s,
|
|
73
|
-
disabled:
|
|
74
|
-
focusVisible:
|
|
75
|
-
readOnly:
|
|
73
|
+
disabled: p,
|
|
74
|
+
focusVisible: c,
|
|
75
|
+
readOnly: a
|
|
76
76
|
} = l;
|
|
77
77
|
return M({
|
|
78
|
-
root: ["root", s && "checked",
|
|
78
|
+
root: ["root", s && "checked", p && "disabled", c && "focusVisible", a && "readOnly"],
|
|
79
79
|
thumb: ["thumb"],
|
|
80
80
|
input: ["input"],
|
|
81
81
|
track: ["track"]
|
|
82
82
|
}, A(z));
|
|
83
|
-
}, $ = /* @__PURE__ */
|
|
84
|
-
var
|
|
83
|
+
}, $ = /* @__PURE__ */ V.forwardRef(function(s, p) {
|
|
84
|
+
var c, a, g, r;
|
|
85
85
|
const {
|
|
86
86
|
slotProps: u = {},
|
|
87
|
-
slots:
|
|
88
|
-
} = s,
|
|
89
|
-
getInputProps:
|
|
90
|
-
checked:
|
|
91
|
-
disabled:
|
|
92
|
-
focusVisible:
|
|
87
|
+
slots: n = {}
|
|
88
|
+
} = s, i = H(s, G), {
|
|
89
|
+
getInputProps: S,
|
|
90
|
+
checked: q,
|
|
91
|
+
disabled: x,
|
|
92
|
+
focusVisible: _,
|
|
93
93
|
readOnly: B
|
|
94
|
-
} = W(s),
|
|
95
|
-
checked:
|
|
96
|
-
disabled:
|
|
97
|
-
focusVisible:
|
|
94
|
+
} = W(s), f = y({}, s, {
|
|
95
|
+
checked: q,
|
|
96
|
+
disabled: x,
|
|
97
|
+
focusVisible: _,
|
|
98
98
|
readOnly: B
|
|
99
|
-
}),
|
|
100
|
-
elementType:
|
|
99
|
+
}), m = J(f), h = (c = n.root) != null ? c : "span", P = N({
|
|
100
|
+
elementType: h,
|
|
101
101
|
externalSlotProps: u.root,
|
|
102
|
-
externalForwardedProps:
|
|
102
|
+
externalForwardedProps: i,
|
|
103
103
|
additionalProps: {
|
|
104
|
-
ref:
|
|
104
|
+
ref: p
|
|
105
105
|
},
|
|
106
|
-
ownerState:
|
|
107
|
-
className:
|
|
108
|
-
}),
|
|
109
|
-
elementType:
|
|
106
|
+
ownerState: f,
|
|
107
|
+
className: m.root
|
|
108
|
+
}), k = (a = n.thumb) != null ? a : "span", w = N({
|
|
109
|
+
elementType: k,
|
|
110
110
|
externalSlotProps: u.thumb,
|
|
111
|
-
ownerState:
|
|
112
|
-
className:
|
|
113
|
-
}),
|
|
114
|
-
elementType:
|
|
115
|
-
getSlotProps:
|
|
111
|
+
ownerState: f,
|
|
112
|
+
className: m.thumb
|
|
113
|
+
}), O = (g = n.input) != null ? g : "input", C = N({
|
|
114
|
+
elementType: O,
|
|
115
|
+
getSlotProps: S,
|
|
116
116
|
externalSlotProps: u.input,
|
|
117
|
-
ownerState:
|
|
118
|
-
className:
|
|
119
|
-
}), R =
|
|
117
|
+
ownerState: f,
|
|
118
|
+
className: m.input
|
|
119
|
+
}), R = n.track === null ? () => null : (r = n.track) != null ? r : "span", t = N({
|
|
120
120
|
elementType: R,
|
|
121
121
|
externalSlotProps: u.track,
|
|
122
|
-
ownerState:
|
|
123
|
-
className:
|
|
122
|
+
ownerState: f,
|
|
123
|
+
className: m.track
|
|
124
124
|
});
|
|
125
|
-
return /* @__PURE__ */ j(
|
|
126
|
-
children: [/* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ j(h, y({}, P, {
|
|
126
|
+
children: [/* @__PURE__ */ T(R, y({}, t)), /* @__PURE__ */ T(k, y({}, w)), /* @__PURE__ */ T(O, y({}, C))]
|
|
127
127
|
}));
|
|
128
128
|
});
|
|
129
129
|
process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
@@ -197,23 +197,8 @@ process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
|
197
197
|
track: e.oneOfType([e.elementType, e.oneOf([null])])
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
|
-
const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_89", Y = "_thumb_p0gq9_100", Z = "_track_p0gq9_114",
|
|
201
|
-
"u-typography-h1": "_u-typography-h1_p0gq9_1",
|
|
202
|
-
"u-typography-h2": "_u-typography-h2_p0gq9_8",
|
|
203
|
-
"u-typography-h3": "_u-typography-h3_p0gq9_15",
|
|
204
|
-
"u-typography-h4": "_u-typography-h4_p0gq9_22",
|
|
205
|
-
"u-typography-h5": "_u-typography-h5_p0gq9_29",
|
|
206
|
-
"u-typography-h6": "_u-typography-h6_p0gq9_36",
|
|
207
|
-
"u-typography-base": "_u-typography-base_p0gq9_43",
|
|
200
|
+
const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_89", Y = "_thumb_p0gq9_100", Z = "_track_p0gq9_114", d = {
|
|
208
201
|
toggle__label: K,
|
|
209
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_p0gq9_49",
|
|
210
|
-
"u-typography-base--xl": "_u-typography-base--xl_p0gq9_53",
|
|
211
|
-
"u-typography-base--lg": "_u-typography-base--lg_p0gq9_57",
|
|
212
|
-
"u-typography-base--sm": "_u-typography-base--sm_p0gq9_61",
|
|
213
|
-
"u-typography-base--bold": "_u-typography-base--bold_p0gq9_65",
|
|
214
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_p0gq9_68",
|
|
215
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_p0gq9_71",
|
|
216
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_p0gq9_74",
|
|
217
202
|
toggle: Q,
|
|
218
203
|
"toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_p0gq9_85",
|
|
219
204
|
input: X,
|
|
@@ -222,44 +207,44 @@ const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_8
|
|
|
222
207
|
"toggle--focus-visible": "_toggle--focus-visible_p0gq9_124",
|
|
223
208
|
"toggle--checked": "_toggle--checked_p0gq9_128",
|
|
224
209
|
"toggle--disabled": "_toggle--disabled_p0gq9_141"
|
|
225
|
-
},
|
|
210
|
+
}, ce = ({
|
|
226
211
|
label: l,
|
|
227
212
|
checked: s,
|
|
228
|
-
disabled:
|
|
229
|
-
classNameWrapper:
|
|
230
|
-
classNameInput:
|
|
231
|
-
"data-testid":
|
|
232
|
-
onChange:
|
|
213
|
+
disabled: p,
|
|
214
|
+
classNameWrapper: c,
|
|
215
|
+
classNameInput: a,
|
|
216
|
+
"data-testid": g,
|
|
217
|
+
onChange: r,
|
|
233
218
|
classNameLabel: u
|
|
234
219
|
}) => {
|
|
235
|
-
const
|
|
236
|
-
|
|
220
|
+
const n = (i) => {
|
|
221
|
+
r == null || r(i);
|
|
237
222
|
};
|
|
238
|
-
return /* @__PURE__ */ j("div", { className:
|
|
239
|
-
/* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ j("div", { className: F(d.toggle, c), "data-testid": g, children: [
|
|
224
|
+
/* @__PURE__ */ T(
|
|
240
225
|
$,
|
|
241
226
|
{
|
|
242
227
|
checked: s === !0,
|
|
243
|
-
disabled:
|
|
244
|
-
onChange:
|
|
228
|
+
disabled: p,
|
|
229
|
+
onChange: n,
|
|
245
230
|
"aria-label": l,
|
|
246
231
|
slotProps: {
|
|
247
|
-
root: (
|
|
248
|
-
className:
|
|
249
|
-
[
|
|
250
|
-
[
|
|
251
|
-
[
|
|
232
|
+
root: (i) => ({
|
|
233
|
+
className: F(d["toggle__toggle-el-wrapper"], {
|
|
234
|
+
[d["toggle--disabled"]]: i.disabled,
|
|
235
|
+
[d["toggle--focus-visible"]]: i.focusVisible,
|
|
236
|
+
[d["toggle--checked"]]: i.checked
|
|
252
237
|
})
|
|
253
238
|
}),
|
|
254
|
-
input: { className:
|
|
255
|
-
thumb: { className:
|
|
256
|
-
track: { className:
|
|
239
|
+
input: { className: F(d.input, a) },
|
|
240
|
+
thumb: { className: d.thumb },
|
|
241
|
+
track: { className: d.track }
|
|
257
242
|
}
|
|
258
243
|
}
|
|
259
244
|
),
|
|
260
|
-
l && /* @__PURE__ */
|
|
245
|
+
l && /* @__PURE__ */ T("label", { className: F(d.toggle__label, u), children: l })
|
|
261
246
|
] });
|
|
262
247
|
};
|
|
263
248
|
export {
|
|
264
|
-
|
|
249
|
+
ce as Toggle
|
|
265
250
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../clsx-
|
|
3
|
+
import "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import "../Icon/Icon.js";
|
|
5
5
|
import "../Typography/Typography.js";
|
|
6
|
-
import { G as e } from "../../Group-
|
|
6
|
+
import { G as e } from "../../Group-Cyc1W1kV.js";
|
|
7
7
|
export {
|
|
8
8
|
e as default
|
|
9
9
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../clsx-
|
|
3
|
+
import "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import "../Icon/Icon.js";
|
|
5
5
|
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-DEVeyo2f.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-Cyc1W1kV.js";
|
|
18
18
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
19
19
|
export {
|
|
20
20
|
j as default
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ToggleGroupProps } from './Group.tsx';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
1
|
import { FunctionComponent } from 'react';
|
|
4
|
-
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { ToggleGroupProps } from './Group.tsx';
|
|
5
4
|
declare const meta: {
|
|
6
5
|
title: string;
|
|
7
6
|
component: import('react').ForwardRefExoticComponent<ToggleGroupProps & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { PopupPlacement } from '@mui/base';
|
|
2
1
|
import { AriaRole, CSSProperties, ReactNode } from 'react';
|
|
3
|
-
|
|
2
|
+
import { PopupPlacement } from '@mui/base';
|
|
4
3
|
export type TooltipProps = {
|
|
5
4
|
/** Tooltip reference element. */
|
|
6
5
|
children: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
title
|
|
6
|
+
/** Optional title to display in the tooltip. */
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
/** Tooltip content to display in the tooltip. Zero-length content string, undefined, null and false are never displayed. */
|
|
9
|
+
content: ReactNode;
|
|
10
|
+
/** Optional footer to display in the tooltip. Can only be a button or a link. */
|
|
11
|
+
footer?: {
|
|
12
|
+
type: 'button' | 'link';
|
|
13
|
+
label: string;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
href?: string;
|
|
16
|
+
};
|
|
9
17
|
/** Should the tooltip be initially open */
|
|
10
18
|
open?: boolean;
|
|
11
19
|
/** Disable the hover listener */
|
|
12
20
|
disableHoverListener?: boolean;
|
|
13
21
|
/** Function to run when the tooltip is closed */
|
|
14
22
|
onClose?: () => void;
|
|
15
|
-
/** The color of the tooltip */
|
|
16
|
-
theme?: 'white' | 'black';
|
|
17
|
-
/** The padding applied to the tooltip */
|
|
18
|
-
padding?: 'small' | 'normal';
|
|
19
23
|
/** The Position where the tooltip will be display relative to the anchor element */
|
|
20
24
|
position?: PopupPlacement;
|
|
21
25
|
/** Accessibility role label */
|
|
@@ -31,5 +35,5 @@ export type TooltipProps = {
|
|
|
31
35
|
/** Disable uses portal (true by default) */
|
|
32
36
|
disablePortal?: boolean;
|
|
33
37
|
};
|
|
34
|
-
declare const Tooltip: ({ arialRole, children: childrenProp, className, disableHoverListener, onClose,
|
|
38
|
+
declare const Tooltip: ({ arialRole, children: childrenProp, className, disableHoverListener, onClose, position, open: openProp, title, content, footer, onTargetCreated, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
39
|
export { Tooltip };
|