@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/main.js CHANGED
@@ -75,10 +75,10 @@ const StyledItemDescription = designSystemStitches.styled(designSystemPrimitive.
75
75
  gridArea: "item-description",
76
76
  fontSize: "$150",
77
77
  lineHeight: 1.5,
78
- color: "$text-neutrals-subtle",
78
+ color: "$text-secondary",
79
79
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
80
- background: "$background-neutrals-hover",
81
- color: "$text-neutrals-hover",
80
+ background: "$background-interactive-surface-hover",
81
+ color: "$text-interactive-secondary-hover",
82
82
  '&:not([aria-disabled="true"])': {
83
83
  boxShadow: "none"
84
84
  }
@@ -103,8 +103,8 @@ const itemDefaults = {
103
103
  boxSizing: "border-box",
104
104
  fontSize: 14,
105
105
  lineHeight: "20px",
106
- color: "$text-neutrals",
107
- borderRadius: "$50",
106
+ color: "$text-default",
107
+ borderRadius: "$list-item",
108
108
  display: "grid",
109
109
  gridTemplateColumns: "auto 1fr minmax(min-content, var(--right-slot-max-width))",
110
110
  gridTemplateRows: "auto minmax(0, 1fr)",
@@ -125,7 +125,7 @@ const itemDefaults = {
125
125
  '&:disabled, &[aria-disabled="true"], &[data-disabled]': {
126
126
  cursor: "default",
127
127
  ["&, & ".concat(StyledItemDescription, ", & ").concat(designSystemBaseHotkey.Hotkey)]: {
128
- color: "$text-neutrals-disabled"
128
+ color: "$text-disabled"
129
129
  },
130
130
  ["& ".concat(StyledIllustrationSlot)]: {
131
131
  filter: "grayscale(1)"
@@ -135,16 +135,16 @@ const itemDefaults = {
135
135
  pointerEvents: "none"
136
136
  },
137
137
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
138
- background: "$background-neutrals-hover",
139
- color: "$text-neutrals-hover",
138
+ background: "$background-interactive-surface-hover",
139
+ color: "$text-default",
140
140
  '&:not([aria-disabled="true"])': {
141
141
  boxShadow: "none"
142
142
  }
143
143
  },
144
144
  '&:active:not([aria-disabled="true"])': {
145
- background: "$background-primary-subtle-active",
145
+ background: "$background-interactive-secondary-selected",
146
146
  boxShadow: "none",
147
- color: "$text-primary-active"
147
+ color: "$text-on-interactive-selected"
148
148
  },
149
149
  '&[tabindex="0"]': {
150
150
  zIndex: "1"
@@ -165,7 +165,7 @@ const disabledSelector = '&[aria-disabled="true"] '.concat(StyledIndicator, ", &
165
165
  const StyledCheckboxItem = designSystemStitches.styled(RadixDropdownMenu__namespace.CheckboxItem, {
166
166
  ...itemDefaults,
167
167
  ["".concat(StyledIndicator)]: {
168
- borderRadius: "$50",
168
+ borderRadius: "$checkbox",
169
169
  boxSizing: "border-box"
170
170
  },
171
171
  variants: {
@@ -175,21 +175,21 @@ const StyledCheckboxItem = designSystemStitches.styled(RadixDropdownMenu__namesp
175
175
  square: "$4"
176
176
  },
177
177
  ["".concat(checkedSelector, ", ").concat(indeterminateSelector)]: {
178
- backgroundColor: "$background-primary-prominent",
179
- color: "$icon-primary-inverted"
178
+ backgroundColor: "$background-interactive-primary",
179
+ color: "$icon-on-interactive-primary"
180
180
  },
181
181
  [hoverCheckedSelector]: {
182
- backgroundColor: "$background-primary-prominent-hover"
182
+ backgroundColor: "$background-interactive-primary-hover"
183
183
  },
184
184
  [uncheckedSelector]: {
185
- border: "1px solid $border-neutrals-controls"
185
+ border: "1px solid $border-option"
186
186
  },
187
187
  [hoverUncheckedSelector]: {
188
- border: "1px solid $border-primary-hover"
188
+ border: "1px solid $border-interactive-primary-hover"
189
189
  },
190
190
  [disabledSelector]: {
191
- color: "$icon-neutrals-disabled",
192
- backgroundColor: "$background-neutrals-disabled"
191
+ color: "$icon-on-disabled",
192
+ backgroundColor: "$background-disabled"
193
193
  }
194
194
  },
195
195
  ghost: {
@@ -197,16 +197,16 @@ const StyledCheckboxItem = designSystemStitches.styled(RadixDropdownMenu__namesp
197
197
  square: "$3"
198
198
  },
199
199
  [checkedSelector]: {
200
- color: "$icon-primary"
200
+ color: "$icon-interactive-selected"
201
201
  },
202
202
  [indeterminateSelector]: {
203
- color: "$icon-primary"
203
+ color: "$icon-interactive-selected"
204
204
  },
205
205
  [hoverCheckedSelector]: {
206
- color: "$icon-primary-hover"
206
+ color: "$icon-interactive-selected"
207
207
  },
208
208
  [disabledSelector]: {
209
- color: "$icon-neutrals-disabled"
209
+ color: "$icon-disabled"
210
210
  }
211
211
  }
212
212
  }
@@ -393,14 +393,14 @@ const CONTENT_PADDING = {
393
393
  large: "$".concat(CONTENT_PADDING_TOKENS.large.y, " $").concat(CONTENT_PADDING_TOKENS.large.x)
394
394
  };
395
395
  const contentDefaults = {
396
- ...designSystemStyles.floating.css(),
396
+ ...designSystemStyles.floating.css({ radius: "$dropdown" }),
397
397
  maxWidth: "$125",
398
398
  position: "relative",
399
399
  zIndex: "$dropdown-menu",
400
400
  outline: "1px solid transparent !important",
401
401
  // important because Radix overrides outline in element styles
402
- backgroundColor: "$background-neutrals-layout",
403
- border: ".5px solid $border-neutrals-subtle"
402
+ backgroundColor: "$background-layout",
403
+ border: ".5px solid $border-subtle"
404
404
  };
405
405
 
406
406
  const StyledItemsContainer = designSystemStitches.styled("div", {
@@ -541,12 +541,12 @@ const StyledItem = designSystemStitches.styled(RadixDropdownMenu__namespace.Item
541
541
  subtle: {},
542
542
  danger: {
543
543
  '&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled])': {
544
- color: "$text-danger",
545
- backgroundColor: "$background-danger-subtle"
544
+ color: "$status-text-error",
545
+ backgroundColor: "$status-background-error"
546
546
  },
547
547
  '&:active:not([aria-disabled="true"],[data-disabled])': {
548
- color: "$text-danger-active",
549
- backgroundColor: "$background-danger-subtle-active"
548
+ color: "$status-text-error",
549
+ backgroundColor: "$status-background-error"
550
550
  }
551
551
  }
552
552
  }
@@ -594,7 +594,7 @@ const StyledRadioContainer = designSystemStitches.styled(designSystemPrimitive.P
594
594
  width: "$4",
595
595
  height: "$4",
596
596
  boxSizing: "border-box",
597
- border: "1px solid $border-neutrals",
597
+ border: "1px solid $border-option",
598
598
  borderRadius: "$round"
599
599
  });
600
600
  const StyledPill = designSystemStitches.styled(designSystemPrimitive.Primitive.div, {
@@ -610,23 +610,23 @@ const StyledProhibited = designSystemStitches.styled(designSystemIcons.IconProhi
610
610
  const StyledRadioItem = designSystemStitches.styled(RadixDropdownMenu__namespace.RadioItem, {
611
611
  ...itemDefaults,
612
612
  ["&[aria-checked=true] ".concat(StyledRadioContainer)]: {
613
- color: "$icon-primary",
614
- borderColor: "$border-primary",
613
+ color: "$icon-interactive-selected",
614
+ borderColor: "$border-interactive-selected",
615
615
  ["& ".concat(StyledPill)]: {
616
616
  display: "block",
617
- backgroundColor: "$background-primary-prominent-selected"
617
+ backgroundColor: "$background-interactive-selected"
618
618
  }
619
619
  },
620
620
  ['&:is(:hover,[data-hovered]):not([aria-disabled="true"],[data-disabled]) '.concat(StyledRadioContainer)]: {
621
621
  ["& ".concat(StyledPill)]: {
622
- backgroundColor: "$background-primary-prominent-hover"
622
+ backgroundColor: "$background-interactive-primary-hover"
623
623
  }
624
624
  },
625
625
  ['\n &[aria-disabled="true"] '.concat(StyledRadioContainer, ",\n &[data-disabled] ").concat(StyledRadioContainer, "\n ")]: {
626
- color: "$icon-neutrals-disabled",
627
- borderColor: "$border-neutrals-disabled",
626
+ color: "$icon-disabled",
627
+ borderColor: "$border-disabled",
628
628
  ["& ".concat(StyledPill)]: {
629
- backgroundColor: "$icon-neutrals-disabled"
629
+ backgroundColor: "$icon-disabled"
630
630
  }
631
631
  },
632
632
  "&[aria-checked=false]": {
@@ -636,7 +636,7 @@ const StyledRadioItem = designSystemStitches.styled(RadixDropdownMenu__namespace
636
636
  },
637
637
  ["".concat(StyledRadioContainer)]: {
638
638
  borderWidth: "2px",
639
- borderColor: "$border-neutrals-controls"
639
+ borderColor: "$border-option"
640
640
  }
641
641
  });
642
642
 
@@ -654,7 +654,7 @@ const RadioItem = React.forwardRef(({ disabled, children, closeOnSelect = false,
654
654
  });
655
655
 
656
656
  const StyledSeparator = designSystemStitches.styled(RadixDropdownMenu__namespace.Separator, {
657
- borderTop: "1px solid $border-neutrals-subtle"
657
+ borderTop: "1px solid $border-default"
658
658
  });
659
659
 
660
660
  const Separator = React.forwardRef((props, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(StyledSeparator, { ...props, ref: forwardRef }));
@@ -736,21 +736,21 @@ const Trigger = React.forwardRef(({ asChild = false, onClick, ...restProps }, fo
736
736
  });
737
737
 
738
738
  const StyledIconContainer = designSystemStitches.styled(designSystemPrimitive.Primitive.span, {
739
- color: "$icon-neutrals-with-text",
739
+ color: "$icon-default",
740
740
  display: "flex",
741
741
  alignItems: "center"
742
742
  });
743
743
  const StyledSubTrigger = designSystemStitches.styled(RadixDropdownMenu__namespace.SubTrigger, {
744
744
  ...itemDefaults,
745
745
  '&[data-state="open"]': {
746
- background: "$background-neutrals-hover",
747
- color: "$text-neutrals-hover",
746
+ background: "$background-interactive-surface-hover",
747
+ color: "$text-default",
748
748
  '&:not([aria-disabled="true"])': {
749
749
  boxShadow: "none"
750
750
  }
751
751
  },
752
752
  ['&[data-state="open"] '.concat(StyledIconContainer, ', &:is(:hover,[data-hovered]):not([aria-disabled="true"]) ').concat(StyledIconContainer)]: {
753
- color: "$icon-neutrals-hover"
753
+ color: "$icon-default"
754
754
  }
755
755
  });
756
756