@kanso-labs/react-native-kanso-ui 0.11.5 → 0.11.6
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 +15 -1
- package/dist/autocomplete/index.js +1 -2
- package/dist/badge/index.js +1 -2
- package/dist/button/group.js +1 -2
- package/dist/button/index.d.ts +0 -2
- package/dist/button/index.js +1 -2
- package/dist/button/palettes.js +1 -2
- package/dist/button/pending.js +1 -2
- package/dist/button/slots.js +1 -2
- package/dist/calendar/index.js +1 -2
- package/dist/calendar/styles.js +1 -2
- package/dist/carousel/arrangement.d.ts +0 -2
- package/dist/carousel/arrangement.js +0 -1
- package/dist/chequer/index.js +1 -2
- package/dist/chip/index.js +1 -2
- package/dist/chip/styles.js +0 -1
- package/dist/clipboard/index.js +1 -2
- package/dist/collection/index.d.ts +0 -2
- package/dist/collection/index.js +1 -2
- package/dist/color-thumb/index.js +1 -2
- package/dist/components/app-bar/index.d.ts +0 -2
- package/dist/components/app-bar/index.js +1 -2
- package/dist/components/autocomplete/index.d.ts +0 -2
- package/dist/components/autocomplete/index.js +1 -2
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.js +1 -2
- package/dist/components/badge/index.d.ts +0 -2
- package/dist/components/badge/index.js +1 -2
- package/dist/components/badge/styles.js +1 -2
- package/dist/components/breadcrumbs/index.d.ts +0 -2
- package/dist/components/breadcrumbs/index.js +1 -2
- package/dist/components/button/index.d.ts +0 -2
- package/dist/components/button/index.js +1 -2
- package/dist/components/button-group/index.d.ts +0 -2
- package/dist/components/button-group/index.js +1 -2
- package/dist/components/calendar/index.d.ts +0 -2
- package/dist/components/calendar/index.js +1 -2
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.js +1 -2
- package/dist/components/carousel/index.d.ts +0 -2
- package/dist/components/carousel/index.js +1 -2
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/checkbox/index.js +1 -2
- package/dist/components/checkbox-group/index.d.ts +0 -2
- package/dist/components/checkbox-group/index.js +1 -2
- package/dist/components/chip/index.d.ts +0 -2
- package/dist/components/chip/index.js +1 -2
- package/dist/components/chip-group/index.d.ts +0 -2
- package/dist/components/chip-group/index.js +1 -2
- package/dist/components/code/index.d.ts +0 -2
- package/dist/components/code/index.js +1 -2
- package/dist/components/color-area/index.d.ts +0 -2
- package/dist/components/color-area/index.js +1 -2
- package/dist/components/color-field/index.d.ts +0 -2
- package/dist/components/color-field/index.js +1 -2
- package/dist/components/color-picker/index.d.ts +0 -2
- package/dist/components/color-picker/index.js +1 -2
- package/dist/components/color-slider/index.d.ts +0 -2
- package/dist/components/color-slider/index.js +1 -2
- package/dist/components/color-swatch/index.d.ts +0 -2
- package/dist/components/color-swatch/index.js +1 -2
- package/dist/components/color-swatch-picker/index.d.ts +0 -2
- package/dist/components/color-swatch-picker/index.js +1 -2
- package/dist/components/color-wheel/index.d.ts +0 -2
- package/dist/components/color-wheel/index.js +1 -2
- package/dist/components/combo-box/index.d.ts +0 -2
- package/dist/components/combo-box/index.js +1 -2
- package/dist/components/container/index.d.ts +0 -2
- package/dist/components/container/index.js +1 -2
- package/dist/components/copy-field/index.d.ts +0 -2
- package/dist/components/copy-field/index.js +1 -2
- package/dist/components/currency/index.d.ts +0 -2
- package/dist/components/currency/index.js +1 -2
- package/dist/components/date-field/index.d.ts +0 -2
- package/dist/components/date-field/index.js +1 -2
- package/dist/components/date-picker/index.d.ts +0 -2
- package/dist/components/date-picker/index.js +1 -2
- package/dist/components/date-range-picker/index.d.ts +0 -2
- package/dist/components/date-range-picker/index.js +1 -2
- package/dist/components/dialog/index.d.ts +0 -2
- package/dist/components/dialog/index.js +1 -2
- package/dist/components/disclosure/index.d.ts +0 -2
- package/dist/components/disclosure/index.js +1 -2
- package/dist/components/disclosure-group/index.d.ts +0 -2
- package/dist/components/disclosure-group/index.js +1 -2
- package/dist/components/drop-zone/index.d.ts +0 -2
- package/dist/components/drop-zone/index.js +1 -2
- package/dist/components/fab/index.d.ts +0 -2
- package/dist/components/fab/index.js +1 -2
- package/dist/components/fab-menu/index.d.ts +0 -2
- package/dist/components/fab-menu/index.js +1 -2
- package/dist/components/feed/index.d.ts +0 -2
- package/dist/components/feed/index.js +1 -2
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/form/index.js +1 -2
- package/dist/components/icon-button/index.d.ts +0 -2
- package/dist/components/icon-button/index.js +1 -2
- package/dist/components/keycap/index.d.ts +0 -2
- package/dist/components/keycap/index.js +1 -2
- package/dist/components/link/index.d.ts +0 -2
- package/dist/components/link/index.js +1 -2
- package/dist/components/list/index.d.ts +0 -2
- package/dist/components/list/index.js +1 -2
- package/dist/components/list-box/index.d.ts +0 -2
- package/dist/components/list-box/index.js +1 -2
- package/dist/components/list-detail/index.d.ts +0 -2
- package/dist/components/list-detail/index.js +1 -2
- package/dist/components/list-item/index.d.ts +0 -2
- package/dist/components/list-item/index.js +1 -2
- package/dist/components/loading-indicator/index.d.ts +0 -2
- package/dist/components/loading-indicator/index.js +1 -2
- package/dist/components/menu/index.d.ts +0 -2
- package/dist/components/menu/index.js +1 -2
- package/dist/components/meter/index.d.ts +0 -2
- package/dist/components/meter/index.js +1 -2
- package/dist/components/navigation-bar/index.d.ts +0 -2
- package/dist/components/navigation-bar/index.js +1 -2
- package/dist/components/navigation-rail/index.d.ts +0 -2
- package/dist/components/navigation-rail/index.js +1 -2
- package/dist/components/navigation-tree/index.d.ts +0 -2
- package/dist/components/navigation-tree/index.js +1 -2
- package/dist/components/number-field/index.d.ts +0 -2
- package/dist/components/number-field/index.js +1 -2
- package/dist/components/popover/index.d.ts +0 -2
- package/dist/components/popover/index.js +1 -2
- package/dist/components/product-icon/index.d.ts +0 -2
- package/dist/components/product-icon/index.js +1 -2
- package/dist/components/progress-indicator/index.d.ts +0 -2
- package/dist/components/progress-indicator/index.js +1 -2
- package/dist/components/radio-group/index.d.ts +0 -2
- package/dist/components/radio-group/index.js +1 -2
- package/dist/components/range-calendar/index.d.ts +0 -2
- package/dist/components/range-calendar/index.js +1 -2
- package/dist/components/search-field/index.d.ts +0 -2
- package/dist/components/search-field/index.js +1 -2
- package/dist/components/search-view/index.d.ts +0 -2
- package/dist/components/search-view/index.js +1 -2
- package/dist/components/segmented-button/index.d.ts +0 -2
- package/dist/components/segmented-button/index.js +1 -2
- package/dist/components/select/index.d.ts +0 -2
- package/dist/components/select/index.js +1 -2
- package/dist/components/separator/index.d.ts +0 -2
- package/dist/components/separator/index.js +1 -2
- package/dist/components/sheet/index.d.ts +0 -2
- package/dist/components/sheet/index.js +1 -2
- package/dist/components/slider/index.d.ts +0 -2
- package/dist/components/slider/index.js +1 -2
- package/dist/components/snackbar/index.d.ts +0 -2
- package/dist/components/snackbar/index.js +1 -2
- package/dist/components/split-button/index.d.ts +0 -2
- package/dist/components/split-button/index.js +1 -2
- package/dist/components/stack/index.d.ts +0 -2
- package/dist/components/stack/index.js +1 -2
- package/dist/components/supporting-pane/index.d.ts +0 -2
- package/dist/components/supporting-pane/index.js +1 -2
- package/dist/components/switch/index.d.ts +0 -2
- package/dist/components/switch/index.js +1 -2
- package/dist/components/table/index.d.ts +0 -2
- package/dist/components/table/index.js +1 -2
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/tabs/index.js +1 -2
- package/dist/components/tag/index.d.ts +0 -2
- package/dist/components/tag/index.js +1 -2
- package/dist/components/text/index.d.ts +0 -2
- package/dist/components/text/index.js +1 -2
- package/dist/components/text-area/index.d.ts +0 -2
- package/dist/components/text-area/index.js +1 -2
- package/dist/components/text-field/index.d.ts +0 -2
- package/dist/components/text-field/index.js +1 -2
- package/dist/components/time-field/index.d.ts +0 -2
- package/dist/components/time-field/index.js +1 -2
- package/dist/components/time-picker/index.d.ts +0 -2
- package/dist/components/time-picker/index.js +1 -2
- package/dist/components/token-field/index.d.ts +0 -2
- package/dist/components/token-field/index.js +1 -2
- package/dist/components/toolbar/index.d.ts +0 -2
- package/dist/components/toolbar/index.js +1 -2
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/tooltip/index.js +1 -2
- package/dist/components/tree/index.d.ts +0 -2
- package/dist/components/tree/index.js +1 -2
- package/dist/control/checkbox-box.js +1 -2
- package/dist/control/group.js +1 -2
- package/dist/control/index.js +1 -2
- package/dist/control/styles.js +0 -1
- package/dist/disclosure/chevron.js +1 -2
- package/dist/disclosure/index.js +1 -2
- package/dist/drop/index.d.ts +0 -2
- package/dist/drop/index.js +1 -2
- package/dist/fab/index.d.ts +0 -2
- package/dist/fab/index.js +1 -2
- package/dist/field/chevron.js +1 -2
- package/dist/field/index.d.ts +0 -2
- package/dist/field/index.js +1 -2
- package/dist/field/styles.js +1 -2
- package/dist/files/index.d.ts +0 -2
- package/dist/files/index.js +1 -2
- package/dist/form/index.d.ts +0 -2
- package/dist/form/index.js +1 -2
- package/dist/glyphs/hidden.js +1 -2
- package/dist/glyphs/icon-style.d.ts +0 -2
- package/dist/glyphs/icon-style.js +1 -2
- package/dist/glyphs/index.js +1 -2
- package/dist/glyphs/styles.js +1 -2
- package/dist/hooks/useAppBarScroll.d.ts +0 -2
- package/dist/hooks/useAppBarScroll.js +0 -1
- package/dist/hooks/useWindowSizeClass.d.ts +0 -2
- package/dist/hooks/useWindowSizeClass.js +1 -2
- package/dist/i18n/index.js +1 -2
- package/dist/i18n/messages.js +1 -2
- package/dist/i18n/provider.d.ts +0 -2
- package/dist/i18n/provider.js +1 -2
- package/dist/indicator/index.d.ts +0 -2
- package/dist/indicator/index.js +1 -2
- package/dist/indicator/motion.js +1 -2
- package/dist/indicator/paths.js +1 -2
- package/dist/indicator/styles.js +0 -1
- package/dist/kanso-ui-core/defaults-DMH0HWCw.d.ts +0 -2
- package/dist/kanso-ui-core/glyphs.js +1 -2
- package/dist/kanso-ui-core/index.js +1 -2
- package/dist/mark/image.js +1 -2
- package/dist/mark/index.d.ts +0 -2
- package/dist/mark/index.js +1 -2
- package/dist/mark/initials.js +1 -2
- package/dist/mark/styles.js +1 -2
- package/dist/modal/index.d.ts +0 -2
- package/dist/modal/index.js +1 -2
- package/dist/navigation/index.d.ts +0 -2
- package/dist/navigation/index.js +1 -2
- package/dist/navigation/styles.js +1 -2
- package/dist/number/count.js +1 -2
- package/dist/number/keyboard.js +1 -2
- package/dist/number/locale.js +1 -2
- package/dist/number/parser.js +1 -2
- package/dist/number/state.js +1 -2
- package/dist/overlay/anchored.js +1 -2
- package/dist/overlay/host.js +1 -2
- package/dist/overlay/keyboard.js +1 -2
- package/dist/overlay/panel.js +1 -2
- package/dist/overlay/placement.d.ts +0 -2
- package/dist/overlay/placement.js +1 -2
- package/dist/picker/index.js +1 -2
- package/dist/press/index.js +0 -1
- package/dist/press/styles.js +1 -2
- package/dist/ref/index.js +1 -2
- package/dist/router/index.d.ts +0 -2
- package/dist/router/index.js +1 -2
- package/dist/row/index.js +1 -2
- package/dist/row/styles.js +1 -2
- package/dist/segments/field.js +1 -2
- package/dist/segments/index.js +1 -2
- package/dist/segments/styles.js +1 -2
- package/dist/separator/index.js +1 -2
- package/dist/slider/index.js +1 -2
- package/dist/swatch/index.js +1 -2
- package/dist/theme/color.js +1 -2
- package/dist/theme/resolve.d.ts +0 -2
- package/dist/theme/resolve.js +1 -2
- package/dist/theme/scope.d.ts +0 -2
- package/dist/theme/scope.js +1 -2
- package/dist/theme/styles.js +1 -2
- package/dist/theme-scope.d.ts +0 -2
- package/dist/theme-scope.js +1 -2
- package/dist/typography/fonts.js +1 -2
- package/dist/typography/roles.d.ts +0 -2
- package/dist/typography/roles.js +1 -2
- package/dist/typography/size.js +1 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# react-native-kanso-ui
|
|
2
2
|
|
|
3
|
+
[![npm version][npm-version-shield]][npm]
|
|
4
|
+
[![npm downloads][npm-downloads-shield]][npm]
|
|
3
5
|
[![License][license-shield]][license] [![Build][build-shield]][build-workflow]
|
|
4
6
|
[![Test][test-shield]][test-workflow] [![Coverage][coverage-shield]][codecov]
|
|
5
7
|
|
|
@@ -11,7 +13,14 @@ A theme is the web library's: a set of `--kui-*` custom properties with values
|
|
|
11
13
|
in CSS syntax, as kanso-ui's `tokens.css` declares them, so one theme object
|
|
12
14
|
serves a web app and a native app alike.
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install @kanso-labs/react-native-kanso-ui
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
It needs a handful of React Native libraries beside it, listed under
|
|
23
|
+
[Peer dependencies](#peer-dependencies).
|
|
15
24
|
|
|
16
25
|
## Theming
|
|
17
26
|
|
|
@@ -240,6 +249,11 @@ pages, which each render in their own.
|
|
|
240
249
|
[license]: ./LICENSE.md
|
|
241
250
|
[license-shield]:
|
|
242
251
|
https://img.shields.io/github/license/kanso-labs/react-native-kanso-ui
|
|
252
|
+
[npm]: https://www.npmjs.com/package/@kanso-labs/react-native-kanso-ui
|
|
253
|
+
[npm-downloads-shield]:
|
|
254
|
+
https://img.shields.io/npm/dm/@kanso-labs/react-native-kanso-ui
|
|
255
|
+
[npm-version-shield]:
|
|
256
|
+
https://img.shields.io/npm/v/@kanso-labs/react-native-kanso-ui
|
|
243
257
|
[test-shield]:
|
|
244
258
|
https://img.shields.io/github/actions/workflow/status/kanso-labs/react-native-kanso-ui/test.yaml?branch=main&label=Test
|
|
245
259
|
[test-workflow]:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/autocomplete/index.ts
|
|
3
3
|
const AutocompleteContext = createContext(null);
|
|
4
4
|
const collators = /* @__PURE__ */ new Map();
|
|
5
5
|
function collatorIn(locale) {
|
|
@@ -47,7 +47,6 @@ function startsWithIn(locale) {
|
|
|
47
47
|
return collator.compare(normalized, start) === 0;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { AutocompleteContext, containsIn, startsWithIn };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=index.js.map
|
package/dist/badge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/badge/index.tsx
|
|
3
3
|
/**
|
|
4
4
|
* Whether a large badge joins the flow after what it is drawn on rather than
|
|
5
5
|
* standing over its corner. A navigation destination sets its label beside
|
|
@@ -9,7 +9,6 @@ import { createContext } from "react";
|
|
|
9
9
|
* its icon's box, so nothing has to make room for it.
|
|
10
10
|
*/
|
|
11
11
|
const BadgeInFlowContext = createContext(false);
|
|
12
|
-
//#endregion
|
|
13
12
|
export { BadgeInFlowContext };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
package/dist/button/group.js
CHANGED
|
@@ -3,7 +3,7 @@ import { toggleState } from "./index.js";
|
|
|
3
3
|
import { StyleSheet } from "react-native";
|
|
4
4
|
import { Easing, useAnimatedStyle, useReducedMotion, withTiming } from "react-native-reanimated";
|
|
5
5
|
import { createContext } from "react";
|
|
6
|
-
|
|
6
|
+
// src/button/group.ts
|
|
7
7
|
const ButtonGroupItemContext = createContext(null);
|
|
8
8
|
const groupStyles = StyleSheet.create({ target: { minWidth: 48 } });
|
|
9
9
|
/**
|
|
@@ -109,7 +109,6 @@ function useGroupShift(group, base, property) {
|
|
|
109
109
|
});
|
|
110
110
|
return group?.onPressStart === void 0 ? void 0 : style;
|
|
111
111
|
}
|
|
112
|
-
//#endregion
|
|
113
112
|
export { ButtonGroupItemContext, groupCornersOf, groupPressHandlers, groupSelectionOf, groupStyles, groupWidthThen, useGroupShift };
|
|
114
113
|
|
|
115
114
|
//# sourceMappingURL=group.js.map
|
package/dist/button/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./group.js";
|
|
2
2
|
import { HostInstance, LayoutChangeEvent, PressableProps } from "react-native";
|
|
3
3
|
import { Ref } from "react";
|
|
4
|
-
//#region src/button/index.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* A plain button, a link, or a toggle, of which a call site writes exactly
|
|
7
6
|
* one. Each form names the props of the other two as `never`, so a toggle
|
|
@@ -86,6 +85,5 @@ type ButtonToggleForm = ButtonPending & {
|
|
|
86
85
|
};
|
|
87
86
|
/** The five control heights both pages give, by the names both props take. */
|
|
88
87
|
type ControlSize = 'lg' | 'md' | 'xl' | 'xs' | 'xxl';
|
|
89
|
-
//#endregion
|
|
90
88
|
export type { ButtonLinkForm, ButtonPressForm, ButtonToggleForm, ControlSize };
|
|
91
89
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/button/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { c } from "react/compiler-runtime";
|
|
|
7
7
|
import { Platform, Pressable, StyleSheet } from "react-native";
|
|
8
8
|
import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, withTiming } from "react-native-reanimated";
|
|
9
9
|
import { use, useState } from "react";
|
|
10
|
-
|
|
10
|
+
// src/button/index.ts
|
|
11
11
|
const HEIGHTS = {
|
|
12
12
|
lg: "controlLg",
|
|
13
13
|
md: "controlSm",
|
|
@@ -230,7 +230,6 @@ function useSlotTrigger({ accessibilityHint, delayLongPress, href, onHoverIn, on
|
|
|
230
230
|
ref: trigger === void 0 && tooltip === void 0 ? ref : refsOf(trigger?.ref, tooltip?.ref, ref)
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
//#endregion
|
|
234
233
|
export { AnimatedPressable, HEIGHTS, OUTLINE_WIDTHS, PRESSED_CORNERS, buttonStyles, pressThen, toggleState, useButtonAction, useCorner, useSlotTrigger };
|
|
235
234
|
|
|
236
235
|
//# sourceMappingURL=index.js.map
|
package/dist/button/palettes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { themedStyles } from "../theme/styles.js";
|
|
2
2
|
import { withOpacity } from "../theme/color.js";
|
|
3
|
-
|
|
3
|
+
// src/button/palettes.ts
|
|
4
4
|
function palette(content, container = {}) {
|
|
5
5
|
return {
|
|
6
6
|
container,
|
|
@@ -41,7 +41,6 @@ const palettesOf = themedStyles(({ colors, stateLayerOpacity }) => {
|
|
|
41
41
|
tonalToggleSelected: palette(colors.onSecondary, { backgroundColor: colors.secondary })
|
|
42
42
|
};
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { palettesOf };
|
|
46
45
|
|
|
47
46
|
//# sourceMappingURL=palettes.js.map
|
package/dist/button/pending.js
CHANGED
|
@@ -5,7 +5,7 @@ import { c } from "react/compiler-runtime";
|
|
|
5
5
|
import { AccessibilityInfo, Platform, StyleSheet, View } from "react-native";
|
|
6
6
|
import { useEffect, useRef } from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
8
|
+
// src/button/pending.tsx
|
|
9
9
|
const pendingStyles = StyleSheet.create({
|
|
10
10
|
hidden: { opacity: 0 },
|
|
11
11
|
ring: {
|
|
@@ -134,7 +134,6 @@ function usePending(isPending, pendingLabel) {
|
|
|
134
134
|
useEffect(t0, t1);
|
|
135
135
|
return label;
|
|
136
136
|
}
|
|
137
|
-
//#endregion
|
|
138
137
|
export { BUSY, CONCEALED, PendingContent, PendingRing, pendingStyles, usePending };
|
|
139
138
|
|
|
140
139
|
//# sourceMappingURL=pending.js.map
|
package/dist/button/slots.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createContext } from "react";
|
|
2
|
-
|
|
2
|
+
// src/button/slots.ts
|
|
3
3
|
const ButtonSlotContext = createContext(null);
|
|
4
4
|
const ButtonTooltipContext = createContext(null);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { ButtonSlotContext, ButtonTooltipContext };
|
|
7
6
|
|
|
8
7
|
//# sourceMappingURL=slots.js.map
|
package/dist/calendar/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, w
|
|
|
15
15
|
import { createContext, use, useLayoutEffect, useRef, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { DateFormatter, endOfMonth, isSameDay, isSameMonth, isSameYear, isToday, startOfMonth, startOfWeek, toCalendarDate, today } from "@internationalized/date";
|
|
18
|
-
|
|
18
|
+
// src/calendar/index.tsx
|
|
19
19
|
/**
|
|
20
20
|
* Where a calendar hands over the cell of the date it is on, the one held or
|
|
21
21
|
* else the one it opened on, for a surface that sends a screen reader to that
|
|
@@ -1345,7 +1345,6 @@ function yearsOf(state, locale) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
}
|
|
1347
1347
|
const NONE = /* @__PURE__ */ new Set();
|
|
1348
|
-
//#endregion
|
|
1349
1348
|
export { CalendarFocusContext, CalendarFrame, useRootStyle, visibleRangeOf };
|
|
1350
1349
|
|
|
1351
1350
|
//# sourceMappingURL=index.js.map
|
package/dist/calendar/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { themedStyles } from "../theme/styles.js";
|
|
2
2
|
import { withOpacity } from "../theme/color.js";
|
|
3
3
|
import { StyleSheet } from "react-native";
|
|
4
|
-
|
|
4
|
+
// src/calendar/styles.ts
|
|
5
5
|
/**
|
|
6
6
|
* The container's width for the months it holds side by side: the page's
|
|
7
7
|
* 360dp for one, which is seven 48dp columns inside its padding, and for more
|
|
@@ -145,7 +145,6 @@ const stylesOf = themedStyles(({ colors, radii, sizing, spacing, stateLayerOpaci
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
//#endregion
|
|
149
148
|
export { rootWidthOf, styles, stylesOf };
|
|
150
149
|
|
|
151
150
|
//# sourceMappingURL=styles.js.map
|
package/dist/chequer/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { StyleSheet } from "react-native";
|
|
|
5
5
|
import { useId } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import Svg, { Defs, Pattern, Rect } from "react-native-svg";
|
|
8
|
-
|
|
8
|
+
// src/chequer/index.tsx
|
|
9
9
|
const TILE = 16;
|
|
10
10
|
const HALF = TILE / 2;
|
|
11
11
|
function Chequer() {
|
|
@@ -89,7 +89,6 @@ function Chequer() {
|
|
|
89
89
|
} else t6 = $[14];
|
|
90
90
|
return t6;
|
|
91
91
|
}
|
|
92
|
-
//#endregion
|
|
93
92
|
export { Chequer };
|
|
94
93
|
|
|
95
94
|
//# sourceMappingURL=index.js.map
|
package/dist/chip/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { c } from "react/compiler-runtime";
|
|
|
9
9
|
import { View } from "react-native";
|
|
10
10
|
import Animated, { Easing, useAnimatedStyle, useReducedMotion, withTiming } from "react-native-reanimated";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/chip/index.tsx
|
|
13
13
|
const CHECK = /* @__PURE__ */ jsx(CheckGlyph, {});
|
|
14
14
|
/**
|
|
15
15
|
* What a chip draws before its label: the check while it is selected, its own
|
|
@@ -188,7 +188,6 @@ function useEasedColors(t0) {
|
|
|
188
188
|
} else t1 = $[2];
|
|
189
189
|
return t1;
|
|
190
190
|
}
|
|
191
|
-
//#endregion
|
|
192
191
|
export { ChipGlyph, ChipLabel, measureThen, paintOf, targetOf, useEasedColors };
|
|
193
192
|
|
|
194
193
|
//# sourceMappingURL=index.js.map
|
package/dist/chip/styles.js
CHANGED
|
@@ -30,7 +30,6 @@ const shadowsOf = themedStyles(({ shadows }) => StyleSheet.create({
|
|
|
30
30
|
elevation1: { boxShadow: shadows.elevation1 },
|
|
31
31
|
elevation2: { boxShadow: shadows.elevation2 }
|
|
32
32
|
}));
|
|
33
|
-
//#endregion
|
|
34
33
|
export { shadowsOf, styles, stylesOf };
|
|
35
34
|
|
|
36
35
|
//# sourceMappingURL=styles.js.map
|
package/dist/clipboard/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSyncExternalStore } from "react";
|
|
2
|
-
|
|
2
|
+
// src/clipboard/index.ts
|
|
3
3
|
let clipboard;
|
|
4
4
|
let loading;
|
|
5
5
|
const listeners = /* @__PURE__ */ new Set();
|
|
@@ -52,7 +52,6 @@ async function writeClipboard(text) {
|
|
|
52
52
|
if (settled === null) throw new Error("expo-clipboard is not installed");
|
|
53
53
|
if (!await settled.setStringAsync(text)) throw new Error("The clipboard refused the write");
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
export { useClipboardAvailable, writeClipboard };
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,6 @@ import { ReactElement, ReactNode, Ref } from "react";
|
|
|
3
3
|
import "react-stately/useListState";
|
|
4
4
|
import { Key, Selection, SelectionMode } from "react-stately";
|
|
5
5
|
import "react-stately/useTreeState";
|
|
6
|
-
//#region src/collection/index.d.ts
|
|
7
6
|
type CollectionLoadMoreProps = {
|
|
8
7
|
/**
|
|
9
8
|
* Draws the ring in a row of its own while more items are being fetched.
|
|
@@ -152,6 +151,5 @@ declare function sectionNode(props: CollectionSectionProps): Generator<{
|
|
|
152
151
|
rendered: ReactNode;
|
|
153
152
|
type: string;
|
|
154
153
|
}, void, unknown>;
|
|
155
|
-
//#endregion
|
|
156
154
|
export { type CollectionLoadMoreProps, type CollectionProps, type CollectionRowProps, type CollectionSectionProps, loaderNode, rowNode, sectionNode };
|
|
157
155
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/collection/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { AccessibilityInfo, FlatList, Platform, Pressable, StyleSheet, Text, Vie
|
|
|
18
18
|
import { Children, createContext, use, useEffect, useRef, useState } from "react";
|
|
19
19
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
20
20
|
import { useListState } from "react-stately/useListState";
|
|
21
|
-
|
|
21
|
+
// src/collection/index.tsx
|
|
22
22
|
const BOX_SLOT = 24;
|
|
23
23
|
const LOADING_DIAMETER = "24px";
|
|
24
24
|
const LOAD_OFFSET = 1;
|
|
@@ -1352,7 +1352,6 @@ function withBox(box, leading, style) {
|
|
|
1352
1352
|
children: [box, leading]
|
|
1353
1353
|
}) : box;
|
|
1354
1354
|
}
|
|
1355
|
-
//#endregion
|
|
1356
1355
|
export { Collection, CollectionView, LoadingRow, ResultsStatus, SelectBox, Status, accessibilityActionOf, childElementsOf, focusKeyOf, loadMoreOf, loaderNode, nestedRowNode, noop, pressThen, rowCountOf, rowNode, sectionNode };
|
|
1357
1356
|
|
|
1358
1357
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,7 @@ import { composeStyles, themedStyles } from "../theme/styles.js";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { StyleSheet, View } from "react-native";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/color-thumb/index.tsx
|
|
7
7
|
const RING = 2;
|
|
8
8
|
const HAIRLINE = 1;
|
|
9
9
|
const stylesOf = themedStyles(({ colors, radii, shadows }) => StyleSheet.create({
|
|
@@ -50,7 +50,6 @@ function ColorThumb(t0) {
|
|
|
50
50
|
} else t4 = $[6];
|
|
51
51
|
return t4;
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
export { ColorThumb };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { View, ViewProps } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/app-bar/index.d.ts
|
|
4
3
|
type AppBarProps = Omit<ViewProps, 'children'> & {
|
|
5
4
|
/**
|
|
6
5
|
* Which of Material Design's alignments the text takes. `center` is the
|
|
@@ -106,6 +105,5 @@ type AppBarSize = 'lg' | 'md' | 'sm';
|
|
|
106
105
|
* `useAppBarScroll` sets both from the screen's scroll view.
|
|
107
106
|
*/
|
|
108
107
|
declare function AppBar({ align, collapsed, contentInset, contentMaxInlineSize, headline, leading, pinned, scrolled, size, style, subtitle, trailing, ...props }: AppBarProps): import("react").JSX.Element;
|
|
109
|
-
//#endregion
|
|
110
108
|
export { AppBar, type AppBarProps };
|
|
111
109
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -8,7 +8,7 @@ import { StyleSheet, View } from "react-native";
|
|
|
8
8
|
import Animated, { Easing, useAnimatedStyle, useReducedMotion, withTiming } from "react-native-reanimated";
|
|
9
9
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
-
|
|
11
|
+
// src/components/app-bar/index.tsx
|
|
12
12
|
const ICON_SIZE = 24;
|
|
13
13
|
const GLYPH_INSET = 12;
|
|
14
14
|
const HEIGHTS = {
|
|
@@ -335,7 +335,6 @@ function useFill(scrolled) {
|
|
|
335
335
|
return { backgroundColor: reduceMotion ? fill : withTiming(fill, timing) };
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
//#endregion
|
|
339
338
|
export { AppBar };
|
|
340
339
|
|
|
341
340
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { Node } from "react-stately";
|
|
3
|
-
//#region src/components/autocomplete/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Whether a search keeps a row: handed the row's text, what has been typed
|
|
6
5
|
* and the row's entry in the collection, as React Aria's is.
|
|
@@ -44,6 +43,5 @@ type AutocompleteProps<T extends object = object> = {
|
|
|
44
43
|
* screen reader.
|
|
45
44
|
*/
|
|
46
45
|
declare function Autocomplete<T extends object = object>({ children, defaultInputValue, filter, inputValue, onInputChange }: AutocompleteProps<T>): import("react").JSX.Element;
|
|
47
|
-
//#endregion
|
|
48
46
|
export { Autocomplete, type AutocompleteFilter, type AutocompleteProps };
|
|
49
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { useLocaleOf } from "../../i18n/provider.js";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/components/autocomplete/index.tsx
|
|
7
7
|
/**
|
|
8
8
|
* A search field that filters the list under it. What has been typed is the
|
|
9
9
|
* autocomplete's: pass `inputValue` with `onInputChange` to control it, or
|
|
@@ -83,7 +83,6 @@ function setterOf(setOwn, onInputChange) {
|
|
|
83
83
|
onInputChange?.(value);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
//#endregion
|
|
87
86
|
export { Autocomplete };
|
|
88
87
|
|
|
89
88
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MarkImageProps } from "../../mark/index.js";
|
|
2
2
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import { ComponentRef, Ref } from "react";
|
|
4
|
-
//#region src/components/avatar/index.d.ts
|
|
5
4
|
type AvatarProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
6
5
|
/**
|
|
7
6
|
* Hides the avatar from screen readers, for one beside the person's name,
|
|
@@ -77,6 +76,5 @@ type AvatarProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
|
77
76
|
* outside one. `style`, `ref` and `testID` land on the disc.
|
|
78
77
|
*/
|
|
79
78
|
declare function Avatar({ size, tone, ...props }: AvatarProps): import("react").JSX.Element;
|
|
80
|
-
//#endregion
|
|
81
79
|
export { Avatar, type AvatarProps };
|
|
82
80
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mark } from "../../mark/index.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/avatar/index.tsx
|
|
5
5
|
/**
|
|
6
6
|
* A person, as a disc holding their photo or, until it loads or when there
|
|
7
7
|
* is none, their initials. `name` is both where the initials come from and
|
|
@@ -56,7 +56,6 @@ function Avatar(t0) {
|
|
|
56
56
|
} else t3 = $[7];
|
|
57
57
|
return t3;
|
|
58
58
|
}
|
|
59
|
-
//#endregion
|
|
60
59
|
export { Avatar };
|
|
61
60
|
|
|
62
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { View, ViewProps } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/badge/index.d.ts
|
|
4
3
|
type BadgeProps = Omit<ViewProps, 'children'> & {
|
|
5
4
|
/**
|
|
6
5
|
* What the badge is drawn on, usually an icon at 24dp. Left out, the badge
|
|
@@ -43,6 +42,5 @@ type BadgeProps = Omit<ViewProps, 'children'> & {
|
|
|
43
42
|
* to the column's edge, so a call site placing one there sets `alignSelf`.
|
|
44
43
|
*/
|
|
45
44
|
declare function Badge({ children, count, max, style, ...props }: BadgeProps): import("react").JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
45
|
export { Badge, type BadgeProps };
|
|
48
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,7 +9,7 @@ import { c } from "react/compiler-runtime";
|
|
|
9
9
|
import { Text, View } from "react-native";
|
|
10
10
|
import { use } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/badge/index.tsx
|
|
13
13
|
/**
|
|
14
14
|
* A badge on the top trailing corner of what it wraps, usually an icon: the
|
|
15
15
|
* small dot, or with `count` the large badge holding a number. The mark is
|
|
@@ -116,7 +116,6 @@ function Badge(t0) {
|
|
|
116
116
|
function countOf(count, max, locale) {
|
|
117
117
|
return count > max ? `${formatCount(max, locale)}+` : formatCount(count, locale);
|
|
118
118
|
}
|
|
119
|
-
//#endregion
|
|
120
119
|
export { Badge };
|
|
121
120
|
|
|
122
121
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { themedStyles } from "../../theme/styles.js";
|
|
2
2
|
import { StyleSheet } from "react-native";
|
|
3
|
-
|
|
3
|
+
// src/components/badge/styles.ts
|
|
4
4
|
const SMALL_SIZE = 6;
|
|
5
5
|
const LARGE_SIZE = 16;
|
|
6
6
|
const styles = StyleSheet.create({
|
|
@@ -49,7 +49,6 @@ const stylesOf = themedStyles(({ colors, radii, spacing }) => StyleSheet.create(
|
|
|
49
49
|
pointerEvents: "none"
|
|
50
50
|
}
|
|
51
51
|
}));
|
|
52
|
-
//#endregion
|
|
53
52
|
export { styles, stylesOf };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
3
|
import { Key } from "react-stately";
|
|
4
|
-
//#region src/components/breadcrumbs/index.d.ts
|
|
5
4
|
type BreadcrumbsItemProps = Omit<ViewProps, 'children' | 'id' | 'style'> & {
|
|
6
5
|
/** The item's label. */
|
|
7
6
|
readonly children?: ReactNode;
|
|
@@ -61,6 +60,5 @@ declare namespace Breadcrumbs {
|
|
|
61
60
|
* chevron after it.
|
|
62
61
|
*/
|
|
63
62
|
declare function BreadcrumbsItem({ children, href, id, style, ...props }: BreadcrumbsItemProps): import("react").JSX.Element;
|
|
64
|
-
//#endregion
|
|
65
63
|
export { Breadcrumbs, BreadcrumbsItem, type BreadcrumbsItemProps, type BreadcrumbsProps };
|
|
66
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { c } from "react/compiler-runtime";
|
|
|
7
7
|
import { Platform, StyleSheet, Text, View } from "react-native";
|
|
8
8
|
import { Children, Fragment, createContext, isValidElement, use } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/breadcrumbs/index.tsx
|
|
11
11
|
const ItemContext = createContext({
|
|
12
12
|
isCurrent: false,
|
|
13
13
|
isDisabled: false,
|
|
@@ -279,7 +279,6 @@ function positionsOf(items, isDisabled, onAction) {
|
|
|
279
279
|
}));
|
|
280
280
|
}
|
|
281
281
|
Breadcrumbs.Item = BreadcrumbsItem;
|
|
282
|
-
//#endregion
|
|
283
282
|
export { Breadcrumbs, BreadcrumbsItem };
|
|
284
283
|
|
|
285
284
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ButtonLinkForm, ButtonPressForm, ButtonToggleForm } from "../../button/index.js";
|
|
2
2
|
import { PressableProps, StyleProp, View, ViewStyle } from "react-native";
|
|
3
3
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
4
|
-
//#region src/components/button/index.d.ts
|
|
5
4
|
type ButtonForm = ButtonLinkForm | ButtonPressForm | (ButtonToggleForm & {
|
|
6
5
|
/**
|
|
7
6
|
* A toggle takes any variant but `text`, which the page gives no
|
|
@@ -84,6 +83,5 @@ type ButtonVariant = 'elevated' | 'filled' | 'outlined' | 'text' | 'tonal';
|
|
|
84
83
|
* `style`, `ref` and `testID` land on the `Pressable`.
|
|
85
84
|
*/
|
|
86
85
|
declare function Button({ accessibilityHint, children, defaultSelected, delayLongPress, disableRipple, hitSlop: ownHitSlop, href, icon, id, isDisabled: ownDisabled, isPending, isSelected, onBlur, onChange, onFocus, onHoverIn, onHoverOut, onLayout, onLongPress, onPress, onPressIn, onPressOut, pendingLabel, ref, shape, size: ownSize, slot, style, type, variant, ...props }: ButtonProps): import("react").JSX.Element;
|
|
87
|
-
//#endregion
|
|
88
86
|
export { Button, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonVariant };
|
|
89
87
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { StyleSheet, Text, useWindowDimensions } from "react-native";
|
|
|
12
12
|
import Animated, { useSharedValue } from "react-native-reanimated";
|
|
13
13
|
import { use } from "react";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
15
|
+
// src/components/button/index.tsx
|
|
16
16
|
const DISABLED = {
|
|
17
17
|
elevated: "filledDisabled",
|
|
18
18
|
filled: "filledDisabled",
|
|
@@ -504,7 +504,6 @@ function shadowOf(variant, { hovered, pressed }, isDisabled, theme) {
|
|
|
504
504
|
if (variant === "elevated") return shadowsOf(theme)[lifted ? "elevation2" : "elevation1"];
|
|
505
505
|
return (variant === "filled" || variant === "tonal") && lifted ? shadowsOf(theme).elevation1 : void 0;
|
|
506
506
|
}
|
|
507
|
-
//#endregion
|
|
508
507
|
export { Button };
|
|
509
508
|
|
|
510
509
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,6 @@ import { ButtonShape } from "../button/index.js";
|
|
|
3
3
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
4
4
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
5
5
|
import { Key } from "react-stately";
|
|
6
|
-
//#region src/components/button-group/index.d.ts
|
|
7
6
|
type ButtonGroupNaming = {
|
|
8
7
|
readonly 'aria-label': string;
|
|
9
8
|
readonly 'aria-labelledby'?: string;
|
|
@@ -82,6 +81,5 @@ type ButtonGroupVariant = 'connected' | 'standard';
|
|
|
82
81
|
* `style`, `ref` and `testID` land on the row.
|
|
83
82
|
*/
|
|
84
83
|
declare function ButtonGroup({ children, defaultSelectedKeys, disallowEmptySelection, isDisabled, onSelectionChange, selectedKeys, selectionMode, shape, size, style, variant, ...props }: ButtonGroupProps): import("react").JSX.Element;
|
|
85
|
-
//#endregion
|
|
86
84
|
export { ButtonGroup, type ButtonGroupProps, type ButtonGroupVariant };
|
|
87
85
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { StyleSheet, View } from "react-native";
|
|
|
7
7
|
import { Children, Fragment, isValidElement, useState } from "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
import { useToggleGroupState } from "react-stately/useToggleGroupState";
|
|
10
|
-
|
|
10
|
+
// src/components/button-group/index.tsx
|
|
11
11
|
const EXPANDED_RATIO = .15;
|
|
12
12
|
const XS_GAP = 18;
|
|
13
13
|
const styles = StyleSheet.create({ group: {
|
|
@@ -269,7 +269,6 @@ function shiftFor(index, count, press) {
|
|
|
269
269
|
if (Math.abs(index - press.index) !== 1) return 0;
|
|
270
270
|
return -(press.index === 0 || press.index === count - 1 ? press.delta : press.delta / 2);
|
|
271
271
|
}
|
|
272
|
-
//#endregion
|
|
273
272
|
export { ButtonGroup };
|
|
274
273
|
|
|
275
274
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,6 @@ import { StyleProp, View, ViewStyle } from "react-native";
|
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
3
|
import { DateDuration } from "@internationalized/date";
|
|
4
4
|
import { CalendarProps, DateValue } from "react-stately/useCalendarState";
|
|
5
|
-
//#region src/components/calendar/index.d.ts
|
|
6
5
|
type CalendarProps$1<T extends DateValue = DateValue> = Pick<CalendarProps<T>, 'defaultFocusedValue' | 'defaultValue' | 'firstDayOfWeek' | 'focusedValue' | 'isDateUnavailable' | 'isDisabled' | 'isReadOnly' | 'maxValue' | 'minValue' | 'onChange' | 'onFocusChange' | 'value'> & {
|
|
7
6
|
/**
|
|
8
7
|
* The calendar's name. The month shown, or the months, is added to it, as
|
|
@@ -54,6 +53,5 @@ type CalendarProps$1<T extends DateValue = DateValue> = Pick<CalendarProps<T>, '
|
|
|
54
53
|
* `style`, `ref` and `testID` land on the container.
|
|
55
54
|
*/
|
|
56
55
|
declare function Calendar<T extends DateValue = DateValue>({ 'aria-label': ariaLabel, locale, ref, showMonthYearMenus, style, testID, visibleDuration, ...props }: CalendarProps$1<T>): import("react").JSX.Element;
|
|
57
|
-
//#endregion
|
|
58
56
|
export { Calendar, type CalendarProps$1 as CalendarProps };
|
|
59
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { View } from "react-native";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
import { createCalendar } from "@internationalized/date";
|
|
8
8
|
import { useCalendarState } from "react-stately/useCalendarState";
|
|
9
|
-
|
|
9
|
+
// src/components/calendar/index.tsx
|
|
10
10
|
/**
|
|
11
11
|
* A month calendar for picking a date. The value is an
|
|
12
12
|
* `@internationalized/date` value, as on web: pass `value` with `onChange` to
|
|
@@ -130,7 +130,6 @@ function Calendar(t0) {
|
|
|
130
130
|
} else t8 = $[32];
|
|
131
131
|
return t8;
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { Calendar };
|
|
135
134
|
|
|
136
135
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PressableProps, StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/card/index.d.ts
|
|
4
3
|
type CardBaseProps = {
|
|
5
4
|
readonly children?: ReactNode;
|
|
6
5
|
/**
|
|
@@ -73,6 +72,5 @@ type StaticCardForm = Omit<ViewProps, 'children' | 'style'> & {
|
|
|
73
72
|
* does. `style`, `ref` and `testID` land on the card's own view.
|
|
74
73
|
*/
|
|
75
74
|
declare function Card(props: CardProps): import("react").JSX.Element;
|
|
76
|
-
//#endregion
|
|
77
75
|
export { Card, type CardProps, type CardVariant };
|
|
78
76
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { useLinkPress } from "../../router/index.js";
|
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Pressable, StyleSheet, View } from "react-native";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/card/index.tsx
|
|
10
10
|
const paddings = themedStyles(({ spacing }) => StyleSheet.create({
|
|
11
11
|
default: { padding: spacing.lg },
|
|
12
12
|
none: { padding: 0 }
|
|
@@ -309,7 +309,6 @@ function StaticCard(t0) {
|
|
|
309
309
|
} else t5 = $[16];
|
|
310
310
|
return t5;
|
|
311
311
|
}
|
|
312
|
-
//#endregion
|
|
313
312
|
export { Card };
|
|
314
313
|
|
|
315
314
|
//# sourceMappingURL=index.js.map
|