@oxyhq/bloom 0.16.2 → 0.18.0
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/README.md +54 -16
- package/lib/commonjs/admonition/index.js +24 -23
- package/lib/commonjs/admonition/index.js.map +1 -1
- package/lib/commonjs/combobox/Combobox.js +7 -7
- package/lib/commonjs/combobox/Combobox.js.map +1 -1
- package/lib/commonjs/context-menu/context.js +2 -2
- package/lib/commonjs/context-menu/context.js.map +1 -1
- package/lib/commonjs/context-menu/index.js +25 -25
- package/lib/commonjs/context-menu/index.js.map +1 -1
- package/lib/commonjs/context-menu/index.web.js +27 -27
- package/lib/commonjs/context-menu/index.web.js.map +1 -1
- package/lib/commonjs/dialog/SheetShell.js +1 -1
- package/lib/commonjs/index.js +134 -38
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +134 -38
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/input-group/InputGroup.js +1 -1
- package/lib/commonjs/menu/context.js +2 -2
- package/lib/commonjs/menu/context.js.map +1 -1
- package/lib/commonjs/menu/index.js +17 -17
- package/lib/commonjs/menu/index.js.map +1 -1
- package/lib/commonjs/menu/index.web.js +16 -16
- package/lib/commonjs/menu/index.web.js.map +1 -1
- package/lib/commonjs/popover/context.js +1 -1
- package/lib/commonjs/popover/context.js.map +1 -1
- package/lib/commonjs/popover/index.js +6 -6
- package/lib/commonjs/popover/index.js.map +1 -1
- package/lib/commonjs/popover/index.web.js +6 -6
- package/lib/commonjs/popover/index.web.js.map +1 -1
- package/lib/commonjs/search-input/index.js +4 -5
- package/lib/commonjs/search-input/index.js.map +1 -1
- package/lib/commonjs/segmented-control/index.js +18 -18
- package/lib/commonjs/segmented-control/index.js.map +1 -1
- package/lib/commonjs/select/common.js +2 -2
- package/lib/commonjs/select/common.js.map +1 -1
- package/lib/commonjs/select/index.js +34 -38
- package/lib/commonjs/select/index.js.map +1 -1
- package/lib/commonjs/select/index.web.js +31 -35
- package/lib/commonjs/select/index.web.js.map +1 -1
- package/lib/commonjs/tabs/Tabs.js +7 -7
- package/lib/commonjs/tabs/Tabs.js.map +1 -1
- package/lib/commonjs/tabs/index.js +6 -6
- package/lib/commonjs/text-field/index.js +14 -14
- package/lib/commonjs/text-field/index.js.map +1 -1
- package/lib/commonjs/theme/color-scope/style-builder.js +6 -6
- package/lib/commonjs/theme/index.js +7 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/use-navigation-theme.js +54 -0
- package/lib/commonjs/theme/use-navigation-theme.js.map +1 -0
- package/lib/commonjs/tooltip/index.js +11 -11
- package/lib/commonjs/tooltip/index.js.map +1 -1
- package/lib/commonjs/tooltip/index.web.js +11 -11
- package/lib/commonjs/tooltip/index.web.js.map +1 -1
- package/lib/module/admonition/index.js +18 -17
- package/lib/module/admonition/index.js.map +1 -1
- package/lib/module/combobox/Combobox.js +7 -7
- package/lib/module/combobox/Combobox.js.map +1 -1
- package/lib/module/context-menu/context.js +2 -2
- package/lib/module/context-menu/context.js.map +1 -1
- package/lib/module/context-menu/index.js +17 -17
- package/lib/module/context-menu/index.js.map +1 -1
- package/lib/module/context-menu/index.web.js +19 -19
- package/lib/module/context-menu/index.web.js.map +1 -1
- package/lib/module/dialog/SheetShell.js +1 -1
- package/lib/module/index.js +11 -11
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +11 -11
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/input-group/InputGroup.js +1 -1
- package/lib/module/menu/context.js +2 -2
- package/lib/module/menu/context.js.map +1 -1
- package/lib/module/menu/index.js +9 -9
- package/lib/module/menu/index.js.map +1 -1
- package/lib/module/menu/index.web.js +8 -8
- package/lib/module/menu/index.web.js.map +1 -1
- package/lib/module/popover/context.js +1 -1
- package/lib/module/popover/context.js.map +1 -1
- package/lib/module/popover/index.js +3 -3
- package/lib/module/popover/index.js.map +1 -1
- package/lib/module/popover/index.web.js +3 -3
- package/lib/module/popover/index.web.js.map +1 -1
- package/lib/module/search-input/index.js +4 -4
- package/lib/module/search-input/index.js.map +1 -1
- package/lib/module/segmented-control/index.js +15 -15
- package/lib/module/segmented-control/index.js.map +1 -1
- package/lib/module/select/common.js +1 -1
- package/lib/module/select/common.js.map +1 -1
- package/lib/module/select/index.js +25 -29
- package/lib/module/select/index.js.map +1 -1
- package/lib/module/select/index.web.js +22 -26
- package/lib/module/select/index.web.js.map +1 -1
- package/lib/module/tabs/Tabs.js +6 -6
- package/lib/module/tabs/Tabs.js.map +1 -1
- package/lib/module/tabs/index.js +1 -1
- package/lib/module/tabs/index.js.map +1 -1
- package/lib/module/text-field/index.js +8 -8
- package/lib/module/text-field/index.js.map +1 -1
- package/lib/module/theme/color-scope/style-builder.js +6 -6
- package/lib/module/theme/index.js +1 -0
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/use-navigation-theme.js +50 -0
- package/lib/module/theme/use-navigation-theme.js.map +1 -0
- package/lib/module/tooltip/index.js +6 -6
- package/lib/module/tooltip/index.js.map +1 -1
- package/lib/module/tooltip/index.web.js +6 -6
- package/lib/module/tooltip/index.web.js.map +1 -1
- package/lib/typescript/commonjs/admonition/index.d.ts +14 -13
- package/lib/typescript/commonjs/admonition/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/combobox/Combobox.d.ts +7 -7
- package/lib/typescript/commonjs/combobox/Combobox.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/index.d.ts +9 -9
- package/lib/typescript/commonjs/context-menu/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/index.web.d.ts +9 -9
- package/lib/typescript/commonjs/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/context-menu/types.d.ts +6 -6
- package/lib/typescript/commonjs/context-menu/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/SheetShell.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts +11 -11
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +11 -11
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/input-group/types.d.ts +1 -1
- package/lib/typescript/commonjs/menu/index.d.ts +9 -9
- package/lib/typescript/commonjs/menu/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/menu/index.web.d.ts +9 -9
- package/lib/typescript/commonjs/menu/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/menu/types.d.ts +5 -5
- package/lib/typescript/commonjs/menu/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/index.d.ts +5 -5
- package/lib/typescript/commonjs/popover/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/index.web.d.ts +5 -5
- package/lib/typescript/commonjs/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/popover/types.d.ts +1 -1
- package/lib/typescript/commonjs/popover/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/search-input/index.d.ts +3 -3
- package/lib/typescript/commonjs/search-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/segmented-control/index.d.ts +13 -13
- package/lib/typescript/commonjs/segmented-control/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/common.d.ts +1 -1
- package/lib/typescript/commonjs/select/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/index.d.ts +12 -12
- package/lib/typescript/commonjs/select/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/index.web.d.ts +12 -12
- package/lib/typescript/commonjs/select/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/select/types.d.ts +10 -10
- package/lib/typescript/commonjs/select/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/Tabs.d.ts +4 -4
- package/lib/typescript/commonjs/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/index.d.ts +2 -2
- package/lib/typescript/commonjs/tabs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/types.d.ts +3 -3
- package/lib/typescript/commonjs/tabs/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/text-field/index.d.ts +8 -8
- package/lib/typescript/commonjs/text-field/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/color-scope/style-builder.d.ts +6 -6
- package/lib/typescript/commonjs/theme/index.d.ts +2 -0
- package/lib/typescript/commonjs/theme/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/theme/use-navigation-theme.d.ts +31 -0
- package/lib/typescript/commonjs/theme/use-navigation-theme.d.ts.map +1 -0
- package/lib/typescript/commonjs/tooltip/index.d.ts +6 -6
- package/lib/typescript/commonjs/tooltip/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/tooltip/index.web.d.ts +6 -6
- package/lib/typescript/commonjs/tooltip/index.web.d.ts.map +1 -1
- package/lib/typescript/module/admonition/index.d.ts +14 -13
- package/lib/typescript/module/admonition/index.d.ts.map +1 -1
- package/lib/typescript/module/combobox/Combobox.d.ts +7 -7
- package/lib/typescript/module/combobox/Combobox.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/index.d.ts +9 -9
- package/lib/typescript/module/context-menu/index.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/index.web.d.ts +9 -9
- package/lib/typescript/module/context-menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/context-menu/types.d.ts +6 -6
- package/lib/typescript/module/context-menu/types.d.ts.map +1 -1
- package/lib/typescript/module/dialog/SheetShell.d.ts +1 -1
- package/lib/typescript/module/index.d.ts +11 -11
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +11 -11
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/input-group/types.d.ts +1 -1
- package/lib/typescript/module/menu/index.d.ts +9 -9
- package/lib/typescript/module/menu/index.d.ts.map +1 -1
- package/lib/typescript/module/menu/index.web.d.ts +9 -9
- package/lib/typescript/module/menu/index.web.d.ts.map +1 -1
- package/lib/typescript/module/menu/types.d.ts +5 -5
- package/lib/typescript/module/menu/types.d.ts.map +1 -1
- package/lib/typescript/module/popover/index.d.ts +5 -5
- package/lib/typescript/module/popover/index.d.ts.map +1 -1
- package/lib/typescript/module/popover/index.web.d.ts +5 -5
- package/lib/typescript/module/popover/index.web.d.ts.map +1 -1
- package/lib/typescript/module/popover/types.d.ts +1 -1
- package/lib/typescript/module/popover/types.d.ts.map +1 -1
- package/lib/typescript/module/search-input/index.d.ts +3 -3
- package/lib/typescript/module/search-input/index.d.ts.map +1 -1
- package/lib/typescript/module/segmented-control/index.d.ts +13 -13
- package/lib/typescript/module/segmented-control/index.d.ts.map +1 -1
- package/lib/typescript/module/select/common.d.ts +1 -1
- package/lib/typescript/module/select/common.d.ts.map +1 -1
- package/lib/typescript/module/select/index.d.ts +12 -12
- package/lib/typescript/module/select/index.d.ts.map +1 -1
- package/lib/typescript/module/select/index.web.d.ts +12 -12
- package/lib/typescript/module/select/index.web.d.ts.map +1 -1
- package/lib/typescript/module/select/types.d.ts +10 -10
- package/lib/typescript/module/select/types.d.ts.map +1 -1
- package/lib/typescript/module/tabs/Tabs.d.ts +4 -4
- package/lib/typescript/module/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/module/tabs/index.d.ts +2 -2
- package/lib/typescript/module/tabs/index.d.ts.map +1 -1
- package/lib/typescript/module/tabs/types.d.ts +3 -3
- package/lib/typescript/module/tabs/types.d.ts.map +1 -1
- package/lib/typescript/module/text-field/index.d.ts +8 -8
- package/lib/typescript/module/text-field/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/color-scope/style-builder.d.ts +6 -6
- package/lib/typescript/module/theme/index.d.ts +2 -0
- package/lib/typescript/module/theme/index.d.ts.map +1 -1
- package/lib/typescript/module/theme/use-navigation-theme.d.ts +31 -0
- package/lib/typescript/module/theme/use-navigation-theme.d.ts.map +1 -0
- package/lib/typescript/module/tooltip/index.d.ts +6 -6
- package/lib/typescript/module/tooltip/index.d.ts.map +1 -1
- package/lib/typescript/module/tooltip/index.web.d.ts +6 -6
- package/lib/typescript/module/tooltip/index.web.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/public-api-contract.test.ts +54 -0
- package/src/__tests__/useNavigationTheme.test.tsx +227 -0
- package/src/admonition/index.tsx +22 -21
- package/src/combobox/Combobox.tsx +14 -14
- package/src/context-menu/ContextMenu.stories.tsx +26 -18
- package/src/context-menu/context.ts +2 -2
- package/src/context-menu/index.tsx +24 -24
- package/src/context-menu/index.web.tsx +26 -26
- package/src/context-menu/types.ts +6 -6
- package/src/dialog/SheetShell.tsx +1 -1
- package/src/field/Field.stories.tsx +3 -3
- package/src/index.ts +11 -11
- package/src/index.web.ts +11 -11
- package/src/input-group/InputGroup.stories.tsx +4 -4
- package/src/input-group/InputGroup.tsx +1 -1
- package/src/input-group/types.ts +1 -1
- package/src/menu/Menu.stories.tsx +35 -35
- package/src/menu/context.ts +2 -2
- package/src/menu/index.tsx +15 -15
- package/src/menu/index.web.tsx +14 -14
- package/src/menu/types.ts +5 -5
- package/src/popover/Popover.stories.tsx +13 -13
- package/src/popover/context.ts +1 -1
- package/src/popover/index.tsx +5 -5
- package/src/popover/index.web.tsx +5 -5
- package/src/popover/types.ts +1 -1
- package/src/search-input/index.tsx +7 -7
- package/src/segmented-control/index.tsx +15 -15
- package/src/select/Select.stories.tsx +32 -23
- package/src/select/common.ts +1 -1
- package/src/select/index.tsx +39 -43
- package/src/select/index.web.tsx +33 -37
- package/src/select/types.ts +10 -10
- package/src/tabs/Tabs.tsx +9 -9
- package/src/tabs/index.ts +2 -2
- package/src/tabs/types.ts +3 -3
- package/src/text-field/TextField.stories.tsx +5 -5
- package/src/text-field/index.tsx +12 -12
- package/src/theme/color-scope/style-builder.ts +6 -6
- package/src/theme/index.ts +2 -0
- package/src/theme/use-navigation-theme.ts +59 -0
- package/src/tooltip/index.tsx +6 -6
- package/src/tooltip/index.web.tsx +6 -6
|
@@ -19,7 +19,7 @@ export interface InputGroupAddonProps {
|
|
|
19
19
|
export interface InputGroupProps {
|
|
20
20
|
/**
|
|
21
21
|
* Group children. Place `InputGroup.Addon` elements before/after the input
|
|
22
|
-
* (a Bloom `
|
|
22
|
+
* (a Bloom `TextFieldInput`, a `SearchInput`, or any control). The middle
|
|
23
23
|
* child stretches to fill.
|
|
24
24
|
*/
|
|
25
25
|
children: React.ReactNode;
|
|
@@ -2,21 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { DialogControlProps } from '../dialog/types';
|
|
4
4
|
import { useMenuContext } from './context';
|
|
5
|
-
import type {
|
|
5
|
+
import type { MenuGroupProps, MenuItemIconProps, MenuItemProps, MenuItemTextProps, MenuTriggerProps } from './types';
|
|
6
6
|
export type { DialogControlProps as MenuControlProps } from '../dialog/types';
|
|
7
7
|
export { useDialogControl as useMenuControl } from '../dialog/context';
|
|
8
8
|
export { useMenuContext };
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function Menu({ children, control, }: React.PropsWithChildren<{
|
|
10
10
|
control?: DialogControlProps;
|
|
11
11
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
12
|
+
export declare function MenuTrigger({ children, label, role, hint, }: MenuTriggerProps): React.ReactNode;
|
|
13
|
+
export declare function MenuContent({ children, showCancel, }: React.PropsWithChildren<{
|
|
14
14
|
showCancel?: boolean;
|
|
15
15
|
style?: StyleProp<ViewStyle>;
|
|
16
16
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare function
|
|
17
|
+
export declare function MenuItem({ children, label, style, onPress, ...rest }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function MenuItemText({ children, style }: MenuItemTextProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function MenuItemIcon({ icon: Comp, fill }: MenuItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function MenuGroup({ children, style }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function MenuDivider(): null;
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/menu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiF,MAAM,OAAO,CAAC;AACtG,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAGL,cAAc,EAEf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/menu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiF,MAAM,OAAO,CAAC;AACtG,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO3F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAGL,cAAc,EAEf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,YAAY,EAAE,kBAAkB,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,IAAI,CAAC,EACnB,QAAQ,EACR,OAAO,GACR,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACzB,OAAO,CAAC,EAAE,kBAAkB,CAAC;CAC9B,CAAC,2CAcD;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAK,EACL,IAAe,EACf,IAAI,GACL,EAAE,gBAAgB,mBAqBlB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,UAAU,GACX,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC,2CAaD;AAED,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAkDnF;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,2CAiBlE;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CAgBnE;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,cAAc,2CAsC5D;AAED,wBAAgB,WAAW,SAE1B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import { useMenuContext } from './context';
|
|
4
|
-
import type {
|
|
4
|
+
import type { MenuGroupProps, MenuItemIconProps, MenuItemProps, MenuItemTextProps, MenuTriggerProps } from './types';
|
|
5
5
|
export { useMenuContext };
|
|
6
6
|
export type MenuControlProps = {
|
|
7
7
|
id: string;
|
|
@@ -10,17 +10,17 @@ export type MenuControlProps = {
|
|
|
10
10
|
close: () => void;
|
|
11
11
|
};
|
|
12
12
|
export declare function useMenuControl(): MenuControlProps;
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function Menu({ children, control, }: React.PropsWithChildren<{
|
|
14
14
|
control?: MenuControlProps;
|
|
15
15
|
}>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function
|
|
16
|
+
export declare function MenuTrigger({ children, label, role, hint, }: MenuTriggerProps): React.ReactNode;
|
|
17
|
+
export declare function MenuContent({ children, style, }: React.PropsWithChildren<{
|
|
18
18
|
showCancel?: boolean;
|
|
19
19
|
style?: StyleProp<ViewStyle>;
|
|
20
20
|
}>): import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
21
|
+
export declare function MenuItem({ children, label, onPress, style, ...rest }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function MenuItemText({ children, style }: MenuItemTextProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function MenuItemIcon({ icon: Comp, position, fill }: MenuItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function MenuGroup({ children }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function MenuDivider(): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/menu/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAWN,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO3F,OAAO,EAGL,cAAc,EAEf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAEV,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/menu/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAWN,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAO3F,OAAO,EAGL,cAAc,EAEf,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,E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{
|
|
|
35
35
|
accessibilityRole: AccessibilityRole;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
export type
|
|
38
|
+
export type MenuTriggerProps = {
|
|
39
39
|
children: (props: TriggerChildProps) => React.ReactNode;
|
|
40
40
|
label: string;
|
|
41
41
|
hint?: string;
|
|
42
42
|
role?: AccessibilityRole;
|
|
43
43
|
};
|
|
44
|
-
export type
|
|
44
|
+
export type MenuItemProps = React.PropsWithChildren<Omit<PressableProps, 'style'> & {
|
|
45
45
|
label: string;
|
|
46
46
|
onPress: (e: GestureResponderEvent) => void;
|
|
47
47
|
style?: StyleProp<ViewStyle>;
|
|
48
48
|
}>;
|
|
49
|
-
export type
|
|
49
|
+
export type MenuItemTextProps = React.PropsWithChildren<{
|
|
50
50
|
style?: TextStyle;
|
|
51
51
|
}>;
|
|
52
|
-
export type
|
|
52
|
+
export type MenuItemIconProps = {
|
|
53
53
|
icon: React.ComponentType<SVGIconProps>;
|
|
54
54
|
position?: 'left' | 'right';
|
|
55
55
|
fill?: (props: {
|
|
56
56
|
disabled: boolean;
|
|
57
57
|
}) => string;
|
|
58
58
|
};
|
|
59
|
-
export type
|
|
59
|
+
export type MenuGroupProps = React.PropsWithChildren<{
|
|
60
60
|
style?: StyleProp<ViewStyle>;
|
|
61
61
|
}>;
|
|
62
62
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/menu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG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,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,iBAAiB,CACjD,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CACF,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACtD,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,KAAK,MAAM,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { usePopoverContext } from './context';
|
|
2
|
-
import type { PopoverContentProps,
|
|
3
|
-
export type { PopoverControlProps, PopoverContentProps, PopoverTriggerProps,
|
|
2
|
+
import type { PopoverContentProps, PopoverProps, PopoverTriggerProps } from './types';
|
|
3
|
+
export type { PopoverControlProps, PopoverContentProps, PopoverTriggerProps, PopoverProps, PopoverPlacement, PopoverTriggerRenderProps, PopoverTriggerState, } from './types';
|
|
4
4
|
export { useDialogControl as usePopoverControl } from '../dialog/context';
|
|
5
5
|
export { usePopoverContext };
|
|
6
6
|
/**
|
|
@@ -8,7 +8,7 @@ export { usePopoverContext };
|
|
|
8
8
|
* established native-overlay convention, shared with `Menu`/`Select`). The
|
|
9
9
|
* web fork (`index.web.tsx`) anchors a floating panel to the trigger.
|
|
10
10
|
*/
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
11
|
+
export declare function Popover({ children, control }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function PopoverTrigger({ children, label }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function PopoverContent({ children, label, style, }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/popover/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EAEnB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/popover/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EAEnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,2CAiC1D;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CAuBtE;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAiB,EACjB,KAAK,GACN,EAAE,mBAAmB,2CAQrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { usePopoverContext } from './context';
|
|
2
|
-
import type { PopoverContentProps, PopoverControlProps,
|
|
3
|
-
export type { PopoverControlProps, PopoverContentProps, PopoverTriggerProps,
|
|
2
|
+
import type { PopoverContentProps, PopoverControlProps, PopoverProps, PopoverTriggerProps } from './types';
|
|
3
|
+
export type { PopoverControlProps, PopoverContentProps, PopoverTriggerProps, PopoverProps, PopoverPlacement, PopoverTriggerRenderProps, PopoverTriggerState, } from './types';
|
|
4
4
|
export { usePopoverContext };
|
|
5
5
|
/**
|
|
6
6
|
* Web self-contained control. Unlike native (which proxies a `BottomSheet`
|
|
@@ -8,7 +8,7 @@ export { usePopoverContext };
|
|
|
8
8
|
* exposes a `DialogControlProps`-shaped handle for API parity.
|
|
9
9
|
*/
|
|
10
10
|
export declare function usePopoverControl(): PopoverControlProps;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
11
|
+
export declare function Popover({ children, control }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function PopoverTrigger({ children, label }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function PopoverContent({ children, label, placement, offset, minWidth, maxWidth, dismissible, style, testID, }: PopoverContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
14
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/popover/index.web.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EAEnB,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/popover/index.web.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAkB,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EAEnB,YAAY,EACZ,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAEjB,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAI7B;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,mBAAmB,CAoBvD;AASD,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,YAAY,2CAkD1D;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CA+BtE;AAuCD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAiB,EACjB,SAA0B,EAC1B,MAAU,EACV,QAAQ,EACR,QAAc,EACd,WAAkB,EAClB,KAAK,EACL,MAAM,GACP,EAAE,mBAAmB,kDAiGrB"}
|
|
@@ -46,7 +46,7 @@ export interface PopoverContentProps {
|
|
|
46
46
|
style?: StyleProp<ViewStyle>;
|
|
47
47
|
testID?: string;
|
|
48
48
|
}
|
|
49
|
-
export interface
|
|
49
|
+
export interface PopoverProps {
|
|
50
50
|
children: React.ReactNode;
|
|
51
51
|
/** Optionally supply your own control (from `usePopoverControl`). */
|
|
52
52
|
control?: PopoverControlProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/popover/types.ts"],"names":[],"mappings":"A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C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qEAAqE;IACrE,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TextInput } from 'react-native';
|
|
2
|
-
import
|
|
3
|
-
export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<
|
|
4
|
-
label?:
|
|
2
|
+
import { type TextFieldInputProps } from '../text-field';
|
|
3
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<TextFieldInputProps, "label"> & {
|
|
4
|
+
label?: TextFieldInputProps["label"];
|
|
5
5
|
/**
|
|
6
6
|
* Called when the user presses the clear (X) button.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/search-input/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK9D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/search-input/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK9D,OAAO,EAA4C,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAYnG,eAAO,MAAM,WAAW;YAPd,mBAAmB,CAAC,OAAO,CAAC;IACpC;;OAEG;kBACW,MAAM,IAAI;6CAwDzB,CAAC"}
|
|
@@ -4,21 +4,21 @@ import { type PressableProps, type StyleProp, Text, type TextStyle, type ViewSty
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```tsx
|
|
7
|
-
* <SegmentedControl
|
|
8
|
-
* <
|
|
9
|
-
* <
|
|
7
|
+
* <SegmentedControl value={value} onChange={setValue}>
|
|
8
|
+
* <SegmentedControlItem value="one">
|
|
9
|
+
* <SegmentedControlItemText value="one">
|
|
10
10
|
* One
|
|
11
|
-
* </
|
|
12
|
-
* </
|
|
13
|
-
* <
|
|
14
|
-
* <
|
|
11
|
+
* </SegmentedControlItemText>
|
|
12
|
+
* </SegmentedControlItem>
|
|
13
|
+
* <SegmentedControlItem value="two">
|
|
14
|
+
* <SegmentedControlItemText value="two">
|
|
15
15
|
* Two
|
|
16
|
-
* </
|
|
17
|
-
* </
|
|
18
|
-
* </SegmentedControl
|
|
16
|
+
* </SegmentedControlItemText>
|
|
17
|
+
* </SegmentedControlItem>
|
|
18
|
+
* </SegmentedControl>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
export declare function
|
|
21
|
+
export declare function SegmentedControl<T extends string>({ label, type, size, value, onChange, children, style, accessibilityHint, }: {
|
|
22
22
|
label: string;
|
|
23
23
|
type: 'tabs' | 'radio';
|
|
24
24
|
size?: 'small' | 'large';
|
|
@@ -28,7 +28,7 @@ export declare function Root<T extends string>({ label, type, size, value, onCha
|
|
|
28
28
|
style?: StyleProp<ViewStyle>;
|
|
29
29
|
accessibilityHint?: string;
|
|
30
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
export declare function
|
|
31
|
+
export declare function SegmentedControlItem({ value, style, children, onPress: onPressProp, accessibilityLabel, accessibilityHint, testID, disabled, }: {
|
|
32
32
|
value: string;
|
|
33
33
|
children: React.ReactNode;
|
|
34
34
|
style?: StyleProp<ViewStyle>;
|
|
@@ -38,7 +38,7 @@ export declare function Item({ value, style, children, onPress: onPressProp, acc
|
|
|
38
38
|
testID?: string;
|
|
39
39
|
disabled?: PressableProps['disabled'];
|
|
40
40
|
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export declare function
|
|
41
|
+
export declare function SegmentedControlItemText({ style, children, ...props }: {
|
|
42
42
|
children: React.ReactNode;
|
|
43
43
|
style?: StyleProp<TextStyle>;
|
|
44
44
|
} & Omit<React.ComponentProps<typeof Text>, 'style' | 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/segmented-control/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,IAAI,EACJ,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmBtB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/segmented-control/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,IAAI,EACJ,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmBtB;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EACjD,KAAK,EACL,IAAc,EACd,IAAc,EACd,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,iBAAiB,GAClB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,2CAoEA;AAMD,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,KAAK,EACL,QAAQ,EACR,OAAO,EAAE,WAAW,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,MAAM,EACN,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACvC,2CAkGA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GAAG,IAAI,CACnE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,EACjC,OAAO,GAAG,UAAU,CACrB,2CAyBA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SelectItemContextValue } from './types';
|
|
2
2
|
export declare function defaultItemValueExtractor(item: unknown): string;
|
|
3
3
|
export declare const ItemContext: import("react").Context<SelectItemContextValue>;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function useSelectItemContext(): SelectItemContextValue;
|
|
5
5
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/select/common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAMtD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAK/D;AAMD,eAAO,MAAM,WAAW,iDAKtB,CAAC;AAGH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/select/common.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAMtD,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAK/D;AAMD,eAAO,MAAM,WAAW,iDAKtB,CAAC;AAGH,wBAAgB,oBAAoB,IAAI,sBAAsB,CAE7D"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
export {
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
2
|
+
import { useSelectItemContext } from './common';
|
|
3
|
+
import type { SelectContentProps, SelectIconProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectProps, SelectTriggerProps, SelectValueProps } from './types';
|
|
4
|
+
export { useSelectItemContext };
|
|
5
|
+
export declare function Select({ children, value, onValueChange, disabled }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SelectTrigger({ children, label }: SelectTriggerProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
export declare function SelectValue({ placeholder, children: extractLabel, style, }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function SelectIcon(_props: SelectIconProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SelectContent<T>({ items, valueExtractor, ...props }: SelectContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function SelectItem({ children, value, label, style }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function SelectItemText({ children, style }: SelectItemTextProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function SelectItemIndicator({ icon: IconComponent }: SelectItemIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SelectSeparator(): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAcf,OAAO,EAA0C,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAcf,OAAO,EAA0C,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACxF,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,WAAW,EAEX,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,oBAAoB,EAAE,CAAC;AA8BhC,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,WAAW,2CAgB/E;AAMD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,kBAAkB,yTAqCpE;AAMD,wBAAgB,WAAW,CAAC,EAC1B,WAAW,EACX,QAAQ,EAAE,YAAkC,EAC5C,KAAK,GACN,EAAE,gBAAgB,2CAkBlB;AAaD,wBAAgB,UAAU,CAAC,MAAM,EAAE,eAAe,2CAGjD;AAMD,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,KAAK,EACL,cAA0C,EAC1C,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAwBvB;AA8DD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,eAAe,2CA2C5E;AAMD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CActE;AAMD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,wBAAwB,2CAYpF;AAMD,wBAAgB,eAAe,4CAW9B"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
export {
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
2
|
+
import { useSelectItemContext } from './common';
|
|
3
|
+
import type { SelectContentProps, SelectIconProps, SelectItemIndicatorProps, SelectItemProps, SelectItemTextProps, SelectProps, SelectTriggerProps, SelectValueProps } from './types';
|
|
4
|
+
export { useSelectItemContext };
|
|
5
|
+
export declare function Select({ children, value, onValueChange, disabled }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SelectTrigger({ children, label }: SelectTriggerProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
7
|
+
export declare function SelectValue({ children: extractLabel, placeholder, style, }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function SelectIcon({ style }: SelectIconProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function SelectContent<T>({ items, renderItem, label, valueExtractor, }: SelectContentProps<T>): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare function SelectItem({ ref, value, children, style }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function SelectItemText({ children, style }: SelectItemTextProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function SelectItemIndicator({ icon: IconComponent }: SelectItemIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SelectSeparator(): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/select/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAanF,OAAO,EAA0C,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/select/index.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8D,MAAM,OAAO,CAAC;AAanF,OAAO,EAA0C,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACxF,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,WAAW,EAEX,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,oBAAoB,EAAE,CAAC;AA6BhC,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,WAAW,2CAgB/E;AAMD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,kBAAkB,yTAuDpE;AAMD,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EAAE,YAAY,EACtB,WAAW,EACX,KAAK,GACN,EAAE,gBAAgB,2CAkBlB;AAMD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,EAAE,eAAe,2CAGpD;AAMD,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,KAAK,EACL,UAAU,EACV,KAA0B,EAC1B,cAA0C,GAC3C,EAAE,kBAAkB,CAAC,CAAC,CAAC,kDAmCvB;AAMD,wBAAgB,UAAU,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,eAAe,2CAyC1E;AAMD,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,mBAAmB,2CAMtE;AAMD,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,aAAyB,EAAE,EAAE,wBAAwB,2CAYhG;AAMD,wBAAgB,eAAe,4CAW9B"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { StyleProp, TextStyle, View, ViewStyle } from 'react-native';
|
|
2
2
|
import type { Props as SVGIconProps } from '../icons/common';
|
|
3
3
|
import type { DialogControlProps } from '../dialog/types';
|
|
4
|
-
export type
|
|
4
|
+
export type SelectProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
value?: string;
|
|
7
7
|
onValueChange?: (value: string) => void;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export type
|
|
10
|
+
export type SelectTriggerProps = {
|
|
11
11
|
children: React.ReactNode | ((props: TriggerChildProps) => React.ReactNode);
|
|
12
12
|
label: string;
|
|
13
13
|
};
|
|
@@ -26,12 +26,12 @@ export type TriggerChildProps = {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
* Shows the currently selected value inside a `
|
|
29
|
+
* Shows the currently selected value inside a `SelectTrigger`.
|
|
30
30
|
*
|
|
31
31
|
* Pass a `children` function to extract a display string from the selected
|
|
32
32
|
* item when items are not plain `{ value, label }` objects.
|
|
33
33
|
*/
|
|
34
|
-
export type
|
|
34
|
+
export type SelectValueProps = {
|
|
35
35
|
/**
|
|
36
36
|
* Extracts the display text from the currently-selected item.
|
|
37
37
|
* Defaults to `item => item.label`.
|
|
@@ -40,10 +40,10 @@ export type ValueTextProps = {
|
|
|
40
40
|
placeholder?: string;
|
|
41
41
|
style?: TextStyle;
|
|
42
42
|
};
|
|
43
|
-
export type
|
|
43
|
+
export type SelectIconProps = {
|
|
44
44
|
style?: TextStyle;
|
|
45
45
|
};
|
|
46
|
-
export type
|
|
46
|
+
export type SelectContentProps<T> = {
|
|
47
47
|
/**
|
|
48
48
|
* Label displayed at the top of the selection sheet (native) or
|
|
49
49
|
* used as an ARIA label (web).
|
|
@@ -53,7 +53,7 @@ export type ContentProps<T> = {
|
|
|
53
53
|
label?: string;
|
|
54
54
|
/** The array of items to choose from. */
|
|
55
55
|
items: T[];
|
|
56
|
-
/** Renders a single item. Use `
|
|
56
|
+
/** Renders a single item. Use `SelectItem` inside this callback. */
|
|
57
57
|
renderItem: (item: T, index: number, selectedValue?: string | null) => React.ReactElement;
|
|
58
58
|
/**
|
|
59
59
|
* Extracts a unique string key from an item.
|
|
@@ -61,18 +61,18 @@ export type ContentProps<T> = {
|
|
|
61
61
|
*/
|
|
62
62
|
valueExtractor?: (item: T) => string;
|
|
63
63
|
};
|
|
64
|
-
export type
|
|
64
|
+
export type SelectItemProps = {
|
|
65
65
|
ref?: React.Ref<View>;
|
|
66
66
|
value: string;
|
|
67
67
|
label: string;
|
|
68
68
|
children: React.ReactNode;
|
|
69
69
|
style?: StyleProp<ViewStyle>;
|
|
70
70
|
};
|
|
71
|
-
export type
|
|
71
|
+
export type SelectItemTextProps = {
|
|
72
72
|
children: React.ReactNode;
|
|
73
73
|
style?: TextStyle;
|
|
74
74
|
};
|
|
75
|
-
export type
|
|
75
|
+
export type SelectItemIndicatorProps = {
|
|
76
76
|
icon?: React.ComponentType<SVGIconProps>;
|
|
77
77
|
};
|
|
78
78
|
export type SelectItemContextValue = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS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,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TabsProps,
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
2
|
+
import type { TabsProps, TabsTriggerProps, TabsContentProps } from './types';
|
|
3
|
+
export declare const Tabs: React.NamedExoticComponent<TabsProps>;
|
|
4
|
+
export declare const TabsTrigger: React.NamedExoticComponent<TabsTriggerProps>;
|
|
5
|
+
export declare const TabsContent: React.NamedExoticComponent<TabsContentProps>;
|
|
6
6
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAe,MAAM,SAAS,CAAC;AA4K1F,eAAO,MAAM,IAAI,uCAAyB,CAAC;AAG3C,eAAO,MAAM,WAAW,8CAAqB,CAAC;AAG9C,eAAO,MAAM,WAAW,8CAA0B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type { TabsProps,
|
|
1
|
+
export { Tabs, TabsTrigger, TabsContent } from './Tabs';
|
|
2
|
+
export type { TabsProps, TabsTriggerProps, TabsContentProps, TabsVariant } from './types';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -7,12 +7,12 @@ export interface TabsProps {
|
|
|
7
7
|
onValueChange: (value: string) => void;
|
|
8
8
|
/** Visual variant for the tab bar. */
|
|
9
9
|
variant?: TabsVariant;
|
|
10
|
-
/** The tab items. Must be
|
|
10
|
+
/** The tab items. Must be TabsTrigger components. */
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
style?: StyleProp<ViewStyle>;
|
|
13
13
|
testID?: string;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
15
|
+
export interface TabsTriggerProps {
|
|
16
16
|
/** Unique value identifying this tab. */
|
|
17
17
|
value: string;
|
|
18
18
|
/** Tab label text. */
|
|
@@ -24,7 +24,7 @@ export interface TabProps {
|
|
|
24
24
|
style?: StyleProp<ViewStyle>;
|
|
25
25
|
textStyle?: StyleProp<TextStyle>;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface TabsContentProps {
|
|
28
28
|
/** The tab value this panel corresponds to. */
|
|
29
29
|
value: string;
|
|
30
30
|
/** Panel content. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,SAAS;IACxB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sCAAsC;IACtC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,SAAS;IACxB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sCAAsC;IACtC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,qDAAqD;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,C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