@skalar-saas/design-system 0.2.5 → 0.2.7

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.
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export interface CheckboxGroupOption {
3
+ value: string | number;
4
+ label: React.ReactNode;
5
+ caption?: string;
6
+ disabled?: boolean;
7
+ indeterminate?: boolean;
8
+ className?: string;
9
+ }
10
+ export interface CheckboxGroupProps {
11
+ options: CheckboxGroupOption[];
12
+ value: (string | number)[];
13
+ onChange: (value: (string | number)[]) => void;
14
+ size?: 'small' | 'medium' | 'large';
15
+ disabled?: boolean;
16
+ orientation?: 'vertical' | 'horizontal';
17
+ withSelectAll?: boolean;
18
+ selectAllLabel?: string;
19
+ className?: string;
20
+ }
21
+ export declare const CheckboxGroup: ({ options, value, onChange, size, disabled, orientation, withSelectAll, selectAllLabel, className, }: CheckboxGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { CheckboxGroup } from './CheckboxGroup';
2
+ export type { CheckboxGroupProps, CheckboxGroupOption } from './CheckboxGroup';
@@ -24,4 +24,19 @@ declare const DropSizePickerContent: {
24
24
  }): React.ReactPortal | null;
25
25
  displayName: string;
26
26
  };
27
- export { DropSizePicker, DropSizePickerTrigger, DropSizePickerContent };
27
+ export interface SizePickerProps {
28
+ value: SizeValue;
29
+ onChange: (value: SizeValue) => void;
30
+ className?: string;
31
+ /** Muestra el título "Size" arriba (default: true). */
32
+ showTitle?: boolean;
33
+ }
34
+ /**
35
+ * Selector de tamaño SIEMPRE visible (mismo contenido que el popover del DropSizePicker,
36
+ * pero inline). Úsalo cuando el control de tamaño vive dentro de un panel.
37
+ */
38
+ declare const SizePicker: {
39
+ ({ value, onChange, className, showTitle }: SizePickerProps): import("react/jsx-runtime").JSX.Element;
40
+ displayName: string;
41
+ };
42
+ export { DropSizePicker, DropSizePickerTrigger, DropSizePickerContent, SizePicker };
@@ -1,2 +1,2 @@
1
- export { DropSizePicker, DropSizePickerTrigger, DropSizePickerContent } from './DropSizePicker';
2
- export type { DropSizePickerProps, SizeValue } from './DropSizePicker';
1
+ export { DropSizePicker, DropSizePickerTrigger, DropSizePickerContent, SizePicker } from './DropSizePicker';
2
+ export type { DropSizePickerProps, SizePickerProps, SizeValue } from './DropSizePicker';
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ export interface LinkGroupItem {
3
+ label: React.ReactNode;
4
+ href?: string;
5
+ leadingIcon?: React.ReactNode;
6
+ trailingIcon?: React.ReactNode;
7
+ trailingIconPosition?: 'inline' | 'end';
8
+ showLeadingIcon?: boolean;
9
+ showTrailingIcon?: boolean;
10
+ disabled?: boolean;
11
+ onClick?: React.MouseEventHandler<HTMLAnchorElement>;
12
+ target?: string;
13
+ rel?: string;
14
+ variant?: 'neutral' | 'info';
15
+ size?: 'xs' | 'sm' | 'md' | 'lg';
16
+ disableUnderline?: boolean;
17
+ className?: string;
18
+ }
19
+ export interface LinkGroupProps {
20
+ items: LinkGroupItem[];
21
+ variant?: 'neutral' | 'info';
22
+ size?: 'xs' | 'sm' | 'md' | 'lg';
23
+ orientation?: 'vertical' | 'horizontal';
24
+ withDividers?: boolean;
25
+ disableUnderline?: boolean;
26
+ className?: string;
27
+ }
28
+ export declare const LinkGroup: ({ items, variant, size, orientation, withDividers, disableUnderline, className, }: LinkGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { LinkGroup } from './LinkGroup';
2
+ export type { LinkGroupProps, LinkGroupItem } from './LinkGroup';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface ToggleGroupOption {
3
+ value: string | number;
4
+ label: React.ReactNode;
5
+ caption?: string;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ }
9
+ export interface ToggleGroupProps {
10
+ options: ToggleGroupOption[];
11
+ value: (string | number)[];
12
+ onChange: (value: (string | number)[]) => void;
13
+ size?: 'small' | 'medium' | 'large';
14
+ disabled?: boolean;
15
+ orientation?: 'vertical' | 'horizontal';
16
+ togglePosition?: 'left' | 'right';
17
+ className?: string;
18
+ }
19
+ export declare const ToggleGroup: ({ options, value, onChange, size, disabled, orientation, togglePosition, className, }: ToggleGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { ToggleGroup } from './ToggleGroup';
2
+ export type { ToggleGroupProps, ToggleGroupOption } from './ToggleGroup';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalar-saas/design-system",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "description": "Skalar Design System - UI component library",
6
6
  "author": "Skalar Team",