@dust-tt/sparkle 0.2.274 → 0.2.276

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.
Files changed (157) hide show
  1. package/dist/cjs/index.js +8245 -8259
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/components/AssistantPreview.d.ts.map +1 -1
  4. package/dist/esm/components/AssistantPreview.js +1 -1
  5. package/dist/esm/components/AssistantPreview.js.map +1 -1
  6. package/dist/esm/components/Banner.js +1 -1
  7. package/dist/esm/components/Banner.js.map +1 -1
  8. package/dist/esm/components/BarHeader.js +5 -5
  9. package/dist/esm/components/BarHeader.js.map +1 -1
  10. package/dist/esm/components/Button.d.ts +20 -24
  11. package/dist/esm/components/Button.d.ts.map +1 -1
  12. package/dist/esm/components/Button.js +76 -117
  13. package/dist/esm/components/Button.js.map +1 -1
  14. package/dist/esm/components/Citation.js +1 -1
  15. package/dist/esm/components/Citation.js.map +1 -1
  16. package/dist/esm/components/ConversationMessageActions.d.ts.map +1 -1
  17. package/dist/esm/components/ConversationMessageActions.js +2 -2
  18. package/dist/esm/components/ConversationMessageActions.js.map +1 -1
  19. package/dist/esm/components/DataTable.js +2 -2
  20. package/dist/esm/components/DataTable.js.map +1 -1
  21. package/dist/esm/components/Dialog.d.ts +2 -2
  22. package/dist/esm/components/Dialog.d.ts.map +1 -1
  23. package/dist/esm/components/Dialog.js +2 -2
  24. package/dist/esm/components/Dialog.js.map +1 -1
  25. package/dist/esm/components/FilterChips.d.ts.map +1 -1
  26. package/dist/esm/components/FilterChips.js +1 -1
  27. package/dist/esm/components/FilterChips.js.map +1 -1
  28. package/dist/esm/components/IconButton.d.ts +4 -3
  29. package/dist/esm/components/IconButton.d.ts.map +1 -1
  30. package/dist/esm/components/IconButton.js +41 -65
  31. package/dist/esm/components/IconButton.js.map +1 -1
  32. package/dist/esm/components/Input.d.ts.map +1 -1
  33. package/dist/esm/components/Input.js +20 -7
  34. package/dist/esm/components/Input.js.map +1 -1
  35. package/dist/esm/components/Label.js +1 -1
  36. package/dist/esm/components/Label.js.map +1 -1
  37. package/dist/esm/components/Markdown.d.ts.map +1 -1
  38. package/dist/esm/components/Markdown.js +2 -2
  39. package/dist/esm/components/Markdown.js.map +1 -1
  40. package/dist/esm/components/NavigationList.d.ts +18 -0
  41. package/dist/esm/components/NavigationList.d.ts.map +1 -0
  42. package/dist/esm/components/NavigationList.js +70 -0
  43. package/dist/esm/components/NavigationList.js.map +1 -0
  44. package/dist/esm/components/NewDropdown.js +2 -2
  45. package/dist/esm/components/NewDropdown.js.map +1 -1
  46. package/dist/esm/components/Notification.js +1 -1
  47. package/dist/esm/components/Notification.js.map +1 -1
  48. package/dist/esm/components/Pagination.d.ts.map +1 -1
  49. package/dist/esm/components/Pagination.js +2 -2
  50. package/dist/esm/components/Pagination.js.map +1 -1
  51. package/dist/esm/components/Popover.js +1 -1
  52. package/dist/esm/components/Popup.js +1 -1
  53. package/dist/esm/components/Popup.js.map +1 -1
  54. package/dist/esm/components/RadioGroup.d.ts.map +1 -1
  55. package/dist/esm/components/RadioGroup.js +4 -4
  56. package/dist/esm/components/RadioGroup.js.map +1 -1
  57. package/dist/esm/components/Searchbar.js +1 -1
  58. package/dist/esm/components/Searchbar.js.map +1 -1
  59. package/dist/esm/components/Spinner.d.ts +6 -2
  60. package/dist/esm/components/Spinner.d.ts.map +1 -1
  61. package/dist/esm/components/Spinner.js +34 -47
  62. package/dist/esm/components/Spinner.js.map +1 -1
  63. package/dist/esm/components/Tree.d.ts +2 -1
  64. package/dist/esm/components/Tree.d.ts.map +1 -1
  65. package/dist/esm/components/Tree.js +9 -9
  66. package/dist/esm/components/Tree.js.map +1 -1
  67. package/dist/esm/components/ZoomableImageCitationWrapper.js +1 -1
  68. package/dist/esm/components/index.d.ts +2 -1
  69. package/dist/esm/components/index.d.ts.map +1 -1
  70. package/dist/esm/components/index.js +2 -1
  71. package/dist/esm/components/index.js.map +1 -1
  72. package/dist/esm/stories/Banner.stories.js +1 -1
  73. package/dist/esm/stories/Banner.stories.js.map +1 -1
  74. package/dist/esm/stories/Button.stories.d.ts +3 -16
  75. package/dist/esm/stories/Button.stories.d.ts.map +1 -1
  76. package/dist/esm/stories/Button.stories.js +54 -166
  77. package/dist/esm/stories/Button.stories.js.map +1 -1
  78. package/dist/esm/stories/CardButton.stories.js +1 -1
  79. package/dist/esm/stories/CardButton.stories.js.map +1 -1
  80. package/dist/esm/stories/ContextItem.stories.d.ts.map +1 -1
  81. package/dist/esm/stories/ContextItem.stories.js +5 -5
  82. package/dist/esm/stories/ContextItem.stories.js.map +1 -1
  83. package/dist/esm/stories/Dialog.stories.js +1 -1
  84. package/dist/esm/stories/Dialog.stories.js.map +1 -1
  85. package/dist/esm/stories/DropdownMenu.stories.d.ts.map +1 -1
  86. package/dist/esm/stories/DropdownMenu.stories.js +7 -7
  87. package/dist/esm/stories/DropdownMenu.stories.js.map +1 -1
  88. package/dist/esm/stories/IconButton.stories.js +4 -4
  89. package/dist/esm/stories/IconButton.stories.js.map +1 -1
  90. package/dist/esm/stories/Input.stories.js +1 -1
  91. package/dist/esm/stories/Input.stories.js.map +1 -1
  92. package/dist/esm/stories/Markdown.stories.d.ts +1 -2
  93. package/dist/esm/stories/Markdown.stories.d.ts.map +1 -1
  94. package/dist/esm/stories/Modal.stories.d.ts.map +1 -1
  95. package/dist/esm/stories/Modal.stories.js +1 -2
  96. package/dist/esm/stories/Modal.stories.js.map +1 -1
  97. package/dist/esm/stories/NavigationList.stories.d.ts +7 -0
  98. package/dist/esm/stories/NavigationList.stories.d.ts.map +1 -0
  99. package/dist/esm/stories/NavigationList.stories.js +140 -0
  100. package/dist/esm/stories/NavigationList.stories.js.map +1 -0
  101. package/dist/esm/stories/NewDropdown.stories.js +2 -2
  102. package/dist/esm/stories/NewDropdown.stories.js.map +1 -1
  103. package/dist/esm/stories/Page.stories.d.ts.map +1 -1
  104. package/dist/esm/stories/Page.stories.js +6 -6
  105. package/dist/esm/stories/Page.stories.js.map +1 -1
  106. package/dist/esm/stories/Popover.stories.js +1 -1
  107. package/dist/esm/stories/Popover.stories.js.map +1 -1
  108. package/dist/esm/stories/Searchbar.stories.js +3 -3
  109. package/dist/esm/stories/Searchbar.stories.js.map +1 -1
  110. package/dist/esm/stories/SliderToggle.stories.js +2 -2
  111. package/dist/esm/stories/SliderToggle.stories.js.map +1 -1
  112. package/dist/esm/stories/Tree.stories.d.ts.map +1 -1
  113. package/dist/esm/stories/Tree.stories.js +6 -6
  114. package/dist/esm/stories/Tree.stories.js.map +1 -1
  115. package/dist/sparkle.css +186 -281
  116. package/package.json +1 -1
  117. package/src/components/AssistantPreview.tsx +1 -5
  118. package/src/components/Banner.tsx +1 -1
  119. package/src/components/BarHeader.tsx +8 -11
  120. package/src/components/Button.tsx +169 -237
  121. package/src/components/Citation.tsx +1 -1
  122. package/src/components/ConversationMessageActions.tsx +3 -7
  123. package/src/components/DataTable.tsx +2 -2
  124. package/src/components/Dialog.tsx +5 -5
  125. package/src/components/FilterChips.tsx +1 -2
  126. package/src/components/IconButton.tsx +56 -87
  127. package/src/components/Input.tsx +44 -31
  128. package/src/components/Label.tsx +1 -1
  129. package/src/components/Markdown.tsx +2 -3
  130. package/src/components/NavigationList.tsx +137 -0
  131. package/src/components/NewDropdown.tsx +2 -2
  132. package/src/components/Notification.tsx +1 -1
  133. package/src/components/Pagination.tsx +2 -8
  134. package/src/components/Popover.tsx +1 -1
  135. package/src/components/Popup.tsx +1 -1
  136. package/src/components/RadioGroup.tsx +20 -22
  137. package/src/components/Searchbar.tsx +1 -1
  138. package/src/components/Spinner.tsx +45 -68
  139. package/src/components/Tree.tsx +11 -9
  140. package/src/components/ZoomableImageCitationWrapper.tsx +1 -1
  141. package/src/components/index.ts +6 -1
  142. package/src/stories/Banner.stories.tsx +1 -1
  143. package/src/stories/Button.stories.tsx +62 -607
  144. package/src/stories/CardButton.stories.tsx +1 -1
  145. package/src/stories/ContextItem.stories.tsx +6 -11
  146. package/src/stories/Dialog.stories.tsx +1 -1
  147. package/src/stories/DropdownMenu.stories.tsx +8 -27
  148. package/src/stories/IconButton.stories.tsx +4 -4
  149. package/src/stories/Input.stories.tsx +14 -14
  150. package/src/stories/Modal.stories.tsx +1 -2
  151. package/src/stories/NavigationList.stories.tsx +173 -0
  152. package/src/stories/NewDropdown.stories.tsx +2 -16
  153. package/src/stories/Page.stories.tsx +6 -9
  154. package/src/stories/Popover.stories.tsx +1 -1
  155. package/src/stories/Searchbar.stories.tsx +3 -3
  156. package/src/stories/SliderToggle.stories.tsx +2 -2
  157. package/src/stories/Tree.stories.tsx +6 -10
@@ -78,20 +78,15 @@ export const ListItemExample = () => (
78
78
  title="Slack"
79
79
  visual={<ContextItem.Visual visual={SlackLogo} />}
80
80
  action={
81
- <Button.List>
81
+ <div className="s-flex s-gap-1">
82
+ <Button icon={TrashIcon} variant="warning" label="Remove" />
82
83
  <Button
83
- icon={TrashIcon}
84
- variant="secondaryWarning"
85
- label="Remove"
86
- labelVisible={false}
87
- />
88
- <Button
89
- variant="secondary"
84
+ variant="outline"
90
85
  label="Edit"
91
86
  size="sm"
92
87
  icon={PencilSquareIcon}
93
88
  />
94
- </Button.List>
89
+ </div>
95
90
  }
96
91
  >
97
92
  <ContextItem.Description description="Hello you" />
@@ -126,7 +121,7 @@ export const ListItemExample = () => (
126
121
  subElement={<>By: Edouard Wautier, Amira Hadad</>}
127
122
  action={
128
123
  <Button
129
- variant="secondary"
124
+ variant="outline"
130
125
  label="Manage"
131
126
  size="sm"
132
127
  icon={Cog6ToothIcon}
@@ -146,7 +141,7 @@ export const ListItemExample = () => (
146
141
  subElement={<>By: Edouard Wautier, Amira Hadad</>}
147
142
  action={
148
143
  <Button
149
- variant="secondary"
144
+ variant="outline"
150
145
  label="Manage"
151
146
  size="sm"
152
147
  icon={Cog6ToothIcon}
@@ -42,7 +42,7 @@ export const DialogExample = () => {
42
42
  cancelLabel="Cancel"
43
43
  onValidate={() => setisOpen2(false)}
44
44
  onCancel={() => setisOpen2(false)}
45
- validateVariant="primaryWarning"
45
+ validateVariant="warning"
46
46
  >
47
47
  <div>I'm the modal content</div>
48
48
  </Dialog>
@@ -112,12 +112,7 @@ export const DropdownExample = () => {
112
112
  <div className="s-text-sm">Custom Dropdown:</div>
113
113
  <DropdownMenu>
114
114
  <DropdownMenu.Button>
115
- <Button
116
- label="Advanced settings"
117
- variant="tertiary"
118
- size="sm"
119
- type="select"
120
- />
115
+ <Button label="Advanced settings" variant="outline" size="sm" />
121
116
  </DropdownMenu.Button>
122
117
  <DropdownMenu.Items width={300} overflow="visible">
123
118
  <div className="s-flex s-flex-col s-gap-4">
@@ -127,14 +122,7 @@ export const DropdownExample = () => {
127
122
  </div>
128
123
  <DropdownMenu>
129
124
  <DropdownMenu.Button>
130
- <Button
131
- type="select"
132
- labelVisible={true}
133
- label="GPT4"
134
- variant="tertiary"
135
- hasMagnifying={false}
136
- size="sm"
137
- />
125
+ <Button label="GPT4" variant="outline" size="sm" />
138
126
  </DropdownMenu.Button>
139
127
  <DropdownMenu.Items origin="topRight">
140
128
  {["GPT4", "GPT3", "GPT2", "GPT1"].map((item) => (
@@ -158,14 +146,7 @@ export const DropdownExample = () => {
158
146
  </div>
159
147
  <DropdownMenu>
160
148
  <DropdownMenu.Button>
161
- <Button
162
- type="select"
163
- labelVisible={true}
164
- label="Balanced"
165
- variant="tertiary"
166
- hasMagnifying={false}
167
- size="sm"
168
- />
149
+ <Button label="Balanced" variant="outline" size="sm" />
169
150
  </DropdownMenu.Button>
170
151
  <DropdownMenu.Items origin="topRight">
171
152
  {["Deterministic", "Factual", "Balanced", "Creative"].map(
@@ -215,14 +196,14 @@ export const DropdownExample = () => {
215
196
  <div className="s-flex s-border-t s-border-structure-50 s-p-2">
216
197
  <Button
217
198
  label="Manage"
218
- variant="tertiary"
199
+ variant="outline"
219
200
  size="xs"
220
201
  icon={ListIcon}
221
202
  />
222
203
  <div className="s-flex-grow" />
223
204
  <Button
224
205
  label="New"
225
- variant="secondary"
206
+ variant="outline"
226
207
  size="xs"
227
208
  icon={PlusIcon}
228
209
  onClick={close}
@@ -466,7 +447,7 @@ export const DropdownExample = () => {
466
447
  <DropdownMenu>
467
448
  <DropdownMenu.Button>
468
449
  <Button
469
- variant="tertiary"
450
+ variant="outline"
470
451
  size="xs"
471
452
  icon={EyeIcon}
472
453
  label="See the error"
@@ -479,10 +460,10 @@ export const DropdownExample = () => {
479
460
  </div>
480
461
  <div className="self-end">
481
462
  <Button
482
- variant="tertiary"
463
+ variant="outline"
483
464
  size="xs"
484
465
  icon={DocumentDuplicateIcon}
485
- label={"Copy"}
466
+ label="Copy"
486
467
  onClick={() =>
487
468
  void navigator.clipboard.writeText("Hello error messange!")
488
469
  }
@@ -29,8 +29,8 @@ export const IconButtonWithTooltip: Story = {
29
29
 
30
30
  export const IconButtonSecondary: Story = {
31
31
  args: {
32
- variant: "secondary",
33
- tooltip: "This a secondary IconButton",
32
+ variant: "highlight",
33
+ tooltip: "This a highlight IconButton",
34
34
  tooltipPosition: "bottom",
35
35
  icon: Cog6ToothIcon,
36
36
  },
@@ -38,8 +38,8 @@ export const IconButtonSecondary: Story = {
38
38
 
39
39
  export const IconButtonTertiary: Story = {
40
40
  args: {
41
- variant: "tertiary",
42
- tooltip: "This a tertiary IconButton",
41
+ variant: "ghost",
42
+ tooltip: "This a ghost IconButton",
43
43
  tooltipPosition: "bottom",
44
44
  icon: Cog6ToothIcon,
45
45
  },
@@ -17,27 +17,27 @@ export const InputExample = () => (
17
17
  <Input
18
18
  placeholder="placeholder"
19
19
  name="input"
20
- value={"value"}
21
- error={"errored because it's a very long message"}
20
+ value="value"
21
+ error="errored because it's a very long message"
22
22
  showErrorLabel
23
23
  />
24
24
  <Input
25
25
  placeholder="placeholder"
26
26
  name="input"
27
- value={"value"}
28
- error={"errored"}
27
+ value="value"
28
+ error="errored"
29
29
  />
30
30
  <Input
31
31
  placeholder="placeholder"
32
32
  name="input"
33
- value={"value"}
34
- error={"errored because it's a very long message"}
33
+ value="value"
34
+ error="errored because it's a very long message"
35
35
  showErrorLabel
36
36
  />
37
37
  <Input
38
38
  placeholder="placeholder"
39
39
  name="input"
40
- value={"disabled"}
40
+ value="disabled"
41
41
  disabled={true}
42
42
  showErrorLabel
43
43
  />
@@ -47,27 +47,27 @@ export const InputExample = () => (
47
47
  <Input
48
48
  placeholder="placeholder"
49
49
  name="input"
50
- value={"value"}
51
- error={"errored because it's a very long message"}
50
+ value="value"
51
+ error="errored because it's a very long message"
52
52
  showErrorLabel
53
53
  />
54
54
  <Input
55
55
  placeholder="placeholder"
56
56
  name="input"
57
- value={"value"}
58
- error={"errored"}
57
+ value="value"
58
+ error="errored"
59
59
  />
60
60
  <Input
61
61
  placeholder="placeholder"
62
62
  name="input"
63
- value={"value"}
64
- error={"errored because it's a very long message"}
63
+ value="value"
64
+ error="errored because it's a very long message"
65
65
  showErrorLabel
66
66
  />
67
67
  <Input
68
68
  placeholder="placeholder"
69
69
  name="input"
70
- value={"disabled"}
70
+ value="test"
71
71
  showErrorLabel
72
72
  />
73
73
  </div>
@@ -60,9 +60,8 @@ export const ModalExample = () => {
60
60
  isOpen={isOpenWithActionAndChange}
61
61
  onClose={() => setIsOpenWithActionAndChange(false)}
62
62
  action={{
63
- labelVisible: true,
64
63
  label: "An action",
65
- variant: "tertiary",
64
+ variant: "outline",
66
65
  size: "xs",
67
66
  }}
68
67
  saveLabel="Save (custom name possible)"
@@ -0,0 +1,173 @@
1
+ import type { Meta } from "@storybook/react";
2
+ import React, { useEffect, useState } from "react";
3
+
4
+ import {
5
+ NavigationList,
6
+ NavigationListItem,
7
+ NavigationListLabel,
8
+ ScrollArea,
9
+ ScrollBar,
10
+ } from "../index_with_tw_base";
11
+
12
+ const meta = {
13
+ title: "Primitives/NavigationList",
14
+ } satisfies Meta;
15
+
16
+ export default meta;
17
+
18
+ const getRandomTitles = (count: number) => {
19
+ const shuffled = fakeTitles.sort(() => 0.5 - Math.random());
20
+ return shuffled.slice(0, count);
21
+ };
22
+
23
+ export const NewNavigationListDemo = () => {
24
+ const [selectedIndex, setSelectedIndex] = useState<number | null>(null);
25
+ const [conversationTitles, setConversationTitles] = useState<
26
+ { label: string; items: string[] }[]
27
+ >([]);
28
+
29
+ useEffect(() => {
30
+ // Generate random titles for each date section only once
31
+ setConversationTitles([
32
+ { label: "Today", items: getRandomTitles(5) },
33
+ { label: "Yesterday", items: getRandomTitles(10) },
34
+ ]);
35
+ console.log(conversationTitles); // Add this line
36
+ }, []);
37
+
38
+ // Flatten the items array to easily manage indices
39
+ const allItems = conversationTitles.flatMap((section) => section.items);
40
+
41
+ return (
42
+ <div className="s-h-[400px] s-w-[200px] s-py-12">
43
+ <ScrollArea>
44
+ <NavigationList className="s-w-full">
45
+ {conversationTitles.map((section, sectionIndex) => (
46
+ <React.Fragment key={sectionIndex}>
47
+ <NavigationListLabel label={section.label} />
48
+ {section.items.map((title, index) => {
49
+ const itemIndex = allItems.indexOf(title); // Calculate the global index
50
+ return (
51
+ <NavigationListItem
52
+ key={index}
53
+ selected={itemIndex === selectedIndex}
54
+ onClick={() => setSelectedIndex(itemIndex)}
55
+ label={title}
56
+ className="s-w-full"
57
+ />
58
+ );
59
+ })}
60
+ </React.Fragment>
61
+ ))}
62
+ </NavigationList>
63
+ <ScrollBar />
64
+ </ScrollArea>
65
+ </div>
66
+ );
67
+ };
68
+
69
+ const fakeTitles = [
70
+ "Project Kickoff Meeting",
71
+ "Budget Review Discussion",
72
+ "Weekly Sync with Team",
73
+ "AI Bot Training Session",
74
+ "Quarterly Planning Meeting",
75
+ "Feedback on Latest Design",
76
+ "Client Requirements Gathering",
77
+ "Sprint Retrospective",
78
+ "Daily Standup",
79
+ "Marketing Strategy Planning",
80
+ "Code Review Session",
81
+ "Product Launch Preparation",
82
+ "Onboarding New Team Members",
83
+ "Customer Feedback Analysis",
84
+ "Feature Prioritization Discussion",
85
+ "Technical Debt Assessment",
86
+ "Supply Chain Optimization",
87
+ "Sales Performance Review",
88
+ "Cross-Department Collaboration",
89
+ "Innovation Brainstorming",
90
+ "Risk Management Workshop",
91
+ "Holiday Schedule Planning",
92
+ "Compliance and Security Update",
93
+ "UI/UX Design Critique",
94
+ "End-of-Year Wrap Up",
95
+ "Resource Allocation Meeting",
96
+ "Vendor Negotiation Strategy",
97
+ "Crisis Management Scenario",
98
+ "SEO Best Practices Review",
99
+ "New Hire Orientation",
100
+ "Remote Work Policy Update",
101
+ "Company Values Workshop",
102
+ "Leadership Development Session",
103
+ "Diversity and Inclusion Training",
104
+ "Performance Improvement Plan",
105
+ "Customer Success Story Sharing",
106
+ "Community Engagement Strategy",
107
+ "Internal Product Demo",
108
+ "Cost Reduction Initiative",
109
+ "Change Management Planning",
110
+ "Employee Recognition Program",
111
+ "IT Infrastructure Upgrade",
112
+ "Content Marketing Planning",
113
+ "Team Building Activities",
114
+ "Data Privacy Compliance",
115
+ "Board Meeting Preparation",
116
+ "Investor Relations Update",
117
+ "KPI Tracking and Reporting",
118
+ "Industry Trends Analysis",
119
+ "Partnership Opportunities Exploration",
120
+ "Employee Wellness Program",
121
+ "Talent Acquisition Strategy",
122
+ "Brand Positioning Workshop",
123
+ "Social Media Campaign Planning",
124
+ "Competitive Analysis Review",
125
+ "Legal Compliance Training",
126
+ "Cybersecurity Awareness Session",
127
+ "Cultural Exchange Program",
128
+ "Product Roadmap Presentation",
129
+ "Customer Journey Mapping",
130
+ "Financial Forecasting Session",
131
+ "Brand Storytelling Workshop",
132
+ "AI Ethics and Governance Discussion",
133
+ "Operational Efficiency Assessment",
134
+ "Annual Report Drafting",
135
+ "Project Milestone Celebration",
136
+ "Quality Assurance Review",
137
+ "Public Relations Strategy",
138
+ "Team Performance Metrics",
139
+ "Innovation Lab Tour",
140
+ "Digital Transformation Roadmap",
141
+ "Sustainability Initiatives Planning",
142
+ "Internal Communications Strategy",
143
+ "Customer Advisory Board Meeting",
144
+ "Agile Methodology Training",
145
+ "E-commerce Platform Update",
146
+ "Risk Assessment and Mitigation",
147
+ "Employee Satisfaction Survey Results",
148
+ "Sales Funnel Optimization",
149
+ "Cross-Cultural Communication Training",
150
+ "Global Expansion Strategy",
151
+ "Cloud Migration Plan",
152
+ "Crisis Communication Strategy",
153
+ "Webinar Content Creation",
154
+ "Supply Chain Risk Management",
155
+ "Data Analytics and Insights",
156
+ "Customer Onboarding Process",
157
+ "Brand Awareness Campaign",
158
+ "Product Feature Request Review",
159
+ "Annual Budget Allocation",
160
+ "Employee Exit Interview",
161
+ "User Feedback Session",
162
+ "Strategic Partnership Negotiation",
163
+ "Market Entry Strategy",
164
+ "Employee Handbook Update",
165
+ "Stakeholder Engagement Plan",
166
+ "AI Chatbot Development",
167
+ "Customer Retention Strategy",
168
+ "Company Anniversary Celebration",
169
+ "Leadership Team Offsite",
170
+ "Innovation Challenge Kickoff",
171
+ "Employee Benefits Review",
172
+ "Business Continuity Planning",
173
+ ];
@@ -200,14 +200,7 @@ function ModelsDropdownDemo() {
200
200
  return (
201
201
  <NewDropdownMenu>
202
202
  <NewDropdownMenuTrigger>
203
- <Button
204
- type="select"
205
- labelVisible={true}
206
- label={selectedModel}
207
- variant="secondary"
208
- hasMagnifying={false}
209
- size="sm"
210
- />
203
+ <Button label={selectedModel} variant="outline" size="sm" />
211
204
  </NewDropdownMenuTrigger>
212
205
  <NewDropdownMenuContent>
213
206
  <NewDropdownMenuLabel label="Best performing models" />
@@ -255,14 +248,7 @@ function ModelsDropdownRadioGroupDemo() {
255
248
  return (
256
249
  <NewDropdownMenu>
257
250
  <NewDropdownMenuTrigger>
258
- <Button
259
- type="select"
260
- labelVisible={true}
261
- label={selectedModel}
262
- variant="secondary"
263
- hasMagnifying={false}
264
- size="sm"
265
- />
251
+ <Button label={selectedModel} variant="ghost" size="sm" />
266
252
  </NewDropdownMenuTrigger>
267
253
  <NewDropdownMenuContent>
268
254
  <NewDropdownMenuRadioGroup
@@ -229,7 +229,7 @@ export const PageExample = () => {
229
229
  </ContextItem>
230
230
  <ContextItem
231
231
  title="@SalesFr"
232
- action={<Button variant="secondary" label="Manage" size="sm" />}
232
+ action={<Button variant="outline" label="Manage" size="sm" />}
233
233
  visual={
234
234
  <Avatar
235
235
  visual="https://dust.tt/static/droidavatar/Droid_Indigo_4.jpg"
@@ -241,7 +241,7 @@ export const PageExample = () => {
241
241
  </ContextItem>
242
242
  <ContextItem
243
243
  title="@SupportFr"
244
- action={<Button variant="secondary" label="Manage" size="sm" />}
244
+ action={<Button variant="outline" label="Manage" size="sm" />}
245
245
  visual={
246
246
  <Avatar
247
247
  visual="https://dust.tt/static/droidavatar/Droid_Pink_4.jpg"
@@ -282,7 +282,7 @@ export const AssistantBuilder = () => {
282
282
  size="xl"
283
283
  visual="https://dust.tt/static/droidavatar/Droid_Black_2.jpg/"
284
284
  />
285
- <Button size="sm" variant="tertiary" label="Change" />
285
+ <Button size="sm" variant="outline" label="Change" />
286
286
  </Page.Layout>
287
287
  </Page.Layout>
288
288
  <Page.Separator />
@@ -365,22 +365,19 @@ export const HelpExample = () => {
365
365
  <Page.SectionHeader title="Frequently asked questions" />
366
366
  <Page.Layout direction="fluid" gap="sm">
367
367
  <Button
368
- variant="secondary"
368
+ variant="outline"
369
369
  label="Hey @helper, how do I use the assistant?"
370
370
  icon={ChatBubbleLeftRightIcon}
371
- hasMagnifying={false}
372
371
  />
373
372
  <Button
374
- variant="secondary"
373
+ variant="outline"
375
374
  label="Hey @helper, What is assistant not good at?"
376
375
  icon={ChatBubbleLeftRightIcon}
377
- hasMagnifying={false}
378
376
  />
379
377
  <Button
380
- variant="secondary"
378
+ variant="outline"
381
379
  label="Hey @helper, Anything I should know?"
382
380
  icon={ChatBubbleLeftRightIcon}
383
- hasMagnifying={false}
384
381
  />
385
382
  </Page.Layout>
386
383
  </Page.Layout>
@@ -23,7 +23,7 @@ export default meta;
23
23
  export function SimplePopoverExample() {
24
24
  return (
25
25
  <Popover
26
- trigger={<Button label="Popover" variant="secondary" />}
26
+ trigger={<Button label="Popover" variant="outline" />}
27
27
  content={
28
28
  <div className="s-grid s-gap-2 s-p-2">
29
29
  <p>Lorem</p>
@@ -33,7 +33,7 @@ export const SearchbarExample = () => {
33
33
  size="md"
34
34
  />
35
35
  <div>
36
- <Button variant="tertiary" size="md" label="Hello" />
36
+ <Button variant="outline" size="md" label="Hello" />
37
37
  </div>
38
38
  </div>
39
39
  <Searchbar
@@ -60,7 +60,7 @@ export const SearchbarExample = () => {
60
60
  onChange={handleChange}
61
61
  />
62
62
  <div>
63
- <Button variant="tertiary" size="sm" label="Hello" />
63
+ <Button variant="outline" size="sm" label="Hello" />
64
64
  </div>
65
65
  </div>
66
66
  <Searchbar
@@ -86,7 +86,7 @@ export const SearchbarExample = () => {
86
86
  size="xs"
87
87
  />
88
88
  <div>
89
- <Button variant="tertiary" size="xs" label="Hello" />
89
+ <Button variant="outline" size="xs" label="Hello" />
90
90
  </div>
91
91
  </div>
92
92
  <Searchbar
@@ -20,14 +20,14 @@ export const SliderToggleBasic: Story = {
20
20
  export const SliderExample = () => (
21
21
  <div className="s-flex s-flex-col s-gap-6">
22
22
  <div className="s-flex s-items-center s-gap-2">
23
- <Button variant="tertiary" size="sm" label="Settings" />
23
+ <Button variant="outline" size="sm" label="Settings" />
24
24
  <SliderToggle size="sm" />
25
25
  <SliderToggle size="sm" selected />
26
26
  <SliderToggle size="sm" disabled />
27
27
  </div>
28
28
 
29
29
  <div className="s-flex s-items-center s-gap-2">
30
- <Button variant="tertiary" size="xs" label="Settings" />
30
+ <Button variant="outline" size="xs" label="Settings" />
31
31
  <SliderToggle size="xs" />
32
32
  <SliderToggle size="xs" selected />
33
33
  <SliderToggle size="xs" disabled />
@@ -118,7 +118,7 @@ export const TreeExample = () => {
118
118
  <IconButton
119
119
  size="xs"
120
120
  icon={EyeIcon}
121
- variant="tertiary"
121
+ variant="outline"
122
122
  />
123
123
  </>
124
124
  }
@@ -645,9 +645,8 @@ export const SelectDataSourceExample = () => {
645
645
  <Button
646
646
  label="Manage"
647
647
  icon={Cog6ToothIcon}
648
- variant="tertiary"
648
+ variant="outline"
649
649
  size="sm"
650
- hasMagnifying={false}
651
650
  />
652
651
  </div>
653
652
  }
@@ -666,9 +665,8 @@ export const SelectDataSourceExample = () => {
666
665
  <Button
667
666
  label="Manage"
668
667
  icon={Cog6ToothIcon}
669
- variant="tertiary"
668
+ variant="outline"
670
669
  size="sm"
671
- hasMagnifying={false}
672
670
  />
673
671
  </div>
674
672
  }
@@ -686,9 +684,8 @@ export const SelectDataSourceExample = () => {
686
684
  <Button
687
685
  label="Manage"
688
686
  icon={Cog6ToothIcon}
689
- variant="tertiary"
687
+ variant="outline"
690
688
  size="sm"
691
- hasMagnifying={false}
692
689
  />
693
690
  </div>
694
691
  }
@@ -715,9 +712,8 @@ export const SelectDataSourceExample = () => {
715
712
  <Button
716
713
  label="Manage"
717
714
  icon={Cog6ToothIcon}
718
- variant="tertiary"
715
+ variant="outline"
719
716
  size="sm"
720
- hasMagnifying={false}
721
717
  />
722
718
  </div>
723
719
  }
@@ -838,7 +834,7 @@ const TreeItem = ({
838
834
  <span className="s-text-xs s-text-element-700">
839
835
  last updated Jan 6
840
836
  </span>
841
- <IconButton icon={CloudArrowDownIcon} size="xs" variant="tertiary" />
837
+ <IconButton icon={CloudArrowDownIcon} size="xs" variant="outline" />
842
838
  <IconButton icon={PlusCircleIcon} size="xs" />
843
839
  </div>
844
840
  }