vector-prototype-components 0.1.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/Accordion/Accordion.d.ts +29 -0
- package/Accordion/Accordion.d.ts.map +1 -0
- package/Accordion/index.d.ts +3 -0
- package/Accordion/index.d.ts.map +1 -0
- package/ActionMenu/ActionMenu.d.ts +29 -0
- package/ActionMenu/ActionMenu.d.ts.map +1 -0
- package/ActionMenu/index.d.ts +3 -0
- package/ActionMenu/index.d.ts.map +1 -0
- package/Autocomplete/Autocomplete.d.ts +37 -0
- package/Autocomplete/Autocomplete.d.ts.map +1 -0
- package/Autocomplete/index.d.ts +3 -0
- package/Autocomplete/index.d.ts.map +1 -0
- package/Avatar/Avatar.d.ts +36 -0
- package/Avatar/Avatar.d.ts.map +1 -0
- package/Avatar/index.d.ts +3 -0
- package/Avatar/index.d.ts.map +1 -0
- package/Badge/Badge.d.ts +19 -0
- package/Badge/Badge.d.ts.map +1 -0
- package/Badge/index.d.ts +3 -0
- package/Badge/index.d.ts.map +1 -0
- package/BottomBar/BottomBar.d.ts +12 -0
- package/BottomBar/BottomBar.d.ts.map +1 -0
- package/BottomBar/index.d.ts +3 -0
- package/BottomBar/index.d.ts.map +1 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/Breadcrumbs/index.d.ts +3 -0
- package/Breadcrumbs/index.d.ts.map +1 -0
- package/Button/Button.d.ts +12 -0
- package/Button/Button.d.ts.map +1 -0
- package/Button/index.d.ts +3 -0
- package/Button/index.d.ts.map +1 -0
- package/Callout/Callout.d.ts +25 -0
- package/Callout/Callout.d.ts.map +1 -0
- package/Callout/index.d.ts +3 -0
- package/Callout/index.d.ts.map +1 -0
- package/Card/Card.d.ts +10 -0
- package/Card/Card.d.ts.map +1 -0
- package/Card/index.d.ts +3 -0
- package/Card/index.d.ts.map +1 -0
- package/Checkbox/Checkbox.d.ts +16 -0
- package/Checkbox/Checkbox.d.ts.map +1 -0
- package/Checkbox/index.d.ts +3 -0
- package/Checkbox/index.d.ts.map +1 -0
- package/Chip/Chip.d.ts +24 -0
- package/Chip/Chip.d.ts.map +1 -0
- package/Chip/index.d.ts +3 -0
- package/Chip/index.d.ts.map +1 -0
- package/DatePicker/DatePicker.d.ts +32 -0
- package/DatePicker/DatePicker.d.ts.map +1 -0
- package/DatePicker/DatePickerCalendar.d.ts +9 -0
- package/DatePicker/DatePickerCalendar.d.ts.map +1 -0
- package/DatePicker/index.d.ts +3 -0
- package/DatePicker/index.d.ts.map +1 -0
- package/Divider/Divider.d.ts +8 -0
- package/Divider/Divider.d.ts.map +1 -0
- package/Divider/index.d.ts +3 -0
- package/Divider/index.d.ts.map +1 -0
- package/Dropdown/Dropdown.d.ts +67 -0
- package/Dropdown/Dropdown.d.ts.map +1 -0
- package/Dropdown/index.d.ts +3 -0
- package/Dropdown/index.d.ts.map +1 -0
- package/Icon/Icon.d.ts +8 -0
- package/Icon/Icon.d.ts.map +1 -0
- package/Icon/index.d.ts +3 -0
- package/Icon/index.d.ts.map +1 -0
- package/IconButton/IconButton.d.ts +14 -0
- package/IconButton/IconButton.d.ts.map +1 -0
- package/IconButton/index.d.ts +3 -0
- package/IconButton/index.d.ts.map +1 -0
- package/InputNumber/InputNumber.d.ts +21 -0
- package/InputNumber/InputNumber.d.ts.map +1 -0
- package/InputNumber/index.d.ts +3 -0
- package/InputNumber/index.d.ts.map +1 -0
- package/Menu/Menu.d.ts +53 -0
- package/Menu/Menu.d.ts.map +1 -0
- package/Menu/index.d.ts +4 -0
- package/Menu/index.d.ts.map +1 -0
- package/Menu/menuData.d.ts +4 -0
- package/Menu/menuData.d.ts.map +1 -0
- package/Message/Message.d.ts +23 -0
- package/Message/Message.d.ts.map +1 -0
- package/Message/index.d.ts +3 -0
- package/Message/index.d.ts.map +1 -0
- package/Modal/Modal.d.ts +55 -0
- package/Modal/Modal.d.ts.map +1 -0
- package/Modal/index.d.ts +3 -0
- package/Modal/index.d.ts.map +1 -0
- package/Multiselect/Multiselect.d.ts +46 -0
- package/Multiselect/Multiselect.d.ts.map +1 -0
- package/Multiselect/index.d.ts +3 -0
- package/Multiselect/index.d.ts.map +1 -0
- package/Overlay/Overlay.d.ts +16 -0
- package/Overlay/Overlay.d.ts.map +1 -0
- package/Overlay/index.d.ts +3 -0
- package/Overlay/index.d.ts.map +1 -0
- package/Paginator/Paginator.d.ts +23 -0
- package/Paginator/Paginator.d.ts.map +1 -0
- package/Paginator/index.d.ts +3 -0
- package/Paginator/index.d.ts.map +1 -0
- package/Panel/Panel.d.ts +13 -0
- package/Panel/Panel.d.ts.map +1 -0
- package/Panel/index.d.ts +3 -0
- package/Panel/index.d.ts.map +1 -0
- package/ProgressSpinner/ProgressSpinner.d.ts +10 -0
- package/ProgressSpinner/ProgressSpinner.d.ts.map +1 -0
- package/ProgressSpinner/index.d.ts +3 -0
- package/ProgressSpinner/index.d.ts.map +1 -0
- package/README.md +143 -0
- package/Radio/Radio.d.ts +15 -0
- package/Radio/Radio.d.ts.map +1 -0
- package/Radio/index.d.ts +3 -0
- package/Radio/index.d.ts.map +1 -0
- package/SegmentControl/SegmentControl.d.ts +27 -0
- package/SegmentControl/SegmentControl.d.ts.map +1 -0
- package/SegmentControl/index.d.ts +3 -0
- package/SegmentControl/index.d.ts.map +1 -0
- package/Select/Select.d.ts +48 -0
- package/Select/Select.d.ts.map +1 -0
- package/Select/index.d.ts +3 -0
- package/Select/index.d.ts.map +1 -0
- package/Skeleton/Skeleton.d.ts +39 -0
- package/Skeleton/Skeleton.d.ts.map +1 -0
- package/Skeleton/index.d.ts +3 -0
- package/Skeleton/index.d.ts.map +1 -0
- package/Slider/Slider.d.ts +28 -0
- package/Slider/Slider.d.ts.map +1 -0
- package/Slider/index.d.ts +3 -0
- package/Slider/index.d.ts.map +1 -0
- package/Slot/Slot.d.ts +22 -0
- package/Slot/Slot.d.ts.map +1 -0
- package/Slot/index.d.ts +3 -0
- package/Slot/index.d.ts.map +1 -0
- package/Switch/Switch.d.ts +13 -0
- package/Switch/Switch.d.ts.map +1 -0
- package/Switch/index.d.ts +3 -0
- package/Switch/index.d.ts.map +1 -0
- package/Table/Table.d.ts +94 -0
- package/Table/Table.d.ts.map +1 -0
- package/Table/index.d.ts +3 -0
- package/Table/index.d.ts.map +1 -0
- package/TableTree/TableTree.d.ts +65 -0
- package/TableTree/TableTree.d.ts.map +1 -0
- package/TableTree/index.d.ts +3 -0
- package/TableTree/index.d.ts.map +1 -0
- package/Tabs/Tabs.d.ts +32 -0
- package/Tabs/Tabs.d.ts.map +1 -0
- package/Tabs/index.d.ts +3 -0
- package/Tabs/index.d.ts.map +1 -0
- package/Tag/Tag.d.ts +18 -0
- package/Tag/Tag.d.ts.map +1 -0
- package/Tag/index.d.ts +3 -0
- package/Tag/index.d.ts.map +1 -0
- package/TextField/TextField.d.ts +18 -0
- package/TextField/TextField.d.ts.map +1 -0
- package/TextField/index.d.ts +3 -0
- package/TextField/index.d.ts.map +1 -0
- package/Textarea/Textarea.d.ts +18 -0
- package/Textarea/Textarea.d.ts.map +1 -0
- package/Textarea/index.d.ts +3 -0
- package/Textarea/index.d.ts.map +1 -0
- package/Toast/Toast.d.ts +20 -0
- package/Toast/Toast.d.ts.map +1 -0
- package/Toast/index.d.ts +3 -0
- package/Toast/index.d.ts.map +1 -0
- package/Tooltip/Tooltip.d.ts +19 -0
- package/Tooltip/Tooltip.d.ts.map +1 -0
- package/Tooltip/index.d.ts +3 -0
- package/Tooltip/index.d.ts.map +1 -0
- package/TopBar/TopBar.d.ts +36 -0
- package/TopBar/TopBar.d.ts.map +1 -0
- package/TopBar/index.d.ts +3 -0
- package/TopBar/index.d.ts.map +1 -0
- package/index.d.ts +86 -0
- package/index.d.ts.map +1 -0
- package/index.js +4160 -0
- package/index.js.map +1 -0
- package/package.json +30 -0
- package/style.css +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAGrC,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACjE,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAO,EACP,cAAc,EACd,KAAK,EACL,QAAgB,EAChB,SAAS,EACT,EAAE,EAAE,MAAM,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,UAAU,2CAuCZ"}
|
package/Radio/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Icon as PhosphorIcon } from '@phosphor-icons/react';
|
|
2
|
+
export interface SegmentControlOption {
|
|
3
|
+
/** Unique identifier for the option */
|
|
4
|
+
value: string;
|
|
5
|
+
/** Display label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Optional leading icon */
|
|
8
|
+
icon?: PhosphorIcon;
|
|
9
|
+
}
|
|
10
|
+
export interface SegmentControlProps {
|
|
11
|
+
/** Array of 2–5 options to display */
|
|
12
|
+
options: SegmentControlOption[];
|
|
13
|
+
/** Currently selected value */
|
|
14
|
+
value: string;
|
|
15
|
+
/** Callback fired when the user selects a different option */
|
|
16
|
+
onChange: (value: string) => void;
|
|
17
|
+
/** Disables all interaction */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Additional class names for the wrapper */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** aria-label for the group when no surrounding label is present */
|
|
22
|
+
'aria-label'?: string;
|
|
23
|
+
/** aria-labelledby pointing to an external label element */
|
|
24
|
+
'aria-labelledby'?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function SegmentControl({ options, value, onChange, disabled, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SegmentControlProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
//# sourceMappingURL=SegmentControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentControl.d.ts","sourceRoot":"","sources":["../../src/SegmentControl/SegmentControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIlE,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,sCAAsC;IACtC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAgB,EAChB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,GAClC,EAAE,mBAAmB,2CAuErB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/SegmentControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PhosphorIcon } from '@phosphor-icons/react';
|
|
3
|
+
export type SelectSize = 'large' | 'medium' | 'small' | 'xsmall';
|
|
4
|
+
export type SelectState = 'default' | 'hover' | 'focus' | 'error' | 'disabled';
|
|
5
|
+
export type SelectHintType = 'default' | 'danger' | 'success' | 'warning';
|
|
6
|
+
export interface SelectOption {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SelectProps {
|
|
12
|
+
/** Current selected value (controlled). */
|
|
13
|
+
value?: string;
|
|
14
|
+
/** Default value for uncontrolled usage. */
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
/** Available options. */
|
|
17
|
+
options?: SelectOption[];
|
|
18
|
+
/** Field label shown above the trigger. */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Placeholder shown when no option is selected. */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Component size. */
|
|
23
|
+
size?: SelectSize;
|
|
24
|
+
/** Explicit state override (useful for design demos). */
|
|
25
|
+
state?: SelectState;
|
|
26
|
+
/** Whether the field is disabled. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/** Whether the field has an error state. */
|
|
29
|
+
error?: boolean;
|
|
30
|
+
/** Hint text shown below the trigger. */
|
|
31
|
+
hint?: string;
|
|
32
|
+
/** Hint type — controls hint text colour. */
|
|
33
|
+
hintType?: SelectHintType;
|
|
34
|
+
/** Optional leading icon. */
|
|
35
|
+
leadingIcon?: PhosphorIcon;
|
|
36
|
+
/** Callback fired when the selected value changes. */
|
|
37
|
+
onChange?: (value: string) => void;
|
|
38
|
+
/** Additional className for the wrapper. */
|
|
39
|
+
className?: string;
|
|
40
|
+
/** id forwarded to the trigger button. */
|
|
41
|
+
id?: string;
|
|
42
|
+
/** aria-label for the trigger when no label is provided. */
|
|
43
|
+
'aria-label'?: string;
|
|
44
|
+
/** Inline styles applied to the wrapper (ex.: restringir a largura). */
|
|
45
|
+
style?: React.CSSProperties;
|
|
46
|
+
}
|
|
47
|
+
export declare function Select({ value: valueProp, defaultValue, options, label, placeholder, size, state, disabled, error, hint, hintType, leadingIcon, onChange, className, id: idProp, 'aria-label': ariaLabel, style, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMlE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AACjE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1E,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,C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AAE,WAAW,2CAwMb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type SkeletonVariant = 'text' | 'rect' | 'circle';
|
|
3
|
+
export interface SkeletonProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Shape of the placeholder. */
|
|
5
|
+
variant?: SkeletonVariant;
|
|
6
|
+
/** Width — number (px) or any CSS length. Default comes from the variant. */
|
|
7
|
+
width?: number | string;
|
|
8
|
+
/** Height — number (px) or any CSS length. Default comes from the variant. */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
/** Border-radius override — number (px) or any CSS length. */
|
|
11
|
+
radius?: number | string;
|
|
12
|
+
/** Whether to play the pulse animation (default true). */
|
|
13
|
+
animated?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Decorative loading placeholder. It is `aria-hidden` by default — mark the
|
|
17
|
+
* surrounding region with `aria-busy="true"` so assistive tech announces the
|
|
18
|
+
* loading state instead of the empty boxes.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Skeleton({ variant, width, height, radius, animated, className, style, ...props }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
/** Number of text lines to render (default 3). */
|
|
23
|
+
lines?: number;
|
|
24
|
+
/** Width of the last line — shorter looks more natural (default '60%'). */
|
|
25
|
+
lastLineWidth?: number | string;
|
|
26
|
+
/** Gap between lines — number (px) or any CSS length (default 8). */
|
|
27
|
+
gap?: number | string;
|
|
28
|
+
/** Whether to play the pulse animation (default true). */
|
|
29
|
+
animated?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** Stacked text lines, with a shorter final line for a natural look. */
|
|
32
|
+
export declare function SkeletonText({ lines, lastLineWidth, gap, animated, className, style, ...props }: SkeletonTextProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export interface SkeletonAvatarProps extends Omit<SkeletonProps, 'variant' | 'width' | 'height'> {
|
|
34
|
+
/** Diameter — number (px) or any CSS length (default 40). */
|
|
35
|
+
size?: number | string;
|
|
36
|
+
}
|
|
37
|
+
/** Circular placeholder for an avatar / profile image. */
|
|
38
|
+
export declare function SkeletonAvatar({ size, ...rest }: SkeletonAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../src/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC1E,gCAAgC;IAChC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAaD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAgB,EAChB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAe,EACf,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,2CA0Bf;AAID,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,qEAAqE;IACrE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,EAC3B,KAAS,EACT,aAAqB,EACrB,GAAO,EACP,QAAe,EACf,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,iBAAiB,2CAuBnB;AAID,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC3D,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,0DAA0D;AAC1D,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAEzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACvE,YAAY,EACV,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface SliderProps {
|
|
2
|
+
/** Current value (controlled). */
|
|
3
|
+
value?: number;
|
|
4
|
+
/** Default value for uncontrolled usage. */
|
|
5
|
+
defaultValue?: number;
|
|
6
|
+
/** Minimum value. Defaults to 0. */
|
|
7
|
+
min?: number;
|
|
8
|
+
/** Maximum value. Defaults to 100. */
|
|
9
|
+
max?: number;
|
|
10
|
+
/** Step increment. Defaults to 1. */
|
|
11
|
+
step?: number;
|
|
12
|
+
/** Show numeric input fields above the track. */
|
|
13
|
+
showUpperFields?: boolean;
|
|
14
|
+
/** Show numeric input fields below the track. */
|
|
15
|
+
showBottomFields?: boolean;
|
|
16
|
+
/** Disabled state — opacity 0.5, not interactive. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Accessible label for the slider. */
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
/** ID of an element that labels the slider. */
|
|
21
|
+
'aria-labelledby'?: string;
|
|
22
|
+
/** Called when the value changes. */
|
|
23
|
+
onChange?: (value: number) => void;
|
|
24
|
+
/** Additional class name applied to the root wrapper. */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function Slider({ value, defaultValue, min, max, step, showUpperFields, showBottomFields, disabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, onChange, className, }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../src/Slider/Slider.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,YAAgB,EAChB,GAAO,EACP,GAAS,EACT,IAAQ,EACR,eAAuB,EACvB,gBAAwB,EACxB,QAAgB,EAChB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,QAAQ,EACR,SAAS,GACV,EAAE,WAAW,2CAsHb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/Slot/Slot.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PhosphorIcon } from '@phosphor-icons/react';
|
|
3
|
+
export interface SlotProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Content to render inside the slot.
|
|
6
|
+
* When provided, the placeholder indicator is hidden and children
|
|
7
|
+
* fill the slot area directly.
|
|
8
|
+
*/
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Icon shown in the empty-state indicator badge.
|
|
12
|
+
* Defaults to BoxArrowUp (matches the Figma Slot placeholder).
|
|
13
|
+
*/
|
|
14
|
+
placeholderIcon?: PhosphorIcon;
|
|
15
|
+
/**
|
|
16
|
+
* Label shown next to the icon in the empty-state indicator.
|
|
17
|
+
* Defaults to "Slot".
|
|
18
|
+
*/
|
|
19
|
+
placeholderLabel?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function Slot({ children, placeholderIcon, placeholderLabel, className, ...props }: SlotProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=Slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../src/Slot/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAKlE,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,eAAe,EACf,gBAAyB,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,SAAS,2CA0BX"}
|
package/Slot/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Slot/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
3
|
+
/** Whether the switch is toggled on */
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
/** Default checked state for uncontrolled usage */
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
/** Callback when the user toggles the switch */
|
|
8
|
+
onChange?: (checked: boolean) => void;
|
|
9
|
+
/** Optional label text rendered beside the track */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function Switch({ checked, defaultChecked, onChange, label, disabled, className, id: idProp, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../src/Switch/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAGrC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IACvE,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,cAAsB,EACtB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,EAAE,EAAE,MAAM,EACV,GAAG,KAAK,EACT,EAAE,WAAW,2CAqCb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/Table/Table.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PhosphorIcon } from '@phosphor-icons/react';
|
|
3
|
+
import { ActionMenuItemConfig } from '../ActionMenu/index.js';
|
|
4
|
+
import { TagStyle, TagSize, TagType } from '../Tag/index.js';
|
|
5
|
+
import { IconButtonVariant, IconButtonSize } from '../IconButton/index.js';
|
|
6
|
+
import { ButtonVariant, ButtonSize } from '../Button/index.js';
|
|
7
|
+
export interface TagCellConfig {
|
|
8
|
+
label: string;
|
|
9
|
+
tagStyle?: TagStyle;
|
|
10
|
+
tagType?: TagType;
|
|
11
|
+
size?: TagSize;
|
|
12
|
+
}
|
|
13
|
+
export interface IconButtonCellConfig {
|
|
14
|
+
icon: PhosphorIcon;
|
|
15
|
+
'aria-label': string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
variant?: IconButtonVariant;
|
|
19
|
+
size?: IconButtonSize;
|
|
20
|
+
}
|
|
21
|
+
export interface ButtonCellConfig {
|
|
22
|
+
label: string;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
variant?: ButtonVariant;
|
|
25
|
+
size?: ButtonSize;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export type TableSortDirection = 'asc' | 'desc' | 'none';
|
|
29
|
+
export type TableColumnType = 'text' | 'tag' | 'icon-button' | 'actions' | 'button' | 'slot' | 'custom';
|
|
30
|
+
export interface TableColumn<T = Record<string, unknown>> {
|
|
31
|
+
key: string;
|
|
32
|
+
header: string;
|
|
33
|
+
sortable?: boolean;
|
|
34
|
+
showHelp?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Column cell type. Determines which design system component renders cell content.
|
|
37
|
+
* - 'text' → plain text (default)
|
|
38
|
+
* - 'tag' → <Tag> component (requires tagConfig)
|
|
39
|
+
* - 'icon-button' → single <IconButton> (requires iconButtonConfig)
|
|
40
|
+
* - 'actions' → one or more <IconButton> in a row (requires iconButtonConfig)
|
|
41
|
+
* - 'button' → <Button> (requires buttonConfig)
|
|
42
|
+
* - 'slot' → <Slot> (requires accessor returning slot content)
|
|
43
|
+
* - 'custom' → any ReactNode via accessor
|
|
44
|
+
*/
|
|
45
|
+
type?: TableColumnType;
|
|
46
|
+
/** For type='tag' — returns tag config per row. */
|
|
47
|
+
tagConfig?: (row: T) => TagCellConfig;
|
|
48
|
+
/** For type='icon-button' or 'actions' — returns one or more icon button configs. */
|
|
49
|
+
iconButtonConfig?: (row: T) => IconButtonCellConfig | IconButtonCellConfig[];
|
|
50
|
+
/** For type='button' — returns button config per row. */
|
|
51
|
+
buttonConfig?: (row: T) => ButtonCellConfig;
|
|
52
|
+
/** For type='text', 'slot', or 'custom' — accessor function or key of T. */
|
|
53
|
+
accessor?: ((row: T) => React.ReactNode) | keyof T;
|
|
54
|
+
minWidth?: number;
|
|
55
|
+
width?: number;
|
|
56
|
+
align?: 'left' | 'center' | 'right';
|
|
57
|
+
}
|
|
58
|
+
export interface TableProps<T = Record<string, unknown>> {
|
|
59
|
+
data: T[];
|
|
60
|
+
columns: TableColumn<T>[];
|
|
61
|
+
rowKey: (row: T, index: number) => string | number;
|
|
62
|
+
selectable?: boolean;
|
|
63
|
+
selectedKeys?: Set<string | number>;
|
|
64
|
+
onSelectionChange?: (keys: Set<string | number>) => void;
|
|
65
|
+
/**
|
|
66
|
+
* When provided, renders a leading "actions" column: a gear button per row
|
|
67
|
+
* that opens an <ActionMenu> with the items returned for that row. The column
|
|
68
|
+
* is placed first, or right after the checkbox column when `selectable`.
|
|
69
|
+
*/
|
|
70
|
+
rowActions?: (row: T) => ActionMenuItemConfig[];
|
|
71
|
+
/** Header label for the actions column (default "Ações"). */
|
|
72
|
+
rowActionsLabel?: string;
|
|
73
|
+
/** When true, renders skeleton placeholder rows instead of the data. */
|
|
74
|
+
loading?: boolean;
|
|
75
|
+
/** Number of skeleton rows to render while loading (default 5). */
|
|
76
|
+
loadingRows?: number;
|
|
77
|
+
sortKey?: string;
|
|
78
|
+
sortDirection?: TableSortDirection;
|
|
79
|
+
onSortChange?: (key: string, direction: TableSortDirection) => void;
|
|
80
|
+
showFooter?: boolean;
|
|
81
|
+
footerText?: string;
|
|
82
|
+
showPaginator?: boolean;
|
|
83
|
+
currentPage?: number;
|
|
84
|
+
totalPages?: number;
|
|
85
|
+
pageSize?: 10 | 20 | 30 | 50 | 100;
|
|
86
|
+
onPageChange?: (page: number) => void;
|
|
87
|
+
onPageSizeChange?: (pageSize: 10 | 20 | 30 | 50 | 100) => void;
|
|
88
|
+
showScrollbar?: boolean;
|
|
89
|
+
className?: string;
|
|
90
|
+
'aria-label'?: string;
|
|
91
|
+
'aria-labelledby'?: string;
|
|
92
|
+
}
|
|
93
|
+
export declare function Table<T = Record<string, unknown>>({ data, columns, rowKey, selectable, selectedKeys, onSelectionChange, rowActions, rowActionsLabel, loading, loadingRows, sortKey, sortDirection, onSortChange, showFooter, footerText, showPaginator, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, showScrollbar, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AACjF,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAUlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOpE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC;I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C;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IACnC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC;IAE/D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAuBD,wBAAgB,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACjD,IAAI,EACJ,OAAO,EACP,MAAM,EACN,UAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,eAAyB,EACzB,OAAe,EACf,WAAe,EACf,OAAO,EACP,aAAsB,EACtB,YAAY,EACZ,UAAiB,EACjB,UAAU,EACV,aAAoB,EACpB,WAAe,EACf,UAAc,EACd,QAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAoB,EACpB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,GAClC,EAAE,UAAU,CAAC,CAAC,CAAC,2CAwVf"}
|
package/Table/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,YAAY,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PaginatorPageSize } from '../Paginator/index.js';
|
|
3
|
+
export interface TableTreeColumn<T = Record<string, unknown>> {
|
|
4
|
+
/** Unique column key. Must match a key on the data row object. */
|
|
5
|
+
key: string;
|
|
6
|
+
/** Header label shown in the column head cell. */
|
|
7
|
+
header: string;
|
|
8
|
+
/** Minimum column width in px. Defaults to 80. */
|
|
9
|
+
minWidth?: number;
|
|
10
|
+
/** Whether the column header should appear sortable. */
|
|
11
|
+
sortable?: boolean;
|
|
12
|
+
/** Custom cell renderer. Receives the row data and must return React content. */
|
|
13
|
+
render?: (row: T, rowIndex: number) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface TableTreeRow<T = Record<string, unknown>> {
|
|
16
|
+
/** Unique row identifier. */
|
|
17
|
+
id: string | number;
|
|
18
|
+
/** Row data — keys should correspond to column keys. */
|
|
19
|
+
data: T;
|
|
20
|
+
/** Whether this row is selected. */
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Content shown in the expanded area beneath the row.
|
|
24
|
+
* When provided an expand toggle button is rendered.
|
|
25
|
+
* Can be a ReactNode (static) or a function receiving the row data (dynamic).
|
|
26
|
+
*/
|
|
27
|
+
expandedContent?: React.ReactNode | ((data: T) => React.ReactNode);
|
|
28
|
+
/**
|
|
29
|
+
* Whether the row starts expanded. Only used for uncontrolled mode.
|
|
30
|
+
* Defaults to false.
|
|
31
|
+
*/
|
|
32
|
+
defaultExpanded?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface TableTreeProps<T = Record<string, unknown>> {
|
|
35
|
+
/** Column definitions. */
|
|
36
|
+
columns: TableTreeColumn<T>[];
|
|
37
|
+
/** Row data with optional expanded content. */
|
|
38
|
+
rows: TableTreeRow<T>[];
|
|
39
|
+
/** Called when a column header sort button is clicked. */
|
|
40
|
+
onSort?: (columnKey: string) => void;
|
|
41
|
+
/** Called when a row expand toggle is clicked. */
|
|
42
|
+
onToggleExpand?: (rowId: string | number, expanded: boolean) => void;
|
|
43
|
+
/** Called when a row is clicked. */
|
|
44
|
+
onRowClick?: (row: TableTreeRow<T>) => void;
|
|
45
|
+
/** Whether to show the footer (paginator + record count). Defaults to false. */
|
|
46
|
+
showFooter?: boolean;
|
|
47
|
+
/** Total number of records. Used for the record-count label. */
|
|
48
|
+
totalRecords?: number;
|
|
49
|
+
/** Current page (1-based). */
|
|
50
|
+
currentPage?: number;
|
|
51
|
+
/** Total number of pages. */
|
|
52
|
+
totalPages?: number;
|
|
53
|
+
/** Current page size. */
|
|
54
|
+
pageSize?: PaginatorPageSize;
|
|
55
|
+
/** Called when the user navigates to a different page. */
|
|
56
|
+
onPageChange?: (page: number) => void;
|
|
57
|
+
/** Called when the user selects a different page size. */
|
|
58
|
+
onPageSizeChange?: (pageSize: PaginatorPageSize) => void;
|
|
59
|
+
/** Optional extra CSS class for the root element. */
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Whether the entire table is disabled. */
|
|
62
|
+
disabled?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export declare function TableTree<T = Record<string, unknown>>({ columns, rows, onSort, onToggleExpand, onRowClick, showFooter, totalRecords, currentPage, totalPages, pageSize, onPageChange, onPageSizeChange, className, disabled, }: TableTreeProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
//# sourceMappingURL=TableTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableTree.d.ts","sourceRoot":"","sources":["../../src/TableTree/TableTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAI/D,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1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,IAAI,CAAC;IAG5C,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,0DAA0D;IAC1D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAEzD,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAuBD,wBAAgB,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACrD,OAAO,EACP,IAAI,EACJ,MAAM,EACN,cAAc,EACd,UAAU,EACV,UAAkB,EAClB,YAAY,EACZ,WAAe,EACf,UAAc,EACd,QAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,QAAgB,GACjB,EAAE,cAAc,CAAC,CAAC,CAAC,2CAuLnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TableTree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
package/Tabs/Tabs.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Icon as PhosphorIcon } from '@phosphor-icons/react';
|
|
3
|
+
export interface TabItem {
|
|
4
|
+
/** Unique identifier for the tab */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Visible label text */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Optional leading icon */
|
|
9
|
+
leadingIcon?: PhosphorIcon;
|
|
10
|
+
/** Whether the tab is disabled */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Panel content to render when this tab is active */
|
|
13
|
+
content?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface TabsProps {
|
|
16
|
+
/** Array of tab definitions */
|
|
17
|
+
tabs: TabItem[];
|
|
18
|
+
/** Currently selected tab value (controlled) */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Default selected tab value (uncontrolled) */
|
|
21
|
+
defaultValue?: string;
|
|
22
|
+
/** Callback fired when the selected tab changes */
|
|
23
|
+
onChange?: (value: string) => void;
|
|
24
|
+
/** Additional class names for the tab list wrapper */
|
|
25
|
+
className?: string;
|
|
26
|
+
/** aria-label for the tablist */
|
|
27
|
+
'aria-label'?: string;
|
|
28
|
+
/** aria-labelledby for the tablist */
|
|
29
|
+
'aria-labelledby'?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function Tabs({ tabs, value: controlledValue, defaultValue, onChange, className, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../src/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMlE,MAAM,WAAW,OAAO;IACtB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,+BAA+B;IAC/B,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,GAClC,EAAE,SAAS,2CA+FX"}
|
package/Tabs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
package/Tag/Tag.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TagStyle = 'filled' | 'outline';
|
|
3
|
+
export type TagSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
4
|
+
export type TagType = 'danger' | 'success' | 'warning' | 'neutral' | 'brand';
|
|
5
|
+
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
6
|
+
/** Visual style of the tag */
|
|
7
|
+
tagStyle?: TagStyle;
|
|
8
|
+
/** Size of the tag */
|
|
9
|
+
size?: TagSize;
|
|
10
|
+
/** Semantic type/color of the tag */
|
|
11
|
+
type?: TagType;
|
|
12
|
+
/** Text label displayed inside the tag */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Whether the tag is disabled */
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function Tag({ tagStyle, size, type, label, disabled, className, children, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Tag.d.ts.map
|
package/Tag/Tag.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../src/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC5C,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IACrE,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAsBD,wBAAgB,GAAG,CAAC,EAClB,QAAmB,EACnB,IAAe,EACf,IAAgB,EAChB,KAAgB,EAChB,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,QAAQ,2CAoBV"}
|
package/Tag/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TextFieldState = 'default' | 'danger' | 'success';
|
|
3
|
+
export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'id'> {
|
|
4
|
+
/** Field label text */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Whether the label is visible */
|
|
7
|
+
showLabel?: boolean;
|
|
8
|
+
/** Hint / helper text displayed below the field */
|
|
9
|
+
hint?: string;
|
|
10
|
+
/** Visual validation state */
|
|
11
|
+
state?: TextFieldState;
|
|
12
|
+
/** ID for the input element (auto-generated if omitted) */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Additional class name for the root element */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function TextField({ label, showLabel, hint, state, id: idProp, disabled, className, ...inputProps }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../src/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAKrC,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAC/D,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA0BD,wBAAgB,SAAS,CAAC,EACxB,KAAe,EACf,SAAgB,EAChB,IAAI,EACJ,KAAiB,EACjB,EAAE,EAAE,MAAM,EACV,QAAgB,EAChB,SAAS,EACT,GAAG,UAAU,EACd,EAAE,cAAc,2CAuEhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TextareaState = 'default' | 'danger' | 'success';
|
|
3
|
+
export interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'className'> {
|
|
4
|
+
/** Visual / validation state */
|
|
5
|
+
state?: TextareaState;
|
|
6
|
+
/** Label rendered above the field */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Hint text rendered below the field */
|
|
9
|
+
hint?: string;
|
|
10
|
+
/** Whether to show the hint row */
|
|
11
|
+
showHint?: boolean;
|
|
12
|
+
/** Whether to show the label row */
|
|
13
|
+
showLabel?: boolean;
|
|
14
|
+
/** Extra className applied to the root wrapper */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Textarea({ state, label, hint, showHint, showLabel, className, disabled, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../src/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE7D,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,WAAW,CAAC;IAC5E,gCAAgC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAiB,EACjB,KAAK,EACL,IAAI,EACJ,QAAe,EACf,SAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,2CA0Df"}
|