@shipfox/react-ui 0.14.0 → 0.15.0

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 (232) hide show
  1. package/.storybook/preview.tsx +7 -0
  2. package/.turbo/turbo-build.log +7 -7
  3. package/.turbo/turbo-check.log +2 -2
  4. package/.turbo/turbo-type.log +1 -1
  5. package/CHANGELOG.md +10 -0
  6. package/dist/components/avatar/avatar.js +1 -1
  7. package/dist/components/avatar/avatar.js.map +1 -1
  8. package/dist/components/button-group/button-group.d.ts +17 -0
  9. package/dist/components/button-group/button-group.d.ts.map +1 -0
  10. package/dist/components/button-group/button-group.js +74 -0
  11. package/dist/components/button-group/button-group.js.map +1 -0
  12. package/dist/components/button-group/button-group.stories.js +644 -0
  13. package/dist/components/button-group/button-group.stories.js.map +1 -0
  14. package/dist/components/button-group/index.d.ts +2 -0
  15. package/dist/components/button-group/index.d.ts.map +1 -0
  16. package/dist/components/button-group/index.js +3 -0
  17. package/dist/components/button-group/index.js.map +1 -0
  18. package/dist/components/code-block/code-block-footer.d.ts.map +1 -1
  19. package/dist/components/code-block/code-block-footer.js +4 -2
  20. package/dist/components/code-block/code-block-footer.js.map +1 -1
  21. package/dist/components/command/command.d.ts +28 -0
  22. package/dist/components/command/command.d.ts.map +1 -0
  23. package/dist/components/command/command.js +190 -0
  24. package/dist/components/command/command.js.map +1 -0
  25. package/dist/components/command/command.stories.js +228 -0
  26. package/dist/components/command/command.stories.js.map +1 -0
  27. package/dist/components/command/index.d.ts +2 -0
  28. package/dist/components/command/index.d.ts.map +1 -0
  29. package/dist/components/command/index.js +3 -0
  30. package/dist/components/command/index.js.map +1 -0
  31. package/dist/components/dashboard/components/analytics-content.d.ts +2 -0
  32. package/dist/components/dashboard/components/analytics-content.d.ts.map +1 -0
  33. package/dist/components/dashboard/components/analytics-content.js +180 -0
  34. package/dist/components/dashboard/components/analytics-content.js.map +1 -0
  35. package/dist/components/dashboard/components/animated-logo.d.ts +4 -0
  36. package/dist/components/dashboard/components/animated-logo.d.ts.map +1 -0
  37. package/dist/components/dashboard/components/animated-logo.js +23 -0
  38. package/dist/components/dashboard/components/animated-logo.js.map +1 -0
  39. package/dist/components/dashboard/components/complete-setup-button.d.ts +4 -0
  40. package/dist/components/dashboard/components/complete-setup-button.d.ts.map +1 -0
  41. package/dist/components/dashboard/components/complete-setup-button.js +28 -0
  42. package/dist/components/dashboard/components/complete-setup-button.js.map +1 -0
  43. package/dist/components/dashboard/components/jobs-content.d.ts +2 -0
  44. package/dist/components/dashboard/components/jobs-content.d.ts.map +1 -0
  45. package/dist/components/dashboard/components/jobs-content.js +69 -0
  46. package/dist/components/dashboard/components/jobs-content.js.map +1 -0
  47. package/dist/components/dashboard/components/mobile-menu.d.ts +2 -0
  48. package/dist/components/dashboard/components/mobile-menu.d.ts.map +1 -0
  49. package/dist/components/dashboard/components/mobile-menu.js +65 -0
  50. package/dist/components/dashboard/components/mobile-menu.js.map +1 -0
  51. package/dist/components/dashboard/components/organization-selector.d.ts +2 -0
  52. package/dist/components/dashboard/components/organization-selector.d.ts.map +1 -0
  53. package/dist/components/dashboard/components/organization-selector.js +92 -0
  54. package/dist/components/dashboard/components/organization-selector.js.map +1 -0
  55. package/dist/components/dashboard/components/top-menu.d.ts +5 -0
  56. package/dist/components/dashboard/components/top-menu.d.ts.map +1 -0
  57. package/dist/components/dashboard/components/top-menu.js +31 -0
  58. package/dist/components/dashboard/components/top-menu.js.map +1 -0
  59. package/dist/components/dashboard/components/topbar-button.d.ts +7 -0
  60. package/dist/components/dashboard/components/topbar-button.d.ts.map +1 -0
  61. package/dist/components/dashboard/components/topbar-button.js +18 -0
  62. package/dist/components/dashboard/components/topbar-button.js.map +1 -0
  63. package/dist/components/dashboard/components/topbar.d.ts +4 -0
  64. package/dist/components/dashboard/components/topbar.d.ts.map +1 -0
  65. package/dist/components/dashboard/components/topbar.js +62 -0
  66. package/dist/components/dashboard/components/topbar.js.map +1 -0
  67. package/dist/components/dashboard/components/user-profile.d.ts +2 -0
  68. package/dist/components/dashboard/components/user-profile.d.ts.map +1 -0
  69. package/dist/components/dashboard/components/user-profile.js +146 -0
  70. package/dist/components/dashboard/components/user-profile.js.map +1 -0
  71. package/dist/components/dashboard/dashboard.d.ts +2 -0
  72. package/dist/components/dashboard/dashboard.d.ts.map +1 -0
  73. package/dist/components/dashboard/dashboard.js +70 -0
  74. package/dist/components/dashboard/dashboard.js.map +1 -0
  75. package/dist/components/dashboard/dashboard.stories.js +23 -0
  76. package/dist/components/dashboard/dashboard.stories.js.map +1 -0
  77. package/dist/components/dashboard/index.d.ts +2 -0
  78. package/dist/components/dashboard/index.d.ts.map +1 -0
  79. package/dist/components/dashboard/index.js +3 -0
  80. package/dist/components/dashboard/index.js.map +1 -0
  81. package/dist/components/form/form.stories.js +6 -1
  82. package/dist/components/form/form.stories.js.map +1 -1
  83. package/dist/components/index.d.ts +7 -0
  84. package/dist/components/index.d.ts.map +1 -1
  85. package/dist/components/index.js +7 -0
  86. package/dist/components/index.js.map +1 -1
  87. package/dist/components/kbd/index.d.ts +2 -0
  88. package/dist/components/kbd/index.d.ts.map +1 -0
  89. package/dist/components/kbd/index.js +3 -0
  90. package/dist/components/kbd/index.js.map +1 -0
  91. package/dist/components/kbd/kbd.d.ts +7 -0
  92. package/dist/components/kbd/kbd.d.ts.map +1 -0
  93. package/dist/components/kbd/kbd.js +18 -0
  94. package/dist/components/kbd/kbd.js.map +1 -0
  95. package/dist/components/kbd/kbd.stories.js +119 -0
  96. package/dist/components/kbd/kbd.stories.js.map +1 -0
  97. package/dist/components/search/index.d.ts +7 -0
  98. package/dist/components/search/index.d.ts.map +1 -0
  99. package/dist/components/search/index.js +8 -0
  100. package/dist/components/search/index.js.map +1 -0
  101. package/dist/components/search/search-context.d.ts +11 -0
  102. package/dist/components/search/search-context.d.ts.map +1 -0
  103. package/dist/components/search/search-context.js +56 -0
  104. package/dist/components/search/search-context.js.map +1 -0
  105. package/dist/components/search/search-inline.d.ts +9 -0
  106. package/dist/components/search/search-inline.d.ts.map +1 -0
  107. package/dist/components/search/search-inline.js +85 -0
  108. package/dist/components/search/search-inline.js.map +1 -0
  109. package/dist/components/search/search-modal.d.ts +25 -0
  110. package/dist/components/search/search-modal.d.ts.map +1 -0
  111. package/dist/components/search/search-modal.js +162 -0
  112. package/dist/components/search/search-modal.js.map +1 -0
  113. package/dist/components/search/search-trigger.d.ts +9 -0
  114. package/dist/components/search/search-trigger.d.ts.map +1 -0
  115. package/dist/components/search/search-trigger.js +37 -0
  116. package/dist/components/search/search-trigger.js.map +1 -0
  117. package/dist/components/search/search-variants.d.ts +14 -0
  118. package/dist/components/search/search-variants.d.ts.map +1 -0
  119. package/dist/components/search/search-variants.js +90 -0
  120. package/dist/components/search/search-variants.js.map +1 -0
  121. package/dist/components/search/search.d.ts +11 -0
  122. package/dist/components/search/search.d.ts.map +1 -0
  123. package/dist/components/search/search.js +35 -0
  124. package/dist/components/search/search.js.map +1 -0
  125. package/dist/components/search/search.stories.js +630 -0
  126. package/dist/components/search/search.stories.js.map +1 -0
  127. package/dist/components/select/index.d.ts +2 -0
  128. package/dist/components/select/index.d.ts.map +1 -0
  129. package/dist/components/select/index.js +3 -0
  130. package/dist/components/select/index.js.map +1 -0
  131. package/dist/components/select/select.d.ts +25 -0
  132. package/dist/components/select/select.d.ts.map +1 -0
  133. package/dist/components/select/select.js +153 -0
  134. package/dist/components/select/select.js.map +1 -0
  135. package/dist/components/select/select.stories.js +393 -0
  136. package/dist/components/select/select.stories.js.map +1 -0
  137. package/dist/components/skeleton/index.d.ts +2 -0
  138. package/dist/components/skeleton/index.d.ts.map +1 -0
  139. package/dist/components/skeleton/index.js +3 -0
  140. package/dist/components/skeleton/index.js.map +1 -0
  141. package/dist/components/skeleton/skeleton.d.ts +5 -0
  142. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  143. package/dist/components/skeleton/skeleton.js +11 -0
  144. package/dist/components/skeleton/skeleton.js.map +1 -0
  145. package/dist/components/skeleton/skeleton.stories.js +345 -0
  146. package/dist/components/skeleton/skeleton.stories.js.map +1 -0
  147. package/dist/components/table/data-table.d.ts +70 -0
  148. package/dist/components/table/data-table.d.ts.map +1 -0
  149. package/dist/components/table/data-table.js +159 -0
  150. package/dist/components/table/data-table.js.map +1 -0
  151. package/dist/components/table/index.d.ts +6 -0
  152. package/dist/components/table/index.d.ts.map +1 -0
  153. package/dist/components/table/index.js +6 -0
  154. package/dist/components/table/index.js.map +1 -0
  155. package/dist/components/table/table-column-header.d.ts +79 -0
  156. package/dist/components/table/table-column-header.d.ts.map +1 -0
  157. package/dist/components/table/table-column-header.js +99 -0
  158. package/dist/components/table/table-column-header.js.map +1 -0
  159. package/dist/components/table/table-pagination.d.ts +53 -0
  160. package/dist/components/table/table-pagination.d.ts.map +1 -0
  161. package/dist/components/table/table-pagination.js +139 -0
  162. package/dist/components/table/table-pagination.js.map +1 -0
  163. package/dist/components/table/table.d.ts +11 -0
  164. package/dist/components/table/table.d.ts.map +1 -0
  165. package/dist/components/table/table.js +64 -0
  166. package/dist/components/table/table.js.map +1 -0
  167. package/dist/components/table/table.stories.columns.d.ts +24 -0
  168. package/dist/components/table/table.stories.columns.d.ts.map +1 -0
  169. package/dist/components/table/table.stories.columns.js +310 -0
  170. package/dist/components/table/table.stories.columns.js.map +1 -0
  171. package/dist/components/table/table.stories.components.d.ts +14 -0
  172. package/dist/components/table/table.stories.components.d.ts.map +1 -0
  173. package/dist/components/table/table.stories.components.js +107 -0
  174. package/dist/components/table/table.stories.components.js.map +1 -0
  175. package/dist/components/table/table.stories.data.d.ts +54 -0
  176. package/dist/components/table/table.stories.data.d.ts.map +1 -0
  177. package/dist/components/table/table.stories.data.js +122 -0
  178. package/dist/components/table/table.stories.data.js.map +1 -0
  179. package/dist/components/table/table.stories.js +302 -0
  180. package/dist/components/table/table.stories.js.map +1 -0
  181. package/dist/styles.css +1 -1
  182. package/index.css +48 -0
  183. package/package.json +3 -2
  184. package/src/components/avatar/avatar.tsx +1 -1
  185. package/src/components/button-group/button-group.stories.tsx +361 -0
  186. package/src/components/button-group/button-group.tsx +111 -0
  187. package/src/components/button-group/index.ts +1 -0
  188. package/src/components/code-block/code-block-footer.tsx +8 -1
  189. package/src/components/command/command.stories.tsx +133 -0
  190. package/src/components/command/command.tsx +265 -0
  191. package/src/components/command/index.ts +1 -0
  192. package/src/components/dashboard/components/analytics-content.tsx +102 -0
  193. package/src/components/dashboard/components/animated-logo.tsx +25 -0
  194. package/src/components/dashboard/components/complete-setup-button.tsx +30 -0
  195. package/src/components/dashboard/components/jobs-content.tsx +51 -0
  196. package/src/components/dashboard/components/mobile-menu.tsx +50 -0
  197. package/src/components/dashboard/components/organization-selector.tsx +51 -0
  198. package/src/components/dashboard/components/top-menu.tsx +26 -0
  199. package/src/components/dashboard/components/topbar-button.tsx +27 -0
  200. package/src/components/dashboard/components/topbar.tsx +40 -0
  201. package/src/components/dashboard/components/user-profile.tsx +90 -0
  202. package/src/components/dashboard/dashboard.stories.tsx +25 -0
  203. package/src/components/dashboard/dashboard.tsx +61 -0
  204. package/src/components/dashboard/index.ts +1 -0
  205. package/src/components/form/form.stories.tsx +5 -0
  206. package/src/components/index.ts +7 -0
  207. package/src/components/kbd/index.ts +1 -0
  208. package/src/components/kbd/kbd.stories.tsx +64 -0
  209. package/src/components/kbd/kbd.tsx +32 -0
  210. package/src/components/search/index.ts +28 -0
  211. package/src/components/search/search-context.tsx +78 -0
  212. package/src/components/search/search-inline.tsx +107 -0
  213. package/src/components/search/search-modal.tsx +198 -0
  214. package/src/components/search/search-trigger.tsx +47 -0
  215. package/src/components/search/search-variants.ts +88 -0
  216. package/src/components/search/search.stories.tsx +392 -0
  217. package/src/components/search/search.tsx +47 -0
  218. package/src/components/select/index.ts +1 -0
  219. package/src/components/select/select.stories.tsx +207 -0
  220. package/src/components/select/select.tsx +220 -0
  221. package/src/components/skeleton/index.ts +1 -0
  222. package/src/components/skeleton/skeleton.stories.tsx +178 -0
  223. package/src/components/skeleton/skeleton.tsx +14 -0
  224. package/src/components/table/data-table.tsx +254 -0
  225. package/src/components/table/index.ts +5 -0
  226. package/src/components/table/table-column-header.tsx +141 -0
  227. package/src/components/table/table-pagination.tsx +161 -0
  228. package/src/components/table/table.stories.columns.tsx +198 -0
  229. package/src/components/table/table.stories.components.tsx +104 -0
  230. package/src/components/table/table.stories.data.ts +117 -0
  231. package/src/components/table/table.stories.tsx +256 -0
  232. package/src/components/table/table.tsx +95 -0
@@ -0,0 +1,630 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { Icon } from '../icon/index.js';
4
+ import { Search, SearchContent, SearchEmpty, SearchFooter, SearchGroup, SearchInline, SearchInput, SearchItem, SearchList, SearchSeparator, SearchTrigger } from './index.js';
5
+ const meta = {
6
+ title: 'Components/Search',
7
+ tags: [
8
+ 'autodocs'
9
+ ],
10
+ parameters: {
11
+ docs: {
12
+ description: {
13
+ component: 'A search component with two types: inline (input-style) and modal (trigger + overlay). Supports primary/secondary variants, base/small sizes, and squared/rounded radius options.'
14
+ }
15
+ }
16
+ }
17
+ };
18
+ export default meta;
19
+ export const Inline = {
20
+ render: ()=>{
21
+ function InlineDemo() {
22
+ const [value, setValue] = useState('');
23
+ return /*#__PURE__*/ _jsxs("div", {
24
+ className: "flex flex-col gap-16 max-w-400",
25
+ children: [
26
+ /*#__PURE__*/ _jsx(SearchInline, {
27
+ placeholder: "Search...",
28
+ value: value,
29
+ onChange: (e)=>setValue(e.target.value),
30
+ onClear: ()=>setValue('')
31
+ }),
32
+ value && /*#__PURE__*/ _jsxs("p", {
33
+ className: "text-sm text-foreground-neutral-muted",
34
+ children: [
35
+ 'Searching for: "',
36
+ value,
37
+ '"'
38
+ ]
39
+ })
40
+ ]
41
+ });
42
+ }
43
+ return /*#__PURE__*/ _jsx(InlineDemo, {});
44
+ }
45
+ };
46
+ export const InlineVariants = {
47
+ render: ()=>/*#__PURE__*/ _jsxs("div", {
48
+ className: "flex flex-col gap-16",
49
+ children: [
50
+ /*#__PURE__*/ _jsxs("div", {
51
+ className: "flex flex-col gap-8",
52
+ children: [
53
+ /*#__PURE__*/ _jsx("span", {
54
+ className: "text-xs text-foreground-neutral-muted",
55
+ children: "Primary (default)"
56
+ }),
57
+ /*#__PURE__*/ _jsxs("div", {
58
+ className: "flex gap-8",
59
+ children: [
60
+ /*#__PURE__*/ _jsx(SearchInline, {
61
+ variant: "primary",
62
+ radius: "squared",
63
+ placeholder: "Search...",
64
+ defaultValue: "random",
65
+ className: "w-200"
66
+ }),
67
+ /*#__PURE__*/ _jsx(SearchInline, {
68
+ variant: "primary",
69
+ radius: "rounded",
70
+ placeholder: "Search...",
71
+ defaultValue: "random",
72
+ className: "w-200"
73
+ })
74
+ ]
75
+ })
76
+ ]
77
+ }),
78
+ /*#__PURE__*/ _jsxs("div", {
79
+ className: "flex flex-col gap-8",
80
+ children: [
81
+ /*#__PURE__*/ _jsx("span", {
82
+ className: "text-xs text-foreground-neutral-muted",
83
+ children: "Secondary"
84
+ }),
85
+ /*#__PURE__*/ _jsxs("div", {
86
+ className: "flex gap-8",
87
+ children: [
88
+ /*#__PURE__*/ _jsx(SearchInline, {
89
+ variant: "secondary",
90
+ radius: "squared",
91
+ placeholder: "Search...",
92
+ defaultValue: "random",
93
+ className: "w-200"
94
+ }),
95
+ /*#__PURE__*/ _jsx(SearchInline, {
96
+ variant: "secondary",
97
+ radius: "rounded",
98
+ placeholder: "Search...",
99
+ defaultValue: "random",
100
+ className: "w-200"
101
+ })
102
+ ]
103
+ })
104
+ ]
105
+ })
106
+ ]
107
+ })
108
+ };
109
+ export const InlineSizes = {
110
+ render: ()=>/*#__PURE__*/ _jsxs("div", {
111
+ className: "flex flex-col gap-16",
112
+ children: [
113
+ /*#__PURE__*/ _jsxs("div", {
114
+ className: "flex flex-col gap-8",
115
+ children: [
116
+ /*#__PURE__*/ _jsx("span", {
117
+ className: "text-xs text-foreground-neutral-muted",
118
+ children: "Base (32px)"
119
+ }),
120
+ /*#__PURE__*/ _jsx("div", {
121
+ className: "flex gap-8",
122
+ children: /*#__PURE__*/ _jsx(SearchInline, {
123
+ size: "base",
124
+ placeholder: "Search...",
125
+ defaultValue: "random",
126
+ className: "w-200"
127
+ })
128
+ })
129
+ ]
130
+ }),
131
+ /*#__PURE__*/ _jsxs("div", {
132
+ className: "flex flex-col gap-8",
133
+ children: [
134
+ /*#__PURE__*/ _jsx("span", {
135
+ className: "text-xs text-foreground-neutral-muted",
136
+ children: "Small (28px)"
137
+ }),
138
+ /*#__PURE__*/ _jsx("div", {
139
+ className: "flex gap-8",
140
+ children: /*#__PURE__*/ _jsx(SearchInline, {
141
+ size: "small",
142
+ placeholder: "Search...",
143
+ defaultValue: "random",
144
+ className: "w-200"
145
+ })
146
+ })
147
+ ]
148
+ })
149
+ ]
150
+ })
151
+ };
152
+ function ModalSearchDemo() {
153
+ const [open, setOpen] = useState(false);
154
+ return /*#__PURE__*/ _jsxs(Search, {
155
+ open: open,
156
+ onOpenChange: setOpen,
157
+ shortcutKey: "meta+k",
158
+ children: [
159
+ /*#__PURE__*/ _jsx(SearchTrigger, {
160
+ placeholder: "Find...",
161
+ className: "w-full max-w-280"
162
+ }),
163
+ /*#__PURE__*/ _jsxs(SearchContent, {
164
+ "aria-describedby": undefined,
165
+ children: [
166
+ /*#__PURE__*/ _jsx(SearchInput, {
167
+ placeholder: "Search for anything..."
168
+ }),
169
+ /*#__PURE__*/ _jsxs(SearchList, {
170
+ children: [
171
+ /*#__PURE__*/ _jsx(SearchEmpty, {
172
+ children: "No results found."
173
+ }),
174
+ /*#__PURE__*/ _jsxs(SearchGroup, {
175
+ heading: "Recent",
176
+ children: [
177
+ /*#__PURE__*/ _jsx(SearchItem, {
178
+ icon: /*#__PURE__*/ _jsx(Icon, {
179
+ name: "gitBranchLine",
180
+ className: "size-16 text-foreground-neutral-subtle"
181
+ }),
182
+ description: "qr-attendance",
183
+ children: "feat/data-processing"
184
+ }),
185
+ /*#__PURE__*/ _jsx(SearchItem, {
186
+ icon: /*#__PURE__*/ _jsx(Icon, {
187
+ name: "gitBranchLine",
188
+ className: "size-16 text-foreground-neutral-subtle"
189
+ }),
190
+ description: "qr-attendance",
191
+ children: "feat/pagination-polling"
192
+ })
193
+ ]
194
+ }),
195
+ /*#__PURE__*/ _jsx(SearchSeparator, {}),
196
+ /*#__PURE__*/ _jsxs(SearchGroup, {
197
+ heading: "Team",
198
+ children: [
199
+ /*#__PURE__*/ _jsx(SearchItem, {
200
+ icon: /*#__PURE__*/ _jsx(Icon, {
201
+ name: "rocketLine",
202
+ className: "size-16 text-foreground-neutral-subtle"
203
+ }),
204
+ description: "Team",
205
+ children: "Deployments"
206
+ }),
207
+ /*#__PURE__*/ _jsx(SearchItem, {
208
+ icon: /*#__PURE__*/ _jsx(Icon, {
209
+ name: "linksLine",
210
+ className: "size-16 text-foreground-neutral-subtle"
211
+ }),
212
+ description: "Team",
213
+ children: "Integrations"
214
+ })
215
+ ]
216
+ })
217
+ ]
218
+ }),
219
+ /*#__PURE__*/ _jsx(SearchFooter, {})
220
+ ]
221
+ })
222
+ ]
223
+ });
224
+ }
225
+ export const Modal = {
226
+ render: ()=>/*#__PURE__*/ _jsx(ModalSearchDemo, {})
227
+ };
228
+ function TriggerPreview({ variant, size, radius, className }) {
229
+ return /*#__PURE__*/ _jsx(Search, {
230
+ children: /*#__PURE__*/ _jsx(SearchTrigger, {
231
+ variant: variant,
232
+ size: size,
233
+ radius: radius,
234
+ className: className
235
+ })
236
+ });
237
+ }
238
+ export const ModalTriggerVariants = {
239
+ render: ()=>/*#__PURE__*/ _jsxs("div", {
240
+ className: "flex flex-col gap-16",
241
+ children: [
242
+ /*#__PURE__*/ _jsxs("div", {
243
+ className: "flex flex-col gap-8",
244
+ children: [
245
+ /*#__PURE__*/ _jsx("span", {
246
+ className: "text-xs text-foreground-neutral-muted",
247
+ children: "Primary (default)"
248
+ }),
249
+ /*#__PURE__*/ _jsxs("div", {
250
+ className: "flex gap-8",
251
+ children: [
252
+ /*#__PURE__*/ _jsx(TriggerPreview, {
253
+ variant: "primary",
254
+ radius: "squared",
255
+ className: "w-200"
256
+ }),
257
+ /*#__PURE__*/ _jsx(TriggerPreview, {
258
+ variant: "primary",
259
+ radius: "rounded",
260
+ className: "w-200"
261
+ })
262
+ ]
263
+ })
264
+ ]
265
+ }),
266
+ /*#__PURE__*/ _jsxs("div", {
267
+ className: "flex flex-col gap-8",
268
+ children: [
269
+ /*#__PURE__*/ _jsx("span", {
270
+ className: "text-xs text-foreground-neutral-muted",
271
+ children: "Secondary"
272
+ }),
273
+ /*#__PURE__*/ _jsxs("div", {
274
+ className: "flex gap-8",
275
+ children: [
276
+ /*#__PURE__*/ _jsx(TriggerPreview, {
277
+ variant: "secondary",
278
+ radius: "squared",
279
+ className: "w-200"
280
+ }),
281
+ /*#__PURE__*/ _jsx(TriggerPreview, {
282
+ variant: "secondary",
283
+ radius: "rounded",
284
+ className: "w-200"
285
+ })
286
+ ]
287
+ })
288
+ ]
289
+ })
290
+ ]
291
+ })
292
+ };
293
+ export const ModalTriggerSizes = {
294
+ render: ()=>/*#__PURE__*/ _jsxs("div", {
295
+ className: "flex flex-col gap-16",
296
+ children: [
297
+ /*#__PURE__*/ _jsxs("div", {
298
+ className: "flex flex-col gap-8",
299
+ children: [
300
+ /*#__PURE__*/ _jsx("span", {
301
+ className: "text-xs text-foreground-neutral-muted",
302
+ children: "Base (32px)"
303
+ }),
304
+ /*#__PURE__*/ _jsxs("div", {
305
+ className: "flex gap-8",
306
+ children: [
307
+ /*#__PURE__*/ _jsx(TriggerPreview, {
308
+ size: "base",
309
+ variant: "primary",
310
+ className: "w-200"
311
+ }),
312
+ /*#__PURE__*/ _jsx(TriggerPreview, {
313
+ size: "base",
314
+ variant: "secondary",
315
+ className: "w-200"
316
+ })
317
+ ]
318
+ })
319
+ ]
320
+ }),
321
+ /*#__PURE__*/ _jsxs("div", {
322
+ className: "flex flex-col gap-8",
323
+ children: [
324
+ /*#__PURE__*/ _jsx("span", {
325
+ className: "text-xs text-foreground-neutral-muted",
326
+ children: "Small (28px)"
327
+ }),
328
+ /*#__PURE__*/ _jsxs("div", {
329
+ className: "flex gap-8",
330
+ children: [
331
+ /*#__PURE__*/ _jsx(TriggerPreview, {
332
+ size: "small",
333
+ variant: "primary",
334
+ className: "w-200"
335
+ }),
336
+ /*#__PURE__*/ _jsx(TriggerPreview, {
337
+ size: "small",
338
+ variant: "secondary",
339
+ className: "w-200"
340
+ })
341
+ ]
342
+ })
343
+ ]
344
+ })
345
+ ]
346
+ })
347
+ };
348
+ export const AllCombinations = {
349
+ render: ()=>/*#__PURE__*/ _jsxs("div", {
350
+ className: "flex flex-col gap-24",
351
+ children: [
352
+ /*#__PURE__*/ _jsxs("div", {
353
+ children: [
354
+ /*#__PURE__*/ _jsx("h3", {
355
+ className: "text-sm font-medium text-foreground-neutral-base mb-12",
356
+ children: "Inline Search"
357
+ }),
358
+ /*#__PURE__*/ _jsxs("div", {
359
+ className: "grid grid-cols-4 gap-12",
360
+ children: [
361
+ /*#__PURE__*/ _jsxs("div", {
362
+ className: "flex flex-col gap-4",
363
+ children: [
364
+ /*#__PURE__*/ _jsx("span", {
365
+ className: "text-xs text-foreground-neutral-muted",
366
+ children: "Primary / Squared / Base"
367
+ }),
368
+ /*#__PURE__*/ _jsx(SearchInline, {
369
+ variant: "primary",
370
+ radius: "squared",
371
+ size: "base",
372
+ placeholder: "Search...",
373
+ className: "w-full"
374
+ })
375
+ ]
376
+ }),
377
+ /*#__PURE__*/ _jsxs("div", {
378
+ className: "flex flex-col gap-4",
379
+ children: [
380
+ /*#__PURE__*/ _jsx("span", {
381
+ className: "text-xs text-foreground-neutral-muted",
382
+ children: "Primary / Squared / Small"
383
+ }),
384
+ /*#__PURE__*/ _jsx(SearchInline, {
385
+ variant: "primary",
386
+ radius: "squared",
387
+ size: "small",
388
+ placeholder: "Search...",
389
+ className: "w-full"
390
+ })
391
+ ]
392
+ }),
393
+ /*#__PURE__*/ _jsxs("div", {
394
+ className: "flex flex-col gap-4",
395
+ children: [
396
+ /*#__PURE__*/ _jsx("span", {
397
+ className: "text-xs text-foreground-neutral-muted",
398
+ children: "Primary / Rounded / Base"
399
+ }),
400
+ /*#__PURE__*/ _jsx(SearchInline, {
401
+ variant: "primary",
402
+ radius: "rounded",
403
+ size: "base",
404
+ placeholder: "Search...",
405
+ className: "w-full"
406
+ })
407
+ ]
408
+ }),
409
+ /*#__PURE__*/ _jsxs("div", {
410
+ className: "flex flex-col gap-4",
411
+ children: [
412
+ /*#__PURE__*/ _jsx("span", {
413
+ className: "text-xs text-foreground-neutral-muted",
414
+ children: "Primary / Rounded / Small"
415
+ }),
416
+ /*#__PURE__*/ _jsx(SearchInline, {
417
+ variant: "primary",
418
+ radius: "rounded",
419
+ size: "small",
420
+ placeholder: "Search...",
421
+ className: "w-full"
422
+ })
423
+ ]
424
+ }),
425
+ /*#__PURE__*/ _jsxs("div", {
426
+ className: "flex flex-col gap-4",
427
+ children: [
428
+ /*#__PURE__*/ _jsx("span", {
429
+ className: "text-xs text-foreground-neutral-muted",
430
+ children: "Secondary / Squared / Base"
431
+ }),
432
+ /*#__PURE__*/ _jsx(SearchInline, {
433
+ variant: "secondary",
434
+ radius: "squared",
435
+ size: "base",
436
+ placeholder: "Search...",
437
+ className: "w-full"
438
+ })
439
+ ]
440
+ }),
441
+ /*#__PURE__*/ _jsxs("div", {
442
+ className: "flex flex-col gap-4",
443
+ children: [
444
+ /*#__PURE__*/ _jsx("span", {
445
+ className: "text-xs text-foreground-neutral-muted",
446
+ children: "Secondary / Squared / Small"
447
+ }),
448
+ /*#__PURE__*/ _jsx(SearchInline, {
449
+ variant: "secondary",
450
+ radius: "squared",
451
+ size: "small",
452
+ placeholder: "Search...",
453
+ className: "w-full"
454
+ })
455
+ ]
456
+ }),
457
+ /*#__PURE__*/ _jsxs("div", {
458
+ className: "flex flex-col gap-4",
459
+ children: [
460
+ /*#__PURE__*/ _jsx("span", {
461
+ className: "text-xs text-foreground-neutral-muted",
462
+ children: "Secondary / Rounded / Base"
463
+ }),
464
+ /*#__PURE__*/ _jsx(SearchInline, {
465
+ variant: "secondary",
466
+ radius: "rounded",
467
+ size: "base",
468
+ placeholder: "Search...",
469
+ className: "w-full"
470
+ })
471
+ ]
472
+ }),
473
+ /*#__PURE__*/ _jsxs("div", {
474
+ className: "flex flex-col gap-4",
475
+ children: [
476
+ /*#__PURE__*/ _jsx("span", {
477
+ className: "text-xs text-foreground-neutral-muted",
478
+ children: "Secondary / Rounded / Small"
479
+ }),
480
+ /*#__PURE__*/ _jsx(SearchInline, {
481
+ variant: "secondary",
482
+ radius: "rounded",
483
+ size: "small",
484
+ placeholder: "Search...",
485
+ className: "w-full"
486
+ })
487
+ ]
488
+ })
489
+ ]
490
+ })
491
+ ]
492
+ }),
493
+ /*#__PURE__*/ _jsxs("div", {
494
+ children: [
495
+ /*#__PURE__*/ _jsx("h3", {
496
+ className: "text-sm font-medium text-foreground-neutral-base mb-12",
497
+ children: "Modal Search Triggers"
498
+ }),
499
+ /*#__PURE__*/ _jsxs("div", {
500
+ className: "grid grid-cols-4 gap-12",
501
+ children: [
502
+ /*#__PURE__*/ _jsxs("div", {
503
+ className: "flex flex-col gap-4",
504
+ children: [
505
+ /*#__PURE__*/ _jsx("span", {
506
+ className: "text-xs text-foreground-neutral-muted",
507
+ children: "Primary / Squared / Base"
508
+ }),
509
+ /*#__PURE__*/ _jsx(TriggerPreview, {
510
+ variant: "primary",
511
+ radius: "squared",
512
+ size: "base",
513
+ className: "w-full"
514
+ })
515
+ ]
516
+ }),
517
+ /*#__PURE__*/ _jsxs("div", {
518
+ className: "flex flex-col gap-4",
519
+ children: [
520
+ /*#__PURE__*/ _jsx("span", {
521
+ className: "text-xs text-foreground-neutral-muted",
522
+ children: "Primary / Squared / Small"
523
+ }),
524
+ /*#__PURE__*/ _jsx(TriggerPreview, {
525
+ variant: "primary",
526
+ radius: "squared",
527
+ size: "small",
528
+ className: "w-full"
529
+ })
530
+ ]
531
+ }),
532
+ /*#__PURE__*/ _jsxs("div", {
533
+ className: "flex flex-col gap-4",
534
+ children: [
535
+ /*#__PURE__*/ _jsx("span", {
536
+ className: "text-xs text-foreground-neutral-muted",
537
+ children: "Primary / Rounded / Base"
538
+ }),
539
+ /*#__PURE__*/ _jsx(TriggerPreview, {
540
+ variant: "primary",
541
+ radius: "rounded",
542
+ size: "base",
543
+ className: "w-full"
544
+ })
545
+ ]
546
+ }),
547
+ /*#__PURE__*/ _jsxs("div", {
548
+ className: "flex flex-col gap-4",
549
+ children: [
550
+ /*#__PURE__*/ _jsx("span", {
551
+ className: "text-xs text-foreground-neutral-muted",
552
+ children: "Primary / Rounded / Small"
553
+ }),
554
+ /*#__PURE__*/ _jsx(TriggerPreview, {
555
+ variant: "primary",
556
+ radius: "rounded",
557
+ size: "small",
558
+ className: "w-full"
559
+ })
560
+ ]
561
+ }),
562
+ /*#__PURE__*/ _jsxs("div", {
563
+ className: "flex flex-col gap-4",
564
+ children: [
565
+ /*#__PURE__*/ _jsx("span", {
566
+ className: "text-xs text-foreground-neutral-muted",
567
+ children: "Secondary / Squared / Base"
568
+ }),
569
+ /*#__PURE__*/ _jsx(TriggerPreview, {
570
+ variant: "secondary",
571
+ radius: "squared",
572
+ size: "base",
573
+ className: "w-full"
574
+ })
575
+ ]
576
+ }),
577
+ /*#__PURE__*/ _jsxs("div", {
578
+ className: "flex flex-col gap-4",
579
+ children: [
580
+ /*#__PURE__*/ _jsx("span", {
581
+ className: "text-xs text-foreground-neutral-muted",
582
+ children: "Secondary / Squared / Small"
583
+ }),
584
+ /*#__PURE__*/ _jsx(TriggerPreview, {
585
+ variant: "secondary",
586
+ radius: "squared",
587
+ size: "small",
588
+ className: "w-full"
589
+ })
590
+ ]
591
+ }),
592
+ /*#__PURE__*/ _jsxs("div", {
593
+ className: "flex flex-col gap-4",
594
+ children: [
595
+ /*#__PURE__*/ _jsx("span", {
596
+ className: "text-xs text-foreground-neutral-muted",
597
+ children: "Secondary / Rounded / Base"
598
+ }),
599
+ /*#__PURE__*/ _jsx(TriggerPreview, {
600
+ variant: "secondary",
601
+ radius: "rounded",
602
+ size: "base",
603
+ className: "w-full"
604
+ })
605
+ ]
606
+ }),
607
+ /*#__PURE__*/ _jsxs("div", {
608
+ className: "flex flex-col gap-4",
609
+ children: [
610
+ /*#__PURE__*/ _jsx("span", {
611
+ className: "text-xs text-foreground-neutral-muted",
612
+ children: "Secondary / Rounded / Small"
613
+ }),
614
+ /*#__PURE__*/ _jsx(TriggerPreview, {
615
+ variant: "secondary",
616
+ radius: "rounded",
617
+ size: "small",
618
+ className: "w-full"
619
+ })
620
+ ]
621
+ })
622
+ ]
623
+ })
624
+ ]
625
+ })
626
+ ]
627
+ })
628
+ };
629
+
630
+ //# sourceMappingURL=search.stories.js.map