@shipfox/react-ui 0.0.1
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/.storybook/main.ts +18 -0
- package/.storybook/preview.tsx +48 -0
- package/.turbo/turbo-build.log +6 -0
- package/.turbo/turbo-check.log +6 -0
- package/.turbo/turbo-type.log +5 -0
- package/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/dist/colors.stories.conts.d.ts +33 -0
- package/dist/colors.stories.conts.d.ts.map +1 -0
- package/dist/colors.stories.conts.js +166 -0
- package/dist/colors.stories.conts.js.map +1 -0
- package/dist/colors.stories.js +61 -0
- package/dist/colors.stories.js.map +1 -0
- package/dist/components/button.d.ts +13 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +51 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/button.stories.js +174 -0
- package/dist/components/button.stories.js.map +1 -0
- package/dist/components/icon/custom/badge.d.ts +4 -0
- package/dist/components/icon/custom/badge.d.ts.map +1 -0
- package/dist/components/icon/custom/badge.js +20 -0
- package/dist/components/icon/custom/badge.js.map +1 -0
- package/dist/components/icon/custom/check-circle-solid.d.ts +4 -0
- package/dist/components/icon/custom/check-circle-solid.d.ts.map +1 -0
- package/dist/components/icon/custom/check-circle-solid.js +34 -0
- package/dist/components/icon/custom/check-circle-solid.js.map +1 -0
- package/dist/components/icon/custom/circle-dotted-line.d.ts +4 -0
- package/dist/components/icon/custom/circle-dotted-line.d.ts.map +1 -0
- package/dist/components/icon/custom/circle-dotted-line.js +20 -0
- package/dist/components/icon/custom/circle-dotted-line.js.map +1 -0
- package/dist/components/icon/custom/component-fill.d.ts +4 -0
- package/dist/components/icon/custom/component-fill.d.ts.map +1 -0
- package/dist/components/icon/custom/component-fill.js +20 -0
- package/dist/components/icon/custom/component-fill.js.map +1 -0
- package/dist/components/icon/custom/component-line.d.ts +4 -0
- package/dist/components/icon/custom/component-line.d.ts.map +1 -0
- package/dist/components/icon/custom/component-line.js +20 -0
- package/dist/components/icon/custom/component-line.js.map +1 -0
- package/dist/components/icon/custom/ellipse-mini-solid.d.ts +4 -0
- package/dist/components/icon/custom/ellipse-mini-solid.d.ts.map +1 -0
- package/dist/components/icon/custom/ellipse-mini-solid.js +22 -0
- package/dist/components/icon/custom/ellipse-mini-solid.js.map +1 -0
- package/dist/components/icon/custom/index.d.ts +12 -0
- package/dist/components/icon/custom/index.d.ts.map +1 -0
- package/dist/components/icon/custom/index.js +13 -0
- package/dist/components/icon/custom/index.js.map +1 -0
- package/dist/components/icon/custom/info-tooltip-fill.d.ts +4 -0
- package/dist/components/icon/custom/info-tooltip-fill.d.ts.map +1 -0
- package/dist/components/icon/custom/info-tooltip-fill.js +22 -0
- package/dist/components/icon/custom/info-tooltip-fill.js.map +1 -0
- package/dist/components/icon/custom/resize.d.ts +4 -0
- package/dist/components/icon/custom/resize.d.ts.map +1 -0
- package/dist/components/icon/custom/resize.js +20 -0
- package/dist/components/icon/custom/resize.js.map +1 -0
- package/dist/components/icon/custom/spinner.d.ts +4 -0
- package/dist/components/icon/custom/spinner.d.ts.map +1 -0
- package/dist/components/icon/custom/spinner.js +145 -0
- package/dist/components/icon/custom/spinner.js.map +1 -0
- package/dist/components/icon/custom/thunder.d.ts +4 -0
- package/dist/components/icon/custom/thunder.d.ts.map +1 -0
- package/dist/components/icon/custom/thunder.js +20 -0
- package/dist/components/icon/custom/thunder.js.map +1 -0
- package/dist/components/icon/custom/x-circle-solid.d.ts +4 -0
- package/dist/components/icon/custom/x-circle-solid.d.ts.map +1 -0
- package/dist/components/icon/custom/x-circle-solid.js +34 -0
- package/dist/components/icon/custom/x-circle-solid.js.map +1 -0
- package/dist/components/icon/icon.d.ts +27 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +27 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon/icon.stories.js +35 -0
- package/dist/components/icon/icon.stories.js.map +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/index.js +3 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/theme-provider.d.ts +10 -0
- package/dist/components/theme-provider.d.ts.map +1 -0
- package/dist/components/theme-provider.js +32 -0
- package/dist/components/theme-provider.js.map +1 -0
- package/dist/components/typography/code.d.ts +11 -0
- package/dist/components/typography/code.d.ts.map +1 -0
- package/dist/components/typography/code.js +28 -0
- package/dist/components/typography/code.js.map +1 -0
- package/dist/components/typography/code.stories.js +54 -0
- package/dist/components/typography/code.stories.js.map +1 -0
- package/dist/components/typography/header.d.ts +10 -0
- package/dist/components/typography/header.d.ts.map +1 -0
- package/dist/components/typography/header.js +34 -0
- package/dist/components/typography/header.js.map +1 -0
- package/dist/components/typography/header.stories.js +34 -0
- package/dist/components/typography/header.stories.js.map +1 -0
- package/dist/components/typography/index.d.ts +4 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +5 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.d.ts.map +1 -0
- package/dist/components/typography/text.js +32 -0
- package/dist/components/typography/text.js.map +1 -0
- package/dist/components/typography/text.stories.js +105 -0
- package/dist/components/typography/text.stories.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useCopy.d.ts +1 -0
- package/dist/hooks/useCopy.d.ts.map +1 -0
- package/dist/hooks/useCopy.js +2 -0
- package/dist/hooks/useCopy.js.map +1 -0
- package/dist/hooks/useCopyToClipboard.d.ts +10 -0
- package/dist/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/hooks/useCopyToClipboard.js +16 -0
- package/dist/hooks/useCopyToClipboard.js.map +1 -0
- package/dist/hooks/useTheme.d.ts +2 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/hooks/useTheme.js +9 -0
- package/dist/hooks/useTheme.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/state/theme.d.ts +7 -0
- package/dist/state/theme.d.ts.map +1 -0
- package/dist/state/theme.js +8 -0
- package/dist/state/theme.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +6 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +7 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/date.d.ts +16 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +79 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/format/chart.d.ts +3 -0
- package/dist/utils/format/chart.d.ts.map +1 -0
- package/dist/utils/format/chart.js +14 -0
- package/dist/utils/format/chart.js.map +1 -0
- package/dist/utils/format/date.d.ts +10 -0
- package/dist/utils/format/date.d.ts.map +1 -0
- package/dist/utils/format/date.js +57 -0
- package/dist/utils/format/date.js.map +1 -0
- package/dist/utils/format/duration.d.ts +9 -0
- package/dist/utils/format/duration.d.ts.map +1 -0
- package/dist/utils/format/duration.js +71 -0
- package/dist/utils/format/duration.js.map +1 -0
- package/dist/utils/format/index.d.ts +5 -0
- package/dist/utils/format/index.d.ts.map +1 -0
- package/dist/utils/format/index.js +6 -0
- package/dist/utils/format/index.js.map +1 -0
- package/dist/utils/format/number.d.ts +7 -0
- package/dist/utils/format/number.d.ts.map +1 -0
- package/dist/utils/format/number.js +20 -0
- package/dist/utils/format/number.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -0
- package/index.css +778 -0
- package/package.json +74 -0
- package/src/colors.stories.conts.ts +164 -0
- package/src/colors.stories.tsx +66 -0
- package/src/components/button.stories.tsx +126 -0
- package/src/components/button.tsx +63 -0
- package/src/components/icon/custom/badge.tsx +17 -0
- package/src/components/icon/custom/check-circle-solid.tsx +24 -0
- package/src/components/icon/custom/circle-dotted-line.tsx +17 -0
- package/src/components/icon/custom/component-fill.tsx +17 -0
- package/src/components/icon/custom/component-line.tsx +17 -0
- package/src/components/icon/custom/ellipse-mini-solid.tsx +17 -0
- package/src/components/icon/custom/index.ts +11 -0
- package/src/components/icon/custom/info-tooltip-fill.tsx +21 -0
- package/src/components/icon/custom/resize.tsx +17 -0
- package/src/components/icon/custom/spinner.tsx +98 -0
- package/src/components/icon/custom/thunder.tsx +17 -0
- package/src/components/icon/custom/x-circle-solid.tsx +24 -0
- package/src/components/icon/icon.stories.tsx +29 -0
- package/src/components/icon/icon.tsx +42 -0
- package/src/components/icon/index.ts +1 -0
- package/src/components/index.ts +4 -0
- package/src/components/renovate.json +23 -0
- package/src/components/theme-provider.tsx +50 -0
- package/src/components/typography/code.stories.tsx +36 -0
- package/src/components/typography/code.tsx +38 -0
- package/src/components/typography/header.stories.tsx +27 -0
- package/src/components/typography/header.tsx +41 -0
- package/src/components/typography/index.ts +3 -0
- package/src/components/typography/text.stories.tsx +67 -0
- package/src/components/typography/text.tsx +42 -0
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useCopy.ts +0 -0
- package/src/hooks/useCopyToClipboard.ts +20 -0
- package/src/hooks/useTheme.ts +10 -0
- package/src/index.ts +3 -0
- package/src/state/theme.ts +15 -0
- package/src/utils/clipboard.ts +4 -0
- package/src/utils/cn.ts +6 -0
- package/src/utils/date.test.ts +119 -0
- package/src/utils/date.ts +99 -0
- package/src/utils/format/chart.ts +16 -0
- package/src/utils/format/date.test.ts +65 -0
- package/src/utils/format/date.ts +75 -0
- package/src/utils/format/duration.test.ts +58 -0
- package/src/utils/format/duration.ts +82 -0
- package/src/utils/format/index.ts +4 -0
- package/src/utils/format/number.test.ts +38 -0
- package/src/utils/format/number.ts +33 -0
- package/src/utils/index.ts +4 -0
- package/test/global.ts +3 -0
- package/test/setup.ts +9 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.json +11 -0
- package/tsconfig.test.json +12 -0
- package/vercel.json +8 -0
- package/vitest.config.ts +17 -0
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shipfox/react-ui",
|
|
3
|
+
"license": "MIT",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@radix-ui/react-accordion": "^1.2.12",
|
|
11
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
12
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
|
13
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
14
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
15
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
16
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
17
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
18
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
19
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
20
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
21
|
+
"@radix-ui/react-slider": "^1.3.6",
|
|
22
|
+
"@radix-ui/react-slot": "^1.2.3",
|
|
23
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
24
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
25
|
+
"@remixicon/react": "^4.6.0",
|
|
26
|
+
"class-variance-authority": "^0.7.1",
|
|
27
|
+
"clsx": "^2.1.1",
|
|
28
|
+
"lucide-react": "^0.541.0",
|
|
29
|
+
"react-day-picker": "^9.5.1",
|
|
30
|
+
"recharts": "^3.1.0",
|
|
31
|
+
"sonner": "^2.0.7",
|
|
32
|
+
"tailwind-merge": "^3.2.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@tanstack/react-table": "^8.19.3",
|
|
36
|
+
"@tanstack/react-virtual": "^3.13.12",
|
|
37
|
+
"date-fns": "^4.1.0",
|
|
38
|
+
"react": "^19.1.1",
|
|
39
|
+
"react-dom": "^19.1.1",
|
|
40
|
+
"react-hook-form": "^7.52.1"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@storybook/builder-vite": "^9.1.8",
|
|
44
|
+
"@storybook/react": "^9.1.8",
|
|
45
|
+
"@storybook/react-vite": "^9.1.8",
|
|
46
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
47
|
+
"@tanstack/react-table": "^8.17.3",
|
|
48
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
49
|
+
"@testing-library/react": "^16.3.0",
|
|
50
|
+
"@testing-library/user-event": "^14.5.2",
|
|
51
|
+
"@types/react": "^19.1.11",
|
|
52
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
53
|
+
"date-fns": "^4.1.0",
|
|
54
|
+
"jsdom": "^26.1.0",
|
|
55
|
+
"storybook": "^9.1.8",
|
|
56
|
+
"storybook-addon-pseudo-states": "^9.1.8",
|
|
57
|
+
"tailwindcss": "^4.1.13",
|
|
58
|
+
"tw-animate-css": "^1.4.0",
|
|
59
|
+
"@shipfox/biome": "1.2.1",
|
|
60
|
+
"@shipfox/swc": "1.2.0",
|
|
61
|
+
"@shipfox/ts-config": "1.3.4",
|
|
62
|
+
"@shipfox/typescript": "1.1.1",
|
|
63
|
+
"@shipfox/vite": "1.2.0",
|
|
64
|
+
"@shipfox/vitest": "1.1.1"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "swc",
|
|
68
|
+
"check": "biome",
|
|
69
|
+
"storybook": "storybook dev",
|
|
70
|
+
"storybook:build": "storybook build -o storybook-static",
|
|
71
|
+
"test": "vitest-run",
|
|
72
|
+
"type": "tsc-emit"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export const primitiveColors = {
|
|
2
|
+
neutral: {
|
|
3
|
+
variants: [
|
|
4
|
+
'bg-neutral-0',
|
|
5
|
+
'bg-neutral-50',
|
|
6
|
+
'bg-neutral-100',
|
|
7
|
+
'bg-neutral-200',
|
|
8
|
+
'bg-neutral-300',
|
|
9
|
+
'bg-neutral-400',
|
|
10
|
+
'bg-neutral-500',
|
|
11
|
+
'bg-neutral-600',
|
|
12
|
+
'bg-neutral-700',
|
|
13
|
+
'bg-neutral-800',
|
|
14
|
+
'bg-neutral-900',
|
|
15
|
+
'bg-neutral-950',
|
|
16
|
+
'bg-neutral-1000',
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
purple: {
|
|
20
|
+
variants: [
|
|
21
|
+
'bg-purple-50',
|
|
22
|
+
'bg-purple-100',
|
|
23
|
+
'bg-purple-200',
|
|
24
|
+
'bg-purple-300',
|
|
25
|
+
'bg-purple-400',
|
|
26
|
+
'bg-purple-500',
|
|
27
|
+
'bg-purple-600',
|
|
28
|
+
'bg-purple-700',
|
|
29
|
+
'bg-purple-800',
|
|
30
|
+
'bg-purple-900',
|
|
31
|
+
'bg-purple-950',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
blue: {
|
|
35
|
+
variants: [
|
|
36
|
+
'bg-blue-50',
|
|
37
|
+
'bg-blue-100',
|
|
38
|
+
'bg-blue-200',
|
|
39
|
+
'bg-blue-300',
|
|
40
|
+
'bg-blue-400',
|
|
41
|
+
'bg-blue-500',
|
|
42
|
+
'bg-blue-600',
|
|
43
|
+
'bg-blue-700',
|
|
44
|
+
'bg-blue-800',
|
|
45
|
+
'bg-blue-900',
|
|
46
|
+
'bg-blue-950',
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
green: {
|
|
50
|
+
variants: [
|
|
51
|
+
'bg-green-50',
|
|
52
|
+
'bg-green-100',
|
|
53
|
+
'bg-green-200',
|
|
54
|
+
'bg-green-300',
|
|
55
|
+
'bg-green-400',
|
|
56
|
+
'bg-green-500',
|
|
57
|
+
'bg-green-600',
|
|
58
|
+
'bg-green-700',
|
|
59
|
+
'bg-green-800',
|
|
60
|
+
'bg-green-900',
|
|
61
|
+
'bg-green-950',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
primary: {
|
|
65
|
+
variants: [
|
|
66
|
+
'bg-primary-50',
|
|
67
|
+
'bg-primary-100',
|
|
68
|
+
'bg-primary-200',
|
|
69
|
+
'bg-primary-300',
|
|
70
|
+
'bg-primary-400',
|
|
71
|
+
'bg-primary-500',
|
|
72
|
+
'bg-primary-600',
|
|
73
|
+
'bg-primary-700',
|
|
74
|
+
'bg-primary-800',
|
|
75
|
+
'bg-primary-900',
|
|
76
|
+
'bg-primary-950',
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
red: {
|
|
80
|
+
variants: [
|
|
81
|
+
'bg-red-50',
|
|
82
|
+
'bg-red-100',
|
|
83
|
+
'bg-red-200',
|
|
84
|
+
'bg-red-300',
|
|
85
|
+
'bg-red-400',
|
|
86
|
+
'bg-red-500',
|
|
87
|
+
'bg-red-600',
|
|
88
|
+
'bg-red-700',
|
|
89
|
+
'bg-red-800',
|
|
90
|
+
'bg-red-900',
|
|
91
|
+
'bg-red-950',
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
orange: {
|
|
95
|
+
variants: [
|
|
96
|
+
'bg-orange-50',
|
|
97
|
+
'bg-orange-100',
|
|
98
|
+
'bg-orange-200',
|
|
99
|
+
'bg-orange-300',
|
|
100
|
+
'bg-orange-400',
|
|
101
|
+
'bg-orange-500',
|
|
102
|
+
'bg-orange-600',
|
|
103
|
+
'bg-orange-700',
|
|
104
|
+
'bg-orange-800',
|
|
105
|
+
'bg-orange-900',
|
|
106
|
+
'bg-orange-950',
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
accent: {
|
|
110
|
+
variants: [
|
|
111
|
+
'bg-accent-purple',
|
|
112
|
+
'bg-accent-indigo',
|
|
113
|
+
'bg-accent-mint',
|
|
114
|
+
'bg-accent-green',
|
|
115
|
+
'bg-accent-teal',
|
|
116
|
+
'bg-accent-brown',
|
|
117
|
+
'bg-accent-blue',
|
|
118
|
+
'bg-accent-orange',
|
|
119
|
+
'bg-accent-yellow',
|
|
120
|
+
'bg-accent-pink',
|
|
121
|
+
'bg-accent-gray',
|
|
122
|
+
'bg-accent-cyan',
|
|
123
|
+
'bg-accent-red',
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
'alpha-white': {
|
|
127
|
+
variants: [
|
|
128
|
+
'bg-alpha-white-0',
|
|
129
|
+
'bg-alpha-white-2',
|
|
130
|
+
'bg-alpha-white-4',
|
|
131
|
+
'bg-alpha-white-6',
|
|
132
|
+
'bg-alpha-white-8',
|
|
133
|
+
'bg-alpha-white-10',
|
|
134
|
+
'bg-alpha-white-12',
|
|
135
|
+
'bg-alpha-white-16',
|
|
136
|
+
'bg-alpha-white-24',
|
|
137
|
+
'bg-alpha-white-40',
|
|
138
|
+
'bg-alpha-white-56',
|
|
139
|
+
'bg-alpha-white-64',
|
|
140
|
+
'bg-alpha-white-72',
|
|
141
|
+
'bg-alpha-white-80',
|
|
142
|
+
'bg-alpha-white-88',
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
'alpha-black': {
|
|
146
|
+
variants: [
|
|
147
|
+
'bg-alpha-black-0',
|
|
148
|
+
'bg-alpha-black-2',
|
|
149
|
+
'bg-alpha-black-4',
|
|
150
|
+
'bg-alpha-black-6',
|
|
151
|
+
'bg-alpha-black-8',
|
|
152
|
+
'bg-alpha-black-10',
|
|
153
|
+
'bg-alpha-black-12',
|
|
154
|
+
'bg-alpha-black-16',
|
|
155
|
+
'bg-alpha-black-24',
|
|
156
|
+
'bg-alpha-black-40',
|
|
157
|
+
'bg-alpha-black-56',
|
|
158
|
+
'bg-alpha-black-64',
|
|
159
|
+
'bg-alpha-black-72',
|
|
160
|
+
'bg-alpha-black-80',
|
|
161
|
+
'bg-alpha-black-88',
|
|
162
|
+
],
|
|
163
|
+
},
|
|
164
|
+
} as const;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
+
import {Code, Header} from 'components/typography';
|
|
3
|
+
import {cn} from 'utils/cn';
|
|
4
|
+
import {primitiveColors} from './colors.stories.conts';
|
|
5
|
+
|
|
6
|
+
const meta: Meta = {
|
|
7
|
+
title: 'Assets/Colors',
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
|
|
11
|
+
type Story = StoryObj;
|
|
12
|
+
|
|
13
|
+
interface ColorItemProps {
|
|
14
|
+
color: string;
|
|
15
|
+
variant: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function ColorItem({variant}: ColorItemProps) {
|
|
19
|
+
const value = variant.split('-').pop();
|
|
20
|
+
return (
|
|
21
|
+
<div className="flex flex-col items-center gap-1">
|
|
22
|
+
<div className={cn('h-24 w-full rounded-6 border border-border', variant)} />
|
|
23
|
+
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
24
|
+
{value}
|
|
25
|
+
</Code>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface ColorPaletteProps {
|
|
31
|
+
title: string;
|
|
32
|
+
rootKey: string;
|
|
33
|
+
variants: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function ColorPalette({title, rootKey, variants}: ColorPaletteProps) {
|
|
37
|
+
return (
|
|
38
|
+
<div className="grid grid-cols-16 gap-8">
|
|
39
|
+
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
40
|
+
{title}
|
|
41
|
+
</Code>
|
|
42
|
+
{variants.map((variant) => (
|
|
43
|
+
<ColorItem key={variant} variant={variant} color={rootKey} />
|
|
44
|
+
))}
|
|
45
|
+
</div>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const Palette: Story = {
|
|
50
|
+
render: () => (
|
|
51
|
+
<div className="flex flex-col gap-16">
|
|
52
|
+
<section className="flex flex-col gap-8">
|
|
53
|
+
<Header variant="h2">Primitive Colors</Header>
|
|
54
|
+
|
|
55
|
+
{Object.entries(primitiveColors).map(([color, variants]) => (
|
|
56
|
+
<ColorPalette
|
|
57
|
+
key={color}
|
|
58
|
+
title={color.replace('-', ' ')}
|
|
59
|
+
rootKey={color}
|
|
60
|
+
variants={variants.variants as readonly string[]}
|
|
61
|
+
/>
|
|
62
|
+
))}
|
|
63
|
+
</section>
|
|
64
|
+
</div>
|
|
65
|
+
),
|
|
66
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type {Meta, StoryObj} from '@storybook/react';
|
|
2
|
+
import {Code} from 'components/typography';
|
|
3
|
+
import {Button} from './button';
|
|
4
|
+
|
|
5
|
+
const variantOptions = [
|
|
6
|
+
'primary',
|
|
7
|
+
'secondary',
|
|
8
|
+
'danger',
|
|
9
|
+
'transparent',
|
|
10
|
+
'transparentMuted',
|
|
11
|
+
] as const;
|
|
12
|
+
const sizeOptions = ['2xs', 'xs', 'sm', 'md', 'lg', 'xl'] as const;
|
|
13
|
+
|
|
14
|
+
const meta = {
|
|
15
|
+
title: 'Components/Button',
|
|
16
|
+
component: Button,
|
|
17
|
+
tags: ['autodocs'],
|
|
18
|
+
argTypes: {
|
|
19
|
+
variant: {
|
|
20
|
+
control: 'select',
|
|
21
|
+
options: variantOptions,
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
control: 'select',
|
|
25
|
+
options: sizeOptions,
|
|
26
|
+
},
|
|
27
|
+
asChild: {control: 'boolean'},
|
|
28
|
+
},
|
|
29
|
+
args: {
|
|
30
|
+
children: 'Click me',
|
|
31
|
+
variant: 'primary',
|
|
32
|
+
size: 'md',
|
|
33
|
+
},
|
|
34
|
+
} satisfies Meta<typeof Button>;
|
|
35
|
+
|
|
36
|
+
export default meta;
|
|
37
|
+
type Story = StoryObj<typeof meta>;
|
|
38
|
+
|
|
39
|
+
export const Default: Story = {};
|
|
40
|
+
|
|
41
|
+
export const Variants: Story = {
|
|
42
|
+
render: (args) => (
|
|
43
|
+
<div className="flex flex-col gap-32">
|
|
44
|
+
{sizeOptions.map((size) => (
|
|
45
|
+
<table key={size} className="w-fit border-separate border-spacing-x-32 border-spacing-y-16">
|
|
46
|
+
<thead>
|
|
47
|
+
<tr>
|
|
48
|
+
<th>{size}</th>
|
|
49
|
+
<th>Default</th>
|
|
50
|
+
<th>Hover</th>
|
|
51
|
+
<th>Active</th>
|
|
52
|
+
<th>Focus</th>
|
|
53
|
+
<th>Disabled</th>
|
|
54
|
+
</tr>
|
|
55
|
+
</thead>
|
|
56
|
+
<tbody>
|
|
57
|
+
{variantOptions.map((variant) => (
|
|
58
|
+
<tr key={variant}>
|
|
59
|
+
<td>
|
|
60
|
+
<Code variant="label" className="text-foreground-neutral-subtle">
|
|
61
|
+
{variant}
|
|
62
|
+
</Code>
|
|
63
|
+
</td>
|
|
64
|
+
<td>
|
|
65
|
+
<Button {...args} variant={variant} size={size}>
|
|
66
|
+
Click me
|
|
67
|
+
</Button>
|
|
68
|
+
</td>
|
|
69
|
+
<td>
|
|
70
|
+
<Button {...args} variant={variant} className="hover" size={size}>
|
|
71
|
+
Click me
|
|
72
|
+
</Button>
|
|
73
|
+
</td>
|
|
74
|
+
<td>
|
|
75
|
+
<Button {...args} variant={variant} className="active" size={size}>
|
|
76
|
+
Click me
|
|
77
|
+
</Button>
|
|
78
|
+
</td>
|
|
79
|
+
<td>
|
|
80
|
+
<Button {...args} variant={variant} className="focus" size={size}>
|
|
81
|
+
Click me
|
|
82
|
+
</Button>
|
|
83
|
+
</td>
|
|
84
|
+
<td>
|
|
85
|
+
<Button {...args} variant={variant} disabled size={size}>
|
|
86
|
+
Click me
|
|
87
|
+
</Button>
|
|
88
|
+
</td>
|
|
89
|
+
</tr>
|
|
90
|
+
))}
|
|
91
|
+
</tbody>
|
|
92
|
+
</table>
|
|
93
|
+
))}
|
|
94
|
+
</div>
|
|
95
|
+
),
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
Variants.parameters = {
|
|
99
|
+
pseudo: {
|
|
100
|
+
hover: '.hover',
|
|
101
|
+
active: '.active',
|
|
102
|
+
focusVisible: '.focus',
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export const Icons: Story = {
|
|
107
|
+
render: (args) => (
|
|
108
|
+
<div className="flex flex-col gap-16">
|
|
109
|
+
<div>
|
|
110
|
+
<Button {...args} iconLeft="google">
|
|
111
|
+
Click me
|
|
112
|
+
</Button>
|
|
113
|
+
</div>
|
|
114
|
+
<div>
|
|
115
|
+
<Button {...args} iconRight="microsoft">
|
|
116
|
+
Click me
|
|
117
|
+
</Button>
|
|
118
|
+
</div>
|
|
119
|
+
<div>
|
|
120
|
+
<Button {...args} iconLeft="google" iconRight="microsoft">
|
|
121
|
+
Click me
|
|
122
|
+
</Button>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
),
|
|
126
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {Slot} from '@radix-ui/react-slot';
|
|
2
|
+
import {cva, type VariantProps} from 'class-variance-authority';
|
|
3
|
+
import type {ComponentProps} from 'react';
|
|
4
|
+
import {cn} from 'utils/cn';
|
|
5
|
+
import {Icon, type IconName} from './icon/icon';
|
|
6
|
+
|
|
7
|
+
export const buttonVariants = cva(
|
|
8
|
+
'rounded-6 inline-flex items-center justify-center whitespace-nowrap transition-colors disabled:pointer-events-none shrink-0 outline-none',
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
primary:
|
|
13
|
+
'bg-background-button-inverted-default text-foreground-contrast-primary shadow-button-inverted hover:bg-background-button-inverted-hover active:bg-background-button-inverted-pressed focus-visible:shadow-button-inverted-focus disabled:bg-background-neutral-disabled disabled:text-foreground-neutral-disabled disabled:shadow-none',
|
|
14
|
+
secondary:
|
|
15
|
+
'bg-background-button-neutral-default text-foreground-neutral-base shadow-button-neutral hover:bg-background-button-neutral-hover active:bg-background-button-neutral-pressed disabled:bg-background-neutral-disabled focus-visible:shadow-button-neutral-focus disabled:text-foreground-neutral-disabled disabled:shadow-none',
|
|
16
|
+
danger:
|
|
17
|
+
'bg-background-button-danger-default text-foreground-neutral-on-color shadow-button-danger hover:bg-background-button-danger-hover active:bg-background-button-danger-pressed focus-visible:shadow-button-danger-focus disabled:bg-background-neutral-disabled disabled:text-foreground-neutral-disabled disabled:shadow-none',
|
|
18
|
+
transparent:
|
|
19
|
+
'bg-background-button-transparent-default text-foreground-neutral-base hover:bg-background-button-transparent-hover active:bg-background-button-transparent-pressed focus-visible:shadow-button-neutral-focus disabled:text-foreground-neutral-disabled',
|
|
20
|
+
transparentMuted:
|
|
21
|
+
'bg-background-button-transparent-default text-foreground-neutral-muted hover:bg-background-button-transparent-hover active:bg-background-button-transparent-pressed focus-visible:shadow-button-neutral-focus disabled:text-foreground-neutral-disabled',
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
'2xs': 'px-6 text-xs gap-4',
|
|
25
|
+
xs: 'px-6 py-2 text-xs gap-4',
|
|
26
|
+
sm: 'px-8 py-4 text-sm gap-6',
|
|
27
|
+
md: 'px-10 py-6 text-md gap-8',
|
|
28
|
+
lg: 'px-12 py-8 text-lg gap-8',
|
|
29
|
+
xl: 'px-12 py-10 text-xl gap-10',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
defaultVariants: {
|
|
33
|
+
variant: 'primary',
|
|
34
|
+
size: 'md',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
export function Button({
|
|
40
|
+
className,
|
|
41
|
+
variant,
|
|
42
|
+
size,
|
|
43
|
+
asChild = false,
|
|
44
|
+
children,
|
|
45
|
+
iconLeft,
|
|
46
|
+
iconRight,
|
|
47
|
+
...props
|
|
48
|
+
}: ComponentProps<'button'> &
|
|
49
|
+
VariantProps<typeof buttonVariants> & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
iconLeft?: IconName;
|
|
52
|
+
iconRight?: IconName;
|
|
53
|
+
}) {
|
|
54
|
+
const Comp = asChild ? Slot : 'button';
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<Comp data-slot="button" className={cn(buttonVariants({variant, size, className}))} {...props}>
|
|
58
|
+
{iconLeft && <Icon name={iconLeft} />}
|
|
59
|
+
{children}
|
|
60
|
+
{iconRight && <Icon name={iconRight} />}
|
|
61
|
+
</Comp>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function BadgeIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="18"
|
|
8
|
+
height="18"
|
|
9
|
+
viewBox="0 0 18 18"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Badge</title>
|
|
14
|
+
<path d="M17.533 9.00013C17.533 7.83 16.9271 6.7452 15.9703 6.11266C16.1996 4.9884 15.8604 3.79266 15.0338 2.966C14.2071 2.13933 13.0103 1.80013 11.8871 2.02946C11.2535 1.07266 10.1698 0.466797 8.99964 0.466797C7.82951 0.466797 6.74471 1.07266 6.11218 2.02946C4.98471 1.79693 3.79218 2.13933 2.96551 2.966C2.13778 3.79373 1.79964 4.9884 2.02898 6.11266C1.07218 6.7452 0.466309 7.82893 0.466309 9.00013C0.466309 10.1713 1.07218 11.254 2.02898 11.8876C1.79964 13.0119 2.13778 14.2065 2.96551 15.0343C3.79218 15.862 4.98684 16.1991 6.11218 15.9708C6.74471 16.9276 7.82844 17.5335 8.99964 17.5335C10.1708 17.5335 11.2535 16.9276 11.8871 15.9708C13.0082 16.2001 14.206 15.8609 15.0338 15.0343C15.8615 14.2076 16.1996 13.0119 15.9703 11.8876C16.9271 11.2551 17.533 10.1703 17.533 9.00013ZM13.0988 6.55533L8.56551 12.422C8.42044 12.6097 8.19964 12.7239 7.96284 12.7324C7.95218 12.7324 7.94258 12.7324 7.93298 12.7324C7.70684 12.7324 7.49031 12.6364 7.33778 12.4679L4.93778 9.8012C4.64231 9.47266 4.66898 8.96706 4.99751 8.67053C5.32711 8.37613 5.83164 8.40173 6.12818 8.73026L7.88604 10.6844L11.8338 5.57613C12.1036 5.22626 12.6071 5.16226 12.9559 5.43213C13.3058 5.702 13.3698 6.2044 13.0999 6.55426L13.0988 6.55533Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function CheckCircleSolidIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="19"
|
|
8
|
+
height="19"
|
|
9
|
+
viewBox="0 0 19 19"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Check Circle Solid</title>
|
|
14
|
+
<g clipPath="url(#clip0_6552_160761)">
|
|
15
|
+
<path d="M9.19984 0.664062C4.49477 0.664062 0.666504 4.49233 0.666504 9.1974C0.666504 13.9025 4.49477 17.7307 9.19984 17.7307C13.9049 17.7307 17.7332 13.9025 17.7332 9.1974C17.7332 4.49233 13.9049 0.664062 9.19984 0.664062ZM13.299 6.7526L8.7657 12.6193C8.62064 12.807 8.39984 12.9211 8.16304 12.9297C8.15237 12.9297 8.14277 12.9297 8.13317 12.9297C7.90704 12.9297 7.6905 12.8337 7.53797 12.6651L5.13797 9.99846C4.8425 9.66993 4.86917 9.16433 5.1977 8.86779C5.5273 8.5734 6.03077 8.599 6.32837 8.92753L8.08624 10.8817L12.034 5.7734C12.3038 5.42353 12.8073 5.35953 13.1561 5.6294C13.506 5.89926 13.57 6.40166 13.3001 6.75153L13.299 6.7526Z" />
|
|
16
|
+
</g>
|
|
17
|
+
<defs>
|
|
18
|
+
<clipPath id="clip0_6552_160761">
|
|
19
|
+
<rect width="18" height="18" fill="white" transform="translate(0.200195 0.199219)" />
|
|
20
|
+
</clipPath>
|
|
21
|
+
</defs>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function CircleDottedLineIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Circle Dotted Line</title>
|
|
14
|
+
<path d="M7.17235 18.3086C7.46415 17.8702 8.05551 17.7513 8.49369 18.043C9.2707 18.5608 10.1526 18.9325 11.0991 19.117C11.616 19.2177 11.9539 19.7187 11.8533 20.236C11.7526 20.7531 11.2519 21.0906 10.7352 20.9901C9.53488 20.7561 8.41811 20.2857 7.43693 19.6318C6.99881 19.3397 6.88057 18.7472 7.17235 18.3086ZM16.5055 18.043C16.9438 17.7509 17.5358 17.87 17.8277 18.3086C18.1195 18.7472 18.0006 19.3398 17.5623 19.6318C16.5812 20.2856 15.465 20.7561 14.2648 20.9901C13.7481 21.0907 13.2474 20.7531 13.1467 20.236C13.0461 19.7187 13.384 19.2177 13.9009 19.117C14.8473 18.9325 15.7286 18.5607 16.5055 18.043ZM4.27439 12.6194C4.79159 12.5204 5.29128 12.8604 5.39013 13.3781C5.57468 14.3443 5.95069 15.2417 6.4787 16.0309C6.77163 16.4687 6.65463 17.0617 6.21723 17.3549C5.7797 17.6482 5.18731 17.5304 4.89433 17.0924C4.22698 16.0949 3.75068 14.9592 3.51712 13.7361C3.41829 13.2185 3.75732 12.7184 4.27439 12.6194ZM19.6099 13.3781C19.7087 12.8604 20.2084 12.5204 20.7256 12.6194C21.2426 12.7184 21.5817 13.2185 21.4829 13.7361C21.2493 14.9591 20.773 16.0949 20.1057 17.0924C19.8127 17.5304 19.2203 17.6482 18.7828 17.3549C18.3453 17.0617 18.2283 16.4688 18.5213 16.0309C19.0493 15.2417 19.4253 14.3443 19.6099 13.3781ZM4.89433 6.92474C5.18738 6.4871 5.77981 6.36987 6.21723 6.66304C6.65462 6.95631 6.77164 7.54924 6.4787 7.9871C5.95069 8.77632 5.57467 9.67363 5.39013 10.6399C5.29128 11.1575 4.79159 11.4975 4.27439 11.3986C3.75731 11.2996 3.41829 10.7995 3.51712 10.2819C3.75069 9.05872 4.2269 7.92235 4.89433 6.92474ZM18.7828 6.66304C19.2202 6.36987 19.8126 6.48706 20.1057 6.92474C20.7731 7.92235 21.2493 9.05871 21.4829 10.2819C21.5817 10.7994 21.2426 11.2995 20.7256 11.3986C20.2084 11.4975 19.7087 11.1575 19.6099 10.6399C19.4253 9.67364 19.0493 8.77632 18.5213 7.9871C18.2284 7.54922 18.3453 6.95629 18.7828 6.66304ZM10.7352 3.02556C11.252 2.92503 11.7527 3.26243 11.8533 3.77961C11.9539 4.29692 11.616 4.79792 11.0991 4.89866C10.1526 5.08317 9.27069 5.4541 8.49369 5.97188C8.05553 6.26382 7.46424 6.14542 7.17235 5.70707C6.88059 5.26849 6.99888 4.67594 7.43693 4.38379C8.41811 3.72993 9.53488 3.25952 10.7352 3.02556ZM13.1467 3.77961C13.2474 3.2624 13.748 2.92494 14.2648 3.02556C15.4651 3.25951 16.5811 3.72997 17.5623 4.38379C18.0006 4.67587 18.1195 5.26839 17.8277 5.70707C17.5358 6.14551 16.9437 6.2639 16.5055 5.97188C15.7287 5.45425 14.8472 5.08315 13.9009 4.89866C13.384 4.79792 13.0461 4.29692 13.1467 3.77961Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function ComponentFillIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Component Fill</title>
|
|
14
|
+
<path d="M16.6277 17.1584L13.0159 20.7702C12.8791 20.9071 12.6989 20.9894 12.5151 20.999C12.3313 21.0087 12.1588 20.945 12.0357 20.8218L8.32124 17.1074L12.4489 12.9797L16.6277 17.1584ZM11.5203 12.0511L7.39263 16.1788L3.67817 12.4643C3.55503 12.3412 3.49129 12.1687 3.50096 11.9849C3.51064 11.8011 3.59294 11.6209 3.72976 11.4841L7.34155 7.87231L11.5203 12.0511ZM16.6788 6.89263L12.5521 11.0193L8.37334 6.84052L11.9841 3.22976C12.1209 3.09294 12.3011 3.01064 12.4849 3.00096C12.6687 2.99129 12.8412 3.05503 12.9643 3.17817L16.6788 6.89263ZM21.3218 11.5357C21.445 11.6588 21.5087 11.8313 21.499 12.0151C21.4894 12.1989 21.4071 12.3791 21.2702 12.5159L17.6595 16.1267L13.4807 11.9479L17.6074 7.82124L21.3218 11.5357Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function ComponentLineIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Component Line</title>
|
|
14
|
+
<path d="M20.7217 12.1353C20.8449 12.2584 20.9086 12.4309 20.8989 12.6147C20.8893 12.7985 20.807 12.9787 20.6701 13.1155L12.4158 21.3698C12.279 21.5067 12.0988 21.589 11.915 21.5986C11.7312 21.6083 11.5587 21.5446 11.4356 21.4214L3.07807 13.0639C2.95493 12.9408 2.89119 12.7683 2.90086 12.5845C2.91054 12.4007 2.99284 12.2205 3.12966 12.0837L11.384 3.82937C11.5208 3.69255 11.701 3.61024 11.8848 3.60057C12.0686 3.59089 12.2411 3.65464 12.3642 3.77778L20.7217 12.1353ZM10.9197 12.6512L7.66955 9.40105L4.57417 12.4964L7.82432 15.7466L10.9197 12.6512ZM15.0985 16.83L11.8483 13.5798L8.75293 16.6752L12.0031 19.9253L15.0985 16.83ZM15.0469 8.52403L11.7967 5.27388L8.70134 8.36926L11.9515 11.6194L15.0469 8.52403ZM19.2256 12.7028L15.9755 9.45264L12.8801 12.548L16.1303 15.7982L19.2256 12.7028Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function EllipseMiniSolidIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Ellipse Mini Solid</title>
|
|
14
|
+
<circle cx="12.2" cy="12.2" r="3.2" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './badge';
|
|
2
|
+
export * from './check-circle-solid';
|
|
3
|
+
export * from './circle-dotted-line';
|
|
4
|
+
export * from './component-fill';
|
|
5
|
+
export * from './component-line';
|
|
6
|
+
export * from './ellipse-mini-solid';
|
|
7
|
+
export * from './info-tooltip-fill';
|
|
8
|
+
export * from './resize';
|
|
9
|
+
export * from './spinner';
|
|
10
|
+
export * from './thunder';
|
|
11
|
+
export * from './x-circle-solid';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function InfoTooltipFillIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Info Tooltip Fill</title>
|
|
14
|
+
<path
|
|
15
|
+
fillRule="evenodd"
|
|
16
|
+
clipRule="evenodd"
|
|
17
|
+
d="M12.5 21C17.4706 21 21.5 16.9706 21.5 12C21.5 7.02944 17.4706 3 12.5 3C7.52944 3 3.5 7.02944 3.5 12C3.5 16.9706 7.52944 21 12.5 21ZM14.1068 16.6204L14.2505 16.0329C14.1761 16.0678 14.0562 16.1077 13.8917 16.1532C13.7268 16.1986 13.5784 16.2217 13.448 16.2217C13.1701 16.2217 12.9745 16.1762 12.8609 16.0847C12.7482 15.9931 12.692 15.8209 12.692 15.5687C12.692 15.4688 12.7089 15.3198 12.7444 15.1248C12.7788 14.9286 12.8183 14.7542 12.8623 14.6016L13.3988 12.7021C13.4514 12.5278 13.4874 12.3362 13.5068 12.127C13.5266 11.9183 13.5358 11.7723 13.5358 11.6894C13.5358 11.2888 13.3954 10.9638 13.1145 10.7131C12.8337 10.4625 12.4337 10.3372 11.9153 10.3372C11.6269 10.3372 11.3219 10.3885 10.9992 10.4909C10.6764 10.593 10.339 10.7161 9.98606 10.8598L9.84198 11.4478C9.94716 11.4089 10.0724 11.367 10.219 11.3237C10.3649 11.2805 10.5081 11.2582 10.6474 11.2582C10.9318 11.2582 11.1233 11.3067 11.2237 11.4022C11.3241 11.498 11.3745 11.6684 11.3745 11.9119C11.3745 12.0466 11.3586 12.1962 11.3255 12.3588C11.2929 12.5225 11.2521 12.6955 11.2042 12.8781L10.6654 14.7852C10.6174 14.9856 10.5824 15.1649 10.5604 15.3241C10.5385 15.4832 10.528 15.6392 10.528 15.791C10.528 16.1829 10.6728 16.506 10.9624 16.761C11.2519 17.015 11.6579 17.1429 12.1799 17.1429C12.5198 17.1429 12.8181 17.0984 13.0748 17.0091C13.3313 16.92 13.6757 16.7905 14.1068 16.6204ZM14.0112 8.90429C14.2619 8.67189 14.3866 8.38926 14.3866 8.05831C14.3866 7.72811 14.2621 7.44491 14.0112 7.20957C13.7612 6.97486 13.4599 6.85714 13.1075 6.85714C12.7541 6.85714 12.4515 6.97459 12.1991 7.20957C11.9467 7.44491 11.8203 7.72801 11.8203 8.05831C11.8203 8.38926 11.9467 8.6718 12.1991 8.90429C12.452 9.13752 12.754 9.25423 13.1075 9.25423C13.46 9.25423 13.7612 9.13752 14.0112 8.90429Z"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type {RemixiconComponentType} from '@remixicon/react';
|
|
2
|
+
import type {ComponentProps} from 'react';
|
|
3
|
+
|
|
4
|
+
export function ResizeIcon(_props: ComponentProps<RemixiconComponentType>) {
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="25"
|
|
8
|
+
height="24"
|
|
9
|
+
viewBox="0 0 25 24"
|
|
10
|
+
fill="currentColor"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
>
|
|
13
|
+
<title>Resize</title>
|
|
14
|
+
<path d="M20.7425 13.4539C21.2111 12.9854 21.9711 12.9855 22.4398 13.4539C22.9084 13.9226 22.9084 14.6826 22.4398 15.1512L15.6517 21.9393C15.1831 22.4079 14.4231 22.4079 13.9544 21.9393C13.486 21.4706 13.4859 20.7106 13.9544 20.242L20.7425 13.4539ZM19.3363 5.25961C19.8048 4.79102 20.5649 4.79112 21.0335 5.25961C21.5022 5.72823 21.5022 6.48824 21.0335 6.95687L7.45736 20.533C6.98873 21.0017 6.22872 21.0017 5.76009 20.533C5.2916 20.0644 5.29151 19.3044 5.76009 18.8358L19.3363 5.25961Z" />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|