@optiaxiom/react 0.1.0-next.13 → 0.1.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PopoverContent-_Tn-IzNJ.d.ts → PopoverContent-DIhLXmjU.d.ts} +8 -20
- package/dist/accordion-trigger/AccordionTrigger-css.js +1 -1
- package/dist/alert/Alert-css.js +1 -1
- package/dist/alert-dialog/AlertDialog-css.js +2 -5
- package/dist/alert-dialog/AlertDialog.js +6 -37
- package/dist/alert-dialog-action/AlertDialogAction.js +16 -0
- package/dist/alert-dialog-cancel/AlertDialogCancel.js +14 -0
- package/dist/alert-dialog-context/AlertDialogContext.js +5 -0
- package/dist/alert-dialog-description/AlertDialogDescription-css.js +7 -0
- package/dist/alert-dialog-description/AlertDialogDescription.js +12 -0
- package/dist/alert-dialog-footer/AlertDialogFooter-css.js +8 -0
- package/dist/alert-dialog-footer/AlertDialogFooter.js +11 -0
- package/dist/alert-dialog-title/AlertDialogTitle.js +24 -0
- package/dist/assets/src/alert-dialog/{AlertDialog.css.ts.vanilla-WdIe6m3g.css → AlertDialog.css.ts.vanilla-CpKGfNgS.css} +0 -6
- package/dist/assets/src/alert-dialog-description/AlertDialogDescription.css.ts.vanilla-B7BawTGq.css +6 -0
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-3HiYmspb.css +6 -0
- package/dist/assets/src/box/{Box.css.ts.vanilla-D1mbecuN.css → Box.css.ts.vanilla-DLsoitAb.css} +5 -0
- package/dist/assets/src/button/{Button.css.ts.vanilla-BVWox07Y.css → Button.css.ts.vanilla-DeHH8Xkd.css} +43 -34
- package/dist/assets/src/sprinkles/{sprinkles.css.ts.vanilla-I48qUKRQ.css → sprinkles.css.ts.vanilla-o1FSIYj0.css} +2276 -2251
- package/dist/assets/src/styles/{theme.css.ts.vanilla-EbjT5N3_.css → theme.css.ts.vanilla-D9K5B5ZA.css} +6 -4
- package/dist/assets/src/table/Table.css.ts.vanilla-C9ntYW9X.css +9 -0
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-WI2VmycQ.css +6 -0
- package/dist/assets/src/table-cell/TableCell.css.ts.vanilla-Bn9ccAMh.css +10 -0
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DEMkJMmk.css +6 -0
- package/dist/assets/src/toast/{Toast.css.ts.vanilla-N6bXbnrT.css → Toast.css.ts.vanilla-D1qN8JIH.css} +6 -7
- package/dist/avatar/Avatar-css.js +2 -2
- package/dist/avatar-group/AvatarGroup-css.js +1 -1
- package/dist/badge/Badge-css.js +1 -1
- package/dist/box/Box-css.js +2 -2
- package/dist/button/Button-css.js +9 -7
- package/dist/button/Button.js +19 -10
- package/dist/button-group/ButtonGroup-css.js +1 -1
- package/dist/checkbox/Checkbox-css.js +1 -1
- package/dist/checkbox/Checkbox.js +7 -10
- package/dist/command-item/CommandItem-css.js +1 -1
- package/dist/control-base/ControlBase-css.js +1 -1
- package/dist/control-base/ControlBase.js +3 -3
- package/dist/grid/Grid.js +1 -1
- package/dist/heading/Heading.js +2 -2
- package/dist/index.d.ts +122 -35
- package/dist/index.js +7 -0
- package/dist/input/Input-css.js +1 -1
- package/dist/input/Input.js +2 -2
- package/dist/input-base/InputBase-css.js +1 -1
- package/dist/link/Link-css.js +1 -1
- package/dist/menu-item/MenuItem-css.js +1 -1
- package/dist/pagination/Pagination-css.js +1 -1
- package/dist/pill/Pill-css.js +1 -1
- package/dist/radio-group-item/RadioGroupItem-css.js +1 -1
- package/dist/radio-group-item/RadioGroupItem.js +4 -7
- package/dist/spinner/Spinner.js +56 -0
- package/dist/sprinkles/sprinkles-css.js +3 -3
- package/dist/styles/theme-css.js +2 -2
- package/dist/switch/Switch-css.js +1 -1
- package/dist/switch/Switch.js +4 -7
- package/dist/table/Table-css.js +8 -0
- package/dist/table/Table.js +11 -0
- package/dist/table-body/TableBody-css.js +7 -0
- package/dist/table-body/TableBody.js +11 -0
- package/dist/table-cell/TableCell-css.js +9 -0
- package/dist/table-cell/TableCell.js +13 -0
- package/dist/table-head/TableHead.js +10 -0
- package/dist/table-header-cell/TableHeaderCell-css.js +7 -0
- package/dist/table-header-cell/TableHeaderCell.js +11 -0
- package/dist/table-row/TableRow-css.js +7 -0
- package/dist/table-row/TableRow.js +11 -0
- package/dist/tabs-list/TabsList-css.js +1 -1
- package/dist/tabs-trigger/TabsTrigger-css.js +1 -1
- package/dist/toast/Toast-css.js +3 -2
- package/dist/toast/Toast.js +2 -2
- package/dist/toast-action/ToastAction.js +1 -1
- package/dist/toast-provider/ToastProvider-css.js +1 -1
- package/dist/toggle/Toggle.js +13 -0
- package/dist/tokens/colors.js +4 -3
- package/dist/unstable.d.ts +52 -22
- package/dist/unstable.js +6 -0
- package/package.json +1 -1
- /package/dist/assets/src/{avatar-group/AvatarGroup.css.ts.vanilla-4BGjgIuZ.css → table-row/TableRow.css.ts.vanilla-4BGjgIuZ.css} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement, ComponentPropsWithoutRef, ElementType, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import * as RadixAccordion from '@radix-ui/react-accordion';
|
|
4
|
-
import { S as Sprinkles, B as BoxProps, E as ExtendProps } from './PopoverContent-
|
|
5
|
-
export { a as Box, P as Popover, b as PopoverContent, m as mapResponsiveValue, s as sprinkles } from './PopoverContent-
|
|
4
|
+
import { S as Sprinkles, B as BoxProps, E as ExtendProps } from './PopoverContent-DIhLXmjU.js';
|
|
5
|
+
export { a as Box, P as Popover, b as PopoverContent, m as mapResponsiveValue, s as sprinkles } from './PopoverContent-DIhLXmjU.js';
|
|
6
6
|
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
8
|
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
@@ -20,17 +20,18 @@ import TextareaAutosize from 'react-textarea-autosize';
|
|
|
20
20
|
import * as RadixToast from '@radix-ui/react-toast';
|
|
21
21
|
import { Portal } from '@radix-ui/react-portal';
|
|
22
22
|
import * as jotai from 'jotai';
|
|
23
|
+
import * as RadixToggle from '@radix-ui/react-toggle';
|
|
23
24
|
import '@radix-ui/react-popover';
|
|
24
25
|
|
|
25
26
|
declare function extractSprinkles<S extends Record<string, unknown>>(props: S): {
|
|
26
|
-
restProps: Omit<S, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "
|
|
27
|
-
sprinkleProps: Pick<S, keyof S & ("fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "
|
|
27
|
+
restProps: Omit<S, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "gridColumn" | "gridTemplateColumns" | "justifyContent" | "justifyItems" | "placeItems" | "h" | "leading" | "m" | "maxH" | "maxW" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "w">;
|
|
28
|
+
sprinkleProps: Pick<S, keyof S & ("fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "gridColumn" | "gridTemplateColumns" | "justifyContent" | "justifyItems" | "placeItems" | "h" | "leading" | "m" | "maxH" | "maxW" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "w")>;
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
declare const Accordion: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "key" | "children" | "color" | "hidden" | "style" | "slot" | "title" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & Omit<{
|
|
31
32
|
asChild?: boolean;
|
|
32
33
|
className?: string;
|
|
33
|
-
} & Sprinkles, "asChild" | "className"> & Omit<Omit<RadixAccordion.AccordionMultipleProps, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "
|
|
34
|
+
} & Sprinkles, "asChild" | "className"> & Omit<Omit<RadixAccordion.AccordionMultipleProps, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "gridColumn" | "gridTemplateColumns" | "justifyContent" | "justifyItems" | "placeItems" | "h" | "leading" | "m" | "maxH" | "maxW" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "w"> | Omit<RadixAccordion.AccordionSingleProps, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "gridColumn" | "gridTemplateColumns" | "justifyContent" | "justifyItems" | "placeItems" | "h" | "leading" | "m" | "maxH" | "maxW" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "w">, never> & {
|
|
34
35
|
appearance?: "primary" | "secondary";
|
|
35
36
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
36
37
|
|
|
@@ -105,7 +106,7 @@ declare const tokens: {
|
|
|
105
106
|
readonly "bg.error.solid.hover": "#B21313";
|
|
106
107
|
readonly "bg.information": "#E7F3FE";
|
|
107
108
|
readonly "bg.information.solid": "#1668AC";
|
|
108
|
-
readonly "bg.input.disabled": "#
|
|
109
|
+
readonly "bg.input.disabled": "#091E420A";
|
|
109
110
|
readonly "bg.neutral": "#F5F6FA";
|
|
110
111
|
readonly "bg.neutral.inverse": "#2E3442";
|
|
111
112
|
readonly "bg.neutral.inverse.hover": "#262B37";
|
|
@@ -212,8 +213,9 @@ declare const tokens: {
|
|
|
212
213
|
readonly "neutral.1000": "#1C2029";
|
|
213
214
|
readonly "neutral.1100": "#171A23";
|
|
214
215
|
readonly "neutral.1200": "#091E42";
|
|
216
|
+
readonly "neutral.50/6": "#F9FAFC0F";
|
|
215
217
|
readonly "neutral.50/32": "#F9FAFC52";
|
|
216
|
-
readonly "neutral.1200/
|
|
218
|
+
readonly "neutral.1200/4": "#091E420A";
|
|
217
219
|
readonly "neutral.1200/12": "#091E421F";
|
|
218
220
|
readonly "neutral.1200/18": "#091E422E";
|
|
219
221
|
readonly "neutral.1200/22": "#091E4238";
|
|
@@ -469,7 +471,7 @@ declare const tokensDark: {
|
|
|
469
471
|
readonly "bg.error.solid.hover": "#B21313";
|
|
470
472
|
readonly "bg.information": "#1C2B41";
|
|
471
473
|
readonly "bg.information.solid": "#1668AC";
|
|
472
|
-
readonly "bg.input.disabled": "#
|
|
474
|
+
readonly "bg.input.disabled": "#091E420A";
|
|
473
475
|
readonly "bg.neutral": "#1e293b";
|
|
474
476
|
readonly "bg.neutral.inverse": "#E9EDF5";
|
|
475
477
|
readonly "bg.neutral.inverse.hover": "#CACFDC";
|
|
@@ -576,8 +578,9 @@ declare const tokensDark: {
|
|
|
576
578
|
readonly "neutral.1000": "#1C2029";
|
|
577
579
|
readonly "neutral.1100": "#171A23";
|
|
578
580
|
readonly "neutral.1200": "#091E42";
|
|
581
|
+
readonly "neutral.50/6": "#F9FAFC0F";
|
|
579
582
|
readonly "neutral.50/32": "#F9FAFC52";
|
|
580
|
-
readonly "neutral.1200/
|
|
583
|
+
readonly "neutral.1200/4": "#091E420A";
|
|
581
584
|
readonly "neutral.1200/12": "#091E421F";
|
|
582
585
|
readonly "neutral.1200/18": "#091E422E";
|
|
583
586
|
readonly "neutral.1200/22": "#091E4238";
|
|
@@ -856,17 +859,69 @@ declare const content$2: (props?: {
|
|
|
856
859
|
type DialogVariants$1 = RecipeVariants<typeof content$2>;
|
|
857
860
|
|
|
858
861
|
type AlertDialogProps = BoxProps<typeof RadixAlertDialog.Content, {
|
|
859
|
-
action: string;
|
|
860
862
|
appearance?: "danger" | "primary";
|
|
861
|
-
cancel?: string;
|
|
862
863
|
children: ReactNode;
|
|
863
|
-
onAction: () => void;
|
|
864
|
-
onCancel: () => void;
|
|
865
864
|
open?: boolean;
|
|
866
|
-
title: ReactNode;
|
|
867
865
|
} & DialogVariants$1>;
|
|
868
866
|
declare const AlertDialog: react.ForwardRefExoticComponent<Omit<AlertDialogProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
869
867
|
|
|
868
|
+
declare const AlertDialogAction: react.ForwardRefExoticComponent<Omit<Omit<RadixAlertDialog.AlertDialogActionProps & react.RefAttributes<HTMLButtonElement>, "ref">, "children" | "color" | "asChild" | "className" | "disabled"> & Omit<{
|
|
869
|
+
asChild?: boolean;
|
|
870
|
+
className?: string;
|
|
871
|
+
} & Sprinkles, "size"> & Omit<{
|
|
872
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
873
|
+
children?: react.ReactNode;
|
|
874
|
+
disabled?: boolean;
|
|
875
|
+
endDecorator?: react.ReactNode;
|
|
876
|
+
icon?: react.ReactNode;
|
|
877
|
+
iconPosition?: "end" | "start";
|
|
878
|
+
loading?: boolean;
|
|
879
|
+
startDecorator?: react.ReactNode;
|
|
880
|
+
} & Omit<{
|
|
881
|
+
colorScheme?: "primary" | "danger" | "neutral" | undefined;
|
|
882
|
+
iconOnly?: boolean | undefined;
|
|
883
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
884
|
+
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
885
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
886
|
+
|
|
887
|
+
declare const AlertDialogCancel: react.ForwardRefExoticComponent<Omit<Omit<RadixAlertDialog.AlertDialogCancelProps & react.RefAttributes<HTMLButtonElement>, "ref">, "children" | "color" | "asChild" | "className" | "disabled"> & Omit<{
|
|
888
|
+
asChild?: boolean;
|
|
889
|
+
className?: string;
|
|
890
|
+
} & Sprinkles, "size"> & Omit<{
|
|
891
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
892
|
+
children?: react.ReactNode;
|
|
893
|
+
disabled?: boolean;
|
|
894
|
+
endDecorator?: react.ReactNode;
|
|
895
|
+
icon?: react.ReactNode;
|
|
896
|
+
iconPosition?: "end" | "start";
|
|
897
|
+
loading?: boolean;
|
|
898
|
+
startDecorator?: react.ReactNode;
|
|
899
|
+
} & Omit<{
|
|
900
|
+
colorScheme?: "primary" | "danger" | "neutral" | undefined;
|
|
901
|
+
iconOnly?: boolean | undefined;
|
|
902
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
903
|
+
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
904
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
905
|
+
|
|
906
|
+
declare const AlertDialogDescription: react.ForwardRefExoticComponent<Omit<Omit<RadixAlertDialog.AlertDialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref">, "color" | "asChild" | "className"> & Omit<{
|
|
907
|
+
asChild?: boolean;
|
|
908
|
+
className?: string;
|
|
909
|
+
} & Sprinkles, never> & react.RefAttributes<HTMLParagraphElement>>;
|
|
910
|
+
|
|
911
|
+
declare const AlertDialogFooter: react.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "color" | "className"> & Omit<{
|
|
912
|
+
asChild?: boolean;
|
|
913
|
+
className?: string;
|
|
914
|
+
} & Sprinkles, never> & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
915
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
916
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
917
|
+
ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
918
|
+
}, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
919
|
+
|
|
920
|
+
declare const AlertDialogTitle: react.ForwardRefExoticComponent<Omit<Omit<RadixAlertDialog.AlertDialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref">, "color" | "asChild" | "className"> & Omit<{
|
|
921
|
+
asChild?: boolean;
|
|
922
|
+
className?: string;
|
|
923
|
+
} & Sprinkles, never> & react.RefAttributes<HTMLHeadingElement>>;
|
|
924
|
+
|
|
870
925
|
declare const AlertTitle: react.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "color" | "className"> & Omit<{
|
|
871
926
|
asChild?: boolean;
|
|
872
927
|
className?: string;
|
|
@@ -974,6 +1029,10 @@ declare const appearances: {
|
|
|
974
1029
|
colorScheme: "neutral";
|
|
975
1030
|
variant: "outline";
|
|
976
1031
|
};
|
|
1032
|
+
inverse: {
|
|
1033
|
+
colorScheme: "neutral";
|
|
1034
|
+
variant: "solid";
|
|
1035
|
+
};
|
|
977
1036
|
primary: {
|
|
978
1037
|
colorScheme: "primary";
|
|
979
1038
|
variant: "solid";
|
|
@@ -992,7 +1051,7 @@ type ButtonProps<T extends ElementType = "button", P = unknown> = BoxProps<T, Ex
|
|
|
992
1051
|
iconPosition?: "end" | "start";
|
|
993
1052
|
loading?: boolean;
|
|
994
1053
|
startDecorator?: ReactNode;
|
|
995
|
-
} & Omit<ButtonVariants, "iconOnly">, P>>;
|
|
1054
|
+
} & Omit<ButtonVariants, "colorScheme" | "iconOnly" | "variant">, P>>;
|
|
996
1055
|
declare const Button: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children" | "color" | "className" | "disabled"> & Omit<{
|
|
997
1056
|
asChild?: boolean;
|
|
998
1057
|
className?: string;
|
|
@@ -1010,7 +1069,7 @@ declare const Button: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHT
|
|
|
1010
1069
|
iconOnly?: boolean | undefined;
|
|
1011
1070
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1012
1071
|
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
1013
|
-
}, "iconOnly">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
1072
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
1014
1073
|
|
|
1015
1074
|
declare const ButtonGroup: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | "color" | "className"> & Omit<{
|
|
1016
1075
|
asChild?: boolean;
|
|
@@ -1163,13 +1222,13 @@ declare const Heading: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedH
|
|
|
1163
1222
|
truncate?: boolean | undefined;
|
|
1164
1223
|
}, never> & {
|
|
1165
1224
|
/**
|
|
1166
|
-
*
|
|
1225
|
+
* Control the visual size without changing the semantic tag.
|
|
1167
1226
|
*/
|
|
1168
|
-
|
|
1227
|
+
appearance?: keyof typeof mapTagToFontSize;
|
|
1169
1228
|
/**
|
|
1170
|
-
*
|
|
1229
|
+
* Presets for each level of heading h1-h6.
|
|
1171
1230
|
*/
|
|
1172
|
-
|
|
1231
|
+
level?: keyof typeof mapLevelToTag;
|
|
1173
1232
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
1174
1233
|
|
|
1175
1234
|
type HoverCardProps = BoxProps<typeof RadixHoverCard.Root, {
|
|
@@ -1200,7 +1259,7 @@ declare const Indicator: react.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<rea
|
|
|
1200
1259
|
}, never> & {
|
|
1201
1260
|
colorScheme?: "primary" | "danger" | "neutral" | "success" | "warning" | "information" | undefined;
|
|
1202
1261
|
variant?: "solid" | "light" | undefined;
|
|
1203
|
-
} & react.RefAttributes<HTMLDivElement>, "ref">, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "
|
|
1262
|
+
} & react.RefAttributes<HTMLDivElement>, "ref">, "fontFamily" | "fontSize" | "size" | "borderColor" | "color" | "animation" | "cursor" | "empty" | "fontWeight" | "objectFit" | "overflowX" | "overflowY" | "textAlign" | "textTransform" | "transition" | "whiteSpace" | "bg" | "border" | "borderB" | "borderL" | "borderR" | "borderT" | "overflow" | "rounded" | "shadow" | "tracking" | "z" | "gap" | "alignItems" | "alignSelf" | "display" | "flex" | "flexDirection" | "flexWrap" | "gridColumn" | "gridTemplateColumns" | "justifyContent" | "justifyItems" | "placeItems" | "h" | "leading" | "m" | "maxH" | "maxW" | "mb" | "ml" | "mr" | "mt" | "mx" | "my" | "p" | "pb" | "pl" | "pr" | "pt" | "px" | "py" | "w" | "asChild" | "className" | "content"> & Omit<{
|
|
1204
1263
|
asChild?: boolean;
|
|
1205
1264
|
className?: string;
|
|
1206
1265
|
} & Sprinkles, never> & {
|
|
@@ -1227,7 +1286,7 @@ declare const Input: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTM
|
|
|
1227
1286
|
}, "children"> & {
|
|
1228
1287
|
children?: never;
|
|
1229
1288
|
} & {
|
|
1230
|
-
|
|
1289
|
+
appearance?: "number" | "default" | undefined;
|
|
1231
1290
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
1232
1291
|
|
|
1233
1292
|
declare const mapKeyToCode: {
|
|
@@ -1289,7 +1348,7 @@ declare const MenuTrigger: react.ForwardRefExoticComponent<Omit<Omit<Omit<react.
|
|
|
1289
1348
|
asChild?: boolean;
|
|
1290
1349
|
className?: string;
|
|
1291
1350
|
} & Sprinkles, "size"> & Omit<{
|
|
1292
|
-
appearance?: "primary" | "secondary" | "default" | "danger" | "danger-outline";
|
|
1351
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
1293
1352
|
children?: react.ReactNode;
|
|
1294
1353
|
disabled?: boolean;
|
|
1295
1354
|
endDecorator?: react.ReactNode;
|
|
@@ -1302,7 +1361,7 @@ declare const MenuTrigger: react.ForwardRefExoticComponent<Omit<Omit<Omit<react.
|
|
|
1302
1361
|
iconOnly?: boolean | undefined;
|
|
1303
1362
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1304
1363
|
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
1305
|
-
}, "iconOnly">, never> & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1364
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1306
1365
|
|
|
1307
1366
|
type PaginationProps = BoxProps<"nav", {
|
|
1308
1367
|
boundaries?: number;
|
|
@@ -1330,7 +1389,7 @@ declare const PopoverTrigger: react.ForwardRefExoticComponent<Omit<Omit<Omit<rea
|
|
|
1330
1389
|
asChild?: boolean;
|
|
1331
1390
|
className?: string;
|
|
1332
1391
|
} & Sprinkles, "size"> & Omit<{
|
|
1333
|
-
appearance?: "primary" | "secondary" | "default" | "danger" | "danger-outline";
|
|
1392
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
1334
1393
|
children?: react.ReactNode;
|
|
1335
1394
|
disabled?: boolean;
|
|
1336
1395
|
endDecorator?: react.ReactNode;
|
|
@@ -1343,7 +1402,7 @@ declare const PopoverTrigger: react.ForwardRefExoticComponent<Omit<Omit<Omit<rea
|
|
|
1343
1402
|
iconOnly?: boolean | undefined;
|
|
1344
1403
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1345
1404
|
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
1346
|
-
}, "iconOnly">, never> & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1405
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1347
1406
|
|
|
1348
1407
|
declare const Progress: react.ForwardRefExoticComponent<Omit<Omit<ProgressPrimitive.ProgressProps & react.RefAttributes<HTMLDivElement>, "ref">, "color" | "asChild" | "className"> & Omit<{
|
|
1349
1408
|
asChild?: boolean;
|
|
@@ -1378,7 +1437,7 @@ declare const Search: react.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<react.
|
|
|
1378
1437
|
}, "children"> & {
|
|
1379
1438
|
children?: never;
|
|
1380
1439
|
} & {
|
|
1381
|
-
|
|
1440
|
+
appearance?: "number" | "default" | undefined;
|
|
1382
1441
|
} & react.RefAttributes<HTMLInputElement>, "ref"> & {
|
|
1383
1442
|
ref?: ((instance: HTMLInputElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLInputElement> | null | undefined;
|
|
1384
1443
|
}, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
@@ -1410,6 +1469,13 @@ declare const Skeleton: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
1410
1469
|
h?: Sprinkles["h"];
|
|
1411
1470
|
} & react.RefAttributes<HTMLSpanElement>>;
|
|
1412
1471
|
|
|
1472
|
+
declare const Spinner: react.ForwardRefExoticComponent<Omit<Omit<react.SVGProps<SVGSVGElement>, "ref">, "fontFamily" | "fontSize" | "color" | "cursor" | "fontWeight" | "overflow" | "z" | "display" | "className"> & Omit<{
|
|
1473
|
+
asChild?: boolean;
|
|
1474
|
+
className?: string;
|
|
1475
|
+
} & Sprinkles, never> & {
|
|
1476
|
+
colorScheme?: "default" | "inverse";
|
|
1477
|
+
} & react.RefAttributes<SVGSVGElement>>;
|
|
1478
|
+
|
|
1413
1479
|
declare const axiom: string;
|
|
1414
1480
|
declare const base: string;
|
|
1415
1481
|
declare const reset: string;
|
|
@@ -1459,7 +1525,7 @@ declare const theme: {
|
|
|
1459
1525
|
readonly "bg.error.solid.hover": "#B21313";
|
|
1460
1526
|
readonly "bg.information": "#E7F3FE";
|
|
1461
1527
|
readonly "bg.information.solid": "#1668AC";
|
|
1462
|
-
readonly "bg.input.disabled": "#
|
|
1528
|
+
readonly "bg.input.disabled": "#091E420A";
|
|
1463
1529
|
readonly "bg.neutral": "#F5F6FA";
|
|
1464
1530
|
readonly "bg.neutral.inverse": "#2E3442";
|
|
1465
1531
|
readonly "bg.neutral.inverse.hover": "#262B37";
|
|
@@ -1566,8 +1632,9 @@ declare const theme: {
|
|
|
1566
1632
|
readonly "neutral.1000": "#1C2029";
|
|
1567
1633
|
readonly "neutral.1100": "#171A23";
|
|
1568
1634
|
readonly "neutral.1200": "#091E42";
|
|
1635
|
+
readonly "neutral.50/6": "#F9FAFC0F";
|
|
1569
1636
|
readonly "neutral.50/32": "#F9FAFC52";
|
|
1570
|
-
readonly "neutral.1200/
|
|
1637
|
+
readonly "neutral.1200/4": "#091E420A";
|
|
1571
1638
|
readonly "neutral.1200/12": "#091E421F";
|
|
1572
1639
|
readonly "neutral.1200/18": "#091E422E";
|
|
1573
1640
|
readonly "neutral.1200/22": "#091E4238";
|
|
@@ -1842,7 +1909,7 @@ declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<Omit<RadixTabs.T
|
|
|
1842
1909
|
asChild?: boolean;
|
|
1843
1910
|
className?: string;
|
|
1844
1911
|
} & Sprinkles, "size"> & Omit<{
|
|
1845
|
-
appearance?: "primary" | "secondary" | "default" | "danger" | "danger-outline";
|
|
1912
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
1846
1913
|
children?: react.ReactNode;
|
|
1847
1914
|
disabled?: boolean;
|
|
1848
1915
|
endDecorator?: react.ReactNode;
|
|
@@ -1855,7 +1922,7 @@ declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<Omit<RadixTabs.T
|
|
|
1855
1922
|
iconOnly?: boolean | undefined;
|
|
1856
1923
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1857
1924
|
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
1858
|
-
}, "iconOnly">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
1925
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
1859
1926
|
|
|
1860
1927
|
declare const text: (props?: {
|
|
1861
1928
|
lineClamp?: "2" | "4" | "1" | "3" | undefined;
|
|
@@ -1924,7 +1991,7 @@ declare const ToastAction: react.ForwardRefExoticComponent<Omit<Omit<RadixToast.
|
|
|
1924
1991
|
asChild?: boolean;
|
|
1925
1992
|
className?: string;
|
|
1926
1993
|
} & Sprinkles, "size"> & Omit<{
|
|
1927
|
-
appearance?: "primary" | "secondary" | "default" | "danger" | "danger-outline";
|
|
1994
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
1928
1995
|
children?: react.ReactNode;
|
|
1929
1996
|
disabled?: boolean;
|
|
1930
1997
|
endDecorator?: react.ReactNode;
|
|
@@ -1937,7 +2004,7 @@ declare const ToastAction: react.ForwardRefExoticComponent<Omit<Omit<RadixToast.
|
|
|
1937
2004
|
iconOnly?: boolean | undefined;
|
|
1938
2005
|
size?: "sm" | "md" | "lg" | undefined;
|
|
1939
2006
|
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
1940
|
-
}, "iconOnly">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
2007
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
1941
2008
|
|
|
1942
2009
|
type ToastElement = ReactElement<ComponentPropsWithoutRef<typeof Toast>>;
|
|
1943
2010
|
declare const createToaster: (store?: {
|
|
@@ -1988,7 +2055,7 @@ declare const ToastProvider: react.ForwardRefExoticComponent<Omit<Omit<RadixToas
|
|
|
1988
2055
|
container?: ComponentPropsWithoutRef<typeof Portal>["container"];
|
|
1989
2056
|
toaster: ReturnType<typeof createToaster>;
|
|
1990
2057
|
} & RadixToast.ToastProviderProps & {
|
|
1991
|
-
position?: "
|
|
2058
|
+
position?: "bottom" | "top" | "bottom-right" | "top-right" | "bottom-left" | "top-left" | undefined;
|
|
1992
2059
|
} & react.RefAttributes<HTMLOListElement>>;
|
|
1993
2060
|
|
|
1994
2061
|
declare const ToastTitle: react.ForwardRefExoticComponent<Omit<Omit<RadixToast.ToastTitleProps & react.RefAttributes<HTMLDivElement>, "ref">, "color" | "asChild" | "className"> & Omit<{
|
|
@@ -2001,6 +2068,25 @@ declare const ToastTitle: react.ForwardRefExoticComponent<Omit<Omit<RadixToast.T
|
|
|
2001
2068
|
truncate?: boolean | undefined;
|
|
2002
2069
|
}, never> & react.RefAttributes<HTMLDivElement>>;
|
|
2003
2070
|
|
|
2071
|
+
declare const Toggle: react.ForwardRefExoticComponent<Omit<Omit<RadixToggle.ToggleProps & react.RefAttributes<HTMLButtonElement>, "ref">, "children" | "color" | "asChild" | "className" | "disabled"> & Omit<{
|
|
2072
|
+
asChild?: boolean;
|
|
2073
|
+
className?: string;
|
|
2074
|
+
} & Sprinkles, "size"> & Omit<{
|
|
2075
|
+
appearance?: "primary" | "secondary" | "default" | "inverse" | "danger" | "danger-outline";
|
|
2076
|
+
children?: react.ReactNode;
|
|
2077
|
+
disabled?: boolean;
|
|
2078
|
+
endDecorator?: react.ReactNode;
|
|
2079
|
+
icon?: react.ReactNode;
|
|
2080
|
+
iconPosition?: "end" | "start";
|
|
2081
|
+
loading?: boolean;
|
|
2082
|
+
startDecorator?: react.ReactNode;
|
|
2083
|
+
} & Omit<{
|
|
2084
|
+
colorScheme?: "primary" | "danger" | "neutral" | undefined;
|
|
2085
|
+
iconOnly?: boolean | undefined;
|
|
2086
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
2087
|
+
variant?: "outline" | "solid" | "subtle" | undefined;
|
|
2088
|
+
}, "colorScheme" | "iconOnly" | "variant">, never> & react.RefAttributes<HTMLButtonElement>>;
|
|
2089
|
+
|
|
2004
2090
|
declare const Tooltip: react.ForwardRefExoticComponent<Omit<Omit<RadixTooltip.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref">, "children" | "color" | "asChild" | "className" | "content"> & Omit<{
|
|
2005
2091
|
asChild?: boolean;
|
|
2006
2092
|
className?: string;
|
|
@@ -2021,9 +2107,10 @@ declare const Tooltip: react.ForwardRefExoticComponent<Omit<Omit<RadixTooltip.To
|
|
|
2021
2107
|
|
|
2022
2108
|
declare const Transition: react.ForwardRefExoticComponent<{
|
|
2023
2109
|
children: ReactElement;
|
|
2110
|
+
"data-side"?: "bottom" | "left" | "right" | "top";
|
|
2024
2111
|
} & {
|
|
2025
2112
|
duration?: "sm" | "md" | "lg" | undefined;
|
|
2026
2113
|
type?: "pop" | "fade" | undefined;
|
|
2027
2114
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
2028
2115
|
|
|
2029
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertTitle, AnimatePresence, Avatar, AvatarGroup, AxiomProvider, Badge, BoxProps, BreadcrumbItem, type BreadcrumbItemProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Checkbox, Code, Dialog, DialogBody, DialogFooter, DialogTitle, Drawer, DrawerBody, DrawerFooter, DrawerTitle, Field, Flex, Grid, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Indicator, Input, Kbd, Link, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, Pagination, type PaginationProps, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, Search, Separator, Skeleton, Sprinkles, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast, ToastAction, ToastProvider, ToastTitle, Tooltip, Transition, createToaster, extractSprinkles, layers_css as layers, theme, tokens, tokensDark, usePresence };
|
|
2116
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogDescription, AlertDialogFooter, AlertDialogTitle, AlertTitle, AnimatePresence, Avatar, AvatarGroup, AxiomProvider, Badge, BoxProps, BreadcrumbItem, type BreadcrumbItemProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonProps, Checkbox, Code, Dialog, DialogBody, DialogFooter, DialogTitle, Drawer, DrawerBody, DrawerFooter, DrawerTitle, Field, Flex, Grid, Heading, HoverCard, HoverCardContent, HoverCardTrigger, Indicator, Input, Kbd, Link, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, Pagination, type PaginationProps, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, Search, Separator, Skeleton, Spinner, Sprinkles, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Text, type TextProps, Textarea, Toast, ToastAction, ToastProvider, ToastTitle, Toggle, Tooltip, Transition, createToaster, extractSprinkles, layers_css as layers, theme, tokens, tokensDark, usePresence };
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,11 @@ export { AccordionTrigger } from './accordion-trigger/AccordionTrigger.js';
|
|
|
5
5
|
export { Alert } from './alert/Alert.js';
|
|
6
6
|
export { AlertDescription } from './alert-description/AlertDescription.js';
|
|
7
7
|
export { AlertDialog } from './alert-dialog/AlertDialog.js';
|
|
8
|
+
export { AlertDialogAction } from './alert-dialog-action/AlertDialogAction.js';
|
|
9
|
+
export { AlertDialogCancel } from './alert-dialog-cancel/AlertDialogCancel.js';
|
|
10
|
+
export { AlertDialogDescription } from './alert-dialog-description/AlertDialogDescription.js';
|
|
11
|
+
export { AlertDialogFooter } from './alert-dialog-footer/AlertDialogFooter.js';
|
|
12
|
+
export { AlertDialogTitle } from './alert-dialog-title/AlertDialogTitle.js';
|
|
8
13
|
export { AlertTitle } from './alert-title/AlertTitle.js';
|
|
9
14
|
export { AnimatePresence } from './animate-presence/AnimatePresence.js';
|
|
10
15
|
export { usePresence } from './animate-presence/usePresence.js';
|
|
@@ -54,6 +59,7 @@ export { RadioGroupItem } from './radio-group-item/RadioGroupItem.js';
|
|
|
54
59
|
export { Search } from './search/Search.js';
|
|
55
60
|
export { Separator } from './separator/Separator.js';
|
|
56
61
|
export { Skeleton } from './skeleton/Skeleton.js';
|
|
62
|
+
export { Spinner } from './spinner/Spinner.js';
|
|
57
63
|
export { extractSprinkles } from './sprinkles/extractSprinkles.js';
|
|
58
64
|
export { mapResponsiveValue, sprinkles } from './sprinkles/sprinkles-css.js';
|
|
59
65
|
import * as layers_css from './styles/layers-css.js';
|
|
@@ -71,6 +77,7 @@ export { ToastAction } from './toast-action/ToastAction.js';
|
|
|
71
77
|
export { ToastProvider } from './toast-provider/ToastProvider.js';
|
|
72
78
|
export { createToaster } from './toast-provider/createToaster.js';
|
|
73
79
|
export { ToastTitle } from './toast-title/ToastTitle.js';
|
|
80
|
+
export { Toggle } from './toggle/Toggle.js';
|
|
74
81
|
export { tokens, tokensDark } from './tokens/index.js';
|
|
75
82
|
export { Tooltip } from './tooltip/Tooltip.js';
|
|
76
83
|
export { Transition } from './transition/Transition.js';
|
package/dist/input/Input-css.js
CHANGED
|
@@ -2,6 +2,6 @@ import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
|
2
2
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
3
3
|
|
|
4
4
|
var decorator = recipeRuntime({base:{flex:'none'},variants:{position:{end:{mr:'8'},start:{ml:'8'}},size:{sm:{},md:{},lg:{}}},variantsCompounded:[{style:{mr:'4'},variants:{position:'end',size:'sm'}},{style:{ml:'4'},variants:{position:'start',size:'sm'}}]});
|
|
5
|
-
var input = recipeRuntime({variants:{
|
|
5
|
+
var input = recipeRuntime({variants:{appearance:{'default':{textAlign:'start'},number:{textAlign:'end'}}}});
|
|
6
6
|
|
|
7
7
|
export { decorator, input };
|
package/dist/input/Input.js
CHANGED
|
@@ -8,10 +8,10 @@ import { decorator, input } from './Input-css.js';
|
|
|
8
8
|
|
|
9
9
|
const Input = forwardRef(
|
|
10
10
|
({
|
|
11
|
+
appearance = "default",
|
|
11
12
|
endDecorator,
|
|
12
13
|
size = "md",
|
|
13
14
|
startDecorator,
|
|
14
|
-
variant = "default",
|
|
15
15
|
...props
|
|
16
16
|
}, ref) => {
|
|
17
17
|
return /* @__PURE__ */ jsx(
|
|
@@ -21,7 +21,7 @@ const Input = forwardRef(
|
|
|
21
21
|
size,
|
|
22
22
|
startDecorator: startDecorator && /* @__PURE__ */ jsx(Box, { asChild: true, ...decorator({ position: "start", size }), children: fallbackSpan(startDecorator) }),
|
|
23
23
|
...props,
|
|
24
|
-
children: /* @__PURE__ */ jsx(Box, { asChild: true, ...input({
|
|
24
|
+
children: /* @__PURE__ */ jsx(Box, { asChild: true, ...input({ appearance }), children: /* @__PURE__ */ jsx("input", { ref }) })
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/input-base/InputBase.css.ts.vanilla-By5uGeYP.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
package/dist/link/Link-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/link/Link.css.ts.vanilla-PjwC2Bar.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/menu-item/MenuItem.css.ts.vanilla-BjEdkhqZ.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/pagination/Pagination.css.ts.vanilla-CP7Jjsxf.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
package/dist/pill/Pill-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/pill/Pill.css.ts.vanilla-CMi1obNV.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
3
|
import './../assets/src/control-base/ControlBase.css.ts.vanilla-DGX7Yb9J.css';
|
|
4
4
|
import './../assets/src/radio-group-item/RadioGroupItem.css.ts.vanilla-BFZr4-E-.css';
|
|
5
5
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
@@ -3,22 +3,19 @@ import * as RadixRadio from '@radix-ui/react-radio-group';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Box } from '../box/Box.js';
|
|
5
5
|
import { ControlBase } from '../control-base/ControlBase.js';
|
|
6
|
-
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
7
|
-
import '../sprinkles/sprinkles-css.js';
|
|
8
6
|
import { item, indicator } from './RadioGroupItem-css.js';
|
|
9
7
|
|
|
10
8
|
const RadioGroupItem = forwardRef(
|
|
11
|
-
({ children, endDecorator, id, ...props }, ref) => {
|
|
12
|
-
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
9
|
+
({ children, endDecorator, id, value, ...props }, ref) => {
|
|
13
10
|
return /* @__PURE__ */ jsx(
|
|
14
11
|
ControlBase,
|
|
15
12
|
{
|
|
13
|
+
control: /* @__PURE__ */ jsx(Box, { asChild: true, ...item(), children: /* @__PURE__ */ jsx(RadixRadio.Item, { value, children: /* @__PURE__ */ jsx(Box, { asChild: true, ...indicator(), children: /* @__PURE__ */ jsx(RadixRadio.Indicator, {}) }) }) }),
|
|
16
14
|
endDecorator,
|
|
17
15
|
id,
|
|
18
|
-
label: children,
|
|
19
16
|
ref,
|
|
20
|
-
...
|
|
21
|
-
children
|
|
17
|
+
...props,
|
|
18
|
+
children
|
|
22
19
|
}
|
|
23
20
|
);
|
|
24
21
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
5
|
+
import '../sprinkles/sprinkles-css.js';
|
|
6
|
+
|
|
7
|
+
const mapColorSchemeToBg = {
|
|
8
|
+
default: "bg.input.disabled",
|
|
9
|
+
inverse: "neutral.50/6"
|
|
10
|
+
};
|
|
11
|
+
const mapColorSchemeToFg = {
|
|
12
|
+
default: "fg.default",
|
|
13
|
+
inverse: "border.secondary"
|
|
14
|
+
};
|
|
15
|
+
const Spinner = forwardRef(
|
|
16
|
+
({ colorScheme = "default", ...props }, ref) => {
|
|
17
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
18
|
+
return /* @__PURE__ */ jsx(Box, { animation: "spin", asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsxs(
|
|
19
|
+
"svg",
|
|
20
|
+
{
|
|
21
|
+
fill: "none",
|
|
22
|
+
height: 16,
|
|
23
|
+
ref,
|
|
24
|
+
role: "img",
|
|
25
|
+
viewBox: "0 0 16 16",
|
|
26
|
+
width: 16,
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
...restProps,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, color: mapColorSchemeToBg[colorScheme], children: /* @__PURE__ */ jsx(
|
|
31
|
+
"circle",
|
|
32
|
+
{
|
|
33
|
+
cx: "8",
|
|
34
|
+
cy: "8",
|
|
35
|
+
r: "7",
|
|
36
|
+
stroke: "currentColor",
|
|
37
|
+
strokeWidth: "1.5"
|
|
38
|
+
}
|
|
39
|
+
) }),
|
|
40
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, color: mapColorSchemeToFg[colorScheme], children: /* @__PURE__ */ jsx(
|
|
41
|
+
"path",
|
|
42
|
+
{
|
|
43
|
+
d: "M4.5 1.93782C5.78021 1.19869 7.26154 0.883827 8.7317 1.03835C10.2019 1.19287 11.5854 1.80884 12.6839 2.79798C13.7825 3.78713 14.5397 5.09866 14.847 6.54461C15.1544 7.99057 14.9961 9.4967 14.3948 10.8472",
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeWidth: "1.5"
|
|
47
|
+
}
|
|
48
|
+
) })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
) });
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
Spinner.displayName = "@optiaxiom/react/Spinner";
|
|
55
|
+
|
|
56
|
+
export { Spinner };
|