@humu-tech/ui 0.1.23 → 0.1.25

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/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  Extraído dos apps de crédito (admin + portal do cliente) para ser consumido por todos os projetos da empresa.
10
10
 
11
- 📖 **[Catálogo interativo no Storybook](https://inovanti-bank.github.io/humu-ui/)** — 83 componentes, 396 stories, e a aba **Docs** de cada um com a tabela de props gerada a partir dos tipos.
11
+ 📖 **[Catálogo interativo no Storybook](https://inovanti-bank.github.io/humu-ui/)** — 83 componentes, 398 stories, e a aba **Docs** de cada um com a tabela de props gerada a partir dos tipos.
12
12
 
13
13
  > **Nome do pacote:** publica como `@humu-tech/ui` e coexiste com o legado `@inovanti/react@3`. O rebrand do escopo para `@humu/*` fica para quando o registry `@humu` estiver provisionado.
14
14
 
package/dist/index.js CHANGED
@@ -3134,6 +3134,7 @@ var FileUpload = (0, import_react34.forwardRef)(
3134
3134
  role: "button",
3135
3135
  tabIndex: disabled ? -1 : 0,
3136
3136
  "aria-disabled": disabled || void 0,
3137
+ "data-invalid": displayError ? "true" : void 0,
3137
3138
  onClick: () => !disabled && inputRef.current?.click(),
3138
3139
  onKeyDown: (e) => {
3139
3140
  if ((e.key === "Enter" || e.key === " ") && !disabled) {
@@ -3191,6 +3192,7 @@ var FileUpload = (0, import_react34.forwardRef)(
3191
3192
  accept,
3192
3193
  multiple,
3193
3194
  disabled,
3195
+ "aria-invalid": displayError ? true : void 0,
3194
3196
  className: "hidden",
3195
3197
  onChange: (e) => handleFiles(e.target.files)
3196
3198
  }
@@ -4336,6 +4338,7 @@ var OtpInput = (0, import_react50.forwardRef)(
4336
4338
  onChange,
4337
4339
  maxLength: length,
4338
4340
  pattern: import_input_otp.REGEXP_ONLY_DIGITS,
4341
+ "aria-invalid": error ? true : void 0,
4339
4342
  containerClassName: cn(
4340
4343
  "flex items-center gap-2 overflow-hidden p-1 has-[:disabled]:opacity-50",
4341
4344
  className
package/dist/index.mjs CHANGED
@@ -3028,6 +3028,7 @@ var FileUpload = forwardRef21(
3028
3028
  role: "button",
3029
3029
  tabIndex: disabled ? -1 : 0,
3030
3030
  "aria-disabled": disabled || void 0,
3031
+ "data-invalid": displayError ? "true" : void 0,
3031
3032
  onClick: () => !disabled && inputRef.current?.click(),
3032
3033
  onKeyDown: (e) => {
3033
3034
  if ((e.key === "Enter" || e.key === " ") && !disabled) {
@@ -3085,6 +3086,7 @@ var FileUpload = forwardRef21(
3085
3086
  accept,
3086
3087
  multiple,
3087
3088
  disabled,
3089
+ "aria-invalid": displayError ? true : void 0,
3088
3090
  className: "hidden",
3089
3091
  onChange: (e) => handleFiles(e.target.files)
3090
3092
  }
@@ -4240,6 +4242,7 @@ var OtpInput = forwardRef27(
4240
4242
  onChange,
4241
4243
  maxLength: length,
4242
4244
  pattern: REGEXP_ONLY_DIGITS,
4245
+ "aria-invalid": error ? true : void 0,
4243
4246
  containerClassName: cn(
4244
4247
  "flex items-center gap-2 overflow-hidden p-1 has-[:disabled]:opacity-50",
4245
4248
  className
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humu-tech/ui",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Design System V2 da Humu — 51 primitives e 32 patterns em React 18, com tema claro/escuro, preset Tailwind e TypeScript.",
5
5
  "keywords": [
6
6
  "design-system",