@a-type/ui 0.1.6 → 0.1.7
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/cjs/components/button/ConfirmedButton.d.ts +1 -1
- package/dist/cjs/components/card/Card.d.ts +29 -0
- package/dist/cjs/components/card/Card.js +35 -0
- package/dist/cjs/components/card/Card.js.map +1 -0
- package/dist/cjs/components/card/index.d.ts +1 -0
- package/dist/cjs/components/card/index.js +18 -0
- package/dist/cjs/components/card/index.js.map +1 -0
- package/dist/cjs/components/card.d.ts +1 -0
- package/dist/cjs/components/card.js +18 -0
- package/dist/cjs/components/card.js.map +1 -0
- package/dist/cjs/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/cjs/components/contextMenu/contextMenu.d.ts +2 -2
- package/dist/cjs/components/dialog/Dialog.d.ts +10 -4
- package/dist/cjs/components/dialog/Dialog.js +68 -6
- package/dist/cjs/components/dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/cjs/components/forms/Form.d.ts +2 -2
- package/dist/cjs/components/forms/FormikForm.d.ts +1 -1
- package/dist/cjs/components/forms/SubmitButton.d.ts +1 -1
- package/dist/cjs/components/imageUploader/ImageUploader.d.ts +1 -1
- package/dist/cjs/components/imageUploader/UploadIcon.d.ts +1 -1
- package/dist/cjs/components/layouts/PageNowPlayingContext.d.ts +1 -1
- package/dist/cjs/components/particles/ParticleContext.d.ts +1 -1
- package/dist/cjs/components/popover/Popover.d.ts +2 -2
- package/dist/cjs/components/relativeTime/RelativeTime.d.ts +1 -1
- package/dist/cjs/components/richEditor/RichEditor.d.ts +1 -1
- package/dist/cjs/components/select/Select.d.ts +33 -15
- package/dist/cjs/components/select/Select.js +67 -14
- package/dist/cjs/components/select/Select.js.map +1 -1
- package/dist/cjs/components/skeletons/skeletons.d.ts +1 -1
- package/dist/cjs/components/switch/Switch.d.ts +1 -1
- package/dist/cjs/components/tabs/tabs.d.ts +1 -1
- package/dist/cjs/components/toggleGroup/toggleGroup.d.ts +1 -1
- package/dist/cjs/components/typography/typography.d.ts +1 -1
- package/dist/esm/components/button/ConfirmedButton.d.ts +1 -1
- package/dist/esm/components/card/Card.d.ts +29 -0
- package/dist/esm/components/card/Card.js +29 -0
- package/dist/esm/components/card/Card.js.map +1 -0
- package/dist/esm/components/card/index.d.ts +1 -0
- package/dist/esm/components/card/index.js +2 -0
- package/dist/esm/components/card/index.js.map +1 -0
- package/dist/esm/components/card.d.ts +1 -0
- package/dist/esm/components/card.js +2 -0
- package/dist/esm/components/card.js.map +1 -0
- package/dist/esm/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/components/collapsible/Collapsible.d.ts +1 -1
- package/dist/esm/components/contextMenu/contextMenu.d.ts +2 -2
- package/dist/esm/components/dialog/Dialog.d.ts +10 -4
- package/dist/esm/components/dialog/Dialog.js +67 -6
- package/dist/esm/components/dialog/Dialog.js.map +1 -1
- package/dist/esm/components/dropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/esm/components/forms/Form.d.ts +2 -2
- package/dist/esm/components/forms/FormikForm.d.ts +1 -1
- package/dist/esm/components/forms/SubmitButton.d.ts +1 -1
- package/dist/esm/components/imageUploader/ImageUploader.d.ts +1 -1
- package/dist/esm/components/imageUploader/UploadIcon.d.ts +1 -1
- package/dist/esm/components/layouts/PageNowPlayingContext.d.ts +1 -1
- package/dist/esm/components/particles/ParticleContext.d.ts +1 -1
- package/dist/esm/components/popover/Popover.d.ts +2 -2
- package/dist/esm/components/relativeTime/RelativeTime.d.ts +1 -1
- package/dist/esm/components/richEditor/RichEditor.d.ts +1 -1
- package/dist/esm/components/select/Select.d.ts +33 -15
- package/dist/esm/components/select/Select.js +66 -14
- package/dist/esm/components/select/Select.js.map +1 -1
- package/dist/esm/components/skeletons/skeletons.d.ts +1 -1
- package/dist/esm/components/switch/Switch.d.ts +1 -1
- package/dist/esm/components/tabs/tabs.d.ts +1 -1
- package/dist/esm/components/toggleGroup/toggleGroup.d.ts +1 -1
- package/dist/esm/components/typography/typography.d.ts +1 -1
- package/package.json +4 -2
|
@@ -12,13 +12,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
15
|
-
import
|
|
15
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
|
+
import { createContext, forwardRef, useCallback, useContext, useRef, useState, } from 'react';
|
|
16
17
|
import { withClassName } from '../../hooks/withClassName.js';
|
|
17
18
|
import useMergedRef from '../../hooks/useMergedRef.js';
|
|
18
19
|
import { useParticles } from '../particles.js';
|
|
19
20
|
import classNames from 'classnames';
|
|
21
|
+
import { CheckIcon, ChevronDownIcon } from '@radix-ui/react-icons';
|
|
22
|
+
import { selectTriggerClassName } from '../select.js';
|
|
23
|
+
import { useDrag } from '@use-gesture/react';
|
|
20
24
|
const StyledOverlay = withClassName(DialogPrimitive.Overlay, 'bg-overlay fixed inset-0 z-dialog-backdrop animate-fade-in [&[data-state=closed]]:animate-fade-out animate-duration-200 motion-reduce:animate-none');
|
|
21
|
-
const StyledContent = withClassName(DialogPrimitive.Content, 'z-dialog fixed bottom-[var(--viewport-bottom-offset,0px)] left-0 right-0 h-min-content max-h-[calc(0.85*var(--viewport-height,100vh))]', 'translate-0 transform-gpu', 'animate-ease-out', 'shadow-xl bg-white rounded-tl-
|
|
25
|
+
const StyledContent = withClassName(DialogPrimitive.Content, 'z-dialog fixed bottom-[calc(var(--viewport-bottom-offset,0px)+var(--gesture-y,0px))] left-0 right-0 h-min-content max-h-[calc(0.85*var(--viewport-height,100vh))]', 'translate-0 transform-gpu', 'animate-ease-out', 'shadow-xl bg-white rounded-tl-xl rounded-tr-xl p-6 pt-8 border-default border-b-0 overflow-y-auto flex flex-col pb-[calc(3rem+env(safe-area-inset-bottom,0px))]', 'animate-fade-in-up-big animate-duration-200 [&[data-state=closed]]:animate-fade-out-down-big animate-ease-in motion-reduce:animate-none', 'sm:(animate-duration-200 left-50% top-50% translate-[-50%] w-90vw max-w-450px max-h-85vh pb-6 rounded-lg border-b-1 animate-keyframes-fade-in [&[data-state=closed]]:animate-keyframes-fade-out motion-reduce:animate-none pt-6)');
|
|
22
26
|
export const Content = forwardRef(function Content(_a, ref) {
|
|
23
27
|
var { children, width, outerClassName, className } = _a, props = __rest(_a, ["children", "width", "outerClassName", "className"]);
|
|
24
28
|
const particles = useParticles();
|
|
@@ -50,21 +54,78 @@ export const Content = forwardRef(function Content(_a, ref) {
|
|
|
50
54
|
wasOpenRef.current = false;
|
|
51
55
|
}
|
|
52
56
|
}, [particles]);
|
|
53
|
-
const
|
|
54
|
-
|
|
57
|
+
const gestureRef = useRef(null);
|
|
58
|
+
const finalRef = useMergedRef(ref, openRef, gestureRef);
|
|
59
|
+
return (_jsxs(DialogPrimitive.Portal, { children: [_jsx(StyledOverlay, {}), _jsxs(StyledContent, Object.assign({ "data-dialog-content": true, ref: finalRef }, props, { className: classNames({
|
|
55
60
|
'md:max-w-800px': width === 'lg',
|
|
56
61
|
'max-w-600px': width === 'md',
|
|
57
62
|
'max-w-300px': width === 'sm',
|
|
58
|
-
}, outerClassName || className) }, { children: children }))] }));
|
|
63
|
+
}, outerClassName || className) }, { children: [_jsx(DialogSwipeHandle, {}), children] }))] }));
|
|
59
64
|
});
|
|
65
|
+
export const DialogSwipeHandle = forwardRef(function DialogSwipeHandle(_a, ref) {
|
|
66
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
67
|
+
const close = useContext(DialogCloseContext);
|
|
68
|
+
const innerRef = useRef(null);
|
|
69
|
+
useDrag(({ swipe: [, swipeY], movement: [, dy], velocity: [, vy], last }) => {
|
|
70
|
+
const content = findParentDialogContent(innerRef.current);
|
|
71
|
+
if (!content)
|
|
72
|
+
return;
|
|
73
|
+
const contentHeight = content.clientHeight;
|
|
74
|
+
if (last)
|
|
75
|
+
console.log(swipeY, dy, contentHeight);
|
|
76
|
+
if (last && (swipeY === 1 || dy > contentHeight / 2)) {
|
|
77
|
+
console.log('close');
|
|
78
|
+
close();
|
|
79
|
+
}
|
|
80
|
+
const gestureY = last ? 0 : -Math.max(0, dy);
|
|
81
|
+
content.style.setProperty('--gesture-y', `${gestureY}px`);
|
|
82
|
+
content.style.setProperty('transition', last ? 'bottom 0.2s' : '');
|
|
83
|
+
}, {
|
|
84
|
+
target: innerRef,
|
|
85
|
+
axis: 'y',
|
|
86
|
+
});
|
|
87
|
+
const finalRef = useMergedRef(ref, innerRef);
|
|
88
|
+
return (_jsx("div", Object.assign({ ref: finalRef }, props, { className: classNames('absolute top-0 left-50% transform-gpu -translate-x-1/2 w-20% py-2 rounded-full cursor-grab sm:display-none touch-none', className) }, { children: _jsx("div", { className: "w-full h-[4px] bg-gray-4 rounded-full" }) })));
|
|
89
|
+
});
|
|
90
|
+
function findParentDialogContent(element) {
|
|
91
|
+
if (!element)
|
|
92
|
+
return null;
|
|
93
|
+
if (element.getAttribute('data-dialog-content'))
|
|
94
|
+
return element;
|
|
95
|
+
return findParentDialogContent(element.parentElement);
|
|
96
|
+
}
|
|
97
|
+
const DialogCloseContext = createContext(() => { });
|
|
60
98
|
const StyledTitle = withClassName(DialogPrimitive.Title, 'font-title color-black text-3xl mb-4 mt-0');
|
|
61
99
|
const StyledDescription = withClassName(DialogPrimitive.Description, 'mt-3 mb-6 color-gray8 text-md leading-6');
|
|
62
100
|
// Exports
|
|
63
|
-
export const Dialog =
|
|
101
|
+
export const Dialog = (props) => {
|
|
102
|
+
var _a;
|
|
103
|
+
const [innerOpen, innerOnOpenChange] = useState(props.defaultOpen);
|
|
104
|
+
const open = (_a = props.open) !== null && _a !== void 0 ? _a : innerOpen;
|
|
105
|
+
const onOpenChange = useCallback((open) => {
|
|
106
|
+
var _a;
|
|
107
|
+
innerOnOpenChange(open);
|
|
108
|
+
(_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, open);
|
|
109
|
+
}, [props.onOpenChange]);
|
|
110
|
+
const close = useCallback(() => {
|
|
111
|
+
onOpenChange(false);
|
|
112
|
+
}, [onOpenChange]);
|
|
113
|
+
return (_jsx(DialogCloseContext.Provider, Object.assign({ value: close }, { children: _jsx(DialogPrimitive.Root, Object.assign({}, props, { open: open, onOpenChange: onOpenChange })) })));
|
|
114
|
+
};
|
|
64
115
|
export const DialogTrigger = DialogPrimitive.Trigger;
|
|
65
116
|
export const DialogContent = Content;
|
|
66
117
|
export const DialogTitle = StyledTitle;
|
|
67
118
|
export const DialogDescription = StyledDescription;
|
|
68
119
|
export const DialogClose = DialogPrimitive.Close;
|
|
69
120
|
export const DialogActions = withClassName('div', 'flex justify-end sticky w-full gap-3 items-center bg-white py-3 translate-y-6 flex-wrap', 'bottom--6', 'sm:(bottom-0)');
|
|
121
|
+
export const DialogSelectTrigger = forwardRef(function DialogSelectTrigger(_a, ref) {
|
|
122
|
+
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
123
|
+
return (_jsxs(DialogPrimitive.Trigger, Object.assign({ className: classNames(selectTriggerClassName, className) }, props, { children: [_jsx("span", { children: children }), _jsx(ChevronDownIcon, {})] })));
|
|
124
|
+
});
|
|
125
|
+
export const DialogSelectList = withClassName(RadioGroupPrimitive.Root, 'flex flex-col gap-2 overflow-y-auto p-2');
|
|
126
|
+
export const DialogSelectItemRoot = withClassName(RadioGroupPrimitive.Item, 'flex items-center gap-3 w-full py-3 px-4 text-left border-none rounded-lg font-normal bg-transparent [&:nth-child(2n+1)]:bg-gray-blend cursor-pointer transition-all', '[&[data-state=checked]]:(bg-primary-wash text-primary-dark)');
|
|
127
|
+
export const DialogSelectItem = forwardRef(function DialogSelectItem(_a, ref) {
|
|
128
|
+
var { children } = _a, props = __rest(_a, ["children"]);
|
|
129
|
+
return (_jsxs(DialogSelectItemRoot, Object.assign({}, props, { children: [_jsx("span", Object.assign({ className: "flex-1" }, { children: children })), _jsx(RadioGroupPrimitive.Indicator, Object.assign({ className: "flex-0-0-auto" }, { children: _jsx(CheckIcon, {}) }))] })));
|
|
130
|
+
});
|
|
70
131
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/components/dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../../src/components/dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAEN,aAAa,EACb,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACN,QAAQ,GACR,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,aAAa,GAAG,aAAa,CAClC,eAAe,CAAC,OAAO,EACvB,oJAAoJ,CACpJ,CAAC;AAEF,MAAM,aAAa,GAAG,aAAa,CAClC,eAAe,CAAC,OAAO,EACvB,mKAAmK,EACnK,2BAA2B,EAC3B,kBAAkB,EAClB,iKAAiK,EACjK,yIAAyI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AAM,CAAC,MAAM,aAAa,GAAG,aAAa,CACzC,KAAK,EACL,yFAAyF,EACzF,WAAW,EACX,eAAe,CACf,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAG3C,SAAS,mBAAmB,CAAC,EAAiC,EAAE,GAAG;QAAtC,EAAE,QAAQ,EAAE,SAAS,OAAY,EAAP,KAAK,cAA/B,yBAAiC,CAAF;IAC7D,OAAO,CACN,MAAC,eAAe,CAAC,OAAO,kBACvB,SAAS,EAAE,UAAU,CAAC,sBAAsB,EAAE,SAAS,CAAC,IACpD,KAAK,eAET,yBAAO,QAAQ,GAAQ,EACvB,KAAC,eAAe,KAAG,KACM,CAC1B,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAC5C,mBAAmB,CAAC,IAAI,EACxB,yCAAyC,CACzC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAChD,mBAAmB,CAAC,IAAI,EACxB,sKAAsK,EACtK,6DAA6D,CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAGxC,SAAS,gBAAgB,CAAC,EAAsB,EAAE,GAAG;QAA3B,EAAE,QAAQ,OAAY,EAAP,KAAK,cAApB,YAAsB,CAAF;IAC/C,OAAO,CACN,MAAC,oBAAoB,oBAAK,KAAK,eAC9B,6BAAM,SAAS,EAAC,QAAQ,gBAAE,QAAQ,IAAQ,EAC1C,KAAC,mBAAmB,CAAC,SAAS,kBAAC,SAAS,EAAC,eAAe,gBACvD,KAAC,SAAS,KAAG,IACkB,KACV,CACvB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
4
|
export declare const DropdownMenuTrigger: import("react").FunctionComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const Form: import("react").FunctionComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "slot" | "style" | "title" | "className" | "autoComplete" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "acceptCharset" | "action" | "encType" | "key" | "children" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
|
+
export declare const Form: import("react").FunctionComponent<Pick<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "slot" | "style" | "title" | "className" | "autoComplete" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "acceptCharset" | "action" | "encType" | "key" | "children" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "target" | "method" | "noValidate"> & import("react").RefAttributes<HTMLFormElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import { Particles } from './particlesState.js';
|
|
3
3
|
export declare function useParticles(): Particles | null;
|
|
4
4
|
export declare const ParticlesProvider: import("react").Provider<Particles | null>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
3
|
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export declare const PopoverArrow: import("react").FunctionComponent<PopoverPrimitive.PopoverArrowProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
6
|
export declare const PopoverClose: import("react").FunctionComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
7
|
export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export declare const PopoverContent: import("react").ForwardRefExoticComponent<Pick<PopoverPrimitive.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "slot" | "style" | "title" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "align" | "key" | "children" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sticky" | "asChild" | "forceMount" | "
|
|
8
|
+
export declare const PopoverContent: import("react").ForwardRefExoticComponent<Pick<PopoverPrimitive.PopoverContentProps & import("react").RefAttributes<HTMLDivElement>, "slot" | "style" | "title" | "className" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "align" | "key" | "children" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "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-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" | "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" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sticky" | "asChild" | "forceMount" | "side" | "sideOffset" | "alignOffset" | "arrowPadding" | "collisionBoundary" | "collisionPadding" | "hideWhenDetached" | "avoidCollisions" | "onCloseAutoFocus" | "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onOpenAutoFocus"> & {
|
|
9
9
|
disableBlur?: boolean | undefined;
|
|
10
10
|
containerClassName?: string | undefined;
|
|
11
11
|
padding?: "default" | "none" | undefined;
|
|
@@ -1,19 +1,37 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export declare const SelectItemRoot:
|
|
5
|
-
export declare const SelectItemIndicatorRoot:
|
|
6
|
-
export declare const SelectItemIndicator:
|
|
7
|
-
export declare const SelectItemText:
|
|
8
|
-
export declare const SelectGroup:
|
|
9
|
-
export declare const
|
|
10
|
-
export
|
|
11
|
-
export declare const SelectTrigger:
|
|
12
|
-
export declare const UnstyledSelectTrigger:
|
|
13
|
-
export declare const SelectValue:
|
|
14
|
-
export declare const SelectLabel:
|
|
15
|
-
export declare const SelectSeparator:
|
|
16
|
-
export declare const SelectIcon:
|
|
17
|
-
export declare const SelectContent:
|
|
4
|
+
export declare const SelectItemRoot: FunctionComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const SelectItemIndicatorRoot: FunctionComponent<SelectPrimitive.SelectItemIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export declare const SelectItemIndicator: FunctionComponent<SelectPrimitive.SelectItemIndicatorProps>;
|
|
7
|
+
export declare const SelectItemText: FunctionComponent<SelectPrimitive.SelectItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export declare const SelectGroup: (props: SelectPrimitive.SelectGroupProps) => JSX.Element;
|
|
9
|
+
export declare const SelectRoot: import("react").FC<SelectPrimitive.SelectProps>;
|
|
10
|
+
export declare const selectTriggerClassName = "layer-components:([all:unset] inline-flex items-center justify-center rounded-full px-3 py-1 text-sm gap-2 color-black border-solid border border-gray5 hover:border-gray7 focus:shadow-focus [&[data-placeholder]]:color-gray8) select-none";
|
|
11
|
+
export declare const SelectTrigger: FunctionComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export declare const UnstyledSelectTrigger: FunctionComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export declare const SelectValue: FunctionComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
14
|
+
export declare const SelectLabel: FunctionComponent<SelectPrimitive.SelectLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const SelectSeparator: FunctionComponent<SelectPrimitive.SelectSeparatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const SelectIcon: FunctionComponent<SelectPrimitive.SelectIconProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const SelectContent: FunctionComponent<SelectPrimitive.SelectContentProps & {
|
|
18
18
|
inDialog?: boolean | undefined;
|
|
19
19
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export declare const NativeSelect: import("react").ForwardRefExoticComponent<import("react").SelectHTMLAttributes<HTMLSelectElement> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
21
|
+
export type SelectProps<T extends string = string> = {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
value: T;
|
|
24
|
+
onValueChange?: (value: T) => void;
|
|
25
|
+
className?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
/** Native on mobile; otherwise use custom select impl */
|
|
28
|
+
mobileNative?: boolean;
|
|
29
|
+
/** won't work on mobile and mobileNative=true */
|
|
30
|
+
open?: boolean;
|
|
31
|
+
/** won't work on mobile and mobileNative=true */
|
|
32
|
+
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A high-level Select which converts to native on mobile. Use with SelectItem.
|
|
36
|
+
*/
|
|
37
|
+
export declare const Select: <T extends string = string>({ children, value, onValueChange, mobileNative, ...rest }: SelectProps<T>) => JSX.Element;
|
|
@@ -10,34 +10,86 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
}
|
|
11
11
|
return t;
|
|
12
12
|
};
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
14
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, } from '@radix-ui/react-icons';
|
|
15
15
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
16
|
-
import { forwardRef } from 'react';
|
|
16
|
+
import { createContext, forwardRef, useContext, } from 'react';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
18
|
import { withClassName } from '../../hooks/withClassName.js';
|
|
19
19
|
export const SelectItem = forwardRef((_a, forwardedRef) => {
|
|
20
20
|
var { children, className } = _a, props = __rest(_a, ["children", "className"]);
|
|
21
|
+
const isNative = useContext(IsNativeContext);
|
|
22
|
+
if (isNative) {
|
|
23
|
+
return _jsx("option", Object.assign({ value: props.value }, { children: children }));
|
|
24
|
+
}
|
|
21
25
|
return (_jsxs(SelectItemRoot, Object.assign({ className: className }, props, { ref: forwardedRef }, { children: [_jsx(SelectPrimitive.ItemText, { children: children }), _jsx(SelectItemIndicator, {})] })));
|
|
22
26
|
});
|
|
23
27
|
export const SelectItemRoot = withClassName(SelectPrimitive.Item, 'text-md leading-4 color-black rounded-sm flex items-center flex-row h-36px pr-4 pl-35px relative select-none', '[&[data-disabled]]:(color-gray5 pointer-events-none) [&[data-highlighted]]:(outline-none bg-primary-wash color-black)');
|
|
24
28
|
export const SelectItemIndicatorRoot = withClassName(SelectPrimitive.ItemIndicator, 'absolute left-0 w-25px inline-flex items-center justify-center');
|
|
25
|
-
export const SelectItemIndicator = (props) => (_jsx(SelectItemIndicatorRoot, Object.assign({}, props, { children: _jsx(CheckIcon, {}) })));
|
|
29
|
+
export const SelectItemIndicator = withNoNativeRender((props) => (_jsx(SelectItemIndicatorRoot, Object.assign({}, props, { children: _jsx(CheckIcon, {}) }))));
|
|
26
30
|
export const SelectItemText = withClassName(SelectPrimitive.ItemText, '');
|
|
27
|
-
export const SelectGroup =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export const
|
|
31
|
+
export const SelectGroup = (props) => {
|
|
32
|
+
const isNative = useContext(IsNativeContext);
|
|
33
|
+
if (isNative) {
|
|
34
|
+
return (_jsx("optgroup", Object.assign({ id: props.id, className: props.className }, { children: props.children })));
|
|
35
|
+
}
|
|
36
|
+
return _jsx(SelectPrimitive.Group, Object.assign({}, props));
|
|
37
|
+
};
|
|
38
|
+
export const SelectRoot = SelectPrimitive.Root;
|
|
39
|
+
export const selectTriggerClassName = 'layer-components:([all:unset] inline-flex items-center justify-center rounded-full px-3 py-1 text-sm gap-2 color-black border-solid border border-gray5 hover:border-gray7 focus:shadow-focus [&[data-placeholder]]:color-gray8) select-none';
|
|
40
|
+
export const SelectTrigger = withNoNativeRender(withClassName(SelectPrimitive.Trigger, selectTriggerClassName));
|
|
41
|
+
export const UnstyledSelectTrigger = withNoNativeRender(SelectPrimitive.Trigger);
|
|
42
|
+
export const SelectValue = withNoNativeRender(withClassName(SelectPrimitive.Value, 'flex flex-row'));
|
|
43
|
+
export const SelectLabel = withNoNativeRender(withClassName(SelectPrimitive.Label, 'px-25px text-xs leading-6 color-black select-none'));
|
|
44
|
+
export const SelectSeparator = withNoNativeRender(withClassName(SelectPrimitive.Separator, 'h-1px bg-gray50 m-1'));
|
|
45
|
+
export const SelectIcon = withNoNativeRender(forwardRef((_a, forwardedRef) => {
|
|
35
46
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
47
|
return (_jsx(SelectPrimitive.Icon, Object.assign({ className: classNames('color-inherit', className) }, props, { ref: forwardedRef }, { children: _jsx(ChevronDownIcon, {}) })));
|
|
37
|
-
});
|
|
48
|
+
}));
|
|
38
49
|
const zIndex = { zIndex: 1001 };
|
|
39
|
-
export const SelectContent = forwardRef((_a, forwardedRef) => {
|
|
50
|
+
export const SelectContent = withPassthroughNativeRender(forwardRef((_a, forwardedRef) => {
|
|
40
51
|
var { children, inDialog, className } = _a, props = __rest(_a, ["children", "inDialog", "className"]);
|
|
41
|
-
return (_jsx(SelectPrimitive.Portal, Object.assign({ className: className, style: zIndex }, { children: _jsxs(SelectPrimitive.Content, Object.assign({ className: classNames('overflow-hidden bg-white rounded-
|
|
52
|
+
return (_jsx(SelectPrimitive.Portal, Object.assign({ className: className, style: zIndex }, { children: _jsxs(SelectPrimitive.Content, Object.assign({ className: classNames('overflow-hidden bg-white rounded-lg border border-solid border-1 border-black z-menu shadow-lg', inDialog && 'z-[calc(var(--z-dialog)+1)]') }, props, { ref: forwardedRef }, { children: [_jsx(SelectPrimitive.ScrollUpButton, Object.assign({ className: "flex items-center justify-center h-25px bg-white color-primary-dark cursor-default" }, { children: _jsx(ChevronUpIcon, {}) })), _jsx(SelectPrimitive.Viewport, Object.assign({ className: "p-1" }, { children: children })), _jsx(SelectPrimitive.ScrollDownButton, Object.assign({ className: "flex items-center justify-center h-25px bg-white color-primary-dark cursor-default" }, { children: _jsx(ChevronDownIcon, {}) }))] })) })));
|
|
53
|
+
}));
|
|
54
|
+
export const NativeSelect = forwardRef((_a, forwardedRef) => {
|
|
55
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
56
|
+
return (_jsxs("div", Object.assign({ className: classNames('relative', className) }, { children: [_jsx("select", Object.assign({ className: classNames('appearance-none font-inherit bg-white inline-flex items-center justify-center rounded-full px-3 py-1 pr-8 text-sm gap-2 color-black border-solid border border-gray5 hover:border-gray7 focus:outline-none focus-visible:shadow-focus [&[data-placeholder]]:color-gray8') }, props, { ref: forwardedRef })), _jsx("div", Object.assign({ className: "absolute right-1 top-50% translate-y-[-50%] pointer-events-none" }, { children: _jsx(ChevronDownIcon, { className: "w-4 h-4 m-2" }) }))] })));
|
|
42
57
|
});
|
|
58
|
+
/**
|
|
59
|
+
* A high-level Select which converts to native on mobile. Use with SelectItem.
|
|
60
|
+
*/
|
|
61
|
+
export const Select = (_a) => {
|
|
62
|
+
var { children, value, onValueChange, mobileNative } = _a, rest = __rest(_a, ["children", "value", "onValueChange", "mobileNative"]);
|
|
63
|
+
const mobile = isMobile();
|
|
64
|
+
if (mobile && mobileNative) {
|
|
65
|
+
return (_jsx(IsNativeContext.Provider, Object.assign({ value: true }, { children: _jsx(NativeSelect, Object.assign({ onChange: (ev) => {
|
|
66
|
+
onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(ev.target.value);
|
|
67
|
+
}, value: value }, rest, { children: children })) })));
|
|
68
|
+
}
|
|
69
|
+
return (_jsx(SelectRoot, Object.assign({ value: value, onValueChange: onValueChange }, { children: children })));
|
|
70
|
+
};
|
|
71
|
+
function isMobile() {
|
|
72
|
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
73
|
+
}
|
|
74
|
+
// facilitate the auto native switching
|
|
75
|
+
const IsNativeContext = createContext(false);
|
|
76
|
+
function withNoNativeRender(Component) {
|
|
77
|
+
const WithNoNativeRender = forwardRef((props, ref) => {
|
|
78
|
+
const isNative = useContext(IsNativeContext);
|
|
79
|
+
if (isNative)
|
|
80
|
+
return null;
|
|
81
|
+
return _jsx(Component, Object.assign({ ref: ref }, props));
|
|
82
|
+
});
|
|
83
|
+
return WithNoNativeRender;
|
|
84
|
+
}
|
|
85
|
+
function withPassthroughNativeRender(Component) {
|
|
86
|
+
const WithPassthroughNativeRender = forwardRef((props, ref) => {
|
|
87
|
+
const isNative = useContext(IsNativeContext);
|
|
88
|
+
if (isNative) {
|
|
89
|
+
return _jsx(_Fragment, { children: props.children });
|
|
90
|
+
}
|
|
91
|
+
return _jsx(Component, Object.assign({ ref: ref }, props));
|
|
92
|
+
});
|
|
93
|
+
return WithPassthroughNativeRender;
|
|
94
|
+
}
|
|
43
95
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;AAEb,OAAO,EACN,SAAS,EACT,eAAe,EACf,aAAa,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"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G,UAAU,CAAC,eAAe,CAAC,CAAC;QAE7C,IAAI,QAAQ;YAAE,OAAO,IAAI,CAAC;QAE1B,OAAO,KAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,kBAAyB,CAAC;AAClC,CAAC;AAED,SAAS,2BAA2B,CAElC,SAAY;IACb,MAAM,2BAA2B,GAAG,UAAU,CAAW,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACvE,MAAM,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;QAE7C,IAAI,QAAQ,EAAE;YACb,OAAO,4BAAG,KAAK,CAAC,QAAQ,GAAI,CAAC;SAC7B;QAED,OAAO,KAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,2BAAkC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import { SwitchProps } from '@radix-ui/react-switch';
|
|
3
3
|
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import * as Tabs from '@radix-ui/react-tabs';
|
|
3
3
|
export declare const TabsRoot: import("react").FunctionComponent<Tabs.TabsProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export declare const TabsList: import("react").FunctionComponent<Tabs.TabsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
3
3
|
export declare const ToggleGroupRoot: import("react").FunctionComponent<(ToggleGroup.ToggleGroupSingleProps | ToggleGroup.ToggleGroupMultipleProps) & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export declare const ToggleGroupItem: import("react").FunctionComponent<ToggleGroup.ToggleGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
1
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
2
2
|
export declare const H1: import("react").FunctionComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import("react").HTMLAttributes<HTMLHeadingElement>> & {
|
|
3
3
|
ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
|
|
4
4
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@a-type/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"/dist"
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@radix-ui/react-icons": "^1.1.1",
|
|
40
40
|
"@radix-ui/react-menu": "^1.0.0",
|
|
41
41
|
"@radix-ui/react-popover": "^1.0.0",
|
|
42
|
+
"@radix-ui/react-radio-group": "^1.1.3",
|
|
42
43
|
"@radix-ui/react-select": "^1.2.1",
|
|
43
44
|
"@radix-ui/react-slot": "^1.0.0",
|
|
44
45
|
"@radix-ui/react-switch": "^1.0.1",
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
"@tiptap/pm": "^2.0.3",
|
|
53
54
|
"@tiptap/react": "^2.0.3",
|
|
54
55
|
"@tiptap/starter-kit": "^2.0.3",
|
|
56
|
+
"@use-gesture/react": "^10.2.27",
|
|
55
57
|
"browser-image-resizer": "^2.4.1",
|
|
56
58
|
"classnames": "^2.3.2",
|
|
57
59
|
"color-interpolate": "^1.0.5",
|
|
@@ -67,8 +69,8 @@
|
|
|
67
69
|
"@types/pluralize": "^0.0.29",
|
|
68
70
|
"@types/react": "^18.0.14",
|
|
69
71
|
"@types/react-dom": "^18.0.5",
|
|
70
|
-
"@unocss/transformer-variant-group": "^0.54.0",
|
|
71
72
|
"@unocss/core": "^0.54.0",
|
|
73
|
+
"@unocss/transformer-variant-group": "^0.54.0",
|
|
72
74
|
"typescript": "^5.0.2",
|
|
73
75
|
"unocss": "^0.54.0"
|
|
74
76
|
},
|