@tamagui/select 1.0.1-beta.119 → 1.0.1-beta.122

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.
Files changed (49) hide show
  1. package/dist/cjs/Select.js +36 -32
  2. package/dist/cjs/Select.js.map +2 -2
  3. package/dist/cjs/SelectContent.js +2 -1
  4. package/dist/cjs/SelectContent.js.map +2 -2
  5. package/dist/cjs/SelectImpl.js +154 -284
  6. package/dist/cjs/SelectImpl.js.map +2 -2
  7. package/dist/cjs/SelectScrollButton.js +54 -40
  8. package/dist/cjs/SelectScrollButton.js.map +2 -2
  9. package/dist/cjs/SelectViewport.js +10 -6
  10. package/dist/cjs/SelectViewport.js.map +2 -2
  11. package/dist/cjs/types.js.map +1 -1
  12. package/dist/esm/Select.js +36 -32
  13. package/dist/esm/Select.js.map +2 -2
  14. package/dist/esm/SelectContent.js +3 -2
  15. package/dist/esm/SelectContent.js.map +2 -2
  16. package/dist/esm/SelectImpl.js +158 -286
  17. package/dist/esm/SelectImpl.js.map +2 -2
  18. package/dist/esm/SelectScrollButton.js +54 -40
  19. package/dist/esm/SelectScrollButton.js.map +2 -2
  20. package/dist/esm/SelectViewport.js +10 -6
  21. package/dist/esm/SelectViewport.js.map +2 -2
  22. package/dist/jsx/Select.js +34 -34
  23. package/dist/jsx/Select.js.map +2 -2
  24. package/dist/jsx/SelectContent.js +3 -2
  25. package/dist/jsx/SelectContent.js.map +2 -2
  26. package/dist/jsx/SelectImpl.js +128 -266
  27. package/dist/jsx/SelectImpl.js.map +2 -2
  28. package/dist/jsx/SelectScrollButton.js +53 -39
  29. package/dist/jsx/SelectScrollButton.js.map +2 -2
  30. package/dist/jsx/SelectViewport.js +10 -6
  31. package/dist/jsx/SelectViewport.js.map +2 -2
  32. package/package.json +15 -15
  33. package/src/Select.tsx +47 -49
  34. package/src/SelectContent.tsx +4 -2
  35. package/src/SelectImpl.tsx +179 -369
  36. package/src/SelectScrollButton.tsx +72 -54
  37. package/src/SelectViewport.tsx +12 -6
  38. package/src/types.tsx +9 -1
  39. package/types/Select.d.ts +15 -15
  40. package/types/Select.d.ts.map +1 -1
  41. package/types/SelectContent.d.ts +0 -1
  42. package/types/SelectContent.d.ts.map +1 -1
  43. package/types/SelectImpl.d.ts.map +1 -1
  44. package/types/SelectViewport.d.ts +3 -3
  45. package/types/SelectViewport.d.ts.map +1 -1
  46. package/types/types.d.ts +9 -1
  47. package/types/types.d.ts.map +1 -1
  48. package/types/constants.d.ts +0 -8
  49. package/types/constants.d.ts.map +0 -1
@@ -3,8 +3,8 @@ import { useComposedRefs } from '@tamagui/compose-refs'
3
3
  import { TamaguiElement } from '@tamagui/core'
4
4
  import { YStack } from '@tamagui/stacks'
5
5
  import * as React from 'react'
6
+ import { flushSync } from 'react-dom'
6
7
 
7
- import { SCROLL_ARROW_THRESHOLD, SCROLL_ARROW_VELOCITY } from './constants'
8
8
  import { useSelectContext } from './context'
9
9
  import { ScopedProps, SelectScrollButtonImplProps, SelectScrollButtonProps } from './types'
10
10
 
@@ -56,74 +56,60 @@ const SelectScrollButtonImpl = React.memo(
56
56
  React.forwardRef<SelectScrollButtonImplElement, SelectScrollButtonImplProps>(
57
57
  (props: ScopedProps<SelectScrollButtonImplProps>, forwardedRef) => {
58
58
  const { __scopeSelect, dir, componentName, ...scrollIndicatorProps } = props
59
- const { floatingRef, increaseHeight, forceUpdate, ...context } = useSelectContext(
60
- componentName,
61
- __scopeSelect
62
- )
63
- const intervalRef = React.useRef<any>()
64
- const loopingRef = React.useRef(false)
59
+ const { floatingRef, forceUpdate, open, fallback, setScrollTop, setInnerOffset, ...context } =
60
+ useSelectContext(componentName, __scopeSelect)
61
+
62
+ const [element, setElement] = React.useState<HTMLElement | null>(null)
63
+ const statusRef = React.useRef<'idle' | 'active'>('idle')
65
64
  const isVisible = context[dir === 'down' ? 'canScrollDown' : 'canScrollUp']
65
+ const frameRef = React.useRef<any>()
66
66
 
67
67
  const { x, y, reference, floating, strategy, update, refs } = useFloating({
68
68
  strategy: 'fixed',
69
69
  placement: dir === 'up' ? 'top' : 'bottom',
70
70
  middleware: [offset(({ rects }) => -rects.floating.height)],
71
+ whileElementsMounted: (...args) => autoUpdate(...args, { animationFrame: true }),
71
72
  })
72
73
 
73
- const composedRefs = useComposedRefs(forwardedRef, floating)
74
-
75
- React.useLayoutEffect(() => {
76
- if (!floatingRef) return
77
- reference(floatingRef.current)
78
- // eslint-disable-next-line react-hooks/exhaustive-deps
79
- }, [reference, floatingRef?.current])
80
-
81
- React.useEffect(() => {
82
- if (!refs.reference.current || !refs.floating.current || !isVisible) {
83
- return
74
+ const composedRef = useComposedRefs(forwardedRef, floating)
75
+
76
+ if (floatingRef) {
77
+ if (open) {
78
+ if (element !== floatingRef.current) {
79
+ setElement(floatingRef.current)
80
+ reference(floatingRef.current)
81
+ requestAnimationFrame(update)
82
+ }
83
+ } else {
84
+ cancelAnimationFrame(frameRef.current)
84
85
  }
86
+ }
85
87
 
86
- const cleanup = autoUpdate(refs.reference.current, refs.floating.current, update, {
87
- animationFrame: true,
88
- })
89
-
88
+ React.useLayoutEffect(() => {
90
89
  return () => {
91
- clearInterval(intervalRef.current)
92
- loopingRef.current = false
93
- cleanup()
90
+ // eslint-disable-next-line react-hooks/exhaustive-deps
91
+ cancelAnimationFrame(frameRef.current)
94
92
  }
95
- }, [isVisible, update, refs.floating, refs.reference])
93
+ }, [])
96
94
 
97
- if (!isVisible) {
95
+ if (!isVisible || !floatingRef) {
98
96
  return null
99
97
  }
100
98
 
101
- const handleScrollArrowChange = () => {
102
- if (!floatingRef) return
103
- const floating = floatingRef.current
104
- const isUp = dir === 'up'
105
-
106
- if (floating) {
107
- const value = isUp ? -SCROLL_ARROW_VELOCITY : SCROLL_ARROW_VELOCITY
108
- const multi =
109
- (isUp && floating.scrollTop <= SCROLL_ARROW_THRESHOLD * 2) ||
110
- (!isUp &&
111
- floating.scrollTop >=
112
- floating.scrollHeight - floating.clientHeight - SCROLL_ARROW_THRESHOLD * 2)
113
- ? 2
114
- : 1
115
-
116
- floating.scrollTop += multi * (isUp ? -SCROLL_ARROW_VELOCITY : SCROLL_ARROW_VELOCITY)
117
-
118
- increaseHeight?.(floating, multi === 2 ? value * 2 : value)
119
- // Ensure derived data (scroll arrows) is fresh
120
- forceUpdate()
99
+ const onScroll = (amount: number) => {
100
+ if (fallback) {
101
+ if (refs.floating.current) {
102
+ refs.floating.current.scrollTop -= amount
103
+ flushSync(() => setScrollTop!(refs.floating.current?.scrollTop ?? 0))
104
+ }
105
+ } else {
106
+ flushSync(() => setInnerOffset!((value) => value - amount))
121
107
  }
122
108
  }
123
109
 
124
110
  return (
125
111
  <YStack
126
- ref={composedRefs}
112
+ ref={composedRef}
127
113
  componentName={componentName}
128
114
  aria-hidden
129
115
  {...scrollIndicatorProps}
@@ -133,15 +119,47 @@ const SelectScrollButtonImpl = React.memo(
133
119
  left={x || 0}
134
120
  top={y || 0}
135
121
  width={`calc(${(floatingRef?.current?.offsetWidth ?? 0) - 2}px)`}
136
- onPointerMove={() => {
137
- if (!loopingRef.current) {
138
- intervalRef.current = setInterval(handleScrollArrowChange, 1000 / 60)
139
- loopingRef.current = true
122
+ onPointerEnter={() => {
123
+ statusRef.current = 'active'
124
+ let prevNow = Date.now()
125
+
126
+ function frame() {
127
+ if (element) {
128
+ const currentNow = Date.now()
129
+ const msElapsed = currentNow - prevNow
130
+ prevNow = currentNow
131
+
132
+ const pixelsToScroll = msElapsed / 2
133
+
134
+ const remainingPixels =
135
+ dir === 'up'
136
+ ? element.scrollTop
137
+ : element.scrollHeight - element.clientHeight - element.scrollTop
138
+
139
+ const scrollRemaining =
140
+ dir === 'up'
141
+ ? element.scrollTop - pixelsToScroll > 0
142
+ : element.scrollTop + pixelsToScroll <
143
+ element.scrollHeight - element.clientHeight
144
+
145
+ onScroll(
146
+ dir === 'up'
147
+ ? Math.min(pixelsToScroll, remainingPixels)
148
+ : Math.max(-pixelsToScroll, -remainingPixels)
149
+ )
150
+
151
+ if (scrollRemaining) {
152
+ frameRef.current = requestAnimationFrame(frame)
153
+ }
154
+ }
140
155
  }
156
+
157
+ cancelAnimationFrame(frameRef.current)
158
+ frameRef.current = requestAnimationFrame(frame)
141
159
  }}
142
160
  onPointerLeave={() => {
143
- loopingRef.current = false
144
- clearInterval(intervalRef.current)
161
+ statusRef.current = 'idle'
162
+ cancelAnimationFrame(frameRef.current)
145
163
  }}
146
164
  />
147
165
  )
@@ -41,7 +41,6 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
41
41
  (props: ScopedProps<SelectViewportProps>, forwardedRef) => {
42
42
  const { __scopeSelect, children, ...viewportProps } = props
43
43
  const context = useSelectContext(VIEWPORT_NAME, __scopeSelect)
44
- const { style, ...floatingProps } = context.interactions?.getFloatingProps() ?? {}
45
44
  const breakpointActive = useSelectBreakpointActive(context.sheetBreakpoint)
46
45
 
47
46
  if (breakpointActive || !isWeb) {
@@ -52,16 +51,21 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
52
51
  return null
53
52
  }
54
53
 
55
- // TODO
56
- delete style['scrollbarWidth']
57
- delete style['listStyleType']
54
+ if (!context.open) {
55
+ return children
56
+ }
57
+
58
+ const {
59
+ style: { scrollbarWidth, listStyleType, ...restStyle },
60
+ ...floatingProps
61
+ } = context.interactions!.getFloatingProps()
58
62
 
59
63
  return (
60
64
  <>
61
65
  {/* Hide scrollbars cross-browser and enable momentum scroll for touch devices */}
62
66
  <style
63
67
  dangerouslySetInnerHTML={{
64
- __html: `[data-tamagui-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-tamagui-select-viewport]::-webkit-scrollbar{display:none}`,
68
+ __html: disableScrollbarCSS,
65
69
  }}
66
70
  />
67
71
  <FloatingFocusManager context={context.floatingContext} preventTabbing>
@@ -73,7 +77,7 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
73
77
  {...viewportProps}
74
78
  ref={forwardedRef}
75
79
  {...floatingProps}
76
- {...style}
80
+ {...restStyle}
77
81
  >
78
82
  {children}
79
83
  </SelectViewportFrame>
@@ -84,3 +88,5 @@ export const SelectViewport = React.forwardRef<TamaguiElement, SelectViewportPro
84
88
  )
85
89
 
86
90
  SelectViewport.displayName = VIEWPORT_NAME
91
+
92
+ const disableScrollbarCSS = `[data-tamagui-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-tamagui-select-viewport]::-webkit-scrollbar{display:none}`
package/src/types.tsx CHANGED
@@ -53,6 +53,15 @@ export interface SelectContextValue {
53
53
  forceUpdate: DispatchWithoutAction
54
54
 
55
55
  // InlineImpl only:
56
+ fallback: boolean
57
+ blockSelection: boolean
58
+ allowSelectRef?: MutableRefObject<boolean>
59
+ allowMouseUpRef?: MutableRefObject<boolean>
60
+ upArrowRef?: MutableRefObject<HTMLDivElement | null>
61
+ downArrowRef?: MutableRefObject<HTMLDivElement | null>
62
+ selectTimeoutRef?: MutableRefObject<any>
63
+ setScrollTop?: Function
64
+ setInnerOffset?: Function
56
65
  dataRef?: MutableRefObject<ContextData>
57
66
  controlledScrolling?: boolean
58
67
  listRef?: MutableRefObject<Array<HTMLElement | null>>
@@ -60,7 +69,6 @@ export interface SelectContextValue {
60
69
  canScrollUp?: boolean
61
70
  canScrollDown?: boolean
62
71
  floatingContext?: FloatingContext<ReferenceType>
63
- increaseHeight?: (floating: HTMLElement, amount?: any) => number | undefined
64
72
  interactions?: {
65
73
  getReferenceProps: (userProps?: HTMLProps<Element> | undefined) => any
66
74
  getFloatingProps: (userProps?: HTMLProps<HTMLElement> | undefined) => any
package/types/Select.d.ts CHANGED
@@ -4,7 +4,7 @@ import { YStackProps } from '@tamagui/stacks';
4
4
  import * as React from 'react';
5
5
  import { ScopedProps, SelectContextValue, SelectProps } from './types';
6
6
  export declare type SelectTriggerProps = ListItemProps;
7
- export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import("@tamagui/helpers-tamagui").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
7
+ export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import("@tamagui/text").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
8
8
  readonly fullscreen?: boolean | undefined;
9
9
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
10
10
  } & {
@@ -20,7 +20,7 @@ export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import(
20
20
  bordered?: number | boolean | undefined;
21
21
  transparent?: boolean | undefined;
22
22
  chromeless?: boolean | undefined;
23
- }, "size" | "disabled" | "active"> & {
23
+ }, "disabled" | "size" | "active"> & {
24
24
  size?: import("@tamagui/core").SizeTokens | undefined;
25
25
  active?: boolean | undefined;
26
26
  disabled?: boolean | undefined;
@@ -40,7 +40,7 @@ export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import(
40
40
  bordered?: number | boolean | undefined;
41
41
  transparent?: boolean | undefined;
42
42
  chromeless?: boolean | undefined;
43
- }, "size" | "disabled" | "active"> & {
43
+ }, "disabled" | "size" | "active"> & {
44
44
  size?: import("@tamagui/core").SizeTokens | undefined;
45
45
  active?: boolean | undefined;
46
46
  disabled?: boolean | undefined;
@@ -60,7 +60,7 @@ export declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<import(
60
60
  bordered?: number | boolean | undefined;
61
61
  transparent?: boolean | undefined;
62
62
  chromeless?: boolean | undefined;
63
- }, "size" | "disabled" | "active"> & {
63
+ }, "disabled" | "size" | "active"> & {
64
64
  size?: import("@tamagui/core").SizeTokens | undefined;
65
65
  active?: boolean | undefined;
66
66
  disabled?: boolean | undefined;
@@ -377,7 +377,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
377
377
  }), string | number> & {
378
378
  [x: string]: undefined;
379
379
  }>>, string | number>) & React.RefAttributes<TamaguiElement>>;
380
- Label: React.ForwardRefExoticComponent<Omit<import("@tamagui/helpers-tamagui").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
380
+ Label: React.ForwardRefExoticComponent<Omit<import("@tamagui/text").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
381
381
  readonly fullscreen?: boolean | undefined;
382
382
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
383
383
  } & {
@@ -393,7 +393,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
393
393
  bordered?: number | boolean | undefined;
394
394
  transparent?: boolean | undefined;
395
395
  chromeless?: boolean | undefined;
396
- }, "size" | "disabled" | "active"> & {
396
+ }, "disabled" | "size" | "active"> & {
397
397
  size?: import("@tamagui/core").SizeTokens | undefined;
398
398
  active?: boolean | undefined;
399
399
  disabled?: boolean | undefined;
@@ -413,7 +413,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
413
413
  bordered?: number | boolean | undefined;
414
414
  transparent?: boolean | undefined;
415
415
  chromeless?: boolean | undefined;
416
- }, "size" | "disabled" | "active"> & {
416
+ }, "disabled" | "size" | "active"> & {
417
417
  size?: import("@tamagui/core").SizeTokens | undefined;
418
418
  active?: boolean | undefined;
419
419
  disabled?: boolean | undefined;
@@ -433,7 +433,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
433
433
  bordered?: number | boolean | undefined;
434
434
  transparent?: boolean | undefined;
435
435
  chromeless?: boolean | undefined;
436
- }, "size" | "disabled" | "active"> & {
436
+ }, "disabled" | "size" | "active"> & {
437
437
  size?: import("@tamagui/core").SizeTokens | undefined;
438
438
  active?: boolean | undefined;
439
439
  disabled?: boolean | undefined;
@@ -454,7 +454,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
454
454
  } & React.RefAttributes<TamaguiElement>>;
455
455
  ScrollDownButton: React.ForwardRefExoticComponent<import("./types").SelectScrollButtonProps & React.RefAttributes<TamaguiElement>>;
456
456
  ScrollUpButton: React.ForwardRefExoticComponent<import("./types").SelectScrollButtonProps & React.RefAttributes<TamaguiElement>>;
457
- Trigger: React.ForwardRefExoticComponent<Omit<import("@tamagui/helpers-tamagui").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
457
+ Trigger: React.ForwardRefExoticComponent<Omit<import("@tamagui/text").TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
458
458
  readonly fullscreen?: boolean | undefined;
459
459
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
460
460
  } & {
@@ -470,7 +470,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
470
470
  bordered?: number | boolean | undefined;
471
471
  transparent?: boolean | undefined;
472
472
  chromeless?: boolean | undefined;
473
- }, "size" | "disabled" | "active"> & {
473
+ }, "disabled" | "size" | "active"> & {
474
474
  size?: import("@tamagui/core").SizeTokens | undefined;
475
475
  active?: boolean | undefined;
476
476
  disabled?: boolean | undefined;
@@ -490,7 +490,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
490
490
  bordered?: number | boolean | undefined;
491
491
  transparent?: boolean | undefined;
492
492
  chromeless?: boolean | undefined;
493
- }, "size" | "disabled" | "active"> & {
493
+ }, "disabled" | "size" | "active"> & {
494
494
  size?: import("@tamagui/core").SizeTokens | undefined;
495
495
  active?: boolean | undefined;
496
496
  disabled?: boolean | undefined;
@@ -510,7 +510,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
510
510
  bordered?: number | boolean | undefined;
511
511
  transparent?: boolean | undefined;
512
512
  chromeless?: boolean | undefined;
513
- }, "size" | "disabled" | "active"> & {
513
+ }, "disabled" | "size" | "active"> & {
514
514
  size?: import("@tamagui/core").SizeTokens | undefined;
515
515
  active?: boolean | undefined;
516
516
  disabled?: boolean | undefined;
@@ -595,7 +595,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
595
595
  Viewport: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
596
596
  readonly fullscreen?: boolean | undefined;
597
597
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
598
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
598
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
599
599
  fontFamily?: unknown;
600
600
  backgrounded?: boolean | undefined;
601
601
  radiused?: boolean | undefined;
@@ -611,7 +611,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
611
611
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
612
612
  readonly fullscreen?: boolean | undefined;
613
613
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
614
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
614
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
615
615
  fontFamily?: unknown;
616
616
  backgrounded?: boolean | undefined;
617
617
  radiused?: boolean | undefined;
@@ -627,7 +627,7 @@ export declare const Select: ((props: ScopedProps<SelectProps>) => JSX.Element)
627
627
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
628
628
  readonly fullscreen?: boolean | undefined;
629
629
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
630
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
630
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
631
631
  fontFamily?: unknown;
632
632
  backgrounded?: boolean | undefined;
633
633
  radiused?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAmB,MAAM,eAAe,CAAA;AAGzE,OAAO,EAAY,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAI5D,OAAO,EAAkB,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAG7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAQtE,oBAAY,kBAAkB,GAAG,aAAa,CAAA;AAE9C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6CzB,CAAA;AA0DD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKrB,CAAA;AAkBF,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,wFAsHtB,CAAA;AAUD,eAAO,MAA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AAY,EAAE,CAAC;;CAGrE,CAAA;AAYD,eAAO,MAAM,MAAM,WACT,YAAY,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA9ZlB,MAAM,SAAS;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;sBAAf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BA8YwB,YAAY,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6HrE,CAAA"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectContentProps } from './types';
3
2
  export declare const SelectContent: ({ children, __scopeSelect }: SelectContentProps) => JSX.Element;
4
3
  //# sourceMappingURL=SelectContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAQ5C,eAAO,MAAM,aAAa,gCAAiC,kBAAkB,gBAmB5E,CAAA"}
1
+ {"version":3,"file":"SelectContent.d.ts","sourceRoot":"","sources":["../src/SelectContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAQ5C,eAAO,MAAM,aAAa,gCAAiC,kBAAkB,gBAqB5E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectImpl.d.ts","sourceRoot":"","sources":["../src/SelectImpl.tsx"],"names":[],"mappings":";AAkBA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAElD,oBAAY,eAAe,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IACvD,cAAc,EAAE,GAAG,CAAA;IACnB,gBAAgB,EAAE,GAAG,CAAA;IACrB,cAAc,EAAE,GAAG,CAAA;CACpB,CAAA;AAGD,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBAketD,CAAA"}
1
+ {"version":3,"file":"SelectImpl.d.ts","sourceRoot":"","sources":["../src/SelectImpl.tsx"],"names":[],"mappings":";AAwBA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAElD,oBAAY,eAAe,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IACvD,cAAc,EAAE,GAAG,CAAA;IACnB,gBAAgB,EAAE,GAAG,CAAA;IACrB,cAAc,EAAE,GAAG,CAAA;CACpB,CAAA;AAGD,eAAO,MAAM,gBAAgB,UAAW,eAAe,gBA8RtD,CAAA"}
@@ -76,7 +76,7 @@ export declare const SelectViewportFrame: import("@tamagui/core").TamaguiCompone
76
76
  export declare const SelectViewport: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
77
77
  readonly fullscreen?: boolean | undefined;
78
78
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
79
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
79
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
80
80
  fontFamily?: unknown;
81
81
  backgrounded?: boolean | undefined;
82
82
  radiused?: boolean | undefined;
@@ -92,7 +92,7 @@ export declare const SelectViewport: React.ForwardRefExoticComponent<Omit<import
92
92
  } & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
93
93
  readonly fullscreen?: boolean | undefined;
94
94
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
95
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
95
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
96
96
  fontFamily?: unknown;
97
97
  backgrounded?: boolean | undefined;
98
98
  radiused?: boolean | undefined;
@@ -108,7 +108,7 @@ export declare const SelectViewport: React.ForwardRefExoticComponent<Omit<import
108
108
  }>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
109
109
  readonly fullscreen?: boolean | undefined;
110
110
  readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
111
- }, "fontFamily" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "elevate" | "bordered" | "transparent" | "backgrounded" | "radiused" | "padded" | "chromeless"> & {
111
+ }, "fontFamily" | "backgrounded" | "radiused" | "hoverTheme" | "pressTheme" | "focusTheme" | "circular" | "padded" | "elevate" | "bordered" | "transparent" | "chromeless"> & {
112
112
  fontFamily?: unknown;
113
113
  backgrounded?: boolean | undefined;
114
114
  radiused?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectViewport.d.ts","sourceRoot":"","sources":["../src/SelectViewport.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAS,MAAM,eAAe,CAAA;AAIrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4C1B,CAAA"}
1
+ {"version":3,"file":"SelectViewport.d.ts","sourceRoot":"","sources":["../src/SelectViewport.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAS,MAAM,eAAe,CAAA;AAIrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgD1B,CAAA"}
package/types/types.d.ts CHANGED
@@ -44,6 +44,15 @@ export interface SelectContextValue {
44
44
  valueNodeHasChildren: boolean;
45
45
  onValueNodeHasChildrenChange(hasChildren: boolean): void;
46
46
  forceUpdate: DispatchWithoutAction;
47
+ fallback: boolean;
48
+ blockSelection: boolean;
49
+ allowSelectRef?: MutableRefObject<boolean>;
50
+ allowMouseUpRef?: MutableRefObject<boolean>;
51
+ upArrowRef?: MutableRefObject<HTMLDivElement | null>;
52
+ downArrowRef?: MutableRefObject<HTMLDivElement | null>;
53
+ selectTimeoutRef?: MutableRefObject<any>;
54
+ setScrollTop?: Function;
55
+ setInnerOffset?: Function;
47
56
  dataRef?: MutableRefObject<ContextData>;
48
57
  controlledScrolling?: boolean;
49
58
  listRef?: MutableRefObject<Array<HTMLElement | null>>;
@@ -51,7 +60,6 @@ export interface SelectContextValue {
51
60
  canScrollUp?: boolean;
52
61
  canScrollDown?: boolean;
53
62
  floatingContext?: FloatingContext<ReferenceType>;
54
- increaseHeight?: (floating: HTMLElement, amount?: any) => number | undefined;
55
63
  interactions?: {
56
64
  getReferenceProps: (userProps?: HTMLProps<Element> | undefined) => any;
57
65
  getFloatingProps: (userProps?: HTMLProps<HTMLElement> | undefined) => any;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,aAAa,EACd,MAAM,qCAAqC,CAAA;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE1F,oBAAY,SAAS,GAAG,KAAK,GAAG,KAAK,CAAA;AAErC,oBAAY,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AAE1D,MAA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,WAAW,CAAC,GAAG,SAAS,KAAK,GAAG,CAAA;KACtE,CAAA;CACF;AAED,oBAAY,mBAAmB,GAAG,mBAAmB,GAAG;IACtD,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAED,oBAAY,kBAAkB,GAAG,WAAW,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,CAAA;AAE5E,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,GAAG,EAAE,IAAI,GAAG,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,2BAA2B,EAAE,KAAK,GAAG,eAAe,CAAC;CAAG"}
@@ -1,8 +0,0 @@
1
- export declare const SELECT_NAME = "Select";
2
- export declare const WINDOW_PADDING = 8;
3
- export declare const SCROLL_ARROW_VELOCITY = 8;
4
- export declare const SCROLL_ARROW_THRESHOLD = 8;
5
- export declare const MIN_HEIGHT = 80;
6
- export declare const FALLBACK_THRESHOLD = 16;
7
- export declare const VIEWPORT_NAME = "SelectViewport";
8
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,WAAW,CAAA;AACnC,eAAO,MAAM,cAAc,IAAI,CAAA;AAC/B,eAAO,MAAM,qBAAqB,IAAI,CAAA;AACtC,eAAO,MAAM,sBAAsB,IAAI,CAAA;AACvC,eAAO,MAAM,UAAU,KAAK,CAAA;AAC5B,eAAO,MAAM,kBAAkB,KAAK,CAAA;AACpC,eAAO,MAAM,aAAa,mBAAmB,CAAA"}