@dust-tt/sparkle 0.2.209 → 0.2.210-rc74
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/cjs/_index.d.ts +4 -4
- package/dist/cjs/components/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Tree.d.ts +9 -6
- package/dist/cjs/icons/solid/ArrowDownS.d.ts +4 -0
- package/dist/cjs/icons/solid/ArrowLeftS.d.ts +4 -0
- package/dist/cjs/icons/solid/ArrowRightS.d.ts +4 -0
- package/dist/cjs/icons/solid/ArrowUpS.d.ts +4 -0
- package/dist/cjs/icons/solid/ChevronDoubleLeft.d.ts +4 -0
- package/dist/cjs/icons/solid/ChevronDoubleRight.d.ts +4 -0
- package/dist/cjs/icons/solid/Company.d.ts +4 -0
- package/dist/cjs/icons/solid/Filter.d.ts +4 -0
- package/dist/cjs/icons/solid/Heart.d.ts +4 -0
- package/dist/cjs/icons/solid/History.d.ts +4 -0
- package/dist/cjs/icons/solid/Home.d.ts +4 -0
- package/dist/cjs/icons/solid/MarkPen.d.ts +4 -0
- package/dist/cjs/icons/solid/Translate.d.ts +4 -0
- package/dist/cjs/icons/solid/index.d.ts +13 -0
- package/dist/cjs/icons/stroke/ArrowDownS.d.ts +4 -0
- package/dist/cjs/icons/stroke/ArrowLeftS.d.ts +4 -0
- package/dist/cjs/icons/stroke/ArrowRightS.d.ts +4 -0
- package/dist/cjs/icons/stroke/ArrowUpS.d.ts +4 -0
- package/dist/cjs/icons/stroke/ChevronDoubleLeft.d.ts +4 -0
- package/dist/cjs/icons/stroke/ChevronDoubleRight.d.ts +4 -0
- package/dist/cjs/icons/stroke/Company.d.ts +4 -0
- package/dist/cjs/icons/stroke/Filter.d.ts +4 -0
- package/dist/cjs/icons/stroke/Heart.d.ts +4 -0
- package/dist/cjs/icons/stroke/History.d.ts +4 -0
- package/dist/cjs/icons/stroke/Home.d.ts +4 -0
- package/dist/cjs/icons/stroke/MarkPen.d.ts +4 -0
- package/dist/cjs/icons/stroke/Translate.d.ts +4 -0
- package/dist/cjs/icons/stroke/index.d.ts +13 -0
- package/dist/cjs/index.js +179 -31
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/Checkbox.stories.d.ts +2 -0
- package/dist/cjs/stories/Tree.stories.d.ts +0 -1
- package/dist/esm/_index.d.ts +4 -4
- package/dist/esm/components/Checkbox.d.ts +3 -3
- package/dist/esm/components/Tree.d.ts +9 -6
- package/dist/esm/icons/solid/ArrowDownS.d.ts +4 -0
- package/dist/esm/icons/solid/ArrowLeftS.d.ts +4 -0
- package/dist/esm/icons/solid/ArrowRightS.d.ts +4 -0
- package/dist/esm/icons/solid/ArrowUpS.d.ts +4 -0
- package/dist/esm/icons/solid/ChevronDoubleLeft.d.ts +4 -0
- package/dist/esm/icons/solid/ChevronDoubleRight.d.ts +4 -0
- package/dist/esm/icons/solid/Company.d.ts +4 -0
- package/dist/esm/icons/solid/Filter.d.ts +4 -0
- package/dist/esm/icons/solid/Heart.d.ts +4 -0
- package/dist/esm/icons/solid/History.d.ts +4 -0
- package/dist/esm/icons/solid/Home.d.ts +4 -0
- package/dist/esm/icons/solid/MarkPen.d.ts +4 -0
- package/dist/esm/icons/solid/Translate.d.ts +4 -0
- package/dist/esm/icons/solid/index.d.ts +13 -0
- package/dist/esm/icons/stroke/ArrowDownS.d.ts +4 -0
- package/dist/esm/icons/stroke/ArrowLeftS.d.ts +4 -0
- package/dist/esm/icons/stroke/ArrowRightS.d.ts +4 -0
- package/dist/esm/icons/stroke/ArrowUpS.d.ts +4 -0
- package/dist/esm/icons/stroke/ChevronDoubleLeft.d.ts +4 -0
- package/dist/esm/icons/stroke/ChevronDoubleRight.d.ts +4 -0
- package/dist/esm/icons/stroke/Company.d.ts +4 -0
- package/dist/esm/icons/stroke/Filter.d.ts +4 -0
- package/dist/esm/icons/stroke/Heart.d.ts +4 -0
- package/dist/esm/icons/stroke/History.d.ts +4 -0
- package/dist/esm/icons/stroke/Home.d.ts +4 -0
- package/dist/esm/icons/stroke/MarkPen.d.ts +4 -0
- package/dist/esm/icons/stroke/Translate.d.ts +4 -0
- package/dist/esm/icons/stroke/index.d.ts +13 -0
- package/dist/esm/index.js +154 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/Checkbox.stories.d.ts +2 -0
- package/dist/esm/stories/Tree.stories.d.ts +0 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/_index.ts +52 -0
- package/src/components/Checkbox.tsx +42 -12
- package/src/components/Tree.tsx +71 -66
- package/src/icons/solid/ArrowDownS.tsx +15 -0
- package/src/icons/solid/ArrowLeftS.tsx +15 -0
- package/src/icons/solid/ArrowRightS.tsx +15 -0
- package/src/icons/solid/ArrowUpS.tsx +15 -0
- package/src/icons/solid/ChevronDoubleLeft.tsx +22 -0
- package/src/icons/solid/ChevronDoubleRight.tsx +22 -0
- package/src/icons/solid/Company.tsx +20 -0
- package/src/icons/solid/Filter.tsx +18 -0
- package/src/icons/solid/Heart.tsx +18 -0
- package/src/icons/solid/History.tsx +18 -0
- package/src/icons/solid/Home.tsx +20 -0
- package/src/icons/solid/MarkPen.tsx +18 -0
- package/src/icons/solid/Translate.tsx +18 -0
- package/src/icons/solid/index.ts +14 -0
- package/src/icons/src/solid/arrow-down-s.svg +3 -0
- package/src/icons/src/solid/arrow-left-s.svg +3 -0
- package/src/icons/src/solid/arrow-right-s.svg +3 -0
- package/src/icons/src/solid/arrow-up-s.svg +3 -0
- package/src/icons/src/solid/chevron-double-left.svg +4 -0
- package/src/icons/src/solid/chevron-double-right.svg +4 -0
- package/src/icons/src/solid/company.svg +3 -0
- package/src/icons/src/solid/filter.svg +3 -0
- package/src/icons/src/solid/heart.svg +3 -0
- package/src/icons/src/solid/history.svg +3 -0
- package/src/icons/src/solid/home.svg +3 -0
- package/src/icons/src/solid/mark-pen.svg +3 -0
- package/src/icons/src/solid/translate.svg +3 -0
- package/src/icons/src/stroke/arrow-down-s.svg +3 -0
- package/src/icons/src/stroke/arrow-left-s.svg +3 -0
- package/src/icons/src/stroke/arrow-right-s.svg +3 -0
- package/src/icons/src/stroke/arrow-up-s.svg +3 -0
- package/src/icons/src/stroke/chevron-double-left.svg +4 -0
- package/src/icons/src/stroke/chevron-double-right.svg +4 -0
- package/src/icons/src/stroke/company.svg +9 -0
- package/src/icons/src/stroke/filter.svg +3 -0
- package/src/icons/src/stroke/heart.svg +3 -0
- package/src/icons/src/stroke/history.svg +3 -0
- package/src/icons/src/stroke/home.svg +3 -0
- package/src/icons/src/stroke/mark-pen.svg +3 -0
- package/src/icons/src/stroke/translate.svg +3 -0
- package/src/icons/stroke/ArrowDownS.tsx +15 -0
- package/src/icons/stroke/ArrowLeftS.tsx +15 -0
- package/src/icons/stroke/ArrowRightS.tsx +15 -0
- package/src/icons/stroke/ArrowUpS.tsx +15 -0
- package/src/icons/stroke/ChevronDoubleLeft.tsx +16 -0
- package/src/icons/stroke/ChevronDoubleRight.tsx +16 -0
- package/src/icons/stroke/Company.tsx +24 -0
- package/src/icons/stroke/Filter.tsx +15 -0
- package/src/icons/stroke/Heart.tsx +20 -0
- package/src/icons/stroke/History.tsx +18 -0
- package/src/icons/stroke/Home.tsx +20 -0
- package/src/icons/stroke/MarkPen.tsx +18 -0
- package/src/icons/stroke/Translate.tsx +18 -0
- package/src/icons/stroke/index.ts +13 -0
- package/src/logo/src/platforms/Zendesk.svg +6 -0
- package/src/stories/Checkbox.stories.tsx +63 -2
- package/src/stories/Tree.stories.tsx +152 -189
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export { default as ArrowDown } from "./ArrowDown";
|
|
2
2
|
export { default as ArrowDownCircle } from "./ArrowDownCircle";
|
|
3
3
|
export { default as ArrowDownOnSquare } from "./ArrowDownOnSquare";
|
|
4
|
+
export { default as ArrowDownS } from "./ArrowDownS";
|
|
4
5
|
export { default as ArrowLeft } from "./ArrowLeft";
|
|
6
|
+
export { default as ArrowLeftS } from "./ArrowLeftS";
|
|
5
7
|
export { default as ArrowPath } from "./ArrowPath";
|
|
6
8
|
export { default as ArrowRight } from "./ArrowRight";
|
|
9
|
+
export { default as ArrowRightS } from "./ArrowRightS";
|
|
7
10
|
export { default as ArrowUp } from "./ArrowUp";
|
|
8
11
|
export { default as ArrowUpOnSquare } from "./ArrowUpOnSquare";
|
|
12
|
+
export { default as ArrowUpS } from "./ArrowUpS";
|
|
9
13
|
export { default as Attachment } from "./Attachment";
|
|
10
14
|
export { default as Backspace } from "./Backspace";
|
|
11
15
|
export { default as Bookmark } from "./Bookmark";
|
|
@@ -18,6 +22,8 @@ export { default as ChatBubbleLeftRight } from "./ChatBubbleLeftRight";
|
|
|
18
22
|
export { default as ChatBubbleThought } from "./ChatBubbleThought";
|
|
19
23
|
export { default as Check } from "./Check";
|
|
20
24
|
export { default as CheckCircle } from "./CheckCircle";
|
|
25
|
+
export { default as ChevronDoubleLeft } from "./ChevronDoubleLeft";
|
|
26
|
+
export { default as ChevronDoubleRight } from "./ChevronDoubleRight";
|
|
21
27
|
export { default as ChevronDown } from "./ChevronDown";
|
|
22
28
|
export { default as ChevronLeft } from "./ChevronLeft";
|
|
23
29
|
export { default as ChevronRight } from "./ChevronRight";
|
|
@@ -34,6 +40,7 @@ export { default as CloudX } from "./CloudX";
|
|
|
34
40
|
export { default as Cog6Tooth } from "./Cog6Tooth";
|
|
35
41
|
export { default as Command } from "./Command";
|
|
36
42
|
export { default as CommandLine } from "./CommandLine";
|
|
43
|
+
export { default as Company } from "./Company";
|
|
37
44
|
export { default as Cube } from "./Cube";
|
|
38
45
|
export { default as Dash } from "./Dash";
|
|
39
46
|
export { default as Document } from "./Document";
|
|
@@ -48,6 +55,7 @@ export { default as ExclamationCircle } from "./ExclamationCircle";
|
|
|
48
55
|
export { default as ExternalLink } from "./ExternalLink";
|
|
49
56
|
export { default as Eye } from "./Eye";
|
|
50
57
|
export { default as EyeSlash } from "./EyeSlash";
|
|
58
|
+
export { default as Filter } from "./Filter";
|
|
51
59
|
export { default as Fire } from "./Fire";
|
|
52
60
|
export { default as Flag } from "./Flag";
|
|
53
61
|
export { default as Folder } from "./Folder";
|
|
@@ -58,8 +66,11 @@ export { default as GlobeAlt } from "./GlobeAlt";
|
|
|
58
66
|
export { default as Grab } from "./Grab";
|
|
59
67
|
export { default as HandThumbDown } from "./HandThumbDown";
|
|
60
68
|
export { default as HandThumbUp } from "./HandThumbUp";
|
|
69
|
+
export { default as Heart } from "./Heart";
|
|
61
70
|
export { default as HeartAlt } from "./HeartAlt";
|
|
62
71
|
export { default as Hexagon } from "./Hexagon";
|
|
72
|
+
export { default as History } from "./History";
|
|
73
|
+
export { default as Home } from "./Home";
|
|
63
74
|
export { default as Image } from "./Image";
|
|
64
75
|
export { default as InformationCircle } from "./InformationCircle";
|
|
65
76
|
export { default as Key } from "./Key";
|
|
@@ -74,6 +85,7 @@ export { default as Login } from "./Login";
|
|
|
74
85
|
export { default as Logout } from "./Logout";
|
|
75
86
|
export { default as Magic } from "./Magic";
|
|
76
87
|
export { default as MagnifyingGlass } from "./MagnifyingGlass";
|
|
88
|
+
export { default as MarkPen } from "./MarkPen";
|
|
77
89
|
export { default as Menu } from "./Menu";
|
|
78
90
|
export { default as More } from "./More";
|
|
79
91
|
export { default as MovingMail } from "./MovingMail";
|
|
@@ -106,6 +118,7 @@ export { default as Tag } from "./Tag";
|
|
|
106
118
|
export { default as Template } from "./Template";
|
|
107
119
|
export { default as TestTube } from "./TestTube";
|
|
108
120
|
export { default as Time } from "./Time";
|
|
121
|
+
export { default as Translate } from "./Translate";
|
|
109
122
|
export { default as Trash } from "./Trash";
|
|
110
123
|
export { default as Triangle } from "./Triangle";
|
|
111
124
|
export { default as User } from "./User";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13 4L13 16L23 4L13 4Z" fill="#03363D"/>
|
|
3
|
+
<path d="M6 9C3.23858 9 1 6.76142 1 4H11C11 6.76142 8.76142 9 6 9Z" fill="#03363D"/>
|
|
4
|
+
<path d="M18 15C20.7614 15 23 17.2386 23 20H13C13 17.2386 15.2386 15 18 15Z" fill="#03363D"/>
|
|
5
|
+
<path d="M11 8V20H1L11 8Z" fill="#03363D"/>
|
|
6
|
+
</svg>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
|
|
3
4
|
import { Checkbox } from "../index_with_tw_base";
|
|
4
5
|
|
|
@@ -9,6 +10,67 @@ const meta = {
|
|
|
9
10
|
|
|
10
11
|
export default meta;
|
|
11
12
|
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export const CheckBoxExample = () => {
|
|
14
|
+
// No-op function for onChange
|
|
15
|
+
const handleChange = () => {
|
|
16
|
+
// This function intentionally left blank
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div className="s-flex s-flex-col s-gap-10">
|
|
21
|
+
SM
|
|
22
|
+
<div className="s-flex s-gap-10">
|
|
23
|
+
Selectable
|
|
24
|
+
<Checkbox variant="selectable" onChange={handleChange} />
|
|
25
|
+
<Checkbox checked variant="selectable" onChange={handleChange} />
|
|
26
|
+
<Checkbox
|
|
27
|
+
checked="partial"
|
|
28
|
+
variant="selectable"
|
|
29
|
+
onChange={handleChange}
|
|
30
|
+
/>
|
|
31
|
+
Checkable
|
|
32
|
+
<Checkbox variant="checkable" onChange={handleChange} />
|
|
33
|
+
<Checkbox checked variant="checkable" onChange={handleChange} />
|
|
34
|
+
<Checkbox
|
|
35
|
+
checked="partial"
|
|
36
|
+
variant="checkable"
|
|
37
|
+
onChange={handleChange}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
XS
|
|
41
|
+
<div className="s-flex s-gap-10">
|
|
42
|
+
Selectable
|
|
43
|
+
<Checkbox size="xs" variant="selectable" onChange={handleChange} />
|
|
44
|
+
<Checkbox
|
|
45
|
+
size="xs"
|
|
46
|
+
checked
|
|
47
|
+
variant="selectable"
|
|
48
|
+
onChange={handleChange}
|
|
49
|
+
/>
|
|
50
|
+
<Checkbox
|
|
51
|
+
size="xs"
|
|
52
|
+
checked="partial"
|
|
53
|
+
variant="selectable"
|
|
54
|
+
onChange={handleChange}
|
|
55
|
+
/>
|
|
56
|
+
Checkable
|
|
57
|
+
<Checkbox size="xs" variant="checkable" onChange={handleChange} />
|
|
58
|
+
<Checkbox
|
|
59
|
+
size="xs"
|
|
60
|
+
checked
|
|
61
|
+
variant="checkable"
|
|
62
|
+
onChange={handleChange}
|
|
63
|
+
/>
|
|
64
|
+
<Checkbox
|
|
65
|
+
size="xs"
|
|
66
|
+
checked="partial"
|
|
67
|
+
variant="checkable"
|
|
68
|
+
onChange={handleChange}
|
|
69
|
+
/>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
};
|
|
12
74
|
|
|
13
75
|
export const Selectable: Story = {
|
|
14
76
|
args: {
|
|
@@ -32,8 +94,7 @@ export const Unchecked: Story = {
|
|
|
32
94
|
|
|
33
95
|
export const PartialChecked: Story = {
|
|
34
96
|
args: {
|
|
35
|
-
checked:
|
|
36
|
-
partialChecked: true,
|
|
97
|
+
checked: "partial",
|
|
37
98
|
variant: "checkable",
|
|
38
99
|
},
|
|
39
100
|
};
|