@tamagui/tooltip 1.130.8 → 1.131.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/tooltip",
3
- "version": "1.130.8",
3
+ "version": "1.131.1",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -37,25 +37,25 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@floating-ui/react": "^0.27.12",
40
- "@tamagui/compose-refs": "1.130.8",
41
- "@tamagui/core": "1.130.8",
42
- "@tamagui/create-context": "1.130.8",
43
- "@tamagui/floating": "1.130.8",
44
- "@tamagui/get-token": "1.130.8",
45
- "@tamagui/helpers": "1.130.8",
46
- "@tamagui/polyfill-dev": "1.130.8",
47
- "@tamagui/popover": "1.130.8",
48
- "@tamagui/popper": "1.130.8",
49
- "@tamagui/stacks": "1.130.8",
50
- "@tamagui/text": "1.130.8",
51
- "@tamagui/use-controllable-state": "1.130.8"
40
+ "@tamagui/compose-refs": "1.131.1",
41
+ "@tamagui/core": "1.131.1",
42
+ "@tamagui/create-context": "1.131.1",
43
+ "@tamagui/floating": "1.131.1",
44
+ "@tamagui/get-token": "1.131.1",
45
+ "@tamagui/helpers": "1.131.1",
46
+ "@tamagui/polyfill-dev": "1.131.1",
47
+ "@tamagui/popover": "1.131.1",
48
+ "@tamagui/popper": "1.131.1",
49
+ "@tamagui/stacks": "1.131.1",
50
+ "@tamagui/text": "1.131.1",
51
+ "@tamagui/use-controllable-state": "1.131.1"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "react": "*",
55
55
  "react-native": "*"
56
56
  },
57
57
  "devDependencies": {
58
- "@tamagui/build": "1.130.8",
58
+ "@tamagui/build": "1.131.1",
59
59
  "react": "*",
60
60
  "react-native": "^0.79.2"
61
61
  },
package/src/Tooltip.tsx CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  useInteractions,
12
12
  useRole,
13
13
  } from '@floating-ui/react'
14
- import type { ScopedProps, SizeTokens } from '@tamagui/core'
14
+ import type { SizeTokens, TamaguiElement } from '@tamagui/core'
15
15
  import { useEvent } from '@tamagui/core'
16
16
  import type { UseFloatingFn } from '@tamagui/floating'
17
17
  import { FloatingOverrideContext } from '@tamagui/floating'
@@ -19,7 +19,6 @@ import { getSize } from '@tamagui/get-token'
19
19
  import { withStaticProperties } from '@tamagui/helpers'
20
20
  import type {
21
21
  PopoverAnchorProps,
22
- PopoverArrowProps,
23
22
  PopoverContentProps,
24
23
  PopoverTriggerProps,
25
24
  } from '@tamagui/popover'
@@ -30,71 +29,75 @@ import {
30
29
  PopoverContext,
31
30
  PopoverTrigger,
32
31
  } from '@tamagui/popover'
33
- import type { PopperProps } from '@tamagui/popper'
32
+ import type { PopperArrowProps, PopperProps } from '@tamagui/popper'
34
33
  import { Popper, PopperContentFrame } from '@tamagui/popper'
35
34
  import { useControllableState } from '@tamagui/use-controllable-state'
36
35
  import * as React from 'react'
37
36
 
38
- const TOOLTIP_SCOPE = 'tooltip'
39
- type ScopedTooltipProps<P> = ScopedProps<P, 'Tooltip'>
37
+ const TOOLTIP_SCOPE = ''
40
38
 
41
- const TooltipContent = PopperContentFrame.extractable(
42
- React.forwardRef(
43
- ({ __scopeTooltip, ...props }: ScopedTooltipProps<PopoverContentProps>, ref: any) => {
44
- const preventAnimation = React.useContext(PreventTooltipAnimationContext)
39
+ export type TooltipScopes = string
45
40
 
46
- return (
47
- <PopoverContent
48
- __scopePopover={__scopeTooltip || TOOLTIP_SCOPE}
49
- componentName="Tooltip"
50
- disableFocusScope
51
- {...(!props.unstyled && {
52
- pointerEvents: 'none',
53
- })}
54
- ref={ref}
55
- {...props}
56
- {...(preventAnimation && {
57
- animation: null,
58
- })}
59
- />
60
- )
61
- }
62
- )
63
- )
41
+ type ScopedProps<P> = Omit<P, 'scope'> & { scope?: TooltipScopes }
42
+
43
+ export type TooltipContentProps = ScopedProps<PopoverContentProps>
44
+
45
+ // warning: setting to stylebale causes issues with themeInverse across portal root
46
+
47
+ const TooltipContent = PopperContentFrame.extractable(
48
+ React.forwardRef<TamaguiElement, TooltipContentProps>((props, ref) => {
49
+ const preventAnimation = React.useContext(PreventTooltipAnimationContext)
64
50
 
65
- const TooltipArrow = React.forwardRef(
66
- (props: ScopedTooltipProps<PopoverArrowProps>, ref: any) => {
67
- const { __scopeTooltip, ...rest } = props
68
51
  return (
69
- <PopoverArrow
70
- __scopePopper={__scopeTooltip || TOOLTIP_SCOPE}
52
+ <PopoverContent
53
+ scope={props.scope || TOOLTIP_SCOPE}
71
54
  componentName="Tooltip"
55
+ disableFocusScope
56
+ {...(!props.unstyled && {
57
+ pointerEvents: 'none',
58
+ })}
72
59
  ref={ref}
73
- {...rest}
60
+ {...props}
61
+ {...(preventAnimation && {
62
+ animation: null,
63
+ })}
74
64
  />
75
65
  )
76
- }
66
+ })
77
67
  )
78
68
 
79
- export type TooltipProps = PopperProps & {
80
- open?: boolean
81
- unstyled?: boolean
82
- children?: React.ReactNode
83
- onOpenChange?: (open: boolean) => void
84
- focus?: {
85
- enabled?: boolean
86
- visibleOnly?: boolean
69
+ const TooltipArrow = React.forwardRef<TamaguiElement, PopperArrowProps>((props, ref) => {
70
+ return (
71
+ <PopoverArrow
72
+ scope={props.scope || TOOLTIP_SCOPE}
73
+ componentName="Tooltip"
74
+ ref={ref}
75
+ {...props}
76
+ />
77
+ )
78
+ })
79
+
80
+ export type TooltipProps = ScopedProps<
81
+ PopperProps & {
82
+ open?: boolean
83
+ unstyled?: boolean
84
+ children?: React.ReactNode
85
+ onOpenChange?: (open: boolean) => void
86
+ focus?: {
87
+ enabled?: boolean
88
+ visibleOnly?: boolean
89
+ }
90
+ groupId?: string
91
+ restMs?: number
92
+ delay?:
93
+ | number
94
+ | {
95
+ open?: number
96
+ close?: number
97
+ }
98
+ disableAutoCloseOnScroll?: boolean
87
99
  }
88
- groupId?: string
89
- restMs?: number
90
- delay?:
91
- | number
92
- | {
93
- open?: number
94
- close?: number
95
- }
96
- disableAutoCloseOnScroll?: boolean
97
- }
100
+ >
98
101
 
99
102
  type Delay =
100
103
  | number
@@ -130,15 +133,15 @@ export const closeOpenTooltips = () => {
130
133
  }
131
134
 
132
135
  const TooltipComponent = React.forwardRef(function Tooltip(
133
- props: ScopedTooltipProps<TooltipProps>,
136
+ props: TooltipProps,
134
137
  // no real ref here but React complaining need to see why see SandboxCustomStyledAnimatedTooltip.ts
135
138
  ref
136
139
  ) {
137
140
  const {
138
141
  children,
139
- delay: delayProp,
142
+ delay: delayProp = 400,
140
143
  restMs = typeof delayProp === 'undefined'
141
- ? 500
144
+ ? 0
142
145
  : typeof delayProp === 'number'
143
146
  ? delayProp
144
147
  : 0,
@@ -146,13 +149,13 @@ const TooltipComponent = React.forwardRef(function Tooltip(
146
149
  focus,
147
150
  open: openProp,
148
151
  disableAutoCloseOnScroll,
149
- __scopeTooltip,
152
+ scope = TOOLTIP_SCOPE,
150
153
  ...restProps
151
154
  } = props
152
155
  const triggerRef = React.useRef<HTMLButtonElement>(null)
153
156
  const [hasCustomAnchor, setHasCustomAnchor] = React.useState(false)
154
157
  const { delay: delayGroup, setCurrentId } = useDelayGroupContext()
155
- const delay = delayProp ?? delayGroup
158
+ const delay = delayProp ?? delayGroup ?? 0
156
159
  const [open, setOpen] = useControllableState({
157
160
  prop: openProp,
158
161
  defaultProp: false,
@@ -172,14 +175,14 @@ const TooltipComponent = React.forwardRef(function Tooltip(
172
175
  if (!open) return
173
176
  if (disableAutoCloseOnScroll) return
174
177
  if (typeof document === 'undefined') return
175
- const openIt = () => {
178
+ const closeIt = () => {
176
179
  setOpen(false)
177
180
  }
178
181
  setOpens.add(setOpen)
179
- document.documentElement.addEventListener('scroll', openIt)
182
+ document.documentElement.addEventListener('scroll', closeIt)
180
183
  return () => {
181
184
  setOpens.delete(setOpen)
182
- document.documentElement.removeEventListener('scroll', openIt)
185
+ document.documentElement.removeEventListener('scroll', closeIt)
183
186
  }
184
187
  }, [open, disableAutoCloseOnScroll])
185
188
 
@@ -191,8 +194,13 @@ const TooltipComponent = React.forwardRef(function Tooltip(
191
194
  onOpenChange,
192
195
  })
193
196
  const { delay: delayContext } = useDelayGroup(floating.context, { id })
197
+ const delayOut = delay ?? delayContext
198
+
194
199
  const { getReferenceProps, getFloatingProps } = useInteractions([
195
- useHover(floating.context, { delay: delay ?? delayContext, restMs }),
200
+ useHover(floating.context, {
201
+ delay: delayOut,
202
+ restMs,
203
+ }),
196
204
  useFocus(floating.context, focus),
197
205
  useRole(floating.context, { role: 'tooltip' }),
198
206
  useDismiss(floating.context),
@@ -227,7 +235,7 @@ const TooltipComponent = React.forwardRef(function Tooltip(
227
235
  <FloatingOverrideContext.Provider value={useFloatingContext}>
228
236
  {/* default tooltip to a smaller size */}
229
237
  <Popper
230
- __scopePopper={__scopeTooltip || TOOLTIP_SCOPE}
238
+ scope={scope}
231
239
  size={smallerSize?.key as SizeTokens}
232
240
  allowFlip
233
241
  stayInFrame
@@ -235,10 +243,11 @@ const TooltipComponent = React.forwardRef(function Tooltip(
235
243
  {...restProps}
236
244
  >
237
245
  <PopoverContext.Provider
246
+ popoverScope={scope}
247
+ scope={scope}
238
248
  contentId={contentId}
239
249
  triggerRef={triggerRef}
240
250
  open={open}
241
- scope={__scopeTooltip || TOOLTIP_SCOPE}
242
251
  onOpenChange={setOpen}
243
252
  onOpenToggle={voidFn}
244
253
  hasCustomAnchor={hasCustomAnchor}
@@ -253,27 +262,19 @@ const TooltipComponent = React.forwardRef(function Tooltip(
253
262
  })
254
263
 
255
264
  const TooltipTrigger = React.forwardRef(function TooltipTrigger(
256
- props: ScopedTooltipProps<PopoverTriggerProps>,
265
+ props: ScopedProps<PopoverTriggerProps>,
257
266
  ref: any
258
267
  ) {
259
- const { __scopeTooltip, ...rest } = props
260
- return (
261
- <PopoverTrigger
262
- {...rest}
263
- __scopePopover={__scopeTooltip || TOOLTIP_SCOPE}
264
- ref={ref}
265
- />
266
- )
268
+ const { scope, ...rest } = props
269
+ return <PopoverTrigger {...rest} scope={scope || TOOLTIP_SCOPE} ref={ref} />
267
270
  })
268
271
 
269
272
  const TooltipAnchor = React.forwardRef(function TooltipAnchor(
270
- props: ScopedTooltipProps<PopoverAnchorProps>,
273
+ props: ScopedProps<PopoverAnchorProps>,
271
274
  ref: any
272
275
  ) {
273
- const { __scopeTooltip, ...rest } = props
274
- return (
275
- <PopoverAnchor {...rest} __scopePopover={__scopeTooltip || TOOLTIP_SCOPE} ref={ref} />
276
- )
276
+ const { scope, ...rest } = props
277
+ return <PopoverAnchor {...rest} scope={scope || TOOLTIP_SCOPE} ref={ref} />
277
278
  })
278
279
 
279
280
  export const Tooltip = withStaticProperties(TooltipComponent, {
@@ -40,6 +40,7 @@ export const TooltipSimple: React.FC<TooltipSimpleProps> = React.forwardRef(
40
40
  ? React.cloneElement(child, { ref } as any)
41
41
  : child}
42
42
  </Tooltip.Trigger>
43
+
43
44
  <Tooltip.Content
44
45
  zIndex={1_000_000_000}
45
46
  enterStyle={{ x: 0, y: -4, opacity: 0, scale: 0.96 }}
@@ -1,8 +1,14 @@
1
1
  import '@tamagui/polyfill-dev';
2
- import type { SizeTokens } from '@tamagui/core';
2
+ import type { SizeTokens, TamaguiElement } from '@tamagui/core';
3
+ import type { PopoverAnchorProps, PopoverContentProps, PopoverTriggerProps } from '@tamagui/popover';
3
4
  import type { PopperProps } from '@tamagui/popper';
4
5
  import * as React from 'react';
5
- export type TooltipProps = PopperProps & {
6
+ export type TooltipScopes = string;
7
+ type ScopedProps<P> = Omit<P, 'scope'> & {
8
+ scope?: TooltipScopes;
9
+ };
10
+ export type TooltipContentProps = ScopedProps<PopoverContentProps>;
11
+ export type TooltipProps = ScopedProps<PopperProps & {
6
12
  open?: boolean;
7
13
  unstyled?: boolean;
8
14
  children?: React.ReactNode;
@@ -18,7 +24,7 @@ export type TooltipProps = PopperProps & {
18
24
  close?: number;
19
25
  };
20
26
  disableAutoCloseOnScroll?: boolean;
21
- };
27
+ }>;
22
28
  type Delay = number | Partial<{
23
29
  open: number;
24
30
  close: number;
@@ -30,7 +36,7 @@ export declare const TooltipGroup: ({ children, delay, preventAnimation, timeout
30
36
  timeoutMs?: number;
31
37
  }) => import("react/jsx-runtime").JSX.Element;
32
38
  export declare const closeOpenTooltips: () => void;
33
- export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
39
+ export declare const Tooltip: React.ForwardRefExoticComponent<Omit<PopperProps & {
34
40
  open?: boolean;
35
41
  unstyled?: boolean;
36
42
  children?: React.ReactNode;
@@ -46,38 +52,11 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
46
52
  close?: number;
47
53
  };
48
54
  disableAutoCloseOnScroll?: boolean;
49
- } & {
50
- __scopeTooltip?: string | undefined;
55
+ }, "scope"> & {
56
+ scope?: TooltipScopes;
51
57
  } & React.RefAttributes<unknown>> & {
52
- Anchor: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase | "fullscreen"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
53
- elevation?: number | SizeTokens | undefined;
54
- inset?: number | SizeTokens | {
55
- top?: number;
56
- bottom?: number;
57
- left?: number;
58
- right?: number;
59
- } | null | undefined;
60
- fullscreen?: boolean | undefined;
61
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
62
- elevation?: number | SizeTokens | undefined;
63
- inset?: number | SizeTokens | {
64
- top?: number;
65
- bottom?: number;
66
- left?: number;
67
- right?: number;
68
- } | null | undefined;
69
- fullscreen?: boolean | undefined;
70
- } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {
71
- elevation?: number | SizeTokens | undefined;
72
- inset?: number | SizeTokens | {
73
- top?: number;
74
- bottom?: number;
75
- left?: number;
76
- right?: number;
77
- } | null | undefined;
78
- fullscreen?: boolean | undefined;
79
- }>> & {
80
- __scopeTooltip?: string | undefined;
58
+ Anchor: React.ForwardRefExoticComponent<Omit<PopoverAnchorProps, "scope"> & {
59
+ scope?: TooltipScopes;
81
60
  } & React.RefAttributes<unknown>>;
82
61
  Arrow: React.ForwardRefExoticComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, "elevation" | keyof import("@tamagui/core").StackStyleBase | "fullscreen"> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & {
83
62
  elevation?: number | SizeTokens | undefined;
@@ -106,14 +85,17 @@ export declare const Tooltip: React.ForwardRefExoticComponent<PopperProps & {
106
85
  right?: number;
107
86
  } | null | undefined;
108
87
  fullscreen?: boolean | undefined;
109
- }>> & import("@tamagui/popper").PopperArrowExtraProps & {
110
- __scopeTooltip?: string | undefined;
111
- } & React.RefAttributes<unknown>>;
112
- Content: React.ForwardRefExoticComponent<import("@tamagui/popover").PopoverContentTypeProps & {
113
- __scopeTooltip?: string | undefined;
114
- } & React.RefAttributes<unknown>>;
115
- Trigger: React.ForwardRefExoticComponent<import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
116
- __scopeTooltip?: string | undefined;
88
+ }>> & {
89
+ offset?: number;
90
+ size?: SizeTokens;
91
+ } & {
92
+ scope?: string | undefined;
93
+ } & React.RefAttributes<TamaguiElement>>;
94
+ Content: React.ForwardRefExoticComponent<Omit<import("@tamagui/popover").PopoverContentTypeProps, "scope"> & {
95
+ scope?: TooltipScopes;
96
+ } & React.RefAttributes<TamaguiElement>>;
97
+ Trigger: React.ForwardRefExoticComponent<Omit<PopoverTriggerProps, "scope"> & {
98
+ scope?: TooltipScopes;
117
99
  } & React.RefAttributes<unknown>>;
118
100
  };
119
101
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAA;AAa9B,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,eAAe,CAAA;AAmB5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA2C9B,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IACvC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,WAAW,CAAC,EAAE,OAAO,CAAA;KACtB,CAAA;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EACF,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf,CAAA;IACL,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC,CAAA;AAED,KAAK,KAAK,GACN,MAAM,GACN,OAAO,CAAC;IACN,IAAI,EAAE,MAAM,CAAA;IACZ,KAA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;YAEX,MAAM,GACN;QACE,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,KAAK,CAAC,EAAE,MAAM,CAAA;KACf;+BACsB,OAAO;;YAzDa,aAAa;;;gBAAb,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAAb,aAAa;;;gBAAb,aAAa;;CAoP9D,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"TooltipSimple.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyDtD,CAAA"}
1
+ {"version":3,"file":"TooltipSimple.d.ts","sourceRoot":"","sources":["../src/TooltipSimple.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAA;CACjC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0DtD,CAAA"}