@moises.ai/design-system 3.11.12 → 3.11.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.
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .DividerHorizontalIcon {
109
- color: var(--aqua-dark-alpha-11);
109
+ color: var(--aqua-alpha-11);
110
110
  display: none;
111
111
  }
112
112
 
@@ -120,22 +120,22 @@
120
120
 
121
121
  .Checkbox[aria-checked="mixed"] {
122
122
  border-radius: 3px;
123
- border: 1px solid var(--aqua-dark-alpha-7);
124
- background: var(--aqua-dark-alpha-2);
123
+ border: 1px solid var(--aqua-alpha-7);
124
+ background: var(--aqua-alpha-2);
125
125
  }
126
126
 
127
127
  .Checkbox[aria-checked="mixed"]:hover {
128
128
  border-radius: 3px;
129
- border: 1px solid var(--aqua-dark-alpha-8);
129
+ border: 1px solid var(--aqua-alpha-8);
130
130
  opacity: 0.88;
131
- background: var(--aqua-dark-alpha-3);
131
+ background: var(--aqua-alpha-3);
132
132
  cursor: pointer;
133
133
  }
134
134
 
135
135
  .Checkbox[aria-checked="mixed"]:active {
136
136
  border-radius: 3px;
137
- border: 1px solid var(--aqua-dark-alpha-8);
137
+ border: 1px solid var(--aqua-alpha-8);
138
138
  opacity: 0.82;
139
- background: var(--aqua-dark-alpha-3);
139
+ background: var(--aqua-alpha-3);
140
140
  cursor: pointer;
141
141
  }
@@ -50,7 +50,7 @@ export const DataTableRowSortable = React.memo(function DataTableRowSortable({
50
50
  ...(transition ? { transition } : {}),
51
51
  }
52
52
  const rowStyle = isSelected
53
- ? { ...sortableStyle, '--row-bg': 'var(--aqua-dark-alpha-2)' }
53
+ ? { ...sortableStyle, '--row-bg': 'var(--aqua-alpha-2)' }
54
54
  : sortableStyle
55
55
 
56
56
  const handleRowClick = (e) => {
@@ -48,7 +48,7 @@
48
48
  height: 100%;
49
49
  width: var(--radix-slider-range);
50
50
  border-radius: 9999px;
51
- background-color: var(--aqua-dark-alpha-8);
51
+ background-color: var(--aqua-alpha-8);
52
52
  &:hover {
53
53
  cursor: pointer;
54
54
  }
@@ -96,7 +96,7 @@ export const MultiSelect = ({
96
96
  <Text
97
97
  size="1"
98
98
  style={{
99
- color: 'var(--aqua-dark-alpha-9)',
99
+ color: 'var(--aqua-alpha-9)',
100
100
  verticalAlign: 'top',
101
101
  }}
102
102
  >
@@ -33,7 +33,7 @@
33
33
  .starButton.filled.active,
34
34
  .starButton.filled.active.hovered,
35
35
  .starButton.filled.active:focus {
36
- background-color: var(--aqua-dark-5) !important;
36
+ background-color: var(--aqua-5) !important;
37
37
  }
38
38
 
39
39
  .starButton.disabled {
@@ -103,7 +103,7 @@ export const Select = ({
103
103
  <Text
104
104
  size="1"
105
105
  style={{
106
- color: 'var(--aqua-dark-alpha-9)',
106
+ color: 'var(--aqua-alpha-9)',
107
107
  verticalAlign: 'top',
108
108
  }}
109
109
  >
@@ -452,8 +452,8 @@ sectionTitle {
452
452
  opacity: 0;
453
453
  }
454
454
  .newSetlistItemButton {
455
- color: var(--aqua-dark-alpha-11) !important;
455
+ color: var(--aqua-alpha-11) !important;
456
456
  }
457
457
  .plusIcon {
458
- color: var(--aqua-dark-alpha-11);
458
+ color: var(--aqua-alpha-11);
459
459
  }
@@ -1,3 +1,3 @@
1
1
  .plusIcon {
2
- color: var(--aqua-dark-alpha-11);
2
+ color: var(--aqua-alpha-11);
3
3
  }
@@ -58,20 +58,20 @@
58
58
  height: 100%;
59
59
  width: var(--radix-slider-range);
60
60
  border-radius: 9999px;
61
- /* background-color: var(--aqua-dark-alpha-8); */
61
+ /* background-color: var(--aqua-alpha-8); */
62
62
  &:hover {
63
63
  cursor: pointer;
64
64
  }
65
65
  }
66
66
  .sliderRangeAccent {
67
- background-color: var(--aqua-dark-alpha-8);
67
+ background-color: var(--aqua-alpha-8);
68
68
  }
69
69
  .sliderRangeNeutral {
70
70
  background-color: var(--neutral-11);
71
71
  }
72
72
 
73
73
  .sliderRangeHighContrastAccent {
74
- background-color: var(--aqua-dark-12);
74
+ background-color: var(--aqua-12);
75
75
  }
76
76
 
77
77
  .sliderRangeHighContrastNeutral {
@@ -0,0 +1,15 @@
1
+ export const MinusIcon = ({ width = 16, height = 16, className, ...props }) => (
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width={width}
5
+ height={height}
6
+ viewBox="0 0 16 16"
7
+ fill="none"
8
+ className={className} {...props}>
9
+ <g >
10
+ <path d="M3.33325 8H12.6666" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
11
+ </g>
12
+ </svg>
13
+ )
14
+
15
+ MinusIcon.displayName = 'MinusIcon'
package/src/icons.jsx CHANGED
@@ -351,3 +351,4 @@ export { ChevronRightFilledIcon } from './icons/ChevronRightFilledIcon'
351
351
  export { ChevronDownFilledIcon } from './icons/ChevronDownFilledIcon'
352
352
  export { Share2Icon } from './icons/Share2Icon'
353
353
  export { TrackPreviousIcon } from './icons/TrackPreviousIcon'
354
+ export { MinusIcon } from './icons/MinusIcon'
package/src/index.jsx CHANGED
@@ -78,10 +78,10 @@ export { AdditionalItems } from './components/AdditionalItems/AdditionalItems'
78
78
  export { BannerAnnouncement } from './components/BannerAnnouncement/BannerAnnouncement'
79
79
  export { Button } from './components/Button/Button'
80
80
  export { Callout } from './components/Callout/Callout'
81
+ export { CanvasContextMenu } from './components/CanvasContextMenu/CanvasContextMenu'
81
82
  export { Card as CardWidget } from './components/Card/Card'
82
83
  export { Checkbox } from './components/Checkbox/Checkbox'
83
84
  export { CigarBar } from './components/CigarBar/CigarBar'
84
- export { CanvasContextMenu } from './components/ContextMenu/CanvasContextMenu'
85
85
  export { ContextMenu } from './components/ContextMenu/ContextMenu'
86
86
  export { Countdown } from './components/Countdown/Countdown'
87
87
  export { DataTable } from './components/DataTable/DataTable'
@@ -408,18 +408,18 @@
408
408
  }
409
409
 
410
410
  .cyan {
411
- color: var(--aqua-dark-alpha-11);
411
+ color: var(--aqua-alpha-11);
412
412
 
413
413
  & .label,
414
414
  & .leftIcon,
415
415
  & .rightIcon,
416
416
  & .checkboxIndicatorSlot {
417
- color: var(--aqua-dark-alpha-11);
417
+ color: var(--aqua-alpha-11);
418
418
  }
419
419
 
420
420
  & .leftIcon > svg,
421
421
  & .rightIcon > svg,
422
422
  & .menuCheckboxIndicator > svg {
423
- color: var(--aqua-dark-alpha-11);
423
+ color: var(--aqua-alpha-11);
424
424
  }
425
425
  }
@@ -1,73 +0,0 @@
1
- import classNames from 'classnames'
2
- import { ContextMenu as ContextMenuRadix } from 'radix-ui'
3
- import React, { forwardRef, memo } from 'react'
4
-
5
- import { createRenderItem, styles } from '../../lib/menu'
6
-
7
- const renderOption = createRenderItem(ContextMenuRadix)
8
-
9
- /**
10
- * Variant of ContextMenu for programmatic opening from non-DOM event sources
11
- * (e.g. Pixi canvas). Instead of wrapping a visible trigger element, it exposes
12
- * a ref to an internal hidden div that can receive a synthetic `contextmenu` event.
13
- *
14
- * Usage:
15
- * const triggerRef = useRef(null)
16
- * triggerRef.current?.dispatchEvent(
17
- * new MouseEvent('contextmenu', { bubbles: true, clientX: x, clientY: y })
18
- * )
19
- * ...
20
- * <CanvasContextMenu ref={triggerRef} options={[...]}>
21
- * {children} // rendered between trigger and content, inside the same Root
22
- * </CanvasContextMenu>
23
- */
24
- export const CanvasContextMenu = memo(
25
- forwardRef(function CanvasContextMenu(
26
- {
27
- children,
28
- options,
29
- className,
30
- size = '2',
31
- onSelectionChange,
32
- closeOnSelect = true,
33
- ...props
34
- },
35
- ref,
36
- ) {
37
- return (
38
- // The outer div catches the bubbling contextmenu event AFTER Radix has already
39
- // processed it on the trigger, suppressing the browser's native context menu
40
- // without interfering with Radix's own handler.
41
- <div onContextMenu={(e) => e.preventDefault()} style={{ display: 'contents' }}>
42
- <ContextMenuRadix.Root>
43
- <ContextMenuRadix.Trigger asChild>
44
- <div
45
- ref={ref}
46
- style={{ position: 'fixed', width: 0, height: 0, pointerEvents: 'none' }}
47
- />
48
- </ContextMenuRadix.Trigger>
49
- {children}
50
- {options?.length > 0 && (
51
- <ContextMenuRadix.Content
52
- className={classNames(styles.menuContent, className)}
53
- side={props.side}
54
- align={props.align}
55
- sideOffset={5}
56
- alignOffset={0}
57
- onCloseAutoFocus={(event) => {
58
- event.preventDefault()
59
- }}
60
- onClick={(event) => event.stopPropagation()}
61
- >
62
- {options?.map((option) =>
63
- renderOption(option, size, onSelectionChange, closeOnSelect),
64
- )}
65
- </ContextMenuRadix.Content>
66
- )}
67
- </ContextMenuRadix.Root>
68
- </div>
69
- )
70
- }),
71
- )
72
-
73
- CanvasContextMenu.displayName = 'CanvasContextMenu'