@k8ordo/ui 3.0.0 → 4.0.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/README.md +73 -182
- package/dist/{integrations/_shared → catalog}/icon-map.d.mts +4 -2
- package/dist/catalog/icon-map.mjs +212 -0
- package/dist/catalog/icon-names.d.mts +1 -0
- package/dist/{integrations/_shared → catalog}/icon-names.mjs +3 -1
- package/dist/catalog/index.d.mts +1289 -0
- package/dist/catalog/index.mjs +419 -0
- package/dist/catalog/render.css +34 -0
- package/dist/catalog/render.d.mts +72 -0
- package/dist/catalog/render.mjs +631 -0
- package/dist/catalog/render.module.mjs +11 -0
- package/dist/{integrations/_shared → catalog}/schemas.d.mts +120 -132
- package/dist/{integrations/_shared → catalog}/schemas.mjs +189 -131
- package/dist/catalog/to-tree.d.mts +4 -0
- package/dist/catalog/to-tree.mjs +17 -0
- package/dist/components/_internal/checked-values.d.mts +1 -0
- package/dist/components/_internal/checked-values.mjs +5 -0
- package/dist/components/_internal/field-message.css +25 -0
- package/dist/components/_internal/field-message.d.mts +10 -0
- package/dist/components/_internal/field-message.mjs +22 -0
- package/dist/components/_internal/field-message.module.mjs +9 -0
- package/dist/components/_internal/focus-ring.css +1 -1
- package/dist/components/_internal/high-contrast.css +1 -0
- package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
- package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
- package/dist/components/ai/_internal/attachment-preview.mjs +1 -1
- package/dist/components/ai/_internal/collapsible.mjs +1 -1
- package/dist/components/ai/attachment/attachment.d.mts +1 -1
- package/dist/components/ai/attachment/index.d.mts +1 -1
- package/dist/components/ai/conversation/conversation.mjs +4 -4
- package/dist/components/ai/index.d.mts +2 -2
- package/dist/components/ai/message/index.d.mts +2 -2
- package/dist/components/ai/message/message.d.mts +2 -2
- package/dist/components/ai/message/message.mjs +9 -9
- package/dist/components/ai/prompt-input/prompt-input.mjs +4 -4
- package/dist/components/ai/source/index.d.mts +2 -2
- package/dist/components/ai/source/source.d.mts +2 -2
- package/dist/components/ai/source/source.mjs +1 -1
- package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
- package/dist/components/buttons/button/button.css +1 -1
- package/dist/components/buttons/button/button.d.mts +34 -37
- package/dist/components/buttons/button/button.mjs +37 -24
- package/dist/components/buttons/button/button.module.mjs +0 -1
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.mjs +4 -4
- package/dist/components/buttons/icon-button/icon-button.css +3 -3
- package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
- package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
- package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/toolbar.css +5 -1
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
- package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +4 -4
- package/dist/components/data-display/accordion/index.d.mts +3 -3
- package/dist/components/data-display/card/card-action.d.mts +6 -0
- package/dist/components/data-display/card/card-action.mjs +21 -0
- package/dist/components/data-display/card/card.css +24 -0
- package/dist/components/data-display/card/card.d.mts +26 -3
- package/dist/components/data-display/card/card.mjs +46 -6
- package/dist/components/data-display/card/card.module.mjs +4 -1
- package/dist/components/data-display/card/index.d.mts +2 -2
- package/dist/components/data-display/carousel/carousel.mjs +2 -2
- package/dist/components/data-display/code/code.css +4 -0
- package/dist/components/data-display/code-block/code-block.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.css +0 -3
- package/dist/components/data-display/data-table/data-table.mjs +25 -26
- package/dist/components/data-display/tree/tree.d.mts +1 -1
- package/dist/components/data-display/tree/tree.mjs +6 -5
- package/dist/components/feedback/alert/alert.d.mts +2 -7
- package/dist/components/feedback/alert/alert.mjs +11 -11
- package/dist/components/feedback/alert/index.d.mts +2 -2
- package/dist/components/feedback/callout/callout.mjs +2 -2
- package/dist/components/feedback/progress/progress.mjs +1 -1
- package/dist/components/feedback/toast/context.d.mts +4 -5
- package/dist/components/feedback/toast/index.d.mts +2 -2
- package/dist/components/feedback/toast/provider.d.mts +7 -2
- package/dist/components/feedback/toast/provider.mjs +7 -2
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +12 -9
- package/dist/components/form/calendar/calendar.mjs +3 -5
- package/dist/components/form/checkbox/checkbox.d.mts +3 -1
- package/dist/components/form/checkbox/checkbox.mjs +44 -45
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
- package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
- package/dist/components/form/checkbox-group/index.d.mts +2 -34
- package/dist/components/form/checkbox-group/index.mjs +1 -8
- package/dist/components/form/color-picker/color-picker.css +3 -5
- package/dist/components/form/color-picker/color-picker.d.mts +0 -1
- package/dist/components/form/color-picker/color-picker.mjs +4 -4
- package/dist/components/form/combobox/combobox.d.mts +0 -1
- package/dist/components/form/combobox/combobox.mjs +9 -8
- package/dist/components/form/date-picker/date-picker.css +0 -5
- package/dist/components/form/date-picker/date-picker.mjs +21 -22
- package/dist/components/form/file-field/file-field.d.mts +6 -3
- package/dist/components/form/file-field/file-field.mjs +41 -18
- package/dist/components/form/file-field/index.d.mts +4 -1
- package/dist/components/form/form/form.mjs +0 -1
- package/dist/components/form/form-control/form-control.css +0 -15
- package/dist/components/form/form-control/form-control.d.mts +3 -4
- package/dist/components/form/form-control/form-control.mjs +44 -46
- package/dist/components/form/form-control/form-control.module.mjs +0 -3
- package/dist/components/form/number-field/number-field.d.mts +2 -2
- package/dist/components/form/number-field/number-field.mjs +13 -52
- package/dist/components/form/password-input/password-input.mjs +1 -1
- package/dist/components/form/radio/radio.mjs +4 -2
- package/dist/components/form/radio-card/radio-card.mjs +9 -2
- package/dist/components/form/range-slider/range-slider.d.mts +4 -2
- package/dist/components/form/range-slider/range-slider.mjs +2 -4
- package/dist/components/form/select/select.css +6 -4
- package/dist/components/form/select/select.d.mts +5 -0
- package/dist/components/form/select/select.mjs +10 -7
- package/dist/components/form/slider/slider.d.mts +2 -2
- package/dist/components/form/slider/slider.mjs +3 -6
- package/dist/components/form/switch/switch.d.mts +3 -0
- package/dist/components/form/switch/switch.mjs +43 -31
- package/dist/components/form/text-field/index.d.mts +2 -2
- package/dist/components/form/text-field/text-field.css +4 -0
- package/dist/components/form/text-field/text-field.d.mts +1 -1
- package/dist/components/form/textarea/textarea.d.mts +0 -1
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/icons/base.d.mts +0 -1
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/clipboard-check.d.mts +3 -0
- package/dist/components/icons/clipboard-check.mjs +18 -0
- package/dist/components/icons/git-pull-request.d.mts +3 -0
- package/dist/components/icons/git-pull-request.mjs +20 -0
- package/dist/components/icons/index.d.mts +9 -7
- package/dist/components/icons/index.mjs +30 -28
- package/dist/components/index.d.mts +58 -66
- package/dist/components/index.mjs +13 -19
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
- package/dist/components/navigation/anchor/anchor.css +3 -3
- package/dist/components/navigation/anchor/anchor.mjs +20 -7
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- package/dist/components/navigation/pagination/pagination.mjs +2 -2
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +3 -3
- package/dist/components/navigation/tabs/index.d.mts +10 -5
- package/dist/components/navigation/tabs/tabs.d.mts +11 -6
- package/dist/components/navigation/tabs/tabs.mjs +24 -27
- package/dist/components/overlays/_internal/modal-header.css +38 -0
- package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
- package/dist/components/overlays/_internal/modal-header.mjs +32 -0
- package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
- package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
- package/dist/components/overlays/context-menu/index.d.mts +27 -2
- package/dist/components/overlays/dialog/dialog.css +3 -21
- package/dist/components/overlays/dialog/dialog.d.mts +20 -9
- package/dist/components/overlays/dialog/dialog.mjs +35 -73
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
- package/dist/components/overlays/dialog/index.d.mts +2 -15
- package/dist/components/overlays/dialog/index.mjs +1 -8
- package/dist/components/overlays/drawer/drawer.css +4 -26
- package/dist/components/overlays/drawer/drawer.d.mts +7 -2
- package/dist/components/overlays/drawer/drawer.mjs +24 -37
- package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +29 -11
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
- package/dist/components/overlays/dropdown-menu/shared.css +1 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
- package/dist/components/overlays/list-box/hooks.mjs +2 -2
- package/dist/components/overlays/list-box/index.d.mts +2 -25
- package/dist/components/overlays/list-box/index.mjs +1 -9
- package/dist/components/overlays/list-box/list-box.d.mts +11 -16
- package/dist/components/overlays/list-box/list-box.mjs +23 -16
- package/dist/components/overlays/modal/modal.d.mts +8 -7
- package/dist/components/overlays/modal/modal.mjs +23 -32
- package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
- package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
- package/dist/components/overlays/popover/hooks.d.mts +0 -2
- package/dist/components/overlays/popover/hooks.mjs +0 -2
- package/dist/components/overlays/popover/index.d.mts +19 -2
- package/dist/components/overlays/popover/index.mjs +7 -2
- package/dist/components/overlays/popover/popover.css +6 -0
- package/dist/components/overlays/popover/popover.d.mts +15 -2
- package/dist/components/overlays/popover/popover.mjs +28 -13
- package/dist/components/overlays/popover/popover.module.mjs +2 -1
- package/dist/components/overlays/tooltip/bridge.css +1 -1
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
- package/dist/helpers/index.mjs +1 -1
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/index.d.mts +3 -4
- package/dist/i18n/index.mjs +1 -2
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +2 -4
- package/dist/i18n/usage.d.mts +2 -1
- package/dist/i18n/usage.mjs +3 -3
- package/dist/index.d.mts +30 -36
- package/dist/index.mjs +4 -10
- package/dist/internal/iso-date.mjs +1 -1
- package/dist/styles/index.css +79 -225
- package/dist/styles/tailwind.css +1 -1
- package/dist/styles/tokens.css +281 -0
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/variables.d.mts +4 -2
- package/docs/GUIDE.md +141 -66
- package/docs/llms.txt +38 -11
- package/docs/props.generated.json +752 -481
- package/docs/references/ai-chat.md +87 -39
- package/docs/references/color.md +15 -15
- package/docs/references/components.md +568 -499
- package/docs/references/generative-ui.md +373 -185
- package/docs/references/interaction-design.md +6 -5
- package/docs/references/spatial-design.md +8 -8
- package/docs/references/types.md +22 -25
- package/package.json +37 -70
- package/dist/components/form/date-field/date-field.css +0 -31
- package/dist/components/form/date-field/date-field.d.mts +0 -7
- package/dist/components/form/date-field/date-field.mjs +0 -19
- package/dist/components/form/date-field/date-field.module.mjs +0 -4
- package/dist/components/form/date-field/index.d.mts +0 -2
- package/dist/components/form/date-field/index.mjs +0 -1
- package/dist/components/observers/in-view/index.d.mts +0 -2
- package/dist/components/observers/in-view/index.mjs +0 -1
- package/dist/components/observers/resize/index.d.mts +0 -2
- package/dist/components/observers/resize/index.mjs +0 -1
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
- package/dist/components/providers/index.d.mts +0 -3
- package/dist/components/providers/index.mjs +0 -3
- package/dist/components/providers/portal-root.d.mts +0 -8
- package/dist/components/providers/portal-root.mjs +0 -11
- package/dist/components/providers/ui-provider.d.mts +0 -2
- package/dist/components/providers/ui-provider.mjs +0 -6
- package/dist/integrations/_shared/icon-map.mjs +0 -208
- package/dist/integrations/_shared/icon-names.d.mts +0 -1
- package/dist/integrations/_shared/openui-defs.d.mts +0 -15
- package/dist/integrations/_shared/openui-defs.mjs +0 -230
- package/dist/integrations/_shared/renderers.css +0 -50
- package/dist/integrations/_shared/renderers.d.mts +0 -88
- package/dist/integrations/_shared/renderers.mjs +0 -880
- package/dist/integrations/_shared/renderers.module.mjs +0 -13
- package/dist/integrations/ai-sdk/index.d.mts +0 -3
- package/dist/integrations/ai-sdk/index.mjs +0 -1
- package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
- package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
- package/dist/integrations/json-render/catalog.d.mts +0 -1359
- package/dist/integrations/json-render/catalog.mjs +0 -373
- package/dist/integrations/json-render/registry.d.mts +0 -26
- package/dist/integrations/json-render/registry.mjs +0 -192
- package/dist/integrations/openui/form-views.d.mts +0 -24
- package/dist/integrations/openui/form-views.mjs +0 -89
- package/dist/integrations/openui/library.d.mts +0 -202
- package/dist/integrations/openui/library.mjs +0 -83
- package/dist/integrations/openui/prompt.d.mts +0 -2
- package/dist/integrations/openui/prompt.mjs +0 -18
- /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
- /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
- /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './field-message.css';
|
|
2
|
+
// src/components/_internal/field-message.module.css
|
|
3
|
+
var field_message_module_default = {
|
|
4
|
+
"error": "txpnMG_error",
|
|
5
|
+
"field": "txpnMG_field",
|
|
6
|
+
"help": "txpnMG_help",
|
|
7
|
+
"message": "txpnMG_message"
|
|
8
|
+
};
|
|
9
|
+
export { field_message_module_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer properties, theme, base;
|
|
2
2
|
|
|
3
3
|
@layer components {
|
|
4
|
-
.XbmKcG_ring:focus-visible {
|
|
4
|
+
.XbmKcG_ring:focus-visible, .XbmKcG_ring:where([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]):focus {
|
|
5
5
|
box-shadow: var(--shadow-ring-info);
|
|
6
6
|
outline-style: none;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, useEffect, useEffectEvent, useRef, useState } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
// src/components/
|
|
4
|
+
// src/components/_internal/in-view.tsx
|
|
5
5
|
const InView = ({ children, onChange, root = null, rootMargin = "0px", threshold = 0, once = false }) => {
|
|
6
6
|
const [instance, setInstance] = useState(null);
|
|
7
7
|
const handleChange = useEffectEvent(onChange);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, useEffect, useEffectEvent, useState } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
// src/components/
|
|
4
|
+
// src/components/_internal/resize.tsx
|
|
5
5
|
const Resize = ({ children, onChange }) => {
|
|
6
6
|
const [instance, setInstance] = useState(null);
|
|
7
7
|
const handleChange = useEffectEvent(onChange);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
3
|
-
import { XIcon } from "../../icons/x.mjs";
|
|
4
3
|
import { FileIcon } from "../../icons/file.mjs";
|
|
4
|
+
import { XIcon } from "../../icons/x.mjs";
|
|
5
5
|
import attachment_preview_module_default from "./attachment-preview.module.mjs";
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
2
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
4
3
|
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
4
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
5
|
import collapsible_module_default from "./collapsible.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { useId } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
3
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
4
|
+
import { InView } from "../../_internal/in-view.mjs";
|
|
5
|
+
import { Resize } from "../../_internal/resize.mjs";
|
|
5
6
|
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
6
|
-
import
|
|
7
|
-
import { Resize } from "../../observers/resize/resize.mjs";
|
|
7
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
8
8
|
import conversation_module_default from "./conversation.module.mjs";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -6,7 +6,7 @@ import { Reasoning } from "./reasoning/reasoning.mjs";
|
|
|
6
6
|
import "./reasoning/index.mjs";
|
|
7
7
|
import { Source } from "./source/index.mjs";
|
|
8
8
|
import { Suggestion } from "./suggestion/index.mjs";
|
|
9
|
-
import { ChatStatus, MessageFeedback, ToolApproval, ToolApprovalResponse, ToolState } from "./types.mjs";
|
|
10
|
-
import { ToolInvocation } from "./tool-invocation/tool-invocation.mjs";
|
|
11
9
|
import "./tool-invocation/index.mjs";
|
|
10
|
+
import { ToolInvocation } from "./tool-invocation/tool-invocation.mjs";
|
|
11
|
+
import { ChatStatus, MessageFeedback, ToolApproval, ToolApprovalResponse, ToolState } from "./types.mjs";
|
|
12
12
|
export { Attachment, type ChatStatus, Conversation, Message, type MessageFeedback, PromptInput, Reasoning, Source, Suggestion, type ToolApproval, type ToolApprovalResponse, ToolInvocation, type ToolState };
|
|
@@ -16,7 +16,7 @@ export declare const Message: {
|
|
|
16
16
|
}>;
|
|
17
17
|
readonly Action: import("react").FC<{
|
|
18
18
|
label: string;
|
|
19
|
-
|
|
19
|
+
action?: () => void | Promise<void>;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
children: import("react").ReactNode;
|
|
22
22
|
}>;
|
|
@@ -25,7 +25,7 @@ export declare const Message: {
|
|
|
25
25
|
label?: string;
|
|
26
26
|
}>;
|
|
27
27
|
readonly Regenerate: import("react").FC<{
|
|
28
|
-
|
|
28
|
+
action: () => void | Promise<void>;
|
|
29
29
|
label?: string;
|
|
30
30
|
disabled?: boolean;
|
|
31
31
|
}>;
|
|
@@ -19,7 +19,7 @@ type ActionsProps = {
|
|
|
19
19
|
export declare const Actions: FC<ActionsProps>;
|
|
20
20
|
type ActionProps = {
|
|
21
21
|
label: string;
|
|
22
|
-
|
|
22
|
+
action?: () => void | Promise<void>;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
};
|
|
@@ -30,7 +30,7 @@ type CopyProps = {
|
|
|
30
30
|
};
|
|
31
31
|
export declare const Copy: FC<CopyProps>;
|
|
32
32
|
type RegenerateProps = {
|
|
33
|
-
|
|
33
|
+
action: () => void | Promise<void>;
|
|
34
34
|
label?: string;
|
|
35
35
|
disabled?: boolean;
|
|
36
36
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
4
3
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
5
|
-
import {
|
|
4
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
6
5
|
import { CopyButton } from "../../buttons/copy-button/copy-button.mjs";
|
|
7
|
-
import
|
|
6
|
+
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
8
7
|
import { RefreshIcon } from "../../icons/refresh.mjs";
|
|
9
8
|
import { ThumbsDownIcon } from "../../icons/thumbs-down.mjs";
|
|
10
9
|
import { ThumbsUpIcon } from "../../icons/thumbs-up.mjs";
|
|
11
10
|
import { StreamingCursor } from "../_internal/streaming-cursor.mjs";
|
|
11
|
+
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
12
12
|
import message_module_default from "./message.module.mjs";
|
|
13
13
|
import { clsx } from "clsx";
|
|
14
14
|
import { useMemo } from "react";
|
|
@@ -60,10 +60,10 @@ const Actions = ({ label, children }) => {
|
|
|
60
60
|
children
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
|
-
const Action = ({ label,
|
|
63
|
+
const Action = ({ label, action, disabled, children }) => /* @__PURE__ */ jsx(IconButton, {
|
|
64
|
+
action,
|
|
64
65
|
disabled,
|
|
65
66
|
label,
|
|
66
|
-
onAction,
|
|
67
67
|
size: "sm",
|
|
68
68
|
children
|
|
69
69
|
});
|
|
@@ -73,12 +73,12 @@ const Copy = ({ value, label }) => /* @__PURE__ */ jsx(CopyButton, {
|
|
|
73
73
|
size: "sm",
|
|
74
74
|
value
|
|
75
75
|
});
|
|
76
|
-
const Regenerate = ({
|
|
76
|
+
const Regenerate = ({ action, label, disabled }) => {
|
|
77
77
|
const messages = getMessages();
|
|
78
78
|
return /* @__PURE__ */ jsx(Action, {
|
|
79
|
+
action,
|
|
79
80
|
disabled,
|
|
80
81
|
label: label ?? messages.regenerate,
|
|
81
|
-
onAction,
|
|
82
82
|
children: /* @__PURE__ */ jsx(RefreshIcon, { size: "sm" })
|
|
83
83
|
});
|
|
84
84
|
};
|
|
@@ -94,7 +94,7 @@ const Feedback = ({ value, defaultValue = null, onChange }) => {
|
|
|
94
94
|
};
|
|
95
95
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(IconButton, {
|
|
96
96
|
"aria-pressed": feedback === "positive",
|
|
97
|
-
|
|
97
|
+
variant: feedback === "positive" ? "solid" : "skeleton",
|
|
98
98
|
label: messages.feedbackPositive,
|
|
99
99
|
onClick: () => {
|
|
100
100
|
toggle("positive");
|
|
@@ -106,7 +106,7 @@ const Feedback = ({ value, defaultValue = null, onChange }) => {
|
|
|
106
106
|
})
|
|
107
107
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
108
108
|
"aria-pressed": feedback === "negative",
|
|
109
|
-
|
|
109
|
+
variant: feedback === "negative" ? "solid" : "skeleton",
|
|
110
110
|
label: messages.feedbackNegative,
|
|
111
111
|
onClick: () => {
|
|
112
112
|
toggle("negative");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
5
3
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
4
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
6
5
|
import { acceptsFile } from "../../../internal/accepts-file.mjs";
|
|
7
6
|
import { carriesFiles } from "../../../internal/carries-files.mjs";
|
|
8
7
|
import { droppedFiles } from "../../../internal/dropped-files.mjs";
|
|
9
|
-
import { AttachmentPreview, isImageMediaType } from "../_internal/attachment-preview.mjs";
|
|
10
|
-
import { List } from "../attachment/attachment.mjs";
|
|
11
8
|
import { PaperclipIcon } from "../../icons/paperclip.mjs";
|
|
12
9
|
import { SendIcon } from "../../icons/send.mjs";
|
|
10
|
+
import { AttachmentPreview, isImageMediaType } from "../_internal/attachment-preview.mjs";
|
|
11
|
+
import { List } from "../attachment/attachment.mjs";
|
|
12
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
13
13
|
import prompt_input_module_default from "./prompt-input.module.mjs";
|
|
14
14
|
import { clsx } from "clsx";
|
|
15
15
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
2
|
import { ExternalLinkIcon } from "../../icons/external-link.mjs";
|
|
4
3
|
import { FileIcon } from "../../icons/file.mjs";
|
|
4
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
5
|
import source_module_default from "./source.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,25 +2,20 @@
|
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
3
|
import { Button } from "../../buttons/button/button.mjs";
|
|
4
4
|
import approval_bar_module_default from "./approval-bar.module.mjs";
|
|
5
|
-
import { useCallback,
|
|
5
|
+
import { useCallback, useOptimistic } from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/components/ai/tool-invocation/approval-bar.tsx
|
|
8
|
-
const renderFocusable = ({ disabled: _disabled, ...props }) => /* @__PURE__ */ jsx("button", {
|
|
9
|
-
...props,
|
|
10
|
-
type: "button"
|
|
11
|
-
});
|
|
12
8
|
const ApprovalBar = ({ approval, nameId, triggerId, onApprovalResponse }) => {
|
|
13
9
|
const messages = getMessages();
|
|
14
|
-
const [
|
|
10
|
+
const [answering, setAnswering] = useOptimistic(void 0);
|
|
15
11
|
const keepFocusOnAnswer = useCallback((group) => () => {
|
|
16
12
|
if (group.contains(document.activeElement)) document.querySelector(`#${CSS.escape(triggerId)}`)?.focus();
|
|
17
13
|
}, [triggerId]);
|
|
18
|
-
const respond = (approved) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
14
|
+
const respond = (approved) => async () => {
|
|
15
|
+
setAnswering(approved);
|
|
16
|
+
await onApprovalResponse?.({
|
|
17
|
+
id: approval.id,
|
|
18
|
+
approved
|
|
24
19
|
});
|
|
25
20
|
};
|
|
26
21
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -34,21 +29,15 @@ const ApprovalBar = ({ approval, nameId, triggerId, onApprovalResponse }) => {
|
|
|
34
29
|
}), onApprovalResponse !== void 0 && /* @__PURE__ */ jsxs("div", {
|
|
35
30
|
className: approval_bar_module_default.buttons,
|
|
36
31
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
32
|
+
action: respond(false),
|
|
37
33
|
color: "base",
|
|
38
|
-
disabled:
|
|
39
|
-
onClick: () => {
|
|
40
|
-
respond(false);
|
|
41
|
-
},
|
|
42
|
-
renderItem: renderFocusable,
|
|
34
|
+
disabled: answering === true,
|
|
43
35
|
size: "sm",
|
|
44
36
|
variant: "outline",
|
|
45
37
|
children: messages.toolDeny
|
|
46
38
|
}), /* @__PURE__ */ jsx(Button, {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
respond(true);
|
|
50
|
-
},
|
|
51
|
-
renderItem: renderFocusable,
|
|
39
|
+
action: respond(true),
|
|
40
|
+
disabled: answering === false,
|
|
52
41
|
size: "sm",
|
|
53
42
|
children: messages.toolApprove
|
|
54
43
|
})]
|
|
@@ -5,8 +5,8 @@ type Props = {
|
|
|
5
5
|
state: ToolState;
|
|
6
6
|
input?: unknown;
|
|
7
7
|
output?: ReactNode;
|
|
8
|
-
errorText?: string;
|
|
9
|
-
approval?: ToolApproval;
|
|
8
|
+
errorText?: string | undefined;
|
|
9
|
+
approval?: ToolApproval | undefined;
|
|
10
10
|
onApprovalResponse?: (response: ToolApprovalResponse) => void | PromiseLike<void>;
|
|
11
11
|
isOpen?: boolean;
|
|
12
12
|
defaultOpen?: boolean;
|
|
@@ -1,49 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* 描画するときは `<button>` 専用の `disabled` / `type` を分割代入で外してから
|
|
6
|
-
* 残りを展開する。無効状態は同梱の `aria-disabled` で表現でき、
|
|
7
|
-
* `onClick` は無効なら何もしないので `<a>` でも遷移しない。
|
|
8
|
-
*
|
|
9
|
-
* `disabled` が表すのは利用者が渡した `disabled` だけ。`onAction` の保留中と、
|
|
10
|
-
* `type="submit"` で属するフォームの送信が保留中のあいだは、`aria-disabled` と
|
|
11
|
-
* `aria-busy` が立っても `disabled` は `false` のままで、押された要素はフォーカスを
|
|
12
|
-
* 保つ。その間に押されても `onClick` が何もしない。
|
|
13
|
-
*
|
|
14
|
-
* ハンドラの要素型を `HTMLButtonElement` ではなく `HTMLElement` にしているのは、
|
|
15
|
-
* `ClipboardEventHandler<HTMLButtonElement>` のような兄弟型が `<a>` の同名 props
|
|
16
|
-
* に代入できず、束ごと展開できなくなるため。
|
|
17
|
-
*/
|
|
18
|
-
export type ButtonRenderItemProps = Omit<ButtonHTMLAttributes<HTMLElement>, 'aria-busy' | 'aria-disabled' | 'children' | 'className' | 'disabled' | 'onClick' | 'style' | 'type'> & {
|
|
19
|
-
ref: RefCallback<HTMLElement> | undefined;
|
|
1
|
+
import { ComponentPropsWithRef, MouseEventHandler, ReactNode } from "react";
|
|
2
|
+
type AnchorAttributes = Omit<ComponentPropsWithRef<'a'>, 'aria-disabled' | 'children' | 'className' | 'href' | 'style' | 'type'>;
|
|
3
|
+
type RenderAnchorProps<T extends string> = {
|
|
4
|
+
href: NoInfer<T>;
|
|
20
5
|
className: string;
|
|
21
6
|
children: ReactNode;
|
|
22
|
-
|
|
23
|
-
disabled: boolean;
|
|
24
|
-
'aria-busy': true | undefined;
|
|
7
|
+
onClick: MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
25
8
|
'aria-disabled': true | undefined;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
type Props = {
|
|
29
|
-
type?: 'button' | 'submit';
|
|
9
|
+
} & Omit<AnchorAttributes, 'onClick'>;
|
|
10
|
+
type Look = {
|
|
30
11
|
size?: 'sm' | 'md' | 'lg';
|
|
31
12
|
color?: 'primary' | 'secondary' | 'base';
|
|
32
13
|
variant?: 'solid' | 'outline' | 'skeleton';
|
|
33
14
|
fullWidth?: boolean;
|
|
34
|
-
isActive?: boolean;
|
|
35
15
|
startIcon?: ReactNode;
|
|
36
16
|
endIcon?: ReactNode;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
};
|
|
20
|
+
type ButtonProps = Look & {
|
|
21
|
+
href?: undefined;
|
|
22
|
+
type?: 'button' | 'submit' | 'reset';
|
|
37
23
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* `
|
|
42
|
-
* `onClick`
|
|
43
|
-
* した場合は `onAction` をスキップ)。
|
|
24
|
+
* 押したときに transition の中で走らせる処理。返した Promise が解決するまで
|
|
25
|
+
* スピナーを出し、`aria-busy` と `aria-disabled` を立て、押されても何もしない。
|
|
26
|
+
* ボタンはフォーカスを持ったままでいる。続けて押す同期の更新や、イベントが
|
|
27
|
+
* 要る処理は `onClick` に書く。両方あれば `onClick` → `action` の順に呼び、
|
|
28
|
+
* `onClick` が `preventDefault` したら `action` は呼ばない。
|
|
44
29
|
*/
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} & Omit<ComponentPropsWithRef<'button'>, '
|
|
48
|
-
|
|
30
|
+
action?: () => void | Promise<void>;
|
|
31
|
+
renderAnchor?: never;
|
|
32
|
+
} & Omit<ComponentPropsWithRef<'button'>, 'children' | 'className' | 'disabled' | 'style' | 'type'>;
|
|
33
|
+
type LinkProps<T extends string> = Look & {
|
|
34
|
+
/** あれば `<button>` の代わりに `<a>` を描く。 */
|
|
35
|
+
href: T;
|
|
36
|
+
type?: never;
|
|
37
|
+
action?: never;
|
|
38
|
+
/** `<a>` の代わりに描く要素。Next.js の `Link` などに受け取った props を展開する。 */
|
|
39
|
+
renderAnchor?: (props: RenderAnchorProps<T>) => ReactNode;
|
|
40
|
+
} & AnchorAttributes;
|
|
41
|
+
type ButtonComponent = {
|
|
42
|
+
<T extends string>(props: LinkProps<T>): ReactNode;
|
|
43
|
+
(props: ButtonProps): ReactNode;
|
|
44
|
+
};
|
|
45
|
+
export declare const Button: ButtonComponent;
|
|
49
46
|
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Spinner } from "../../feedback/spinner/spinner.mjs";
|
|
3
|
-
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
3
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
4
|
import button_module_default from "./button.module.mjs";
|
|
6
5
|
import { clsx } from "clsx";
|
|
7
|
-
import {
|
|
6
|
+
import { useTransition } from "react";
|
|
8
7
|
import { useFormStatus } from "react-dom";
|
|
9
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
// src/components/buttons/button/button.tsx
|
|
10
|
+
const isLink = (rest) => rest.href !== void 0;
|
|
11
11
|
const VARIANT = {
|
|
12
12
|
solid: {
|
|
13
13
|
primary: button_module_default.solidPrimary,
|
|
@@ -25,45 +25,58 @@ const SIZE = {
|
|
|
25
25
|
md: button_module_default.md,
|
|
26
26
|
lg: button_module_default.lg
|
|
27
27
|
};
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const defaultRenderAnchor = ({ children: anchorChildren, ...rest }) => /* @__PURE__ */ jsx("a", {
|
|
29
|
+
...rest,
|
|
30
|
+
children: anchorChildren
|
|
31
|
+
});
|
|
32
|
+
const Button = ({ size = "md", color = "primary", variant = "solid", fullWidth = false, disabled = false, startIcon, endIcon, children, type = "button", action, ...rest }) => {
|
|
30
33
|
const [transitionPending, startTransition] = useTransition();
|
|
31
34
|
const { pending: formPending } = useFormStatus();
|
|
32
35
|
const isPending = transitionPending || type === "submit" && formPending;
|
|
33
36
|
const isDisabled = disabled || isPending;
|
|
34
|
-
const
|
|
37
|
+
const resolvedStartIcon = isPending ? /* @__PURE__ */ jsx(Spinner, { size: size === "lg" ? "md" : "sm" }) : startIcon;
|
|
38
|
+
const hasStartIcon = resolvedStartIcon !== void 0;
|
|
39
|
+
const hasEndIcon = endIcon !== void 0;
|
|
40
|
+
const className = clsx(button_module_default.root, variant === "skeleton" ? button_module_default.skeleton : VARIANT[variant][color], focus_ring_module_default.ring, SIZE[size], fullWidth && button_module_default.fullWidth, (hasStartIcon || hasEndIcon) && button_module_default.withIcons, hasStartIcon && !hasEndIcon && variant !== "skeleton" ? button_module_default.iconsCentered : hasEndIcon && button_module_default.iconsApart, isDisabled && button_module_default.disabled);
|
|
41
|
+
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
42
|
+
resolvedStartIcon,
|
|
43
|
+
children,
|
|
44
|
+
endIcon
|
|
45
|
+
] });
|
|
46
|
+
if (isLink(rest)) {
|
|
47
|
+
const { href, onClick, renderAnchor = defaultRenderAnchor, ...anchorRest } = rest;
|
|
48
|
+
return renderAnchor({
|
|
49
|
+
...anchorRest,
|
|
50
|
+
href,
|
|
51
|
+
className,
|
|
52
|
+
children: content,
|
|
53
|
+
"aria-disabled": disabled || void 0,
|
|
54
|
+
onClick: disabled ? (event) => {
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
} : onClick
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const { href: _href, onClick, ...buttonRest } = rest;
|
|
60
|
+
const handleClick = onClick || action || isDisabled ? (event) => {
|
|
35
61
|
if (isDisabled) {
|
|
36
62
|
event.preventDefault();
|
|
37
63
|
return;
|
|
38
64
|
}
|
|
39
65
|
onClick?.(event);
|
|
40
66
|
if (event.defaultPrevented) return;
|
|
41
|
-
if (
|
|
42
|
-
await
|
|
67
|
+
if (action) startTransition(async () => {
|
|
68
|
+
await action();
|
|
43
69
|
});
|
|
44
70
|
} : void 0;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const hasEndIcon = endIcon !== void 0;
|
|
48
|
-
const className = clsx(button_module_default.root, variant === "skeleton" ? button_module_default.skeleton : VARIANT[variant][color], focus_ring_module_default.ring, SIZE[size], fullWidth && button_module_default.fullWidth, (hasStartIcon || hasEndIcon) && button_module_default.withIcons, hasStartIcon && !hasEndIcon && variant !== "skeleton" ? button_module_default.iconsCentered : hasEndIcon && button_module_default.iconsApart, isActive && button_module_default.active, isDisabled && button_module_default.disabled);
|
|
49
|
-
const itemProps = {
|
|
50
|
-
...rest,
|
|
71
|
+
return /* @__PURE__ */ jsx("button", {
|
|
72
|
+
...buttonRest,
|
|
51
73
|
"aria-busy": isPending || void 0,
|
|
52
74
|
"aria-disabled": isDisabled || void 0,
|
|
53
75
|
className,
|
|
54
76
|
disabled,
|
|
55
77
|
onClick: handleClick,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
59
|
-
resolvedStartIcon,
|
|
60
|
-
children,
|
|
61
|
-
endIcon
|
|
62
|
-
] })
|
|
63
|
-
};
|
|
64
|
-
return renderItem ? renderItem(itemProps) : /* @__PURE__ */ jsx("button", {
|
|
65
|
-
...itemProps,
|
|
66
|
-
type: type === "submit" ? "submit" : "button"
|
|
78
|
+
type: type === "submit" ? "submit" : type === "reset" ? "reset" : "button",
|
|
79
|
+
children: content
|
|
67
80
|
});
|
|
68
81
|
};
|
|
69
82
|
export { Button };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Button
|
|
2
|
-
export { Button
|
|
1
|
+
import { Button } from "./button.mjs";
|
|
2
|
+
export { Button };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
4
|
-
import { Button } from "../button/button.mjs";
|
|
5
3
|
import { AlertIcon } from "../../icons/alert.mjs";
|
|
6
4
|
import { CheckIcon } from "../../icons/check.mjs";
|
|
7
5
|
import { CopyIcon } from "../../icons/copy.mjs";
|
|
6
|
+
import { Button } from "../button/button.mjs";
|
|
8
7
|
import { IconButton } from "../icon-button/icon-button.mjs";
|
|
8
|
+
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
9
9
|
import copy_button_module_default from "./copy-button.module.mjs";
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -52,12 +52,12 @@ const CopyButton = ({ value, label, iconOnly = false, size = "md", disabled = fa
|
|
|
52
52
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [iconOnly ? /* @__PURE__ */ jsx(IconButton, {
|
|
53
53
|
disabled,
|
|
54
54
|
label: name,
|
|
55
|
-
|
|
55
|
+
action: copy,
|
|
56
56
|
size,
|
|
57
57
|
children: icon
|
|
58
58
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
59
59
|
disabled,
|
|
60
|
-
|
|
60
|
+
action: copy,
|
|
61
61
|
size,
|
|
62
62
|
startIcon: icon,
|
|
63
63
|
variant: "outline",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
13
|
+
.uGNMOG_skeleton {
|
|
14
14
|
background-color: #0000;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@media (hover: hover) {
|
|
30
|
-
.
|
|
30
|
+
.uGNMOG_skeleton:hover, .uGNMOG_base:hover {
|
|
31
31
|
background-color: var(--color-bg-subtle);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
.
|
|
47
|
+
.uGNMOG_skeleton:active, .uGNMOG_base:active {
|
|
48
48
|
background-color: var(--color-bg-mute);
|
|
49
49
|
}
|
|
50
50
|
|