@nexus-cross/design-system 1.0.13 → 1.0.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,mlpIAA2y+G,CAAC;AACrz+G,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,6vsIAAi8hH,CAAC;AAC38hH,eAAe,GAAG,CAAC"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV35IEPRL_js = require('../chunks/chunk-V35IEPRL.js');
3
+ var chunkLAOQRXCE_js = require('../chunks/chunk-LAOQRXCE.js');
4
4
  require('../chunks/chunk-JNMCYWGY.js');
5
5
 
6
6
  // src/styles/inject-layer.ts
@@ -9,7 +9,7 @@ var __nexus_styles_injected__ = typeof document !== "undefined" && !document.get
9
9
  const style = document.createElement("style");
10
10
  style.id = STYLE_ID;
11
11
  style.textContent = `@layer nexus {
12
- ${chunkV35IEPRL_js.built_default}
12
+ ${chunkLAOQRXCE_js.built_default}
13
13
  }`;
14
14
  document.head.appendChild(style);
15
15
  return true;
@@ -1,4 +1,4 @@
1
- import { built_default } from '../chunks/chunk-6ECGMUT6.mjs';
1
+ import { built_default } from '../chunks/chunk-S6ODYMFP.mjs';
2
2
  import '../chunks/chunk-CVYXRSXT.mjs';
3
3
 
4
4
  // src/styles/inject-layer.ts
package/dist/styles.css CHANGED
@@ -3624,17 +3624,14 @@
3624
3624
  }
3625
3625
  .nexus-stepper--horizontal .nexus-stepper__connector {
3626
3626
  flex: 1;
3627
- height: 2px;
3628
- background: var(--color-border-default);
3629
- transition: background var(--duration-transition-normal, 200ms)
3627
+ height: 0;
3628
+ border-top: 1px dashed var(--color-border-default);
3629
+ transition: border-color var(--duration-transition-normal, 200ms)
3630
3630
  var(--ease-transition-normal);
3631
3631
  }
3632
3632
  .nexus-stepper--horizontal .nexus-stepper__connector--hidden {
3633
3633
  visibility: hidden;
3634
3634
  }
3635
- .nexus-stepper--horizontal .nexus-stepper__connector--completed {
3636
- background: var(--color-accent-primary);
3637
- }
3638
3635
  .nexus-stepper--horizontal .nexus-stepper__content {
3639
3636
  margin-top: var(--spacing-gap-sm, 0.5rem);
3640
3637
  padding: 0 var(--spacing-padding-2xs, 0.25rem);
@@ -3659,16 +3656,13 @@
3659
3656
  flex-shrink: 0;
3660
3657
  }
3661
3658
  .nexus-stepper--vertical .nexus-stepper__connector {
3662
- width: 2px;
3659
+ width: 0;
3663
3660
  flex: 1;
3664
3661
  min-height: var(--spacing-padding-sm, 0.75rem);
3665
- background: var(--color-border-default);
3666
- transition: background var(--duration-transition-normal, 200ms)
3662
+ border-left: 1px dashed var(--color-border-default);
3663
+ transition: border-color var(--duration-transition-normal, 200ms)
3667
3664
  var(--ease-transition-normal);
3668
3665
  }
3669
- .nexus-stepper--vertical .nexus-stepper__connector--completed {
3670
- background: var(--color-accent-primary);
3671
- }
3672
3666
  .nexus-stepper--vertical .nexus-stepper__content {
3673
3667
  padding: var(--spacing-padding-xs, 0.5rem) 0;
3674
3668
  }
@@ -3679,25 +3673,27 @@
3679
3673
  align-items: center;
3680
3674
  justify-content: center;
3681
3675
  flex-shrink: 0;
3682
- width: var(--size-control-sm, 2rem);
3683
- height: var(--size-control-sm, 2rem);
3676
+ width: 30px;
3677
+ height: 30px;
3684
3678
  border-radius: var(--radius-corner-full, 9999px);
3685
- border: 2px solid var(--color-border-medium);
3686
- background: var(--color-surface-default);
3687
- font-size: var(--text-text-sm, 0.875rem);
3688
- font-weight: var(--font-weight-text-medium-sm, 500);
3689
- color: var(--color-text-secondary);
3690
- transition: all var(--duration-transition-normal, 200ms)
3691
- var(--ease-transition-normal);
3679
+ border: 1px solid var(--color-border-medium);
3680
+ background: transparent;
3681
+ font-size: var(--text-label-semibold-md, 0.875rem);
3682
+ font-weight: var(--font-weight-label-semibold-md, 600);
3683
+ color: var(--color-text-tertiary);
3684
+ transition:
3685
+ border-color var(--duration-transition-normal, 200ms) var(--ease-transition-normal),
3686
+ background-color var(--duration-transition-normal, 200ms) var(--ease-transition-normal),
3687
+ color var(--duration-transition-normal, 200ms) var(--ease-transition-normal);
3692
3688
  }
3693
3689
  .nexus-stepper--sm .nexus-stepper__indicator {
3694
- width: 1.75rem;
3695
- height: 1.75rem;
3690
+ width: 1.5rem;
3691
+ height: 1.5rem;
3696
3692
  font-size: var(--text-text-xs, 0.75rem);
3697
3693
  }
3698
3694
  .nexus-stepper__check {
3699
- width: var(--size-icon-sm, 1rem);
3700
- height: var(--size-icon-sm, 1rem);
3695
+ width: 13px;
3696
+ height: 13px;
3701
3697
  }
3702
3698
  .nexus-stepper--sm .nexus-stepper__check {
3703
3699
  width: var(--size-icon-xs, 0.75rem);
@@ -3707,33 +3703,31 @@
3707
3703
  /* ── State colors ── */
3708
3704
  .nexus-stepper__step--completed .nexus-stepper__indicator {
3709
3705
  border-color: var(--color-accent-primary);
3710
- background: var(--color-accent-primary);
3711
- color: var(--color-accent-on-primary);
3706
+ background: transparent;
3707
+ color: var(--color-accent-primary);
3712
3708
  }
3713
3709
  .nexus-stepper__step--active .nexus-stepper__indicator {
3714
3710
  border-color: var(--color-accent-primary);
3715
- color: var(--color-accent-primary);
3716
- background: var(--color-surface-default);
3717
- box-shadow: 0 0 0 3px
3718
- color-mix(in srgb, var(--color-accent-primary) 20%, transparent);
3711
+ background: var(--color-accent-primary);
3712
+ color: var(--color-accent-on-primary);
3719
3713
  }
3720
3714
  .nexus-stepper__step--error .nexus-stepper__indicator {
3721
3715
  border-color: var(--color-status-danger);
3722
3716
  color: var(--color-status-danger);
3723
- background: var(--color-surface-default);
3724
- box-shadow: 0 0 0 3px
3725
- color-mix(in srgb, var(--color-status-danger) 20%, transparent);
3717
+ background: transparent;
3726
3718
  }
3727
3719
  .nexus-stepper__step--pending .nexus-stepper__indicator {
3728
- border-color: var(--color-border-default);
3720
+ border-color: var(--color-border-medium);
3729
3721
  color: var(--color-text-tertiary);
3730
3722
  }
3731
3723
 
3732
3724
  /* ── Labels ── */
3733
3725
  .nexus-stepper__label {
3734
3726
  display: block;
3735
- font-size: var(--text-text-sm, 0.875rem);
3736
- font-weight: var(--font-weight-text-medium-sm, 500);
3727
+ font-size: var(--text-text-medium-xs, 0.75rem);
3728
+ font-weight: var(--font-weight-text-medium-xs, 500);
3729
+ line-height: 1.5;
3730
+ letter-spacing: var(--letter-spacing-text-medium-xs, -0.01em);
3737
3731
  color: var(--color-text-primary);
3738
3732
  }
3739
3733
  .nexus-stepper--sm .nexus-stepper__label {
@@ -3745,13 +3739,64 @@
3745
3739
  font-size: var(--text-text-xs, 0.75rem);
3746
3740
  color: var(--color-text-secondary);
3747
3741
  }
3748
- .nexus-stepper__step--pending .nexus-stepper__label {
3742
+ .nexus-stepper__step--completed .nexus-stepper__label {
3749
3743
  color: var(--color-text-secondary);
3750
3744
  }
3745
+ .nexus-stepper__step--completed .nexus-stepper__description {
3746
+ color: var(--color-text-muted);
3747
+ }
3748
+ .nexus-stepper__step--pending .nexus-stepper__label {
3749
+ color: var(--color-text-tertiary);
3750
+ }
3751
3751
  .nexus-stepper__step--pending .nexus-stepper__description {
3752
3752
  color: var(--color-text-muted);
3753
3753
  }
3754
3754
 
3755
+ /* ── Animations ── */
3756
+
3757
+ @keyframes nexus-stepper-pulse {
3758
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(9, 180, 152, 0.25); }
3759
+ 50% { box-shadow: 0 0 0 3px rgba(9, 180, 152, 0.25); }
3760
+ }
3761
+ @keyframes nexus-stepper-pop {
3762
+ 0% { transform: scale(0.7); opacity: 0.5; }
3763
+ 60% { transform: scale(1.15); opacity: 1; }
3764
+ 100% { transform: scale(1); opacity: 1; }
3765
+ }
3766
+ @keyframes nexus-stepper-check-in {
3767
+ 0% { opacity: 0; transform: scale(0) rotate(-45deg); }
3768
+ 60% { opacity: 1; transform: scale(1.2) rotate(0deg); }
3769
+ 100% { opacity: 1; transform: scale(1) rotate(0deg); }
3770
+ }
3771
+ @keyframes nexus-stepper-label-slide {
3772
+ 0% { opacity: 0; transform: translateY(4px); }
3773
+ 100% { opacity: 1; transform: translateY(0); }
3774
+ }
3775
+
3776
+ .nexus-stepper__step--active .nexus-stepper__indicator {
3777
+ animation: nexus-stepper-pulse 2s ease-in-out infinite;
3778
+ }
3779
+
3780
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__indicator {
3781
+ animation:
3782
+ nexus-stepper-pop 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
3783
+ nexus-stepper-pulse 2s ease-in-out 500ms infinite;
3784
+ }
3785
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__label {
3786
+ animation: nexus-stepper-label-slide 350ms ease-out both;
3787
+ }
3788
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__description {
3789
+ animation: nexus-stepper-label-slide 350ms ease-out 50ms both;
3790
+ }
3791
+
3792
+ @media (prefers-reduced-motion: reduce) {
3793
+ .nexus-stepper__step--active .nexus-stepper__indicator,
3794
+ .nexus-stepper__step--animating .nexus-stepper__indicator,
3795
+ .nexus-stepper__step--animating .nexus-stepper__label,
3796
+ .nexus-stepper__step--animating .nexus-stepper__description,
3797
+ .nexus-stepper__check { animation: none !important; }
3798
+ }
3799
+
3755
3800
  /* ═══════════════════════════════════════════
3756
3801
  TagInput
3757
3802
  ═══════════════════════════════════════════ */
package/dist/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkV35IEPRL_js = require('./chunks/chunk-V35IEPRL.js');
3
+ var chunkLAOQRXCE_js = require('./chunks/chunk-LAOQRXCE.js');
4
4
  require('./chunks/chunk-JNMCYWGY.js');
5
5
 
6
6
  // src/styles/inject.ts
@@ -8,7 +8,7 @@ var STYLE_ID = "__nexus-ds__";
8
8
  var __nexus_styles_injected__ = typeof document !== "undefined" && !document.getElementById(STYLE_ID) ? (() => {
9
9
  const style = document.createElement("style");
10
10
  style.id = STYLE_ID;
11
- style.textContent = chunkV35IEPRL_js.built_default;
11
+ style.textContent = chunkLAOQRXCE_js.built_default;
12
12
  document.head.appendChild(style);
13
13
  return true;
14
14
  })() : false;
@@ -3625,17 +3625,14 @@
3625
3625
  }
3626
3626
  .nexus-stepper--horizontal .nexus-stepper__connector {
3627
3627
  flex: 1;
3628
- height: 2px;
3629
- background: var(--color-border-default);
3630
- transition: background var(--duration-transition-normal, 200ms)
3628
+ height: 0;
3629
+ border-top: 1px dashed var(--color-border-default);
3630
+ transition: border-color var(--duration-transition-normal, 200ms)
3631
3631
  var(--ease-transition-normal);
3632
3632
  }
3633
3633
  .nexus-stepper--horizontal .nexus-stepper__connector--hidden {
3634
3634
  visibility: hidden;
3635
3635
  }
3636
- .nexus-stepper--horizontal .nexus-stepper__connector--completed {
3637
- background: var(--color-accent-primary);
3638
- }
3639
3636
  .nexus-stepper--horizontal .nexus-stepper__content {
3640
3637
  margin-top: var(--spacing-gap-sm, 0.5rem);
3641
3638
  padding: 0 var(--spacing-padding-2xs, 0.25rem);
@@ -3660,16 +3657,13 @@
3660
3657
  flex-shrink: 0;
3661
3658
  }
3662
3659
  .nexus-stepper--vertical .nexus-stepper__connector {
3663
- width: 2px;
3660
+ width: 0;
3664
3661
  flex: 1;
3665
3662
  min-height: var(--spacing-padding-sm, 0.75rem);
3666
- background: var(--color-border-default);
3667
- transition: background var(--duration-transition-normal, 200ms)
3663
+ border-left: 1px dashed var(--color-border-default);
3664
+ transition: border-color var(--duration-transition-normal, 200ms)
3668
3665
  var(--ease-transition-normal);
3669
3666
  }
3670
- .nexus-stepper--vertical .nexus-stepper__connector--completed {
3671
- background: var(--color-accent-primary);
3672
- }
3673
3667
  .nexus-stepper--vertical .nexus-stepper__content {
3674
3668
  padding: var(--spacing-padding-xs, 0.5rem) 0;
3675
3669
  }
@@ -3680,25 +3674,27 @@
3680
3674
  align-items: center;
3681
3675
  justify-content: center;
3682
3676
  flex-shrink: 0;
3683
- width: var(--size-control-sm, 2rem);
3684
- height: var(--size-control-sm, 2rem);
3677
+ width: 30px;
3678
+ height: 30px;
3685
3679
  border-radius: var(--radius-corner-full, 9999px);
3686
- border: 2px solid var(--color-border-medium);
3687
- background: var(--color-surface-default);
3688
- font-size: var(--text-text-sm, 0.875rem);
3689
- font-weight: var(--font-weight-text-medium-sm, 500);
3690
- color: var(--color-text-secondary);
3691
- transition: all var(--duration-transition-normal, 200ms)
3692
- var(--ease-transition-normal);
3680
+ border: 1px solid var(--color-border-medium);
3681
+ background: transparent;
3682
+ font-size: var(--text-label-semibold-md, 0.875rem);
3683
+ font-weight: var(--font-weight-label-semibold-md, 600);
3684
+ color: var(--color-text-tertiary);
3685
+ transition:
3686
+ border-color var(--duration-transition-normal, 200ms) var(--ease-transition-normal),
3687
+ background-color var(--duration-transition-normal, 200ms) var(--ease-transition-normal),
3688
+ color var(--duration-transition-normal, 200ms) var(--ease-transition-normal);
3693
3689
  }
3694
3690
  .nexus-stepper--sm .nexus-stepper__indicator {
3695
- width: 1.75rem;
3696
- height: 1.75rem;
3691
+ width: 1.5rem;
3692
+ height: 1.5rem;
3697
3693
  font-size: var(--text-text-xs, 0.75rem);
3698
3694
  }
3699
3695
  .nexus-stepper__check {
3700
- width: var(--size-icon-sm, 1rem);
3701
- height: var(--size-icon-sm, 1rem);
3696
+ width: 13px;
3697
+ height: 13px;
3702
3698
  }
3703
3699
  .nexus-stepper--sm .nexus-stepper__check {
3704
3700
  width: var(--size-icon-xs, 0.75rem);
@@ -3708,33 +3704,31 @@
3708
3704
  /* ── State colors ── */
3709
3705
  .nexus-stepper__step--completed .nexus-stepper__indicator {
3710
3706
  border-color: var(--color-accent-primary);
3711
- background: var(--color-accent-primary);
3712
- color: var(--color-accent-on-primary);
3707
+ background: transparent;
3708
+ color: var(--color-accent-primary);
3713
3709
  }
3714
3710
  .nexus-stepper__step--active .nexus-stepper__indicator {
3715
3711
  border-color: var(--color-accent-primary);
3716
- color: var(--color-accent-primary);
3717
- background: var(--color-surface-default);
3718
- box-shadow: 0 0 0 3px
3719
- color-mix(in srgb, var(--color-accent-primary) 20%, transparent);
3712
+ background: var(--color-accent-primary);
3713
+ color: var(--color-accent-on-primary);
3720
3714
  }
3721
3715
  .nexus-stepper__step--error .nexus-stepper__indicator {
3722
3716
  border-color: var(--color-status-danger);
3723
3717
  color: var(--color-status-danger);
3724
- background: var(--color-surface-default);
3725
- box-shadow: 0 0 0 3px
3726
- color-mix(in srgb, var(--color-status-danger) 20%, transparent);
3718
+ background: transparent;
3727
3719
  }
3728
3720
  .nexus-stepper__step--pending .nexus-stepper__indicator {
3729
- border-color: var(--color-border-default);
3721
+ border-color: var(--color-border-medium);
3730
3722
  color: var(--color-text-tertiary);
3731
3723
  }
3732
3724
 
3733
3725
  /* ── Labels ── */
3734
3726
  .nexus-stepper__label {
3735
3727
  display: block;
3736
- font-size: var(--text-text-sm, 0.875rem);
3737
- font-weight: var(--font-weight-text-medium-sm, 500);
3728
+ font-size: var(--text-text-medium-xs, 0.75rem);
3729
+ font-weight: var(--font-weight-text-medium-xs, 500);
3730
+ line-height: 1.5;
3731
+ letter-spacing: var(--letter-spacing-text-medium-xs, -0.01em);
3738
3732
  color: var(--color-text-primary);
3739
3733
  }
3740
3734
  .nexus-stepper--sm .nexus-stepper__label {
@@ -3746,13 +3740,64 @@
3746
3740
  font-size: var(--text-text-xs, 0.75rem);
3747
3741
  color: var(--color-text-secondary);
3748
3742
  }
3749
- .nexus-stepper__step--pending .nexus-stepper__label {
3743
+ .nexus-stepper__step--completed .nexus-stepper__label {
3750
3744
  color: var(--color-text-secondary);
3751
3745
  }
3746
+ .nexus-stepper__step--completed .nexus-stepper__description {
3747
+ color: var(--color-text-muted);
3748
+ }
3749
+ .nexus-stepper__step--pending .nexus-stepper__label {
3750
+ color: var(--color-text-tertiary);
3751
+ }
3752
3752
  .nexus-stepper__step--pending .nexus-stepper__description {
3753
3753
  color: var(--color-text-muted);
3754
3754
  }
3755
3755
 
3756
+ /* ── Animations ── */
3757
+
3758
+ @keyframes nexus-stepper-pulse {
3759
+ 0%, 100% { box-shadow: 0 0 0 0 rgba(9, 180, 152, 0.25); }
3760
+ 50% { box-shadow: 0 0 0 3px rgba(9, 180, 152, 0.25); }
3761
+ }
3762
+ @keyframes nexus-stepper-pop {
3763
+ 0% { transform: scale(0.7); opacity: 0.5; }
3764
+ 60% { transform: scale(1.15); opacity: 1; }
3765
+ 100% { transform: scale(1); opacity: 1; }
3766
+ }
3767
+ @keyframes nexus-stepper-check-in {
3768
+ 0% { opacity: 0; transform: scale(0) rotate(-45deg); }
3769
+ 60% { opacity: 1; transform: scale(1.2) rotate(0deg); }
3770
+ 100% { opacity: 1; transform: scale(1) rotate(0deg); }
3771
+ }
3772
+ @keyframes nexus-stepper-label-slide {
3773
+ 0% { opacity: 0; transform: translateY(4px); }
3774
+ 100% { opacity: 1; transform: translateY(0); }
3775
+ }
3776
+
3777
+ .nexus-stepper__step--active .nexus-stepper__indicator {
3778
+ animation: nexus-stepper-pulse 2s ease-in-out infinite;
3779
+ }
3780
+
3781
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__indicator {
3782
+ animation:
3783
+ nexus-stepper-pop 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
3784
+ nexus-stepper-pulse 2s ease-in-out 500ms infinite;
3785
+ }
3786
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__label {
3787
+ animation: nexus-stepper-label-slide 350ms ease-out both;
3788
+ }
3789
+ .nexus-stepper__step--animating.nexus-stepper__step--active .nexus-stepper__description {
3790
+ animation: nexus-stepper-label-slide 350ms ease-out 50ms both;
3791
+ }
3792
+
3793
+ @media (prefers-reduced-motion: reduce) {
3794
+ .nexus-stepper__step--active .nexus-stepper__indicator,
3795
+ .nexus-stepper__step--animating .nexus-stepper__indicator,
3796
+ .nexus-stepper__step--animating .nexus-stepper__label,
3797
+ .nexus-stepper__step--animating .nexus-stepper__description,
3798
+ .nexus-stepper__check { animation: none !important; }
3799
+ }
3800
+
3756
3801
  /* ═══════════════════════════════════════════
3757
3802
  TagInput
3758
3803
  ═══════════════════════════════════════════ */
package/dist/styles.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { built_default } from './chunks/chunk-6ECGMUT6.mjs';
1
+ import { built_default } from './chunks/chunk-S6ODYMFP.mjs';
2
2
  import './chunks/chunk-CVYXRSXT.mjs';
3
3
 
4
4
  // src/styles/inject.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/design-system",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "NEXUS Design System UI Components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -348,7 +348,7 @@
348
348
  "typescript": "^5.0.0",
349
349
  "vitest": "^1.6.1",
350
350
  "zod-to-json-schema": "^3.25.2",
351
- "@nexus-cross/tokens": "1.0.13"
351
+ "@nexus-cross/tokens": "1.0.14"
352
352
  },
353
353
  "scripts": {
354
354
  "postinstall": "node scripts/setup-cursor-rules.cjs",