@knitui/components 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -15
- package/lib/commonjs/UnstyledButton/UnstyledButton.js +10 -7
- package/lib/commonjs/UnstyledButton/UnstyledButton.js.map +1 -1
- package/lib/commonjs/internal/style-props.js +21 -2
- package/lib/commonjs/internal/style-props.js.map +1 -1
- package/lib/module/UnstyledButton/UnstyledButton.js +11 -8
- package/lib/module/UnstyledButton/UnstyledButton.js.map +1 -1
- package/lib/module/internal/style-props.js +18 -0
- package/lib/module/internal/style-props.js.map +1 -1
- package/lib/typescript/ActionIcon/ActionIcon.d.ts +7 -7
- package/lib/typescript/Alert/Alert.d.ts +7 -7
- package/lib/typescript/Autocomplete/Autocomplete.d.ts +2 -2
- package/lib/typescript/Avatar/Avatar.d.ts +23 -23
- package/lib/typescript/Badge/Badge.d.ts +7 -7
- package/lib/typescript/Blockquote/Blockquote.d.ts +7 -7
- package/lib/typescript/Button/Button.d.ts +9 -9
- package/lib/typescript/Checkbox/Checkbox.d.ts +8 -8
- package/lib/typescript/Chip/Chip.d.ts +7 -7
- package/lib/typescript/CloseButton/CloseButton.d.ts +7 -7
- package/lib/typescript/ColorSwatch/ColorSwatch.d.ts +7 -7
- package/lib/typescript/Combobox/Combobox.d.ts +3 -3
- package/lib/typescript/Combobox/index.d.ts +3 -3
- package/lib/typescript/Container/Container.d.ts +1 -1
- package/lib/typescript/Dialog/Dialog.d.ts +13 -13
- package/lib/typescript/Image/Image.d.ts +16 -16
- package/lib/typescript/Image/createImage.d.ts +19 -19
- package/lib/typescript/Indicator/Indicator.d.ts +2 -2
- package/lib/typescript/Input/Input.d.ts +13 -13
- package/lib/typescript/Input/Input.native.d.ts +11 -11
- package/lib/typescript/Input/shared.d.ts +9 -9
- package/lib/typescript/InputBase/InputBase.d.ts +2 -2
- package/lib/typescript/Kbd/Kbd.d.ts +1 -1
- package/lib/typescript/Mark/Mark.d.ts +1 -1
- package/lib/typescript/MaskInput/MaskInput.d.ts +2 -2
- package/lib/typescript/Menu/Menu.d.ts +2 -2
- package/lib/typescript/Modal/Modal.d.ts +13 -13
- package/lib/typescript/MultiSelect/MultiSelect.d.ts +2 -2
- package/lib/typescript/NumberInput/NumberInput.d.ts +5 -5
- package/lib/typescript/Pagination/Pagination.d.ts +5 -5
- package/lib/typescript/Paper/Paper.d.ts +1 -1
- package/lib/typescript/PasswordInput/PasswordInput.d.ts +11 -11
- package/lib/typescript/Pill/Pill.d.ts +13 -13
- package/lib/typescript/PinInput/PinInput.d.ts +13 -13
- package/lib/typescript/Progress/Progress.d.ts +9 -9
- package/lib/typescript/Radio/Radio.d.ts +8 -8
- package/lib/typescript/SegmentedControl/SegmentedControl.d.ts +7 -7
- package/lib/typescript/Select/Select.d.ts +2 -2
- package/lib/typescript/Stepper/Stepper.d.ts +2 -2
- package/lib/typescript/Switch/Switch.d.ts +7 -7
- package/lib/typescript/Table/Table.d.ts +4 -4
- package/lib/typescript/TableOfContents/TableOfContents.d.ts +3 -3
- package/lib/typescript/Tabs/Tabs.d.ts +6 -6
- package/lib/typescript/TagsInput/TagsInput.d.ts +2 -2
- package/lib/typescript/TextInput/TextInput.d.ts +2 -2
- package/lib/typescript/Textarea/Textarea.d.ts +2 -2
- package/lib/typescript/ThemeIcon/ThemeIcon.d.ts +7 -7
- package/lib/typescript/TreeSelect/TreeSelect.d.ts +7 -7
- package/lib/typescript/UnstyledButton/UnstyledButton.d.ts.map +1 -1
- package/lib/typescript/internal/style-props.d.ts +17 -0
- package/lib/typescript/internal/style-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/UnstyledButton/UnstyledButton.tsx +11 -7
- package/src/internal/style-props.ts +17 -0
|
@@ -252,7 +252,7 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
252
252
|
disabled?: boolean | undefined;
|
|
253
253
|
unstyled?: boolean | undefined;
|
|
254
254
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
255
|
-
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "
|
|
255
|
+
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "name" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "accept" | "hidden" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoComplete" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "multiple" | "maxLength" | "minLength" | "src" | "autosize" | "error" | "onTransitionEnd" | "onTransitionStart" | "styles" | "max" | "min" | "translate" | "aria-level" | "aria-describedby" | "readOnly" | "step" | "accessKey" | "draggable" | "inert" | "lang" | "popover" | "part" | "prefix" | "contentEditable" | "enterKeyHint" | "inputMode" | "nonce" | "rootRef" | "onScrollEnd" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "onKeyPress" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType" | "contextMenu" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popoverTargetAction" | "popoverTarget" | "is" | "exportparts" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "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" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStartCapture"> & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "value" | "name" | "className" | "disabled" | "id" | "style" | "onKeyDown" | "onChange" | "onInput" | "pattern" | "placeholder" | "defaultValue" | "autoComplete" | "multiple" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "max" | "min" | "readOnly" | "step" | "enterKeyHint" | "rootRef" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType"> & {
|
|
256
256
|
autoCorrect?: import("../Input/types").InputSharedProps["autoCorrect"] | (string | undefined);
|
|
257
257
|
autoCapitalize?: import("../Input/types").InputSharedProps["autoCapitalize"] | ("none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined);
|
|
258
258
|
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
@@ -271,7 +271,7 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
271
271
|
disabled?: boolean | undefined;
|
|
272
272
|
unstyled?: boolean | undefined;
|
|
273
273
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
274
|
-
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "
|
|
274
|
+
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "name" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "accept" | "hidden" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoComplete" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "multiple" | "maxLength" | "minLength" | "src" | "autosize" | "error" | "onTransitionEnd" | "onTransitionStart" | "styles" | "max" | "min" | "translate" | "aria-level" | "aria-describedby" | "readOnly" | "step" | "accessKey" | "draggable" | "inert" | "lang" | "popover" | "part" | "prefix" | "contentEditable" | "enterKeyHint" | "inputMode" | "nonce" | "rootRef" | "onScrollEnd" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "onKeyPress" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType" | "contextMenu" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popoverTargetAction" | "popoverTarget" | "is" | "exportparts" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "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" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStartCapture"> & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "value" | "name" | "className" | "disabled" | "id" | "style" | "onKeyDown" | "onChange" | "onInput" | "pattern" | "placeholder" | "defaultValue" | "autoComplete" | "multiple" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "max" | "min" | "readOnly" | "step" | "enterKeyHint" | "rootRef" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType"> & {
|
|
275
275
|
autoCorrect?: import("../Input/types").InputSharedProps["autoCorrect"] | (string | undefined);
|
|
276
276
|
autoCapitalize?: import("../Input/types").InputSharedProps["autoCapitalize"] | ("none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined);
|
|
277
277
|
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
@@ -279,7 +279,7 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
279
279
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
280
280
|
component?: import("../Input").InputHostTag;
|
|
281
281
|
children?: React.ReactNode;
|
|
282
|
-
}, keyof import("..").InputBaseProps> & import("..").InputBaseProps, keyof TreeSelectProps> & TreeSelectProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "
|
|
282
|
+
}, keyof import("..").InputBaseProps> & import("..").InputBaseProps, keyof TreeSelectProps> & TreeSelectProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "value" | "name" | "className" | "disabled" | "id" | "style" | "onKeyDown" | "onChange" | "onInput" | "pattern" | "placeholder" | "defaultValue" | "autoComplete" | "multiple" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "max" | "min" | "readOnly" | "step" | "enterKeyHint" | "rootRef" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType"> & {
|
|
283
283
|
autoCorrect?: import("../Input/types").InputSharedProps["autoCorrect"] | (string | undefined);
|
|
284
284
|
autoCapitalize?: import("../Input/types").InputSharedProps["autoCapitalize"] | ("none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined);
|
|
285
285
|
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
@@ -334,7 +334,7 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
334
334
|
disabled?: boolean | undefined;
|
|
335
335
|
unstyled?: boolean | undefined;
|
|
336
336
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
337
|
-
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "
|
|
337
|
+
}>, "component" | "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "width" | "height" | "value" | "name" | "dangerouslySetInnerHTML" | "disabled" | "id" | "tabIndex" | "role" | "rel" | "dir" | "onFocus" | "onBlur" | "onPointerCancel" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMoveCapture" | "onPointerCancelCapture" | "onPointerDownCapture" | "onPointerUpCapture" | "aria-label" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "aria-hidden" | "aria-modal" | "aria-labelledby" | "aria-live" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onMouseMove" | "onMouseOver" | "onMouseOut" | "onClick" | "onDoubleClick" | "onContextMenu" | "onWheel" | "onKeyDown" | "onKeyUp" | "onChange" | "onInput" | "onBeforeInput" | "onScroll" | "onCopy" | "onCut" | "onPaste" | "onDrag" | "onDragStart" | "onDragEnd" | "onDragEnter" | "onDragLeave" | "onDragOver" | "onDrop" | "content" | "list" | "title" | "form" | "slot" | "pattern" | "alt" | "capture" | "placeholder" | "accept" | "hidden" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoComplete" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "multiple" | "maxLength" | "minLength" | "src" | "autosize" | "error" | "onTransitionEnd" | "onTransitionStart" | "styles" | "max" | "min" | "translate" | "aria-level" | "aria-describedby" | "readOnly" | "step" | "accessKey" | "draggable" | "inert" | "lang" | "popover" | "part" | "prefix" | "contentEditable" | "enterKeyHint" | "inputMode" | "nonce" | "rootRef" | "onScrollEnd" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "onKeyPress" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType" | "contextMenu" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popoverTargetAction" | "popoverTarget" | "is" | "exportparts" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPressCapture" | "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" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStartCapture"> & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "value" | "name" | "className" | "disabled" | "id" | "style" | "onKeyDown" | "onChange" | "onInput" | "pattern" | "placeholder" | "defaultValue" | "autoComplete" | "multiple" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "max" | "min" | "readOnly" | "step" | "enterKeyHint" | "rootRef" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType"> & {
|
|
338
338
|
autoCorrect?: import("../Input/types").InputSharedProps["autoCorrect"] | (string | undefined);
|
|
339
339
|
autoCapitalize?: import("../Input/types").InputSharedProps["autoCapitalize"] | ("none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined);
|
|
340
340
|
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
@@ -342,7 +342,7 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
342
342
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
343
343
|
component?: import("../Input").InputHostTag;
|
|
344
344
|
children?: React.ReactNode;
|
|
345
|
-
}, keyof import("..").InputBaseProps> & import("..").InputBaseProps, keyof TreeSelectProps> & TreeSelectProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "
|
|
345
|
+
}, keyof import("..").InputBaseProps> & import("..").InputBaseProps, keyof TreeSelectProps> & TreeSelectProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("../Input/types").InputSharedProps, "onKeyDown" | "onChange" | "onInput" | "autoCorrect" | "autoCapitalize"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "required" | "type" | "children" | "color" | "fontFamily" | "fontSize" | "fontWeight" | "letterSpacing" | "textAlign" | "fontStyle" | "textTransform" | "value" | "name" | "className" | "disabled" | "id" | "style" | "onKeyDown" | "onChange" | "onInput" | "pattern" | "placeholder" | "defaultValue" | "autoComplete" | "multiple" | "maxLength" | "minLength" | "autosize" | "error" | "styles" | "max" | "min" | "readOnly" | "step" | "enterKeyHint" | "rootRef" | "multiline" | "wrapperProps" | "onChangeText" | "onSubmitEditing" | "onSelectionChange" | "autoCorrect" | "autoCapitalize" | keyof import("../Input").__InputProps | "withAria" | "spellCheck" | "autoFocus" | "rows" | "minRows" | "maxRows" | "selection" | "textContentType"> & {
|
|
346
346
|
autoCorrect?: import("../Input/types").InputSharedProps["autoCorrect"] | (string | undefined);
|
|
347
347
|
autoCapitalize?: import("../Input/types").InputSharedProps["autoCapitalize"] | ("none" | (string & {}) | "off" | "on" | "sentences" | "words" | "characters" | undefined);
|
|
348
348
|
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
@@ -426,14 +426,14 @@ export declare const TreeSelect: React.ForwardRefExoticComponent<Omit<Omit<Omit<
|
|
|
426
426
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
427
427
|
/** Re-export of `Combobox.ClearButton`. */
|
|
428
428
|
ClearButton: import("@tamagui/web").TamaguiComponent<Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps & import("..").CloseButtonProps, import("@tamagui/web").StackStyleBase, {
|
|
429
|
-
size?: string | number | undefined;
|
|
430
429
|
radius?: string | number | undefined;
|
|
430
|
+
size?: string | number | undefined;
|
|
431
431
|
disabled?: boolean | undefined;
|
|
432
432
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
433
433
|
variant?: "default" | "white" | "light" | "transparent" | "outline" | "filled" | "subtle" | "gradient" | undefined;
|
|
434
434
|
}>, keyof ComboboxClearButtonProps> & ComboboxClearButtonProps, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("..").CloseButtonProps & ComboboxClearButtonProps, import("@tamagui/web").StackStyleBase, {
|
|
435
|
-
size?: string | number | undefined;
|
|
436
435
|
radius?: string | number | undefined;
|
|
436
|
+
size?: string | number | undefined;
|
|
437
437
|
disabled?: boolean | undefined;
|
|
438
438
|
shadow?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
439
439
|
variant?: "default" | "white" | "light" | "transparent" | "outline" | "filled" | "subtle" | "gradient" | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnstyledButton.d.ts","sourceRoot":"","sources":["../../../src/UnstyledButton/UnstyledButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgC,MAAM,cAAc,CAAC;AAO3E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;6CAc9B,CAAC;AAEH,KAAK,wBAAwB,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,mBAAmB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEvF,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"UnstyledButton.d.ts","sourceRoot":"","sources":["../../../src/UnstyledButton/UnstyledButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAgC,MAAM,cAAc,CAAC;AAO3E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;6CAc9B,CAAC;AAEH,KAAK,wBAAwB,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,mBAAmB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEvF,MAAM,WAAW,mBAAoB,SAAQ,wBAAwB;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAkCD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CAEzB,CAAC"}
|
|
@@ -849,6 +849,23 @@ export declare const webButton: () => {
|
|
|
849
849
|
render?: "button";
|
|
850
850
|
type?: string;
|
|
851
851
|
};
|
|
852
|
+
/**
|
|
853
|
+
* Web-only reset for the native `<button>` user-agent `text-align: center`.
|
|
854
|
+
* Returned as a raw `style` fragment to spread onto the element's `style` prop —
|
|
855
|
+
* NOT a `styled()` config value: Tamagui classifies `textAlign` as a Text style
|
|
856
|
+
* and FILTERS it out of a View/Stack-based `styled()` frame (verified: a frame's
|
|
857
|
+
* `maxWidth` survives to the DOM but its `textAlign` does not), so the element's
|
|
858
|
+
* forwarded `style` is the only reliable channel. `undefined` on native, where a
|
|
859
|
+
* pressable's text already starts at the inline edge and View style has no
|
|
860
|
+
* `textAlign` — spread it into a `style` array so the native `undefined` entry is
|
|
861
|
+
* simply ignored. Place it BEFORE the caller's `style` so explicit alignment
|
|
862
|
+
* still wins. Mirrors {@link webButton} / {@link webCursorStyle} web-gating; pair
|
|
863
|
+
* the two on any pressable that renders a real `<button>` and hosts text content
|
|
864
|
+
* (e.g. `UnstyledButton`), so web text matches native's start-aligned default.
|
|
865
|
+
*/
|
|
866
|
+
export declare const webButtonTextReset: () => {
|
|
867
|
+
textAlign: "left";
|
|
868
|
+
} | undefined;
|
|
852
869
|
/**
|
|
853
870
|
* Mantine's `direction` (flex main-axis) cannot be a styled variant: Tamagui
|
|
854
871
|
* reserves `direction` for the CSS writing-direction style prop (`"ltr" | "rtl"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-props.d.ts","sourceRoot":"","sources":["../../../src/internal/style-props.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,cAAc,EAAS,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,OAAO,EAAE,YAAY,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EACL,UAAU,EACV,cAAc,EACd,YAAY,EACZ,2BAA2B,EAC3B,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAO1B;;;GAGG;AACH,eAAO,MAAM,aAAa;8BACP,MAAM;;;8BACN,MAAM;;;CACf,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;8BACV,MAAM;;;;8BAIN,MAAM;;;;CAIf,CAAC;AAEX,qEAAqE;AACrE,eAAO,MAAM,YAAY;8BACN,MAAM;oBAA2B,QAAQ,CAAC,YAAY,CAAC;;CAChE,CAAC;AAEX,eAAO,MAAM,cAAc;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AO,MAAM,iBAAiB;8BACX,MAAM;oBAA2B,SAAS,CAAC,YAAY,CAAC;;8BACxD,MAAM;oBAA2B,SAAS,CAAC,YAAY,CAAC;;CACjE,CAAC;AAEX,0EAA0E;AAC1E,eAAO,MAAM,gBAAgB;8BACV,MAAM;mBAA0B,SAAS,CAAC,WAAW,CAAC;;CAC/D,CAAC;AAEX,0EAA0E;AAC1E,eAAO,MAAM,oBAAoB;8BACd,MAAM;uBAA8B,SAAS,CAAC,eAAe,CAAC;;CACvE,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3E,mFAAmF;AACnF,eAAO,MAAM,eAAe;8BACT,MAAM;kBAAyB,QAAQ;;CAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knitui/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Cross-platform (React Native + Web) component kit for Knit UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "The Haus <joost@the.haus>",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"sideEffects": false,
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"expo-image": "~2.4.1",
|
|
64
|
-
"@knitui/core": "0.
|
|
65
|
-
"@knitui/hooks": "0.
|
|
66
|
-
"@knitui/icons": "0.
|
|
64
|
+
"@knitui/core": "0.2.0",
|
|
65
|
+
"@knitui/hooks": "0.2.0",
|
|
66
|
+
"@knitui/icons": "0.2.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"react": "*",
|
|
@@ -2,7 +2,7 @@ import { type GetProps, styled, withStaticProperties } from "@knitui/core";
|
|
|
2
2
|
|
|
3
3
|
import { Box } from "../Box";
|
|
4
4
|
import { renderTextChild } from "../internal/render-text-child";
|
|
5
|
-
import { focusRingStyle, webCursor } from "../internal/style-props";
|
|
5
|
+
import { focusRingStyle, webButton, webButtonTextReset, webCursor } from "../internal/style-props";
|
|
6
6
|
import { Text } from "../Text";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -42,18 +42,22 @@ export interface UnstyledButtonProps extends UnstyledButtonFrameProps {
|
|
|
42
42
|
*/
|
|
43
43
|
const UnstyledButtonComponent = UnstyledButtonFrame.styleable<UnstyledButtonProps>(
|
|
44
44
|
function UnstyledButton(props, ref) {
|
|
45
|
-
const { children, disabled, ...rest } = props;
|
|
46
|
-
//
|
|
47
|
-
//
|
|
48
|
-
|
|
45
|
+
const { children, disabled, style, ...rest } = props;
|
|
46
|
+
// On web the semantic `<button>` host carries a UA `text-align: center` that
|
|
47
|
+
// would centre text content — diverging from native, where a pressable's text
|
|
48
|
+
// starts at the inline edge. `webButtonTextReset()` neutralises that (web-only)
|
|
49
|
+
// ahead of the caller's `style`, so the default matches native while explicit
|
|
50
|
+
// alignment still overrides. It has to ride `style` rather than the frame
|
|
51
|
+
// config because Tamagui filters `textAlign` off a View frame (see the helper).
|
|
52
|
+
const style_ = [webButtonTextReset(), style] as UnstyledButtonFrameProps["style"];
|
|
49
53
|
return (
|
|
50
54
|
<UnstyledButtonFrame
|
|
51
55
|
ref={ref}
|
|
52
56
|
disabled={disabled}
|
|
53
57
|
{...rest}
|
|
54
58
|
aria-disabled={disabled || undefined}
|
|
55
|
-
|
|
56
|
-
{
|
|
59
|
+
{...webButton()}
|
|
60
|
+
style={style_}
|
|
57
61
|
>
|
|
58
62
|
{renderTextChild(children, Text)}
|
|
59
63
|
</UnstyledButtonFrame>
|
|
@@ -483,6 +483,23 @@ export const webCursorStyle = <T extends string>(cursor: T): { cursor: T } | und
|
|
|
483
483
|
export const webButton = (): { render?: "button"; type?: string } =>
|
|
484
484
|
isWeb ? { render: "button", type: "button" } : {};
|
|
485
485
|
|
|
486
|
+
/**
|
|
487
|
+
* Web-only reset for the native `<button>` user-agent `text-align: center`.
|
|
488
|
+
* Returned as a raw `style` fragment to spread onto the element's `style` prop —
|
|
489
|
+
* NOT a `styled()` config value: Tamagui classifies `textAlign` as a Text style
|
|
490
|
+
* and FILTERS it out of a View/Stack-based `styled()` frame (verified: a frame's
|
|
491
|
+
* `maxWidth` survives to the DOM but its `textAlign` does not), so the element's
|
|
492
|
+
* forwarded `style` is the only reliable channel. `undefined` on native, where a
|
|
493
|
+
* pressable's text already starts at the inline edge and View style has no
|
|
494
|
+
* `textAlign` — spread it into a `style` array so the native `undefined` entry is
|
|
495
|
+
* simply ignored. Place it BEFORE the caller's `style` so explicit alignment
|
|
496
|
+
* still wins. Mirrors {@link webButton} / {@link webCursorStyle} web-gating; pair
|
|
497
|
+
* the two on any pressable that renders a real `<button>` and hosts text content
|
|
498
|
+
* (e.g. `UnstyledButton`), so web text matches native's start-aligned default.
|
|
499
|
+
*/
|
|
500
|
+
export const webButtonTextReset = (): { textAlign: "left" } | undefined =>
|
|
501
|
+
isWeb ? { textAlign: "left" } : undefined;
|
|
502
|
+
|
|
486
503
|
/**
|
|
487
504
|
* Mantine's `direction` (flex main-axis) cannot be a styled variant: Tamagui
|
|
488
505
|
* reserves `direction` for the CSS writing-direction style prop (`"ltr" | "rtl"
|