@rockshin/tao-ui 0.0.14 → 0.0.16
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/component-manifest.json +645 -147
- package/dist/components/sonner/index.d.ts +1 -0
- package/dist/components/sonner/index.js +1 -0
- package/dist/components/sonner/sonner.css +221 -0
- package/dist/components/sonner/sonner.d.ts +58 -0
- package/dist/components/sonner/sonner.js +364 -0
- package/dist/docs/component-docs.js +2 -0
- package/dist/docs/components/sonner.doc.d.ts +18 -0
- package/dist/docs/components/sonner.doc.js +47 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/llms.txt +14 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const sonnerDoc = {
|
|
2
|
+
name: 'sonner',
|
|
3
|
+
displayName: 'Sonner',
|
|
4
|
+
category: 'Feedback',
|
|
5
|
+
description: 'Displays temporary toast notifications with optional actions and provider-aware theming.',
|
|
6
|
+
exports: [
|
|
7
|
+
'Sonner',
|
|
8
|
+
'toast'
|
|
9
|
+
],
|
|
10
|
+
source: 'src/components/sonner/sonner.tsx',
|
|
11
|
+
story: 'stories/sonner.stories.tsx',
|
|
12
|
+
tests: [
|
|
13
|
+
'tests/sonner/sonner.test.tsx'
|
|
14
|
+
],
|
|
15
|
+
semanticParts: [
|
|
16
|
+
'viewport',
|
|
17
|
+
'toast',
|
|
18
|
+
'content',
|
|
19
|
+
'title',
|
|
20
|
+
"description",
|
|
21
|
+
'actions',
|
|
22
|
+
'action',
|
|
23
|
+
'cancel',
|
|
24
|
+
'close'
|
|
25
|
+
],
|
|
26
|
+
keywords: [
|
|
27
|
+
'toast',
|
|
28
|
+
'notification',
|
|
29
|
+
'sonner'
|
|
30
|
+
],
|
|
31
|
+
related: [
|
|
32
|
+
'Modal',
|
|
33
|
+
'Drawer',
|
|
34
|
+
'Button'
|
|
35
|
+
],
|
|
36
|
+
usage: {
|
|
37
|
+
description: 'Mount one Sonner near app root, then call toast() imperatively from event handlers. Supports toast.loading(), toast.promise(), and toast.custom() for richer async and custom notification flows.',
|
|
38
|
+
bestPractices: [
|
|
39
|
+
'Prefer short, status-oriented messages with one primary action at most.',
|
|
40
|
+
'Enable richColors when semantic status color should be visible.'
|
|
41
|
+
],
|
|
42
|
+
avoid: [
|
|
43
|
+
'Do not use toast notifications for blocking confirmations.'
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
export { sonnerDoc };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { InputNumber, type InputNumberProps, type InputNumberSemanticPart, } fro
|
|
|
17
17
|
export { type ConfirmType, Modal, type ModalFooterRender, type ModalFuncProps, type ModalFuncReturn, type ModalHookApi, type ModalProps, type ModalSemanticPart, } from './components/modal';
|
|
18
18
|
export { Pagination, type PaginationProps, type PaginationSemanticPart, } from './components/pagination/pagination';
|
|
19
19
|
export { Radio, RadioGroup, type RadioGroupProps, type RadioOptionType, type RadioProps, type RadioSemanticPart, } from './components/radio/radio';
|
|
20
|
+
export { Sonner, toast, type SonnerAction, type SonnerPosition, type SonnerProps, type SonnerSemanticPart, type SonnerToastItem, type SonnerToastOptions, type SonnerType, } from './components/sonner';
|
|
20
21
|
export { ScrollArea, type ScrollAreaProps, type ScrollAreaSemanticPart, type ScrollAreaType, } from './components/scroll-area/scroll-area';
|
|
21
22
|
export { ChevronsUpDownIcon, Select, type SelectOption, type SelectPlacement, type SelectProps, type SelectSemanticPart, type TagRenderProps, } from './components/select/select';
|
|
22
23
|
export { Spinner, type SpinnerProps, type SpinnerSemanticPart, } from './components/spinner/spinner';
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { InputNumber } from "./components/input-number/input-number.js";
|
|
|
17
17
|
export { Modal } from "./components/modal/index.js";
|
|
18
18
|
export { Pagination } from "./components/pagination/pagination.js";
|
|
19
19
|
export { Radio, RadioGroup } from "./components/radio/radio.js";
|
|
20
|
+
export { Sonner, toast } from "./components/sonner/index.js";
|
|
20
21
|
export { ScrollArea } from "./components/scroll-area/scroll-area.js";
|
|
21
22
|
export { ChevronsUpDownIcon, Select } from "./components/select/select.js";
|
|
22
23
|
export { Spinner } from "./components/spinner/spinner.js";
|
package/llms.txt
CHANGED
|
@@ -23,7 +23,7 @@ Import from the package root. The package entry imports tao-ui CSS side effects
|
|
|
23
23
|
- Config: TaoProvider
|
|
24
24
|
- Data Display: Collapsible, ScrollArea, Table, Tag
|
|
25
25
|
- Data Entry: Checkbox, DatePicker, FormActions, FormField, FormSection, Input, InputNumber, Radio, RangePicker, Select, Switch, Textarea
|
|
26
|
-
- Feedback: Drawer, Modal, Spinner
|
|
26
|
+
- Feedback: Drawer, Modal, Sonner, Spinner
|
|
27
27
|
- General: Button
|
|
28
28
|
- Headless: HeadlessInputNumber
|
|
29
29
|
- Layout: FormLayout, Splitter, Stack
|
|
@@ -302,6 +302,19 @@ Chooses one value from a compact list of options.
|
|
|
302
302
|
|
|
303
303
|
Use Select when choices are known but too numerous or secondary to show as radios.
|
|
304
304
|
|
|
305
|
+
### Sonner
|
|
306
|
+
|
|
307
|
+
Displays temporary toast notifications with optional actions and provider-aware theming.
|
|
308
|
+
|
|
309
|
+
- Category: Feedback
|
|
310
|
+
- Exports: `Sonner`, `toast`
|
|
311
|
+
- Source: `src/components/sonner/sonner.tsx`
|
|
312
|
+
- Storybook: `stories/sonner.stories.tsx`
|
|
313
|
+
- Tests: `tests/sonner/sonner.test.tsx`
|
|
314
|
+
- Semantic parts: `viewport`, `toast`, `content`, `title`, `description`, `actions`, `action`, `cancel`, `close`
|
|
315
|
+
|
|
316
|
+
Mount one Sonner near app root, then call toast() imperatively from event handlers. Supports toast.loading(), toast.promise(), and toast.custom() for richer async and custom notification flows.
|
|
317
|
+
|
|
305
318
|
### Spinner
|
|
306
319
|
|
|
307
320
|
Indicates indeterminate loading activity.
|