@womp/kookie-ui 0.14.3 → 0.14.5
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/components.css +12 -0
- package/dist/cjs/components/_internal/base-button.js +1 -1
- package/dist/cjs/components/_internal/base-button.js.map +2 -2
- package/dist/cjs/components/_internal/base-button.props.d.ts +1 -1
- package/dist/cjs/components/_internal/base-button.props.js +1 -1
- package/dist/cjs/components/_internal/base-button.props.js.map +2 -2
- package/dist/cjs/components/button.d.ts +2 -2
- package/dist/cjs/components/button.d.ts.map +1 -1
- package/dist/cjs/components/button.js +1 -1
- package/dist/cjs/components/button.js.map +2 -2
- package/dist/cjs/components/button.props.js +1 -1
- package/dist/cjs/components/button.props.js.map +2 -2
- package/dist/cjs/components/chatbar.d.ts +3 -28
- package/dist/cjs/components/chatbar.d.ts.map +1 -1
- package/dist/cjs/components/chatbar.js +2 -2
- package/dist/cjs/components/chatbar.js.map +3 -3
- package/dist/cjs/components/icon-button.d.ts +2 -1
- package/dist/cjs/components/icon-button.d.ts.map +1 -1
- package/dist/cjs/components/icon-button.js +2 -2
- package/dist/cjs/components/icon-button.js.map +2 -2
- package/dist/cjs/components/icon-button.props.js +1 -1
- package/dist/cjs/components/icon-button.props.js.map +2 -2
- package/dist/cjs/components/index.js +5 -5
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/components/message-scroller.d.ts +3 -9
- package/dist/cjs/components/message-scroller.d.ts.map +1 -1
- package/dist/cjs/components/message-scroller.js +2 -2
- package/dist/cjs/components/message-scroller.js.map +3 -3
- package/dist/cjs/components/notice.js +2 -2
- package/dist/cjs/components/notice.js.map +2 -2
- package/dist/cjs/components/schemas/base-button.schema.js +1 -1
- package/dist/cjs/components/schemas/base-button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/button.schema.js +1 -1
- package/dist/cjs/components/schemas/button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/icon-button.schema.js +1 -1
- package/dist/cjs/components/schemas/icon-button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/index.js +1 -1
- package/dist/cjs/components/schemas/index.js.map +2 -2
- package/dist/cjs/components/schemas/toggle-button.schema.js +1 -1
- package/dist/cjs/components/schemas/toggle-button.schema.js.map +2 -2
- package/dist/cjs/components/schemas/toggle-icon-button.schema.js +1 -1
- package/dist/cjs/components/schemas/toggle-icon-button.schema.js.map +2 -2
- package/dist/cjs/components/theme-panel.js +1 -1
- package/dist/cjs/components/theme-panel.js.map +2 -2
- package/dist/cjs/components/toggle-button.d.ts +3 -37
- package/dist/cjs/components/toggle-button.d.ts.map +1 -1
- package/dist/cjs/components/toggle-button.js +3 -3
- package/dist/cjs/components/toggle-button.js.map +2 -2
- package/dist/cjs/components/toggle-icon-button.d.ts +3 -2
- package/dist/cjs/components/toggle-icon-button.d.ts.map +1 -1
- package/dist/cjs/components/toggle-icon-button.js +3 -3
- package/dist/cjs/components/toggle-icon-button.js.map +2 -2
- package/dist/cjs/components/toolbar.d.ts +4 -3
- package/dist/cjs/components/toolbar.d.ts.map +1 -1
- package/dist/cjs/components/toolbar.js +2 -2
- package/dist/cjs/components/toolbar.js.map +2 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/props/index.js +1 -1
- package/dist/cjs/props/index.js.map +2 -2
- package/dist/esm/chunk-5NARBZRI.js +2 -0
- package/dist/esm/chunk-5NARBZRI.js.map +7 -0
- package/dist/esm/{chunk-YEYM7QQZ.js → chunk-ADFUYK3U.js} +2 -2
- package/dist/esm/chunk-ADFUYK3U.js.map +7 -0
- package/dist/esm/chunk-ALG6R3ZX.js +2 -0
- package/dist/esm/chunk-ALG6R3ZX.js.map +7 -0
- package/dist/esm/chunk-ARDKQL7Q.js +2 -0
- package/dist/esm/chunk-ARDKQL7Q.js.map +7 -0
- package/dist/esm/{chunk-66GLO2EG.js → chunk-BBMENJM3.js} +2 -2
- package/dist/esm/{chunk-E7LJHM3S.js → chunk-BGVGSALM.js} +2 -2
- package/dist/esm/{chunk-E7LJHM3S.js.map → chunk-BGVGSALM.js.map} +2 -2
- package/dist/esm/{chunk-T6Z4JUH6.js → chunk-BWVYB64R.js} +2 -2
- package/dist/esm/{chunk-UCIIRQUE.js → chunk-BXX2NVQD.js} +3 -3
- package/dist/esm/{chunk-UCIIRQUE.js.map → chunk-BXX2NVQD.js.map} +1 -1
- package/dist/esm/{chunk-BJ2Q2WVV.js → chunk-EUH5MK4Q.js} +2 -2
- package/dist/esm/{chunk-TCEQ5VVE.js → chunk-JGR3L4SN.js} +2 -2
- package/dist/esm/chunk-LHGT24A5.js +2 -0
- package/dist/esm/chunk-LHGT24A5.js.map +7 -0
- package/dist/esm/{chunk-VJXHEDCE.js → chunk-LOLLL7AV.js} +2 -2
- package/dist/esm/chunk-P3KYZBOB.js +2 -0
- package/dist/esm/chunk-P3KYZBOB.js.map +7 -0
- package/dist/esm/{chunk-77TGP2LO.js → chunk-QXEQ2C6A.js} +2 -2
- package/dist/esm/{chunk-522UYMDA.js → chunk-TUKX2BRO.js} +2 -2
- package/dist/esm/chunk-TUKX2BRO.js.map +7 -0
- package/dist/esm/{chunk-BKES3M4Y.js → chunk-UGGAAL4V.js} +2 -2
- package/dist/esm/components/_internal/base-button.js +1 -1
- package/dist/esm/components/_internal/base-button.props.d.ts +1 -1
- package/dist/esm/components/_internal/base-button.props.js +1 -1
- package/dist/esm/components/button.d.ts +2 -2
- package/dist/esm/components/button.d.ts.map +1 -1
- package/dist/esm/components/button.js +1 -1
- package/dist/esm/components/button.props.js +1 -1
- package/dist/esm/components/chatbar.d.ts +3 -28
- package/dist/esm/components/chatbar.d.ts.map +1 -1
- package/dist/esm/components/chatbar.js +1 -1
- package/dist/esm/components/icon-button.d.ts +2 -1
- package/dist/esm/components/icon-button.d.ts.map +1 -1
- package/dist/esm/components/icon-button.js +1 -1
- package/dist/esm/components/icon-button.props.js +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/message-scroller.d.ts +3 -9
- package/dist/esm/components/message-scroller.d.ts.map +1 -1
- package/dist/esm/components/message-scroller.js +1 -1
- package/dist/esm/components/notice.js +1 -1
- package/dist/esm/components/schemas/base-button.schema.js +1 -1
- package/dist/esm/components/schemas/button.schema.js +1 -1
- package/dist/esm/components/schemas/icon-button.schema.js +1 -1
- package/dist/esm/components/schemas/index.js +1 -1
- package/dist/esm/components/schemas/toggle-button.schema.js +1 -1
- package/dist/esm/components/schemas/toggle-icon-button.schema.js +1 -1
- package/dist/esm/components/theme-panel.js +1 -1
- package/dist/esm/components/toggle-button.d.ts +3 -37
- package/dist/esm/components/toggle-button.d.ts.map +1 -1
- package/dist/esm/components/toggle-button.js +1 -1
- package/dist/esm/components/toggle-icon-button.d.ts +3 -2
- package/dist/esm/components/toggle-icon-button.d.ts.map +1 -1
- package/dist/esm/components/toggle-icon-button.js +1 -1
- package/dist/esm/components/toolbar.d.ts +4 -3
- package/dist/esm/components/toolbar.d.ts.map +1 -1
- package/dist/esm/components/toolbar.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/props/index.js +1 -1
- package/package.json +1 -1
- package/schemas/base-button.json +1 -1
- package/schemas/button.json +1 -1
- package/schemas/icon-button.json +1 -1
- package/schemas/index.json +5 -5
- package/schemas/toggle-button.json +1 -1
- package/schemas/toggle-icon-button.json +1 -1
- package/src/components/_internal/base-button.props.ts +3 -3
- package/src/components/button.tsx +2 -2
- package/src/components/chatbar.tsx +5 -2
- package/src/components/icon-button.tsx +2 -1
- package/src/components/message-scroller.tsx +5 -3
- package/src/components/schemas/base-button.schema.ts +2 -2
- package/src/components/sidebar.css +16 -0
- package/src/components/toggle-button.tsx +3 -1
- package/src/components/toggle-icon-button.tsx +4 -2
- package/src/components/toolbar.tsx +6 -3
- package/styles.css +12 -0
- package/dist/esm/chunk-2D5QJ6MX.js +0 -2
- package/dist/esm/chunk-2D5QJ6MX.js.map +0 -7
- package/dist/esm/chunk-522UYMDA.js.map +0 -7
- package/dist/esm/chunk-DAGHSWME.js +0 -2
- package/dist/esm/chunk-DAGHSWME.js.map +0 -7
- package/dist/esm/chunk-IICXZUIB.js +0 -2
- package/dist/esm/chunk-IICXZUIB.js.map +0 -7
- package/dist/esm/chunk-KDYHYQ4D.js +0 -2
- package/dist/esm/chunk-KDYHYQ4D.js.map +0 -7
- package/dist/esm/chunk-RJTWRLK4.js +0 -2
- package/dist/esm/chunk-RJTWRLK4.js.map +0 -7
- package/dist/esm/chunk-YEYM7QQZ.js.map +0 -7
- /package/dist/esm/{chunk-66GLO2EG.js.map → chunk-BBMENJM3.js.map} +0 -0
- /package/dist/esm/{chunk-T6Z4JUH6.js.map → chunk-BWVYB64R.js.map} +0 -0
- /package/dist/esm/{chunk-BJ2Q2WVV.js.map → chunk-EUH5MK4Q.js.map} +0 -0
- /package/dist/esm/{chunk-TCEQ5VVE.js.map → chunk-JGR3L4SN.js.map} +0 -0
- /package/dist/esm/{chunk-VJXHEDCE.js.map → chunk-LOLLL7AV.js.map} +0 -0
- /package/dist/esm/{chunk-77TGP2LO.js.map → chunk-QXEQ2C6A.js.map} +0 -0
- /package/dist/esm/{chunk-BKES3M4Y.js.map → chunk-UGGAAL4V.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c}from"../chunk-
|
|
1
|
+
"use client";import{a,b,c}from"../chunk-EUH5MK4Q.js";import"../chunk-ADFUYK3U.js";import"../chunk-BXX2NVQD.js";import"../chunk-2N2AQNJH.js";import"../chunk-HIBX2EXV.js";import"../chunk-BPVVFHYD.js";import"../chunk-KJTEZVOF.js";import"../chunk-3HGHPAH4.js";import"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import"../chunk-KNQBAOMV.js";import"../chunk-FD2TR343.js";import"../chunk-ZWZGUBL4.js";import"../chunk-WYADYDPN.js";import"../chunk-ZE2KAVXW.js";import"../chunk-FISGGGPC.js";import"../chunk-WAURCNAS.js";import"../chunk-F22ZRNWL.js";import"../chunk-7YIQV7VO.js";import"../chunk-UGGAAL4V.js";import"../chunk-PAEHH3WS.js";import"../chunk-3KB2XWBE.js";import"../chunk-AGAQC4HH.js";import"../chunk-5T6K7VPP.js";import"../chunk-PXUQEA77.js";import"../chunk-SMGDH54W.js";import"../chunk-SNR5VFWG.js";import"../chunk-FWB47YCH.js";import"../chunk-K53W3ELO.js";import"../chunk-TTFUM47A.js";import"../chunk-VX44UTQ5.js";import"../chunk-ERGJN7FJ.js";import"../chunk-5TXQLK4G.js";import"../chunk-BGVGSALM.js";import"../chunk-KRJTW535.js";import"../chunk-6FLLFCBU.js";import"../chunk-AX5S56DS.js";import"../chunk-GSTOGDAJ.js";import"../chunk-E23RKOQJ.js";import"../chunk-JUY7CBSL.js";import"../chunk-WRWNN2NW.js";import"../chunk-QM3RCK5P.js";import"../chunk-RZCX6IBE.js";import"../chunk-NZJGC6ZW.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{c as Confirmation,b as Notice,a as NoticeSizeContext};
|
|
2
2
|
//# sourceMappingURL=notice.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";export{a as BaseButtonSchema,b as parseBaseButtonProps};
|
|
2
2
|
//# sourceMappingURL=base-button.schema.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-QXEQ2C6A.js";import"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";export{a as ButtonSchema,b as parseButtonProps};
|
|
2
2
|
//# sourceMappingURL=button.schema.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-LOLLL7AV.js";import"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";export{a as IconButtonSchema,b as parseIconButtonProps};
|
|
2
2
|
//# sourceMappingURL=icon-button.schema.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l,b as p}from"../../chunk-
|
|
1
|
+
import{a as l,b as p}from"../../chunk-LOLLL7AV.js";import{a as m,b as P,c,d as i,e as g,f as u,g as B,h as d,i as f,j as T,k as x,l as b,m as I,n as R,o as j,p as y,q as H,r as v,s as M,t as z}from"../../chunk-V5ZSDDVZ.js";import{a,b as n}from"../../chunk-BWVYB64R.js";import{a as h,b as S}from"../../chunk-JGR3L4SN.js";import{a as t,b as s}from"../../chunk-QXEQ2C6A.js";import{a as o,b as r}from"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";import"zod";function k(C,e){return e}export{o as BaseButtonSchema,t as ButtonSchema,l as IconButtonSchema,d as ShellBottomSchema,u as ShellContentSchema,T as ShellHandleSchema,P as ShellHeaderSchema,B as ShellInspectorSchema,i as ShellPanelSchema,c as ShellRailSchema,m as ShellRootSchema,g as ShellSidebarSchema,f as ShellTriggerSchema,a as ToggleButtonSchema,h as ToggleIconButtonSchema,r as parseBaseButtonProps,s as parseButtonProps,p as parseIconButtonProps,k as parseProps,v as parseShellBottomProps,y as parseShellContentProps,z as parseShellHandleProps,b as parseShellHeaderProps,H as parseShellInspectorProps,R as parseShellPanelProps,I as parseShellRailProps,x as parseShellRootProps,j as parseShellSidebarProps,M as parseShellTriggerProps,n as parseToggleButtonProps,S as parseToggleIconButtonProps};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-BWVYB64R.js";import"../../chunk-QXEQ2C6A.js";import"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";export{a as ToggleButtonSchema,b as parseToggleButtonProps};
|
|
2
2
|
//# sourceMappingURL=toggle-button.schema.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-JGR3L4SN.js";import"../../chunk-P3KYZBOB.js";import"../../chunk-OS3FCYZY.js";export{a as ToggleIconButtonSchema,b as parseToggleIconButtonProps};
|
|
2
2
|
//# sourceMappingURL=toggle-icon-button.schema.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b}from"../chunk-
|
|
1
|
+
"use client";import{a,b}from"../chunk-BBMENJM3.js";import"../chunk-IBF5U4QW.js";import"../chunk-3TIO3EMN.js";import"../chunk-WHAKQCNV.js";import"../chunk-ADFUYK3U.js";import"../chunk-C7UXUTUF.js";import"../chunk-HAGKI7NA.js";import"../chunk-EUSMN3K7.js";import"../chunk-FGORMEAO.js";import"../chunk-BXX2NVQD.js";import"../chunk-2N2AQNJH.js";import"../chunk-HIBX2EXV.js";import"../chunk-BPVVFHYD.js";import"../chunk-ERNM3KVF.js";import"../chunk-MJJ7XDIP.js";import"../chunk-HFVD7W6R.js";import"../chunk-IV4YJRVR.js";import"../chunk-KJTEZVOF.js";import"../chunk-3HGHPAH4.js";import"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import"../chunk-KNQBAOMV.js";import"../chunk-FD2TR343.js";import"../chunk-ZWZGUBL4.js";import"../chunk-WYADYDPN.js";import"../chunk-ZE2KAVXW.js";import"../chunk-FISGGGPC.js";import"../chunk-WAURCNAS.js";import"../chunk-F22ZRNWL.js";import"../chunk-7YIQV7VO.js";import"../chunk-GONBMSRL.js";import"../chunk-5GXFBLBJ.js";import"../chunk-UBOOUDS4.js";import"../chunk-XPRPYCII.js";import"../chunk-5BWLY27A.js";import"../chunk-PS6NEG5A.js";import"../chunk-UGGAAL4V.js";import"../chunk-PAEHH3WS.js";import"../chunk-3KB2XWBE.js";import"../chunk-AGAQC4HH.js";import"../chunk-5T6K7VPP.js";import"../chunk-PXUQEA77.js";import"../chunk-SMGDH54W.js";import"../chunk-SNR5VFWG.js";import"../chunk-FWB47YCH.js";import"../chunk-K53W3ELO.js";import"../chunk-TTFUM47A.js";import"../chunk-VX44UTQ5.js";import"../chunk-ERGJN7FJ.js";import"../chunk-5TXQLK4G.js";import"../chunk-BGVGSALM.js";import"../chunk-KRJTW535.js";import"../chunk-IPHKKZYE.js";import"../chunk-XILM2OMC.js";import"../chunk-6FLLFCBU.js";import"../chunk-AX5S56DS.js";import"../chunk-GSTOGDAJ.js";import"../chunk-E23RKOQJ.js";import"../chunk-JUY7CBSL.js";import"../chunk-WRWNN2NW.js";import"../chunk-QM3RCK5P.js";import"../chunk-RZCX6IBE.js";import"../chunk-NZJGC6ZW.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{a as ThemePanel,b as ThemePanelContent};
|
|
2
2
|
//# sourceMappingURL=theme-panel.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ButtonProps, ButtonRankProps } from './button.js';
|
|
3
3
|
/**
|
|
4
4
|
* ToggleButton props that extend Button with toggle-specific functionality
|
|
5
5
|
*
|
|
6
6
|
* The ToggleButton component provides a button that can be pressed/unpressed
|
|
7
7
|
* with proper accessibility announcements and state management.
|
|
8
8
|
*/
|
|
9
|
-
type ToggleButtonProps =
|
|
9
|
+
type ToggleButtonProps = Omit<ButtonProps<'button'>, 'as' | 'variant' | 'emphasis'> & ButtonRankProps & {
|
|
10
10
|
/** Controlled pressed state */
|
|
11
11
|
pressed?: boolean;
|
|
12
12
|
/** Callback when pressed state changes */
|
|
@@ -57,41 +57,7 @@ type ToggleButtonProps = React.ComponentPropsWithoutRef<typeof Button> & {
|
|
|
57
57
|
* </ToggleButton>
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
declare const ToggleButton: React.ForwardRefExoticComponent<
|
|
61
|
-
variant?: import("./_internal/base-button.js").BaseButtonProps["variant"];
|
|
62
|
-
emphasis?: never;
|
|
63
|
-
} & import("./button.js").ButtonTooltipProps & {
|
|
64
|
-
overrideStyles?: import("./button.js").ButtonOverrideStyles;
|
|
65
|
-
iconOnly?: boolean;
|
|
66
|
-
} & {
|
|
67
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
68
|
-
} & Omit<Omit<any, "ref">, "className" | "type" | "value" | "style" | "form" | "slot" | "title" | "asChild" | "color" | "key" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "disabled" | "size" | "variant" | "radius" | "material" | "panelBackground" | "flush" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "m" | "ml" | "mr" | "mt" | "mb" | "mx" | "my" | "emphasis" | "loading" | "fullWidth" | keyof import("./button.js").ButtonTooltipProps | "overrideStyles" | "iconOnly"> & {
|
|
69
|
-
ref?: React.ForwardedRef<HTMLButtonElement>;
|
|
70
|
-
}, "ref"> & {
|
|
71
|
-
/** Controlled pressed state */
|
|
72
|
-
pressed?: boolean;
|
|
73
|
-
/** Callback when pressed state changes */
|
|
74
|
-
onPressedChange?: (pressed: boolean) => void;
|
|
75
|
-
/** Default pressed state for uncontrolled usage */
|
|
76
|
-
defaultPressed?: boolean;
|
|
77
|
-
}, "ref"> | Omit<Omit<Omit<import("./_internal/base-button.js").BaseButtonProps, "as" | "variant"> & {
|
|
78
|
-
emphasis?: import("./button.js").ButtonEmphasis;
|
|
79
|
-
variant?: never;
|
|
80
|
-
} & import("./button.js").ButtonTooltipProps & {
|
|
81
|
-
overrideStyles?: import("./button.js").ButtonOverrideStyles;
|
|
82
|
-
iconOnly?: boolean;
|
|
83
|
-
} & {
|
|
84
|
-
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
85
|
-
} & Omit<Omit<any, "ref">, "className" | "type" | "value" | "style" | "form" | "slot" | "title" | "asChild" | "color" | "key" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "disabled" | "size" | "variant" | "radius" | "material" | "panelBackground" | "flush" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "m" | "ml" | "mr" | "mt" | "mb" | "mx" | "my" | "emphasis" | "loading" | "fullWidth" | keyof import("./button.js").ButtonTooltipProps | "overrideStyles" | "iconOnly"> & {
|
|
86
|
-
ref?: React.ForwardedRef<HTMLButtonElement>;
|
|
87
|
-
}, "ref"> & {
|
|
88
|
-
/** Controlled pressed state */
|
|
89
|
-
pressed?: boolean;
|
|
90
|
-
/** Callback when pressed state changes */
|
|
91
|
-
onPressedChange?: (pressed: boolean) => void;
|
|
92
|
-
/** Default pressed state for uncontrolled usage */
|
|
93
|
-
defaultPressed?: boolean;
|
|
94
|
-
}, "ref">) & React.RefAttributes<HTMLButtonElement>>;
|
|
60
|
+
declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
95
61
|
export { ToggleButton };
|
|
96
62
|
export type { ToggleButtonProps };
|
|
97
63
|
//# sourceMappingURL=toggle-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;GAKG;AACH,KAAK,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,GACjF,eAAe,GAAG;IAClB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAIF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,QAAA,MAAM,YAAY,6FA6ChB,CAAC;AAGH,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-5NARBZRI.js";import"../chunk-VK7RNXUO.js";import"../chunk-EE54S7YV.js";import"../chunk-BXX2NVQD.js";import"../chunk-2N2AQNJH.js";import"../chunk-HIBX2EXV.js";import"../chunk-BPVVFHYD.js";import"../chunk-KJTEZVOF.js";import"../chunk-3HGHPAH4.js";import"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import"../chunk-KNQBAOMV.js";import"../chunk-FD2TR343.js";import"../chunk-ZWZGUBL4.js";import"../chunk-WYADYDPN.js";import"../chunk-ZE2KAVXW.js";import"../chunk-FISGGGPC.js";import"../chunk-WAURCNAS.js";import"../chunk-F22ZRNWL.js";import"../chunk-7YIQV7VO.js";import"../chunk-UGGAAL4V.js";import"../chunk-PAEHH3WS.js";import"../chunk-3KB2XWBE.js";import"../chunk-AGAQC4HH.js";import"../chunk-5T6K7VPP.js";import"../chunk-PXUQEA77.js";import"../chunk-SMGDH54W.js";import"../chunk-SNR5VFWG.js";import"../chunk-FWB47YCH.js";import"../chunk-K53W3ELO.js";import"../chunk-TTFUM47A.js";import"../chunk-VX44UTQ5.js";import"../chunk-ERGJN7FJ.js";import"../chunk-5TXQLK4G.js";import"../chunk-BGVGSALM.js";import"../chunk-KRJTW535.js";import"../chunk-6FLLFCBU.js";import"../chunk-AX5S56DS.js";import"../chunk-GSTOGDAJ.js";import"../chunk-E23RKOQJ.js";import"../chunk-JUY7CBSL.js";import"../chunk-WRWNN2NW.js";import"../chunk-QM3RCK5P.js";import"../chunk-RZCX6IBE.js";import"../chunk-NZJGC6ZW.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{a as ToggleButton};
|
|
2
2
|
//# sourceMappingURL=toggle-button.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Toggle } from 'radix-ui';
|
|
3
3
|
import type { IconButtonProps } from './icon-button.js';
|
|
4
|
+
import type { ButtonRankProps } from './button.js';
|
|
4
5
|
/**
|
|
5
6
|
* Extract toggle-specific props from Radix Toggle
|
|
6
7
|
* These props control the toggle state and behavior
|
|
@@ -30,14 +31,14 @@ type AccessibilityProps = {
|
|
|
30
31
|
* Combine IconButton props with Toggle-specific props
|
|
31
32
|
* Includes tooltip props from IconButton for comprehensive functionality
|
|
32
33
|
*/
|
|
33
|
-
|
|
34
|
+
type ToggleIconButtonProps = Omit<IconButtonProps, 'as' | 'variant' | 'emphasis'> & ButtonRankProps & {
|
|
34
35
|
/** Controlled pressed state */
|
|
35
36
|
pressed?: ToggleProps['pressed'];
|
|
36
37
|
/** Callback when pressed state changes */
|
|
37
38
|
onPressedChange?: ToggleProps['onPressedChange'];
|
|
38
39
|
/** Default pressed state for uncontrolled usage */
|
|
39
40
|
defaultPressed?: ToggleProps['defaultPressed'];
|
|
40
|
-
}
|
|
41
|
+
};
|
|
41
42
|
/**
|
|
42
43
|
* Intersection with accessibility props to ensure compliance
|
|
43
44
|
* This type ensures all ToggleIconButton instances have proper accessibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;;GAGG;AACH,KAAK,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,KAAK,kBAAkB,GACnB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GACnD;IAAE,YAAY,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,YAAY,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAEnF;;;GAGG;AACH,KAAK,qBAAqB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,SAAS,GAAG,UAAU,CAAC,GAC/E,eAAe,GAAG;IAClB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,0CAA0C;IAC1C,eAAe,CAAC,EAAE,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACjD,mDAAmD;IACnD,cAAc,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAC9C,CAAC;AAEJ;;;GAGG;AACH,KAAK,sCAAsC,GAAG,qBAAqB,GAAG,kBAAkB,CAAC;AAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,QAAA,MAAM,gBAAgB,kHAEpB,CAAC;AAGH,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EAAE,sCAAsC,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-LHGT24A5.js";import"../chunk-5NARBZRI.js";import"../chunk-VK7RNXUO.js";import"../chunk-EE54S7YV.js";import"../chunk-BXX2NVQD.js";import"../chunk-2N2AQNJH.js";import"../chunk-HIBX2EXV.js";import"../chunk-BPVVFHYD.js";import"../chunk-KJTEZVOF.js";import"../chunk-3HGHPAH4.js";import"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import"../chunk-KNQBAOMV.js";import"../chunk-FD2TR343.js";import"../chunk-ZWZGUBL4.js";import"../chunk-WYADYDPN.js";import"../chunk-ZE2KAVXW.js";import"../chunk-FISGGGPC.js";import"../chunk-WAURCNAS.js";import"../chunk-F22ZRNWL.js";import"../chunk-7YIQV7VO.js";import"../chunk-UGGAAL4V.js";import"../chunk-PAEHH3WS.js";import"../chunk-3KB2XWBE.js";import"../chunk-AGAQC4HH.js";import"../chunk-5T6K7VPP.js";import"../chunk-PXUQEA77.js";import"../chunk-SMGDH54W.js";import"../chunk-SNR5VFWG.js";import"../chunk-FWB47YCH.js";import"../chunk-K53W3ELO.js";import"../chunk-TTFUM47A.js";import"../chunk-VX44UTQ5.js";import"../chunk-ERGJN7FJ.js";import"../chunk-5TXQLK4G.js";import"../chunk-BGVGSALM.js";import"../chunk-KRJTW535.js";import"../chunk-6FLLFCBU.js";import"../chunk-AX5S56DS.js";import"../chunk-GSTOGDAJ.js";import"../chunk-E23RKOQJ.js";import"../chunk-JUY7CBSL.js";import"../chunk-WRWNN2NW.js";import"../chunk-QM3RCK5P.js";import"../chunk-RZCX6IBE.js";import"../chunk-NZJGC6ZW.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{a as ToggleIconButton};
|
|
2
2
|
//# sourceMappingURL=toggle-icon-button.js.map
|
|
@@ -5,6 +5,7 @@ import type { ButtonProps } from './button.js';
|
|
|
5
5
|
import type { MarginProps } from '../props/margin.props.js';
|
|
6
6
|
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
7
7
|
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
8
|
+
import type { ButtonRankProps } from './button.js';
|
|
8
9
|
type ToolbarOwnProps = GetPropDefTypes<typeof toolbarRootPropDefs>;
|
|
9
10
|
interface ToolbarProps extends ComponentPropsWithout<typeof ToolbarPrimitive.Root, RemovedProps | 'orientation'>, ToolbarOwnProps, MarginProps {
|
|
10
11
|
}
|
|
@@ -37,13 +38,13 @@ interface ToolbarGroupProps extends ComponentPropsWithout<'div', RemovedProps> {
|
|
|
37
38
|
* To cluster controls without a well, use a `Flex`.
|
|
38
39
|
*/
|
|
39
40
|
declare const ToolbarGroup: React.ForwardRefExoticComponent<ToolbarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
-
type ToolbarButtonBaseProps = Omit<ButtonProps, 'as' | 'asChild'>;
|
|
41
|
+
type ToolbarButtonBaseProps = Omit<ButtonProps, 'as' | 'asChild' | 'variant' | 'emphasis'>;
|
|
41
42
|
/** A labelled button: takes every `Button` prop. */
|
|
42
|
-
type ToolbarTextButtonProps = ToolbarButtonBaseProps & {
|
|
43
|
+
type ToolbarTextButtonProps = ToolbarButtonBaseProps & ButtonRankProps & {
|
|
43
44
|
iconOnly?: false;
|
|
44
45
|
};
|
|
45
46
|
/** An icon-only button: renders an `IconButton`, and the type requires an `aria-label`. */
|
|
46
|
-
type ToolbarIconButtonProps = Omit<ToolbarButtonBaseProps, 'aria-label' | 'aria-labelledby' | 'overrideStyles'> & {
|
|
47
|
+
type ToolbarIconButtonProps = Omit<ToolbarButtonBaseProps, 'aria-label' | 'aria-labelledby' | 'overrideStyles'> & ButtonRankProps & {
|
|
47
48
|
iconOnly: true;
|
|
48
49
|
/** The control's accessible name. An icon has no words of its own, so this is required. */
|
|
49
50
|
'aria-label': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/toolbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAyCnD,KAAK,eAAe,GAAG,eAAe,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEnE,UAAU,YACR,SAAQ,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,IAAI,EAAE,YAAY,GAAG,aAAa,CAAC,EACvF,eAAe,EACf,WAAW;CAAG;AAElB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAA,MAAM,WAAW,qFAqBf,CAAC;AAOH,UAAU,iBAAkB,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC;IAC5E,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,QAAA,MAAM,YAAY,0FAiBjB,CAAC;AAOF,KAAK,sBAAsB,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE3F,oDAAoD;AACpD,KAAK,sBAAsB,GAAG,sBAAsB,GAClD,eAAe,GAAG;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CAAC;AAEF,2FAA2F;AAC3F,KAAK,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,EAAE,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,CAAC,GAC7G,eAAe,GAAG;IAClB,QAAQ,EAAE,IAAI,CAAC;IACf,2FAA2F;IAC3F,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,sBAAsB,CAAC;AAM1E;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,8FA4BjB,CAAC;AAOH,KAAK,qBAAqB,GAAG,qBAAqB,CAAC,OAAO,gBAAgB,CAAC,SAAS,EAAE,YAAY,GAAG,aAAa,CAAC,CAAC;AAEpH;;;GAGG;AACH,QAAA,MAAM,gBAAgB,8FAWrB,CAAC;AAUF,UAAU,iBAAiB;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,oFAAoF;IACpF,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;;GAIG;AACH,QAAA,MAAM,YAAY,2FAmBjB,CAAC;AAOF,QAAA,MAAM,OAAO;;;;;;CAMX,CAAC;AAEH,OAAO,EACL,OAAO,EACP,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,WAAW,IAAI,IAAI,EACnB,YAAY,IAAI,KAAK,EACrB,aAAa,IAAI,MAAM,EACvB,gBAAgB,IAAI,SAAS,EAC7B,YAAY,IAAI,KAAK,GACtB,CAAC;AACF,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,IAAI,SAAS,EACzB,iBAAiB,IAAI,UAAU,EAC/B,kBAAkB,IAAI,WAAW,EACjC,qBAAqB,IAAI,cAAc,EACvC,iBAAiB,IAAI,UAAU,GAChC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
"use client";import{a,b,c,d,e,f}from"../chunk-TUKX2BRO.js";import"../chunk-ZUOK3KFY.js";import"../chunk-ADFUYK3U.js";import"../chunk-BXX2NVQD.js";import"../chunk-2N2AQNJH.js";import"../chunk-HIBX2EXV.js";import"../chunk-BPVVFHYD.js";import"../chunk-KJTEZVOF.js";import"../chunk-3HGHPAH4.js";import"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import"../chunk-KNQBAOMV.js";import"../chunk-FD2TR343.js";import"../chunk-ZWZGUBL4.js";import"../chunk-WYADYDPN.js";import"../chunk-ZE2KAVXW.js";import"../chunk-FISGGGPC.js";import"../chunk-WAURCNAS.js";import"../chunk-F22ZRNWL.js";import"../chunk-7YIQV7VO.js";import"../chunk-UGGAAL4V.js";import"../chunk-PAEHH3WS.js";import"../chunk-3KB2XWBE.js";import"../chunk-AGAQC4HH.js";import"../chunk-5T6K7VPP.js";import"../chunk-PXUQEA77.js";import"../chunk-SMGDH54W.js";import"../chunk-SNR5VFWG.js";import"../chunk-FWB47YCH.js";import"../chunk-K53W3ELO.js";import"../chunk-TTFUM47A.js";import"../chunk-VX44UTQ5.js";import"../chunk-ERGJN7FJ.js";import"../chunk-5TXQLK4G.js";import"../chunk-BGVGSALM.js";import"../chunk-KRJTW535.js";import"../chunk-6FLLFCBU.js";import"../chunk-AX5S56DS.js";import"../chunk-GSTOGDAJ.js";import"../chunk-E23RKOQJ.js";import"../chunk-JUY7CBSL.js";import"../chunk-WRWNN2NW.js";import"../chunk-QM3RCK5P.js";import"../chunk-RZCX6IBE.js";import"../chunk-NZJGC6ZW.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{c as Button,b as Group,a as Root,d as Separator,e as Title,f as Toolbar,c as ToolbarButton,b as ToolbarGroup,d as ToolbarSeparator,e as ToolbarTitle};
|
|
2
2
|
//# sourceMappingURL=toolbar.js.map
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-2KZ4NI3X.js";import{a as No,b as Oo}from"./chunk-HT7RFHLW.js";import{a as Lo,b as Mo}from"./chunk-IUER6BNH.js";import"./chunk-C7EVYSWK.js";import{a as Ao}from"./chunk-
|
|
1
|
+
import"./chunk-2KZ4NI3X.js";import{a as No,b as Oo}from"./chunk-HT7RFHLW.js";import{a as Lo,b as Mo}from"./chunk-IUER6BNH.js";import"./chunk-C7EVYSWK.js";import{a as Ao}from"./chunk-LHGT24A5.js";import{a as zo}from"./chunk-5NARBZRI.js";import{a as yo}from"./chunk-VK7RNXUO.js";import{a as wo}from"./chunk-EE54S7YV.js";import{b as Bo,c as Co,d as Do,e as Eo,f as Fo}from"./chunk-TUKX2BRO.js";import"./chunk-ZUOK3KFY.js";import{a as Go}from"./chunk-3M73GWN5.js";import"./chunk-ZVIWTYHE.js";import{a as qo}from"./chunk-ROGC7K5N.js";import{c as so}from"./chunk-CL6P54QT.js";import"./chunk-GRRV4I2I.js";import{a as uo,b as vo}from"./chunk-BBMENJM3.js";import{a as jo}from"./chunk-VBAXORVV.js";import{c as ko}from"./chunk-UE2OBZIS.js";import"./chunk-AUV6B4AH.js";import{h as lo}from"./chunk-RUPET4E7.js";import"./chunk-BALS3AVM.js";import{e as no}from"./chunk-SIBSXKFF.js";import"./chunk-TZTUPQYK.js";import"./chunk-OVGPUFRI.js";import{a as ho}from"./chunk-HJLBVNQE.js";import"./chunk-5G4WWJ4Z.js";import{a as io}from"./chunk-43A5GUSI.js";import"./chunk-XI5YXUCK.js";import"./chunk-3WCSLQNH.js";import{h as Io}from"./chunk-UTHTSYSL.js";import"./chunk-ADXZNG4F.js";import"./chunk-2EQWBT2S.js";import{p as Ho}from"./chunk-OUSDYZDE.js";import"./chunk-KJC32RWT.js";import{a as bo}from"./chunk-KXSMY4ZF.js";import{c as ao}from"./chunk-IHRLGR6J.js";import"./chunk-VJUFYYKP.js";import{h as co}from"./chunk-SURYYF7I.js";import"./chunk-PLTTQFRQ.js";import{a as go}from"./chunk-K7BWSYVP.js";import"./chunk-UBWRIE4C.js";import{g as Jo}from"./chunk-45AMHIBO.js";import"./chunk-NIX6Z3JG.js";import{c as mo}from"./chunk-IY3GKGDZ.js";import{c as po}from"./chunk-CIKDGYX3.js";import"./chunk-2DKLJMUU.js";import{a as to}from"./chunk-4JNHUPIM.js";import"./chunk-STPMPY3X.js";import{a as xo}from"./chunk-FHEHX7CE.js";import{a as ro}from"./chunk-XEZXKPLE.js";import{a as eo}from"./chunk-RUOOCYK4.js";import"./chunk-CMEKH4I5.js";import{a as fo}from"./chunk-GLERJXVS.js";import"./chunk-MCQCG6AS.js";import"./chunk-FNB47XDO.js";import{a as $}from"./chunk-O2WPAUQN.js";import"./chunk-ZK55O7TN.js";import{i as Ko}from"./chunk-ALG6R3ZX.js";import{e as oo}from"./chunk-R2MQMCND.js";import"./chunk-7ZOGH5NT.js";import{a as Z}from"./chunk-VUKTURU4.js";import{a as Y}from"./chunk-IVBKTHDM.js";import"./chunk-IBF5U4QW.js";import"./chunk-L6UXAITB.js";import"./chunk-GFOSP3PZ.js";import{a as _}from"./chunk-N6Q3L64W.js";import"./chunk-JAMLW534.js";import{d as X}from"./chunk-34UMKY2L.js";import"./chunk-VJSZG35J.js";import{e as S}from"./chunk-JXVUTFQN.js";import"./chunk-OW4KAIWF.js";import{g as U}from"./chunk-DJA5MCJA.js";import{a as T}from"./chunk-MHANZINI.js";import{o as V}from"./chunk-4WLDX7WZ.js";import"./chunk-WOR3JCLX.js";import{a as W}from"./chunk-7FC7HF76.js";import"./chunk-4JQZUQY7.js";import{a as M}from"./chunk-SGUTNJUO.js";import"./chunk-YBS2IB7Z.js";import{l as O}from"./chunk-V3QVAXH3.js";import{g as N}from"./chunk-3TIO3EMN.js";import"./chunk-WHAKQCNV.js";import"./chunk-27SCVCQY.js";import{a as P}from"./chunk-3UZHKW6I.js";import"./chunk-PPNWGWN3.js";import{n as R}from"./chunk-H7LHGT44.js";import{a as Q}from"./chunk-YLLCCUC7.js";import"./chunk-OA7C34MJ.js";import{m as H}from"./chunk-ARDKQL7Q.js";import{b as F,c as G}from"./chunk-EUH5MK4Q.js";import{a as A}from"./chunk-ADFUYK3U.js";import{c as J}from"./chunk-4BPRLR6C.js";import{a as I}from"./chunk-C7UXUTUF.js";import"./chunk-2C5WLKEZ.js";import"./chunk-HAGKI7NA.js";import{c as K}from"./chunk-ZE2GWHPY.js";import"./chunk-V32EP3S7.js";import"./chunk-YL62I5SI.js";import{a as L}from"./chunk-GLKN32J3.js";import{a as B,b as C,c as D,d as E}from"./chunk-IX5HIHVI.js";import"./chunk-UICSVJ3B.js";import{a as v}from"./chunk-EUSMN3K7.js";import"./chunk-FGORMEAO.js";import{a as y}from"./chunk-BXX2NVQD.js";import{a as w}from"./chunk-2N2AQNJH.js";import{d as z}from"./chunk-5JS7ADWX.js";import"./chunk-O2RISF37.js";import{f as k}from"./chunk-4D5LR4H6.js";import{a as j}from"./chunk-HNO4X33C.js";import"./chunk-CSUEZWN5.js";import{a as l}from"./chunk-Y7LT3F6R.js";import{a as n}from"./chunk-OB3MHLQL.js";import"./chunk-47CEZJM2.js";import{a as s}from"./chunk-S3GZZXQ7.js";import{a as q}from"./chunk-HIBX2EXV.js";import"./chunk-BPVVFHYD.js";import"./chunk-JTN3KTAS.js";import{a as u}from"./chunk-LJXP6K5Y.js";import"./chunk-OJSDBLP7.js";import{a as c}from"./chunk-ERNM3KVF.js";import{f as d}from"./chunk-6JP5PIOO.js";import"./chunk-2T74JEVN.js";import{h as i}from"./chunk-3Q3EOUGJ.js";import"./chunk-MJJ7XDIP.js";import{a as g}from"./chunk-HFVD7W6R.js";import"./chunk-IV4YJRVR.js";import{a as h}from"./chunk-KJTEZVOF.js";import"./chunk-3HGHPAH4.js";import"./chunk-G2CKYO2I.js";import"./chunk-AXUDFYLY.js";import"./chunk-KNQBAOMV.js";import"./chunk-FD2TR343.js";import"./chunk-ZWZGUBL4.js";import"./chunk-WYADYDPN.js";import"./chunk-ZE2KAVXW.js";import"./chunk-XKBLNVOD.js";import"./chunk-GCUGJXI2.js";import"./chunk-SQ4BU4GH.js";import{a as t,b as x,c as a}from"./chunk-FISGGGPC.js";import"./chunk-WAURCNAS.js";import"./chunk-F22ZRNWL.js";import"./chunk-7YIQV7VO.js";import"./chunk-SQZ5O7QS.js";import{a as b}from"./chunk-GONBMSRL.js";import"./chunk-5GXFBLBJ.js";import"./chunk-UBOOUDS4.js";import"./chunk-XPRPYCII.js";import"./chunk-5BWLY27A.js";import"./chunk-PS6NEG5A.js";import"./chunk-ZQVYY7UT.js";import"./chunk-62CJL5G7.js";import"./chunk-3J6AUDID.js";import"./chunk-HCNO7PX6.js";import"./chunk-GMHA5CFH.js";import"./chunk-A2XVR7GL.js";import"./chunk-BZZXXZ3O.js";import"./chunk-2LYX5S7H.js";import"./chunk-HWQ3NTJP.js";import"./chunk-UGGAAL4V.js";import{a as f}from"./chunk-PAEHH3WS.js";import"./chunk-3KB2XWBE.js";import{a as m}from"./chunk-AGAQC4HH.js";import"./chunk-5T6K7VPP.js";import{a as e}from"./chunk-PXUQEA77.js";import"./chunk-SMGDH54W.js";import"./chunk-SNR5VFWG.js";import{b as o,c as r}from"./chunk-FWB47YCH.js";import"./chunk-K53W3ELO.js";import"./chunk-TTFUM47A.js";import"./chunk-VX44UTQ5.js";import"./chunk-ERGJN7FJ.js";import"./chunk-5TXQLK4G.js";import"./chunk-BGVGSALM.js";import"./chunk-KRJTW535.js";import"./chunk-RON6FXLO.js";import"./chunk-DVSXWSAT.js";import"./chunk-UK3BFTI2.js";import{a as p}from"./chunk-IPHKKZYE.js";import"./chunk-XILM2OMC.js";import"./chunk-3XSB7YIM.js";import"./chunk-YA5DF67M.js";import"./chunk-6FLLFCBU.js";import"./chunk-AX5S56DS.js";import"./chunk-GSTOGDAJ.js";import"./chunk-E23RKOQJ.js";import"./chunk-JUY7CBSL.js";import"./chunk-WRWNN2NW.js";import"./chunk-QM3RCK5P.js";import"./chunk-RZCX6IBE.js";import"./chunk-NZJGC6ZW.js";import"./chunk-WDNTAQ6G.js";import"./chunk-AVFGMLL4.js";import"./chunk-YIK4ACXS.js";import"./chunk-WTXQB2EV.js";import"./chunk-Z4DTHR2S.js";import"./chunk-JSW6J6RS.js";import"./chunk-OS3FCYZY.js";export{Lo as APPEARANCE_STORAGE_KEY,c as AccessibleIcon,d as Accordion,i as AlertDialog,k as AppBar,l as AspectRatio,n as Avatar,s as Badge,u as Blockquote,v as Box,y as Button,z as Callout,j as Card,H as Chatbar,L as Checkbox,J as CheckboxCards,K as CheckboxGroup,D as ChevronDownIcon,M as Code,O as Combobox,G as Confirmation,P as Container,R as ContextMenu,S as DataList,U as Dialog,V as DropdownMenu,W as Em,e as Flex,I as Grid,g as Heading,X as HoverCard,A as IconButton,Z as Image,_ as Inset,p as Kbd,$ as Link,Ko as MessageScroller,oo as Navbar,F as Notice,N as Popover,ro as Portal,eo as Progress,fo as Quote,to as Radio,mo as RadioCards,po as RadioGroup,xo as Reset,b as ScrollArea,bo as Section,ao as SegmentedControl,co as Select,go as Separator,Jo as Sheet,Io as Shell,Ho as Sidebar,Y as Skeleton,ho as Slider,o as Slot,r as Slottable,f as Spinner,io as Strong,jo as Switch,ko as TabNav,lo as Table,no as Tabs,h as Text,qo as TextArea,so as TextField,a as Theme,t as ThemeContext,uo as ThemePanel,vo as ThemePanelContent,C as ThickCheckIcon,E as ThickChevronRightIcon,B as ThickDividerHorizontalIcon,zo as ToggleButton,Ao as ToggleIconButton,Fo as Toolbar,Co as ToolbarButton,Bo as ToolbarGroup,Do as ToolbarSeparator,Eo as ToolbarTitle,q as Tooltip,Go as UserCard,Q as VirtualMenu,m as VisuallyHidden,Mo as appearanceScript,No as setAppearance,Oo as useAppearance,T as useBodyPointerEventsCleanup,wo as useLiveAnnouncer,x as useThemeContext,yo as useToggleState,w as useTooltipWrapper};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/props/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as Ho}from"../chunk-MQWH2IFO.js";import"../chunk-YKPMLM7M.js";import{a as Fo,b as Go}from"../chunk-GRRV4I2I.js";import{a as yo}from"../chunk-AUV6B4AH.js";import{a as zo,b as Ao,c as Bo}from"../chunk-BALS3AVM.js";import{a as Co,b as Do}from"../chunk-TZTUPQYK.js";import{a as Eo}from"../chunk-OVGPUFRI.js";import{a as uo}from"../chunk-5G4WWJ4Z.js";import{a as vo}from"../chunk-XI5YXUCK.js";import{a as wo}from"../chunk-3WCSLQNH.js";import{a as jo}from"../chunk-VJUFYYKP.js";import{a as lo,b as no,c as qo}from"../chunk-PLTTQFRQ.js";import{a as so}from"../chunk-UBWRIE4C.js";import{a as ko}from"../chunk-NIX6Z3JG.js";import{a as io}from"../chunk-2DKLJMUU.js";import"../chunk-STPMPY3X.js";import{a as co}from"../chunk-CMEKH4I5.js";import{a as go}from"../chunk-MCQCG6AS.js";import{a as ho}from"../chunk-FNB47XDO.js";import{a as bo}from"../chunk-ZK55O7TN.js";import{a as xo}from"../chunk-L6UXAITB.js";import{a as to}from"../chunk-GFOSP3PZ.js";import{a as ao}from"../chunk-JAMLW534.js";import{a as po}from"../chunk-VJSZG35J.js";import{a as ro,b as eo,c as fo}from"../chunk-OW4KAIWF.js";import"../chunk-WOR3JCLX.js";import{a as mo}from"../chunk-4JQZUQY7.js";import{a as _}from"../chunk-YBS2IB7Z.js";import{a as $}from"../chunk-WHAKQCNV.js";import{a as oo}from"../chunk-PPNWGWN3.js";import"../chunk-OA7C34MJ.js";import{a as Y}from"../chunk-2C5WLKEZ.js";import{a as X}from"../chunk-HAGKI7NA.js";import{a as Z}from"../chunk-YL62I5SI.js";import"../chunk-UICSVJ3B.js";import{a as V}from"../chunk-FGORMEAO.js";import"../chunk-6DWDNKLS.js";import{a as W}from"../chunk-O2RISF37.js";import{a as Q}from"../chunk-CSUEZWN5.js";import{a as R}from"../chunk-47CEZJM2.js";import{a as T}from"../chunk-BPVVFHYD.js";import{a as S}from"../chunk-JTN3KTAS.js";import{a as U}from"../chunk-RWN22S44.js";import{a as O}from"../chunk-IV4YJRVR.js";import{a as P}from"../chunk-3HGHPAH4.js";import{a as K}from"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import{a as J}from"../chunk-KNQBAOMV.js";import{a as N}from"../chunk-FD2TR343.js";import{a as H,b as I}from"../chunk-ZWZGUBL4.js";import{a as L}from"../chunk-WYADYDPN.js";import{a as M}from"../chunk-ZE2KAVXW.js";import{a as G}from"../chunk-XKBLNVOD.js";import{a as F}from"../chunk-GCUGJXI2.js";import{a as D}from"../chunk-7YIQV7VO.js";import{a as E}from"../chunk-XPRPYCII.js";import{a as n}from"../chunk-3KB2XWBE.js";import{a as l}from"../chunk-SMGDH54W.js";import{a as k}from"../chunk-SNR5VFWG.js";import{a as i}from"../chunk-K53W3ELO.js";import{a as d}from"../chunk-TTFUM47A.js";import{a as g}from"../chunk-VX44UTQ5.js";import{a as h}from"../chunk-ERGJN7FJ.js";import{a}from"../chunk-
|
|
1
|
+
import{a as Ho}from"../chunk-MQWH2IFO.js";import"../chunk-YKPMLM7M.js";import{a as Fo,b as Go}from"../chunk-GRRV4I2I.js";import{a as yo}from"../chunk-AUV6B4AH.js";import{a as zo,b as Ao,c as Bo}from"../chunk-BALS3AVM.js";import{a as Co,b as Do}from"../chunk-TZTUPQYK.js";import{a as Eo}from"../chunk-OVGPUFRI.js";import{a as uo}from"../chunk-5G4WWJ4Z.js";import{a as vo}from"../chunk-XI5YXUCK.js";import{a as wo}from"../chunk-3WCSLQNH.js";import{a as jo}from"../chunk-VJUFYYKP.js";import{a as lo,b as no,c as qo}from"../chunk-PLTTQFRQ.js";import{a as so}from"../chunk-UBWRIE4C.js";import{a as ko}from"../chunk-NIX6Z3JG.js";import{a as io}from"../chunk-2DKLJMUU.js";import"../chunk-STPMPY3X.js";import{a as co}from"../chunk-CMEKH4I5.js";import{a as go}from"../chunk-MCQCG6AS.js";import{a as ho}from"../chunk-FNB47XDO.js";import{a as bo}from"../chunk-ZK55O7TN.js";import{a as xo}from"../chunk-L6UXAITB.js";import{a as to}from"../chunk-GFOSP3PZ.js";import{a as ao}from"../chunk-JAMLW534.js";import{a as po}from"../chunk-VJSZG35J.js";import{a as ro,b as eo,c as fo}from"../chunk-OW4KAIWF.js";import"../chunk-WOR3JCLX.js";import{a as mo}from"../chunk-4JQZUQY7.js";import{a as _}from"../chunk-YBS2IB7Z.js";import{a as $}from"../chunk-WHAKQCNV.js";import{a as oo}from"../chunk-PPNWGWN3.js";import"../chunk-OA7C34MJ.js";import{a as Y}from"../chunk-2C5WLKEZ.js";import{a as X}from"../chunk-HAGKI7NA.js";import{a as Z}from"../chunk-YL62I5SI.js";import"../chunk-UICSVJ3B.js";import{a as V}from"../chunk-FGORMEAO.js";import"../chunk-6DWDNKLS.js";import{a as W}from"../chunk-O2RISF37.js";import{a as Q}from"../chunk-CSUEZWN5.js";import{a as R}from"../chunk-47CEZJM2.js";import{a as T}from"../chunk-BPVVFHYD.js";import{a as S}from"../chunk-JTN3KTAS.js";import{a as U}from"../chunk-RWN22S44.js";import{a as O}from"../chunk-IV4YJRVR.js";import{a as P}from"../chunk-3HGHPAH4.js";import{a as K}from"../chunk-G2CKYO2I.js";import"../chunk-AXUDFYLY.js";import{a as J}from"../chunk-KNQBAOMV.js";import{a as N}from"../chunk-FD2TR343.js";import{a as H,b as I}from"../chunk-ZWZGUBL4.js";import{a as L}from"../chunk-WYADYDPN.js";import{a as M}from"../chunk-ZE2KAVXW.js";import{a as G}from"../chunk-XKBLNVOD.js";import{a as F}from"../chunk-GCUGJXI2.js";import{a as D}from"../chunk-7YIQV7VO.js";import{a as E}from"../chunk-XPRPYCII.js";import{a as n}from"../chunk-3KB2XWBE.js";import{a as l}from"../chunk-SMGDH54W.js";import{a as k}from"../chunk-SNR5VFWG.js";import{a as i}from"../chunk-K53W3ELO.js";import{a as d}from"../chunk-TTFUM47A.js";import{a as g}from"../chunk-VX44UTQ5.js";import{a as h}from"../chunk-ERGJN7FJ.js";import{a}from"../chunk-BGVGSALM.js";import{a as t,b as x}from"../chunk-KRJTW535.js";import{a as q}from"../chunk-RON6FXLO.js";import{a as s,b as u,c as v,d as w,e as y,f as z}from"../chunk-DVSXWSAT.js";import{a as A}from"../chunk-XILM2OMC.js";import{a as j}from"../chunk-GSTOGDAJ.js";import{a as b,b as c}from"../chunk-WRWNN2NW.js";import{a as o}from"../chunk-NZJGC6ZW.js";import{a as B}from"../chunk-WDNTAQ6G.js";import"../chunk-AVFGMLL4.js";import"../chunk-YIK4ACXS.js";import{a as C}from"../chunk-WTXQB2EV.js";import{a as r,b as e,c as f,d as m,e as p}from"../chunk-Z4DTHR2S.js";import"../chunk-OS3FCYZY.js";export{m as accentColorPropDef,r as accentColors,G as alertDialogContentPropDefs,o as asChildPropDef,R as avatarPropDefs,S as badgePropDefs,U as blockquotePropDefs,V as boxPropDefs,c as breakpointSet,b as breakpoints,a as buttonPropDefs,W as calloutRootPropDefs,Q as cardPropDefs,Y as checkboxCardsRootPropDefs,Z as checkboxGroupRootPropDefs,q as checkboxPropDefs,_ as codePropDefs,f as colorPropDef,oo as containerPropDefs,y as contextMenuCheckboxItemPropDefs,v as contextMenuContentPropDefs,w as contextMenuItemPropDefs,z as contextMenuRadioItemPropDefs,v as contextMenuSubContentPropDefs,eo as dataListItemPropDefs,fo as dataListLabelPropDefs,ro as dataListRootPropDefs,F as dialogContentPropDefs,y as dropdownMenuCheckboxItemPropDefs,u as dropdownMenuContentPropDefs,w as dropdownMenuItemPropDefs,z as dropdownMenuRadioItemPropDefs,v as dropdownMenuSubContentPropDefs,mo as emPropDefs,H as emphases,I as emphasisPropDef,l as flexPropDefs,k as gapPropDefs,p as grayAccentColorPropDef,e as grayColors,X as gridPropDefs,O as headingPropDefs,g as heightPropDefs,po as hoverCardContentPropDefs,a as iconButtonPropDefs,to as imagePropDefs,ao as insetPropDefs,A as kbdPropDefs,i as layoutPropDefs,J as leadingTrimPropDef,bo as linkPropDefs,j as marginPropDefs,d as paddingPropDefs,$ as popoverContentPropDefs,co as progressPropDefs,go as quotePropDefs,t as radii,ho as radioCardsRootPropDefs,io as radioGroupRootPropDefs,B as radioPropDefs,x as radiusPropDef,E as scrollAreaPropDefs,ko as sectionPropDefs,jo as segmentedControlRootPropDefs,qo as selectContentPropDefs,lo as selectRootPropDefs,no as selectTriggerPropDefs,so as separatorPropDefs,Ho as shadowPropDefs,xo as skeletonPropDefs,uo as sliderPropDefs,n as spinnerPropDefs,vo as strongPropDefs,s as submenuBehaviors,wo as switchPropDefs,yo as tabNavLinkPropDefs,C as tabNavRootPropDefs,Bo as tableCellPropDefs,zo as tableRootPropDefs,Ao as tableRowPropDefs,Do as tabsContentPropDefs,C as tabsListPropDefs,Co as tabsRootPropDefs,K as textAlignPropDef,Eo as textAreaPropDefs,Fo as textFieldRootPropDefs,Go as textFieldSlotPropDefs,P as textPropDefs,L as textWrapPropDef,D as themePropDefs,T as tooltipPropDefs,M as truncatePropDef,N as weightPropDef,h as widthPropDefs};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/schemas/base-button.json
CHANGED
package/schemas/button.json
CHANGED
package/schemas/icon-button.json
CHANGED
package/schemas/index.json
CHANGED
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"variant": {
|
|
89
|
-
"default": "
|
|
89
|
+
"default": "solid",
|
|
90
90
|
"description": "Visual variant that determines the button's appearance and context",
|
|
91
91
|
"type": "string",
|
|
92
92
|
"enum": [
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
]
|
|
372
372
|
},
|
|
373
373
|
"variant": {
|
|
374
|
-
"default": "
|
|
374
|
+
"default": "solid",
|
|
375
375
|
"description": "Visual variant that determines the button's appearance and context",
|
|
376
376
|
"type": "string",
|
|
377
377
|
"enum": [
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
]
|
|
908
908
|
},
|
|
909
909
|
"variant": {
|
|
910
|
-
"default": "
|
|
910
|
+
"default": "solid",
|
|
911
911
|
"description": "Visual variant that determines the button's appearance and context",
|
|
912
912
|
"type": "string",
|
|
913
913
|
"enum": [
|
|
@@ -1226,7 +1226,7 @@
|
|
|
1226
1226
|
]
|
|
1227
1227
|
},
|
|
1228
1228
|
"variant": {
|
|
1229
|
-
"default": "
|
|
1229
|
+
"default": "solid",
|
|
1230
1230
|
"description": "Visual variant that determines the button's appearance and context",
|
|
1231
1231
|
"type": "string",
|
|
1232
1232
|
"enum": [
|
|
@@ -1770,7 +1770,7 @@
|
|
|
1770
1770
|
]
|
|
1771
1771
|
},
|
|
1772
1772
|
"variant": {
|
|
1773
|
-
"default": "
|
|
1773
|
+
"default": "solid",
|
|
1774
1774
|
"description": "Visual variant that determines the button's appearance and context",
|
|
1775
1775
|
"type": "string",
|
|
1776
1776
|
"enum": [
|
|
@@ -16,8 +16,8 @@ const sizes = ['1', '2', '3', '4'] as const;
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Available button variants for different visual contexts
|
|
19
|
-
* - raised: lifted off its ground, with an edge and a shadow
|
|
20
|
-
* - solid: Primary actions that should be noticed first
|
|
19
|
+
* - raised: lifted off its ground, with an edge and a shadow
|
|
20
|
+
* - solid: Primary actions that should be noticed first (the default)
|
|
21
21
|
* - soft: Content-heavy interfaces, natural integration
|
|
22
22
|
* - surface: Elevated appearance with subtle depth
|
|
23
23
|
* - outline: Secondary actions that support primary actions
|
|
@@ -77,7 +77,7 @@ const baseButtonPropDefs = {
|
|
|
77
77
|
/**
|
|
78
78
|
* Visual variant that determines the button's appearance and context
|
|
79
79
|
*/
|
|
80
|
-
variant: { type: 'enum', className: 'rt-variant', values: variants, default: '
|
|
80
|
+
variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'solid', parseValue: parseVariant },
|
|
81
81
|
...accentColorPropDef,
|
|
82
82
|
...radiusPropDef,
|
|
83
83
|
/**
|
|
@@ -79,7 +79,7 @@ type ButtonRankProps =
|
|
|
79
79
|
emphasis?: never;
|
|
80
80
|
}
|
|
81
81
|
| {
|
|
82
|
-
/** The button's rank: `loud` (solid), `medium` (raised
|
|
82
|
+
/** The button's rank: `loud` (solid, the default), `medium` (raised) or `quiet` (ghost). */
|
|
83
83
|
emphasis?: ButtonEmphasis;
|
|
84
84
|
variant?: never;
|
|
85
85
|
};
|
|
@@ -251,4 +251,4 @@ const Button = React.forwardRef(
|
|
|
251
251
|
Button.displayName = 'Button';
|
|
252
252
|
|
|
253
253
|
export { Button };
|
|
254
|
-
export type { ButtonProps, ButtonEmphasis, ButtonOverrideStyles, ButtonOverrideStateStyles };
|
|
254
|
+
export type { ButtonProps, ButtonEmphasis, ButtonRankProps, ButtonOverrideStyles, ButtonOverrideStateStyles };
|
|
@@ -17,6 +17,7 @@ import { VisuallyHidden } from './visually-hidden.js';
|
|
|
17
17
|
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
18
18
|
import type { accentColors } from '../props/color.prop.js';
|
|
19
19
|
import type { radii } from '../props/radius.prop.js';
|
|
20
|
+
import type { ButtonRankProps } from './button.js';
|
|
20
21
|
|
|
21
22
|
// Avoid SSR warnings by using an isomorphic layout effect
|
|
22
23
|
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
@@ -1294,7 +1295,8 @@ RowEnd.displayName = 'Chatbar.RowEnd';
|
|
|
1294
1295
|
|
|
1295
1296
|
type SendStatus = 'ready' | 'submitted' | 'streaming' | 'error';
|
|
1296
1297
|
|
|
1297
|
-
type SendProps = Omit<IconButtonProps, 'aria-label' | 'aria-labelledby'> &
|
|
1298
|
+
type SendProps = Omit<IconButtonProps, 'aria-label' | 'aria-labelledby' | 'variant' | 'emphasis'> &
|
|
1299
|
+
ButtonRankProps & {
|
|
1298
1300
|
/** Optional override for accessible name. Defaults to "Send". */
|
|
1299
1301
|
'aria-label'?: string;
|
|
1300
1302
|
'aria-labelledby'?: string;
|
|
@@ -1332,6 +1334,7 @@ const Send = React.forwardRef<HTMLButtonElement, SendProps>((props, forwardedRef
|
|
|
1332
1334
|
className,
|
|
1333
1335
|
size: sizeProp,
|
|
1334
1336
|
variant: variantProp,
|
|
1337
|
+
emphasis,
|
|
1335
1338
|
tabIndex,
|
|
1336
1339
|
onClick,
|
|
1337
1340
|
status = 'ready',
|
|
@@ -1405,7 +1408,7 @@ const Send = React.forwardRef<HTMLButtonElement, SendProps>((props, forwardedRef
|
|
|
1405
1408
|
{...buttonProps}
|
|
1406
1409
|
ref={forwardedRef}
|
|
1407
1410
|
size={sizeProp ?? ctx.size}
|
|
1408
|
-
variant
|
|
1411
|
+
{...(emphasis ? { emphasis } : { variant: variantProp ?? (ctx.open || mode !== 'send' ? 'solid' : 'ghost') })}
|
|
1409
1412
|
disabled={inactive}
|
|
1410
1413
|
className={classNames('rt-ChatbarSend', className)}
|
|
1411
1414
|
style={{ opacity: visible ? 1 : 0, pointerEvents: visible ? undefined : 'none', ...style }}
|
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { BaseButton } from './_internal/base-button.js';
|
|
4
4
|
import { Button } from './button.js';
|
|
5
5
|
import type { BaseButtonProps } from './_internal/base-button.js';
|
|
6
|
+
import type { ButtonRankProps } from './button.js';
|
|
6
7
|
|
|
7
8
|
type IconButtonElement = React.ElementRef<typeof BaseButton>;
|
|
8
9
|
|
|
@@ -41,7 +42,7 @@ interface IconButtonTooltipProps {
|
|
|
41
42
|
* Core IconButton props excluding the 'as' prop for polymorphic behavior
|
|
42
43
|
* Combines BaseButton props with accessibility requirements and tooltip functionality
|
|
43
44
|
*/
|
|
44
|
-
type IconButtonOwnProps = Omit<BaseButtonProps, 'as'> & AccessibilityProps & IconButtonTooltipProps;
|
|
45
|
+
type IconButtonOwnProps = Omit<BaseButtonProps, 'as' | 'variant'> & ButtonRankProps & AccessibilityProps & IconButtonTooltipProps;
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
48
|
* Polymorphic IconButton props that support rendering as different HTML elements
|