@schandlergarcia/sf-web-components 1.0.8 → 1.0.10

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.
@@ -1,8 +1,5 @@
1
- export { default as UIButton } from "./ui/Button";
2
- export { default as UIInput } from "./ui/Input";
3
1
  export { default as UIToggle } from "./ui/Toggle";
4
2
  export { default as UIText } from "./ui/Text";
5
- export { default as UICard } from "./ui/Card";
6
3
  export { default as UIContainer } from "./ui/Container";
7
4
  export { default as UIChip } from "./ui/Chip";
8
5
  export { default as Avatar } from "./ui/Avatar";
@@ -33,7 +30,12 @@ export { default as HeroUIButton } from "./heroui/Button";
33
30
  export { default as HeroUIInput } from "./heroui/Input";
34
31
  export { default as HeroUICard } from "./heroui/Card";
35
32
  export { default as HeroUIToggle } from "./heroui/Toggle";
33
+ export { default as HeroUIAlert } from "./heroui/Alert";
36
34
  export { default as AppThemeProvider, useThemeMode } from "./theme/AppThemeProvider";
35
+ export { default as UIButton, default as Button } from "./ui/Button";
36
+ export { default as UIInput, default as Input } from "./ui/Input";
37
+ export { default as UICard, default as Card } from "./ui/Card";
38
+ export { Alert, AlertTitle, AlertDescription, AlertAction } from "./ui/Alert";
37
39
  export { FormModal, FormRenderer, FormSection, FormField, useFormState } from "./forms";
38
40
  export { FilterBar, SearchFilter, SelectFilter, ToggleFilter } from "./filters";
39
41
  export { default as DataModeProvider, useDataMode } from "./data/DataModeProvider";
@@ -49,7 +51,6 @@ export { default as HeroUIModal, Modal } from "./heroui/Modal";
49
51
  export { default as HeroUIDropdown, Dropdown } from "./heroui/Dropdown";
50
52
  export { default as HeroUITooltip, Tooltip } from "./heroui/Tooltip";
51
53
  export { default as HeroUIToast, Toast, toast } from "./heroui/Toast";
52
- export { default as HeroUIAlert, Alert } from "./heroui/Alert";
53
54
  export { default as HeroUIBadge, Badge } from "./heroui/Badge";
54
55
  export { default as HeroUIProgressBar, ProgressBar } from "./heroui/ProgressBar";
55
56
  export { default as HeroUIProgressCircle, ProgressCircle } from "./heroui/ProgressCircle";
@@ -0,0 +1,18 @@
1
+ export default Alert;
2
+ export function Alert({ className, variant, ...props }: {
3
+ [x: string]: any;
4
+ className: any;
5
+ variant: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export function AlertTitle({ className, ...props }: {
8
+ [x: string]: any;
9
+ className: any;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export function AlertDescription({ className, ...props }: {
12
+ [x: string]: any;
13
+ className: any;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export function AlertAction({ className, ...props }: {
16
+ [x: string]: any;
17
+ className: any;
18
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,72 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import { cva as s } from "../../../node_modules/class-variance-authority/dist/index.js";
4
+ import { cn as a } from "../../../lib/utils.js";
5
+ const l = s(
6
+ "grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-card text-card-foreground",
11
+ destructive: "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "default"
16
+ }
17
+ }
18
+ );
19
+ function c({ className: t, variant: e, ...o }) {
20
+ return /* @__PURE__ */ r(
21
+ "div",
22
+ {
23
+ "data-slot": "alert",
24
+ role: "alert",
25
+ className: a(l({ variant: e }), t),
26
+ ...o
27
+ }
28
+ );
29
+ }
30
+ function v({ className: t, ...e }) {
31
+ return /* @__PURE__ */ r(
32
+ "div",
33
+ {
34
+ "data-slot": "alert-title",
35
+ className: a(
36
+ "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
37
+ t
38
+ ),
39
+ ...e
40
+ }
41
+ );
42
+ }
43
+ function f({ className: t, ...e }) {
44
+ return /* @__PURE__ */ r(
45
+ "div",
46
+ {
47
+ "data-slot": "alert-description",
48
+ className: a(
49
+ "text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",
50
+ t
51
+ ),
52
+ ...e
53
+ }
54
+ );
55
+ }
56
+ function g({ className: t, ...e }) {
57
+ return /* @__PURE__ */ r(
58
+ "div",
59
+ {
60
+ "data-slot": "alert-action",
61
+ className: a("absolute top-2 right-2", t),
62
+ ...e
63
+ }
64
+ );
65
+ }
66
+ export {
67
+ c as Alert,
68
+ g as AlertAction,
69
+ f as AlertDescription,
70
+ v as AlertTitle
71
+ };
72
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sources":["../../../../src/components/library/ui/Alert.jsx"],"sourcesContent":["import * as React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils';\n\nconst alertVariants = cva(\n \"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert\",\n {\n variants: {\n variant: {\n default: 'bg-card text-card-foreground',\n destructive:\n 'text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n);\n\nfunction Alert({ className, variant, ...props }) {\n return (\n <div\n data-slot=\"alert\"\n role=\"alert\"\n className={cn(alertVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nfunction AlertTitle({ className, ...props }) {\n return (\n <div\n data-slot=\"alert-title\"\n className={cn(\n 'font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertDescription({ className, ...props }) {\n return (\n <div\n data-slot=\"alert-description\"\n className={cn(\n 'text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AlertAction({ className, ...props }) {\n return (\n <div\n data-slot=\"alert-action\"\n className={cn('absolute top-2 right-2', className)}\n {...props}\n />\n );\n}\n\nexport default Alert;\nexport { Alert, AlertTitle, AlertDescription, AlertAction };\n"],"names":["alertVariants","cva","Alert","className","variant","props","jsx","cn","AlertTitle","AlertDescription","AlertAction"],"mappings":";;;;AAIA,MAAMA,IAAgBC;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAASC,EAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,KAAS;AAC/C,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,WAAWC,EAAGP,EAAc,EAAE,SAAAI,EAAA,CAAS,GAAGD,CAAS;AAAA,MAClD,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,EAAW,EAAE,WAAAL,GAAW,GAAGE,KAAS;AAC3C,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASI,EAAiB,EAAE,WAAAN,GAAW,GAAGE,KAAS;AACjD,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASK,EAAY,EAAE,WAAAP,GAAW,GAAGE,KAAS;AAC5C,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,EAAG,0BAA0BJ,CAAS;AAAA,MAChD,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
package/dist/index.js CHANGED
@@ -1,185 +1,192 @@
1
- import { cn as o } from "./lib/utils.js";
2
- import { default as t, useThemeMode as f } from "./components/library/theme/AppThemeProvider.js";
3
- import { default as d } from "./components/library/ui/Button.js";
4
- import { default as p } from "./components/library/ui/Input.js";
5
- import { default as m } from "./components/library/ui/Toggle.js";
6
- import { default as i } from "./components/library/ui/Text.js";
7
- import { default as n } from "./components/library/ui/Card.js";
8
- import { default as U } from "./components/library/ui/Container.js";
9
- import { default as c } from "./components/library/ui/Chip.js";
10
- import { default as H } from "./components/library/ui/Avatar.js";
11
- import { default as T } from "./components/library/ui/Spinner.js";
12
- import { default as M } from "./components/library/ui/EmptyState.js";
13
- import { default as P } from "./components/library/cards/BaseCard.js";
14
- import { default as y } from "./components/library/cards/ChartCard.js";
15
- import { default as b } from "./components/library/cards/ListCard.js";
16
- import { default as v } from "./components/library/cards/MetricCard.js";
17
- import { default as K } from "./components/library/cards/SectionCard.js";
18
- import { default as R } from "./components/library/cards/StatusCard.js";
19
- import { default as E } from "./components/library/cards/TableCard.js";
20
- import { default as V } from "./components/library/cards/WidgetCard.js";
21
- import { default as q } from "./components/library/cards/FeedPanel.js";
22
- import { default as J } from "./components/library/cards/ActivityCard.js";
23
- import { default as O } from "./components/library/cards/MetricsStrip.js";
24
- import { default as X } from "./components/library/cards/CalloutCard.js";
25
- import { default as Z } from "./components/library/cards/ActionList.js";
26
- import { default as $ } from "./components/library/charts/D3Chart.js";
27
- import { D3ChartTemplates as re } from "./components/library/charts/D3ChartTemplates.js";
28
- import { default as ae } from "./components/library/charts/GeoMap.js";
29
- import { default as fe } from "./components/library/layout/PageContainer.js";
30
- import { default as de } from "./components/library/skeletons/CardSkeleton.js";
31
- import { default as pe } from "./components/library/forms/FormModal.js";
32
- import { default as me } from "./components/library/forms/FormRenderer.js";
33
- import { default as ie } from "./components/library/forms/FormSection.js";
34
- import { default as ne } from "./components/library/forms/FormField.js";
35
- import { default as Ue } from "./components/library/forms/useFormState.js";
36
- import { default as ce } from "./components/library/filters/FilterBar.js";
37
- import { default as He } from "./components/library/filters/SearchFilter.js";
38
- import { default as Te } from "./components/library/filters/SelectFilter.js";
39
- import { default as Me } from "./components/library/filters/ToggleFilter.js";
40
- import { default as Pe, useDataMode as De } from "./components/library/data/DataModeProvider.js";
41
- import { default as Ae } from "./components/library/data/DataModeToggle.js";
42
- import { default as we } from "./components/library/data/useDataSource.js";
43
- import { default as ke } from "./components/library/data/usePageFilters.js";
44
- import { applyFilters as Le, filterByDateRange as Re, filterBySearch as We, filterByToggle as Ee, filterByValue as Ge, sortByKey as Ve } from "./components/library/data/filterUtils.js";
45
- import { default as qe } from "./components/library/chat/ChatPanel.js";
46
- import { default as Je } from "./components/library/chat/ChatBar.js";
47
- import { default as Oe } from "./components/library/chat/ChatMessageList.js";
48
- import { default as Xe } from "./components/library/chat/ChatMessage.js";
49
- import { default as Ze } from "./components/library/chat/ChatInput.js";
50
- import { default as $e } from "./components/library/chat/ChatTypingIndicator.js";
51
- import { default as rr } from "./components/library/chat/ChatSuggestions.js";
52
- import { default as ar } from "./components/library/chat/ChatToolCall.js";
53
- import { default as fr } from "./components/library/chat/ChatWelcome.js";
54
- import { default as dr } from "./components/library/chat/useChatState.js";
55
- import { default as pr } from "./components/library/heroui/Button.js";
56
- import { default as mr } from "./components/library/heroui/Input.js";
57
- import { default as ir } from "./components/library/heroui/Card.js";
58
- import { default as nr } from "./components/library/heroui/Toggle.js";
59
- import { default as Ur } from "./components/library/heroui/Tabs.js";
60
- import { default as cr } from "./components/library/heroui/Accordion.js";
61
- import { default as Hr } from "./components/library/heroui/Breadcrumbs.js";
62
- import { default as Tr } from "./components/library/heroui/Separator.js";
63
- import { default as Mr } from "./components/library/heroui/Pagination.js";
64
- import { default as Pr } from "./components/library/heroui/Drawer.js";
65
- import { default as yr } from "./components/library/heroui/Modal.js";
66
- import { default as br } from "./components/library/heroui/Dropdown.js";
67
- import { default as vr } from "./components/library/heroui/Tooltip.js";
68
- import { default as Kr } from "./components/library/heroui/Toast.js";
69
- import { default as Rr } from "./components/library/heroui/Alert.js";
70
- import { default as Er } from "./components/library/heroui/Badge.js";
71
- import { default as Vr } from "./components/library/heroui/ProgressBar.js";
72
- import { default as qr } from "./components/library/heroui/ProgressCircle.js";
73
- import { default as Jr } from "./components/library/heroui/Meter.js";
74
- import { default as Or } from "./components/library/heroui/Skeleton.js";
75
- import { default as Xr } from "./components/library/heroui/Select.js";
76
- import { default as Zr } from "./components/library/heroui/Kbd.js";
77
- import { default as $r } from "./components/library/heroui/ScrollShadow.js";
78
- import { Accordion as ro, Alert as oo, Badge as ao, Breadcrumbs as to, Drawer as fo, Dropdown as lo, Kbd as so, Meter as po, Modal as uo, Pagination as mo, ProgressBar as xo, ProgressCircle as io, ScrollShadow as Io, Select as no, Separator as Co, Skeleton as Uo, Tabs as go, Toast as co, Tooltip as So, toast as Ho } from "@heroui/react";
1
+ import { cn as t } from "./lib/utils.js";
2
+ import { default as a, useThemeMode as f } from "./components/library/theme/AppThemeProvider.js";
3
+ import { default as d, default as s } from "./components/library/ui/Button.js";
4
+ import { default as u, default as m } from "./components/library/ui/Input.js";
5
+ import { default as i } from "./components/library/ui/Toggle.js";
6
+ import { default as I } from "./components/library/ui/Text.js";
7
+ import { default as U, default as c } from "./components/library/ui/Card.js";
8
+ import { default as S } from "./components/library/ui/Container.js";
9
+ import { default as h } from "./components/library/ui/Chip.js";
10
+ import { default as B } from "./components/library/ui/Avatar.js";
11
+ import { default as F } from "./components/library/ui/Spinner.js";
12
+ import { default as D } from "./components/library/ui/EmptyState.js";
13
+ import { Alert as y, AlertAction as b, AlertDescription as w, AlertTitle as v } from "./components/library/ui/Alert.js";
14
+ import { default as K } from "./components/library/cards/BaseCard.js";
15
+ import { default as R } from "./components/library/cards/ChartCard.js";
16
+ import { default as E } from "./components/library/cards/ListCard.js";
17
+ import { default as V } from "./components/library/cards/MetricCard.js";
18
+ import { default as q } from "./components/library/cards/SectionCard.js";
19
+ import { default as J } from "./components/library/cards/StatusCard.js";
20
+ import { default as O } from "./components/library/cards/TableCard.js";
21
+ import { default as X } from "./components/library/cards/WidgetCard.js";
22
+ import { default as Z } from "./components/library/cards/FeedPanel.js";
23
+ import { default as $ } from "./components/library/cards/ActivityCard.js";
24
+ import { default as re } from "./components/library/cards/MetricsStrip.js";
25
+ import { default as oe } from "./components/library/cards/CalloutCard.js";
26
+ import { default as fe } from "./components/library/cards/ActionList.js";
27
+ import { default as de } from "./components/library/charts/D3Chart.js";
28
+ import { D3ChartTemplates as pe } from "./components/library/charts/D3ChartTemplates.js";
29
+ import { default as me } from "./components/library/charts/GeoMap.js";
30
+ import { default as ie } from "./components/library/layout/PageContainer.js";
31
+ import { default as Ie } from "./components/library/skeletons/CardSkeleton.js";
32
+ import { default as Ue } from "./components/library/forms/FormModal.js";
33
+ import { default as ge } from "./components/library/forms/FormRenderer.js";
34
+ import { default as He } from "./components/library/forms/FormSection.js";
35
+ import { default as Te } from "./components/library/forms/FormField.js";
36
+ import { default as Me } from "./components/library/forms/useFormState.js";
37
+ import { default as Ae } from "./components/library/filters/FilterBar.js";
38
+ import { default as Pe } from "./components/library/filters/SearchFilter.js";
39
+ import { default as be } from "./components/library/filters/SelectFilter.js";
40
+ import { default as ve } from "./components/library/filters/ToggleFilter.js";
41
+ import { default as Ke, useDataMode as Le } from "./components/library/data/DataModeProvider.js";
42
+ import { default as We } from "./components/library/data/DataModeToggle.js";
43
+ import { default as Ge } from "./components/library/data/useDataSource.js";
44
+ import { default as je } from "./components/library/data/usePageFilters.js";
45
+ import { applyFilters as ze, filterByDateRange as Je, filterBySearch as Ne, filterByToggle as Oe, filterByValue as Qe, sortByKey as Xe } from "./components/library/data/filterUtils.js";
46
+ import { default as Ze } from "./components/library/chat/ChatPanel.js";
47
+ import { default as $e } from "./components/library/chat/ChatBar.js";
48
+ import { default as rr } from "./components/library/chat/ChatMessageList.js";
49
+ import { default as or } from "./components/library/chat/ChatMessage.js";
50
+ import { default as fr } from "./components/library/chat/ChatInput.js";
51
+ import { default as dr } from "./components/library/chat/ChatTypingIndicator.js";
52
+ import { default as pr } from "./components/library/chat/ChatSuggestions.js";
53
+ import { default as mr } from "./components/library/chat/ChatToolCall.js";
54
+ import { default as ir } from "./components/library/chat/ChatWelcome.js";
55
+ import { default as Ir } from "./components/library/chat/useChatState.js";
56
+ import { default as Ur } from "./components/library/heroui/Button.js";
57
+ import { default as gr } from "./components/library/heroui/Input.js";
58
+ import { default as Hr } from "./components/library/heroui/Card.js";
59
+ import { default as Tr } from "./components/library/heroui/Toggle.js";
60
+ import { default as Mr } from "./components/library/heroui/Tabs.js";
61
+ import { default as Ar } from "./components/library/heroui/Accordion.js";
62
+ import { default as Pr } from "./components/library/heroui/Breadcrumbs.js";
63
+ import { default as br } from "./components/library/heroui/Separator.js";
64
+ import { default as vr } from "./components/library/heroui/Pagination.js";
65
+ import { default as Kr } from "./components/library/heroui/Drawer.js";
66
+ import { default as Rr } from "./components/library/heroui/Modal.js";
67
+ import { default as Er } from "./components/library/heroui/Dropdown.js";
68
+ import { default as Vr } from "./components/library/heroui/Tooltip.js";
69
+ import { default as qr } from "./components/library/heroui/Toast.js";
70
+ import { default as Jr } from "./components/library/heroui/Alert.js";
71
+ import { default as Or } from "./components/library/heroui/Badge.js";
72
+ import { default as Xr } from "./components/library/heroui/ProgressBar.js";
73
+ import { default as Zr } from "./components/library/heroui/ProgressCircle.js";
74
+ import { default as $r } from "./components/library/heroui/Meter.js";
75
+ import { default as rt } from "./components/library/heroui/Skeleton.js";
76
+ import { default as ot } from "./components/library/heroui/Select.js";
77
+ import { default as ft } from "./components/library/heroui/Kbd.js";
78
+ import { default as dt } from "./components/library/heroui/ScrollShadow.js";
79
+ import { Accordion as pt, Badge as ut, Breadcrumbs as mt, Drawer as xt, Dropdown as it, Kbd as nt, Meter as It, Modal as Ct, Pagination as Ut, ProgressBar as ct, ProgressCircle as gt, ScrollShadow as St, Select as Ht, Separator as ht, Skeleton as Tt, Tabs as Bt, Toast as Mt, Tooltip as Ft, toast as At } from "@heroui/react";
79
80
  export {
80
- ro as Accordion,
81
- Z as ActionList,
82
- J as ActivityCard,
83
- oo as Alert,
84
- t as AppThemeProvider,
85
- H as Avatar,
86
- ao as Badge,
87
- P as BaseCard,
88
- to as Breadcrumbs,
89
- X as CalloutCard,
90
- de as CardSkeleton,
91
- y as ChartCard,
92
- Je as ChatBar,
93
- Ze as ChatInput,
94
- Xe as ChatMessage,
95
- Oe as ChatMessageList,
96
- qe as ChatPanel,
97
- rr as ChatSuggestions,
98
- ar as ChatToolCall,
99
- $e as ChatTypingIndicator,
100
- fr as ChatWelcome,
101
- $ as D3Chart,
102
- re as D3ChartTemplates,
103
- Pe as DataModeProvider,
104
- Ae as DataModeToggle,
105
- fo as Drawer,
106
- lo as Dropdown,
107
- M as EmptyState,
108
- q as FeedPanel,
109
- ce as FilterBar,
110
- ne as FormField,
111
- pe as FormModal,
112
- me as FormRenderer,
113
- ie as FormSection,
114
- ae as GeoMap,
115
- cr as HeroUIAccordion,
116
- Rr as HeroUIAlert,
117
- Er as HeroUIBadge,
118
- Hr as HeroUIBreadcrumbs,
119
- pr as HeroUIButton,
120
- ir as HeroUICard,
121
- Pr as HeroUIDrawer,
122
- br as HeroUIDropdown,
123
- mr as HeroUIInput,
124
- Zr as HeroUIKbd,
125
- Jr as HeroUIMeter,
126
- yr as HeroUIModal,
127
- Mr as HeroUIPagination,
128
- Vr as HeroUIProgressBar,
129
- qr as HeroUIProgressCircle,
130
- $r as HeroUIScrollShadow,
131
- Xr as HeroUISelect,
132
- Tr as HeroUISeparator,
133
- Or as HeroUISkeleton,
134
- Ur as HeroUITabs,
135
- Kr as HeroUIToast,
136
- nr as HeroUIToggle,
137
- vr as HeroUITooltip,
138
- so as Kbd,
139
- b as ListCard,
140
- po as Meter,
141
- v as MetricCard,
142
- O as MetricsStrip,
143
- uo as Modal,
144
- fe as PageContainer,
145
- mo as Pagination,
146
- xo as ProgressBar,
147
- io as ProgressCircle,
148
- Io as ScrollShadow,
149
- He as SearchFilter,
150
- K as SectionCard,
151
- no as Select,
152
- Te as SelectFilter,
153
- Co as Separator,
154
- Uo as Skeleton,
155
- T as Spinner,
156
- R as StatusCard,
157
- E as TableCard,
158
- go as Tabs,
159
- co as Toast,
160
- Me as ToggleFilter,
161
- So as Tooltip,
162
- d as UIButton,
163
- n as UICard,
164
- c as UIChip,
165
- U as UIContainer,
166
- p as UIInput,
167
- i as UIText,
168
- m as UIToggle,
169
- V as WidgetCard,
170
- Le as applyFilters,
171
- o as cn,
172
- Re as filterByDateRange,
173
- We as filterBySearch,
174
- Ee as filterByToggle,
175
- Ge as filterByValue,
176
- Ve as sortByKey,
177
- Ho as toast,
178
- dr as useChatState,
179
- De as useDataMode,
180
- we as useDataSource,
181
- Ue as useFormState,
182
- ke as usePageFilters,
81
+ pt as Accordion,
82
+ fe as ActionList,
83
+ $ as ActivityCard,
84
+ y as Alert,
85
+ b as AlertAction,
86
+ w as AlertDescription,
87
+ v as AlertTitle,
88
+ a as AppThemeProvider,
89
+ B as Avatar,
90
+ ut as Badge,
91
+ K as BaseCard,
92
+ mt as Breadcrumbs,
93
+ d as Button,
94
+ oe as CalloutCard,
95
+ U as Card,
96
+ Ie as CardSkeleton,
97
+ R as ChartCard,
98
+ $e as ChatBar,
99
+ fr as ChatInput,
100
+ or as ChatMessage,
101
+ rr as ChatMessageList,
102
+ Ze as ChatPanel,
103
+ pr as ChatSuggestions,
104
+ mr as ChatToolCall,
105
+ dr as ChatTypingIndicator,
106
+ ir as ChatWelcome,
107
+ de as D3Chart,
108
+ pe as D3ChartTemplates,
109
+ Ke as DataModeProvider,
110
+ We as DataModeToggle,
111
+ xt as Drawer,
112
+ it as Dropdown,
113
+ D as EmptyState,
114
+ Z as FeedPanel,
115
+ Ae as FilterBar,
116
+ Te as FormField,
117
+ Ue as FormModal,
118
+ ge as FormRenderer,
119
+ He as FormSection,
120
+ me as GeoMap,
121
+ Ar as HeroUIAccordion,
122
+ Jr as HeroUIAlert,
123
+ Or as HeroUIBadge,
124
+ Pr as HeroUIBreadcrumbs,
125
+ Ur as HeroUIButton,
126
+ Hr as HeroUICard,
127
+ Kr as HeroUIDrawer,
128
+ Er as HeroUIDropdown,
129
+ gr as HeroUIInput,
130
+ ft as HeroUIKbd,
131
+ $r as HeroUIMeter,
132
+ Rr as HeroUIModal,
133
+ vr as HeroUIPagination,
134
+ Xr as HeroUIProgressBar,
135
+ Zr as HeroUIProgressCircle,
136
+ dt as HeroUIScrollShadow,
137
+ ot as HeroUISelect,
138
+ br as HeroUISeparator,
139
+ rt as HeroUISkeleton,
140
+ Mr as HeroUITabs,
141
+ qr as HeroUIToast,
142
+ Tr as HeroUIToggle,
143
+ Vr as HeroUITooltip,
144
+ u as Input,
145
+ nt as Kbd,
146
+ E as ListCard,
147
+ It as Meter,
148
+ V as MetricCard,
149
+ re as MetricsStrip,
150
+ Ct as Modal,
151
+ ie as PageContainer,
152
+ Ut as Pagination,
153
+ ct as ProgressBar,
154
+ gt as ProgressCircle,
155
+ St as ScrollShadow,
156
+ Pe as SearchFilter,
157
+ q as SectionCard,
158
+ Ht as Select,
159
+ be as SelectFilter,
160
+ ht as Separator,
161
+ Tt as Skeleton,
162
+ F as Spinner,
163
+ J as StatusCard,
164
+ O as TableCard,
165
+ Bt as Tabs,
166
+ Mt as Toast,
167
+ ve as ToggleFilter,
168
+ Ft as Tooltip,
169
+ s as UIButton,
170
+ c as UICard,
171
+ h as UIChip,
172
+ S as UIContainer,
173
+ m as UIInput,
174
+ I as UIText,
175
+ i as UIToggle,
176
+ X as WidgetCard,
177
+ ze as applyFilters,
178
+ t as cn,
179
+ Je as filterByDateRange,
180
+ Ne as filterBySearch,
181
+ Oe as filterByToggle,
182
+ Qe as filterByValue,
183
+ Xe as sortByKey,
184
+ At as toast,
185
+ Ir as useChatState,
186
+ Le as useDataMode,
187
+ Ge as useDataSource,
188
+ Me as useFormState,
189
+ je as usePageFilters,
183
190
  f as useThemeMode
184
191
  };
185
192
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ import { clsx as O } from "../../clsx/dist/clsx.js";
2
+ const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
+ var s;
4
+ if (l?.variants == null) return y(e, n?.class, n?.className);
5
+ const { variants: r, defaultVariants: d } = l, V = Object.keys(r).map((t) => {
6
+ const a = n?.[t], u = d?.[t];
7
+ if (a === null) return null;
8
+ const i = m(a) || m(u);
9
+ return r[t][i];
10
+ }), v = n && Object.entries(n).reduce((t, a) => {
11
+ let [u, i] = a;
12
+ return i === void 0 || (t[u] = i), t;
13
+ }, {}), N = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((t, a) => {
14
+ let { class: u, className: i, ...f } = a;
15
+ return Object.entries(f).every((C) => {
16
+ let [c, o] = C;
17
+ return Array.isArray(o) ? o.includes({
18
+ ...d,
19
+ ...v
20
+ }[c]) : {
21
+ ...d,
22
+ ...v
23
+ }[c] === o;
24
+ }) ? [
25
+ ...t,
26
+ u,
27
+ i
28
+ ] : t;
29
+ }, []);
30
+ return y(e, V, N, n?.class, n?.className);
31
+ };
32
+ export {
33
+ j as cva,
34
+ y as cx
35
+ };
36
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n"],"names":["falsyToString","value","cx","clsx","cva","base","config","props","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","key","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions"],"mappings":";AAeA,MAAMA,IAAgB,CAACC,MAAQ,OAAOA,KAAU,YAAY,GAAGA,CAAK,KAAKA,MAAU,IAAI,MAAMA,GAChFC,IAAKC,GACLC,IAAM,CAACC,GAAMC,MAAS,CAACC,MAAQ;AACpC,MAAIC;AACJ,MAAqDF,GAAO,YAAa,KAAM,QAAOJ,EAAGG,GAAoDE,GAAM,OAAqDA,GAAM,SAAS;AACvN,QAAM,EAAE,UAAAE,GAAU,iBAAAC,EAAe,IAAKJ,GAChCK,IAAuB,OAAO,KAAKF,CAAQ,EAAE,IAAI,CAACG,MAAU;AAC9D,UAAMC,IAA4DN,IAAMK,CAAO,GACzEE,IAAuFJ,IAAgBE,CAAO;AACpH,QAAIC,MAAgB,KAAM,QAAO;AACjC,UAAME,IAAaf,EAAca,CAAW,KAAKb,EAAcc,CAAkB;AACjF,WAAOL,EAASG,CAAO,EAAEG,CAAU;AAAA,EACvC,CAAC,GACKC,IAAwBT,KAAS,OAAO,QAAQA,CAAK,EAAE,OAAO,CAACU,GAAKC,MAAQ;AAC9E,QAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,WAAIjB,MAAU,WAGdgB,EAAIE,CAAG,IAAIlB,IACJgB;AAAA,EACX,GAAG,CAAA,CAAE,GACCG,IAA+Bd,KAAW,SAAsCE,IAA2BF,EAAO,sBAAsB,QAAQE,MAA6B,SAAvG,SAAyHA,EAAyB,OAAO,CAACS,GAAKC,MAAQ;AAC/O,QAAI,EAAE,OAAOG,GAAS,WAAWC,GAAa,GAAGC,EAAsB,IAAKL;AAC5E,WAAO,OAAO,QAAQK,CAAsB,EAAE,MAAM,CAACL,MAAQ;AACzD,UAAI,CAACC,GAAKlB,CAAK,IAAIiB;AACnB,aAAO,MAAM,QAAQjB,CAAK,IAAIA,EAAM,SAAS;AAAA,QACzC,GAAGS;AAAA,QACH,GAAGM;AAAA,MACvB,EAAkBG,CAAG,CAAC,IAAK;AAAA,QACP,GAAGT;AAAA,QACH,GAAGM;AAAA,MACvB,EAAmBG,CAAG,MAAMlB;AAAA,IAChB,CAAC,IAAI;AAAA,MACD,GAAGgB;AAAA,MACHI;AAAA,MACAC;AAAA,IAChB,IAAgBL;AAAA,EACR,GAAG,CAAA,CAAE;AACL,SAAOf,EAAGG,GAAMM,GAAsBS,GAA4Eb,GAAM,OAAqDA,GAAM,SAAS;AAChM;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
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",
@@ -54,6 +54,7 @@
54
54
  "world-atlas": "^2.0.0"
55
55
  },
56
56
  "dependencies": {
57
+ "@schandlergarcia/sf-web-components": "^1.0.9",
57
58
  "class-variance-authority": "^0.7.1",
58
59
  "clsx": "^2.1.1",
59
60
  "tailwind-merge": "^3.5.0"