@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/dist/field/index.d.ts
CHANGED
|
@@ -2,13 +2,11 @@ import "../form/index.js";
|
|
|
2
2
|
import { HostInstance, StyleProp, TextInput, TextInputProps, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import "react-native-reanimated";
|
|
4
4
|
import { ComponentRef, ReactNode, Ref, RefObject } from "react";
|
|
5
|
-
//#region src/field/index.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The filled box, or the outlined one: no fill, an outline that thickens and
|
|
8
7
|
* takes the primary role while focused, and the label cutting it once it
|
|
9
8
|
* floats, the text fields page's two fields.
|
|
10
9
|
*/
|
|
11
10
|
type FieldVariant = 'filled' | 'outlined';
|
|
12
|
-
//#endregion
|
|
13
11
|
export type { FieldVariant };
|
|
14
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/field/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { AccessibilityInfo, Platform, Pressable, Text, TextInput, View, useWindo
|
|
|
16
16
|
import Animated, { Easing, useAnimatedStyle, useDerivedValue, useReducedMotion, withTiming } from "react-native-reanimated";
|
|
17
17
|
import { createContext, use, useEffect, useId, useRef, useState } from "react";
|
|
18
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
19
|
+
// src/field/index.tsx
|
|
20
20
|
const ICON_SIZE = 24;
|
|
21
21
|
const OUTSIDE_BOX = {
|
|
22
22
|
disabled: false,
|
|
@@ -1250,7 +1250,6 @@ function widthTo(onMeasure) {
|
|
|
1250
1250
|
onMeasure(event.nativeEvent.layout.width);
|
|
1251
1251
|
};
|
|
1252
1252
|
}
|
|
1253
|
-
//#endregion
|
|
1254
1253
|
export { FieldBox, FieldChevron, FieldInput, FieldMessage, FieldSegments, FieldStates, FieldStroke, FieldValue, FieldWrap, describedBy, descriptionOf, useErrorAnnouncement, useFieldFocus, useStrokeMotion };
|
|
1255
1254
|
|
|
1256
1255
|
//# sourceMappingURL=index.js.map
|
package/dist/field/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/field/styles.ts
|
|
5
5
|
const fieldStylesOf = themedStyles(({ colors, radii, sizing, spacing, stateLayerOpacity }) => StyleSheet.create({
|
|
6
6
|
affixLine: {
|
|
7
7
|
alignItems: "baseline",
|
|
@@ -160,7 +160,6 @@ const fieldStylesOf = themedStyles(({ colors, radii, sizing, spacing, stateLayer
|
|
|
160
160
|
rowGap: spacing.sm
|
|
161
161
|
}
|
|
162
162
|
}));
|
|
163
|
-
//#endregion
|
|
164
163
|
export { fieldStylesOf };
|
|
165
164
|
|
|
166
165
|
//# sourceMappingURL=styles.js.map
|
package/dist/files/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/files/index.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A file a person picked: what it is called, how big it is and what it is,
|
|
4
3
|
* as web's `File` says, and where it is, which a call site reads it or
|
|
@@ -13,6 +12,5 @@ type PickedFile = {
|
|
|
13
12
|
readonly type: string;
|
|
14
13
|
readonly uri: string;
|
|
15
14
|
};
|
|
16
|
-
//#endregion
|
|
17
15
|
export type { PickedFile };
|
|
18
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/files/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/files/index.ts
|
|
2
2
|
let documentPicker;
|
|
3
3
|
let imagePicker;
|
|
4
4
|
function fromCamera(asset) {
|
|
@@ -101,7 +101,6 @@ async function pickThen(options, then) {
|
|
|
101
101
|
function preparePicker(options) {
|
|
102
102
|
options.defaultCamera === void 0 ? loadDocumentPicker() : loadImagePicker();
|
|
103
103
|
}
|
|
104
|
-
//#endregion
|
|
105
104
|
export { pickFiles, pickThen, preparePicker };
|
|
106
105
|
|
|
107
106
|
//# sourceMappingURL=index.js.map
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
//#region src/form/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* `aria` shows a field's error as soon as the field says so, and lets the
|
|
5
4
|
* form submit regardless. `native` holds the form back while a field in it is
|
|
@@ -21,6 +20,5 @@ type ValidationErrors = Readonly<Record<string, ValidationError>>;
|
|
|
21
20
|
* `true`, `null` or `undefined` where there is none, as on web.
|
|
22
21
|
*/
|
|
23
22
|
type ValidationResult = null | true | undefined | ValidationError;
|
|
24
|
-
//#endregion
|
|
25
23
|
export type { FormValidationBehavior, FormValues, ValidationError, ValidationErrors, ValidationResult };
|
|
26
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/form/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { createContext, use, useEffect, useId, useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/form/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* What a field outside a form, and a form told nothing, validates by. The
|
|
6
6
|
* library shows its own message under a field, so an error shows as the
|
|
@@ -182,7 +182,6 @@ function _temp(t0) {
|
|
|
182
182
|
function useInsideForm() {
|
|
183
183
|
return use(FormContext) !== null;
|
|
184
184
|
}
|
|
185
|
-
//#endregion
|
|
186
185
|
export { FIELD_VALIDATION_BEHAVIOR, FormContext, createRegistry, submitOf, useFieldValidation, useInsideForm };
|
|
187
186
|
|
|
188
187
|
//# sourceMappingURL=index.js.map
|
package/dist/glyphs/hidden.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Platform } from "react-native";
|
|
2
|
-
|
|
2
|
+
// src/glyphs/hidden.ts
|
|
3
3
|
const HIDDEN = Platform.select({
|
|
4
4
|
default: {
|
|
5
5
|
accessibilityElementsHidden: true,
|
|
@@ -7,7 +7,6 @@ const HIDDEN = Platform.select({
|
|
|
7
7
|
},
|
|
8
8
|
web: { "aria-hidden": true }
|
|
9
9
|
});
|
|
10
|
-
//#endregion
|
|
11
10
|
export { HIDDEN };
|
|
12
11
|
|
|
13
12
|
//# sourceMappingURL=hidden.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ColorValue } from "react-native";
|
|
2
|
-
//#region src/glyphs/icon-style.d.ts
|
|
3
2
|
/** The colour and size a slot gives the icon drawn in it. */
|
|
4
3
|
type IconStyle = {
|
|
5
4
|
/** The colour the icon fills with. */
|
|
@@ -20,6 +19,5 @@ type IconStyle = {
|
|
|
20
19
|
* ```
|
|
21
20
|
*/
|
|
22
21
|
declare function useIconStyle(): IconStyle;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { type IconStyle, useIconStyle };
|
|
25
23
|
//# sourceMappingURL=icon-style.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, use } from "react";
|
|
2
|
-
|
|
2
|
+
// src/glyphs/icon-style.ts
|
|
3
3
|
const IconStyleContext = createContext({ size: 24 });
|
|
4
4
|
/**
|
|
5
5
|
* The colour and size of the slot an icon sits in, as a slot that takes an
|
|
@@ -16,7 +16,6 @@ const IconStyleContext = createContext({ size: 24 });
|
|
|
16
16
|
function useIconStyle() {
|
|
17
17
|
return use(IconStyleContext);
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { IconStyleContext, useIconStyle };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=icon-style.js.map
|
package/dist/glyphs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { c } from "react/compiler-runtime";
|
|
|
6
6
|
import { I18nManager, StyleSheet } from "react-native";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
import Svg, { Path } from "react-native-svg";
|
|
9
|
-
|
|
9
|
+
// src/glyphs/index.tsx
|
|
10
10
|
function ArrowBackGlyph(props) {
|
|
11
11
|
const $ = c(3);
|
|
12
12
|
let t0;
|
|
@@ -323,7 +323,6 @@ function SearchGlyph(props) {
|
|
|
323
323
|
} else t1 = $[2];
|
|
324
324
|
return t1;
|
|
325
325
|
}
|
|
326
|
-
//#endregion
|
|
327
326
|
export { ArrowBackGlyph, ArrowDownwardGlyph, ArrowDropDownGlyph, ArrowUpwardGlyph, CalendarGlyph, CheckGlyph, ChevronDownGlyph, ChevronEndGlyph, ClockGlyph, CloseGlyph, IndeterminateGlyph, KeyboardGlyph, MinusGlyph, PersonGlyph, PlusGlyph, SearchGlyph };
|
|
328
327
|
|
|
329
328
|
//# sourceMappingURL=index.js.map
|
package/dist/glyphs/styles.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleSheet } from "react-native";
|
|
2
|
-
|
|
2
|
+
// src/glyphs/styles.ts
|
|
3
3
|
const glyphStyles = StyleSheet.create({ mirrored: { transform: [{ scaleX: -1 }] } });
|
|
4
|
-
//#endregion
|
|
5
4
|
export { glyphStyles };
|
|
6
5
|
|
|
7
6
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent } from "react-native";
|
|
2
|
-
//#region src/hooks/useAppBarScroll.d.ts
|
|
3
2
|
type AppBarScroll = {
|
|
4
3
|
/** For the bar's `collapsed`. */
|
|
5
4
|
readonly collapsed: boolean;
|
|
@@ -51,6 +50,5 @@ type AppBarScrollOptions = {
|
|
|
51
50
|
* expanded there too.
|
|
52
51
|
*/
|
|
53
52
|
declare function useAppBarScroll({ collapseAfter }?: AppBarScrollOptions): AppBarScroll;
|
|
54
|
-
//#endregion
|
|
55
53
|
export { type AppBarScroll, type AppBarScrollOptions, useAppBarScroll };
|
|
56
54
|
//# sourceMappingURL=useAppBarScroll.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { n as breakpoints } from "../kanso-ui-core/defaults-DMH0HWCw.js";
|
|
2
|
-
//#region src/hooks/useWindowSizeClass.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Material Design's window size classes, which kanso-ui's breakpoint tokens
|
|
5
4
|
* bound: `compact` from 0, `medium` from 600dp, `expanded` from 840dp, `large`
|
|
@@ -20,6 +19,5 @@ type WindowSizeClass = keyof typeof breakpoints;
|
|
|
20
19
|
* https://m3.material.io/foundations/layout/applying-layout/window-size-classes.
|
|
21
20
|
*/
|
|
22
21
|
declare function useWindowSizeClass(): WindowSizeClass;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { type WindowSizeClass, useWindowSizeClass };
|
|
25
23
|
//# sourceMappingURL=useWindowSizeClass.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { breakpoints } from "../kanso-ui-core/index.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useWindowDimensions } from "react-native";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useWindowSizeClass.ts
|
|
5
5
|
const CLASSES = [
|
|
6
6
|
"extraLarge",
|
|
7
7
|
"large",
|
|
@@ -33,7 +33,6 @@ function useWindowSizeClass() {
|
|
|
33
33
|
} else t0 = $[1];
|
|
34
34
|
return t0;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { useWindowSizeClass };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=useWindowSizeClass.js.map
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { formatCount } from "../number/count.js";
|
|
2
2
|
import { localeOf } from "../number/locale.js";
|
|
3
3
|
import { MESSAGES } from "./messages.js";
|
|
4
|
-
|
|
4
|
+
// src/i18n/index.ts
|
|
5
5
|
const TABLE = new Map(Object.entries(MESSAGES));
|
|
6
6
|
const cache = /* @__PURE__ */ new Map();
|
|
7
7
|
/**
|
|
@@ -78,7 +78,6 @@ function sortedFor(direction, columnName, locale) {
|
|
|
78
78
|
const { table } = messagesFor(locale);
|
|
79
79
|
return (direction === "ascending" ? table.ascendingSort : table.descendingSort).replace("{columnName}", columnName);
|
|
80
80
|
}
|
|
81
|
-
//#endregion
|
|
82
81
|
export { columnSizeFor, limitFor, listFor, messagesFor, resultsFor, slideLabelFor, sortedFor };
|
|
83
82
|
|
|
84
83
|
//# sourceMappingURL=index.js.map
|
package/dist/i18n/messages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/i18n/messages.ts
|
|
2
2
|
const MESSAGES = {
|
|
3
3
|
"ar-AE": {
|
|
4
4
|
back: "رجوع",
|
|
@@ -2816,7 +2816,6 @@ const MESSAGES = {
|
|
|
2816
2816
|
transparent: "透明"
|
|
2817
2817
|
}
|
|
2818
2818
|
};
|
|
2819
|
-
//#endregion
|
|
2820
2819
|
export { MESSAGES };
|
|
2821
2820
|
|
|
2822
2821
|
//# sourceMappingURL=messages.js.map
|
package/dist/i18n/provider.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/i18n/provider.d.ts
|
|
3
2
|
type I18nProviderProps = {
|
|
4
3
|
readonly children?: ReactNode;
|
|
5
4
|
/**
|
|
@@ -48,6 +47,5 @@ declare function I18nProvider({ children, locale }: I18nProviderProps): import("
|
|
|
48
47
|
* ```
|
|
49
48
|
*/
|
|
50
49
|
declare function useLocale(): Locale;
|
|
51
|
-
//#endregion
|
|
52
50
|
export { I18nProvider, type I18nProviderProps, type Locale, useLocale };
|
|
53
51
|
//# sourceMappingURL=provider.d.ts.map
|
package/dist/i18n/provider.js
CHANGED
|
@@ -4,7 +4,7 @@ import { c } from "react/compiler-runtime";
|
|
|
4
4
|
import { I18nManager } from "react-native";
|
|
5
5
|
import { createContext, use } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/i18n/provider.tsx
|
|
8
8
|
const LocaleContext = createContext(void 0);
|
|
9
9
|
/**
|
|
10
10
|
* Sets the locale every component inside writes in, as React Aria's
|
|
@@ -90,7 +90,6 @@ function useMessages(own) {
|
|
|
90
90
|
function useProvidedLocale() {
|
|
91
91
|
return use(LocaleContext);
|
|
92
92
|
}
|
|
93
|
-
//#endregion
|
|
94
93
|
export { I18nProvider, useLocale, useLocaleOf, useMessages, useProvidedLocale };
|
|
95
94
|
|
|
96
95
|
//# sourceMappingURL=provider.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LayoutChangeEvent } from "react-native";
|
|
2
2
|
import "react-native-reanimated";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
|
-
//#region src/indicator/index.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* The line's colour. `primary` is the page's own pair. `negative` and
|
|
7
6
|
* `positive` swap the active indicator and the stop indicator alone, leaving
|
|
@@ -10,6 +9,5 @@ import { ReactNode } from "react";
|
|
|
10
9
|
* line sits in for both, and gives the track a quarter of it.
|
|
11
10
|
*/
|
|
12
11
|
type IndicatorTone = 'inherit' | 'negative' | 'positive' | 'primary';
|
|
13
|
-
//#endregion
|
|
14
12
|
export type { IndicatorTone };
|
|
15
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/indicator/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, w
|
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { NumberFormatter } from "@internationalized/number";
|
|
13
|
-
|
|
13
|
+
// src/indicator/index.tsx
|
|
14
14
|
/**
|
|
15
15
|
* The active indicator's length at a value: the value's share of what the two
|
|
16
16
|
* gaps and the stop leave of the row, as web's `activeAt` gives it. A share of
|
|
@@ -249,7 +249,6 @@ function useMeasuredWidth() {
|
|
|
249
249
|
} else t1 = $[2];
|
|
250
250
|
return t1;
|
|
251
251
|
}
|
|
252
|
-
//#endregion
|
|
253
252
|
export { IndicatorLabels, IndicatorLine, activeLength, fillOf, readingOf, useEased, useIndicatorColors, useMeasuredWidth };
|
|
254
253
|
|
|
255
254
|
//# sourceMappingURL=index.js.map
|
package/dist/indicator/motion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { Easing, ReduceMotion, cancelAnimation, useSharedValue, withRepeat, withTiming } from "react-native-reanimated";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
|
-
|
|
4
|
+
// src/indicator/motion.ts
|
|
5
5
|
const SEARCH_STEPS = 24;
|
|
6
6
|
/**
|
|
7
7
|
* The value `frames` give at `time`, a share of the loop: the frames either
|
|
@@ -80,7 +80,6 @@ function useLoop(duration, running) {
|
|
|
80
80
|
useEffect(t0, t1);
|
|
81
81
|
return clock;
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { keyframeAt, useLoop };
|
|
85
84
|
|
|
86
85
|
//# sourceMappingURL=motion.js.map
|
package/dist/indicator/paths.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/indicator/paths.ts
|
|
2
2
|
const PLACES = 3;
|
|
3
3
|
/** A full turn, in radians. */
|
|
4
4
|
const TURN = 2 * Math.PI;
|
|
@@ -88,7 +88,6 @@ function wavyArcPath(wave, phase, from, sweep) {
|
|
|
88
88
|
for (let index = Math.floor(from / step) + 1; index * step < to; index++) path += `L${point(index * step)}`;
|
|
89
89
|
return `${path}L${point(to)}`;
|
|
90
90
|
}
|
|
91
|
-
//#endregion
|
|
92
91
|
export { TURN, WAVE_HEIGHT, WAVE_ORIGIN, arcPath, shapePath, wavePath, wavyArcPath };
|
|
93
92
|
|
|
94
93
|
//# sourceMappingURL=paths.js.map
|
package/dist/indicator/styles.js
CHANGED
|
@@ -56,7 +56,6 @@ const stylesOf = themedStyles(({ radii, spacing }) => StyleSheet.create({
|
|
|
56
56
|
stop: { borderRadius: radii.circle },
|
|
57
57
|
track: { borderRadius: radii.pill }
|
|
58
58
|
}));
|
|
59
|
-
//#endregion
|
|
60
59
|
export { DETERMINATE_EASING, styles, stylesOf };
|
|
61
60
|
|
|
62
61
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region node_modules/@kanso-labs/kanso-ui-core/dist/defaults-DMH0HWCw.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A theme: any of the `--kui-*` custom properties `tokens.css` lists, each set
|
|
4
3
|
* to a value in CSS syntax. Hand one to `ThemeScope`'s `theme` prop, and every
|
|
@@ -403,6 +402,5 @@ declare const breakpoints: {
|
|
|
403
402
|
readonly large: 1200;
|
|
404
403
|
readonly extraLarge: 1600;
|
|
405
404
|
};
|
|
406
|
-
//#endregion
|
|
407
405
|
export { breakpoints as n, KuiTheme as t };
|
|
408
406
|
//# sourceMappingURL=defaults-DMH0HWCw.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@kanso-labs/kanso-ui-core/dist/glyphs.js
|
|
2
2
|
/** An arrow pointing back, at the page a view returns to. */
|
|
3
3
|
const arrowBackPath = "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z";
|
|
4
4
|
/** An arrow pointing down, for a column sorted in descending order. */
|
|
@@ -35,7 +35,6 @@ const personPath = "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm
|
|
|
35
35
|
const plusPath = "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";
|
|
36
36
|
/** A magnifier, as a search field shows. */
|
|
37
37
|
const searchPath = "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z";
|
|
38
|
-
//#endregion
|
|
39
38
|
export { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, calendarPath, checkPath, chevronDownPath, chevronEndPath, clockPath, closePath, keyboardPath, minusPath, personPath, plusPath, searchPath };
|
|
40
39
|
|
|
41
40
|
//# sourceMappingURL=glyphs.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@kanso-labs/kanso-ui-core/dist/index.js
|
|
2
2
|
/** Every property at its value in the light scheme, as `tokens.css` declares it. */
|
|
3
3
|
const light = {
|
|
4
4
|
"--kui-color-background": "#fef7ff",
|
|
@@ -402,7 +402,6 @@ const breakpoints = {
|
|
|
402
402
|
large: 1200,
|
|
403
403
|
extraLarge: 1600
|
|
404
404
|
};
|
|
405
|
-
//#endregion
|
|
406
405
|
export { breakpoints, dark, light };
|
|
407
406
|
|
|
408
407
|
//# sourceMappingURL=index.js.map
|
package/dist/mark/image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/mark/image.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the picture at `src` can be shown yet, from what the component's
|
|
6
6
|
* own `Image` reports, as kanso-ui's `useImageLoadingStatus` reads it from an
|
|
@@ -55,7 +55,6 @@ function useImageLoadingStatus(src) {
|
|
|
55
55
|
} else t2 = $[3];
|
|
56
56
|
return t2;
|
|
57
57
|
}
|
|
58
|
-
//#endregion
|
|
59
58
|
export { useImageLoadingStatus };
|
|
60
59
|
|
|
61
60
|
//# sourceMappingURL=image.js.map
|
package/dist/mark/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import "./styles.js";
|
|
2
2
|
import { ImageProps, StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import { ComponentRef, Ref } from "react";
|
|
4
|
-
//#region src/mark/index.d.ts
|
|
5
4
|
/** The native props a picture's own `Image` takes, as Avatar and ProductIcon take them. */
|
|
6
5
|
type MarkImageProps = Pick<ImageProps, 'crossOrigin' | 'fadeDuration' | 'progressiveRenderingEnabled' | 'referrerPolicy' | 'resizeMethod'>;
|
|
7
|
-
//#endregion
|
|
8
6
|
export type { MarkImageProps };
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/mark/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DIAMETERS, GLYPH_SHARE, initialsStylesOf, markStyles, markStylesOf } fr
|
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
10
10
|
import { Image, Text, View } from "react-native";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/mark/index.tsx
|
|
13
13
|
const KINDS = {
|
|
14
14
|
person: {
|
|
15
15
|
initials: initialsOfPerson,
|
|
@@ -188,7 +188,6 @@ function Mark(t0) {
|
|
|
188
188
|
function sourceOf(uri) {
|
|
189
189
|
return { uri };
|
|
190
190
|
}
|
|
191
|
-
//#endregion
|
|
192
191
|
export { Mark };
|
|
193
192
|
|
|
194
193
|
//# sourceMappingURL=index.js.map
|
package/dist/mark/initials.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/mark/initials.ts
|
|
2
2
|
const INITIAL = /^[\p{L}\p{N}\p{Extended_Pictographic}\p{Regional_Indicator}]/u;
|
|
3
3
|
const JOINING = /^[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Mongolian}\p{Script=Nko}\p{Script=Adlam}\p{Script=Mandaic}\p{Script=Manichaean}\p{Script=Psalter_Pahlavi}\p{Script=Hanifi_Rohingya}\p{Script=Sogdian}\p{Script=Old_Uyghur}]/u;
|
|
4
4
|
const ZERO_WIDTH_NON_JOINER = "";
|
|
@@ -59,7 +59,6 @@ function initialsOfPerson(name, locale) {
|
|
|
59
59
|
const last = initialOf(words.at(-1) ?? "", locale);
|
|
60
60
|
return `${first}${JOINING.test(first) && JOINING.test(last) ? ZERO_WIDTH_NON_JOINER : ""}${last}`;
|
|
61
61
|
}
|
|
62
|
-
//#endregion
|
|
63
62
|
export { initialOfThing, initialsOfPerson };
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=initials.js.map
|
package/dist/mark/styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { themedStyles } from "../theme/styles.js";
|
|
2
2
|
import { StyleSheet } from "react-native";
|
|
3
|
-
|
|
3
|
+
// src/mark/styles.ts
|
|
4
4
|
const DIAMETERS = {
|
|
5
5
|
lg: 56,
|
|
6
6
|
md: 40,
|
|
@@ -67,7 +67,6 @@ const markStyles = StyleSheet.create({
|
|
|
67
67
|
width: DIAMETERS.sm
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
|
-
//#endregion
|
|
71
70
|
export { DIAMETERS, GLYPH_SHARE, initialsStylesOf, markStyles, markStylesOf };
|
|
72
71
|
|
|
73
72
|
//# sourceMappingURL=styles.js.map
|
package/dist/modal/index.d.ts
CHANGED
|
@@ -4,13 +4,11 @@ import "react-native-reanimated";
|
|
|
4
4
|
import "react-native-safe-area-context";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import "react-stately/useOverlayTriggerState";
|
|
7
|
-
//#region src/modal/index.d.ts
|
|
8
7
|
/** Whether a modal surface is open, and who holds that state. */
|
|
9
8
|
type ModalOpenProps = {
|
|
10
9
|
readonly defaultOpen?: boolean;
|
|
11
10
|
readonly isOpen?: boolean;
|
|
12
11
|
readonly onOpenChange?: (isOpen: boolean) => void;
|
|
13
12
|
};
|
|
14
|
-
//#endregion
|
|
15
13
|
export type { ModalOpenProps };
|
|
16
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/modal/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { AccessibilityInfo, I18nManager, Modal, Platform, StyleSheet } from "rea
|
|
|
10
10
|
import { useEffect, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { useOverlayTriggerState } from "react-stately/useOverlayTriggerState";
|
|
13
|
-
|
|
13
|
+
// src/modal/index.tsx
|
|
14
14
|
const NO_INSETS = {
|
|
15
15
|
bottom: 0,
|
|
16
16
|
left: 0,
|
|
@@ -299,7 +299,6 @@ function useReturnFocus(present, outer) {
|
|
|
299
299
|
} else t1 = $[5];
|
|
300
300
|
useEffect(t0, t1);
|
|
301
301
|
}
|
|
302
|
-
//#endregion
|
|
303
302
|
export { ModalWindow, NO_INSETS, insetsOf, panelRoleOf, registerOf, useModalState, useModalTrigger };
|
|
304
303
|
|
|
305
304
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PressableProps, StyleProp, View, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/navigation/index.d.ts
|
|
4
3
|
type NavigationDestinationProps = Omit<PressableProps, 'children' | 'disabled' | 'style'> & {
|
|
5
4
|
/**
|
|
6
5
|
* A badge on the icon: `true` for the badges page's small dot, a number
|
|
@@ -31,6 +30,5 @@ type NavigationItemProps = NavigationDestinationProps & {
|
|
|
31
30
|
*/
|
|
32
31
|
readonly href: string;
|
|
33
32
|
};
|
|
34
|
-
//#endregion
|
|
35
33
|
export type { NavigationDestinationProps, NavigationItemProps };
|
|
36
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/navigation/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { Pressable, Text, View } from "react-native";
|
|
|
13
13
|
import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, withTiming } from "react-native-reanimated";
|
|
14
14
|
import { createContext, use, useEffect } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
|
|
16
|
+
// src/navigation/index.tsx
|
|
17
17
|
const GROWN_FROM = .4;
|
|
18
18
|
const FADE_SHARE = .2;
|
|
19
19
|
const ICON_SIZE = 24;
|
|
@@ -451,7 +451,6 @@ function NavigationItem(t0) {
|
|
|
451
451
|
} else t2 = $[7];
|
|
452
452
|
return t2;
|
|
453
453
|
}
|
|
454
|
-
//#endregion
|
|
455
454
|
export { NavigationContext, NavigationDestination, NavigationItem, iconColorOf, labelColorOf };
|
|
456
455
|
|
|
457
456
|
//# 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/navigation/styles.ts
|
|
4
4
|
const INDICATOR = {
|
|
5
5
|
height: 32,
|
|
6
6
|
width: 56
|
|
@@ -77,7 +77,6 @@ const stylesOf = themedStyles(({ radii, spacing }) => StyleSheet.create({
|
|
|
77
77
|
paddingVertical: VERTICAL_PADDING
|
|
78
78
|
}
|
|
79
79
|
}));
|
|
80
|
-
//#endregion
|
|
81
80
|
export { INDICATOR, styles, stylesOf };
|
|
82
81
|
|
|
83
82
|
//# sourceMappingURL=styles.js.map
|
package/dist/number/count.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/number/count.ts
|
|
2
2
|
const formats = /* @__PURE__ */ new Map();
|
|
3
3
|
/** A count in `locale`'s digits and grouping. */
|
|
4
4
|
function formatCount(count, locale) {
|
|
@@ -9,7 +9,6 @@ function formatCount(count, locale) {
|
|
|
9
9
|
}
|
|
10
10
|
return format.format(count);
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { formatCount };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=count.js.map
|
package/dist/number/keyboard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform } from "react-native";
|
|
2
2
|
import { NumberFormatter } from "@internationalized/number";
|
|
3
|
-
|
|
3
|
+
// src/number/keyboard.ts
|
|
4
4
|
/**
|
|
5
5
|
* The keyboard for a number written in `locale` and `formatOptions`, from
|
|
6
6
|
* `minValue` up: one with a minus where the range reaches below zero, and a
|
|
@@ -10,7 +10,6 @@ function keyboardFor(locale, formatOptions, minValue) {
|
|
|
10
10
|
if (minValue === void 0 || Number.isNaN(minValue) || minValue < 0) return Platform.OS === "ios" ? "numbers-and-punctuation" : "numeric";
|
|
11
11
|
return (new NumberFormatter(locale, formatOptions).resolvedOptions().maximumFractionDigits ?? 0) > 0 ? "decimal-pad" : "number-pad";
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { keyboardFor };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=keyboard.js.map
|
package/dist/number/locale.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/number/locale.ts
|
|
2
2
|
let deviceLocale;
|
|
3
3
|
function localeOf(locale) {
|
|
4
4
|
if (locale !== void 0) try {
|
|
@@ -8,7 +8,6 @@ function localeOf(locale) {
|
|
|
8
8
|
deviceLocale ??= new Intl.NumberFormat().resolvedOptions().locale;
|
|
9
9
|
return deviceLocale;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
11
|
export { localeOf };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=locale.js.map
|
package/dist/number/parser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/number/parser.ts
|
|
2
2
|
const CURRENCY_SIGN_REGEX = /^.*\(.*\).*$/u;
|
|
3
3
|
const NUMBERING_SYSTEMS = [
|
|
4
4
|
"latn",
|
|
@@ -315,7 +315,6 @@ function withRoundingIncrement(given) {
|
|
|
315
315
|
}
|
|
316
316
|
return options;
|
|
317
317
|
}
|
|
318
|
-
//#endregion
|
|
319
318
|
export { NumberParser };
|
|
320
319
|
|
|
321
320
|
//# sourceMappingURL=parser.js.map
|