@kanso-labs/react-native-kanso-ui 0.11.4 → 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 -2
- 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 +18 -18
- package/dist/glyphs/index.js.map +1 -1
- 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 +1 -3
- package/dist/hooks/useWindowSizeClass.js +2 -3
- 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/index.d.ts +1 -1
- 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/{tokens/defaults.d.ts → kanso-ui-core/defaults-DMH0HWCw.d.ts} +6 -7
- package/dist/kanso-ui-core/glyphs.js +40 -0
- package/dist/kanso-ui-core/glyphs.js.map +1 -0
- package/dist/{tokens/defaults.js → kanso-ui-core/index.js} +12 -8
- package/dist/kanso-ui-core/index.js.map +1 -0
- 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/resolve.js.map +1 -1
- package/dist/theme/scope.d.ts +1 -3
- package/dist/theme/scope.js +2 -3
- package/dist/theme/styles.js +1 -2
- package/dist/theme-scope.d.ts +1 -3
- 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 +10 -13
- package/dist/tokens/defaults.js.map +0 -1
|
@@ -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
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CarouselLayout } from "../../carousel/arrangement.js";
|
|
2
2
|
import { View, ViewProps } from "react-native";
|
|
3
3
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
4
|
-
//#region src/components/carousel/index.d.ts
|
|
5
4
|
type CarouselItemProps = Omit<ViewProps, 'children'> & {
|
|
6
5
|
/** What the item shows: usually an image, which the item masks. */
|
|
7
6
|
readonly children?: ReactNode;
|
|
@@ -67,6 +66,5 @@ declare namespace Carousel {
|
|
|
67
66
|
* cuts what it holds to the width it is drawn at.
|
|
68
67
|
*/
|
|
69
68
|
declare function CarouselItem({ children, style, ...props }: CarouselItemProps): import("react").JSX.Element;
|
|
70
|
-
//#endregion
|
|
71
69
|
export { Carousel, CarouselItem, type CarouselItemProps, type CarouselLayout, type CarouselProps };
|
|
72
70
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@ import Animated, { Extrapolation, interpolate, useAnimatedReaction, useAnimatedS
|
|
|
11
11
|
import { Children, createContext, isValidElement, use, useRef, useState } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { scheduleOnRN } from "react-native-worklets";
|
|
14
|
-
|
|
14
|
+
// src/components/carousel/index.tsx
|
|
15
15
|
const DEFAULT_ITEM_SIZE = 240;
|
|
16
16
|
const SLACK = .5;
|
|
17
17
|
const SlotContext = createContext(null);
|
|
@@ -490,7 +490,6 @@ function widthTo(onMeasure) {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
Carousel.Item = CarouselItem;
|
|
493
|
-
//#endregion
|
|
494
493
|
export { Carousel, CarouselItem };
|
|
495
494
|
|
|
496
495
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/checkbox/index.d.ts
|
|
4
3
|
type CheckboxProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
5
4
|
/**
|
|
6
5
|
* The label, beside the box. A checkbox that a row labels some other way
|
|
@@ -77,6 +76,5 @@ type CheckboxProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
|
77
76
|
* positions.
|
|
78
77
|
*/
|
|
79
78
|
declare function Checkbox({ 'aria-label': ariaLabel, children, defaultSelected, description, error, isDisabled: ownDisabled, isIndeterminate, isReadOnly: ownReadOnly, isSelected, onChange, style, value, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
80
|
-
//#endregion
|
|
81
79
|
export { Checkbox, type CheckboxProps };
|
|
82
80
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,7 @@ import { Pressable, View } from "react-native";
|
|
|
10
10
|
import { use, useEffect, useId, useRef } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { useToggleState } from "react-stately/useToggleState";
|
|
13
|
-
|
|
13
|
+
// src/components/checkbox/index.tsx
|
|
14
14
|
const LAYERS = {
|
|
15
15
|
error: {
|
|
16
16
|
hover: "error",
|
|
@@ -312,7 +312,6 @@ function toggleOf(state) {
|
|
|
312
312
|
state.toggle();
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
|
-
//#endregion
|
|
316
315
|
export { Checkbox };
|
|
317
316
|
|
|
318
317
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ValidationResult } from "../../form/index.js";
|
|
2
2
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
4
|
-
//#region src/components/checkbox-group/index.d.ts
|
|
5
4
|
type CheckboxGroupProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
6
5
|
/** The checkboxes, each with a `value` of its own. */
|
|
7
6
|
readonly children?: ReactNode;
|
|
@@ -87,6 +86,5 @@ type CheckboxGroupProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
|
87
86
|
* the element a layout positions.
|
|
88
87
|
*/
|
|
89
88
|
declare function CheckboxGroup({ children, defaultValue, description, error, isDisabled, isReadOnly, isRequired, label, name, onChange, style, validate, value, ...props }: CheckboxGroupProps): import("react").JSX.Element;
|
|
90
|
-
//#endregion
|
|
91
89
|
export { CheckboxGroup, type CheckboxGroupProps };
|
|
92
90
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@ import { Platform, StyleSheet, Text, View, useWindowDimensions } from "react-nat
|
|
|
11
11
|
import { useId, useState } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useCheckboxGroupState } from "react-stately/useCheckboxGroupState";
|
|
14
|
-
|
|
14
|
+
// src/components/checkbox-group/index.tsx
|
|
15
15
|
const REQUIRED_MARK = "*";
|
|
16
16
|
const ATOMIC = { "aria-atomic": true };
|
|
17
17
|
const stylesOf = themedStyles(({ colors, spacing, stateLayerOpacity }) => StyleSheet.create({
|
|
@@ -300,7 +300,6 @@ function lineOf(id, message) {
|
|
|
300
300
|
function minHeightOf(minHeight) {
|
|
301
301
|
return { minHeight };
|
|
302
302
|
}
|
|
303
|
-
//#endregion
|
|
304
303
|
export { CheckboxGroup };
|
|
305
304
|
|
|
306
305
|
//# 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/components/chip/index.d.ts
|
|
4
3
|
/** An assist or suggestion chip: an action, drawn as a plain button. */
|
|
5
4
|
type ChipActionProps = ChipBaseProps & {
|
|
6
5
|
readonly defaultSelected?: never;
|
|
@@ -82,6 +81,5 @@ type ChipVariant = 'assist' | 'filter' | 'suggestion';
|
|
|
82
81
|
* a row that wraps. `style`, `ref` and `testID` land on the `Pressable`.
|
|
83
82
|
*/
|
|
84
83
|
declare function Chip({ accessibilityHint, children, defaultSelected, delayLongPress, elevated, hitSlop, icon, isDisabled, isSelected, onBlur, onChange, onFocus, onHoverIn, onHoverOut, onLayout, onLongPress, onPress, onPressIn, onPressOut, ref, style, variant, ...props }: ChipProps): import("react").JSX.Element;
|
|
85
|
-
//#endregion
|
|
86
84
|
export { Chip, type ChipActionProps, type ChipFilterProps, type ChipProps, type ChipVariant };
|
|
87
85
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { ChipGlyph, ChipLabel, measureThen, paintOf, targetOf, useEasedColors }
|
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { useState } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/chip/index.tsx
|
|
11
11
|
/**
|
|
12
12
|
* A chip. By default a filter chip, which is a two-state button reporting
|
|
13
13
|
* its state as a toggle Button does: pass `isSelected` with `onChange` to
|
|
@@ -319,7 +319,6 @@ function Chip(t0) {
|
|
|
319
319
|
} else t19 = $[101];
|
|
320
320
|
return t19;
|
|
321
321
|
}
|
|
322
|
-
//#endregion
|
|
323
322
|
export { Chip };
|
|
324
323
|
|
|
325
324
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PressableProps, StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactElement, ReactNode, Ref } from "react";
|
|
3
3
|
import { Key, Selection, SelectionMode } from "react-stately";
|
|
4
|
-
//#region src/components/chip-group/index.d.ts
|
|
5
4
|
type ChipGroupChipProps = Omit<PressableProps, 'children' | 'disabled' | 'id' | 'style'> & {
|
|
6
5
|
/** The chip's label. */
|
|
7
6
|
readonly children: ReactNode;
|
|
@@ -139,6 +138,5 @@ declare namespace ChipGroupChip {
|
|
|
139
138
|
type: string;
|
|
140
139
|
}, void, unknown>;
|
|
141
140
|
}
|
|
142
|
-
//#endregion
|
|
143
141
|
export { ChipGroup, ChipGroupChip, type ChipGroupChipProps, type ChipGroupProps };
|
|
144
142
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,7 +13,7 @@ import Animated from "react-native-reanimated";
|
|
|
13
13
|
import { useId, useState } from "react";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
import { useListState } from "react-stately/useListState";
|
|
16
|
-
|
|
16
|
+
// src/components/chip-group/index.tsx
|
|
17
17
|
const REMOVE_REACH = {
|
|
18
18
|
bottom: 3,
|
|
19
19
|
left: 3,
|
|
@@ -665,7 +665,6 @@ function selectThen(state, key, onPress) {
|
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
ChipGroup.Chip = ChipGroupChip;
|
|
668
|
-
//#endregion
|
|
669
668
|
export { ChipGroup, ChipGroupChip };
|
|
670
669
|
|
|
671
670
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Text, TextProps } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
|
-
//#region src/components/code/index.d.ts
|
|
4
3
|
type CodeProps = TextProps & {
|
|
5
4
|
readonly ref?: Ref<ComponentRef<typeof Text>>;
|
|
6
5
|
};
|
|
@@ -20,6 +19,5 @@ type CodeProps = TextProps & {
|
|
|
20
19
|
* the size.
|
|
21
20
|
*/
|
|
22
21
|
declare function Code({ children, style, ...props }: CodeProps): import("react").JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
22
|
export { Code, type CodeProps };
|
|
25
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { TextSizeContext, useTextSize } from "../../typography/size.js";
|
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { StyleSheet, Text } from "react-native";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/code/index.tsx
|
|
10
10
|
const SHARE = .875;
|
|
11
11
|
const stylesOf = themedStyles(({ colors }) => StyleSheet.create({ outside: { color: colors.onSurface } }));
|
|
12
12
|
/**
|
|
@@ -81,7 +81,6 @@ function Code(t0) {
|
|
|
81
81
|
} else t3 = $[17];
|
|
82
82
|
return t3;
|
|
83
83
|
}
|
|
84
|
-
//#endregion
|
|
85
84
|
export { Code };
|
|
86
85
|
|
|
87
86
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
3
|
import { Color, ColorChannel, ColorSpace } from "react-stately";
|
|
4
|
-
//#region src/components/color-area/index.d.ts
|
|
5
4
|
type ColorAreaProps = {
|
|
6
5
|
/**
|
|
7
6
|
* What the plane is for, which a screen reader hears before each channel's
|
|
@@ -80,6 +79,5 @@ type ColorAreaProps = {
|
|
|
80
79
|
* `value`, and reports a change to the picker before its own `onChange`.
|
|
81
80
|
*/
|
|
82
81
|
declare function ColorArea({ 'aria-label': ariaLabel, colorSpace, defaultValue, isDisabled, onChange, onChangeEnd, ref, style, testID, value, xChannel, yChannel }: ColorAreaProps): import("react").JSX.Element;
|
|
83
|
-
//#endregion
|
|
84
82
|
export { ColorArea, type ColorAreaProps };
|
|
85
83
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,7 +13,7 @@ import Svg, { Defs, LinearGradient, Mask, Rect, Stop } from "react-native-svg";
|
|
|
13
13
|
import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
14
14
|
import { parseColor } from "react-stately";
|
|
15
15
|
import { useColorAreaState } from "react-stately/useColorAreaState";
|
|
16
|
-
|
|
16
|
+
// src/components/color-area/index.tsx
|
|
17
17
|
const SLOP = 10;
|
|
18
18
|
const TARGET = 48;
|
|
19
19
|
const HUES = [
|
|
@@ -624,7 +624,6 @@ function usePlaneGesture({ isDisabled, size, state, testID }) {
|
|
|
624
624
|
});
|
|
625
625
|
return Gesture.Race(testID === void 0 ? pan : pan.withTestId(`${testID}-pan`), testID === void 0 ? tap : tap.withTestId(`${testID}-tap`));
|
|
626
626
|
}
|
|
627
|
-
//#endregion
|
|
628
627
|
export { ColorArea };
|
|
629
628
|
|
|
630
629
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,6 @@ import { FieldVariant } from "../../field/index.js";
|
|
|
3
3
|
import { StyleProp, TextInput, TextInputProps, View, ViewStyle } from "react-native";
|
|
4
4
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
5
5
|
import { Color, ColorChannel, ColorSpace } from "react-stately";
|
|
6
|
-
//#region src/components/color-field/index.d.ts
|
|
7
6
|
type ColorFieldProps = Omit<TextInputProps, 'accessibilityHint' | 'accessibilityLabel' | 'aria-disabled' | 'aria-label' | 'autoCapitalize' | 'autoComplete' | 'autoCorrect' | 'children' | 'cursorColor' | 'defaultValue' | 'editable' | 'inputMode' | 'keyboardType' | 'maxLength' | 'multiline' | 'numberOfLines' | 'onChange' | 'onChangeText' | 'placeholder' | 'placeholderTextColor' | 'readOnly' | 'selectionColor' | 'spellCheck' | 'style' | 'underlineColorAndroid' | 'value'> & {
|
|
8
7
|
/**
|
|
9
8
|
* The one channel the field holds, as a number in that channel's format,
|
|
@@ -139,6 +138,5 @@ type ColorFieldProps = Omit<TextInputProps, 'accessibilityHint' | 'accessibility
|
|
|
139
138
|
* `value`, and reports a change to the picker before its own `onChange`.
|
|
140
139
|
*/
|
|
141
140
|
declare function ColorField({ channel, onChange, value, ...props }: ColorFieldProps): import("react").JSX.Element;
|
|
142
|
-
//#endregion
|
|
143
141
|
export { ColorField, type ColorFieldProps };
|
|
144
142
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,7 @@ import { useId, useImperativeHandle, useRef, useState } from "react";
|
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { parseColor } from "react-stately";
|
|
12
12
|
import { useColorFieldState } from "react-stately/useColorFieldState";
|
|
13
|
-
|
|
13
|
+
// src/components/color-field/index.tsx
|
|
14
14
|
const BLACK = parseColor("#000");
|
|
15
15
|
function blurThen(onBlur, then) {
|
|
16
16
|
return (event) => {
|
|
@@ -510,7 +510,6 @@ function HexField(t0) {
|
|
|
510
510
|
function inSpace(color, space) {
|
|
511
511
|
return space === void 0 ? color : color.toFormat(space);
|
|
512
512
|
}
|
|
513
|
-
//#endregion
|
|
514
513
|
export { ColorField };
|
|
515
514
|
|
|
516
515
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
3
|
import { Color } from "react-stately";
|
|
4
|
-
//#region src/components/color-picker/index.d.ts
|
|
5
4
|
type ColorPickerProps = {
|
|
6
5
|
/** Whether the alpha slider is drawn under the hue one. @default false */
|
|
7
6
|
readonly alpha?: boolean;
|
|
@@ -69,6 +68,5 @@ type ColorPickerProps = {
|
|
|
69
68
|
* places.
|
|
70
69
|
*/
|
|
71
70
|
declare function ColorPicker({ alpha, children, defaultOpen, defaultValue, isDisabled, isOpen, label, onChange, onOpenChange, ref, style, testID, value }: ColorPickerProps): import("react").JSX.Element;
|
|
72
|
-
//#endregion
|
|
73
71
|
export { ColorPicker, type ColorPickerProps };
|
|
74
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -18,7 +18,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
import { parseColor } from "react-stately";
|
|
19
19
|
import { useColorPickerState } from "react-stately/useColorPickerState";
|
|
20
20
|
import { useOverlayTriggerState } from "react-stately/useOverlayTriggerState";
|
|
21
|
-
|
|
21
|
+
// src/components/color-picker/index.tsx
|
|
22
22
|
const SWATCH = 24;
|
|
23
23
|
const SURFACE_WIDTH = 280;
|
|
24
24
|
const CHANNELS = parseColor("hsl(0, 0%, 0%)");
|
|
@@ -311,7 +311,6 @@ function pickedOf(state) {
|
|
|
311
311
|
value: state.color
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
//#endregion
|
|
315
314
|
export { ColorPicker };
|
|
316
315
|
|
|
317
316
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
3
|
import { Color, ColorChannel, ColorSpace } from "react-stately";
|
|
4
|
-
//#region src/components/color-slider/index.d.ts
|
|
5
4
|
type ColorSliderProps = {
|
|
6
5
|
/**
|
|
7
6
|
* The slider's name for a screen reader, when no `label` is drawn. Left
|
|
@@ -77,6 +76,5 @@ type ColorSliderProps = {
|
|
|
77
76
|
* `value`, and reports a change to the picker before its own `onChange`.
|
|
78
77
|
*/
|
|
79
78
|
declare function ColorSlider({ 'aria-label': ariaLabel, channel, colorSpace, defaultValue, isDisabled, label, onChange, onChangeEnd, orientation, ref, showValue, style, testID, value }: ColorSliderProps): import("react").JSX.Element;
|
|
80
|
-
//#endregion
|
|
81
79
|
export { ColorSlider, type ColorSliderProps };
|
|
82
80
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -14,7 +14,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
14
14
|
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
|
|
15
15
|
import { GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
16
16
|
import { useColorSliderState } from "react-stately/useColorSliderState";
|
|
17
|
-
|
|
17
|
+
// src/components/color-slider/index.tsx
|
|
18
18
|
const STRIP = 16;
|
|
19
19
|
const TARGET = 44;
|
|
20
20
|
const MARGIN = 14;
|
|
@@ -450,7 +450,6 @@ function valueTextOf(state, channel, locale) {
|
|
|
450
450
|
if (channel === "alpha") return words;
|
|
451
451
|
return `${words}, ${display.getColorName(locale)}`;
|
|
452
452
|
}
|
|
453
|
-
//#endregion
|
|
454
453
|
export { ColorSlider };
|
|
455
454
|
|
|
456
455
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
3
|
import { Color } from "react-stately";
|
|
4
|
-
//#region src/components/color-swatch/index.d.ts
|
|
5
4
|
type ColorSwatchProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
6
5
|
/**
|
|
7
6
|
* The colour to show: a CSS colour string, or a `Color` from `parseColor`,
|
|
@@ -41,6 +40,5 @@ type ColorSwatchProps = Omit<ViewProps, 'children' | 'style'> & {
|
|
|
41
40
|
* `color` and sits in no `ColorSwatchPicker` item.
|
|
42
41
|
*/
|
|
43
42
|
declare function ColorSwatch({ 'aria-label': label, color, colorName, style, ...props }: ColorSwatchProps): import("react").JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
43
|
export { ColorSwatch, type ColorSwatchProps };
|
|
46
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,7 +7,7 @@ import { c } from "react/compiler-runtime";
|
|
|
7
7
|
import { StyleSheet, View } from "react-native";
|
|
8
8
|
import { use } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
|
|
10
|
+
// src/components/color-swatch/index.tsx
|
|
11
11
|
const SIZE = 40;
|
|
12
12
|
const stylesOf = themedStyles(({ colors, radii }) => StyleSheet.create({
|
|
13
13
|
ground: {
|
|
@@ -121,7 +121,6 @@ function ColorSwatch(t0) {
|
|
|
121
121
|
} else t9 = $[18];
|
|
122
122
|
return t9;
|
|
123
123
|
}
|
|
124
|
-
//#endregion
|
|
125
124
|
export { ColorSwatch };
|
|
126
125
|
|
|
127
126
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PressableProps, StyleProp, View, ViewProps, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
3
3
|
import { Color } from "react-stately";
|
|
4
|
-
//#region src/components/color-swatch-picker/index.d.ts
|
|
5
4
|
type ColorSwatchPickerItemProps = Omit<PressableProps, 'children' | 'disabled' | 'style'> & {
|
|
6
5
|
/**
|
|
7
6
|
* What the item draws. A `ColorSwatch` by default, which draws the item's
|
|
@@ -76,6 +75,5 @@ declare namespace ColorSwatchPicker {
|
|
|
76
75
|
* `style`, `ref` and `testID` land on the pressable item around the swatch.
|
|
77
76
|
*/
|
|
78
77
|
declare function ColorSwatchPickerItem({ 'aria-label': ariaLabel, children, color: own, isDisabled, onPress, style, ...props }: ColorSwatchPickerItemProps): import("react").JSX.Element;
|
|
79
|
-
//#endregion
|
|
80
78
|
export { ColorSwatchPicker, ColorSwatchPickerItem, type ColorSwatchPickerItemProps, type ColorSwatchPickerLayout, type ColorSwatchPickerProps };
|
|
81
79
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,7 +9,7 @@ import { Pressable, StyleSheet, View } from "react-native";
|
|
|
9
9
|
import { createContext, use } from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useColorPickerState } from "react-stately/useColorPickerState";
|
|
12
|
-
|
|
12
|
+
// src/components/color-swatch-picker/index.tsx
|
|
13
13
|
const SWATCH = 40;
|
|
14
14
|
const RING = 2;
|
|
15
15
|
const FOCUS_OFFSET = 6;
|
|
@@ -281,7 +281,6 @@ function ringOf(styled, { hovered, isSelected, pressed }) {
|
|
|
281
281
|
return hovered ? styled.hovered : void 0;
|
|
282
282
|
}
|
|
283
283
|
ColorSwatchPicker.Item = ColorSwatchPickerItem;
|
|
284
|
-
//#endregion
|
|
285
284
|
export { ColorSwatchPicker, ColorSwatchPickerItem };
|
|
286
285
|
|
|
287
286
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
3
|
import { Color } from "react-stately";
|
|
4
|
-
//#region src/components/color-wheel/index.d.ts
|
|
5
4
|
type ColorWheelProps = {
|
|
6
5
|
/** What a screen reader calls the wheel, in place of "Hue". */
|
|
7
6
|
readonly 'aria-label'?: string;
|
|
@@ -66,6 +65,5 @@ type ColorWheelProps = {
|
|
|
66
65
|
* `value`, and reports a change to the picker before its own `onChange`.
|
|
67
66
|
*/
|
|
68
67
|
declare function ColorWheel({ 'aria-label': ariaLabel, defaultValue, isDisabled, onChange, onChangeEnd, outerRadius, ref, style, testID, thickness, value }: ColorWheelProps): import("react").JSX.Element;
|
|
69
|
-
//#endregion
|
|
70
68
|
export { ColorWheel, type ColorWheelProps };
|
|
71
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import Svg, { Path } from "react-native-svg";
|
|
13
13
|
import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
14
14
|
import { useColorWheelState } from "react-stately/useColorWheelState";
|
|
15
|
-
|
|
15
|
+
// src/components/color-wheel/index.tsx
|
|
16
16
|
const DEFAULT_OUTER_RADIUS = 100;
|
|
17
17
|
const DEFAULT_THICKNESS = 16;
|
|
18
18
|
const SLOP = 10;
|
|
@@ -401,7 +401,6 @@ function useWheelGesture(t0) {
|
|
|
401
401
|
const tap = Gesture.Tap().maxDistance(SLOP).enabled(!isDisabled).runOnJS(true).onEnd(t7);
|
|
402
402
|
return Gesture.Race(testID === void 0 ? pan : pan.withTestId(`${testID}-pan`), testID === void 0 ? tap : tap.withTestId(`${testID}-tap`));
|
|
403
403
|
}
|
|
404
|
-
//#endregion
|
|
405
404
|
export { ColorWheel };
|
|
406
405
|
|
|
407
406
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,7 +5,6 @@ import { ComponentRef, ReactElement, ReactNode, Ref } from "react";
|
|
|
5
5
|
import { Key } from "react-stately";
|
|
6
6
|
import { ComboBoxValidationValue, MenuTriggerAction } from "react-stately/useComboBoxState";
|
|
7
7
|
import { ChangeValueType, ValueType } from "react-stately/useSelectState";
|
|
8
|
-
//#region src/components/combo-box/index.d.ts
|
|
9
8
|
type ComboBoxProps<T extends object = object, M extends ComboBoxSelectionMode = 'single'> = {
|
|
10
9
|
/**
|
|
11
10
|
* Lets the field keep text that matches no option. With it on, the text is
|
|
@@ -188,6 +187,5 @@ type ComboBoxSelectionMode = 'multiple' | 'single';
|
|
|
188
187
|
* as a whole, and `inputRef` and `testID` its `TextInput`.
|
|
189
188
|
*/
|
|
190
189
|
declare function ComboBox<T extends object = object, M extends ComboBoxSelectionMode = 'single'>({ allowsCustomValue, allowsEmptyCollection, defaultFilter, defaultInputValue, defaultItems, defaultValue, description, disabledKeys, error, floatingLabel, formValue, inputRef, inputValue, isDisabled, isReadOnly, isRequired, items, label, leadingIcon, menuTrigger, name, onChange, onInputChange, onOpenChange, options, ref, selectionMode, style, testID, validate, value, variant }: ComboBoxProps<T, M>): import("react").JSX.Element;
|
|
191
|
-
//#endregion
|
|
192
190
|
export { ComboBox, type ComboBoxProps, type ComboBoxSelectionMode };
|
|
193
191
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -17,7 +17,7 @@ import Animated from "react-native-reanimated";
|
|
|
17
17
|
import { useId, useImperativeHandle, useRef, useState } from "react";
|
|
18
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useComboBoxState } from "react-stately/useComboBoxState";
|
|
20
|
-
|
|
20
|
+
// src/components/combo-box/index.tsx
|
|
21
21
|
const TOGGLE_SIZE = 24;
|
|
22
22
|
const TOGGLE_SLOP = hitSlop(TOGGLE_SIZE, TOGGLE_SIZE);
|
|
23
23
|
const SHRINKS = { flexGrow: 0 };
|
|
@@ -610,7 +610,6 @@ function validationValueOf(state) {
|
|
|
610
610
|
value: copyOf(state.value)
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
//#endregion
|
|
614
613
|
export { ComboBox };
|
|
615
614
|
|
|
616
615
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { View, ViewProps } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
|
-
//#region src/components/container/index.d.ts
|
|
4
3
|
type ContainerPadding = 'default' | 'none';
|
|
5
4
|
type ContainerProps = ViewProps & {
|
|
6
5
|
/**
|
|
@@ -42,6 +41,5 @@ type ContainerProps = ViewProps & {
|
|
|
42
41
|
* over the container's own.
|
|
43
42
|
*/
|
|
44
43
|
declare function Container({ maxInlineSize, padding, style, ...props }: ContainerProps): import("react").JSX.Element;
|
|
45
|
-
//#endregion
|
|
46
44
|
export { Container, type ContainerPadding, type ContainerProps };
|
|
47
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { useWindowSizeClass } from "../../hooks/useWindowSizeClass.js";
|
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { StyleSheet, View } from "react-native";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/components/container/index.tsx
|
|
8
8
|
const DEFAULT_MAX_INLINE_SIZE = 960;
|
|
9
9
|
const styles = StyleSheet.create({ root: {
|
|
10
10
|
alignSelf: "center",
|
|
@@ -79,7 +79,6 @@ function Container(t0) {
|
|
|
79
79
|
function measureOf(maxWidth) {
|
|
80
80
|
return { maxWidth };
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { Container };
|
|
84
83
|
|
|
85
84
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { View, ViewProps } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
|
-
//#region src/components/copy-field/index.d.ts
|
|
4
3
|
type CopyFieldProps = Omit<ViewProps, 'children'> & {
|
|
5
4
|
/**
|
|
6
5
|
* What the button says once the value has been copied, and what is
|
|
@@ -55,6 +54,5 @@ type CopyFieldProps = Omit<ViewProps, 'children'> & {
|
|
|
55
54
|
* `style`, `ref` and `testID` land on the box.
|
|
56
55
|
*/
|
|
57
56
|
declare function CopyField({ copiedLabel: ownCopiedLabel, copyLabel: ownCopyLabel, label, onCopied, onCopyFailed, style, value, ...props }: CopyFieldProps): import("react").JSX.Element;
|
|
58
|
-
//#endregion
|
|
59
57
|
export { CopyField, type CopyFieldProps };
|
|
60
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,7 +9,7 @@ import { c } from "react/compiler-runtime";
|
|
|
9
9
|
import { AccessibilityInfo, Platform, StyleSheet, Text, View } from "react-native";
|
|
10
10
|
import { useEffect, useRef, useState } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
// src/components/copy-field/index.tsx
|
|
13
13
|
const COPIED_RESET_MS = 2e3;
|
|
14
14
|
const RESERVE = {
|
|
15
15
|
accessibilityElementsHidden: true,
|
|
@@ -273,7 +273,6 @@ function useCopy(t0) {
|
|
|
273
273
|
} else t6 = $[12];
|
|
274
274
|
return t6;
|
|
275
275
|
}
|
|
276
|
-
//#endregion
|
|
277
276
|
export { CopyField };
|
|
278
277
|
|
|
279
278
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Text, TextProps } from "react-native";
|
|
2
2
|
import { ComponentRef, Ref } from "react";
|
|
3
|
-
//#region src/components/currency/index.d.ts
|
|
4
3
|
type CurrencyProps = Omit<TextProps, 'children'> & {
|
|
5
4
|
/**
|
|
6
5
|
* ISO 4217 code for the currency to format in.
|
|
@@ -64,6 +63,5 @@ type CurrencyTone = 'auto' | 'negative' | 'neutral' | 'positive';
|
|
|
64
63
|
* Native's own Text.
|
|
65
64
|
*/
|
|
66
65
|
declare function Currency({ currency, locale, sign, style, tone, value, ...props }: CurrencyProps): import("react").JSX.Element;
|
|
67
|
-
//#endregion
|
|
68
66
|
export { Currency, type CurrencyProps, type CurrencySignDisplay, type CurrencyTone };
|
|
69
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,7 +6,7 @@ import { useLocaleOf } from "../../i18n/provider.js";
|
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { StyleSheet, Text } from "react-native";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/components/currency/index.tsx
|
|
10
10
|
const stylesOf = themedStyles(({ colors, typography }) => StyleSheet.create({
|
|
11
11
|
base: {
|
|
12
12
|
fontVariant: ["tabular-nums"],
|
|
@@ -158,7 +158,6 @@ function signFor(value, sign, shownAsZero) {
|
|
|
158
158
|
if (value < 0) return MINUS_SIGN;
|
|
159
159
|
if (value > 0 && sign === "always") return PLUS_SIGN;
|
|
160
160
|
}
|
|
161
|
-
//#endregion
|
|
162
161
|
export { Currency };
|
|
163
162
|
|
|
164
163
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,6 @@ import { FieldVariant } from "../../field/index.js";
|
|
|
2
2
|
import { StyleProp, View, ViewStyle } from "react-native";
|
|
3
3
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
4
4
|
import { DateFieldStateOptions, DateValue } from "react-stately/useDateFieldState";
|
|
5
|
-
//#region src/components/date-field/index.d.ts
|
|
6
5
|
type DateFieldProps<T extends DateValue = DateValue> = Pick<DateFieldStateOptions<T>, 'defaultValue' | 'granularity' | 'hideTimeZone' | 'hourCycle' | 'isDateUnavailable' | 'maxValue' | 'minValue' | 'onChange' | 'placeholderValue' | 'shouldForceLeadingZeros' | 'validate' | 'value'> & {
|
|
7
6
|
/**
|
|
8
7
|
* A hint shown under the field. Replaced by `error` when there is one, so
|
|
@@ -115,6 +114,5 @@ type DateFieldProps<T extends DateValue = DateValue> = Pick<DateFieldStateOption
|
|
|
115
114
|
* whole.
|
|
116
115
|
*/
|
|
117
116
|
declare function DateField<T extends DateValue = DateValue>({ isDisabled, isReadOnly, isRequired, locale, ...props }: DateFieldProps<T>): import("react").JSX.Element;
|
|
118
|
-
//#endregion
|
|
119
117
|
export { DateField, type DateFieldProps };
|
|
120
118
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { c } from "react/compiler-runtime";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { createCalendar } from "@internationalized/date";
|
|
6
6
|
import { useDateFieldState } from "react-stately/useDateFieldState";
|
|
7
|
-
|
|
7
|
+
// src/components/date-field/index.tsx
|
|
8
8
|
/**
|
|
9
9
|
* A date typed rather than picked: one segment per part, typed into a digit
|
|
10
10
|
* at a time. The value is an `@internationalized/date` value, as on web:
|
|
@@ -105,7 +105,6 @@ function DateField(t0) {
|
|
|
105
105
|
} else t7 = $[22];
|
|
106
106
|
return t7;
|
|
107
107
|
}
|
|
108
|
-
//#endregion
|
|
109
108
|
export { DateField };
|
|
110
109
|
|
|
111
110
|
//# sourceMappingURL=index.js.map
|
|
@@ -3,7 +3,6 @@ import { StyleProp, View, ViewStyle } from "react-native";
|
|
|
3
3
|
import { ComponentRef, ReactNode, Ref } from "react";
|
|
4
4
|
import { DateDuration } from "@internationalized/date";
|
|
5
5
|
import { DatePickerStateOptions, DateValue } from "react-stately/useDatePickerState";
|
|
6
|
-
//#region src/components/date-picker/index.d.ts
|
|
7
6
|
type DatePickerProps<T extends DateValue = DateValue> = Pick<DatePickerStateOptions<T>, 'defaultOpen' | 'defaultValue' | 'firstDayOfWeek' | 'granularity' | 'hideTimeZone' | 'hourCycle' | 'isDateUnavailable' | 'isOpen' | 'maxValue' | 'minValue' | 'onChange' | 'onOpenChange' | 'placeholderValue' | 'shouldCloseOnSelect' | 'shouldForceLeadingZeros' | 'validate' | 'value'> & {
|
|
8
7
|
/**
|
|
9
8
|
* A hint shown under the field. Replaced by `error` when there is one, so
|
|
@@ -125,6 +124,5 @@ type DatePickerProps<T extends DateValue = DateValue> = Pick<DatePickerStateOpti
|
|
|
125
124
|
* `style`, `ref` and `testID` land on the picker as a whole.
|
|
126
125
|
*/
|
|
127
126
|
declare function DatePicker<T extends DateValue = DateValue>({ defaultOpen, defaultValue, firstDayOfWeek, isDateUnavailable, isDisabled, isOpen, isReadOnly, isRequired, label, locale, maxValue, minValue, onChange, onOpenChange, placeholderValue, shouldCloseOnSelect, showMonthYearMenus, triggerLabel, validate, value, visibleDuration, ...props }: DatePickerProps<T>): import("react").JSX.Element;
|
|
128
|
-
//#endregion
|
|
129
127
|
export { DatePicker, type DatePickerProps };
|
|
130
128
|
//# sourceMappingURL=index.d.ts.map
|