@shipfox/react-ui 0.25.0 → 0.26.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 (53) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/index.js +1 -0
  3. package/dist/components/slider/index.d.ts +2 -0
  4. package/dist/components/slider/index.js +3 -0
  5. package/dist/components/slider/slider.d.ts +10 -0
  6. package/dist/components/slider/slider.js +38 -0
  7. package/dist/styles.css +1 -1
  8. package/package.json +4 -4
  9. package/dist/colors.stories.js +0 -61
  10. package/dist/components/alert/alert.stories.js +0 -227
  11. package/dist/components/avatar/avatar.stories.js +0 -267
  12. package/dist/components/badge/badge.stories.js +0 -802
  13. package/dist/components/button/button-link.stories.js +0 -127
  14. package/dist/components/button/button.stories.js +0 -187
  15. package/dist/components/button/icon-button.stories.js +0 -344
  16. package/dist/components/button-group/button-group.stories.js +0 -644
  17. package/dist/components/card/card.stories.js +0 -216
  18. package/dist/components/checkbox/checkbox.stories.js +0 -566
  19. package/dist/components/code-block/code-block.stories.js +0 -341
  20. package/dist/components/combobox/combobox.stories.js +0 -191
  21. package/dist/components/command/command.stories.js +0 -228
  22. package/dist/components/confetti/confetti.stories.js +0 -41
  23. package/dist/components/count-up/count-up.stories.js +0 -568
  24. package/dist/components/dashboard/components/charts/bar-chart.stories.js +0 -287
  25. package/dist/components/dashboard/components/charts/line-chart.stories.js +0 -257
  26. package/dist/components/dashboard/dashboard.stories.js +0 -23
  27. package/dist/components/date-picker/date-picker.stories.js +0 -349
  28. package/dist/components/dropdown-input/dropdown-input.stories.js +0 -240
  29. package/dist/components/dropdown-menu/dropdown-menu.stories.js +0 -462
  30. package/dist/components/dynamic-item/dynamic-item.stories.js +0 -385
  31. package/dist/components/empty-state/empty-state.stories.js +0 -74
  32. package/dist/components/form/form.stories.js +0 -587
  33. package/dist/components/icon/icon.stories.js +0 -38
  34. package/dist/components/inline-tips/inline-tips.stories.js +0 -219
  35. package/dist/components/input/input.stories.js +0 -265
  36. package/dist/components/interval-selector/interval-selector.stories.js +0 -232
  37. package/dist/components/item/item.stories.js +0 -239
  38. package/dist/components/kbd/kbd.stories.js +0 -119
  39. package/dist/components/label/label.stories.js +0 -105
  40. package/dist/components/modal/modal.stories.js +0 -566
  41. package/dist/components/search/search.stories.js +0 -630
  42. package/dist/components/select/select.stories.js +0 -393
  43. package/dist/components/sheet/sheet.stories.js +0 -368
  44. package/dist/components/skeleton/skeleton.stories.js +0 -345
  45. package/dist/components/table/table.stories.js +0 -302
  46. package/dist/components/tabs/tabs.stories.js +0 -179
  47. package/dist/components/textarea/textarea.stories.js +0 -339
  48. package/dist/components/toast/toast.stories.js +0 -326
  49. package/dist/components/tooltip/tooltip.stories.js +0 -560
  50. package/dist/components/typography/code.stories.js +0 -54
  51. package/dist/components/typography/header.stories.js +0 -34
  52. package/dist/components/typography/text.stories.js +0 -105
  53. package/dist/onboarding/sign-in.stories.js +0 -101
@@ -1,385 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button } from '../../components/button/button.js';
3
- import { ItemTitle } from '../../components/item/index.js';
4
- import { MovingBorder } from '../../components/moving-border/index.js';
5
- import { cn } from '../../utils/cn.js';
6
- import illustration1 from '../../assets/illustration-1.svg';
7
- import illustration2 from '../../assets/illustration-2.svg';
8
- import illustrationBg from '../../assets/illustration-gradient.svg';
9
- import { Avatar } from '../avatar/avatar.js';
10
- import { AvatarGroup, AvatarGroupTooltip } from '../avatar/avatar-group.js';
11
- import { Icon } from '../icon/icon.js';
12
- import { DynamicItem } from './dynamic-item.js';
13
- const meta = {
14
- title: 'Components/DynamicItem',
15
- component: DynamicItem,
16
- tags: [
17
- 'autodocs'
18
- ]
19
- };
20
- export default meta;
21
- export const OrganizationItem = {
22
- args: {},
23
- render: ()=>/*#__PURE__*/ _jsxs("div", {
24
- className: "flex flex-col gap-16 w-full max-w-476",
25
- children: [
26
- /*#__PURE__*/ _jsx(DynamicItem, {
27
- variant: "default",
28
- leftElement: /*#__PURE__*/ _jsx(Avatar, {
29
- content: "logo",
30
- logoName: "slack",
31
- radius: "rounded",
32
- size: "xl"
33
- }),
34
- title: "Slack",
35
- description: "3 members",
36
- rightElement: /*#__PURE__*/ _jsxs(AvatarGroup, {
37
- size: "md",
38
- children: [
39
- /*#__PURE__*/ _jsx(Avatar, {
40
- content: "image",
41
- fallback: "John Doe",
42
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
43
- children: "John Doe"
44
- })
45
- }),
46
- /*#__PURE__*/ _jsx(Avatar, {
47
- content: "image",
48
- fallback: "Jane Smith",
49
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
50
- children: "Jane Smith"
51
- })
52
- }),
53
- /*#__PURE__*/ _jsx(Avatar, {
54
- content: "image",
55
- fallback: "Bob Johnson",
56
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
57
- children: "Bob Johnson"
58
- })
59
- })
60
- ]
61
- })
62
- }),
63
- /*#__PURE__*/ _jsx(DynamicItem, {
64
- variant: "default",
65
- leftElement: /*#__PURE__*/ _jsx(Avatar, {
66
- content: "logo",
67
- logoName: "stripe",
68
- radius: "rounded",
69
- size: "xl"
70
- }),
71
- title: "Stripe",
72
- description: "2 members",
73
- rightElement: /*#__PURE__*/ _jsxs(AvatarGroup, {
74
- size: "md",
75
- children: [
76
- /*#__PURE__*/ _jsx(Avatar, {
77
- content: "image",
78
- fallback: "Alice Brown",
79
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
80
- children: "Alice Brown"
81
- })
82
- }),
83
- /*#__PURE__*/ _jsx(Avatar, {
84
- content: "image",
85
- fallback: "Carlos Vega",
86
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
87
- children: "Carlos Vega"
88
- })
89
- })
90
- ]
91
- })
92
- }),
93
- /*#__PURE__*/ _jsx(DynamicItem, {
94
- variant: "default",
95
- leftElement: /*#__PURE__*/ _jsx(Avatar, {
96
- content: "logo",
97
- logoName: "shipfox",
98
- radius: "rounded",
99
- size: "xl"
100
- }),
101
- title: "Shipfox",
102
- description: "9 members",
103
- rightElement: /*#__PURE__*/ _jsxs(AvatarGroup, {
104
- size: "md",
105
- maxVisible: 4,
106
- animateOnHover: true,
107
- children: [
108
- /*#__PURE__*/ _jsx(Avatar, {
109
- content: "image",
110
- fallback: "Linda Tran",
111
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
112
- children: "Linda Tran"
113
- })
114
- }),
115
- /*#__PURE__*/ _jsx(Avatar, {
116
- content: "image",
117
- fallback: "Michael Chen",
118
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
119
- children: "Michael Chen"
120
- })
121
- }),
122
- /*#__PURE__*/ _jsx(Avatar, {
123
- content: "image",
124
- fallback: "Sarah Williams",
125
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
126
- children: "Sarah Williams"
127
- })
128
- }),
129
- /*#__PURE__*/ _jsx(Avatar, {
130
- content: "image",
131
- fallback: "David Lee",
132
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
133
- children: "David Lee"
134
- })
135
- }),
136
- /*#__PURE__*/ _jsx(Avatar, {
137
- content: "image",
138
- fallback: "Emily Davis",
139
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
140
- children: "Emily Davis"
141
- })
142
- }),
143
- /*#__PURE__*/ _jsx(Avatar, {
144
- content: "image",
145
- fallback: "James Wilson",
146
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
147
- children: "James Wilson"
148
- })
149
- }),
150
- /*#__PURE__*/ _jsx(Avatar, {
151
- content: "image",
152
- fallback: "Olivia Martinez",
153
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
154
- children: "Olivia Martinez"
155
- })
156
- }),
157
- /*#__PURE__*/ _jsx(Avatar, {
158
- content: "image",
159
- fallback: "Noah Anderson",
160
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
161
- children: "Noah Anderson"
162
- })
163
- }),
164
- /*#__PURE__*/ _jsx(Avatar, {
165
- content: "image",
166
- fallback: "Sophia Taylor",
167
- children: /*#__PURE__*/ _jsx(AvatarGroupTooltip, {
168
- children: "Sophia Taylor"
169
- })
170
- })
171
- ]
172
- })
173
- })
174
- ]
175
- })
176
- };
177
- export const ConnectGithubAccountItem = {
178
- args: {},
179
- render: ()=>/*#__PURE__*/ _jsxs("div", {
180
- className: "flex flex-col gap-16 w-full max-w-476",
181
- children: [
182
- /*#__PURE__*/ _jsx(DynamicItem, {
183
- variant: "default",
184
- leftElement: /*#__PURE__*/ _jsxs("div", {
185
- className: "relative",
186
- children: [
187
- /*#__PURE__*/ _jsx(Avatar, {
188
- content: "logoPlaceholder",
189
- logoName: "slack",
190
- radius: "full",
191
- size: "lg"
192
- }),
193
- /*#__PURE__*/ _jsx(Avatar, {
194
- content: "logoPlaceholder",
195
- logoName: "github",
196
- radius: "full",
197
- size: "2xs",
198
- logoClassName: "p-0",
199
- className: "absolute bottom-0 left-27"
200
- })
201
- ]
202
- }),
203
- title: "Slack",
204
- description: "Connect Github organization",
205
- rightElement: /*#__PURE__*/ _jsx(Button, {
206
- variant: "primary",
207
- size: "sm",
208
- children: "Connect"
209
- })
210
- }),
211
- /*#__PURE__*/ _jsx(DynamicItem, {
212
- variant: "default",
213
- leftElement: /*#__PURE__*/ _jsxs("div", {
214
- className: "relative",
215
- children: [
216
- /*#__PURE__*/ _jsx(Avatar, {
217
- content: "logoPlaceholder",
218
- logoName: "slack",
219
- radius: "full",
220
- size: "lg"
221
- }),
222
- /*#__PURE__*/ _jsx(Avatar, {
223
- content: "logo",
224
- logoName: "github",
225
- radius: "full",
226
- size: "2xs",
227
- logoClassName: "p-0",
228
- className: "absolute bottom-0 left-27"
229
- })
230
- ]
231
- }),
232
- title: "Slack",
233
- description: /*#__PURE__*/ _jsxs("p", {
234
- className: "text-xs leading-20 text-tag-warning-icon inline-flex items-center gap-2",
235
- children: [
236
- "Personal account (kyle-nguyen)",
237
- /*#__PURE__*/ _jsx(Icon, {
238
- name: "info",
239
- size: "sm",
240
- className: "shrink-0 size-16 text-tag-warning-icon"
241
- })
242
- ]
243
- }),
244
- rightElement: /*#__PURE__*/ _jsx(Button, {
245
- variant: "primary",
246
- size: "sm",
247
- children: "Change account"
248
- })
249
- }),
250
- /*#__PURE__*/ _jsx(DynamicItem, {
251
- variant: "default",
252
- leftElement: /*#__PURE__*/ _jsxs("div", {
253
- className: "relative",
254
- children: [
255
- /*#__PURE__*/ _jsx(Avatar, {
256
- content: "logoPlaceholder",
257
- logoName: "slack",
258
- radius: "full",
259
- size: "lg"
260
- }),
261
- /*#__PURE__*/ _jsx(Avatar, {
262
- content: "logo",
263
- logoName: "github",
264
- radius: "full",
265
- size: "2xs",
266
- logoClassName: "p-0",
267
- className: "absolute bottom-0 left-27"
268
- })
269
- ]
270
- }),
271
- title: "Slack",
272
- description: "Organization (slack-github)",
273
- rightElement: /*#__PURE__*/ _jsx(Button, {
274
- variant: "secondary",
275
- size: "sm",
276
- children: "Change account"
277
- })
278
- })
279
- ]
280
- })
281
- };
282
- export const WithCustomElementsItem = {
283
- args: {},
284
- render: ()=>{
285
- return /*#__PURE__*/ _jsxs("div", {
286
- className: "flex flex-col gap-16 w-full max-w-672",
287
- children: [
288
- /*#__PURE__*/ _jsx(DynamicItem, {
289
- variant: "default",
290
- leftElement: /*#__PURE__*/ _jsx("div", {
291
- className: "flex shrink-0 items-center justify-center text-tag-success-icon",
292
- children: /*#__PURE__*/ _jsx(Icon, {
293
- name: "checkCircleSolid",
294
- size: "sm"
295
- })
296
- }),
297
- title: "Give access to your Github organizations",
298
- description: "We'll use this permission to sync your organization's.",
299
- action: /*#__PURE__*/ _jsxs("div", {
300
- className: "flex gap-8 mx-auto sm:mx-0",
301
- children: [
302
- /*#__PURE__*/ _jsx(Button, {
303
- variant: "primary",
304
- size: "sm",
305
- children: "Github access"
306
- }),
307
- /*#__PURE__*/ _jsx(Button, {
308
- variant: "transparentMuted",
309
- size: "sm",
310
- children: "Skip for now"
311
- })
312
- ]
313
- }),
314
- rightElement: /*#__PURE__*/ _jsx("img", {
315
- src: illustration1,
316
- alt: "illustration-1",
317
- className: "hidden sm:block absolute overflow-clip right-2 top-1/2 -translate-y-1/2 -translate-x-46 w-fit object-contain"
318
- })
319
- }),
320
- /*#__PURE__*/ _jsxs("div", {
321
- className: "relative",
322
- children: [
323
- /*#__PURE__*/ _jsx("img", {
324
- src: illustration2,
325
- alt: "illustration-2",
326
- className: "hidden sm:block absolute overflow-clip right-2 top-1/2 -translate-y-1/2 translate-x-8 w-fit object-contain z-50"
327
- }),
328
- /*#__PURE__*/ _jsxs("div", {
329
- className: cn('relative overflow-hidden bg-transparent p-1 rounded-8'),
330
- children: [
331
- /*#__PURE__*/ _jsx("div", {
332
- className: "absolute inset-0",
333
- style: {
334
- borderRadius: 'calc(0.5rem * 0.96)'
335
- },
336
- children: /*#__PURE__*/ _jsx(MovingBorder, {
337
- duration: 6000,
338
- rx: "30%",
339
- ry: "30%",
340
- children: /*#__PURE__*/ _jsx("div", {
341
- className: "h-100 w-200 bg-[radial-gradient(#ff9e7a_40%,transparent_60%)]"
342
- })
343
- })
344
- }),
345
- /*#__PURE__*/ _jsx("div", {
346
- className: "relative",
347
- style: {
348
- borderRadius: 'calc(0.5rem * 0.96)'
349
- },
350
- children: /*#__PURE__*/ _jsx(DynamicItem, {
351
- variant: "default",
352
- title: /*#__PURE__*/ _jsxs("div", {
353
- className: "flex items-center gap-6",
354
- children: [
355
- /*#__PURE__*/ _jsx("span", {
356
- className: "flex shrink-0 items-center justify-center text-tag-success-icon w-16 h-16",
357
- children: /*#__PURE__*/ _jsx(Icon, {
358
- name: "money",
359
- size: "sm",
360
- color: "var(--foreground-neutral-subtle, #a1a1aa)"
361
- })
362
- }),
363
- /*#__PURE__*/ _jsx(ItemTitle, {
364
- children: "6000 free credits/month to run your jobs"
365
- })
366
- ]
367
- }),
368
- description: "~500 builds/month. No payment required.",
369
- rightElement: /*#__PURE__*/ _jsx("img", {
370
- src: illustrationBg,
371
- alt: "illustration-bg",
372
- className: "hidden sm:block absolute overflow-clip right-4 w-fit object-contain scale-105"
373
- })
374
- })
375
- })
376
- ]
377
- })
378
- ]
379
- })
380
- ]
381
- });
382
- }
383
- };
384
-
385
- //# sourceMappingURL=dynamic-item.stories.js.map
@@ -1,74 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { EmptyState } from './empty-state.js';
3
- const meta = {
4
- title: 'Components/EmptyState',
5
- component: EmptyState,
6
- tags: [
7
- 'autodocs'
8
- ],
9
- parameters: {
10
- layout: 'centered'
11
- }
12
- };
13
- export default meta;
14
- export const Default = {
15
- render: (args)=>/*#__PURE__*/ _jsx("div", {
16
- className: "w-400",
17
- children: /*#__PURE__*/ _jsx(EmptyState, {
18
- ...args
19
- })
20
- }),
21
- args: {}
22
- };
23
- export const CustomContent = {
24
- render: (args)=>/*#__PURE__*/ _jsx("div", {
25
- className: "w-400",
26
- children: /*#__PURE__*/ _jsx(EmptyState, {
27
- ...args
28
- })
29
- }),
30
- args: {
31
- icon: 'shipfox',
32
- title: 'No jobs yet',
33
- description: 'Import past runs or start a runner.'
34
- }
35
- };
36
- export const Compact = {
37
- render: (args)=>/*#__PURE__*/ _jsx("div", {
38
- className: "w-400 h-200 relative",
39
- children: /*#__PURE__*/ _jsx(EmptyState, {
40
- ...args
41
- })
42
- }),
43
- args: {
44
- icon: 'lineChartLine',
45
- title: 'Nothing here yet.',
46
- variant: 'compact'
47
- }
48
- };
49
- export const NoDescription = {
50
- render: (args)=>/*#__PURE__*/ _jsx("div", {
51
- className: "w-400",
52
- children: /*#__PURE__*/ _jsx(EmptyState, {
53
- ...args
54
- })
55
- }),
56
- args: {
57
- title: 'No data available',
58
- description: undefined
59
- }
60
- };
61
- export const NoTitle = {
62
- render: (args)=>/*#__PURE__*/ _jsx("div", {
63
- className: "w-400",
64
- children: /*#__PURE__*/ _jsx(EmptyState, {
65
- ...args
66
- })
67
- }),
68
- args: {
69
- title: undefined,
70
- description: 'This is a description without a title.'
71
- }
72
- };
73
-
74
- //# sourceMappingURL=empty-state.stories.js.map