@schandlergarcia/sf-web-components 1.0.2 → 1.0.4
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/dist/components/library/cards/ActionList.d.ts +11 -0
- package/dist/components/library/cards/ActivityCard.d.ts +5 -0
- package/dist/components/library/cards/BaseCard.d.ts +24 -0
- package/dist/components/library/cards/CalloutCard.d.ts +9 -0
- package/dist/components/library/cards/ChartCard.d.ts +17 -0
- package/dist/components/library/cards/FeedPanel.d.ts +11 -0
- package/dist/components/library/cards/ListCard.d.ts +20 -0
- package/dist/components/library/cards/MetricCard.d.ts +17 -0
- package/dist/components/library/cards/MetricsStrip.d.ts +13 -0
- package/dist/components/library/cards/SectionCard.d.ts +12 -0
- package/dist/components/library/cards/SemanticMetricCard.d.ts +20 -0
- package/dist/components/library/cards/SemanticMetricCardWithLoading.d.ts +7 -0
- package/dist/components/library/cards/SemanticTableCard.d.ts +18 -0
- package/dist/components/library/cards/SemanticTableCardWithLoading.d.ts +7 -0
- package/dist/components/library/cards/StatusCard.d.ts +15 -0
- package/dist/components/library/cards/TableCard.d.ts +23 -0
- package/dist/components/library/cards/WidgetCard.d.ts +11 -0
- package/dist/components/library/charts/D3Chart.d.ts +22 -0
- package/dist/components/library/charts/D3ChartTemplates.d.ts +4 -0
- package/dist/components/library/charts/GeoMap.d.ts +18 -0
- package/dist/components/library/chat/ChatBar.d.ts +21 -0
- package/dist/components/library/chat/ChatInput.d.ts +12 -0
- package/dist/components/library/chat/ChatMessage.d.ts +7 -0
- package/dist/components/library/chat/ChatMessageList.d.ts +11 -0
- package/dist/components/library/chat/ChatPanel.d.ts +16 -0
- package/dist/components/library/chat/ChatSuggestions.d.ts +7 -0
- package/dist/components/library/chat/ChatToolCall.d.ts +6 -0
- package/dist/components/library/chat/ChatTypingIndicator.d.ts +6 -0
- package/dist/components/library/chat/ChatWelcome.d.ts +10 -0
- package/dist/components/library/chat/index.d.ts +10 -0
- package/dist/components/library/chat/useChatState.d.ts +23 -0
- package/dist/components/library/data/DataModeProvider.d.ts +22 -0
- package/dist/components/library/data/DataModeToggle.d.ts +7 -0
- package/dist/components/library/data/chartDataProvider.d.ts +3 -0
- package/dist/components/library/data/filterUtils.d.ts +60 -0
- package/dist/components/library/data/useDataSource.d.ts +26 -0
- package/dist/components/library/data/usePageFilters.d.ts +25 -0
- package/dist/components/library/filters/FilterBar.d.ts +12 -0
- package/dist/components/library/filters/SearchFilter.d.ts +6 -0
- package/dist/components/library/filters/SelectFilter.d.ts +10 -0
- package/dist/components/library/filters/ToggleFilter.d.ts +8 -0
- package/dist/components/library/filters/index.d.ts +4 -0
- package/dist/components/library/forms/FormField.d.ts +12 -0
- package/dist/components/library/forms/FormModal.d.ts +18 -0
- package/dist/components/library/forms/FormRenderer.d.ts +13 -0
- package/dist/components/library/forms/FormSection.d.ts +13 -0
- package/dist/components/library/forms/index.d.ts +5 -0
- package/dist/components/library/forms/useFormState.d.ts +18 -0
- package/dist/components/library/heroui/Accordion.d.ts +24 -0
- package/dist/components/library/heroui/Alert.d.ts +6 -0
- package/dist/components/library/heroui/Badge.d.ts +6 -0
- package/dist/components/library/heroui/Breadcrumbs.d.ts +17 -0
- package/dist/components/library/heroui/Button.d.ts +6 -0
- package/dist/components/library/heroui/Card.d.ts +6 -0
- package/dist/components/library/heroui/Drawer.d.ts +27 -0
- package/dist/components/library/heroui/Dropdown.d.ts +23 -0
- package/dist/components/library/heroui/Input.d.ts +1 -0
- package/dist/components/library/heroui/Kbd.d.ts +6 -0
- package/dist/components/library/heroui/Meter.d.ts +6 -0
- package/dist/components/library/heroui/Modal.d.ts +27 -0
- package/dist/components/library/heroui/Pagination.d.ts +3 -0
- package/dist/components/library/heroui/ProgressBar.d.ts +6 -0
- package/dist/components/library/heroui/ProgressCircle.d.ts +6 -0
- package/dist/components/library/heroui/ScrollShadow.d.ts +6 -0
- package/dist/components/library/heroui/Select.d.ts +22 -0
- package/dist/components/library/heroui/Separator.d.ts +3 -0
- package/dist/components/library/heroui/Skeleton.d.ts +6 -0
- package/dist/components/library/heroui/Tabs.d.ts +24 -0
- package/dist/components/library/heroui/Toast.d.ts +21 -0
- package/dist/components/library/heroui/Toggle.d.ts +4 -0
- package/dist/components/library/heroui/Tooltip.d.ts +16 -0
- package/dist/components/library/index.d.ts +60 -0
- package/dist/components/library/layout/PageContainer.d.ts +4 -0
- package/dist/components/library/skeletons/CardSkeleton.d.ts +4 -0
- package/dist/components/library/theme/AppThemeProvider.d.ts +51 -0
- package/dist/components/library/theme/tokens.d.ts +48 -0
- package/dist/components/library/ui/Avatar.d.ts +10 -0
- package/dist/components/library/ui/Button.d.ts +11 -0
- package/dist/components/library/ui/Card.d.ts +7 -0
- package/dist/components/library/ui/Chip.d.ts +7 -0
- package/dist/components/library/ui/Container.d.ts +13 -0
- package/dist/components/library/ui/EmptyState.d.ts +10 -0
- package/dist/components/library/ui/Input.d.ts +5 -0
- package/dist/components/library/ui/Spinner.d.ts +8 -0
- package/dist/components/library/ui/Text.d.ts +10 -0
- package/dist/components/library/ui/Toggle.d.ts +5 -0
- package/dist/components/workspace/ComponentRegistry.d.ts +143 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dropdown select filter.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} value — current selected value
|
|
5
|
+
* @param {Function} onChange — (value) => void
|
|
6
|
+
* @param {Array} options — [{ value, label }] or ["string", ...]
|
|
7
|
+
* @param {string} label — visible label
|
|
8
|
+
* @param {string} placeholder — placeholder when no value selected
|
|
9
|
+
*/
|
|
10
|
+
export default function SelectFilter({ value, onChange, options, label, placeholder, className, }: string): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toggle switch filter.
|
|
3
|
+
*
|
|
4
|
+
* @param {boolean} value — current on/off state
|
|
5
|
+
* @param {Function} onChange — (boolean) => void
|
|
6
|
+
* @param {string} label — visible label
|
|
7
|
+
*/
|
|
8
|
+
export default function ToggleFilter({ value, onChange, label, className, }: boolean): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a single form field with label, description, error message,
|
|
3
|
+
* and the appropriate input type.
|
|
4
|
+
*/
|
|
5
|
+
export default function FormField({ field, value, error, touched, onChange, onBlur }: {
|
|
6
|
+
field: any;
|
|
7
|
+
value: any;
|
|
8
|
+
error: any;
|
|
9
|
+
touched: any;
|
|
10
|
+
onChange: any;
|
|
11
|
+
onBlur: any;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modal dialog for creating or editing records.
|
|
3
|
+
* Wraps FormRenderer + useFormState in an animated overlay.
|
|
4
|
+
*
|
|
5
|
+
* @param {boolean} isOpen — whether the modal is visible
|
|
6
|
+
* @param {Function} onClose — close handler
|
|
7
|
+
* @param {string} title — modal title (e.g. "Edit Service", "New Incident")
|
|
8
|
+
* @param {string} subtitle — optional subtitle
|
|
9
|
+
* @param {Array} sections — form schema sections
|
|
10
|
+
* @param {Object} initialValues — prefill for editing (empty = create mode)
|
|
11
|
+
* @param {Function} onSubmit — async (values) => void, called on valid submit
|
|
12
|
+
* @param {string} submitLabel — submit button text (default: "Save")
|
|
13
|
+
* @param {string} cancelLabel — cancel button text (default: "Cancel")
|
|
14
|
+
* @param {string} size — "sm" | "md" | "lg" | "xl" (default: "lg")
|
|
15
|
+
* @param {boolean} destructive — if true, submit button is red (for delete confirmations)
|
|
16
|
+
*/
|
|
17
|
+
export default function FormModal({ isOpen, onClose, title, subtitle, sections, initialValues, onSubmit, submitLabel, cancelLabel, size, destructive, minSubmitMs, }: boolean): React.ReactPortal | null;
|
|
18
|
+
import React from "react";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a complete form from a schema definition.
|
|
3
|
+
* Pairs with useFormState for state management.
|
|
4
|
+
*
|
|
5
|
+
* @param {Array} sections — form schema sections
|
|
6
|
+
* @param {Object} values — current form values
|
|
7
|
+
* @param {Object} errors — current validation errors
|
|
8
|
+
* @param {Object} touched — which fields have been touched
|
|
9
|
+
* @param {Function} onFieldChange — (fieldId, value) => void
|
|
10
|
+
* @param {Function} onFieldBlur — (fieldId) => void
|
|
11
|
+
* @param {string} formError — top-level form error (e.g. submission failure)
|
|
12
|
+
*/
|
|
13
|
+
export default function FormRenderer({ sections, values, errors, touched, onFieldChange, onFieldBlur, formError, }: any[]): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A titled section of a form with a 2-column grid layout.
|
|
3
|
+
* Fields default to 1-column (half width) unless the type is naturally
|
|
4
|
+
* full-width or the field specifies `colSpan: 2`.
|
|
5
|
+
*/
|
|
6
|
+
export default function FormSection({ section, values, errors, touched, onFieldChange, onFieldBlur, }: {
|
|
7
|
+
section: any;
|
|
8
|
+
values: any;
|
|
9
|
+
errors: any;
|
|
10
|
+
touched: any;
|
|
11
|
+
onFieldChange: any;
|
|
12
|
+
onFieldBlur: any;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as FormModal } from "./FormModal";
|
|
2
|
+
export { default as FormRenderer } from "./FormRenderer";
|
|
3
|
+
export { default as FormSection } from "./FormSection";
|
|
4
|
+
export { default as FormField } from "./FormField";
|
|
5
|
+
export { default as useFormState } from "./useFormState";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Form state management hook.
|
|
3
|
+
*
|
|
4
|
+
* @param {Object} options
|
|
5
|
+
* @param {Object} options.initialValues — prefill for editing (merged over field defaults)
|
|
6
|
+
* @param {Array} options.sections — form schema sections (used for defaults + validation)
|
|
7
|
+
* @param {Function} options.onSubmit — called with (values) when form is valid
|
|
8
|
+
* @param {number} options.minSubmitMs — minimum time the submit spinner shows (default 4000ms, set 0 to disable)
|
|
9
|
+
*
|
|
10
|
+
* @returns {Object} { values, errors, touched, isDirty, isValid, isSubmitting,
|
|
11
|
+
* setValue, setValues, setTouched, validate, reset, handleSubmit }
|
|
12
|
+
*/
|
|
13
|
+
export default function useFormState({ initialValues, sections, onSubmit, minSubmitMs }?: {
|
|
14
|
+
initialValues: Object;
|
|
15
|
+
sections: any[];
|
|
16
|
+
onSubmit: Function;
|
|
17
|
+
minSubmitMs: number;
|
|
18
|
+
}): Object;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Accordion — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Accordion` export:
|
|
5
|
+
* Accordion.Item, Accordion.Heading, Accordion.Trigger,
|
|
6
|
+
* Accordion.Panel, Accordion.Body, Accordion.Indicator
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { Accordion } from "@/components/library";
|
|
10
|
+
* <Accordion>
|
|
11
|
+
* <Accordion.Item>
|
|
12
|
+
* <Accordion.Heading>
|
|
13
|
+
* <Accordion.Trigger>Section 1<Accordion.Indicator /></Accordion.Trigger>
|
|
14
|
+
* </Accordion.Heading>
|
|
15
|
+
* <Accordion.Panel><Accordion.Body>Content</Accordion.Body></Accordion.Panel>
|
|
16
|
+
* </Accordion.Item>
|
|
17
|
+
* </Accordion>
|
|
18
|
+
*/
|
|
19
|
+
export default function HeroUIAccordion({ variant, ...props }: {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
variant?: string | undefined;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Accordion };
|
|
24
|
+
import { Accordion } from "@heroui/react";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Breadcrumbs — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Breadcrumbs` export:
|
|
5
|
+
* Breadcrumbs.Item
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { Breadcrumbs } from "@/components/library";
|
|
9
|
+
* <Breadcrumbs>
|
|
10
|
+
* <Breadcrumbs.Item href="/">Home</Breadcrumbs.Item>
|
|
11
|
+
* <Breadcrumbs.Item href="/settings">Settings</Breadcrumbs.Item>
|
|
12
|
+
* <Breadcrumbs.Item>Profile</Breadcrumbs.Item>
|
|
13
|
+
* </Breadcrumbs>
|
|
14
|
+
*/
|
|
15
|
+
export default function HeroUIBreadcrumbs(props: any): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { Breadcrumbs };
|
|
17
|
+
import { Breadcrumbs } from "@heroui/react";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Drawer — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Drawer` export:
|
|
5
|
+
* Drawer.Backdrop, Drawer.Content, Drawer.Dialog,
|
|
6
|
+
* Drawer.Header, Drawer.Heading, Drawer.Body, Drawer.Footer,
|
|
7
|
+
* Drawer.Handle, Drawer.CloseTrigger
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Drawer } from "@/components/library";
|
|
11
|
+
* <Drawer>
|
|
12
|
+
* <Button>Open</Button>
|
|
13
|
+
* <Drawer.Backdrop>
|
|
14
|
+
* <Drawer.Content placement="right">
|
|
15
|
+
* <Drawer.Dialog>
|
|
16
|
+
* <Drawer.CloseTrigger />
|
|
17
|
+
* <Drawer.Header><Drawer.Heading>Details</Drawer.Heading></Drawer.Header>
|
|
18
|
+
* <Drawer.Body>…</Drawer.Body>
|
|
19
|
+
* <Drawer.Footer>…</Drawer.Footer>
|
|
20
|
+
* </Drawer.Dialog>
|
|
21
|
+
* </Drawer.Content>
|
|
22
|
+
* </Drawer.Backdrop>
|
|
23
|
+
* </Drawer>
|
|
24
|
+
*/
|
|
25
|
+
export default function HeroUIDrawer(props: any): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Drawer };
|
|
27
|
+
import { Drawer } from "@heroui/react";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Dropdown — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Dropdown` export:
|
|
5
|
+
* Dropdown.Trigger, Dropdown.Popover, Dropdown.Menu,
|
|
6
|
+
* Dropdown.Item, Dropdown.Section, Dropdown.ItemIndicator,
|
|
7
|
+
* Dropdown.SubmenuTrigger, Dropdown.SubmenuIndicator
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Dropdown } from "@/components/library";
|
|
11
|
+
* <Dropdown>
|
|
12
|
+
* <Button>Actions</Button>
|
|
13
|
+
* <Dropdown.Popover>
|
|
14
|
+
* <Dropdown.Menu onAction={(key) => console.log(key)}>
|
|
15
|
+
* <Dropdown.Item id="edit" textValue="Edit"><Label>Edit</Label></Dropdown.Item>
|
|
16
|
+
* <Dropdown.Item id="delete" textValue="Delete" variant="danger"><Label>Delete</Label></Dropdown.Item>
|
|
17
|
+
* </Dropdown.Menu>
|
|
18
|
+
* </Dropdown.Popover>
|
|
19
|
+
* </Dropdown>
|
|
20
|
+
*/
|
|
21
|
+
export default function HeroUIDropdown(props: any): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export { Dropdown };
|
|
23
|
+
import { Dropdown } from "@heroui/react";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function HeroUIInput(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Modal — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Modal` export:
|
|
5
|
+
* Modal.Backdrop, Modal.Container, Modal.Dialog,
|
|
6
|
+
* Modal.CloseTrigger, Modal.Header, Modal.Icon,
|
|
7
|
+
* Modal.Heading, Modal.Body, Modal.Footer
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* import { Modal } from "@/components/library";
|
|
11
|
+
* <Modal>
|
|
12
|
+
* <Button>Open</Button>
|
|
13
|
+
* <Modal.Backdrop>
|
|
14
|
+
* <Modal.Container>
|
|
15
|
+
* <Modal.Dialog>
|
|
16
|
+
* <Modal.CloseTrigger />
|
|
17
|
+
* <Modal.Header><Modal.Heading>Title</Modal.Heading></Modal.Header>
|
|
18
|
+
* <Modal.Body>…</Modal.Body>
|
|
19
|
+
* <Modal.Footer>…</Modal.Footer>
|
|
20
|
+
* </Modal.Dialog>
|
|
21
|
+
* </Modal.Container>
|
|
22
|
+
* </Modal.Backdrop>
|
|
23
|
+
* </Modal>
|
|
24
|
+
*/
|
|
25
|
+
export default function HeroUIModal(props: any): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Modal };
|
|
27
|
+
import { Modal } from "@heroui/react";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Select — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Select` export:
|
|
5
|
+
* Select.Trigger, Select.Value, Select.Popover,
|
|
6
|
+
* Select.ListBox, Select.Item, Select.Section
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { Select } from "@/components/library";
|
|
10
|
+
* <Select>
|
|
11
|
+
* <Select.Trigger><Select.Value placeholder="Pick one" /></Select.Trigger>
|
|
12
|
+
* <Select.Popover>
|
|
13
|
+
* <Select.ListBox>
|
|
14
|
+
* <Select.Item id="a">Option A</Select.Item>
|
|
15
|
+
* <Select.Item id="b">Option B</Select.Item>
|
|
16
|
+
* </Select.ListBox>
|
|
17
|
+
* </Select.Popover>
|
|
18
|
+
* </Select>
|
|
19
|
+
*/
|
|
20
|
+
export default function HeroUISelect(props: any): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export { Select };
|
|
22
|
+
import { Select } from "@heroui/react";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Tabs — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Tabs` export:
|
|
5
|
+
* Tabs.List, Tabs.ListContainer, Tabs.Tab, Tabs.Panel,
|
|
6
|
+
* Tabs.Separator, Tabs.Indicator
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { Tabs } from "@/components/library";
|
|
10
|
+
* <Tabs>
|
|
11
|
+
* <Tabs.List aria-label="Options">
|
|
12
|
+
* <Tabs.Tab id="overview">Overview</Tabs.Tab>
|
|
13
|
+
* <Tabs.Tab id="analytics">Analytics</Tabs.Tab>
|
|
14
|
+
* </Tabs.List>
|
|
15
|
+
* <Tabs.Panel id="overview">…</Tabs.Panel>
|
|
16
|
+
* <Tabs.Panel id="analytics">…</Tabs.Panel>
|
|
17
|
+
* </Tabs>
|
|
18
|
+
*/
|
|
19
|
+
export default function HeroUITabs({ variant, ...props }: {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
variant?: string | undefined;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export { Tabs };
|
|
24
|
+
import { Tabs } from "@heroui/react";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Toast — notification system.
|
|
3
|
+
*
|
|
4
|
+
* SETUP: Add <Toast.Provider /> to your app root (_app.js).
|
|
5
|
+
*
|
|
6
|
+
* Then call the `toast` function from anywhere:
|
|
7
|
+
* toast("Event created");
|
|
8
|
+
* toast.success("Saved!");
|
|
9
|
+
* toast.warning("Check settings");
|
|
10
|
+
* toast.danger("Something failed");
|
|
11
|
+
* toast.promise(asyncFn(), { loading: "…", success: "Done", error: "Failed" });
|
|
12
|
+
*
|
|
13
|
+
* Sub-components via dot notation on the named `Toast` export:
|
|
14
|
+
* Toast.Provider, Toast.Indicator, Toast.Content,
|
|
15
|
+
* Toast.Title, Toast.Description, Toast.ActionButton,
|
|
16
|
+
* Toast.CloseButton
|
|
17
|
+
*/
|
|
18
|
+
export default function HeroUIToast(props: any): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
import { Toast } from "@heroui/react";
|
|
20
|
+
import { toast } from "@heroui/react";
|
|
21
|
+
export { Toast, toast };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HeroUI v3 Tooltip — compound component.
|
|
3
|
+
*
|
|
4
|
+
* Sub-components via dot notation on the named `Tooltip` export:
|
|
5
|
+
* Tooltip.Trigger, Tooltip.Content, Tooltip.Arrow
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* import { Tooltip } from "@/components/library";
|
|
9
|
+
* <Tooltip>
|
|
10
|
+
* <Tooltip.Trigger><Button>Hover me</Button></Tooltip.Trigger>
|
|
11
|
+
* <Tooltip.Content>Helpful info</Tooltip.Content>
|
|
12
|
+
* </Tooltip>
|
|
13
|
+
*/
|
|
14
|
+
export default function HeroUITooltip(props: any): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Tooltip };
|
|
16
|
+
import { Tooltip } from "@heroui/react";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export { default as UIButton } from "./ui/Button";
|
|
2
|
+
export { default as UIInput } from "./ui/Input";
|
|
3
|
+
export { default as UIToggle } from "./ui/Toggle";
|
|
4
|
+
export { default as UIText } from "./ui/Text";
|
|
5
|
+
export { default as UICard } from "./ui/Card";
|
|
6
|
+
export { default as UIContainer } from "./ui/Container";
|
|
7
|
+
export { default as UIChip } from "./ui/Chip";
|
|
8
|
+
export { default as Avatar } from "./ui/Avatar";
|
|
9
|
+
export { default as Spinner } from "./ui/Spinner";
|
|
10
|
+
export { default as EmptyState } from "./ui/EmptyState";
|
|
11
|
+
export { default as BaseCard } from "./cards/BaseCard";
|
|
12
|
+
export { default as ChartCard } from "./cards/ChartCard";
|
|
13
|
+
export { default as ListCard } from "./cards/ListCard";
|
|
14
|
+
export { default as MetricCard } from "./cards/MetricCard";
|
|
15
|
+
export { default as SectionCard } from "./cards/SectionCard";
|
|
16
|
+
export { default as StatusCard } from "./cards/StatusCard";
|
|
17
|
+
export { default as TableCard } from "./cards/TableCard";
|
|
18
|
+
export { default as WidgetCard } from "./cards/WidgetCard";
|
|
19
|
+
export { default as FeedPanel } from "./cards/FeedPanel";
|
|
20
|
+
export { default as ActivityCard } from "./cards/ActivityCard";
|
|
21
|
+
export { default as MetricsStrip } from "./cards/MetricsStrip";
|
|
22
|
+
export { default as CalloutCard } from "./cards/CalloutCard";
|
|
23
|
+
export { default as ActionList } from "./cards/ActionList";
|
|
24
|
+
export { default as D3Chart } from "./charts/D3Chart";
|
|
25
|
+
export { D3ChartTemplates } from "./charts/D3ChartTemplates";
|
|
26
|
+
export { default as GeoMap } from "./charts/GeoMap";
|
|
27
|
+
export { default as PageContainer } from "./layout/PageContainer";
|
|
28
|
+
export { default as CardSkeleton } from "./skeletons/CardSkeleton";
|
|
29
|
+
export { default as DataModeToggle } from "./data/DataModeToggle";
|
|
30
|
+
export { default as useDataSource } from "./data/useDataSource";
|
|
31
|
+
export { default as usePageFilters } from "./data/usePageFilters";
|
|
32
|
+
export { default as HeroUIButton } from "./heroui/Button";
|
|
33
|
+
export { default as HeroUIInput } from "./heroui/Input";
|
|
34
|
+
export { default as HeroUICard } from "./heroui/Card";
|
|
35
|
+
export { default as HeroUIToggle } from "./heroui/Toggle";
|
|
36
|
+
export { default as AppThemeProvider, useThemeMode } from "./theme/AppThemeProvider";
|
|
37
|
+
export { FormModal, FormRenderer, FormSection, FormField, useFormState } from "./forms";
|
|
38
|
+
export { FilterBar, SearchFilter, SelectFilter, ToggleFilter } from "./filters";
|
|
39
|
+
export { default as DataModeProvider, useDataMode } from "./data/DataModeProvider";
|
|
40
|
+
export { filterBySearch, filterByValue, filterByToggle, filterByDateRange, sortByKey, applyFilters } from "./data/filterUtils";
|
|
41
|
+
export { ChatPanel, ChatBar, ChatMessageList, ChatMessage, ChatInput, ChatTypingIndicator, ChatSuggestions, ChatToolCall, ChatWelcome, useChatState } from "./chat";
|
|
42
|
+
export { default as HeroUITabs, Tabs } from "./heroui/Tabs";
|
|
43
|
+
export { default as HeroUIAccordion, Accordion } from "./heroui/Accordion";
|
|
44
|
+
export { default as HeroUIBreadcrumbs, Breadcrumbs } from "./heroui/Breadcrumbs";
|
|
45
|
+
export { default as HeroUISeparator, Separator } from "./heroui/Separator";
|
|
46
|
+
export { default as HeroUIPagination, Pagination } from "./heroui/Pagination";
|
|
47
|
+
export { default as HeroUIDrawer, Drawer } from "./heroui/Drawer";
|
|
48
|
+
export { default as HeroUIModal, Modal } from "./heroui/Modal";
|
|
49
|
+
export { default as HeroUIDropdown, Dropdown } from "./heroui/Dropdown";
|
|
50
|
+
export { default as HeroUITooltip, Tooltip } from "./heroui/Tooltip";
|
|
51
|
+
export { default as HeroUIToast, Toast, toast } from "./heroui/Toast";
|
|
52
|
+
export { default as HeroUIAlert, Alert } from "./heroui/Alert";
|
|
53
|
+
export { default as HeroUIBadge, Badge } from "./heroui/Badge";
|
|
54
|
+
export { default as HeroUIProgressBar, ProgressBar } from "./heroui/ProgressBar";
|
|
55
|
+
export { default as HeroUIProgressCircle, ProgressCircle } from "./heroui/ProgressCircle";
|
|
56
|
+
export { default as HeroUIMeter, Meter } from "./heroui/Meter";
|
|
57
|
+
export { default as HeroUISkeleton, Skeleton } from "./heroui/Skeleton";
|
|
58
|
+
export { default as HeroUISelect, Select } from "./heroui/Select";
|
|
59
|
+
export { default as HeroUIKbd, Kbd } from "./heroui/Kbd";
|
|
60
|
+
export { default as HeroUIScrollShadow, ScrollShadow } from "./heroui/ScrollShadow";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export function useThemeMode(): {
|
|
2
|
+
mode: string;
|
|
3
|
+
theme: {
|
|
4
|
+
colors: {
|
|
5
|
+
brand: {
|
|
6
|
+
50: string;
|
|
7
|
+
100: string;
|
|
8
|
+
200: string;
|
|
9
|
+
300: string;
|
|
10
|
+
400: string;
|
|
11
|
+
500: string;
|
|
12
|
+
600: string;
|
|
13
|
+
700: string;
|
|
14
|
+
800: string;
|
|
15
|
+
900: string;
|
|
16
|
+
950: string;
|
|
17
|
+
};
|
|
18
|
+
accent: {
|
|
19
|
+
50: string;
|
|
20
|
+
100: string;
|
|
21
|
+
200: string;
|
|
22
|
+
300: string;
|
|
23
|
+
400: string;
|
|
24
|
+
500: string;
|
|
25
|
+
600: string;
|
|
26
|
+
700: string;
|
|
27
|
+
800: string;
|
|
28
|
+
900: string;
|
|
29
|
+
950: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
fonts: {
|
|
33
|
+
sans: string;
|
|
34
|
+
mono: string;
|
|
35
|
+
};
|
|
36
|
+
radius: {
|
|
37
|
+
sm: string;
|
|
38
|
+
md: string;
|
|
39
|
+
lg: string;
|
|
40
|
+
};
|
|
41
|
+
spacing: {
|
|
42
|
+
pageX: string;
|
|
43
|
+
pageY: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
toggle: () => void;
|
|
47
|
+
};
|
|
48
|
+
export default function AppThemeProvider({ initialMode, children }: {
|
|
49
|
+
initialMode?: string | undefined;
|
|
50
|
+
children: any;
|
|
51
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates CSS custom property assignments from the token palettes.
|
|
3
|
+
* Used by AppThemeProvider to inject on :root at runtime.
|
|
4
|
+
*/
|
|
5
|
+
export function getTokenCSSProperties(): {};
|
|
6
|
+
export namespace tokens {
|
|
7
|
+
namespace colors {
|
|
8
|
+
let brand: {
|
|
9
|
+
50: string;
|
|
10
|
+
100: string;
|
|
11
|
+
200: string;
|
|
12
|
+
300: string;
|
|
13
|
+
400: string;
|
|
14
|
+
500: string;
|
|
15
|
+
600: string;
|
|
16
|
+
700: string;
|
|
17
|
+
800: string;
|
|
18
|
+
900: string;
|
|
19
|
+
950: string;
|
|
20
|
+
};
|
|
21
|
+
let accent: {
|
|
22
|
+
50: string;
|
|
23
|
+
100: string;
|
|
24
|
+
200: string;
|
|
25
|
+
300: string;
|
|
26
|
+
400: string;
|
|
27
|
+
500: string;
|
|
28
|
+
600: string;
|
|
29
|
+
700: string;
|
|
30
|
+
800: string;
|
|
31
|
+
900: string;
|
|
32
|
+
950: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
namespace fonts {
|
|
36
|
+
let sans: string;
|
|
37
|
+
let mono: string;
|
|
38
|
+
}
|
|
39
|
+
namespace radius {
|
|
40
|
+
let sm: string;
|
|
41
|
+
let md: string;
|
|
42
|
+
let lg: string;
|
|
43
|
+
}
|
|
44
|
+
namespace spacing {
|
|
45
|
+
let pageX: string;
|
|
46
|
+
let pageY: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function Avatar({ src, name, initials, icon, size, tone, className, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
src: any;
|
|
4
|
+
name: any;
|
|
5
|
+
initials: any;
|
|
6
|
+
icon: any;
|
|
7
|
+
size?: string | undefined;
|
|
8
|
+
tone?: string | undefined;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default function UIButton({ variant, size, fullWidth, disabled, onClick, children, style, className, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
variant?: string | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
fullWidth?: boolean | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
onClick?: (() => void) | undefined;
|
|
8
|
+
children: any;
|
|
9
|
+
style?: undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|