@cdx-ui/primitives 0.0.1-beta.4 → 0.0.1-beta.5

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 (85) hide show
  1. package/lib/commonjs/index.js +12 -0
  2. package/lib/commonjs/index.js.map +1 -1
  3. package/lib/commonjs/list-item/context.js +11 -0
  4. package/lib/commonjs/list-item/context.js.map +1 -0
  5. package/lib/commonjs/list-item/createListItemContent.js +30 -0
  6. package/lib/commonjs/list-item/createListItemContent.js.map +1 -0
  7. package/lib/commonjs/list-item/createListItemDescription.js +25 -0
  8. package/lib/commonjs/list-item/createListItemDescription.js.map +1 -0
  9. package/lib/commonjs/list-item/createListItemLeadingSlot.js +34 -0
  10. package/lib/commonjs/list-item/createListItemLeadingSlot.js.map +1 -0
  11. package/lib/commonjs/list-item/createListItemMeta.js +25 -0
  12. package/lib/commonjs/list-item/createListItemMeta.js.map +1 -0
  13. package/lib/commonjs/list-item/createListItemRoot.js +142 -0
  14. package/lib/commonjs/list-item/createListItemRoot.js.map +1 -0
  15. package/lib/commonjs/list-item/createListItemSectionHeader.js +54 -0
  16. package/lib/commonjs/list-item/createListItemSectionHeader.js.map +1 -0
  17. package/lib/commonjs/list-item/createListItemTitle.js +25 -0
  18. package/lib/commonjs/list-item/createListItemTitle.js.map +1 -0
  19. package/lib/commonjs/list-item/createListItemTrailingSlot.js +28 -0
  20. package/lib/commonjs/list-item/createListItemTrailingSlot.js.map +1 -0
  21. package/lib/commonjs/list-item/index.js +55 -0
  22. package/lib/commonjs/list-item/index.js.map +1 -0
  23. package/lib/commonjs/list-item/types.js +6 -0
  24. package/lib/commonjs/list-item/types.js.map +1 -0
  25. package/lib/module/index.js +1 -0
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/module/list-item/context.js +5 -0
  28. package/lib/module/list-item/context.js.map +1 -0
  29. package/lib/module/list-item/createListItemContent.js +24 -0
  30. package/lib/module/list-item/createListItemContent.js.map +1 -0
  31. package/lib/module/list-item/createListItemDescription.js +19 -0
  32. package/lib/module/list-item/createListItemDescription.js.map +1 -0
  33. package/lib/module/list-item/createListItemLeadingSlot.js +28 -0
  34. package/lib/module/list-item/createListItemLeadingSlot.js.map +1 -0
  35. package/lib/module/list-item/createListItemMeta.js +19 -0
  36. package/lib/module/list-item/createListItemMeta.js.map +1 -0
  37. package/lib/module/list-item/createListItemRoot.js +136 -0
  38. package/lib/module/list-item/createListItemRoot.js.map +1 -0
  39. package/lib/module/list-item/createListItemSectionHeader.js +48 -0
  40. package/lib/module/list-item/createListItemSectionHeader.js.map +1 -0
  41. package/lib/module/list-item/createListItemTitle.js +19 -0
  42. package/lib/module/list-item/createListItemTitle.js.map +1 -0
  43. package/lib/module/list-item/createListItemTrailingSlot.js +22 -0
  44. package/lib/module/list-item/createListItemTrailingSlot.js.map +1 -0
  45. package/lib/module/list-item/index.js +39 -0
  46. package/lib/module/list-item/index.js.map +1 -0
  47. package/lib/module/list-item/types.js +4 -0
  48. package/lib/module/list-item/types.js.map +1 -0
  49. package/lib/typescript/index.d.ts +1 -0
  50. package/lib/typescript/index.d.ts.map +1 -1
  51. package/lib/typescript/list-item/context.d.ts +6 -0
  52. package/lib/typescript/list-item/context.d.ts.map +1 -0
  53. package/lib/typescript/list-item/createListItemContent.d.ts +3 -0
  54. package/lib/typescript/list-item/createListItemContent.d.ts.map +1 -0
  55. package/lib/typescript/list-item/createListItemDescription.d.ts +3 -0
  56. package/lib/typescript/list-item/createListItemDescription.d.ts.map +1 -0
  57. package/lib/typescript/list-item/createListItemLeadingSlot.d.ts +4 -0
  58. package/lib/typescript/list-item/createListItemLeadingSlot.d.ts.map +1 -0
  59. package/lib/typescript/list-item/createListItemMeta.d.ts +3 -0
  60. package/lib/typescript/list-item/createListItemMeta.d.ts.map +1 -0
  61. package/lib/typescript/list-item/createListItemRoot.d.ts +4 -0
  62. package/lib/typescript/list-item/createListItemRoot.d.ts.map +1 -0
  63. package/lib/typescript/list-item/createListItemSectionHeader.d.ts +4 -0
  64. package/lib/typescript/list-item/createListItemSectionHeader.d.ts.map +1 -0
  65. package/lib/typescript/list-item/createListItemTitle.d.ts +3 -0
  66. package/lib/typescript/list-item/createListItemTitle.d.ts.map +1 -0
  67. package/lib/typescript/list-item/createListItemTrailingSlot.d.ts +3 -0
  68. package/lib/typescript/list-item/createListItemTrailingSlot.d.ts.map +1 -0
  69. package/lib/typescript/list-item/index.d.ts +16 -0
  70. package/lib/typescript/list-item/index.d.ts.map +1 -0
  71. package/lib/typescript/list-item/types.d.ts +86 -0
  72. package/lib/typescript/list-item/types.d.ts.map +1 -0
  73. package/package.json +2 -2
  74. package/src/index.ts +1 -0
  75. package/src/list-item/context.tsx +5 -0
  76. package/src/list-item/createListItemContent.tsx +23 -0
  77. package/src/list-item/createListItemDescription.tsx +19 -0
  78. package/src/list-item/createListItemLeadingSlot.tsx +30 -0
  79. package/src/list-item/createListItemMeta.tsx +17 -0
  80. package/src/list-item/createListItemRoot.tsx +163 -0
  81. package/src/list-item/createListItemSectionHeader.tsx +53 -0
  82. package/src/list-item/createListItemTitle.tsx +17 -0
  83. package/src/list-item/createListItemTrailingSlot.tsx +21 -0
  84. package/src/list-item/index.ts +88 -0
  85. package/src/list-item/types.ts +122 -0
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const contentStyle = {
7
+ flex: 1,
8
+ flexDirection: 'column',
9
+ minWidth: 0
10
+ };
11
+ export const createListItemContent = Base => /*#__PURE__*/forwardRef(({
12
+ children,
13
+ style,
14
+ ...props
15
+ }, ref) => /*#__PURE__*/_jsx(Base, {
16
+ ...props,
17
+ ...dataAttributes({
18
+ slot: 'list-item-content'
19
+ }),
20
+ ref: ref,
21
+ style: [contentStyle, style],
22
+ children: children
23
+ }));
24
+ //# sourceMappingURL=createListItemContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","contentStyle","flex","flexDirection","minWidth","createListItemContent","Base","children","style","props","ref","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,MAAMC,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EACPC,aAAa,EAAE,QAAiB;EAChCC,QAAQ,EAAE;AACZ,CAAC;AAED,OAAO,MAAMC,qBAAqB,GAAQC,IAA4B,iBACpET,UAAU,CAAC,CAAC;EAAEU,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAA6B,CAAC,EAAEC,GAAuB,kBACvFV,IAAA,CAACM,IAAI;EAAA,GACEG,KAAK;EAAA,GACNX,cAAc,CAAC;IACjBa,IAAI,EAAE;EACR,CAAC,CAAC;EACFD,GAAG,EAAEA,GAAoB;EACzBF,KAAK,EAAE,CAACP,YAAY,EAAEO,KAAK,CAAE;EAAAD,QAAA,EAE5BA;AAAQ,CACL,CACP,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const createListItemDescription = Base => /*#__PURE__*/forwardRef(({
7
+ children,
8
+ style,
9
+ ...props
10
+ }, ref) => /*#__PURE__*/_jsx(Base, {
11
+ ...props,
12
+ ...dataAttributes({
13
+ slot: 'list-item-description'
14
+ }),
15
+ ref: ref,
16
+ style: style,
17
+ children: children
18
+ }));
19
+ //# sourceMappingURL=createListItemDescription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","createListItemDescription","Base","children","style","props","ref","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemDescription.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,OAAO,MAAMC,yBAAyB,GAAQC,IAA4B,iBACxEL,UAAU,CACR,CAAC;EAAEM,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAiC,CAAC,EAAEC,GAAuB,kBAChFN,IAAA,CAACE,IAAI;EAAA,GACEG,KAAK;EAAA,GACNP,cAAc,CAAC;IACjBS,IAAI,EAAE;EACR,CAAC,CAAC;EACFD,GAAG,EAAEA,GAAoB;EACzBF,KAAK,EAAEA,KAAM;EAAAD,QAAA,EAEZA;AAAQ,CACL,CAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const shrinkZero = {
7
+ flexShrink: 0
8
+ };
9
+ export const createListItemLeadingSlot = Base => /*#__PURE__*/forwardRef(({
10
+ 'aria-hidden': ariaHidden,
11
+ style,
12
+ children,
13
+ ...props
14
+ }, ref) => {
15
+ const accessibilityElementsHidden = ariaHidden !== false;
16
+ return /*#__PURE__*/_jsx(Base, {
17
+ ...props,
18
+ ...dataAttributes({
19
+ slot: 'list-item-leading'
20
+ }),
21
+ accessibilityElementsHidden: accessibilityElementsHidden,
22
+ "aria-hidden": ariaHidden,
23
+ ref: ref,
24
+ style: [shrinkZero, style],
25
+ children: children
26
+ });
27
+ });
28
+ //# sourceMappingURL=createListItemLeadingSlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","shrinkZero","flexShrink","createListItemLeadingSlot","Base","ariaHidden","style","children","props","ref","accessibilityElementsHidden","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemLeadingSlot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,MAAMC,UAAU,GAAG;EAAEC,UAAU,EAAE;AAAW,CAAC;AAE7C,OAAO,MAAMC,yBAAyB,GAAQC,IAA4B,iBACxEP,UAAU,CACR,CACE;EAAE,aAAa,EAAEQ,UAAU;EAAEC,KAAK;EAAEC,QAAQ;EAAE,GAAGC;AAAiC,CAAC,EACnFC,GAAuB,KACpB;EACH,MAAMC,2BAA2B,GAAGL,UAAU,KAAK,KAAK;EAExD,oBACEL,IAAA,CAACI,IAAI;IAAA,GACEI,KAAK;IAAA,GACNV,cAAc,CAAC;MACjBa,IAAI,EAAE;IACR,CAAC,CAAC;IACFD,2BAA2B,EAAEA,2BAA4B;IACzD,eAAaL,UAAW;IACxBI,GAAG,EAAEA,GAAoB;IACzBH,KAAK,EAAE,CAACL,UAAU,EAAEK,KAAK,CAAE;IAAAC,QAAA,EAE1BA;EAAQ,CACL,CAAC;AAEX,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const createListItemMeta = Base => /*#__PURE__*/forwardRef(({
7
+ children,
8
+ style,
9
+ ...props
10
+ }, ref) => /*#__PURE__*/_jsx(Base, {
11
+ ...props,
12
+ ...dataAttributes({
13
+ slot: 'list-item-meta'
14
+ }),
15
+ ref: ref,
16
+ style: style,
17
+ children: children
18
+ }));
19
+ //# sourceMappingURL=createListItemMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","createListItemMeta","Base","children","style","props","ref","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemMeta.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,OAAO,MAAMC,kBAAkB,GAAQC,IAA4B,iBACjEL,UAAU,CAAC,CAAC;EAAEM,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAA0B,CAAC,EAAEC,GAAuB,kBACpFN,IAAA,CAACE,IAAI;EAAA,GACEG,KAAK;EAAA,GACNP,cAAc,CAAC;IACjBS,IAAI,EAAE;EACR,CAAC,CAAC;EACFD,GAAG,EAAEA,GAAoB;EACzBF,KAAK,EAAEA,KAAM;EAAAD,QAAA,EAEZA;AAAQ,CACL,CACP,CAAC","ignoreList":[]}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef, useMemo } from 'react';
4
+ import { composeEventHandlers, mergeRefs } from '@cdx-ui/utils';
5
+ import { useHover, usePress } from '@react-native-aria/interactions';
6
+ import { dataAttributes } from '../utils/dataAttributes';
7
+ import { ListItemProvider } from './context';
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ function listItemRootDataAttrs(size, surface, showSeparator, crossAlign) {
10
+ return dataAttributes({
11
+ slot: 'list-item',
12
+ size: size ?? 'default',
13
+ surface: surface ?? 'default',
14
+ separator: showSeparator ?? true,
15
+ crossAlign: crossAlign ?? 'center'
16
+ });
17
+ }
18
+ function rowStyleForCrossAlign(crossAlign) {
19
+ return {
20
+ flexDirection: 'row',
21
+ alignSelf: 'stretch',
22
+ alignItems: crossAlign === 'start' ? 'flex-start' : 'center'
23
+ };
24
+ }
25
+ export const createListItemRoot = (BaseView, BasePressable) => /*#__PURE__*/forwardRef(({
26
+ asChild = false,
27
+ children,
28
+ onPress,
29
+ size = 'default',
30
+ surface = 'default',
31
+ showSeparator = true,
32
+ crossAlign = 'center',
33
+ disabled = false,
34
+ style,
35
+ ...restProps
36
+ }, ref) => {
37
+ const asChildInteractive = asChild && !!onPress && /*#__PURE__*/React.isValidElement(children);
38
+ const isPressableRoot = !!onPress && !asChildInteractive;
39
+ const pressState = usePress({
40
+ isDisabled: !isPressableRoot || disabled
41
+ });
42
+ const isPressed = pressState.isPressed;
43
+ const pressProps = pressState.pressProps;
44
+ const {
45
+ hoverProps,
46
+ isHovered
47
+ } = useHover();
48
+ const slotAttrs = listItemRootDataAttrs(size, surface, showSeparator, crossAlign);
49
+ const contextValue = useMemo(() => ({
50
+ isPressed: isPressableRoot ? isPressed : false,
51
+ isHovered,
52
+ isDisabled: disabled,
53
+ crossAlign: crossAlign ?? 'center'
54
+ }), [isPressableRoot, isPressed, isHovered, disabled, crossAlign]);
55
+ if (asChildInteractive) {
56
+ const child = children;
57
+ const mergedOnPress = composeEventHandlers(child.props.onPress, onPress);
58
+ const childDisabled = !!child.props.disabled;
59
+ const resolvedDisabled = disabled || childDisabled;
60
+ return /*#__PURE__*/_jsx(ListItemProvider, {
61
+ value: {
62
+ isPressed: false,
63
+ isHovered: false,
64
+ isDisabled: resolvedDisabled,
65
+ crossAlign: crossAlign ?? 'center'
66
+ },
67
+ children: /*#__PURE__*/React.cloneElement(child, {
68
+ ...restProps,
69
+ ...slotAttrs,
70
+ ...dataAttributes({
71
+ active: false,
72
+ hovered: false,
73
+ disabled: resolvedDisabled
74
+ }),
75
+ ...(resolvedDisabled && {
76
+ accessibilityState: {
77
+ disabled: true
78
+ }
79
+ }),
80
+ disabled: resolvedDisabled,
81
+ onPress: resolvedDisabled ? undefined : mergedOnPress,
82
+ ref: mergeRefs(ref, child.props.ref),
83
+ style: [rowStyleForCrossAlign(crossAlign), style, child.props.style]
84
+ })
85
+ });
86
+ }
87
+ if (isPressableRoot) {
88
+ const interactionAttrs = dataAttributes({
89
+ active: isPressed,
90
+ hovered: isHovered,
91
+ disabled
92
+ });
93
+ const {
94
+ onPressIn: onPressInProp,
95
+ onPressOut: onPressOutProp,
96
+ onHoverIn: onHoverInProp,
97
+ onHoverOut: onHoverOutProp
98
+ } = restProps;
99
+ return /*#__PURE__*/_jsx(ListItemProvider, {
100
+ value: contextValue,
101
+ children: /*#__PURE__*/_jsx(BasePressable, {
102
+ ...restProps,
103
+ ...slotAttrs,
104
+ ...interactionAttrs,
105
+ ...(disabled && {
106
+ accessibilityState: {
107
+ disabled: true
108
+ }
109
+ }),
110
+ disabled: disabled,
111
+ ref: ref,
112
+ style: [rowStyleForCrossAlign(crossAlign), style],
113
+ onPress: disabled ? undefined : onPress,
114
+ onPressIn: composeEventHandlers(onPressInProp, pressProps.onPressIn),
115
+ onPressOut: composeEventHandlers(onPressOutProp, pressProps.onPressOut),
116
+ onHoverIn: composeEventHandlers(onHoverInProp, hoverProps.onHoverIn),
117
+ onHoverOut: composeEventHandlers(onHoverOutProp, hoverProps.onHoverOut),
118
+ children: children
119
+ })
120
+ });
121
+ }
122
+ return /*#__PURE__*/_jsx(ListItemProvider, {
123
+ value: contextValue,
124
+ children: /*#__PURE__*/_jsx(BaseView, {
125
+ ...restProps,
126
+ ...slotAttrs,
127
+ ...(disabled ? dataAttributes({
128
+ disabled: true
129
+ }) : undefined),
130
+ ref: ref,
131
+ style: [rowStyleForCrossAlign(crossAlign), style],
132
+ children: children
133
+ })
134
+ });
135
+ });
136
+ //# sourceMappingURL=createListItemRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","useMemo","composeEventHandlers","mergeRefs","useHover","usePress","dataAttributes","ListItemProvider","jsx","_jsx","listItemRootDataAttrs","size","surface","showSeparator","crossAlign","slot","separator","rowStyleForCrossAlign","flexDirection","alignSelf","alignItems","createListItemRoot","BaseView","BasePressable","asChild","children","onPress","disabled","style","restProps","ref","asChildInteractive","isValidElement","isPressableRoot","pressState","isDisabled","isPressed","pressProps","hoverProps","isHovered","slotAttrs","contextValue","child","mergedOnPress","props","childDisabled","resolvedDisabled","value","cloneElement","active","hovered","accessibilityState","undefined","interactionAttrs","onPressIn","onPressInProp","onPressOut","onPressOutProp","onHoverIn","onHoverInProp","onHoverOut","onHoverOutProp"],"sourceRoot":"../../../src","sources":["list-item/createListItemRoot.tsx"],"mapp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;QACxC4B,SAAS,EAAEpD,oBAAoB,CAACqD,aAAa,EAAElB,UAAU,CAACiB,SAAS,CAAE;QACrEE,UAAU,EAAEtD,oBAAoB,CAACuD,cAAc,EAAEpB,UAAU,CAACmB,UAAU,CAAE;QACxEE,SAAS,EAAExD,oBAAoB,CAACyD,aAAa,EAAErB,UAAU,CAACoB,SAAS,CAAE;QACrEE,UAAU,EAAE1D,oBAAoB,CAAC2D,cAAc,EAAEvB,UAAU,CAACsB,UAAU,CAAE;QAAAnC,QAAA,EAEvEA;MAAQ,CACI;IAAC,CACA,CAAC;EAEvB;EAEA,oBACEhB,IAAA,CAACF,gBAAgB;IAACwC,KAAK,EAAEN,YAAa;IAAAhB,QAAA,eACpChB,IAAA,CAACa,QAAQ;MAAA,GACFO,SAAS;MAAA,GACVW,SAAS;MAAA,IACRb,QAAQ,GAAGrB,cAAc,CAAC;QAAEqB,QAAQ,EAAE;MAAK,CAAC,CAAC,GAAGyB,SAAS;MAC9DtB,GAAG,EAAEA,GAAoB;MACzBF,KAAK,EAAE,CAACX,qBAAqB,CAACH,UAAU,CAAC,EAAEc,KAAK,CAAE;MAAAH,QAAA,EAEjDA;IAAQ,CACD;EAAC,CACK,CAAC;AAEvB,CACF,CAAC","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { View } from 'react-native';
5
+ import { dataAttributes } from '../utils/dataAttributes';
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ const row = {
8
+ flexDirection: 'row',
9
+ alignItems: 'center',
10
+ justifyContent: 'space-between',
11
+ gap: 8
12
+ };
13
+ const labelCell = {
14
+ flex: 1,
15
+ minWidth: 0,
16
+ /** Keeps the label column from stretching to a taller trailing sibling (e.g. Chip). */
17
+ alignSelf: 'center'
18
+ };
19
+ const trailingCell = {
20
+ flexShrink: 0,
21
+ /** Prevents the trailing slot from stretching vertically and “filling” the row. */
22
+ alignSelf: 'center'
23
+ };
24
+ export const createListItemSectionHeader = Base => /*#__PURE__*/forwardRef(({
25
+ children,
26
+ trailing,
27
+ showDivider = true,
28
+ style,
29
+ accessibilityRole = 'header',
30
+ ...props
31
+ }, ref) => /*#__PURE__*/_jsxs(Base, {
32
+ ...props,
33
+ ...dataAttributes({
34
+ slot: 'list-section-header',
35
+ divider: showDivider
36
+ }),
37
+ accessibilityRole: accessibilityRole,
38
+ ref: ref,
39
+ style: [row, style],
40
+ children: [/*#__PURE__*/_jsx(View, {
41
+ style: labelCell,
42
+ children: children
43
+ }), trailing ? /*#__PURE__*/_jsx(View, {
44
+ style: trailingCell,
45
+ children: trailing
46
+ }) : null]
47
+ }));
48
+ //# sourceMappingURL=createListItemSectionHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","View","dataAttributes","jsx","_jsx","jsxs","_jsxs","row","flexDirection","alignItems","justifyContent","gap","labelCell","flex","minWidth","alignSelf","trailingCell","flexShrink","createListItemSectionHeader","Base","children","trailing","showDivider","style","accessibilityRole","props","ref","slot","divider"],"sourceRoot":"../../../src","sources":["list-item/createListItemSectionHeader.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGzD,MAAMC,GAAG,GAAG;EACVC,aAAa,EAAE,KAAc;EAC7BC,UAAU,EAAE,QAAiB;EAC7BC,cAAc,EAAE,eAAwB;EACxCC,GAAG,EAAE;AACP,CAAC;AAED,MAAMC,SAAS,GAAG;EAChBC,IAAI,EAAE,CAAC;EACPC,QAAQ,EAAE,CAAC;EACX;EACAC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,YAAY,GAAG;EACnBC,UAAU,EAAE,CAAC;EACb;EACAF,SAAS,EAAE;AACb,CAAC;AAED,OAAO,MAAMG,2BAA2B,GAAQC,IAA4B,iBAC1EnB,UAAU,CACR,CACE;EACEoB,QAAQ;EACRC,QAAQ;EACRC,WAAW,GAAG,IAAI;EAClBC,KAAK;EACLC,iBAAiB,GAAG,QAAQ;EAC5B,GAAGC;AACwB,CAAC,EAC9BC,GAAuB,kBAEvBpB,KAAA,CAACa,IAAI;EAAA,GACEM,KAAK;EAAA,GACNvB,cAAc,CAAC;IACjByB,IAAI,EAAE,qBAAqB;IAC3BC,OAAO,EAAEN;EACX,CAAC,CAAC;EACFE,iBAAiB,EAAEA,iBAAkB;EACrCE,GAAG,EAAEA,GAAoB;EACzBH,KAAK,EAAE,CAAChB,GAAG,EAAEgB,KAAK,CAAE;EAAAH,QAAA,gBAEpBhB,IAAA,CAACH,IAAI;IAACsB,KAAK,EAAEX,SAAU;IAAAQ,QAAA,EAAEA;EAAQ,CAAO,CAAC,EACxCC,QAAQ,gBAAGjB,IAAA,CAACH,IAAI;IAACsB,KAAK,EAAEP,YAAa;IAAAI,QAAA,EAAEC;EAAQ,CAAO,CAAC,GAAG,IAAI;AAAA,CAC3D,CAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const createListItemTitle = Base => /*#__PURE__*/forwardRef(({
7
+ children,
8
+ style,
9
+ ...props
10
+ }, ref) => /*#__PURE__*/_jsx(Base, {
11
+ ...props,
12
+ ...dataAttributes({
13
+ slot: 'list-item-title'
14
+ }),
15
+ ref: ref,
16
+ style: style,
17
+ children: children
18
+ }));
19
+ //# sourceMappingURL=createListItemTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","createListItemTitle","Base","children","style","props","ref","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemTitle.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,OAAO,MAAMC,mBAAmB,GAAQC,IAA4B,iBAClEL,UAAU,CAAC,CAAC;EAAEM,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAA2B,CAAC,EAAEC,GAAuB,kBACrFN,IAAA,CAACE,IAAI;EAAA,GACEG,KAAK;EAAA,GACNP,cAAc,CAAC;IACjBS,IAAI,EAAE;EACR,CAAC,CAAC;EACFD,GAAG,EAAEA,GAAoB;EACzBF,KAAK,EAAEA,KAAM;EAAAD,QAAA,EAEZA;AAAQ,CACL,CACP,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ import React, { forwardRef } from 'react';
4
+ import { dataAttributes } from '../utils/dataAttributes';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const shrinkZero = {
7
+ flexShrink: 0
8
+ };
9
+ export const createListItemTrailingSlot = Base => /*#__PURE__*/forwardRef(({
10
+ children,
11
+ style,
12
+ ...props
13
+ }, ref) => /*#__PURE__*/_jsx(Base, {
14
+ ...props,
15
+ ...dataAttributes({
16
+ slot: 'list-item-trailing'
17
+ }),
18
+ ref: ref,
19
+ style: [shrinkZero, style],
20
+ children: children
21
+ }));
22
+ //# sourceMappingURL=createListItemTrailingSlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","forwardRef","dataAttributes","jsx","_jsx","shrinkZero","flexShrink","createListItemTrailingSlot","Base","children","style","props","ref","slot"],"sourceRoot":"../../../src","sources":["list-item/createListItemTrailingSlot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,cAAc,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGzD,MAAMC,UAAU,GAAG;EAAEC,UAAU,EAAE;AAAW,CAAC;AAE7C,OAAO,MAAMC,0BAA0B,GAAQC,IAA4B,iBACzEP,UAAU,CACR,CAAC;EAAEQ,QAAQ;EAAEC,KAAK;EAAE,GAAGC;AAAkC,CAAC,EAAEC,GAAuB,kBACjFR,IAAA,CAACI,IAAI;EAAA,GACEG,KAAK;EAAA,GACNT,cAAc,CAAC;IACjBW,IAAI,EAAE;EACR,CAAC,CAAC;EACFD,GAAG,EAAEA,GAAoB;EACzBF,KAAK,EAAE,CAACL,UAAU,EAAEK,KAAK,CAAE;EAAAD,QAAA,EAE1BA;AAAQ,CACL,CAEV,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ import { createListItemContent } from './createListItemContent';
4
+ import { createListItemDescription } from './createListItemDescription';
5
+ import { createListItemLeadingSlot } from './createListItemLeadingSlot';
6
+ import { createListItemMeta } from './createListItemMeta';
7
+ import { createListItemRoot } from './createListItemRoot';
8
+ import { createListItemSectionHeader } from './createListItemSectionHeader';
9
+ import { createListItemTitle } from './createListItemTitle';
10
+ import { createListItemTrailingSlot } from './createListItemTrailingSlot';
11
+ export { ListItemProvider, useListItemContext } from './context';
12
+ export function createListItem(BaseComponents) {
13
+ const ListItem = createListItemRoot(BaseComponents.View, BaseComponents.Pressable);
14
+ const LeadingSlot = createListItemLeadingSlot(BaseComponents.LeadingSlot);
15
+ const Content = createListItemContent(BaseComponents.Content);
16
+ const Title = createListItemTitle(BaseComponents.Title);
17
+ const Description = createListItemDescription(BaseComponents.Description);
18
+ const Meta = createListItemMeta(BaseComponents.Meta);
19
+ const TrailingSlot = createListItemTrailingSlot(BaseComponents.TrailingSlot);
20
+ const SectionHeader = createListItemSectionHeader(BaseComponents.SectionHeader);
21
+ ListItem.displayName = 'ListItemPrimitive';
22
+ LeadingSlot.displayName = 'ListItemPrimitive.LeadingSlot';
23
+ Content.displayName = 'ListItemPrimitive.Content';
24
+ Title.displayName = 'ListItemPrimitive.Title';
25
+ Description.displayName = 'ListItemPrimitive.Description';
26
+ Meta.displayName = 'ListItemPrimitive.Meta';
27
+ TrailingSlot.displayName = 'ListItemPrimitive.TrailingSlot';
28
+ SectionHeader.displayName = 'ListItemPrimitive.SectionHeader';
29
+ return Object.assign(ListItem, {
30
+ LeadingSlot,
31
+ Content,
32
+ Title,
33
+ Description,
34
+ Meta,
35
+ TrailingSlot,
36
+ SectionHeader
37
+ });
38
+ }
39
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createListItemContent","createListItemDescription","createListItemLeadingSlot","createListItemMeta","createListItemRoot","createListItemSectionHeader","createListItemTitle","createListItemTrailingSlot","ListItemProvider","useListItemContext","createListItem","BaseComponents","ListItem","View","Pressable","LeadingSlot","Content","Title","Description","Meta","TrailingSlot","SectionHeader","displayName","Object","assign"],"sourceRoot":"../../../src","sources":["list-item/index.ts"],"mappings":";;AACA,SAASA,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,yBAAyB,QAAQ,6BAA6B;AACvE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,0BAA0B,QAAQ,8BAA8B;AAoBzE,SAASC,gBAAgB,EAAEC,kBAAkB,QAAQ,WAAW;AAEhE,OAAO,SAASC,cAAcA,CAU5BC,cAUD,EAAE;EACD,MAAMC,QAAQ,GAAGR,kBAAkB,CAACO,cAAc,CAACE,IAAI,EAAEF,cAAc,CAACG,SAAS,CAAC;EAClF,MAAMC,WAAW,GAAGb,yBAAyB,CAACS,cAAc,CAACI,WAAW,CAAC;EACzE,MAAMC,OAAO,GAAGhB,qBAAqB,CAACW,cAAc,CAACK,OAAO,CAAC;EAC7D,MAAMC,KAAK,GAAGX,mBAAmB,CAACK,cAAc,CAACM,KAAK,CAAC;EACvD,MAAMC,WAAW,GAAGjB,yBAAyB,CAACU,cAAc,CAACO,WAAW,CAAC;EACzE,MAAMC,IAAI,GAAGhB,kBAAkB,CAACQ,cAAc,CAACQ,IAAI,CAAC;EACpD,MAAMC,YAAY,GAAGb,0BAA0B,CAACI,cAAc,CAACS,YAAY,CAAC;EAC5E,MAAMC,aAAa,GAAGhB,2BAA2B,CAACM,cAAc,CAACU,aAAa,CAAC;EAE/ET,QAAQ,CAACU,WAAW,GAAG,mBAAmB;EAC1CP,WAAW,CAACO,WAAW,GAAG,+BAA+B;EACzDN,OAAO,CAACM,WAAW,GAAG,2BAA2B;EACjDL,KAAK,CAACK,WAAW,GAAG,yBAAyB;EAC7CJ,WAAW,CAACI,WAAW,GAAG,+BAA+B;EACzDH,IAAI,CAACG,WAAW,GAAG,wBAAwB;EAC3CF,YAAY,CAACE,WAAW,GAAG,gCAAgC;EAC3DD,aAAa,CAACC,WAAW,GAAG,iCAAiC;EAE7D,OAAOC,MAAM,CAACC,MAAM,CAACZ,QAAQ,EAAE;IAC7BG,WAAW;IACXC,OAAO;IACPC,KAAK;IACLC,WAAW;IACXC,IAAI;IACJC,YAAY;IACZC;EACF,CAAC,CAAC;AAUJ","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["list-item/types.ts"],"mappings":"","ignoreList":[]}
@@ -7,6 +7,7 @@ export * from './form';
7
7
  export * from './input';
8
8
  export * from './otp-input';
9
9
  export * from './link';
10
+ export * from './list-item';
10
11
  export { type EdgeInsets, OverlayInsetsProvider } from './overlay';
11
12
  export * from './select';
12
13
  export * from './switch';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,UAAU,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACnE,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACnE,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IListItemContextValue } from './types';
2
+ export declare const ListItemProvider: import("react").FunctionComponent<{
3
+ children: import("react").ReactNode;
4
+ value: IListItemContextValue;
5
+ }>, useListItemContext: () => IListItemContextValue;
6
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/list-item/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAO,gBAAgB;;;IAAE,kBAAkB,6BACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemContent: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").ViewProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemContent.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAYlE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemDescription: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemDescription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemDescription.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,yBAAyB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAcvE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemLeadingSlotProps } from './types';
3
+ export declare const createListItemLeadingSlot: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<IListItemLeadingSlotProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemLeadingSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemLeadingSlot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemLeadingSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD,eAAO,MAAM,yBAAyB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,8FAuBvE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemMeta: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemMeta.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemMeta.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAY/D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemProps } from './types';
3
+ export declare const createListItemRoot: <V, P>(BaseView: React.ComponentType<V>, BasePressable: React.ComponentType<P>) => React.ForwardRefExoticComponent<IListItemProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemRoot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,cAAc,EAAiC,MAAM,SAAS,CAAC;AAyB7E,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAAE,CAAC,EACrC,UAAU,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAChC,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,mFAiIpC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { IListItemSectionHeaderProps } from './types';
3
+ export declare const createListItemSectionHeader: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<IListItemSectionHeaderProps & React.RefAttributes<unknown>>;
4
+ //# sourceMappingURL=createListItemSectionHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemSectionHeader.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemSectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAsB3D,eAAO,MAAM,2BAA2B,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,gGA2BzE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemTitle: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").TextProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemTitle.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAYhE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const createListItemTrailingSlot: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<import("react-native").ViewProps & React.RefAttributes<unknown>>;
3
+ //# sourceMappingURL=createListItemTrailingSlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createListItemTrailingSlot.d.ts","sourceRoot":"","sources":["../../../src/list-item/createListItemTrailingSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,0BAA0B,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAcxE,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ import type { IListItemComponentType } from './types';
3
+ export type { IListItemComponentType, IListItemContentProps, IListItemContextValue, IListItemDescriptionProps, IListItemLeadingSlotProps, IListItemMetaProps, IListItemPressablePassthrough, IListItemProps, IListItemSectionHeaderProps, IListItemTitleProps, IListItemTrailingSlotProps, ListItemCrossAlign, ListItemSize, ListItemSurface, } from './types';
4
+ export { ListItemProvider, useListItemContext } from './context';
5
+ export declare function createListItem<ViewComponent, PressableComponent, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader>(BaseComponents: {
6
+ View: React.ComponentType<ViewComponent>;
7
+ Pressable: React.ComponentType<PressableComponent>;
8
+ LeadingSlot: React.ComponentType<LeadingSlot>;
9
+ Content: React.ComponentType<Content>;
10
+ Title: React.ComponentType<Title>;
11
+ Description: React.ComponentType<Description>;
12
+ Meta: React.ComponentType<Meta>;
13
+ TrailingSlot: React.ComponentType<TrailingSlot>;
14
+ SectionHeader: React.ComponentType<SectionHeader>;
15
+ }): IListItemComponentType<ViewComponent | PressableComponent, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/list-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACd,2BAA2B,EAC3B,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB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