@aviala-design/spiral 1.0.0 → 2.1.0

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/dist/props.json CHANGED
@@ -10,6 +10,12 @@
10
10
  "required": false,
11
11
  "description": "Figma `All-Round`"
12
12
  },
13
+ {
14
+ "name": "compact",
15
+ "type": "boolean",
16
+ "required": false,
17
+ "description": ""
18
+ },
13
19
  {
14
20
  "name": "mode",
15
21
  "type": "enum",
@@ -1245,7 +1251,7 @@
1245
1251
  },
1246
1252
  "Popover": {
1247
1253
  "displayName": "Popover",
1248
- "description": "Radix Popover closes on `window` blur (e.g. focusing DevTools). Suppress only\nblur-initiated closes; pointer-down (outside click, trigger toggle) and Escape\nmust still dismiss on the first interaction.",
1254
+ "description": "Thin controlled/uncontrolled wrapper around Radix `Popover.Root`. We don't add\nany custom close-suppression: a non-modal Popover already prevents focus-outside\nfrom dismissing (`onFocusOutside` is default-prevented by Radix), so a window\nblur never closes it — no extra bookkeeping needed, and it keeps Escape a\nsingle, predictable dismiss.",
1249
1255
  "props": []
1250
1256
  },
1251
1257
  "Modal": {
package/dist/styles.css CHANGED
@@ -333,6 +333,8 @@
333
333
  --radio-label-fg: var(--text-text-normal-text-black, #343333);
334
334
  --radio-caption-fg: var(--text-text-normal-text-caption-black, #858484);
335
335
  --radio-card-border-selected: var(--border-border-theme-primary, #ff5532);
336
+ --radio-card-hover-bg: var(--aviala-neutral-neutral-4, #faf8f8);
337
+ --radio-card-press-bg: var(--aviala-neutral-neutral-6, #edebeb);
336
338
  --radio-disabled-opacity: var(--input-disabled-opacity, 0.55);
337
339
 
338
340
  --select-menu-bg: var(--control-control-normal-lightbackground-whiteonly, #fefcfc);
@@ -429,6 +431,8 @@
429
431
  --switch-height-regular: 22px;
430
432
  --switch-height-small: 20px;
431
433
  --switch-track-bg: var(--control-control-normal-background-deep, #e2e0e0);
434
+ --switch-hover-bg: var(--aviala-neutral-neutral-8, #d2d0d0);
435
+ --switch-press-bg: var(--aviala-neutral-neutral-9, #bebcbc);
432
436
  --switch-checked-bg: var(--control-control-theme-background, var(--button-primary-bg));
433
437
  --switch-thumb-bg: var(--control-control-normal-lightbackground-whiteonly, #fefcfc);
434
438
  --switch-thumb-shadow: 0 1px 2px 1px rgba(0, 0, 0, 0.06);
@@ -565,20 +569,21 @@
565
569
  var(--padding-min, 2px) * 2 + var(--line-height-line-height-regular, 1.125rem)
566
570
  );
567
571
  --datepicker-header-height: calc(
568
- var(--padding-tiny, 4px) * 4 + var(--icon-size-text-bigger, var(--size-middle, 1rem))
572
+ var(--padding-tiny, 4px) * 3 +
573
+ var(--typography-subtitle-line-height, var(--line-height-middle, 1.375rem))
569
574
  );
570
575
  --datepicker-grid-height: calc(
571
576
  var(--datepicker-grid-rows) * var(--datepicker-day-height) +
572
577
  (var(--datepicker-grid-rows) - 1) * var(--datepicker-row-gap)
573
578
  );
574
- /* Date grid content (weekdays + grid) — keep month wheels the same height */
579
+ /* Date grid content (weekdays + grid) — bottom padding applied on view-viewport */
575
580
  --datepicker-view-height: calc(
576
581
  var(--datepicker-weekday-height) + var(--datepicker-panel-gap) +
577
582
  var(--datepicker-grid-height)
578
583
  );
579
584
  --datepicker-panel-body-height: calc(
580
585
  var(--datepicker-header-height) + var(--datepicker-panel-gap) +
581
- var(--datepicker-view-height)
586
+ var(--datepicker-view-height) + var(--padding-tiny, 4px)
582
587
  );
583
588
  --datepicker-time-wheel-item-height: 36px;
584
589
  --datepicker-time-wheel-visible-count: 5;
@@ -595,7 +600,7 @@
595
600
  --popover-content-px: var(--padding-default, 8px);
596
601
  --popover-content-py: var(--padding-default, 8px);
597
602
  --popover-content-max-width: 320px;
598
- --popover-content-arrow-stroke: var(--border-border-normal-primary, #e2e0e0);
603
+ --popover-content-arrow-stroke: var(--border-border-normal-light, #f5f3f3);
599
604
 
600
605
  /* Modal — Figma Information Display → Modal (553:58593) */
601
606
  --modal-overlay-bg: rgba(0, 0, 0, 0.45);
@@ -691,6 +696,9 @@
691
696
  --navigation-item-active-shadow: var(--button-shadow-light);
692
697
  --navigation-item-rail: var(--border-border-theme-primary, #ff5532);
693
698
  --navigation-rail-inset: 6px;
699
+ /* Vertical active rail: grow on hover / shrink on press (inset from item edges). */
700
+ --navigation-rail-inset-hover: 3px;
701
+ --navigation-rail-inset-press: 9px;
694
702
  --navigation-rail-left: 1px;
695
703
  --navigation-rail-width: 3px;
696
704
  --navigation-indicator-width-horizontal: 50px;
@@ -1026,7 +1034,7 @@
1026
1034
  --typography-caption-fg: var(--text-text-normal-text-caption-black, #858484);
1027
1035
  --typography-caption-fg-white: var(--text-text-normal-text-caption-white, #fefcfc);
1028
1036
 
1029
- --typeface-gap: var(--gap-inside, 4px);
1037
+ --typeface-gap: var(--gap-none, 0);
1030
1038
  }
1031
1039
 
1032
1040
  /* Keyboard focus ring - opt-in via `.aviala-focus-ring`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviala-design/spiral",
3
- "version": "1.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Spiral 2 ? Aviala Design React component library",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "clsx": "^2.1.1",
44
44
  "colord": "^2.9.3",
45
45
  "tailwind-merge": "^3.3.1",
46
- "@aviala-design/icons": "2.0.1",
47
- "@aviala-design/tokens": "1.0.0"
46
+ "@aviala-design/icons": "2.0.2",
47
+ "@aviala-design/tokens": "2.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=18",
@@ -60,6 +60,7 @@
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsup && node scripts/copy-css.mjs && node scripts/generate-props.mjs",
63
+ "build:styles": "node scripts/copy-css.mjs",
63
64
  "dev": "tsup --watch",
64
65
  "typecheck": "tsc --noEmit",
65
66
  "clean": "rimraf dist"