@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
package/dist/field/chevron.js
CHANGED
|
@@ -4,7 +4,7 @@ import { c } from "react/compiler-runtime";
|
|
|
4
4
|
import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, withTiming } from "react-native-reanimated";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/field/chevron.tsx
|
|
8
8
|
const OPEN_TURN = -180;
|
|
9
9
|
/**
|
|
10
10
|
* The chevron in the trailing slot of a field that opens a list, pointing
|
|
@@ -68,7 +68,6 @@ function FieldChevron(t0) {
|
|
|
68
68
|
} else t4 = $[8];
|
|
69
69
|
return t4;
|
|
70
70
|
}
|
|
71
|
-
//#endregion
|
|
72
71
|
export { FieldChevron };
|
|
73
72
|
|
|
74
73
|
//# sourceMappingURL=chevron.js.map
|
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
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { useIconStyle } from "./icon-style.js";
|
|
2
|
+
import { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, calendarPath, checkPath, chevronDownPath, chevronEndPath, clockPath, closePath, keyboardPath, minusPath, personPath, plusPath, searchPath } from "../kanso-ui-core/glyphs.js";
|
|
2
3
|
import { HIDDEN } from "./hidden.js";
|
|
3
4
|
import { glyphStyles } from "./styles.js";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { I18nManager, StyleSheet } from "react-native";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
import Svg, { Path } from "react-native-svg";
|
|
8
|
-
|
|
9
|
+
// src/glyphs/index.tsx
|
|
9
10
|
function ArrowBackGlyph(props) {
|
|
10
11
|
const $ = c(3);
|
|
11
12
|
let t0;
|
|
12
13
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
13
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
14
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: arrowBackPath });
|
|
14
15
|
$[0] = t0;
|
|
15
16
|
} else t0 = $[0];
|
|
16
17
|
let t1;
|
|
@@ -29,7 +30,7 @@ function ArrowDownwardGlyph(props) {
|
|
|
29
30
|
const $ = c(3);
|
|
30
31
|
let t0;
|
|
31
32
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
32
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
33
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: arrowDownwardPath });
|
|
33
34
|
$[0] = t0;
|
|
34
35
|
} else t0 = $[0];
|
|
35
36
|
let t1;
|
|
@@ -47,7 +48,7 @@ function ArrowDropDownGlyph(props) {
|
|
|
47
48
|
const $ = c(3);
|
|
48
49
|
let t0;
|
|
49
50
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
50
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
51
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: arrowDropDownPath });
|
|
51
52
|
$[0] = t0;
|
|
52
53
|
} else t0 = $[0];
|
|
53
54
|
let t1;
|
|
@@ -65,7 +66,7 @@ function ArrowUpwardGlyph(props) {
|
|
|
65
66
|
const $ = c(3);
|
|
66
67
|
let t0;
|
|
67
68
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
68
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
69
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: arrowUpwardPath });
|
|
69
70
|
$[0] = t0;
|
|
70
71
|
} else t0 = $[0];
|
|
71
72
|
let t1;
|
|
@@ -83,7 +84,7 @@ function CalendarGlyph(props) {
|
|
|
83
84
|
const $ = c(3);
|
|
84
85
|
let t0;
|
|
85
86
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
86
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
87
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: calendarPath });
|
|
87
88
|
$[0] = t0;
|
|
88
89
|
} else t0 = $[0];
|
|
89
90
|
let t1;
|
|
@@ -101,7 +102,7 @@ function CheckGlyph(props) {
|
|
|
101
102
|
const $ = c(3);
|
|
102
103
|
let t0;
|
|
103
104
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
104
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
105
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: checkPath });
|
|
105
106
|
$[0] = t0;
|
|
106
107
|
} else t0 = $[0];
|
|
107
108
|
let t1;
|
|
@@ -119,7 +120,7 @@ function ChevronDownGlyph(props) {
|
|
|
119
120
|
const $ = c(3);
|
|
120
121
|
let t0;
|
|
121
122
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
122
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
123
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: chevronDownPath });
|
|
123
124
|
$[0] = t0;
|
|
124
125
|
} else t0 = $[0];
|
|
125
126
|
let t1;
|
|
@@ -137,7 +138,7 @@ function ChevronEndGlyph(props) {
|
|
|
137
138
|
const $ = c(3);
|
|
138
139
|
let t0;
|
|
139
140
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
140
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
141
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: chevronEndPath });
|
|
141
142
|
$[0] = t0;
|
|
142
143
|
} else t0 = $[0];
|
|
143
144
|
let t1;
|
|
@@ -156,7 +157,7 @@ function ClockGlyph(props) {
|
|
|
156
157
|
const $ = c(3);
|
|
157
158
|
let t0;
|
|
158
159
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
159
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
160
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: clockPath });
|
|
160
161
|
$[0] = t0;
|
|
161
162
|
} else t0 = $[0];
|
|
162
163
|
let t1;
|
|
@@ -174,7 +175,7 @@ function CloseGlyph(props) {
|
|
|
174
175
|
const $ = c(3);
|
|
175
176
|
let t0;
|
|
176
177
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
177
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
178
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: closePath });
|
|
178
179
|
$[0] = t0;
|
|
179
180
|
} else t0 = $[0];
|
|
180
181
|
let t1;
|
|
@@ -218,7 +219,7 @@ function Glyph(t0) {
|
|
|
218
219
|
height: side,
|
|
219
220
|
style: t3,
|
|
220
221
|
testID,
|
|
221
|
-
viewBox:
|
|
222
|
+
viewBox: `0 0 24 24`,
|
|
222
223
|
width: side,
|
|
223
224
|
children
|
|
224
225
|
});
|
|
@@ -235,7 +236,7 @@ function KeyboardGlyph(props) {
|
|
|
235
236
|
const $ = c(3);
|
|
236
237
|
let t0;
|
|
237
238
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
238
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
239
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: keyboardPath });
|
|
239
240
|
$[0] = t0;
|
|
240
241
|
} else t0 = $[0];
|
|
241
242
|
let t1;
|
|
@@ -253,7 +254,7 @@ function MinusGlyph(props) {
|
|
|
253
254
|
const $ = c(3);
|
|
254
255
|
let t0;
|
|
255
256
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
256
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
257
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: minusPath });
|
|
257
258
|
$[0] = t0;
|
|
258
259
|
} else t0 = $[0];
|
|
259
260
|
let t1;
|
|
@@ -272,7 +273,7 @@ function PersonGlyph(props) {
|
|
|
272
273
|
const $ = c(3);
|
|
273
274
|
let t0;
|
|
274
275
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
275
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
276
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: personPath });
|
|
276
277
|
$[0] = t0;
|
|
277
278
|
} else t0 = $[0];
|
|
278
279
|
let t1;
|
|
@@ -290,7 +291,7 @@ function PlusGlyph(props) {
|
|
|
290
291
|
const $ = c(3);
|
|
291
292
|
let t0;
|
|
292
293
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
293
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
294
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: plusPath });
|
|
294
295
|
$[0] = t0;
|
|
295
296
|
} else t0 = $[0];
|
|
296
297
|
let t1;
|
|
@@ -308,7 +309,7 @@ function SearchGlyph(props) {
|
|
|
308
309
|
const $ = c(3);
|
|
309
310
|
let t0;
|
|
310
311
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
311
|
-
t0 = /* @__PURE__ */ jsx(Path, { d:
|
|
312
|
+
t0 = /* @__PURE__ */ jsx(Path, { d: searchPath });
|
|
312
313
|
$[0] = t0;
|
|
313
314
|
} else t0 = $[0];
|
|
314
315
|
let t1;
|
|
@@ -322,7 +323,6 @@ function SearchGlyph(props) {
|
|
|
322
323
|
} else t1 = $[2];
|
|
323
324
|
return t1;
|
|
324
325
|
}
|
|
325
|
-
//#endregion
|
|
326
326
|
export { ArrowBackGlyph, ArrowDownwardGlyph, ArrowDropDownGlyph, ArrowUpwardGlyph, CalendarGlyph, CheckGlyph, ChevronDownGlyph, ChevronEndGlyph, ClockGlyph, CloseGlyph, IndeterminateGlyph, KeyboardGlyph, MinusGlyph, PersonGlyph, PlusGlyph, SearchGlyph };
|
|
327
327
|
|
|
328
328
|
//# sourceMappingURL=index.js.map
|
package/dist/glyphs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ReactNode","ColorValue","StyleProp","ViewStyle","I18nManager","StyleSheet","Svg","Path","HIDDEN","useIconStyle","glyphStyles","GlyphProps","color","size","style","testID","ArrowBackGlyph","props","$","_c","t0","Symbol","for","t1","ArrowDownwardGlyph","ArrowDropDownGlyph","ArrowUpwardGlyph","CalendarGlyph","CheckGlyph","ChevronDownGlyph","ChevronEndGlyph","ClockGlyph","CloseGlyph","Glyph","children","mirrored","undefined","slot","side","t2","t3","compose","isRTL","t4","KeyboardGlyph","MinusGlyph","IndeterminateGlyph","PersonGlyph","PlusGlyph","SearchGlyph","_c"],"sources":["../../src/glyphs/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ColorValue, StyleProp, ViewStyle } from 'react-native'\n\nimport { I18nManager, StyleSheet } from 'react-native'\nimport Svg, { Path } from 'react-native-svg'\n\nimport { HIDDEN } from './hidden'\nimport { useIconStyle } from './icon-style'\nimport { glyphStyles } from './styles'\n\n// The glyphs the library's own controls draw, the same set kanso-ui draws on\n// web: the check and the dash a checkbox shows, the plus and minus a number\n// field's steppers show, the magnifier and cross a search field shows, and the\n// rest named beside each one. Private to the library, as on web: a call site\n// with icons of its own passes them to the slots that take a node, and reads\n// the slot's colour and size through `useIconStyle()`.\n//\n// The paths are kanso-ui's, unchanged: Material Symbols on their 24-unit grid,\n// which is what the checkbox page draws at 18dp, the icon buttons page at 20\n// and the search, menus, date picker and time picker pages at 24.\n\ntype GlyphProps = {\n /** The fill. Defaults to the colour of the slot the glyph sits in. */\n readonly color?: ColorValue\n /** The square's side in dp. Defaults to the size of the slot. */\n readonly size?: number\n readonly style?: StyleProp<ViewStyle>\n readonly testID?: string\n}\n\n// What a search view's back button draws, pointing at the page it returns to.\n// It says \"back\" rather than \"to the left\", so it mirrors under a right-to-left\n// layout.\nfunction ArrowBackGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z\" />\n </Glyph>\n )\n}\n\n// Which way a sorted column is ordered. Up is ascending and down is\n// descending. Neither mirrors under a right-to-left layout: they say \"up\" and\n// \"down\" rather than \"onward\", and those do not flip.\nfunction ArrowDownwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\" />\n </Glyph>\n )\n}\n\n// What a menu button draws after its label, pointing at the list it opens.\n// Down is down in either writing direction, so it does not mirror.\nfunction ArrowDropDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M7 10l5 5 5-5z\" />\n </Glyph>\n )\n}\n\nfunction ArrowUpwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\" />\n </Glyph>\n )\n}\n\n// What the date picker's trigger draws: the calendar a date is picked from.\nfunction CalendarGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z\" />\n </Glyph>\n )\n}\n\nfunction CheckGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </Glyph>\n )\n}\n\n// Points down at the menu a split button's second half opens, and at the\n// list a select opens.\nfunction ChevronDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\" />\n </Glyph>\n )\n}\n\n// Points at the submenu a menu item opens. It says \"further in\" rather than\n// \"to the right\", so it mirrors under a right-to-left layout.\nfunction ChevronEndGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d=\"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\" />\n </Glyph>\n )\n}\n\n// What the time picker's trigger draws, and the button that takes its keyboard\n// entry back to the dial: the clock a time is picked from.\nfunction ClockGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z\" />\n </Glyph>\n )\n}\n\nfunction CloseGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" />\n </Glyph>\n )\n}\n\n/**\n * The svg every glyph draws: the 24-unit grid its path is on, a square of the\n * slot's size filled in the slot's colour, and nothing a screen reader\n * announces, since the control around a glyph carries the name. A glyph whose\n * direction means \"onward\" or \"back\" passes `mirrored`, which turns it over\n * under a right-to-left layout as `:dir(rtl)` does on web.\n */\nfunction Glyph({\n children,\n color,\n mirrored = false,\n size,\n style,\n testID,\n}: GlyphProps & { readonly children: ReactNode; readonly mirrored?: boolean }) {\n const slot = useIconStyle()\n const side = size ?? slot.size\n return (\n <Svg\n {...HIDDEN}\n color={color ?? slot.color}\n fill=\"currentColor\"\n height={side}\n style={StyleSheet.compose(\n mirrored && I18nManager.isRTL ? glyphStyles.mirrored : undefined,\n style,\n )}\n testID={testID}\n viewBox=\"0 0 24 24\"\n width={side}\n >\n {children}\n </Svg>\n )\n}\n\n// What the time picker's dial draws on the button that switches it to typed\n// entry.\nfunction KeyboardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H4V7h16v10zm-9-9h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-3 0h2v2H5zm0-3h2v2H5zm3 6h8v2H8zm6-3h2v2h-2zm0-3h2v2h-2zm3 3h2v2h-2zm0-3h2v2h-2z\" />\n </Glyph>\n )\n}\n\n// The same rule stands for a partly selected checkbox and for a stepper's\n// decrement; the two names say which is meant at the call site.\nfunction MinusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13H5v-2h14v2z\" />\n </Glyph>\n )\n}\n\nconst IndeterminateGlyph = MinusGlyph\n\n// What an avatar with no name to take initials from draws: Material Design's\n// anonymous person, a head over shoulders.\nfunction PersonGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z\" />\n </Glyph>\n )\n}\n\nfunction PlusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z\" />\n </Glyph>\n )\n}\n\nfunction SearchGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d=\"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\" />\n </Glyph>\n )\n}\n\nexport {\n ArrowBackGlyph,\n ArrowDownwardGlyph,\n ArrowDropDownGlyph,\n ArrowUpwardGlyph,\n CalendarGlyph,\n CheckGlyph,\n ChevronDownGlyph,\n ChevronEndGlyph,\n ClockGlyph,\n CloseGlyph,\n IndeterminateGlyph,\n KeyboardGlyph,\n MinusGlyph,\n PersonGlyph,\n PlusGlyph,\n SearchGlyph,\n}\nexport type { GlyphProps }\n"],"mappings":";;;;;;;;AAiCA,SAAAgB,eAAAC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA;EAGMF,KAAA,oBAAC,MAAD,EAAQ,GAAA,+DAA8D,CAAA;EAAGF,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EAD3EM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GAAO,UAAA;GAChBG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;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AAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ;AAIZ,SAAAyB,UAAA/B,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA;EAGMF,KAAA,oBAAC,MAAD,EAAQ,GAAA,sCAAqC,CAAA;EAAGF,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EADlDM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ;AAIZ,SAAA0B,YAAAhC,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAG,OAAAC,IAAA,2BAAA,GAAA;EAGMF,KAAA,oBAAC,MAAD,EAAQ,GAAA,6MAA4M,CAAA;EAAGF,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAD,OAAA;EADzNM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ReactNode","ColorValue","StyleProp","ViewStyle","arrowBackPath","arrowDownwardPath","arrowDropDownPath","arrowUpwardPath","calendarPath","checkPath","chevronDownPath","chevronEndPath","clockPath","closePath","gridSize","keyboardPath","minusPath","personPath","plusPath","searchPath","I18nManager","StyleSheet","Svg","Path","HIDDEN","useIconStyle","glyphStyles","GlyphProps","color","size","style","testID","ArrowBackGlyph","props","$","_c","t0","Symbol","for","t1","ArrowDownwardGlyph","ArrowDropDownGlyph","ArrowUpwardGlyph","CalendarGlyph","CheckGlyph","ChevronDownGlyph","ChevronEndGlyph","ClockGlyph","CloseGlyph","Glyph","children","mirrored","undefined","slot","side","t2","t3","compose","isRTL","t4","KeyboardGlyph","MinusGlyph","IndeterminateGlyph","PersonGlyph","PlusGlyph","SearchGlyph","_c"],"sources":["../../src/glyphs/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { ColorValue, StyleProp, ViewStyle } from 'react-native'\n\nimport {\n arrowBackPath,\n arrowDownwardPath,\n arrowDropDownPath,\n arrowUpwardPath,\n calendarPath,\n checkPath,\n chevronDownPath,\n chevronEndPath,\n clockPath,\n closePath,\n gridSize,\n keyboardPath,\n minusPath,\n personPath,\n plusPath,\n searchPath,\n} from '@kanso-labs/kanso-ui-core/glyphs'\nimport { I18nManager, StyleSheet } from 'react-native'\nimport Svg, { Path } from 'react-native-svg'\n\nimport { HIDDEN } from './hidden'\nimport { useIconStyle } from './icon-style'\nimport { glyphStyles } from './styles'\n\n// The glyphs the library's own controls draw, the same set kanso-ui draws on\n// web: the check and the dash a checkbox shows, the plus and minus a number\n// field's steppers show, the magnifier and cross a search field shows, and the\n// rest named beside each one. Private to the library, as on web: a call site\n// with icons of its own passes them to the slots that take a node, and reads\n// the slot's colour and size through `useIconStyle()`.\n//\n// The paths are @kanso-labs/kanso-ui-core's, the ones kanso-ui draws too:\n// Material Symbols on their 24-unit grid, which is what the checkbox page draws\n// at 18dp, the icon buttons page at 20 and the search, menus, date picker and\n// time picker pages at 24. The package is a devDependency, so the build writes\n// them into dist.\n\ntype GlyphProps = {\n /** The fill. Defaults to the colour of the slot the glyph sits in. */\n readonly color?: ColorValue\n /** The square's side in dp. Defaults to the size of the slot. */\n readonly size?: number\n readonly style?: StyleProp<ViewStyle>\n readonly testID?: string\n}\n\n// What a search view's back button draws, pointing at the page it returns to.\n// It says \"back\" rather than \"to the left\", so it mirrors under a right-to-left\n// layout.\nfunction ArrowBackGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d={arrowBackPath} />\n </Glyph>\n )\n}\n\n// Which way a sorted column is ordered. Up is ascending and down is\n// descending. Neither mirrors under a right-to-left layout: they say \"up\" and\n// \"down\" rather than \"onward\", and those do not flip.\nfunction ArrowDownwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={arrowDownwardPath} />\n </Glyph>\n )\n}\n\n// What a menu button draws after its label, pointing at the list it opens.\n// Down is down in either writing direction, so it does not mirror.\nfunction ArrowDropDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={arrowDropDownPath} />\n </Glyph>\n )\n}\n\nfunction ArrowUpwardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={arrowUpwardPath} />\n </Glyph>\n )\n}\n\n// What the date picker's trigger draws: the calendar a date is picked from.\nfunction CalendarGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={calendarPath} />\n </Glyph>\n )\n}\n\nfunction CheckGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={checkPath} />\n </Glyph>\n )\n}\n\n// Points down at the menu a split button's second half opens, and at the\n// list a select opens.\nfunction ChevronDownGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={chevronDownPath} />\n </Glyph>\n )\n}\n\n// Points at the submenu a menu item opens. It says \"further in\" rather than\n// \"to the right\", so it mirrors under a right-to-left layout.\nfunction ChevronEndGlyph(props: GlyphProps) {\n return (\n <Glyph {...props} mirrored>\n <Path d={chevronEndPath} />\n </Glyph>\n )\n}\n\n// What the time picker's trigger draws, and the button that takes its keyboard\n// entry back to the dial: the clock a time is picked from.\nfunction ClockGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={clockPath} />\n </Glyph>\n )\n}\n\nfunction CloseGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={closePath} />\n </Glyph>\n )\n}\n\n/**\n * The svg every glyph draws: the 24-unit grid its path is on, a square of the\n * slot's size filled in the slot's colour, and nothing a screen reader\n * announces, since the control around a glyph carries the name. A glyph whose\n * direction means \"onward\" or \"back\" passes `mirrored`, which turns it over\n * under a right-to-left layout as `:dir(rtl)` does on web.\n */\nfunction Glyph({\n children,\n color,\n mirrored = false,\n size,\n style,\n testID,\n}: GlyphProps & { readonly children: ReactNode; readonly mirrored?: boolean }) {\n const slot = useIconStyle()\n const side = size ?? slot.size\n return (\n <Svg\n {...HIDDEN}\n color={color ?? slot.color}\n fill=\"currentColor\"\n height={side}\n style={StyleSheet.compose(\n mirrored && I18nManager.isRTL ? glyphStyles.mirrored : undefined,\n style,\n )}\n testID={testID}\n viewBox={`0 0 ${gridSize} ${gridSize}`}\n width={side}\n >\n {children}\n </Svg>\n )\n}\n\n// What the time picker's dial draws on the button that switches it to typed\n// entry.\nfunction KeyboardGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={keyboardPath} />\n </Glyph>\n )\n}\n\n// The same rule stands for a partly selected checkbox and for a stepper's\n// decrement; the two names say which is meant at the call site.\nfunction MinusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={minusPath} />\n </Glyph>\n )\n}\n\nconst IndeterminateGlyph = MinusGlyph\n\n// What an avatar with no name to take initials from draws: Material Design's\n// anonymous person, a head over shoulders.\nfunction PersonGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={personPath} />\n </Glyph>\n )\n}\n\nfunction PlusGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={plusPath} />\n </Glyph>\n )\n}\n\nfunction SearchGlyph(props: GlyphProps) {\n return (\n <Glyph {...props}>\n <Path d={searchPath} />\n </Glyph>\n )\n}\n\nexport {\n ArrowBackGlyph,\n ArrowDownwardGlyph,\n ArrowDropDownGlyph,\n ArrowUpwardGlyph,\n CalendarGlyph,\n CheckGlyph,\n ChevronDownGlyph,\n ChevronEndGlyph,\n ClockGlyph,\n CloseGlyph,\n IndeterminateGlyph,\n Ke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,IAAAL,EAAA,OAAAD,OAAA;EADzBM,KAAA,oBAAC,OAAD;GAAM,GAAKN;GACTG,UAAAA;EADI,CAAA;EAEEF,EAAA,KAAAD;EAAAC,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CAAA,OAFRK;AAEQ"}
|
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
|
-
import { breakpoints } from "../
|
|
2
|
-
//#region src/hooks/useWindowSizeClass.d.ts
|
|
1
|
+
import { n as breakpoints } from "../kanso-ui-core/defaults-DMH0HWCw.js";
|
|
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
|
-
import { breakpoints } from "../
|
|
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
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { DisclosureGroup, DisclosureGroupProps } from "./components/disclosure-g
|
|
|
35
35
|
import { PickedFile } from "./files/index.js";
|
|
36
36
|
import { DragTypes, DropEnterEvent, DropEvent, DropExitEvent, DropItem, DropOperation, FileDropItem, TextDropItem, isFileDropItem, isTextDropItem } from "./drop/index.js";
|
|
37
37
|
import { DropZone, DropZoneProps, FileTrigger, FileTriggerProps } from "./components/drop-zone/index.js";
|
|
38
|
-
import { KuiTheme } from "./
|
|
38
|
+
import { t as KuiTheme } from "./kanso-ui-core/defaults-DMH0HWCw.js";
|
|
39
39
|
import { ResolvedTheme, useTheme } from "./theme/scope.js";
|
|
40
40
|
import { TypeRole } from "./typography/roles.js";
|
|
41
41
|
import { FabSize, FabTone, FabVariant } from "./fab/index.js";
|
|
@@ -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 src/tokens/defaults.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
|
|
@@ -391,9 +390,10 @@ type KuiTheme = {
|
|
|
391
390
|
readonly '--kui-typography-weight-regular'?: string;
|
|
392
391
|
};
|
|
393
392
|
/**
|
|
394
|
-
* The lower bound of each window size class, in
|
|
395
|
-
*
|
|
396
|
-
*
|
|
393
|
+
* The lower bound of each window size class, in px on the web and dp on
|
|
394
|
+
* native, smallest first. A media query cannot read a custom property, so
|
|
395
|
+
* neither library offers these as one to override, and `tokens.css` leaves
|
|
396
|
+
* them out.
|
|
397
397
|
*/
|
|
398
398
|
declare const breakpoints: {
|
|
399
399
|
readonly compact: 0;
|
|
@@ -402,6 +402,5 @@ declare const breakpoints: {
|
|
|
402
402
|
readonly large: 1200;
|
|
403
403
|
readonly extraLarge: 1600;
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
//# sourceMappingURL=defaults.d.ts.map
|
|
405
|
+
export { breakpoints as n, KuiTheme as t };
|
|
406
|
+
//# sourceMappingURL=defaults-DMH0HWCw.d.ts.map
|