dash-ui-kit 1.0.93 → 1.0.94

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.
@@ -3,6 +3,7 @@ interface ProgressStepBarProps {
3
3
  currentStep: number;
4
4
  totalSteps: number;
5
5
  className?: string;
6
+ color?: 'blue' | 'red' | 'orange';
6
7
  }
7
- export declare function ProgressStepBar({ currentStep, totalSteps, className }: ProgressStepBarProps): React.JSX.Element;
8
+ export declare function ProgressStepBar({ currentStep, totalSteps, className, color }: ProgressStepBarProps): React.JSX.Element;
8
9
  export type { ProgressStepBarProps };
@@ -11447,20 +11447,42 @@ const TransactionStatusIcon = _a => {
11447
11447
  }, props)) : null;
11448
11448
  };
11449
11449
 
11450
+ const colorConfig = {
11451
+ blue: {
11452
+ active: 'bg-[var(--color-dash-brand)]',
11453
+ activeDark: 'bg-[var(--color-dash-brand-dim)]',
11454
+ inactive: 'bg-[rgba(76,126,255,0.16)]',
11455
+ inactiveDark: 'bg-gray-700'
11456
+ },
11457
+ red: {
11458
+ active: 'bg-[var(--color-dash-red)]',
11459
+ activeDark: 'bg-[var(--color-dash-red-75)]',
11460
+ inactive: 'bg-[var(--color-dash-red-15)]',
11461
+ inactiveDark: 'bg-gray-700'
11462
+ },
11463
+ orange: {
11464
+ active: 'bg-[var(--color-dash-orange)]',
11465
+ activeDark: 'bg-[var(--color-dash-orange-75)]',
11466
+ inactive: 'bg-[var(--color-dash-orange-15)]',
11467
+ inactiveDark: 'bg-gray-700'
11468
+ }
11469
+ };
11450
11470
  function ProgressStepBar({
11451
11471
  currentStep,
11452
11472
  totalSteps,
11453
- className = ''
11473
+ className = '',
11474
+ color = 'blue'
11454
11475
  }) {
11455
11476
  const {
11456
11477
  theme
11457
11478
  } = useTheme();
11479
+ const colors = colorConfig[color];
11458
11480
  return jsxRuntime.jsx("div", {
11459
11481
  className: `flex gap-2 w-full ${className}`,
11460
11482
  children: Array.from({
11461
11483
  length: totalSteps
11462
11484
  }, (_, index) => jsxRuntime.jsx("div", {
11463
- className: `h-1.5 rounded-2xl flex-1 transition-colors ${index < currentStep ? theme === 'dark' ? 'bg-[var(--color-dash-brand-dim)]' : 'bg-[var(--color-dash-brand)]' : theme === 'dark' ? 'bg-gray-700' : 'bg-[rgba(76,126,255,0.16)]'}`
11485
+ className: `h-1.5 rounded-2xl flex-1 transition-colors ${index < currentStep ? theme === 'dark' ? colors.activeDark : colors.active : theme === 'dark' ? colors.inactiveDark : colors.inactive}`
11464
11486
  }, index))
11465
11487
  });
11466
11488
  }