@jinaan/uikit 0.1.5 → 0.1.7

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.
@@ -13,7 +13,7 @@ interface SegmentedProps<T extends string> {
13
13
  "aria-label"?: string;
14
14
  }
15
15
  /**
16
- * Single-choice control for a small set of options, styled after the Clerk
16
+ * Single-choice control for a small set of options, styled after the Jinaan
17
17
  * dashboard: a recessed track with an elevated selected pill. Implemented as a
18
18
  * `radiogroup` of native radios, so arrow-key roving and forms work natively.
19
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jinaan/uikit",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Reusable React and Tailwind UI components for Jinaan projects.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -14,7 +14,7 @@ interface AgentPromptProps {
14
14
  }
15
15
 
16
16
  /**
17
- * The "Add Clerk auth to my app" prompt pill: a dark tag overlapping a
17
+ * The "Add Jinaan auth to my app" prompt pill: a dark tag overlapping a
18
18
  * rounded command field with a copy button.
19
19
  */
20
20
  export function AgentPrompt({
@@ -153,7 +153,7 @@ function initials(name: string): string {
153
153
  .join("");
154
154
  }
155
155
 
156
- /** Clerk-style identity cell: avatar + primary name + secondary line. */
156
+ /** Jinaan-style identity cell: avatar + primary name + secondary line. */
157
157
  export function DataTableIdentity({
158
158
  name,
159
159
  secondary,
package/src/input.tsx CHANGED
@@ -9,7 +9,7 @@ const HEIGHT: Record<InputSize, string> = {
9
9
  sm: "h-[var(--control-h-sm)] text-sm",
10
10
  md: "h-[var(--control-h-md)] text-sm",
11
11
  lg: "h-[var(--control-h-lg)] text-sm",
12
- xl: "h-[var(--control-h-xl)] rounded-[var(--control-radius-xl)] text-base",
12
+ xl: "h-[var(--control-h-xl)] rounded-lg text-base",
13
13
  };
14
14
 
15
15
  const PAD_X: Record<InputSize, string> = {
@@ -110,7 +110,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
110
110
  : undefined
111
111
  }
112
112
  className={cn(
113
- "flex w-full rounded-(--control-radius) border bg-(--input-bg) text-(--input-fg) transition-colors",
113
+ "flex w-full rounded-md border bg-(--input-bg) text-(--input-fg) transition-colors",
114
114
  HEIGHT[size],
115
115
  PAD_X[size],
116
116
  "placeholder:text-(--input-placeholder)",
package/src/label.tsx CHANGED
@@ -10,7 +10,7 @@ export const Label = forwardRef<
10
10
  <LabelPrimitive.Root
11
11
  ref={ref}
12
12
  className={cn(
13
- "mb-1 text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
13
+ "mb-2.5 block text-sm font-medium text-fg leading-none last:mb-0 peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
14
14
  className,
15
15
  )}
16
16
  {...props}
package/src/segmented.tsx CHANGED
@@ -18,7 +18,7 @@ interface SegmentedProps<T extends string> {
18
18
  }
19
19
 
20
20
  /**
21
- * Single-choice control for a small set of options, styled after the Clerk
21
+ * Single-choice control for a small set of options, styled after the Jinaan
22
22
  * dashboard: a recessed track with an elevated selected pill. Implemented as a
23
23
  * `radiogroup` of native radios, so arrow-key roving and forms work natively.
24
24
  */
package/src/select.tsx CHANGED
@@ -30,9 +30,9 @@ export const SelectTrigger = forwardRef<
30
30
  "focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",
31
31
  "[&>span]:truncate",
32
32
  variant === "field" &&
33
- "h-9 w-full rounded-md border border-line bg-surface px-3 focus:border-primary focus:ring-2 focus:ring-focus/30",
33
+ "h-(--control-h-md) w-full rounded-md border border-line bg-surface px-3 focus:border-primary focus:ring-2 focus:ring-focus/30",
34
34
  variant === "inline" &&
35
- "btn-fill btn-inner-border btn-interactive h-8 w-auto rounded-(--control-radius) border-0 bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
35
+ "btn-fill btn-inner-border btn-interactive h-(--control-h-md) w-auto rounded-(--control-radius) border-0 bg-(--button-secondary-bg) px-(--control-pad-x-sm) font-medium text-fg hover:bg-(--button-surface-hover) active:bg-(--button-surface-active) focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-line-strong",
36
36
  className,
37
37
  )}
38
38
  {...props}
package/styles.css CHANGED
@@ -8,10 +8,10 @@
8
8
  /*
9
9
  * Semantic design tokens. Components must reference these (via the Tailwind
10
10
  * utilities below) rather than raw palette values, so both themes stay correct.
11
- * Values mirror the Clerk "Ceramic" system captured in docs/design-reference.md.
11
+ * Values mirror the Jinaan "Ceramic" system captured in docs/design-reference.md.
12
12
  */
13
13
  :root {
14
- /* Clerk shell: white page, gray-50 chrome/cards. */
14
+ /* Jinaan shell: white page, gray-50 chrome/cards. */
15
15
  --page: #ffffff;
16
16
  --canvas: #ffffff;
17
17
  --surface: #fafafb;
@@ -121,7 +121,7 @@
121
121
  /* Destructive keeps its red identity; hover/pressed are red-shifted. */
122
122
  --button-destructive-hover: color-mix(in oklab, var(--error) 88%, black);
123
123
  --button-destructive-active: color-mix(in oklab, var(--error) 78%, black);
124
- /* Filled buttons: flat surface + inset gloss + soft drop (Clerk). */
124
+ /* Filled buttons: flat surface + inset gloss + soft drop (Jinaan). */
125
125
  --button-inner: rgb(255 255 255 / 0.45);
126
126
  /* Primary and destructive read their own, stronger top gloss. */
127
127
  --button-primary-inner: rgb(255 255 255 / 0.5);
@@ -140,7 +140,7 @@
140
140
  0 10px 28px -14px rgb(19 19 22 / 0.2);
141
141
  --dialog-noise-opacity: 0.04;
142
142
 
143
- /* Settings danger-zone shell (Clerk red-tinted surface). */
143
+ /* Settings danger-zone shell (Jinaan red-tinted surface). */
144
144
  --settings-danger-bg: #fff5f4;
145
145
 
146
146
  /* Third-party brand marks (identity providers). */
@@ -155,7 +155,7 @@
155
155
  }
156
156
 
157
157
  .dark {
158
- /* Clerk shell: page gray-1400, chrome/cards gray-1500. */
158
+ /* Jinaan shell: page gray-1400, chrome/cards gray-1500. */
159
159
  --page: #19191c;
160
160
  --canvas: #1b1b1f;
161
161
  --surface: #111113;
@@ -205,7 +205,7 @@
205
205
  --table-row-selected: #2b2b34;
206
206
  --table-accent: var(--primary);
207
207
 
208
- /* Control system overrides (dark) — surfaces match the Clerk dashboard. */
208
+ /* Control system overrides (dark) — surfaces match the Jinaan dashboard. */
209
209
  --input-bg: #30303a;
210
210
  --input-fg: #f4f4f5;
211
211
  --input-placeholder: #777783;
@@ -324,7 +324,7 @@
324
324
  @layer components {
325
325
  /*
326
326
  * Filled control surface: a soft blurred drop plus a 1px inset top gloss
327
- * (matches the Clerk dashboard buttons). The Tailwind focus ring replaces
327
+ * (matches the Jinaan dashboard buttons). The Tailwind focus ring replaces
328
328
  * this shadow while focused.
329
329
  */
330
330
  .btn-fill {