@giro-ds/react 5.0.1 → 6.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/index.cjs CHANGED
@@ -28,17 +28,17 @@ function _interopNamespaceDefault(e) {
28
28
 
29
29
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
30
30
 
31
- var styles$q = {"AvatarRoot":"Avatar-module__AvatarRoot___7eNx7","AvatarRoot--sm":"Avatar-module__AvatarRoot--sm___LVHoe","AvatarRoot--lg":"Avatar-module__AvatarRoot--lg___QWux5","AvatarImage":"Avatar-module__AvatarImage___-H6iH","AvatarFallback":"Avatar-module__AvatarFallback___RDyNV"};
31
+ var styles$r = {"AvatarRoot":"Avatar-module__AvatarRoot___7eNx7","AvatarRoot--sm":"Avatar-module__AvatarRoot--sm___LVHoe","AvatarRoot--lg":"Avatar-module__AvatarRoot--lg___QWux5","AvatarImage":"Avatar-module__AvatarImage___-H6iH","AvatarFallback":"Avatar-module__AvatarFallback___RDyNV"};
32
32
 
33
33
  const Avatar = ({ icon, size = 'lg', src, className, initialLetters, ...rest }) => {
34
- const AvatarClass = clsx(styles$q.AvatarRoot, {
35
- [styles$q['AvatarRoot--lg']]: size === 'lg',
36
- [styles$q['AvatarRoot--sm']]: size === 'sm',
34
+ const AvatarClass = clsx(styles$r.AvatarRoot, {
35
+ [styles$r['AvatarRoot--lg']]: size === 'lg',
36
+ [styles$r['AvatarRoot--sm']]: size === 'sm',
37
37
  }, className);
38
- return (jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(radixUi.Avatar.Root, { className: AvatarClass, ...rest, children: [src && (jsxRuntime.jsx(radixUi.Avatar.Image, { className: styles$q.AvatarImage, src: src, alt: "Avatar" })), jsxRuntime.jsx(radixUi.Avatar.Fallback, { className: styles$q.AvatarFallback, children: icon || initialLetters })] }) }));
38
+ return (jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(radixUi.Avatar.Root, { className: AvatarClass, ...rest, children: [src && (jsxRuntime.jsx(radixUi.Avatar.Image, { className: styles$r.AvatarImage, src: src, alt: "Avatar" })), jsxRuntime.jsx(radixUi.Avatar.Fallback, { className: styles$r.AvatarFallback, children: icon || initialLetters })] }) }));
39
39
  };
40
40
 
41
- var styles$p = {"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"};
41
+ var styles$q = {"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
42
 
43
43
  const Badge = ({ children, badgeValue = null, type = 'notification', className, id, 'aria-label': ariaLabel, }) => {
44
44
  const isEmpty = badgeValue === null || badgeValue === undefined || badgeValue === '';
@@ -61,23 +61,23 @@ const Badge = ({ children, badgeValue = null, type = 'notification', className,
61
61
  };
62
62
  const displayValue = getDisplayValue(badgeValue);
63
63
  if (type === 'notification') {
64
- return (jsxRuntime.jsxs("div", { className: clsx(styles$p['zds-badge__container']), children: [jsxRuntime.jsx("div", { id: componentId, className: clsx(styles$p['zds-badge'], {
65
- [styles$p['zds-badge__small']]: Number(badgeValue) <= 10,
66
- [styles$p['zds-badge__large']]: Number(badgeValue) > 10,
67
- }, className), "data-testid": "badge-notification", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$p['zds-badge__value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }), children && (jsxRuntime.jsx("div", { className: styles$p['zds-badge__content'], "data-testid": "badge-content", children: children }))] }));
64
+ return (jsxRuntime.jsxs("div", { className: clsx(styles$q['zds-badge__container']), children: [jsxRuntime.jsx("div", { id: componentId, className: clsx(styles$q['zds-badge'], {
65
+ [styles$q['zds-badge__small']]: Number(badgeValue) <= 10,
66
+ [styles$q['zds-badge__large']]: Number(badgeValue) > 10,
67
+ }, className), "data-testid": "badge-notification", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$q['zds-badge__value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }), children && (jsxRuntime.jsx("div", { className: styles$q['zds-badge__content'], "data-testid": "badge-content", children: children }))] }));
68
68
  }
69
- return (jsxRuntime.jsx("div", { className: clsx(styles$p['zds-badge__container']), children: jsxRuntime.jsx("div", { className: clsx(styles$p['zds-badge__status'], {
70
- [styles$p['zds-badge__status__empty']]: isEmpty,
71
- }, className), "data-testid": "badge-status", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$p['zds-badge__status-value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }) }));
69
+ return (jsxRuntime.jsx("div", { className: clsx(styles$q['zds-badge__container']), children: jsxRuntime.jsx("div", { className: clsx(styles$q['zds-badge__status'], {
70
+ [styles$q['zds-badge__status__empty']]: isEmpty,
71
+ }, className), "data-testid": "badge-status", children: !isEmpty && (jsxRuntime.jsx("span", { className: styles$q['zds-badge__status-value'], "aria-hidden": ariaLabel ? 'true' : 'false', children: displayValue })) }) }));
72
72
  };
73
73
 
74
- var styles$o = {"tooltipContent":"Tooltip-module__tooltipContent___xycUg","triggerWrapper":"Tooltip-module__triggerWrapper___x83XR"};
74
+ var styles$p = {"tooltipContent":"Tooltip-module__tooltipContent___xycUg","triggerWrapper":"Tooltip-module__triggerWrapper___x83XR"};
75
75
 
76
76
  const Tooltip = ({ children, text, side = 'bottom', align = 'start', maxWidth, sideOffset = 10, ...rest }) => {
77
- 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$o.triggerWrapper, children: children }) }), jsxRuntime.jsx(radixUi.Tooltip.Portal, { children: jsxRuntime.jsx(radixUi.Tooltip.Content, { className: styles$o.tooltipContent, side: side, align: align, sideOffset: sideOffset, style: { maxWidth: maxWidth ? `${maxWidth}px` : 'auto' }, ...rest, children: text }) })] }) }));
77
+ 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$p.triggerWrapper, children: children }) }), jsxRuntime.jsx(radixUi.Tooltip.Portal, { children: jsxRuntime.jsx(radixUi.Tooltip.Content, { className: styles$p.tooltipContent, side: side, align: align, sideOffset: sideOffset, style: { maxWidth: maxWidth ? `${maxWidth}px` : 'auto' }, ...rest, children: text }) })] }) }));
78
78
  };
79
79
 
80
- var styles$n = {"button":"Button-module__button___18Bed","button-lg":"Button-module__button-lg___-A8B9","button-sm":"Button-module__button-sm___L7aT7","button-filled":"Button-module__button-filled___IQx1z","button-outlined":"Button-module__button-outlined___hLkLN","button-text":"Button-module__button-text___8GFeA","buttonWithIcon":"Button-module__buttonWithIcon___8ehK1","buttonIconPosition-left":"Button-module__buttonIconPosition-left___uOY6b","buttonIconPosition-right":"Button-module__buttonIconPosition-right___eswRS","buttonIconPosition-both":"Button-module__buttonIconPosition-both___1Lith","buttonNoContent":"Button-module__buttonNoContent___Tc9jk","buttonIconOnly":"Button-module__buttonIconOnly___aifk4","buttonIconLeft":"Button-module__buttonIconLeft___RICR3","buttonIconRight":"Button-module__buttonIconRight___71lu2","buttonFullWidth":"Button-module__buttonFullWidth___tXuVE","disabled":"Button-module__disabled___UzdWL","buttonLoading":"Button-module__buttonLoading___RGdNw","spin":"Button-module__spin___kQKH9"};
80
+ var styles$o = {"button":"Button-module__button___18Bed","button-lg":"Button-module__button-lg___-A8B9","button-sm":"Button-module__button-sm___L7aT7","button-filled":"Button-module__button-filled___IQx1z","button-outlined":"Button-module__button-outlined___hLkLN","button-text":"Button-module__button-text___8GFeA","buttonWithIcon":"Button-module__buttonWithIcon___8ehK1","buttonIconPosition-left":"Button-module__buttonIconPosition-left___uOY6b","buttonIconPosition-right":"Button-module__buttonIconPosition-right___eswRS","buttonIconPosition-both":"Button-module__buttonIconPosition-both___1Lith","buttonNoContent":"Button-module__buttonNoContent___Tc9jk","buttonIconOnly":"Button-module__buttonIconOnly___aifk4","buttonIconLeft":"Button-module__buttonIconLeft___RICR3","buttonIconRight":"Button-module__buttonIconRight___71lu2","buttonFullWidth":"Button-module__buttonFullWidth___tXuVE","disabled":"Button-module__disabled___UzdWL","buttonLoading":"Button-module__buttonLoading___RGdNw","buttonContentHidden":"Button-module__buttonContentHidden___CoCiN","buttonLoadingSpinner":"Button-module__buttonLoadingSpinner___oZxEU","spin":"Button-module__spin___kQKH9"};
81
81
 
82
82
  const Button = React.forwardRef(({ as, children, variant = 'filled', iconPosition = 'left', href, to, external = false, target, rel, disabled = false, onClick, size = 'lg', className, type = 'button', id, icon, fullWidth = false, ariaLabel, iconOnly = false, loading = false, tooltipText, tooltipSide = 'top', tooltipAlign = 'center', ...restProps }, ref) => {
83
83
  const generatedId = React.useId();
@@ -87,35 +87,51 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
87
87
  return as;
88
88
  if (href)
89
89
  return 'a';
90
- if (to)
90
+ if (to) {
91
+ if (process.env.NODE_ENV !== 'production' && !as) {
92
+ console.warn('[Button] A prop `to` foi usada sem `as`. ' +
93
+ 'Para navegação via roteador (React Router, Next.js, etc.), passe `as={Link}`. ' +
94
+ 'Por ora, `to` será tratado como `href` em um <a> nativo.');
95
+ }
91
96
  return 'a';
97
+ }
92
98
  return 'button';
93
99
  };
94
100
  const Component = getComponent();
95
101
  const hasContent = React.useMemo(() => {
96
102
  return children && React.Children.count(children) > 0;
97
103
  }, [children]);
98
- const resolvedIcon = iconOnly && !icon ? jsxRuntime.jsx(reactIcons.Add16Regular, {}) : icon;
99
- const buttonClasses = clsx(styles$n.button, styles$n[`button-${variant}`], styles$n[`button-${size}`], {
100
- [styles$n['buttonLoading']]: loading,
101
- [styles$n['buttonWithIcon']]: resolvedIcon && !iconOnly,
102
- [styles$n[`buttonIconPosition-${iconPosition}`]]: resolvedIcon && !iconOnly,
103
- [styles$n['buttonNoContent']]: resolvedIcon && !hasContent && !iconOnly,
104
- [styles$n['buttonFullWidth']]: fullWidth,
105
- [styles$n['buttonIconOnly']]: iconOnly,
104
+ if (process.env.NODE_ENV !== 'production' && iconOnly && !icon) {
105
+ console.error('[Button] `iconOnly={true}` foi usado sem a prop `icon`. ' +
106
+ 'Forneça um ícone via `icon={<MeuIcone />}`.');
107
+ }
108
+ const resolvedIcon = icon;
109
+ const buttonClasses = clsx(styles$o.button, styles$o[`button-${variant}`], styles$o[`button-${size}`], {
110
+ [styles$o['disabled']]: disabled,
111
+ [styles$o['buttonLoading']]: loading,
112
+ [styles$o['buttonWithIcon']]: resolvedIcon && !iconOnly,
113
+ [styles$o[`buttonIconPosition-${iconPosition}`]]: resolvedIcon && !iconOnly,
114
+ [styles$o['buttonNoContent']]: resolvedIcon && !hasContent && !iconOnly,
115
+ [styles$o['buttonFullWidth']]: fullWidth,
116
+ [styles$o['buttonIconOnly']]: iconOnly,
106
117
  }, className);
107
118
  const getAriaLabel = () => {
108
119
  if (ariaLabel)
109
120
  return ariaLabel;
110
- if (iconOnly && !ariaLabel) {
111
- return 'Botão de ação';
121
+ if (iconOnly) {
122
+ if (tooltipText)
123
+ return tooltipText;
124
+ if (process.env.NODE_ENV !== 'production') {
125
+ console.warn('[Button] Botões icon-only precisam de uma prop `ariaLabel` descritiva. ' +
126
+ 'O fallback genérico foi removido pois não comunica intenção. ' +
127
+ 'Forneça `ariaLabel` ou `tooltipText` para nomear o botão.');
128
+ }
129
+ return undefined;
112
130
  }
113
- if (typeof children === 'string')
114
- return children;
115
131
  return undefined;
116
132
  };
117
133
  const handleClick = (e) => {
118
- if (disabled) {
134
+ if (disabled || loading) {
119
135
  e.preventDefault();
120
136
  return;
121
137
  }
@@ -123,12 +139,12 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
123
139
  };
124
140
  const renderContent = () => {
125
141
  if (iconOnly && !loading) {
126
- return (jsxRuntime.jsx("span", { className: styles$n.buttonIconOnly, "aria-hidden": "true", children: resolvedIcon }));
142
+ return (jsxRuntime.jsx("span", { className: styles$o.buttonIconOnly, "aria-hidden": "true", children: resolvedIcon }));
127
143
  }
128
144
  if (loading) {
129
- return (jsxRuntime.jsx("span", { className: styles$n.buttonLoading, "aria-hidden": "true", children: jsxRuntime.jsx(reactIcons.SpinnerIos16Regular, { "aria-hidden": "true" }) }));
145
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!iconOnly && (jsxRuntime.jsxs("span", { className: styles$o.buttonContentHidden, "aria-hidden": "true", children: [resolvedIcon && (iconPosition === 'left' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$o.buttonIconLeft, children: resolvedIcon })), children, resolvedIcon && (iconPosition === 'right' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$o.buttonIconRight, children: resolvedIcon }))] })), jsxRuntime.jsx("span", { className: styles$o.buttonLoadingSpinner, "aria-hidden": "true", children: jsxRuntime.jsx(reactIcons.SpinnerIos16Regular, { "aria-hidden": "true" }) })] }));
130
146
  }
131
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [resolvedIcon && (iconPosition === 'left' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$n.buttonIconLeft, "aria-hidden": "true", children: resolvedIcon })), children, resolvedIcon && (iconPosition === 'right' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$n.buttonIconRight, "aria-hidden": "true", children: resolvedIcon }))] }));
147
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [resolvedIcon && (iconPosition === 'left' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$o.buttonIconLeft, "aria-hidden": "true", children: resolvedIcon })), children, resolvedIcon && (iconPosition === 'right' || iconPosition === 'both') && (jsxRuntime.jsx("span", { className: styles$o.buttonIconRight, "aria-hidden": "true", children: resolvedIcon }))] }));
132
148
  };
133
149
  const baseProps = {
134
150
  ref,
@@ -136,14 +152,18 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
136
152
  className: buttonClasses,
137
153
  'aria-label': getAriaLabel(),
138
154
  'aria-disabled': disabled,
139
- tabIndex: disabled ? -1 : 0,
155
+ 'aria-busy': loading || undefined,
156
+ tabIndex: disabled || loading ? -1 : 0,
140
157
  onClick: handleClick,
141
158
  ...restProps,
142
159
  };
143
160
  const getNavigationProps = () => {
144
161
  if (href) {
162
+ if (disabled || loading) {
163
+ return { role: 'link' };
164
+ }
145
165
  return {
146
- href: disabled ? '#' : href,
166
+ href,
147
167
  target: external || target === '_blank' ? '_blank' : target,
148
168
  rel: external || target === '_blank' ? 'noopener noreferrer' : rel,
149
169
  };
@@ -151,11 +171,11 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
151
171
  if (to) {
152
172
  if (Component !== 'a') {
153
173
  return {
154
- to: disabled ? '#' : to,
174
+ to: disabled ? undefined : to,
155
175
  };
156
176
  }
157
177
  return {
158
- href: disabled ? '#' : to,
178
+ href: disabled ? undefined : to,
159
179
  };
160
180
  }
161
181
  if (Component === 'button') {
@@ -166,7 +186,7 @@ const Button = React.forwardRef(({ as, children, variant = 'filled', iconPositio
166
186
  }
167
187
  return {};
168
188
  };
169
- if (iconOnly && !loading) {
189
+ if (iconOnly && tooltipText && !loading) {
170
190
  return (jsxRuntime.jsx(Tooltip, { text: tooltipText, side: tooltipSide, align: tooltipAlign, children: jsxRuntime.jsx(Component, { ...baseProps, ...getNavigationProps(), children: renderContent() }) }));
171
191
  }
172
192
  return (jsxRuntime.jsx(Component, { ...baseProps, ...getNavigationProps(), children: renderContent() }));
@@ -2429,8 +2449,18 @@ const ptBR = {
2429
2449
  },
2430
2450
  };
2431
2451
 
2432
- var styles$m = {"root":"Calendar-module__root___vQEhz","day":"Calendar-module__day___dseUA","day_button":"Calendar-module__day_button___r3WNU","caption_label":"Calendar-module__caption_label___Dhkie","button_next":"Calendar-module__button_next___iRaNz","button_previous":"Calendar-module__button_previous___r7JBs","chevron":"Calendar-module__chevron___NPDg-","nav":"Calendar-module__nav___MT3Dm","dropdowns":"Calendar-module__dropdowns___xBVtv","dropdown":"Calendar-module__dropdown___D7OlW","dropdown_root":"Calendar-module__dropdown_root___v4DlK","month_caption":"Calendar-module__month_caption___P3Hlu","month":"Calendar-module__month___0RA-L","months":"Calendar-module__months___rmJdy","month_grid":"Calendar-module__month_grid___f6YkX","weekday":"Calendar-module__weekday___Spb2f","week_number":"Calendar-module__week_number___EXJD9","today":"Calendar-module__today___U36wP","outside":"Calendar-module__outside___UeJFZ","selected":"Calendar-module__selected___5Nryr","disabled":"Calendar-module__disabled___T3658","hidden":"Calendar-module__hidden___uL3uc","range_start":"Calendar-module__range_start___c1eNH","range_middle":"Calendar-module__range_middle___Uv4gt","range_end":"Calendar-module__range_end___4qDh5","focusable":"Calendar-module__focusable___V7w-Q","weeks_before_enter":"Calendar-module__weeks_before_enter___O1ytQ","slide_in_left":"Calendar-module__slide_in_left___hfrfr","weeks_before_exit":"Calendar-module__weeks_before_exit___v7nDr","slide_out_left":"Calendar-module__slide_out_left___kib4j","weeks_after_enter":"Calendar-module__weeks_after_enter___CEtsD","slide_in_right":"Calendar-module__slide_in_right___ldL0M","weeks_after_exit":"Calendar-module__weeks_after_exit___F8Edz","slide_out_right":"Calendar-module__slide_out_right___X2hxE","caption_after_enter":"Calendar-module__caption_after_enter___0ek1H","fade_in":"Calendar-module__fade_in___YyYoZ","caption_after_exit":"Calendar-module__caption_after_exit___RA1iK","fade_out":"Calendar-module__fade_out___lNcmB","caption_before_enter":"Calendar-module__caption_before_enter___j6sMK","caption_before_exit":"Calendar-module__caption_before_exit___rntl-","calendar_grid_wrapper":"Calendar-module__calendar_grid_wrapper___OX0TR","caption_grid_btn":"Calendar-module__caption_grid_btn___qD0-E","caption_year_chevron":"Calendar-module__caption_year_chevron___4ghQV","caption_grid_label":"Calendar-module__caption_grid_label___93Wx4","caption_year_chevron_open":"Calendar-module__caption_year_chevron_open___CNDPO","gridOverlay":"Calendar-module__gridOverlay___Za-y0","gridOverlayCaption":"Calendar-module__gridOverlayCaption___p4OUO","gridOverlayYearsNav":"Calendar-module__gridOverlayYearsNav___U6S-V","gridCells":"Calendar-module__gridCells___Y8DaG","gridCellsYears":"Calendar-module__gridCellsYears___jEV52","gridCell":"Calendar-module__gridCell___RV1co","gridCellActive":"Calendar-module__gridCellActive___UBi5y","gridNavBtn":"Calendar-module__gridNavBtn___Jligz","chevronNavBtnPrev":"Calendar-module__chevronNavBtnPrev___ifEps","chevronNavBtnNext":"Calendar-module__chevronNavBtnNext___qmghm"};
2452
+ var styles$n = {"root":"Calendar-module__root___vQEhz","day":"Calendar-module__day___dseUA","day_button":"Calendar-module__day_button___r3WNU","caption_label":"Calendar-module__caption_label___Dhkie","button_next":"Calendar-module__button_next___iRaNz","button_previous":"Calendar-module__button_previous___r7JBs","chevron":"Calendar-module__chevron___NPDg-","nav":"Calendar-module__nav___MT3Dm","dropdowns":"Calendar-module__dropdowns___xBVtv","dropdown":"Calendar-module__dropdown___D7OlW","dropdown_root":"Calendar-module__dropdown_root___v4DlK","month_caption":"Calendar-module__month_caption___P3Hlu","month":"Calendar-module__month___0RA-L","months":"Calendar-module__months___rmJdy","month_grid":"Calendar-module__month_grid___f6YkX","weekday":"Calendar-module__weekday___Spb2f","week_number":"Calendar-module__week_number___EXJD9","today":"Calendar-module__today___U36wP","outside":"Calendar-module__outside___UeJFZ","selected":"Calendar-module__selected___5Nryr","disabled":"Calendar-module__disabled___T3658","hidden":"Calendar-module__hidden___uL3uc","range_start":"Calendar-module__range_start___c1eNH","range_middle":"Calendar-module__range_middle___Uv4gt","range_end":"Calendar-module__range_end___4qDh5","focusable":"Calendar-module__focusable___V7w-Q","weeks_before_enter":"Calendar-module__weeks_before_enter___O1ytQ","slide_in_left":"Calendar-module__slide_in_left___hfrfr","weeks_before_exit":"Calendar-module__weeks_before_exit___v7nDr","slide_out_left":"Calendar-module__slide_out_left___kib4j","weeks_after_enter":"Calendar-module__weeks_after_enter___CEtsD","slide_in_right":"Calendar-module__slide_in_right___ldL0M","weeks_after_exit":"Calendar-module__weeks_after_exit___F8Edz","slide_out_right":"Calendar-module__slide_out_right___X2hxE","caption_after_enter":"Calendar-module__caption_after_enter___0ek1H","fade_in":"Calendar-module__fade_in___YyYoZ","caption_after_exit":"Calendar-module__caption_after_exit___RA1iK","fade_out":"Calendar-module__fade_out___lNcmB","caption_before_enter":"Calendar-module__caption_before_enter___j6sMK","caption_before_exit":"Calendar-module__caption_before_exit___rntl-","calendar_grid_wrapper":"Calendar-module__calendar_grid_wrapper___OX0TR","caption_grid_btn":"Calendar-module__caption_grid_btn___qD0-E","caption_year_chevron":"Calendar-module__caption_year_chevron___4ghQV","caption_grid_label":"Calendar-module__caption_grid_label___93Wx4","gridOverlay":"Calendar-module__gridOverlay___Za-y0","gridOverlayCaption":"Calendar-module__gridOverlayCaption___p4OUO","gridOverlayYearsNav":"Calendar-module__gridOverlayYearsNav___U6S-V","gridCells":"Calendar-module__gridCells___Y8DaG","gridCellsYears":"Calendar-module__gridCellsYears___jEV52","gridCell":"Calendar-module__gridCell___RV1co","gridCellActive":"Calendar-module__gridCellActive___UBi5y","gridNavBtn":"Calendar-module__gridNavBtn___Jligz","chevronNavBtnPrev":"Calendar-module__chevronNavBtnPrev___ifEps","chevronNavBtnNext":"Calendar-module__chevronNavBtnNext___qmghm"};
2433
2453
 
2454
+ const FLUENT_CHEVRON_MAP = {
2455
+ down: reactIcons.ChevronDown16Regular,
2456
+ up: reactIcons.ChevronUp16Regular,
2457
+ left: reactIcons.ChevronLeft16Regular,
2458
+ right: reactIcons.ChevronRight16Regular,
2459
+ };
2460
+ const CustomChevron = ({ orientation = "left", className, }) => {
2461
+ const Icon = FLUENT_CHEVRON_MAP[orientation];
2462
+ return jsxRuntime.jsx(Icon, { className: className, "aria-hidden": true });
2463
+ };
2434
2464
  const GridCtx = React.createContext(null);
2435
2465
  const GridMonthCaption = ({ calendarMonth, displayIndex: _displayIndex, ...divProps }) => {
2436
2466
  const ctx = React.useContext(GridCtx);
@@ -2438,7 +2468,7 @@ const GridMonthCaption = ({ calendarMonth, displayIndex: _displayIndex, ...divPr
2438
2468
  const date = calendarMonth.date;
2439
2469
  const monthLabel = new Intl.DateTimeFormat(intlLocale, { month: "long" }).format(date);
2440
2470
  const yearLabel = String(date.getFullYear());
2441
- return (jsxRuntime.jsxs("div", { ...divProps, children: [jsxRuntime.jsx("span", { className: styles$m.caption_grid_label, children: monthLabel }), jsxRuntime.jsxs("button", { type: "button", className: styles$m.caption_grid_btn, "aria-pressed": view === "years", onClick: onYearLabelClick, children: [yearLabel, jsxRuntime.jsx("svg", { className: `${styles$m.caption_year_chevron}${view === "years" ? ` ${styles$m.caption_year_chevron_open}` : ""}`, width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: jsxRuntime.jsx("path", { d: "M2 4L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] })] }));
2471
+ return (jsxRuntime.jsxs("div", { ...divProps, children: [jsxRuntime.jsx("span", { className: styles$n.caption_grid_label, children: monthLabel }), jsxRuntime.jsxs("button", { type: "button", className: styles$n.caption_grid_btn, "aria-pressed": view === "years", onClick: onYearLabelClick, children: [yearLabel, view !== "days" ? (jsxRuntime.jsx(reactIcons.ChevronUp16Regular, { className: styles$n.caption_year_chevron, "aria-hidden": true })) : (jsxRuntime.jsx(reactIcons.ChevronDown16Regular, { className: styles$n.caption_year_chevron, "aria-hidden": true }))] })] }));
2442
2472
  };
2443
2473
  const YEARS_PER_PAGE = 20;
2444
2474
  const Calendar = ({ selected, currentDate, defaultMonth, startMonth, endMonth, onDaySelect, onDateChange, onClear: _onClear, minDate, maxDate, disabled, format: _format, locale = "pt-br", autoFocus, id, "aria-label": ariaLabel, }) => {
@@ -2506,7 +2536,7 @@ const Calendar = ({ selected, currentDate, defaultMonth, startMonth, endMonth, o
2506
2536
  onYearLabelClick: handleYearLabelClick,
2507
2537
  };
2508
2538
  const sharedDayPickerProps = {
2509
- classNames: styles$m,
2539
+ classNames: styles$n,
2510
2540
  animate,
2511
2541
  mode: "single",
2512
2542
  selected: resolvedSelected,
@@ -2518,20 +2548,20 @@ const Calendar = ({ selected, currentDate, defaultMonth, startMonth, endMonth, o
2518
2548
  autoFocus,
2519
2549
  "aria-label": ariaLabel,
2520
2550
  };
2521
- return (jsxRuntime.jsx(GridCtx.Provider, { value: gridCtxValue, children: jsxRuntime.jsxs("div", { className: styles$m.calendar_grid_wrapper, children: [jsxRuntime.jsx(reactDayPicker.DayPicker, { id: id, ...sharedDayPickerProps, captionLayout: "label", month: resolvedDisplayMonth, onMonthChange: handleMonthChange, components: { MonthCaption: GridMonthCaption } }), gridView !== "days" && (jsxRuntime.jsxs("div", { className: `${styles$m.gridOverlay}${gridView === "years" ? ` ${styles$m.gridOverlayYears}` : ""}`, role: "dialog", "aria-modal": "true", "aria-label": gridView === "months" ? "Selecione o mês" : "Selecione o ano", children: [gridView === "months" && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: styles$m.gridOverlayCaption, children: [jsxRuntime.jsx("span", { className: styles$m.caption_grid_label, children: new Intl.DateTimeFormat(intlLocale, { month: "long" }).format(resolvedDisplayMonth) }), jsxRuntime.jsxs("button", { type: "button", className: styles$m.caption_grid_btn, onClick: () => setGridView("days"), "aria-label": "Fechar sele\u00E7\u00E3o de m\u00EAs", children: [displayedYear, jsxRuntime.jsx("svg", { className: `${styles$m.caption_year_chevron} ${styles$m.caption_year_chevron_open}`, width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: jsxRuntime.jsx("path", { d: "M2 4L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] })] }), jsxRuntime.jsx("div", { className: styles$m.gridCells, children: monthsGrid.map(({ index, label, disabled: monthDisabled }) => (jsxRuntime.jsx("button", { type: "button", disabled: monthDisabled, className: `${styles$m.gridCell}${displayedMonthIndex === index ? ` ${styles$m.gridCellActive}` : ""}`, onClick: () => handleGridMonthSelect(index), children: label }, index))) })] })), gridView === "years" && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: styles$m.gridOverlayCaption, children: [jsxRuntime.jsx("span", { className: styles$m.caption_grid_label, children: new Intl.DateTimeFormat(intlLocale, { month: "long" }).format(resolvedDisplayMonth) }), jsxRuntime.jsxs("button", { type: "button", className: styles$m.caption_grid_btn, onClick: () => setGridView("days"), "aria-label": "Fechar sele\u00E7\u00E3o de ano", children: [displayedYear, jsxRuntime.jsx("svg", { className: `${styles$m.caption_year_chevron} ${styles$m.caption_year_chevron_open}`, width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: jsxRuntime.jsx("path", { d: "M2 4L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })] }), jsxRuntime.jsxs("div", { className: styles$m.gridOverlayYearsNav, children: [jsxRuntime.jsx("button", { type: "button", className: styles$m.gridNavBtn, disabled: !canGoPrevYears, onClick: () => setYearPageStart((s) => s - YEARS_PER_PAGE), "aria-label": "Anos anteriores", children: jsxRuntime.jsx("svg", { viewBox: "0 0 12 12", "aria-hidden": "true", className: styles$m.chevronNavBtnPrev, children: jsxRuntime.jsx("path", { d: "M2 4L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) }), jsxRuntime.jsx("button", { type: "button", className: styles$m.gridNavBtn, disabled: !canGoNextYears, onClick: () => setYearPageStart((s) => s + YEARS_PER_PAGE), "aria-label": "Pr\u00F3ximos anos", children: jsxRuntime.jsx("svg", { viewBox: "0 0 12 12", "aria-hidden": "true", className: styles$m.chevronNavBtnNext, children: jsxRuntime.jsx("path", { d: "M2 4L6 8L10 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) })] })] }), jsxRuntime.jsx("div", { className: `${styles$m.gridCells} ${styles$m.gridCellsYears}`, children: yearsInPage.map((year) => (jsxRuntime.jsx("button", { type: "button", className: `${styles$m.gridCell}${displayedYear === year ? ` ${styles$m.gridCellActive}` : ""}`, onClick: () => handleGridYearSelect(year), children: year }, year))) })] }))] }))] }) }));
2551
+ return (jsxRuntime.jsx(GridCtx.Provider, { value: gridCtxValue, children: jsxRuntime.jsxs("div", { className: styles$n.calendar_grid_wrapper, children: [jsxRuntime.jsx(reactDayPicker.DayPicker, { id: id, ...sharedDayPickerProps, captionLayout: "label", month: resolvedDisplayMonth, onMonthChange: handleMonthChange, components: { MonthCaption: GridMonthCaption, Chevron: CustomChevron } }), gridView !== "days" && (jsxRuntime.jsxs("div", { className: `${styles$n.gridOverlay}${gridView === "years" ? ` ${styles$n.gridOverlayYears}` : ""}`, role: "dialog", "aria-modal": "true", "aria-label": gridView === "months" ? "Selecione o mês" : "Selecione o ano", children: [gridView === "months" && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: styles$n.gridOverlayCaption, children: [jsxRuntime.jsx("span", { className: styles$n.caption_grid_label, children: new Intl.DateTimeFormat(intlLocale, { month: "long" }).format(resolvedDisplayMonth) }), jsxRuntime.jsxs("button", { type: "button", className: styles$n.caption_grid_btn, onClick: () => setGridView("days"), "aria-label": "Fechar sele\u00E7\u00E3o de m\u00EAs", children: [displayedYear, jsxRuntime.jsx(reactIcons.ChevronUp16Regular, { className: styles$n.caption_year_chevron, "aria-hidden": true })] })] }), jsxRuntime.jsx("div", { className: styles$n.gridCells, children: monthsGrid.map(({ index, label, disabled: monthDisabled }) => (jsxRuntime.jsx("button", { type: "button", disabled: monthDisabled, className: `${styles$n.gridCell}${displayedMonthIndex === index ? ` ${styles$n.gridCellActive}` : ""}`, onClick: () => handleGridMonthSelect(index), children: label }, index))) })] })), gridView === "years" && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", { className: styles$n.gridOverlayCaption, children: [jsxRuntime.jsx("span", { className: styles$n.caption_grid_label, children: new Intl.DateTimeFormat(intlLocale, { month: "long" }).format(resolvedDisplayMonth) }), jsxRuntime.jsxs("button", { type: "button", className: styles$n.caption_grid_btn, onClick: () => setGridView("days"), "aria-label": "Fechar sele\u00E7\u00E3o de ano", children: [displayedYear, jsxRuntime.jsx(reactIcons.ChevronUp16Regular, { className: styles$n.caption_year_chevron, "aria-hidden": true })] }), jsxRuntime.jsxs("div", { className: styles$n.gridOverlayYearsNav, children: [jsxRuntime.jsx("button", { type: "button", className: styles$n.gridNavBtn, disabled: !canGoPrevYears, onClick: () => setYearPageStart((s) => s - YEARS_PER_PAGE), "aria-label": "Anos anteriores", children: jsxRuntime.jsx(reactIcons.ChevronLeft16Regular, { className: styles$n.chevronNavBtnPrev, "aria-hidden": true }) }), jsxRuntime.jsx("button", { type: "button", className: styles$n.gridNavBtn, disabled: !canGoNextYears, onClick: () => setYearPageStart((s) => s + YEARS_PER_PAGE), "aria-label": "Pr\u00F3ximos anos", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, { className: styles$n.chevronNavBtnNext, "aria-hidden": true }) })] })] }), jsxRuntime.jsx("div", { className: `${styles$n.gridCells} ${styles$n.gridCellsYears}`, children: yearsInPage.map((year) => (jsxRuntime.jsx("button", { type: "button", className: `${styles$n.gridCell}${displayedYear === year ? ` ${styles$n.gridCellActive}` : ""}`, onClick: () => handleGridYearSelect(year), children: year }, year))) })] }))] }))] }) }));
2522
2552
  };
2523
2553
 
2524
- var styles$l = {"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"};
2554
+ var styles$m = {"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"};
2525
2555
 
2526
2556
  const Callout = ({ type = 'neutral', title, text, icon, className, id, ...rest }) => {
2527
2557
  const generatedId = React.useId();
2528
2558
  const titleId = id || `callout-title-${generatedId}`;
2529
2559
  const componentId = id || generatedId;
2530
- const calloutClass = clsx(styles$l['zds-callout__container'], styles$l[`zds-callout__${type}`], {
2531
- [styles$l['zds-callout__container__with-title']]: title,
2532
- [styles$l['zds-callout__no-icon']]: !icon,
2560
+ const calloutClass = clsx(styles$m['zds-callout__container'], styles$m[`zds-callout__${type}`], {
2561
+ [styles$m['zds-callout__container__with-title']]: title,
2562
+ [styles$m['zds-callout__no-icon']]: !icon,
2533
2563
  }, className);
2534
- return (jsxRuntime.jsx("div", { id: componentId, className: calloutClass, "aria-live": "polite", role: "alert", "aria-labelledby": title ? titleId : undefined, ...rest, children: jsxRuntime.jsxs("div", { className: styles$l['zds-callout__content'], children: [icon && jsxRuntime.jsx("span", { className: styles$l['zds-callout__icon'], children: icon }), jsxRuntime.jsxs("div", { className: styles$l['zds-callout__subcontent'], children: [title && (jsxRuntime.jsx("span", { id: titleId, className: styles$l['zds-callout__title'], children: title })), text && jsxRuntime.jsx("span", { className: styles$l['zds-callout__text'], children: text })] })] }) }));
2564
+ return (jsxRuntime.jsx("div", { id: componentId, className: calloutClass, "aria-live": "polite", role: "alert", "aria-labelledby": title ? titleId : undefined, ...rest, children: jsxRuntime.jsxs("div", { className: styles$m['zds-callout__content'], children: [icon && jsxRuntime.jsx("span", { className: styles$m['zds-callout__icon'], children: icon }), jsxRuntime.jsxs("div", { className: styles$m['zds-callout__subcontent'], children: [title && (jsxRuntime.jsx("span", { id: titleId, className: styles$m['zds-callout__title'], children: title })), text && jsxRuntime.jsx("span", { className: styles$m['zds-callout__text'], children: text })] })] }) }));
2535
2565
  };
2536
2566
 
2537
2567
  const CheckSmall = ({ className = '', width = 12, height = 10, fill = 'white', ...restProps }) => {
@@ -2542,45 +2572,47 @@ const CheckHalf = ({ className = '', width = 16, height = 16, fill = 'white', ..
2542
2572
  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 }) }) }));
2543
2573
  };
2544
2574
 
2545
- var styles$k = {"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"};
2575
+ var styles$l = {"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"};
2546
2576
 
2547
2577
  const Checkbox = ({ id, label, onCheckedChange, checked, disabled, className, indeterminate = false, ...rest }) => {
2548
2578
  const componentId = id || React__namespace.useId();
2549
- return (jsxRuntime.jsxs("div", { className: clsx(styles$k.container, className), children: [jsxRuntime.jsx("div", { className: clsx(styles$k.wrapperCheckbox, {
2550
- [styles$k.disabled]: disabled,
2551
- }), role: "presentation", tabIndex: disabled ? -1 : 0, children: jsxRuntime.jsx(radixUi.Checkbox.Root, { className: styles$k.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$k.indicator, children: indeterminate ? jsxRuntime.jsx(CheckHalf, {}) : jsxRuntime.jsx(CheckSmall, {}) }) }) }), jsxRuntime.jsx("label", { className: clsx(styles$k.label, { [styles$k.disabled]: disabled }), htmlFor: componentId, children: label })] }));
2579
+ return (jsxRuntime.jsxs("div", { className: clsx(styles$l.container, className), children: [jsxRuntime.jsx("div", { className: clsx(styles$l.wrapperCheckbox, {
2580
+ [styles$l.disabled]: disabled,
2581
+ }), role: "presentation", tabIndex: disabled ? -1 : 0, children: jsxRuntime.jsx(radixUi.Checkbox.Root, { className: styles$l.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$l.indicator, children: indeterminate ? jsxRuntime.jsx(CheckHalf, {}) : jsxRuntime.jsx(CheckSmall, {}) }) }) }), jsxRuntime.jsx("label", { className: clsx(styles$l.label, { [styles$l.disabled]: disabled }), htmlFor: componentId, children: label })] }));
2552
2582
  };
2553
2583
 
2554
- var styles$j = {"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"};
2584
+ var styles$k = {"chips":"Chips-module__chips___SOvBe","title":"Chips-module__title___ZhuQi","iconLeft":"Chips-module__iconLeft___tPhnw","iconRight":"Chips-module__iconRight___-HxL2","hasLeftIcon":"Chips-module__hasLeftIcon___D3quS","hasRightIcon":"Chips-module__hasRightIcon___ZMx2Y","brand":"Chips-module__brand___q1Gsm","success":"Chips-module__success___UhxQa","alert":"Chips-module__alert___nvPnr","disabled":"Chips-module__disabled___ElWLI"};
2555
2585
 
2556
- const Chips = ({ title, leftIcon, rightIcon, type = 'neutral', disabled = false, className, ...rest }) => {
2557
- if (!title || title.trim() === '') {
2558
- console.warn('Chips: title prop is required and cannot be empty');
2559
- return null;
2560
- }
2561
- const chipsClass = clsx(styles$j['zds-chips'], styles$j[`zds-chips--${type}`], {
2562
- [styles$j['zds-chips--disabled']]: disabled,
2563
- [styles$j['has-left-icon']]: leftIcon,
2564
- [styles$j['has-right-icon']]: rightIcon,
2586
+ const Chips = ({ children, leftIcon, rightIcon, variant = 'neutral', disabled = false, backgroundColor, textColor, className, style, ...restProps }) => {
2587
+ const chipsClass = clsx(styles$k.chips, styles$k[variant], {
2588
+ [styles$k.disabled]: disabled,
2589
+ [styles$k.hasLeftIcon]: leftIcon,
2590
+ [styles$k.hasRightIcon]: rightIcon,
2565
2591
  }, className);
2566
- return (jsxRuntime.jsxs("div", { className: chipsClass, "aria-label": `Chip: ${title}`, "aria-disabled": disabled, ...rest, children: [leftIcon && (jsxRuntime.jsx("span", { className: styles$j['zds-chips__icon__left'], "aria-hidden": "true", children: leftIcon })), jsxRuntime.jsx("span", { className: styles$j['zds-chips__title'], children: title }), rightIcon && (jsxRuntime.jsx("span", { className: styles$j['zds-chips__icon__right'], children: rightIcon }))] }));
2592
+ const colorStyle = {
2593
+ ...(!disabled && backgroundColor && { '--chips-bg': `var(--${backgroundColor})` }),
2594
+ ...(!disabled && textColor && { '--chips-text': `var(--${textColor})` }),
2595
+ ...style,
2596
+ };
2597
+ const isInteractive = typeof restProps.onClick === 'function';
2598
+ return (jsxRuntime.jsxs("div", { className: chipsClass, "aria-disabled": disabled, style: colorStyle, role: isInteractive ? 'button' : undefined, tabIndex: isInteractive ? (disabled ? -1 : 0) : undefined, ...restProps, children: [leftIcon && (jsxRuntime.jsx("span", { className: styles$k.iconLeft, "aria-hidden": "true", children: leftIcon })), jsxRuntime.jsx("span", { className: styles$k.title, children: children }), rightIcon && (jsxRuntime.jsx("span", { className: styles$k.iconRight, children: rightIcon }))] }));
2567
2599
  };
2568
2600
  const MemoizedChips = React.memo(Chips);
2569
2601
  MemoizedChips.displayName = 'Chips';
2570
2602
 
2571
- var styles$i = {"container":"Container-module__container___exPuE"};
2603
+ var styles$j = {"container":"Container-module__container___exPuE"};
2572
2604
 
2573
2605
  function Container({ children }) {
2574
- return (jsxRuntime.jsx("main", { className: `${styles$i['container']} mx-auto`, children: children }));
2606
+ return (jsxRuntime.jsx("main", { className: `${styles$j['container']} mx-auto`, children: children }));
2575
2607
  }
2576
2608
 
2577
- var styles$h = {"Content":"Popover-module__Content___RIETg"};
2609
+ var styles$i = {"Content":"Popover-module__Content___RIETg"};
2578
2610
 
2579
2611
  const Popover = ({ trigger, content, side = "left", align = "start", sideOffset = 8, open, onOpenChange, asAnchor = false, onOpenAutoFocus, onCloseAutoFocus, showArrow = false, }) => {
2580
- return (jsxRuntime.jsxs(radixUi.Popover.Root, { open: open, onOpenChange: onOpenChange, children: [asAnchor ? (jsxRuntime.jsx(radixUi.Popover.Anchor, { asChild: true, children: trigger })) : (jsxRuntime.jsx(radixUi.Popover.Trigger, { asChild: true, children: trigger })), jsxRuntime.jsx(radixUi.Popover.Portal, { children: jsxRuntime.jsxs(radixUi.Popover.Content, { className: styles$h.Content, sideOffset: sideOffset, side: side, align: align, onOpenAutoFocus: asAnchor ? (e) => e.preventDefault() : onOpenAutoFocus, onCloseAutoFocus: asAnchor ? (e) => e.preventDefault() : onCloseAutoFocus, onInteractOutside: asAnchor ? (e) => e.preventDefault() : undefined, children: [content, showArrow && jsxRuntime.jsx(radixUi.Popover.Arrow, {})] }) })] }));
2612
+ return (jsxRuntime.jsxs(radixUi.Popover.Root, { open: open, onOpenChange: onOpenChange, children: [asAnchor ? (jsxRuntime.jsx(radixUi.Popover.Anchor, { asChild: true, children: trigger })) : (jsxRuntime.jsx(radixUi.Popover.Trigger, { asChild: true, children: trigger })), jsxRuntime.jsx(radixUi.Popover.Portal, { children: jsxRuntime.jsxs(radixUi.Popover.Content, { className: styles$i.Content, sideOffset: sideOffset, side: side, align: align, onOpenAutoFocus: asAnchor ? (e) => e.preventDefault() : onOpenAutoFocus, onCloseAutoFocus: asAnchor ? (e) => e.preventDefault() : onCloseAutoFocus, onInteractOutside: asAnchor ? (e) => e.preventDefault() : undefined, children: [content, showArrow && jsxRuntime.jsx(radixUi.Popover.Arrow, {})] }) })] }));
2581
2613
  };
2582
2614
 
2583
- var styles$g = {"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","inputWithIcon":"TextField-module__inputWithIcon___shqkL","helperText":"TextField-module__helperText___d5QGC","error":"TextField-module__error___IGQzp","disabled":"TextField-module__disabled___roIKP"};
2615
+ var styles$h = {"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","inputWithIcon":"TextField-module__inputWithIcon___shqkL","helperText":"TextField-module__helperText___d5QGC","error":"TextField-module__error___IGQzp","disabled":"TextField-module__disabled___roIKP"};
2584
2616
 
2585
2617
  const validateInput = ({ value, maxLength, errorMessage, required }) => {
2586
2618
  if (required && value.trim() === '') {
@@ -2592,10 +2624,10 @@ const validateInput = ({ value, maxLength, errorMessage, required }) => {
2592
2624
  return '';
2593
2625
  };
2594
2626
 
2595
- var styles$f = {"labelContainer":"index-module__labelContainer___WGyDF","wrapperLabel":"index-module__wrapperLabel___XJzZO","requiredLabel":"index-module__requiredLabel___7oZkh","infoIcon":"index-module__infoIcon___lClx4","errorIcon":"index-module__errorIcon___yN-lq","disabledIcon":"index-module__disabledIcon___89Os7","errorLabel":"index-module__errorLabel___qa6h6","disabledLabel":"index-module__disabledLabel___U9vL8","disabledContainer":"index-module__disabledContainer___MtOvy"};
2627
+ var styles$g = {"labelContainer":"index-module__labelContainer___WGyDF","wrapperLabel":"index-module__wrapperLabel___XJzZO","requiredLabel":"index-module__requiredLabel___7oZkh","infoIcon":"index-module__infoIcon___lClx4","errorIcon":"index-module__errorIcon___yN-lq","disabledIcon":"index-module__disabledIcon___89Os7","errorLabel":"index-module__errorLabel___qa6h6","disabledLabel":"index-module__disabledLabel___U9vL8","disabledContainer":"index-module__disabledContainer___MtOvy"};
2596
2628
 
2597
- const LabelComponent = ({ children, htmlFor, required = false, tooltip = false, tooltipText, side = 'bottom', align = 'start', className, error = false, disabled = false }) => (jsxRuntime.jsxs("div", { className: clsx(styles$f.labelContainer, disabled && styles$f.disabledContainer), children: [jsxRuntime.jsxs(radixUi.Label.Root, { className: clsx(styles$f.wrapperLabel, error && !disabled && styles$f.errorLabel, disabled && styles$f.disabledLabel, className), htmlFor: htmlFor, children: [children, required && jsxRuntime.jsx("span", { className: styles$f.requiredLabel, children: "*" })] }), tooltip && (jsxRuntime.jsx(Tooltip, { side: side, align: align, text: tooltipText || '', children: jsxRuntime.jsx("span", { className: disabled ? styles$f.disabledIcon : error ?
2598
- styles$f.errorIcon : styles$f.infoIcon, children: jsxRuntime.jsx(reactIcons.Info12Regular, {}) }) }))] }));
2629
+ const LabelComponent = ({ children, htmlFor, required = false, tooltip = false, tooltipText, side = 'bottom', align = 'start', className, error = false, disabled = false }) => (jsxRuntime.jsxs("div", { className: clsx(styles$g.labelContainer, disabled && styles$g.disabledContainer), children: [jsxRuntime.jsxs(radixUi.Label.Root, { className: clsx(styles$g.wrapperLabel, error && !disabled && styles$g.errorLabel, disabled && styles$g.disabledLabel, className), htmlFor: htmlFor, children: [children, required && jsxRuntime.jsx("span", { className: styles$g.requiredLabel, children: "*" })] }), tooltip && (jsxRuntime.jsx(Tooltip, { side: side, align: align, text: tooltipText || '', children: jsxRuntime.jsx("span", { className: disabled ? styles$g.disabledIcon : error ?
2630
+ styles$g.errorIcon : styles$g.infoIcon, children: jsxRuntime.jsx(reactIcons.Info12Regular, {}) }) }))] }));
2599
2631
 
2600
2632
  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, error, id, icon, onBlur, onFocus, name, persistIcon = false, ...inputProps }, ref) => {
2601
2633
  const normalizeValue = (val) => {
@@ -2657,22 +2689,22 @@ const TextField$1 = React.forwardRef(({ className, value, label, placeholder, ty
2657
2689
  : helperText
2658
2690
  ? `${componentId}-helper`
2659
2691
  : undefined;
2660
- const containerClass = clsx(styles$g.container, {
2661
- [styles$g.disabled]: disabled,
2662
- [styles$g.error]: hasError && !disabled,
2692
+ const containerClass = clsx(styles$h.container, {
2693
+ [styles$h.disabled]: disabled,
2694
+ [styles$h.error]: hasError && !disabled,
2663
2695
  [className]: className,
2664
2696
  });
2665
- 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$g.inputWrapper, children: [jsxRuntime.jsxs("div", { className: styles$g.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, className: clsx({
2666
- [styles$g.inputWithIcon]: showCustomIcon || showClearIcon,
2667
- }) }), showCustomIcon && jsxRuntime.jsx("span", { className: styles$g.icon, children: icon }), showClearIcon && (jsxRuntime.jsx("button", { type: "button", className: styles$g.clearButton, onMouseDown: (e) => {
2697
+ 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$h.inputWrapper, children: [jsxRuntime.jsxs("div", { className: styles$h.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, className: clsx({
2698
+ [styles$h.inputWithIcon]: showCustomIcon || showClearIcon,
2699
+ }) }), showCustomIcon && jsxRuntime.jsx("span", { className: styles$h.icon, children: icon }), showClearIcon && (jsxRuntime.jsx("button", { type: "button", className: styles$h.clearButton, onMouseDown: (e) => {
2668
2700
  e.preventDefault();
2669
2701
  handleClear();
2670
- }, "aria-label": "Limpar campo", tabIndex: -1, children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}) }))] }), jsxRuntime.jsx("span", { id: helperId, className: styles$g.helperText, "aria-live": hasError ? 'polite' : undefined, children: displayHelperText })] })] }));
2702
+ }, "aria-label": "Limpar campo", tabIndex: -1, children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}) }))] }), jsxRuntime.jsx("span", { id: helperId, className: styles$h.helperText, "aria-live": hasError ? 'polite' : undefined, children: displayHelperText })] })] }));
2671
2703
  });
2672
2704
  TextField$1.displayName = 'TextField';
2673
2705
  var TextField = React.memo(TextField$1);
2674
2706
 
2675
- var styles$e = {"datePicker":"DatePicker-module__datePicker___raJYg","textfieldContainer":"DatePicker-module__textfieldContainer___yy8pT","datePickerIcon":"DatePicker-module__datePickerIcon___XCZsn","datePickerIconDisabled":"DatePicker-module__datePickerIconDisabled___BB-Gx"};
2707
+ var styles$f = {"datePicker":"DatePicker-module__datePicker___raJYg","textfieldContainer":"DatePicker-module__textfieldContainer___yy8pT","datePickerIcon":"DatePicker-module__datePickerIcon___XCZsn","datePickerIconDisabled":"DatePicker-module__datePickerIconDisabled___BB-Gx"};
2676
2708
 
2677
2709
  function formatDate(date, locale = 'pt-br') {
2678
2710
  if (!date || !(date instanceof Date)) {
@@ -2893,20 +2925,20 @@ const DatePicker = ({ locale = 'pt-br', calendarSide = 'bottom', calendarAlign =
2893
2925
  }
2894
2926
  }
2895
2927
  };
2896
- return (jsxRuntime.jsx("div", { ref: wrapperRef, className: styles$e.datePicker, children: jsxRuntime.jsx(Popover, { open: showCalendar, onOpenChange: setShowCalendar, asAnchor: true, trigger: jsxRuntime.jsx(TextField, { className: styles$e.textfieldContainer, type: "tel", icon: jsxRuntime.jsx(reactIcons.Calendar16Regular, { onClick: !disabled ? handleIconClick : undefined, className: clsx(styles$e.datePickerIcon, disabled && styles$e.datePickerIconDisabled) }), onChange: (e) => {
2928
+ return (jsxRuntime.jsx("div", { ref: wrapperRef, className: styles$f.datePicker, children: jsxRuntime.jsx(Popover, { open: showCalendar, onOpenChange: setShowCalendar, asAnchor: true, trigger: jsxRuntime.jsx(TextField, { className: styles$f.textfieldContainer, type: "tel", icon: jsxRuntime.jsx(reactIcons.Calendar16Regular, { onClick: !disabled ? handleIconClick : undefined, className: clsx(styles$f.datePickerIcon, disabled && styles$f.datePickerIconDisabled) }), onChange: (e) => {
2897
2929
  handleTextFieldChange(String(e));
2898
- }, onKeyDown: handleKeyDown, onFocus: handleFocus, persistIcon: true, autoComplete: "off", value: displayValue, helperText: hasValidationError && externalError ? combinedHelperText : (helperText || undefined), error: hasValidationError, maxLength: 10, required: required, label: label, disabled: disabled, id: fieldId, "data-testid": testId, placeholder: locale === 'en-us' ? 'MM/DD/YYYY' : 'DD/MM/YYYY', "aria-label": "Open calendar", "aria-expanded": showCalendar, "aria-controls": calendarId, "aria-invalid": hasValidationError, "aria-describedby": externalError ? undefined : (helperText ? `${fieldId}-help` : undefined) }), content: jsxRuntime.jsx(Calendar, { selected: currentSelectedDate, currentDate: currentDate, onDateChange: setCurrentDate, onDaySelect: handleDaySelect, locale: locale, format: locale === 'en-us' ? 'mm/dd/yyyy' : 'dd/mm/yyyy', minDate: minDate, maxDate: maxDate, id: calendarId, onClear: () => {
2930
+ }, onKeyDown: handleKeyDown, onFocus: handleFocus, persistIcon: true, autoComplete: "off", value: displayValue, helperText: !externalError ? (helperText || undefined) : undefined, errorMessage: externalError ? combinedHelperText : undefined, error: hasValidationError ? true : undefined, maxLength: 10, required: required, label: label, disabled: disabled, id: fieldId, "data-testid": testId, placeholder: locale === 'en-us' ? 'MM/DD/YYYY' : 'DD/MM/YYYY', "aria-label": "Open calendar", "aria-expanded": showCalendar, "aria-controls": calendarId, "aria-invalid": hasValidationError, "aria-describedby": externalError ? undefined : (helperText ? `${fieldId}-help` : undefined) }), content: jsxRuntime.jsx(Calendar, { selected: currentSelectedDate, currentDate: currentDate, onDateChange: setCurrentDate, onDaySelect: handleDaySelect, locale: locale, format: locale === 'en-us' ? 'mm/dd/yyyy' : 'dd/mm/yyyy', minDate: minDate, maxDate: maxDate, id: calendarId, onClear: () => {
2899
2931
  handleDateChange(null);
2900
2932
  setCurrentDate(new Date());
2901
2933
  } }), side: calendarSide, align: calendarAlign, sideOffset: 8 }) }));
2902
2934
  };
2903
2935
  var DatePicker_default = React.memo(DatePicker);
2904
2936
 
2905
- var styles$d = {"DialogOverlay":"Dialog-module__DialogOverlay___LEX2O","DialogContent":"Dialog-module__DialogContent___ziVXb","DialogTitle":"Dialog-module__DialogTitle___ay1tD","DialogDescription":"Dialog-module__DialogDescription___odslw","DivButtons":"Dialog-module__DivButtons___BiwX-"};
2937
+ var styles$e = {"DialogOverlay":"Dialog-module__DialogOverlay___LEX2O","DialogContent":"Dialog-module__DialogContent___ziVXb","DialogTitle":"Dialog-module__DialogTitle___ay1tD","DialogDescription":"Dialog-module__DialogDescription___odslw","DivButtons":"Dialog-module__DivButtons___BiwX-"};
2906
2938
 
2907
- const Dialog = ({ show = false, title, bodyContent, textPrimaryAction, textSecondaryAction, onPrimaryAction, onSecondaryAction, ...restProps }) => (jsxRuntime.jsx(radixUi.AlertDialog.Root, { open: show, ...restProps, children: jsxRuntime.jsxs(radixUi.AlertDialog.Portal, { children: [jsxRuntime.jsx(radixUi.AlertDialog.Overlay, { className: styles$d.DialogOverlay }), jsxRuntime.jsxs(radixUi.AlertDialog.Content, { className: styles$d.DialogContent, children: [jsxRuntime.jsx(radixUi.AlertDialog.Title, { className: styles$d.DialogTitle, children: title }), jsxRuntime.jsx(radixUi.AlertDialog.Description, { className: styles$d.DialogDescription, children: bodyContent }), jsxRuntime.jsxs("div", { className: styles$d.DivButtons, children: [!!(textSecondaryAction && textSecondaryAction.trim()) && (jsxRuntime.jsx(radixUi.AlertDialog.Cancel, { asChild: true, children: jsxRuntime.jsx(Button, { variant: "outlined", ...(onSecondaryAction && { onClick: onSecondaryAction }), children: textSecondaryAction }) })), jsxRuntime.jsx(radixUi.AlertDialog.Action, { asChild: true, children: jsxRuntime.jsx(Button, { variant: "filled", ...(onPrimaryAction && { onClick: onPrimaryAction }), children: textPrimaryAction }) })] })] })] }) }));
2939
+ const Dialog = ({ show = false, title, bodyContent, textPrimaryAction, textSecondaryAction, onPrimaryAction, onSecondaryAction, ...restProps }) => (jsxRuntime.jsx(radixUi.AlertDialog.Root, { open: show, ...restProps, children: jsxRuntime.jsxs(radixUi.AlertDialog.Portal, { children: [jsxRuntime.jsx(radixUi.AlertDialog.Overlay, { className: styles$e.DialogOverlay }), jsxRuntime.jsxs(radixUi.AlertDialog.Content, { className: styles$e.DialogContent, children: [jsxRuntime.jsx(radixUi.AlertDialog.Title, { className: styles$e.DialogTitle, children: title }), jsxRuntime.jsx(radixUi.AlertDialog.Description, { className: styles$e.DialogDescription, children: bodyContent }), jsxRuntime.jsxs("div", { className: styles$e.DivButtons, children: [!!(textSecondaryAction && textSecondaryAction.trim()) && (jsxRuntime.jsx(radixUi.AlertDialog.Cancel, { asChild: true, children: jsxRuntime.jsx(Button, { variant: "outlined", ...(onSecondaryAction && { onClick: onSecondaryAction }), children: textSecondaryAction }) })), jsxRuntime.jsx(radixUi.AlertDialog.Action, { asChild: true, children: jsxRuntime.jsx(Button, { variant: "filled", ...(onPrimaryAction && { onClick: onPrimaryAction }), children: textPrimaryAction }) })] })] })] }) }));
2908
2940
 
2909
- var styles$c = {"drawerShadow":"Drawer-module__drawerShadow___0Z6iL","drawerShadow--visible":"Drawer-module__drawerShadow--visible___FspoH","drawerSidebar":"Drawer-module__drawerSidebar___cdyyb","drawerSidebar--open":"Drawer-module__drawerSidebar--open___ee2-Y","drawerSidebar--disabled":"Drawer-module__drawerSidebar--disabled___MYrBI","drawerTitleClose":"Drawer-module__drawerTitleClose___QzqN-","drawerTitle":"Drawer-module__drawerTitle___naMX0","drawerChildren":"Drawer-module__drawerChildren___xGdg9","drawerHeaderContent":"Drawer-module__drawerHeaderContent___NLSwj"};
2941
+ var styles$d = {"drawerShadow":"Drawer-module__drawerShadow___0Z6iL","drawerShadow--visible":"Drawer-module__drawerShadow--visible___FspoH","drawerSidebar":"Drawer-module__drawerSidebar___cdyyb","drawerSidebar--open":"Drawer-module__drawerSidebar--open___ee2-Y","drawerSidebar--disabled":"Drawer-module__drawerSidebar--disabled___MYrBI","drawerTitleClose":"Drawer-module__drawerTitleClose___QzqN-","drawerTitle":"Drawer-module__drawerTitle___naMX0","drawerChildren":"Drawer-module__drawerChildren___xGdg9","drawerHeaderContent":"Drawer-module__drawerHeaderContent___NLSwj"};
2910
2942
 
2911
2943
  const Drawer = ({ children, headerContent, customWidth = '400px', onClose, title = 'Título', isOpen = false, onOpen, className, id, disabled = false, onOverlayClick, closeOnOverlayClick = true, closeOnEscape = true, }) => {
2912
2944
  const internalClose = React.useCallback(() => {
@@ -2955,17 +2987,17 @@ const Drawer = ({ children, headerContent, customWidth = '400px', onClose, title
2955
2987
  event.stopPropagation();
2956
2988
  internalClose();
2957
2989
  };
2958
- return reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: clsx(styles$c['drawerShadow'], {
2959
- [styles$c['drawerShadow--visible']]: isOpen,
2960
- }), onClick: handleOverlayClick, role: "presentation", "aria-hidden": "true", "data-testid": "drawer-overlay" }), jsxRuntime.jsxs("div", { className: clsx(styles$c['drawerSidebar'], {
2961
- [styles$c['drawerSidebar--open']]: isOpen,
2962
- [styles$c['drawerSidebar--disabled']]: disabled,
2990
+ return reactDom.createPortal(jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: clsx(styles$d['drawerShadow'], {
2991
+ [styles$d['drawerShadow--visible']]: isOpen,
2992
+ }), onClick: handleOverlayClick, role: "presentation", "aria-hidden": "true", "data-testid": "drawer-overlay" }), jsxRuntime.jsxs("div", { className: clsx(styles$d['drawerSidebar'], {
2993
+ [styles$d['drawerSidebar--open']]: isOpen,
2994
+ [styles$d['drawerSidebar--disabled']]: disabled,
2963
2995
  }, className), style: {
2964
2996
  '--drawer-custom-width': customWidth,
2965
- }, onClick: handleDrawerClick, role: "dialog", "aria-modal": "true", "aria-labelledby": id ? `${id}-title` : 'drawer-title', "aria-hidden": !isOpen, "data-testid": "drawer-panel", id: id, children: [jsxRuntime.jsxs("div", { className: styles$c.drawerTitleClose, children: [jsxRuntime.jsx("div", { className: styles$c.drawerTitle, id: id ? `${id}-title` : 'drawer-title', children: title }), headerContent && (jsxRuntime.jsx("div", { className: styles$c.drawerHeaderContent, children: headerContent })), jsxRuntime.jsx(Button, { onClick: handleCloseClick, variant: 'outlined', iconOnly: true, icon: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}), size: 'lg' })] }), jsxRuntime.jsx("div", { className: styles$c.drawerChildren, "data-testid": "drawer-content", children: children })] })] }), document.body);
2997
+ }, onClick: handleDrawerClick, role: "dialog", "aria-modal": "true", "aria-labelledby": id ? `${id}-title` : 'drawer-title', "aria-hidden": !isOpen, "data-testid": "drawer-panel", id: id, children: [jsxRuntime.jsxs("div", { className: styles$d.drawerTitleClose, children: [jsxRuntime.jsx("div", { className: styles$d.drawerTitle, id: id ? `${id}-title` : 'drawer-title', children: title }), headerContent && (jsxRuntime.jsx("div", { className: styles$d.drawerHeaderContent, children: headerContent })), jsxRuntime.jsx(Button, { onClick: handleCloseClick, variant: 'outlined', iconOnly: true, icon: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}), size: 'lg', tooltipText: 'Fechar' })] }), jsxRuntime.jsx("div", { className: styles$d.drawerChildren, "data-testid": "drawer-content", children: children })] })] }), document.body);
2966
2998
  };
2967
2999
 
2968
- var styles$b = {"search":"Search-module__search___u3QsV","searchLeftIcon":"Search-module__searchLeftIcon___OKOBq","disabled":"Search-module__disabled___adbxO","searchClearIcon":"Search-module__searchClearIcon___qX9-h"};
3000
+ var styles$c = {"search":"Search-module__search___u3QsV","searchLeftIcon":"Search-module__searchLeftIcon___OKOBq","disabled":"Search-module__disabled___adbxO","inputWithClearIcon":"Search-module__inputWithClearIcon___cqvkq","searchClearIcon":"Search-module__searchClearIcon___qX9-h"};
2969
3001
 
2970
3002
  const Search = React.forwardRef(({ placeholder = 'Dica do que deve ser buscado', disabled = false, value, onChange, onKeyDown, onFocus, onBlur, onClear, onClick, onMouseDown, id, className, 'data-testid': testId, ...rest }, ref) => {
2971
3003
  const [internalValue, setInternalValue] = React.useState('');
@@ -3013,16 +3045,16 @@ const Search = React.forwardRef(({ placeholder = 'Dica do que deve ser buscado',
3013
3045
  return;
3014
3046
  onKeyDown?.(e);
3015
3047
  };
3016
- return (jsxRuntime.jsxs("div", { className: clsx(styles$b.search, { [styles$b.disabled]: disabled }, className), onClick: onClick, onMouseDown: onMouseDown, role: onClick || onMouseDown ? "button" : undefined, tabIndex: onClick || onMouseDown ? 0 : undefined, onKeyDown: onClick || onMouseDown ? (e) => {
3048
+ return (jsxRuntime.jsxs("div", { className: clsx(styles$c.search, { [styles$c.disabled]: disabled }, className), onClick: onClick, onMouseDown: onMouseDown, role: onClick || onMouseDown ? "button" : undefined, tabIndex: onClick || onMouseDown ? 0 : undefined, onKeyDown: onClick || onMouseDown ? (e) => {
3017
3049
  if (e.key === 'Enter' || e.key === ' ') {
3018
3050
  e.preventDefault();
3019
3051
  onClick?.(e);
3020
3052
  }
3021
- } : undefined, children: [jsxRuntime.jsx("span", { className: clsx(styles$b.searchLeftIcon, { [styles$b.disabled]: disabled }), tabIndex: -1, role: "presentation", "aria-hidden": "true", children: jsxRuntime.jsx(reactIcons.Search16Regular, {}) }), jsxRuntime.jsx("input", { ref: ref, id: inputId, type: "text", placeholder: placeholder, "aria-label": placeholder, value: currentValue || '', onChange: handleChange, onKeyDown: handleKeyDown, disabled: disabled, onFocus: handleFocus, onBlur: handleBlur, "data-testid": testId, ...rest }), currentValue && currentValue.length > 0 && (jsxRuntime.jsx("span", { className: styles$b.searchClearIcon, "aria-hidden": "true", onClick: clearInputSearch, children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}) }))] }));
3053
+ } : undefined, children: [jsxRuntime.jsx("span", { className: clsx(styles$c.searchLeftIcon, { [styles$c.disabled]: disabled }), tabIndex: -1, role: "presentation", "aria-hidden": "true", children: jsxRuntime.jsx(reactIcons.Search16Regular, {}) }), jsxRuntime.jsx("input", { ref: ref, id: inputId, type: "text", placeholder: placeholder, "aria-label": placeholder, value: currentValue || '', onChange: handleChange, onKeyDown: handleKeyDown, disabled: disabled, onFocus: handleFocus, onBlur: handleBlur, "data-testid": testId, ...rest, className: clsx({ [styles$c.inputWithClearIcon]: currentValue && currentValue.length > 0 }) }), currentValue && currentValue.length > 0 && (jsxRuntime.jsx("span", { className: styles$c.searchClearIcon, "aria-hidden": "true", onClick: clearInputSearch, children: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}) }))] }));
3022
3054
  });
3023
3055
  Search.displayName = 'Search';
3024
3056
 
3025
- var styles$a = {"container":"Filter-module__container___cqntK","panel":"Filter-module__panel___19HqD","search":"Filter-module__search___f0gzj","list":"Filter-module__list___UpBk1","item":"Filter-module__item___oNdeY","itemSelected":"Filter-module__itemSelected___JIpJV","itemText":"Filter-module__itemText___RS--0","itemDisabled":"Filter-module__itemDisabled___X-ktg","itemIcon":"Filter-module__itemIcon___RjJSa","noResults":"Filter-module__noResults___3m6pn","footer":"Filter-module__footer___yYS5j","buttonContent":"Filter-module__buttonContent___28fKe","buttonArrow":"Filter-module__buttonArrow___VJlpc","buttonIcon":"Filter-module__buttonIcon___OOBpZ"};
3057
+ var styles$b = {"container":"Filter-module__container___cqntK","panel":"Filter-module__panel___19HqD","search":"Filter-module__search___f0gzj","list":"Filter-module__list___UpBk1","item":"Filter-module__item___oNdeY","itemSelected":"Filter-module__itemSelected___JIpJV","itemText":"Filter-module__itemText___RS--0","itemDisabled":"Filter-module__itemDisabled___X-ktg","itemIcon":"Filter-module__itemIcon___RjJSa","noResults":"Filter-module__noResults___3m6pn","footer":"Filter-module__footer___yYS5j","buttonContent":"Filter-module__buttonContent___28fKe","buttonArrow":"Filter-module__buttonArrow___VJlpc","buttonIcon":"Filter-module__buttonIcon___OOBpZ"};
3026
3058
 
3027
3059
  const Filter = ({ items, type = 'checkbox', selectedIds, onApplyFilter, placeholder = 'Selecionar...', enableSearch = false, buttonText = 'Filter', icon, variant = 'outlined', onOpen, onClose, side = 'bottom', align = 'start', disabled = false, className, selectedDate, onDateSelect, onClearDate, minDate, maxDate, locale = 'pt-br', id, ...rest }) => {
3028
3060
  const [isOpen, setIsOpen] = React.useState(false);
@@ -3115,34 +3147,34 @@ const Filter = ({ items, type = 'checkbox', selectedIds, onApplyFilter, placehol
3115
3147
  return null;
3116
3148
  return selectedIds.length - 1;
3117
3149
  }, [selectedIds]);
3118
- const filterClass = clsx(styles$a.container, className);
3119
- const triggerButton = (jsxRuntime.jsx(Button, { variant: variant, disabled: disabled, icon: type === 'calendar' ? jsxRuntime.jsx(reactIcons.Calendar16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDownRegular, {}), iconPosition: "right", size: "lg", children: jsxRuntime.jsxs("div", { className: styles$a.buttonContent, children: [icon && jsxRuntime.jsx("span", { className: styles$a.buttonIcon, children: icon }), jsxRuntime.jsx("span", { className: styles$a.buttonText, children: buttonDisplayText }), jsxRuntime.jsx("span", { className: clsx(styles$a.buttonArrow, { [styles$a.buttonArrowOpen]: isOpen }), children: getBadgeValue() && (jsxRuntime.jsx(Badge, { badgeValue: `+${getBadgeValue()}`, type: "status" })) })] }) }));
3120
- const popoverContent = type === 'calendar' ? (jsxRuntime.jsx(Calendar, { currentDate: currentCalendarDate, selected: selectedDate, onDaySelect: handleDateSelection, onDateChange: handleCalendarNavigation, minDate: minDate, maxDate: maxDate, locale: locale, onClear: handleClear, id: `filter-calendar-${id || ''}`, "aria-label": "Selecionar data para filtro" })) : (jsxRuntime.jsxs("div", { className: styles$a.panel, children: [searchVisible && (jsxRuntime.jsx("div", { className: styles$a.search, children: jsxRuntime.jsx(Search, { value: searchQuery, placeholder: placeholder, onChange: handleSearchChange, onKeyDown: handleSearchKeyDown, onClear: () => setSearchQuery('') }) })), jsxRuntime.jsx("ul", { className: styles$a.list, role: "listbox", "aria-multiselectable": type === 'checkbox', children: filteredItems.length > 0 ? (filteredItems.map((item, index) => {
3150
+ const filterClass = clsx(styles$b.container, className);
3151
+ const triggerButton = (jsxRuntime.jsx(Button, { variant: variant, disabled: disabled, icon: type === 'calendar' ? jsxRuntime.jsx(reactIcons.Calendar16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDownRegular, {}), iconPosition: "right", size: "lg", children: jsxRuntime.jsxs("div", { className: styles$b.buttonContent, children: [icon && jsxRuntime.jsx("span", { className: styles$b.buttonIcon, children: icon }), jsxRuntime.jsx("span", { className: styles$b.buttonText, children: buttonDisplayText }), jsxRuntime.jsx("span", { className: clsx(styles$b.buttonArrow, { [styles$b.buttonArrowOpen]: isOpen }), children: getBadgeValue() && (jsxRuntime.jsx(Badge, { badgeValue: `+${getBadgeValue()}`, type: "status" })) })] }) }));
3152
+ const popoverContent = type === 'calendar' ? (jsxRuntime.jsx(Calendar, { currentDate: currentCalendarDate, selected: selectedDate, onDaySelect: handleDateSelection, onDateChange: handleCalendarNavigation, minDate: minDate, maxDate: maxDate, locale: locale, onClear: handleClear, id: `filter-calendar-${id || ''}`, "aria-label": "Selecionar data para filtro" })) : (jsxRuntime.jsxs("div", { className: styles$b.panel, children: [searchVisible && (jsxRuntime.jsx("div", { className: styles$b.search, children: jsxRuntime.jsx(Search, { value: searchQuery, placeholder: placeholder, onChange: handleSearchChange, onKeyDown: handleSearchKeyDown, onClear: () => setSearchQuery('') }) })), jsxRuntime.jsx("ul", { className: styles$b.list, role: "listbox", "aria-multiselectable": type === 'checkbox', children: filteredItems.length > 0 ? (filteredItems.map((item, index) => {
3121
3153
  const itemId = item.id || `filter-item-${index}`;
3122
3154
  const isSelected = !!tempSelectedItems[itemId];
3123
- return (jsxRuntime.jsxs("li", { role: "option", "aria-selected": isSelected, "aria-disabled": item.disabled, className: clsx(styles$a.item, {
3124
- [styles$a.itemSelected]: isSelected,
3125
- [styles$a.itemDisabled]: item.disabled,
3155
+ return (jsxRuntime.jsxs("li", { role: "option", "aria-selected": isSelected, "aria-disabled": item.disabled, className: clsx(styles$b.item, {
3156
+ [styles$b.itemSelected]: isSelected,
3157
+ [styles$b.itemDisabled]: item.disabled,
3126
3158
  }), onMouseDown: (e) => e.preventDefault(), onClick: () => toggleItem(itemId, item), onKeyDown: (e) => {
3127
3159
  if (e.key === 'Enter' || e.key === ' ') {
3128
3160
  e.preventDefault();
3129
3161
  toggleItem(itemId, item);
3130
3162
  }
3131
- }, children: [type === 'checkbox' && (jsxRuntime.jsx(Checkbox, { checked: isSelected, disabled: item.disabled, label: "" })), type === 'icon' && item.icon && (jsxRuntime.jsx("span", { className: styles$a.itemIcon, children: item.icon })), jsxRuntime.jsx("span", { className: styles$a.itemText, children: item.text })] }, itemId));
3132
- })) : (jsxRuntime.jsx("li", { className: styles$a.noResults, role: "status", "aria-live": "polite", children: "Nenhum item encontrado" })) }), jsxRuntime.jsxs("div", { className: styles$a.footer, children: [jsxRuntime.jsx(Button, { fullWidth: true, variant: "outlined", onClick: handleClearFilter, children: "Limpar" }), jsxRuntime.jsx(Button, { fullWidth: true, onClick: handleApplyFilter, children: "Aplicar" })] })] }));
3163
+ }, children: [type === 'checkbox' && (jsxRuntime.jsx(Checkbox, { checked: isSelected, disabled: item.disabled, label: "" })), type === 'icon' && item.icon && (jsxRuntime.jsx("span", { className: styles$b.itemIcon, children: item.icon })), jsxRuntime.jsx("span", { className: styles$b.itemText, children: item.text })] }, itemId));
3164
+ })) : (jsxRuntime.jsx("li", { className: styles$b.noResults, role: "status", "aria-live": "polite", children: "Nenhum item encontrado" })) }), jsxRuntime.jsxs("div", { className: styles$b.footer, children: [jsxRuntime.jsx(Button, { fullWidth: true, variant: "outlined", onClick: handleClearFilter, children: "Limpar" }), jsxRuntime.jsx(Button, { fullWidth: true, onClick: handleApplyFilter, children: "Aplicar" })] })] }));
3133
3165
  return (jsxRuntime.jsx("div", { className: filterClass, id: id, ...rest, children: jsxRuntime.jsx(Popover, { open: isOpen, onOpenChange: handleOpenChange, side: side, align: align, onOpenAutoFocus: (e) => e.preventDefault(), trigger: triggerButton, content: popoverContent }) }));
3134
3166
  };
3135
3167
 
3136
- var styles$9 = {"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"};
3168
+ 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"};
3137
3169
 
3138
- var styles$8 = {"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"};
3170
+ var styles$9 = {"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"};
3139
3171
 
3140
3172
  const Radio = ({ items, onValueChange, defaultValue, name, id, ariaLabel, orientation = 'vertical', ...rest }) => {
3141
3173
  const componentId = id || React.useId();
3142
- return (jsxRuntime.jsx(radixUi.RadioGroup.Root, { id: componentId, className: styles$8.root, defaultValue: defaultValue, onValueChange: onValueChange, name: name, "aria-label": ariaLabel, "data-orientation": orientation, orientation: orientation, ...rest, children: items.map(({ id, value, disabled, label }) => {
3174
+ return (jsxRuntime.jsx(radixUi.RadioGroup.Root, { id: componentId, className: styles$9.root, defaultValue: defaultValue, onValueChange: onValueChange, name: name, "aria-label": ariaLabel, "data-orientation": orientation, orientation: orientation, ...rest, children: items.map(({ id, value, disabled, label }) => {
3143
3175
  const itemKey = id ?? value;
3144
3176
  const uniqueId = `${componentId}-item-${value}`;
3145
- return (jsxRuntime.jsx("div", { className: clsx(styles$8.wrapper, { [styles$8.disabled]: disabled }), children: jsxRuntime.jsxs("label", { className: styles$8.labelWrapper, htmlFor: uniqueId, children: [jsxRuntime.jsx("div", { className: styles$8.itemWrapper, children: jsxRuntime.jsx(radixUi.RadioGroup.Item, { disabled: disabled, className: styles$8.item, value: value, id: uniqueId, "data-disabled": disabled, children: jsxRuntime.jsx(radixUi.RadioGroup.Indicator, { className: styles$8.indicator }) }) }), jsxRuntime.jsx("span", { className: styles$8.labelText, children: label })] }) }, itemKey));
3177
+ return (jsxRuntime.jsx("div", { className: clsx(styles$9.wrapper, { [styles$9.disabled]: disabled }), children: jsxRuntime.jsxs("label", { className: styles$9.labelWrapper, htmlFor: uniqueId, children: [jsxRuntime.jsx("div", { className: styles$9.itemWrapper, children: jsxRuntime.jsx(radixUi.RadioGroup.Item, { disabled: disabled, className: styles$9.item, value: value, id: uniqueId, "data-disabled": disabled, children: jsxRuntime.jsx(radixUi.RadioGroup.Indicator, { className: styles$9.indicator }) }) }), jsxRuntime.jsx("span", { className: styles$9.labelText, children: label })] }) }, itemKey));
3146
3178
  }) }));
3147
3179
  };
3148
3180
 
@@ -3204,24 +3236,24 @@ const ListItem = ({ id, className, variant = 'text', text, name, subText, disabl
3204
3236
  const currentVariant = validVariants.includes(variant) ? variant : 'text';
3205
3237
  switch (currentVariant) {
3206
3238
  case 'checkbox':
3207
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Checkbox, { checked: internalChecked, disabled: disabled, onCheckedChange: () => handleCheckboxClick({}) }), jsxRuntime.jsxs("div", { className: styles$9['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$9['zds-list-item__text'], onClick: handleCheckboxClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$9['zds-list-item__subtext'], onClick: handleCheckboxClick, children: subText }))] })] }));
3239
+ 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 }))] })] }));
3208
3240
  case 'radio':
3209
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$9['zds-list-item__wrapper-radio'], children: jsxRuntime.jsx("span", { className: styles$9['zds-list-item__radio'], "aria-hidden": "true", children: jsxRuntime.jsx(Radio, { name: name, onValueChange: () => handleRadioClick({}), items: [{
3241
+ 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: [{
3210
3242
  value: value || '',
3211
3243
  label: '',
3212
3244
  disabled: disabled
3213
- }], "aria-labelledby": `${itemId}-text` }) }) }), jsxRuntime.jsxs("div", { className: styles$9['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$9['zds-list-item__title'], onClick: handleRadioClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$9['zds-list-item__subtext'], children: subText }))] })] }));
3245
+ }], "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 }))] })] }));
3214
3246
  case 'icon':
3215
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", { className: styles$9['zds-list-item__wrapper-icon'], children: icon }), jsxRuntime.jsxs("div", { className: styles$9['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$9['zds-list-item__title'], onClick: handleTextOrIconClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$9['zds-list-item__subtext'], children: subText }))] })] }));
3247
+ 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 }))] })] }));
3216
3248
  case 'text':
3217
3249
  default:
3218
- return (jsxRuntime.jsxs("div", { className: styles$9['zds-list-item__wrapper-text'], children: [jsxRuntime.jsx("span", { id: `${itemId}-text`, className: styles$9['zds-list-item__title'], onClick: handleTextOrIconClick, children: text }), showSubText && subText && (jsxRuntime.jsx("span", { id: `${itemId}-subtext`, className: styles$9['zds-list-item__subtext'], children: subText }))] }));
3250
+ return (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 }))] }));
3219
3251
  }
3220
3252
  }, [variant, itemId, internalChecked, disabled, handleCheckboxClick, handleRadioClick, handleTextOrIconClick, value, text, showSubText, subText, icon, name]);
3221
- const listItemClass = clsx(styles$9['zds-list-item__container'], {
3222
- [styles$9[`zds-list-item--${variant}`]]: variant,
3223
- [styles$9['zds-list-item--disabled']]: disabled,
3224
- [styles$9['zds-list-item--hovered']]: hovered,
3253
+ const listItemClass = clsx(styles$a['zds-list-item__container'], {
3254
+ [styles$a[`zds-list-item--${variant}`]]: variant,
3255
+ [styles$a['zds-list-item--disabled']]: disabled,
3256
+ [styles$a['zds-list-item--hovered']]: hovered,
3225
3257
  [className || '']: className
3226
3258
  });
3227
3259
  const getAriaChecked = React.useCallback(() => {
@@ -3233,13 +3265,13 @@ const ListItem = ({ id, className, variant = 'text', text, name, subText, disabl
3233
3265
  return (jsxRuntime.jsx("li", { className: listItemClass, tabIndex: disabled ? -1 : 0, onKeyDown: handleKeyDown, "aria-selected": variant === 'text' || variant === 'icon' ? internalSelected : undefined, "aria-disabled": disabled, "aria-checked": getAriaChecked(), "aria-labelledby": `${itemId}-text`, "aria-describedby": showSubText && subText ? `${itemId}-subtext` : undefined, "data-testid": "list-item", ...rest, children: renderVariantContent() }));
3234
3266
  };
3235
3267
 
3236
- var styles$7 = {"content":"Menu-module__content___pnDF6","subContent":"Menu-module__subContent___O9T-y","itemsWrapper":"Menu-module__itemsWrapper___Fcg71","item":"Menu-module__item___S3HKY","subTrigger":"Menu-module__subTrigger___CdnJE","itemSubText":"Menu-module__itemSubText___U1HFP","itemIcon":"Menu-module__itemIcon___iyxmZ","wrapperText":"Menu-module__wrapperText___PomUe","itemText":"Menu-module__itemText___2fd2B","chevronIcon":"Menu-module__chevronIcon___Gda-U","searchWrapper":"Menu-module__searchWrapper___e0knQ","emptyState":"Menu-module__emptyState___3wh-S","loadingMore":"Menu-module__loadingMore___fUCvH"};
3268
+ var styles$8 = {"content":"Menu-module__content___pnDF6","subContent":"Menu-module__subContent___O9T-y","itemsWrapper":"Menu-module__itemsWrapper___Fcg71","item":"Menu-module__item___S3HKY","subTrigger":"Menu-module__subTrigger___CdnJE","itemSubText":"Menu-module__itemSubText___U1HFP","itemIcon":"Menu-module__itemIcon___iyxmZ","wrapperText":"Menu-module__wrapperText___PomUe","itemText":"Menu-module__itemText___2fd2B","chevronIcon":"Menu-module__chevronIcon___Gda-U","searchWrapper":"Menu-module__searchWrapper___e0knQ","emptyState":"Menu-module__emptyState___3wh-S","loadingMore":"Menu-module__loadingMore___fUCvH"};
3237
3269
 
3238
3270
  const MenuItem = React.memo(({ item, isSelected, onSelect }) => {
3239
3271
  const handleSelect = () => {
3240
3272
  onSelect(item);
3241
3273
  };
3242
- return (jsxRuntime.jsxs(radixUi.DropdownMenu.Item, { className: clsx(styles$7.item), "data-selected": isSelected || undefined, onSelect: handleSelect, disabled: item.disabled, children: [item.icon && jsxRuntime.jsx("span", { className: styles$7.itemIcon, children: item.icon }), jsxRuntime.jsxs("div", { className: styles$7.wrapperText, children: [jsxRuntime.jsx("span", { className: styles$7.itemText, children: item.text }), item.subText && (jsxRuntime.jsx("span", { className: styles$7.itemSubText, children: item.subText }))] })] }));
3274
+ return (jsxRuntime.jsxs(radixUi.DropdownMenu.Item, { className: clsx(styles$8.item), "data-selected": isSelected || undefined, onSelect: handleSelect, disabled: item.disabled, children: [item.icon && jsxRuntime.jsx("span", { className: styles$8.itemIcon, children: item.icon }), jsxRuntime.jsxs("div", { className: styles$8.wrapperText, children: [jsxRuntime.jsx("span", { className: styles$8.itemText, children: item.text }), item.subText && (jsxRuntime.jsx("span", { className: styles$8.itemSubText, children: item.subText }))] })] }));
3243
3275
  });
3244
3276
  MenuItem.displayName = 'MenuItem';
3245
3277
 
@@ -3461,72 +3493,84 @@ const Menu = ({ items, children, onItemSelect, search, enableInfiniteScroll, onS
3461
3493
  const renderMenuItem = React.useCallback((item, key) => {
3462
3494
  const hasChildren = item.children && item.children.length > 0;
3463
3495
  if (hasChildren) {
3464
- return (jsxRuntime.jsxs(radixUi.DropdownMenu.Sub, { children: [jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger, { className: styles$7.subTrigger, disabled: item.disabled, children: [item.icon && (jsxRuntime.jsx("span", { className: styles$7.itemIcon, children: item.icon })), jsxRuntime.jsxs("div", { className: styles$7.wrapperText, children: [jsxRuntime.jsx("span", { className: styles$7.itemText, children: item.text }), item.subText && (jsxRuntime.jsx("span", { className: styles$7.itemSubText, children: item.subText }))] }), jsxRuntime.jsx(reactIcons.ChevronRight16Filled, { className: styles$7.chevronIcon })] }), jsxRuntime.jsx(radixUi.DropdownMenu.Portal, { children: jsxRuntime.jsx(radixUi.DropdownMenu.SubContent, { className: styles$7.subContent, sideOffset: 16, collisionPadding: 20, children: item.children.map((childItem, childIndex) => renderMenuItem(childItem, `${key}-${childIndex}`)) }) })] }, key));
3496
+ return (jsxRuntime.jsxs(radixUi.DropdownMenu.Sub, { children: [jsxRuntime.jsxs(radixUi.DropdownMenu.SubTrigger, { className: styles$8.subTrigger, disabled: item.disabled, children: [item.icon && (jsxRuntime.jsx("span", { className: styles$8.itemIcon, children: item.icon })), jsxRuntime.jsxs("div", { className: styles$8.wrapperText, children: [jsxRuntime.jsx("span", { className: styles$8.itemText, children: item.text }), item.subText && (jsxRuntime.jsx("span", { className: styles$8.itemSubText, children: item.subText }))] }), jsxRuntime.jsx(reactIcons.ChevronRight16Filled, { className: styles$8.chevronIcon })] }), jsxRuntime.jsx(radixUi.DropdownMenu.Portal, { children: jsxRuntime.jsx(radixUi.DropdownMenu.SubContent, { className: styles$8.subContent, sideOffset: 16, collisionPadding: 20, children: item.children.map((childItem, childIndex) => renderMenuItem(childItem, `${key}-${childIndex}`)) }) })] }, key));
3465
3497
  }
3466
3498
  return (jsxRuntime.jsx(MenuItem, { item: item, isSelected: isItemSelected(item), onSelect: handleItemSelect }, key));
3467
3499
  }, [handleItemSelect, isItemSelected]);
3500
+ const closedByPointerRef = React.useRef(false);
3468
3501
  const handleOpenChange = (newOpen) => {
3469
3502
  setOpen(newOpen);
3470
3503
  if (!newOpen) {
3471
3504
  hasReachedEndRef.current = false;
3472
3505
  }
3473
3506
  };
3474
- return (jsxRuntime.jsxs(radixUi.DropdownMenu.Root, { open: open, onOpenChange: handleOpenChange, children: [jsxRuntime.jsx(radixUi.DropdownMenu.Trigger, { asChild: true, children: children }), jsxRuntime.jsx(radixUi.DropdownMenu.Portal, { children: jsxRuntime.jsxs(radixUi.DropdownMenu.Content, { className: clsx(styles$7.content, className), sideOffset: 8, align: align, onKeyDown: (e) => {
3507
+ return (jsxRuntime.jsxs(radixUi.DropdownMenu.Root, { open: open, onOpenChange: handleOpenChange, children: [jsxRuntime.jsx(radixUi.DropdownMenu.Trigger, { asChild: true, children: children }), jsxRuntime.jsx(radixUi.DropdownMenu.Portal, { children: jsxRuntime.jsxs(radixUi.DropdownMenu.Content, { className: clsx(styles$8.content, className), sideOffset: 8, align: align, onInteractOutside: () => { closedByPointerRef.current = true; }, onCloseAutoFocus: (e) => {
3508
+ if (closedByPointerRef.current) {
3509
+ e.preventDefault();
3510
+ closedByPointerRef.current = false;
3511
+ }
3512
+ }, onKeyDown: (e) => {
3475
3513
  if (search) {
3476
3514
  e.stopPropagation();
3477
3515
  }
3478
- }, ...rest, children: [search && (jsxRuntime.jsx("div", { className: styles$7.searchWrapper, children: jsxRuntime.jsx(Search, { placeholder: "Buscar", onChange: handleSearchChange, value: searchInput, onKeyDown: handleSearchKeyDown }) })), jsxRuntime.jsxs("div", { className: styles$7.itemsWrapper, ref: itemsWrapperRef, style: { maxHeight: maxHeightStyle }, children: [filteredItems.length > 0 ? (filteredItems.map((item, index) => renderMenuItem(item, item.value || item.text || `item-${index}`))) : (jsxRuntime.jsx("div", { className: styles$7.emptyState, children: "Nenhum item encontrado" })), enableInfiniteScroll && isLoadingMore && (jsxRuntime.jsx("div", { className: styles$7.loadingMore, children: "Carregando mais itens..." })), enableInfiniteScroll && (jsxRuntime.jsx("div", { ref: sentinelRef, "data-scroll-sentinel": true, style: { height: '1px', visibility: 'hidden' } }))] })] }) })] }));
3516
+ }, ...rest, children: [search && (jsxRuntime.jsx("div", { className: styles$8.searchWrapper, children: jsxRuntime.jsx(Search, { placeholder: "Buscar", onChange: handleSearchChange, value: searchInput, onKeyDown: handleSearchKeyDown }) })), jsxRuntime.jsxs("div", { className: styles$8.itemsWrapper, ref: itemsWrapperRef, style: { maxHeight: maxHeightStyle }, children: [filteredItems.length > 0 ? (filteredItems.map((item, index) => renderMenuItem(item, item.value || item.text || `item-${index}`))) : (jsxRuntime.jsx("div", { className: styles$8.emptyState, children: "Nenhum item encontrado" })), enableInfiniteScroll && isLoadingMore && (jsxRuntime.jsx("div", { className: styles$8.loadingMore, children: "Carregando mais itens..." })), enableInfiniteScroll && (jsxRuntime.jsx("div", { ref: sentinelRef, "data-scroll-sentinel": true, style: { height: '1px', visibility: 'hidden' } }))] })] }) })] }));
3517
+ };
3518
+
3519
+ var styles$7 = {"modalOverlay":"Modal-module__modalOverlay___rI8Wz","modalContent":"Modal-module__modalContent___6Cgb1","modalContent--fullscreen":"Modal-module__modalContent--fullscreen___QeBlG","modalHeader":"Modal-module__modalHeader___IuHIg","modalTitle":"Modal-module__modalTitle___9VDmr","modalBody":"Modal-module__modalBody___ohjQm"};
3520
+
3521
+ const Modal = ({ isOpen = false, onClose, title, children, headerContent, closeOnOverlayClick = true, className, id, footer, customWidth, fullscreen = false, }) => {
3522
+ const handleOpenChange = (open) => {
3523
+ if (!open) {
3524
+ onClose();
3525
+ }
3526
+ };
3527
+ return (jsxRuntime.jsx(radixUi.Dialog.Root, { open: isOpen, onOpenChange: handleOpenChange, children: jsxRuntime.jsxs(radixUi.Dialog.Portal, { children: [jsxRuntime.jsx(radixUi.Dialog.Overlay, { className: styles$7.modalOverlay }), jsxRuntime.jsxs(radixUi.Dialog.Content, { className: clsx(styles$7.modalContent, fullscreen && styles$7['modalContent--fullscreen'], className), id: id, style: {
3528
+ '--modal-custom-width': customWidth,
3529
+ }, onInteractOutside: !closeOnOverlayClick ? (e) => e.preventDefault() : undefined, "aria-labelledby": id ? `${id}-title` : 'modal-title', children: [jsxRuntime.jsxs("div", { className: styles$7.modalHeader, children: [title && (jsxRuntime.jsx(radixUi.Dialog.Title, { className: styles$7.modalTitle, id: id ? `${id}-title` : 'modal-title', children: title })), headerContent && (jsxRuntime.jsx("div", { children: headerContent })), jsxRuntime.jsx(radixUi.Dialog.Close, { asChild: true, children: jsxRuntime.jsx(Button, { variant: "outlined", iconOnly: true, icon: jsxRuntime.jsx(reactIcons.Dismiss16Regular, {}), size: "lg", tooltipText: 'Fechar' }) })] }), jsxRuntime.jsx("div", { className: styles$7.modalBody, children: children }), footer && (jsxRuntime.jsx("div", { className: styles$7.modalFooter, children: footer }))] })] }) }));
3479
3530
  };
3480
3531
 
3481
- var styles$6 = {"zds-quantity":"Quantity-module__zds-quantity___AymLj","zds-quantity__input":"Quantity-module__zds-quantity__input___Wlhmo"};
3532
+ var styles$6 = {"quantity":"Quantity-module__quantity___-vndR","quantityInput":"Quantity-module__quantityInput___xZG-v","disabled":"Quantity-module__disabled___X6p5l"};
3482
3533
 
3483
- const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled = false, decimal = false, decimalPlaces = 2, size = 'lg', id, step, className, ...rest }) => {
3484
- const isControlled = controlledValue !== undefined;
3485
- const [value, setValue] = React.useState(isControlled ? controlledValue : defaultValue);
3486
- const [inputValue, setInputValue] = React.useState(decimal
3487
- ? (isControlled ? controlledValue : defaultValue).toFixed(decimalPlaces)
3488
- : String(isControlled ? controlledValue : defaultValue));
3534
+ const Quantity = ({ value = 0, onChange, disabled = false, decimal = false, decimalPlaces = 2, size = 'lg', id, valueIncrement = 1, className, inputSize, minValue = 0, maxValue = 9999, decrementAriaLabel = 'Decrease quantity', incrementAriaLabel = 'Increase quantity', inputAriaLabel = 'Quantity', ...rest }) => {
3535
+ const initialValue = Math.min(Math.max(value, minValue), maxValue);
3536
+ const [internalValue, setInternalValue] = React.useState(initialValue);
3537
+ const [inputValue, setInputValue] = React.useState(decimal ? initialValue.toFixed(decimalPlaces) : String(initialValue));
3489
3538
  const inputRef = React.useRef(null);
3490
- const stepValue = step !== undefined ? step : decimal ? Math.pow(10, -decimalPlaces) : 1;
3491
- const computedValue = React.useMemo(() => (isControlled ? controlledValue : value), [isControlled, controlledValue, value]);
3492
- const isMinValue = React.useMemo(() => computedValue === 0, [computedValue]);
3493
- const validateProps = (decimalPlaces, step) => {
3539
+ const stepValue = valueIncrement !== undefined ? valueIncrement : decimal ? Math.pow(10, -decimalPlaces) : 1;
3540
+ const isMinValue = React.useMemo(() => internalValue <= minValue, [internalValue, minValue]);
3541
+ const isMaxValue = React.useMemo(() => internalValue >= maxValue, [internalValue, maxValue]);
3542
+ const validateProps = (decimalPlaces, valueIncrement) => {
3494
3543
  if (decimalPlaces !== undefined && (decimalPlaces < 1 || decimalPlaces > 10)) {
3495
3544
  console.warn('decimalPlaces deve estar entre 1 e 10');
3496
3545
  }
3497
- if (step !== undefined && step <= 0) {
3498
- console.warn('step deve ser maior que 0');
3546
+ if (valueIncrement !== undefined && valueIncrement <= 0) {
3547
+ console.warn('valueIncrement deve ser maior que 0');
3499
3548
  }
3500
3549
  };
3501
3550
  React.useEffect(() => {
3502
- validateProps(decimalPlaces, step);
3551
+ validateProps(decimalPlaces, valueIncrement);
3503
3552
  }, []);
3504
3553
  React.useEffect(() => {
3505
- if (isControlled && controlledValue !== undefined) {
3506
- setValue(controlledValue);
3507
- setInputValue(decimal ? controlledValue.toFixed(decimalPlaces) : String(controlledValue));
3508
- }
3509
- }, [controlledValue, decimal, decimalPlaces, isControlled]);
3554
+ const clamped = Math.min(Math.max(value, minValue), maxValue);
3555
+ setInternalValue(clamped);
3556
+ setInputValue(decimal ? clamped.toFixed(decimalPlaces) : String(clamped));
3557
+ }, [value, minValue, maxValue, decimal, decimalPlaces]);
3510
3558
  const increment = React.useCallback(() => {
3511
3559
  if (disabled)
3512
3560
  return;
3513
- const newValue = computedValue + stepValue;
3514
- if (!isControlled) {
3515
- setValue(newValue);
3516
- setInputValue(decimal ? newValue.toFixed(decimalPlaces) : String(newValue));
3517
- }
3561
+ const newValue = Math.min(maxValue, internalValue + stepValue);
3562
+ setInternalValue(newValue);
3563
+ setInputValue(decimal ? newValue.toFixed(decimalPlaces) : String(newValue));
3518
3564
  onChange?.(newValue);
3519
- }, [disabled, computedValue, stepValue, decimal, decimalPlaces, isControlled, onChange]);
3565
+ }, [disabled, internalValue, stepValue, decimal, decimalPlaces, onChange, maxValue]);
3520
3566
  const decrement = React.useCallback(() => {
3521
3567
  if (disabled)
3522
3568
  return;
3523
- const newValue = Math.max(0, computedValue - stepValue);
3524
- if (!isControlled) {
3525
- setValue(newValue);
3526
- setInputValue(decimal ? newValue.toFixed(decimalPlaces) : String(newValue));
3527
- }
3569
+ const newValue = Math.max(minValue, internalValue - stepValue);
3570
+ setInternalValue(newValue);
3571
+ setInputValue(decimal ? newValue.toFixed(decimalPlaces) : String(newValue));
3528
3572
  onChange?.(newValue);
3529
- }, [disabled, computedValue, stepValue, decimal, decimalPlaces, isControlled, onChange]);
3573
+ }, [disabled, internalValue, stepValue, decimal, decimalPlaces, onChange, minValue]);
3530
3574
  const filterInput = React.useCallback((inputValue) => {
3531
3575
  if (decimal) {
3532
3576
  let filtered = inputValue.replace(/[^\d.]/g, '');
@@ -3554,9 +3598,6 @@ const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled
3554
3598
  const filteredValue = filterInput(rawValue);
3555
3599
  setInputValue(filteredValue);
3556
3600
  if (filteredValue === '' || filteredValue === '.') {
3557
- if (!isControlled) {
3558
- setValue(0);
3559
- }
3560
3601
  onChange?.(0);
3561
3602
  return;
3562
3603
  }
@@ -3566,31 +3607,24 @@ const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled
3566
3607
  }
3567
3608
  const parsedValue = parseFloat(filteredValue);
3568
3609
  if (!isNaN(parsedValue)) {
3569
- if (!isControlled) {
3570
- setValue(parsedValue);
3571
- }
3572
3610
  onChange?.(parsedValue);
3573
3611
  }
3574
3612
  }
3575
3613
  else {
3576
3614
  const parsedValue = parseInt(filteredValue, 10);
3577
3615
  if (!isNaN(parsedValue)) {
3578
- const validValue = Math.min(parsedValue, 9999);
3579
- if (!isControlled) {
3580
- setValue(validValue);
3581
- }
3616
+ const validValue = Math.min(Math.max(parsedValue, minValue), maxValue);
3582
3617
  onChange?.(validValue);
3583
3618
  }
3584
3619
  }
3585
- }, [disabled, decimal, isControlled, onChange]);
3620
+ }, [disabled, decimal, filterInput, onChange, minValue, maxValue]);
3586
3621
  const handleBlur = React.useCallback(() => {
3587
3622
  if (disabled)
3588
3623
  return;
3589
3624
  const currentValue = inputValue.trim();
3590
3625
  if (decimal) {
3591
3626
  if (currentValue === '' || currentValue === '.') {
3592
- const resetValue = computedValue;
3593
- setInputValue(resetValue.toFixed(decimalPlaces));
3627
+ setInputValue(internalValue.toFixed(decimalPlaces));
3594
3628
  return;
3595
3629
  }
3596
3630
  if (currentValue.endsWith('.')) {
@@ -3598,46 +3632,40 @@ const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled
3598
3632
  if (!isNaN(baseValue)) {
3599
3633
  const formattedValue = baseValue.toFixed(decimalPlaces);
3600
3634
  setInputValue(formattedValue);
3601
- if (!isControlled) {
3602
- setValue(baseValue);
3603
- }
3635
+ setInternalValue(baseValue);
3604
3636
  onChange?.(baseValue);
3605
3637
  }
3606
3638
  return;
3607
3639
  }
3608
3640
  const parsedValue = parseFloat(currentValue);
3609
3641
  if (!isNaN(parsedValue)) {
3610
- const normalizedValue = Math.max(0, parsedValue);
3642
+ const normalizedValue = Math.min(Math.max(parsedValue, minValue), maxValue);
3611
3643
  const formattedValue = normalizedValue.toFixed(decimalPlaces);
3612
3644
  setInputValue(formattedValue);
3613
- if (!isControlled) {
3614
- setValue(normalizedValue);
3615
- }
3645
+ setInternalValue(normalizedValue);
3616
3646
  onChange?.(normalizedValue);
3617
3647
  }
3618
3648
  else {
3619
- setInputValue(computedValue.toFixed(decimalPlaces));
3649
+ setInputValue(internalValue.toFixed(decimalPlaces));
3620
3650
  }
3621
3651
  }
3622
3652
  else {
3623
3653
  if (currentValue === '') {
3624
- setInputValue(String(computedValue));
3654
+ setInputValue(String(internalValue));
3625
3655
  return;
3626
3656
  }
3627
3657
  const parsedValue = parseInt(currentValue, 10);
3628
3658
  if (isNaN(parsedValue)) {
3629
- setInputValue(String(computedValue));
3659
+ setInputValue(String(internalValue));
3630
3660
  }
3631
3661
  else {
3632
- const normalizedValue = Math.max(0, Math.min(parsedValue, 9999));
3662
+ const normalizedValue = Math.min(Math.max(parsedValue, minValue), maxValue);
3633
3663
  setInputValue(String(normalizedValue));
3634
- if (!isControlled) {
3635
- setValue(normalizedValue);
3636
- }
3664
+ setInternalValue(normalizedValue);
3637
3665
  onChange?.(normalizedValue);
3638
3666
  }
3639
3667
  }
3640
- }, [disabled, decimal, inputValue, decimalPlaces, computedValue, isControlled, onChange]);
3668
+ }, [disabled, decimal, inputValue, decimalPlaces, internalValue, onChange, minValue, maxValue]);
3641
3669
  const handleInputKeyDown = React.useCallback((e) => {
3642
3670
  if (disabled)
3643
3671
  return;
@@ -3659,40 +3687,35 @@ const Quantity = ({ defaultValue = 0, value: controlledValue, onChange, disabled
3659
3687
  case 'Escape':
3660
3688
  e.preventDefault();
3661
3689
  if (inputRef.current) {
3662
- setInputValue(decimal ? computedValue.toFixed(decimalPlaces) : String(computedValue));
3690
+ setInputValue(decimal ? internalValue.toFixed(decimalPlaces) : String(internalValue));
3663
3691
  inputRef.current.blur();
3664
3692
  }
3665
3693
  break;
3666
3694
  case 'Home':
3667
3695
  e.preventDefault();
3668
- const minValue = 0;
3669
- if (!isControlled) {
3670
- setValue(minValue);
3671
- setInputValue(decimal ? minValue.toFixed(decimalPlaces) : String(minValue));
3672
- }
3696
+ setInternalValue(minValue);
3697
+ setInputValue(decimal ? minValue.toFixed(decimalPlaces) : String(minValue));
3673
3698
  onChange?.(minValue);
3674
3699
  break;
3675
3700
  case 'End':
3676
3701
  if (!decimal) {
3677
3702
  e.preventDefault();
3678
- const maxValue = 9999;
3679
- if (!isControlled) {
3680
- setValue(maxValue);
3681
- setInputValue(String(maxValue));
3682
- }
3703
+ setInternalValue(maxValue);
3704
+ setInputValue(String(maxValue));
3683
3705
  onChange?.(maxValue);
3684
3706
  }
3685
3707
  break;
3686
3708
  }
3687
- }, [disabled, increment, decrement, decimal, decimalPlaces, isControlled, onChange, computedValue]);
3709
+ }, [disabled, increment, decrement, decimal, decimalPlaces, onChange, internalValue, minValue, maxValue]);
3710
+ const inputSizeValue = inputSize !== undefined ? inputSize : Math.max(1, inputValue.length);
3688
3711
  const uniqueId = React.useId();
3689
3712
  const inputId = id || uniqueId;
3690
- return (jsxRuntime.jsxs("div", { className: clsx(styles$6['zds-quantity'], { disabled }, className), ...rest, children: [jsxRuntime.jsx(Button, { variant: 'outlined', size: size, type: 'button', iconOnly: true, icon: jsxRuntime.jsx(reactIcons.Subtract16Regular, {}), onClick: decrement, disabled: disabled || isMinValue, "aria-label": 'Diminuir quantidade' }), jsxRuntime.jsx("input", { ref: inputRef, className: clsx(styles$6['zds-quantity__input'], { disabled }), type: 'text', value: inputValue, onChange: handleInputChange, onBlur: handleBlur, onKeyDown: handleInputKeyDown, id: inputId, min: '0', step: stepValue, "aria-label": 'Quantidade', role: 'spinbutton', "aria-valuenow": computedValue, "aria-valuemin": 0, "aria-valuemax": decimal ? undefined : 9999, disabled: disabled, inputMode: decimal ? 'decimal' : 'numeric' }), jsxRuntime.jsx(Button, { variant: 'outlined', size: size, type: 'button', iconOnly: true, onClick: increment, disabled: disabled, "aria-label": 'Aumentar quantidade', icon: jsxRuntime.jsx(reactIcons.Add16Regular, {}) })] }));
3713
+ return (jsxRuntime.jsxs("div", { className: clsx(styles$6.quantity, { [styles$6.disabled]: disabled }, className), ...rest, children: [jsxRuntime.jsx(Button, { variant: 'outlined', size: size, type: 'button', iconOnly: true, icon: jsxRuntime.jsx(reactIcons.Subtract16Regular, {}), onClick: decrement, disabled: disabled || isMinValue, "aria-label": decrementAriaLabel, tooltipText: 'Diminuir' }), jsxRuntime.jsx("input", { ref: inputRef, className: clsx(styles$6.quantityInput, { [styles$6.disabled]: disabled }), type: 'text', value: inputValue, onChange: handleInputChange, onBlur: handleBlur, onKeyDown: handleInputKeyDown, id: inputId, step: stepValue, "aria-label": inputAriaLabel, role: 'spinbutton', "aria-valuenow": internalValue, "aria-valuemin": minValue, "aria-valuemax": maxValue, disabled: disabled, inputMode: decimal ? 'decimal' : 'numeric', size: inputSizeValue }), jsxRuntime.jsx(Button, { variant: 'outlined', size: size, type: 'button', iconOnly: true, onClick: increment, disabled: disabled || isMaxValue, "aria-label": incrementAriaLabel, icon: jsxRuntime.jsx(reactIcons.Add16Regular, {}), tooltipText: 'Aumentar' })] }));
3691
3714
  };
3692
3715
  const memorizedQuantity = React.memo(Quantity);
3693
3716
  memorizedQuantity.displayName = 'Quantity';
3694
3717
 
3695
- var styles$5 = {"fieldContainer":"index-module__fieldContainer___gp5Hz","trigger":"index-module__trigger___rHQJz","disabled":"index-module__disabled___MIJba","open":"index-module__open___bVB-1","error":"index-module__error___nPFjW","hasValue":"index-module__hasValue___a4Sy4","triggerText":"index-module__triggerText___tyjAQ","containerLabel":"index-module__containerLabel___CExNh","content":"index-module__content___9nWeY","viewport":"index-module__viewport___nkVG9","group":"index-module__group___-PiX6","container":"index-module__container___Wg-pd","searchWrapper":"index-module__searchWrapper___umf9d","item":"index-module__item___R-Xle","subTitle":"index-module__subTitle___sXaqd","checkboxItem":"index-module__checkboxItem___FTUbN","checkboxContent":"index-module__checkboxContent___skcd5","itemWrapper":"index-module__itemWrapper___PAglx","title":"index-module__title___x1Bia","icon":"index-module__icon___l2Zze","itemIndicator":"index-module__itemIndicator___FhOim","textContent":"index-module__textContent___cBJbp","helper":"index-module__helper___w4VC7","errorMessage":"index-module__errorMessage___gquqW","noResults":"index-module__noResults___qgzod","loadingMore":"index-module__loadingMore___GHc31","expandableItemContainer":"index-module__expandableItemContainer___NexPi","chevron":"index-module__chevron___c6mu-","childrenWrapper":"index-module__childrenWrapper___tj2R-"};
3718
+ var styles$5 = {"fieldContainer":"Select-module__fieldContainer___zkWSZ","trigger":"Select-module__trigger___xZVUG","disabled":"Select-module__disabled___kkzG-","open":"Select-module__open___bTuTy","error":"Select-module__error___yikGO","hasValue":"Select-module__hasValue___56T9r","triggerText":"Select-module__triggerText___tfXlq","containerLabel":"Select-module__containerLabel___-5qpN","content":"Select-module__content___Eftze","viewport":"Select-module__viewport___mMGOo","group":"Select-module__group___wErLt","container":"Select-module__container___U1UI1","searchWrapper":"Select-module__searchWrapper___H01Wp","item":"Select-module__item___72Rnu","subTitle":"Select-module__subTitle___FdYBH","checkboxItem":"Select-module__checkboxItem___Ehw-a","checkboxContent":"Select-module__checkboxContent___7eKLC","itemWrapper":"Select-module__itemWrapper___nPovg","title":"Select-module__title___bqW3p","icon":"Select-module__icon___RH27W","itemIndicator":"Select-module__itemIndicator___4DBU-","textContent":"Select-module__textContent___k1SLX","helper":"Select-module__helper___pTp7X","errorMessage":"Select-module__errorMessage___--vrn","noResults":"Select-module__noResults___IxsAN","loadingMore":"Select-module__loadingMore___DjAUE","expandableItemContainer":"Select-module__expandableItemContainer___w4ZIb","chevron":"Select-module__chevron___Kgee3","childrenWrapper":"Select-module__childrenWrapper___2NnS-"};
3696
3719
 
3697
3720
  const CheckboxSelectItem = ({ text, subTitle, disabled, checked, onCheckedChange, value, ...restProps }) => {
3698
3721
  const itemRef = React.useRef(null);
@@ -3767,12 +3790,12 @@ const ExpandableSelectItem = ({ item, variant, onSelect, selectedValues, level =
3767
3790
  }, role: "button", tabIndex: item.disabled ? -1 : 0, "data-disabled": item.disabled || undefined, "data-selected": isSelected && !hasChildren ? 'true' : undefined, "data-testid": `select-item-${item.value}`, children: [variant === 'icon' && item.icon && (jsxRuntime.jsx("span", { className: styles$5.icon, children: item.icon })), jsxRuntime.jsxs("div", { className: styles$5.textContent, children: [jsxRuntime.jsx("div", { className: styles$5.title, children: item.text }), item.subTitle && jsxRuntime.jsx("div", { className: styles$5.subTitle, children: item.subTitle })] }), hasChildren && (jsxRuntime.jsx("span", { className: styles$5.chevron, children: isExpanded ? jsxRuntime.jsx(reactIcons.ChevronDown16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronRight16Regular, {}) }))] }) }), hasChildren && isExpanded && (jsxRuntime.jsx("div", { className: styles$5.childrenWrapper, children: item.children.map((child) => (jsxRuntime.jsx(ExpandableSelectItem, { item: child, variant: variant, onSelect: onSelect, selectedValues: selectedValues, level: level + 1 }, child.id || child.value))) }))] }));
3768
3791
  };
3769
3792
 
3770
- const SelectItem = React.forwardRef(({ text, subTitle, icon, disabled, value, variant, ...restProps }, ref) => {
3793
+ const SelectItem = React.forwardRef(({ text, subTitle, icon, disabled, value, variant, disableFocusOnHover, ...restProps }, ref) => {
3771
3794
  return (jsxRuntime.jsxs("div", { className: clsx(styles$5.itemWrapper, {
3772
3795
  [styles$5.disabled]: disabled,
3773
3796
  }), "data-disabled": disabled || undefined, "data-testid": `select-item-${value}`, ref: ref, children: [variant === 'icon' && icon && (jsxRuntime.jsx("span", { className: styles$5.icon, children: icon })), jsxRuntime.jsxs(radixUi.Select.Item, { className: clsx(styles$5.item, {
3774
3797
  [styles$5.disabled]: disabled,
3775
- }), value: value, disabled: disabled, ...restProps, children: [jsxRuntime.jsx(radixUi.Select.ItemText, { className: styles$5.title, children: text }), subTitle && jsxRuntime.jsx("div", { className: styles$5.subTitle, children: subTitle }), jsxRuntime.jsx(radixUi.Select.ItemIndicator, { className: styles$5.itemIndicator })] })] }));
3798
+ }), value: value, disabled: disabled, onPointerMove: disableFocusOnHover ? (e) => e.preventDefault() : undefined, ...restProps, children: [jsxRuntime.jsx(radixUi.Select.ItemText, { className: styles$5.title, children: text }), subTitle && jsxRuntime.jsx("div", { className: styles$5.subTitle, children: subTitle }), jsxRuntime.jsx(radixUi.Select.ItemIndicator, { className: styles$5.itemIndicator })] })] }));
3776
3799
  });
3777
3800
  SelectItem.displayName = 'SelectItem';
3778
3801
 
@@ -4081,14 +4104,14 @@ const Select = ({ items, onValueChange, onOpenChange, variant, required = false,
4081
4104
  onApiSearch('');
4082
4105
  }
4083
4106
  };
4084
- 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$5.container, className), style: containerStyle, "data-testid": testId, children: [jsxRuntime.jsx("div", { className: styles$5.fieldContainer, children: jsxRuntime.jsxs("div", { className: styles$5.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$5.trigger, {
4107
+ return (jsxRuntime.jsx(radixUi.Select.Root, { value: variant === 'checkbox' || (search && state.isOpen) ? '' : (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$5.container, className), style: containerStyle, "data-testid": testId, children: [jsxRuntime.jsx("div", { className: styles$5.fieldContainer, children: jsxRuntime.jsxs("div", { className: styles$5.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$5.trigger, {
4085
4108
  [styles$5.error]: state.hasError && state.touched,
4086
4109
  [styles$5.disabled]: disabled,
4087
4110
  [styles$5.hasValue]: state.selectedValues.length > 0,
4088
4111
  [styles$5.open]: state.isOpen,
4089
4112
  }), id: selectId, "aria-label": ariaLabel, "data-testid": `${testId}-trigger`, children: [variant === 'checkbox' ? (jsxRuntime.jsx("span", { className: styles$5.triggerText, children: displayText })) : (jsxRuntime.jsx(radixUi.Select.Value, { placeholder: placeholder, className: styles$5.placeholder, children: displayText })), state.isOpen ? jsxRuntime.jsx(reactIcons.ChevronUp16Regular, {}) : jsxRuntime.jsx(reactIcons.ChevronDown16Regular, {})] }), !state.isOpen && helperText && !state.hasError && (jsxRuntime.jsx("span", { className: clsx(styles$5.helper, {
4090
4113
  [styles$5.disabled]: disabled
4091
- }), children: helperText })), state.hasError && state.touched && (jsxRuntime.jsx("span", { className: styles$5.errorMessage, children: errorMessage || 'Campo obrigatório' }))] }) }), jsxRuntime.jsx(radixUi.Select.Portal, { children: jsxRuntime.jsxs(radixUi.Select.Content, { className: styles$5.content, position: "popper", side: "bottom", sideOffset: 8, align: "start", avoidCollisions: true, children: [search && (jsxRuntime.jsx("div", { className: styles$5.searchWrapper, children: jsxRuntime.jsx(Search, { ref: refs.searchInputRef, className: styles$5.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$5.viewport, children: jsxRuntime.jsx(radixUi.Select.Group, { className: styles$5.group, children: filteredItems.length === 0 ? (jsxRuntime.jsx("div", { className: styles$5.noResults, children: "Nenhum resultado encontrado" })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [filteredItems.map((item) => {
4114
+ }), children: helperText })), state.hasError && state.touched && (jsxRuntime.jsx("span", { className: styles$5.errorMessage, children: errorMessage || 'Campo obrigatório' }))] }) }), jsxRuntime.jsx(radixUi.Select.Portal, { children: jsxRuntime.jsxs(radixUi.Select.Content, { className: styles$5.content, position: "popper", side: "bottom", sideOffset: 8, align: "start", avoidCollisions: true, children: [search && (jsxRuntime.jsx("div", { className: styles$5.searchWrapper, children: jsxRuntime.jsx(Search, { ref: refs.searchInputRef, className: styles$5.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$5.viewport, "data-testid": testId ? `${testId}-viewport` : undefined, children: jsxRuntime.jsx(radixUi.Select.Group, { className: styles$5.group, children: filteredItems.length === 0 ? (jsxRuntime.jsx("div", { className: styles$5.noResults, children: "Nenhum resultado encontrado" })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [filteredItems.map((item) => {
4092
4115
  const hasChildren = item.children && item.children.length > 0;
4093
4116
  if (hasChildren) {
4094
4117
  return (jsxRuntime.jsx(ExpandableSelectItem, { item: item, variant: variant, selectedValues: state.selectedValues, onSelect: (value) => {
@@ -4101,12 +4124,12 @@ const Select = ({ items, onValueChange, onOpenChange, variant, required = false,
4101
4124
  }
4102
4125
  } }, item.id || item.value));
4103
4126
  }
4104
- return 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));
4127
+ return 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, disableFocusOnHover: search }, item.id || item.value));
4105
4128
  }), enableInfiniteScroll && isLoadingMore && (jsxRuntime.jsx("div", { className: styles$5.loadingMore, children: "Carregando mais itens..." }))] })) }) })] }) })] }) }));
4106
4129
  };
4107
4130
  Select.displayName = 'Select';
4108
4131
 
4109
- var styles$4 = {"zds-table__container":"Table-module__zds-table__container___9xeVY","zds-table-header":"Table-module__zds-table-header___uPRjd","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__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"};
4132
+ var styles$4 = {"tableContainer":"Table-module__tableContainer___cHghX","tableHeader":"Table-module__tableHeader___CFqva","tablePagination":"Table-module__tablePagination___SJ0BH","tableScrollWrapper":"Table-module__tableScrollWrapper___PsYEs","table":"Table-module__table___-ZPCW","tableHead":"Table-module__tableHead___KdeWe","tableTh":"Table-module__tableTh___RhFF-","tableThContent":"Table-module__tableThContent___0gb7Q","tableTd":"Table-module__tableTd___VNUbM","tableHeaderFiltersPlaceholder":"Table-module__tableHeaderFiltersPlaceholder___C0znI","tableBody":"Table-module__tableBody___SgUJp","tableEmpty":"Table-module__tableEmpty___ol2jk","tableEmptyContent":"Table-module__tableEmptyContent___MO1jn","tableEmptyTitle":"Table-module__tableEmptyTitle___XK-SV","tableEmptyCaption":"Table-module__tableEmptyCaption___wZ2Vm","tableRow":"Table-module__tableRow___-jm80","tableEmptyCell":"Table-module__tableEmptyCell___IOaz7","tableHeaderSearch":"Table-module__tableHeaderSearch___dcdu6","tableHeaderSearchContainer":"Table-module__tableHeaderSearchContainer___ViJ-s","tableHeaderFilters":"Table-module__tableHeaderFilters___tVbNC","tableHeaderFilterLabel":"Table-module__tableHeaderFilterLabel___jHUOc","tableHeaderCustomFilters":"Table-module__tableHeaderCustomFilters___Dt8Hm","tableHeaderFiltersContent":"Table-module__tableHeaderFiltersContent___hlOoY","tableHeaderFiltersWrapper":"Table-module__tableHeaderFiltersWrapper___7pUDB","tableHeaderFilterItems":"Table-module__tableHeaderFilterItems___myG2q","tablePaginationSelect":"Table-module__tablePaginationSelect___Ag-s0","tablePaginationInfo":"Table-module__tablePaginationInfo___v6fYn","tablePaginationControls":"Table-module__tablePaginationControls___lKv0K","tablePaginationButton":"Table-module__tablePaginationButton___3opaj"};
4110
4133
 
4111
4134
  /**
4112
4135
  * Componente de ícone SVG para estado vazio da tabela
@@ -4286,13 +4309,13 @@ const Table = ({ columns, dataSource, className, loading = false, rowSelection,
4286
4309
  }, [columns, rowSelection, isAllSelected, isIndeterminate, toggleAll, selectedSet, toggleRow, dataSource]);
4287
4310
  const tableId = React.useMemo(() => `table-${Math.random().toString(36).substr(2, 9)}`, []);
4288
4311
  if (loading) {
4289
- return (jsxRuntime.jsx("div", { className: clsx(styles$4['zds-table__container'], className), children: jsxRuntime.jsx("div", { className: styles$4['zds-table__loader'], children: jsxRuntime.jsx(LoaderList, {}) }) }));
4312
+ return (jsxRuntime.jsx("div", { className: clsx(styles$4.tableContainer, className), children: jsxRuntime.jsx("div", { className: styles$4.tableLoader, children: jsxRuntime.jsx(LoaderList, {}) }) }));
4290
4313
  }
4291
- const emptyText = locale?.emptyText || (jsxRuntime.jsxs("div", { className: styles$4['zds-table__empty'], children: [jsxRuntime.jsx("div", { className: styles$4['zds-table__empty__content'], children: jsxRuntime.jsx(EmptyRows150Color, {}) }), jsxRuntime.jsxs("div", { className: styles$4['zds-table__empty__text'], children: [jsxRuntime.jsx("h3", { className: styles$4['zds-table__empty__title'], children: "Nenhum dado encontrado" }), jsxRuntime.jsx("p", { className: styles$4['zds-table__empty__caption'], children: "Nenhum registro encontrado" })] })] }));
4292
- return (jsxRuntime.jsx("div", { className: clsx(styles$4['zds-table__container'], className), ...rest, children: jsxRuntime.jsx("div", { className: styles$4['zds-table__scroll-wrapper'], children: jsxRuntime.jsxs("table", { className: styles$4['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$4['zds-table__head'], children: jsxRuntime.jsx("tr", { children: finalColumns.map((column) => (jsxRuntime.jsx("th", { className: clsx(styles$4['zds-table__th'], column.align && `text-${column.align}`), style: column.style, children: jsxRuntime.jsx("div", { className: styles$4['zds-table__th-content'], children: column.label }) }, column.key))) }) }), jsxRuntime.jsx("tbody", { className: styles$4['zds-table__body'], children: dataSource.length > 0 ? (dataSource.map((row, index) => {
4314
+ const emptyText = locale?.emptyText || (jsxRuntime.jsxs("div", { className: styles$4.tableEmpty, children: [jsxRuntime.jsx("div", { className: styles$4.tableEmptyContent, children: jsxRuntime.jsx(EmptyRows150Color, {}) }), jsxRuntime.jsxs("div", { className: styles$4.tableEmptyText, children: [jsxRuntime.jsx("h3", { className: styles$4.tableEmptyTitle, children: "Nenhum dado encontrado" }), jsxRuntime.jsx("p", { className: styles$4.tableEmptyCaption, children: "Nenhum registro encontrado" })] })] }));
4315
+ return (jsxRuntime.jsx("div", { className: clsx(styles$4.tableContainer, className), ...rest, children: jsxRuntime.jsx("div", { className: styles$4.tableScrollWrapper, children: jsxRuntime.jsxs("table", { className: styles$4.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$4.tableHead, children: jsxRuntime.jsx("tr", { children: finalColumns.map((column) => (jsxRuntime.jsx("th", { className: clsx(styles$4.tableTh, column.align && `text-${column.align}`), style: column.style, children: jsxRuntime.jsx("div", { className: styles$4.tableThContent, children: column.label }) }, column.key))) }) }), jsxRuntime.jsx("tbody", { className: styles$4.tableBody, children: dataSource.length > 0 ? (dataSource.map((row, index) => {
4293
4316
  const rowProps = onRow?.(row, index) || {};
4294
- return (jsxRuntime.jsx("tr", { className: clsx(styles$4['zds-table__row'], rowProps.className), onClick: rowProps.onClick, onDoubleClick: rowProps.onDoubleClick, children: finalColumns.map((column) => (jsxRuntime.jsx("td", { className: clsx(styles$4['zds-table__td'], column.align && `text-${column.align}`), children: renderCell(column, row, index) }, column.key))) }, index));
4295
- })) : (jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { colSpan: finalColumns.length, className: styles$4['zds-table__empty-cell'], children: emptyText }) })) })] }) }) }));
4317
+ return (jsxRuntime.jsx("tr", { className: clsx(styles$4.tableRow, rowProps.className), onClick: rowProps.onClick, onDoubleClick: rowProps.onDoubleClick, children: finalColumns.map((column) => (jsxRuntime.jsx("td", { className: clsx(styles$4.tableTd, column.align && `text-${column.align}`), children: renderCell(column, row, index) }, column.key))) }, index));
4318
+ })) : (jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { colSpan: finalColumns.length, className: styles$4.tableEmptyCell, children: emptyText }) })) })] }) }) }));
4296
4319
  };
4297
4320
 
4298
4321
  const isCalendarFilter = (filter) => {
@@ -4325,7 +4348,7 @@ const TableHeader = ({ searchValue = '', onSearchChange, onSearch, searchPlaceho
4325
4348
  }
4326
4349
  };
4327
4350
  const hasFilters = filters || (filterItems && filterItems.length > 0);
4328
- return (jsxRuntime.jsxs("div", { className: `${styles$4['zds-table-header']} ${className}`.trim(), ...rest, children: [showSearch && (onSearchChange || onSearch) && (jsxRuntime.jsx("div", { className: styles$4['zds-table-header__search-container'], children: jsxRuntime.jsx(Search, { value: internalSearchValue, onChange: handleInputChange, onKeyDown: handleKeyDown, placeholder: searchPlaceholder, className: styles$4['zds-table-header__search'] }) })), showFilters && (jsxRuntime.jsx("div", { className: styles$4['zds-table-header__filters'], children: hasFilters ? (jsxRuntime.jsxs("div", { className: styles$4['zds-table-header__filters-content'], children: [filters && (jsxRuntime.jsx("div", { className: styles$4['zds-table-header__custom-filters'], children: filters })), jsxRuntime.jsxs("div", { className: styles$4['zds-table-header__filters-wrapper'], children: [jsxRuntime.jsx("span", { className: styles$4['zds-table-header__filter-label'], children: "Filtros" }), jsxRuntime.jsx("div", { className: styles$4['zds-table-header__filter-items'], children: filterItems && filterItems.map((filterItem, index) => {
4351
+ return (jsxRuntime.jsxs("div", { className: `${styles$4.tableHeader} ${className}`.trim(), ...rest, children: [showSearch && (onSearchChange || onSearch) && (jsxRuntime.jsx("div", { className: styles$4.tableHeaderSearchContainer, children: jsxRuntime.jsx(Search, { value: internalSearchValue, onChange: handleInputChange, onKeyDown: handleKeyDown, placeholder: searchPlaceholder, className: styles$4.tableHeaderSearch }) })), showFilters && (jsxRuntime.jsx("div", { className: styles$4.tableHeaderFilters, children: hasFilters ? (jsxRuntime.jsxs("div", { className: styles$4.tableHeaderFiltersContent, children: [filters && (jsxRuntime.jsx("div", { className: styles$4.tableHeaderCustomFilters, children: filters })), jsxRuntime.jsxs("div", { className: styles$4.tableHeaderFiltersWrapper, children: [jsxRuntime.jsx("span", { className: styles$4.tableHeaderFilterLabel, children: "Filtros" }), jsxRuntime.jsx("div", { className: styles$4.tableHeaderFilterItems, children: filterItems && filterItems.map((filterItem, index) => {
4329
4352
  const commonProps = {
4330
4353
  buttonText: filterItem.buttonText,
4331
4354
  icon: filterItem.icon,
@@ -4344,7 +4367,7 @@ const TableHeader = ({ searchValue = '', onSearchChange, onSearch, searchPlaceho
4344
4367
  }
4345
4368
  console.warn('TableHeader: Tipo de filtro não reconhecido:', filterItem);
4346
4369
  return null;
4347
- }) })] })] })) : (jsxRuntime.jsx("div", { className: styles$4['zds-table-header__filters-placeholder'], children: jsxRuntime.jsx("span", { children: "Nenhum filtro dispon\u00EDvel" }) })) }))] }));
4370
+ }) })] })] })) : (jsxRuntime.jsx("div", { className: styles$4.tableHeaderFiltersPlaceholder, children: jsxRuntime.jsx("span", { children: "Nenhum filtro dispon\u00EDvel" }) })) }))] }));
4348
4371
  };
4349
4372
 
4350
4373
  const TablePagination = ({ currentPage, totalItems, itemsPerPage, onPageChange, onItemsPerPageChange, pageSizeOptions = [10, 25, 50, 100], disabled = false, className, ...rest }) => {
@@ -4367,9 +4390,9 @@ const TablePagination = ({ currentPage, totalItems, itemsPerPage, onPageChange,
4367
4390
  const newItemsPerPage = Number(event.target.value);
4368
4391
  onItemsPerPageChange(newItemsPerPage);
4369
4392
  };
4370
- return (jsxRuntime.jsxs("div", { className: `${styles$4['zds-table__pagination']} ${className}`.trim(), ...rest, children: [jsxRuntime.jsxs("div", { className: styles$4['zds-table__pagination-select'], children: [jsxRuntime.jsx("label", { htmlFor: "items-per-page", className: styles$4['zds-table__pagination-label'], children: "Itens por p\u00E1gina" }), jsxRuntime.jsx("select", { id: "items-per-page", value: itemsPerPage, onChange: handleItemsPerPageChange, disabled: disabled, className: styles$4['zds-table__pagination-select-input'], children: pageSizeOptions.map((option) => (jsxRuntime.jsx("option", { value: option, children: option }, option))) })] }), jsxRuntime.jsx("div", { className: styles$4['zds-table__pagination-info'], children: jsxRuntime.jsx("span", { children: totalItems > 0
4393
+ return (jsxRuntime.jsxs("div", { className: `${styles$4.tablePagination} ${className}`.trim(), ...rest, children: [jsxRuntime.jsxs("div", { className: styles$4.tablePaginationSelect, children: [jsxRuntime.jsx("label", { htmlFor: "items-per-page", className: styles$4.tablePaginationLabel, children: "Itens por p\u00E1gina" }), jsxRuntime.jsx("select", { id: "items-per-page", value: itemsPerPage, onChange: handleItemsPerPageChange, disabled: disabled, className: styles$4.tablePaginationSelectInput, children: pageSizeOptions.map((option) => (jsxRuntime.jsx("option", { value: option, children: option }, option))) })] }), jsxRuntime.jsx("div", { className: styles$4.tablePaginationInfo, children: jsxRuntime.jsx("span", { children: totalItems > 0
4371
4394
  ? `${startItem}–${endItem} de ${totalItems}`
4372
- : '0 itens' }) }), jsxRuntime.jsxs("div", { className: styles$4['zds-table__pagination-controls'], children: [jsxRuntime.jsx("button", { className: styles$4['zds-table__pagination-button'], onClick: handlePrevious, disabled: !canGoPrev, "aria-label": "P\u00E1gina anterior", children: jsxRuntime.jsx(reactIcons.ChevronLeft16Regular, {}) }), jsxRuntime.jsx("button", { className: styles$4['zds-table__pagination-button'], onClick: handleNext, disabled: !canGoNext, "aria-label": "Pr\u00F3xima p\u00E1gina", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, {}) })] })] }));
4395
+ : '0 itens' }) }), jsxRuntime.jsxs("div", { className: styles$4.tablePaginationControls, children: [jsxRuntime.jsx("button", { className: styles$4.tablePaginationButton, onClick: handlePrevious, disabled: !canGoPrev, "aria-label": "P\u00E1gina anterior", children: jsxRuntime.jsx(reactIcons.ChevronLeft16Regular, {}) }), jsxRuntime.jsx("button", { className: styles$4.tablePaginationButton, onClick: handleNext, disabled: !canGoNext, "aria-label": "Pr\u00F3xima p\u00E1gina", children: jsxRuntime.jsx(reactIcons.ChevronRight16Regular, {}) })] })] }));
4373
4396
  };
4374
4397
 
4375
4398
  var styles$3 = {"container":"TextArea-module__container___WEBC-","inputWrapper":"TextArea-module__inputWrapper___-omPx","inputContainer":"TextArea-module__inputContainer___0-jKY","footer":"TextArea-module__footer___7XMlj","helperText":"TextArea-module__helperText___709rD","charCount":"TextArea-module__charCount___zdbxM","error":"TextArea-module__error___DWDms","disabled":"TextArea-module__disabled___lHxCa"};
@@ -5055,6 +5078,7 @@ exports.Drawer = Drawer;
5055
5078
  exports.Filter = Filter;
5056
5079
  exports.ListItem = ListItem;
5057
5080
  exports.Menu = Menu;
5081
+ exports.Modal = Modal;
5058
5082
  exports.Popover = Popover;
5059
5083
  exports.Quantity = memorizedQuantity;
5060
5084
  exports.Radio = Radio;