@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.
Files changed (91) hide show
  1. package/dist/components/library/cards/ActionList.d.ts +11 -0
  2. package/dist/components/library/cards/ActivityCard.d.ts +5 -0
  3. package/dist/components/library/cards/BaseCard.d.ts +24 -0
  4. package/dist/components/library/cards/CalloutCard.d.ts +9 -0
  5. package/dist/components/library/cards/ChartCard.d.ts +17 -0
  6. package/dist/components/library/cards/FeedPanel.d.ts +11 -0
  7. package/dist/components/library/cards/ListCard.d.ts +20 -0
  8. package/dist/components/library/cards/MetricCard.d.ts +17 -0
  9. package/dist/components/library/cards/MetricsStrip.d.ts +13 -0
  10. package/dist/components/library/cards/SectionCard.d.ts +12 -0
  11. package/dist/components/library/cards/SemanticMetricCard.d.ts +20 -0
  12. package/dist/components/library/cards/SemanticMetricCardWithLoading.d.ts +7 -0
  13. package/dist/components/library/cards/SemanticTableCard.d.ts +18 -0
  14. package/dist/components/library/cards/SemanticTableCardWithLoading.d.ts +7 -0
  15. package/dist/components/library/cards/StatusCard.d.ts +15 -0
  16. package/dist/components/library/cards/TableCard.d.ts +23 -0
  17. package/dist/components/library/cards/WidgetCard.d.ts +11 -0
  18. package/dist/components/library/charts/D3Chart.d.ts +22 -0
  19. package/dist/components/library/charts/D3ChartTemplates.d.ts +4 -0
  20. package/dist/components/library/charts/GeoMap.d.ts +18 -0
  21. package/dist/components/library/chat/ChatBar.d.ts +21 -0
  22. package/dist/components/library/chat/ChatInput.d.ts +12 -0
  23. package/dist/components/library/chat/ChatMessage.d.ts +7 -0
  24. package/dist/components/library/chat/ChatMessageList.d.ts +11 -0
  25. package/dist/components/library/chat/ChatPanel.d.ts +16 -0
  26. package/dist/components/library/chat/ChatSuggestions.d.ts +7 -0
  27. package/dist/components/library/chat/ChatToolCall.d.ts +6 -0
  28. package/dist/components/library/chat/ChatTypingIndicator.d.ts +6 -0
  29. package/dist/components/library/chat/ChatWelcome.d.ts +10 -0
  30. package/dist/components/library/chat/index.d.ts +10 -0
  31. package/dist/components/library/chat/useChatState.d.ts +23 -0
  32. package/dist/components/library/data/DataModeProvider.d.ts +22 -0
  33. package/dist/components/library/data/DataModeToggle.d.ts +7 -0
  34. package/dist/components/library/data/chartDataProvider.d.ts +3 -0
  35. package/dist/components/library/data/filterUtils.d.ts +60 -0
  36. package/dist/components/library/data/useDataSource.d.ts +26 -0
  37. package/dist/components/library/data/usePageFilters.d.ts +25 -0
  38. package/dist/components/library/filters/FilterBar.d.ts +12 -0
  39. package/dist/components/library/filters/SearchFilter.d.ts +6 -0
  40. package/dist/components/library/filters/SelectFilter.d.ts +10 -0
  41. package/dist/components/library/filters/ToggleFilter.d.ts +8 -0
  42. package/dist/components/library/filters/index.d.ts +4 -0
  43. package/dist/components/library/forms/FormField.d.ts +12 -0
  44. package/dist/components/library/forms/FormModal.d.ts +18 -0
  45. package/dist/components/library/forms/FormRenderer.d.ts +13 -0
  46. package/dist/components/library/forms/FormSection.d.ts +13 -0
  47. package/dist/components/library/forms/index.d.ts +5 -0
  48. package/dist/components/library/forms/useFormState.d.ts +18 -0
  49. package/dist/components/library/heroui/Accordion.d.ts +24 -0
  50. package/dist/components/library/heroui/Alert.d.ts +6 -0
  51. package/dist/components/library/heroui/Badge.d.ts +6 -0
  52. package/dist/components/library/heroui/Breadcrumbs.d.ts +17 -0
  53. package/dist/components/library/heroui/Button.d.ts +6 -0
  54. package/dist/components/library/heroui/Card.d.ts +6 -0
  55. package/dist/components/library/heroui/Drawer.d.ts +27 -0
  56. package/dist/components/library/heroui/Dropdown.d.ts +23 -0
  57. package/dist/components/library/heroui/Input.d.ts +1 -0
  58. package/dist/components/library/heroui/Kbd.d.ts +6 -0
  59. package/dist/components/library/heroui/Meter.d.ts +6 -0
  60. package/dist/components/library/heroui/Modal.d.ts +27 -0
  61. package/dist/components/library/heroui/Pagination.d.ts +3 -0
  62. package/dist/components/library/heroui/ProgressBar.d.ts +6 -0
  63. package/dist/components/library/heroui/ProgressCircle.d.ts +6 -0
  64. package/dist/components/library/heroui/ScrollShadow.d.ts +6 -0
  65. package/dist/components/library/heroui/Select.d.ts +22 -0
  66. package/dist/components/library/heroui/Separator.d.ts +3 -0
  67. package/dist/components/library/heroui/Skeleton.d.ts +6 -0
  68. package/dist/components/library/heroui/Tabs.d.ts +24 -0
  69. package/dist/components/library/heroui/Toast.d.ts +21 -0
  70. package/dist/components/library/heroui/Toggle.d.ts +4 -0
  71. package/dist/components/library/heroui/Tooltip.d.ts +16 -0
  72. package/dist/components/library/index.d.ts +60 -0
  73. package/dist/components/library/layout/PageContainer.d.ts +4 -0
  74. package/dist/components/library/skeletons/CardSkeleton.d.ts +4 -0
  75. package/dist/components/library/theme/AppThemeProvider.d.ts +51 -0
  76. package/dist/components/library/theme/tokens.d.ts +48 -0
  77. package/dist/components/library/ui/Avatar.d.ts +10 -0
  78. package/dist/components/library/ui/Button.d.ts +11 -0
  79. package/dist/components/library/ui/Card.d.ts +7 -0
  80. package/dist/components/library/ui/Chip.d.ts +7 -0
  81. package/dist/components/library/ui/Container.d.ts +13 -0
  82. package/dist/components/library/ui/EmptyState.d.ts +10 -0
  83. package/dist/components/library/ui/Input.d.ts +5 -0
  84. package/dist/components/library/ui/Spinner.d.ts +8 -0
  85. package/dist/components/library/ui/Text.d.ts +10 -0
  86. package/dist/components/library/ui/Toggle.d.ts +5 -0
  87. package/dist/components/workspace/ComponentRegistry.d.ts +143 -0
  88. package/dist/index.d.ts +2 -0
  89. package/dist/lib/index.d.ts +1 -0
  90. package/dist/lib/utils.d.ts +2 -0
  91. 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,5 @@
1
+ export default function UIInput({ style, className, ...rest }: {
2
+ [x: string]: any;
3
+ style?: undefined;
4
+ className?: string | undefined;
5
+ }): 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,5 @@
1
+ export default function UIToggle({ label, style, className }: {
2
+ label?: string | undefined;
3
+ style: any;
4
+ className?: string | undefined;
5
+ }): 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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './lib';
2
+ export * from './components/library';
@@ -0,0 +1 @@
1
+ export * from './utils';
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.0.2",
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/index.js",
15
+ "import": "./dist/lib/utils.js",
16
16
  "types": "./dist/lib/index.d.ts"
17
17
  },
18
18
  "./styles": "./dist/styles/base.css",