paris 0.13.5 → 0.13.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # paris
2
2
 
3
+ ## 0.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 1d092ca: Dropdowns: fix z-index positioning with transition containers
8
+
3
9
  ## 0.13.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "paris",
3
3
  "author": "Sanil Chawla <sanil@slingshot.fm> (https://sanil.co)",
4
4
  "description": "Paris is Slingshot's React design system. It's a collection of reusable components, design tokens, and guidelines that help us build consistent, accessible, and performant user interfaces.",
5
- "version": "0.13.5",
5
+ "version": "0.13.6",
6
6
  "homepage": "https://paris.slingshot.fm",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -2,6 +2,8 @@
2
2
 
3
3
  import type { ComponentPropsWithoutRef, CSSProperties, ReactNode } from 'react';
4
4
  import {
5
+ Fragment,
6
+
5
7
  useMemo, useId, useState,
6
8
  } from 'react';
7
9
  import { Combobox as HCombobox, Transition } from '@headlessui/react';
@@ -282,6 +284,8 @@ export function Combobox<T extends Record<string, any> = Record<string, any>>({
282
284
  )}
283
285
  </div>
284
286
  <Transition
287
+ as="div"
288
+ className={dropdownStyles.transitionContainer}
285
289
  enter={dropdownStyles.transition}
286
290
  enterFrom={dropdownStyles.enterFrom}
287
291
  enterTo={dropdownStyles.enterTo}
@@ -64,7 +64,8 @@ Menu.Items = ({
64
64
  className, children, position = 'left', ...props
65
65
  }) => (
66
66
  <Transition
67
- as={Fragment}
67
+ as="div"
68
+ className={dropdownStyles.transitionContainer}
68
69
  enter={dropdownStyles.transition}
69
70
  enterFrom={dropdownStyles.enterFrom}
70
71
  enterTo={dropdownStyles.enterTo}
@@ -24,11 +24,6 @@
24
24
  align-items: center;
25
25
  }
26
26
 
27
- .transitionContainer {
28
- position: relative;
29
- z-index: 10;
30
- }
31
-
32
27
  .options {
33
28
  max-height: var(--options-maxHeight, auto);
34
29
  overflow-y: auto;
@@ -184,13 +184,13 @@ export const Select = forwardRef(function <T = Record<string, any>>({
184
184
  </Listbox.Button>
185
185
  <Transition
186
186
  as="div"
187
+ className={dropdownStyles.transitionContainer}
187
188
  enter={dropdownStyles.transition}
188
189
  enterFrom={dropdownStyles.enterFrom}
189
190
  enterTo={dropdownStyles.enterTo}
190
191
  leave={dropdownStyles.transition}
191
192
  leaveFrom={dropdownStyles.leaveFrom}
192
193
  leaveTo={dropdownStyles.leaveTo}
193
- className={styles.transitionContainer}
194
194
  >
195
195
  <Listbox.Options
196
196
  className={clsx(
@@ -1,3 +1,8 @@
1
+ .transitionContainer {
2
+ position: relative;
3
+ z-index: 10;
4
+ }
5
+
1
6
  .transition {
2
7
  transition: var(--pte-animations-interaction);
3
8
  }