@kanso-labs/kanso-ui 0.45.5 → 0.45.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge/index.js +1 -2
- package/dist/button/context.js +1 -2
- package/dist/button/group.js +1 -2
- package/dist/button/hooks.js +1 -2
- package/dist/button/index.d.ts +0 -2
- package/dist/button/index.js +1 -2
- package/dist/button/styles.js +1 -2
- package/dist/button/toggle.js +1 -2
- package/dist/calendar/index.js +1 -2
- package/dist/calendar/months.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/chip/index.js +1 -2
- package/dist/chip/label.js +1 -2
- package/dist/chip/styles.js +1 -2
- package/dist/collection/empty.js +1 -2
- package/dist/collection/index.js +1 -2
- package/dist/collection/styles.js +1 -2
- package/dist/collection/text.js +1 -2
- package/dist/color-scheme.d.ts +0 -2
- package/dist/color-scheme.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/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/drop-zone/styles.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/index.js +1 -2
- package/dist/control/styles.js +1 -2
- package/dist/drag/hooks.d.ts +0 -2
- package/dist/drag/hooks.js +1 -2
- package/dist/drag/index.js +1 -2
- package/dist/drag/styles.js +1 -2
- package/dist/fab/styles.js +1 -2
- package/dist/field/index.d.ts +0 -2
- package/dist/field/index.js +1 -2
- package/dist/field/press.js +1 -2
- package/dist/field/root.js +1 -2
- package/dist/field/styles.js +1 -2
- package/dist/glyphs/index.js +1 -2
- package/dist/glyphs/styles.js +1 -2
- package/dist/hooks/useAppBarScroll.d.ts +0 -2
- package/dist/hooks/useAppBarScroll.js +0 -1
- package/dist/hooks/useBottomEdge.js +1 -2
- package/dist/hooks/useClippedTitle.js +1 -2
- package/dist/hooks/useImageLoadingStatus.js +1 -2
- package/dist/hooks/useRipple.js +1 -2
- package/dist/hooks/useScrollStop.js +1 -2
- package/dist/hooks/useToggleGroupDisabled.js +1 -2
- package/dist/i18n/index.js +1 -2
- package/dist/i18n/messages.js +1 -2
- package/dist/indicator/index.js +1 -2
- package/dist/indicator/styles.d.ts +0 -2
- package/dist/indicator/styles.js +0 -1
- package/dist/kanso-ui-core/defaults-DMH0HWCw.d.ts +0 -2
- package/dist/kanso-ui-core/glyphs.js +1 -2
- package/dist/keycap/context.js +1 -2
- package/dist/layout.d.ts +0 -2
- package/dist/layout.js +1 -2
- package/dist/mark/index.js +1 -2
- package/dist/mark/initials.js +1 -2
- package/dist/mark/styles.js +1 -2
- package/dist/navigation/context.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/node_modules/@stylexjs/stylex/lib/es/stylex.js +1 -2
- package/dist/overlay/index.js +1 -2
- package/dist/render/aria.js +1 -2
- package/dist/render/content.js +1 -2
- package/dist/render/name.d.ts +0 -2
- package/dist/render/ref.js +1 -2
- package/dist/render/useRender.d.ts +0 -2
- package/dist/render/useRender.js +1 -2
- package/dist/row/index.js +1 -2
- package/dist/row/styles.js +1 -2
- package/dist/segments/index.js +1 -2
- package/dist/segments/styles.js +1 -2
- package/dist/styles/chequer.js +1 -2
- package/dist/styles/color.js +1 -2
- package/dist/styles/focus.js +1 -2
- package/dist/styles/icon-button.js +1 -2
- package/dist/styles/merge.js +1 -2
- package/dist/styles/overlay.d.ts +0 -2
- package/dist/styles/overlay.js +1 -2
- package/dist/styles/picker.js +1 -2
- package/dist/styles/ripple.js +1 -2
- package/dist/styles/scheme.js +1 -2
- package/dist/theme-scope.d.ts +0 -2
- package/dist/theme-scope.js +1 -2
- package/dist/tokens/design.tokens.stylex.js +1 -2
- package/dist/tokens/values.js +1 -2
- package/package.json +16 -16
package/dist/field/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors, spacing, stateLayerOpacity, typography } from "../tokens/design.tokens.stylex.js";
|
|
2
|
-
|
|
2
|
+
// src/field/styles.ts
|
|
3
3
|
`${colors.onSurface}${stateLayerOpacity.disabledContent}${colors.surface}`;
|
|
4
4
|
`${colors.onSurface}${stateLayerOpacity.hover}${colors.surfaceContainerHighest}`;
|
|
5
5
|
`${spacing.sm}${typography.bodySmallLineHeight}${typography.bodyLargeLineHeight}`;
|
|
@@ -528,7 +528,6 @@ const groupStyles = {
|
|
|
528
528
|
$$css: true
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
|
-
//#endregion
|
|
532
531
|
export { fieldChromeStyles, groupStyles };
|
|
533
532
|
|
|
534
533
|
//# sourceMappingURL=styles.js.map
|
package/dist/glyphs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, c
|
|
|
4
4
|
import { glyphStyles } from "./styles.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/glyphs/index.tsx
|
|
8
8
|
function ArrowBackGlyph(props) {
|
|
9
9
|
const $ = c(3);
|
|
10
10
|
let t0;
|
|
@@ -368,7 +368,6 @@ function SearchGlyph(props) {
|
|
|
368
368
|
} else t1 = $[2];
|
|
369
369
|
return t1;
|
|
370
370
|
}
|
|
371
|
-
//#endregion
|
|
372
371
|
export { ArrowBackGlyph, ArrowDownwardGlyph, ArrowDropDownGlyph, ArrowUpwardGlyph, CalendarGlyph, CheckCircleGlyph, CheckGlyph, ChevronDownGlyph, ChevronEndGlyph, ClockGlyph, CloseGlyph, ErrorGlyph, IndeterminateGlyph, KeyboardGlyph, MinusGlyph, PersonGlyph, PlusGlyph, SearchGlyph };
|
|
373
372
|
|
|
374
373
|
//# sourceMappingURL=index.js.map
|
package/dist/glyphs/styles.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RefObject, UIEvent } from "react";
|
|
2
|
-
//#region src/hooks/useAppBarScroll.d.ts
|
|
3
2
|
type AppBarScroll = {
|
|
4
3
|
/** For the bar's `collapsed`. */
|
|
5
4
|
collapsed: boolean;
|
|
@@ -47,6 +46,5 @@ type AppBarScrollOptions = {
|
|
|
47
46
|
* give it `overflow-anchor: none`, as the `collapsed` prop explains.
|
|
48
47
|
*/
|
|
49
48
|
declare function useAppBarScroll({ collapseAfter }?: AppBarScrollOptions): AppBarScroll;
|
|
50
|
-
//#endregion
|
|
51
49
|
export { type AppBarScroll, type AppBarScrollOptions, useAppBarScroll };
|
|
52
50
|
//# sourceMappingURL=useAppBarScroll.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { useLayoutEffect, useSyncExternalStore } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useBottomEdge.ts
|
|
4
4
|
const holders = /* @__PURE__ */ new Map();
|
|
5
5
|
const listeners = /* @__PURE__ */ new Set();
|
|
6
6
|
let clearance = 0;
|
|
@@ -80,7 +80,6 @@ function useHoldBottomEdge(ref, isHolding) {
|
|
|
80
80
|
}
|
|
81
81
|
useLayoutEffect(t0, t1);
|
|
82
82
|
}
|
|
83
|
-
//#endregion
|
|
84
83
|
export { useBottomEdgeClearance, useHoldBottomEdge };
|
|
85
84
|
|
|
86
85
|
//# sourceMappingURL=useBottomEdge.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { textOf } from "../collection/text.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
|
|
4
|
+
// src/hooks/useClippedTitle.ts
|
|
5
5
|
/**
|
|
6
6
|
* The `title` and `onPointerEnter` for a label span that clips to one line,
|
|
7
7
|
* through `overflow: hidden` or `clip`: spread both on that span.
|
|
@@ -38,7 +38,6 @@ function useClippedTitle(label) {
|
|
|
38
38
|
} else t2 = $[6];
|
|
39
39
|
return t2;
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
41
|
export { useClippedTitle };
|
|
43
42
|
|
|
44
43
|
//# sourceMappingURL=useClippedTitle.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useImageLoadingStatus.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the picture at `src` can be shown yet, from what the component's
|
|
6
6
|
* own `<img>` reports. The image is rendered from the start and hidden until
|
|
@@ -65,7 +65,6 @@ function useImageLoadingStatus(src) {
|
|
|
65
65
|
} else t3 = $[4];
|
|
66
66
|
return t3;
|
|
67
67
|
}
|
|
68
|
-
//#endregion
|
|
69
68
|
export { useImageLoadingStatus };
|
|
70
69
|
|
|
71
70
|
//# sourceMappingURL=useImageLoadingStatus.js.map
|
package/dist/hooks/useRipple.js
CHANGED
|
@@ -4,7 +4,7 @@ import { rippleStyles as styles } from "../styles/ripple.js";
|
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/hooks/useRipple.tsx
|
|
8
8
|
/** How far the ripple grows past the host's corners. `spacing.sm`. */
|
|
9
9
|
const PADDING = spacingPx.sm;
|
|
10
10
|
const INITIAL_ORIGIN_SCALE = .2;
|
|
@@ -455,7 +455,6 @@ function useRipple(t0, t1, t2, t3) {
|
|
|
455
455
|
function _temp(resolve_0) {
|
|
456
456
|
setTimeout(resolve_0, motionDurationMs.short2);
|
|
457
457
|
}
|
|
458
|
-
//#endregion
|
|
459
458
|
export { useRipple };
|
|
460
459
|
|
|
461
460
|
//# sourceMappingURL=useRipple.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { useLayoutEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useScrollStop.ts
|
|
4
4
|
const TABBABLE = [
|
|
5
5
|
"a[href]",
|
|
6
6
|
"area[href]",
|
|
@@ -127,7 +127,6 @@ function useScrollStop(ref, t0) {
|
|
|
127
127
|
function _temp(candidate) {
|
|
128
128
|
return candidate.tabIndex >= 0 && candidate.closest("[inert]") === null && candidate.getClientRects().length > 0;
|
|
129
129
|
}
|
|
130
|
-
//#endregion
|
|
131
130
|
export { useScrollStop };
|
|
132
131
|
|
|
133
132
|
//# sourceMappingURL=useScrollStop.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
2
|
import { ToggleGroupStateContext } from "react-aria-components";
|
|
3
|
-
|
|
3
|
+
// src/hooks/useToggleGroupDisabled.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the React Aria `ToggleButtonGroup` around a toggle disables it.
|
|
6
6
|
*
|
|
@@ -18,7 +18,6 @@ function useToggleGroupDisabled(id) {
|
|
|
18
18
|
const group = useContext(ToggleGroupStateContext);
|
|
19
19
|
return group !== null && id !== void 0 && group.isDisabled;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { useToggleGroupDisabled };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=useToggleGroupDisabled.js.map
|
package/dist/i18n/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { MESSAGES } from "./messages.js";
|
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useLocale } from "react-aria-components";
|
|
4
4
|
import { LocalizedStringDictionary, LocalizedStringFormatter } from "@internationalized/string";
|
|
5
|
-
|
|
5
|
+
// src/i18n/index.ts
|
|
6
6
|
const dictionary = new LocalizedStringDictionary(MESSAGES);
|
|
7
7
|
const cache = /* @__PURE__ */ new Map();
|
|
8
8
|
function messagesFor(locale) {
|
|
@@ -53,7 +53,6 @@ function useMessages() {
|
|
|
53
53
|
} else t1 = $[1];
|
|
54
54
|
return t1;
|
|
55
55
|
}
|
|
56
|
-
//#endregion
|
|
57
56
|
export { messagesFor, useMessages };
|
|
58
57
|
|
|
59
58
|
//# sourceMappingURL=index.js.map
|
package/dist/i18n/messages.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/i18n/messages.ts
|
|
2
2
|
/**
|
|
3
3
|
* A message that takes the count's form from the plural rule it falls under.
|
|
4
4
|
* The caller hands over the count already written in the locale's digits and
|
|
@@ -823,7 +823,6 @@ const MESSAGES = {
|
|
|
823
823
|
slideLabel: (args) => `第 ${args?.index} 項,共 ${args?.count} 項`
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
|
-
//#endregion
|
|
827
826
|
export { MESSAGES };
|
|
828
827
|
|
|
829
828
|
//# sourceMappingURL=messages.js.map
|
package/dist/indicator/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { indicatorStyles } from "./styles.js";
|
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Label } from "react-aria-components";
|
|
7
|
-
|
|
7
|
+
// src/indicator/index.tsx
|
|
8
8
|
const ACTIVE_TONES = {
|
|
9
9
|
inherit: indicatorStyles.inheritActive,
|
|
10
10
|
negative: indicatorStyles.negativeActive,
|
|
@@ -136,7 +136,6 @@ function IndicatorLine(t0) {
|
|
|
136
136
|
} else t8 = $[20];
|
|
137
137
|
return t8;
|
|
138
138
|
}
|
|
139
|
-
//#endregion
|
|
140
139
|
export { IndicatorLabels, IndicatorLine };
|
|
141
140
|
|
|
142
141
|
//# sourceMappingURL=index.js.map
|
package/dist/indicator/styles.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region node_modules/@kanso-labs/kanso-ui-core/dist/defaults-DMH0HWCw.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A theme: any of the `--kui-*` custom properties `tokens.css` lists, each set
|
|
4
3
|
* to a value in CSS syntax. Hand one to `ThemeScope`'s `theme` prop, and every
|
|
@@ -390,6 +389,5 @@ type KuiTheme = {
|
|
|
390
389
|
/** Defaults to `400`. */
|
|
391
390
|
readonly '--kui-typography-weight-regular'?: string;
|
|
392
391
|
};
|
|
393
|
-
//#endregion
|
|
394
392
|
export { KuiTheme as t };
|
|
395
393
|
//# sourceMappingURL=defaults-DMH0HWCw.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@kanso-labs/kanso-ui-core/dist/glyphs.js
|
|
2
2
|
/** An arrow pointing back, at the page a view returns to. */
|
|
3
3
|
const arrowBackPath = "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z";
|
|
4
4
|
/** An arrow pointing down, for a column sorted in descending order. */
|
|
@@ -42,7 +42,6 @@ const personPath = "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm
|
|
|
42
42
|
const plusPath = "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z";
|
|
43
43
|
/** A magnifier, as a search field shows. */
|
|
44
44
|
const searchPath = "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z";
|
|
45
|
-
//#endregion
|
|
46
45
|
export { arrowBackPath, arrowDownwardPath, arrowDropDownPath, arrowUpwardPath, calendarPath, checkCirclePath, checkPath, chevronDownPath, chevronEndPath, clockPath, closePath, errorPath, keyboardPath, minusPath, personPath, plusPath, searchPath };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=glyphs.js.map
|
package/dist/keycap/context.js
CHANGED
package/dist/layout.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/layout.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* The heights the collections draw, in pixels, for a virtualized one's
|
|
4
3
|
* layout options.
|
|
@@ -38,6 +37,5 @@ declare const collectionSizes: {
|
|
|
38
37
|
/** A `Table` body row. */
|
|
39
38
|
readonly tableRow: 52;
|
|
40
39
|
};
|
|
41
|
-
//#endregion
|
|
42
40
|
export { collectionSizes };
|
|
43
41
|
//# sourceMappingURL=layout.d.ts.map
|
package/dist/layout.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/layout.ts
|
|
2
2
|
/**
|
|
3
3
|
* The heights the collections draw, in pixels, for a virtualized one's
|
|
4
4
|
* layout options.
|
|
@@ -38,7 +38,6 @@ const collectionSizes = {
|
|
|
38
38
|
/** A `Table` body row. */
|
|
39
39
|
tableRow: 52
|
|
40
40
|
};
|
|
41
|
-
//#endregion
|
|
42
41
|
export { collectionSizes };
|
|
43
42
|
|
|
44
43
|
//# sourceMappingURL=layout.js.map
|
package/dist/mark/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { markStyles } from "./styles.js";
|
|
|
8
8
|
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useLocale } from "react-aria-components";
|
|
11
|
-
|
|
11
|
+
// src/mark/index.tsx
|
|
12
12
|
const KINDS = {
|
|
13
13
|
person: {
|
|
14
14
|
fit: markStyles.cover,
|
|
@@ -171,7 +171,6 @@ function Mark(t0) {
|
|
|
171
171
|
} else t13 = $[40];
|
|
172
172
|
return useRender(t13);
|
|
173
173
|
}
|
|
174
|
-
//#endregion
|
|
175
174
|
export { Mark as default };
|
|
176
175
|
|
|
177
176
|
//# sourceMappingURL=index.js.map
|
package/dist/mark/initials.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/mark/initials.ts
|
|
2
2
|
const INITIAL = /^[\p{L}\p{N}\p{Extended_Pictographic}\p{Regional_Indicator}]/u;
|
|
3
3
|
const JOINING = /^[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Mongolian}\p{Script=Nko}\p{Script=Adlam}\p{Script=Mandaic}\p{Script=Manichaean}\p{Script=Psalter_Pahlavi}\p{Script=Hanifi_Rohingya}\p{Script=Sogdian}\p{Script=Old_Uyghur}]/u;
|
|
4
4
|
const ZERO_WIDTH_NON_JOINER = "";
|
|
@@ -51,7 +51,6 @@ function initialsOfPerson(name, locale) {
|
|
|
51
51
|
const last = initialOf(words.at(-1) ?? "", locale);
|
|
52
52
|
return `${first}${JOINING.test(first) && JOINING.test(last) ? ZERO_WIDTH_NON_JOINER : ""}${last}`;
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { initialOfThing, initialsOfPerson };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=initials.js.map
|
package/dist/mark/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/mark/styles.ts
|
|
2
2
|
const markStyles = {
|
|
3
3
|
base: {
|
|
4
4
|
kGNEyG: "x6s0dn4",
|
|
@@ -108,7 +108,6 @@ const markStyles = {
|
|
|
108
108
|
$$css: true
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
//#endregion
|
|
112
111
|
export { markStyles };
|
|
113
112
|
|
|
114
113
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode, RefAttributes } from "react";
|
|
2
2
|
import { LinkProps } from "react-aria-components";
|
|
3
|
-
//#region src/navigation/index.d.ts
|
|
4
3
|
type NavigationItemProps = {
|
|
5
4
|
/**
|
|
6
5
|
* A badge on the icon: `true` for the badges page's small dot, a number
|
|
@@ -37,6 +36,5 @@ type NavigationItemProps = {
|
|
|
37
36
|
/** A function may compute the style from the destination's render state. */
|
|
38
37
|
style?: LinkProps['style'];
|
|
39
38
|
} & Omit<LinkProps, 'children' | 'className' | 'href' | 'style'>;
|
|
40
|
-
//#endregion
|
|
41
39
|
export type { NavigationItemProps };
|
|
42
40
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/navigation/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { c } from "react/compiler-runtime";
|
|
|
11
11
|
import { useContext, useId } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Link } from "react-aria-components";
|
|
14
|
-
|
|
14
|
+
// src/navigation/index.tsx
|
|
15
15
|
const FORMS = {
|
|
16
16
|
bar: barItemStyles,
|
|
17
17
|
barCramped: {
|
|
@@ -203,7 +203,6 @@ function NavigationList(t0) {
|
|
|
203
203
|
} else t2 = $[5];
|
|
204
204
|
return t2;
|
|
205
205
|
}
|
|
206
|
-
//#endregion
|
|
207
206
|
export { NavigationItem, NavigationList };
|
|
208
207
|
|
|
209
208
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors, stateLayerOpacity } from "../tokens/design.tokens.stylex.js";
|
|
2
|
-
|
|
2
|
+
// src/navigation/styles.ts
|
|
3
3
|
`${colors.onSecondaryContainer}${stateLayerOpacity.hover}`;
|
|
4
4
|
`${colors.onSecondaryContainer}${stateLayerOpacity.focus}`;
|
|
5
5
|
`${colors.onSecondaryContainer}${stateLayerOpacity.pressed}`;
|
|
@@ -403,7 +403,6 @@ const crampedBarItemStyles = {
|
|
|
403
403
|
$$css: true
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
|
-
//#endregion
|
|
407
406
|
export { barItemStyles, collapsedItemStyles, crampedBarItemStyles, expandedItemStyles, navigationItemStyles, navigationListStyles };
|
|
408
407
|
|
|
409
408
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// node_modules/@stylexjs/stylex/lib/es/stylex.mjs
|
|
2
2
|
var styleq = {};
|
|
3
3
|
var hasRequiredStyleq;
|
|
4
4
|
function requireStyleq() {
|
|
@@ -115,7 +115,6 @@ function props(...styles) {
|
|
|
115
115
|
return result;
|
|
116
116
|
}
|
|
117
117
|
Object.freeze({});
|
|
118
|
-
//#endregion
|
|
119
118
|
export { props };
|
|
120
119
|
|
|
121
120
|
//# sourceMappingURL=stylex.js.map
|
package/dist/overlay/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c } from "react/compiler-runtime";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { SeparatorContext } from "react-aria-components";
|
|
4
|
-
|
|
4
|
+
// src/overlay/index.tsx
|
|
5
5
|
const NO_SEPARATOR = {};
|
|
6
6
|
/** Clears, for an overlay's content, the contexts that reach it from outside. */
|
|
7
7
|
function OverlayScope(t0) {
|
|
@@ -18,7 +18,6 @@ function OverlayScope(t0) {
|
|
|
18
18
|
} else t1 = $[1];
|
|
19
19
|
return t1;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { OverlayScope };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/render/aria.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElement } from "react";
|
|
2
|
-
|
|
2
|
+
// src/render/aria.tsx
|
|
3
3
|
const LABELLING = /* @__PURE__ */ new Set([
|
|
4
4
|
"aria-describedby",
|
|
5
5
|
"aria-details",
|
|
@@ -79,7 +79,6 @@ function withElementProps(domProps, element) {
|
|
|
79
79
|
onKeyUp: chain(dom.onKeyUp, element.onKeyUp)
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { ariaAttributesOf, buttonRenderer, linkRenderer, toggleButtonRenderer };
|
|
84
83
|
|
|
85
84
|
//# sourceMappingURL=aria.js.map
|
package/dist/render/content.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/render/content.ts
|
|
2
2
|
/**
|
|
3
3
|
* Whether a slot was handed anything to draw. React draws nothing for
|
|
4
4
|
* `null`, `false`, `true` or an empty string, and a call site passes them
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
function hasContent(node) {
|
|
11
11
|
return node !== void 0 && node !== null && node !== false && node !== true && node !== "";
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { hasContent };
|
|
15
14
|
|
|
16
15
|
//# sourceMappingURL=content.js.map
|
package/dist/render/name.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
//#region src/render/name.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A name from the control's own content — the label beside a switch — or,
|
|
5
4
|
* where a row labels it some other way, from an attribute.
|
|
@@ -17,6 +16,5 @@ type LabelledByAttribute = {
|
|
|
17
16
|
'aria-label'?: string;
|
|
18
17
|
'aria-labelledby': string;
|
|
19
18
|
};
|
|
20
|
-
//#endregion
|
|
21
19
|
export type { AccessibleName, LabelledByAttribute };
|
|
22
20
|
//# sourceMappingURL=name.d.ts.map
|
package/dist/render/ref.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/render/ref.ts
|
|
2
2
|
function attach(ref, node) {
|
|
3
3
|
if (typeof ref === "function") {
|
|
4
4
|
const cleanup = ref(node);
|
|
@@ -51,7 +51,6 @@ function refCallback(ref) {
|
|
|
51
51
|
ref.current = element;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { mergeRefs, refCallback };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=ref.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, HTMLAttributes, JSX, ReactElement, Ref } from "react";
|
|
2
|
-
//#region src/render/useRender.d.ts
|
|
3
2
|
type IntrinsicTag = keyof JSX.IntrinsicElements;
|
|
4
3
|
/**
|
|
5
4
|
* The props of a component rendered through {@link useRender}: everything the
|
|
@@ -23,6 +22,5 @@ type RenderFunctionProps = HTMLAttributes<any> & {
|
|
|
23
22
|
ref?: Ref<any> | undefined;
|
|
24
23
|
};
|
|
25
24
|
type RenderProp = ((props: RenderFunctionProps) => ReactElement) | ReactElement;
|
|
26
|
-
//#endregion
|
|
27
25
|
export type { RenderComponentProps, RenderFunctionProps };
|
|
28
26
|
//# sourceMappingURL=useRender.d.ts.map
|
package/dist/render/useRender.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeRefs } from "./ref.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { cloneElement, createElement, isValidElement } from "react";
|
|
4
|
-
|
|
4
|
+
// src/render/useRender.tsx
|
|
5
5
|
function isHandler(value) {
|
|
6
6
|
return typeof value === "function";
|
|
7
7
|
}
|
|
@@ -141,7 +141,6 @@ function useRender(t0) {
|
|
|
141
141
|
} else t5 = $[16];
|
|
142
142
|
return t5;
|
|
143
143
|
}
|
|
144
|
-
//#endregion
|
|
145
144
|
export { useRender };
|
|
146
145
|
|
|
147
146
|
//# sourceMappingURL=useRender.js.map
|
package/dist/row/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { hasContent } from "../render/content.js";
|
|
|
3
3
|
import { rowStyles, supportingTone } from "./styles.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
// src/row/index.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The inside of a row: the leading slot, the headline with its supporting
|
|
9
9
|
* line, and the trailing slot, each rendered only when given. The element
|
|
@@ -157,7 +157,6 @@ function RowContent(t0) {
|
|
|
157
157
|
} else t12 = $[43];
|
|
158
158
|
return t12;
|
|
159
159
|
}
|
|
160
|
-
//#endregion
|
|
161
160
|
export { RowContent };
|
|
162
161
|
|
|
163
162
|
//# sourceMappingURL=index.js.map
|
package/dist/row/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/row/styles.ts
|
|
2
2
|
const rowStyles = {
|
|
3
3
|
base: {
|
|
4
4
|
kGNEyG: "x6s0dn4",
|
|
@@ -212,7 +212,6 @@ function supportingTone(variant, { isDisabled, isSelected }) {
|
|
|
212
212
|
if (variant === "menu") return rowStyles.supportingSelectedMenu;
|
|
213
213
|
return rowStyles.supportingSelectedList;
|
|
214
214
|
}
|
|
215
|
-
//#endregion
|
|
216
215
|
export { rowStyles, supportingTone };
|
|
217
216
|
|
|
218
217
|
//# sourceMappingURL=styles.js.map
|
package/dist/segments/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { props } from "../node_modules/@stylexjs/stylex/lib/es/stylex.js";
|
|
|
2
2
|
import { segmentStyles } from "./styles.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { DateSegment } from "react-aria-components";
|
|
5
|
-
|
|
5
|
+
// src/segments/index.tsx
|
|
6
6
|
function renderSegment(segment) {
|
|
7
7
|
if (segment.type === "literal") return /* @__PURE__ */ jsx(DateSegment, {
|
|
8
8
|
...props(segmentStyles.segment, segmentStyles.segmentLiteral),
|
|
@@ -16,7 +16,6 @@ function renderSegment(segment) {
|
|
|
16
16
|
function segmentClassName(state) {
|
|
17
17
|
return props(segmentStyles.segment, state.isPlaceholder && segmentStyles.segmentPlaceholder, state.isFocused && segmentStyles.segmentFocused, state.isDisabled && segmentStyles.segmentDisabled).className ?? "";
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { renderSegment };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=index.js.map
|
package/dist/segments/styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/segments/styles.ts
|
|
2
2
|
const segmentStyles = {
|
|
3
3
|
input: {
|
|
4
4
|
kGNEyG: "x6s0dn4",
|
|
@@ -39,7 +39,6 @@ const segmentStyles = {
|
|
|
39
39
|
$$css: true
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
//#endregion
|
|
43
42
|
export { segmentStyles };
|
|
44
43
|
|
|
45
44
|
//# sourceMappingURL=styles.js.map
|
package/dist/styles/chequer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from "../tokens/design.tokens.stylex.js";
|
|
2
|
-
|
|
2
|
+
// src/styles/chequer.ts
|
|
3
3
|
`${colors.surfaceContainerHighest}${colors.surfaceContainerHighest}${colors.surfaceContainerHighest}${colors.surfaceContainerHighest}`;
|
|
4
4
|
const chequer = { ground: {
|
|
5
5
|
kWkggS: "x14q8lhr",
|
|
@@ -8,7 +8,6 @@ const chequer = { ground: {
|
|
|
8
8
|
kgSjnq: "x1ht9rhz",
|
|
9
9
|
$$css: true
|
|
10
10
|
} };
|
|
11
|
-
//#endregion
|
|
12
11
|
export { chequer };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=chequer.js.map
|
package/dist/styles/color.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/styles/color.ts
|
|
2
2
|
function thumbClasses(state, vertical) {
|
|
3
3
|
return {
|
|
4
4
|
0: { className: "x12w9bfk x1qx5ct2 x1ylmb6m x16fbrrb xx61lck x13rsnn2 xlzcsym x9f619 x1jm3nie xw4jnvo xwa60dl xrgy624 x1x84bn5 x2wh2y9 x1t137rt x1de99jn x1qno0dh xkdsq27 xpc4ca7" },
|
|
@@ -25,7 +25,6 @@ function thumbClassName(state) {
|
|
|
25
25
|
function verticalThumbClassName(state) {
|
|
26
26
|
return thumbClasses(state, true);
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
28
|
export { thumbClassName, verticalThumbClassName };
|
|
30
29
|
|
|
31
30
|
//# sourceMappingURL=color.js.map
|
package/dist/styles/focus.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/styles/icon-button.ts
|
|
2
2
|
const iconButton = {
|
|
3
3
|
chrome: {
|
|
4
4
|
kGNEyG: "x6s0dn4",
|
|
@@ -31,7 +31,6 @@ const iconButton = {
|
|
|
31
31
|
$$css: true
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
//#endregion
|
|
35
34
|
export { iconButton };
|
|
36
35
|
|
|
37
36
|
//# sourceMappingURL=icon-button.js.map
|