@moises.ai/design-system 3.9.6 → 3.9.8

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/index.js CHANGED
@@ -5578,6 +5578,7 @@ const p1 = ({
5578
5578
  type: "button",
5579
5579
  "aria-label": "increment",
5580
5580
  onClick: i,
5581
+ disabled: t != null && e <= t,
5581
5582
  style: {
5582
5583
  backgroundColor: "var(--neutral-alpha-3 )"
5583
5584
  },
@@ -5604,6 +5605,7 @@ const p1 = ({
5604
5605
  type: "button",
5605
5606
  "aria-label": "decrement",
5606
5607
  onClick: o,
5608
+ disabled: r != null && e >= r,
5607
5609
  style: {
5608
5610
  backgroundColor: "var(--neutral-alpha-3 )"
5609
5611
  },
@@ -5661,7 +5663,7 @@ const p1 = ({
5661
5663
  children: /* @__PURE__ */ s(D, { size: "2", asChild: !0, children: /* @__PURE__ */ s("span", { className: cn.trackTitle, children: a }) })
5662
5664
  }
5663
5665
  ),
5664
- u && i.length > 1 && /* @__PURE__ */ s(
5666
+ /* @__PURE__ */ s(
5665
5667
  p1,
5666
5668
  {
5667
5669
  min: p,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.9.6",
3
+ "version": "3.9.8",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -35,6 +35,7 @@ export const NumberPicker = ({
35
35
  type="button"
36
36
  aria-label="increment"
37
37
  onClick={onDecrement}
38
+ disabled={min != null && value <= min}
38
39
  style={{
39
40
  backgroundColor: 'var(--neutral-alpha-3 )',
40
41
  }}
@@ -59,6 +60,7 @@ export const NumberPicker = ({
59
60
  type="button"
60
61
  aria-label="decrement"
61
62
  onClick={onIncrement}
63
+ disabled={max != null && value >= max}
62
64
  style={{
63
65
  backgroundColor: 'var(--neutral-alpha-3 )',
64
66
  }}
@@ -72,14 +72,12 @@ const ProjectTrackVoice = ({
72
72
  </Text>
73
73
  </Flex>
74
74
 
75
- {hasTransfers && transfers.length > 1 && (
76
- <NumberPicker
77
- min={min}
78
- max={max}
79
- value={pitchShiftSelected}
80
- onChange={handleChangeTransfer}
81
- />
82
- )}
75
+ <NumberPicker
76
+ min={min}
77
+ max={max}
78
+ value={pitchShiftSelected}
79
+ onChange={handleChangeTransfer}
80
+ />
83
81
  </Flex>
84
82
  </Flex>
85
83
  )