@scmlatam/web-ui 0.2.59 → 0.2.61

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
@@ -20,3 +20,12 @@ createRoot(document.getElementById("root")!).render(
20
20
  );
21
21
 
22
22
  ```
23
+
24
+ ### Visibilidad del sidebar
25
+
26
+ `Core` y `DashboardShell` aceptan `showSidebar`, activo por defecto.
27
+ Para conservar solo la navegacion propia de una pagina, utiliza
28
+ `<Core {...props} showSidebar={false} />`. Este modo elimina el menu principal,
29
+ su boton movil y el espacio lateral reservado, sin ocultar la barra superior.
30
+ La app de demostracion lo desactiva; los consumidores que omiten esta propiedad
31
+ conservan el sidebar.
@@ -1,3 +1,3 @@
1
1
  import { CoreProps } from './types/types';
2
- declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, signup, unsavedChangesAlert, msalInstance, }: CoreProps) => import("react").JSX.Element;
2
+ declare const Core: ({ sidebar, showSidebar, routes, product, account, languages, loginForm: form, signup, unsavedChangesAlert, msalInstance, }: CoreProps) => import("react").JSX.Element;
3
3
  export { Core };
@@ -0,0 +1,5 @@
1
+ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ format: "text" | "number" | "email" | "password" | "tel" | "url";
3
+ }
4
+ declare const Input: ({ ...props }: InputProps) => import("react").JSX.Element;
5
+ export default Input;
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(query?: string): boolean;
@@ -0,0 +1,9 @@
1
+ export interface DocsNavItem {
2
+ title: string;
3
+ path: string;
4
+ }
5
+ export interface DocsNavGroup {
6
+ category: string;
7
+ items: DocsNavItem[];
8
+ }
9
+ export declare const docsSidebarData: DocsNavGroup[];
@@ -1,5 +1,8 @@
1
- import { RbDocumentationIndexItem } from '../types/documentation.types';
2
- export interface RbDocumentationIndexProps {
3
- items: RbDocumentationIndexItem[];
1
+ import { DocsNavGroup } from '../../../../mock/DocsSidebarData';
2
+ interface RbDocumentationIndexProps {
3
+ data: DocsNavGroup[];
4
+ activeSection: string;
5
+ onSelectSection: (path: string) => void;
4
6
  }
5
- export declare function RbDocumentationIndex({ items, }: RbDocumentationIndexProps): import("react").JSX.Element;
7
+ export declare function RbDocumentationIndex({ data, activeSection, onSelectSection, }: RbDocumentationIndexProps): import("react").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export declare function ColorsSection(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function EmptyStateSection(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function IntroduccionSection(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function LegacySection(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function TooltipsSection(): import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DashboardProps } from '../../components/core/types/types';
2
- declare const DashboardShell: ({ sidebar, routes, account, }: DashboardProps) => import("react").JSX.Element;
2
+ declare const DashboardShell: ({ sidebar, showSidebar, routes, account, }: DashboardProps) => import("react").JSX.Element;
3
3
  export { DashboardShell };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,11 +1,13 @@
1
1
  import { DashboardProps } from '../../components/core/types/types';
2
2
  type AccountType = DashboardProps["account"];
3
3
  type SidebarItemsType = DashboardProps["sidebar"]["items"];
4
+ type SignOutType = DashboardProps["sidebar"]["signOut"];
4
5
  interface TopBarProps {
5
6
  id?: string;
6
- account: AccountType;
7
+ account?: AccountType;
7
8
  sidebarItems: SidebarItemsType;
9
+ signOut?: SignOutType;
8
10
  onOpenMobile?: () => void;
9
11
  }
10
- declare const TopBar: ({ id, account, sidebarItems, onOpenMobile }: TopBarProps) => import("react").JSX.Element;
12
+ declare const TopBar: ({ id, account, sidebarItems, signOut, onOpenMobile, }: TopBarProps) => import("react").JSX.Element;
11
13
  export { TopBar };
@@ -0,0 +1 @@
1
+ export {};
@@ -29,7 +29,7 @@ export type { CardProps } from './primitives/Card';
29
29
  export { IconButton } from './primitives/IconButton';
30
30
  export type { IconButtonProps } from './primitives/IconButton';
31
31
  export { Input } from './primitives/Input';
32
- export type { InputProps } from './primitives/Input';
32
+ export type { InputFormat, InputProps } from './primitives/Input';
33
33
  export { Checkbox } from './primitives/Checkbox';
34
34
  export type { CheckboxProps, CheckboxSize } from './primitives/Checkbox';
35
35
  export { Radio } from './primitives/Radio';
@@ -1,13 +1,19 @@
1
1
  import { default as React } from 'react';
2
2
  export type InputLabelVariant = "stacked" | "notched";
3
+ export type InputFormat = "duration";
3
4
  export type BaseInputProps = {
4
5
  containerClassName?: string;
6
+ /** Duration input accepts HH:mm or HHmm and normalizes to HH:mm on blur. */
7
+ format?: InputFormat;
8
+ /** Maximum absolute duration in hours. Applies only when format="duration". */
9
+ limit?: number;
5
10
  label?: React.ReactNode;
6
11
  labelVariant?: InputLabelVariant;
7
12
  white?: boolean;
8
13
  hint?: React.ReactNode;
9
14
  helperText?: React.ReactNode;
10
15
  error?: boolean;
16
+ warning?: boolean;
11
17
  unstyled?: boolean;
12
18
  infoTooltip?: React.ReactNode;
13
19
  infoAriaLabel?: string;
@@ -20,5 +26,10 @@ type TextareaInputProps = BaseInputProps & Omit<React.TextareaHTMLAttributes<HTM
20
26
  as: "textarea";
21
27
  };
22
28
  export type InputProps = TextInputProps | TextareaInputProps;
29
+ export declare function isValidNumericInput(value: string): boolean;
30
+ export declare function isValidNumericInputInsertion(value: string, insertedText: string, selectionStart?: number, selectionEnd?: number): boolean;
31
+ export declare function isValidDurationInput(value: string, limit?: number): boolean;
32
+ export declare function isValidDurationInsertion(value: string, insertedText: string, selectionStart?: number, selectionEnd?: number, limit?: number): boolean;
33
+ export declare function normalizeDurationInput(value: string): string;
23
34
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
24
35
  export {};
@@ -11,3 +11,5 @@ export default meta;
11
11
  type Story = StoryObj<typeof meta>;
12
12
  export declare const Basico: Story;
13
13
  export declare const Textarea: Story;
14
+ export declare const AdvertenciaDuracion: Story;
15
+ export declare const NumeroSinNotacionCientifica: Story;