@lerianstudio/sindarian-ui 1.2.0-beta.12 → 1.2.0-beta.13

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.
@@ -9,11 +9,11 @@
9
9
  }
10
10
 
11
11
  .dialog-content {
12
- @apply bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-8 border p-6 shadow-lg duration-200 sm:max-w-[425px] sm:rounded-lg;
12
+ @apply bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-8 border p-7 shadow-lg duration-200 sm:max-w-[425px] sm:rounded-lg;
13
13
  }
14
14
 
15
15
  .dialog-close {
16
- @apply data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none;
16
+ @apply data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none;
17
17
  }
18
18
 
19
19
  .dialog-header {
@@ -25,7 +25,7 @@
25
25
  }
26
26
 
27
27
  .dialog-title {
28
- @apply text-dialog-title-text text-lg font-bold leading-none tracking-tight;
28
+ @apply text-dialog-title-text text-lg leading-none font-bold tracking-tight;
29
29
  }
30
30
 
31
31
  .dialog-description {
@@ -3,7 +3,7 @@
3
3
  --spacing-input-wrapper-p: calc(var(--spacing) * 2);
4
4
  --spacing-input-px: calc(var(--spacing) * 4);
5
5
  --color-input-foreground: var(--color-foreground);
6
- --color-input-placeholder: var(--color-muted-foreground);
6
+ --color-input-placeholder: hsl(var(--input-placeholder));
7
7
  --color-input-border: var(--color-shadcn-400);
8
8
 
9
9
  --color-input-adornment: var(--color-container-text);
@@ -24,8 +24,12 @@
24
24
  @apply border-ring;
25
25
  }
26
26
 
27
+ /* Don't give the placeholder its own size or weight. At a smaller size it
28
+ still shares the input's baseline, so it rode ~0.75px below the value and
29
+ the text jumped the moment you typed; font-medium gave the hint the same
30
+ presence as the label naming the field. */
27
31
  .input-base {
28
- @apply px-input-px text-input-foreground placeholder:text-input-placeholder h-full min-h-0 flex-1 border-none bg-transparent outline-none placeholder:text-sm placeholder:font-medium focus:ring-0 focus:ring-offset-0;
32
+ @apply px-input-px text-input-foreground placeholder:text-input-placeholder h-full min-h-0 flex-1 border-none bg-transparent outline-none focus:ring-0 focus:ring-offset-0;
29
33
  }
30
34
 
31
35
  .input-disabled {
package/dist/globals.css CHANGED
@@ -228,6 +228,10 @@
228
228
  --destructive-foreground: 0 0% 100%; /* white */
229
229
  --border: 240 5% 90%; /* base/200 = #E4E4E7 */
230
230
  --input: 0 0% 100%; /* base/white */
231
+ /* One step lighter than --muted-foreground, which is also the label colour:
232
+ a placeholder that matches its own label has no hierarchy left to give.
233
+ Still 4.4:1 on the shadcn-100 field, so it stays legible as a hint. */
234
+ --input-placeholder: 240 4% 46%; /* base/500 = #71717A */
231
235
  --ring: 240 5% 65%; /* focus ring */
232
236
  --radius: 0.5rem;
233
237
 
@@ -292,6 +296,10 @@
292
296
  --popover-foreground: 240 5% 96%; /* base/100 = #F4F4F5 */
293
297
  --border: 240 5% 34%; /* base/600 = #52525B */
294
298
  --input: 240 4% 16%; /* base/800 = #27272A */
299
+ /* Held at base/400 rather than stepped down with the light theme: on the
300
+ dark field that is already only 5.8:1, and going lighter here means
301
+ darker, which would push the hint under the AA floor. */
302
+ --input-placeholder: 240 5% 65%; /* base/400 = #A1A1AA */
295
303
  --primary: 240 5% 96%; /* base/100 = #F4F4F5 */
296
304
  --primary-foreground: 240 4% 16%; /* base/800 = #27272A */
297
305
  --secondary: 240 4% 16%; /* base/800 = #27272A */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lerianstudio/sindarian-ui",
3
- "version": "1.2.0-beta.12",
3
+ "version": "1.2.0-beta.13",
4
4
  "description": "Sindarian UI - A UI library for Midaz Console",
5
5
  "license": "ISC",
6
6
  "author": {