@validationcloud/fractal-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/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # fractal-ui
2
+ Validation Cloud's component library
@@ -0,0 +1,3 @@
1
+ type TestProps = {} & React.ComponentPropsWithoutRef<'div'>;
2
+ export declare function Test({ className }: TestProps): import("react/jsx-runtime").JSX.Element;
3
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Test } from './test';
3
+ declare const meta: Meta<typeof Test>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Test>;
6
+ export declare const Default: Story;
7
+ export declare const One: Story;
8
+ export declare const Two: Story;
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1 @@
1
+
File without changes
@@ -0,0 +1,42 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Poppins:wght@400;500;600;700&display=swap');
2
+ @import 'tailwindcss';
3
+ @import './animation.css';
4
+ @import './colors.css';
5
+ @import './gap.css';
6
+ @import './gradients.css';
7
+ @import './scrollbar.css';
8
+ @import './typography.css';
9
+
10
+ /* We are safelisting the color values for the bg-protocols- and text-protocols- prefixes so we can generate the class names dynamically
11
+ * An alternative would be to list all these dynamic classes in a .txt file and then reference that file with the @source directive.
12
+ * Example: https://www.sujalvanjare.com/blog/safelist-classes-tailwind-css-v4
13
+ */
14
+ @source inline("{group-hover:}bg-protocols-{eth,eth_light,bnb,avax,aleo,apt,axelar,stellar,hbar,bera,cspr,dydx,eigenlayer,flow,obl,hash,saga,zeta,btc,wemix,arb,opbnb,babylon,sol,cfx,starknet,mnt,icp}");
15
+ @source inline("{group-hover:}text-protocols-{eth,eth_light,bnb,avax,aleo,apt,axelar,stellar,hbar,bera,cspr,dydx,eigenlayer,flow,obl,hash,saga,zeta,btc,wemix,arb,opbnb,babylon,sol,cfx,starknet,mnt,icp}");
16
+
17
+ @theme {
18
+ /* Fonts */
19
+ --font-poppins: 'Poppins', sans-serif;
20
+ --font-dm-sans: 'DM Sans', sans-serif;
21
+ --font-family-body: var(--font-poppins);
22
+ --font-family-display: var(--font-dm-sans);
23
+
24
+ /* Breakpoints */
25
+ --breakpoint-xs: 480px;
26
+
27
+ /* Spacing */
28
+ --spacing-15: 3.75rem;
29
+ --spacing-18: 4.5rem;
30
+
31
+ /* Box shadow */
32
+ --shadow-detail-card: 0 2px 24px 0 rgb(0 0 0 / 0.5);
33
+ --shadow-detail-card-xl: 0 6px 24px 0 rgb(0 0 0 / 0.8);
34
+ --shadow-drawer: 0px 0px 20px 20px rgba(0, 0, 0, 0.15), 0px 0px 8px 6px rgba(0, 0, 0, 0.15);
35
+ --shadow-modal: 0px 32px 48px -8px rgba(0, 0, 0, 0.1), 0px 0px 14px -4px rgba(0, 0, 0, 0.05);
36
+ --shadow-menu-item: 0px 1px 0px 0px rgba(255, 255, 255, 0.05) inset, 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
37
+ --shadow-sidebar-accessory: 0px 20px 24px 0px rgba(0, 0, 0, 0.5);
38
+
39
+ /* Miscellaneous */
40
+ --border-width-1\.5: 1.5px;
41
+ --ring-width-1\.5: 1.5px;
42
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@validationcloud/fractal-ui",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "module": "./dist/fractal-ui.js",
6
+ "type": "module",
7
+ "files": [
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "dev": "vite",
14
+ "build": "tsc && vite build",
15
+ "lint": "eslint .",
16
+ "preview": "vite preview",
17
+ "storybook": "storybook dev -p 6006",
18
+ "build-storybook": "storybook build"
19
+ },
20
+ "exports": {
21
+ ".": {
22
+ "import": "./dist/fractal-ui.js"
23
+ },
24
+ "./tailwind.css": "./dist/tailwind.css"
25
+ },
26
+ "dependencies": {
27
+ "react": "^19.0.0",
28
+ "react-dom": "^19.0.0",
29
+ "tailwind-merge": "^3.3.0"
30
+ },
31
+ "devDependencies": {
32
+ "@eslint/js": "^9.25.0",
33
+ "@storybook/addon-essentials": "^8.6.14",
34
+ "@storybook/addon-interactions": "^8.6.14",
35
+ "@storybook/addon-onboarding": "^8.6.14",
36
+ "@storybook/blocks": "^8.6.14",
37
+ "@storybook/react": "^8.6.14",
38
+ "@storybook/react-vite": "^8.6.14",
39
+ "@storybook/test": "^8.6.14",
40
+ "@tailwindcss/postcss": "^4.1.7",
41
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
42
+ "@types/node": "^22.15.18",
43
+ "@types/react": "^19.1.2",
44
+ "@types/react-dom": "^19.1.2",
45
+ "@vitejs/plugin-react": "^4.4.1",
46
+ "eslint": "^9.25.0",
47
+ "eslint-plugin-react-hooks": "^5.2.0",
48
+ "eslint-plugin-react-refresh": "^0.4.19",
49
+ "eslint-plugin-storybook": "^0.12.0",
50
+ "globals": "^16.0.0",
51
+ "postcss": "^8.5.3",
52
+ "prettier-plugin-tailwindcss": "^0.6.11",
53
+ "rollup-plugin-copy": "^3.5.0",
54
+ "rollup-preserve-directives": "^1.1.3",
55
+ "storybook": "^8.6.14",
56
+ "tailwindcss": "^4.1.7",
57
+ "typescript": "~5.8.3",
58
+ "typescript-eslint": "^8.30.1",
59
+ "vite": "^6.3.5",
60
+ "vite-plugin-dts": "^4.5.4"
61
+ },
62
+ "peerDependencies": {
63
+ "react": "^19.0.0",
64
+ "react-dom": "^19.0.0",
65
+ "tailwindcss": "^4.0.0"
66
+ }
67
+ }