@algorithm-shift/design-system 1.2.63 → 1.2.64
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/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1 from 'react';
|
|
3
|
+
import { ToasterProps } from 'sonner';
|
|
3
4
|
import { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
6
|
interface ElementProps {
|
|
@@ -329,7 +330,9 @@ type SonnerToastProps = {
|
|
|
329
330
|
};
|
|
330
331
|
declare function showSonnerToast({ title, description, variant, duration, actionLabel, onAction, }: SonnerToastProps): void;
|
|
331
332
|
|
|
333
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
334
|
+
|
|
332
335
|
declare function cn(...inputs: ClassValue[]): string;
|
|
333
336
|
declare function getInitials(name: string): string;
|
|
334
337
|
|
|
335
|
-
export { Accordion, AccordionGroup, ChartComponent as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
338
|
+
export { Accordion, AccordionGroup, ChartComponent as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React$1 from 'react';
|
|
3
|
+
import { ToasterProps } from 'sonner';
|
|
3
4
|
import { ClassValue } from 'clsx';
|
|
4
5
|
|
|
5
6
|
interface ElementProps {
|
|
@@ -329,7 +330,9 @@ type SonnerToastProps = {
|
|
|
329
330
|
};
|
|
330
331
|
declare function showSonnerToast({ title, description, variant, duration, actionLabel, onAction, }: SonnerToastProps): void;
|
|
331
332
|
|
|
333
|
+
declare const Toaster: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
334
|
+
|
|
332
335
|
declare function cn(...inputs: ClassValue[]): string;
|
|
333
336
|
declare function getInitials(name: string): string;
|
|
334
337
|
|
|
335
|
-
export { Accordion, AccordionGroup, ChartComponent as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
|
338
|
+
export { Accordion, AccordionGroup, ChartComponent as BarChart, Breadcrumb, ButtonWrapper as Button, SplitButton as ButtonGroup, CheckboxInput as Checkbox, Container, DatePicker, DateRange, Dropdown, EmailInput as Email, EmailComposer, FileInput, Flex as FlexLayout, Grid as GridLayout, Icon, ImageControl as Image, Modal, MultiCheckbox, Navbar, NumberInput, CustomPagination as Pagination, PasswordInput as Password, PhoneInput as Phone, DonutChart as PieChart, RadioInput as RadioGroup, RichText, SearchInput as Search, Shape, Slot, Spacer, StagesComponent as Stages, SwitchToggle, TabGroupComponent as TabGroup, TabList, Table, Tabs, TextInput as Text, TextInputGroup, Textarea, Toaster, Typography, UrlInput as URL, cn, getInitials, showSonnerToast };
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(src_exports, {
|
|
|
72
72
|
Text: () => TextInput_default,
|
|
73
73
|
TextInputGroup: () => TextInputGroup_default,
|
|
74
74
|
Textarea: () => Textarea_default,
|
|
75
|
+
Toaster: () => Toaster,
|
|
75
76
|
Typography: () => Typography_default,
|
|
76
77
|
URL: () => UrlInput_default,
|
|
77
78
|
cn: () => cn,
|
|
@@ -29408,6 +29409,27 @@ function showSonnerToast({
|
|
|
29408
29409
|
(0, import_sonner.toast)(title, options);
|
|
29409
29410
|
}
|
|
29410
29411
|
}
|
|
29412
|
+
|
|
29413
|
+
// src/components/ui/sonner.tsx
|
|
29414
|
+
var import_next_themes = require("next-themes");
|
|
29415
|
+
var import_sonner2 = require("sonner");
|
|
29416
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
29417
|
+
var Toaster = ({ ...props }) => {
|
|
29418
|
+
const { theme = "system" } = (0, import_next_themes.useTheme)();
|
|
29419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
29420
|
+
import_sonner2.Toaster,
|
|
29421
|
+
{
|
|
29422
|
+
theme,
|
|
29423
|
+
className: "toaster group",
|
|
29424
|
+
style: {
|
|
29425
|
+
"--normal-bg": "var(--popover)",
|
|
29426
|
+
"--normal-text": "var(--popover-foreground)",
|
|
29427
|
+
"--normal-border": "var(--border)"
|
|
29428
|
+
},
|
|
29429
|
+
...props
|
|
29430
|
+
}
|
|
29431
|
+
);
|
|
29432
|
+
};
|
|
29411
29433
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29412
29434
|
0 && (module.exports = {
|
|
29413
29435
|
Accordion,
|
|
@@ -29451,6 +29473,7 @@ function showSonnerToast({
|
|
|
29451
29473
|
Text,
|
|
29452
29474
|
TextInputGroup,
|
|
29453
29475
|
Textarea,
|
|
29476
|
+
Toaster,
|
|
29454
29477
|
Typography,
|
|
29455
29478
|
URL,
|
|
29456
29479
|
cn,
|