@mirohq/design-system-select 0.3.0-forms.5 → 0.3.0-forms.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +105 -24
- package/dist/main.js.map +1 -1
- package/dist/module.js +106 -25
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +218 -227
- package/package.json +6 -6
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, {
|
|
3
|
-
import
|
|
2
|
+
import react__default, { ComponentPropsWithRef, ReactNode } from 'react';
|
|
3
|
+
import * as _radix_ui_react_select from '@radix-ui/react-select';
|
|
4
|
+
import { Value as Value$1, SelectProps as SelectProps$2 } from '@radix-ui/react-select';
|
|
4
5
|
import * as _mirohq_design_system_stitches from '@mirohq/design-system-stitches';
|
|
5
6
|
import { StrictComponentProps } from '@mirohq/design-system-stitches';
|
|
6
7
|
import * as _stitches_react_types_styled_component from '@stitches/react/types/styled-component';
|
|
7
8
|
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util';
|
|
8
|
-
import * as
|
|
9
|
-
import { Value as Value$1 } from '@radix-ui/react-select';
|
|
9
|
+
import * as _mirohq_design_system_primitive from '@mirohq/design-system-primitive';
|
|
10
10
|
import { HoverEvents } from '@react-types/shared';
|
|
11
11
|
import { CSSProperties } from '@stitches/react';
|
|
12
|
+
import { FormElementProps } from '@mirohq/design-system-base-form';
|
|
12
13
|
|
|
13
|
-
declare const
|
|
14
|
+
declare const StyledSelectContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
14
15
|
'border-widths': {
|
|
15
16
|
readonly none: 0;
|
|
16
17
|
readonly sm: "1px";
|
|
@@ -498,14 +499,10 @@ declare const StyledGroup: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_des
|
|
|
498
499
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
499
500
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
500
501
|
};
|
|
501
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<
|
|
502
|
-
declare type
|
|
503
|
-
|
|
504
|
-
interface GroupProps extends StyledGroupProps {
|
|
505
|
-
}
|
|
506
|
-
declare const Group: react__default.ForwardRefExoticComponent<Omit<GroupProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
502
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_mirohq_design_system_primitive.PrimitiveProps<"div">>, {}, {}>;
|
|
503
|
+
declare type StyledSelectContentProps = ComponentPropsWithRef<typeof StyledSelectContent>;
|
|
507
504
|
|
|
508
|
-
declare const
|
|
505
|
+
declare const StyledGroup: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectGroupProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
509
506
|
'border-widths': {
|
|
510
507
|
readonly none: 0;
|
|
511
508
|
readonly sm: "1px";
|
|
@@ -993,29 +990,14 @@ declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_desi
|
|
|
993
990
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
994
991
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
995
992
|
};
|
|
996
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
997
|
-
declare type
|
|
993
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectGroupProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
994
|
+
declare type StyledGroupProps = StrictComponentProps<typeof StyledGroup>;
|
|
998
995
|
|
|
999
|
-
interface
|
|
1000
|
-
/**
|
|
1001
|
-
* The value given as data when submitted with a name.
|
|
1002
|
-
*/
|
|
1003
|
-
value: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* When true, prevents the user from interacting with the item.
|
|
1006
|
-
* @default false
|
|
1007
|
-
*/
|
|
1008
|
-
disabled?: boolean;
|
|
1009
|
-
/**
|
|
1010
|
-
* Optional text used for typeahead purposes. By default the typeahead
|
|
1011
|
-
* behavior will use the Select's item text. Use this when the content is
|
|
1012
|
-
* complex, or you have non-textual content inside.
|
|
1013
|
-
*/
|
|
1014
|
-
textValue?: string;
|
|
996
|
+
interface GroupProps extends StyledGroupProps {
|
|
1015
997
|
}
|
|
1016
|
-
declare const
|
|
998
|
+
declare const Group: react__default.ForwardRefExoticComponent<Omit<GroupProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
1017
999
|
|
|
1018
|
-
declare const
|
|
1000
|
+
declare const StyledItem: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
1019
1001
|
'border-widths': {
|
|
1020
1002
|
readonly none: 0;
|
|
1021
1003
|
readonly sm: "1px";
|
|
@@ -1503,19 +1485,29 @@ declare const StyledPortal: react.ForwardRefExoticComponent<Omit<_mirohq_design_
|
|
|
1503
1485
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
1504
1486
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
1505
1487
|
};
|
|
1506
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<
|
|
1507
|
-
declare type
|
|
1488
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectItemProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
1489
|
+
declare type StyledItemProps = StrictComponentProps<typeof StyledItem>;
|
|
1508
1490
|
|
|
1509
|
-
interface
|
|
1491
|
+
interface ItemProps extends StyledItemProps {
|
|
1510
1492
|
/**
|
|
1511
|
-
*
|
|
1512
|
-
* @default document.body
|
|
1493
|
+
* The value given as data when submitted with a name.
|
|
1513
1494
|
*/
|
|
1514
|
-
|
|
1495
|
+
value: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* When true, prevents the user from interacting with the item.
|
|
1498
|
+
* @default false
|
|
1499
|
+
*/
|
|
1500
|
+
disabled?: boolean;
|
|
1501
|
+
/**
|
|
1502
|
+
* Optional text used for typeahead purposes. By default the typeahead
|
|
1503
|
+
* behavior will use the Select's item text. Use this when the content is
|
|
1504
|
+
* complex, or you have non-textual content inside.
|
|
1505
|
+
*/
|
|
1506
|
+
textValue?: string;
|
|
1515
1507
|
}
|
|
1516
|
-
declare const
|
|
1508
|
+
declare const Item: react__default.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
1517
1509
|
|
|
1518
|
-
declare const
|
|
1510
|
+
declare const StyledPortal: react.ForwardRefExoticComponent<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.FC<_radix_ui_react_select.SelectPortalProps>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
1519
1511
|
'border-widths': {
|
|
1520
1512
|
readonly none: 0;
|
|
1521
1513
|
readonly sm: "1px";
|
|
@@ -2003,41 +1995,19 @@ declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
2003
1995
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
2004
1996
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
2005
1997
|
};
|
|
2006
|
-
}>>>,
|
|
2007
|
-
|
|
2008
|
-
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>, {
|
|
2009
|
-
size?: "large" | "x-large" | undefined;
|
|
2010
|
-
}, {}>;
|
|
2011
|
-
declare type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>;
|
|
2012
|
-
|
|
2013
|
-
interface TriggerProps extends StyledTriggerProps, HoverEvents {
|
|
2014
|
-
/**
|
|
2015
|
-
* The content.
|
|
2016
|
-
*/
|
|
2017
|
-
children: react__default.ReactNode;
|
|
2018
|
-
/**
|
|
2019
|
-
* The size of the trigger.
|
|
2020
|
-
* @default 'large'
|
|
2021
|
-
*/
|
|
2022
|
-
size?: StyledTriggerProps['size'];
|
|
2023
|
-
}
|
|
2024
|
-
declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
1998
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<never>> & _mirohq_design_system_stitches.StitchesInternals<react.FC<_radix_ui_react_select.SelectPortalProps>, {}, {}>;
|
|
1999
|
+
declare type StyledPortalProps = StrictComponentProps<typeof StyledPortal>;
|
|
2025
2000
|
|
|
2026
|
-
|
|
2027
|
-
interface ValueProps extends StyledValueProps {
|
|
2028
|
-
/**
|
|
2029
|
-
* The content that will be rendered inside the Select.Value when no value or
|
|
2030
|
-
* defaultValue is set.
|
|
2031
|
-
*/
|
|
2032
|
-
placeholder?: react__default.ReactNode;
|
|
2001
|
+
interface PortalProps extends StyledPortalProps {
|
|
2033
2002
|
/**
|
|
2034
|
-
*
|
|
2003
|
+
* Specify a container element to portal the content into.
|
|
2004
|
+
* @default document.body
|
|
2035
2005
|
*/
|
|
2036
|
-
|
|
2006
|
+
container?: HTMLElement | null;
|
|
2037
2007
|
}
|
|
2038
|
-
declare const
|
|
2008
|
+
declare const Portal: react__default.ForwardRefExoticComponent<Omit<PortalProps, "ref"> & react__default.RefAttributes<never>>;
|
|
2039
2009
|
|
|
2040
|
-
declare const
|
|
2010
|
+
declare const StyledTrigger: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
2041
2011
|
'border-widths': {
|
|
2042
2012
|
readonly none: 0;
|
|
2043
2013
|
readonly sm: "1px";
|
|
@@ -2525,142 +2495,41 @@ declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_d
|
|
|
2525
2495
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
2526
2496
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
2527
2497
|
};
|
|
2528
|
-
}>>>,
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
declare type Boundary = Element | null | Array<Element | null>;
|
|
2535
|
-
declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
2536
|
-
declare type Align = 'start' | 'center' | 'end';
|
|
2537
|
-
declare type Padding = Partial<Record<Side, number>>;
|
|
2538
|
-
declare type Overflow = 'auto' | 'visible';
|
|
2539
|
-
declare type Size = 'medium' | 'large';
|
|
2540
|
-
declare type Sticky = 'partial' | 'always';
|
|
2541
|
-
declare type Direction = 'ltr' | 'rtl';
|
|
2542
|
-
|
|
2543
|
-
type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
|
|
2544
|
-
type types_Boundary = Boundary;
|
|
2545
|
-
type types_Side = Side;
|
|
2546
|
-
type types_Align = Align;
|
|
2547
|
-
type types_Padding = Padding;
|
|
2548
|
-
type types_Overflow = Overflow;
|
|
2549
|
-
type types_Size = Size;
|
|
2550
|
-
type types_Sticky = Sticky;
|
|
2551
|
-
type types_Direction = Direction;
|
|
2552
|
-
declare namespace types {
|
|
2553
|
-
export {
|
|
2554
|
-
types_PointerDownOutsideEvent as PointerDownOutsideEvent,
|
|
2555
|
-
types_Boundary as Boundary,
|
|
2556
|
-
types_Side as Side,
|
|
2557
|
-
types_Align as Align,
|
|
2558
|
-
types_Padding as Padding,
|
|
2559
|
-
types_Overflow as Overflow,
|
|
2560
|
-
types_Size as Size,
|
|
2561
|
-
types_Sticky as Sticky,
|
|
2562
|
-
types_Direction as Direction,
|
|
2563
|
-
};
|
|
2564
|
-
}
|
|
2498
|
+
}>>>, "size"> & _stitches_react_types_styled_component.TransformProps<{
|
|
2499
|
+
size?: "large" | "x-large" | undefined;
|
|
2500
|
+
}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLButtonElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement>>, {
|
|
2501
|
+
size?: "large" | "x-large" | undefined;
|
|
2502
|
+
}, {}>;
|
|
2503
|
+
declare type StyledTriggerProps = StrictComponentProps<typeof StyledTrigger>;
|
|
2565
2504
|
|
|
2566
|
-
interface
|
|
2567
|
-
/**
|
|
2568
|
-
* Event handler called when focus moves to the trigger after closing. It can
|
|
2569
|
-
* be prevented by calling event.preventDefault.
|
|
2570
|
-
*/
|
|
2571
|
-
onCloseAutoFocus?: (event: Event) => void;
|
|
2572
|
-
/**
|
|
2573
|
-
* Event handler called when focus moves to the trigger after closing. It can
|
|
2574
|
-
* be prevented by calling event.preventDefault.
|
|
2575
|
-
*/
|
|
2576
|
-
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
2577
|
-
/**
|
|
2578
|
-
* Event handler called when a pointer event occurs outside the bounds of the
|
|
2579
|
-
* component. It can be prevented by calling event.preventDefault.
|
|
2580
|
-
*/
|
|
2581
|
-
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
2582
|
-
/**
|
|
2583
|
-
* The preferred side of the anchor to render against when open. Will be
|
|
2584
|
-
* reversed when collisions occur and avoidCollisions is enabled. Only
|
|
2585
|
-
* available when position is set to popper.
|
|
2586
|
-
* @default 'bottom'
|
|
2587
|
-
*/
|
|
2588
|
-
side?: Side;
|
|
2589
|
-
/**
|
|
2590
|
-
* The distance in pixels from the anchor. Only available when position is set
|
|
2591
|
-
* to popper.
|
|
2592
|
-
* @default CONTENT_OFFSET
|
|
2593
|
-
*/
|
|
2594
|
-
sideOffset?: number;
|
|
2595
|
-
/**
|
|
2596
|
-
* The preferred alignment against the anchor. May change when collisions
|
|
2597
|
-
* occur. Only available when position is set to popper.
|
|
2598
|
-
* @default 'center'
|
|
2599
|
-
*/
|
|
2600
|
-
align?: Align;
|
|
2601
|
-
/**
|
|
2602
|
-
* An offset in pixels from the "start" or "end" alignment options. Only
|
|
2603
|
-
* available when position is set to popper.
|
|
2604
|
-
* @default 0
|
|
2605
|
-
*/
|
|
2606
|
-
alignOffset?: number;
|
|
2607
|
-
/**
|
|
2608
|
-
* When true, overrides the side andalign preferences to prevent collisions
|
|
2609
|
-
* with boundary edges. Only available when position is set to popper.
|
|
2610
|
-
* @default true
|
|
2611
|
-
*/
|
|
2612
|
-
avoidCollisions?: boolean;
|
|
2613
|
-
/**
|
|
2614
|
-
* The element used as the collision boundary. By default this is the
|
|
2615
|
-
* viewport, though you can provide additional element(s) to be included in
|
|
2616
|
-
* this check. Only available when position is set to popper.
|
|
2617
|
-
* @default viewport
|
|
2618
|
-
*/
|
|
2619
|
-
collisionBoundary?: Boundary;
|
|
2620
|
-
/**
|
|
2621
|
-
* The distance in pixels from the boundary edges where collision detection
|
|
2622
|
-
* should occur. Accepts a number (same for all sides), or a partial padding
|
|
2623
|
-
* object, for example: { top: 20, left: 20 }. Only available when position is
|
|
2624
|
-
* set to popper.
|
|
2625
|
-
* @default 0
|
|
2626
|
-
*/
|
|
2627
|
-
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
2628
|
-
/**
|
|
2629
|
-
* The sticky behavior on the align axis. "partial" will keep the content in the
|
|
2630
|
-
* boundary as long as the trigger is at least partially in the boundary whilst
|
|
2631
|
-
* "always" will keep the content in the boundary regardless. Only available
|
|
2632
|
-
* when position is set to popper.
|
|
2633
|
-
* @default 'partial'
|
|
2634
|
-
*/
|
|
2635
|
-
sticky?: Sticky;
|
|
2505
|
+
interface TriggerProps extends StyledTriggerProps, HoverEvents {
|
|
2636
2506
|
/**
|
|
2637
|
-
*
|
|
2638
|
-
* available when position is set to popper.
|
|
2639
|
-
* @default true
|
|
2507
|
+
* The content.
|
|
2640
2508
|
*/
|
|
2641
|
-
|
|
2509
|
+
children: react__default.ReactNode;
|
|
2642
2510
|
/**
|
|
2643
|
-
* The
|
|
2511
|
+
* The size of the trigger.
|
|
2512
|
+
* @default 'large'
|
|
2644
2513
|
*/
|
|
2645
|
-
|
|
2514
|
+
size?: StyledTriggerProps['size'];
|
|
2515
|
+
}
|
|
2516
|
+
declare const Trigger: react__default.ForwardRefExoticComponent<Omit<TriggerProps, "ref"> & react__default.RefAttributes<HTMLButtonElement>>;
|
|
2517
|
+
|
|
2518
|
+
declare type StyledValueProps = StrictComponentProps<typeof Value$1>;
|
|
2519
|
+
interface ValueProps extends StyledValueProps {
|
|
2646
2520
|
/**
|
|
2647
|
-
*
|
|
2648
|
-
*
|
|
2649
|
-
* applied.
|
|
2650
|
-
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
2651
|
-
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
2652
|
-
* to fit the remaining space between the trigger and the boundary edge.
|
|
2653
|
-
* @default 'visible'
|
|
2521
|
+
* The content that will be rendered inside the Select.Value when no value or
|
|
2522
|
+
* defaultValue is set.
|
|
2654
2523
|
*/
|
|
2655
|
-
|
|
2524
|
+
placeholder?: react__default.ReactNode;
|
|
2656
2525
|
/**
|
|
2657
|
-
*
|
|
2526
|
+
* The controlled content that will be rendered inside the Select.Value.
|
|
2658
2527
|
*/
|
|
2659
|
-
children?: ReactNode;
|
|
2528
|
+
children?: react__default.ReactNode;
|
|
2660
2529
|
}
|
|
2661
|
-
declare const
|
|
2530
|
+
declare const Value: react__default.ForwardRefExoticComponent<Omit<ValueProps, "ref"> & react__default.RefAttributes<HTMLSpanElement>>;
|
|
2662
2531
|
|
|
2663
|
-
declare const
|
|
2532
|
+
declare const StyledContent: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
2664
2533
|
'border-widths': {
|
|
2665
2534
|
readonly none: 0;
|
|
2666
2535
|
readonly sm: "1px";
|
|
@@ -3148,14 +3017,142 @@ declare const StyledLabel: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_des
|
|
|
3148
3017
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
3149
3018
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
3150
3019
|
};
|
|
3151
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
3152
|
-
declare type
|
|
3020
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectContentProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
3021
|
+
declare type StyledContentProps = StrictComponentProps<typeof StyledContent>;
|
|
3153
3022
|
|
|
3154
|
-
|
|
3023
|
+
declare type PointerDownOutsideEvent = CustomEvent<{
|
|
3024
|
+
originalEvent: PointerEvent;
|
|
3025
|
+
}>;
|
|
3026
|
+
declare type Boundary = Element | null | Array<Element | null>;
|
|
3027
|
+
declare type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
3028
|
+
declare type Align = 'start' | 'center' | 'end';
|
|
3029
|
+
declare type Padding = Partial<Record<Side, number>>;
|
|
3030
|
+
declare type Overflow = 'auto' | 'visible';
|
|
3031
|
+
declare type Size = 'medium' | 'large';
|
|
3032
|
+
declare type Sticky = 'partial' | 'always';
|
|
3033
|
+
declare type Direction = 'ltr' | 'rtl';
|
|
3034
|
+
|
|
3035
|
+
type types_PointerDownOutsideEvent = PointerDownOutsideEvent;
|
|
3036
|
+
type types_Boundary = Boundary;
|
|
3037
|
+
type types_Side = Side;
|
|
3038
|
+
type types_Align = Align;
|
|
3039
|
+
type types_Padding = Padding;
|
|
3040
|
+
type types_Overflow = Overflow;
|
|
3041
|
+
type types_Size = Size;
|
|
3042
|
+
type types_Sticky = Sticky;
|
|
3043
|
+
type types_Direction = Direction;
|
|
3044
|
+
declare namespace types {
|
|
3045
|
+
export {
|
|
3046
|
+
types_PointerDownOutsideEvent as PointerDownOutsideEvent,
|
|
3047
|
+
types_Boundary as Boundary,
|
|
3048
|
+
types_Side as Side,
|
|
3049
|
+
types_Align as Align,
|
|
3050
|
+
types_Padding as Padding,
|
|
3051
|
+
types_Overflow as Overflow,
|
|
3052
|
+
types_Size as Size,
|
|
3053
|
+
types_Sticky as Sticky,
|
|
3054
|
+
types_Direction as Direction,
|
|
3055
|
+
};
|
|
3155
3056
|
}
|
|
3156
|
-
declare const Label: react__default.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
3157
3057
|
|
|
3158
|
-
|
|
3058
|
+
interface ContentProps extends StyledContentProps {
|
|
3059
|
+
/**
|
|
3060
|
+
* Event handler called when focus moves to the trigger after closing. It can
|
|
3061
|
+
* be prevented by calling event.preventDefault.
|
|
3062
|
+
*/
|
|
3063
|
+
onCloseAutoFocus?: (event: Event) => void;
|
|
3064
|
+
/**
|
|
3065
|
+
* Event handler called when focus moves to the trigger after closing. It can
|
|
3066
|
+
* be prevented by calling event.preventDefault.
|
|
3067
|
+
*/
|
|
3068
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
3069
|
+
/**
|
|
3070
|
+
* Event handler called when a pointer event occurs outside the bounds of the
|
|
3071
|
+
* component. It can be prevented by calling event.preventDefault.
|
|
3072
|
+
*/
|
|
3073
|
+
onPointerDownOutside?: (event: PointerDownOutsideEvent) => void;
|
|
3074
|
+
/**
|
|
3075
|
+
* The preferred side of the anchor to render against when open. Will be
|
|
3076
|
+
* reversed when collisions occur and avoidCollisions is enabled. Only
|
|
3077
|
+
* available when position is set to popper.
|
|
3078
|
+
* @default 'bottom'
|
|
3079
|
+
*/
|
|
3080
|
+
side?: Side;
|
|
3081
|
+
/**
|
|
3082
|
+
* The distance in pixels from the anchor. Only available when position is set
|
|
3083
|
+
* to popper.
|
|
3084
|
+
* @default CONTENT_OFFSET
|
|
3085
|
+
*/
|
|
3086
|
+
sideOffset?: number;
|
|
3087
|
+
/**
|
|
3088
|
+
* The preferred alignment against the anchor. May change when collisions
|
|
3089
|
+
* occur. Only available when position is set to popper.
|
|
3090
|
+
* @default 'center'
|
|
3091
|
+
*/
|
|
3092
|
+
align?: Align;
|
|
3093
|
+
/**
|
|
3094
|
+
* An offset in pixels from the "start" or "end" alignment options. Only
|
|
3095
|
+
* available when position is set to popper.
|
|
3096
|
+
* @default 0
|
|
3097
|
+
*/
|
|
3098
|
+
alignOffset?: number;
|
|
3099
|
+
/**
|
|
3100
|
+
* When true, overrides the side andalign preferences to prevent collisions
|
|
3101
|
+
* with boundary edges. Only available when position is set to popper.
|
|
3102
|
+
* @default true
|
|
3103
|
+
*/
|
|
3104
|
+
avoidCollisions?: boolean;
|
|
3105
|
+
/**
|
|
3106
|
+
* The element used as the collision boundary. By default this is the
|
|
3107
|
+
* viewport, though you can provide additional element(s) to be included in
|
|
3108
|
+
* this check. Only available when position is set to popper.
|
|
3109
|
+
* @default viewport
|
|
3110
|
+
*/
|
|
3111
|
+
collisionBoundary?: Boundary;
|
|
3112
|
+
/**
|
|
3113
|
+
* The distance in pixels from the boundary edges where collision detection
|
|
3114
|
+
* should occur. Accepts a number (same for all sides), or a partial padding
|
|
3115
|
+
* object, for example: { top: 20, left: 20 }. Only available when position is
|
|
3116
|
+
* set to popper.
|
|
3117
|
+
* @default 0
|
|
3118
|
+
*/
|
|
3119
|
+
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
3120
|
+
/**
|
|
3121
|
+
* The sticky behavior on the align axis. "partial" will keep the content in the
|
|
3122
|
+
* boundary as long as the trigger is at least partially in the boundary whilst
|
|
3123
|
+
* "always" will keep the content in the boundary regardless. Only available
|
|
3124
|
+
* when position is set to popper.
|
|
3125
|
+
* @default 'partial'
|
|
3126
|
+
*/
|
|
3127
|
+
sticky?: Sticky;
|
|
3128
|
+
/**
|
|
3129
|
+
* Whether to hide the content when the trigger becomes fully occluded. Only
|
|
3130
|
+
* available when position is set to popper.
|
|
3131
|
+
* @default true
|
|
3132
|
+
*/
|
|
3133
|
+
hideWhenDetached?: boolean;
|
|
3134
|
+
/**
|
|
3135
|
+
* The max height for the content.
|
|
3136
|
+
*/
|
|
3137
|
+
maxHeight?: CSSProperties['maxHeight'];
|
|
3138
|
+
/**
|
|
3139
|
+
* Setting overflow as "visible" means that the content can extend beyond the
|
|
3140
|
+
* its collision boundary without any clipping or scrolling being
|
|
3141
|
+
* applied.
|
|
3142
|
+
* When set to "auto," a scrollbar is added if the content exceeds its
|
|
3143
|
+
* boundaries. If no maxHeight is defined, it will be automatically adjusted
|
|
3144
|
+
* to fit the remaining space between the trigger and the boundary edge.
|
|
3145
|
+
* @default 'visible'
|
|
3146
|
+
*/
|
|
3147
|
+
overflow?: Overflow;
|
|
3148
|
+
/**
|
|
3149
|
+
* Select's content.
|
|
3150
|
+
*/
|
|
3151
|
+
children?: ReactNode;
|
|
3152
|
+
}
|
|
3153
|
+
declare const Content: react__default.ForwardRefExoticComponent<Omit<ContentProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
3154
|
+
|
|
3155
|
+
declare const StyledLabel: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectLabelProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
3159
3156
|
'border-widths': {
|
|
3160
3157
|
readonly none: 0;
|
|
3161
3158
|
readonly sm: "1px";
|
|
@@ -3643,14 +3640,14 @@ declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq
|
|
|
3643
3640
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
3644
3641
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
3645
3642
|
};
|
|
3646
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.
|
|
3647
|
-
declare type
|
|
3643
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectLabelProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
3644
|
+
declare type StyledLabelProps = StrictComponentProps<typeof StyledLabel>;
|
|
3648
3645
|
|
|
3649
|
-
interface
|
|
3646
|
+
interface LabelProps extends StyledLabelProps {
|
|
3650
3647
|
}
|
|
3651
|
-
declare const
|
|
3648
|
+
declare const Label: react__default.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
3652
3649
|
|
|
3653
|
-
declare const
|
|
3650
|
+
declare const StyledSeparator: react.ForwardRefExoticComponent<Omit<Omit<_mirohq_design_system_stitches.StyledComponentProps<_stitches_react_types_styled_component.StyledComponent<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>>, {}, {}, _stitches_react_types_css_util.CSS<{}, {
|
|
3654
3651
|
'border-widths': {
|
|
3655
3652
|
readonly none: 0;
|
|
3656
3653
|
readonly sm: "1px";
|
|
@@ -4138,10 +4135,23 @@ declare const StyledSelect: react.ForwardRefExoticComponent<Omit<_mirohq_design_
|
|
|
4138
4135
|
_hover: (css: _stitches_react_types_css_util.CSSProperties) => {
|
|
4139
4136
|
'&:hover, &[data-hovered]': _stitches_react_types_css_util.CSSProperties;
|
|
4140
4137
|
};
|
|
4141
|
-
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps & react.RefAttributes<
|
|
4142
|
-
declare type
|
|
4138
|
+
}>>>, never> & _stitches_react_types_styled_component.TransformProps<{}, {}> & _mirohq_design_system_stitches.CustomStylesProps, "ref"> & react.RefAttributes<HTMLDivElement>> & _mirohq_design_system_stitches.StitchesInternals<react.ForwardRefExoticComponent<_radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>>, {}, {}>;
|
|
4139
|
+
declare type StyledSeparatorProps = StrictComponentProps<typeof StyledSeparator>;
|
|
4140
|
+
|
|
4141
|
+
interface SeparatorProps extends StyledSeparatorProps {
|
|
4142
|
+
}
|
|
4143
|
+
declare const Separator: react__default.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & react__default.RefAttributes<HTMLDivElement>>;
|
|
4144
|
+
|
|
4145
|
+
interface SelectProps$1 extends FormElementProps {
|
|
4146
|
+
direction?: Direction;
|
|
4147
|
+
open?: boolean;
|
|
4148
|
+
defaultOpen?: boolean;
|
|
4149
|
+
value?: string;
|
|
4150
|
+
defaultValue?: string;
|
|
4151
|
+
}
|
|
4152
|
+
declare type SelectProviderProps = SelectProps$1;
|
|
4143
4153
|
|
|
4144
|
-
interface SelectProps extends Omit<
|
|
4154
|
+
interface SelectProps extends SelectProviderProps, Omit<SelectProps$2, 'onOpenChange'>, Omit<StyledSelectContentProps, 'dir'> {
|
|
4145
4155
|
/**
|
|
4146
4156
|
* The value of the select when initially rendered. Use when you do not need
|
|
4147
4157
|
* to control the state of the select.
|
|
@@ -4187,25 +4197,6 @@ interface SelectProps extends Omit<StyledSelectProps, 'onOpenChange' | 'dir'> {
|
|
|
4187
4197
|
* name/value pair.
|
|
4188
4198
|
*/
|
|
4189
4199
|
name?: string;
|
|
4190
|
-
/**
|
|
4191
|
-
* When "true", prevents the user from interacting with select.
|
|
4192
|
-
*/
|
|
4193
|
-
disabled?: boolean;
|
|
4194
|
-
/**
|
|
4195
|
-
* When "true", prevents the user from opening with select, while allowing
|
|
4196
|
-
* focus and hover.
|
|
4197
|
-
*/
|
|
4198
|
-
'aria-disabled'?: Booleanish;
|
|
4199
|
-
/**
|
|
4200
|
-
* When "true", indicates that the user must select a value before the owning
|
|
4201
|
-
* form can be submitted.
|
|
4202
|
-
*/
|
|
4203
|
-
required?: boolean;
|
|
4204
|
-
/**
|
|
4205
|
-
* When "true", this indicates that the input component is valid, and a
|
|
4206
|
-
* green state is displayed, allowing the form to be submitted.
|
|
4207
|
-
*/
|
|
4208
|
-
valid?: boolean;
|
|
4209
4200
|
}
|
|
4210
4201
|
declare const Select: react__default.ForwardRefExoticComponent<SelectProps> & Partials;
|
|
4211
4202
|
interface Partials {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirohq/design-system-select",
|
|
3
|
-
"version": "0.3.0-forms.
|
|
3
|
+
"version": "0.3.0-forms.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Miro",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"@radix-ui/react-select": "^2.0.0",
|
|
30
30
|
"@react-aria/interactions": "^3.13.0",
|
|
31
31
|
"@react-types/shared": "^3.16.0",
|
|
32
|
-
"@mirohq/design-system-
|
|
33
|
-
"@mirohq/design-system-
|
|
34
|
-
"@mirohq/design-system-primitive": "^1.1.2-forms.
|
|
35
|
-
"@mirohq/design-system-base-form": "^0.1.0-forms.1",
|
|
32
|
+
"@mirohq/design-system-base-form": "^0.1.0-forms.2",
|
|
33
|
+
"@mirohq/design-system-icons": "^0.36.2-forms.3",
|
|
34
|
+
"@mirohq/design-system-primitive": "^1.1.2-forms.1",
|
|
36
35
|
"@mirohq/design-system-scroll-area": "^0.2.0",
|
|
36
|
+
"@mirohq/design-system-stitches": "^2.6.0",
|
|
37
37
|
"@mirohq/design-system-styles": "^1.1.19",
|
|
38
38
|
"@mirohq/design-system-types": "^0.6.2",
|
|
39
|
-
"@mirohq/design-system-utils": "^0.15.0-forms.
|
|
39
|
+
"@mirohq/design-system-utils": "^0.15.0-forms.2"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "rollup -c ../../../rollup.config.js",
|