@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.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +3 -0
- package/dist/components/slider/slider.d.ts +10 -0
- package/dist/components/slider/slider.js +38 -0
- package/dist/styles.css +1 -1
- package/package.json +4 -4
- package/dist/colors.stories.js +0 -61
- package/dist/components/alert/alert.stories.js +0 -227
- package/dist/components/avatar/avatar.stories.js +0 -267
- package/dist/components/badge/badge.stories.js +0 -802
- package/dist/components/button/button-link.stories.js +0 -127
- package/dist/components/button/button.stories.js +0 -187
- package/dist/components/button/icon-button.stories.js +0 -344
- package/dist/components/button-group/button-group.stories.js +0 -644
- package/dist/components/card/card.stories.js +0 -216
- package/dist/components/checkbox/checkbox.stories.js +0 -566
- package/dist/components/code-block/code-block.stories.js +0 -341
- package/dist/components/combobox/combobox.stories.js +0 -191
- package/dist/components/command/command.stories.js +0 -228
- package/dist/components/confetti/confetti.stories.js +0 -41
- package/dist/components/count-up/count-up.stories.js +0 -568
- package/dist/components/dashboard/components/charts/bar-chart.stories.js +0 -287
- package/dist/components/dashboard/components/charts/line-chart.stories.js +0 -257
- package/dist/components/dashboard/dashboard.stories.js +0 -23
- package/dist/components/date-picker/date-picker.stories.js +0 -349
- package/dist/components/dropdown-input/dropdown-input.stories.js +0 -240
- package/dist/components/dropdown-menu/dropdown-menu.stories.js +0 -462
- package/dist/components/dynamic-item/dynamic-item.stories.js +0 -385
- package/dist/components/empty-state/empty-state.stories.js +0 -74
- package/dist/components/form/form.stories.js +0 -587
- package/dist/components/icon/icon.stories.js +0 -38
- package/dist/components/inline-tips/inline-tips.stories.js +0 -219
- package/dist/components/input/input.stories.js +0 -265
- package/dist/components/interval-selector/interval-selector.stories.js +0 -232
- package/dist/components/item/item.stories.js +0 -239
- package/dist/components/kbd/kbd.stories.js +0 -119
- package/dist/components/label/label.stories.js +0 -105
- package/dist/components/modal/modal.stories.js +0 -566
- package/dist/components/search/search.stories.js +0 -630
- package/dist/components/select/select.stories.js +0 -393
- package/dist/components/sheet/sheet.stories.js +0 -368
- package/dist/components/skeleton/skeleton.stories.js +0 -345
- package/dist/components/table/table.stories.js +0 -302
- package/dist/components/tabs/tabs.stories.js +0 -179
- package/dist/components/textarea/textarea.stories.js +0 -339
- package/dist/components/toast/toast.stories.js +0 -326
- package/dist/components/tooltip/tooltip.stories.js +0 -560
- package/dist/components/typography/code.stories.js +0 -54
- package/dist/components/typography/header.stories.js +0 -34
- package/dist/components/typography/text.stories.js +0 -105
- package/dist/onboarding/sign-in.stories.js +0 -101
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Code } from './code.js';
|
|
3
|
-
import { Text } from './text.js';
|
|
4
|
-
const meta = {
|
|
5
|
-
title: 'Typography/Text'
|
|
6
|
-
};
|
|
7
|
-
export default meta;
|
|
8
|
-
const sizes = [
|
|
9
|
-
'xs',
|
|
10
|
-
'sm',
|
|
11
|
-
'md',
|
|
12
|
-
'lg',
|
|
13
|
-
'xl'
|
|
14
|
-
];
|
|
15
|
-
export const Default = {
|
|
16
|
-
render: ()=>/*#__PURE__*/ _jsx("div", {
|
|
17
|
-
className: "flex flex-col gap-16",
|
|
18
|
-
children: sizes.map((size)=>/*#__PURE__*/ _jsxs("div", {
|
|
19
|
-
className: "grid grid-cols-2 gap-8",
|
|
20
|
-
children: [
|
|
21
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
22
|
-
className: "flex flex-col gap-4",
|
|
23
|
-
children: [
|
|
24
|
-
/*#__PURE__*/ _jsx(Code, {
|
|
25
|
-
variant: "label",
|
|
26
|
-
className: "text-foreground-neutral-subtle",
|
|
27
|
-
children: size
|
|
28
|
-
}),
|
|
29
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
30
|
-
size: size,
|
|
31
|
-
children: "The quick brown fox jumps over the lazy dog"
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
}),
|
|
35
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
36
|
-
className: "flex flex-col gap-4",
|
|
37
|
-
children: [
|
|
38
|
-
/*#__PURE__*/ _jsxs(Code, {
|
|
39
|
-
variant: "label",
|
|
40
|
-
className: "text-foreground-neutral-subtle",
|
|
41
|
-
children: [
|
|
42
|
-
size,
|
|
43
|
-
" - Bold"
|
|
44
|
-
]
|
|
45
|
-
}),
|
|
46
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
47
|
-
size: size,
|
|
48
|
-
bold: true,
|
|
49
|
-
children: "The quick brown fox jumps over the lazy dog"
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
})
|
|
53
|
-
]
|
|
54
|
-
}, size))
|
|
55
|
-
})
|
|
56
|
-
};
|
|
57
|
-
const textParagraph = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
|
|
58
|
-
export const Paragraph = {
|
|
59
|
-
render: ()=>/*#__PURE__*/ _jsx("div", {
|
|
60
|
-
className: "flex flex-col gap-16",
|
|
61
|
-
children: sizes.map((size)=>/*#__PURE__*/ _jsxs("div", {
|
|
62
|
-
className: "grid grid-cols-2 gap-8",
|
|
63
|
-
children: [
|
|
64
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
65
|
-
className: "flex flex-col gap-4",
|
|
66
|
-
children: [
|
|
67
|
-
/*#__PURE__*/ _jsxs(Code, {
|
|
68
|
-
variant: "label",
|
|
69
|
-
className: "text-foreground-neutral-subtle",
|
|
70
|
-
children: [
|
|
71
|
-
size,
|
|
72
|
-
" - Regular"
|
|
73
|
-
]
|
|
74
|
-
}),
|
|
75
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
76
|
-
size: size,
|
|
77
|
-
compact: false,
|
|
78
|
-
children: textParagraph
|
|
79
|
-
})
|
|
80
|
-
]
|
|
81
|
-
}),
|
|
82
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
83
|
-
className: "flex flex-col gap-4",
|
|
84
|
-
children: [
|
|
85
|
-
/*#__PURE__*/ _jsxs(Code, {
|
|
86
|
-
variant: "label",
|
|
87
|
-
className: "text-foreground-neutral-subtle",
|
|
88
|
-
children: [
|
|
89
|
-
size,
|
|
90
|
-
" - Compact"
|
|
91
|
-
]
|
|
92
|
-
}),
|
|
93
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
94
|
-
size: size,
|
|
95
|
-
compact: true,
|
|
96
|
-
children: textParagraph
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}, size))
|
|
102
|
-
})
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
//# sourceMappingURL=text.stories.js.map
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { argosScreenshot } from '@argos-ci/storybook/vitest';
|
|
3
|
-
import { Avatar } from '../components/avatar/index.js';
|
|
4
|
-
import { Button } from '../components/button/index.js';
|
|
5
|
-
import { DotGrid } from '../components/dot-grid/index.js';
|
|
6
|
-
import { Header, Text } from '../components/typography/index.js';
|
|
7
|
-
const meta = {
|
|
8
|
-
title: 'Onboarding/Signin',
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: 'fullscreen'
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export const Default = {
|
|
15
|
-
play: async (ctx)=>{
|
|
16
|
-
await argosScreenshot(ctx, 'example-screenshot');
|
|
17
|
-
},
|
|
18
|
-
render: ()=>{
|
|
19
|
-
return /*#__PURE__*/ _jsxs("div", {
|
|
20
|
-
className: "flex min-h-screen items-center justify-center bg-background-subtle-base",
|
|
21
|
-
children: [
|
|
22
|
-
/*#__PURE__*/ _jsx("div", {
|
|
23
|
-
className: "absolute w-[800px] max-w-[800px] h-[400px] top-0 left-1/2 -translate-x-1/2 translate-y-[-145px]",
|
|
24
|
-
style: {
|
|
25
|
-
maskImage: 'radial-gradient(ellipse 100% 125% at 50% 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%)',
|
|
26
|
-
WebkitMaskImage: 'radial-gradient(ellipse 100% 125% at 50% 0%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%)'
|
|
27
|
-
},
|
|
28
|
-
children: /*#__PURE__*/ _jsx(DotGrid, {
|
|
29
|
-
dotSize: 2,
|
|
30
|
-
gap: 20,
|
|
31
|
-
baseColor: "#e63e00",
|
|
32
|
-
activeColor: "#FF0076",
|
|
33
|
-
proximity: 100,
|
|
34
|
-
shockRadius: 8,
|
|
35
|
-
shockStrength: 100,
|
|
36
|
-
resistance: 500,
|
|
37
|
-
returnDuration: 1.5
|
|
38
|
-
})
|
|
39
|
-
}),
|
|
40
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
41
|
-
className: "relative flex w-full max-w-[384px] flex-col items-center gap-32 px-24 pb-80 pt-24",
|
|
42
|
-
children: [
|
|
43
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
44
|
-
className: "flex flex-col items-center gap-16",
|
|
45
|
-
children: [
|
|
46
|
-
/*#__PURE__*/ _jsx(Avatar, {
|
|
47
|
-
content: "logo",
|
|
48
|
-
size: "xl",
|
|
49
|
-
radius: "rounded",
|
|
50
|
-
logoName: "shipfox"
|
|
51
|
-
}),
|
|
52
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
53
|
-
className: "flex min-w-[128px] flex-col items-center gap-4 text-center",
|
|
54
|
-
children: [
|
|
55
|
-
/*#__PURE__*/ _jsx(Header, {
|
|
56
|
-
variant: "h1",
|
|
57
|
-
className: "text-[28px] font-medium leading-[44px] text-foreground-neutral-base",
|
|
58
|
-
children: "Connect to Shipfox"
|
|
59
|
-
}),
|
|
60
|
-
/*#__PURE__*/ _jsx(Text, {
|
|
61
|
-
size: "sm",
|
|
62
|
-
className: "text-sm font-normal leading-[24px] text-foreground-neutral-subtle",
|
|
63
|
-
children: "Log in to access Shipfox."
|
|
64
|
-
})
|
|
65
|
-
]
|
|
66
|
-
})
|
|
67
|
-
]
|
|
68
|
-
}),
|
|
69
|
-
/*#__PURE__*/ _jsxs("div", {
|
|
70
|
-
className: "flex w-full flex-col gap-20",
|
|
71
|
-
children: [
|
|
72
|
-
/*#__PURE__*/ _jsx(Button, {
|
|
73
|
-
variant: "primary",
|
|
74
|
-
size: "md",
|
|
75
|
-
iconLeft: "google",
|
|
76
|
-
className: "w-full",
|
|
77
|
-
children: "Continue with Google"
|
|
78
|
-
}),
|
|
79
|
-
/*#__PURE__*/ _jsx(Button, {
|
|
80
|
-
variant: "primary",
|
|
81
|
-
size: "md",
|
|
82
|
-
iconLeft: "microsoft",
|
|
83
|
-
className: "w-full",
|
|
84
|
-
children: "Continue with Microsoft"
|
|
85
|
-
}),
|
|
86
|
-
/*#__PURE__*/ _jsx(Button, {
|
|
87
|
-
variant: "transparent",
|
|
88
|
-
size: "md",
|
|
89
|
-
className: "w-full",
|
|
90
|
-
children: "Connect with Enterprise SSO"
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
})
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
//# sourceMappingURL=sign-in.stories.js.map
|