@skalar-saas/design-system 0.2.4 → 0.2.6

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,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.4",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "description": "Skalar Design System - UI component library",
6
6
  "author": "Skalar Team",