@aiaiai-pt/design-system 0.3.5 → 0.3.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.
Files changed (52) hide show
  1. package/components/Alert.svelte.d.ts +35 -0
  2. package/components/Badge.svelte.d.ts +31 -0
  3. package/components/BottomNav.svelte.d.ts +26 -0
  4. package/components/BottomNavItem.svelte.d.ts +39 -0
  5. package/components/Button.svelte.d.ts +58 -0
  6. package/components/Card.svelte.d.ts +36 -0
  7. package/components/CardGrid.svelte.d.ts +42 -0
  8. package/components/Checkbox.svelte.d.ts +33 -0
  9. package/components/CodeBlock.svelte.d.ts +43 -0
  10. package/components/CodeEditor.svelte.d.ts +41 -0
  11. package/components/CollapsibleSection.svelte.d.ts +43 -0
  12. package/components/Combobox.svelte.d.ts +60 -0
  13. package/components/CommandPalette.svelte.d.ts +69 -0
  14. package/components/ConditionTable.svelte.d.ts +61 -0
  15. package/components/EmptyState.svelte.d.ts +54 -0
  16. package/components/FileUpload.svelte.d.ts +47 -0
  17. package/components/FileUploadItem.svelte.d.ts +40 -0
  18. package/components/FilterBar.svelte.d.ts +62 -0
  19. package/components/Input.svelte.d.ts +56 -0
  20. package/components/KeyValue.svelte.d.ts +34 -0
  21. package/components/Label.svelte.d.ts +29 -0
  22. package/components/List.svelte.d.ts +36 -0
  23. package/components/ListItem.svelte.d.ts +46 -0
  24. package/components/LogViewer.svelte.d.ts +56 -0
  25. package/components/Menu.svelte.d.ts +44 -0
  26. package/components/MenuItem.svelte.d.ts +47 -0
  27. package/components/MenuSeparator.svelte.d.ts +24 -0
  28. package/components/Modal.svelte.d.ts +46 -0
  29. package/components/OptionGrid.svelte.d.ts +40 -0
  30. package/components/PageContainer.svelte.d.ts +45 -0
  31. package/components/Panel.svelte.d.ts +52 -0
  32. package/components/Popover.svelte.d.ts +43 -0
  33. package/components/Progress.svelte.d.ts +29 -0
  34. package/components/SearchInput.svelte.d.ts +64 -0
  35. package/components/Select.svelte.d.ts +47 -0
  36. package/components/Separator.svelte.d.ts +27 -0
  37. package/components/Sidebar.svelte.d.ts +38 -0
  38. package/components/SidebarItem.svelte.d.ts +48 -0
  39. package/components/SidebarSection.svelte.d.ts +23 -0
  40. package/components/Skeleton.svelte.d.ts +34 -0
  41. package/components/Status.svelte.d.ts +31 -0
  42. package/components/Stepper.svelte.d.ts +26 -0
  43. package/components/Tab.svelte.d.ts +30 -0
  44. package/components/TabList.svelte.d.ts +25 -0
  45. package/components/TabPanel.svelte.d.ts +27 -0
  46. package/components/Tabs.svelte.d.ts +31 -0
  47. package/components/Tag.svelte.d.ts +29 -0
  48. package/components/Textarea.svelte.d.ts +42 -0
  49. package/components/Toast.svelte.d.ts +38 -0
  50. package/components/Toggle.svelte.d.ts +33 -0
  51. package/components/index.d.ts +49 -0
  52. package/package.json +13 -1
@@ -0,0 +1,52 @@
1
+ export default Panel;
2
+ type Panel = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Panel
8
+ *
9
+ * Slide-over drawer surface. Opens from the left or right edge.
10
+ * Consumes --panel-* tokens from components.css.
11
+ *
12
+ * @example Right (default)
13
+ * <Panel open={showEditor} title="Edit Step" onclose={() => showEditor = false}>
14
+ * Panel content here
15
+ * </Panel>
16
+ *
17
+ * @example Left side
18
+ * <Panel open side="left" title="History" onclose={() => showHistory = false}>
19
+ * Navigation content
20
+ * </Panel>
21
+ *
22
+ * @example Persistent (no backdrop, inline layout)
23
+ * <Panel open persistent side="left" title="History">
24
+ * Always-visible sidebar content
25
+ * </Panel>
26
+ */
27
+ declare const Panel: import("svelte").Component<{
28
+ open?: boolean;
29
+ title: any;
30
+ width?: string;
31
+ side?: string;
32
+ persistent?: boolean;
33
+ scrollBody?: boolean;
34
+ onclose: any;
35
+ class?: string;
36
+ header?: any;
37
+ children?: any;
38
+ footer?: any;
39
+ } & Record<string, any>, {}, "">;
40
+ type $$ComponentProps = {
41
+ open?: boolean;
42
+ title: any;
43
+ width?: string;
44
+ side?: string;
45
+ persistent?: boolean;
46
+ scrollBody?: boolean;
47
+ onclose: any;
48
+ class?: string;
49
+ header?: any;
50
+ children?: any;
51
+ footer?: any;
52
+ } & Record<string, any>;
@@ -0,0 +1,43 @@
1
+ export default Popover;
2
+ type Popover = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Popover
8
+ *
9
+ * Positioned floating content anchored to a trigger element.
10
+ * Uses position: fixed + JS positioning (no CSS Anchor).
11
+ * Consumes --popover-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <button bind:this={anchor} onclick={() => open = !open}>Options</button>
15
+ * <Popover bind:open {anchor} placement="bottom-start">
16
+ * <p>Popover content</p>
17
+ * </Popover>
18
+ *
19
+ * @example Match trigger width
20
+ * <Popover bind:open {anchor} matchWidth>
21
+ * <ul>...</ul>
22
+ * </Popover>
23
+ */
24
+ declare const Popover: import("svelte").Component<{
25
+ open?: boolean;
26
+ anchor?: any;
27
+ placement?: string;
28
+ offset?: number;
29
+ matchWidth?: boolean;
30
+ onclose?: any;
31
+ class?: string;
32
+ children?: any;
33
+ } & Record<string, any>, {}, "open">;
34
+ type $$ComponentProps = {
35
+ open?: boolean;
36
+ anchor?: any;
37
+ placement?: string;
38
+ offset?: number;
39
+ matchWidth?: boolean;
40
+ onclose?: any;
41
+ class?: string;
42
+ children?: any;
43
+ } & Record<string, any>;
@@ -0,0 +1,29 @@
1
+ export default Progress;
2
+ type Progress = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Progress
8
+ *
9
+ * Determinate or indeterminate progress bar.
10
+ * Consumes --progress-* tokens from components.css.
11
+ *
12
+ * @example Determinate
13
+ * <Progress value={65} />
14
+ *
15
+ * @example Indeterminate
16
+ * <Progress indeterminate />
17
+ */
18
+ declare const Progress: import("svelte").Component<{
19
+ value?: number;
20
+ max?: number;
21
+ indeterminate?: boolean;
22
+ class?: string;
23
+ } & Record<string, any>, {}, "">;
24
+ type $$ComponentProps = {
25
+ value?: number;
26
+ max?: number;
27
+ indeterminate?: boolean;
28
+ class?: string;
29
+ } & Record<string, any>;
@@ -0,0 +1,64 @@
1
+ export default SearchInput;
2
+ type SearchInput = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * SearchInput
8
+ *
9
+ * Text input optimized for search with built-in icon, clear button,
10
+ * debounced callback, optional keyboard shortcut hint, and loading state.
11
+ * Extends the Input token system (--input-*) with search-specific tokens (--search-*).
12
+ *
13
+ * @example Basic
14
+ * <SearchInput placeholder="Search transforms..." onsearch={handleSearch} />
15
+ *
16
+ * @example With shortcut hint
17
+ * <SearchInput placeholder="Search..." shortcutHint="⌘K" onsearch={handleSearch} />
18
+ *
19
+ * @example Loading state
20
+ * <SearchInput placeholder="Search..." loading={true} onsearch={handleSearch} />
21
+ *
22
+ * @example Collapsible (for toolbars / mobile)
23
+ * <SearchInput collapsible placeholder="Search..." onsearch={handleSearch} />
24
+ *
25
+ * @example Inside a modal (preserve value on Escape)
26
+ * <SearchInput holdValueOnEscape placeholder="Search..." onsearch={handleSearch} />
27
+ *
28
+ * @example No debounce (instant)
29
+ * <SearchInput debounce={0} onsearch={handleSearch} />
30
+ */
31
+ declare const SearchInput: import("svelte").Component<{
32
+ value?: string;
33
+ placeholder?: string;
34
+ size?: string;
35
+ debounce?: number;
36
+ loading?: boolean;
37
+ collapsible?: boolean;
38
+ shortcutHint?: any;
39
+ holdValueOnEscape?: boolean;
40
+ disabled?: boolean;
41
+ label?: string;
42
+ id?: any;
43
+ class?: string;
44
+ oninput?: any;
45
+ onsearch?: any;
46
+ onclear?: any;
47
+ } & Record<string, any>, {}, "value">;
48
+ type $$ComponentProps = {
49
+ value?: string;
50
+ placeholder?: string;
51
+ size?: string;
52
+ debounce?: number;
53
+ loading?: boolean;
54
+ collapsible?: boolean;
55
+ shortcutHint?: any;
56
+ holdValueOnEscape?: boolean;
57
+ disabled?: boolean;
58
+ label?: string;
59
+ id?: any;
60
+ class?: string;
61
+ oninput?: any;
62
+ onsearch?: any;
63
+ onclear?: any;
64
+ } & Record<string, any>;
@@ -0,0 +1,47 @@
1
+ export default Select;
2
+ type Select = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Select
8
+ *
9
+ * Native select with label, help text, and error state.
10
+ * Consumes --input-* tokens from components.css.
11
+ *
12
+ * Usage patterns:
13
+ * - Two-way binding: `<Select bind:value={myVar} options={opts} />`
14
+ * - Controlled: `<Select value={myVar} onchange={(val) => myVar = val} options={opts} />`
15
+ *
16
+ * @example
17
+ * <Select label="COUNTRY" placeholder="Select a country" options={[
18
+ * { value: 'pt', label: 'Portugal' },
19
+ * { value: 'br', label: 'Brazil' },
20
+ * ]} />
21
+ */
22
+ declare const Select: import("svelte").Component<{
23
+ label?: any;
24
+ placeholder?: any;
25
+ value?: any;
26
+ options?: any[];
27
+ onchange?: any;
28
+ help?: any;
29
+ error?: any;
30
+ size?: string;
31
+ disabled?: boolean;
32
+ id?: any;
33
+ class?: string;
34
+ } & Record<string, any>, {}, "value">;
35
+ type $$ComponentProps = {
36
+ label?: any;
37
+ placeholder?: any;
38
+ value?: any;
39
+ options?: any[];
40
+ onchange?: any;
41
+ help?: any;
42
+ error?: any;
43
+ size?: string;
44
+ disabled?: boolean;
45
+ id?: any;
46
+ class?: string;
47
+ } & Record<string, any>;
@@ -0,0 +1,27 @@
1
+ export default Separator;
2
+ type Separator = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Separator
8
+ *
9
+ * Visual divider between content sections.
10
+ * Consumes --separator-* tokens from components.css.
11
+ *
12
+ * @example Horizontal
13
+ * <Separator />
14
+ *
15
+ * @example Vertical (inside a flex row)
16
+ * <Separator orientation="vertical" />
17
+ */
18
+ declare const Separator: import("svelte").Component<{
19
+ orientation?: string;
20
+ decorative?: boolean;
21
+ class?: string;
22
+ } & Record<string, any>, {}, "">;
23
+ type $$ComponentProps = {
24
+ orientation?: string;
25
+ decorative?: boolean;
26
+ class?: string;
27
+ } & Record<string, any>;
@@ -0,0 +1,38 @@
1
+ export default Sidebar;
2
+ type Sidebar = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Sidebar
8
+ *
9
+ * Vertical navigation container with collapsible support.
10
+ * Children (SidebarItem, SidebarSection) read collapsed state via context.
11
+ * Consumes --nav-sidebar-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <Sidebar bind:collapsed>
15
+ * {#snippet header()}
16
+ * <span class="type-label">AIAIAI</span>
17
+ * {/snippet}
18
+ * <SidebarSection title="WORKSPACE" />
19
+ * <SidebarItem href="/dashboard" active>
20
+ * {#snippet icon()}<DashboardIcon />{/snippet}
21
+ * DASHBOARD
22
+ * </SidebarItem>
23
+ * </Sidebar>
24
+ */
25
+ declare const Sidebar: import("svelte").Component<{
26
+ collapsed?: boolean;
27
+ class?: string;
28
+ header?: any;
29
+ footer?: any;
30
+ children?: any;
31
+ } & Record<string, any>, {}, "collapsed">;
32
+ type $$ComponentProps = {
33
+ collapsed?: boolean;
34
+ class?: string;
35
+ header?: any;
36
+ footer?: any;
37
+ children?: any;
38
+ } & Record<string, any>;
@@ -0,0 +1,48 @@
1
+ export default SidebarItem;
2
+ type SidebarItem = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * SidebarItem
8
+ *
9
+ * Navigation item for use inside Sidebar.
10
+ * Reads collapsed state from Sidebar context — hides label and badge when collapsed.
11
+ * Consumes --nav-item-* tokens from components.css.
12
+ *
13
+ * @example Button
14
+ * <SidebarItem active onclick={() => navigate('/')}>
15
+ * {#snippet icon()}<svg>...</svg>{/snippet}
16
+ * DASHBOARD
17
+ * </SidebarItem>
18
+ *
19
+ * @example Link
20
+ * <SidebarItem href="/settings">
21
+ * {#snippet icon()}<svg>...</svg>{/snippet}
22
+ * SETTINGS
23
+ * </SidebarItem>
24
+ *
25
+ * @example With badge
26
+ * <SidebarItem href="/inbox" badge={3}>
27
+ * {#snippet icon()}<svg>...</svg>{/snippet}
28
+ * INBOX
29
+ * </SidebarItem>
30
+ */
31
+ declare const SidebarItem: import("svelte").Component<{
32
+ active?: boolean;
33
+ disabled?: boolean;
34
+ href?: any;
35
+ badge?: any;
36
+ class?: string;
37
+ icon?: any;
38
+ children?: any;
39
+ } & Record<string, any>, {}, "">;
40
+ type $$ComponentProps = {
41
+ active?: boolean;
42
+ disabled?: boolean;
43
+ href?: any;
44
+ badge?: any;
45
+ class?: string;
46
+ icon?: any;
47
+ children?: any;
48
+ } & Record<string, any>;
@@ -0,0 +1,23 @@
1
+ export default SidebarSection;
2
+ type SidebarSection = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * SidebarSection
8
+ *
9
+ * Section header for grouping sidebar items.
10
+ * Hidden when Sidebar is collapsed (reads context).
11
+ * Consumes --nav-section-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <SidebarSection title="WORKSPACE" />
15
+ */
16
+ declare const SidebarSection: import("svelte").Component<{
17
+ title: any;
18
+ class?: string;
19
+ } & Record<string, any>, {}, "">;
20
+ type $$ComponentProps = {
21
+ title: any;
22
+ class?: string;
23
+ } & Record<string, any>;
@@ -0,0 +1,34 @@
1
+ export default Skeleton;
2
+ type Skeleton = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Skeleton
8
+ *
9
+ * Loading placeholder with shimmer animation.
10
+ * Consumes --skeleton-* tokens from components.css.
11
+ *
12
+ * @example Text line
13
+ * <Skeleton width="80%" height="16px" />
14
+ *
15
+ * @example Circle (avatar)
16
+ * <Skeleton width="40px" height="40px" circle />
17
+ *
18
+ * @example Card
19
+ * <Skeleton width="100%" height="120px" radius="var(--radius-md)" />
20
+ */
21
+ declare const Skeleton: import("svelte").Component<{
22
+ width?: string;
23
+ height?: string;
24
+ circle?: boolean;
25
+ radius?: any;
26
+ class?: string;
27
+ } & Record<string, any>, {}, "">;
28
+ type $$ComponentProps = {
29
+ width?: string;
30
+ height?: string;
31
+ circle?: boolean;
32
+ radius?: any;
33
+ class?: string;
34
+ } & Record<string, any>;
@@ -0,0 +1,31 @@
1
+ export default Status;
2
+ type Status = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Status
8
+ *
9
+ * Colored indicator dot with label. Used for real-time status, health, presence.
10
+ * Consumes --status-* tokens from components.css.
11
+ *
12
+ * Dot shapes encode meaning: circle=success, triangle=warning, diamond=error, ring=inactive.
13
+ *
14
+ * @example
15
+ * <Status variant="success">ACTIVE</Status>
16
+ *
17
+ * @example Pulsing
18
+ * <Status variant="warning" pulse>DEGRADED</Status>
19
+ */
20
+ declare const Status: import("svelte").Component<{
21
+ variant?: string;
22
+ pulse?: boolean;
23
+ class?: string;
24
+ children?: any;
25
+ } & Record<string, any>, {}, "">;
26
+ type $$ComponentProps = {
27
+ variant?: string;
28
+ pulse?: boolean;
29
+ class?: string;
30
+ children?: any;
31
+ } & Record<string, any>;
@@ -0,0 +1,26 @@
1
+ export default Stepper;
2
+ type Stepper = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Stepper
8
+ *
9
+ * Horizontal step indicator for multi-step flows.
10
+ * Consumes --stepper-* tokens from components.css.
11
+ *
12
+ * @example
13
+ * <Stepper steps={[
14
+ * { label: 'Source', status: 'complete' },
15
+ * { label: 'Configure', status: 'active' },
16
+ * { label: 'Review', status: 'upcoming' },
17
+ * ]} />
18
+ */
19
+ declare const Stepper: import("svelte").Component<{
20
+ steps?: any[];
21
+ class?: string;
22
+ } & Record<string, any>, {}, "">;
23
+ type $$ComponentProps = {
24
+ steps?: any[];
25
+ class?: string;
26
+ } & Record<string, any>;
@@ -0,0 +1,30 @@
1
+ export default Tab;
2
+ type Tab = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Tab
8
+ *
9
+ * Individual tab trigger inside a TabList.
10
+ * Reads active state from Tabs context.
11
+ * Consumes --tabs-trigger-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <Tab value="overview">OVERVIEW</Tab>
15
+ *
16
+ * @example Disabled
17
+ * <Tab value="admin" disabled>ADMIN</Tab>
18
+ */
19
+ declare const Tab: import("svelte").Component<{
20
+ value: any;
21
+ disabled?: boolean;
22
+ class?: string;
23
+ children?: any;
24
+ } & Record<string, any>, {}, "">;
25
+ type $$ComponentProps = {
26
+ value: any;
27
+ disabled?: boolean;
28
+ class?: string;
29
+ children?: any;
30
+ } & Record<string, any>;
@@ -0,0 +1,25 @@
1
+ export default TabList;
2
+ type TabList = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * TabList
8
+ *
9
+ * Horizontal bar containing Tab triggers.
10
+ * Consumes --tabs-list-* tokens from components.css.
11
+ *
12
+ * @example
13
+ * <TabList>
14
+ * <Tab value="one">ONE</Tab>
15
+ * <Tab value="two">TWO</Tab>
16
+ * </TabList>
17
+ */
18
+ declare const TabList: import("svelte").Component<{
19
+ class?: string;
20
+ children?: any;
21
+ } & Record<string, any>, {}, "">;
22
+ type $$ComponentProps = {
23
+ class?: string;
24
+ children?: any;
25
+ } & Record<string, any>;
@@ -0,0 +1,27 @@
1
+ export default TabPanel;
2
+ type TabPanel = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * TabPanel
8
+ *
9
+ * Content panel shown when its matching Tab is active.
10
+ * Reads active state from Tabs context.
11
+ * Consumes --tabs-content-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <TabPanel value="overview">
15
+ * Overview content goes here.
16
+ * </TabPanel>
17
+ */
18
+ declare const TabPanel: import("svelte").Component<{
19
+ value: any;
20
+ class?: string;
21
+ children?: any;
22
+ } & Record<string, any>, {}, "">;
23
+ type $$ComponentProps = {
24
+ value: any;
25
+ class?: string;
26
+ children?: any;
27
+ } & Record<string, any>;
@@ -0,0 +1,31 @@
1
+ export default Tabs;
2
+ type Tabs = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Tabs
8
+ *
9
+ * Container for tabbed interface. Provides context to TabList, Tab, and TabPanel.
10
+ * Consumes --tabs-* tokens from components.css.
11
+ *
12
+ * @example
13
+ * <Tabs bind:value={activeTab}>
14
+ * <TabList>
15
+ * <Tab value="overview">OVERVIEW</Tab>
16
+ * <Tab value="settings">SETTINGS</Tab>
17
+ * </TabList>
18
+ * <TabPanel value="overview">Overview content</TabPanel>
19
+ * <TabPanel value="settings">Settings content</TabPanel>
20
+ * </Tabs>
21
+ */
22
+ declare const Tabs: import("svelte").Component<{
23
+ value?: string;
24
+ class?: string;
25
+ children?: any;
26
+ } & Record<string, any>, {}, "value">;
27
+ type $$ComponentProps = {
28
+ value?: string;
29
+ class?: string;
30
+ children?: any;
31
+ } & Record<string, any>;
@@ -0,0 +1,29 @@
1
+ export default Tag;
2
+ type Tag = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Tag
8
+ *
9
+ * Categorization label. Bordered, optionally removable.
10
+ * Consumes --tag-* tokens from components.css.
11
+ *
12
+ * @example
13
+ * <Tag>SVELTE</Tag>
14
+ *
15
+ * @example Removable
16
+ * <Tag removable onremove={() => console.log('removed')}>CSS</Tag>
17
+ */
18
+ declare const Tag: import("svelte").Component<{
19
+ removable?: boolean;
20
+ onremove?: any;
21
+ class?: string;
22
+ children?: any;
23
+ } & Record<string, any>, {}, "">;
24
+ type $$ComponentProps = {
25
+ removable?: boolean;
26
+ onremove?: any;
27
+ class?: string;
28
+ children?: any;
29
+ } & Record<string, any>;
@@ -0,0 +1,42 @@
1
+ export default Textarea;
2
+ type Textarea = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ /**
7
+ * Textarea
8
+ *
9
+ * Multi-line text input with label, help text, and error state.
10
+ * Values displayed in Berkeley Mono (data font).
11
+ * Consumes --input-* and --textarea-* tokens from components.css.
12
+ *
13
+ * @example
14
+ * <Textarea label="DESCRIPTION" placeholder="Enter a description..." rows={4} />
15
+ *
16
+ * @example With error
17
+ * <Textarea label="SQL QUERY" value="SELCT *" error="Syntax error near SELCT" />
18
+ */
19
+ declare const Textarea: import("svelte").Component<{
20
+ label?: any;
21
+ placeholder?: any;
22
+ value?: string;
23
+ help?: any;
24
+ error?: any;
25
+ rows?: number;
26
+ disabled?: boolean;
27
+ readonly?: boolean;
28
+ id?: any;
29
+ class?: string;
30
+ } & Record<string, any>, {}, "value">;
31
+ type $$ComponentProps = {
32
+ label?: any;
33
+ placeholder?: any;
34
+ value?: string;
35
+ help?: any;
36
+ error?: any;
37
+ rows?: number;
38
+ disabled?: boolean;
39
+ readonly?: boolean;
40
+ id?: any;
41
+ class?: string;
42
+ } & Record<string, any>;