@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,219 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { argosScreenshot } from '@argos-ci/storybook/vitest';
3
- import { Code, Header } from '../../components/typography/index.js';
4
- import { InlineTips, InlineTipsAction, InlineTipsActions, InlineTipsContent, InlineTipsDescription, InlineTipsTitle } from './inline-tips.js';
5
- const meta = {
6
- title: 'Components/InlineTips',
7
- component: InlineTips,
8
- tags: [
9
- 'autodocs'
10
- ],
11
- argTypes: {
12
- type: {
13
- control: 'select',
14
- options: [
15
- 'default',
16
- 'info',
17
- 'success',
18
- 'error'
19
- ]
20
- },
21
- variant: {
22
- control: 'select',
23
- options: [
24
- 'primary',
25
- 'secondary'
26
- ]
27
- }
28
- },
29
- args: {
30
- type: 'default',
31
- variant: 'primary'
32
- }
33
- };
34
- export default meta;
35
- const types = [
36
- 'default',
37
- 'info',
38
- 'success',
39
- 'error'
40
- ];
41
- const variants = [
42
- 'primary',
43
- 'secondary'
44
- ];
45
- export const Default = {
46
- play: async (ctx)=>{
47
- await new Promise((resolve)=>setTimeout(resolve, 100));
48
- await argosScreenshot(ctx, 'InlineTips Default');
49
- },
50
- render: (args)=>{
51
- return /*#__PURE__*/ _jsxs(InlineTips, {
52
- ...args,
53
- children: [
54
- /*#__PURE__*/ _jsxs(InlineTipsContent, {
55
- children: [
56
- /*#__PURE__*/ _jsx(InlineTipsTitle, {
57
- children: "Title"
58
- }),
59
- /*#__PURE__*/ _jsx(InlineTipsDescription, {
60
- children: "Description"
61
- })
62
- ]
63
- }),
64
- /*#__PURE__*/ _jsxs(InlineTipsActions, {
65
- children: [
66
- /*#__PURE__*/ _jsx(InlineTipsAction, {
67
- variant: args.variant,
68
- children: "Label"
69
- }),
70
- /*#__PURE__*/ _jsx(InlineTipsAction, {
71
- variant: args.variant,
72
- children: "Label"
73
- })
74
- ]
75
- })
76
- ]
77
- });
78
- }
79
- };
80
- export const Variants = {
81
- render: ()=>{
82
- return /*#__PURE__*/ _jsx("div", {
83
- className: "flex flex-col gap-16",
84
- children: variants.map((variant)=>/*#__PURE__*/ _jsxs(InlineTips, {
85
- type: "default",
86
- variant: variant,
87
- children: [
88
- /*#__PURE__*/ _jsxs(InlineTipsContent, {
89
- children: [
90
- /*#__PURE__*/ _jsx(InlineTipsTitle, {
91
- children: "Title"
92
- }),
93
- /*#__PURE__*/ _jsx(InlineTipsDescription, {
94
- children: "Description"
95
- })
96
- ]
97
- }),
98
- /*#__PURE__*/ _jsxs(InlineTipsActions, {
99
- children: [
100
- /*#__PURE__*/ _jsx(InlineTipsAction, {
101
- variant: "primary",
102
- children: "Label"
103
- }),
104
- /*#__PURE__*/ _jsx(InlineTipsAction, {
105
- variant: "secondary",
106
- children: "Label"
107
- })
108
- ]
109
- })
110
- ]
111
- }, variant))
112
- });
113
- }
114
- };
115
- export const DesignMock = {
116
- render: ()=>{
117
- const content = {
118
- default: {
119
- title: 'Title',
120
- description: 'Description'
121
- },
122
- info: {
123
- title: 'Title',
124
- description: 'Description'
125
- },
126
- success: {
127
- title: 'Title',
128
- description: 'Description'
129
- },
130
- error: {
131
- title: 'Title',
132
- description: 'Description'
133
- }
134
- };
135
- return /*#__PURE__*/ _jsxs("div", {
136
- className: "flex flex-col gap-32 pb-64 pt-32 px-32 bg-background-neutral-base",
137
- children: [
138
- /*#__PURE__*/ _jsx(Header, {
139
- variant: "h3",
140
- className: "text-foreground-neutral-subtle",
141
- children: "INLINE TIPS"
142
- }),
143
- /*#__PURE__*/ _jsxs("div", {
144
- className: "flex flex-col gap-16",
145
- children: [
146
- /*#__PURE__*/ _jsx(Code, {
147
- variant: "label",
148
- className: "text-foreground-neutral-subtle",
149
- children: "Primary"
150
- }),
151
- types.map((type)=>/*#__PURE__*/ _jsxs(InlineTips, {
152
- type: type,
153
- variant: "primary",
154
- children: [
155
- /*#__PURE__*/ _jsxs(InlineTipsContent, {
156
- children: [
157
- /*#__PURE__*/ _jsx(InlineTipsTitle, {
158
- children: content[type].title
159
- }),
160
- /*#__PURE__*/ _jsx(InlineTipsDescription, {
161
- children: content[type].description
162
- })
163
- ]
164
- }),
165
- /*#__PURE__*/ _jsxs(InlineTipsActions, {
166
- children: [
167
- /*#__PURE__*/ _jsx(InlineTipsAction, {
168
- variant: "primary",
169
- children: "Label"
170
- }),
171
- /*#__PURE__*/ _jsx(InlineTipsAction, {
172
- variant: "secondary",
173
- children: "Label"
174
- })
175
- ]
176
- })
177
- ]
178
- }, type)),
179
- /*#__PURE__*/ _jsx(Code, {
180
- variant: "label",
181
- className: "text-foreground-neutral-subtle",
182
- children: "Secondary"
183
- }),
184
- types.map((type)=>/*#__PURE__*/ _jsxs(InlineTips, {
185
- type: type,
186
- variant: "secondary",
187
- children: [
188
- /*#__PURE__*/ _jsxs(InlineTipsContent, {
189
- children: [
190
- /*#__PURE__*/ _jsx(InlineTipsTitle, {
191
- children: content[type].title
192
- }),
193
- /*#__PURE__*/ _jsx(InlineTipsDescription, {
194
- children: content[type].description
195
- })
196
- ]
197
- }),
198
- /*#__PURE__*/ _jsxs(InlineTipsActions, {
199
- children: [
200
- /*#__PURE__*/ _jsx(InlineTipsAction, {
201
- variant: "primary",
202
- children: "Label"
203
- }),
204
- /*#__PURE__*/ _jsx(InlineTipsAction, {
205
- variant: "secondary",
206
- children: "Label"
207
- })
208
- ]
209
- })
210
- ]
211
- }, type))
212
- ]
213
- })
214
- ]
215
- });
216
- }
217
- };
218
-
219
- //# sourceMappingURL=inline-tips.stories.js.map
@@ -1,265 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Icon } from '../../components/icon/index.js';
3
- import { Code, Header } from '../../components/typography/index.js';
4
- import { Input } from './input.js';
5
- const typeOptions = [
6
- 'text',
7
- 'email',
8
- 'password',
9
- 'number',
10
- 'search',
11
- 'url',
12
- 'tel',
13
- 'date',
14
- 'time',
15
- 'datetime-local',
16
- 'month',
17
- 'week',
18
- 'color',
19
- 'file'
20
- ];
21
- const meta = {
22
- title: 'Components/Input',
23
- component: Input,
24
- tags: [
25
- 'autodocs'
26
- ],
27
- argTypes: {
28
- type: {
29
- control: 'select',
30
- options: typeOptions
31
- },
32
- placeholder: {
33
- control: 'text'
34
- },
35
- disabled: {
36
- control: 'boolean'
37
- },
38
- 'aria-invalid': {
39
- control: 'boolean'
40
- }
41
- },
42
- args: {
43
- type: 'text',
44
- placeholder: 'Type something…',
45
- disabled: false,
46
- 'aria-invalid': false
47
- }
48
- };
49
- export default meta;
50
- export const Default = {};
51
- const variants = [
52
- 'base',
53
- 'component'
54
- ];
55
- const sizes = [
56
- 'base',
57
- 'small'
58
- ];
59
- export const States = {
60
- render: (args)=>/*#__PURE__*/ _jsx("div", {
61
- className: "flex flex-col gap-32",
62
- children: variants.map((variant)=>sizes.map((size)=>/*#__PURE__*/ _jsxs("div", {
63
- className: "flex flex-col gap-16",
64
- children: [
65
- /*#__PURE__*/ _jsxs(Header, {
66
- variant: "h3",
67
- children: [
68
- variant,
69
- " ",
70
- size
71
- ]
72
- }),
73
- /*#__PURE__*/ _jsxs("div", {
74
- className: "flex flex-col gap-8",
75
- children: [
76
- /*#__PURE__*/ _jsx(Code, {
77
- variant: "label",
78
- className: "text-foreground-neutral-subtle",
79
- children: "Default"
80
- }),
81
- /*#__PURE__*/ _jsx(Input, {
82
- ...args,
83
- variant: variant,
84
- size: size
85
- })
86
- ]
87
- }),
88
- /*#__PURE__*/ _jsxs("div", {
89
- className: "flex flex-col gap-8",
90
- children: [
91
- /*#__PURE__*/ _jsx(Code, {
92
- variant: "label",
93
- className: "text-foreground-neutral-subtle",
94
- children: "Hover"
95
- }),
96
- /*#__PURE__*/ _jsx(Input, {
97
- ...args,
98
- className: "hover",
99
- variant: variant,
100
- size: size
101
- })
102
- ]
103
- }),
104
- /*#__PURE__*/ _jsxs("div", {
105
- className: "flex flex-col gap-8",
106
- children: [
107
- /*#__PURE__*/ _jsx(Code, {
108
- variant: "label",
109
- className: "text-foreground-neutral-subtle",
110
- children: "Active"
111
- }),
112
- /*#__PURE__*/ _jsx(Input, {
113
- ...args,
114
- className: "active",
115
- defaultValue: "The quick brown fox jumps over the lazy dog",
116
- variant: variant,
117
- size: size
118
- })
119
- ]
120
- }),
121
- /*#__PURE__*/ _jsxs("div", {
122
- className: "flex flex-col gap-8",
123
- children: [
124
- /*#__PURE__*/ _jsx(Code, {
125
- variant: "label",
126
- className: "text-foreground-neutral-subtle",
127
- children: "Focus"
128
- }),
129
- /*#__PURE__*/ _jsx(Input, {
130
- ...args,
131
- className: "focus",
132
- variant: variant,
133
- size: size
134
- })
135
- ]
136
- }),
137
- /*#__PURE__*/ _jsxs("div", {
138
- className: "flex flex-col gap-8",
139
- children: [
140
- /*#__PURE__*/ _jsx(Code, {
141
- variant: "label",
142
- className: "text-foreground-neutral-subtle",
143
- children: "Disabled"
144
- }),
145
- /*#__PURE__*/ _jsx(Input, {
146
- ...args,
147
- disabled: true,
148
- variant: variant,
149
- size: size
150
- })
151
- ]
152
- }),
153
- /*#__PURE__*/ _jsxs("div", {
154
- className: "flex flex-col gap-8",
155
- children: [
156
- /*#__PURE__*/ _jsx(Code, {
157
- variant: "label",
158
- className: "text-foreground-neutral-subtle",
159
- children: "Invalid"
160
- }),
161
- /*#__PURE__*/ _jsx(Input, {
162
- ...args,
163
- "aria-invalid": true,
164
- variant: variant,
165
- size: size
166
- })
167
- ]
168
- })
169
- ]
170
- }, variant + size)))
171
- })
172
- };
173
- States.parameters = {
174
- pseudo: {
175
- hover: '.hover',
176
- active: '.active',
177
- focusVisible: '.focus'
178
- }
179
- };
180
- export const Types = {
181
- render: (args)=>/*#__PURE__*/ _jsx("div", {
182
- className: "flex flex-col gap-32",
183
- children: typeOptions.map((t)=>/*#__PURE__*/ _jsxs("div", {
184
- className: "flex flex-col gap-8",
185
- children: [
186
- /*#__PURE__*/ _jsx(Code, {
187
- variant: "label",
188
- className: "text-foreground-neutral-subtle",
189
- children: t
190
- }),
191
- /*#__PURE__*/ _jsx(Input, {
192
- ...args,
193
- type: t
194
- })
195
- ]
196
- }, t))
197
- })
198
- };
199
- export const WithIcons = {
200
- render: (args)=>/*#__PURE__*/ _jsxs("div", {
201
- className: "flex flex-col gap-24 w-full max-w-400",
202
- children: [
203
- /*#__PURE__*/ _jsxs("div", {
204
- className: "flex flex-col gap-8",
205
- children: [
206
- /*#__PURE__*/ _jsx(Code, {
207
- variant: "label",
208
- className: "text-foreground-neutral-subtle",
209
- children: "Left Icon"
210
- }),
211
- /*#__PURE__*/ _jsx(Input, {
212
- ...args,
213
- placeholder: "Search...",
214
- iconLeft: /*#__PURE__*/ _jsx(Icon, {
215
- name: "searchLine",
216
- className: "size-16 text-foreground-neutral-muted"
217
- })
218
- })
219
- ]
220
- }),
221
- /*#__PURE__*/ _jsxs("div", {
222
- className: "flex flex-col gap-8",
223
- children: [
224
- /*#__PURE__*/ _jsx(Code, {
225
- variant: "label",
226
- className: "text-foreground-neutral-subtle",
227
- children: "Right Icon"
228
- }),
229
- /*#__PURE__*/ _jsx(Input, {
230
- ...args,
231
- placeholder: "Enter email",
232
- iconRight: /*#__PURE__*/ _jsx(Icon, {
233
- name: "mailLine",
234
- className: "size-16 text-foreground-neutral-muted"
235
- })
236
- })
237
- ]
238
- }),
239
- /*#__PURE__*/ _jsxs("div", {
240
- className: "flex flex-col gap-8",
241
- children: [
242
- /*#__PURE__*/ _jsx(Code, {
243
- variant: "label",
244
- className: "text-foreground-neutral-subtle",
245
- children: "Both Icons"
246
- }),
247
- /*#__PURE__*/ _jsx(Input, {
248
- ...args,
249
- placeholder: "Search users...",
250
- iconLeft: /*#__PURE__*/ _jsx(Icon, {
251
- name: "searchLine",
252
- className: "size-16 text-foreground-neutral-muted"
253
- }),
254
- iconRight: /*#__PURE__*/ _jsx(Icon, {
255
- name: "userLine",
256
- className: "size-16 text-foreground-neutral-muted"
257
- })
258
- })
259
- ]
260
- })
261
- ]
262
- })
263
- };
264
-
265
- //# sourceMappingURL=input.stories.js.map