@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,287 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { BarChart } from './bar-chart.js';
3
- const meta = {
4
- title: 'Components/Charts/BarChart',
5
- component: BarChart,
6
- tags: [
7
- 'autodocs'
8
- ],
9
- parameters: {
10
- layout: 'centered'
11
- }
12
- };
13
- export default meta;
14
- const sampleData = [
15
- {
16
- label: 'Jan',
17
- value1: 100,
18
- value2: 80,
19
- value3: 120
20
- },
21
- {
22
- label: 'Feb',
23
- value1: 150,
24
- value2: 130,
25
- value3: 140
26
- },
27
- {
28
- label: 'Mar',
29
- value1: 200,
30
- value2: 180,
31
- value3: 160
32
- },
33
- {
34
- label: 'Apr',
35
- value1: 180,
36
- value2: 200,
37
- value3: 180
38
- },
39
- {
40
- label: 'May',
41
- value1: 250,
42
- value2: 220,
43
- value3: 200
44
- },
45
- {
46
- label: 'Jun',
47
- value1: 300,
48
- value2: 280,
49
- value3: 240
50
- }
51
- ];
52
- export const Default = {
53
- render: (args)=>/*#__PURE__*/ _jsx("div", {
54
- className: "w-400",
55
- children: /*#__PURE__*/ _jsx(BarChart, {
56
- ...args
57
- })
58
- }),
59
- args: {
60
- data: sampleData,
61
- bars: [
62
- {
63
- dataKey: 'value1',
64
- name: 'Series 1'
65
- },
66
- {
67
- dataKey: 'value2',
68
- name: 'Series 2'
69
- },
70
- {
71
- dataKey: 'value3',
72
- name: 'Series 3'
73
- }
74
- ],
75
- height: 200
76
- }
77
- };
78
- export const WithTitle = {
79
- render: (args)=>/*#__PURE__*/ _jsx("div", {
80
- className: "w-400",
81
- children: /*#__PURE__*/ _jsx(BarChart, {
82
- ...args
83
- })
84
- }),
85
- args: {
86
- data: sampleData,
87
- bars: [
88
- {
89
- dataKey: 'value1',
90
- name: 'Revenue'
91
- },
92
- {
93
- dataKey: 'value2',
94
- name: 'Expenses'
95
- }
96
- ],
97
- height: 200,
98
- title: 'Monthly Comparison'
99
- }
100
- };
101
- export const SingleBar = {
102
- render: (args)=>/*#__PURE__*/ _jsx("div", {
103
- className: "w-400",
104
- children: /*#__PURE__*/ _jsx(BarChart, {
105
- ...args
106
- })
107
- }),
108
- args: {
109
- data: sampleData,
110
- bars: [
111
- {
112
- dataKey: 'value1',
113
- name: 'Total Sales'
114
- }
115
- ],
116
- height: 200,
117
- title: 'Sales Over Time'
118
- }
119
- };
120
- export const CustomColors = {
121
- render: (args)=>/*#__PURE__*/ _jsx("div", {
122
- className: "w-400",
123
- children: /*#__PURE__*/ _jsx(BarChart, {
124
- ...args
125
- })
126
- }),
127
- args: {
128
- data: sampleData,
129
- bars: [
130
- {
131
- dataKey: 'value1',
132
- name: 'Blue Series',
133
- color: 'blue'
134
- },
135
- {
136
- dataKey: 'value2',
137
- name: 'Green Series',
138
- color: 'green'
139
- },
140
- {
141
- dataKey: 'value3',
142
- name: 'Orange Series',
143
- color: 'orange'
144
- }
145
- ],
146
- height: 200,
147
- title: 'Custom Colored Bars'
148
- }
149
- };
150
- export const StackedBars = {
151
- render: (args)=>/*#__PURE__*/ _jsx("div", {
152
- className: "w-400",
153
- children: /*#__PURE__*/ _jsx(BarChart, {
154
- ...args
155
- })
156
- }),
157
- args: {
158
- data: sampleData,
159
- bars: [
160
- {
161
- dataKey: 'value1',
162
- name: 'Series 1',
163
- stackId: 'stack'
164
- },
165
- {
166
- dataKey: 'value2',
167
- name: 'Series 2',
168
- stackId: 'stack'
169
- },
170
- {
171
- dataKey: 'value3',
172
- name: 'Series 3',
173
- stackId: 'stack'
174
- }
175
- ],
176
- height: 200,
177
- title: 'Stacked Bars'
178
- }
179
- };
180
- export const RoundedBars = {
181
- render: (args)=>/*#__PURE__*/ _jsx("div", {
182
- className: "w-400",
183
- children: /*#__PURE__*/ _jsx(BarChart, {
184
- ...args
185
- })
186
- }),
187
- args: {
188
- data: sampleData,
189
- bars: [
190
- {
191
- dataKey: 'value1',
192
- name: 'Series 1'
193
- },
194
- {
195
- dataKey: 'value2',
196
- name: 'Series 2'
197
- }
198
- ],
199
- height: 200,
200
- barRadius: [
201
- 4,
202
- 4,
203
- 0,
204
- 0
205
- ],
206
- title: 'Rounded Top Corners'
207
- }
208
- };
209
- export const HiddenBars = {
210
- render: (args)=>/*#__PURE__*/ _jsx("div", {
211
- className: "w-400",
212
- children: /*#__PURE__*/ _jsx(BarChart, {
213
- ...args
214
- })
215
- }),
216
- args: {
217
- data: sampleData,
218
- bars: [
219
- {
220
- dataKey: 'value1',
221
- name: 'Visible Series'
222
- },
223
- {
224
- dataKey: 'value2',
225
- name: 'Hidden Series',
226
- hide: true
227
- },
228
- {
229
- dataKey: 'value3',
230
- name: 'Another Visible Series'
231
- }
232
- ],
233
- height: 200,
234
- title: 'With Hidden Bars'
235
- }
236
- };
237
- export const CustomFormatter = {
238
- render: (args)=>/*#__PURE__*/ _jsx("div", {
239
- className: "w-400",
240
- children: /*#__PURE__*/ _jsx(BarChart, {
241
- ...args
242
- })
243
- }),
244
- args: {
245
- data: sampleData,
246
- bars: [
247
- {
248
- dataKey: 'value1',
249
- name: 'Sales'
250
- },
251
- {
252
- dataKey: 'value2',
253
- name: 'Profit'
254
- }
255
- ],
256
- height: 200,
257
- tooltip: {
258
- formatter: (value)=>`$${value.toLocaleString()}`,
259
- labelFormatter: (label)=>`Month: ${label}`
260
- },
261
- yAxis: {
262
- tickFormatter: (value)=>`$${value}`
263
- },
264
- title: 'Formatted Values'
265
- }
266
- };
267
- export const EmptyState = {
268
- render: (args)=>/*#__PURE__*/ _jsx("div", {
269
- className: "w-400",
270
- children: /*#__PURE__*/ _jsx(BarChart, {
271
- ...args
272
- })
273
- }),
274
- args: {
275
- data: [],
276
- bars: [
277
- {
278
- dataKey: 'value1',
279
- name: 'Series 1'
280
- }
281
- ],
282
- height: 200,
283
- title: 'Duration distribution'
284
- }
285
- };
286
-
287
- //# sourceMappingURL=bar-chart.stories.js.map
@@ -1,257 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LineChart } from './line-chart.js';
3
- const meta = {
4
- title: 'Components/Charts/LineChart',
5
- component: LineChart,
6
- tags: [
7
- 'autodocs'
8
- ],
9
- parameters: {
10
- layout: 'centered'
11
- }
12
- };
13
- export default meta;
14
- const sampleData = [
15
- {
16
- label: 'Jan',
17
- value1: 100,
18
- value2: 80,
19
- value3: 120
20
- },
21
- {
22
- label: 'Feb',
23
- value1: 150,
24
- value2: 130,
25
- value3: 140
26
- },
27
- {
28
- label: 'Mar',
29
- value1: 200,
30
- value2: 180,
31
- value3: 160
32
- },
33
- {
34
- label: 'Apr',
35
- value1: 180,
36
- value2: 200,
37
- value3: 180
38
- },
39
- {
40
- label: 'May',
41
- value1: 250,
42
- value2: 220,
43
- value3: 200
44
- },
45
- {
46
- label: 'Jun',
47
- value1: 300,
48
- value2: 280,
49
- value3: 240
50
- }
51
- ];
52
- export const Default = {
53
- render: (args)=>/*#__PURE__*/ _jsx("div", {
54
- className: "w-400",
55
- children: /*#__PURE__*/ _jsx(LineChart, {
56
- ...args
57
- })
58
- }),
59
- args: {
60
- data: sampleData,
61
- lines: [
62
- {
63
- dataKey: 'value1',
64
- name: 'Series 1'
65
- },
66
- {
67
- dataKey: 'value2',
68
- name: 'Series 2'
69
- },
70
- {
71
- dataKey: 'value3',
72
- name: 'Series 3'
73
- }
74
- ],
75
- height: 200
76
- }
77
- };
78
- export const WithTitle = {
79
- render: (args)=>/*#__PURE__*/ _jsx("div", {
80
- className: "w-400",
81
- children: /*#__PURE__*/ _jsx(LineChart, {
82
- ...args
83
- })
84
- }),
85
- args: {
86
- data: sampleData,
87
- lines: [
88
- {
89
- dataKey: 'value1',
90
- name: 'Revenue'
91
- },
92
- {
93
- dataKey: 'value2',
94
- name: 'Expenses'
95
- }
96
- ],
97
- height: 200,
98
- title: 'Monthly Trends'
99
- }
100
- };
101
- export const SingleLine = {
102
- render: (args)=>/*#__PURE__*/ _jsx("div", {
103
- className: "w-400",
104
- children: /*#__PURE__*/ _jsx(LineChart, {
105
- ...args
106
- })
107
- }),
108
- args: {
109
- data: sampleData,
110
- lines: [
111
- {
112
- dataKey: 'value1',
113
- name: 'Total Sales'
114
- }
115
- ],
116
- height: 200,
117
- title: 'Sales Over Time'
118
- }
119
- };
120
- export const CustomColors = {
121
- render: (args)=>/*#__PURE__*/ _jsx("div", {
122
- className: "w-400",
123
- children: /*#__PURE__*/ _jsx(LineChart, {
124
- ...args
125
- })
126
- }),
127
- args: {
128
- data: sampleData,
129
- lines: [
130
- {
131
- dataKey: 'value1',
132
- name: 'Blue Series',
133
- color: 'blue'
134
- },
135
- {
136
- dataKey: 'value2',
137
- name: 'Green Series',
138
- color: 'green'
139
- },
140
- {
141
- dataKey: 'value3',
142
- name: 'Orange Series',
143
- color: 'orange'
144
- }
145
- ],
146
- height: 200,
147
- title: 'Custom Colored Lines'
148
- }
149
- };
150
- export const HiddenAxis = {
151
- render: (args)=>/*#__PURE__*/ _jsx("div", {
152
- className: "w-400",
153
- children: /*#__PURE__*/ _jsx(LineChart, {
154
- ...args
155
- })
156
- }),
157
- args: {
158
- data: sampleData,
159
- lines: [
160
- {
161
- dataKey: 'value1',
162
- name: 'Series 1'
163
- },
164
- {
165
- dataKey: 'value2',
166
- name: 'Series 2'
167
- }
168
- ],
169
- height: 200,
170
- xAxis: {
171
- hide: true
172
- },
173
- yAxis: {
174
- hide: true
175
- },
176
- title: 'No Axes'
177
- }
178
- };
179
- export const HiddenLines = {
180
- render: (args)=>/*#__PURE__*/ _jsx("div", {
181
- className: "w-400",
182
- children: /*#__PURE__*/ _jsx(LineChart, {
183
- ...args
184
- })
185
- }),
186
- args: {
187
- data: sampleData,
188
- lines: [
189
- {
190
- dataKey: 'value1',
191
- name: 'Visible Series'
192
- },
193
- {
194
- dataKey: 'value2',
195
- name: 'Hidden Series',
196
- hide: true
197
- },
198
- {
199
- dataKey: 'value3',
200
- name: 'Another Visible Series'
201
- }
202
- ],
203
- height: 200,
204
- title: 'With Hidden Lines'
205
- }
206
- };
207
- export const CustomFormatter = {
208
- render: (args)=>/*#__PURE__*/ _jsx("div", {
209
- className: "w-400",
210
- children: /*#__PURE__*/ _jsx(LineChart, {
211
- ...args
212
- })
213
- }),
214
- args: {
215
- data: sampleData,
216
- lines: [
217
- {
218
- dataKey: 'value1',
219
- name: 'Sales'
220
- },
221
- {
222
- dataKey: 'value2',
223
- name: 'Profit'
224
- }
225
- ],
226
- height: 200,
227
- tooltip: {
228
- formatter: (value)=>`$${value.toLocaleString()}`,
229
- labelFormatter: (label)=>`Month: ${label}`
230
- },
231
- yAxis: {
232
- tickFormatter: (value)=>`$${value}`
233
- },
234
- title: 'Formatted Values'
235
- }
236
- };
237
- export const EmptyState = {
238
- render: (args)=>/*#__PURE__*/ _jsx("div", {
239
- className: "w-400",
240
- children: /*#__PURE__*/ _jsx(LineChart, {
241
- ...args
242
- })
243
- }),
244
- args: {
245
- data: [],
246
- lines: [
247
- {
248
- dataKey: 'value1',
249
- name: 'Series 1'
250
- }
251
- ],
252
- height: 200,
253
- title: 'Performance over time'
254
- }
255
- };
256
-
257
- //# sourceMappingURL=line-chart.stories.js.map
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Dashboard } from './dashboard.js';
3
- const meta = {
4
- title: 'Dashboard/Example',
5
- tags: [
6
- 'autodocs'
7
- ],
8
- parameters: {
9
- layout: 'fullscreen',
10
- viewport: {
11
- defaultViewport: 'extraLarge'
12
- }
13
- }
14
- };
15
- export default meta;
16
- export const Default = {
17
- render: ()=>/*#__PURE__*/ _jsx("div", {
18
- className: "h-screen w-full",
19
- children: /*#__PURE__*/ _jsx(Dashboard, {})
20
- })
21
- };
22
-
23
- //# sourceMappingURL=dashboard.stories.js.map