@ship-it-ui/ui 0.0.1 → 0.0.3
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 +9 -4
- package/dist/index.cjs +2446 -1068
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +321 -62
- package/dist/index.d.ts +321 -62
- package/dist/index.js +2231 -803
- package/dist/index.js.map +1 -1
- package/package.json +24 -10
- package/src/styles/animations.css +11 -0
- package/src/styles/globals.css +34 -4
package/package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ship-it-ui/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "React component library for the Ship-It design system. Tailwind v4 + Radix UI primitives, themed via @ship-it-ui/tokens.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"homepage": "https://ship-it-ops.github.io/ship-it-design/",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/ship-it-ops/ship-it-design/issues"
|
|
9
|
+
},
|
|
10
|
+
"author": "Ship-It Ops",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"design-system",
|
|
13
|
+
"react",
|
|
14
|
+
"tailwindcss",
|
|
15
|
+
"radix-ui",
|
|
16
|
+
"components",
|
|
17
|
+
"shipit"
|
|
18
|
+
],
|
|
6
19
|
"repository": {
|
|
7
20
|
"type": "git",
|
|
8
21
|
"url": "git+https://github.com/ship-it-ops/ship-it-design.git",
|
|
@@ -18,7 +31,8 @@
|
|
|
18
31
|
"import": "./dist/index.js",
|
|
19
32
|
"require": "./dist/index.cjs"
|
|
20
33
|
},
|
|
21
|
-
"./styles/globals.css": "./src/styles/globals.css"
|
|
34
|
+
"./styles/globals.css": "./src/styles/globals.css",
|
|
35
|
+
"./package.json": "./package.json"
|
|
22
36
|
},
|
|
23
37
|
"files": [
|
|
24
38
|
"dist",
|
|
@@ -34,7 +48,8 @@
|
|
|
34
48
|
],
|
|
35
49
|
"peerDependencies": {
|
|
36
50
|
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
51
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
52
|
+
"@ship-it-ui/tokens": "0.0.3"
|
|
38
53
|
},
|
|
39
54
|
"dependencies": {
|
|
40
55
|
"@fontsource-variable/geist": "^5.1.0",
|
|
@@ -46,8 +61,8 @@
|
|
|
46
61
|
"@radix-ui/react-dialog": "^1.1.2",
|
|
47
62
|
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
48
63
|
"@radix-ui/react-hover-card": "^1.1.2",
|
|
49
|
-
"@radix-ui/react-label": "^2.1.0",
|
|
50
64
|
"@radix-ui/react-menubar": "^1.1.16",
|
|
65
|
+
"@radix-ui/react-navigation-menu": "^1.2.2",
|
|
51
66
|
"@radix-ui/react-popover": "^1.1.2",
|
|
52
67
|
"@radix-ui/react-radio-group": "^1.2.1",
|
|
53
68
|
"@radix-ui/react-select": "^2.1.2",
|
|
@@ -69,18 +84,17 @@
|
|
|
69
84
|
"@types/react-dom": "^18.3.1",
|
|
70
85
|
"@vitest/coverage-v8": "^2.1.3",
|
|
71
86
|
"axe-core": "^4.10.2",
|
|
72
|
-
"
|
|
87
|
+
"esbuild-plugin-preserve-directives": "^0.0.11",
|
|
88
|
+
"jsdom": "^29.1.1",
|
|
73
89
|
"react": "^18.3.1",
|
|
74
90
|
"react-dom": "^18.3.1",
|
|
75
|
-
"tailwindcss": "
|
|
91
|
+
"tailwindcss": "4.0.0-beta.3",
|
|
76
92
|
"tsup": "^8.3.0",
|
|
77
93
|
"typescript": "^5.6.3",
|
|
78
94
|
"vitest": "^2.1.3",
|
|
79
95
|
"vitest-axe": "^0.1.0",
|
|
80
|
-
"@ship-it-ui/
|
|
81
|
-
"@ship-it-ui/
|
|
82
|
-
"@ship-it-ui/tokens": "0.0.1",
|
|
83
|
-
"@ship-it-ui/tsconfig": "0.0.1"
|
|
96
|
+
"@ship-it-ui/tsconfig": "0.0.1",
|
|
97
|
+
"@ship-it-ui/eslint-config": "0.0.1"
|
|
84
98
|
},
|
|
85
99
|
"scripts": {
|
|
86
100
|
"build": "tsup",
|
|
@@ -121,3 +121,14 @@
|
|
|
121
121
|
transform: translateX(0) scale(1);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
@media (prefers-reduced-motion: reduce) {
|
|
126
|
+
*,
|
|
127
|
+
*::before,
|
|
128
|
+
*::after {
|
|
129
|
+
animation-duration: 0.001ms !important;
|
|
130
|
+
animation-iteration-count: 1 !important;
|
|
131
|
+
transition-duration: 0.001ms !important;
|
|
132
|
+
scroll-behavior: auto !important;
|
|
133
|
+
}
|
|
134
|
+
}
|
package/src/styles/globals.css
CHANGED
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
* utility classes used in components actually get compiled.
|
|
29
29
|
*
|
|
30
30
|
* Paths are resolved relative to this CSS file:
|
|
31
|
-
* ../**
|
|
32
|
-
* ../../../shipit/src/**
|
|
33
|
-
* ../../../../apps/docs/**
|
|
31
|
+
* ../** = packages/ui/src/**
|
|
32
|
+
* ../../../shipit/src/** = packages/shipit/src/**
|
|
33
|
+
* ../../../../apps/docs-site/** = apps/docs-site/**
|
|
34
34
|
*/
|
|
35
35
|
@source '../**/*.{ts,tsx,mdx}';
|
|
36
36
|
@source '../../../shipit/src/**/*.{ts,tsx,mdx}';
|
|
37
|
-
@source '../../../../apps/docs/**/*.{ts,tsx,mdx}';
|
|
37
|
+
@source '../../../../apps/docs-site/**/*.{ts,tsx,mdx}';
|
|
38
38
|
|
|
39
39
|
/*
|
|
40
40
|
* `@theme inline` tells Tailwind to read these variables for utility-class
|
|
@@ -65,6 +65,23 @@
|
|
|
65
65
|
* (primary buttons, solid badges). Always near-black, regardless of theme. */
|
|
66
66
|
--color-on-accent: #0a0a0b;
|
|
67
67
|
|
|
68
|
+
/* Foregrounds for components on solid `bg-ok`/`bg-warn`/`bg-err` surfaces
|
|
69
|
+
* (success/destructive Buttons, status badges). Theme-aware. */
|
|
70
|
+
--color-ok-fg: var(--color-ok-fg);
|
|
71
|
+
--color-warn-fg: var(--color-warn-fg);
|
|
72
|
+
--color-err-fg: var(--color-err-fg);
|
|
73
|
+
|
|
74
|
+
/* Text-on-bg foregrounds. Use these for `text-err` field-error messages, etc.
|
|
75
|
+
* In light theme these are darker than `--color-ok`/`-warn`/`-err` so body text
|
|
76
|
+
* passes 4.5:1 contrast against `--color-bg`. */
|
|
77
|
+
--color-ok-text: var(--color-ok-text);
|
|
78
|
+
--color-warn-text: var(--color-warn-text);
|
|
79
|
+
--color-err-text: var(--color-err-text);
|
|
80
|
+
|
|
81
|
+
/* Marketing surface gradient endpoints (CTAStrip). Theme-aware. */
|
|
82
|
+
--color-cta-from: var(--color-cta-from);
|
|
83
|
+
--color-cta-to: var(--color-cta-to);
|
|
84
|
+
|
|
68
85
|
/* Typography — families. */
|
|
69
86
|
--font-sans: var(--font-family-sans);
|
|
70
87
|
--font-mono: var(--font-family-mono);
|
|
@@ -116,6 +133,19 @@
|
|
|
116
133
|
--shadow-sm: var(--shadow-sm);
|
|
117
134
|
--shadow: var(--shadow);
|
|
118
135
|
--shadow-lg: var(--shadow-lg);
|
|
136
|
+
|
|
137
|
+
/* Z-index — named layers from the token scale.
|
|
138
|
+
* Use `z-modal`, `z-tooltip`, etc. instead of arbitrary `z-[51]` literals so
|
|
139
|
+
* stacking conflicts can be reasoned about globally. */
|
|
140
|
+
--z-base: var(--z-base);
|
|
141
|
+
--z-raised: var(--z-raised);
|
|
142
|
+
--z-dropdown: var(--z-dropdown);
|
|
143
|
+
--z-sticky: var(--z-sticky);
|
|
144
|
+
--z-overlay: var(--z-overlay);
|
|
145
|
+
--z-modal: var(--z-modal);
|
|
146
|
+
--z-popover: var(--z-popover);
|
|
147
|
+
--z-toast: var(--z-toast);
|
|
148
|
+
--z-tooltip: var(--z-tooltip);
|
|
119
149
|
}
|
|
120
150
|
|
|
121
151
|
@layer base {
|