@rubenpazch/ui 0.10.0 → 0.11.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.d.ts CHANGED
@@ -47,7 +47,7 @@ export { default as Sidebar, SidebarItem, SidebarLabels, SidebarProps, SidebarSe
47
47
  export { default as Skeleton, SkeletonProps } from '@rubenpazch/skeleton';
48
48
  export { default as Stepper } from '@rubenpazch/stepper';
49
49
  export { default as Switch, SwitchProps } from '@rubenpazch/switch';
50
- export { default as Tabs } from '@rubenpazch/tabs';
50
+ export { Tab, TabOrientation, default as Tabs, TabsProps } from '@rubenpazch/tabs';
51
51
  export { default as TextInput, TextInputNativeProps, TextInputProps } from '@rubenpazch/text-input';
52
52
  export { default as Textarea, TextareaProps } from '@rubenpazch/textarea';
53
53
  export { default as Timeline, TimelineItem, TimelineProps, TimelineStatus } from '@rubenpazch/timeline';
@@ -1257,19 +1257,22 @@ Pestañas para alternar entre secciones de una misma vista.
1257
1257
  import { Tabs } from "@rubenpazch/ui";
1258
1258
  ```
1259
1259
 
1260
- | Prop | Tipo | Req. | Por defecto | Descripción |
1261
- | ------------------ | ------------------------------------------ | ---- | ------------ | --------------------------------------------------------------------- |
1262
- | `tabs` | `Tab[]` | sí | | |
1263
- | `ariaLabel` | `string` | | `Pestañas` | Nombre accesible del grupo de pestañas (por defecto "Pestañas"). |
1264
- | `className` | `string` | | | |
1265
- | `defaultTab` | `string` | | | |
1266
- | `lazy` | `boolean` | | `false` | Lazy mode - only calls onLoad when tab is first visited |
1267
- | `loading` | `boolean` | | `false` | Loading state for the active tab content |
1268
- | `loadingComponent` | `ReactNode` | | | Custom loading component |
1269
- | `onChange` | `(tabId: string) => void` | | | |
1270
- | `onLoad` | `(tabId: string) => void \| Promise<void>` | | | Called when a tab is activated. Use for lazy loading data |
1271
- | `orientation` | `"horizontal" \| "vertical"` | | `horizontal` | Orientation of tabs - horizontal (default) or vertical (left-aligned) |
1272
- | `renderContent` | `(tabId: string) => ReactNode` | | | Render function for tab content (alternative to content prop in Tab) |
1260
+ | Prop | Tipo | Req. | Por defecto | Descripción |
1261
+ | ------------------ | ------------------------------------------ | ---- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1262
+ | `tabs` | `Tab[]` | sí | | |
1263
+ | `ariaLabel` | `string` | | `Pestañas` | Nombre accesible del grupo de pestañas (por defecto "Pestañas"). |
1264
+ | `className` | `string` | | | |
1265
+ | `defaultTab` | `string` | | | |
1266
+ | `lazy` | `boolean` | | `false` | Lazy mode - only calls onLoad when tab is first visited |
1267
+ | `loading` | `boolean` | | `false` | Loading state for the active tab content |
1268
+ | `loadingComponent` | `ReactNode` | | | Custom loading component |
1269
+ | `onChange` | `(tabId: string) => void` | | | |
1270
+ | `onLoad` | `(tabId: string) => void \| Promise<void>` | | | Called when a tab is activated. Use for lazy loading data |
1271
+ | `orientation` | `"horizontal" \| "vertical"` | | `horizontal` | Orientation of tabs - horizontal (default) or vertical (left-aligned) |
1272
+ | `renderContent` | `(tabId: string) => ReactNode` | | | Render function for tab content (alternative to content prop in Tab) |
1273
+ | `value` | `string` | | | Pestaña activa (modo controlado). Úsalo cuando la pestaña vive en la URL o en el estado de la app: el componente no la cambia solo, avisa con `onChange`. Sin `value` funciona como antes. |
1274
+
1275
+ Tipos: `Tab`, `TabOrientation`, `TabsProps`.
1273
1276
 
1274
1277
  ## Retroalimentación
1275
1278
 
@@ -8063,12 +8063,19 @@
8063
8063
  "requerido": false,
8064
8064
  "porDefecto": null,
8065
8065
  "descripcion": "Render function for tab content (alternative to content prop in Tab)"
8066
+ },
8067
+ {
8068
+ "nombre": "value",
8069
+ "tipo": "string",
8070
+ "requerido": false,
8071
+ "porDefecto": null,
8072
+ "descripcion": "Pestaña activa (modo controlado). Úsalo cuando la pestaña vive en la URL o en el estado de la\napp: el componente no la cambia solo, avisa con `onChange`. Sin `value` funciona como antes."
8066
8073
  }
8067
8074
  ]
8068
8075
  }
8069
8076
  ],
8070
8077
  "otrosValores": [],
8071
- "tipos": []
8078
+ "tipos": ["Tab", "TabOrientation", "TabsProps"]
8072
8079
  },
8073
8080
  {
8074
8081
  "paquete": "@rubenpazch/text-input",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubenpazch/ui",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Todos los componentes de Lbyte UI en un solo paquete, con su documentación para personas y agentes de IA",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,62 +37,62 @@
37
37
  "react-dom": "^19.2.3"
38
38
  },
39
39
  "dependencies": {
40
- "@rubenpazch/alert": "^0.2.1",
41
40
  "@rubenpazch/auth-gate": "^0.1.1",
42
- "@rubenpazch/app-shell": "^0.3.1",
41
+ "@rubenpazch/alert": "^0.2.1",
43
42
  "@rubenpazch/autocomplete": "^5.3.0",
43
+ "@rubenpazch/app-shell": "^0.3.1",
44
44
  "@rubenpazch/avatar": "^3.1.3",
45
- "@rubenpazch/button": "^6.2.4",
46
- "@rubenpazch/badge": "^0.1.2",
47
45
  "@rubenpazch/card": "^0.1.2",
46
+ "@rubenpazch/badge": "^0.1.2",
47
+ "@rubenpazch/button": "^6.2.4",
48
48
  "@rubenpazch/checkbox-input": "^3.2.4",
49
- "@rubenpazch/chip": "^4.0.7",
50
49
  "@rubenpazch/confirmation-dialog": "^3.1.5",
50
+ "@rubenpazch/chip": "^4.0.7",
51
51
  "@rubenpazch/data-table": "^0.1.2",
52
52
  "@rubenpazch/date-input": "^3.2.1",
53
53
  "@rubenpazch/date-picker": "^3.2.1",
54
- "@rubenpazch/date-range-picker": "^0.1.1",
55
54
  "@rubenpazch/description-list": "^0.1.0",
56
- "@rubenpazch/draggable-list": "^3.0.4",
57
55
  "@rubenpazch/drawer": "^4.2.5",
58
56
  "@rubenpazch/empty-state": "^0.1.2",
57
+ "@rubenpazch/file-upload": "^0.1.0",
59
58
  "@rubenpazch/form-field": "^0.1.2",
60
59
  "@rubenpazch/icon-button": "^4.2.2",
60
+ "@rubenpazch/draggable-list": "^3.0.4",
61
61
  "@rubenpazch/icons": "^6.4.1",
62
- "@rubenpazch/file-upload": "^0.1.0",
63
62
  "@rubenpazch/identification-input": "^2.1.0",
64
63
  "@rubenpazch/image-upload": "^3.1.1",
64
+ "@rubenpazch/date-range-picker": "^0.1.1",
65
65
  "@rubenpazch/info-row": "^3.0.4",
66
66
  "@rubenpazch/loading-spinner": "^4.1.0",
67
67
  "@rubenpazch/menu": "^0.1.2",
68
68
  "@rubenpazch/modal": "^0.1.3",
69
- "@rubenpazch/money-input": "^0.1.2",
70
69
  "@rubenpazch/month-navigator": "^0.1.2",
71
70
  "@rubenpazch/numeric-picker": "^5.1.3",
72
71
  "@rubenpazch/numeric-up-picker": "^6.1.4",
72
+ "@rubenpazch/money-input": "^0.1.2",
73
73
  "@rubenpazch/overlay-loader": "^1.1.4",
74
- "@rubenpazch/page-header": "^0.1.2",
75
74
  "@rubenpazch/pagination": "^3.2.4",
75
+ "@rubenpazch/page-header": "^0.1.2",
76
76
  "@rubenpazch/patient-details": "^3.1.3",
77
77
  "@rubenpazch/patient-search": "^3.0.6",
78
- "@rubenpazch/prescription-card": "^3.0.5",
79
78
  "@rubenpazch/prescription-eye-card": "^3.0.7",
79
+ "@rubenpazch/prescription-card": "^3.0.5",
80
80
  "@rubenpazch/progress-bar": "^0.1.2",
81
- "@rubenpazch/radio-button": "^4.2.1",
82
- "@rubenpazch/shared": "^5.3.0",
83
81
  "@rubenpazch/segmented-control": "^0.1.2",
84
82
  "@rubenpazch/select": "^1.3.0",
85
- "@rubenpazch/skeleton": "^0.1.2",
83
+ "@rubenpazch/radio-button": "^4.2.1",
86
84
  "@rubenpazch/sidebar": "^0.1.3",
87
- "@rubenpazch/stepper": "^4.1.2",
88
- "@rubenpazch/tabs": "^3.1.1",
85
+ "@rubenpazch/skeleton": "^0.1.2",
89
86
  "@rubenpazch/switch": "^0.1.2",
90
- "@rubenpazch/text-input": "^6.4.0",
87
+ "@rubenpazch/shared": "^5.3.0",
91
88
  "@rubenpazch/textarea": "^0.1.2",
92
- "@rubenpazch/timeline": "^0.1.0",
89
+ "@rubenpazch/tabs": "^3.2.0",
93
90
  "@rubenpazch/toast": "^4.1.1",
94
- "@rubenpazch/tooltip": "^0.1.2",
91
+ "@rubenpazch/text-input": "^6.4.0",
92
+ "@rubenpazch/timeline": "^0.1.0",
93
+ "@rubenpazch/stepper": "^4.1.2",
95
94
  "@rubenpazch/tokens": "^0.5.0",
95
+ "@rubenpazch/tooltip": "^0.1.2",
96
96
  "@rubenpazch/turnstile": "^0.1.0",
97
97
  "@rubenpazch/user-card": "^0.1.1"
98
98
  },