@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
|
@@ -1,55 +1,49 @@
|
|
|
1
1
|
import { Placement } from "../../../types/variables.mjs";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* `renderItem` が受け取る props。既定の `<button>` に渡すものと同じ
|
|
8
|
-
* オブジェクトで、`<button>` には `triggerProps` ともども展開できる。
|
|
9
|
-
* `<a>` など別の要素を描画するときは `<button>` 専用の `disabled` /
|
|
10
|
-
* `type` を分割代入で外してから残りを展開する。無効状態は同梱の
|
|
11
|
-
* `aria-disabled` で表現できる。`ref` は tooltip の配線と合成済みのものが
|
|
12
|
-
* `triggerProps` に入っているので、平置きでは渡さない。
|
|
13
|
-
*
|
|
14
|
-
* `disabled` が表すのは利用者が渡した `disabled` だけ。`onAction` や属する
|
|
15
|
-
* フォームの送信が保留中のあいだは、`aria-disabled` と `aria-busy` が立っても
|
|
16
|
-
* `disabled` は `false` のままで、押された要素はフォーカスを保つ。その間に
|
|
17
|
-
* 押されても `onClick` が何もしない。
|
|
18
|
-
*
|
|
19
|
-
* ハンドラの要素型を `HTMLButtonElement` ではなく `HTMLElement` にしているのは、
|
|
20
|
-
* `ClipboardEventHandler<HTMLButtonElement>` のような兄弟型が `<a>` の同名 props
|
|
21
|
-
* に代入できず、束ごと展開できなくなるため。
|
|
22
|
-
*/
|
|
23
|
-
export type IconButtonRenderItemProps = Omit<ButtonHTMLAttributes<HTMLElement>, 'aria-busy' | 'aria-describedby' | 'aria-disabled' | 'aria-label' | 'children' | 'className' | 'disabled' | 'onBlur' | 'onClick' | 'onFocus' | 'onMouseEnter' | 'onMouseLeave' | 'style' | 'type'> & {
|
|
2
|
+
import { ComponentPropsWithRef, MouseEventHandler, ReactNode, RefCallback } from "react";
|
|
3
|
+
type AnchorAttributes = Omit<ComponentPropsWithRef<'a'>, 'aria-disabled' | 'children' | 'className' | 'href' | 'style' | 'type'>;
|
|
4
|
+
type RenderAnchorProps<T extends string> = {
|
|
5
|
+
href: NoInfer<T>;
|
|
24
6
|
className: string;
|
|
25
7
|
children: ReactNode;
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
ref: RefCallback<HTMLAnchorElement>;
|
|
9
|
+
onClick: MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
28
10
|
'aria-label': string;
|
|
29
|
-
'aria-busy': true | undefined;
|
|
30
11
|
'aria-disabled': true | undefined;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* tooltip の配線(ref・hover/focus ハンドラ・`aria-describedby`)。
|
|
34
|
-
* 利用者が渡した同名のハンドラも連結済みなので、描画する要素へ展開する。
|
|
35
|
-
*/
|
|
36
|
-
triggerProps: IconButtonTriggerProps;
|
|
37
|
-
};
|
|
38
|
-
type Props = {
|
|
12
|
+
} & Omit<AnchorAttributes, 'aria-label' | 'onClick' | 'ref'>;
|
|
13
|
+
type Look = {
|
|
39
14
|
size?: 'sm' | 'md' | 'lg';
|
|
40
|
-
|
|
15
|
+
variant?: 'solid' | 'skeleton';
|
|
16
|
+
color?: 'primary' | 'secondary' | 'base';
|
|
41
17
|
label: string;
|
|
42
18
|
tooltipPlacement?: Placement;
|
|
43
19
|
tooltipDisabled?: boolean;
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
type ButtonProps = Look & {
|
|
24
|
+
href?: undefined;
|
|
25
|
+
type?: 'button' | 'submit' | 'reset';
|
|
44
26
|
/**
|
|
45
|
-
*
|
|
46
|
-
* `aria-busy`
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* `preventDefault`
|
|
27
|
+
* 押したときに transition の中で走らせる処理。返した Promise が解決するまで
|
|
28
|
+
* `aria-busy` と `aria-disabled` を立て、押されても何もしない。ボタンは
|
|
29
|
+
* フォーカスを持ったままでいる。続けて押す同期の更新や、イベントが要る処理は
|
|
30
|
+
* `onClick` に書く。両方あれば `onClick` → `action` の順に呼び、`onClick` が
|
|
31
|
+
* `preventDefault` したら `action` は呼ばない。
|
|
50
32
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} & Omit<ComponentPropsWithRef<'button'>, '
|
|
54
|
-
|
|
33
|
+
action?: () => void | Promise<void>;
|
|
34
|
+
renderAnchor?: never;
|
|
35
|
+
} & Omit<ComponentPropsWithRef<'button'>, 'children' | 'className' | 'disabled' | 'style' | 'type'>;
|
|
36
|
+
type LinkProps<T extends string> = Look & {
|
|
37
|
+
/** あれば `<button>` の代わりに `<a>` を描く。 */
|
|
38
|
+
href: T;
|
|
39
|
+
type?: never;
|
|
40
|
+
action?: never;
|
|
41
|
+
/** `<a>` の代わりに描く要素。Next.js の `Link` などに受け取った props を展開する。 */
|
|
42
|
+
renderAnchor?: (props: RenderAnchorProps<T>) => ReactNode;
|
|
43
|
+
} & AnchorAttributes;
|
|
44
|
+
type IconButtonComponent = {
|
|
45
|
+
<T extends string>(props: LinkProps<T>): ReactNode;
|
|
46
|
+
(props: ButtonProps): ReactNode;
|
|
47
|
+
};
|
|
48
|
+
export declare const IconButton: IconButtonComponent;
|
|
55
49
|
export {};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { Tooltip } from "../../overlays/tooltip/index.mjs";
|
|
3
|
+
import { chain } from "../../../helpers/chain.mjs";
|
|
2
4
|
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
3
5
|
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
-
import { chain } from "../../../helpers/chain.mjs";
|
|
5
|
-
import { Tooltip } from "../../overlays/tooltip/index.mjs";
|
|
6
6
|
import icon_button_module_default from "./icon-button.module.mjs";
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
8
|
import { useMemo, useTransition } from "react";
|
|
9
9
|
import { useFormStatus } from "react-dom";
|
|
10
|
-
import {
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
// src/components/buttons/icon-button/icon-button.tsx
|
|
12
|
-
const
|
|
13
|
-
transparent: icon_button_module_default.transparent,
|
|
12
|
+
const SOLID = {
|
|
14
13
|
base: icon_button_module_default.base,
|
|
15
14
|
primary: icon_button_module_default.primary,
|
|
16
15
|
secondary: icon_button_module_default.secondary
|
|
@@ -20,72 +19,83 @@ const SIZE = {
|
|
|
20
19
|
md: icon_button_module_default.md,
|
|
21
20
|
lg: icon_button_module_default.lg
|
|
22
21
|
};
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const isLink = (rest) => rest.href !== void 0;
|
|
23
|
+
const defaultRenderAnchor = ({ children: anchorChildren, ...rest }) => /* @__PURE__ */ jsx("a", {
|
|
24
|
+
...rest,
|
|
25
|
+
children: anchorChildren
|
|
26
|
+
});
|
|
27
27
|
/**
|
|
28
28
|
* 描画する要素そのもの。IconButton から切り出しているのは合成 ref のため。
|
|
29
29
|
* mergeRefs は呼ぶたび新しい関数を返し、React が毎レンダー ref を付け外しする。
|
|
30
|
-
* 合成先の
|
|
31
|
-
* useMemo に包めず、
|
|
32
|
-
*
|
|
33
|
-
* ref を `buttonRef` という名前で受けているのは、`ref` で受けると react(refs) が
|
|
34
|
-
* レンダー中に一切触れない値として扱い、renderItem へ渡す設計が成り立たなくなるため。
|
|
30
|
+
* 合成先の wiring は Tooltip.Trigger から引数で届くので IconButton 側では
|
|
31
|
+
* useMemo に包めず、wiring を props として受け取るここでだけ包める。
|
|
35
32
|
*/
|
|
36
|
-
const Item = ({
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
if (renderItem) return /* @__PURE__ */ jsx(Fragment$1, { children: renderItem(itemProps) });
|
|
40
|
-
const { triggerProps: resolvedTriggerProps, ...rest } = itemProps;
|
|
41
|
-
return /* @__PURE__ */ jsx("button", {
|
|
42
|
-
...rest,
|
|
43
|
-
...resolvedTriggerProps,
|
|
44
|
-
type: "button"
|
|
45
|
-
});
|
|
33
|
+
const Item = ({ elementRef, wiring, draw }) => {
|
|
34
|
+
const wiringRef = wiring.ref;
|
|
35
|
+
return draw(wiring, useMemo(() => mergeRefs(elementRef, wiringRef), [elementRef, wiringRef]));
|
|
46
36
|
};
|
|
47
|
-
const IconButton = ({
|
|
37
|
+
const IconButton = ({ size = "md", variant = "skeleton", color = "primary", label, tooltipPlacement = "top", tooltipDisabled = false, disabled = false, children, type = "button", action, ...rest }) => {
|
|
48
38
|
const [transitionPending, startTransition] = useTransition();
|
|
49
39
|
const { pending: formPending } = useFormStatus();
|
|
50
|
-
const isPending = transitionPending || formPending;
|
|
51
|
-
const isDisabled =
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
onClick: handleClick,
|
|
73
|
-
type: "button",
|
|
74
|
-
triggerProps: {
|
|
75
|
-
...triggerProps,
|
|
76
|
-
"aria-describedby": joinIds(describedBy, triggerProps["aria-describedby"]),
|
|
77
|
-
onBlur: chain(triggerProps.onBlur, onBlur),
|
|
78
|
-
onFocus: chain(triggerProps.onFocus, onFocus),
|
|
79
|
-
onMouseEnter: chain(triggerProps.onMouseEnter, onMouseEnter),
|
|
80
|
-
onMouseLeave: chain(triggerProps.onMouseLeave, onMouseLeave),
|
|
40
|
+
const isPending = transitionPending || type === "submit" && formPending;
|
|
41
|
+
const isDisabled = disabled || isPending;
|
|
42
|
+
const className = clsx(icon_button_module_default.root, focus_ring_module_default.ring, variant === "skeleton" ? icon_button_module_default.skeleton : SOLID[color], SIZE[size], isDisabled && icon_button_module_default.disabled);
|
|
43
|
+
let elementRef;
|
|
44
|
+
let draw;
|
|
45
|
+
if (isLink(rest)) {
|
|
46
|
+
const { href, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, ref, renderAnchor = defaultRenderAnchor, ...anchorRest } = rest;
|
|
47
|
+
elementRef = ref;
|
|
48
|
+
draw = (wiring, mergedRef) => renderAnchor({
|
|
49
|
+
...anchorRest,
|
|
50
|
+
href,
|
|
51
|
+
className,
|
|
52
|
+
children,
|
|
53
|
+
"aria-label": label,
|
|
54
|
+
"aria-disabled": disabled || void 0,
|
|
55
|
+
onClick: disabled ? (event) => {
|
|
56
|
+
event.preventDefault();
|
|
57
|
+
} : onClick,
|
|
58
|
+
onMouseEnter: chain(wiring.onMouseEnter, onMouseEnter),
|
|
59
|
+
onMouseLeave: chain(wiring.onMouseLeave, onMouseLeave),
|
|
60
|
+
onFocus: chain(wiring.onFocus, onFocus),
|
|
61
|
+
onBlur: chain(wiring.onBlur, onBlur),
|
|
81
62
|
ref: mergedRef
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
63
|
+
});
|
|
64
|
+
} else {
|
|
65
|
+
const { href: _href, onClick, onMouseEnter, onMouseLeave, onFocus, onBlur, ref, ...buttonRest } = rest;
|
|
66
|
+
elementRef = ref;
|
|
67
|
+
const handleClick = onClick || action || isDisabled ? (event) => {
|
|
68
|
+
if (isDisabled) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
onClick?.(event);
|
|
73
|
+
if (event.defaultPrevented) return;
|
|
74
|
+
if (action) startTransition(async () => {
|
|
75
|
+
await action();
|
|
76
|
+
});
|
|
77
|
+
} : void 0;
|
|
78
|
+
draw = (wiring, mergedRef) => /* @__PURE__ */ jsx("button", {
|
|
79
|
+
...buttonRest,
|
|
80
|
+
"aria-busy": isPending || void 0,
|
|
81
|
+
"aria-disabled": isDisabled || void 0,
|
|
82
|
+
"aria-label": label,
|
|
83
|
+
className,
|
|
84
|
+
disabled,
|
|
85
|
+
onBlur: chain(wiring.onBlur, onBlur),
|
|
86
|
+
onClick: handleClick,
|
|
87
|
+
onFocus: chain(wiring.onFocus, onFocus),
|
|
88
|
+
onMouseEnter: chain(wiring.onMouseEnter, onMouseEnter),
|
|
89
|
+
onMouseLeave: chain(wiring.onMouseLeave, onMouseLeave),
|
|
90
|
+
ref: mergedRef,
|
|
91
|
+
type: type === "submit" ? "submit" : type === "reset" ? "reset" : "button",
|
|
92
|
+
children
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
const render = (wiring) => /* @__PURE__ */ jsx(Item, {
|
|
96
|
+
draw,
|
|
97
|
+
elementRef,
|
|
98
|
+
wiring
|
|
89
99
|
});
|
|
90
100
|
if (tooltipDisabled) return render({});
|
|
91
101
|
return /* @__PURE__ */ jsxs(Tooltip.Root, {
|
|
@@ -8,7 +8,7 @@ var icon_button_module_default = {
|
|
|
8
8
|
"primary": "uGNMOG_primary",
|
|
9
9
|
"root": "uGNMOG_root",
|
|
10
10
|
"secondary": "uGNMOG_secondary",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"skeleton": "uGNMOG_skeleton",
|
|
12
|
+
"sm": "uGNMOG_sm"
|
|
13
13
|
};
|
|
14
14
|
export { icon_button_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconButton
|
|
2
|
-
export { IconButton
|
|
1
|
+
import { IconButton } from "./icon-button.mjs";
|
|
2
|
+
export { IconButton };
|
|
@@ -10,9 +10,13 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
|
|
12
12
|
@scope (&) {
|
|
13
|
-
|
|
13
|
+
&:scope > [aria-pressed="true"], &:scope > [aria-pressed="true"]:hover, &:scope > [aria-pressed="true"]:active {
|
|
14
14
|
background-color: var(--color-bg-emphasize);
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
&:scope > [aria-pressed="true"]:not(:disabled, [aria-disabled="true"]) {
|
|
18
|
+
color: var(--color-fg-base);
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
}
|
|
18
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
3
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
3
|
+
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
4
|
import { readWritingMode, useWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
5
5
|
import { Separator as Separator$1 } from "../../layout/separator/separator.mjs";
|
|
6
6
|
import toolbar_module_default from "./toolbar.module.mjs";
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
export declare const AccordionButton: FC<PropsWithChildren
|
|
2
|
+
export declare const AccordionButton: FC<PropsWithChildren<{
|
|
3
|
+
/** The heading element the button sits in, as in `Heading`. */
|
|
4
|
+
level: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
5
|
+
}>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
2
|
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
4
3
|
import { useItemId, useOpen, useToggleOpen } from "./context.mjs";
|
|
4
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
5
|
import accordion_button_module_default from "./accordion-button.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/components/data-display/accordion/accordion-button.tsx
|
|
9
|
-
const AccordionButton = ({ children }) => {
|
|
9
|
+
const AccordionButton = ({ level: HeadingTag, children }) => {
|
|
10
10
|
const id = useItemId();
|
|
11
11
|
const open = useOpen();
|
|
12
12
|
const toggleOpen = useToggleOpen();
|
|
13
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
13
|
+
return /* @__PURE__ */ jsx(HeadingTag, { children: /* @__PURE__ */ jsxs("button", {
|
|
14
14
|
"aria-controls": `${id}-panel`,
|
|
15
15
|
"aria-expanded": open,
|
|
16
16
|
className: clsx(accordion_button_module_default.root, focus_ring_module_default.ringNoBorder),
|
|
@@ -21,6 +21,6 @@ const AccordionButton = ({ children }) => {
|
|
|
21
21
|
className: clsx(accordion_button_module_default.chevron, open && accordion_button_module_default.open),
|
|
22
22
|
children: /* @__PURE__ */ jsx(ChevronIcon, { direction: "down" })
|
|
23
23
|
})]
|
|
24
|
-
});
|
|
24
|
+
}) });
|
|
25
25
|
};
|
|
26
26
|
export { AccordionButton };
|
|
@@ -2,9 +2,9 @@ export declare const Accordion: {
|
|
|
2
2
|
readonly Root: import("react").FC<{
|
|
3
3
|
children?: import("react").ReactNode | undefined;
|
|
4
4
|
}>;
|
|
5
|
-
readonly Button: import("react").FC<{
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
readonly Button: import("react").FC<import("react").PropsWithChildren<{
|
|
6
|
+
level: 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
7
|
+
}>>;
|
|
8
8
|
readonly Item: import("react").FC<import("react").PropsWithChildren<{
|
|
9
9
|
isOpen?: boolean;
|
|
10
10
|
defaultOpen?: boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useTransition } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/data-display/card/card-action.tsx
|
|
5
|
+
const CardAction = ({ action, className, labelledBy }) => {
|
|
6
|
+
const [isPending, startTransition] = useTransition();
|
|
7
|
+
return /* @__PURE__ */ jsx("button", {
|
|
8
|
+
"aria-busy": isPending || void 0,
|
|
9
|
+
"aria-disabled": isPending || void 0,
|
|
10
|
+
"aria-labelledby": labelledBy,
|
|
11
|
+
className,
|
|
12
|
+
onClick: () => {
|
|
13
|
+
if (isPending) return;
|
|
14
|
+
startTransition(async () => {
|
|
15
|
+
await action();
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
type: "button"
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export { CardAction };
|
|
@@ -22,6 +22,30 @@
|
|
|
22
22
|
width: fit-content;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.v9O_zW_pressable {
|
|
26
|
+
position: relative;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.v9O_zW_target {
|
|
30
|
+
border-radius: inherit;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 0;
|
|
34
|
+
|
|
35
|
+
&[aria-busy="true"] {
|
|
36
|
+
cursor: progress;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.v9O_zW_content {
|
|
41
|
+
@scope (&) {
|
|
42
|
+
& :is(a, button, input, select, textarea, label, summary, [tabindex]:not([tabindex="-1"])) {
|
|
43
|
+
z-index: var(--z-index-raised);
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
25
49
|
@media (prefers-reduced-motion: no-preference) {
|
|
26
50
|
.v9O_zW_interactive {
|
|
27
51
|
transition-property: transform, translate, scale, rotate;
|
|
@@ -1,8 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* What `renderAnchor` receives: everything the card would put on its own
|
|
4
|
+
* `<a>`. The link has no text of its own; its name is the card's content,
|
|
5
|
+
* through `aria-labelledby`, followed with `openInNewTab` by the hidden
|
|
6
|
+
* new-tab wording (`opensInNewTab`).
|
|
7
|
+
*/
|
|
8
|
+
export type CardRenderAnchorProps<T extends string> = {
|
|
9
|
+
href: NoInfer<T>;
|
|
10
|
+
className: string;
|
|
11
|
+
'aria-labelledby': string;
|
|
12
|
+
target?: string;
|
|
13
|
+
rel?: string;
|
|
14
|
+
};
|
|
15
|
+
type CardProps<T extends string> = {
|
|
3
16
|
width?: 'full' | 'fit';
|
|
4
17
|
variant?: 'shadow' | 'outline';
|
|
18
|
+
/** The pressable look alone, for a card whose content is a link of your own. */
|
|
5
19
|
interactive?: boolean;
|
|
20
|
+
/** Makes the whole card a link. Links and buttons inside it stay pressable. */
|
|
21
|
+
href?: T;
|
|
22
|
+
openInNewTab?: boolean;
|
|
23
|
+
renderAnchor?: (props: CardRenderAnchorProps<T>) => ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Makes the whole card a button, when there is no `href`. While a returned
|
|
26
|
+
* promise is pending the card is busy and ignores presses.
|
|
27
|
+
*/
|
|
28
|
+
action?: () => void | Promise<void>;
|
|
6
29
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style'>;
|
|
7
|
-
export declare const Card:
|
|
30
|
+
export declare const Card: <T extends string>({ children, width, variant, interactive, href, openInNewTab, renderAnchor, action, ...rest }: CardProps<T>) => import("react").JSX.Element;
|
|
8
31
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
+
import { CardAction } from "./card-action.mjs";
|
|
3
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
1
4
|
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
2
5
|
import card_module_default from "./card.module.mjs";
|
|
3
6
|
import { clsx } from "clsx";
|
|
4
|
-
import {
|
|
7
|
+
import { useId } from "react";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
9
|
// src/components/data-display/card/card.tsx
|
|
6
10
|
const VARIANT = {
|
|
7
11
|
shadow: [card_module_default.shadow, high_contrast_module_default.edge],
|
|
@@ -11,9 +15,45 @@ const WIDTH = {
|
|
|
11
15
|
full: card_module_default.full,
|
|
12
16
|
fit: card_module_default.fit
|
|
13
17
|
};
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
const defaultRenderAnchor = (props) => /* @__PURE__ */ jsx("a", { ...props });
|
|
19
|
+
const Card = ({ children, width = "full", variant = "shadow", interactive = false, href, openInNewTab = false, renderAnchor = defaultRenderAnchor, action, ...rest }) => {
|
|
20
|
+
const contentId = useId();
|
|
21
|
+
const newTabId = `${contentId}-new-tab`;
|
|
22
|
+
const targetClassName = clsx(card_module_default.target, focus_ring_module_default.ringNoBorder);
|
|
23
|
+
const target = href === void 0 ? action === void 0 ? null : /* @__PURE__ */ jsx(CardAction, {
|
|
24
|
+
action,
|
|
25
|
+
className: targetClassName,
|
|
26
|
+
labelledBy: contentId
|
|
27
|
+
}) : renderAnchor({
|
|
28
|
+
href,
|
|
29
|
+
className: targetClassName,
|
|
30
|
+
...openInNewTab ? {
|
|
31
|
+
"aria-labelledby": `${contentId} ${newTabId}`,
|
|
32
|
+
target: "_blank",
|
|
33
|
+
rel: "noopener noreferrer"
|
|
34
|
+
} : { "aria-labelledby": contentId }
|
|
35
|
+
});
|
|
36
|
+
const className = clsx(card_module_default.root, VARIANT[variant], WIDTH[width], (interactive || target !== null) && card_module_default.interactive, target !== null && card_module_default.pressable);
|
|
37
|
+
return target === null ? /* @__PURE__ */ jsx("div", {
|
|
38
|
+
...rest,
|
|
39
|
+
className,
|
|
40
|
+
children
|
|
41
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
42
|
+
...rest,
|
|
43
|
+
className,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: card_module_default.content,
|
|
47
|
+
id: contentId,
|
|
48
|
+
children
|
|
49
|
+
}),
|
|
50
|
+
target,
|
|
51
|
+
href !== void 0 && openInNewTab && /* @__PURE__ */ jsx("span", {
|
|
52
|
+
hidden: true,
|
|
53
|
+
id: newTabId,
|
|
54
|
+
children: getMessages().opensInNewTab
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
});
|
|
58
|
+
};
|
|
19
59
|
export { Card };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import './card.css';
|
|
2
2
|
// src/components/data-display/card/card.module.css
|
|
3
3
|
var card_module_default = {
|
|
4
|
+
"content": "v9O_zW_content",
|
|
4
5
|
"fit": "v9O_zW_fit",
|
|
5
6
|
"full": "v9O_zW_full",
|
|
6
7
|
"interactive": "v9O_zW_interactive",
|
|
7
8
|
"outline": "v9O_zW_outline",
|
|
9
|
+
"pressable": "v9O_zW_pressable",
|
|
8
10
|
"root": "v9O_zW_root",
|
|
9
|
-
"shadow": "v9O_zW_shadow"
|
|
11
|
+
"shadow": "v9O_zW_shadow",
|
|
12
|
+
"target": "v9O_zW_target"
|
|
10
13
|
};
|
|
11
14
|
export { card_module_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Card } from "./card.mjs";
|
|
2
|
-
export { Card };
|
|
1
|
+
import { Card, CardRenderAnchorProps } from "./card.mjs";
|
|
2
|
+
export { Card, type CardRenderAnchorProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { readWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
3
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
5
4
|
import { IconButton } from "../../buttons/icon-button/icon-button.mjs";
|
|
6
5
|
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
6
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
7
7
|
import carousel_module_default from "./carousel.module.mjs";
|
|
8
8
|
import { clsx } from "clsx";
|
|
9
9
|
import { createContext, use, useEffect, useId, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import { CopyButton } from "../../buttons/copy-button/copy-button.mjs";
|
|
3
|
-
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
4
3
|
import { highlight } from "./highlight.mjs";
|
|
4
|
+
import high_contrast_module_default from "../../_internal/high-contrast.module.mjs";
|
|
5
5
|
import code_block_module_default from "./code-block.module.mjs";
|
|
6
6
|
import { clsx } from "clsx";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
._1lzWCq_columnMenu {
|
|
16
16
|
gap: calc(var(--spacing) * 3);
|
|
17
|
-
border-radius: var(--radius-lg);
|
|
18
|
-
background-color: var(--color-bg-raised);
|
|
19
17
|
padding: calc(var(--spacing) * 4);
|
|
20
|
-
box-shadow: var(--shadow-md);
|
|
21
18
|
flex-direction: column;
|
|
22
19
|
display: flex;
|
|
23
20
|
}
|