@ship-it-ui/ui 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "name": "@ship-it-ui/ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
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",
@@ -34,7 +47,8 @@
34
47
  ],
35
48
  "peerDependencies": {
36
49
  "react": "^18.0.0 || ^19.0.0",
37
- "react-dom": "^18.0.0 || ^19.0.0"
50
+ "react-dom": "^18.0.0 || ^19.0.0",
51
+ "@ship-it-ui/tokens": "0.0.2"
38
52
  },
39
53
  "dependencies": {
40
54
  "@fontsource-variable/geist": "^5.1.0",
@@ -46,7 +60,6 @@
46
60
  "@radix-ui/react-dialog": "^1.1.2",
47
61
  "@radix-ui/react-dropdown-menu": "^2.1.2",
48
62
  "@radix-ui/react-hover-card": "^1.1.2",
49
- "@radix-ui/react-label": "^2.1.0",
50
63
  "@radix-ui/react-menubar": "^1.1.16",
51
64
  "@radix-ui/react-popover": "^1.1.2",
52
65
  "@radix-ui/react-radio-group": "^1.2.1",
@@ -69,17 +82,16 @@
69
82
  "@types/react-dom": "^18.3.1",
70
83
  "@vitest/coverage-v8": "^2.1.3",
71
84
  "axe-core": "^4.10.2",
85
+ "esbuild-plugin-preserve-directives": "^0.0.11",
72
86
  "jsdom": "^25.0.1",
73
87
  "react": "^18.3.1",
74
88
  "react-dom": "^18.3.1",
75
- "tailwindcss": "^4.0.0-beta.3",
89
+ "tailwindcss": "4.0.0-beta.3",
76
90
  "tsup": "^8.3.0",
77
91
  "typescript": "^5.6.3",
78
92
  "vitest": "^2.1.3",
79
93
  "vitest-axe": "^0.1.0",
80
94
  "@ship-it-ui/eslint-config": "0.0.1",
81
- "@ship-it-ui/icons": "0.0.1",
82
- "@ship-it-ui/tokens": "0.0.1",
83
95
  "@ship-it-ui/tsconfig": "0.0.1"
84
96
  },
85
97
  "scripts": {
@@ -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
+ }
@@ -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 {