@pismo/marola 2.1.24 → 2.1.26
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/DatePicker.module-CnuDEiKF.js +44 -0
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/DoubleInput.css +1 -0
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +17 -7
- package/dist/components/DatePicker/DatePicker.js +864 -855
- package/dist/components/DatePicker/DatePicker.stories.d.ts +17 -10
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderDualCalendarHeader.js +1 -1
- package/dist/components/DatePicker/renderHeader.js +1 -1
- package/dist/components/DatePicker/renderNavigatorInput.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/DoubleInput/DoubleInput.d.ts +21 -0
- package/dist/components/DoubleInput/DoubleInput.js +25 -0
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +21 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +27 -27
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +230 -220
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +137 -134
- package/dist/utils/iconsList.js +130 -124
- package/package.json +1 -1
- package/dist/DatePicker.module-C9zgeg52.js +0 -46
- /package/dist/components/Typography/{typography.test.d.ts → Typography.test.d.ts} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
import { default as dayjs } from 'dayjs';
|
|
3
|
+
import { DatePickerProps } from './DatePicker';
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
|
-
component: import(
|
|
6
|
-
|
|
6
|
+
component: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
tags: string[];
|
|
8
|
+
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
7
9
|
viewMode: "month" | "day" | "year";
|
|
8
10
|
locale?: string | undefined;
|
|
9
11
|
placeholder?: string | undefined;
|
|
@@ -11,14 +13,14 @@ declare const meta: {
|
|
|
11
13
|
minDate?: dayjs.Dayjs | undefined;
|
|
12
14
|
maxDate?: dayjs.Dayjs | undefined;
|
|
13
15
|
disableDates?: ((date: dayjs.Dayjs) => boolean) | undefined;
|
|
14
|
-
testid?: string | undefined;
|
|
15
16
|
onChange: (date: dayjs.Dayjs | [dayjs.Dayjs | null, dayjs.Dayjs | null]) => void;
|
|
16
17
|
placement?: "bottom" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | undefined;
|
|
17
18
|
navigatorInput?: boolean | undefined;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
'data-testid'?: string | undefined;
|
|
21
|
+
mode: "single";
|
|
22
|
+
value?: Date | undefined;
|
|
23
|
+
} | {
|
|
22
24
|
viewMode: "month" | "day" | "year";
|
|
23
25
|
locale?: string | undefined;
|
|
24
26
|
placeholder?: string | undefined;
|
|
@@ -26,16 +28,21 @@ declare const meta: {
|
|
|
26
28
|
minDate?: dayjs.Dayjs | undefined;
|
|
27
29
|
maxDate?: dayjs.Dayjs | undefined;
|
|
28
30
|
disableDates?: ((date: dayjs.Dayjs) => boolean) | undefined;
|
|
29
|
-
testid?: string | undefined;
|
|
30
31
|
onChange: (date: dayjs.Dayjs | [dayjs.Dayjs | null, dayjs.Dayjs | null]) => void;
|
|
31
32
|
placement?: "bottom" | "top" | "bottom-start" | "bottom-end" | "top-start" | "top-end" | undefined;
|
|
32
33
|
navigatorInput?: boolean | undefined;
|
|
34
|
+
className?: string | undefined;
|
|
35
|
+
'data-testid'?: string | undefined;
|
|
36
|
+
mode: "range";
|
|
37
|
+
values?: [Date, Date] | undefined;
|
|
33
38
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
34
39
|
};
|
|
35
40
|
export default meta;
|
|
36
|
-
type Story = StoryObj<
|
|
37
|
-
export declare const
|
|
41
|
+
type Story = StoryObj<DatePickerProps>;
|
|
42
|
+
export declare const Single: Story;
|
|
43
|
+
export declare const SingleWithValue: Story;
|
|
38
44
|
export declare const RangePicker: Story;
|
|
45
|
+
export declare const RangeWithValues: Story;
|
|
39
46
|
export declare const MonthView: Story;
|
|
40
47
|
export declare const YearView: Story;
|
|
41
48
|
export declare const LocalizedPortuguese: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import { d as x } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s } from "../../DatePicker.module-
|
|
3
|
+
import { s } from "../../DatePicker.module-CnuDEiKF.js";
|
|
4
4
|
import { getWeekdayNames as E, getMonthGrid as I, isDateInRange as C, isRangeStart as p, isRangeEnd as c, isDisabled as y, isCurrentDay as W, formatDateForInput as h } from "./dateUtils.js";
|
|
5
5
|
const A = (a, n, i) => {
|
|
6
6
|
if (!n[0] || !i) return !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-CnuDEiKF.js";
|
|
4
4
|
import { getPreviousMonth as d, getNextMonth as n } from "./dateUtils.js";
|
|
5
5
|
const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ */ s("div", { className: t["month-header-row"], "data-testid": "dual-calendar-header", children: [
|
|
6
6
|
/* @__PURE__ */ a(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-CnuDEiKF.js";
|
|
4
4
|
const k = ({
|
|
5
5
|
currentViewMode: r,
|
|
6
6
|
currentMonth: a,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as s } from "../Icon/Icon.js";
|
|
3
|
-
import { s as i } from "../../DatePicker.module-
|
|
3
|
+
import { s as i } from "../../DatePicker.module-CnuDEiKF.js";
|
|
4
4
|
const p = ({
|
|
5
5
|
navigateToPrevious: b,
|
|
6
6
|
navigateToNext: u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { d as Y } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s } from "../../DatePicker.module-
|
|
3
|
+
import { s } from "../../DatePicker.module-CnuDEiKF.js";
|
|
4
4
|
const T = ({
|
|
5
5
|
currentViewMode: d,
|
|
6
6
|
currentMonth: i,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { InputProps } from '../Input/Input';
|
|
3
|
+
export type DoubleInputProps = {
|
|
4
|
+
/** Element to be used a separator between inputs */
|
|
5
|
+
separator: React.ReactNode;
|
|
6
|
+
/** Styles to be applied to separator element */
|
|
7
|
+
separatorStyles?: CSSProperties;
|
|
8
|
+
/** Props to be used in left input element */
|
|
9
|
+
leftInputProps: InputProps;
|
|
10
|
+
/** Props to be used in right input element */
|
|
11
|
+
rightInputProps: InputProps;
|
|
12
|
+
/** Control the left element width */
|
|
13
|
+
leftWidth?: string;
|
|
14
|
+
/** Control the right element width */
|
|
15
|
+
rightWidth?: string;
|
|
16
|
+
/** CSS classes to be applied on the container element */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Id to be applied as `data-testid` on the container element */
|
|
19
|
+
'data-testid'?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const DoubleInput: ({ separator, leftInputProps, rightInputProps, leftWidth, rightWidth, separatorStyles, className, "data-testid": dataTestId, }: DoubleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Input as r } from "../Input/Input.js";
|
|
4
|
+
import '../../assets/DoubleInput.css';const m = "_container_49u1c_1", _ = "_separator_49u1c_28", a = {
|
|
5
|
+
container: m,
|
|
6
|
+
"left-input": "_left-input_49u1c_16",
|
|
7
|
+
"right-input": "_right-input_49u1c_22",
|
|
8
|
+
separator: _
|
|
9
|
+
}, v = ({
|
|
10
|
+
separator: s,
|
|
11
|
+
leftInputProps: n,
|
|
12
|
+
rightInputProps: o,
|
|
13
|
+
leftWidth: i = "auto",
|
|
14
|
+
rightWidth: e = "auto",
|
|
15
|
+
separatorStyles: c,
|
|
16
|
+
className: p,
|
|
17
|
+
"data-testid": u
|
|
18
|
+
}) => /* @__PURE__ */ l("div", { className: d(a.container, p), "data-testid": u, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { style: { minWidth: i, maxWidth: i }, className: a["left-input"], children: /* @__PURE__ */ t(r, { ...n }) }),
|
|
20
|
+
/* @__PURE__ */ t("div", { className: a.separator, id: "double-input-separator", style: c, children: s }),
|
|
21
|
+
/* @__PURE__ */ t("div", { style: { minWidth: e, maxWidth: e }, className: a["right-input"], children: /* @__PURE__ */ t(r, { ...o }) })
|
|
22
|
+
] });
|
|
23
|
+
export {
|
|
24
|
+
v as DoubleInput
|
|
25
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ separator, leftInputProps, rightInputProps, leftWidth, rightWidth, separatorStyles, className, "data-testid": dataTestId, }: import('./DoubleInput').DoubleInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
7
|
+
separator: import('react').ReactNode;
|
|
8
|
+
separatorStyles?: import('react').CSSProperties | undefined;
|
|
9
|
+
leftInputProps: import('../Input/Input').InputProps;
|
|
10
|
+
rightInputProps: import('../Input/Input').InputProps;
|
|
11
|
+
leftWidth?: string | undefined;
|
|
12
|
+
rightWidth?: string | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
'data-testid'?: string | undefined;
|
|
15
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
export declare const Simple: Story;
|
|
20
|
+
export declare const WithLabels: Story;
|
|
21
|
+
export declare const WithIconAsSeparator: Story;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file is automatically generated. Any changes will be lost.
|
|
3
3
|
* run "yarn generate-icon-types" or "yarn build" to regenerate it.
|
|
4
4
|
*/
|
|
5
|
-
export type IconName = 'alien-8bit' | 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right' | 'arrow-right-to-arc' | 'arrow-up-right-from-square' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-right' | 'chevron-up' | 'chevrons-right' | 'circle' | 'circle-arrow-right' | 'circle-check' | 'circle-check-outline' | 'circle-exclamation' | 'circle-exclamation-outline' | 'circle-info' | 'circle-minus' | 'circle-plus' | 'circle-x' | 'circle-xmark' | 'circle-xmark-outline' | 'clock' | 'clock-rotate-left' | 'coin' | 'coins' | 'computer-classic' | 'copy' | 'credit-card' | 'credit-card-blank' | 'credit-card-front' | 'download' | 'ellipsis-vertical' | 'empty-img' | 'empty-set' | 'eye' | 'eye-slash' | 'filter-list' | 'fingerprint' | 'folder-magnifying-glass' | 'folder-open' | 'grid-2' | 'grid-horizontal' | 'grip-dots-vertical' | 'headphones-simple' | 'house-blank' | 'id-badge' | 'inbox-full' | 'light/star' | 'list' | 'loader' | 'lock-keyhole' | 'lock-keyhole-open' | 'logo' | 'magnifying-glass' | 'map-location-dot' | 'map-pin' | 'mobile-screen-button' | 'money-bill-transfer' | 'money-bill-trend-up' | 'money-bills' | 'notes-medical' | 'paste' | 'pen' | 'pen-to-square' | 'percent' | 'piggy-bank' | 'rectangle-history' | 'rectangle-history-circle-user' | 'rectangle-terminal' | 'rotate' | 'scale-balanced' | 'server' | 'sheet-plastic' | 'sidebar' | 'solid/star' | 'squirrel' | 'stethoscope' | 'store' | 'timer' | 'trash' | 'trash-can' | 'upload' | 'user' | 'user-gear' | 'user-group' | 'user-tie' | 'user-tie-hair' | 'user-vneck' | 'users' | 'wallet' | 'warehouse-full' | 'xmark';
|
|
5
|
+
export type IconName = 'alien-8bit' | 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrow-right' | 'arrow-right-to-arc' | 'arrow-up-right-from-square' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-right' | 'chevron-up' | 'chevrons-right' | 'circle' | 'circle-arrow-right' | 'circle-check' | 'circle-check-outline' | 'circle-exclamation' | 'circle-exclamation-outline' | 'circle-info' | 'circle-minus' | 'circle-plus' | 'circle-x' | 'circle-xmark' | 'circle-xmark-outline' | 'clock' | 'clock-rotate-left' | 'coin' | 'coins' | 'computer-classic' | 'copy' | 'credit-card' | 'credit-card-blank' | 'credit-card-front' | 'download' | 'ellipsis-vertical' | 'empty-img' | 'empty-set' | 'eye' | 'eye-slash' | 'filter-list' | 'fingerprint' | 'folder-magnifying-glass' | 'folder-open' | 'gift-card' | 'grid-2' | 'grid-horizontal' | 'grip-dots-vertical' | 'headphones-simple' | 'house-blank' | 'id-badge' | 'inbox-full' | 'light/star' | 'list' | 'loader' | 'lock-keyhole' | 'lock-keyhole-open' | 'logo' | 'magnifying-glass' | 'map-location-dot' | 'map-pin' | 'mobile-screen-button' | 'money-bill-transfer' | 'money-bill-trend-up' | 'money-bills' | 'notes-medical' | 'paste' | 'pen' | 'pen-to-square' | 'percent' | 'piggy-bank' | 'rectangle-history' | 'rectangle-history-circle-user' | 'rectangle-terminal' | 'rotate' | 'scale-balanced' | 'server' | 'sheet-plastic' | 'sidebar' | 'solid/star' | 'squirrel' | 'stethoscope' | 'store' | 'timer' | 'trash' | 'trash-can' | 'upload' | 'user' | 'user-gear' | 'user-group' | 'user-tie' | 'user-tie-hair' | 'user-vneck' | 'users' | 'wallet' | 'warehouse-full' | 'xmark';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as I, jsx as T } from "react/jsx-runtime";
|
|
2
2
|
import { c as F } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { u as
|
|
4
|
-
import * as
|
|
3
|
+
import { u as v, _ as y, g as U, a as q, b as H, c as N, d as M, e as A, P as e } from "../../useSlotProps-CYHDC4TN.js";
|
|
4
|
+
import * as j 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) {
|
|
@@ -15,32 +15,32 @@ import '../../assets/Toggle.css';function W(l) {
|
|
|
15
15
|
onFocusVisible: u,
|
|
16
16
|
readOnly: n,
|
|
17
17
|
required: i
|
|
18
|
-
} = l, [
|
|
18
|
+
} = l, [V, S] = D({
|
|
19
19
|
controlled: s,
|
|
20
20
|
default: !!p,
|
|
21
21
|
name: "Switch",
|
|
22
22
|
state: "checked"
|
|
23
23
|
}), x = (t) => (o) => {
|
|
24
24
|
var b;
|
|
25
|
-
o.nativeEvent.defaultPrevented || (
|
|
25
|
+
o.nativeEvent.defaultPrevented || (S(o.target.checked), g == null || g(o), (b = t.onChange) == null || b.call(t, o));
|
|
26
26
|
}, {
|
|
27
27
|
isFocusVisibleRef: _,
|
|
28
28
|
onBlur: B,
|
|
29
29
|
onFocus: f,
|
|
30
30
|
ref: m
|
|
31
|
-
} = L(), [h, P] =
|
|
32
|
-
c && h && P(!1),
|
|
31
|
+
} = L(), [h, P] = j.useState(!1);
|
|
32
|
+
c && h && P(!1), j.useEffect(() => {
|
|
33
33
|
_.current = h;
|
|
34
34
|
}, [h, _]);
|
|
35
|
-
const k =
|
|
35
|
+
const k = j.useRef(null), w = (t) => (o) => {
|
|
36
36
|
var b;
|
|
37
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
38
|
}, O = (t) => (o) => {
|
|
39
39
|
var b;
|
|
40
40
|
B(o), _.current === !1 && P(!1), a == null || a(o), (b = t.onBlur) == null || b.call(t, o);
|
|
41
|
-
}, C =
|
|
41
|
+
}, C = v(m, k);
|
|
42
42
|
return {
|
|
43
|
-
checked:
|
|
43
|
+
checked: V,
|
|
44
44
|
disabled: !!c,
|
|
45
45
|
focusVisible: h,
|
|
46
46
|
getInputProps: (t = {}) => y({
|
|
@@ -62,11 +62,11 @@ import '../../assets/Toggle.css';function W(l) {
|
|
|
62
62
|
readOnly: !!n
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const $ = "Switch";
|
|
66
66
|
function z(l) {
|
|
67
|
-
return
|
|
67
|
+
return U($, l);
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
q($, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
|
|
70
70
|
const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFocus", "onFocusVisible", "readOnly", "required", "slotProps", "slots"], J = (l) => {
|
|
71
71
|
const {
|
|
72
72
|
checked: s,
|
|
@@ -80,19 +80,19 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
|
|
|
80
80
|
input: ["input"],
|
|
81
81
|
track: ["track"]
|
|
82
82
|
}, A(z));
|
|
83
|
-
},
|
|
83
|
+
}, E = /* @__PURE__ */ j.forwardRef(function(s, p) {
|
|
84
84
|
var c, a, g, r;
|
|
85
85
|
const {
|
|
86
86
|
slotProps: u = {},
|
|
87
87
|
slots: n = {}
|
|
88
88
|
} = s, i = H(s, G), {
|
|
89
|
-
getInputProps:
|
|
90
|
-
checked:
|
|
89
|
+
getInputProps: V,
|
|
90
|
+
checked: S,
|
|
91
91
|
disabled: x,
|
|
92
92
|
focusVisible: _,
|
|
93
93
|
readOnly: B
|
|
94
94
|
} = W(s), f = y({}, s, {
|
|
95
|
-
checked:
|
|
95
|
+
checked: S,
|
|
96
96
|
disabled: x,
|
|
97
97
|
focusVisible: _,
|
|
98
98
|
readOnly: B
|
|
@@ -112,7 +112,7 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
|
|
|
112
112
|
className: m.thumb
|
|
113
113
|
}), O = (g = n.input) != null ? g : "input", C = N({
|
|
114
114
|
elementType: O,
|
|
115
|
-
getSlotProps:
|
|
115
|
+
getSlotProps: V,
|
|
116
116
|
externalSlotProps: u.input,
|
|
117
117
|
ownerState: f,
|
|
118
118
|
className: m.input
|
|
@@ -122,11 +122,11 @@ const G = ["checked", "defaultChecked", "disabled", "onBlur", "onChange", "onFoc
|
|
|
122
122
|
ownerState: f,
|
|
123
123
|
className: m.track
|
|
124
124
|
});
|
|
125
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ I(h, y({}, P, {
|
|
126
126
|
children: [/* @__PURE__ */ T(R, y({}, t)), /* @__PURE__ */ T(k, y({}, w)), /* @__PURE__ */ T(O, y({}, C))]
|
|
127
127
|
}));
|
|
128
128
|
});
|
|
129
|
-
process.env.NODE_ENV !== "production" && (
|
|
129
|
+
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
130
130
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
131
131
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
132
132
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -197,16 +197,16 @@ process.env.NODE_ENV !== "production" && ($.propTypes = {
|
|
|
197
197
|
track: e.oneOfType([e.elementType, e.oneOf([null])])
|
|
198
198
|
})
|
|
199
199
|
});
|
|
200
|
-
const K = "
|
|
200
|
+
const K = "_toggle__label_jp9gu_43", Q = "_toggle_jp9gu_43", X = "_input_jp9gu_89", Y = "_thumb_jp9gu_100", Z = "_track_jp9gu_114", d = {
|
|
201
201
|
toggle__label: K,
|
|
202
202
|
toggle: Q,
|
|
203
|
-
"toggle__toggle-el-wrapper": "_toggle__toggle-el-
|
|
203
|
+
"toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_jp9gu_85",
|
|
204
204
|
input: X,
|
|
205
205
|
thumb: Y,
|
|
206
206
|
track: Z,
|
|
207
|
-
"toggle--focus-visible": "_toggle--focus-
|
|
208
|
-
"toggle--checked": "_toggle--
|
|
209
|
-
"toggle--disabled": "_toggle--
|
|
207
|
+
"toggle--focus-visible": "_toggle--focus-visible_jp9gu_124",
|
|
208
|
+
"toggle--checked": "_toggle--checked_jp9gu_128",
|
|
209
|
+
"toggle--disabled": "_toggle--disabled_jp9gu_141"
|
|
210
210
|
}, ce = ({
|
|
211
211
|
label: l,
|
|
212
212
|
checked: s,
|
|
@@ -220,9 +220,9 @@ const K = "_toggle__label_p0gq9_43", Q = "_toggle_p0gq9_43", X = "_input_p0gq9_8
|
|
|
220
220
|
const n = (i) => {
|
|
221
221
|
r == null || r(i);
|
|
222
222
|
};
|
|
223
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ I("div", { className: F(d.toggle, c), "data-testid": g, children: [
|
|
224
224
|
/* @__PURE__ */ T(
|
|
225
|
-
|
|
225
|
+
E,
|
|
226
226
|
{
|
|
227
227
|
checked: s === !0,
|
|
228
228
|
disabled: p,
|
|
@@ -35,5 +35,5 @@ export type TooltipProps = {
|
|
|
35
35
|
/** Disable uses portal (true by default) */
|
|
36
36
|
disablePortal?: boolean;
|
|
37
37
|
};
|
|
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;
|
|
38
|
+
declare const Tooltip: ({ arialRole, children: childrenProp, className, style, disableHoverListener, onClose, position, open: openProp, title, content, footer, onTargetCreated, ...rest }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export { Tooltip };
|