@mirohq/design-system-dropdown-menu 5.4.20 → 5.4.21

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/module.js CHANGED
@@ -55,10 +55,10 @@ const StyledItemDescription = styled(Primitive.div, {
55
55
  gridArea: "item-description",
56
56
  fontSize: "$150",
57
57
  lineHeight: 1.5,
58
- color: "$text-neutrals-subtle",
58
+ color: "$text-secondary",
59
59
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
60
- background: "$background-neutrals-hover",
61
- color: "$text-neutrals-hover",
60
+ background: "$background-interactive-surface-hover",
61
+ color: "$text-interactive-secondary-hover",
62
62
  '&:not([aria-disabled="true"])': {
63
63
  boxShadow: "none"
64
64
  }
@@ -83,8 +83,8 @@ const itemDefaults = {
83
83
  boxSizing: "border-box",
84
84
  fontSize: 14,
85
85
  lineHeight: "20px",
86
- color: "$text-neutrals",
87
- borderRadius: "$50",
86
+ color: "$text-default",
87
+ borderRadius: "$list-item",
88
88
  display: "grid",
89
89
  gridTemplateColumns: "auto 1fr minmax(min-content, var(--right-slot-max-width))",
90
90
  gridTemplateRows: "auto minmax(0, 1fr)",
@@ -105,7 +105,7 @@ const itemDefaults = {
105
105
  '&:disabled, &[aria-disabled="true"], &[data-disabled]': {
106
106
  cursor: "default",
107
107
  ["&, & ".concat(StyledItemDescription, ", & ").concat(Hotkey$1)]: {
108
- color: "$text-neutrals-disabled"
108
+ color: "$text-disabled"
109
109
  },
110
110
  ["& ".concat(StyledIllustrationSlot)]: {
111
111
  filter: "grayscale(1)"
@@ -115,16 +115,16 @@ const itemDefaults = {
115
115
  pointerEvents: "none"
116
116
  },
117
117
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
118
- background: "$background-neutrals-hover",
119
- color: "$text-neutrals-hover",
118
+ background: "$background-interactive-surface-hover",
119
+ color: "$text-default",
120
120
  '&:not([aria-disabled="true"])': {
121
121
  boxShadow: "none"
122
122
  }
123
123
  },
124
124
  '&:active:not([aria-disabled="true"])': {
125
- background: "$background-primary-subtle-active",
125
+ background: "$background-interactive-secondary-selected",
126
126
  boxShadow: "none",
127
- color: "$text-primary-active"
127
+ color: "$text-on-interactive-selected"
128
128
  },
129
129
  '&[tabindex="0"]': {
130
130
  zIndex: "1"
@@ -145,7 +145,7 @@ const disabledSelector = '&[aria-disabled="true"] '.concat(StyledIndicator, ", &
145
145
  const StyledCheckboxItem = styled(RadixDropdownMenu.CheckboxItem, {
146
146
  ...itemDefaults,
147
147
  ["".concat(StyledIndicator)]: {
148
- borderRadius: "$50",
148
+ borderRadius: "$checkbox",
149
149
  boxSizing: "border-box"
150
150
  },
151
151
  variants: {
@@ -155,21 +155,21 @@ const StyledCheckboxItem = styled(RadixDropdownMenu.CheckboxItem, {
155
155
  square: "$4"
156
156
  },
157
157
  ["".concat(checkedSelector, ", ").concat(indeterminateSelector)]: {
158
- backgroundColor: "$background-primary-prominent",
159
- color: "$icon-primary-inverted"
158
+ backgroundColor: "$background-interactive-primary",
159
+ color: "$icon-on-interactive-primary"
160
160
  },
161
161
  [hoverCheckedSelector]: {
162
- backgroundColor: "$background-primary-prominent-hover"
162
+ backgroundColor: "$background-interactive-primary-hover"
163
163
  },
164
164
  [uncheckedSelector]: {
165
- border: "1px solid $border-neutrals-controls"
165
+ border: "1px solid $border-option"
166
166
  },
167
167
  [hoverUncheckedSelector]: {
168
- border: "1px solid $border-primary-hover"
168
+ border: "1px solid $border-interactive-primary-hover"
169
169
  },
170
170
  [disabledSelector]: {
171
- color: "$icon-neutrals-disabled",
172
- backgroundColor: "$background-neutrals-disabled"
171
+ color: "$icon-on-disabled",
172
+ backgroundColor: "$background-disabled"
173
173
  }
174
174
  },
175
175
  ghost: {
@@ -177,16 +177,16 @@ const StyledCheckboxItem = styled(RadixDropdownMenu.CheckboxItem, {
177
177
  square: "$3"
178
178
  },
179
179
  [checkedSelector]: {
180
- color: "$icon-primary"
180
+ color: "$icon-interactive-selected"
181
181
  },
182
182
  [indeterminateSelector]: {
183
- color: "$icon-primary"
183
+ color: "$icon-interactive-selected"
184
184
  },
185
185
  [hoverCheckedSelector]: {
186
- color: "$icon-primary-hover"
186
+ color: "$icon-interactive-selected"
187
187
  },
188
188
  [disabledSelector]: {
189
- color: "$icon-neutrals-disabled"
189
+ color: "$icon-disabled"
190
190
  }
191
191
  }
192
192
  }
@@ -373,14 +373,14 @@ const CONTENT_PADDING = {
373
373
  large: "$".concat(CONTENT_PADDING_TOKENS.large.y, " $").concat(CONTENT_PADDING_TOKENS.large.x)
374
374
  };
375
375
  const contentDefaults = {
376
- ...floating.css(),
376
+ ...floating.css({ radius: "$dropdown" }),
377
377
  maxWidth: "$125",
378
378
  position: "relative",
379
379
  zIndex: "$dropdown-menu",
380
380
  outline: "1px solid transparent !important",
381
381
  // important because Radix overrides outline in element styles
382
- backgroundColor: "$background-neutrals-layout",
383
- border: ".5px solid $border-neutrals-subtle"
382
+ backgroundColor: "$background-layout",
383
+ border: ".5px solid $border-subtle"
384
384
  };
385
385
 
386
386
  const StyledItemsContainer = styled("div", {
@@ -521,12 +521,12 @@ const StyledItem = styled(RadixDropdownMenu.Item, {
521
521
  subtle: {},
522
522
  danger: {
523
523
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
524
- color: "$text-danger",
525
- backgroundColor: "$background-danger-subtle"
524
+ color: "$status-text-error",
525
+ backgroundColor: "$status-background-error"
526
526
  },
527
527
  '&:active:not([aria-disabled="true"],[data-disabled])': {
528
- color: "$text-danger-active",
529
- backgroundColor: "$background-danger-subtle-active"
528
+ color: "$status-text-error",
529
+ backgroundColor: "$status-background-error"
530
530
  }
531
531
  }
532
532
  }
@@ -574,7 +574,7 @@ const StyledRadioContainer = styled(Primitive.div, {
574
574
  width: "$4",
575
575
  height: "$4",
576
576
  boxSizing: "border-box",
577
- border: "1px solid $border-neutrals",
577
+ border: "1px solid $border-option",
578
578
  borderRadius: "$round"
579
579
  });
580
580
  const StyledPill = styled(Primitive.div, {
@@ -590,23 +590,23 @@ const StyledProhibited = styled(IconProhibit, {
590
590
  const StyledRadioItem = styled(RadixDropdownMenu.RadioItem, {
591
591
  ...itemDefaults,
592
592
  ["&[aria-checked=true] ".concat(StyledRadioContainer)]: {
593
- color: "$icon-primary",
594
- borderColor: "$border-primary",
593
+ color: "$icon-interactive-selected",
594
+ borderColor: "$border-interactive-selected",
595
595
  ["& ".concat(StyledPill)]: {
596
596
  display: "block",
597
- backgroundColor: "$background-primary-prominent-selected"
597
+ backgroundColor: "$background-interactive-selected"
598
598
  }
599
599
  },
600
600
  ['&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled]) '.concat(StyledRadioContainer)]: {
601
601
  ["& ".concat(StyledPill)]: {
602
- backgroundColor: "$background-primary-prominent-hover"
602
+ backgroundColor: "$background-interactive-primary-hover"
603
603
  }
604
604
  },
605
605
  ['\n &[aria-disabled="true"] '.concat(StyledRadioContainer, ",\n &[data-disabled] ").concat(StyledRadioContainer, "\n ")]: {
606
- color: "$icon-neutrals-disabled",
607
- borderColor: "$border-neutrals-disabled",
606
+ color: "$icon-disabled",
607
+ borderColor: "$border-disabled",
608
608
  ["& ".concat(StyledPill)]: {
609
- backgroundColor: "$icon-neutrals-disabled"
609
+ backgroundColor: "$icon-disabled"
610
610
  }
611
611
  },
612
612
  "&[aria-checked=false]": {
@@ -616,7 +616,7 @@ const StyledRadioItem = styled(RadixDropdownMenu.RadioItem, {
616
616
  },
617
617
  ["".concat(StyledRadioContainer)]: {
618
618
  borderWidth: "2px",
619
- borderColor: "$border-neutrals-controls"
619
+ borderColor: "$border-option"
620
620
  }
621
621
  });
622
622
 
@@ -634,7 +634,7 @@ const RadioItem = React.forwardRef(({ disabled, children, closeOnSelect = false,
634
634
  });
635
635
 
636
636
  const StyledSeparator = styled(RadixDropdownMenu.Separator, {
637
- borderTop: "1px solid $border-neutrals-subtle"
637
+ borderTop: "1px solid $border-default"
638
638
  });
639
639
 
640
640
  const Separator = React.forwardRef((props, forwardRef) => /* @__PURE__ */ jsx(StyledSeparator, { ...props, ref: forwardRef }));
@@ -716,21 +716,21 @@ const Trigger = React.forwardRef(({ asChild = false, onClick, ...restProps }, fo
716
716
  });
717
717
 
718
718
  const StyledIconContainer = styled(Primitive.span, {
719
- color: "$icon-neutrals-with-text",
719
+ color: "$icon-default",
720
720
  display: "flex",
721
721
  alignItems: "center"
722
722
  });
723
723
  const StyledSubTrigger = styled(RadixDropdownMenu.SubTrigger, {
724
724
  ...itemDefaults,
725
725
  '&[data-state="open"]': {
726
- background: "$background-neutrals-hover",
727
- color: "$text-neutrals-hover",
726
+ background: "$background-interactive-surface-hover",
727
+ color: "$text-default",
728
728
  '&:not([aria-disabled="true"])': {
729
729
  boxShadow: "none"
730
730
  }
731
731
  },
732
732
  ['&[data-state="open"] '.concat(StyledIconContainer, ', &:is(:hover,[data-hovered]):not([aria-disabled="true"]) ').concat(StyledIconContainer)]: {
733
- color: "$icon-neutrals-hover"
733
+ color: "$icon-default"
734
734
  }
735
735
  });
736
736