@bysages/react 0.4.4 → 0.6.0
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/ai-B0o-dsAf.mjs +309 -0
- package/dist/ai-prompt-input-Cl9ulICF.mjs +401 -0
- package/dist/{ai-response-CjjjprMY.mjs → ai-response-DTxdL5rX.mjs} +9 -11
- package/dist/{chevron-BA7kV9m7.mjs → chevron-DnImlNip.mjs} +2 -3
- package/dist/components/accordion/index.d.mts +1 -2
- package/dist/components/accordion/index.mjs +3 -4
- package/dist/components/affix/index.d.mts +1 -2
- package/dist/components/affix/index.mjs +2 -3
- package/dist/components/ai/index.d.mts +107 -2
- package/dist/components/ai/index.mjs +7 -82
- package/dist/components/ai-action/index.d.mts +0 -2
- package/dist/components/ai-action/index.mjs +2 -3
- package/dist/components/ai-attachments/index.d.mts +0 -2
- package/dist/components/ai-attachments/index.mjs +4 -5
- package/dist/components/ai-message/index.d.mts +2 -14
- package/dist/components/ai-message/index.mjs +5 -4
- package/dist/components/ai-prompt-input/index.d.mts +14 -18
- package/dist/components/ai-prompt-input/index.mjs +1 -126
- package/dist/components/ai-reasoning/index.d.mts +0 -2
- package/dist/components/ai-reasoning/index.mjs +3 -4
- package/dist/components/ai-response/index.d.mts +1 -3
- package/dist/components/ai-response/index.mjs +1 -2
- package/dist/components/ai-source/index.d.mts +0 -2
- package/dist/components/ai-source/index.mjs +2 -3
- package/dist/components/ai-suggestion/index.d.mts +0 -2
- package/dist/components/ai-suggestion/index.mjs +2 -3
- package/dist/components/ai-tool/index.d.mts +2 -24
- package/dist/components/ai-tool/index.mjs +46 -14
- package/dist/components/alert/index.d.mts +1 -2
- package/dist/components/alert/index.mjs +2 -3
- package/dist/components/angle-slider/index.d.mts +1 -2
- package/dist/components/angle-slider/index.mjs +2 -3
- package/dist/components/aspect-ratio/index.d.mts +1 -2
- package/dist/components/aspect-ratio/index.mjs +2 -3
- package/dist/components/autocomplete/index.d.mts +5 -3
- package/dist/components/autocomplete/index.mjs +12 -10
- package/dist/components/avatar/index.d.mts +1 -2
- package/dist/components/avatar/index.mjs +2 -3
- package/dist/components/avatar-group/index.d.mts +1 -2
- package/dist/components/avatar-group/index.mjs +2 -3
- package/dist/components/back-top/index.d.mts +1 -2
- package/dist/components/back-top/index.mjs +3 -4
- package/dist/components/badge/index.d.mts +1 -2
- package/dist/components/badge/index.mjs +2 -3
- package/dist/components/banner/index.d.mts +1 -2
- package/dist/components/banner/index.mjs +3 -4
- package/dist/components/bento/index.d.mts +1 -3
- package/dist/components/bento/index.mjs +1 -2
- package/dist/components/block-ui/index.d.mts +1 -2
- package/dist/components/block-ui/index.mjs +2 -3
- package/dist/components/breadcrumb/index.d.mts +1 -2
- package/dist/components/breadcrumb/index.mjs +2 -3
- package/dist/components/browser/index.d.mts +1 -3
- package/dist/components/browser/index.mjs +1 -2
- package/dist/components/button/index.d.mts +1 -2
- package/dist/components/button/index.mjs +2 -3
- package/dist/components/button-group/index.d.mts +1 -2
- package/dist/components/button-group/index.mjs +1 -2
- package/dist/components/calendar/index.d.mts +1 -2
- package/dist/components/calendar/index.mjs +3 -4
- package/dist/components/card/index.d.mts +1 -3
- package/dist/components/card/index.mjs +1 -2
- package/dist/components/carousel/index.d.mts +1 -2
- package/dist/components/carousel/index.mjs +3 -4
- package/dist/components/cascade-select/index.d.mts +5 -3
- package/dist/components/cascade-select/index.mjs +42 -40
- package/dist/components/checkbox/index.d.mts +1 -2
- package/dist/components/checkbox/index.mjs +3 -4
- package/dist/components/checkbox-group/index.d.mts +1 -2
- package/dist/components/checkbox-group/index.mjs +3 -4
- package/dist/components/chip/index.d.mts +1 -2
- package/dist/components/chip/index.mjs +2 -3
- package/dist/components/client-only/index.d.mts +0 -2
- package/dist/components/client-only/index.mjs +2 -3
- package/dist/components/clipboard/index.d.mts +1 -2
- package/dist/components/clipboard/index.mjs +3 -4
- package/dist/components/collapsible/index.d.mts +1 -2
- package/dist/components/collapsible/index.mjs +3 -4
- package/dist/components/collection/index.mjs +1 -2
- package/dist/components/color-picker/index.d.mts +10 -3
- package/dist/components/color-picker/index.mjs +39 -33
- package/dist/components/combobox/index.d.mts +10 -3
- package/dist/components/combobox/index.mjs +17 -12
- package/dist/components/command/index.d.mts +5 -3
- package/dist/components/command/index.mjs +74 -72
- package/dist/components/comment/index.d.mts +1 -2
- package/dist/components/comment/index.mjs +2 -3
- package/dist/components/config-provider/index.d.mts +1 -2
- package/dist/components/config-provider/index.mjs +2 -3
- package/dist/components/container/index.d.mts +1 -2
- package/dist/components/container/index.mjs +2 -3
- package/dist/components/data-view/index.d.mts +1 -2
- package/dist/components/data-view/index.mjs +3 -4
- package/dist/components/date-input/index.d.mts +0 -2
- package/dist/components/date-input/index.mjs +2 -3
- package/dist/components/date-picker/index.d.mts +9 -3
- package/dist/components/date-picker/index.mjs +30 -25
- package/dist/components/deferred-content/index.d.mts +1 -2
- package/dist/components/deferred-content/index.mjs +2 -3
- package/dist/components/descriptions/index.d.mts +1 -2
- package/dist/components/descriptions/index.mjs +2 -3
- package/dist/components/dialog/index.d.mts +49 -5
- package/dist/components/dialog/index.mjs +67 -20
- package/dist/components/dock/index.d.mts +1 -3
- package/dist/components/dock/index.mjs +1 -2
- package/dist/components/download-trigger/index.d.mts +0 -2
- package/dist/components/download-trigger/index.mjs +2 -3
- package/dist/components/drawer/index.d.mts +20 -5
- package/dist/components/drawer/index.mjs +21 -16
- package/dist/components/dynamic-input/index.d.mts +1 -2
- package/dist/components/dynamic-input/index.mjs +5 -6
- package/dist/components/editable/index.d.mts +1 -2
- package/dist/components/editable/index.mjs +3 -4
- package/dist/components/ellipsis/index.d.mts +1 -2
- package/dist/components/ellipsis/index.mjs +2 -3
- package/dist/components/empty/index.d.mts +1 -3
- package/dist/components/empty/index.mjs +1 -2
- package/dist/components/field/index.d.mts +1 -2
- package/dist/components/field/index.mjs +2 -3
- package/dist/components/fieldset/index.d.mts +1 -2
- package/dist/components/fieldset/index.mjs +2 -3
- package/dist/components/file-upload/index.d.mts +1 -2
- package/dist/components/file-upload/index.mjs +3 -4
- package/dist/components/float-button/index.d.mts +1 -2
- package/dist/components/float-button/index.mjs +3 -4
- package/dist/components/floating-panel/index.d.mts +20 -5
- package/dist/components/floating-panel/index.mjs +37 -32
- package/dist/components/focus-trap/index.d.mts +0 -2
- package/dist/components/focus-trap/index.mjs +2 -3
- package/dist/components/form/index.d.mts +0 -2
- package/dist/components/form/index.mjs +2 -3
- package/dist/components/format/index.d.mts +1 -3
- package/dist/components/format/index.mjs +1 -2
- package/dist/components/frame/index.d.mts +1 -3
- package/dist/components/frame/index.mjs +3 -4
- package/dist/components/grid/index.d.mts +1 -2
- package/dist/components/grid/index.mjs +2 -3
- package/dist/components/highlight/index.d.mts +1 -3
- package/dist/components/highlight/index.mjs +2 -3
- package/dist/components/hover-card/index.d.mts +18 -5
- package/dist/components/hover-card/index.mjs +16 -11
- package/dist/components/icon/index.d.mts +1 -2
- package/dist/components/icon/index.mjs +2 -3
- package/dist/components/image/index.d.mts +1 -2
- package/dist/components/image/index.mjs +3 -4
- package/dist/components/image-cropper/index.d.mts +1 -2
- package/dist/components/image-cropper/index.mjs +2 -3
- package/dist/components/image-viewer/index.d.mts +1 -1
- package/dist/components/image-viewer/index.mjs +1 -2
- package/dist/components/input/index.d.mts +1 -3
- package/dist/components/input/index.mjs +1 -2
- package/dist/components/input-group/index.d.mts +1 -3
- package/dist/components/input-group/index.mjs +1 -2
- package/dist/components/json-tree-view/index.d.mts +1 -2
- package/dist/components/json-tree-view/index.mjs +3 -4
- package/dist/components/kbd/index.d.mts +1 -2
- package/dist/components/kbd/index.mjs +2 -3
- package/dist/components/layout/index.d.mts +1 -2
- package/dist/components/layout/index.mjs +19 -15
- package/dist/components/link/index.d.mts +1 -2
- package/dist/components/link/index.mjs +2 -3
- package/dist/components/list/index.d.mts +1 -2
- package/dist/components/list/index.mjs +1 -2
- package/dist/components/listbox/index.d.mts +0 -2
- package/dist/components/listbox/index.mjs +3 -4
- package/dist/components/marquee/index.d.mts +1 -2
- package/dist/components/marquee/index.mjs +2 -3
- package/dist/components/masonry/index.d.mts +1 -2
- package/dist/components/masonry/index.mjs +2 -3
- package/dist/components/media-player/index.d.mts +1 -1
- package/dist/components/media-player/index.mjs +1 -2
- package/dist/components/mentions/index.d.mts +2 -2
- package/dist/components/mentions/index.mjs +1 -2
- package/dist/components/menu/index.d.mts +11 -4
- package/dist/components/menu/index.mjs +15 -10
- package/dist/components/menubar/index.d.mts +5 -3
- package/dist/components/menubar/index.mjs +14 -12
- package/dist/components/meter/index.d.mts +1 -3
- package/dist/components/meter/index.mjs +1 -2
- package/dist/components/navigation-menu/index.d.mts +10 -3
- package/dist/components/navigation-menu/index.mjs +9 -4
- package/dist/components/number-input/index.d.mts +1 -2
- package/dist/components/number-input/index.mjs +3 -4
- package/dist/components/order-list/index.d.mts +1 -2
- package/dist/components/order-list/index.mjs +4 -5
- package/dist/components/page-header/index.d.mts +1 -3
- package/dist/components/page-header/index.mjs +1 -2
- package/dist/components/pagination/index.d.mts +3 -4
- package/dist/components/pagination/index.mjs +3 -4
- package/dist/components/password-input/index.d.mts +1 -2
- package/dist/components/password-input/index.mjs +3 -4
- package/dist/components/pin-input/index.d.mts +1 -2
- package/dist/components/pin-input/index.mjs +2 -3
- package/dist/components/popconfirm/index.d.mts +6 -4
- package/dist/components/popconfirm/index.mjs +33 -31
- package/dist/components/popover/index.d.mts +1 -1
- package/dist/components/popover/index.mjs +23 -18
- package/dist/components/presence/index.d.mts +0 -2
- package/dist/components/presence/index.mjs +2 -3
- package/dist/components/progress/index.d.mts +1 -2
- package/dist/components/progress/index.mjs +2 -3
- package/dist/components/progress-group/index.d.mts +1 -2
- package/dist/components/progress-group/index.mjs +2 -3
- package/dist/components/qr-code/index.d.mts +1 -2
- package/dist/components/qr-code/index.mjs +2 -3
- package/dist/components/radio-group/index.d.mts +1 -2
- package/dist/components/radio-group/index.mjs +2 -3
- package/dist/components/rating-group/index.d.mts +1 -2
- package/dist/components/rating-group/index.mjs +3 -4
- package/dist/components/result/index.d.mts +1 -2
- package/dist/components/result/index.mjs +2 -3
- package/dist/components/scroll-area/index.d.mts +8 -3
- package/dist/components/scroll-area/index.mjs +7 -6
- package/dist/components/segment-group/index.d.mts +1 -2
- package/dist/components/segment-group/index.mjs +2 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.mjs +1 -2
- package/dist/components/separator/index.d.mts +1 -2
- package/dist/components/separator/index.mjs +2 -3
- package/dist/components/signature-pad/index.d.mts +1 -2
- package/dist/components/signature-pad/index.mjs +3 -4
- package/dist/components/skeleton/index.d.mts +1 -2
- package/dist/components/skeleton/index.mjs +2 -3
- package/dist/components/slider/index.d.mts +1 -2
- package/dist/components/slider/index.mjs +2 -3
- package/dist/components/spinner/index.d.mts +1 -2
- package/dist/components/spinner/index.mjs +3 -4
- package/dist/components/split-button/index.d.mts +5 -3
- package/dist/components/split-button/index.mjs +16 -14
- package/dist/components/splitter/index.d.mts +1 -2
- package/dist/components/splitter/index.mjs +2 -3
- package/dist/components/spotlight/index.d.mts +1 -2
- package/dist/components/spotlight/index.mjs +2 -3
- package/dist/components/stack/index.d.mts +1 -2
- package/dist/components/stack/index.mjs +2 -3
- package/dist/components/stat/index.d.mts +1 -3
- package/dist/components/stat/index.mjs +1 -2
- package/dist/components/steps/index.d.mts +0 -2
- package/dist/components/steps/index.mjs +2 -3
- package/dist/components/swap/index.d.mts +1 -2
- package/dist/components/swap/index.mjs +3 -4
- package/dist/components/switch/index.d.mts +1 -2
- package/dist/components/switch/index.mjs +2 -3
- package/dist/components/table/index.d.mts +21 -3
- package/dist/components/table/index.mjs +28 -14
- package/dist/components/tabs/index.d.mts +9 -3
- package/dist/components/tabs/index.mjs +36 -8
- package/dist/components/tag/index.d.mts +1 -2
- package/dist/components/tag/index.mjs +3 -4
- package/dist/components/tags-input/index.d.mts +1 -2
- package/dist/components/tags-input/index.mjs +3 -4
- package/dist/components/terminal/index.d.mts +4 -3
- package/dist/components/terminal/index.mjs +8 -7
- package/dist/components/textarea/index.d.mts +1 -2
- package/dist/components/textarea/index.mjs +2 -3
- package/dist/components/timeline/index.d.mts +1 -2
- package/dist/components/timeline/index.mjs +1 -2
- package/dist/components/timer/index.d.mts +1 -2
- package/dist/components/timer/index.mjs +2 -3
- package/dist/components/toast/index.d.mts +0 -2
- package/dist/components/toast/index.mjs +4 -5
- package/dist/components/toc/index.d.mts +1 -2
- package/dist/components/toc/index.mjs +2 -3
- package/dist/components/toggle/index.d.mts +1 -2
- package/dist/components/toggle/index.mjs +2 -3
- package/dist/components/toggle-group/index.d.mts +1 -2
- package/dist/components/toggle-group/index.mjs +3 -4
- package/dist/components/toolbar/index.d.mts +1 -2
- package/dist/components/toolbar/index.mjs +2 -3
- package/dist/components/tooltip/index.d.mts +18 -5
- package/dist/components/tooltip/index.mjs +10 -5
- package/dist/components/tour/index.d.mts +20 -5
- package/dist/components/tour/index.mjs +18 -13
- package/dist/components/transfer/index.d.mts +1 -2
- package/dist/components/transfer/index.mjs +5 -6
- package/dist/components/tree-select/index.d.mts +6 -4
- package/dist/components/tree-select/index.mjs +43 -41
- package/dist/components/tree-view/index.d.mts +15 -5
- package/dist/components/tree-view/index.mjs +30 -12
- package/dist/components/typography/index.d.mts +9 -7
- package/dist/components/typography/index.mjs +10 -3
- package/dist/components/user/index.d.mts +1 -2
- package/dist/components/user/index.mjs +2 -3
- package/dist/components/virtual-list/index.d.mts +1 -2
- package/dist/components/virtual-list/index.mjs +2 -3
- package/dist/components/watermark/index.d.mts +1 -2
- package/dist/components/watermark/index.mjs +2 -3
- package/dist/{family-DE_GQeeM.mjs → family-Co1YsN4N.mjs} +1 -2
- package/dist/floating-BhcDRgnx.d.mts +7 -0
- package/dist/floating-CMR7cvmA.mjs +33 -0
- package/dist/generative/index.d.mts +0 -2
- package/dist/generative/index.mjs +28 -53
- package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
- package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
- package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BPTApdoP.mjs} +50 -52
- package/dist/index-CEYybyEQ.d.mts +163 -0
- package/dist/index-CjO4Ggf0.d.mts +115 -0
- package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
- package/dist/{index-D_iKc2Uw.d.mts → index-DZ2S5rMj.d.mts} +10 -6
- package/dist/index-j02dTkfc.d.mts +37 -0
- package/dist/index-lCsvE2Vl.d.mts +37 -0
- package/dist/{index-Dj8S4eyJ.d.mts → index-n9VlNO7D.d.mts} +4 -5
- package/dist/index.d.mts +13 -13
- package/dist/index.mjs +10 -10
- package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
- package/dist/{media-player-C0WcjVI-.mjs → media-player-DxG0EYz7.mjs} +7 -12
- package/dist/mentions-B59tQDPt.mjs +341 -0
- package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
- package/dist/{select-D_soVdWK.mjs → select-BLFqfeVw.mjs} +24 -20
- package/package.json +17 -17
- package/dist/index-B4twHAQC.d.mts +0 -10456
- package/dist/index-Bbg4heDO.d.mts +0 -113
- package/dist/index-Eu-Bttta.d.mts +0 -24
- package/dist/mentions-BwnyvdXz.mjs +0 -213
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { Splitter } from "@ark-ui/react/splitter";
|
|
6
|
-
|
|
6
|
+
// src/components/layout/index.tsx
|
|
7
7
|
const LAYOUT_CONTEXT = createContext(null);
|
|
8
8
|
/** One step of Ark's keyboard resize, converted to a splitter percentage
|
|
9
9
|
* at render time so the public behavior remains a 16px move. */
|
|
@@ -113,7 +113,7 @@ function region(name, tag) {
|
|
|
113
113
|
const Tag = tag;
|
|
114
114
|
const Component = ({ children, ...rest }) => {
|
|
115
115
|
const layout = useContext(LAYOUT_CONTEXT);
|
|
116
|
-
const splitPanel = name === "Content" && !!layout?.siderPlacement() && !!layout.getSiderState()?.resizable
|
|
116
|
+
const splitPanel = name === "Content" && !!layout?.siderPlacement() && !!layout.getSiderState()?.resizable;
|
|
117
117
|
return /* @__PURE__ */ jsx(Tag, {
|
|
118
118
|
...rest,
|
|
119
119
|
"data-scope": "layout",
|
|
@@ -141,24 +141,28 @@ function Sider({ collapsed = false, width: widthProp, collapsedWidth = "3.5rem",
|
|
|
141
141
|
const [innerWidth, setInnerWidth] = useState(widthProp ?? "16rem");
|
|
142
142
|
const width = widthProp !== void 0 ? widthProp : innerWidth;
|
|
143
143
|
useEffect(() => {
|
|
144
|
+
const railWidth = collapsed ? collapsedWidth : width;
|
|
145
|
+
const railMin = collapsed ? collapsedWidth : minWidth;
|
|
146
|
+
const railMax = collapsed ? collapsedWidth : maxWidth;
|
|
144
147
|
layout?.setSiderState((previous) => previous ? {
|
|
145
148
|
...previous,
|
|
146
149
|
resizable,
|
|
147
150
|
collapsed,
|
|
148
|
-
width,
|
|
149
|
-
minWidth,
|
|
150
|
-
maxWidth
|
|
151
|
+
width: railWidth,
|
|
152
|
+
minWidth: railMin,
|
|
153
|
+
maxWidth: railMax
|
|
151
154
|
} : {
|
|
152
155
|
resizable,
|
|
153
156
|
collapsed,
|
|
154
|
-
width,
|
|
155
|
-
minWidth,
|
|
156
|
-
maxWidth
|
|
157
|
+
width: railWidth,
|
|
158
|
+
minWidth: railMin,
|
|
159
|
+
maxWidth: railMax
|
|
157
160
|
});
|
|
158
161
|
}, [
|
|
159
162
|
layout,
|
|
160
163
|
resizable,
|
|
161
164
|
collapsed,
|
|
165
|
+
collapsedWidth,
|
|
162
166
|
width,
|
|
163
167
|
minWidth,
|
|
164
168
|
maxWidth
|
|
@@ -194,12 +198,13 @@ function Sider({ collapsed = false, width: widthProp, collapsedWidth = "3.5rem",
|
|
|
194
198
|
});
|
|
195
199
|
}, [layout, onWidthChange]);
|
|
196
200
|
const contents = typeof children === "function" ? children({ collapsed }) : children;
|
|
197
|
-
const
|
|
201
|
+
const resizeTrigger = active ? /* @__PURE__ */ jsx(Splitter.ResizeTrigger, {
|
|
202
|
+
id: layout?.siderPlacement() === "end" ? "flow:sider" : "sider:flow",
|
|
203
|
+
"aria-label": messages.sidebar.resize
|
|
204
|
+
}) : null;
|
|
205
|
+
const body = resizable && layout ? /* @__PURE__ */ jsxs(Splitter.Panel, {
|
|
198
206
|
id: "sider",
|
|
199
|
-
children: [contents,
|
|
200
|
-
id: layout?.siderPlacement() === "end" ? "flow:sider" : "sider:flow",
|
|
201
|
-
"aria-label": messages.sidebar.resize
|
|
202
|
-
})]
|
|
207
|
+
children: [contents, resizeTrigger]
|
|
203
208
|
}) : contents;
|
|
204
209
|
return /* @__PURE__ */ jsx("aside", {
|
|
205
210
|
...rest,
|
|
@@ -225,5 +230,4 @@ const Layout = Object.assign(Root, {
|
|
|
225
230
|
Footer
|
|
226
231
|
});
|
|
227
232
|
injectComponentStyle("layout");
|
|
228
|
-
//#endregion
|
|
229
233
|
export { Layout };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/link/index.d.ts
|
|
3
2
|
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
3
|
underline?: "always" | "hover" | "none";
|
|
5
4
|
}
|
|
@@ -10,4 +9,4 @@ declare function LinkImpl({ underline, children, ...rest }: LinkProps): import("
|
|
|
10
9
|
export declare const Link: typeof LinkImpl & {
|
|
11
10
|
Root: typeof LinkImpl;
|
|
12
11
|
};
|
|
13
|
-
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/link/index.tsx
|
|
5
5
|
/** A link is ink in the accent's voice: quiet at rest, deepening under
|
|
6
6
|
* the hand, the halo at focus. The underline follows the prose —
|
|
7
7
|
* always, on hover, or never. */
|
|
@@ -16,5 +16,4 @@ function LinkImpl({ underline = "hover", children, ...rest }) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
const Link = withSelfRoot(LinkImpl);
|
|
19
|
-
//#endregion
|
|
20
19
|
export { Link };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
-
//#region src/components/list/index.d.ts
|
|
3
2
|
export interface ListRootProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
3
|
/** One hairline between rows. */
|
|
5
4
|
bordered?: boolean;
|
|
@@ -37,4 +36,4 @@ export declare const List: typeof Root & {
|
|
|
37
36
|
displayName: string;
|
|
38
37
|
};
|
|
39
38
|
};
|
|
40
|
-
|
|
39
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/list/index.tsx
|
|
4
4
|
/** A ledger of rows: Root is the list, Item one row, Leading the mark
|
|
5
5
|
* before the words, Content the title and its quiet echo, Actions the
|
|
6
6
|
* way out. The bordered variant draws the hairlines; the hoverable
|
|
@@ -71,5 +71,4 @@ const List = Object.assign(Root, {
|
|
|
71
71
|
Actions
|
|
72
72
|
});
|
|
73
73
|
injectComponentStyle("list");
|
|
74
|
-
//#endregion
|
|
75
74
|
export { List };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from "react";
|
|
2
2
|
import { CollectionItem } from "@ark-ui/react/collection";
|
|
3
3
|
import { Listbox as Listbox$1, ListboxRootComponentProps, createListCollection } from "@ark-ui/react/listbox";
|
|
4
|
-
//#region src/components/listbox/index.d.ts
|
|
5
4
|
/** Ark's Listbox, dressed in the paper-and-ink system: quiet rows of ink
|
|
6
5
|
* where the checked row alone takes the flat primary fill. The API is
|
|
7
6
|
* Ark's own — Root, Label, Input, Content, Empty, Item, ItemText,
|
|
@@ -35,5 +34,4 @@ declare function ListboxFacade(props: ListboxFacadeProps): import("react").JSX.E
|
|
|
35
34
|
export declare const Listbox: typeof ListboxFacade & Omit<typeof Listbox$1, "Root"> & {
|
|
36
35
|
Root: typeof ListboxRoot;
|
|
37
36
|
};
|
|
38
|
-
//#endregion
|
|
39
37
|
export { createListCollection };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Listbox as Listbox$1, createListCollection } from "@ark-ui/react/listbox";
|
|
6
|
-
|
|
6
|
+
// src/components/listbox/index.tsx
|
|
7
7
|
function ListboxRoot(props) {
|
|
8
8
|
injectComponentStyle("listbox");
|
|
9
9
|
const id = useElementId("listbox", props);
|
|
@@ -46,5 +46,4 @@ const Listbox = Object.assign(ListboxFacade, {
|
|
|
46
46
|
...Listbox$1,
|
|
47
47
|
Root: ListboxRoot
|
|
48
48
|
});
|
|
49
|
-
//#endregion
|
|
50
49
|
export { Listbox, createListCollection };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Marquee as Marquee$1 } from "@ark-ui/react/marquee";
|
|
3
|
-
//#region src/components/marquee/index.d.ts
|
|
4
3
|
/** Ark's Marquee, dressed in the paper-and-ink system: a linear ribbon of
|
|
5
4
|
* seal-cut chips that dissolves into the paper at its edges rather than
|
|
6
5
|
* cutting off. The API is Ark's own — Root, Viewport, Content, Edge, Item. */
|
|
@@ -21,4 +20,4 @@ declare function MarqueeFacade(props: MarqueeFacadeProps): import("react").JSX.E
|
|
|
21
20
|
export declare const Marquee: typeof MarqueeFacade & Omit<typeof Marquee$1, "Root"> & {
|
|
22
21
|
Root: typeof MarqueeRoot;
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { Marquee as Marquee$1 } from "@ark-ui/react/marquee";
|
|
5
|
-
|
|
5
|
+
// src/components/marquee/index.tsx
|
|
6
6
|
/** Ark's Marquee, dressed in the paper-and-ink system: a linear ribbon of
|
|
7
7
|
* seal-cut chips that dissolves into the paper at its edges rather than
|
|
8
8
|
* cutting off. The API is Ark's own — Root, Viewport, Content, Edge, Item. */
|
|
@@ -38,5 +38,4 @@ const Marquee = Object.assign(MarqueeFacade, {
|
|
|
38
38
|
...Marquee$1,
|
|
39
39
|
Root: MarqueeRoot
|
|
40
40
|
});
|
|
41
|
-
//#endregion
|
|
42
41
|
export { Marquee };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/masonry/index.d.ts
|
|
3
2
|
/** A wall of uneven heights: items flow down each column before
|
|
4
3
|
* crossing to the next, so the order is column-first. A row-flow wall
|
|
5
4
|
* would need grid masonry, which browsers do not ship yet. */
|
|
@@ -11,4 +10,4 @@ declare function MasonryImpl({ columns, gap, ...rest }: MasonryProps): import("r
|
|
|
11
10
|
export declare const Masonry: typeof MasonryImpl & {
|
|
12
11
|
Root: typeof MasonryImpl;
|
|
13
12
|
};
|
|
14
|
-
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as withSelfRoot } from "../../family-
|
|
1
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
2
2
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/components/masonry/index.tsx
|
|
5
5
|
/** The same named steps of the space ramp the stack uses — one
|
|
6
6
|
* vocabulary of distance across the layout primitives. */
|
|
7
7
|
const gapVars = {
|
|
@@ -27,5 +27,4 @@ function MasonryImpl({ columns = 3, gap = "md", ...rest }) {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
const Masonry = withSelfRoot(MasonryImpl);
|
|
30
|
-
//#endregion
|
|
31
30
|
export { Masonry };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "../../index-
|
|
1
|
+
import { a as MediaTextTrackOption, i as MediaSourceOption, n as Video, o as formatMediaTime, r as MediaPlayerProps, t as Audio } from "../../index-DIZEFqJM.mjs";
|
|
2
2
|
export { Audio, type MediaPlayerProps, type MediaSourceOption, type MediaTextTrackOption, Video, formatMediaTime };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Audio, Video, formatMediaTime };
|
|
1
|
+
export { t as Audio, n as Video, r as formatMediaTime } from "../../media-player-DxG0EYz7.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { MentionEntry, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, type UseMentionsHandlers, type UseMentionsOptions, useMentions };
|
|
1
|
+
import { a as MentionsProps, c as MentionCommitKey, d as useMentions, i as Mentions, l as UseMentionsHandlers, n as MentionPlacement, o as MentionsVessel, r as MentionTriggers, s as MentionsVesselProps, t as MentionEntry, u as UseMentionsOptions } from "../../index-CEYybyEQ.mjs";
|
|
2
|
+
export { type MentionCommitKey, MentionEntry, MentionPlacement, MentionTriggers, Mentions, MentionsProps, MentionsVessel, MentionsVesselProps, type UseMentionsHandlers, type UseMentionsOptions, useMentions };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Mentions, MentionsVessel, useMentions };
|
|
1
|
+
export { t as Mentions, n as MentionsVessel, r as useMentions } from "../../mentions-B59tQDPt.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { n as FloatingPortalTarget, t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
|
|
1
2
|
import { ComponentProps } from "react";
|
|
2
3
|
import { Menu as Menu$1 } from "@ark-ui/react/menu";
|
|
3
|
-
//#region src/components/menu/index.d.ts
|
|
4
4
|
type MenuRootProps = ComponentProps<typeof Menu$1.Root> & {
|
|
5
5
|
/** One rung of the control-height ladder for the vessel's rows. */
|
|
6
6
|
size?: "sm" | "md" | "lg";
|
|
@@ -16,6 +16,8 @@ export interface MenuItemOption {
|
|
|
16
16
|
}
|
|
17
17
|
type MenuPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
18
18
|
export interface MenuFacadeProps {
|
|
19
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
20
|
+
portal?: FloatingPortalTarget;
|
|
19
21
|
open?: boolean;
|
|
20
22
|
defaultOpen?: boolean;
|
|
21
23
|
trigger: string;
|
|
@@ -26,13 +28,18 @@ export interface MenuFacadeProps {
|
|
|
26
28
|
onSelect?: (value: string) => void;
|
|
27
29
|
onOpenChange?: (open: boolean) => void;
|
|
28
30
|
}
|
|
29
|
-
declare
|
|
31
|
+
declare const MenuPositioner: {
|
|
32
|
+
({ portal, ...rest }: FloatingPortalProps & Menu$1.PositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
33
|
+
displayName: string;
|
|
34
|
+
};
|
|
35
|
+
declare function MenuFacade({ portal, open, defaultOpen, trigger, items, disabled, placement, size, onSelect, onOpenChange }: MenuFacadeProps): import("react").JSX.Element;
|
|
30
36
|
declare namespace MenuFacade {
|
|
31
37
|
var displayName: string;
|
|
32
38
|
}
|
|
33
|
-
type MenuParts = Omit<typeof Menu$1, "Root" | "Content"> & {
|
|
39
|
+
type MenuParts = Omit<typeof Menu$1, "Root" | "Content" | "Positioner"> & {
|
|
40
|
+
Positioner: typeof MenuPositioner;
|
|
34
41
|
Root: typeof MenuRoot;
|
|
35
42
|
Content: typeof MenuContent;
|
|
36
43
|
};
|
|
37
44
|
export declare const Menu: typeof MenuFacade & MenuParts;
|
|
38
|
-
|
|
45
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
|
+
import { n as definePositioner, t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { createContext, useContext } from "react";
|
|
6
7
|
import { Menu as Menu$1 } from "@ark-ui/react/menu";
|
|
7
|
-
|
|
8
|
+
// src/components/menu/index.tsx
|
|
8
9
|
/** The row rung rides the context because Ark's Root renders no DOM of
|
|
9
10
|
* its own — the vessel (Content) is the element the rung can land on,
|
|
10
11
|
* and the Portal breaks CSS ancestry between the two. */
|
|
@@ -27,7 +28,8 @@ function MenuContent(props) {
|
|
|
27
28
|
"data-size": size
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
const MenuPositioner = definePositioner(Menu$1.Positioner);
|
|
32
|
+
function MenuFacade({ portal = false, open, defaultOpen, trigger, items, disabled = false, placement = "bottom-start", size = "md", onSelect, onOpenChange }) {
|
|
31
33
|
return /* @__PURE__ */ jsxs(MenuRoot, {
|
|
32
34
|
size,
|
|
33
35
|
positioning: { placement },
|
|
@@ -41,19 +43,22 @@ function MenuFacade({ open, defaultOpen, trigger, items, disabled = false, place
|
|
|
41
43
|
width: 14,
|
|
42
44
|
height: 14
|
|
43
45
|
}) })]
|
|
44
|
-
}), /* @__PURE__ */ jsx(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
}), /* @__PURE__ */ jsx(FloatingPortal, {
|
|
47
|
+
portal,
|
|
48
|
+
children: /* @__PURE__ */ jsx(Menu$1.Positioner, { children: /* @__PURE__ */ jsx(MenuContent, { children: items.map((item) => /* @__PURE__ */ jsx(Menu$1.Item, {
|
|
49
|
+
value: item.value,
|
|
50
|
+
disabled: item.disabled,
|
|
51
|
+
children: item.label
|
|
52
|
+
}, item.value)) }) })
|
|
53
|
+
})]
|
|
49
54
|
});
|
|
50
55
|
}
|
|
51
56
|
MenuFacade.displayName = "SMenu";
|
|
52
57
|
const Menu = Object.assign(MenuFacade, {
|
|
53
58
|
...Menu$1,
|
|
59
|
+
Positioner: MenuPositioner,
|
|
54
60
|
Root: MenuRoot,
|
|
55
61
|
Content: MenuContent
|
|
56
62
|
});
|
|
57
63
|
injectComponentStyle("menu");
|
|
58
|
-
//#endregion
|
|
59
64
|
export { Menu };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { n as FloatingPortalTarget } from "../../floating-BhcDRgnx.mjs";
|
|
1
2
|
import { Menu } from "../menu/index.mjs";
|
|
2
3
|
import { HTMLAttributes } from "react";
|
|
3
|
-
//#region src/components/menubar/index.d.ts
|
|
4
4
|
export interface MenubarEntry {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
@@ -24,11 +24,13 @@ export interface MenubarGroup {
|
|
|
24
24
|
* version. Inside an open menu the machine handles arrows and Escape.
|
|
25
25
|
*/
|
|
26
26
|
export interface MenubarProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
27
|
+
/** Portal after hydration; `false` keeps the vessel inline. */
|
|
28
|
+
portal?: FloatingPortalTarget;
|
|
27
29
|
/** The menus across the bar, each with its entries. */
|
|
28
30
|
items: MenubarGroup[];
|
|
29
31
|
/** Called with the entry's `value` when it is chosen. */
|
|
30
32
|
onSelect?: (value: string) => void;
|
|
31
33
|
}
|
|
32
|
-
declare function MenubarImpl({ items, onSelect, children, ...rest }: MenubarProps): import("react").JSX.Element;
|
|
34
|
+
declare function MenubarImpl({ portal, items, onSelect, children, ...rest }: MenubarProps): import("react").JSX.Element;
|
|
33
35
|
export declare const Menubar: typeof MenubarImpl & typeof Menu;
|
|
34
|
-
|
|
36
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
|
|
2
3
|
import { Menu as Menu$1 } from "../menu/index.mjs";
|
|
3
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Portal } from "@ark-ui/react/portal";
|
|
6
6
|
import { Menu } from "@ark-ui/react/menu";
|
|
7
|
-
|
|
8
|
-
function MenubarImpl({ items, onSelect, children, ...rest }) {
|
|
7
|
+
// src/components/menubar/index.tsx
|
|
8
|
+
function MenubarImpl({ portal = false, items, onSelect, children, ...rest }) {
|
|
9
9
|
injectComponentStyle("menubar");
|
|
10
10
|
injectComponentStyle("menu");
|
|
11
11
|
const hostId = useElementId("menubar", rest);
|
|
@@ -26,16 +26,18 @@ function MenubarImpl({ items, onSelect, children, ...rest }) {
|
|
|
26
26
|
"data-part": "trigger",
|
|
27
27
|
children: group.label
|
|
28
28
|
})
|
|
29
|
-
}), /* @__PURE__ */ jsx(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
}), /* @__PURE__ */ jsx(FloatingPortal, {
|
|
30
|
+
portal,
|
|
31
|
+
children: /* @__PURE__ */ jsx(Menu.Positioner, { children: /* @__PURE__ */ jsx(Menu.Content, { children: group.items.map((entry) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
32
|
+
value: entry.value,
|
|
33
|
+
disabled: entry.disabled,
|
|
34
|
+
"data-danger": entry.danger ? "" : void 0,
|
|
35
|
+
onSelect: () => onSelect?.(entry.value),
|
|
36
|
+
children: /* @__PURE__ */ jsx(Menu.ItemText, { children: entry.label })
|
|
37
|
+
}, entry.value)) }) })
|
|
38
|
+
})]
|
|
36
39
|
}, group.label)), children]
|
|
37
40
|
});
|
|
38
41
|
}
|
|
39
42
|
const Menubar = Object.assign(MenubarImpl, Menu$1);
|
|
40
|
-
//#endregion
|
|
41
43
|
export { Menubar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/meter/index.d.ts
|
|
3
2
|
export interface MeterRootProps extends HTMLAttributes<HTMLElement> {
|
|
4
3
|
/** The measured value — clamped between min and max. */
|
|
5
4
|
value: number;
|
|
@@ -22,5 +21,4 @@ export declare const Meter: (({ value, min, max, level, size, label, children, .
|
|
|
22
21
|
displayName: string;
|
|
23
22
|
};
|
|
24
23
|
Track: ({ ...rest }: HTMLAttributes<HTMLElement>) => import("react").JSX.Element;
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
24
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/meter/index.tsx
|
|
4
4
|
function part(name, tag) {
|
|
5
5
|
const Tag = tag;
|
|
6
6
|
const Component = ({ children, ...rest }) => /* @__PURE__ */ jsx(Tag, {
|
|
@@ -55,5 +55,4 @@ const Meter = Object.assign(Root, {
|
|
|
55
55
|
Track
|
|
56
56
|
});
|
|
57
57
|
injectComponentStyle("meter");
|
|
58
|
-
//#endregion
|
|
59
58
|
export { Meter };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import { t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
|
|
1
2
|
import { ComponentProps } from "react";
|
|
2
3
|
import { NavigationMenu as NavigationMenu$1 } from "@ark-ui/react/navigation-menu";
|
|
3
|
-
//#region src/components/navigation-menu/index.d.ts
|
|
4
4
|
/** Ark's NavigationMenu, dressed in the paper-and-ink system: a menubar of
|
|
5
5
|
* ghost triggers with one sliding stroke of primary ink, opening the shared
|
|
6
6
|
* popup vessel. The API is Ark's own — Root, List, Item, Trigger, Link,
|
|
7
7
|
* Content, ViewportPositioner, Viewport, Indicator, ItemIndicator, Arrow. */
|
|
8
8
|
declare function NavigationMenuRoot(props: ComponentProps<typeof NavigationMenu$1.Root>): import("react").JSX.Element;
|
|
9
9
|
declare function NavigationMenuLink(props: ComponentProps<typeof NavigationMenu$1.Link>): import("react").JSX.Element;
|
|
10
|
+
/** The shared panel stage keeps the raw Ark part until a caller opts into
|
|
11
|
+
* a portal; the flat-link facade has no vessel of its own. */
|
|
12
|
+
declare const NavigationMenuViewportPositioner: {
|
|
13
|
+
({ portal, ...rest }: FloatingPortalProps & NavigationMenu$1.ViewportPositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
10
16
|
/** One flat destination in the callable bar; grouped panels and mega
|
|
11
17
|
* menus stay on the anatomy. */
|
|
12
18
|
export interface NavigationMenuLinkOption {
|
|
@@ -24,9 +30,10 @@ declare function NavigationMenuFacade({ items, orientation, className }: Navigat
|
|
|
24
30
|
declare namespace NavigationMenuFacade {
|
|
25
31
|
var displayName: string;
|
|
26
32
|
}
|
|
27
|
-
type NavigationMenuParts = Omit<typeof NavigationMenu$1, "Root" | "Link"> & {
|
|
33
|
+
type NavigationMenuParts = Omit<typeof NavigationMenu$1, "Root" | "Link" | "ViewportPositioner"> & {
|
|
28
34
|
Root: typeof NavigationMenuRoot;
|
|
29
35
|
Link: typeof NavigationMenuLink;
|
|
36
|
+
ViewportPositioner: typeof NavigationMenuViewportPositioner;
|
|
30
37
|
};
|
|
31
38
|
export declare const NavigationMenu: typeof NavigationMenuFacade & NavigationMenuParts;
|
|
32
|
-
|
|
39
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
2
|
+
import { n as definePositioner } from "../../floating-CMR7cvmA.mjs";
|
|
2
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { NavigationMenu as NavigationMenu$1 } from "@ark-ui/react/navigation-menu";
|
|
5
|
-
|
|
6
|
+
// src/components/navigation-menu/index.tsx
|
|
6
7
|
/** Ark's NavigationMenu, dressed in the paper-and-ink system: a menubar of
|
|
7
8
|
* ghost triggers with one sliding stroke of primary ink, opening the shared
|
|
8
9
|
* popup vessel. The API is Ark's own — Root, List, Item, Trigger, Link,
|
|
@@ -21,6 +22,10 @@ function NavigationMenuLink(props) {
|
|
|
21
22
|
"data-motion": "ink-ripple"
|
|
22
23
|
});
|
|
23
24
|
}
|
|
25
|
+
/** The shared panel stage keeps the raw Ark part until a caller opts into
|
|
26
|
+
* a portal; the flat-link facade has no vessel of its own. */
|
|
27
|
+
const NavigationMenuViewportPositioner = definePositioner(NavigationMenu$1.ViewportPositioner);
|
|
28
|
+
NavigationMenuViewportPositioner.displayName = "SNavigationMenuViewportPositioner";
|
|
24
29
|
function NavigationMenuFacade({ items, orientation = "horizontal", className }) {
|
|
25
30
|
return /* @__PURE__ */ jsx(NavigationMenuRoot, {
|
|
26
31
|
className,
|
|
@@ -39,8 +44,8 @@ NavigationMenuFacade.displayName = "SNavigationMenu";
|
|
|
39
44
|
const NavigationMenu = Object.assign(NavigationMenuFacade, {
|
|
40
45
|
...NavigationMenu$1,
|
|
41
46
|
Root: NavigationMenuRoot,
|
|
42
|
-
Link: NavigationMenuLink
|
|
47
|
+
Link: NavigationMenuLink,
|
|
48
|
+
ViewportPositioner: NavigationMenuViewportPositioner
|
|
43
49
|
});
|
|
44
50
|
injectComponentStyle("navigation-menu");
|
|
45
|
-
//#endregion
|
|
46
51
|
export { NavigationMenu };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "react";
|
|
2
2
|
import { NumberInput as NumberInput$1 } from "@ark-ui/react/number-input";
|
|
3
|
-
//#region src/components/number-input/index.d.ts
|
|
4
3
|
type NumberInputRootProps = ComponentProps<typeof NumberInput$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder for the field and its stepper. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -35,4 +34,4 @@ export declare const NumberInput: typeof NumberInputFacade & {
|
|
|
35
34
|
Scrubber: import("react").ForwardRefExoticComponent<NumberInput$1.ScrubberProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
36
35
|
ValueText: import("react").ForwardRefExoticComponent<NumberInput$1.ValueTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
37
36
|
};
|
|
38
|
-
|
|
37
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as useElementId } from "../../id-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as useElementId } from "../../id-Ctic_3o8.mjs";
|
|
3
3
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { NumberInput as NumberInput$1 } from "@ark-ui/react/number-input";
|
|
6
|
-
|
|
6
|
+
// src/components/number-input/index.tsx
|
|
7
7
|
function NumberInputRoot(props) {
|
|
8
8
|
const id = useElementId("number-input", props);
|
|
9
9
|
const { size = "md", ...rest } = props;
|
|
@@ -42,5 +42,4 @@ const NumberInput = Object.assign(NumberInputFacade, {
|
|
|
42
42
|
Root: NumberInputRoot
|
|
43
43
|
});
|
|
44
44
|
injectComponentStyle("number-input");
|
|
45
|
-
//#endregion
|
|
46
45
|
export { NumberInput };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/order-list/index.d.ts
|
|
3
2
|
export interface OrderOption {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
@@ -21,4 +20,4 @@ declare function OrderListImpl({ value, options, label, onValueChange, ...rest }
|
|
|
21
20
|
export declare const OrderList: typeof OrderListImpl & {
|
|
22
21
|
Root: typeof OrderListImpl;
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as iconNode } from "../../icon-
|
|
2
|
-
import { t as withSelfRoot } from "../../family-
|
|
3
|
-
import { n as useComponentMessages } from "../../messages-
|
|
1
|
+
import { r as iconNode } from "../../icon-C9udWCyz.mjs";
|
|
2
|
+
import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
|
|
3
|
+
import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
|
|
4
4
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useRef, useState } from "react";
|
|
7
|
-
|
|
7
|
+
// src/components/order-list/index.tsx
|
|
8
8
|
const ORDER_ICONS = {
|
|
9
9
|
up: { name: "chevron-up" },
|
|
10
10
|
down: { name: "chevron-down" },
|
|
@@ -159,5 +159,4 @@ function OrderListImpl({ value, options, label, onValueChange, ...rest }) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
const OrderList = withSelfRoot(OrderListImpl);
|
|
162
|
-
//#endregion
|
|
163
162
|
export { OrderList };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { HTMLAttributes } from "react";
|
|
2
|
-
//#region src/components/page-header/index.d.ts
|
|
3
2
|
export declare const PageHeader: {
|
|
4
3
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
5
4
|
displayName: string;
|
|
@@ -28,5 +27,4 @@ export declare const PageHeader: {
|
|
|
28
27
|
({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
|
|
29
28
|
displayName: string;
|
|
30
29
|
};
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
30
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
// src/components/page-header/index.tsx
|
|
4
4
|
/** The page's face: an eyebrow whisper, a serif title, one line of
|
|
5
5
|
* description, and the actions resting beside the title on the same
|
|
6
6
|
* baseline. Heading groups title and actions; the rest compose below. */
|
|
@@ -30,5 +30,4 @@ const PageHeader = Object.assign(Root, {
|
|
|
30
30
|
Actions
|
|
31
31
|
});
|
|
32
32
|
injectComponentStyle("page-header");
|
|
33
|
-
//#endregion
|
|
34
33
|
export { PageHeader };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ComponentProps } from "react";
|
|
2
2
|
import { Pagination as Pagination$1 } from "@ark-ui/react/pagination";
|
|
3
|
-
//#region src/components/pagination/index.d.ts
|
|
4
3
|
type PaginationRootProps = ComponentProps<typeof Pagination$1.Root> & {
|
|
5
4
|
/** One rung of the control-height ladder every page seal shares. */
|
|
6
5
|
size?: "sm" | "md" | "lg";
|
|
@@ -27,8 +26,8 @@ type PaginationFacadeProps = {
|
|
|
27
26
|
style?: CSSProperties;
|
|
28
27
|
onValueChange?: (page: number) => void;
|
|
29
28
|
};
|
|
30
|
-
declare const PaginationPrevTrigger: import("react").ForwardRefExoticComponent<Pagination$1.PrevTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
|
-
declare const PaginationNextTrigger: import("react").ForwardRefExoticComponent<Pagination$1.NextTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
29
|
+
declare const PaginationPrevTrigger: import("react").ForwardRefExoticComponent<Pagination$1.PrevTriggerProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
30
|
+
declare const PaginationNextTrigger: import("react").ForwardRefExoticComponent<Pagination$1.NextTriggerProps & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
32
31
|
/** The complete pagination bar behind one page: count and page size become
|
|
33
32
|
* the visible ladder, with edge semantics left to anatomy. */
|
|
34
33
|
declare function PaginationFacade(props: PaginationFacadeProps): import("react").JSX.Element;
|
|
@@ -37,4 +36,4 @@ export declare const Pagination: typeof PaginationFacade & Omit<typeof Paginatio
|
|
|
37
36
|
PrevTrigger: typeof PaginationPrevTrigger;
|
|
38
37
|
NextTrigger: typeof PaginationNextTrigger;
|
|
39
38
|
};
|
|
40
|
-
|
|
39
|
+
export {};
|