@giro-ds/react 1.0.5 → 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/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/components/Checkbox/Checkbox.types.d.ts +4 -19
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/Radio/Radio.d.ts +3 -3
- package/dist/components/Radio/Radio.types.d.ts +11 -14
- package/dist/components/Radio/__tests__/Radio.test.d.ts +1 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/SelectRadix/SelectRadix.types.d.ts +5 -3
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.types.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/TextField/TextField.types.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +5 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/index.d.ts +3 -5
- package/dist/index.cjs +135 -253
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +27 -60
- package/dist/index.esm.js +150 -249
- package/dist/index.esm.js.map +1 -1
- package/dist/shared/Label/index.d.ts +4 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/CheckboxRadix/CheckboxRadix.d.ts +0 -4
- package/dist/components/CheckboxRadix/CheckboxRadix.types.d.ts +0 -10
- package/dist/components/CheckboxRadix/index.d.ts +0 -2
- package/dist/components/RadioRadix/RadioRadix.d.ts +0 -4
- package/dist/components/RadioRadix/RadioRadix.types.d.ts +0 -15
- package/dist/components/RadioRadix/index.d.ts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -8,37 +8,18 @@ var reactI18next = require('react-i18next');
|
|
|
8
8
|
var i18n = require('i18next');
|
|
9
9
|
var radixUi = require('radix-ui');
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n.default = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
29
|
-
|
|
30
|
-
var styles$t = {"zds-avatar__circle":"Avatar-module__zds-avatar__circle___DXcGa","zds-avatar__large":"Avatar-module__zds-avatar__large___G6qoo","zds-avatar__circle__icon":"Avatar-module__zds-avatar__circle__icon___u14vV","zds-avatar__small":"Avatar-module__zds-avatar__small___d-Pj5"};
|
|
11
|
+
var styles$s = {"zds-avatar__circle":"Avatar-module__zds-avatar__circle___DXcGa","zds-avatar__large":"Avatar-module__zds-avatar__large___G6qoo","zds-avatar__circle__icon":"Avatar-module__zds-avatar__circle__icon___u14vV","zds-avatar__small":"Avatar-module__zds-avatar__small___d-Pj5"};
|
|
31
12
|
|
|
32
13
|
let Avatar = ({ id = '', icon, size = 'small', className = '' }) => {
|
|
33
14
|
const componentId = id || React.useId();
|
|
34
|
-
const AvatarClass = clsx(styles$
|
|
35
|
-
[styles$
|
|
36
|
-
[styles$
|
|
15
|
+
const AvatarClass = clsx(styles$s['zds-avatar__circle'], {
|
|
16
|
+
[styles$s['zds-avatar__large']]: size === 'large',
|
|
17
|
+
[styles$s['zds-avatar__small']]: size === 'small',
|
|
37
18
|
}, className);
|
|
38
|
-
return (jsxRuntime.jsx("div", { className: AvatarClass, id: componentId, role: "img", "aria-label": `Avatar ${size}`, children: jsxRuntime.jsx("div", { className: styles$
|
|
19
|
+
return (jsxRuntime.jsx("div", { className: AvatarClass, id: componentId, role: "img", "aria-label": `Avatar ${size}`, children: jsxRuntime.jsx("div", { className: styles$s['zds-avatar__circle__icon'], children: icon }) }));
|
|
39
20
|
};
|
|
40
21
|
|
|
41
|
-
var styles$
|
|
22
|
+
var styles$r = {"zds-badge__container":"Badge-module__zds-badge__container___NMAZD","zds-badge":"Badge-module__zds-badge___TeF7g","zds-badge__status":"Badge-module__zds-badge__status___3rFKE","zds-badge__small":"Badge-module__zds-badge__small___lVA0I","zds-badge__large":"Badge-module__zds-badge__large___yxb6z","zds-badge__status__empty":"Badge-module__zds-badge__status__empty___zWu8n"};
|
|
42
23
|
|
|
43
24
|
const Badge = ({ children, badgeValue = null, type = 'notification', className = '', id, 'aria-label': ariaLabel, }) => {
|
|
44
25
|
const isEmpty = badgeValue === null || badgeValue === undefined || badgeValue === '';
|
|
@@ -61,17 +42,17 @@ const Badge = ({ children, badgeValue = null, type = 'notification', className =
|
|
|
61
42
|
};
|
|
62
43
|
const displayValue = getDisplayValue(badgeValue);
|
|
63
44
|
if (type === 'notification') {
|
|
64
|
-
return (jsxRuntime.jsxs("div", { className: clsx(styles$
|
|
65
|
-
[styles$
|
|
66
|
-
[styles$
|
|
67
|
-
}, className), "data-testid": "badge-notification", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$
|
|
45
|
+
return (jsxRuntime.jsxs("div", { className: clsx(styles$r['zds-badge__container']), children: [jsxRuntime.jsx("div", { id: componentId, className: clsx(styles$r['zds-badge'], {
|
|
46
|
+
[styles$r['zds-badge__small']]: Number(badgeValue) <= 10,
|
|
47
|
+
[styles$r['zds-badge__large']]: Number(badgeValue) > 10,
|
|
48
|
+
}, className), "data-testid": "badge-notification", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$r['zds-badge__value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }), children && (jsxRuntime.jsx("div", { className: styles$r['zds-badge__content'], "data-testid": "badge-content", children: children }))] }));
|
|
68
49
|
}
|
|
69
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
70
|
-
[styles$
|
|
71
|
-
}, className), "data-testid": "badge-status", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$
|
|
50
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$r['zds-badge__container']), children: jsxRuntime.jsx("div", { className: clsx(styles$r['zds-badge__status'], {
|
|
51
|
+
[styles$r['zds-badge__status__empty']]: isEmpty,
|
|
52
|
+
}, className), "data-testid": "badge-status", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$r['zds-badge__status-value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }) }));
|
|
72
53
|
};
|
|
73
54
|
|
|
74
|
-
var styles$
|
|
55
|
+
var styles$q = {"zds-button":"Button-module__zds-button___yeGfH","zds-button__lg":"Button-module__zds-button__lg___3VQCU","zds-button__sm":"Button-module__zds-button__sm___YoOxy","zds-button__filled":"Button-module__zds-button__filled___8J2j-","zds-button__outlined":"Button-module__zds-button__outlined___fvHfI","zds-button__text":"Button-module__zds-button__text___WR6Oo","zds-button__with-icon":"Button-module__zds-button__with-icon___a2CVV","zds-button__icon-position-left":"Button-module__zds-button__icon-position-left___0Oid0","zds-button__icon-position-right":"Button-module__zds-button__icon-position-right___-rTaE","zds-button__no-content":"Button-module__zds-button__no-content___SpTQ-","zds-button__icon-only":"Button-module__zds-button__icon-only___jv5KY","zds-button__icon-left":"Button-module__zds-button__icon-left___fzDuF","zds-button__icon-right":"Button-module__zds-button__icon-right___IUOQu","zds-button__full-width":"Button-module__zds-button__full-width___GklRb","disabled":"Button-module__disabled___UzdWL"};
|
|
75
56
|
|
|
76
57
|
const Button = React.forwardRef(({ as, children, variant = 'filled', iconPosition = 'left', href, to, external = false, target, rel, routerProps = {}, disabled = false, onClick, size = 'lg', className = '', type = 'button', id = '', icon = null, fullWidth = false, ariaLabel = '', iconOnly = false, ...restProps }, ref) => {
|
|
77
58
|
const componentId = id || React.useId();
|
|
@@ -88,13 +69,13 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
|
|
|
88
69
|
const hasContent = React.useMemo(() => {
|
|
89
70
|
return children && React.Children.count(children) > 0;
|
|
90
71
|
}, [children]);
|
|
91
|
-
const buttonClasses = clsx(styles$
|
|
92
|
-
[styles$
|
|
93
|
-
[styles$
|
|
94
|
-
[styles$
|
|
95
|
-
[styles$
|
|
96
|
-
[styles$
|
|
97
|
-
[styles$
|
|
72
|
+
const buttonClasses = clsx(styles$q['zds-button'], styles$q[`zds-button__${variant}`], styles$q[`zds-button__${size}`], {
|
|
73
|
+
[styles$q['zds-button__with-icon']]: icon && !iconOnly,
|
|
74
|
+
[styles$q[`zds-button__icon-position-${iconPosition}`]]: icon && !iconOnly && iconPosition !== 'none',
|
|
75
|
+
[styles$q['zds-button__no-content']]: icon && !hasContent && !iconOnly,
|
|
76
|
+
[styles$q['zds-button__full-width']]: fullWidth,
|
|
77
|
+
[styles$q['zds-button__icon-only']]: iconOnly,
|
|
78
|
+
[styles$q['zds-button__disabled']]: disabled,
|
|
98
79
|
}, className);
|
|
99
80
|
const getAriaLabel = () => {
|
|
100
81
|
if (ariaLabel)
|
|
@@ -118,9 +99,9 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
|
|
|
118
99
|
};
|
|
119
100
|
const renderContent = () => {
|
|
120
101
|
if (iconOnly && icon) {
|
|
121
|
-
return (jsxRuntime.jsx("span", { className: styles$
|
|
102
|
+
return (jsxRuntime.jsx("span", { className: styles$q['zds-button__icon-only'], "aria-hidden": "true", children: icon }));
|
|
122
103
|
}
|
|
123
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && iconPosition === 'left' && (jsxRuntime.jsx("span", { className: styles$
|
|
104
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [icon && iconPosition === 'left' && (jsxRuntime.jsx("span", { className: styles$q['zds-button__icon-left'], "aria-hidden": "true", children: icon })), children, icon && iconPosition === 'right' && (jsxRuntime.jsx("span", { className: styles$q['zds-button__icon-right'], "aria-hidden": "true", children: icon }))] }));
|
|
124
105
|
};
|
|
125
106
|
const baseProps = {
|
|
126
107
|
ref,
|
|
@@ -163,7 +144,7 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
|
|
|
163
144
|
});
|
|
164
145
|
Button.displayName = 'Button';
|
|
165
146
|
|
|
166
|
-
var styles$
|
|
147
|
+
var styles$p = {"zds-calendar":"Calendar-module__zds-calendar___PxF9r","zds-calendar__header":"Calendar-module__zds-calendar__header___KsUk4","zds-calendar__month-name":"Calendar-module__zds-calendar__month-name___lyWIV","zds-calendar__year":"Calendar-module__zds-calendar__year___kWZ5P","zds-calendar__year-view":"Calendar-module__zds-calendar__year-view___srlWI","zds-calendar__year--current":"Calendar-module__zds-calendar__year--current___iVQH-","zds-calendar__navigation":"Calendar-module__zds-calendar__navigation___HVXdu","zds-calendar__weekdays":"Calendar-module__zds-calendar__weekdays___x8IAE","zds-calendar__grid":"Calendar-module__zds-calendar__grid___7VcR9","zds-calendar__weekday":"Calendar-module__zds-calendar__weekday___-dJW-","zds-calendar__days":"Calendar-module__zds-calendar__days___voUPb","zds-calendar__day":"Calendar-module__zds-calendar__day___ajiy4","zds-calendar__day--today":"Calendar-module__zds-calendar__day--today___qr5Cn","zds-calendar__day--selected":"Calendar-module__zds-calendar__day--selected___18JlM","zds-calendar__day--empty":"Calendar-module__zds-calendar__day--empty___uj4TJ","zds-calendar__clear":"Calendar-module__zds-calendar__clear___gEqoV"};
|
|
167
148
|
|
|
168
149
|
// i18n.ts
|
|
169
150
|
// Resources configuration
|
|
@@ -523,8 +504,8 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
523
504
|
* Renderiza os anos usando o array de objetos memoizado.
|
|
524
505
|
*/
|
|
525
506
|
const renderYears = React.useCallback(() => {
|
|
526
|
-
return yearsArray.map((item) => (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
527
|
-
[styles$
|
|
507
|
+
return yearsArray.map((item) => (jsxRuntime.jsx("div", { className: clsx(styles$p['zds-calendar__year'], {
|
|
508
|
+
[styles$p['zds-calendar__year--current']]: item.isCurrent,
|
|
528
509
|
}), onClick: () => handleYearSelect(item.year), tabIndex: 0, role: "button", "aria-pressed": item.isCurrent, "aria-label": item.isCurrent
|
|
529
510
|
? locale === 'en-us'
|
|
530
511
|
? `Current year, ${item.year}`
|
|
@@ -544,14 +525,14 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
544
525
|
const renderDays = React.useCallback(() => {
|
|
545
526
|
return daysArray.map((item) => {
|
|
546
527
|
if (item.type === 'empty') {
|
|
547
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
528
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$p['zds-calendar__day'], styles$p['zds-calendar__day--empty']), "aria-hidden": "true" }, item.key));
|
|
548
529
|
}
|
|
549
530
|
const dayItem = item;
|
|
550
531
|
const isDisabled = !isDateInRange(dayItem.date);
|
|
551
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
552
|
-
[styles$
|
|
553
|
-
[styles$
|
|
554
|
-
[styles$
|
|
532
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$p['zds-calendar__day'], {
|
|
533
|
+
[styles$p['zds-calendar__day--today']]: dayItem.isToday,
|
|
534
|
+
[styles$p['zds-calendar__day--selected']]: dayItem.isSelected,
|
|
535
|
+
[styles$p['zds-calendar__day--disabled']]: isDisabled,
|
|
555
536
|
}), onClick: isDisabled ? undefined : () => handleSelectDay(dayItem.day), onKeyDown: isDisabled ? undefined : (e) => handleDayKeyDown(e, dayItem.day), tabIndex: isDisabled ? -1 : 0, role: "gridcell", "aria-selected": dayItem.isSelected, "aria-current": dayItem.isToday ? 'date' : undefined, "aria-disabled": isDisabled, "aria-label": `${dayItem.day} ${getMonthName()} ${year}${dayItem.isToday ? ` (${t('today')})` : ''}${dayItem.isSelected ? ` (${t('selected')})` : ''}${isDisabled ? ` (${t('disabled')})` : ''}`, children: dayItem.day }, dayItem.key));
|
|
556
537
|
});
|
|
557
538
|
}, [
|
|
@@ -567,7 +548,7 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
567
548
|
const weekdaysComponent = React.useMemo(() => {
|
|
568
549
|
if (changeView)
|
|
569
550
|
return null;
|
|
570
|
-
return weekDaysLabels.map((day, idx) => (jsxRuntime.jsx("div", { className: styles$
|
|
551
|
+
return weekDaysLabels.map((day, idx) => (jsxRuntime.jsx("div", { className: styles$p['zds-calendar__weekday'], children: day }, `${day}-${idx}`)));
|
|
571
552
|
}, [changeView, weekDaysLabels]);
|
|
572
553
|
// ✅ Limpa o anúncio após um tempo para evitar repetições
|
|
573
554
|
React.useEffect(() => {
|
|
@@ -582,13 +563,13 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
582
563
|
setYearRangeStart(year - 13);
|
|
583
564
|
}
|
|
584
565
|
}, [changeView, year]);
|
|
585
|
-
return (jsxRuntime.jsxs("div", { className: clsx(styles$
|
|
566
|
+
return (jsxRuntime.jsxs("div", { className: clsx(styles$p['zds-calendar'], { [styles$p['zds-calendar--year-view']]: changeView }, className), id: componentId, tabIndex: 0, ref: calendarRef, onKeyDown: handleCalendarKeyDown, "aria-label": t('calendar'), children: [jsxRuntime.jsx("div", { "aria-live": "polite", "aria-atomic": "true", className: styles$p['zds-calendar__aria-live'], style: {
|
|
586
567
|
position: 'absolute',
|
|
587
568
|
width: 1,
|
|
588
569
|
height: 1,
|
|
589
570
|
overflow: 'hidden',
|
|
590
571
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
591
|
-
}, children: announcement }), jsxRuntime.jsxs("div", { className: styles$
|
|
572
|
+
}, children: announcement }), jsxRuntime.jsxs("div", { className: styles$p['zds-calendar__header'], children: [jsxRuntime.jsxs("span", { className: styles$p['zds-calendar__month-name'], onClick: handleToggleView, onKeyDown: (e) => {
|
|
592
573
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
593
574
|
e.preventDefault();
|
|
594
575
|
handleToggleView();
|
|
@@ -599,7 +580,7 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
599
580
|
: 'Fechar seleção de ano'
|
|
600
581
|
: locale === 'en-us'
|
|
601
582
|
? 'Open year selection'
|
|
602
|
-
: 'Abrir seleção de ano', children: [`${getMonthName()} ${year}`, changeView ? (jsxRuntime.jsx(reactIcons.ChevronUp16Regular, { "aria-hidden": "true" })) : (jsxRuntime.jsx(reactIcons.ChevronDown16Regular, { "aria-hidden": "true" }))] }), jsxRuntime.jsxs("div", { className: styles$
|
|
583
|
+
: 'Abrir seleção de ano', children: [`${getMonthName()} ${year}`, changeView ? (jsxRuntime.jsx(reactIcons.ChevronUp16Regular, { "aria-hidden": "true" })) : (jsxRuntime.jsx(reactIcons.ChevronDown16Regular, { "aria-hidden": "true" }))] }), jsxRuntime.jsxs("div", { className: styles$p['zds-calendar__navigation'], children: [jsxRuntime.jsx("button", { onClick: handlePrevMonth, "aria-label": changeView
|
|
603
584
|
? locale === 'en-us'
|
|
604
585
|
? 'Show previous years'
|
|
605
586
|
: 'Mostrar anos anteriores'
|
|
@@ -611,27 +592,27 @@ const Calendar = ({ currentDate, className, selectedDate = null, onDateChange, o
|
|
|
611
592
|
: 'Mostrar próximos anos'
|
|
612
593
|
: locale === 'en-us'
|
|
613
594
|
? `Next month, ${new Date(year, month + 1, 1).toLocaleDateString('en-US', { month: 'long', year: 'numeric' })}`
|
|
614
|
-
: `Próximo mês, ${new Date(year, month + 1, 1).toLocaleDateString('pt-BR', { month: 'long', year: 'numeric' })}`, type: "button", className: "zds-calendar__nav-button", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, { "aria-hidden": "true" }) })] })] }), jsxRuntime.jsx("div", { className: styles$
|
|
595
|
+
: `Próximo mês, ${new Date(year, month + 1, 1).toLocaleDateString('pt-BR', { month: 'long', year: 'numeric' })}`, type: "button", className: "zds-calendar__nav-button", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, { "aria-hidden": "true" }) })] })] }), jsxRuntime.jsx("div", { className: styles$p['zds-calendar__weekdays'], children: weekdaysComponent }), jsxRuntime.jsx("div", { className: styles$p['zds-calendar__grid'], children: changeView ? (jsxRuntime.jsx("div", { className: styles$p['zds-calendar__year-view'], role: "grid", "aria-label": t('yearSelection'), children: renderYears() })) : (jsxRuntime.jsx("div", { className: styles$p['zds-calendar__days'], role: "grid", "aria-label": `${getMonthName()} ${year}`, children: renderDays() })) }), jsxRuntime.jsx("div", { className: styles$p['zds-calendar__clear'], children: jsxRuntime.jsx(Button, { size: "sm", variant: "outlined", onClick: handleClearDate, disabled: !selectedDate, children: "Limpar" }) })] }));
|
|
615
596
|
};
|
|
616
597
|
// ✅ Default props integrados na função usando valores padrão dos parâmetros
|
|
617
598
|
Calendar.displayName = 'Calendar';
|
|
618
599
|
const MemoizedCalendar = React.memo(Calendar);
|
|
619
600
|
MemoizedCalendar.displayName = 'Calendar';
|
|
620
601
|
|
|
621
|
-
var styles$
|
|
602
|
+
var styles$o = {"zds-callout__container":"Callout-module__zds-callout__container___EoOQd","zds-callout__container__with-title":"Callout-module__zds-callout__container__with-title___NUq2k","zds-callout__neutral":"Callout-module__zds-callout__neutral___ib9gW","zds-callout__brand":"Callout-module__zds-callout__brand___UYVny","zds-callout__color":"Callout-module__zds-callout__color___6ojEV","zds-callout__alert":"Callout-module__zds-callout__alert___gSOsh","zds-callout__success":"Callout-module__zds-callout__success___6W096","zds-callout__title":"Callout-module__zds-callout__title___jmmqj","zds-callout__text":"Callout-module__zds-callout__text___MTO5R","zds-callout__icon":"Callout-module__zds-callout__icon___-CaUD","zds-callout__content":"Callout-module__zds-callout__content___hh0Mj","zds-callout__subcontent":"Callout-module__zds-callout__subcontent___olIpt"};
|
|
622
603
|
|
|
623
604
|
const Callout = ({ type = 'neutral', title = null, text = '', icon = null, className = '', id = '' }) => {
|
|
624
605
|
const generatedId = React.useId();
|
|
625
606
|
const titleId = id || `callout-title-${generatedId}`;
|
|
626
607
|
const componentId = id || generatedId;
|
|
627
|
-
const calloutClass = clsx(styles$
|
|
628
|
-
[styles$
|
|
629
|
-
[styles$
|
|
608
|
+
const calloutClass = clsx(styles$o['zds-callout__container'], styles$o[`zds-callout__${type}`], {
|
|
609
|
+
[styles$o['zds-callout__container__with-title']]: title,
|
|
610
|
+
[styles$o['zds-callout__no-icon']]: !icon,
|
|
630
611
|
}, className);
|
|
631
|
-
return (jsxRuntime.jsx("div", { id: componentId, className: calloutClass, "aria-live": "polite", role: "alert", "aria-labelledby": title ? titleId : undefined, children: jsxRuntime.jsxs("div", { className: styles$
|
|
612
|
+
return (jsxRuntime.jsx("div", { id: componentId, className: calloutClass, "aria-live": "polite", role: "alert", "aria-labelledby": title ? titleId : undefined, children: jsxRuntime.jsxs("div", { className: styles$o['zds-callout__content'], children: [icon && jsxRuntime.jsx("span", { className: styles$o['zds-callout__icon'], children: icon }), jsxRuntime.jsxs("div", { className: styles$o['zds-callout__subcontent'], children: [title && (jsxRuntime.jsx("span", { id: titleId, className: styles$o['zds-callout__title'], children: title })), text && jsxRuntime.jsx("span", { className: styles$o['zds-callout__text'], children: text })] })] }) }));
|
|
632
613
|
};
|
|
633
614
|
|
|
634
|
-
var styles$
|
|
615
|
+
var styles$n = {"container":"Checkbox-module__container___pUY-s","root":"Checkbox-module__root___BS5dT","disabled":"Checkbox-module__disabled___WagIC","label":"Checkbox-module__label___JBaRm","indicator":"Checkbox-module__indicator___HXLHH","wrapperCheckbox":"Checkbox-module__wrapperCheckbox___m2qIW"};
|
|
635
616
|
|
|
636
617
|
const CheckSmall = ({ className = '', width = 12, height = 10, fill = 'white', ...restProps }) => {
|
|
637
618
|
return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, "aria-hidden": "true", ...restProps, children: jsxRuntime.jsx("path", { d: "M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z", fill: fill }) }));
|
|
@@ -641,57 +622,11 @@ const CheckHalf = ({ className = '', width = 16, height = 16, fill = 'white', ..
|
|
|
641
622
|
return (jsxRuntime.jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, "aria-hidden": "true", ...restProps, children: jsxRuntime.jsx("g", { id: "Icons/check_indeterminate_small", children: jsxRuntime.jsx("path", { id: "icon", d: "M3 9V7H13V9H3Z", fill: fill }) }) }));
|
|
642
623
|
};
|
|
643
624
|
|
|
644
|
-
|
|
645
|
-
* A customizable Checkbox component that supports controlled and uncontrolled states.
|
|
646
|
-
*/
|
|
647
|
-
const Checkbox = ({ id, name, onChange, label = 'Checkbox', className = '', value = '', disabled = false, indeterminate = false, checked = false, ariaDescribedby = '', }) => {
|
|
648
|
-
const elementRef = React.useRef(null);
|
|
649
|
-
const generatedId = React.useId();
|
|
650
|
-
const inputId = id || generatedId;
|
|
651
|
-
const handleChange = (e) => {
|
|
652
|
-
if (disabled)
|
|
653
|
-
return;
|
|
654
|
-
onChange?.(e);
|
|
655
|
-
};
|
|
656
|
-
const checkboxClass = clsx(styles$o['zds-checkbox'], {
|
|
657
|
-
[styles$o['zds-checkbox__disabled']]: disabled,
|
|
658
|
-
[styles$o['zds-checkbox__checked']]: checked && !indeterminate,
|
|
659
|
-
[styles$o['zds-checkbox__indeterminate']]: indeterminate,
|
|
660
|
-
}, className);
|
|
661
|
-
React.useEffect(() => {
|
|
662
|
-
if (elementRef.current) {
|
|
663
|
-
elementRef.current.indeterminate = indeterminate;
|
|
664
|
-
}
|
|
665
|
-
}, [indeterminate]);
|
|
666
|
-
return (jsxRuntime.jsx("div", { className: checkboxClass, children: jsxRuntime.jsxs("label", { htmlFor: inputId, className: styles$o['zds-checkbox__box-check'], children: [jsxRuntime.jsxs("div", { className: clsx(styles$o['zds-checkbox__checkmark'], {
|
|
667
|
-
[styles$o['zds-checkbox__checkmark__checked']]: checked && !indeterminate,
|
|
668
|
-
[styles$o['zds-checkbox__checkmark__indeterminate']]: indeterminate,
|
|
669
|
-
}), children: [jsxRuntime.jsx("input", { id: inputId, ref: elementRef, name: name, type: "checkbox", value: value, checked: checked, onChange: handleChange, disabled: disabled, "aria-checked": indeterminate ? 'mixed' : checked, "aria-describedby": ariaDescribedby || undefined, "aria-label": typeof label === 'string' ? label : 'Checkbox', tabIndex: disabled ? -1 : 0 }), checked && !indeterminate && (jsxRuntime.jsx("span", { className: styles$o['zds-checkbox__icon'], "aria-hidden": "true", children: jsxRuntime.jsx(CheckSmall, {}) })), indeterminate && (jsxRuntime.jsx("span", { className: styles$o['zds-checkbox__icon'], "aria-hidden": "true", children: jsxRuntime.jsx(CheckHalf, {}) }))] }), label && (jsxRuntime.jsx("div", { className: styles$o['zds-checkbox__text'], children: jsxRuntime.jsx("span", { className: styles$o['zds-checkbox__label'], children: label }) }))] }) }));
|
|
670
|
-
};
|
|
671
|
-
const MemoizedCheckbox = React.memo(Checkbox);
|
|
672
|
-
MemoizedCheckbox.displayName = 'Checkbox';
|
|
673
|
-
|
|
674
|
-
var styles$n = {"container":"CheckboxRadix-module__container___34peZ","root":"CheckboxRadix-module__root___P9Ddi","disabled":"CheckboxRadix-module__disabled___WmZnj","label":"CheckboxRadix-module__label___-d8vL","indicator":"CheckboxRadix-module__indicator___jwn2k","wrapperCheckbox":"CheckboxRadix-module__wrapperCheckbox___--xXQ"};
|
|
675
|
-
|
|
676
|
-
const CheckboxRadix = ({ id, label, onCheckedChange, checked, disabled, className, indeterminate = false, ...rest }) => {
|
|
625
|
+
const Checkbox = ({ id, label = '', onCheckedChange, checked, disabled, className, indeterminate = false, ...rest }) => {
|
|
677
626
|
const componentId = id || React.useId();
|
|
678
|
-
const checkboxRef = React__namespace.useRef(null);
|
|
679
|
-
const handleWrapperClick = (e) => {
|
|
680
|
-
if (e.target !== checkboxRef.current && !disabled) {
|
|
681
|
-
e.stopPropagation();
|
|
682
|
-
e.preventDefault();
|
|
683
|
-
checkboxRef.current?.click();
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
const handleWrapperKeyDown = (e) => {
|
|
687
|
-
if ((e.key === ' ' || e.key === 'Enter') && !disabled) {
|
|
688
|
-
e.preventDefault();
|
|
689
|
-
checkboxRef.current?.click();
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
627
|
return (jsxRuntime.jsxs("div", { className: clsx(styles$n.container, className), children: [jsxRuntime.jsx("div", { className: clsx(styles$n.wrapperCheckbox, {
|
|
693
628
|
[styles$n.disabled]: disabled,
|
|
694
|
-
}),
|
|
629
|
+
}), role: "presentation", tabIndex: disabled ? -1 : 0, children: jsxRuntime.jsx(radixUi.Checkbox.Root, { className: styles$n.root, checked: checked, id: componentId, onCheckedChange: onCheckedChange, disabled: disabled, "data-disabled": disabled, "data-indeterminate": indeterminate, "aria-checked": indeterminate ? 'mixed' : checked ? 'true' : 'false', ...rest, children: jsxRuntime.jsx(radixUi.Checkbox.Indicator, { className: styles$n.indicator, children: indeterminate ? jsxRuntime.jsx(CheckHalf, {}) : jsxRuntime.jsx(CheckSmall, {}) }) }) }), jsxRuntime.jsx("label", { className: clsx(styles$n.label, { [styles$n.disabled]: disabled }), htmlFor: componentId, children: label })] }));
|
|
695
630
|
};
|
|
696
631
|
|
|
697
632
|
var styles$m = {"zds-chips":"Chips-module__zds-chips___LEq0v","zds-chips__title":"Chips-module__zds-chips__title___JexH8","zds-chips__icon__left":"Chips-module__zds-chips__icon__left___frGxl","zds-chips__icon__right":"Chips-module__zds-chips__icon__right___3EmZr","has-left-icon":"Chips-module__has-left-icon___BNIkr","has-right-icon":"Chips-module__has-right-icon___jhoos","zds-chips--neutral":"Chips-module__zds-chips--neutral___FyRQq","zds-chips--brand":"Chips-module__zds-chips--brand___GbmJv","zds-chips--color":"Chips-module__zds-chips--color___JpMwI","zds-chips--alert":"Chips-module__zds-chips--alert___MHi5a","zds-chips--success":"Chips-module__zds-chips--success___jg4-F","zds-chips--disabled":"Chips-module__zds-chips--disabled___HkRDl"};
|
|
@@ -722,47 +657,13 @@ function Container({ children }) {
|
|
|
722
657
|
|
|
723
658
|
var styles$k = {"wrapperLabel":"index-module__wrapperLabel___XJzZO","requiredLabel":"index-module__requiredLabel___7oZkh","infoIcon":"index-module__infoIcon___lClx4","errorLabel":"index-module__errorLabel___qa6h6","disabledLabel":"index-module__disabledLabel___U9vL8"};
|
|
724
659
|
|
|
725
|
-
var styles$j = {"
|
|
726
|
-
|
|
727
|
-
const Tooltip = ({
|
|
728
|
-
|
|
729
|
-
const timeoutRef = React.useRef(null);
|
|
730
|
-
const tooltipRef = React.useRef(null);
|
|
731
|
-
const tooltipId = id || React.useId();
|
|
732
|
-
const handleMouseEnter = () => {
|
|
733
|
-
if (timeoutRef.current)
|
|
734
|
-
clearTimeout(timeoutRef.current);
|
|
735
|
-
setVisible(true);
|
|
736
|
-
};
|
|
737
|
-
const handleMouseLeave = () => {
|
|
738
|
-
timeoutRef.current = setTimeout(() => {
|
|
739
|
-
setVisible(false);
|
|
740
|
-
}, 800);
|
|
741
|
-
};
|
|
742
|
-
const handleKeyDown = (e) => {
|
|
743
|
-
switch (e.key) {
|
|
744
|
-
case 'Escape':
|
|
745
|
-
setVisible(false);
|
|
746
|
-
break;
|
|
747
|
-
case 'Enter':
|
|
748
|
-
case ' ':
|
|
749
|
-
e.preventDefault();
|
|
750
|
-
setVisible(!visible);
|
|
751
|
-
break;
|
|
752
|
-
}
|
|
753
|
-
};
|
|
754
|
-
React.useEffect(() => {
|
|
755
|
-
return () => {
|
|
756
|
-
if (timeoutRef.current) {
|
|
757
|
-
clearTimeout(timeoutRef.current);
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
}, []);
|
|
761
|
-
const tooltipClass = clsx(styles$j['zds-tooltip__content'], styles$j[`zds-tooltip__${position}`]);
|
|
762
|
-
return (jsxRuntime.jsxs("div", { className: clsx(styles$j['zds-tooltip__wrapper']), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onFocus: handleMouseEnter, onBlur: handleMouseLeave, onKeyDown: handleKeyDown, tabIndex: 0, "aria-describedby": visible ? tooltipId : undefined, children: [children, visible && (jsxRuntime.jsx("div", { ref: tooltipRef, className: tooltipClass, role: 'tooltip', id: tooltipId, "aria-describedby": tooltipId, "aria-hidden": !visible, children: text }))] }));
|
|
660
|
+
var styles$j = {"tooltipContent":"Tooltip-module__tooltipContent___xycUg","triggerWrapper":"Tooltip-module__triggerWrapper___x83XR"};
|
|
661
|
+
|
|
662
|
+
const Tooltip = ({ children, text, side = 'bottom', align = 'start', maxWidth, sideOffset = 10 }) => {
|
|
663
|
+
return (jsxRuntime.jsx(radixUi.Tooltip.Provider, { children: jsxRuntime.jsxs(radixUi.Tooltip.Root, { children: [jsxRuntime.jsx(radixUi.Tooltip.Trigger, { asChild: true, children: jsxRuntime.jsx("span", { className: styles$j.triggerWrapper, children: children }) }), jsxRuntime.jsx(radixUi.Tooltip.Portal, { children: jsxRuntime.jsx(radixUi.Tooltip.Content, { className: styles$j.tooltipContent, side: side, align: align, sideOffset: sideOffset, style: { maxWidth: maxWidth ? `${maxWidth}px` : 'auto' }, children: text }) })] }) }));
|
|
763
664
|
};
|
|
764
665
|
|
|
765
|
-
const LabelComponent = ({ children, htmlFor, required = false, tooltip = false,
|
|
666
|
+
const LabelComponent = ({ children, htmlFor, required = false, tooltip = false, tooltipText, side = 'bottom', align = 'start', className, error = false, disabled = false }) => (jsxRuntime.jsx(jsxRuntime.Fragment, { children: tooltip ? (jsxRuntime.jsx(Tooltip, { side: side, align: align, text: tooltipText || '', children: jsxRuntime.jsxs(radixUi.Label.Root, { className: clsx(styles$k.wrapperLabel, error && styles$k.errorLabel, className), htmlFor: htmlFor, children: [children, required && jsxRuntime.jsx("span", { className: styles$k.requiredLabel, children: "*" }), jsxRuntime.jsx(reactIcons.Info12Regular, { className: styles$k.infoIcon })] }) })) : (jsxRuntime.jsxs(radixUi.Label.Root, { className: clsx(styles$k.wrapperLabel, error && styles$k.errorLabel, disabled && styles$k.disabledLabel, className), htmlFor: htmlFor, children: [children, required && jsxRuntime.jsx("span", { className: styles$k.requiredLabel, children: "*" })] })) }));
|
|
766
667
|
|
|
767
668
|
var styles$i = {"container":"TextField-module__container___WJHFR","inputWrapper":"TextField-module__inputWrapper___INjfd","inputContainer":"TextField-module__inputContainer___3EsFJ","icon":"TextField-module__icon___p1vwi","clearButton":"TextField-module__clearButton___kgOot","helperText":"TextField-module__helperText___d5QGC","error":"TextField-module__error___IGQzp","disabled":"TextField-module__disabled___roIKP"};
|
|
768
669
|
|
|
@@ -776,7 +677,7 @@ const validateInput = ({ value, maxLength, errorMessage, required }) => {
|
|
|
776
677
|
return '';
|
|
777
678
|
};
|
|
778
679
|
|
|
779
|
-
const TextField$1 = React.forwardRef(({ className, value = '', label, placeholder, type = 'text', onChange, disabled = false, maxLength = 30, required = false, helperText, tooltip = false, tooltipText = '',
|
|
680
|
+
const TextField$1 = React.forwardRef(({ className, value = '', label, placeholder, type = 'text', onChange, disabled = false, maxLength = 30, required = false, helperText, tooltip = false, tooltipText = '', side = 'bottom', align = 'start', errorMessage = '', id, icon, onBlur, onFocus, name, ...inputProps }, ref) => {
|
|
780
681
|
const [inputValue, setInputValue] = React.useState(value);
|
|
781
682
|
const [inputError, setInputError] = React.useState('');
|
|
782
683
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
@@ -824,7 +725,7 @@ const TextField$1 = React.forwardRef(({ className, value = '', label, placeholde
|
|
|
824
725
|
[styles$i.disabled]: disabled,
|
|
825
726
|
[className]: className,
|
|
826
727
|
});
|
|
827
|
-
return (jsxRuntime.jsxs("div", { className: containerClass, children: [label && (jsxRuntime.jsx(LabelComponent, { htmlFor: componentId, required: required, tooltip: tooltip,
|
|
728
|
+
return (jsxRuntime.jsxs("div", { className: containerClass, children: [label && (jsxRuntime.jsx(LabelComponent, { htmlFor: componentId, required: required, tooltip: tooltip, tooltipText: tooltipText, side: side, align: align, error: hasError, disabled: disabled, children: label })), jsxRuntime.jsxs("div", { className: styles$i.inputWrapper, children: [jsxRuntime.jsxs("div", { className: styles$i.inputContainer, children: [jsxRuntime.jsx("input", { ...inputProps, ref: ref, id: componentId, name: name, type: type, value: inputValue, placeholder: placeholder, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur, maxLength: maxLength, disabled: disabled, "aria-invalid": hasError, "aria-required": required, "aria-describedby": helperId }), showCustomIcon && jsxRuntime.jsx("span", { className: styles$i.icon, children: icon }), showClearIcon && (jsxRuntime.jsx("button", { type: "button", className: styles$i.clearButton, onMouseDown: (e) => {
|
|
828
729
|
e.preventDefault();
|
|
829
730
|
handleClear();
|
|
830
731
|
}, "aria-label": "Limpar campo", tabIndex: -1, children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}) }))] }), jsxRuntime.jsx("span", { id: helperId, className: styles$i.helperText, "aria-live": hasError ? 'polite' : undefined, children: displayHelperText })] })] }));
|
|
@@ -1109,7 +1010,7 @@ const DatePicker = ({ locale = 'pt-br', calendarPosition = 'left', helperText =
|
|
|
1109
1010
|
}, [locale, currentSelectedDate, isEditing]);
|
|
1110
1011
|
return (jsxRuntime.jsx("div", { ref: wrapperRef, children: jsxRuntime.jsxs("div", { className: clsx(styles$h['zds-date-picker']), children: [jsxRuntime.jsx("div", { onClick: handleFieldClick, onFocus: handleFieldFocus, onKeyDown: handleKeyDown, style: { cursor: 'pointer' }, children: jsxRuntime.jsx(TextField, { type: "tel", icon: jsxRuntime.jsx(reactIcons.Calendar16Regular, { onClick: handleIconClick, style: { cursor: 'pointer' } }), onChange: (e) => {
|
|
1111
1012
|
handleTextFieldChange(String(e));
|
|
1112
|
-
}, "aria-label": "Open calendar", "aria-expanded": showCalendar, "aria-controls": "calendar-popup", placeholder: locale === 'en-us' ? 'MM/DD/YYYY' : 'DD/MM/YYYY', value: displayValue, errorMessage: undefined, "aria-invalid": !!currentError, "aria-describedby": combinedHelperText ? helperTextId : undefined, maxLength: 10,
|
|
1013
|
+
}, "aria-label": "Open calendar", "aria-expanded": showCalendar, "aria-controls": "calendar-popup", placeholder: locale === 'en-us' ? 'MM/DD/YYYY' : 'DD/MM/YYYY', value: displayValue, errorMessage: undefined, "aria-invalid": !!currentError, "aria-describedby": combinedHelperText ? helperTextId : undefined, maxLength: 10, helperText: combinedHelperText, required: required, label: label }) }), jsxRuntime.jsx("div", { className: clsx(styles$h['zds-date-picker__calendar-popup'], calendarPosition === 'left' && styles$h['zds-calendar--left'], calendarPosition === 'right' && styles$h['zds-calendar--right']), children: showCalendar && (jsxRuntime.jsx(MemoizedCalendar, { selectedDate: currentSelectedDate, currentDate: currentDate, onDateChange: setCurrentDate, onDaySelect: handleDaySelect, locale: locale, format: locale === 'en-us' ? 'mm/dd/yyyy' : 'dd/mm/yyyy' })) })] }) }));
|
|
1113
1014
|
};
|
|
1114
1015
|
var DatePicker_default = React.memo(DatePicker);
|
|
1115
1016
|
|
|
@@ -1648,9 +1549,9 @@ const Dropdown = ({ className, items = [], id, type = 'text', applySearch = fals
|
|
|
1648
1549
|
const currentSelection = filter ? tempSelectedItems : selectedItems;
|
|
1649
1550
|
return (jsxRuntime.jsxs("div", { className: clsx(styles$d['zds-dropdown__item-content'], {
|
|
1650
1551
|
[styles$d['zds-dropdown__item-content--disabled']]: item.disabled,
|
|
1651
|
-
}), children: [type === 'checkbox' && (jsxRuntime.jsx(
|
|
1652
|
-
|
|
1653
|
-
|
|
1552
|
+
}), children: [type === 'checkbox' && (jsxRuntime.jsx(Checkbox, { checked: !!currentSelection[itemId], onCheckedChange: (checked) => {
|
|
1553
|
+
if (checked === 'indeterminate')
|
|
1554
|
+
return;
|
|
1654
1555
|
toggleSelection(itemId, item);
|
|
1655
1556
|
}, disabled: item.disabled, label: "" })), type === 'icon' && item.icon && (jsxRuntime.jsx("div", { className: styles$d['zds-dropdown__item-icon-container'], children: jsxRuntime.jsx("span", { className: styles$d['zds-dropdown__item-icon'], onClick: (event) => {
|
|
1656
1557
|
event.preventDefault();
|
|
@@ -1860,32 +1761,16 @@ const Filter = ({ items = [], type = 'checkbox', selectedIds = [], onApplyFilter
|
|
|
1860
1761
|
return (jsxRuntime.jsxs("div", { ref: filterRef, className: filterClass, children: [jsxRuntime.jsx(Button, { variant: variant, onClick: handleToggle, disabled: disabled, icon: type === 'calendar' ? jsxRuntime.jsx(reactIcons.Calendar16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDownRegular, {}), iconPosition: "right", size: "lg", children: jsxRuntime.jsxs("div", { className: styles$c['zds-filter-button__content'], children: [icon && jsxRuntime.jsx("span", { className: styles$c['zds-filter-button__icon'], children: icon }), jsxRuntime.jsx("span", { className: styles$c['zds-filter-button__text'], children: buttonDisplayText }), jsxRuntime.jsx("span", { className: `${styles$c['zds-filter-button__arrow']} ${isOpen ? styles$c['zds-filter-button__arrow--open'] : ''}`, children: getBadgeValue() && (jsxRuntime.jsx(Badge, { badgeValue: `+${getBadgeValue()}`, type: "status" })) })] }) }), isOpen && (jsxRuntime.jsx("div", { className: dropdownClass, children: type === 'calendar' ? (jsxRuntime.jsx(MemoizedCalendar, { currentDate: currentCalendarDate, selectedDate: selectedDate, onDaySelect: handleDateSelection, onDateChange: handleCalendarNavigation, minDate: minDate, maxDate: maxDate, locale: locale, onClear: handleClear, id: `filter-calendar-${filterRef.current?.id || ''}`, "aria-label": "Selecionar data para filtro" })) : (jsxRuntime.jsx(MemoizedDropdown, { items: items, type: type, defaultSelectedIds: selectedIds, placeholder: placeholder, applySearch: enableSearch, filter: true, onSelectionChange: handleApplyFilter })) }))] }));
|
|
1861
1762
|
};
|
|
1862
1763
|
|
|
1863
|
-
var styles$b = {"
|
|
1764
|
+
var styles$b = {"root":"Radio-module__root___7ElY2","wrapper":"Radio-module__wrapper___NYQ1y","disabled":"Radio-module__disabled___RZ0be","labelText":"Radio-module__labelText___Wkb41","item":"Radio-module__item___3Kvj7","itemWrapper":"Radio-module__itemWrapper___5KbM1","labelWrapper":"Radio-module__labelWrapper___LOHmJ","indicator":"Radio-module__indicator___TJ5hz"};
|
|
1864
1765
|
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
const uniqueId = React.useId();
|
|
1873
|
-
const inputId = id || uniqueId;
|
|
1874
|
-
const handleChange = (e) => {
|
|
1875
|
-
if (disabled)
|
|
1876
|
-
return;
|
|
1877
|
-
onChange?.(e.target.value);
|
|
1878
|
-
};
|
|
1879
|
-
const radioClass = clsx(styles$b['zds-radiobutton'], {
|
|
1880
|
-
[styles$b['zds-radiobutton--disabled']]: disabled,
|
|
1881
|
-
}, className);
|
|
1882
|
-
const labelClass = clsx(styles$b['zds-radiobutton__box-check'], {
|
|
1883
|
-
[styles$b['zds-radiobutton__disabled']]: disabled,
|
|
1884
|
-
});
|
|
1885
|
-
return (jsxRuntime.jsx("div", { className: radioClass, children: jsxRuntime.jsxs("label", { className: labelClass, htmlFor: inputId, children: [jsxRuntime.jsx("div", { className: styles$b['zds-radiobutton__mini-box'], children: jsxRuntime.jsx("input", { id: inputId, type: "radio", name: name, value: value, checked: checked, disabled: disabled, onChange: handleChange }) }), label && (jsxRuntime.jsx("span", { id: `${inputId}-description`, className: styles$b['zds-radiobutton__box-check__text'], children: label }))] }) }));
|
|
1766
|
+
const Radio = ({ items, onValueChange, defaultValue, name, id, ariaLabel, orientation = 'vertical', ...rest }) => {
|
|
1767
|
+
const componentId = id || React.useId();
|
|
1768
|
+
return (jsxRuntime.jsx(radixUi.RadioGroup.Root, { id: componentId, className: styles$b.root, defaultValue: defaultValue, onValueChange: onValueChange, name: name, "aria-label": ariaLabel, "data-orientation": orientation, orientation: orientation, ...rest, children: items.map(({ id, value, disabled, label }) => {
|
|
1769
|
+
const itemKey = id ?? value;
|
|
1770
|
+
const uniqueId = `${componentId}-item-${value}`;
|
|
1771
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$b.wrapper, { [styles$b.disabled]: disabled }), children: jsxRuntime.jsxs("label", { className: styles$b.labelWrapper, htmlFor: uniqueId, children: [jsxRuntime.jsx("div", { className: styles$b.itemWrapper, children: jsxRuntime.jsx(radixUi.RadioGroup.Item, { disabled: disabled, className: styles$b.item, value: value, id: uniqueId, "data-disabled": disabled, children: jsxRuntime.jsx(radixUi.RadioGroup.Indicator, { className: styles$b.indicator }) }) }), jsxRuntime.jsx("span", { className: styles$b.labelText, children: label })] }) }, itemKey));
|
|
1772
|
+
}) }));
|
|
1886
1773
|
};
|
|
1887
|
-
const MemoizedRadio = React.memo(Radio);
|
|
1888
|
-
MemoizedRadio.displayName = 'Radio';
|
|
1889
1774
|
|
|
1890
1775
|
var styles$a = {"zds-list-item__container":"ListItem-module__zds-list-item__container___mEIUK","zds-list-item--checkbox":"ListItem-module__zds-list-item--checkbox___wfi9-","zds-list-item--icon":"ListItem-module__zds-list-item--icon___h3Ijt","zds-list-item--radio":"ListItem-module__zds-list-item--radio___2l7mK","zds-list-item--text":"ListItem-module__zds-list-item--text___F0PDx","zds-list-item--hovered":"ListItem-module__zds-list-item--hovered___XrDWn","zds-list-item--disabled":"ListItem-module__zds-list-item--disabled___p1xZF","zds-list-item__wrapper-text":"ListItem-module__zds-list-item__wrapper-text___5-TX2","zds-list-item__wrapper-icon":"ListItem-module__zds-list-item__wrapper-icon___S6Fr1","zds-list-item__title":"ListItem-module__zds-list-item__title___AV7nz","zds-list-item__subtext":"ListItem-module__zds-list-item__subtext___nfXky","zds-list-item__text":"ListItem-module__zds-list-item__text___3y0sB"};
|
|
1891
1776
|
|
|
@@ -1972,9 +1857,13 @@ const ListItem = ({ id, className, variant = 'text', text = '', name = '', subTe
|
|
|
1972
1857
|
const currentVariant = validVariants.includes(variant) ? variant : 'text';
|
|
1973
1858
|
switch (currentVariant) {
|
|
1974
1859
|
case 'checkbox':
|
|
1975
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(
|
|
1860
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Checkbox, { checked: internalChecked, disabled: disabled, onCheckedChange: () => handleCheckboxClick({}) }), jsxRuntime.jsxs("div", { className: styles$a['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$a['zds-list-item__text'], onClick: handleCheckboxClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$a['zds-list-item__subtext'], onClick: handleCheckboxClick, children: subText }))] })] }));
|
|
1976
1861
|
case 'radio':
|
|
1977
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$a['zds-list-item__wrapper-radio'], children: jsxRuntime.jsx("span", { className: styles$a['zds-list-item__radio'], "aria-hidden": "true", children: jsxRuntime.jsx(
|
|
1862
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$a['zds-list-item__wrapper-radio'], children: jsxRuntime.jsx("span", { className: styles$a['zds-list-item__radio'], "aria-hidden": "true", children: jsxRuntime.jsx(Radio, { name: name, onValueChange: () => handleRadioClick({}), items: [{
|
|
1863
|
+
value: value,
|
|
1864
|
+
label: '',
|
|
1865
|
+
disabled: disabled
|
|
1866
|
+
}], "aria-labelledby": `${itemId}-text` }) }) }), jsxRuntime.jsxs("div", { className: styles$a['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$a['zds-list-item__title'], onClick: handleRadioClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$a['zds-list-item__subtext'], children: subText }))] })] }));
|
|
1978
1867
|
case 'icon':
|
|
1979
1868
|
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$a['zds-list-item__wrapper-icon'], children: icon }), jsxRuntime.jsxs("div", { className: styles$a['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$a['zds-list-item__title'], onClick: handleTextOrIconClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$a['zds-list-item__subtext'], children: subText }))] })] }));
|
|
1980
1869
|
case 'text':
|
|
@@ -2616,20 +2505,9 @@ const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled
|
|
|
2616
2505
|
const memorizedQuantity = React.memo(Quantity);
|
|
2617
2506
|
memorizedQuantity.displayName = 'Quantity';
|
|
2618
2507
|
|
|
2619
|
-
var styles$6 = {"
|
|
2508
|
+
var styles$6 = {"zds-select":"Select-module__zds-select___TePBJ","zds-select__dropdown":"Select-module__zds-select__dropdown___pEXsY","zds-dropdown__container":"Select-module__zds-dropdown__container___TJvrT","zds-select__dropdown--top":"Select-module__zds-select__dropdown--top___O3u5M","zds-select__dropdown--bottom":"Select-module__zds-select__dropdown--bottom___qfKLH"};
|
|
2620
2509
|
|
|
2621
|
-
|
|
2622
|
-
const componentId = id || React.useId();
|
|
2623
|
-
return (jsxRuntime.jsx(radixUi.RadioGroup.Root, { id: componentId, className: styles$6.root, defaultValue: defaultValue, onValueChange: onValueChange, name: name, "aria-label": ariaLabel, "data-orientation": orientation, orientation: orientation, ...rest, children: items.map(({ id, value, disabled, label }, index) => {
|
|
2624
|
-
const itemKey = id ?? value ?? `radio-${index}`;
|
|
2625
|
-
const uniqueId = `${componentId}-item-${value}`;
|
|
2626
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$6.wrapper, { [styles$6.disabled]: disabled }), children: jsxRuntime.jsxs("label", { className: styles$6.labelWrapper, htmlFor: uniqueId, children: [jsxRuntime.jsx("div", { className: styles$6.itemWrapper, children: jsxRuntime.jsx(radixUi.RadioGroup.Item, { disabled: disabled, className: styles$6.item, value: value, id: uniqueId, "data-disabled": disabled, children: jsxRuntime.jsx(radixUi.RadioGroup.Indicator, { className: styles$6.indicator }) }) }), jsxRuntime.jsx("span", { className: styles$6.labelText, children: label })] }) }, itemKey));
|
|
2627
|
-
}) }));
|
|
2628
|
-
};
|
|
2629
|
-
|
|
2630
|
-
var styles$5 = {"zds-select":"Select-module__zds-select___TePBJ","zds-select__dropdown":"Select-module__zds-select__dropdown___pEXsY","zds-dropdown__container":"Select-module__zds-dropdown__container___TJvrT","zds-select__dropdown--top":"Select-module__zds-select__dropdown--top___O3u5M","zds-select__dropdown--bottom":"Select-module__zds-select__dropdown--bottom___qfKLH"};
|
|
2631
|
-
|
|
2632
|
-
var styles$4 = {"zds-select-field":"SelectField-module__zds-select-field___djzS5","zds-select-field__required":"SelectField-module__zds-select-field__required___T-LvC","zds-select-field__container-box":"SelectField-module__zds-select-field__container-box___nkzZy","zds-select-field__box__input":"SelectField-module__zds-select-field__box__input___xBdKZ","zds-select-field__display":"SelectField-module__zds-select-field__display___snLz3","zds-select-field--open":"SelectField-module__zds-select-field--open___IUfIn","zds-select-field__icon":"SelectField-module__zds-select-field__icon___kt-SW","zds-select-field__helper-text":"SelectField-module__zds-select-field__helper-text___9jTiW","zds-select-field__container-tooltip":"SelectField-module__zds-select-field__container-tooltip___xZr46","zds-select-field__tooltip":"SelectField-module__zds-select-field__tooltip___XYAEC","zds-select-field--error":"SelectField-module__zds-select-field--error___sb6H6","zds-select-field--disabled":"SelectField-module__zds-select-field--disabled___48f33"};
|
|
2510
|
+
var styles$5 = {"zds-select-field":"SelectField-module__zds-select-field___djzS5","zds-select-field__required":"SelectField-module__zds-select-field__required___T-LvC","zds-select-field__container-box":"SelectField-module__zds-select-field__container-box___nkzZy","zds-select-field__box__input":"SelectField-module__zds-select-field__box__input___xBdKZ","zds-select-field__display":"SelectField-module__zds-select-field__display___snLz3","zds-select-field--open":"SelectField-module__zds-select-field--open___IUfIn","zds-select-field__icon":"SelectField-module__zds-select-field__icon___kt-SW","zds-select-field__helper-text":"SelectField-module__zds-select-field__helper-text___9jTiW","zds-select-field__container-tooltip":"SelectField-module__zds-select-field__container-tooltip___xZr46","zds-select-field__tooltip":"SelectField-module__zds-select-field__tooltip___XYAEC","zds-select-field--error":"SelectField-module__zds-select-field--error___sb6H6","zds-select-field--disabled":"SelectField-module__zds-select-field--disabled___48f33"};
|
|
2633
2511
|
|
|
2634
2512
|
const SelectField = React.forwardRef(({ id, name, value, placeholder, label, helperText, errorMessage, required = false, disabled = false, icon, isOpen = false, className, tooltip, tooltipText, isTouched = false, hasError = false, positionTooltip }, ref) => {
|
|
2635
2513
|
// ✅ NOVA LÓGICA: Validação de required
|
|
@@ -2643,19 +2521,19 @@ const SelectField = React.forwardRef(({ id, name, value, placeholder, label, hel
|
|
|
2643
2521
|
// ✅ NOVA LÓGICA: Estado de erro combinado
|
|
2644
2522
|
const showError = hasError || shouldShowRequiredError || Boolean(errorMessage);
|
|
2645
2523
|
// Classes CSS
|
|
2646
|
-
const containerClasses = clsx(styles$
|
|
2647
|
-
[styles$
|
|
2648
|
-
[styles$
|
|
2649
|
-
[styles$
|
|
2650
|
-
[styles$
|
|
2651
|
-
[styles$
|
|
2524
|
+
const containerClasses = clsx(styles$5['zds-select-field'], {
|
|
2525
|
+
[styles$5['zds-select-field--open']]: isOpen,
|
|
2526
|
+
[styles$5['zds-select-field--disabled']]: disabled,
|
|
2527
|
+
[styles$5['zds-select-field--error']]: showError,
|
|
2528
|
+
[styles$5['zds-select-field--required']]: isRequired,
|
|
2529
|
+
[styles$5['zds-select-field--touched']]: isTouched,
|
|
2652
2530
|
}, className);
|
|
2653
|
-
const displayClasses = clsx(styles$
|
|
2654
|
-
[styles$
|
|
2531
|
+
const displayClasses = clsx(styles$5['zds-select-field__display'], {
|
|
2532
|
+
[styles$5['zds-select-field__display--placeholder']]: !hasValue,
|
|
2655
2533
|
'has-value': hasValue,
|
|
2656
2534
|
});
|
|
2657
2535
|
const displayText = hasValue ? value : placeholder;
|
|
2658
|
-
return (jsxRuntime.jsxs("div", { className: containerClasses, ref: ref, children: [label && (jsxRuntime.jsx("label", { htmlFor: id, children: tooltip ? (jsxRuntime.jsx(Tooltip, { text: tooltipText, position: positionTooltip, children: jsxRuntime.jsxs("div", { className: styles$
|
|
2536
|
+
return (jsxRuntime.jsxs("div", { className: containerClasses, ref: ref, children: [label && (jsxRuntime.jsx("label", { htmlFor: id, children: tooltip ? (jsxRuntime.jsx(Tooltip, { text: tooltipText, position: positionTooltip, children: jsxRuntime.jsxs("div", { className: styles$5['zds-select-field__container-tooltip'], children: [label, required && jsxRuntime.jsx("span", { className: styles$5['zds-select-field__required'], children: "*" }), jsxRuntime.jsx(reactIcons.Info12Regular, { className: styles$5['zds-select-field__tooltip'] })] }) })) : (jsxRuntime.jsxs("div", { className: styles$5['zds-select-field__container-tooltip'], children: [label, required && jsxRuntime.jsx("span", { className: styles$5['zds-select-field__required'], children: "*" })] })) })), jsxRuntime.jsxs("div", { className: styles$5['zds-select-field__container-box'], children: [jsxRuntime.jsxs("div", { className: styles$5['zds-select-field__box__input'], children: [jsxRuntime.jsx("div", { id: id, className: displayClasses, "data-placeholder": !hasValue ? placeholder : undefined, children: displayText }), jsxRuntime.jsx("input", { type: "hidden", name: name, value: value || '', disabled: disabled, required: required, className: styles$5['zds-select-field__input'] }), icon && (jsxRuntime.jsx("div", { className: styles$5['zds-select-field__icon'], children: icon }))] }), !isOpen && (helperText || showError) && (jsxRuntime.jsx("div", { className: styles$5['zds-select-field__helper-text'], children: showError ? dynamicErrorMessage : helperText }))] })] }));
|
|
2659
2537
|
});
|
|
2660
2538
|
SelectField.displayName = 'SelectField';
|
|
2661
2539
|
|
|
@@ -2969,16 +2847,16 @@ const Select = React.memo(({ id, options = [], value, initialValue, onChange, pl
|
|
|
2969
2847
|
return styles;
|
|
2970
2848
|
}, [maxWidth, minWidth, width]);
|
|
2971
2849
|
// ✅ MELHORADO: Classes CSS com estados visuais
|
|
2972
|
-
const selectClasses = clsx(styles$
|
|
2973
|
-
[styles$
|
|
2974
|
-
[styles$
|
|
2975
|
-
[styles$
|
|
2976
|
-
[styles$
|
|
2977
|
-
[styles$
|
|
2850
|
+
const selectClasses = clsx(styles$6['zds-select'], {
|
|
2851
|
+
[styles$6['zds-select--disabled']]: disabled,
|
|
2852
|
+
[styles$6['zds-select--error']]: Boolean(errorMessage) || shouldShowRequiredError,
|
|
2853
|
+
[styles$6['zds-select--focused']]: isOpen,
|
|
2854
|
+
[styles$6['zds-select--required']]: required,
|
|
2855
|
+
[styles$6['zds-select--touched']]: isTouched,
|
|
2978
2856
|
}, className);
|
|
2979
2857
|
return (jsxRuntime.jsxs("div", { className: selectClasses, ref: selectRef, id: finalId, "data-testid": "select-container", style: containerStyles, children: [jsxRuntime.jsx("div", { role: "combobox", "aria-expanded": isOpen, "aria-haspopup": "listbox", "aria-owns": isOpen ? `${finalId}-dropdown` : undefined, "aria-controls": `${finalId}-dropdown`, "aria-describedby": helperText ? `${finalId}-helper` : undefined, "aria-invalid": Boolean(errorMessage), "aria-required": required, "aria-label": ariaLabel || label || placeholder || 'Selecione uma opção', "aria-activedescendant": isOpen && focusedOptionIndex >= 0
|
|
2980
2858
|
? dropdownItems[focusedOptionIndex]?.id
|
|
2981
|
-
: selectedIds.length > 0 ? selectedIds[0] : undefined, tabIndex: disabled ? -1 : 0, onBlur: handleBlur, onKeyDown: handleKeyDown, onClick: handleTriggerClick, className: styles$
|
|
2859
|
+
: selectedIds.length > 0 ? selectedIds[0] : undefined, tabIndex: disabled ? -1 : 0, onBlur: handleBlur, onKeyDown: handleKeyDown, onClick: handleTriggerClick, className: styles$6['zds-select__trigger'], children: jsxRuntime.jsx(SelectField, { name: `select-${finalId}`, placeholder: displayText || placeholder, value: displayText, disabled: disabled, helperText: !isOpen ? helperText : undefined, errorMessage: !isOpen ? errorMessage : undefined, icon: isOpen ? jsxRuntime.jsx(reactIcons.ChevronUp16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDown16Regular, {}), required: required, label: label, isTouched: isTouched, hasError: shouldShowRequiredError, isOpen: isOpen, tooltip: tooltip, tooltipText: tooltipText, positionTooltip: positionTooltip }) }), isOpen && !disabled && (jsxRuntime.jsx("div", { className: clsx(styles$6['zds-select__dropdown'], position && styles$6[`zds-select__dropdown--${position}`]), children: jsxRuntime.jsx(MemoizedDropdown, { items: dropdownItems, type: type, onSelectionChange: handleOptionSelect, initialItemsSelected: initialItemsSelected, defaultSelectedIds: selectedIds, id: `${finalId}-dropdown`, showSubText: showSubText, maxWidth: maxWidth, minWidth: minWidth, width: width, maxHeight: maxHeight, infiniteScroll: infiniteScroll }, `dropdown-${selectedIds.join('-')}`) }))] }));
|
|
2982
2860
|
});
|
|
2983
2861
|
Select.displayName = 'Select';
|
|
2984
2862
|
|
|
@@ -3223,29 +3101,30 @@ enableApiSearch = false, onApiSearch, isSearching = false, }) {
|
|
|
3223
3101
|
};
|
|
3224
3102
|
}
|
|
3225
3103
|
|
|
3226
|
-
var styles$
|
|
3104
|
+
var styles$4 = {"fieldContainer":"index-module__fieldContainer___rfpwH","trigger":"index-module__trigger___RCzFG","disabled":"index-module__disabled___ust2Z","open":"index-module__open___JZ3rh","error":"index-module__error___bEUc-","hasValue":"index-module__hasValue___pp7kv","triggerText":"index-module__triggerText___Q67w2","containerLabel":"index-module__containerLabel___nM2na","content":"index-module__content___hK3aL","viewport":"index-module__viewport___lJTlo","group":"index-module__group___2RRJc","container":"index-module__container___IPFKk","searchWrapper":"index-module__searchWrapper___Mxi7i","item":"index-module__item___ePUP1","subTitle":"index-module__subTitle___6Iz6p","title":"index-module__title___XHkS6","checkboxItem":"index-module__checkboxItem___3Q7pV","checkboxContent":"index-module__checkboxContent___a9PQw","itemWrapper":"index-module__itemWrapper___LmG00","icon":"index-module__icon___5zWjG","itemIndicator":"index-module__itemIndicator___jC6dI","textContent":"index-module__textContent___sIMxV","helper":"index-module__helper___LK89V","errorMessage":"index-module__errorMessage___MDeJD","noResults":"index-module__noResults___mudWL","loadingMore":"index-module__loadingMore___WvQCu"};
|
|
3227
3105
|
|
|
3228
|
-
const CheckboxSelectItem = ({ text, subTitle, disabled, checked,
|
|
3229
|
-
const handleCheckboxChange = (
|
|
3230
|
-
|
|
3231
|
-
onChange(e.target.checked);
|
|
3106
|
+
const CheckboxSelectItem = ({ text, subTitle, disabled, checked, onCheckedChange, value, ...restProps }) => {
|
|
3107
|
+
const handleCheckboxChange = (checkedValue) => {
|
|
3108
|
+
onCheckedChange(Boolean(checkedValue));
|
|
3232
3109
|
};
|
|
3233
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
3234
|
-
[styles$
|
|
3235
|
-
}), role: "option", "aria-selected": checked, "data-selected": checked, "data-testid": `checkbox-item-${value}`, ...restProps, children: jsxRuntime.jsx("div", { className: styles$
|
|
3110
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$4.item, styles$4.checkboxItem, {
|
|
3111
|
+
[styles$4.disabled]: disabled,
|
|
3112
|
+
}), role: "option", "aria-selected": checked, "data-selected": checked, "data-testid": `checkbox-item-${value}`, ...restProps, children: jsxRuntime.jsx("div", { className: styles$4.checkboxContent, children: jsxRuntime.jsx(Checkbox, { checked: checked, onCheckedChange: handleCheckboxChange, disabled: disabled, label: jsxRuntime.jsxs("div", { className: styles$4.textContent, children: [jsxRuntime.jsx("span", { className: styles$4.title, children: text }), subTitle && jsxRuntime.jsx("div", { className: styles$4.subTitle, children: subTitle })] }) }) }) }));
|
|
3236
3113
|
};
|
|
3237
3114
|
CheckboxSelectItem.displayName = 'CheckboxSelectItem';
|
|
3238
3115
|
|
|
3239
3116
|
const SelectItem = React.forwardRef(({ text, subTitle, icon, disabled, value, variant, ...restProps }, ref) => {
|
|
3240
|
-
return (jsxRuntime.jsxs("div", { className: clsx(styles$
|
|
3241
|
-
[styles$
|
|
3242
|
-
}), "data-disabled": disabled || undefined, "data-testid": `select-item-${value}`, ref: ref, children: [variant === 'icon' && icon && (jsxRuntime.jsx("span", { className: styles$
|
|
3243
|
-
[styles$
|
|
3244
|
-
}), value: value, disabled: disabled, ...restProps, children: [jsxRuntime.jsx(radixUi.Select.ItemText, { className: styles$
|
|
3117
|
+
return (jsxRuntime.jsxs("div", { className: clsx(styles$4.itemWrapper, {
|
|
3118
|
+
[styles$4.disabled]: disabled,
|
|
3119
|
+
}), "data-disabled": disabled || undefined, "data-testid": `select-item-${value}`, ref: ref, children: [variant === 'icon' && icon && (jsxRuntime.jsx("span", { className: styles$4.icon, children: icon })), jsxRuntime.jsxs(radixUi.Select.Item, { className: clsx(styles$4.item, {
|
|
3120
|
+
[styles$4.disabled]: disabled,
|
|
3121
|
+
}), value: value, disabled: disabled, ...restProps, children: [jsxRuntime.jsx(radixUi.Select.ItemText, { className: styles$4.title, children: text }), subTitle && jsxRuntime.jsx("div", { className: styles$4.subTitle, children: subTitle }), jsxRuntime.jsx(radixUi.Select.ItemIndicator, { className: styles$4.itemIndicator })] })] }));
|
|
3245
3122
|
});
|
|
3246
3123
|
SelectItem.displayName = 'SelectItem';
|
|
3247
3124
|
|
|
3248
|
-
const SelectRadix = ({ items, onValueChange, onOpenChange, variant, required = false, value,
|
|
3125
|
+
const SelectRadix = ({ items, onValueChange, onOpenChange, variant, required = false, value, label, helperText, placeholder = 'Selecione', maxWidth, search = false, errorMessage, disabled = false, className, 'aria-label': ariaLabel, 'data-testid': testId,
|
|
3126
|
+
// Props para label com tooltip
|
|
3127
|
+
tooltip = false, tooltipText, side = 'bottom', align = 'start',
|
|
3249
3128
|
// Props para scroll infinito
|
|
3250
3129
|
enableInfiniteScroll = false, onScrollEnd, isLoadingMore = false,
|
|
3251
3130
|
// Props para busca em API
|
|
@@ -3323,18 +3202,18 @@ enableApiSearch = false, onApiSearch, isSearching = false, ...restProps }) => {
|
|
|
3323
3202
|
onApiSearch('');
|
|
3324
3203
|
}
|
|
3325
3204
|
};
|
|
3326
|
-
return (jsxRuntime.jsx(radixUi.Select.Root, { value: variant === 'checkbox' ? '' : (state.selectedValues[0] || ''), onValueChange: variant === 'checkbox' ? undefined : actions.handleSingleSelect, required: required, open: state.isOpen, onOpenChange: actions.setOpen, disabled: disabled, ...restProps, children: jsxRuntime.jsxs("div", { className: clsx(styles$
|
|
3327
|
-
[styles$
|
|
3328
|
-
[styles$
|
|
3329
|
-
[styles$
|
|
3330
|
-
[styles$
|
|
3331
|
-
}), id: selectId, "aria-label": ariaLabel, "data-testid": `${testId}-trigger`, children: [variant === 'checkbox' ? (jsxRuntime.jsx("span", { className: styles$
|
|
3332
|
-
[styles$
|
|
3333
|
-
}), children: helperText })), state.hasError && state.touched && (jsxRuntime.jsx("span", { className: styles$
|
|
3205
|
+
return (jsxRuntime.jsx(radixUi.Select.Root, { value: variant === 'checkbox' ? '' : (state.selectedValues[0] || ''), onValueChange: variant === 'checkbox' ? undefined : actions.handleSingleSelect, required: required, open: state.isOpen, onOpenChange: actions.setOpen, disabled: disabled, ...restProps, children: jsxRuntime.jsxs("div", { className: clsx(styles$4.container, className), style: containerStyle, "data-testid": testId, children: [jsxRuntime.jsx("div", { className: styles$4.fieldContainer, children: jsxRuntime.jsxs("div", { className: styles$4.containerLabel, children: [jsxRuntime.jsx(LabelComponent, { htmlFor: selectId, required: required, tooltipText: tooltipText, tooltip: tooltip, side: side, align: align, error: state.hasError && state.touched, disabled: disabled, children: label }), jsxRuntime.jsxs(radixUi.Select.Trigger, { className: clsx(styles$4.trigger, {
|
|
3206
|
+
[styles$4.error]: state.hasError && state.touched,
|
|
3207
|
+
[styles$4.disabled]: disabled,
|
|
3208
|
+
[styles$4.hasValue]: state.selectedValues.length > 0,
|
|
3209
|
+
[styles$4.open]: state.isOpen,
|
|
3210
|
+
}), id: selectId, "aria-label": ariaLabel, "data-testid": `${testId}-trigger`, children: [variant === 'checkbox' ? (jsxRuntime.jsx("span", { className: styles$4.triggerText, children: displayText })) : (jsxRuntime.jsx(radixUi.Select.Value, { placeholder: placeholder, className: styles$4.placeholder, children: displayText })), state.isOpen ? jsxRuntime.jsx(reactIcons.ChevronUp16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDown16Regular, {})] }), !state.isOpen && helperText && !state.hasError && (jsxRuntime.jsx("span", { className: clsx(styles$4.helper, {
|
|
3211
|
+
[styles$4.disabled]: disabled
|
|
3212
|
+
}), children: helperText })), state.hasError && state.touched && (jsxRuntime.jsx("span", { className: styles$4.errorMessage, children: errorMessage || 'Campo obrigatório' }))] }) }), jsxRuntime.jsx(radixUi.Select.Portal, { children: jsxRuntime.jsxs(radixUi.Select.Content, { className: styles$4.content, position: "popper", side: "bottom", sideOffset: 8, align: "start", avoidCollisions: true, children: [search && (jsxRuntime.jsx("div", { className: styles$4.searchWrapper, children: jsxRuntime.jsx(Search, { ref: refs.searchInputRef, className: styles$4.search, placeholder: "Buscar", value: state.searchInput, onChange: handleSearchChange, onKeyDown: handleSearchKeyDown, onClear: handleClear, "data-testid": `${testId}-search` }) })), jsxRuntime.jsx(radixUi.Select.Viewport, { ref: viewportRef, className: styles$4.viewport, children: jsxRuntime.jsx(radixUi.Select.Group, { className: styles$4.group, children: filteredItems.length === 0 ? (jsxRuntime.jsx("div", { className: styles$4.noResults, children: "Nenhum resultado encontrado" })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [filteredItems.map((item) => (variant === 'checkbox' ? (jsxRuntime.jsx(CheckboxSelectItem, { ...item, checked: state.selectedValues.includes(item.value), onCheckedChange: (checked) => actions.handleMultipleSelect(item.value, checked) }, item.id || item.value)) : (jsxRuntime.jsx(SelectItem, { ...item, variant: variant }, item.id || item.value)))), enableInfiniteScroll && isLoadingMore && (jsxRuntime.jsx("div", { className: styles$4.loadingMore, children: "Carregando mais itens..." }))] })) }) })] }) })] }) }));
|
|
3334
3213
|
};
|
|
3335
3214
|
SelectRadix.displayName = 'SelectRadix';
|
|
3336
3215
|
|
|
3337
|
-
var styles$
|
|
3216
|
+
var styles$3 = {"zds-table__container":"Table-module__zds-table__container___9xeVY","zds-table__scroll-wrapper":"Table-module__zds-table__scroll-wrapper___xQZPq","zds-table":"Table-module__zds-table___bPvaS","zds-table__head":"Table-module__zds-table__head___FvQuS","zds-table__th":"Table-module__zds-table__th___R03sj","zds-table__th-content":"Table-module__zds-table__th-content___duR3c","zds-table__td":"Table-module__zds-table__td___aY-Nt","zds-table-header__filters-placeholder":"Table-module__zds-table-header__filters-placeholder___GhVwi","zds-table__body":"Table-module__zds-table__body___kuKXb","zds-table__empty":"Table-module__zds-table__empty___ZM4iu","zds-table__empty__content":"Table-module__zds-table__empty__content___8xl-u","zds-table__empty__title":"Table-module__zds-table__empty__title___7Y9Pj","zds-table__empty__caption":"Table-module__zds-table__empty__caption___toS00","zds-table__row":"Table-module__zds-table__row___8cEjq","zds-table__empty-cell":"Table-module__zds-table__empty-cell___Ldb6Z","zds-table-header__search":"Table-module__zds-table-header__search___yzLxw","zds-table__pagination":"Table-module__zds-table__pagination___FR5GH","zds-table-header":"Table-module__zds-table-header___uPRjd","zds-table-header__search-container":"Table-module__zds-table-header__search-container___-Fzz1","zds-table-header__filters":"Table-module__zds-table-header__filters___ViH07","zds-table-header__filter-label":"Table-module__zds-table-header__filter-label___c3BWI","zds-table-header__custom-filters":"Table-module__zds-table-header__custom-filters___oTuoM","zds-table-header__filters-content":"Table-module__zds-table-header__filters-content___nKlgL","zds-table-header__filters-wrapper":"Table-module__zds-table-header__filters-wrapper___BrZ9A","zds-table-header__filter-items":"Table-module__zds-table-header__filter-items___Tn8Yv","zds-table__pagination-select":"Table-module__zds-table__pagination-select___TZK-y","zds-table__pagination-info":"Table-module__zds-table__pagination-info___3k-B2","zds-table__pagination-controls":"Table-module__zds-table__pagination-controls___S-zs7","zds-table__pagination-button":"Table-module__zds-table__pagination-button___Wvq9W"};
|
|
3338
3217
|
|
|
3339
3218
|
/**
|
|
3340
3219
|
* @module constants
|
|
@@ -6772,10 +6651,10 @@ const Table = ({ columns = [], dataSource = [], className, loading = false, rowS
|
|
|
6772
6651
|
return columns;
|
|
6773
6652
|
const checkboxColumn = {
|
|
6774
6653
|
key: '__checkbox__',
|
|
6775
|
-
label: (jsxRuntime.jsx(
|
|
6654
|
+
label: (jsxRuntime.jsx(Checkbox, { checked: isAllSelected, indeterminate: isIndeterminate, onCheckedChange: toggleAll, label: '' })),
|
|
6776
6655
|
render: (_, index) => {
|
|
6777
6656
|
const props = rowSelection.getCheckboxProps?.(dataSource[index], index) || {};
|
|
6778
|
-
return (jsxRuntime.jsx(
|
|
6657
|
+
return (jsxRuntime.jsx(Checkbox, { checked: selectedSet.has(index), onCheckedChange: () => toggleRow(index), disabled: props.disabled, label: '' }));
|
|
6779
6658
|
},
|
|
6780
6659
|
align: 'center',
|
|
6781
6660
|
};
|
|
@@ -6783,13 +6662,13 @@ const Table = ({ columns = [], dataSource = [], className, loading = false, rowS
|
|
|
6783
6662
|
}, [columns, rowSelection, isAllSelected, isIndeterminate, toggleAll, selectedSet, toggleRow, dataSource]);
|
|
6784
6663
|
const tableId = React.useMemo(() => `table-${Math.random().toString(36).substr(2, 9)}`, []);
|
|
6785
6664
|
if (loading) {
|
|
6786
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
6665
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$3['zds-table__container'], className), children: jsxRuntime.jsx("div", { className: styles$3['zds-table__loader'], children: jsxRuntime.jsx(LoaderList, {}) }) }));
|
|
6787
6666
|
}
|
|
6788
|
-
const emptyText = locale.emptyText || (jsxRuntime.jsxs("div", { className: styles$
|
|
6789
|
-
return (jsxRuntime.jsx("div", { className: clsx(styles$
|
|
6667
|
+
const emptyText = locale.emptyText || (jsxRuntime.jsxs("div", { className: styles$3['zds-table__empty'], children: [jsxRuntime.jsx("div", { className: styles$3['zds-table__empty__content'], children: jsxRuntime.jsx(EmptyRows150Color, {}) }), jsxRuntime.jsxs("div", { className: styles$3['zds-table__empty__text'], children: [jsxRuntime.jsx("h3", { className: styles$3['zds-table__empty__title'], children: "Nenhum dado encontrado" }), jsxRuntime.jsx("p", { className: styles$3['zds-table__empty__caption'], children: "Nenhum registro encontrado" })] })] }));
|
|
6668
|
+
return (jsxRuntime.jsx("div", { className: clsx(styles$3['zds-table__container'], className), children: jsxRuntime.jsx("div", { className: styles$3['zds-table__scroll-wrapper'], children: jsxRuntime.jsxs("table", { className: styles$3['zds-table'], role: "table", "aria-label": "Tabela de dados", "aria-describedby": loading ? `${tableId}-loading` : undefined, "aria-rowcount": dataSource.length + 1, children: [jsxRuntime.jsx("thead", { className: styles$3['zds-table__head'], children: jsxRuntime.jsx("tr", { children: finalColumns.map((column) => (jsxRuntime.jsx("th", { className: clsx(styles$3['zds-table__th'], column.align && `text-${column.align}`), style: column.style, children: jsxRuntime.jsx("div", { className: styles$3['zds-table__th-content'], children: column.label }) }, column.key))) }) }), jsxRuntime.jsx("tbody", { className: styles$3['zds-table__body'], children: dataSource.length > 0 ? (dataSource.map((row, index) => {
|
|
6790
6669
|
const rowProps = onRow?.(row, index) || {};
|
|
6791
|
-
return (jsxRuntime.jsx("tr", { className: clsx(styles$
|
|
6792
|
-
})) : (jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { colSpan: finalColumns.length, className: styles$
|
|
6670
|
+
return (jsxRuntime.jsx("tr", { className: clsx(styles$3['zds-table__row'], rowProps.className), onClick: rowProps.onClick, onDoubleClick: rowProps.onDoubleClick, children: finalColumns.map((column) => (jsxRuntime.jsx("td", { className: clsx(styles$3['zds-table__td'], column.align && `text-${column.align}`), children: renderCell(column, row, index) }, column.key))) }, index));
|
|
6671
|
+
})) : (jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { colSpan: finalColumns.length, className: styles$3['zds-table__empty-cell'], children: emptyText }) })) })] }) }) }));
|
|
6793
6672
|
};
|
|
6794
6673
|
|
|
6795
6674
|
const isCalendarFilter = (filter) => {
|
|
@@ -6822,7 +6701,7 @@ const TableHeader = ({ searchValue = '', onSearchChange, onSearch, searchPlaceho
|
|
|
6822
6701
|
}
|
|
6823
6702
|
};
|
|
6824
6703
|
const hasFilters = filters || (filterItems && filterItems.length > 0);
|
|
6825
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
6704
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$3['zds-table-header']} ${className}`.trim(), children: [showSearch && (onSearchChange || onSearch) && (jsxRuntime.jsx("div", { className: styles$3['zds-table-header__search-container'], children: jsxRuntime.jsx(Search, { value: internalSearchValue, onChange: handleInputChange, onKeyDown: handleKeyDown, placeholder: searchPlaceholder, className: styles$3['zds-table-header__search'] }) })), showFilters && (jsxRuntime.jsx("div", { className: styles$3['zds-table-header__filters'], children: hasFilters ? (jsxRuntime.jsxs("div", { className: styles$3['zds-table-header__filters-content'], children: [filters && (jsxRuntime.jsx("div", { className: styles$3['zds-table-header__custom-filters'], children: filters })), jsxRuntime.jsxs("div", { className: styles$3['zds-table-header__filters-wrapper'], children: [jsxRuntime.jsx("span", { className: styles$3['zds-table-header__filter-label'], children: "Filtros" }), jsxRuntime.jsx("div", { className: styles$3['zds-table-header__filter-items'], children: filterItems && filterItems.map((filterItem, index) => {
|
|
6826
6705
|
const commonProps = {
|
|
6827
6706
|
key: filterItem.id || index,
|
|
6828
6707
|
buttonText: filterItem.buttonText,
|
|
@@ -6841,7 +6720,7 @@ const TableHeader = ({ searchValue = '', onSearchChange, onSearch, searchPlaceho
|
|
|
6841
6720
|
}
|
|
6842
6721
|
console.warn('TableHeader: Tipo de filtro não reconhecido:', filterItem);
|
|
6843
6722
|
return null;
|
|
6844
|
-
}) })] })] })) : (jsxRuntime.jsx("div", { className: styles$
|
|
6723
|
+
}) })] })] })) : (jsxRuntime.jsx("div", { className: styles$3['zds-table-header__filters-placeholder'], children: jsxRuntime.jsx("span", { children: "Nenhum filtro dispon\u00EDvel" }) })) }))] }));
|
|
6845
6724
|
};
|
|
6846
6725
|
|
|
6847
6726
|
const TablePagination = ({ currentPage, totalItems, itemsPerPage, onPageChange, onItemsPerPageChange, pageSizeOptions = [10, 25, 50, 100], disabled = false, className = '', }) => {
|
|
@@ -6867,12 +6746,12 @@ const TablePagination = ({ currentPage, totalItems, itemsPerPage, onPageChange,
|
|
|
6867
6746
|
const newItemsPerPage = Number(event.target.value);
|
|
6868
6747
|
onItemsPerPageChange(newItemsPerPage);
|
|
6869
6748
|
};
|
|
6870
|
-
return (jsxRuntime.jsxs("div", { className: `${styles$
|
|
6749
|
+
return (jsxRuntime.jsxs("div", { className: `${styles$3['zds-table__pagination']} ${className}`.trim(), children: [jsxRuntime.jsxs("div", { className: styles$3['zds-table__pagination-select'], children: [jsxRuntime.jsx("label", { htmlFor: "items-per-page", className: styles$3['zds-table__pagination-label'], children: "Itens por p\u00E1gina" }), jsxRuntime.jsx("select", { id: "items-per-page", value: itemsPerPage, onChange: handleItemsPerPageChange, disabled: disabled, className: styles$3['zds-table__pagination-select-input'], children: pageSizeOptions.map((option) => (jsxRuntime.jsx("option", { value: option, children: option }, option))) })] }), jsxRuntime.jsx("div", { className: styles$3['zds-table__pagination-info'], children: jsxRuntime.jsx("span", { children: totalItems > 0
|
|
6871
6750
|
? `${startItem}–${endItem} de ${totalItems}`
|
|
6872
|
-
: '0 itens' }) }), jsxRuntime.jsxs("div", { className: styles$
|
|
6751
|
+
: '0 itens' }) }), jsxRuntime.jsxs("div", { className: styles$3['zds-table__pagination-controls'], children: [jsxRuntime.jsx("button", { className: styles$3['zds-table__pagination-button'], onClick: handlePrevious, disabled: !canGoPrev, "aria-label": "P\u00E1gina anterior", children: jsxRuntime.jsx(reactIcons.ChevronLeft16Regular, {}) }), jsxRuntime.jsx("button", { className: styles$3['zds-table__pagination-button'], onClick: handleNext, disabled: !canGoNext, "aria-label": "Pr\u00F3xima p\u00E1gina", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, {}) })] })] }));
|
|
6873
6752
|
};
|
|
6874
6753
|
|
|
6875
|
-
var styles$
|
|
6754
|
+
var styles$2 = {"zds-toast__container":"Toast-module__zds-toast__container___IE2Z4","zds-toast__item":"Toast-module__zds-toast__item___ysYjL","zds-toast__message":"Toast-module__zds-toast__message___BMJL7","zds-toast__icon":"Toast-module__zds-toast__icon___JCwTV","zds-toast__close":"Toast-module__zds-toast__close___nfxSB","zds-toast__active":"Toast-module__zds-toast__active___IraTZ","zds-toast__success":"Toast-module__zds-toast__success___8z2qq","zds-toast__alert":"Toast-module__zds-toast__alert___TM-W8","zds-toast__info":"Toast-module__zds-toast__info___T3dcI"};
|
|
6876
6755
|
|
|
6877
6756
|
const sanitizeMessage = (message) => {
|
|
6878
6757
|
if (typeof message !== 'string')
|
|
@@ -6894,15 +6773,15 @@ const ToastContext = React.createContext(undefined);
|
|
|
6894
6773
|
const toastVariants = {
|
|
6895
6774
|
success: {
|
|
6896
6775
|
icon: jsxRuntime.jsx(reactIcons.CheckmarkCircle20Filled, {}),
|
|
6897
|
-
className: styles$
|
|
6776
|
+
className: styles$2['zds-toast__success'],
|
|
6898
6777
|
},
|
|
6899
6778
|
alert: {
|
|
6900
6779
|
icon: jsxRuntime.jsx(reactIcons.Warning20Filled, {}),
|
|
6901
|
-
className: styles$
|
|
6780
|
+
className: styles$2['zds-toast__alert'],
|
|
6902
6781
|
},
|
|
6903
6782
|
info: {
|
|
6904
6783
|
icon: jsxRuntime.jsx(reactIcons.Info20Filled, {}),
|
|
6905
|
-
className: styles$
|
|
6784
|
+
className: styles$2['zds-toast__info'],
|
|
6906
6785
|
},
|
|
6907
6786
|
};
|
|
6908
6787
|
const ToastItem = ({ toast, onClose, isVisible }) => {
|
|
@@ -6912,12 +6791,12 @@ const ToastItem = ({ toast, onClose, isVisible }) => {
|
|
|
6912
6791
|
onClose(toast.id);
|
|
6913
6792
|
}
|
|
6914
6793
|
};
|
|
6915
|
-
return (jsxRuntime.jsxs("div", { className: clsx(styles$
|
|
6794
|
+
return (jsxRuntime.jsxs("div", { className: clsx(styles$2['zds-toast__item'], variant.className, isVisible && styles$2['zds-toast__active']), role: toast.type === 'alert' ? 'alert' : 'status', "aria-live": toast.type === 'alert' ? 'assertive' : 'polite', "aria-atomic": "true", tabIndex: toast.persistent ? 0 : -1, onKeyDown: handleKeyDown, children: [jsxRuntime.jsx("span", { className: styles$2['zds-toast__icon'], "aria-hidden": "true", children: variant.icon }), jsxRuntime.jsx("span", { className: styles$2['zds-toast__message'], dangerouslySetInnerHTML: { __html: sanitizeMessage(toast.message) } }), jsxRuntime.jsx("button", { type: "button", className: styles$2['zds-toast__close'], "aria-label": `Fechar notificação: ${toast.message.slice(0, 50)}${toast.message.length > 50 ? '...' : ''}`, onClick: () => onClose(toast.id), children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, { "aria-hidden": "true" }) })] }));
|
|
6916
6795
|
};
|
|
6917
6796
|
const ToastContainer = ({ toasts, onClose, visibleToasts }) => {
|
|
6918
6797
|
if (toasts.length === 0)
|
|
6919
6798
|
return null;
|
|
6920
|
-
return (jsxRuntime.jsx("div", { className: styles$
|
|
6799
|
+
return (jsxRuntime.jsx("div", { className: styles$2['zds-toast__container'], role: "log", "aria-label": "Notifica\u00E7\u00F5es do sistema", children: toasts.map(toast => (jsxRuntime.jsx(ToastItem, { toast: toast, onClose: onClose, isVisible: visibleToasts.has(toast.id) }, toast.id))) }));
|
|
6921
6800
|
};
|
|
6922
6801
|
const ToastProvider = ({ children, maxToasts = MAX_TOASTS }) => {
|
|
6923
6802
|
const [toasts, setToasts] = React.useState([]);
|
|
@@ -7005,6 +6884,10 @@ const useToast = () => {
|
|
|
7005
6884
|
return context;
|
|
7006
6885
|
};
|
|
7007
6886
|
|
|
6887
|
+
var styles$1 = {"container":"Switch-module__container___BR1OB","switchRoot":"Switch-module__switchRoot___jz2HD","switchThumb":"Switch-module__switchThumb___X3RL7"};
|
|
6888
|
+
|
|
6889
|
+
const Switch = ({ disabled = false, defaultChecked = false, checked, onCheckedChange, name, value }) => (jsxRuntime.jsx("div", { className: clsx(styles$1.container), children: jsxRuntime.jsx(radixUi.Switch.Root, { className: styles$1.switchRoot, disabled: disabled, defaultChecked: defaultChecked, onCheckedChange: onCheckedChange, name: name, value: value, children: jsxRuntime.jsx(radixUi.Switch.Thumb, { className: styles$1.switchThumb }) }) }));
|
|
6890
|
+
|
|
7008
6891
|
var styles = {"zds-verification-code__container":"VerificationCode-module__zds-verification-code__container___tUNuJ","zds-verification-code__input":"VerificationCode-module__zds-verification-code__input___wDIQ6","zds-verification-code__filled":"VerificationCode-module__zds-verification-code__filled___-2VVb","zds-verification-code__has-error":"VerificationCode-module__zds-verification-code__has-error___eqKAp","zds-verification-code__error":"VerificationCode-module__zds-verification-code__error___T53i5"};
|
|
7009
6892
|
|
|
7010
6893
|
/**
|
|
@@ -7325,8 +7208,7 @@ exports.Badge = Badge;
|
|
|
7325
7208
|
exports.Button = Button;
|
|
7326
7209
|
exports.Calendar = MemoizedCalendar;
|
|
7327
7210
|
exports.Callout = Callout;
|
|
7328
|
-
exports.Checkbox =
|
|
7329
|
-
exports.CheckboxRadix = CheckboxRadix;
|
|
7211
|
+
exports.Checkbox = Checkbox;
|
|
7330
7212
|
exports.Chips = MemoizedChips;
|
|
7331
7213
|
exports.Container = Container;
|
|
7332
7214
|
exports.DatePicker = DatePicker_default;
|
|
@@ -7338,12 +7220,12 @@ exports.ListItem = ListItem;
|
|
|
7338
7220
|
exports.Menu = Menu;
|
|
7339
7221
|
exports.MenuRadix = MenuRadix;
|
|
7340
7222
|
exports.Quantity = memorizedQuantity;
|
|
7341
|
-
exports.Radio =
|
|
7342
|
-
exports.RadioRadix = RadioRadix;
|
|
7223
|
+
exports.Radio = Radio;
|
|
7343
7224
|
exports.Search = Search;
|
|
7344
7225
|
exports.Select = Select;
|
|
7345
7226
|
exports.SelectField = SelectField;
|
|
7346
7227
|
exports.SelectRadix = SelectRadix;
|
|
7228
|
+
exports.Switch = Switch;
|
|
7347
7229
|
exports.Table = Table;
|
|
7348
7230
|
exports.TableHeader = TableHeader;
|
|
7349
7231
|
exports.TablePagination = TablePagination;
|