@bysages/react 0.4.0 → 0.4.2
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-response-B4DX7nmJ.mjs → ai-response-nhDOlELQ.mjs} +1 -1
- package/dist/components/accordion/index.mjs +1 -1
- package/dist/components/affix/index.mjs +2 -2
- package/dist/components/ai/index.d.mts +1 -1
- package/dist/components/ai/index.mjs +2 -2
- package/dist/components/ai-action/index.mjs +1 -1
- package/dist/components/ai-attachments/index.mjs +1 -1
- package/dist/components/ai-message/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.mjs +4 -13
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.mjs +1 -1
- package/dist/components/ai-suggestion/index.mjs +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/alert/index.mjs +1 -1
- package/dist/components/angle-slider/index.mjs +1 -1
- package/dist/components/aspect-ratio/index.mjs +1 -1
- package/dist/components/autocomplete/index.mjs +9 -2
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/avatar-group/index.mjs +1 -1
- package/dist/components/back-top/index.mjs +1 -1
- package/dist/components/badge/index.mjs +1 -1
- package/dist/components/banner/index.mjs +1 -1
- package/dist/components/bento/index.mjs +1 -1
- package/dist/components/block-ui/index.mjs +1 -1
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/browser/index.mjs +1 -1
- package/dist/components/button/index.mjs +1 -1
- package/dist/components/button-group/index.mjs +1 -1
- package/dist/components/calendar/index.d.mts +18 -7
- package/dist/components/calendar/index.mjs +79 -43
- package/dist/components/card/index.mjs +1 -1
- package/dist/components/carousel/index.mjs +1 -1
- package/dist/components/cascade-select/index.mjs +2 -2
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/checkbox-group/index.mjs +1 -1
- package/dist/components/chip/index.d.mts +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/clipboard/index.mjs +1 -1
- package/dist/components/collapsible/index.mjs +1 -1
- package/dist/components/color-picker/index.mjs +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/command/index.mjs +1 -1
- package/dist/components/comment/index.mjs +1 -1
- package/dist/components/container/index.mjs +1 -1
- package/dist/components/data-view/index.mjs +1 -1
- package/dist/components/date-input/index.mjs +1 -1
- package/dist/components/date-picker/index.mjs +1 -1
- package/dist/components/deferred-content/index.mjs +1 -1
- package/dist/components/descriptions/index.mjs +1 -1
- package/dist/components/dialog/index.mjs +1 -1
- package/dist/components/dock/index.mjs +1 -1
- package/dist/components/drawer/index.mjs +1 -1
- package/dist/components/dynamic-input/index.mjs +2 -2
- package/dist/components/editable/index.mjs +1 -1
- package/dist/components/ellipsis/index.mjs +1 -1
- package/dist/components/empty/index.mjs +1 -1
- package/dist/components/field/index.mjs +1 -1
- package/dist/components/fieldset/index.mjs +1 -1
- package/dist/components/file-upload/index.mjs +1 -1
- package/dist/components/float-button/index.mjs +1 -1
- package/dist/components/floating-panel/index.mjs +1 -1
- package/dist/components/form/index.d.mts +48 -2
- package/dist/components/form/index.mjs +1 -1
- package/dist/components/grid/index.mjs +1 -1
- package/dist/components/highlight/index.mjs +1 -1
- package/dist/components/hover-card/index.mjs +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/image/index.mjs +1 -1
- package/dist/components/image-cropper/index.mjs +1 -1
- package/dist/components/image-viewer/index.mjs +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input-group/index.mjs +1 -1
- package/dist/components/json-tree-view/index.mjs +1 -1
- package/dist/components/kbd/index.mjs +1 -1
- package/dist/components/layout/index.mjs +1 -1
- package/dist/components/link/index.mjs +1 -1
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/listbox/index.mjs +1 -1
- package/dist/components/marquee/index.mjs +1 -1
- package/dist/components/masonry/index.mjs +1 -1
- package/dist/components/media-player/index.mjs +1 -1
- package/dist/components/mentions/index.mjs +1 -1
- package/dist/components/menu/index.mjs +1 -1
- package/dist/components/menubar/index.mjs +1 -1
- package/dist/components/meter/index.mjs +1 -1
- package/dist/components/navigation-menu/index.mjs +1 -1
- package/dist/components/number-input/index.mjs +1 -1
- package/dist/components/order-list/index.mjs +1 -1
- package/dist/components/page-header/index.mjs +1 -1
- package/dist/components/pagination/index.d.mts +2 -0
- package/dist/components/pagination/index.mjs +31 -6
- package/dist/components/password-input/index.mjs +1 -1
- package/dist/components/pin-input/index.mjs +1 -1
- package/dist/components/popconfirm/index.mjs +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/progress/index.d.mts +2 -2
- package/dist/components/progress/index.mjs +21 -5
- package/dist/components/progress-group/index.mjs +1 -1
- package/dist/components/qr-code/index.mjs +1 -1
- package/dist/components/radio-group/index.mjs +1 -1
- package/dist/components/rating-group/index.mjs +1 -1
- package/dist/components/result/index.mjs +1 -1
- package/dist/components/scroll-area/index.mjs +1 -1
- package/dist/components/segment-group/index.mjs +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/separator/index.mjs +1 -1
- package/dist/components/signature-pad/index.mjs +1 -1
- package/dist/components/skeleton/index.mjs +1 -1
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/spinner/index.mjs +1 -1
- package/dist/components/split-button/index.mjs +1 -1
- package/dist/components/splitter/index.mjs +1 -1
- package/dist/components/spotlight/index.mjs +1 -1
- package/dist/components/stack/index.mjs +1 -1
- package/dist/components/stat/index.mjs +1 -1
- package/dist/components/steps/index.d.mts +5 -1
- package/dist/components/steps/index.mjs +7 -5
- package/dist/components/swap/index.mjs +1 -1
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/index.mjs +14 -5
- package/dist/components/tabs/index.mjs +1 -1
- package/dist/components/tag/index.d.mts +33 -0
- package/dist/components/tag/index.mjs +69 -0
- package/dist/components/tags-input/index.mjs +1 -1
- package/dist/components/terminal/index.mjs +1 -1
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/timer/index.mjs +1 -1
- package/dist/components/toast/index.mjs +1 -1
- package/dist/components/toc/index.mjs +1 -1
- package/dist/components/toggle/index.mjs +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/components/toolbar/index.mjs +1 -1
- package/dist/components/tooltip/index.mjs +1 -1
- package/dist/components/tour/index.mjs +1 -1
- package/dist/components/transfer/index.mjs +2 -2
- package/dist/components/tree-select/index.mjs +2 -2
- package/dist/components/tree-view/index.mjs +1 -1
- package/dist/components/typography/index.mjs +1 -1
- package/dist/components/user/index.mjs +1 -1
- package/dist/components/virtual-list/index.mjs +1 -1
- package/dist/components/watermark/index.mjs +1 -1
- package/dist/{image-viewer-Cf6thHax.mjs → image-viewer-B-hKFkEw.mjs} +1 -1
- package/dist/{index-DdNKngUQ.d.mts → index-B4twHAQC.d.mts} +138 -89
- package/dist/index.d.mts +4 -3
- package/dist/index.mjs +8 -7
- package/dist/{input-C21Zzuy6.mjs → input-BDpQ0e6G.mjs} +1 -1
- package/dist/{media-player-gQrnxU52.mjs → media-player-DjVvo1_7.mjs} +2 -2
- package/dist/{mentions-BuWibdci.mjs → mentions-BwnyvdXz.mjs} +1 -1
- package/dist/{select-ozUFq0zd.mjs → select-i9UZsQCU.mjs} +1 -1
- package/package.json +9 -81
- package/dist/index-PsgGWW3m.d.mts +0 -1819
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "./family-DE_GQeeM.mjs";
|
|
2
2
|
import { n as useComponentMessages } from "./messages-1jJWtaYU.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { useEffect, useRef } from "react";
|
|
6
6
|
import { renderHtml } from "@tanstack/markdown/html";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
3
|
import { Accordion as Accordion$1 } from "@ark-ui/react/accordion";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/accordion/index.tsx
|
|
7
7
|
/** Ark's Accordion, dressed in the paper-and-ink system: a ruled sheet
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/affix/index.tsx
|
|
5
|
-
function AffixImpl({ offsetTop
|
|
5
|
+
function AffixImpl({ offsetTop, offsetBottom, ...rest }) {
|
|
6
6
|
injectComponentStyle("affix");
|
|
7
7
|
return /* @__PURE__ */ jsx("div", {
|
|
8
8
|
...rest,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FileUIPart, c as SourceUrlUIPart, d as ToolUIPart, f as UIMessage, i as DataUIPart, l as StepStartUIPart, n as AiActions, o as ReasoningUIPart, p as UIMessagePart, r as AiContent, s as SourceDocumentUIPart, t as Ai, u as TextUIPart } from "../../index-
|
|
1
|
+
import { a as FileUIPart, c as SourceUrlUIPart, d as ToolUIPart, f as UIMessage, i as DataUIPart, l as StepStartUIPart, n as AiActions, o as ReasoningUIPart, p as UIMessagePart, r as AiContent, s as SourceDocumentUIPart, t as Ai, u as TextUIPart } from "../../index-B4twHAQC.mjs";
|
|
2
2
|
export { Ai, AiActions, AiContent, type DataUIPart, type FileUIPart, type ReasoningUIPart, type SourceDocumentUIPart, type SourceUrlUIPart, type StepStartUIPart, type TextUIPart, type ToolUIPart, type UIMessage, type UIMessagePart };
|
|
@@ -4,11 +4,11 @@ import { Action } from "../ai-action/index.mjs";
|
|
|
4
4
|
import { AiMessage as Message } from "../ai-message/index.mjs";
|
|
5
5
|
import { AiPromptInput as PromptInput } from "../ai-prompt-input/index.mjs";
|
|
6
6
|
import { AiReasoning as Reasoning } from "../ai-reasoning/index.mjs";
|
|
7
|
-
import { t as Response } from "../../ai-response-
|
|
7
|
+
import { t as Response } from "../../ai-response-nhDOlELQ.mjs";
|
|
8
8
|
import { AiSource as Source, AiSources as Sources } from "../ai-source/index.mjs";
|
|
9
9
|
import { AiSuggestion as Suggestion } from "../ai-suggestion/index.mjs";
|
|
10
10
|
import { AiTool as Tool } from "../ai-tool/index.mjs";
|
|
11
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
11
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
12
12
|
import { jsx } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/ai/index.tsx
|
|
14
14
|
/** A conversation column: Root is the log, Message carries a role, and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/ai-action/index.tsx
|
|
6
6
|
function ActionImpl({ label, children, ...rest }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
3
|
import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-attachments/index.tsx
|
|
7
7
|
const imageIcon = iconNode("image", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ai-message/index.tsx
|
|
5
5
|
function MessageImpl({ role = "assistant", children, ...rest }) {
|
|
@@ -3,8 +3,8 @@ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
|
3
3
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
4
4
|
import { Button } from "../button/index.mjs";
|
|
5
5
|
import { Field } from "../field/index.mjs";
|
|
6
|
-
import { n as MentionsVessel, r as useMentions } from "../../mentions-
|
|
7
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
6
|
+
import { n as MentionsVessel, r as useMentions } from "../../mentions-BwnyvdXz.mjs";
|
|
7
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useRef } from "react";
|
|
10
10
|
//#region src/components/ai-prompt-input/index.tsx
|
|
@@ -12,18 +12,9 @@ const arrowUpIcon = iconNode("arrow-up", {
|
|
|
12
12
|
width: 14,
|
|
13
13
|
height: 14
|
|
14
14
|
});
|
|
15
|
-
const stopIcon =
|
|
16
|
-
viewBox: "0 0 16 16",
|
|
15
|
+
const stopIcon = iconNode("square", {
|
|
17
16
|
width: 14,
|
|
18
|
-
height: 14
|
|
19
|
-
"aria-hidden": "true",
|
|
20
|
-
children: /* @__PURE__ */ jsx("rect", {
|
|
21
|
-
x: 4.5,
|
|
22
|
-
y: 4.5,
|
|
23
|
-
width: 7,
|
|
24
|
-
height: 7,
|
|
25
|
-
fill: "currentColor"
|
|
26
|
-
})
|
|
17
|
+
height: 14
|
|
27
18
|
});
|
|
28
19
|
/** An empty slot leaves no part in the anatomy — the bare vessel keeps
|
|
29
20
|
* its single-line posture. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
2
|
import { t as chevron } from "../../chevron-a2nIZKN4.mjs";
|
|
3
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-reasoning/index.tsx
|
|
7
7
|
function ReasoningImpl({ label = "Thinking", children, ...rest }) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Response } from "../../ai-response-
|
|
1
|
+
import { t as Response } from "../../ai-response-nhDOlELQ.mjs";
|
|
2
2
|
export { Response as AiResponse, Response };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ai-source/index.tsx
|
|
5
5
|
function SourceImpl({ href, children, ...rest }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
2
|
import { Button } from "../button/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/ai-suggestion/index.tsx
|
|
6
6
|
function SuggestionImpl({ prompt, onSelect, ...rest }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
2
|
import { t as chevron } from "../../chevron-a2nIZKN4.mjs";
|
|
3
3
|
import { Collapsible } from "../collapsible/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-tool/index.tsx
|
|
7
7
|
function ToolImpl({ name, label, status, input, output, ...rest }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { createContext, useContext } from "react";
|
|
5
5
|
//#region src/components/alert/index.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { AngleSlider as AngleSlider$1 } from "@ark-ui/react/angle-slider";
|
|
5
5
|
//#region src/components/angle-slider/index.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/aspect-ratio/index.tsx
|
|
5
5
|
function AspectRatioImpl({ ratio = "1 / 1", ...rest }) {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
2
2
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
3
3
|
import { Combobox as Combobox$1 } from "../combobox/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect, useRef } from "react";
|
|
6
7
|
import { Portal } from "@ark-ui/react/portal";
|
|
7
8
|
import { useListCollection } from "@ark-ui/react/collection";
|
|
8
9
|
import { Combobox } from "@ark-ui/react/combobox";
|
|
@@ -11,10 +12,15 @@ function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size =
|
|
|
11
12
|
injectComponentStyle("combobox");
|
|
12
13
|
const messages = useComponentMessages();
|
|
13
14
|
const hostId = useElementId("autocomplete", rest);
|
|
14
|
-
const
|
|
15
|
+
const fieldText = useRef("");
|
|
16
|
+
const { collection, set, filter: filterItems } = useListCollection({
|
|
15
17
|
initialItems: items,
|
|
16
18
|
filter: (item, input) => filter ? filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
|
|
17
19
|
});
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
set(items);
|
|
22
|
+
filterItems(fieldText.current);
|
|
23
|
+
}, [items]);
|
|
18
24
|
return /* @__PURE__ */ jsxs(Combobox.Root, {
|
|
19
25
|
...rest,
|
|
20
26
|
id: `${hostId}:combobox`,
|
|
@@ -27,6 +33,7 @@ function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size =
|
|
|
27
33
|
if (first != null) onValueChange?.(first);
|
|
28
34
|
},
|
|
29
35
|
onInputValueChange: (details) => {
|
|
36
|
+
fieldText.current = details.inputValue;
|
|
30
37
|
filterItems(details.inputValue);
|
|
31
38
|
onValueChange?.(details.inputValue);
|
|
32
39
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
|
|
5
5
|
//#region src/components/avatar/index.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/avatar-group/index.tsx
|
|
5
5
|
function AvatarGroupImpl({ size, children, ...rest }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
3
3
|
import { Button } from "../button/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
//#region src/components/back-top/index.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/badge/index.tsx
|
|
5
5
|
function BadgeImpl({ tone = "ink", variant = "solid", ...rest }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/banner/index.tsx
|
|
6
6
|
/** A page-level notice, spoken across the full measure: a wash of the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/bento/index.tsx
|
|
4
4
|
/** The bento lattice: a grid of unequal tiles that reads as one plate.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
2
|
import { Spinner } from "../spinner/index.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/block-ui/index.tsx
|
|
6
6
|
/** A curtain over content that must wait: the blocked region keeps its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/breadcrumb/index.tsx
|
|
5
5
|
/** A trail of waymarks: Root wraps the nav, List the ordered trail, and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/browser/index.tsx
|
|
4
4
|
/** The three lamps are the system's own fixed pigments — the same
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Children, cloneElement, isValidElement } from "react";
|
|
5
5
|
//#region src/components/button/index.tsx
|
|
@@ -2,18 +2,29 @@ import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
import { DatePickerRootProps } from "@ark-ui/react/date-picker";
|
|
4
4
|
//#region src/components/calendar/index.d.ts
|
|
5
|
-
export interface CalendarProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
export interface CalendarProps extends Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> {
|
|
6
6
|
/** Selected date(s) — an array, as the machine speaks in ranges. */
|
|
7
7
|
value?: DatePickerRootProps["value"];
|
|
8
|
+
defaultValue?: DatePickerRootProps["defaultValue"];
|
|
8
9
|
min?: DatePickerRootProps["min"];
|
|
9
10
|
max?: DatePickerRootProps["max"];
|
|
11
|
+
/** compact keeps the popup's measure; full gives cells room for content. */
|
|
12
|
+
variant?: "compact" | "full";
|
|
13
|
+
/** month is the day grid; year starts on a month overview. */
|
|
14
|
+
mode?: "month" | "year";
|
|
15
|
+
selectionMode?: DatePickerRootProps["selectionMode"];
|
|
16
|
+
startOfWeek?: number;
|
|
17
|
+
fixedWeeks?: boolean;
|
|
18
|
+
showWeekNumbers?: boolean;
|
|
19
|
+
outsideDaySelectable?: boolean;
|
|
20
|
+
closeOnSelect?: boolean;
|
|
21
|
+
minView?: DatePickerRootProps["minView"];
|
|
22
|
+
maxView?: DatePickerRootProps["maxView"];
|
|
10
23
|
onValueChange?: (value: NonNullable<DatePickerRootProps["value"]>) => void;
|
|
11
24
|
}
|
|
12
|
-
/** The date-picker's
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
* Ark's own contract. */
|
|
17
|
-
declare function CalendarImpl({ value, min, max, onValueChange, children, ...rest }: CalendarProps): import("react").JSX.Element;
|
|
25
|
+
/** The date-picker's grid standing on the page. Compact is the popup's
|
|
26
|
+
* quiet card; full opens it into a dashboard calendar. Year mode starts
|
|
27
|
+
* on a month overview; choosing a month drills into its day grid. */
|
|
28
|
+
declare function CalendarImpl({ value, defaultValue, min, max, variant, mode, selectionMode, startOfWeek, fixedWeeks, showWeekNumbers, outsideDaySelectable, closeOnSelect, minView, maxView, onValueChange, children, ...rest }: CalendarProps): import("react").JSX.Element;
|
|
18
29
|
export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
|
|
19
30
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { DatePicker } from "@ark-ui/react/date-picker";
|
|
7
7
|
//#region src/components/calendar/index.tsx
|
|
8
8
|
function chevron(dir) {
|
|
@@ -11,81 +11,117 @@ function chevron(dir) {
|
|
|
11
11
|
height: 16
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
/** The date-picker's
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
|
|
18
|
-
* Ark's own contract. */
|
|
19
|
-
function CalendarImpl({ value, min, max, onValueChange, children, ...rest }) {
|
|
14
|
+
/** The date-picker's grid standing on the page. Compact is the popup's
|
|
15
|
+
* quiet card; full opens it into a dashboard calendar. Year mode starts
|
|
16
|
+
* on a month overview; choosing a month drills into its day grid. */
|
|
17
|
+
function CalendarImpl({ value, defaultValue, min, max, variant = "compact", mode = "month", selectionMode, startOfWeek, fixedWeeks = false, showWeekNumbers = false, outsideDaySelectable = true, closeOnSelect = true, minView, maxView, onValueChange, children, ...rest }) {
|
|
20
18
|
injectComponentStyle("calendar");
|
|
21
19
|
injectComponentStyle("date-picker");
|
|
22
20
|
const hostId = useElementId("calendar", rest);
|
|
23
21
|
const title = (dp) => {
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
26
|
-
if (dp.view === "
|
|
22
|
+
const date = dp.focusedValue;
|
|
23
|
+
if (!date) return "";
|
|
24
|
+
if (dp.view === "month") return dp.format(date, { year: "numeric" });
|
|
25
|
+
if (dp.view === "day") return dp.format(date, {
|
|
27
26
|
month: "long",
|
|
28
27
|
year: "numeric"
|
|
29
28
|
});
|
|
30
|
-
|
|
31
|
-
const decade = Math.floor(d.year / 10) * 10;
|
|
29
|
+
const decade = Math.floor(date.year / 10) * 10;
|
|
32
30
|
return `${decade} - ${decade + 9}`;
|
|
33
31
|
};
|
|
34
|
-
const header = /* @__PURE__ */ jsx("div", {
|
|
32
|
+
const header = (dp) => /* @__PURE__ */ jsx("div", {
|
|
35
33
|
"data-scope": "calendar",
|
|
36
34
|
"data-part": "header",
|
|
37
35
|
children: /* @__PURE__ */ jsxs(DatePicker.ViewControl, { children: [
|
|
38
36
|
/* @__PURE__ */ jsx(DatePicker.PrevTrigger, { children: chevron("left") }),
|
|
39
|
-
/* @__PURE__ */ jsx(DatePicker.Context, { children: (
|
|
37
|
+
/* @__PURE__ */ jsx(DatePicker.Context, { children: (context) => /* @__PURE__ */ jsx(DatePicker.ViewTrigger, { children: title(context) }) }),
|
|
38
|
+
variant === "full" && dp ? todayTrigger(dp) : null,
|
|
40
39
|
/* @__PURE__ */ jsx(DatePicker.NextTrigger, { children: chevron("right") })
|
|
41
40
|
] })
|
|
42
41
|
});
|
|
42
|
+
const todayTrigger = (dp) => /* @__PURE__ */ jsx("button", {
|
|
43
|
+
type: "button",
|
|
44
|
+
"data-scope": "calendar",
|
|
45
|
+
"data-part": "today-trigger",
|
|
46
|
+
onClick: () => {
|
|
47
|
+
dp.selectToday();
|
|
48
|
+
if (mode === "year" && dp.view === "month") dp.setView("day");
|
|
49
|
+
},
|
|
50
|
+
children: "Today"
|
|
51
|
+
});
|
|
52
|
+
const dayTable = (dp) => {
|
|
53
|
+
const weeks = dp.weeks;
|
|
54
|
+
return /* @__PURE__ */ jsxs(DatePicker.Table, { children: [/* @__PURE__ */ jsx(DatePicker.TableHead, { children: /* @__PURE__ */ jsxs(DatePicker.TableRow, { children: [showWeekNumbers ? /* @__PURE__ */ jsx(DatePicker.WeekNumberHeaderCell, { children: "Wk" }) : null, dp.weekDays.map((day, id) => /* @__PURE__ */ jsx(DatePicker.TableHeader, {
|
|
55
|
+
"aria-label": day.long,
|
|
56
|
+
children: day.narrow
|
|
57
|
+
}, id))] }) }), /* @__PURE__ */ jsx(DatePicker.TableBody, { children: weeks.map((week, id) => /* @__PURE__ */ jsxs(DatePicker.TableRow, { children: [showWeekNumbers ? /* @__PURE__ */ jsx(DatePicker.WeekNumberCell, {
|
|
58
|
+
weekIndex: id,
|
|
59
|
+
week,
|
|
60
|
+
children: dp.getWeekNumber(week)
|
|
61
|
+
}, "week") : null, week.map((day, cellId) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
62
|
+
value: day,
|
|
63
|
+
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: day.day })
|
|
64
|
+
}, cellId))] }, id)) })] });
|
|
65
|
+
};
|
|
66
|
+
const monthGrid = (dp, columns) => /* @__PURE__ */ jsx(DatePicker.Table, {
|
|
67
|
+
columns,
|
|
68
|
+
children: /* @__PURE__ */ jsx(DatePicker.TableBody, { children: dp.getMonthsGrid({
|
|
69
|
+
columns,
|
|
70
|
+
format: columns === 4 ? "short" : "long"
|
|
71
|
+
}).map((months, id) => /* @__PURE__ */ jsx(DatePicker.TableRow, { children: months.map((month, monthId) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
72
|
+
value: month.value,
|
|
73
|
+
columns,
|
|
74
|
+
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: month.label })
|
|
75
|
+
}, monthId)) }, id)) })
|
|
76
|
+
});
|
|
77
|
+
const yearGrid = (dp) => /* @__PURE__ */ jsx(DatePicker.Table, {
|
|
78
|
+
columns: 3,
|
|
79
|
+
children: /* @__PURE__ */ jsx(DatePicker.TableBody, { children: dp.getYearsGrid({ columns: 3 }).map((years, id) => /* @__PURE__ */ jsx(DatePicker.TableRow, { children: years.map((year, yearId) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
80
|
+
value: year.value,
|
|
81
|
+
columns: 3,
|
|
82
|
+
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: year.label })
|
|
83
|
+
}, yearId)) }, id)) })
|
|
84
|
+
});
|
|
43
85
|
return /* @__PURE__ */ jsxs("div", {
|
|
44
86
|
...rest,
|
|
45
87
|
"data-scope": "calendar",
|
|
46
88
|
"data-part": "root",
|
|
89
|
+
"data-variant": variant,
|
|
90
|
+
"data-mode": mode,
|
|
47
91
|
children: [/* @__PURE__ */ jsxs(DatePicker.Root, {
|
|
48
92
|
id: `${hostId}:date-picker`,
|
|
49
93
|
open: true,
|
|
50
|
-
closeOnSelect: true,
|
|
51
94
|
inline: true,
|
|
95
|
+
closeOnSelect,
|
|
96
|
+
outsideDaySelectable,
|
|
52
97
|
...value !== void 0 ? { value } : {},
|
|
98
|
+
...defaultValue !== void 0 ? { defaultValue } : {},
|
|
53
99
|
...min !== void 0 ? { min } : {},
|
|
54
100
|
...max !== void 0 ? { max } : {},
|
|
101
|
+
...selectionMode !== void 0 ? { selectionMode } : {},
|
|
102
|
+
...startOfWeek !== void 0 ? { startOfWeek } : {},
|
|
103
|
+
fixedWeeks: fixedWeeks || variant === "full",
|
|
104
|
+
showWeekNumbers,
|
|
105
|
+
...minView !== void 0 ? { minView } : {},
|
|
106
|
+
...maxView !== void 0 ? { maxView } : {},
|
|
107
|
+
...mode === "year" ? {
|
|
108
|
+
defaultView: "month",
|
|
109
|
+
maxView: "month"
|
|
110
|
+
} : {},
|
|
55
111
|
onValueChange: (details) => onValueChange?.(details.value),
|
|
56
112
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ jsx(DatePicker.View, {
|
|
58
114
|
view: "day",
|
|
59
|
-
children:
|
|
60
|
-
"aria-label": day.long,
|
|
61
|
-
children: day.narrow
|
|
62
|
-
}, id)) }) }) }), /* @__PURE__ */ jsx(DatePicker.TableBody, { children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => dp.weeks.map((week, id) => /* @__PURE__ */ jsx(DatePicker.TableRow, { children: week.map((day, id2) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
63
|
-
value: day,
|
|
64
|
-
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: day.day })
|
|
65
|
-
}, id2)) }, id)) }) })] })]
|
|
115
|
+
children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => /* @__PURE__ */ jsxs(Fragment, { children: [header(dp), dayTable(dp)] }) })
|
|
66
116
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ jsx(DatePicker.View, {
|
|
68
118
|
view: "month",
|
|
69
|
-
children:
|
|
70
|
-
columns: 3,
|
|
71
|
-
children: /* @__PURE__ */ jsx(DatePicker.TableBody, { children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => dp.getMonthsGrid({ columns: 3 }).map((months, id) => /* @__PURE__ */ jsx(DatePicker.TableRow, { children: months.map((month, id2) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
72
|
-
value: month.value,
|
|
73
|
-
columns: 3,
|
|
74
|
-
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: month.label })
|
|
75
|
-
}, id2)) }, id)) }) })
|
|
76
|
-
})]
|
|
119
|
+
children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => /* @__PURE__ */ jsxs(Fragment, { children: [header(dp), monthGrid(dp, mode === "year" ? 4 : 3)] }) })
|
|
77
120
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
121
|
+
mode === "month" ? /* @__PURE__ */ jsx(DatePicker.View, {
|
|
79
122
|
view: "year",
|
|
80
|
-
children:
|
|
81
|
-
|
|
82
|
-
children: /* @__PURE__ */ jsx(DatePicker.TableBody, { children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => dp.getYearsGrid({ columns: 3 }).map((years, id) => /* @__PURE__ */ jsx(DatePicker.TableRow, { children: years.map((year, id2) => /* @__PURE__ */ jsx(DatePicker.TableCell, {
|
|
83
|
-
value: year.value,
|
|
84
|
-
columns: 3,
|
|
85
|
-
children: /* @__PURE__ */ jsx(DatePicker.TableCellTrigger, { children: year.label })
|
|
86
|
-
}, id2)) }, id)) }) })
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
123
|
+
children: /* @__PURE__ */ jsx(DatePicker.Context, { children: (dp) => /* @__PURE__ */ jsxs(Fragment, { children: [header(), yearGrid(dp)] }) })
|
|
124
|
+
}) : null
|
|
89
125
|
]
|
|
90
126
|
}), children]
|
|
91
127
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Carousel as Carousel$1 } from "@ark-ui/react/carousel";
|
|
6
6
|
//#region src/components/carousel/index.tsx
|
|
@@ -2,8 +2,8 @@ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
4
4
|
import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
|
|
5
|
-
import { t as Input } from "../../input-
|
|
6
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
5
|
+
import { t as Input } from "../../input-BDpQ0e6G.mjs";
|
|
6
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { useMemo, useState } from "react";
|
|
9
9
|
import { Portal } from "@ark-ui/react/portal";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Checkbox as Checkbox$1 } from "@ark-ui/react/checkbox";
|
|
6
6
|
//#region src/components/checkbox/index.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
3
|
import { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
|
|
4
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
4
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useFieldContext } from "@ark-ui/react/field";
|
|
7
7
|
import { Checkbox } from "@ark-ui/react/checkbox";
|
|
@@ -5,7 +5,7 @@ import { HTMLAttributes } from "react";
|
|
|
5
5
|
export interface ChipProps extends HTMLAttributes<HTMLSpanElement> {
|
|
6
6
|
value: number;
|
|
7
7
|
max?: number;
|
|
8
|
-
tone?: "ink" | "
|
|
8
|
+
tone?: "ink" | "primary" | "success" | "warning" | "danger" | "info";
|
|
9
9
|
variant?: "solid" | "subtle" | "outline";
|
|
10
10
|
}
|
|
11
11
|
declare function ChipImpl({ value, max, tone, variant, ...rest }: ChipProps): import("react").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
|
|
2
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/chip/index.tsx
|
|
5
5
|
function ChipImpl({ value, max, tone = "ink", variant = "solid", ...rest }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Clipboard as Clipboard$1 } from "@ark-ui/react/clipboard";
|
|
6
6
|
//#region src/components/clipboard/index.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Collapsible as Collapsible$1 } from "@ark-ui/react/collapsible";
|
|
6
6
|
//#region src/components/collapsible/index.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as iconNode } from "../../icon-BALgGtNK.mjs";
|
|
2
2
|
import { t as useElementId } from "../../id-C37UYLwJ.mjs";
|
|
3
|
-
import { injectComponentStyle } from "@bysages/core";
|
|
3
|
+
import { injectComponentStyle } from "@bysages/core/styling";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ColorPicker as ColorPicker$1, parseColor } from "@ark-ui/react/color-picker";
|
|
6
6
|
//#region src/components/color-picker/index.tsx
|