@dust-tt/sparkle 0.2.210-rc → 0.2.210
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/DataTable.d.ts +3 -3
- package/dist/cjs/components/Tree.d.ts +6 -9
- package/dist/cjs/icons/solid/index.d.ts +0 -13
- package/dist/cjs/icons/stroke/index.d.ts +0 -13
- package/dist/cjs/index.js +31 -179
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/stories/Checkbox.stories.d.ts +0 -2
- package/dist/cjs/stories/Tree.stories.d.ts +1 -0
- package/dist/esm/_index.d.ts +4 -4
- package/dist/esm/components/Checkbox.d.ts +3 -3
- package/dist/esm/components/DataTable.d.ts +3 -3
- package/dist/esm/components/Tree.d.ts +6 -9
- package/dist/esm/icons/solid/index.d.ts +0 -13
- package/dist/esm/icons/stroke/index.d.ts +0 -13
- package/dist/esm/index.js +32 -154
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stories/Checkbox.stories.d.ts +0 -2
- package/dist/esm/stories/Tree.stories.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/_index.ts +0 -52
- package/src/components/Checkbox.tsx +12 -42
- package/src/components/DataTable.tsx +4 -4
- package/src/components/Tree.tsx +66 -71
- package/src/icons/solid/index.ts +0 -14
- package/src/icons/stroke/index.ts +0 -13
- package/src/stories/Checkbox.stories.tsx +2 -63
- package/src/stories/Tree.stories.tsx +189 -152
- package/dist/cjs/icons/solid/ArrowDownS.d.ts +0 -4
- package/dist/cjs/icons/solid/ArrowLeftS.d.ts +0 -4
- package/dist/cjs/icons/solid/ArrowRightS.d.ts +0 -4
- package/dist/cjs/icons/solid/ArrowUpS.d.ts +0 -4
- package/dist/cjs/icons/solid/ChevronDoubleLeft.d.ts +0 -4
- package/dist/cjs/icons/solid/ChevronDoubleRight.d.ts +0 -4
- package/dist/cjs/icons/solid/Company.d.ts +0 -4
- package/dist/cjs/icons/solid/Filter.d.ts +0 -4
- package/dist/cjs/icons/solid/Heart.d.ts +0 -4
- package/dist/cjs/icons/solid/History.d.ts +0 -4
- package/dist/cjs/icons/solid/Home.d.ts +0 -4
- package/dist/cjs/icons/solid/MarkPen.d.ts +0 -4
- package/dist/cjs/icons/solid/Translate.d.ts +0 -4
- package/dist/cjs/icons/stroke/ArrowDownS.d.ts +0 -4
- package/dist/cjs/icons/stroke/ArrowLeftS.d.ts +0 -4
- package/dist/cjs/icons/stroke/ArrowRightS.d.ts +0 -4
- package/dist/cjs/icons/stroke/ArrowUpS.d.ts +0 -4
- package/dist/cjs/icons/stroke/ChevronDoubleLeft.d.ts +0 -4
- package/dist/cjs/icons/stroke/ChevronDoubleRight.d.ts +0 -4
- package/dist/cjs/icons/stroke/Company.d.ts +0 -4
- package/dist/cjs/icons/stroke/Filter.d.ts +0 -4
- package/dist/cjs/icons/stroke/Heart.d.ts +0 -4
- package/dist/cjs/icons/stroke/History.d.ts +0 -4
- package/dist/cjs/icons/stroke/Home.d.ts +0 -4
- package/dist/cjs/icons/stroke/MarkPen.d.ts +0 -4
- package/dist/cjs/icons/stroke/Translate.d.ts +0 -4
- package/dist/esm/icons/solid/ArrowDownS.d.ts +0 -4
- package/dist/esm/icons/solid/ArrowLeftS.d.ts +0 -4
- package/dist/esm/icons/solid/ArrowRightS.d.ts +0 -4
- package/dist/esm/icons/solid/ArrowUpS.d.ts +0 -4
- package/dist/esm/icons/solid/ChevronDoubleLeft.d.ts +0 -4
- package/dist/esm/icons/solid/ChevronDoubleRight.d.ts +0 -4
- package/dist/esm/icons/solid/Company.d.ts +0 -4
- package/dist/esm/icons/solid/Filter.d.ts +0 -4
- package/dist/esm/icons/solid/Heart.d.ts +0 -4
- package/dist/esm/icons/solid/History.d.ts +0 -4
- package/dist/esm/icons/solid/Home.d.ts +0 -4
- package/dist/esm/icons/solid/MarkPen.d.ts +0 -4
- package/dist/esm/icons/solid/Translate.d.ts +0 -4
- package/dist/esm/icons/stroke/ArrowDownS.d.ts +0 -4
- package/dist/esm/icons/stroke/ArrowLeftS.d.ts +0 -4
- package/dist/esm/icons/stroke/ArrowRightS.d.ts +0 -4
- package/dist/esm/icons/stroke/ArrowUpS.d.ts +0 -4
- package/dist/esm/icons/stroke/ChevronDoubleLeft.d.ts +0 -4
- package/dist/esm/icons/stroke/ChevronDoubleRight.d.ts +0 -4
- package/dist/esm/icons/stroke/Company.d.ts +0 -4
- package/dist/esm/icons/stroke/Filter.d.ts +0 -4
- package/dist/esm/icons/stroke/Heart.d.ts +0 -4
- package/dist/esm/icons/stroke/History.d.ts +0 -4
- package/dist/esm/icons/stroke/Home.d.ts +0 -4
- package/dist/esm/icons/stroke/MarkPen.d.ts +0 -4
- package/dist/esm/icons/stroke/Translate.d.ts +0 -4
- package/src/icons/solid/ArrowDownS.tsx +0 -15
- package/src/icons/solid/ArrowLeftS.tsx +0 -15
- package/src/icons/solid/ArrowRightS.tsx +0 -15
- package/src/icons/solid/ArrowUpS.tsx +0 -15
- package/src/icons/solid/ChevronDoubleLeft.tsx +0 -22
- package/src/icons/solid/ChevronDoubleRight.tsx +0 -22
- package/src/icons/solid/Company.tsx +0 -20
- package/src/icons/solid/Filter.tsx +0 -18
- package/src/icons/solid/Heart.tsx +0 -18
- package/src/icons/solid/History.tsx +0 -18
- package/src/icons/solid/Home.tsx +0 -20
- package/src/icons/solid/MarkPen.tsx +0 -18
- package/src/icons/solid/Translate.tsx +0 -18
- package/src/icons/src/solid/arrow-down-s.svg +0 -3
- package/src/icons/src/solid/arrow-left-s.svg +0 -3
- package/src/icons/src/solid/arrow-right-s.svg +0 -3
- package/src/icons/src/solid/arrow-up-s.svg +0 -3
- package/src/icons/src/solid/chevron-double-left.svg +0 -4
- package/src/icons/src/solid/chevron-double-right.svg +0 -4
- package/src/icons/src/solid/company.svg +0 -3
- package/src/icons/src/solid/filter.svg +0 -3
- package/src/icons/src/solid/heart.svg +0 -3
- package/src/icons/src/solid/history.svg +0 -3
- package/src/icons/src/solid/home.svg +0 -3
- package/src/icons/src/solid/mark-pen.svg +0 -3
- package/src/icons/src/solid/translate.svg +0 -3
- package/src/icons/src/stroke/arrow-down-s.svg +0 -3
- package/src/icons/src/stroke/arrow-left-s.svg +0 -3
- package/src/icons/src/stroke/arrow-right-s.svg +0 -3
- package/src/icons/src/stroke/arrow-up-s.svg +0 -3
- package/src/icons/src/stroke/chevron-double-left.svg +0 -4
- package/src/icons/src/stroke/chevron-double-right.svg +0 -4
- package/src/icons/src/stroke/company.svg +0 -9
- package/src/icons/src/stroke/filter.svg +0 -3
- package/src/icons/src/stroke/heart.svg +0 -3
- package/src/icons/src/stroke/history.svg +0 -3
- package/src/icons/src/stroke/home.svg +0 -3
- package/src/icons/src/stroke/mark-pen.svg +0 -3
- package/src/icons/src/stroke/translate.svg +0 -3
- package/src/icons/stroke/ArrowDownS.tsx +0 -15
- package/src/icons/stroke/ArrowLeftS.tsx +0 -15
- package/src/icons/stroke/ArrowRightS.tsx +0 -15
- package/src/icons/stroke/ArrowUpS.tsx +0 -15
- package/src/icons/stroke/ChevronDoubleLeft.tsx +0 -16
- package/src/icons/stroke/ChevronDoubleRight.tsx +0 -16
- package/src/icons/stroke/Company.tsx +0 -24
- package/src/icons/stroke/Filter.tsx +0 -15
- package/src/icons/stroke/Heart.tsx +0 -20
- package/src/icons/stroke/History.tsx +0 -18
- package/src/icons/stroke/Home.tsx +0 -20
- package/src/icons/stroke/MarkPen.tsx +0 -18
- package/src/icons/stroke/Translate.tsx +0 -18
- package/src/logo/src/platforms/Zendesk.svg +0 -6
package/src/icons/solid/index.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
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";
|
|
5
4
|
export { default as ArrowLeft } from "./ArrowLeft";
|
|
6
|
-
export { default as ArrowLeftS } from "./ArrowLeftS";
|
|
7
5
|
export { default as ArrowPath } from "./ArrowPath";
|
|
8
6
|
export { default as ArrowRight } from "./ArrowRight";
|
|
9
|
-
export { default as ArrowRightS } from "./ArrowRightS";
|
|
10
7
|
export { default as ArrowUp } from "./ArrowUp";
|
|
11
8
|
export { default as ArrowUpOnSquare } from "./ArrowUpOnSquare";
|
|
12
|
-
export { default as ArrowUpS } from "./ArrowUpS";
|
|
13
9
|
export { default as Attachment } from "./Attachment";
|
|
14
10
|
export { default as Backspace } from "./Backspace";
|
|
15
11
|
export { default as Bookmark } from "./Bookmark";
|
|
@@ -22,8 +18,6 @@ export { default as ChatBubbleLeftRight } from "./ChatBubbleLeftRight";
|
|
|
22
18
|
export { default as ChatBubbleThought } from "./ChatBubbleThought";
|
|
23
19
|
export { default as Check } from "./Check";
|
|
24
20
|
export { default as CheckCircle } from "./CheckCircle";
|
|
25
|
-
export { default as ChevronDoubleLeft } from "./ChevronDoubleLeft";
|
|
26
|
-
export { default as ChevronDoubleRight } from "./ChevronDoubleRight";
|
|
27
21
|
export { default as ChevronDown } from "./ChevronDown";
|
|
28
22
|
export { default as ChevronLeft } from "./ChevronLeft";
|
|
29
23
|
export { default as ChevronRight } from "./ChevronRight";
|
|
@@ -40,7 +34,6 @@ export { default as CloudX } from "./CloudX";
|
|
|
40
34
|
export { default as Cog6Tooth } from "./Cog6Tooth";
|
|
41
35
|
export { default as Command } from "./Command";
|
|
42
36
|
export { default as CommandLine } from "./CommandLine";
|
|
43
|
-
export { default as Company } from "./Company";
|
|
44
37
|
export { default as Cube } from "./Cube";
|
|
45
38
|
export { default as Dash } from "./Dash";
|
|
46
39
|
export { default as Document } from "./Document";
|
|
@@ -55,7 +48,6 @@ export { default as ExclamationCircle } from "./ExclamationCircle";
|
|
|
55
48
|
export { default as ExternalLink } from "./ExternalLink";
|
|
56
49
|
export { default as Eye } from "./Eye";
|
|
57
50
|
export { default as EyeSlash } from "./EyeSlash";
|
|
58
|
-
export { default as Filter } from "./Filter";
|
|
59
51
|
export { default as Fire } from "./Fire";
|
|
60
52
|
export { default as Flag } from "./Flag";
|
|
61
53
|
export { default as Folder } from "./Folder";
|
|
@@ -66,11 +58,8 @@ export { default as GlobeAlt } from "./GlobeAlt";
|
|
|
66
58
|
export { default as Grab } from "./Grab";
|
|
67
59
|
export { default as HandThumbDown } from "./HandThumbDown";
|
|
68
60
|
export { default as HandThumbUp } from "./HandThumbUp";
|
|
69
|
-
export { default as Heart } from "./Heart";
|
|
70
61
|
export { default as HeartAlt } from "./HeartAlt";
|
|
71
62
|
export { default as Hexagon } from "./Hexagon";
|
|
72
|
-
export { default as History } from "./History";
|
|
73
|
-
export { default as Home } from "./Home";
|
|
74
63
|
export { default as Image } from "./Image";
|
|
75
64
|
export { default as InformationCircle } from "./InformationCircle";
|
|
76
65
|
export { default as Key } from "./Key";
|
|
@@ -85,7 +74,6 @@ export { default as Login } from "./Login";
|
|
|
85
74
|
export { default as Logout } from "./Logout";
|
|
86
75
|
export { default as Magic } from "./Magic";
|
|
87
76
|
export { default as MagnifyingGlass } from "./MagnifyingGlass";
|
|
88
|
-
export { default as MarkPen } from "./MarkPen";
|
|
89
77
|
export { default as Menu } from "./Menu";
|
|
90
78
|
export { default as More } from "./More";
|
|
91
79
|
export { default as MovingMail } from "./MovingMail";
|
|
@@ -118,7 +106,6 @@ export { default as Tag } from "./Tag";
|
|
|
118
106
|
export { default as Template } from "./Template";
|
|
119
107
|
export { default as TestTube } from "./TestTube";
|
|
120
108
|
export { default as Time } from "./Time";
|
|
121
|
-
export { default as Translate } from "./Translate";
|
|
122
109
|
export { default as Trash } from "./Trash";
|
|
123
110
|
export { default as Triangle } from "./Triangle";
|
|
124
111
|
export { default as User } from "./User";
|
|
@@ -128,4 +115,3 @@ export { default as UserPlus } from "./UserPlus";
|
|
|
128
115
|
export { default as Wrench } from "./Wrench";
|
|
129
116
|
export { default as XCircle } from "./XCircle";
|
|
130
117
|
export { default as XMark } from "./XMark";
|
|
131
|
-
|
|
@@ -1,15 +1,11 @@
|
|
|
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";
|
|
5
4
|
export { default as ArrowLeft } from "./ArrowLeft";
|
|
6
|
-
export { default as ArrowLeftS } from "./ArrowLeftS";
|
|
7
5
|
export { default as ArrowPath } from "./ArrowPath";
|
|
8
6
|
export { default as ArrowRight } from "./ArrowRight";
|
|
9
|
-
export { default as ArrowRightS } from "./ArrowRightS";
|
|
10
7
|
export { default as ArrowUp } from "./ArrowUp";
|
|
11
8
|
export { default as ArrowUpOnSquare } from "./ArrowUpOnSquare";
|
|
12
|
-
export { default as ArrowUpS } from "./ArrowUpS";
|
|
13
9
|
export { default as Attachment } from "./Attachment";
|
|
14
10
|
export { default as Backspace } from "./Backspace";
|
|
15
11
|
export { default as Bookmark } from "./Bookmark";
|
|
@@ -22,8 +18,6 @@ export { default as ChatBubbleLeftRight } from "./ChatBubbleLeftRight";
|
|
|
22
18
|
export { default as ChatBubbleThought } from "./ChatBubbleThought";
|
|
23
19
|
export { default as Check } from "./Check";
|
|
24
20
|
export { default as CheckCircle } from "./CheckCircle";
|
|
25
|
-
export { default as ChevronDoubleLeft } from "./ChevronDoubleLeft";
|
|
26
|
-
export { default as ChevronDoubleRight } from "./ChevronDoubleRight";
|
|
27
21
|
export { default as ChevronDown } from "./ChevronDown";
|
|
28
22
|
export { default as ChevronLeft } from "./ChevronLeft";
|
|
29
23
|
export { default as ChevronRight } from "./ChevronRight";
|
|
@@ -40,7 +34,6 @@ export { default as CloudX } from "./CloudX";
|
|
|
40
34
|
export { default as Cog6Tooth } from "./Cog6Tooth";
|
|
41
35
|
export { default as Command } from "./Command";
|
|
42
36
|
export { default as CommandLine } from "./CommandLine";
|
|
43
|
-
export { default as Company } from "./Company";
|
|
44
37
|
export { default as Cube } from "./Cube";
|
|
45
38
|
export { default as Dash } from "./Dash";
|
|
46
39
|
export { default as Document } from "./Document";
|
|
@@ -55,7 +48,6 @@ export { default as ExclamationCircle } from "./ExclamationCircle";
|
|
|
55
48
|
export { default as ExternalLink } from "./ExternalLink";
|
|
56
49
|
export { default as Eye } from "./Eye";
|
|
57
50
|
export { default as EyeSlash } from "./EyeSlash";
|
|
58
|
-
export { default as Filter } from "./Filter";
|
|
59
51
|
export { default as Fire } from "./Fire";
|
|
60
52
|
export { default as Flag } from "./Flag";
|
|
61
53
|
export { default as Folder } from "./Folder";
|
|
@@ -66,11 +58,8 @@ export { default as GlobeAlt } from "./GlobeAlt";
|
|
|
66
58
|
export { default as Grab } from "./Grab";
|
|
67
59
|
export { default as HandThumbDown } from "./HandThumbDown";
|
|
68
60
|
export { default as HandThumbUp } from "./HandThumbUp";
|
|
69
|
-
export { default as Heart } from "./Heart";
|
|
70
61
|
export { default as HeartAlt } from "./HeartAlt";
|
|
71
62
|
export { default as Hexagon } from "./Hexagon";
|
|
72
|
-
export { default as History } from "./History";
|
|
73
|
-
export { default as Home } from "./Home";
|
|
74
63
|
export { default as Image } from "./Image";
|
|
75
64
|
export { default as InformationCircle } from "./InformationCircle";
|
|
76
65
|
export { default as Key } from "./Key";
|
|
@@ -85,7 +74,6 @@ export { default as Login } from "./Login";
|
|
|
85
74
|
export { default as Logout } from "./Logout";
|
|
86
75
|
export { default as Magic } from "./Magic";
|
|
87
76
|
export { default as MagnifyingGlass } from "./MagnifyingGlass";
|
|
88
|
-
export { default as MarkPen } from "./MarkPen";
|
|
89
77
|
export { default as Menu } from "./Menu";
|
|
90
78
|
export { default as More } from "./More";
|
|
91
79
|
export { default as MovingMail } from "./MovingMail";
|
|
@@ -118,7 +106,6 @@ export { default as Tag } from "./Tag";
|
|
|
118
106
|
export { default as Template } from "./Template";
|
|
119
107
|
export { default as TestTube } from "./TestTube";
|
|
120
108
|
export { default as Time } from "./Time";
|
|
121
|
-
export { default as Translate } from "./Translate";
|
|
122
109
|
export { default as Trash } from "./Trash";
|
|
123
110
|
export { default as Triangle } from "./Triangle";
|
|
124
111
|
export { default as User } from "./User";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import React from "react";
|
|
3
2
|
|
|
4
3
|
import { Checkbox } from "../index_with_tw_base";
|
|
5
4
|
|
|
@@ -10,67 +9,6 @@ const meta = {
|
|
|
10
9
|
|
|
11
10
|
export default meta;
|
|
12
11
|
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
|
-
};
|
|
74
12
|
|
|
75
13
|
export const Selectable: Story = {
|
|
76
14
|
args: {
|
|
@@ -94,7 +32,8 @@ export const Unchecked: Story = {
|
|
|
94
32
|
|
|
95
33
|
export const PartialChecked: Story = {
|
|
96
34
|
args: {
|
|
97
|
-
checked:
|
|
35
|
+
checked: false,
|
|
36
|
+
partialChecked: true,
|
|
98
37
|
variant: "checkable",
|
|
99
38
|
},
|
|
100
39
|
};
|