@mirohq/design-system-select 0.1.9 → 0.1.11
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/main.js +45 -26
- package/dist/main.js.map +1 -1
- package/dist/module.js +45 -26
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +194 -191
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -10,6 +10,7 @@ var designSystemIcons = require('@mirohq/design-system-icons');
|
|
|
10
10
|
var designSystemUtils = require('@mirohq/design-system-utils');
|
|
11
11
|
var designSystemStyles = require('@mirohq/design-system-styles');
|
|
12
12
|
var designSystemScrollArea = require('@mirohq/design-system-scroll-area');
|
|
13
|
+
var designSystemPrimitive = require('@mirohq/design-system-primitive');
|
|
13
14
|
|
|
14
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
15
16
|
|
|
@@ -32,9 +33,10 @@ const StyledItem = designSystemStitches.styled(reactSelect.Item, {
|
|
|
32
33
|
gridTemplateAreas: "leftSlot textItem",
|
|
33
34
|
gridTemplateColumns: "20px 1fr",
|
|
34
35
|
lineHeight: "20px",
|
|
35
|
-
padding: "6px $150 6px $100",
|
|
36
36
|
position: "relative",
|
|
37
37
|
userSelect: "none",
|
|
38
|
+
padding: "6px 0",
|
|
39
|
+
paddingInline: "$150 $100",
|
|
38
40
|
...designSystemStyles.focus.css({
|
|
39
41
|
boxShadow: "$focus-small",
|
|
40
42
|
outline: "1px solid transparent"
|
|
@@ -147,10 +149,9 @@ const StyledTrigger = designSystemStitches.styled(reactSelect.Trigger, {
|
|
|
147
149
|
minWidth: 0,
|
|
148
150
|
fontSize: "$200",
|
|
149
151
|
lineHeight: 1.5,
|
|
150
|
-
maxWidth: "$100",
|
|
151
152
|
position: "relative",
|
|
152
153
|
userSelect: "none",
|
|
153
|
-
width: "
|
|
154
|
+
width: "100%",
|
|
154
155
|
justifyContent: "space-between",
|
|
155
156
|
alignItems: "center",
|
|
156
157
|
svg: {
|
|
@@ -208,13 +209,15 @@ const SelectContext = React.createContext({});
|
|
|
208
209
|
const SelectProvider = ({
|
|
209
210
|
children,
|
|
210
211
|
invalid,
|
|
211
|
-
ariaDisabled
|
|
212
|
+
ariaDisabled,
|
|
213
|
+
direction
|
|
212
214
|
}) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
213
215
|
SelectContext.Provider,
|
|
214
216
|
{
|
|
215
217
|
value: {
|
|
216
218
|
invalid,
|
|
217
|
-
ariaDisabled
|
|
219
|
+
ariaDisabled,
|
|
220
|
+
direction
|
|
218
221
|
},
|
|
219
222
|
children
|
|
220
223
|
}
|
|
@@ -274,6 +277,12 @@ const StyledValue = designSystemStitches.styled("span", {
|
|
|
274
277
|
|
|
275
278
|
const Value = React__default["default"].forwardRef((props, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(StyledValue, { children: /* @__PURE__ */ jsxRuntime.jsx(reactSelect.Value, { ...props, ref: forwardRef }) }));
|
|
276
279
|
|
|
280
|
+
const StyledScrollContainer = designSystemStitches.styled(designSystemPrimitive.Primitive.div, {
|
|
281
|
+
boxSizing: "border-box",
|
|
282
|
+
paddingInline: "0 6px",
|
|
283
|
+
margin: "-2px 0 0",
|
|
284
|
+
marginInline: "-2px 2px"
|
|
285
|
+
});
|
|
277
286
|
const StyledContent = designSystemStitches.styled(reactSelect.Content, {
|
|
278
287
|
backgroundColor: "$background-neutrals-container",
|
|
279
288
|
borderRadius: "$50",
|
|
@@ -284,9 +293,10 @@ const StyledContent = designSystemStitches.styled(reactSelect.Content, {
|
|
|
284
293
|
minWidth: "var(--radix-select-trigger-width)",
|
|
285
294
|
padding: "$50",
|
|
286
295
|
zIndex: "$select",
|
|
287
|
-
"& [data-radix-
|
|
288
|
-
padding: "
|
|
289
|
-
boxSizing: "border-box"
|
|
296
|
+
"& [data-radix-select-viewport]": {
|
|
297
|
+
padding: "$100",
|
|
298
|
+
boxSizing: "border-box",
|
|
299
|
+
margin: "-6px"
|
|
290
300
|
}
|
|
291
301
|
});
|
|
292
302
|
|
|
@@ -306,6 +316,7 @@ const Content = React__default["default"].forwardRef(
|
|
|
306
316
|
children,
|
|
307
317
|
...restProps
|
|
308
318
|
}, forwardRef) => {
|
|
319
|
+
const { direction } = useSelectContext();
|
|
309
320
|
const getOverflowMaxHeight = React.useCallback(() => {
|
|
310
321
|
const overflowMaxHeigh = "calc(var(--radix-select-content-available-height))";
|
|
311
322
|
return {
|
|
@@ -326,8 +337,8 @@ const Content = React__default["default"].forwardRef(
|
|
|
326
337
|
collisionPadding,
|
|
327
338
|
sticky,
|
|
328
339
|
hideWhenDetached,
|
|
329
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactSelect.Viewport, { children: overflow === "auto" ? /* @__PURE__ */ jsxRuntime.jsxs(designSystemScrollArea.ScrollArea, { type: "always", children: [
|
|
330
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystemScrollArea.ScrollArea.Viewport, { css: getOverflowMaxHeight(), children }),
|
|
340
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactSelect.Viewport, { children: overflow === "auto" ? /* @__PURE__ */ jsxRuntime.jsxs(designSystemScrollArea.ScrollArea, { dir: direction, type: "always", children: [
|
|
341
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystemScrollArea.ScrollArea.Viewport, { css: getOverflowMaxHeight(), children: /* @__PURE__ */ jsxRuntime.jsx(StyledScrollContainer, { children }) }),
|
|
331
342
|
/* @__PURE__ */ jsxRuntime.jsx(designSystemScrollArea.ScrollArea.Scrollbar, { orientation: "vertical", children: /* @__PURE__ */ jsxRuntime.jsx(designSystemScrollArea.ScrollArea.Thumb, {}) })
|
|
332
343
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children }) })
|
|
333
344
|
}
|
|
@@ -337,8 +348,8 @@ const Content = React__default["default"].forwardRef(
|
|
|
337
348
|
|
|
338
349
|
const StyledLabel = designSystemStitches.styled(reactSelect.Label, {
|
|
339
350
|
color: "$text-neutrals-subtle",
|
|
340
|
-
|
|
341
|
-
padding: "6px
|
|
351
|
+
margin: "0 $400",
|
|
352
|
+
padding: "6px 0"
|
|
342
353
|
});
|
|
343
354
|
|
|
344
355
|
const Label = React__default["default"].forwardRef((props, forwardRef) => /* @__PURE__ */ jsxRuntime.jsx(StyledLabel, { ...props, ref: forwardRef }));
|
|
@@ -365,23 +376,31 @@ const Select = React__default["default"].forwardRef(
|
|
|
365
376
|
...restProps
|
|
366
377
|
}, forwardRef) => {
|
|
367
378
|
const [openState, setOpenState] = React.useState(defaultOpen);
|
|
368
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
369
|
-
|
|
379
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
380
|
+
SelectProvider,
|
|
370
381
|
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
382
|
+
direction,
|
|
383
|
+
invalid,
|
|
384
|
+
ariaDisabled,
|
|
385
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
386
|
+
StyledSelect,
|
|
387
|
+
{
|
|
388
|
+
...restProps,
|
|
389
|
+
"aria-disabled": ariaDisabled,
|
|
390
|
+
disabled,
|
|
391
|
+
dir: direction,
|
|
392
|
+
open: open != null ? open : openState,
|
|
393
|
+
onOpenChange: (newOpen) => {
|
|
394
|
+
if (open == null) {
|
|
395
|
+
setOpenState(newOpen);
|
|
396
|
+
}
|
|
397
|
+
newOpen ? onOpen == null ? void 0 : onOpen() : onClose == null ? void 0 : onClose();
|
|
398
|
+
},
|
|
399
|
+
ref: forwardRef
|
|
379
400
|
}
|
|
380
|
-
|
|
381
|
-
},
|
|
382
|
-
ref: forwardRef
|
|
401
|
+
)
|
|
383
402
|
}
|
|
384
|
-
)
|
|
403
|
+
);
|
|
385
404
|
}
|
|
386
405
|
);
|
|
387
406
|
Select.Group = Group;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/select.styled.tsx","../src/partials/group.styled.tsx","../src/partials/group.tsx","../src/partials/item.styled.tsx","../src/partials/item-text.styled.tsx","../src/partials/item-indicator.styled.tsx","../src/partials/item.tsx","../src/partials/portal.styled.tsx","../src/partials/portal.tsx","../src/partials/select-icon.styled.tsx","../src/partials/trigger.styled.tsx","../src/hooks/use-select-context.tsx","../src/partials/trigger.tsx","../src/partials/value.styled.tsx","../src/partials/value.tsx","../src/partials/content.styled.tsx","../src/partials/content.tsx","../src/partials/label.styled.tsx","../src/partials/label.tsx","../src/partials/separator.styled.tsx","../src/partials/separator.tsx","../src/select.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root as RadixSelect } from '@radix-ui/react-select'\n\nexport const StyledSelect = styled(RadixSelect)\n\nexport type StyledSelectProps = ComponentPropsWithRef<typeof StyledSelect>\n","import { Group as RadixGroup } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledGroup = styled(RadixGroup, {})\n\nexport type StyledGroupProps = StrictComponentProps<typeof StyledGroup>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledGroup } from './group.styled'\nimport type { StyledGroupProps } from './group.styled'\n\nexport interface GroupProps extends StyledGroupProps {}\n\nexport const Group = React.forwardRef<\n ElementRef<typeof StyledGroup>,\n GroupProps\n>((props, forwardRef) => <StyledGroup {...props} ref={forwardRef} />)\n","import { Item as RadixItem } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItem = styled(RadixItem, {\n all: 'unset',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n cursor: 'pointer',\n display: 'grid',\n fontSize: '$175',\n gridTemplateAreas: 'leftSlot textItem',\n gridTemplateColumns: '20px 1fr',\n lineHeight: '20px',\n padding: '6px $150 6px $100',\n position: 'relative',\n userSelect: 'none',\n\n ...focus.css({\n boxShadow: '$focus-small',\n outline: '1px solid transparent',\n }),\n\n '&[aria-selected=true]': {\n color: '$text-primary-selected',\n },\n\n '&:active:not([aria-disabled=true])': {\n background: '$background-primary-subtle-active',\n boxShadow: 'none',\n color: '$text-primary-active',\n },\n\n '&:disabled, &[aria-disabled=true], &[data-disabled]': {\n cursor: 'default',\n color: '$text-neutrals-disabled',\n },\n\n '&:disabled, &[data-disabled]': {\n pointerEvents: 'none',\n },\n\n '&:hover:not([aria-disabled=true])': {\n background: '$background-primary-subtle-hover',\n color: '$text-primary-hover',\n '&:not([aria-disabled=true])': {\n boxShadow: 'none',\n },\n },\n\n '&[data-state=\"checked\"]': {\n color: '$text-primary-selected',\n },\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemText = styled('span', {\n display: 'flex',\n gridColumn: 2,\n width: '100%',\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItemText>\n","import { ItemIndicator as RadixItemIndicator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemIndicator = styled(RadixItemIndicator, {})\n\nexport type StyledItemIndicatorProps = StrictComponentProps<\n typeof StyledItemIndicator\n>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { IconCheckMark } from '@mirohq/design-system-icons'\nimport { ItemText as RadixItemText } from '@radix-ui/react-select'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\nimport { StyledItemText } from './item-text.styled'\nimport { StyledItemIndicator } from './item-indicator.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * The value given as data when submitted with a name.\n */\n value: string\n\n /**\n * When true, prevents the user from interacting with the item.\n */\n disabled?: boolean\n\n /**\n * Optional text used for typeahead purposes. By default the typeahead\n * behavior will use the Select's item text. Use this when the content is\n * complex, or you have non-textual content inside.\n */\n textValue?: string\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n textValue,\n 'aria-disabled': ariaDisabled,\n onKeyDown,\n onPointerUp,\n onPointerMove,\n onPointerLeave,\n children,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledItem\n {...restProps}\n aria-disabled={booleanify(ariaDisabled) ? ariaDisabled : undefined}\n onKeyDown={e => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown' &&\n e.code !== 'Escape'\n ) {\n e.preventDefault()\n e.stopPropagation()\n return\n }\n\n onKeyDown?.(e)\n }}\n onPointerUp={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerUp?.(e)\n }}\n onPointerMove={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerMove?.(e)\n }}\n onPointerLeave={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerLeave?.(e)\n }}\n textValue={textValue}\n disabled={disabled}\n ref={forwardRef}\n >\n <StyledItemIndicator>\n <IconCheckMark size='small' />\n </StyledItemIndicator>\n <RadixItemText asChild>\n <StyledItemText>{children}</StyledItemText>\n </RadixItemText>\n </StyledItem>\n )\n)\n","import { Portal as RadixPortal } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledPortal = styled(RadixPortal, {})\n\nexport type StyledPortalProps = StrictComponentProps<typeof StyledPortal>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledPortal } from './portal.styled'\nimport type { StyledPortalProps } from './portal.styled'\n\nexport interface PortalProps extends StyledPortalProps {\n /**\n * Specify a container element to portal the content into.\n */\n container?: HTMLElement | null\n}\n\nexport const Portal = React.forwardRef<\n ElementRef<typeof StyledPortal>,\n PortalProps\n>((props, forwardRef) => <StyledPortal {...props} ref={forwardRef} />)\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { SelectIcon as RadixSelectIcon } from '@radix-ui/react-select'\n\nexport const StyledSelectIcon = styled(RadixSelectIcon, { flexShrink: 0 })\n\nexport type StyledSelectIconProps = StrictComponentProps<\n typeof StyledSelectIcon\n>\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\n\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport const StyledTrigger = styled(RadixTrigger, {\n all: 'unset',\n backgroundColor: '$background-neutrals-container',\n border: '1px solid $border-neutrals',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n display: 'flex',\n minWidth: 0,\n fontSize: '$200',\n lineHeight: 1.5,\n maxWidth: '$100',\n position: 'relative',\n userSelect: 'none',\n width: '$50',\n justifyContent: 'space-between',\n alignItems: 'center',\n\n svg: {\n color: '$icon-neutrals-text',\n },\n\n '&[data-placeholder]': {\n color: '$text-neutrals-subtle',\n },\n\n '&[data-invalid]': {\n borderColor: '$border-danger',\n\n ...focus.css({\n boxShadow: '$focus-controls-error',\n }),\n },\n\n '&:hover': {\n borderColor: '$border-primary-hover',\n },\n\n '&:active, &[data-state=\"open\"]': {\n borderColor: '$border-primary-active',\n },\n\n ...focus.css({\n boxShadow: '$focus-controls',\n outline: '1px solid transparent',\n }),\n\n '&[disabled], &[aria-disabled=\"true\"]': {\n backgroundColor: '$background-neutrals-disabled',\n borderColor: '$border-neutrals-disabled',\n color: '$text-neutrals-disabled',\n\n svg: {\n color: '$icon-neutrals-disabled',\n },\n },\n\n '&[data-state=\"open\"]': {\n [`& ${StyledSelectIcon}`]: {\n transform: 'rotate(180deg)',\n },\n },\n\n variants: {\n size: {\n medium: {\n height: '$10',\n paddingX: '$100',\n gap: '$50',\n },\n large: {\n height: '$12',\n paddingX: '$150',\n gap: '$100',\n },\n },\n },\n})\n\nexport type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>\n","import React, { createContext, useContext } from 'react'\nimport type { PropsWithChildren } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\ninterface SelectValues {\n invalid: boolean\n ariaDisabled?: Booleanish\n}\n\ninterface SelectContextProps {\n invalid: boolean\n ariaDisabled?: Booleanish\n}\n\nconst SelectContext = createContext<SelectContextProps>({} as any)\n\nexport const SelectProvider = ({\n children,\n invalid,\n ariaDisabled,\n}: PropsWithChildren<SelectValues>): any => (\n <SelectContext.Provider\n value={{\n invalid,\n ariaDisabled,\n }}\n >\n {children}\n </SelectContext.Provider>\n)\n\nexport const useSelectContext = (): SelectContextProps =>\n useContext(SelectContext)\n","import React from 'react'\nimport type { ElementRef, PointerEvent } from 'react'\nimport { IconChevronDown } from '@mirohq/design-system-icons'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\n\nimport { StyledTrigger } from './trigger.styled'\nimport type { StyledTriggerProps } from './trigger.styled'\nimport { useSelectContext } from '../hooks/use-select-context'\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport interface TriggerProps extends StyledTriggerProps {\n /**\n * The content.\n */\n children: React.ReactNode\n}\n\nexport const Trigger = React.forwardRef<\n ElementRef<typeof StyledTrigger>,\n TriggerProps\n>(\n (\n {\n onKeyDown,\n onPointerDown,\n children,\n size = 'medium',\n asChild = false,\n ...restProps\n },\n forwardRef\n ) => {\n const { invalid, ariaDisabled } = useSelectContext()\n\n const commonProps = {\n ...restProps,\n ref: forwardRef,\n 'aria-disabled': ariaDisabled,\n onPointerDown: (e: PointerEvent<HTMLButtonElement>) => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onPointerDown?.(e)\n }\n },\n onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'Tab' &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown'\n ) {\n e.preventDefault()\n } else {\n onKeyDown?.(e)\n }\n },\n 'data-invalid': invalid ? '' : undefined,\n }\n\n if (asChild) {\n return (\n <RadixTrigger {...commonProps} asChild>\n {children}\n </RadixTrigger>\n )\n }\n\n return (\n <StyledTrigger {...commonProps} size={size}>\n {children}\n <StyledSelectIcon asChild>\n <IconChevronDown size='small' weight='thin' />\n </StyledSelectIcon>\n </StyledTrigger>\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledValue = styled('span', {\n overflow: 'hidden',\n paddingX: '$50',\n\n '& span:first-child': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { Value as RadixValue } from '@radix-ui/react-select'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nimport { StyledValue } from './value.styled'\n\nexport type StyledValueProps = StrictComponentProps<typeof RadixValue>\n\nexport interface ValueProps extends StyledValueProps {\n /**\n * The content that will be rendered inside the Select.Value when no value or\n * defaultValue is set.\n */\n placeholder?: React.ReactNode\n\n /**\n * The controlled content that will be rendered inside the Select.Value.\n */\n children?: React.ReactNode\n}\n\nexport const Value = React.forwardRef<\n ElementRef<typeof StyledValue>,\n ValueProps\n>((props, forwardRef) => (\n <StyledValue>\n <RadixValue {...props} ref={forwardRef} />\n </StyledValue>\n))\n","import { Content as RadixContent } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledContent = styled(RadixContent, {\n backgroundColor: '$background-neutrals-container',\n borderRadius: '$50',\n boxShadow: '$50',\n fontSize: '$175',\n fontWeight: 'normal',\n lineHeight: '20px',\n minWidth: 'var(--radix-select-trigger-width)',\n padding: '$50',\n zIndex: '$select',\n\n '& [data-radix-scroll-area-viewport]': {\n padding: `2px $50 2px 2px`,\n boxSizing: 'border-box',\n },\n})\n\nexport type StyledContentProps = StrictComponentProps<typeof StyledContent>\n","import React, { useCallback } from 'react'\nimport type { ElementRef, ReactNode } from 'react'\nimport { ScrollArea } from '@mirohq/design-system-scroll-area'\nimport type { CSS, CSSProperties } from '@stitches/react'\nimport { Viewport as RadixViewport } from '@radix-ui/react-select'\nimport { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledContent } from './content.styled'\nimport type { StyledContentProps } from './content.styled'\nimport type {\n Boundary,\n PointerDownOutsideEvent,\n Side,\n Align,\n Overflow,\n Sticky,\n} from '../types'\n\nexport const CONTENT_OFFSET = parseInt(theme.space[50])\n\nexport interface ContentProps extends StyledContentProps {\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onCloseAutoFocus?: (event: Event) => void\n\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onEscapeKeyDown?: (event: KeyboardEvent) => void\n\n /**\n * Event handler called when a pointer event occurs outside the bounds of the\n * component. It can be prevented by calling event.preventDefault.\n */\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void\n\n /**\n * The preferred side of the anchor to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled. Only\n * available when position is set to popper.\n */\n side?: Side\n\n /**\n * The distance in pixels from the anchor. Only available when position is set\n * to popper.\n */\n sideOffset?: number\n\n /**\n * The preferred alignment against the anchor. May change when collisions\n * occur. Only available when position is set to popper.\n */\n align?: Align\n\n /**\n * An offset in pixels from the \"start\" or \"end\" alignment options. Only\n * available when position is set to popper.\n */\n alignOffset?: number\n\n /**\n * When true, overrides the side andalign preferences to prevent collisions\n * with boundary edges. Only available when position is set to popper.\n */\n avoidCollisions?: boolean\n\n /**\n * The element used as the collision boundary. By default this is the\n * viewport, though you can provide additional element(s) to be included in\n * this check. Only available when position is set to popper.\n */\n collisionBoundary?: Boundary\n\n /**\n * The distance in pixels from the boundary edges where collision detection\n * should occur. Accepts a number (same for all sides), or a partial padding\n * object, for example: { top: 20, left: 20 }. Only available when position is\n * set to popper.\n */\n collisionPadding?: number | Partial<Record<Side, number>>\n\n /**\n * The sticky behavior on the align axis. \"partial\" will keep the content in the\n * boundary as long as the trigger is at least partially in the boundary whilst\n * \"always\" will keep the content in the boundary regardless. Only available\n * when position is set to popper.\n */\n sticky?: Sticky\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded. Only\n * available when position is set to popper.\n */\n hideWhenDetached?: boolean\n\n /**\n * The max height for the content.\n */\n maxHeight?: CSSProperties['maxHeight']\n\n /**\n * Setting overflow as \"visible\" means that the content can extend beyond the\n * its collision boundary without any clipping or scrolling being\n * applied.\n * When set to \"auto,\" a scrollbar is added if the content exceeds its\n * boundaries. If no maxHeight is defined, it will be automatically adjusted\n * to fit the remaining space between the trigger and the boundary edge.\n */\n overflow?: Overflow\n\n /**\n * Select's content.\n */\n children?: ReactNode\n}\n\nexport const Content = React.forwardRef<\n ElementRef<typeof StyledContent>,\n ContentProps\n>(\n (\n {\n side = 'bottom',\n sideOffset = CONTENT_OFFSET,\n align = 'center',\n alignOffset = 0,\n collisionPadding = 0,\n avoidCollisions = true,\n sticky = 'partial',\n hideWhenDetached = true,\n overflow = 'visible',\n maxHeight,\n children,\n ...restProps\n },\n forwardRef\n ) => {\n const getOverflowMaxHeight = useCallback((): CSS => {\n const overflowMaxHeigh = `calc(var(--radix-select-content-available-height))`\n\n return {\n maxHeight: maxHeight ?? overflowMaxHeigh,\n }\n }, [maxHeight])\n return (\n <StyledContent\n {...restProps}\n ref={forwardRef}\n position='popper'\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n avoidCollisions={avoidCollisions}\n collisionPadding={collisionPadding}\n sticky={sticky}\n hideWhenDetached={hideWhenDetached}\n >\n <RadixViewport>\n {overflow === 'auto' ? (\n <ScrollArea type='always'>\n <ScrollArea.Viewport css={getOverflowMaxHeight()}>\n {children}\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea>\n ) : (\n <>{children}</>\n )}\n </RadixViewport>\n </StyledContent>\n )\n }\n)\n","import { Label as RadixLabel } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledLabel = styled(RadixLabel, {\n color: '$text-neutrals-subtle',\n marginLeft: '$300',\n padding: '6px $50',\n})\n\nexport type StyledLabelProps = StrictComponentProps<typeof StyledLabel>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledLabel } from './label.styled'\nimport type { StyledLabelProps } from './label.styled'\n\nexport interface LabelProps extends StyledLabelProps {}\n\nexport const Label = React.forwardRef<\n ElementRef<typeof StyledLabel>,\n LabelProps\n>((props, forwardRef) => <StyledLabel {...props} ref={forwardRef} />)\n","import { Separator as RadixSeparator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledSeparator = styled(RadixSeparator, {\n backgroundColor: '$border-neutrals-subtle',\n height: '1px',\n width: '100%',\n margin: '5.5px 0',\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSeparator } from './separator.styled'\nimport type { StyledSeparatorProps } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import React, { useState } from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport { StyledSelect } from './select.styled'\nimport type { StyledSelectProps } from './select.styled'\nimport { Group } from './partials/group'\nimport { Item } from './partials/item'\nimport { Portal } from './partials/portal'\nimport { Trigger } from './partials/trigger'\nimport { Value } from './partials/value'\nimport { Content } from './partials/content'\nimport { Label } from './partials/label'\nimport { Separator } from './partials/separator'\nimport { SelectProvider } from './hooks/use-select-context'\n\nexport interface SelectProps extends StyledSelectProps {\n /**\n * The value of the select when initially rendered. Use when you do not need\n * to control the state of the select.\n */\n defaultValue?: string\n\n /**\n * The controlled value of the select. Should be used in conjunction with\n * onValueChange.\n */\n value?: string\n\n /**\n * Event handler called when the value changes.\n */\n onValueChange?: (value: string) => void\n\n /**\n * The open state of the select when it is initially rendered. Use when you do\n * not need to control its open state.\n */\n defaultOpen?: boolean\n\n /**\n * The controlled open state of the select. Must be used in conjunction with\n * onOpenChange.\n */\n open?: boolean\n\n /**\n * Event handler called when the select opens.\n */\n onOpen?: () => void\n\n /**\n * Event handler called when the select closes.\n */\n onClose?: () => void\n\n /**\n * The reading direction of the select when applicable. If omitted, inherits\n * globally from DirectionProvider or assumes LTR (left-to-right) reading\n * mode.\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * The name of the select. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * When true, prevents the user from interacting with select.\n */\n disabled?: boolean\n\n /**\n * When true, prevents the user from opening with select, while allowing focus and hover.\n */\n 'aria-disabled'?: Booleanish\n\n /**\n * When true, indicates that the user must select a value before the owning\n * form can be submitted.\n */\n required?: boolean\n\n /**\n * When true, indicates that the select value contains an error which have to be fixed before the owning\n * form can be submitted.\n */\n invalid?: boolean\n}\n\nexport const Select = React.forwardRef<\n ElementRef<typeof StyledSelect>,\n SelectProps\n>(\n (\n {\n defaultOpen = false,\n direction = 'ltr',\n open,\n onOpen,\n onClose,\n invalid = false,\n 'aria-disabled': ariaDisabled,\n disabled,\n ...restProps\n },\n forwardRef\n ) => {\n const [openState, setOpenState] = useState(defaultOpen)\n return (\n <SelectProvider invalid={invalid} ariaDisabled={ariaDisabled}>\n <StyledSelect\n {...restProps}\n aria-disabled={ariaDisabled}\n disabled={disabled}\n dir={direction}\n open={open ?? openState}\n onOpenChange={newOpen => {\n if (open == null) {\n setOpenState(newOpen)\n }\n\n newOpen ? onOpen?.() : onClose?.()\n }}\n ref={forwardRef}\n />\n </SelectProvider>\n )\n }\n) as ForwardRefExoticComponent<SelectProps> & Partials\n\nexport interface Partials {\n Content: typeof Content\n Separator: typeof Separator\n Label: typeof Label\n Group: typeof Group\n Item: typeof Item\n Portal: typeof Portal\n Trigger: typeof Trigger\n Value: typeof Value\n}\n\nSelect.Group = Group\nSelect.Separator = Separator\nSelect.Content = Content\nSelect.Item = Item\nSelect.Portal = Portal\nSelect.Trigger = Trigger\nSelect.Value = Value\nSelect.Label = Label\n"],"names":["styled","RadixSelect","RadixGroup","React","jsx","RadixItem","focus","RadixItemIndicator","jsxs","booleanify","IconCheckMark","RadixItemText","RadixPortal","RadixSelectIcon","RadixTrigger","createContext","useContext","IconChevronDown","RadixValue","RadixContent","theme","useCallback","RadixViewport","ScrollArea","Fragment","RadixLabel","RadixSeparator","useState"],"mappings":";;;;;;;;;;;;;;;;;AAIa,MAAA,YAAA,GAAeA,4BAAOC,gBAAW,CAAA;;ACAvC,MAAM,WAAc,GAAAD,2BAAA,CAAOE,iBAAY,EAAA,EAAE,CAAA;;ACIzC,MAAM,KAAQ,GAAAC,yBAAA,CAAM,UAGzB,CAAA,CAAC,KAAO,EAAA,UAAA,qBAAgBC,cAAA,CAAA,WAAA,EAAA,EAAa,GAAG,KAAA,EAAO,GAAK,EAAA,UAAA,EAAY,CAAE,CAAA;;ACNvD,MAAA,UAAA,GAAaJ,4BAAOK,gBAAW,EAAA;AAAA,EAC1C,GAAK,EAAA,OAAA;AAAA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A,IAAA,GAAA,SAAA;AAAA,QACd,cAAc,CAAW,OAAA,KAAA;AACvB,UAAA,IAAI,QAAQ,IAAM,EAAA;AAChB,YAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAAA,WACtB;AAEA,UAAA,OAAA,GAAU,MAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,EAAA,GAAA,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,EAAA,CAAA;AAAA,SACzB;AAAA,QACA,GAAK,EAAA,UAAA;AAAA,OAAA;AAAA,KAET,EAAA,CAAA,CAAA;AAAA,GAEJ;AACF,EAAA;AAaA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,SAAY,GAAA,SAAA,CAAA;AACnB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,IAAO,GAAA,IAAA,CAAA;AACd,MAAA,CAAO,MAAS,GAAA,MAAA,CAAA;AAChB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,KAAQ,GAAA,KAAA;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/select.styled.tsx","../src/partials/group.styled.tsx","../src/partials/group.tsx","../src/partials/item.styled.tsx","../src/partials/item-text.styled.tsx","../src/partials/item-indicator.styled.tsx","../src/partials/item.tsx","../src/partials/portal.styled.tsx","../src/partials/portal.tsx","../src/partials/select-icon.styled.tsx","../src/partials/trigger.styled.tsx","../src/hooks/use-select-context.tsx","../src/partials/trigger.tsx","../src/partials/value.styled.tsx","../src/partials/value.tsx","../src/partials/content.styled.tsx","../src/partials/content.tsx","../src/partials/label.styled.tsx","../src/partials/label.tsx","../src/partials/separator.styled.tsx","../src/partials/separator.tsx","../src/select.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root as RadixSelect } from '@radix-ui/react-select'\n\nexport const StyledSelect = styled(RadixSelect)\n\nexport type StyledSelectProps = ComponentPropsWithRef<typeof StyledSelect>\n","import { Group as RadixGroup } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledGroup = styled(RadixGroup, {})\n\nexport type StyledGroupProps = StrictComponentProps<typeof StyledGroup>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledGroup } from './group.styled'\nimport type { StyledGroupProps } from './group.styled'\n\nexport interface GroupProps extends StyledGroupProps {}\n\nexport const Group = React.forwardRef<\n ElementRef<typeof StyledGroup>,\n GroupProps\n>((props, forwardRef) => <StyledGroup {...props} ref={forwardRef} />)\n","import { Item as RadixItem } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItem = styled(RadixItem, {\n all: 'unset',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n cursor: 'pointer',\n display: 'grid',\n fontSize: '$175',\n gridTemplateAreas: 'leftSlot textItem',\n gridTemplateColumns: '20px 1fr',\n lineHeight: '20px',\n position: 'relative',\n userSelect: 'none',\n padding: '6px 0',\n paddingInline: '$150 $100',\n\n ...focus.css({\n boxShadow: '$focus-small',\n outline: '1px solid transparent',\n }),\n\n '&[aria-selected=true]': {\n color: '$text-primary-selected',\n },\n\n '&:active:not([aria-disabled=true])': {\n background: '$background-primary-subtle-active',\n boxShadow: 'none',\n color: '$text-primary-active',\n },\n\n '&:disabled, &[aria-disabled=true], &[data-disabled]': {\n cursor: 'default',\n color: '$text-neutrals-disabled',\n },\n\n '&:disabled, &[data-disabled]': {\n pointerEvents: 'none',\n },\n\n '&:hover:not([aria-disabled=true])': {\n background: '$background-primary-subtle-hover',\n color: '$text-primary-hover',\n '&:not([aria-disabled=true])': {\n boxShadow: 'none',\n },\n },\n\n '&[data-state=\"checked\"]': {\n color: '$text-primary-selected',\n },\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemText = styled('span', {\n display: 'flex',\n gridColumn: 2,\n width: '100%',\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItemText>\n","import { ItemIndicator as RadixItemIndicator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemIndicator = styled(RadixItemIndicator, {})\n\nexport type StyledItemIndicatorProps = StrictComponentProps<\n typeof StyledItemIndicator\n>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { IconCheckMark } from '@mirohq/design-system-icons'\nimport { ItemText as RadixItemText } from '@radix-ui/react-select'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\nimport { StyledItemText } from './item-text.styled'\nimport { StyledItemIndicator } from './item-indicator.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * The value given as data when submitted with a name.\n */\n value: string\n\n /**\n * When true, prevents the user from interacting with the item.\n */\n disabled?: boolean\n\n /**\n * Optional text used for typeahead purposes. By default the typeahead\n * behavior will use the Select's item text. Use this when the content is\n * complex, or you have non-textual content inside.\n */\n textValue?: string\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n textValue,\n 'aria-disabled': ariaDisabled,\n onKeyDown,\n onPointerUp,\n onPointerMove,\n onPointerLeave,\n children,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledItem\n {...restProps}\n aria-disabled={booleanify(ariaDisabled) ? ariaDisabled : undefined}\n onKeyDown={e => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown' &&\n e.code !== 'Escape'\n ) {\n e.preventDefault()\n e.stopPropagation()\n return\n }\n\n onKeyDown?.(e)\n }}\n onPointerUp={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerUp?.(e)\n }}\n onPointerMove={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerMove?.(e)\n }}\n onPointerLeave={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerLeave?.(e)\n }}\n textValue={textValue}\n disabled={disabled}\n ref={forwardRef}\n >\n <StyledItemIndicator>\n <IconCheckMark size='small' />\n </StyledItemIndicator>\n <RadixItemText asChild>\n <StyledItemText>{children}</StyledItemText>\n </RadixItemText>\n </StyledItem>\n )\n)\n","import { Portal as RadixPortal } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledPortal = styled(RadixPortal, {})\n\nexport type StyledPortalProps = StrictComponentProps<typeof StyledPortal>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledPortal } from './portal.styled'\nimport type { StyledPortalProps } from './portal.styled'\n\nexport interface PortalProps extends StyledPortalProps {\n /**\n * Specify a container element to portal the content into.\n */\n container?: HTMLElement | null\n}\n\nexport const Portal = React.forwardRef<\n ElementRef<typeof StyledPortal>,\n PortalProps\n>((props, forwardRef) => <StyledPortal {...props} ref={forwardRef} />)\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { SelectIcon as RadixSelectIcon } from '@radix-ui/react-select'\n\nexport const StyledSelectIcon = styled(RadixSelectIcon, { flexShrink: 0 })\n\nexport type StyledSelectIconProps = StrictComponentProps<\n typeof StyledSelectIcon\n>\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\n\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport const StyledTrigger = styled(RadixTrigger, {\n all: 'unset',\n backgroundColor: '$background-neutrals-container',\n border: '1px solid $border-neutrals',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n display: 'flex',\n minWidth: 0,\n fontSize: '$200',\n lineHeight: 1.5,\n position: 'relative',\n userSelect: 'none',\n width: '100%',\n justifyContent: 'space-between',\n alignItems: 'center',\n\n svg: {\n color: '$icon-neutrals-text',\n },\n\n '&[data-placeholder]': {\n color: '$text-neutrals-subtle',\n },\n\n '&[data-invalid]': {\n borderColor: '$border-danger',\n\n ...focus.css({\n boxShadow: '$focus-controls-error',\n }),\n },\n\n '&:hover': {\n borderColor: '$border-primary-hover',\n },\n\n '&:active, &[data-state=\"open\"]': {\n borderColor: '$border-primary-active',\n },\n\n ...focus.css({\n boxShadow: '$focus-controls',\n outline: '1px solid transparent',\n }),\n\n '&[disabled], &[aria-disabled=\"true\"]': {\n backgroundColor: '$background-neutrals-disabled',\n borderColor: '$border-neutrals-disabled',\n color: '$text-neutrals-disabled',\n\n svg: {\n color: '$icon-neutrals-disabled',\n },\n },\n\n '&[data-state=\"open\"]': {\n [`& ${StyledSelectIcon}`]: {\n transform: 'rotate(180deg)',\n },\n },\n\n variants: {\n size: {\n medium: {\n height: '$10',\n paddingX: '$100',\n gap: '$50',\n },\n large: {\n height: '$12',\n paddingX: '$150',\n gap: '$100',\n },\n },\n },\n})\n\nexport type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>\n","import { createContext, useContext } from 'react'\nimport type { PropsWithChildren } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport type { Direction } from '../types'\n\ninterface SelectValues {\n invalid: boolean\n ariaDisabled?: Booleanish\n direction?: Direction\n}\n\ninterface SelectContextProps {\n invalid: boolean\n ariaDisabled?: Booleanish\n direction?: Direction\n}\n\nconst SelectContext = createContext<SelectContextProps>({} as any)\n\nexport const SelectProvider = ({\n children,\n invalid,\n ariaDisabled,\n direction,\n}: PropsWithChildren<SelectValues>): any => (\n <SelectContext.Provider\n value={{\n invalid,\n ariaDisabled,\n direction,\n }}\n >\n {children}\n </SelectContext.Provider>\n)\n\nexport const useSelectContext = (): SelectContextProps =>\n useContext(SelectContext)\n","import React from 'react'\nimport type { ElementRef, PointerEvent } from 'react'\nimport { IconChevronDown } from '@mirohq/design-system-icons'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\n\nimport { StyledTrigger } from './trigger.styled'\nimport type { StyledTriggerProps } from './trigger.styled'\nimport { useSelectContext } from '../hooks/use-select-context'\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport interface TriggerProps extends StyledTriggerProps {\n /**\n * The content.\n */\n children: React.ReactNode\n}\n\nexport const Trigger = React.forwardRef<\n ElementRef<typeof StyledTrigger>,\n TriggerProps\n>(\n (\n {\n onKeyDown,\n onPointerDown,\n children,\n size = 'medium',\n asChild = false,\n ...restProps\n },\n forwardRef\n ) => {\n const { invalid, ariaDisabled } = useSelectContext()\n\n const commonProps = {\n ...restProps,\n ref: forwardRef,\n 'aria-disabled': ariaDisabled,\n onPointerDown: (e: PointerEvent<HTMLButtonElement>) => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onPointerDown?.(e)\n }\n },\n onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'Tab' &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown'\n ) {\n e.preventDefault()\n } else {\n onKeyDown?.(e)\n }\n },\n 'data-invalid': invalid ? '' : undefined,\n }\n\n if (asChild) {\n return (\n <RadixTrigger {...commonProps} asChild>\n {children}\n </RadixTrigger>\n )\n }\n\n return (\n <StyledTrigger {...commonProps} size={size}>\n {children}\n <StyledSelectIcon asChild>\n <IconChevronDown size='small' weight='thin' />\n </StyledSelectIcon>\n </StyledTrigger>\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledValue = styled('span', {\n overflow: 'hidden',\n paddingX: '$50',\n\n '& span:first-child': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { Value as RadixValue } from '@radix-ui/react-select'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nimport { StyledValue } from './value.styled'\n\nexport type StyledValueProps = StrictComponentProps<typeof RadixValue>\n\nexport interface ValueProps extends StyledValueProps {\n /**\n * The content that will be rendered inside the Select.Value when no value or\n * defaultValue is set.\n */\n placeholder?: React.ReactNode\n\n /**\n * The controlled content that will be rendered inside the Select.Value.\n */\n children?: React.ReactNode\n}\n\nexport const Value = React.forwardRef<\n ElementRef<typeof StyledValue>,\n ValueProps\n>((props, forwardRef) => (\n <StyledValue>\n <RadixValue {...props} ref={forwardRef} />\n </StyledValue>\n))\n","import { Content as RadixContent } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const StyledScrollContainer = styled(Primitive.div, {\n boxSizing: 'border-box',\n paddingInline: '0 6px',\n margin: '-2px 0 0',\n marginInline: '-2px 2px',\n})\n\nexport const StyledContent = styled(RadixContent, {\n backgroundColor: '$background-neutrals-container',\n borderRadius: '$50',\n boxShadow: '$50',\n fontSize: '$175',\n fontWeight: 'normal',\n lineHeight: '20px',\n minWidth: 'var(--radix-select-trigger-width)',\n padding: '$50',\n zIndex: '$select',\n\n '& [data-radix-select-viewport]': {\n padding: `$100`,\n boxSizing: 'border-box',\n margin: '-6px',\n },\n})\n\nexport type StyledContentProps = StrictComponentProps<typeof StyledContent>\n","import React, { useCallback } from 'react'\nimport type { ElementRef, ReactNode } from 'react'\nimport { ScrollArea } from '@mirohq/design-system-scroll-area'\nimport type { CSS, CSSProperties } from '@stitches/react'\nimport { Viewport as RadixViewport } from '@radix-ui/react-select'\nimport { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledContent, StyledScrollContainer } from './content.styled'\nimport type { StyledContentProps } from './content.styled'\nimport type {\n Boundary,\n PointerDownOutsideEvent,\n Side,\n Align,\n Overflow,\n Sticky,\n} from '../types'\nimport { useSelectContext } from '../hooks/use-select-context'\n\nexport const CONTENT_OFFSET = parseInt(theme.space[50])\n\nexport interface ContentProps extends StyledContentProps {\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onCloseAutoFocus?: (event: Event) => void\n\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onEscapeKeyDown?: (event: KeyboardEvent) => void\n\n /**\n * Event handler called when a pointer event occurs outside the bounds of the\n * component. It can be prevented by calling event.preventDefault.\n */\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void\n\n /**\n * The preferred side of the anchor to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled. Only\n * available when position is set to popper.\n */\n side?: Side\n\n /**\n * The distance in pixels from the anchor. Only available when position is set\n * to popper.\n */\n sideOffset?: number\n\n /**\n * The preferred alignment against the anchor. May change when collisions\n * occur. Only available when position is set to popper.\n */\n align?: Align\n\n /**\n * An offset in pixels from the \"start\" or \"end\" alignment options. Only\n * available when position is set to popper.\n */\n alignOffset?: number\n\n /**\n * When true, overrides the side andalign preferences to prevent collisions\n * with boundary edges. Only available when position is set to popper.\n */\n avoidCollisions?: boolean\n\n /**\n * The element used as the collision boundary. By default this is the\n * viewport, though you can provide additional element(s) to be included in\n * this check. Only available when position is set to popper.\n */\n collisionBoundary?: Boundary\n\n /**\n * The distance in pixels from the boundary edges where collision detection\n * should occur. Accepts a number (same for all sides), or a partial padding\n * object, for example: { top: 20, left: 20 }. Only available when position is\n * set to popper.\n */\n collisionPadding?: number | Partial<Record<Side, number>>\n\n /**\n * The sticky behavior on the align axis. \"partial\" will keep the content in the\n * boundary as long as the trigger is at least partially in the boundary whilst\n * \"always\" will keep the content in the boundary regardless. Only available\n * when position is set to popper.\n */\n sticky?: Sticky\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded. Only\n * available when position is set to popper.\n */\n hideWhenDetached?: boolean\n\n /**\n * The max height for the content.\n */\n maxHeight?: CSSProperties['maxHeight']\n\n /**\n * Setting overflow as \"visible\" means that the content can extend beyond the\n * its collision boundary without any clipping or scrolling being\n * applied.\n * When set to \"auto,\" a scrollbar is added if the content exceeds its\n * boundaries. If no maxHeight is defined, it will be automatically adjusted\n * to fit the remaining space between the trigger and the boundary edge.\n */\n overflow?: Overflow\n\n /**\n * Select's content.\n */\n children?: ReactNode\n}\n\nexport const Content = React.forwardRef<\n ElementRef<typeof StyledContent>,\n ContentProps\n>(\n (\n {\n side = 'bottom',\n sideOffset = CONTENT_OFFSET,\n align = 'center',\n alignOffset = 0,\n collisionPadding = 0,\n avoidCollisions = true,\n sticky = 'partial',\n hideWhenDetached = true,\n overflow = 'visible',\n maxHeight,\n children,\n ...restProps\n },\n forwardRef\n ) => {\n const { direction } = useSelectContext()\n const getOverflowMaxHeight = useCallback((): CSS => {\n const overflowMaxHeigh = `calc(var(--radix-select-content-available-height))`\n\n return {\n maxHeight: maxHeight ?? overflowMaxHeigh,\n }\n }, [maxHeight])\n return (\n <StyledContent\n {...restProps}\n ref={forwardRef}\n position='popper'\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n avoidCollisions={avoidCollisions}\n collisionPadding={collisionPadding}\n sticky={sticky}\n hideWhenDetached={hideWhenDetached}\n >\n <RadixViewport>\n {overflow === 'auto' ? (\n <ScrollArea dir={direction} type='always'>\n <ScrollArea.Viewport css={getOverflowMaxHeight()}>\n <StyledScrollContainer>{children}</StyledScrollContainer>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea>\n ) : (\n <>{children}</>\n )}\n </RadixViewport>\n </StyledContent>\n )\n }\n)\n","import { Label as RadixLabel } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledLabel = styled(RadixLabel, {\n color: '$text-neutrals-subtle',\n margin: '0 $400',\n padding: '6px 0',\n})\n\nexport type StyledLabelProps = StrictComponentProps<typeof StyledLabel>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledLabel } from './label.styled'\nimport type { StyledLabelProps } from './label.styled'\n\nexport interface LabelProps extends StyledLabelProps {}\n\nexport const Label = React.forwardRef<\n ElementRef<typeof StyledLabel>,\n LabelProps\n>((props, forwardRef) => <StyledLabel {...props} ref={forwardRef} />)\n","import { Separator as RadixSeparator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledSeparator = styled(RadixSeparator, {\n backgroundColor: '$border-neutrals-subtle',\n height: '1px',\n width: '100%',\n margin: '5.5px 0',\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSeparator } from './separator.styled'\nimport type { StyledSeparatorProps } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import React, { useState } from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport { StyledSelect } from './select.styled'\nimport { Group } from './partials/group'\nimport { Item } from './partials/item'\nimport { Portal } from './partials/portal'\nimport { Trigger } from './partials/trigger'\nimport { Value } from './partials/value'\nimport { Content } from './partials/content'\nimport { Label } from './partials/label'\nimport { Separator } from './partials/separator'\nimport { SelectProvider } from './hooks/use-select-context'\nimport type { Direction } from './types'\nimport type { StyledSelectProps } from './select.styled'\n\nexport interface SelectProps\n extends Omit<StyledSelectProps, 'onOpenChange' | 'dir'> {\n /**\n * The value of the select when initially rendered. Use when you do not need\n * to control the state of the select.\n */\n defaultValue?: string\n\n /**\n * The controlled value of the select. Should be used in conjunction with\n * onValueChange.\n */\n value?: string\n\n /**\n * Event handler called when the value changes.\n */\n onValueChange?: (value: string) => void\n\n /**\n * The open state of the select when it is initially rendered. Use when you do\n * not need to control its open state.\n */\n defaultOpen?: boolean\n\n /**\n * The controlled open state of the select. Must be used in conjunction with\n * onOpen and onClose.\n */\n open?: boolean\n\n /**\n * Event handler called when the select opens.\n */\n onOpen?: () => void\n\n /**\n * Event handler called when the select closes.\n */\n onClose?: () => void\n\n /**\n * The reading direction of the select when applicable. If omitted, inherits\n * globally from DirectionProvider or assumes LTR (left-to-right) reading\n * mode.\n */\n direction?: Direction\n\n /**\n * The name of the select. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * When true, prevents the user from interacting with select.\n */\n disabled?: boolean\n\n /**\n * When true, prevents the user from opening with select, while allowing focus and hover.\n */\n 'aria-disabled'?: Booleanish\n\n /**\n * When true, indicates that the user must select a value before the owning\n * form can be submitted.\n */\n required?: boolean\n\n /**\n * When true, indicates that the select value contains an error which have to be fixed before the owning\n * form can be submitted.\n */\n invalid?: boolean\n}\n\nexport const Select = React.forwardRef<\n ElementRef<typeof StyledSelect>,\n SelectProps\n>(\n (\n {\n defaultOpen = false,\n direction = 'ltr',\n open,\n onOpen,\n onClose,\n invalid = false,\n 'aria-disabled': ariaDisabled,\n disabled,\n ...restProps\n },\n forwardRef\n ) => {\n const [openState, setOpenState] = useState(defaultOpen)\n return (\n <SelectProvider\n direction={direction}\n invalid={invalid}\n ariaDisabled={ariaDisabled}\n >\n <StyledSelect\n {...restProps}\n aria-disabled={ariaDisabled}\n disabled={disabled}\n dir={direction}\n open={open ?? openState}\n onOpenChange={newOpen => {\n if (open == null) {\n setOpenState(newOpen)\n }\n\n newOpen ? onOpen?.() : onClose?.()\n }}\n ref={forwardRef}\n />\n </SelectProvider>\n )\n }\n) as ForwardRefExoticComponent<SelectProps> & Partials\n\nexport interface Partials {\n Content: typeof Content\n Separator: typeof Separator\n Label: typeof Label\n Group: typeof Group\n Item: typeof Item\n Portal: typeof Portal\n Trigger: typeof Trigger\n Value: typeof Value\n}\n\nSelect.Group = Group\nSelect.Separator = Separator\nSelect.Content = Content\nSelect.Item = Item\nSelect.Portal = Portal\nSelect.Trigger = Trigger\nSelect.Value = Value\nSelect.Label = Label\n"],"names":["styled","RadixSelect","RadixGroup","React","jsx","RadixItem","focus","RadixItemIndicator","jsxs","booleanify","IconCheckMark","RadixItemText","RadixPortal","RadixSelectIcon","RadixTrigger","createContext","useContext","IconChevronDown","RadixValue","Primitive","RadixContent","theme","useCallback","RadixViewport","ScrollArea","Fragment","RadixLabel","RadixSeparator","useState"],"mappings":";;;;;;;;;;;;;;;;;;AAIa,MAAA,YAAA,GAAeA,4BAAOC,gBAAW,CAAA;;ACAvC,MAAM,WAAc,GAAAD,2BAAA,CAAOE,iBAAY,EAAA,EAAE,CAAA;;ACIzC,MAAM,KAAQ,GAAAC,yBAAA,CAAM,UAGzB,CAAA,CAAC,KAAO,EAAA,UAAA,qBAAgBC,cAAA,CAAA,WAAA,EAAA,EAAa,GAAG,KAAA,EAAO,GAAK,EAAA,UAAA,EAAY,CAAE,CAAA;;ACNvD,MAAA,UAAA,GAAaJ,4BAAOK,gBAAW,EAAA;AAAA,EAC1C,GAAK,EAAA,OAAA;AAAA,EACL,YAAc,EAAA,KAAA;AAAA,EACd,SAAW,EAAA,YAAA;AAAA,EACX,KAAO,EAAA,gBAAA;AAAA,EACP,MAAQ,EAAA,SAAA;AAAA,EACR,OAAS,EAAA,MAAA;AAAA,EACT,QAAU,EAAA,MAAA;AAAA,EACV,iBAAmB,E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,MAAC,cAAA;AAAA,MAAA;AAAA,QACC,SAAA;AAAA,QACA,OAAA;AAAA,QACA,YAAA;AAAA,QAEA,QAAA,kBAAAA,cAAA;AAAA,UAAC,YAAA;AAAA,UAAA;AAAA,YACE,GAAG,SAAA;AAAA,YACJ,eAAe,EAAA,YAAA;AAAA,YACf,QAAA;AAAA,YACA,GAAK,EAAA,SAAA;AAAA,YACL,MAAM,IAAQ,IAAA,IAAA,GAAA,IAAA,GAAA,SAAA;AAAA,YACd,cAAc,CAAW,OAAA,KAAA;AACvB,cAAA,IAAI,QAAQ,IAAM,EAAA;AAChB,gBAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAAA,eACtB;AAEA,cAAA,OAAA,GAAU,MAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,EAAA,GAAA,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,EAAA,CAAA;AAAA,aACzB;AAAA,YACA,GAAK,EAAA,UAAA;AAAA,WAAA;AAAA,SACP;AAAA,OAAA;AAAA,KACF,CAAA;AAAA,GAEJ;AACF,EAAA;AAaA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,SAAY,GAAA,SAAA,CAAA;AACnB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,IAAO,GAAA,IAAA,CAAA;AACd,MAAA,CAAO,MAAS,GAAA,MAAA,CAAA;AAChB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,KAAQ,GAAA,KAAA;;;;;;;;;"}
|
package/dist/module.js
CHANGED
|
@@ -6,6 +6,7 @@ import { IconCheckMark, IconChevronDown } from '@mirohq/design-system-icons';
|
|
|
6
6
|
import { booleanify } from '@mirohq/design-system-utils';
|
|
7
7
|
import { focus } from '@mirohq/design-system-styles';
|
|
8
8
|
import { ScrollArea } from '@mirohq/design-system-scroll-area';
|
|
9
|
+
import { Primitive } from '@mirohq/design-system-primitive';
|
|
9
10
|
|
|
10
11
|
const StyledSelect = styled(Root);
|
|
11
12
|
|
|
@@ -24,9 +25,10 @@ const StyledItem = styled(Item$1, {
|
|
|
24
25
|
gridTemplateAreas: "leftSlot textItem",
|
|
25
26
|
gridTemplateColumns: "20px 1fr",
|
|
26
27
|
lineHeight: "20px",
|
|
27
|
-
padding: "6px $150 6px $100",
|
|
28
28
|
position: "relative",
|
|
29
29
|
userSelect: "none",
|
|
30
|
+
padding: "6px 0",
|
|
31
|
+
paddingInline: "$150 $100",
|
|
30
32
|
...focus.css({
|
|
31
33
|
boxShadow: "$focus-small",
|
|
32
34
|
outline: "1px solid transparent"
|
|
@@ -139,10 +141,9 @@ const StyledTrigger = styled(Trigger$1, {
|
|
|
139
141
|
minWidth: 0,
|
|
140
142
|
fontSize: "$200",
|
|
141
143
|
lineHeight: 1.5,
|
|
142
|
-
maxWidth: "$100",
|
|
143
144
|
position: "relative",
|
|
144
145
|
userSelect: "none",
|
|
145
|
-
width: "
|
|
146
|
+
width: "100%",
|
|
146
147
|
justifyContent: "space-between",
|
|
147
148
|
alignItems: "center",
|
|
148
149
|
svg: {
|
|
@@ -200,13 +201,15 @@ const SelectContext = createContext({});
|
|
|
200
201
|
const SelectProvider = ({
|
|
201
202
|
children,
|
|
202
203
|
invalid,
|
|
203
|
-
ariaDisabled
|
|
204
|
+
ariaDisabled,
|
|
205
|
+
direction
|
|
204
206
|
}) => /* @__PURE__ */ jsx(
|
|
205
207
|
SelectContext.Provider,
|
|
206
208
|
{
|
|
207
209
|
value: {
|
|
208
210
|
invalid,
|
|
209
|
-
ariaDisabled
|
|
211
|
+
ariaDisabled,
|
|
212
|
+
direction
|
|
210
213
|
},
|
|
211
214
|
children
|
|
212
215
|
}
|
|
@@ -266,6 +269,12 @@ const StyledValue = styled("span", {
|
|
|
266
269
|
|
|
267
270
|
const Value = React.forwardRef((props, forwardRef) => /* @__PURE__ */ jsx(StyledValue, { children: /* @__PURE__ */ jsx(Value$1, { ...props, ref: forwardRef }) }));
|
|
268
271
|
|
|
272
|
+
const StyledScrollContainer = styled(Primitive.div, {
|
|
273
|
+
boxSizing: "border-box",
|
|
274
|
+
paddingInline: "0 6px",
|
|
275
|
+
margin: "-2px 0 0",
|
|
276
|
+
marginInline: "-2px 2px"
|
|
277
|
+
});
|
|
269
278
|
const StyledContent = styled(Content$1, {
|
|
270
279
|
backgroundColor: "$background-neutrals-container",
|
|
271
280
|
borderRadius: "$50",
|
|
@@ -276,9 +285,10 @@ const StyledContent = styled(Content$1, {
|
|
|
276
285
|
minWidth: "var(--radix-select-trigger-width)",
|
|
277
286
|
padding: "$50",
|
|
278
287
|
zIndex: "$select",
|
|
279
|
-
"& [data-radix-
|
|
280
|
-
padding: "
|
|
281
|
-
boxSizing: "border-box"
|
|
288
|
+
"& [data-radix-select-viewport]": {
|
|
289
|
+
padding: "$100",
|
|
290
|
+
boxSizing: "border-box",
|
|
291
|
+
margin: "-6px"
|
|
282
292
|
}
|
|
283
293
|
});
|
|
284
294
|
|
|
@@ -298,6 +308,7 @@ const Content = React.forwardRef(
|
|
|
298
308
|
children,
|
|
299
309
|
...restProps
|
|
300
310
|
}, forwardRef) => {
|
|
311
|
+
const { direction } = useSelectContext();
|
|
301
312
|
const getOverflowMaxHeight = useCallback(() => {
|
|
302
313
|
const overflowMaxHeigh = "calc(var(--radix-select-content-available-height))";
|
|
303
314
|
return {
|
|
@@ -318,8 +329,8 @@ const Content = React.forwardRef(
|
|
|
318
329
|
collisionPadding,
|
|
319
330
|
sticky,
|
|
320
331
|
hideWhenDetached,
|
|
321
|
-
children: /* @__PURE__ */ jsx(Viewport, { children: overflow === "auto" ? /* @__PURE__ */ jsxs(ScrollArea, { type: "always", children: [
|
|
322
|
-
/* @__PURE__ */ jsx(ScrollArea.Viewport, { css: getOverflowMaxHeight(), children }),
|
|
332
|
+
children: /* @__PURE__ */ jsx(Viewport, { children: overflow === "auto" ? /* @__PURE__ */ jsxs(ScrollArea, { dir: direction, type: "always", children: [
|
|
333
|
+
/* @__PURE__ */ jsx(ScrollArea.Viewport, { css: getOverflowMaxHeight(), children: /* @__PURE__ */ jsx(StyledScrollContainer, { children }) }),
|
|
323
334
|
/* @__PURE__ */ jsx(ScrollArea.Scrollbar, { orientation: "vertical", children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {}) })
|
|
324
335
|
] }) : /* @__PURE__ */ jsx(Fragment, { children }) })
|
|
325
336
|
}
|
|
@@ -329,8 +340,8 @@ const Content = React.forwardRef(
|
|
|
329
340
|
|
|
330
341
|
const StyledLabel = styled(Label$1, {
|
|
331
342
|
color: "$text-neutrals-subtle",
|
|
332
|
-
|
|
333
|
-
padding: "6px
|
|
343
|
+
margin: "0 $400",
|
|
344
|
+
padding: "6px 0"
|
|
334
345
|
});
|
|
335
346
|
|
|
336
347
|
const Label = React.forwardRef((props, forwardRef) => /* @__PURE__ */ jsx(StyledLabel, { ...props, ref: forwardRef }));
|
|
@@ -357,23 +368,31 @@ const Select = React.forwardRef(
|
|
|
357
368
|
...restProps
|
|
358
369
|
}, forwardRef) => {
|
|
359
370
|
const [openState, setOpenState] = useState(defaultOpen);
|
|
360
|
-
return /* @__PURE__ */ jsx(
|
|
361
|
-
|
|
371
|
+
return /* @__PURE__ */ jsx(
|
|
372
|
+
SelectProvider,
|
|
362
373
|
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
374
|
+
direction,
|
|
375
|
+
invalid,
|
|
376
|
+
ariaDisabled,
|
|
377
|
+
children: /* @__PURE__ */ jsx(
|
|
378
|
+
StyledSelect,
|
|
379
|
+
{
|
|
380
|
+
...restProps,
|
|
381
|
+
"aria-disabled": ariaDisabled,
|
|
382
|
+
disabled,
|
|
383
|
+
dir: direction,
|
|
384
|
+
open: open != null ? open : openState,
|
|
385
|
+
onOpenChange: (newOpen) => {
|
|
386
|
+
if (open == null) {
|
|
387
|
+
setOpenState(newOpen);
|
|
388
|
+
}
|
|
389
|
+
newOpen ? onOpen == null ? void 0 : onOpen() : onClose == null ? void 0 : onClose();
|
|
390
|
+
},
|
|
391
|
+
ref: forwardRef
|
|
371
392
|
}
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
ref: forwardRef
|
|
393
|
+
)
|
|
375
394
|
}
|
|
376
|
-
)
|
|
395
|
+
);
|
|
377
396
|
}
|
|
378
397
|
);
|
|
379
398
|
Select.Group = Group;
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/select.styled.tsx","../src/partials/group.styled.tsx","../src/partials/group.tsx","../src/partials/item.styled.tsx","../src/partials/item-text.styled.tsx","../src/partials/item-indicator.styled.tsx","../src/partials/item.tsx","../src/partials/portal.styled.tsx","../src/partials/portal.tsx","../src/partials/select-icon.styled.tsx","../src/partials/trigger.styled.tsx","../src/hooks/use-select-context.tsx","../src/partials/trigger.tsx","../src/partials/value.styled.tsx","../src/partials/value.tsx","../src/partials/content.styled.tsx","../src/partials/content.tsx","../src/partials/label.styled.tsx","../src/partials/label.tsx","../src/partials/separator.styled.tsx","../src/partials/separator.tsx","../src/select.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root as RadixSelect } from '@radix-ui/react-select'\n\nexport const StyledSelect = styled(RadixSelect)\n\nexport type StyledSelectProps = ComponentPropsWithRef<typeof StyledSelect>\n","import { Group as RadixGroup } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledGroup = styled(RadixGroup, {})\n\nexport type StyledGroupProps = StrictComponentProps<typeof StyledGroup>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledGroup } from './group.styled'\nimport type { StyledGroupProps } from './group.styled'\n\nexport interface GroupProps extends StyledGroupProps {}\n\nexport const Group = React.forwardRef<\n ElementRef<typeof StyledGroup>,\n GroupProps\n>((props, forwardRef) => <StyledGroup {...props} ref={forwardRef} />)\n","import { Item as RadixItem } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItem = styled(RadixItem, {\n all: 'unset',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n cursor: 'pointer',\n display: 'grid',\n fontSize: '$175',\n gridTemplateAreas: 'leftSlot textItem',\n gridTemplateColumns: '20px 1fr',\n lineHeight: '20px',\n padding: '6px $150 6px $100',\n position: 'relative',\n userSelect: 'none',\n\n ...focus.css({\n boxShadow: '$focus-small',\n outline: '1px solid transparent',\n }),\n\n '&[aria-selected=true]': {\n color: '$text-primary-selected',\n },\n\n '&:active:not([aria-disabled=true])': {\n background: '$background-primary-subtle-active',\n boxShadow: 'none',\n color: '$text-primary-active',\n },\n\n '&:disabled, &[aria-disabled=true], &[data-disabled]': {\n cursor: 'default',\n color: '$text-neutrals-disabled',\n },\n\n '&:disabled, &[data-disabled]': {\n pointerEvents: 'none',\n },\n\n '&:hover:not([aria-disabled=true])': {\n background: '$background-primary-subtle-hover',\n color: '$text-primary-hover',\n '&:not([aria-disabled=true])': {\n boxShadow: 'none',\n },\n },\n\n '&[data-state=\"checked\"]': {\n color: '$text-primary-selected',\n },\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemText = styled('span', {\n display: 'flex',\n gridColumn: 2,\n width: '100%',\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItemText>\n","import { ItemIndicator as RadixItemIndicator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemIndicator = styled(RadixItemIndicator, {})\n\nexport type StyledItemIndicatorProps = StrictComponentProps<\n typeof StyledItemIndicator\n>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { IconCheckMark } from '@mirohq/design-system-icons'\nimport { ItemText as RadixItemText } from '@radix-ui/react-select'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\nimport { StyledItemText } from './item-text.styled'\nimport { StyledItemIndicator } from './item-indicator.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * The value given as data when submitted with a name.\n */\n value: string\n\n /**\n * When true, prevents the user from interacting with the item.\n */\n disabled?: boolean\n\n /**\n * Optional text used for typeahead purposes. By default the typeahead\n * behavior will use the Select's item text. Use this when the content is\n * complex, or you have non-textual content inside.\n */\n textValue?: string\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n textValue,\n 'aria-disabled': ariaDisabled,\n onKeyDown,\n onPointerUp,\n onPointerMove,\n onPointerLeave,\n children,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledItem\n {...restProps}\n aria-disabled={booleanify(ariaDisabled) ? ariaDisabled : undefined}\n onKeyDown={e => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown' &&\n e.code !== 'Escape'\n ) {\n e.preventDefault()\n e.stopPropagation()\n return\n }\n\n onKeyDown?.(e)\n }}\n onPointerUp={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerUp?.(e)\n }}\n onPointerMove={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerMove?.(e)\n }}\n onPointerLeave={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerLeave?.(e)\n }}\n textValue={textValue}\n disabled={disabled}\n ref={forwardRef}\n >\n <StyledItemIndicator>\n <IconCheckMark size='small' />\n </StyledItemIndicator>\n <RadixItemText asChild>\n <StyledItemText>{children}</StyledItemText>\n </RadixItemText>\n </StyledItem>\n )\n)\n","import { Portal as RadixPortal } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledPortal = styled(RadixPortal, {})\n\nexport type StyledPortalProps = StrictComponentProps<typeof StyledPortal>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledPortal } from './portal.styled'\nimport type { StyledPortalProps } from './portal.styled'\n\nexport interface PortalProps extends StyledPortalProps {\n /**\n * Specify a container element to portal the content into.\n */\n container?: HTMLElement | null\n}\n\nexport const Portal = React.forwardRef<\n ElementRef<typeof StyledPortal>,\n PortalProps\n>((props, forwardRef) => <StyledPortal {...props} ref={forwardRef} />)\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { SelectIcon as RadixSelectIcon } from '@radix-ui/react-select'\n\nexport const StyledSelectIcon = styled(RadixSelectIcon, { flexShrink: 0 })\n\nexport type StyledSelectIconProps = StrictComponentProps<\n typeof StyledSelectIcon\n>\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\n\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport const StyledTrigger = styled(RadixTrigger, {\n all: 'unset',\n backgroundColor: '$background-neutrals-container',\n border: '1px solid $border-neutrals',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n display: 'flex',\n minWidth: 0,\n fontSize: '$200',\n lineHeight: 1.5,\n maxWidth: '$100',\n position: 'relative',\n userSelect: 'none',\n width: '$50',\n justifyContent: 'space-between',\n alignItems: 'center',\n\n svg: {\n color: '$icon-neutrals-text',\n },\n\n '&[data-placeholder]': {\n color: '$text-neutrals-subtle',\n },\n\n '&[data-invalid]': {\n borderColor: '$border-danger',\n\n ...focus.css({\n boxShadow: '$focus-controls-error',\n }),\n },\n\n '&:hover': {\n borderColor: '$border-primary-hover',\n },\n\n '&:active, &[data-state=\"open\"]': {\n borderColor: '$border-primary-active',\n },\n\n ...focus.css({\n boxShadow: '$focus-controls',\n outline: '1px solid transparent',\n }),\n\n '&[disabled], &[aria-disabled=\"true\"]': {\n backgroundColor: '$background-neutrals-disabled',\n borderColor: '$border-neutrals-disabled',\n color: '$text-neutrals-disabled',\n\n svg: {\n color: '$icon-neutrals-disabled',\n },\n },\n\n '&[data-state=\"open\"]': {\n [`& ${StyledSelectIcon}`]: {\n transform: 'rotate(180deg)',\n },\n },\n\n variants: {\n size: {\n medium: {\n height: '$10',\n paddingX: '$100',\n gap: '$50',\n },\n large: {\n height: '$12',\n paddingX: '$150',\n gap: '$100',\n },\n },\n },\n})\n\nexport type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>\n","import React, { createContext, useContext } from 'react'\nimport type { PropsWithChildren } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\ninterface SelectValues {\n invalid: boolean\n ariaDisabled?: Booleanish\n}\n\ninterface SelectContextProps {\n invalid: boolean\n ariaDisabled?: Booleanish\n}\n\nconst SelectContext = createContext<SelectContextProps>({} as any)\n\nexport const SelectProvider = ({\n children,\n invalid,\n ariaDisabled,\n}: PropsWithChildren<SelectValues>): any => (\n <SelectContext.Provider\n value={{\n invalid,\n ariaDisabled,\n }}\n >\n {children}\n </SelectContext.Provider>\n)\n\nexport const useSelectContext = (): SelectContextProps =>\n useContext(SelectContext)\n","import React from 'react'\nimport type { ElementRef, PointerEvent } from 'react'\nimport { IconChevronDown } from '@mirohq/design-system-icons'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\n\nimport { StyledTrigger } from './trigger.styled'\nimport type { StyledTriggerProps } from './trigger.styled'\nimport { useSelectContext } from '../hooks/use-select-context'\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport interface TriggerProps extends StyledTriggerProps {\n /**\n * The content.\n */\n children: React.ReactNode\n}\n\nexport const Trigger = React.forwardRef<\n ElementRef<typeof StyledTrigger>,\n TriggerProps\n>(\n (\n {\n onKeyDown,\n onPointerDown,\n children,\n size = 'medium',\n asChild = false,\n ...restProps\n },\n forwardRef\n ) => {\n const { invalid, ariaDisabled } = useSelectContext()\n\n const commonProps = {\n ...restProps,\n ref: forwardRef,\n 'aria-disabled': ariaDisabled,\n onPointerDown: (e: PointerEvent<HTMLButtonElement>) => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onPointerDown?.(e)\n }\n },\n onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'Tab' &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown'\n ) {\n e.preventDefault()\n } else {\n onKeyDown?.(e)\n }\n },\n 'data-invalid': invalid ? '' : undefined,\n }\n\n if (asChild) {\n return (\n <RadixTrigger {...commonProps} asChild>\n {children}\n </RadixTrigger>\n )\n }\n\n return (\n <StyledTrigger {...commonProps} size={size}>\n {children}\n <StyledSelectIcon asChild>\n <IconChevronDown size='small' weight='thin' />\n </StyledSelectIcon>\n </StyledTrigger>\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledValue = styled('span', {\n overflow: 'hidden',\n paddingX: '$50',\n\n '& span:first-child': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { Value as RadixValue } from '@radix-ui/react-select'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nimport { StyledValue } from './value.styled'\n\nexport type StyledValueProps = StrictComponentProps<typeof RadixValue>\n\nexport interface ValueProps extends StyledValueProps {\n /**\n * The content that will be rendered inside the Select.Value when no value or\n * defaultValue is set.\n */\n placeholder?: React.ReactNode\n\n /**\n * The controlled content that will be rendered inside the Select.Value.\n */\n children?: React.ReactNode\n}\n\nexport const Value = React.forwardRef<\n ElementRef<typeof StyledValue>,\n ValueProps\n>((props, forwardRef) => (\n <StyledValue>\n <RadixValue {...props} ref={forwardRef} />\n </StyledValue>\n))\n","import { Content as RadixContent } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledContent = styled(RadixContent, {\n backgroundColor: '$background-neutrals-container',\n borderRadius: '$50',\n boxShadow: '$50',\n fontSize: '$175',\n fontWeight: 'normal',\n lineHeight: '20px',\n minWidth: 'var(--radix-select-trigger-width)',\n padding: '$50',\n zIndex: '$select',\n\n '& [data-radix-scroll-area-viewport]': {\n padding: `2px $50 2px 2px`,\n boxSizing: 'border-box',\n },\n})\n\nexport type StyledContentProps = StrictComponentProps<typeof StyledContent>\n","import React, { useCallback } from 'react'\nimport type { ElementRef, ReactNode } from 'react'\nimport { ScrollArea } from '@mirohq/design-system-scroll-area'\nimport type { CSS, CSSProperties } from '@stitches/react'\nimport { Viewport as RadixViewport } from '@radix-ui/react-select'\nimport { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledContent } from './content.styled'\nimport type { StyledContentProps } from './content.styled'\nimport type {\n Boundary,\n PointerDownOutsideEvent,\n Side,\n Align,\n Overflow,\n Sticky,\n} from '../types'\n\nexport const CONTENT_OFFSET = parseInt(theme.space[50])\n\nexport interface ContentProps extends StyledContentProps {\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onCloseAutoFocus?: (event: Event) => void\n\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onEscapeKeyDown?: (event: KeyboardEvent) => void\n\n /**\n * Event handler called when a pointer event occurs outside the bounds of the\n * component. It can be prevented by calling event.preventDefault.\n */\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void\n\n /**\n * The preferred side of the anchor to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled. Only\n * available when position is set to popper.\n */\n side?: Side\n\n /**\n * The distance in pixels from the anchor. Only available when position is set\n * to popper.\n */\n sideOffset?: number\n\n /**\n * The preferred alignment against the anchor. May change when collisions\n * occur. Only available when position is set to popper.\n */\n align?: Align\n\n /**\n * An offset in pixels from the \"start\" or \"end\" alignment options. Only\n * available when position is set to popper.\n */\n alignOffset?: number\n\n /**\n * When true, overrides the side andalign preferences to prevent collisions\n * with boundary edges. Only available when position is set to popper.\n */\n avoidCollisions?: boolean\n\n /**\n * The element used as the collision boundary. By default this is the\n * viewport, though you can provide additional element(s) to be included in\n * this check. Only available when position is set to popper.\n */\n collisionBoundary?: Boundary\n\n /**\n * The distance in pixels from the boundary edges where collision detection\n * should occur. Accepts a number (same for all sides), or a partial padding\n * object, for example: { top: 20, left: 20 }. Only available when position is\n * set to popper.\n */\n collisionPadding?: number | Partial<Record<Side, number>>\n\n /**\n * The sticky behavior on the align axis. \"partial\" will keep the content in the\n * boundary as long as the trigger is at least partially in the boundary whilst\n * \"always\" will keep the content in the boundary regardless. Only available\n * when position is set to popper.\n */\n sticky?: Sticky\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded. Only\n * available when position is set to popper.\n */\n hideWhenDetached?: boolean\n\n /**\n * The max height for the content.\n */\n maxHeight?: CSSProperties['maxHeight']\n\n /**\n * Setting overflow as \"visible\" means that the content can extend beyond the\n * its collision boundary without any clipping or scrolling being\n * applied.\n * When set to \"auto,\" a scrollbar is added if the content exceeds its\n * boundaries. If no maxHeight is defined, it will be automatically adjusted\n * to fit the remaining space between the trigger and the boundary edge.\n */\n overflow?: Overflow\n\n /**\n * Select's content.\n */\n children?: ReactNode\n}\n\nexport const Content = React.forwardRef<\n ElementRef<typeof StyledContent>,\n ContentProps\n>(\n (\n {\n side = 'bottom',\n sideOffset = CONTENT_OFFSET,\n align = 'center',\n alignOffset = 0,\n collisionPadding = 0,\n avoidCollisions = true,\n sticky = 'partial',\n hideWhenDetached = true,\n overflow = 'visible',\n maxHeight,\n children,\n ...restProps\n },\n forwardRef\n ) => {\n const getOverflowMaxHeight = useCallback((): CSS => {\n const overflowMaxHeigh = `calc(var(--radix-select-content-available-height))`\n\n return {\n maxHeight: maxHeight ?? overflowMaxHeigh,\n }\n }, [maxHeight])\n return (\n <StyledContent\n {...restProps}\n ref={forwardRef}\n position='popper'\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n avoidCollisions={avoidCollisions}\n collisionPadding={collisionPadding}\n sticky={sticky}\n hideWhenDetached={hideWhenDetached}\n >\n <RadixViewport>\n {overflow === 'auto' ? (\n <ScrollArea type='always'>\n <ScrollArea.Viewport css={getOverflowMaxHeight()}>\n {children}\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea>\n ) : (\n <>{children}</>\n )}\n </RadixViewport>\n </StyledContent>\n )\n }\n)\n","import { Label as RadixLabel } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledLabel = styled(RadixLabel, {\n color: '$text-neutrals-subtle',\n marginLeft: '$300',\n padding: '6px $50',\n})\n\nexport type StyledLabelProps = StrictComponentProps<typeof StyledLabel>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledLabel } from './label.styled'\nimport type { StyledLabelProps } from './label.styled'\n\nexport interface LabelProps extends StyledLabelProps {}\n\nexport const Label = React.forwardRef<\n ElementRef<typeof StyledLabel>,\n LabelProps\n>((props, forwardRef) => <StyledLabel {...props} ref={forwardRef} />)\n","import { Separator as RadixSeparator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledSeparator = styled(RadixSeparator, {\n backgroundColor: '$border-neutrals-subtle',\n height: '1px',\n width: '100%',\n margin: '5.5px 0',\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSeparator } from './separator.styled'\nimport type { StyledSeparatorProps } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import React, { useState } from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport { StyledSelect } from './select.styled'\nimport type { StyledSelectProps } from './select.styled'\nimport { Group } from './partials/group'\nimport { Item } from './partials/item'\nimport { Portal } from './partials/portal'\nimport { Trigger } from './partials/trigger'\nimport { Value } from './partials/value'\nimport { Content } from './partials/content'\nimport { Label } from './partials/label'\nimport { Separator } from './partials/separator'\nimport { SelectProvider } from './hooks/use-select-context'\n\nexport interface SelectProps extends StyledSelectProps {\n /**\n * The value of the select when initially rendered. Use when you do not need\n * to control the state of the select.\n */\n defaultValue?: string\n\n /**\n * The controlled value of the select. Should be used in conjunction with\n * onValueChange.\n */\n value?: string\n\n /**\n * Event handler called when the value changes.\n */\n onValueChange?: (value: string) => void\n\n /**\n * The open state of the select when it is initially rendered. Use when you do\n * not need to control its open state.\n */\n defaultOpen?: boolean\n\n /**\n * The controlled open state of the select. Must be used in conjunction with\n * onOpenChange.\n */\n open?: boolean\n\n /**\n * Event handler called when the select opens.\n */\n onOpen?: () => void\n\n /**\n * Event handler called when the select closes.\n */\n onClose?: () => void\n\n /**\n * The reading direction of the select when applicable. If omitted, inherits\n * globally from DirectionProvider or assumes LTR (left-to-right) reading\n * mode.\n */\n direction?: 'ltr' | 'rtl'\n\n /**\n * The name of the select. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * When true, prevents the user from interacting with select.\n */\n disabled?: boolean\n\n /**\n * When true, prevents the user from opening with select, while allowing focus and hover.\n */\n 'aria-disabled'?: Booleanish\n\n /**\n * When true, indicates that the user must select a value before the owning\n * form can be submitted.\n */\n required?: boolean\n\n /**\n * When true, indicates that the select value contains an error which have to be fixed before the owning\n * form can be submitted.\n */\n invalid?: boolean\n}\n\nexport const Select = React.forwardRef<\n ElementRef<typeof StyledSelect>,\n SelectProps\n>(\n (\n {\n defaultOpen = false,\n direction = 'ltr',\n open,\n onOpen,\n onClose,\n invalid = false,\n 'aria-disabled': ariaDisabled,\n disabled,\n ...restProps\n },\n forwardRef\n ) => {\n const [openState, setOpenState] = useState(defaultOpen)\n return (\n <SelectProvider invalid={invalid} ariaDisabled={ariaDisabled}>\n <StyledSelect\n {...restProps}\n aria-disabled={ariaDisabled}\n disabled={disabled}\n dir={direction}\n open={open ?? openState}\n onOpenChange={newOpen => {\n if (open == null) {\n setOpenState(newOpen)\n }\n\n newOpen ? onOpen?.() : onClose?.()\n }}\n ref={forwardRef}\n />\n </SelectProvider>\n )\n }\n) as ForwardRefExoticComponent<SelectProps> & Partials\n\nexport interface Partials {\n Content: typeof Content\n Separator: typeof Separator\n Label: typeof Label\n Group: typeof Group\n Item: typeof Item\n Portal: typeof Portal\n Trigger: typeof Trigger\n Value: typeof Value\n}\n\nSelect.Group = Group\nSelect.Separator = Separator\nSelect.Content = Content\nSelect.Item = Item\nSelect.Portal = Portal\nSelect.Trigger = Trigger\nSelect.Value = Value\nSelect.Label = Label\n"],"names":["RadixSelect","RadixGroup","RadixItem","RadixItemIndicator","RadixItemText","RadixPortal","RadixSelectIcon","RadixTrigger","RadixValue","RadixContent","RadixViewport","RadixLabel","RadixSeparator"],"mappings":";;;;;;;;;AAIa,MAAA,YAAA,GAAe,OAAOA,IAAW,CAAA;;ACAvC,MAAM,WAAc,GAAA,MAAA,CAAOC,OAAY,EAAA,EAAE,CAAA;;ACIzC,MAAM,KAAQ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,QAAA;AAAA,QACA,GAAK,EAAA,SAAA;AAAA,QACL,MAAM,IAAQ,IAAA,IAAA,GAAA,IAAA,GAAA,SAAA;AAAA,QACd,cAAc,CAAW,OAAA,KAAA;AACvB,UAAA,IAAI,QAAQ,IAAM,EAAA;AAChB,YAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAAA,WACtB;AAEA,UAAA,OAAA,GAAU,MAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,EAAA,GAAA,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,EAAA,CAAA;AAAA,SACzB;AAAA,QACA,GAAK,EAAA,UAAA;AAAA,OAAA;AAAA,KAET,EAAA,CAAA,CAAA;AAAA,GAEJ;AACF,EAAA;AAaA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,SAAY,GAAA,SAAA,CAAA;AACnB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,IAAO,GAAA,IAAA,CAAA;AACd,MAAA,CAAO,MAAS,GAAA,MAAA,CAAA;AAChB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,KAAQ,GAAA,KAAA;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/select.styled.tsx","../src/partials/group.styled.tsx","../src/partials/group.tsx","../src/partials/item.styled.tsx","../src/partials/item-text.styled.tsx","../src/partials/item-indicator.styled.tsx","../src/partials/item.tsx","../src/partials/portal.styled.tsx","../src/partials/portal.tsx","../src/partials/select-icon.styled.tsx","../src/partials/trigger.styled.tsx","../src/hooks/use-select-context.tsx","../src/partials/trigger.tsx","../src/partials/value.styled.tsx","../src/partials/value.tsx","../src/partials/content.styled.tsx","../src/partials/content.tsx","../src/partials/label.styled.tsx","../src/partials/label.tsx","../src/partials/separator.styled.tsx","../src/partials/separator.tsx","../src/select.tsx"],"sourcesContent":["import type { ComponentPropsWithRef } from 'react'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Root as RadixSelect } from '@radix-ui/react-select'\n\nexport const StyledSelect = styled(RadixSelect)\n\nexport type StyledSelectProps = ComponentPropsWithRef<typeof StyledSelect>\n","import { Group as RadixGroup } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledGroup = styled(RadixGroup, {})\n\nexport type StyledGroupProps = StrictComponentProps<typeof StyledGroup>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledGroup } from './group.styled'\nimport type { StyledGroupProps } from './group.styled'\n\nexport interface GroupProps extends StyledGroupProps {}\n\nexport const Group = React.forwardRef<\n ElementRef<typeof StyledGroup>,\n GroupProps\n>((props, forwardRef) => <StyledGroup {...props} ref={forwardRef} />)\n","import { Item as RadixItem } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItem = styled(RadixItem, {\n all: 'unset',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n cursor: 'pointer',\n display: 'grid',\n fontSize: '$175',\n gridTemplateAreas: 'leftSlot textItem',\n gridTemplateColumns: '20px 1fr',\n lineHeight: '20px',\n position: 'relative',\n userSelect: 'none',\n padding: '6px 0',\n paddingInline: '$150 $100',\n\n ...focus.css({\n boxShadow: '$focus-small',\n outline: '1px solid transparent',\n }),\n\n '&[aria-selected=true]': {\n color: '$text-primary-selected',\n },\n\n '&:active:not([aria-disabled=true])': {\n background: '$background-primary-subtle-active',\n boxShadow: 'none',\n color: '$text-primary-active',\n },\n\n '&:disabled, &[aria-disabled=true], &[data-disabled]': {\n cursor: 'default',\n color: '$text-neutrals-disabled',\n },\n\n '&:disabled, &[data-disabled]': {\n pointerEvents: 'none',\n },\n\n '&:hover:not([aria-disabled=true])': {\n background: '$background-primary-subtle-hover',\n color: '$text-primary-hover',\n '&:not([aria-disabled=true])': {\n boxShadow: 'none',\n },\n },\n\n '&[data-state=\"checked\"]': {\n color: '$text-primary-selected',\n },\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItem>\n","import { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemText = styled('span', {\n display: 'flex',\n gridColumn: 2,\n width: '100%',\n})\n\nexport type StyledItemProps = StrictComponentProps<typeof StyledItemText>\n","import { ItemIndicator as RadixItemIndicator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledItemIndicator = styled(RadixItemIndicator, {})\n\nexport type StyledItemIndicatorProps = StrictComponentProps<\n typeof StyledItemIndicator\n>\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { IconCheckMark } from '@mirohq/design-system-icons'\nimport { ItemText as RadixItemText } from '@radix-ui/react-select'\nimport { booleanify } from '@mirohq/design-system-utils'\n\nimport { StyledItem } from './item.styled'\nimport type { StyledItemProps } from './item.styled'\nimport { StyledItemText } from './item-text.styled'\nimport { StyledItemIndicator } from './item-indicator.styled'\n\nexport interface ItemProps extends StyledItemProps {\n /**\n * The value given as data when submitted with a name.\n */\n value: string\n\n /**\n * When true, prevents the user from interacting with the item.\n */\n disabled?: boolean\n\n /**\n * Optional text used for typeahead purposes. By default the typeahead\n * behavior will use the Select's item text. Use this when the content is\n * complex, or you have non-textual content inside.\n */\n textValue?: string\n}\n\nexport const Item = React.forwardRef<ElementRef<typeof StyledItem>, ItemProps>(\n (\n {\n disabled = false,\n textValue,\n 'aria-disabled': ariaDisabled,\n onKeyDown,\n onPointerUp,\n onPointerMove,\n onPointerLeave,\n children,\n ...restProps\n },\n forwardRef\n ) => (\n <StyledItem\n {...restProps}\n aria-disabled={booleanify(ariaDisabled) ? ariaDisabled : undefined}\n onKeyDown={e => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown' &&\n e.code !== 'Escape'\n ) {\n e.preventDefault()\n e.stopPropagation()\n return\n }\n\n onKeyDown?.(e)\n }}\n onPointerUp={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerUp?.(e)\n }}\n onPointerMove={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerMove?.(e)\n }}\n onPointerLeave={e => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n return\n }\n\n onPointerLeave?.(e)\n }}\n textValue={textValue}\n disabled={disabled}\n ref={forwardRef}\n >\n <StyledItemIndicator>\n <IconCheckMark size='small' />\n </StyledItemIndicator>\n <RadixItemText asChild>\n <StyledItemText>{children}</StyledItemText>\n </RadixItemText>\n </StyledItem>\n )\n)\n","import { Portal as RadixPortal } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledPortal = styled(RadixPortal, {})\n\nexport type StyledPortalProps = StrictComponentProps<typeof StyledPortal>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledPortal } from './portal.styled'\nimport type { StyledPortalProps } from './portal.styled'\n\nexport interface PortalProps extends StyledPortalProps {\n /**\n * Specify a container element to portal the content into.\n */\n container?: HTMLElement | null\n}\n\nexport const Portal = React.forwardRef<\n ElementRef<typeof StyledPortal>,\n PortalProps\n>((props, forwardRef) => <StyledPortal {...props} ref={forwardRef} />)\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { SelectIcon as RadixSelectIcon } from '@radix-ui/react-select'\n\nexport const StyledSelectIcon = styled(RadixSelectIcon, { flexShrink: 0 })\n\nexport type StyledSelectIconProps = StrictComponentProps<\n typeof StyledSelectIcon\n>\n","import type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { styled } from '@mirohq/design-system-stitches'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\nimport { focus } from '@mirohq/design-system-styles'\n\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport const StyledTrigger = styled(RadixTrigger, {\n all: 'unset',\n backgroundColor: '$background-neutrals-container',\n border: '1px solid $border-neutrals',\n borderRadius: '$50',\n boxSizing: 'border-box',\n color: '$text-neutrals',\n display: 'flex',\n minWidth: 0,\n fontSize: '$200',\n lineHeight: 1.5,\n position: 'relative',\n userSelect: 'none',\n width: '100%',\n justifyContent: 'space-between',\n alignItems: 'center',\n\n svg: {\n color: '$icon-neutrals-text',\n },\n\n '&[data-placeholder]': {\n color: '$text-neutrals-subtle',\n },\n\n '&[data-invalid]': {\n borderColor: '$border-danger',\n\n ...focus.css({\n boxShadow: '$focus-controls-error',\n }),\n },\n\n '&:hover': {\n borderColor: '$border-primary-hover',\n },\n\n '&:active, &[data-state=\"open\"]': {\n borderColor: '$border-primary-active',\n },\n\n ...focus.css({\n boxShadow: '$focus-controls',\n outline: '1px solid transparent',\n }),\n\n '&[disabled], &[aria-disabled=\"true\"]': {\n backgroundColor: '$background-neutrals-disabled',\n borderColor: '$border-neutrals-disabled',\n color: '$text-neutrals-disabled',\n\n svg: {\n color: '$icon-neutrals-disabled',\n },\n },\n\n '&[data-state=\"open\"]': {\n [`& ${StyledSelectIcon}`]: {\n transform: 'rotate(180deg)',\n },\n },\n\n variants: {\n size: {\n medium: {\n height: '$10',\n paddingX: '$100',\n gap: '$50',\n },\n large: {\n height: '$12',\n paddingX: '$150',\n gap: '$100',\n },\n },\n },\n})\n\nexport type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>\n","import { createContext, useContext } from 'react'\nimport type { PropsWithChildren } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport type { Direction } from '../types'\n\ninterface SelectValues {\n invalid: boolean\n ariaDisabled?: Booleanish\n direction?: Direction\n}\n\ninterface SelectContextProps {\n invalid: boolean\n ariaDisabled?: Booleanish\n direction?: Direction\n}\n\nconst SelectContext = createContext<SelectContextProps>({} as any)\n\nexport const SelectProvider = ({\n children,\n invalid,\n ariaDisabled,\n direction,\n}: PropsWithChildren<SelectValues>): any => (\n <SelectContext.Provider\n value={{\n invalid,\n ariaDisabled,\n direction,\n }}\n >\n {children}\n </SelectContext.Provider>\n)\n\nexport const useSelectContext = (): SelectContextProps =>\n useContext(SelectContext)\n","import React from 'react'\nimport type { ElementRef, PointerEvent } from 'react'\nimport { IconChevronDown } from '@mirohq/design-system-icons'\nimport { booleanify } from '@mirohq/design-system-utils'\nimport { Trigger as RadixTrigger } from '@radix-ui/react-select'\n\nimport { StyledTrigger } from './trigger.styled'\nimport type { StyledTriggerProps } from './trigger.styled'\nimport { useSelectContext } from '../hooks/use-select-context'\nimport { StyledSelectIcon } from './select-icon.styled'\n\nexport interface TriggerProps extends StyledTriggerProps {\n /**\n * The content.\n */\n children: React.ReactNode\n}\n\nexport const Trigger = React.forwardRef<\n ElementRef<typeof StyledTrigger>,\n TriggerProps\n>(\n (\n {\n onKeyDown,\n onPointerDown,\n children,\n size = 'medium',\n asChild = false,\n ...restProps\n },\n forwardRef\n ) => {\n const { invalid, ariaDisabled } = useSelectContext()\n\n const commonProps = {\n ...restProps,\n ref: forwardRef,\n 'aria-disabled': ariaDisabled,\n onPointerDown: (e: PointerEvent<HTMLButtonElement>) => {\n if (booleanify(ariaDisabled)) {\n e.preventDefault()\n } else {\n onPointerDown?.(e)\n }\n },\n onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => {\n if (\n booleanify(ariaDisabled) &&\n e.code !== 'Tab' &&\n e.code !== 'ArrowUp' &&\n e.code !== 'ArrowDown'\n ) {\n e.preventDefault()\n } else {\n onKeyDown?.(e)\n }\n },\n 'data-invalid': invalid ? '' : undefined,\n }\n\n if (asChild) {\n return (\n <RadixTrigger {...commonProps} asChild>\n {children}\n </RadixTrigger>\n )\n }\n\n return (\n <StyledTrigger {...commonProps} size={size}>\n {children}\n <StyledSelectIcon asChild>\n <IconChevronDown size='small' weight='thin' />\n </StyledSelectIcon>\n </StyledTrigger>\n )\n }\n)\n","import { styled } from '@mirohq/design-system-stitches'\n\nexport const StyledValue = styled('span', {\n overflow: 'hidden',\n paddingX: '$50',\n\n '& span:first-child': {\n display: 'block',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n})\n","import React from 'react'\nimport type { ElementRef } from 'react'\nimport { Value as RadixValue } from '@radix-ui/react-select'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nimport { StyledValue } from './value.styled'\n\nexport type StyledValueProps = StrictComponentProps<typeof RadixValue>\n\nexport interface ValueProps extends StyledValueProps {\n /**\n * The content that will be rendered inside the Select.Value when no value or\n * defaultValue is set.\n */\n placeholder?: React.ReactNode\n\n /**\n * The controlled content that will be rendered inside the Select.Value.\n */\n children?: React.ReactNode\n}\n\nexport const Value = React.forwardRef<\n ElementRef<typeof StyledValue>,\n ValueProps\n>((props, forwardRef) => (\n <StyledValue>\n <RadixValue {...props} ref={forwardRef} />\n </StyledValue>\n))\n","import { Content as RadixContent } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\nimport { Primitive } from '@mirohq/design-system-primitive'\n\nexport const StyledScrollContainer = styled(Primitive.div, {\n boxSizing: 'border-box',\n paddingInline: '0 6px',\n margin: '-2px 0 0',\n marginInline: '-2px 2px',\n})\n\nexport const StyledContent = styled(RadixContent, {\n backgroundColor: '$background-neutrals-container',\n borderRadius: '$50',\n boxShadow: '$50',\n fontSize: '$175',\n fontWeight: 'normal',\n lineHeight: '20px',\n minWidth: 'var(--radix-select-trigger-width)',\n padding: '$50',\n zIndex: '$select',\n\n '& [data-radix-select-viewport]': {\n padding: `$100`,\n boxSizing: 'border-box',\n margin: '-6px',\n },\n})\n\nexport type StyledContentProps = StrictComponentProps<typeof StyledContent>\n","import React, { useCallback } from 'react'\nimport type { ElementRef, ReactNode } from 'react'\nimport { ScrollArea } from '@mirohq/design-system-scroll-area'\nimport type { CSS, CSSProperties } from '@stitches/react'\nimport { Viewport as RadixViewport } from '@radix-ui/react-select'\nimport { theme } from '@mirohq/design-system-stitches'\n\nimport { StyledContent, StyledScrollContainer } from './content.styled'\nimport type { StyledContentProps } from './content.styled'\nimport type {\n Boundary,\n PointerDownOutsideEvent,\n Side,\n Align,\n Overflow,\n Sticky,\n} from '../types'\nimport { useSelectContext } from '../hooks/use-select-context'\n\nexport const CONTENT_OFFSET = parseInt(theme.space[50])\n\nexport interface ContentProps extends StyledContentProps {\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onCloseAutoFocus?: (event: Event) => void\n\n /**\n * Event handler called when focus moves to the trigger after closing. It can\n * be prevented by calling event.preventDefault.\n */\n onEscapeKeyDown?: (event: KeyboardEvent) => void\n\n /**\n * Event handler called when a pointer event occurs outside the bounds of the\n * component. It can be prevented by calling event.preventDefault.\n */\n onPointerDownOutside?: (event: PointerDownOutsideEvent) => void\n\n /**\n * The preferred side of the anchor to render against when open. Will be\n * reversed when collisions occur and avoidCollisions is enabled. Only\n * available when position is set to popper.\n */\n side?: Side\n\n /**\n * The distance in pixels from the anchor. Only available when position is set\n * to popper.\n */\n sideOffset?: number\n\n /**\n * The preferred alignment against the anchor. May change when collisions\n * occur. Only available when position is set to popper.\n */\n align?: Align\n\n /**\n * An offset in pixels from the \"start\" or \"end\" alignment options. Only\n * available when position is set to popper.\n */\n alignOffset?: number\n\n /**\n * When true, overrides the side andalign preferences to prevent collisions\n * with boundary edges. Only available when position is set to popper.\n */\n avoidCollisions?: boolean\n\n /**\n * The element used as the collision boundary. By default this is the\n * viewport, though you can provide additional element(s) to be included in\n * this check. Only available when position is set to popper.\n */\n collisionBoundary?: Boundary\n\n /**\n * The distance in pixels from the boundary edges where collision detection\n * should occur. Accepts a number (same for all sides), or a partial padding\n * object, for example: { top: 20, left: 20 }. Only available when position is\n * set to popper.\n */\n collisionPadding?: number | Partial<Record<Side, number>>\n\n /**\n * The sticky behavior on the align axis. \"partial\" will keep the content in the\n * boundary as long as the trigger is at least partially in the boundary whilst\n * \"always\" will keep the content in the boundary regardless. Only available\n * when position is set to popper.\n */\n sticky?: Sticky\n\n /**\n * Whether to hide the content when the trigger becomes fully occluded. Only\n * available when position is set to popper.\n */\n hideWhenDetached?: boolean\n\n /**\n * The max height for the content.\n */\n maxHeight?: CSSProperties['maxHeight']\n\n /**\n * Setting overflow as \"visible\" means that the content can extend beyond the\n * its collision boundary without any clipping or scrolling being\n * applied.\n * When set to \"auto,\" a scrollbar is added if the content exceeds its\n * boundaries. If no maxHeight is defined, it will be automatically adjusted\n * to fit the remaining space between the trigger and the boundary edge.\n */\n overflow?: Overflow\n\n /**\n * Select's content.\n */\n children?: ReactNode\n}\n\nexport const Content = React.forwardRef<\n ElementRef<typeof StyledContent>,\n ContentProps\n>(\n (\n {\n side = 'bottom',\n sideOffset = CONTENT_OFFSET,\n align = 'center',\n alignOffset = 0,\n collisionPadding = 0,\n avoidCollisions = true,\n sticky = 'partial',\n hideWhenDetached = true,\n overflow = 'visible',\n maxHeight,\n children,\n ...restProps\n },\n forwardRef\n ) => {\n const { direction } = useSelectContext()\n const getOverflowMaxHeight = useCallback((): CSS => {\n const overflowMaxHeigh = `calc(var(--radix-select-content-available-height))`\n\n return {\n maxHeight: maxHeight ?? overflowMaxHeigh,\n }\n }, [maxHeight])\n return (\n <StyledContent\n {...restProps}\n ref={forwardRef}\n position='popper'\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n avoidCollisions={avoidCollisions}\n collisionPadding={collisionPadding}\n sticky={sticky}\n hideWhenDetached={hideWhenDetached}\n >\n <RadixViewport>\n {overflow === 'auto' ? (\n <ScrollArea dir={direction} type='always'>\n <ScrollArea.Viewport css={getOverflowMaxHeight()}>\n <StyledScrollContainer>{children}</StyledScrollContainer>\n </ScrollArea.Viewport>\n <ScrollArea.Scrollbar orientation='vertical'>\n <ScrollArea.Thumb />\n </ScrollArea.Scrollbar>\n </ScrollArea>\n ) : (\n <>{children}</>\n )}\n </RadixViewport>\n </StyledContent>\n )\n }\n)\n","import { Label as RadixLabel } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledLabel = styled(RadixLabel, {\n color: '$text-neutrals-subtle',\n margin: '0 $400',\n padding: '6px 0',\n})\n\nexport type StyledLabelProps = StrictComponentProps<typeof StyledLabel>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledLabel } from './label.styled'\nimport type { StyledLabelProps } from './label.styled'\n\nexport interface LabelProps extends StyledLabelProps {}\n\nexport const Label = React.forwardRef<\n ElementRef<typeof StyledLabel>,\n LabelProps\n>((props, forwardRef) => <StyledLabel {...props} ref={forwardRef} />)\n","import { Separator as RadixSeparator } from '@radix-ui/react-select'\nimport { styled } from '@mirohq/design-system-stitches'\nimport type { StrictComponentProps } from '@mirohq/design-system-stitches'\n\nexport const StyledSeparator = styled(RadixSeparator, {\n backgroundColor: '$border-neutrals-subtle',\n height: '1px',\n width: '100%',\n margin: '5.5px 0',\n})\n\nexport type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>\n","import React from 'react'\nimport type { ElementRef } from 'react'\n\nimport { StyledSeparator } from './separator.styled'\nimport type { StyledSeparatorProps } from './separator.styled'\n\nexport interface SeparatorProps extends StyledSeparatorProps {}\n\nexport const Separator = React.forwardRef<\n ElementRef<typeof StyledSeparator>,\n SeparatorProps\n>((props, forwardRef) => <StyledSeparator {...props} ref={forwardRef} />)\n","import React, { useState } from 'react'\nimport type { ElementRef, ForwardRefExoticComponent } from 'react'\nimport type { Booleanish } from '@mirohq/design-system-types'\n\nimport { StyledSelect } from './select.styled'\nimport { Group } from './partials/group'\nimport { Item } from './partials/item'\nimport { Portal } from './partials/portal'\nimport { Trigger } from './partials/trigger'\nimport { Value } from './partials/value'\nimport { Content } from './partials/content'\nimport { Label } from './partials/label'\nimport { Separator } from './partials/separator'\nimport { SelectProvider } from './hooks/use-select-context'\nimport type { Direction } from './types'\nimport type { StyledSelectProps } from './select.styled'\n\nexport interface SelectProps\n extends Omit<StyledSelectProps, 'onOpenChange' | 'dir'> {\n /**\n * The value of the select when initially rendered. Use when you do not need\n * to control the state of the select.\n */\n defaultValue?: string\n\n /**\n * The controlled value of the select. Should be used in conjunction with\n * onValueChange.\n */\n value?: string\n\n /**\n * Event handler called when the value changes.\n */\n onValueChange?: (value: string) => void\n\n /**\n * The open state of the select when it is initially rendered. Use when you do\n * not need to control its open state.\n */\n defaultOpen?: boolean\n\n /**\n * The controlled open state of the select. Must be used in conjunction with\n * onOpen and onClose.\n */\n open?: boolean\n\n /**\n * Event handler called when the select opens.\n */\n onOpen?: () => void\n\n /**\n * Event handler called when the select closes.\n */\n onClose?: () => void\n\n /**\n * The reading direction of the select when applicable. If omitted, inherits\n * globally from DirectionProvider or assumes LTR (left-to-right) reading\n * mode.\n */\n direction?: Direction\n\n /**\n * The name of the select. Submitted with its owning form as part of a\n * name/value pair.\n */\n name?: string\n\n /**\n * When true, prevents the user from interacting with select.\n */\n disabled?: boolean\n\n /**\n * When true, prevents the user from opening with select, while allowing focus and hover.\n */\n 'aria-disabled'?: Booleanish\n\n /**\n * When true, indicates that the user must select a value before the owning\n * form can be submitted.\n */\n required?: boolean\n\n /**\n * When true, indicates that the select value contains an error which have to be fixed before the owning\n * form can be submitted.\n */\n invalid?: boolean\n}\n\nexport const Select = React.forwardRef<\n ElementRef<typeof StyledSelect>,\n SelectProps\n>(\n (\n {\n defaultOpen = false,\n direction = 'ltr',\n open,\n onOpen,\n onClose,\n invalid = false,\n 'aria-disabled': ariaDisabled,\n disabled,\n ...restProps\n },\n forwardRef\n ) => {\n const [openState, setOpenState] = useState(defaultOpen)\n return (\n <SelectProvider\n direction={direction}\n invalid={invalid}\n ariaDisabled={ariaDisabled}\n >\n <StyledSelect\n {...restProps}\n aria-disabled={ariaDisabled}\n disabled={disabled}\n dir={direction}\n open={open ?? openState}\n onOpenChange={newOpen => {\n if (open == null) {\n setOpenState(newOpen)\n }\n\n newOpen ? onOpen?.() : onClose?.()\n }}\n ref={forwardRef}\n />\n </SelectProvider>\n )\n }\n) as ForwardRefExoticComponent<SelectProps> & Partials\n\nexport interface Partials {\n Content: typeof Content\n Separator: typeof Separator\n Label: typeof Label\n Group: typeof Group\n Item: typeof Item\n Portal: typeof Portal\n Trigger: typeof Trigger\n Value: typeof Value\n}\n\nSelect.Group = Group\nSelect.Separator = Separator\nSelect.Content = Content\nSelect.Item = Item\nSelect.Portal = Portal\nSelect.Trigger = Trigger\nSelect.Value = Value\nSelect.Label = Label\n"],"names":["RadixSelect","RadixGroup","RadixItem","RadixItemIndicator","RadixItemText","RadixPortal","RadixSelectIcon","RadixTrigger","RadixValue","RadixContent","RadixViewport","RadixLabel","RadixSeparator"],"mappings":";;;;;;;;;;AAIa,MAAA,YAAA,GAAe,OAAOA,IAAW,CAAA;;ACAvC,MAAM,WAAc,GAAA,MAAA,CAAOC,OAAY,EAAA,EAAE,CAAA;;ACIzC,MAAM,KAAQ,GAAA,KAAA,CAAM,UAGzB,CAAA,CAAC,KAAO,EAAA,UAAA,qBAAgB,GAAA,CAAA,WAAA,EAAA,EAAa,GAAG,KAAA,EAAO,GAAK,EAAA,UAAA,EAAY,CAAE,CAAA;;ACNvD,MAAA,UAAA,GAAa,OAAOC,MAAW,EAAA;AAAA,EAC1C,GAAK,EAAA,OAAA;AAAA,EACL,YAAc,EAAA,KAAA;AAAA,EACd,SAAW,EAAA,YAAA;AAAA,EACX,KAAO,EAAA,gBAAA;AAAA,EACP,MAAQ,EAAA,SAAA;AAAA,EACR,OAAS,EAAA,MAAA;AAAA,EACT,QAAU,EAAA,MAAA;AAAA,EACV,iBAAmB,EAAA,mBAAA;AAAA,EACnB,mBAAqB,EAAA,U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f,QAAA;AAAA,YACA,GAAK,EAAA,SAAA;AAAA,YACL,MAAM,IAAQ,IAAA,IAAA,GAAA,IAAA,GAAA,SAAA;AAAA,YACd,cAAc,CAAW,OAAA,KAAA;AACvB,cAAA,IAAI,QAAQ,IAAM,EAAA;AAChB,gBAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAAA,eACtB;AAEA,cAAA,OAAA,GAAU,MAAa,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,MAAA,EAAA,GAAA,OAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,OAAA,EAAA,CAAA;AAAA,aACzB;AAAA,YACA,GAAK,EAAA,UAAA;AAAA,WAAA;AAAA,SACP;AAAA,OAAA;AAAA,KACF,CAAA;AAAA,GAEJ;AACF,EAAA;AAaA,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,SAAY,GAAA,SAAA,CAAA;AACnB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,IAAO,GAAA,IAAA,CAAA;AACd,MAAA,CAAO,MAAS,GAAA,MAAA,CAAA;AAChB,MAAA,CAAO,OAAU,GAAA,OAAA,CAAA;AACjB,MAAA,CAAO,KAAQ,GAAA,KAAA,CAAA;AACf,MAAA,CAAO,KAAQ,GAAA,KAAA;;;;;;;;"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, {
|
|
2
|
+
import react__default, { ReactNode, ComponentPropsWithRef } from 'react';
|
|
3
3
|
import { Booleanish } from '@mirohq/design-system-types';
|
|
4
4
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
5
|
import { StrictComponentProps } from '@mirohq/design-system-stitches';
|
|
@@ -9,7 +9,7 @@ import { Value as Value$1 } from '@radix-ui/react-select';
|
|
|
9
9
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
10
10
|
import { CSSProperties } from '@stitches/react';
|
|
11
11
|
|
|
12
|
-
declare const
|
|
12
|
+
declare const StyledGroup: react.ForwardRefExoticComponent<Omit<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectGroupProps & react.RefAttributes<HTMLDivElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
13
13
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
14
14
|
'border-widths': {
|
|
15
15
|
readonly none: 0;
|
|
@@ -482,10 +482,14 @@ declare const StyledSelect: react.ForwardRefExoticComponent<Omit<{}, never> & _s
|
|
|
482
482
|
}> | undefined;
|
|
483
483
|
}> & {
|
|
484
484
|
children?: react.ReactNode;
|
|
485
|
-
} & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<
|
|
486
|
-
declare type
|
|
485
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectGroupProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
486
|
+
declare type StyledGroupProps = StrictComponentProps<typeof StyledGroup>;
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
interface GroupProps extends StyledGroupProps {
|
|
489
|
+
}
|
|
490
|
+
declare const Group: react__default.ForwardRefExoticComponent<Omit<GroupProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
491
|
+
|
|
492
|
+
declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectItemProps & react.RefAttributes<HTMLDivElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
489
493
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
490
494
|
'border-widths': {
|
|
491
495
|
readonly none: 0;
|
|
@@ -958,14 +962,28 @@ declare const StyledGroup: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
|
|
|
958
962
|
}> | undefined;
|
|
959
963
|
}> & {
|
|
960
964
|
children?: react.ReactNode;
|
|
961
|
-
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
962
|
-
declare type
|
|
965
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
966
|
+
declare type StyledItemProps = StrictComponentProps<typeof StyledItem>;
|
|
963
967
|
|
|
964
|
-
interface
|
|
968
|
+
interface ItemProps extends StyledItemProps {
|
|
969
|
+
/**
|
|
970
|
+
* The value given as data when submitted with a name.
|
|
971
|
+
*/
|
|
972
|
+
value: string;
|
|
973
|
+
/**
|
|
974
|
+
* When true, prevents the user from interacting with the item.
|
|
975
|
+
*/
|
|
976
|
+
disabled?: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
979
|
+
* behavior will use the Select's item text. Use this when the content is
|
|
980
|
+
* complex, or you have non-textual content inside.
|
|
981
|
+
*/
|
|
982
|
+
textValue?: string;
|
|
965
983
|
}
|
|
966
|
-
declare const
|
|
984
|
+
declare const Item: react__default.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
967
985
|
|
|
968
|
-
declare const
|
|
986
|
+
declare const StyledPortal: react.ForwardRefExoticComponent<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectPortalProps, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
969
987
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
970
988
|
'border-widths': {
|
|
971
989
|
readonly none: 0;
|
|
@@ -1438,28 +1456,22 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<{}, never> &
|
|
|
1438
1456
|
}> | undefined;
|
|
1439
1457
|
}> & {
|
|
1440
1458
|
children?: react.ReactNode;
|
|
1441
|
-
} & _mirohq_design_system_stitches.CustomStylesProps
|
|
1442
|
-
declare type
|
|
1459
|
+
} & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<never>> & _mirohq_design_system_stitches.StitchesInternals<react.FC<_radix_ui_react_select.SelectPortalProps>, {}, {}>;
|
|
1460
|
+
declare type StyledPortalProps = StrictComponentProps<typeof StyledPortal>;
|
|
1443
1461
|
|
|
1444
|
-
interface
|
|
1445
|
-
/**
|
|
1446
|
-
* The value given as data when submitted with a name.
|
|
1447
|
-
*/
|
|
1448
|
-
value: string;
|
|
1449
|
-
/**
|
|
1450
|
-
* When true, prevents the user from interacting with the item.
|
|
1451
|
-
*/
|
|
1452
|
-
disabled?: boolean;
|
|
1462
|
+
interface PortalProps extends StyledPortalProps {
|
|
1453
1463
|
/**
|
|
1454
|
-
*
|
|
1455
|
-
* behavior will use the Select's item text. Use this when the content is
|
|
1456
|
-
* complex, or you have non-textual content inside.
|
|
1464
|
+
* Specify a container element to portal the content into.
|
|
1457
1465
|
*/
|
|
1458
|
-
|
|
1466
|
+
container?: HTMLElement | null;
|
|
1459
1467
|
}
|
|
1460
|
-
declare const
|
|
1468
|
+
declare const Portal: react__default.ForwardRefExoticComponent<Omit<PortalProps, "ref"> & react__default.RefAttributes<never>>;
|
|
1461
1469
|
|
|
1462
|
-
declare const
|
|
1470
|
+
declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
1471
|
+
size?: "medium" | "large" | undefined;
|
|
1472
|
+
}, "size"> & _stitches_react_types_styled_component.TransformProps<{
|
|
1473
|
+
size?: "medium" | "large" | undefined;
|
|
1474
|
+
}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
1463
1475
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
1464
1476
|
'border-widths': {
|
|
1465
1477
|
readonly none: 0;
|
|
@@ -1932,22 +1944,34 @@ declare const StyledPortal: react.ForwardRefExoticComponent<Omit<{}, never> & _s
|
|
|
1932
1944
|
}> | undefined;
|
|
1933
1945
|
}> & {
|
|
1934
1946
|
children?: react.ReactNode;
|
|
1935
|
-
} & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<
|
|
1936
|
-
|
|
1947
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>, {
|
|
1948
|
+
size?: "medium" | "large" | undefined;
|
|
1949
|
+
}, {}>;
|
|
1950
|
+
declare type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>;
|
|
1937
1951
|
|
|
1938
|
-
interface
|
|
1952
|
+
interface TriggerProps extends StyledTriggerProps {
|
|
1939
1953
|
/**
|
|
1940
|
-
*
|
|
1954
|
+
* The content.
|
|
1941
1955
|
*/
|
|
1942
|
-
|
|
1956
|
+
children: react__default.ReactNode;
|
|
1943
1957
|
}
|
|
1944
|
-
declare const
|
|
1958
|
+
declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
1945
1959
|
|
|
1946
|
-
declare
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1960
|
+
declare type StyledValueProps = StrictComponentProps<typeof Value$1>;
|
|
1961
|
+
interface ValueProps extends StyledValueProps {
|
|
1962
|
+
/**
|
|
1963
|
+
* The content that will be rendered inside the Select.Value when no value or
|
|
1964
|
+
* defaultValue is set.
|
|
1965
|
+
*/
|
|
1966
|
+
placeholder?: react__default.ReactNode;
|
|
1967
|
+
/**
|
|
1968
|
+
* The controlled content that will be rendered inside the Select.Value.
|
|
1969
|
+
*/
|
|
1970
|
+
children?: react__default.ReactNode;
|
|
1971
|
+
}
|
|
1972
|
+
declare const Value: react__default.ForwardRefExoticComponent<Omit<ValueProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1973
|
+
|
|
1974
|
+
declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectContentProps & react.RefAttributes<HTMLDivElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
1951
1975
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
1952
1976
|
'border-widths': {
|
|
1953
1977
|
readonly none: 0;
|
|
@@ -2420,34 +2444,132 @@ declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
2420
2444
|
}> | undefined;
|
|
2421
2445
|
}> & {
|
|
2422
2446
|
children?: react.ReactNode;
|
|
2423
|
-
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<
|
|
2424
|
-
|
|
2425
|
-
}, {}>;
|
|
2426
|
-
declare type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>;
|
|
2447
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
2448
|
+
declare type StyledContentProps = StrictComponentProps<typeof StyledContent>;
|
|
2427
2449
|
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2450
|
+
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
2451
|
+
originalEvent: PointerEvent;
|
|
2452
|
+
}>;
|
|
2453
|
+
declare type Boundary = Element | null | Array<Element | null>;
|
|
2454
|
+
declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
2455
|
+
declare type Align = 'start' | 'center' | 'end';
|
|
2456
|
+
declare type Padding = Partial<Record<Side, number>>;
|
|
2457
|
+
declare type Overflow = 'auto' | 'visible';
|
|
2458
|
+
declare type Size = 'medium' | 'large';
|
|
2459
|
+
declare type Sticky = 'partial' | 'always';
|
|
2460
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
2461
|
+
|
|
2462
|
+
type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
|
|
2463
|
+
type types_Boundary = Boundary;
|
|
2464
|
+
type types_Side = Side;
|
|
2465
|
+
type types_Align = Align;
|
|
2466
|
+
type types_Padding = Padding;
|
|
2467
|
+
type types_Overflow = Overflow;
|
|
2468
|
+
type types_Size = Size;
|
|
2469
|
+
type types_Sticky = Sticky;
|
|
2470
|
+
type types_Direction = Direction;
|
|
2471
|
+
declare namespace types {
|
|
2472
|
+
export {
|
|
2473
|
+
types_PointerDownOutsideEvent as PointerDownOutsideEvent,
|
|
2474
|
+
types_Boundary as Boundary,
|
|
2475
|
+
types_Side as Side,
|
|
2476
|
+
types_Align as Align,
|
|
2477
|
+
types_Padding as Padding,
|
|
2478
|
+
types_Overflow as Overflow,
|
|
2479
|
+
types_Size as Size,
|
|
2480
|
+
types_Sticky as Sticky,
|
|
2481
|
+
types_Direction as Direction,
|
|
2482
|
+
};
|
|
2433
2483
|
}
|
|
2434
|
-
declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2435
2484
|
|
|
2436
|
-
|
|
2437
|
-
interface ValueProps extends StyledValueProps {
|
|
2485
|
+
interface ContentProps extends StyledContentProps {
|
|
2438
2486
|
/**
|
|
2439
|
-
*
|
|
2440
|
-
*
|
|
2487
|
+
* Event handler called when focus moves to the trigger after closing. It can
|
|
2488
|
+
* be prevented by calling event.preventDefault.
|
|
2441
2489
|
*/
|
|
2442
|
-
|
|
2490
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
2443
2491
|
/**
|
|
2444
|
-
*
|
|
2492
|
+
* Event handler called when focus moves to the trigger after closing. It can
|
|
2493
|
+
* be prevented by calling event.preventDefault.
|
|
2445
2494
|
*/
|
|
2446
|
-
|
|
2495
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2496
|
+
/**
|
|
2497
|
+
* Event handler called when a pointer event occurs outside the bounds of the
|
|
2498
|
+
* component. It can be prevented by calling event.preventDefault.
|
|
2499
|
+
*/
|
|
2500
|
+
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
2501
|
+
/**
|
|
2502
|
+
* The preferred side of the anchor to render against when open. Will be
|
|
2503
|
+
* reversed when collisions occur and avoidCollisions is enabled. Only
|
|
2504
|
+
* available when position is set to popper.
|
|
2505
|
+
*/
|
|
2506
|
+
side?: Side;
|
|
2507
|
+
/**
|
|
2508
|
+
* The distance in pixels from the anchor. Only available when position is set
|
|
2509
|
+
* to popper.
|
|
2510
|
+
*/
|
|
2511
|
+
sideOffset?: number;
|
|
2512
|
+
/**
|
|
2513
|
+
* The preferred alignment against the anchor. May change when collisions
|
|
2514
|
+
* occur. Only available when position is set to popper.
|
|
2515
|
+
*/
|
|
2516
|
+
align?: Align;
|
|
2517
|
+
/**
|
|
2518
|
+
* An offset in pixels from the "start" or "end" alignment options. Only
|
|
2519
|
+
* available when position is set to popper.
|
|
2520
|
+
*/
|
|
2521
|
+
alignOffset?: number;
|
|
2522
|
+
/**
|
|
2523
|
+
* When true, overrides the side andalign preferences to prevent collisions
|
|
2524
|
+
* with boundary edges. Only available when position is set to popper.
|
|
2525
|
+
*/
|
|
2526
|
+
avoidCollisions?: boolean;
|
|
2527
|
+
/**
|
|
2528
|
+
* The element used as the collision boundary. By default this is the
|
|
2529
|
+
* viewport, though you can provide additional element(s) to be included in
|
|
2530
|
+
* this check. Only available when position is set to popper.
|
|
2531
|
+
*/
|
|
2532
|
+
collisionBoundary?: Boundary;
|
|
2533
|
+
/**
|
|
2534
|
+
* The distance in pixels from the boundary edges where collision detection
|
|
2535
|
+
* should occur. Accepts a number (same for all sides), or a partial padding
|
|
2536
|
+
* object, for example: { top: 20, left: 20 }. Only available when position is
|
|
2537
|
+
* set to popper.
|
|
2538
|
+
*/
|
|
2539
|
+
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
2540
|
+
/**
|
|
2541
|
+
* The sticky behavior on the align axis. "partial" will keep the content in the
|
|
2542
|
+
* boundary as long as the trigger is at least partially in the boundary whilst
|
|
2543
|
+
* "always" will keep the content in the boundary regardless. Only available
|
|
2544
|
+
* when position is set to popper.
|
|
2545
|
+
*/
|
|
2546
|
+
sticky?: Sticky;
|
|
2547
|
+
/**
|
|
2548
|
+
* Whether to hide the content when the trigger becomes fully occluded. Only
|
|
2549
|
+
* available when position is set to popper.
|
|
2550
|
+
*/
|
|
2551
|
+
hideWhenDetached?: boolean;
|
|
2552
|
+
/**
|
|
2553
|
+
* The max height for the content.
|
|
2554
|
+
*/
|
|
2555
|
+
maxHeight?: CSSProperties['maxHeight'];
|
|
2556
|
+
/**
|
|
2557
|
+
* Setting overflow as "visible" means that the content can extend beyond the
|
|
2558
|
+
* its collision boundary without any clipping or scrolling being
|
|
2559
|
+
* applied.
|
|
2560
|
+
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
2561
|
+
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
2562
|
+
* to fit the remaining space between the trigger and the boundary edge.
|
|
2563
|
+
*/
|
|
2564
|
+
overflow?: Overflow;
|
|
2565
|
+
/**
|
|
2566
|
+
* Select's content.
|
|
2567
|
+
*/
|
|
2568
|
+
children?: ReactNode;
|
|
2447
2569
|
}
|
|
2448
|
-
declare const
|
|
2570
|
+
declare const Content: react__default.ForwardRefExoticComponent<Omit<ContentProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
2449
2571
|
|
|
2450
|
-
declare const
|
|
2572
|
+
declare const StyledLabel: react.ForwardRefExoticComponent<Omit<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectLabelProps & react.RefAttributes<HTMLDivElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
2451
2573
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
2452
2574
|
'border-widths': {
|
|
2453
2575
|
readonly none: 0;
|
|
@@ -2920,129 +3042,14 @@ declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<{}, never
|
|
|
2920
3042
|
}> | undefined;
|
|
2921
3043
|
}> & {
|
|
2922
3044
|
children?: react.ReactNode;
|
|
2923
|
-
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
2924
|
-
declare type
|
|
2925
|
-
|
|
2926
|
-
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
2927
|
-
originalEvent: PointerEvent;
|
|
2928
|
-
}>;
|
|
2929
|
-
declare type Boundary = Element | null | Array<Element | null>;
|
|
2930
|
-
declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
2931
|
-
declare type Align = 'start' | 'center' | 'end';
|
|
2932
|
-
declare type Padding = Partial<Record<Side, number>>;
|
|
2933
|
-
declare type Overflow = 'auto' | 'visible';
|
|
2934
|
-
declare type Size = 'medium' | 'large';
|
|
2935
|
-
declare type Sticky = 'partial' | 'always';
|
|
2936
|
-
|
|
2937
|
-
type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
|
|
2938
|
-
type types_Boundary = Boundary;
|
|
2939
|
-
type types_Side = Side;
|
|
2940
|
-
type types_Align = Align;
|
|
2941
|
-
type types_Padding = Padding;
|
|
2942
|
-
type types_Overflow = Overflow;
|
|
2943
|
-
type types_Size = Size;
|
|
2944
|
-
type types_Sticky = Sticky;
|
|
2945
|
-
declare namespace types {
|
|
2946
|
-
export {
|
|
2947
|
-
types_PointerDownOutsideEvent as PointerDownOutsideEvent,
|
|
2948
|
-
types_Boundary as Boundary,
|
|
2949
|
-
types_Side as Side,
|
|
2950
|
-
types_Align as Align,
|
|
2951
|
-
types_Padding as Padding,
|
|
2952
|
-
types_Overflow as Overflow,
|
|
2953
|
-
types_Size as Size,
|
|
2954
|
-
types_Sticky as Sticky,
|
|
2955
|
-
};
|
|
2956
|
-
}
|
|
3045
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectLabelProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
3046
|
+
declare type StyledLabelProps = StrictComponentProps<typeof StyledLabel>;
|
|
2957
3047
|
|
|
2958
|
-
interface
|
|
2959
|
-
/**
|
|
2960
|
-
* Event handler called when focus moves to the trigger after closing. It can
|
|
2961
|
-
* be prevented by calling event.preventDefault.
|
|
2962
|
-
*/
|
|
2963
|
-
onCloseAutoFocus?: (event: Event) => void;
|
|
2964
|
-
/**
|
|
2965
|
-
* Event handler called when focus moves to the trigger after closing. It can
|
|
2966
|
-
* be prevented by calling event.preventDefault.
|
|
2967
|
-
*/
|
|
2968
|
-
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2969
|
-
/**
|
|
2970
|
-
* Event handler called when a pointer event occurs outside the bounds of the
|
|
2971
|
-
* component. It can be prevented by calling event.preventDefault.
|
|
2972
|
-
*/
|
|
2973
|
-
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
2974
|
-
/**
|
|
2975
|
-
* The preferred side of the anchor to render against when open. Will be
|
|
2976
|
-
* reversed when collisions occur and avoidCollisions is enabled. Only
|
|
2977
|
-
* available when position is set to popper.
|
|
2978
|
-
*/
|
|
2979
|
-
side?: Side;
|
|
2980
|
-
/**
|
|
2981
|
-
* The distance in pixels from the anchor. Only available when position is set
|
|
2982
|
-
* to popper.
|
|
2983
|
-
*/
|
|
2984
|
-
sideOffset?: number;
|
|
2985
|
-
/**
|
|
2986
|
-
* The preferred alignment against the anchor. May change when collisions
|
|
2987
|
-
* occur. Only available when position is set to popper.
|
|
2988
|
-
*/
|
|
2989
|
-
align?: Align;
|
|
2990
|
-
/**
|
|
2991
|
-
* An offset in pixels from the "start" or "end" alignment options. Only
|
|
2992
|
-
* available when position is set to popper.
|
|
2993
|
-
*/
|
|
2994
|
-
alignOffset?: number;
|
|
2995
|
-
/**
|
|
2996
|
-
* When true, overrides the side andalign preferences to prevent collisions
|
|
2997
|
-
* with boundary edges. Only available when position is set to popper.
|
|
2998
|
-
*/
|
|
2999
|
-
avoidCollisions?: boolean;
|
|
3000
|
-
/**
|
|
3001
|
-
* The element used as the collision boundary. By default this is the
|
|
3002
|
-
* viewport, though you can provide additional element(s) to be included in
|
|
3003
|
-
* this check. Only available when position is set to popper.
|
|
3004
|
-
*/
|
|
3005
|
-
collisionBoundary?: Boundary;
|
|
3006
|
-
/**
|
|
3007
|
-
* The distance in pixels from the boundary edges where collision detection
|
|
3008
|
-
* should occur. Accepts a number (same for all sides), or a partial padding
|
|
3009
|
-
* object, for example: { top: 20, left: 20 }. Only available when position is
|
|
3010
|
-
* set to popper.
|
|
3011
|
-
*/
|
|
3012
|
-
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
3013
|
-
/**
|
|
3014
|
-
* The sticky behavior on the align axis. "partial" will keep the content in the
|
|
3015
|
-
* boundary as long as the trigger is at least partially in the boundary whilst
|
|
3016
|
-
* "always" will keep the content in the boundary regardless. Only available
|
|
3017
|
-
* when position is set to popper.
|
|
3018
|
-
*/
|
|
3019
|
-
sticky?: Sticky;
|
|
3020
|
-
/**
|
|
3021
|
-
* Whether to hide the content when the trigger becomes fully occluded. Only
|
|
3022
|
-
* available when position is set to popper.
|
|
3023
|
-
*/
|
|
3024
|
-
hideWhenDetached?: boolean;
|
|
3025
|
-
/**
|
|
3026
|
-
* The max height for the content.
|
|
3027
|
-
*/
|
|
3028
|
-
maxHeight?: CSSProperties['maxHeight'];
|
|
3029
|
-
/**
|
|
3030
|
-
* Setting overflow as "visible" means that the content can extend beyond the
|
|
3031
|
-
* its collision boundary without any clipping or scrolling being
|
|
3032
|
-
* applied.
|
|
3033
|
-
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
3034
|
-
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
3035
|
-
* to fit the remaining space between the trigger and the boundary edge.
|
|
3036
|
-
*/
|
|
3037
|
-
overflow?: Overflow;
|
|
3038
|
-
/**
|
|
3039
|
-
* Select's content.
|
|
3040
|
-
*/
|
|
3041
|
-
children?: ReactNode;
|
|
3048
|
+
interface LabelProps extends StyledLabelProps {
|
|
3042
3049
|
}
|
|
3043
|
-
declare const
|
|
3050
|
+
declare const Label: react__default.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
3044
3051
|
|
|
3045
|
-
declare const
|
|
3052
|
+
declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
3046
3053
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
3047
3054
|
'border-widths': {
|
|
3048
3055
|
readonly none: 0;
|
|
@@ -3515,14 +3522,14 @@ declare const StyledLabel: react.ForwardRefExoticComponent<Omit<Omit<{}, never>
|
|
|
3515
3522
|
}> | undefined;
|
|
3516
3523
|
}> & {
|
|
3517
3524
|
children?: react.ReactNode;
|
|
3518
|
-
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
3519
|
-
declare type
|
|
3525
|
+
} & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
3526
|
+
declare type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>;
|
|
3520
3527
|
|
|
3521
|
-
interface
|
|
3528
|
+
interface SeparatorProps extends StyledSeparatorProps {
|
|
3522
3529
|
}
|
|
3523
|
-
declare const
|
|
3530
|
+
declare const Separator: react__default.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
3524
3531
|
|
|
3525
|
-
declare const
|
|
3532
|
+
declare const StyledSelect: react.ForwardRefExoticComponent<Omit<{}, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.SafeProps<Omit<_radix_ui_react_select.SelectProps, "css"> & _stitches_react_types_styled_component.TransformProps<{}, {}> & {
|
|
3526
3533
|
css?: _stitches_react_types_css_util.CSS<{}, {
|
|
3527
3534
|
'border-widths': {
|
|
3528
3535
|
readonly none: 0;
|
|
@@ -3995,14 +4002,10 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<{}, nev
|
|
|
3995
4002
|
}> | undefined;
|
|
3996
4003
|
}> & {
|
|
3997
4004
|
children?: react.ReactNode;
|
|
3998
|
-
} & _mirohq_design_system_stitches.CustomStylesProps
|
|
3999
|
-
declare type
|
|
4000
|
-
|
|
4001
|
-
interface SeparatorProps extends StyledSeparatorProps {
|
|
4002
|
-
}
|
|
4003
|
-
declare const Separator: react__default.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
4005
|
+
} & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<never>> & _mirohq_design_system_stitches.StitchesInternals<react.FC<_radix_ui_react_select.SelectProps>, {}, {}>;
|
|
4006
|
+
declare type StyledSelectProps = ComponentPropsWithRef<typeof StyledSelect>;
|
|
4004
4007
|
|
|
4005
|
-
interface SelectProps extends StyledSelectProps {
|
|
4008
|
+
interface SelectProps extends Omit<StyledSelectProps, 'onOpenChange' | 'dir'> {
|
|
4006
4009
|
/**
|
|
4007
4010
|
* The value of the select when initially rendered. Use when you do not need
|
|
4008
4011
|
* to control the state of the select.
|
|
@@ -4024,7 +4027,7 @@ interface SelectProps extends StyledSelectProps {
|
|
|
4024
4027
|
defaultOpen?: boolean;
|
|
4025
4028
|
/**
|
|
4026
4029
|
* The controlled open state of the select. Must be used in conjunction with
|
|
4027
|
-
*
|
|
4030
|
+
* onOpen and onClose.
|
|
4028
4031
|
*/
|
|
4029
4032
|
open?: boolean;
|
|
4030
4033
|
/**
|
|
@@ -4040,7 +4043,7 @@ interface SelectProps extends StyledSelectProps {
|
|
|
4040
4043
|
* globally from DirectionProvider or assumes LTR (left-to-right) reading
|
|
4041
4044
|
* mode.
|
|
4042
4045
|
*/
|
|
4043
|
-
direction?:
|
|
4046
|
+
direction?: Direction;
|
|
4044
4047
|
/**
|
|
4045
4048
|
* The name of the select. Submitted with its owning form as part of a
|
|
4046
4049
|
* name/value pair.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-select",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "^16.14 || ^17 || ^18"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@radix-ui/react-select": "^
|
|
29
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
30
30
|
"@mirohq/design-system-icons": "^0.30.6",
|
|
31
31
|
"@mirohq/design-system-primitive": "^1.1.1",
|
|
32
32
|
"@mirohq/design-system-scroll-area": "^0.1.13",
|