@cdx-ui/primitives 0.0.1-beta.3 → 0.0.1-beta.31
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 +49 -24
- package/lib/commonjs/checkbox/createCheckboxRoot.web.js +8 -3
- package/lib/commonjs/checkbox/createCheckboxRoot.web.js.map +1 -1
- package/lib/commonjs/field/createFieldLabel.js.map +1 -1
- package/lib/commonjs/index.js +36 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/input/createInputField.js +5 -0
- package/lib/commonjs/input/createInputField.js.map +1 -1
- package/lib/commonjs/list-item/context.js +11 -0
- package/lib/commonjs/list-item/context.js.map +1 -0
- package/lib/commonjs/list-item/createListItemContent.js +30 -0
- package/lib/commonjs/list-item/createListItemContent.js.map +1 -0
- package/lib/commonjs/list-item/createListItemDescription.js +25 -0
- package/lib/commonjs/list-item/createListItemDescription.js.map +1 -0
- package/lib/commonjs/list-item/createListItemLeadingSlot.js +34 -0
- package/lib/commonjs/list-item/createListItemLeadingSlot.js.map +1 -0
- package/lib/commonjs/list-item/createListItemMeta.js +25 -0
- package/lib/commonjs/list-item/createListItemMeta.js.map +1 -0
- package/lib/commonjs/list-item/createListItemRoot.js +157 -0
- package/lib/commonjs/list-item/createListItemRoot.js.map +1 -0
- package/lib/commonjs/list-item/createListItemSectionHeader.js +54 -0
- package/lib/commonjs/list-item/createListItemSectionHeader.js.map +1 -0
- package/lib/commonjs/list-item/createListItemTitle.js +25 -0
- package/lib/commonjs/list-item/createListItemTitle.js.map +1 -0
- package/lib/commonjs/list-item/createListItemTrailingSlot.js +28 -0
- package/lib/commonjs/list-item/createListItemTrailingSlot.js.map +1 -0
- package/lib/commonjs/list-item/index.js +55 -0
- package/lib/commonjs/list-item/index.js.map +1 -0
- package/lib/commonjs/list-item/types.js +6 -0
- package/lib/commonjs/list-item/types.js.map +1 -0
- package/lib/commonjs/radio/context.js +14 -0
- package/lib/commonjs/radio/context.js.map +1 -0
- package/lib/commonjs/radio/createRadioGroup.js +66 -0
- package/lib/commonjs/radio/createRadioGroup.js.map +1 -0
- package/lib/commonjs/radio/createRadioIndicator.js +43 -0
- package/lib/commonjs/radio/createRadioIndicator.js.map +1 -0
- package/lib/commonjs/radio/createRadioLabel.js +38 -0
- package/lib/commonjs/radio/createRadioLabel.js.map +1 -0
- package/lib/commonjs/radio/createRadioRoot.js +95 -0
- package/lib/commonjs/radio/createRadioRoot.js.map +1 -0
- package/lib/commonjs/radio/createRadioRoot.web.js +87 -0
- package/lib/commonjs/radio/createRadioRoot.web.js.map +1 -0
- package/lib/commonjs/radio/index.js +26 -0
- package/lib/commonjs/radio/index.js.map +1 -0
- package/lib/commonjs/radio/types.js +6 -0
- package/lib/commonjs/radio/types.js.map +1 -0
- package/lib/commonjs/radio/useRadioRoot.js +64 -0
- package/lib/commonjs/radio/useRadioRoot.js.map +1 -0
- package/lib/commonjs/select/createSelectTrigger.js +17 -4
- package/lib/commonjs/select/createSelectTrigger.js.map +1 -1
- package/lib/commonjs/tile/context.js +30 -0
- package/lib/commonjs/tile/context.js.map +1 -0
- package/lib/commonjs/tile/createTileContent.js +30 -0
- package/lib/commonjs/tile/createTileContent.js.map +1 -0
- package/lib/commonjs/tile/createTileDescription.js +28 -0
- package/lib/commonjs/tile/createTileDescription.js.map +1 -0
- package/lib/commonjs/tile/createTileGroup.js +112 -0
- package/lib/commonjs/tile/createTileGroup.js.map +1 -0
- package/lib/commonjs/tile/createTileIndicator.js +46 -0
- package/lib/commonjs/tile/createTileIndicator.js.map +1 -0
- package/lib/commonjs/tile/createTileLeadingSlot.js +34 -0
- package/lib/commonjs/tile/createTileLeadingSlot.js.map +1 -0
- package/lib/commonjs/tile/createTileRoot.js +133 -0
- package/lib/commonjs/tile/createTileRoot.js.map +1 -0
- package/lib/commonjs/tile/createTileTitle.js +28 -0
- package/lib/commonjs/tile/createTileTitle.js.map +1 -0
- package/lib/commonjs/tile/createTileTrailingSlot.js +35 -0
- package/lib/commonjs/tile/createTileTrailingSlot.js.map +1 -0
- package/lib/commonjs/tile/index.js +55 -0
- package/lib/commonjs/tile/index.js.map +1 -0
- package/lib/commonjs/tile/types.js +6 -0
- package/lib/commonjs/tile/types.js.map +1 -0
- package/lib/module/checkbox/createCheckboxRoot.web.js +8 -2
- package/lib/module/checkbox/createCheckboxRoot.web.js.map +1 -1
- package/lib/module/field/createFieldLabel.js.map +1 -1
- package/lib/module/index.js +3 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/input/createInputField.js +5 -0
- package/lib/module/input/createInputField.js.map +1 -1
- package/lib/module/list-item/context.js +5 -0
- package/lib/module/list-item/context.js.map +1 -0
- package/lib/module/list-item/createListItemContent.js +24 -0
- package/lib/module/list-item/createListItemContent.js.map +1 -0
- package/lib/module/list-item/createListItemDescription.js +19 -0
- package/lib/module/list-item/createListItemDescription.js.map +1 -0
- package/lib/module/list-item/createListItemLeadingSlot.js +28 -0
- package/lib/module/list-item/createListItemLeadingSlot.js.map +1 -0
- package/lib/module/list-item/createListItemMeta.js +19 -0
- package/lib/module/list-item/createListItemMeta.js.map +1 -0
- package/lib/module/list-item/createListItemRoot.js +151 -0
- package/lib/module/list-item/createListItemRoot.js.map +1 -0
- package/lib/module/list-item/createListItemSectionHeader.js +48 -0
- package/lib/module/list-item/createListItemSectionHeader.js.map +1 -0
- package/lib/module/list-item/createListItemTitle.js +19 -0
- package/lib/module/list-item/createListItemTitle.js.map +1 -0
- package/lib/module/list-item/createListItemTrailingSlot.js +22 -0
- package/lib/module/list-item/createListItemTrailingSlot.js.map +1 -0
- package/lib/module/list-item/index.js +39 -0
- package/lib/module/list-item/index.js.map +1 -0
- package/lib/module/list-item/types.js +4 -0
- package/lib/module/list-item/types.js.map +1 -0
- package/lib/module/radio/context.js +7 -0
- package/lib/module/radio/context.js.map +1 -0
- package/lib/module/radio/createRadioGroup.js +61 -0
- package/lib/module/radio/createRadioGroup.js.map +1 -0
- package/lib/module/radio/createRadioIndicator.js +38 -0
- package/lib/module/radio/createRadioIndicator.js.map +1 -0
- package/lib/module/radio/createRadioLabel.js +33 -0
- package/lib/module/radio/createRadioLabel.js.map +1 -0
- package/lib/module/radio/createRadioRoot.js +90 -0
- package/lib/module/radio/createRadioRoot.js.map +1 -0
- package/lib/module/radio/createRadioRoot.web.js +82 -0
- package/lib/module/radio/createRadioRoot.web.js.map +1 -0
- package/lib/module/radio/index.js +22 -0
- package/lib/module/radio/index.js.map +1 -0
- package/lib/module/radio/types.js +4 -0
- package/lib/module/radio/types.js.map +1 -0
- package/lib/module/radio/useRadioRoot.js +60 -0
- package/lib/module/radio/useRadioRoot.js.map +1 -0
- package/lib/module/select/createSelectTrigger.js +19 -6
- package/lib/module/select/createSelectTrigger.js.map +1 -1
- package/lib/module/tile/context.js +21 -0
- package/lib/module/tile/context.js.map +1 -0
- package/lib/module/tile/createTileContent.js +24 -0
- package/lib/module/tile/createTileContent.js.map +1 -0
- package/lib/module/tile/createTileDescription.js +22 -0
- package/lib/module/tile/createTileDescription.js.map +1 -0
- package/lib/module/tile/createTileGroup.js +106 -0
- package/lib/module/tile/createTileGroup.js.map +1 -0
- package/lib/module/tile/createTileIndicator.js +40 -0
- package/lib/module/tile/createTileIndicator.js.map +1 -0
- package/lib/module/tile/createTileLeadingSlot.js +28 -0
- package/lib/module/tile/createTileLeadingSlot.js.map +1 -0
- package/lib/module/tile/createTileRoot.js +127 -0
- package/lib/module/tile/createTileRoot.js.map +1 -0
- package/lib/module/tile/createTileTitle.js +22 -0
- package/lib/module/tile/createTileTitle.js.map +1 -0
- package/lib/module/tile/createTileTrailingSlot.js +29 -0
- package/lib/module/tile/createTileTrailingSlot.js.map +1 -0
- package/lib/module/tile/index.js +39 -0
- package/lib/module/tile/index.js.map +1 -0
- package/lib/module/tile/types.js +4 -0
- package/lib/module/tile/types.js.map +1 -0
- package/lib/typescript/checkbox/createCheckboxRoot.web.d.ts +4 -0
- package/lib/typescript/checkbox/createCheckboxRoot.web.d.ts.map +1 -1
- package/lib/typescript/checkbox/useCheckboxRoot.d.ts +2 -0
- package/lib/typescript/checkbox/useCheckboxRoot.d.ts.map +1 -1
- package/lib/typescript/field/createFieldLabel.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +3 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/input/createInputField.d.ts.map +1 -1
- package/lib/typescript/list-item/context.d.ts +6 -0
- package/lib/typescript/list-item/context.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemContent.d.ts +3 -0
- package/lib/typescript/list-item/createListItemContent.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemDescription.d.ts +3 -0
- package/lib/typescript/list-item/createListItemDescription.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemLeadingSlot.d.ts +4 -0
- package/lib/typescript/list-item/createListItemLeadingSlot.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemMeta.d.ts +3 -0
- package/lib/typescript/list-item/createListItemMeta.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemRoot.d.ts +4 -0
- package/lib/typescript/list-item/createListItemRoot.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemSectionHeader.d.ts +4 -0
- package/lib/typescript/list-item/createListItemSectionHeader.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemTitle.d.ts +3 -0
- package/lib/typescript/list-item/createListItemTitle.d.ts.map +1 -0
- package/lib/typescript/list-item/createListItemTrailingSlot.d.ts +3 -0
- package/lib/typescript/list-item/createListItemTrailingSlot.d.ts.map +1 -0
- package/lib/typescript/list-item/index.d.ts +16 -0
- package/lib/typescript/list-item/index.d.ts.map +1 -0
- package/lib/typescript/list-item/types.d.ts +86 -0
- package/lib/typescript/list-item/types.d.ts.map +1 -0
- package/lib/typescript/radio/context.d.ts +21 -0
- package/lib/typescript/radio/context.d.ts.map +1 -0
- package/lib/typescript/radio/createRadioGroup.d.ts +3 -0
- package/lib/typescript/radio/createRadioGroup.d.ts.map +1 -0
- package/lib/typescript/radio/createRadioIndicator.d.ts +5 -0
- package/lib/typescript/radio/createRadioIndicator.d.ts.map +1 -0
- package/lib/typescript/radio/createRadioLabel.d.ts +5 -0
- package/lib/typescript/radio/createRadioLabel.d.ts.map +1 -0
- package/lib/typescript/radio/createRadioRoot.d.ts +3 -0
- package/lib/typescript/radio/createRadioRoot.d.ts.map +1 -0
- package/lib/typescript/radio/createRadioRoot.web.d.ts +3 -0
- package/lib/typescript/radio/createRadioRoot.web.d.ts.map +1 -0
- package/lib/typescript/radio/index.d.ts +10 -0
- package/lib/typescript/radio/index.d.ts.map +1 -0
- package/lib/typescript/radio/types.d.ts +54 -0
- package/lib/typescript/radio/types.d.ts.map +1 -0
- package/lib/typescript/radio/useRadioRoot.d.ts +151 -0
- package/lib/typescript/radio/useRadioRoot.d.ts.map +1 -0
- package/lib/typescript/select/createSelectTrigger.d.ts.map +1 -1
- package/lib/typescript/tile/context.d.ts +9 -0
- package/lib/typescript/tile/context.d.ts.map +1 -0
- package/lib/typescript/tile/createTileContent.d.ts +3 -0
- package/lib/typescript/tile/createTileContent.d.ts.map +1 -0
- package/lib/typescript/tile/createTileDescription.d.ts +3 -0
- package/lib/typescript/tile/createTileDescription.d.ts.map +1 -0
- package/lib/typescript/tile/createTileGroup.d.ts +4 -0
- package/lib/typescript/tile/createTileGroup.d.ts.map +1 -0
- package/lib/typescript/tile/createTileIndicator.d.ts +4 -0
- package/lib/typescript/tile/createTileIndicator.d.ts.map +1 -0
- package/lib/typescript/tile/createTileLeadingSlot.d.ts +4 -0
- package/lib/typescript/tile/createTileLeadingSlot.d.ts.map +1 -0
- package/lib/typescript/tile/createTileRoot.d.ts +4 -0
- package/lib/typescript/tile/createTileRoot.d.ts.map +1 -0
- package/lib/typescript/tile/createTileTitle.d.ts +3 -0
- package/lib/typescript/tile/createTileTitle.d.ts.map +1 -0
- package/lib/typescript/tile/createTileTrailingSlot.d.ts +9 -0
- package/lib/typescript/tile/createTileTrailingSlot.d.ts.map +1 -0
- package/lib/typescript/tile/index.d.ts +15 -0
- package/lib/typescript/tile/index.d.ts.map +1 -0
- package/lib/typescript/tile/types.d.ts +119 -0
- package/lib/typescript/tile/types.d.ts.map +1 -0
- package/package.json +5 -2
- package/src/checkbox/createCheckboxRoot.web.tsx +6 -2
- package/src/field/createFieldLabel.tsx +4 -1
- package/src/index.ts +3 -0
- package/src/input/createInputField.tsx +6 -0
- package/src/list-item/context.tsx +5 -0
- package/src/list-item/createListItemContent.tsx +23 -0
- package/src/list-item/createListItemDescription.tsx +19 -0
- package/src/list-item/createListItemLeadingSlot.tsx +30 -0
- package/src/list-item/createListItemMeta.tsx +17 -0
- package/src/list-item/createListItemRoot.tsx +178 -0
- package/src/list-item/createListItemSectionHeader.tsx +53 -0
- package/src/list-item/createListItemTitle.tsx +17 -0
- package/src/list-item/createListItemTrailingSlot.tsx +21 -0
- package/src/list-item/index.ts +88 -0
- package/src/list-item/types.ts +122 -0
- package/src/radio/context.tsx +21 -0
- package/src/radio/createRadioGroup.tsx +67 -0
- package/src/radio/createRadioIndicator.tsx +32 -0
- package/src/radio/createRadioLabel.tsx +28 -0
- package/src/radio/createRadioRoot.tsx +100 -0
- package/src/radio/createRadioRoot.web.tsx +81 -0
- package/src/radio/index.ts +37 -0
- package/src/radio/types.ts +67 -0
- package/src/radio/useRadioRoot.ts +69 -0
- package/src/select/createSelectTrigger.tsx +26 -3
- package/src/tile/context.tsx +23 -0
- package/src/tile/createTileContent.tsx +23 -0
- package/src/tile/createTileDescription.tsx +19 -0
- package/src/tile/createTileGroup.tsx +134 -0
- package/src/tile/createTileIndicator.tsx +38 -0
- package/src/tile/createTileLeadingSlot.tsx +30 -0
- package/src/tile/createTileRoot.tsx +124 -0
- package/src/tile/createTileTitle.tsx +19 -0
- package/src/tile/createTileTrailingSlot.tsx +25 -0
- package/src/tile/index.ts +88 -0
- package/src/tile/types.ts +153 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInputField.d.ts","sourceRoot":"","sources":["../../../src/input/createInputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,gBAAgB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"createInputField.d.ts","sourceRoot":"","sources":["../../../src/input/createInputField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,gBAAgB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,gFA0GxE,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,mFAgJpC,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 @@
|
|
|
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 @@
|
|
|
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,EAAE,MAAM,WAAW,CAAC;AAEjE,wBAAgB,cAAc,CAC5B,aAAa,EACb,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,EACb,cAAc,EAAE;IAChB,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACzC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IACnD,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC9C,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACtC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,WAAW,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IAC9C,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;CACnD,GA2BO,sBAAsB,CAC1B,aAAa,GAAG,kBAAkB,EAClC,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,CACd,CACF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
|
|
2
|
+
import type { PressableProps, TextProps, ViewProps } from 'react-native';
|
|
3
|
+
export type ListItemSize = 'default' | 'compact';
|
|
4
|
+
export type ListItemSurface = 'default' | 'negative';
|
|
5
|
+
/**
|
|
6
|
+
* Cross-axis alignment for the row (`flex-direction: row`).
|
|
7
|
+
* - **center**: Leading, content, and trailing are vertically centered (typical transactions).
|
|
8
|
+
* - **start**: Top-aligned — use when trailing text should align with the title row (e.g. branch distance “2.04 mi”) or status chips sit above a tall content stack.
|
|
9
|
+
*/
|
|
10
|
+
export type ListItemCrossAlign = 'center' | 'start';
|
|
11
|
+
export type IListItemPressablePassthrough = Partial<Pick<PressableProps, 'onPressIn' | 'onPressOut' | 'onHoverIn' | 'onHoverOut'>>;
|
|
12
|
+
export interface IListItemProps extends ViewProps, IListItemPressablePassthrough {
|
|
13
|
+
/**
|
|
14
|
+
* Disables press handling when the root is pressable (maps to Pressable `disabled`).
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* When set (and `asChild` is not used), root renders as pressable with interaction props.
|
|
19
|
+
*/
|
|
20
|
+
onPress?: PressableProps['onPress'];
|
|
21
|
+
/**
|
|
22
|
+
* Vertical density; mapped at styled layer via `data-size`.
|
|
23
|
+
* @default 'default'
|
|
24
|
+
*/
|
|
25
|
+
size?: ListItemSize;
|
|
26
|
+
/**
|
|
27
|
+
* Semantic row surface (e.g. canceled transaction); mapped via `data-surface`.
|
|
28
|
+
* @default 'default'
|
|
29
|
+
*/
|
|
30
|
+
surface?: ListItemSurface;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the row shows a bottom separator; mapped via `data-separator`.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
showSeparator?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Vertical alignment of leading / content / trailing along the row cross axis.
|
|
38
|
+
* @default 'center'
|
|
39
|
+
*/
|
|
40
|
+
crossAlign?: ListItemCrossAlign;
|
|
41
|
+
/**
|
|
42
|
+
* Merge interaction props onto a single child instead of rendering the default pressable root.
|
|
43
|
+
* Intended for use with `onPress`.
|
|
44
|
+
*/
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface IListItemContextValue {
|
|
48
|
+
isPressed: boolean;
|
|
49
|
+
isHovered: boolean;
|
|
50
|
+
isDisabled: boolean;
|
|
51
|
+
crossAlign: ListItemCrossAlign;
|
|
52
|
+
}
|
|
53
|
+
export interface IListItemLeadingSlotProps extends ViewProps {
|
|
54
|
+
/**
|
|
55
|
+
* Decorative leading content defaults to hidden from the accessibility tree.
|
|
56
|
+
* Set to `false` when the leading region contains meaningful controls.
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
'aria-hidden'?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export type IListItemContentProps = ViewProps;
|
|
62
|
+
export type IListItemTitleProps = TextProps;
|
|
63
|
+
export type IListItemDescriptionProps = TextProps;
|
|
64
|
+
export type IListItemMetaProps = TextProps;
|
|
65
|
+
export type IListItemTrailingSlotProps = ViewProps;
|
|
66
|
+
export interface IListItemSectionHeaderProps extends ViewProps {
|
|
67
|
+
/** Primary section label (e.g. date heading). */
|
|
68
|
+
children: ReactNode;
|
|
69
|
+
/** Optional right-aligned adornment (e.g. section Chip). */
|
|
70
|
+
trailing?: ReactNode;
|
|
71
|
+
/**
|
|
72
|
+
* Whether to expose the top divider marker for styling (`data-divider`).
|
|
73
|
+
* @default true
|
|
74
|
+
*/
|
|
75
|
+
showDivider?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export type IListItemComponentType<RootRef, LeadingSlot, Content, Title, Description, Meta, TrailingSlot, SectionHeader> = ForwardRefExoticComponent<RefAttributes<RootRef> & IListItemProps> & {
|
|
78
|
+
LeadingSlot: ForwardRefExoticComponent<RefAttributes<LeadingSlot> & PropsWithoutRef<LeadingSlot> & IListItemLeadingSlotProps>;
|
|
79
|
+
Content: ForwardRefExoticComponent<RefAttributes<Content> & PropsWithoutRef<Content> & IListItemContentProps>;
|
|
80
|
+
Title: ForwardRefExoticComponent<RefAttributes<Title> & PropsWithoutRef<Title> & IListItemTitleProps>;
|
|
81
|
+
Description: ForwardRefExoticComponent<RefAttributes<Description> & PropsWithoutRef<Description> & IListItemDescriptionProps>;
|
|
82
|
+
Meta: ForwardRefExoticComponent<RefAttributes<Meta> & PropsWithoutRef<Meta> & IListItemMetaProps>;
|
|
83
|
+
TrailingSlot: ForwardRefExoticComponent<RefAttributes<TrailingSlot> & PropsWithoutRef<TrailingSlot> & IListItemTrailingSlotProps>;
|
|
84
|
+
SectionHeader: ForwardRefExoticComponent<RefAttributes<SectionHeader> & PropsWithoutRef<SectionHeader> & IListItemSectionHeaderProps>;
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/list-item/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAClG,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,YAAY,CAAC,CAC9E,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,SAAS,EAAE,6BAA6B;IAC9E;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,kBAAkB,CAAC;CAChC;AAED,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE5C,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAE3C,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAC;AAEnD,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D,iDAAiD;IACjD,QAAQ,EAAE,SAAS,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,CAChC,OAAO,EACP,WAAW,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,aAAa,IACX,yBAAyB,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,GAAG;IACvE,WAAW,EAAE,yBAAyB,CACpC,aAAa,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,yBAAyB,CACtF,CAAC;IACF,OAAO,EAAE,yBAAyB,CAChC,aAAa,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG,qBAAqB,CAC1E,CAAC;IACF,KAAK,EAAE,yBAAyB,CAC9B,aAAa,CAAC,KAAK,CAAC,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,mBAAmB,CACpE,CAAC;IACF,WAAW,EAAE,yBAAyB,CACpC,aAAa,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,yBAAyB,CACtF,CAAC;IACF,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;IAClG,YAAY,EAAE,yBAAyB,CACrC,aAAa,CAAC,YAAY,CAAC,GAAG,eAAe,CAAC,YAAY,CAAC,GAAG,0BAA0B,CACzF,CAAC;IACF,aAAa,EAAE,yBAAyB,CACtC,aAAa,CAAC,aAAa,CAAC,GAAG,eAAe,CAAC,aAAa,CAAC,GAAG,2BAA2B,CAC5F,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { RadioGroupState } from '@react-stately/radio';
|
|
3
|
+
import type { IRadioContextValue } from './types';
|
|
4
|
+
export declare const RadioProvider: React.FunctionComponent<{
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
value: IRadioContextValue;
|
|
7
|
+
}>, useRadioContext: () => IRadioContextValue;
|
|
8
|
+
export interface IRadioGroupState {
|
|
9
|
+
isReadOnly: boolean;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
isInvalid: boolean;
|
|
12
|
+
isRequired: boolean;
|
|
13
|
+
isSelected: (value: string) => boolean;
|
|
14
|
+
selectValue: (value: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const RadioGroupContext: React.Context<{
|
|
17
|
+
state: IRadioGroupState;
|
|
18
|
+
radioGroupState: RadioGroupState;
|
|
19
|
+
name?: string;
|
|
20
|
+
} | null>;
|
|
21
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/radio/context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,eAAO,MAAO,aAAa;;;IAAE,eAAe,0BAAqD,CAAC;AAElG,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;IACvC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,iBAAiB;WACrB,gBAAgB;qBACN,eAAe;WACzB,MAAM;SACA,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IRadioGroupProps } from './types';
|
|
2
|
+
export declare const createRadioGroup: <T>(BaseRadioGroup: React.ComponentType<T>) => import("react").ForwardRefExoticComponent<IRadioGroupProps & import("react").RefAttributes<T>>;
|
|
3
|
+
//# sourceMappingURL=createRadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioGroup.d.ts","sourceRoot":"","sources":["../../../src/radio/createRadioGroup.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,gBAAgB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,mGA0DvE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IRadioIndicatorProps } from './types';
|
|
2
|
+
export declare const createRadioIndicator: <T>(BaseRadioIndicator: React.ComponentType<T>) => import("react").ForwardRefExoticComponent<IRadioIndicatorProps & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & import("react").RefAttributes<unknown>>;
|
|
5
|
+
//# sourceMappingURL=createRadioIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioIndicator.d.ts","sourceRoot":"","sources":["../../../src/radio/createRadioIndicator.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,eAAO,MAAM,oBAAoB,GAAI,CAAC,EAAG,oBAAoB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;gBACxB,MAAM;2CAyB9D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IRadioLabelProps } from './types';
|
|
2
|
+
export declare const createRadioLabel: <T>(BaseRadioLabel: React.ComponentType<T>) => import("react").ForwardRefExoticComponent<IRadioLabelProps & {
|
|
3
|
+
className?: string;
|
|
4
|
+
} & import("react").RefAttributes<unknown>>;
|
|
5
|
+
//# sourceMappingURL=createRadioLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioLabel.d.ts","sourceRoot":"","sources":["../../../src/radio/createRadioLabel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAAG,gBAAgB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;gBACpB,MAAM;2CAqB1D,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IRadioProps } from './types';
|
|
2
|
+
export declare const createRadioRoot: <T>(BaseRadio: React.ComponentType<T>, RadioIndicator: React.ComponentType<any>) => import("react").ForwardRefExoticComponent<IRadioProps & import("react").RefAttributes<T>>;
|
|
3
|
+
//# sourceMappingURL=createRadioRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioRoot.d.ts","sourceRoot":"","sources":["../../../src/radio/createRadioRoot.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,eAAe,GAAI,CAAC,EAC/B,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,gBAAgB,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,8FAwFvC,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IRadioProps } from './types';
|
|
2
|
+
export declare const createRadioRoot: <T>(BaseRadio: React.ComponentType<T>, RadioIndicator: React.ComponentType<any>) => import("react").ForwardRefExoticComponent<IRadioProps & import("react").RefAttributes<T>>;
|
|
3
|
+
//# sourceMappingURL=createRadioRoot.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRadioRoot.web.d.ts","sourceRoot":"","sources":["../../../src/radio/createRadioRoot.web.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAK3C,eAAO,MAAM,eAAe,GAAI,CAAC,EAC/B,WAAW,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACjC,gBAAgB,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,8FAmEtC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { IRadioComponentType } from './types';
|
|
3
|
+
export type { IRadioComponentType, IRadioGroupProps, IRadioIndicatorProps, IRadioLabelProps, IRadioProps, } from './types';
|
|
4
|
+
export declare function createRadio<Root, Indicator, Label, Group>(BaseComponents: {
|
|
5
|
+
Root: React.ComponentType<Root>;
|
|
6
|
+
Indicator: React.ComponentType<Indicator>;
|
|
7
|
+
Label: React.ComponentType<Label>;
|
|
8
|
+
Group: React.ComponentType<Group>;
|
|
9
|
+
}): IRadioComponentType<Root, Indicator, Label, Group>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,WAAW,GACZ,MAAM,SAAS,CAAC;AAEjB,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE;IACzE,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAChC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC1C,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;CACnC,GAeO,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CACzD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { PressableProps } from 'react-native';
|
|
2
|
+
export interface IRadioProps extends PressableProps {
|
|
3
|
+
/** Required — identifies this item's value within a Radio.Group. */
|
|
4
|
+
value: string;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
isReadOnly?: boolean;
|
|
8
|
+
isHovered?: boolean;
|
|
9
|
+
isFocused?: boolean;
|
|
10
|
+
isPressed?: boolean;
|
|
11
|
+
isFocusVisible?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface IRadioGroupProps {
|
|
15
|
+
/** Controlled selected value. */
|
|
16
|
+
value?: string;
|
|
17
|
+
/** Default selected value for uncontrolled usage. */
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
/** Called when the selected value changes. */
|
|
20
|
+
onChange?: (value: string) => void;
|
|
21
|
+
/** Layout direction of the radio items. */
|
|
22
|
+
direction?: 'column' | 'row';
|
|
23
|
+
/** Form field name for web form integration. */
|
|
24
|
+
name?: string;
|
|
25
|
+
isDisabled?: boolean;
|
|
26
|
+
isInvalid?: boolean;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
isReadOnly?: boolean;
|
|
29
|
+
'aria-label'?: string;
|
|
30
|
+
'aria-labelledby'?: string;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface IRadioIndicatorProps {
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export interface IRadioLabelProps {
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export type IRadioComponentType<Root, Indicator, Label, Group> = React.ForwardRefExoticComponent<React.RefAttributes<Root> & React.PropsWithoutRef<Root> & IRadioProps> & {
|
|
40
|
+
Indicator: React.ForwardRefExoticComponent<React.RefAttributes<Indicator> & React.PropsWithoutRef<Indicator> & IRadioIndicatorProps>;
|
|
41
|
+
Label: React.ForwardRefExoticComponent<React.RefAttributes<Label> & React.PropsWithoutRef<Label> & IRadioLabelProps>;
|
|
42
|
+
Group: React.ForwardRefExoticComponent<React.RefAttributes<Group> & React.PropsWithoutRef<Group> & IRadioGroupProps>;
|
|
43
|
+
};
|
|
44
|
+
export interface IRadioContextValue {
|
|
45
|
+
isChecked?: boolean;
|
|
46
|
+
isDisabled?: boolean;
|
|
47
|
+
isInvalid?: boolean;
|
|
48
|
+
isReadOnly?: boolean;
|
|
49
|
+
isFocused?: boolean;
|
|
50
|
+
isFocusVisible?: boolean;
|
|
51
|
+
isHovered?: boolean;
|
|
52
|
+
isPressed?: boolean;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/radio/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,IAAI,KAAK,CAAC,yBAAyB,CAC9F,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,WAAW,CACtE,GAAG;IACF,SAAS,EAAE,KAAK,CAAC,yBAAyB,CACxC,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,SAAS,CAAC,GAAG,oBAAoB,CACzF,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAC7E,CAAC;IACF,KAAK,EAAE,KAAK,CAAC,yBAAyB,CACpC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAC7E,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { IRadioProps } from './types';
|
|
2
|
+
interface UseRadioRootOptions {
|
|
3
|
+
useInputRefForAria?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useRadioRoot(props: IRadioProps, ref?: React.Ref<unknown>, { useInputRefForAria }?: UseRadioRootOptions): {
|
|
6
|
+
combinedProps: {
|
|
7
|
+
value: string;
|
|
8
|
+
isDisabled?: boolean | undefined;
|
|
9
|
+
isHovered?: boolean;
|
|
10
|
+
isFocused?: boolean;
|
|
11
|
+
isPressed?: boolean;
|
|
12
|
+
isFocusVisible?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onHoverIn?: null | ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
15
|
+
onHoverOut?: null | ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
16
|
+
onPress?: null | ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
17
|
+
onPressIn?: null | ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
18
|
+
onPressOut?: null | ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
19
|
+
onLongPress?: null | ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
20
|
+
onBlur?: null | ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | undefined;
|
|
21
|
+
onFocus?: null | ((event: import("react-native").NativeSyntheticEvent<import("react-native").TargetedEvent>) => void) | undefined;
|
|
22
|
+
cancelable?: null | boolean | undefined;
|
|
23
|
+
delayHoverIn?: number | null | undefined;
|
|
24
|
+
delayHoverOut?: number | null | undefined;
|
|
25
|
+
delayLongPress?: null | number | undefined;
|
|
26
|
+
disabled?: null | boolean | undefined;
|
|
27
|
+
hitSlop?: null | import("react-native").Insets | number | undefined;
|
|
28
|
+
pressRetentionOffset?: null | import("react-native").Insets | number | undefined;
|
|
29
|
+
android_disableSound?: null | boolean | undefined;
|
|
30
|
+
android_ripple?: null | import("react-native").PressableAndroidRippleConfig | undefined;
|
|
31
|
+
testOnly_pressed?: null | boolean | undefined;
|
|
32
|
+
style?: import("react-native").StyleProp<import("react-native").ViewStyle> | ((state: import("react-native").PressableStateCallbackType) => import("react-native").StyleProp<import("react-native").ViewStyle>) | undefined;
|
|
33
|
+
unstable_pressDelay?: number | undefined;
|
|
34
|
+
accessible?: boolean | undefined;
|
|
35
|
+
accessibilityActions?: ReadonlyArray<import("react-native").AccessibilityActionInfo> | undefined;
|
|
36
|
+
accessibilityLabel?: string | undefined;
|
|
37
|
+
'aria-label'?: string | undefined;
|
|
38
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
39
|
+
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
40
|
+
'aria-busy'?: boolean | undefined;
|
|
41
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
42
|
+
'aria-disabled'?: boolean | undefined;
|
|
43
|
+
'aria-expanded'?: boolean | undefined;
|
|
44
|
+
'aria-selected'?: boolean | undefined;
|
|
45
|
+
accessibilityHint?: string | undefined;
|
|
46
|
+
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
47
|
+
'aria-valuemax'?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
48
|
+
'aria-valuemin'?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
49
|
+
'aria-valuenow'?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
50
|
+
'aria-valuetext'?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
51
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
52
|
+
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
53
|
+
'aria-hidden'?: boolean | undefined;
|
|
54
|
+
'aria-modal'?: boolean | undefined;
|
|
55
|
+
role?: import("react-native").Role | undefined;
|
|
56
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
57
|
+
'aria-labelledby'?: string | undefined;
|
|
58
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
59
|
+
'aria-live'?: ("polite" | "assertive" | "off") | undefined;
|
|
60
|
+
screenReaderFocusable?: boolean | undefined;
|
|
61
|
+
accessibilityElementsHidden?: boolean | undefined;
|
|
62
|
+
accessibilityViewIsModal?: boolean | undefined;
|
|
63
|
+
onAccessibilityEscape?: (() => void) | undefined;
|
|
64
|
+
onAccessibilityTap?: (() => void) | undefined;
|
|
65
|
+
onMagicTap?: (() => void) | undefined;
|
|
66
|
+
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
67
|
+
accessibilityLanguage?: string | undefined;
|
|
68
|
+
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
69
|
+
accessibilityLargeContentTitle?: string | undefined;
|
|
70
|
+
accessibilityRespondsToUserInteraction?: boolean | undefined;
|
|
71
|
+
id?: string | undefined;
|
|
72
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined | undefined;
|
|
73
|
+
testID?: string | undefined | undefined;
|
|
74
|
+
nativeID?: string | undefined | undefined;
|
|
75
|
+
needsOffscreenAlphaCompositing?: boolean | undefined | undefined;
|
|
76
|
+
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined | undefined;
|
|
77
|
+
removeClippedSubviews?: boolean | undefined | undefined;
|
|
78
|
+
collapsable?: boolean | undefined | undefined;
|
|
79
|
+
collapsableChildren?: boolean | undefined | undefined;
|
|
80
|
+
renderToHardwareTextureAndroid?: boolean | undefined | undefined;
|
|
81
|
+
focusable?: boolean | undefined | undefined;
|
|
82
|
+
tabIndex?: 0 | -1 | undefined | undefined;
|
|
83
|
+
shouldRasterizeIOS?: boolean | undefined | undefined;
|
|
84
|
+
isTVSelectable?: boolean | undefined | undefined;
|
|
85
|
+
hasTVPreferredFocus?: boolean | undefined | undefined;
|
|
86
|
+
tvParallaxShiftDistanceX?: number | undefined | undefined;
|
|
87
|
+
tvParallaxShiftDistanceY?: number | undefined | undefined;
|
|
88
|
+
tvParallaxTiltAngle?: number | undefined | undefined;
|
|
89
|
+
tvParallaxMagnification?: number | undefined | undefined;
|
|
90
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
|
|
91
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
|
|
92
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
93
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
94
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
95
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
96
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
97
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
98
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
|
|
99
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
100
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
|
|
101
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined | undefined;
|
|
102
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
103
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
104
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
105
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
106
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined | undefined;
|
|
107
|
+
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
108
|
+
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
109
|
+
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
110
|
+
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
111
|
+
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
112
|
+
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
113
|
+
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
114
|
+
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
115
|
+
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
116
|
+
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
117
|
+
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
118
|
+
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined | undefined;
|
|
119
|
+
hasFeedbackText?: boolean | undefined;
|
|
120
|
+
hasHelpText?: boolean | undefined;
|
|
121
|
+
setHasFeedbackText?: import("react").Dispatch<import("react").SetStateAction<boolean>> | undefined;
|
|
122
|
+
setHasHelpText?: import("react").Dispatch<import("react").SetStateAction<boolean>> | undefined;
|
|
123
|
+
name?: string | undefined;
|
|
124
|
+
labelId?: string | undefined;
|
|
125
|
+
feedbackId?: string | undefined;
|
|
126
|
+
helpTextId?: string | undefined;
|
|
127
|
+
htmlProps?: {
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
} | undefined;
|
|
130
|
+
inputRef?: React.RefObject<import("react-native").TextInput | null> | undefined;
|
|
131
|
+
focusInput?: (() => void) | undefined;
|
|
132
|
+
isLabelFocused?: boolean | undefined;
|
|
133
|
+
setIsLabelFocused?: React.Dispatch<React.SetStateAction<boolean>> | undefined;
|
|
134
|
+
isRequired?: boolean | undefined;
|
|
135
|
+
};
|
|
136
|
+
isInvalid: boolean;
|
|
137
|
+
isReadOnly: boolean;
|
|
138
|
+
inputProps: any;
|
|
139
|
+
labelProps: Record<string, unknown>;
|
|
140
|
+
isChecked: any;
|
|
141
|
+
isDisabled: any;
|
|
142
|
+
isHovered: boolean;
|
|
143
|
+
hoverProps: {
|
|
144
|
+
onHoverIn: () => void;
|
|
145
|
+
onHoverOut: () => void;
|
|
146
|
+
};
|
|
147
|
+
mergedRef: import("react").RefCallback<unknown>;
|
|
148
|
+
inputRef: import("react").RefObject<HTMLInputElement | null>;
|
|
149
|
+
};
|
|
150
|
+
export {};
|
|
151
|
+
//# sourceMappingURL=useRadioRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRadioRoot.d.ts","sourceRoot":"","sources":["../../../src/radio/useRadioRoot.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,WAAW,EAClB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EACxB,EAAE,kBAA0B,EAAE,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/select/createSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"createSelectTrigger.d.ts","sourceRoot":"","sources":["../../../src/select/createSelectTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAG,aAAa,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;eAaxD,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS;iCAmNhF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ITileContextValue, ITileGroupContextValue } from './types';
|
|
2
|
+
export declare const TileProvider: import("react").FunctionComponent<{
|
|
3
|
+
children: import("react").ReactNode;
|
|
4
|
+
value: ITileContextValue;
|
|
5
|
+
}>, useTileContext: () => ITileContextValue;
|
|
6
|
+
export declare const TileGroupContextProvider: import("react").Provider<ITileGroupContextValue | null>;
|
|
7
|
+
export declare function useTileGroupContext(): ITileGroupContextValue;
|
|
8
|
+
export declare function useOptionalTileGroupContext(): ITileGroupContextValue | null;
|
|
9
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/tile/context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGzE,eAAO,MAAO,YAAY;;;IAAE,cAAc,yBAAmD,CAAC;AAK9F,eAAO,MAAM,wBAAwB,yDAA4B,CAAC;AAElE,wBAAgB,mBAAmB,IAAI,sBAAsB,CAM5D;AAED,wBAAgB,2BAA2B,IAAI,sBAAsB,GAAG,IAAI,CAE3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileContent.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAU1C,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAY9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileDescription.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,qGAYlE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITileGroupProps } from './types';
|
|
3
|
+
export declare const createTileGroup: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<ITileGroupProps & React.RefAttributes<T>>;
|
|
4
|
+
//# sourceMappingURL=createTileGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileGroup.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAK1E,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,SAAS,CAAC;AAgB9D,eAAO,MAAM,eAAe,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,8EAgH5D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITileIndicatorProps } from './types';
|
|
3
|
+
export declare const createTileIndicator: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<ITileIndicatorProps & React.RefAttributes<unknown>>;
|
|
4
|
+
//# sourceMappingURL=createTileIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileIndicator.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,wFA8BjE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITileLeadingSlotProps } from './types';
|
|
3
|
+
export declare const createTileLeadingSlot: <T>(Base: React.ComponentType<T>) => React.ForwardRefExoticComponent<ITileLeadingSlotProps & React.RefAttributes<unknown>>;
|
|
4
|
+
//# sourceMappingURL=createTileLeadingSlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileLeadingSlot.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileLeadingSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAIrD,eAAO,MAAM,qBAAqB,GAAI,CAAC,EAAG,MAAM,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,0FAuBnE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ITileProps } from './types';
|
|
3
|
+
export declare const createTileRoot: <T>(BasePressable: React.ComponentType<T>) => React.ForwardRefExoticComponent<ITileProps & React.RefAttributes<unknown>>;
|
|
4
|
+
//# sourceMappingURL=createTileRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTileRoot.d.ts","sourceRoot":"","sources":["../../../src/tile/createTileRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,UAAU,EAA6B,MAAM,SAAS,CAAC;AAQrE,eAAO,MAAM,cAAc,GAAI,CAAC,EAAG,eAAe,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,+EA6GpE,CAAC"}
|