@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.
- package/README.md +1 -1
- package/dist/agent-prompt.d.ts +1 -1
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.d.ts.map +1 -1
- package/dist/index.js +43 -43
- package/dist/index.js.map +1 -1
- package/dist/segmented.d.ts +1 -1
- package/package.json +1 -1
- package/src/agent-prompt.tsx +1 -1
- package/src/data-table.tsx +1 -1
- package/src/input.tsx +2 -2
- package/src/label.tsx +1 -1
- package/src/segmented.tsx +1 -1
- package/src/select.tsx +2 -2
- package/styles.css +7 -7
package/dist/segmented.d.ts
CHANGED
|
@@ -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
|
|
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
package/src/agent-prompt.tsx
CHANGED
|
@@ -14,7 +14,7 @@ interface AgentPromptProps {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* The "Add
|
|
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({
|
package/src/data-table.tsx
CHANGED
|
@@ -153,7 +153,7 @@ function initials(name: string): string {
|
|
|
153
153
|
.join("");
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
/**
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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
|
|
11
|
+
* Values mirror the Jinaan "Ceramic" system captured in docs/design-reference.md.
|
|
12
12
|
*/
|
|
13
13
|
:root {
|
|
14
|
-
/*
|
|
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 (
|
|
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 (
|
|
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
|
-
/*
|
|
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
|
|
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
|
|
327
|
+
* (matches the Jinaan dashboard buttons). The Tailwind focus ring replaces
|
|
328
328
|
* this shadow while focused.
|
|
329
329
|
*/
|
|
330
330
|
.btn-fill {
|