@marktiderman/genesis-ui-native 3.12.1 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TUDJDIGC.js → chunk-DCCOZSGR.js} +4 -2
- package/dist/chunk-DCCOZSGR.js.map +1 -0
- package/dist/{chunk-47CDRP43.js → chunk-G5M2Q7OU.js} +77 -4
- package/dist/chunk-G5M2Q7OU.js.map +1 -0
- package/dist/{chunk-C2ARUGT7.js → chunk-SRCGQWE4.js} +3 -3
- package/dist/{chunk-C2ARUGT7.js.map → chunk-SRCGQWE4.js.map} +1 -1
- package/dist/{chunk-X5CPLUPZ.js → chunk-WTO3LIUS.js} +4 -77
- package/dist/chunk-WTO3LIUS.js.map +1 -0
- package/dist/components/index.js +2 -2
- package/dist/data/index.d.ts +170 -27
- package/dist/data/index.js +471 -21
- package/dist/data/index.js.map +1 -1
- package/dist/{inbox-page-BGqR_cBs.d.ts → inbox-page-DD1cQdF4.d.ts} +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/layouts/index.d.ts +2 -2
- package/dist/layouts/index.js +2 -2
- package/package.json +3 -3
- package/src/data/NativeRecordPeek.tsx +12 -1
- package/src/data/__tests__/parity-data.test.tsx +26 -0
- package/src/data/resource-view/NativeResourceView.tsx +139 -16
- package/src/data/resource-view/__tests__/native-resource-inbox.test.tsx +59 -0
- package/src/data/resource-view/__tests__/native-resource-lists.test.tsx +246 -0
- package/src/data/resource-view/index.ts +12 -1
- package/src/data/resource-view/list-controls.tsx +508 -0
- package/src/data/resource-view/mapping.ts +10 -0
- package/src/data/resource-view/messages.ts +70 -0
- package/src/data/resource-view/use-native-resource-view.ts +13 -3
- package/src/layouts/__tests__/inbox-page-start.test.tsx +39 -0
- package/src/layouts/inbox-page.tsx +7 -0
- package/dist/chunk-47CDRP43.js.map +0 -1
- package/dist/chunk-TUDJDIGC.js.map +0 -1
- package/dist/chunk-X5CPLUPZ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NativeCheckbox, NativeAvatar, NativeCard, NativeSegmentedControl, NativeSwitch, NativeSearchBar } from './chunk-
|
|
1
|
+
import { NativeCheckbox, NativeAvatar, NativeCard, NativeSegmentedControl, NativeSwitch, NativeSearchBar } from './chunk-G5M2Q7OU.js';
|
|
2
2
|
import { flattenChildren } from './chunk-BQYT6TH2.js';
|
|
3
3
|
import { NativeIcon, NativeImage, NativeSheet, NativeText, NativeBadge, NativeButton, buttonTextVariants, NativeSheetScrollView, NativeInput, NativeContextMenu, NativeSkeleton, NativeListItem, NativeListItemDivider, NativeSectionListHeader } from './chunk-D4UU6KIF.js';
|
|
4
4
|
import { useGenesisModules, useThemeMode, useMotion, useReducedMotion, useThemeRoles } from './chunk-VHUUOH46.js';
|
|
@@ -1192,79 +1192,6 @@ function NativeRangeSlider({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
);
|
|
1194
1194
|
}
|
|
1195
|
-
var ChipContext = createContext(null);
|
|
1196
|
-
function NativeChipGroup({
|
|
1197
|
-
mode = "multiple",
|
|
1198
|
-
value,
|
|
1199
|
-
onChange,
|
|
1200
|
-
allowEmpty = false,
|
|
1201
|
-
disabled,
|
|
1202
|
-
className,
|
|
1203
|
-
children,
|
|
1204
|
-
testID
|
|
1205
|
-
}) {
|
|
1206
|
-
const single = mode === "single";
|
|
1207
|
-
const selected = new Set(
|
|
1208
|
-
single ? typeof value === "string" && value ? [value] : [] : Array.isArray(value) ? value : []
|
|
1209
|
-
);
|
|
1210
|
-
const emit = onChange;
|
|
1211
|
-
const toggle = (v) => {
|
|
1212
|
-
if (single) {
|
|
1213
|
-
emit(selected.has(v) && allowEmpty ? "" : v);
|
|
1214
|
-
return;
|
|
1215
|
-
}
|
|
1216
|
-
const next = new Set(selected);
|
|
1217
|
-
if (next.has(v)) next.delete(v);
|
|
1218
|
-
else next.add(v);
|
|
1219
|
-
emit(Array.from(next));
|
|
1220
|
-
};
|
|
1221
|
-
return /* @__PURE__ */ jsx(ChipContext.Provider, { value: { mode, selected, toggle, disabled }, children: /* @__PURE__ */ jsx(
|
|
1222
|
-
View,
|
|
1223
|
-
{
|
|
1224
|
-
testID: testID ?? "native-chip-group",
|
|
1225
|
-
accessibilityRole: single ? "radiogroup" : void 0,
|
|
1226
|
-
className: cn("flex-row flex-wrap gap-2", className),
|
|
1227
|
-
children
|
|
1228
|
-
}
|
|
1229
|
-
) });
|
|
1230
|
-
}
|
|
1231
|
-
function NativeChip({
|
|
1232
|
-
value,
|
|
1233
|
-
className,
|
|
1234
|
-
children,
|
|
1235
|
-
testID
|
|
1236
|
-
}) {
|
|
1237
|
-
const ctx = useContext(ChipContext);
|
|
1238
|
-
if (!ctx)
|
|
1239
|
-
throw new Error("NativeChip must be used inside <NativeChipGroup>.");
|
|
1240
|
-
const isSelected = ctx.selected.has(value);
|
|
1241
|
-
return /* @__PURE__ */ jsx(
|
|
1242
|
-
Pressable,
|
|
1243
|
-
{
|
|
1244
|
-
testID: testID ?? `chip-${value}`,
|
|
1245
|
-
accessibilityRole: ctx.mode === "single" ? "radio" : "checkbox",
|
|
1246
|
-
accessibilityState: { selected: isSelected, disabled: ctx.disabled },
|
|
1247
|
-
disabled: ctx.disabled,
|
|
1248
|
-
onPress: () => ctx.toggle(value),
|
|
1249
|
-
className: cn(
|
|
1250
|
-
"min-h-[44px] flex-row items-center rounded-full border px-3.5 py-1.5",
|
|
1251
|
-
isSelected ? "border-primary bg-primary/10" : "border-border bg-background",
|
|
1252
|
-
ctx.disabled && "opacity-50",
|
|
1253
|
-
className
|
|
1254
|
-
),
|
|
1255
|
-
children: typeof children === "string" ? /* @__PURE__ */ jsx(
|
|
1256
|
-
Text,
|
|
1257
|
-
{
|
|
1258
|
-
className: cn(
|
|
1259
|
-
"text-sm",
|
|
1260
|
-
isSelected ? "font-semibold text-primary-text" : "text-foreground"
|
|
1261
|
-
),
|
|
1262
|
-
children
|
|
1263
|
-
}
|
|
1264
|
-
) : children
|
|
1265
|
-
}
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
1195
|
function buildWindow(page, total, maxVisible) {
|
|
1269
1196
|
if (total <= maxVisible) return Array.from({ length: total }, (_, i) => i);
|
|
1270
1197
|
const half = Math.floor(maxVisible / 2);
|
|
@@ -3948,6 +3875,6 @@ function NativeWorkspaceSwitcher({
|
|
|
3948
3875
|
] });
|
|
3949
3876
|
}
|
|
3950
3877
|
|
|
3951
|
-
export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeBulkBar, NativeButtonGroup, NativeCalendar, NativeCarousel, NativeChartContainer,
|
|
3952
|
-
//# sourceMappingURL=chunk-
|
|
3953
|
-
//# sourceMappingURL=chunk-
|
|
3878
|
+
export { Box, FULL_SCREEN_DARK, Grid, Inline, LIGHTBOX_DISMISS_DISTANCE, LIGHTBOX_DISMISS_VELOCITY, LIGHTBOX_DOUBLE_TAP_MS, LIGHTBOX_MAX_ZOOM, NativeAccordion, NativeAccordionContent, NativeAccordionItem, NativeAccordionTrigger, NativeBulkBar, NativeButtonGroup, NativeCalendar, NativeCarousel, NativeChartContainer, NativeChoiceCard, NativeCombobox, NativeDialog, NativeDialogContent, NativeDialogDescription, NativeDialogFooter, NativeDialogHeader, NativeDialogTitle, NativeDrawer, NativeDropdownMenu, NativeDropdownMenuContent, NativeDropdownMenuItem, NativeDropdownMenuTrigger, NativeFollowUpList, NativeFullScreenModal, NativeGalleryCard, NativeGlassSurface, NativeHeaderCard, NativeHeadlineNumbers, NativeInputGroup, NativeInputOTP, NativeLightbox, NativeLiveIndicator, NativeNumberInput, NativePagination, NativePasswordToggleField, NativePopover, NativePopoverContent, NativePopoverTrigger, NativeRadioGroup, NativeRadioGroupItem, NativeRangeSlider, NativeRating, NativeReadinessChip, NativeResourceSettingsPage, NativeResponsesToolbar, NativeSettingsRow, NativeShareSheet, NativeSlider, NativeSortableList, NativeStatCard, NativeStatusBadge, NativeStepper, NativeSummaryCard, NativeTabBar, NativeTabs, NativeTabsContent, NativeTabsList, NativeTabsTrigger, NativeTierBadge, NativeToastProvider, NativeToggle, NativeToggleRow, NativeTooltip, NativeTooltipContent, NativeTooltipTrigger, NativeUserAvatar, NativeWhatsNewSheet, NativeWorkspaceSwitcher, NativeZoomablePhoto, Stack, defaultNativeLightboxLabels, lightboxPanLimit, lightboxPinchScale, lightboxShouldDismiss, lightboxTouchDistance, nextRating, spaceScale, spacingClass, toggleVariants, useLiquidGlass, useReduceTransparency, useToast };
|
|
3879
|
+
//# sourceMappingURL=chunk-WTO3LIUS.js.map
|
|
3880
|
+
//# sourceMappingURL=chunk-WTO3LIUS.js.map
|