@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,13 @@
|
|
|
1
|
+
export default function UIContainer({ title, subtitle, description, actions, empty, emptyText, emptyIcon, emptyHeight, className, style, children }: {
|
|
2
|
+
title: any;
|
|
3
|
+
subtitle: any;
|
|
4
|
+
description: any;
|
|
5
|
+
actions: any;
|
|
6
|
+
empty?: boolean | undefined;
|
|
7
|
+
emptyText?: string | undefined;
|
|
8
|
+
emptyIcon: any;
|
|
9
|
+
emptyHeight?: number | undefined;
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
style: any;
|
|
12
|
+
children: any;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Empty state placeholder — shows when a list, table, or section has no content.
|
|
3
|
+
*
|
|
4
|
+
* @param {ReactNode} icon Optional icon element
|
|
5
|
+
* @param {string} heading Primary message
|
|
6
|
+
* @param {string} body Secondary description
|
|
7
|
+
* @param {ReactNode} action Optional CTA (button, link, etc.)
|
|
8
|
+
* @param {"sm"|"md"|"lg"} size Visual density
|
|
9
|
+
*/
|
|
10
|
+
export default function EmptyState({ icon, heading, body, action, size, className, }: ReactNode): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animated spinner.
|
|
3
|
+
*
|
|
4
|
+
* @param {"xs"|"sm"|"md"|"lg"|"xl"} size
|
|
5
|
+
* @param {"brand"|"white"|"muted"|"current"} tone
|
|
6
|
+
* @param {string} label — screen-reader label
|
|
7
|
+
*/
|
|
8
|
+
export default function Spinner({ size, tone, label, className, ...rest }: "xs" | "sm" | "md" | "lg" | "xl"): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function UIText({ as: Comp, size, weight, muted, style, className, children, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
as?: string | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
weight?: string | undefined;
|
|
6
|
+
muted?: boolean | undefined;
|
|
7
|
+
style: any;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
children: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
export function getComponentRegistry(): {
|
|
2
|
+
NarrativeSummary({ summary, title }: {
|
|
3
|
+
summary: any;
|
|
4
|
+
title: any;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
MetricsStrip({ metrics, title, collapsible, collapsed: initialCollapsed }: {
|
|
7
|
+
metrics?: never[] | undefined;
|
|
8
|
+
title: any;
|
|
9
|
+
collapsible?: boolean | undefined;
|
|
10
|
+
collapsed?: boolean | undefined;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
ItemList({ items, title, onItemClick }: {
|
|
13
|
+
items?: never[] | undefined;
|
|
14
|
+
title: any;
|
|
15
|
+
onItemClick: any;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
DataTable({ title, subtitle, columns, data, rows, searchable, sortable, paginated, pageSize }: {
|
|
18
|
+
title: any;
|
|
19
|
+
subtitle: any;
|
|
20
|
+
columns?: never[] | undefined;
|
|
21
|
+
data?: never[] | undefined;
|
|
22
|
+
rows: any;
|
|
23
|
+
searchable?: boolean | undefined;
|
|
24
|
+
sortable?: boolean | undefined;
|
|
25
|
+
paginated?: boolean | undefined;
|
|
26
|
+
pageSize?: number | undefined;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
DataChart({ title, subtitle, chartType, data, height }: {
|
|
29
|
+
title: any;
|
|
30
|
+
subtitle: any;
|
|
31
|
+
chartType?: string | undefined;
|
|
32
|
+
data?: never[] | undefined;
|
|
33
|
+
height?: number | undefined;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
MetricCard({ title, label, value, trend, change, changeType, color, icon, description }: {
|
|
36
|
+
title: any;
|
|
37
|
+
label: any;
|
|
38
|
+
value: any;
|
|
39
|
+
trend: any;
|
|
40
|
+
change: any;
|
|
41
|
+
changeType: any;
|
|
42
|
+
color: any;
|
|
43
|
+
icon: any;
|
|
44
|
+
description: any;
|
|
45
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
StatusCard({ title, subtitle, status, items, layout, showProgress, showTimestamp }: {
|
|
47
|
+
title: any;
|
|
48
|
+
subtitle: any;
|
|
49
|
+
status: any;
|
|
50
|
+
items: any;
|
|
51
|
+
layout: any;
|
|
52
|
+
showProgress: any;
|
|
53
|
+
showTimestamp: any;
|
|
54
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
ActionList({ actions, title, onAction }: {
|
|
56
|
+
actions?: never[] | undefined;
|
|
57
|
+
title: any;
|
|
58
|
+
onAction: any;
|
|
59
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
CalloutCard({ title, message, tone }: {
|
|
61
|
+
title: any;
|
|
62
|
+
message: any;
|
|
63
|
+
tone?: string | undefined;
|
|
64
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
65
|
+
Divider(): import("react/jsx-runtime").JSX.Element;
|
|
66
|
+
Spacer({ size }: {
|
|
67
|
+
size?: string | undefined;
|
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
};
|
|
70
|
+
export function registerComponent(type: any, Component: any): void;
|
|
71
|
+
export function registerComponents(map: any): void;
|
|
72
|
+
export function renderSchemaComponent(component: any, index: any): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export function renderSchema(components?: any[]): import("react/jsx-runtime").JSX.Element[];
|
|
74
|
+
export default BUILTIN_COMPONENTS;
|
|
75
|
+
declare namespace BUILTIN_COMPONENTS {
|
|
76
|
+
function NarrativeSummary({ summary, title }: {
|
|
77
|
+
summary: any;
|
|
78
|
+
title: any;
|
|
79
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
function MetricsStrip({ metrics, title, collapsible, collapsed: initialCollapsed }: {
|
|
81
|
+
metrics?: never[] | undefined;
|
|
82
|
+
title: any;
|
|
83
|
+
collapsible?: boolean | undefined;
|
|
84
|
+
collapsed?: boolean | undefined;
|
|
85
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
function ItemList({ items, title, onItemClick }: {
|
|
87
|
+
items?: never[] | undefined;
|
|
88
|
+
title: any;
|
|
89
|
+
onItemClick: any;
|
|
90
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
function DataTable({ title, subtitle, columns, data, rows, searchable, sortable, paginated, pageSize }: {
|
|
92
|
+
title: any;
|
|
93
|
+
subtitle: any;
|
|
94
|
+
columns?: never[] | undefined;
|
|
95
|
+
data?: never[] | undefined;
|
|
96
|
+
rows: any;
|
|
97
|
+
searchable?: boolean | undefined;
|
|
98
|
+
sortable?: boolean | undefined;
|
|
99
|
+
paginated?: boolean | undefined;
|
|
100
|
+
pageSize?: number | undefined;
|
|
101
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
function DataChart({ title, subtitle, chartType, data, height }: {
|
|
103
|
+
title: any;
|
|
104
|
+
subtitle: any;
|
|
105
|
+
chartType?: string | undefined;
|
|
106
|
+
data?: never[] | undefined;
|
|
107
|
+
height?: number | undefined;
|
|
108
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
109
|
+
function MetricCard({ title, label, value, trend, change, changeType, color, icon, description }: {
|
|
110
|
+
title: any;
|
|
111
|
+
label: any;
|
|
112
|
+
value: any;
|
|
113
|
+
trend: any;
|
|
114
|
+
change: any;
|
|
115
|
+
changeType: any;
|
|
116
|
+
color: any;
|
|
117
|
+
icon: any;
|
|
118
|
+
description: any;
|
|
119
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
120
|
+
function StatusCard({ title, subtitle, status, items, layout, showProgress, showTimestamp }: {
|
|
121
|
+
title: any;
|
|
122
|
+
subtitle: any;
|
|
123
|
+
status: any;
|
|
124
|
+
items: any;
|
|
125
|
+
layout: any;
|
|
126
|
+
showProgress: any;
|
|
127
|
+
showTimestamp: any;
|
|
128
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
129
|
+
function ActionList({ actions, title, onAction }: {
|
|
130
|
+
actions?: never[] | undefined;
|
|
131
|
+
title: any;
|
|
132
|
+
onAction: any;
|
|
133
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
134
|
+
function CalloutCard({ title, message, tone }: {
|
|
135
|
+
title: any;
|
|
136
|
+
message: any;
|
|
137
|
+
tone?: string | undefined;
|
|
138
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
139
|
+
function Divider(): import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
function Spacer({ size }: {
|
|
141
|
+
size?: string | undefined;
|
|
142
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
143
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schandlergarcia/sf-web-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"types": "./dist/index.d.ts"
|
|
13
13
|
},
|
|
14
14
|
"./lib": {
|
|
15
|
-
"import": "./dist/lib/
|
|
15
|
+
"import": "./dist/lib/utils.js",
|
|
16
16
|
"types": "./dist/lib/index.d.ts"
|
|
17
17
|
},
|
|
18
18
|
"./styles": "./dist/styles/base.css",
|