@cerberus-design/react 0.15.0-next-e5dbdbd → 0.15.0-next-b2ad645
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/build/legacy/_tsup-dts-rollup.d.cts +99 -0
- package/build/legacy/components/Select.cjs +48 -32
- package/build/legacy/components/Select.cjs.map +1 -1
- package/build/legacy/components/Select.server.cjs +78 -0
- package/build/legacy/components/Select.server.cjs.map +1 -0
- package/build/legacy/index.cjs +159 -113
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +99 -0
- package/build/modern/chunk-FV4UITYD.js +97 -0
- package/build/modern/chunk-FV4UITYD.js.map +1 -0
- package/build/modern/chunk-YWMPB2JR.js +41 -0
- package/build/modern/chunk-YWMPB2JR.js.map +1 -0
- package/build/modern/components/Select.js +2 -1
- package/build/modern/components/Select.server.js +33 -0
- package/build/modern/components/Select.server.js.map +1 -0
- package/build/modern/index.js +41 -11
- package/build/modern/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Select.server.tsx +80 -0
- package/src/components/Select.tsx +37 -28
- package/src/index.ts +1 -0
- package/build/modern/chunk-X6WFDKKJ.js +0 -90
- package/build/modern/chunk-X6WFDKKJ.js.map +0 -1
|
@@ -127,6 +127,7 @@ import { rectIntersection } from '@dnd-kit/core';
|
|
|
127
127
|
import { RefAttributes } from 'react';
|
|
128
128
|
import { RefObject } from 'react';
|
|
129
129
|
import { ScreenReaderInstructions } from '@dnd-kit/core';
|
|
130
|
+
import { Select as Select_2 } from '@ark-ui/react/select';
|
|
130
131
|
import { SelectItemGroupLabelProps } from '@ark-ui/react/select';
|
|
131
132
|
import { SelectItemGroupProps } from '@ark-ui/react/select';
|
|
132
133
|
import { SelectItemProps } from '@ark-ui/react/select';
|
|
@@ -2923,6 +2924,13 @@ declare function Select(props: SelectProps): JSX_2.Element;
|
|
|
2923
2924
|
export { Select }
|
|
2924
2925
|
export { Select as Select_alias_1 }
|
|
2925
2926
|
|
|
2927
|
+
/**
|
|
2928
|
+
* Select Primitive: The trigger that clears the selected value
|
|
2929
|
+
*/
|
|
2930
|
+
declare const SelectClearTrigger: ForwardRefExoticComponent<Select_2.ClearTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
2931
|
+
export { SelectClearTrigger }
|
|
2932
|
+
export { SelectClearTrigger as SelectClearTrigger_alias_1 }
|
|
2933
|
+
|
|
2926
2934
|
declare interface SelectCollection {
|
|
2927
2935
|
/**
|
|
2928
2936
|
* The items to be displayed in the dropdown list.
|
|
@@ -2953,13 +2961,104 @@ declare interface SelectCollectionItem {
|
|
|
2953
2961
|
export { SelectCollectionItem }
|
|
2954
2962
|
export { SelectCollectionItem as SelectCollectionItem_alias_1 }
|
|
2955
2963
|
|
|
2964
|
+
/**
|
|
2965
|
+
* Select Primitive: The content of the dropdown (i.e. the container itself)
|
|
2966
|
+
*/
|
|
2967
|
+
declare const SelectContent: ForwardRefExoticComponent<Select_2.ContentProps & RefAttributes<HTMLDivElement>>;
|
|
2968
|
+
export { SelectContent }
|
|
2969
|
+
export { SelectContent as SelectContent_alias_1 }
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Select Primitive: The wrapper to the select trigger that opens the dropdown
|
|
2973
|
+
*/
|
|
2974
|
+
declare const SelectControl: ForwardRefExoticComponent<Select_2.ControlProps & RefAttributes<HTMLDivElement>>;
|
|
2975
|
+
export { SelectControl }
|
|
2976
|
+
export { SelectControl as SelectControl_alias_1 }
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* Select Primitive: The indicator that appears in the trigger
|
|
2980
|
+
*/
|
|
2981
|
+
declare const SelectIndicator: ForwardRefExoticComponent<Select_2.IndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
2982
|
+
export { SelectIndicator }
|
|
2983
|
+
export { SelectIndicator as SelectIndicator_alias_1 }
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* Select Primitive: The container for an item option
|
|
2987
|
+
*/
|
|
2988
|
+
declare const SelectItem: ForwardRefExoticComponent<Select_2.ItemProps & RefAttributes<HTMLDivElement>>;
|
|
2989
|
+
export { SelectItem }
|
|
2990
|
+
export { SelectItem as SelectItem_alias_1 }
|
|
2991
|
+
|
|
2992
|
+
/**
|
|
2993
|
+
* Select Primitive: The container for a group of item options
|
|
2994
|
+
*/
|
|
2995
|
+
declare const SelectItemGroup: ForwardRefExoticComponent<Select_2.ItemGroupProps & RefAttributes<HTMLDivElement>>;
|
|
2996
|
+
export { SelectItemGroup }
|
|
2997
|
+
export { SelectItemGroup as SelectItemGroup_alias_1 }
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Select Primitive: The label for a group of item options
|
|
3001
|
+
*/
|
|
3002
|
+
declare const SelectItemGroupLabel: ForwardRefExoticComponent<Select_2.ItemGroupLabelProps & RefAttributes<HTMLDivElement>>;
|
|
3003
|
+
export { SelectItemGroupLabel }
|
|
3004
|
+
export { SelectItemGroupLabel as SelectItemGroupLabel_alias_1 }
|
|
3005
|
+
|
|
3006
|
+
/**
|
|
3007
|
+
* Select Primitive: The indicator for an item option
|
|
3008
|
+
*/
|
|
3009
|
+
declare const SelectItemIndicator: ForwardRefExoticComponent<Select_2.ItemIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
3010
|
+
export { SelectItemIndicator }
|
|
3011
|
+
export { SelectItemIndicator as SelectItemIndicator_alias_1 }
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* Select Primitive: The text for an item option
|
|
3015
|
+
*/
|
|
3016
|
+
declare const SelectItemText: ForwardRefExoticComponent<Select_2.ItemTextProps & RefAttributes<HTMLDivElement>>;
|
|
3017
|
+
export { SelectItemText }
|
|
3018
|
+
export { SelectItemText as SelectItemText_alias_1 }
|
|
3019
|
+
|
|
3020
|
+
/**
|
|
3021
|
+
* Select Primitive: The label that appears above the select input
|
|
3022
|
+
*/
|
|
3023
|
+
declare const SelectLabel: ForwardRefExoticComponent<Select_2.LabelProps & RefAttributes<HTMLLabelElement>>;
|
|
3024
|
+
export { SelectLabel }
|
|
3025
|
+
export { SelectLabel as SelectLabel_alias_1 }
|
|
3026
|
+
|
|
3027
|
+
/**
|
|
3028
|
+
* Select Primitive: The positioner that contains the dropdown
|
|
3029
|
+
*/
|
|
3030
|
+
declare const SelectPositioner: ForwardRefExoticComponent<Select_2.PositionerProps & RefAttributes<HTMLDivElement>>;
|
|
3031
|
+
export { SelectPositioner }
|
|
3032
|
+
export { SelectPositioner as SelectPositioner_alias_1 }
|
|
3033
|
+
|
|
2956
3034
|
declare type SelectProps = SelectRootProps<SelectCollectionItem> & BaseSelectProps & SelectVariantProps;
|
|
2957
3035
|
export { SelectProps }
|
|
2958
3036
|
export { SelectProps as SelectProps_alias_1 }
|
|
2959
3037
|
|
|
3038
|
+
/**
|
|
3039
|
+
* Select Primitive: The context provider for the Select family
|
|
3040
|
+
*/
|
|
3041
|
+
declare function SelectRoot(props: SelectRootProps<SelectCollectionItem>): JSX_2.Element;
|
|
3042
|
+
export { SelectRoot }
|
|
3043
|
+
export { SelectRoot as SelectRoot_alias_1 }
|
|
3044
|
+
|
|
3045
|
+
/**
|
|
3046
|
+
* Select Primitive: The trigger that opens the dropdown
|
|
3047
|
+
*/
|
|
3048
|
+
declare const SelectTrigger: ForwardRefExoticComponent<Select_2.TriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
3049
|
+
export { SelectTrigger }
|
|
3050
|
+
export { SelectTrigger as SelectTrigger_alias_1 }
|
|
3051
|
+
|
|
2960
3052
|
export { SelectValueChangeDetails }
|
|
2961
3053
|
export { SelectValueChangeDetails as SelectValueChangeDetails_alias_1 }
|
|
2962
3054
|
|
|
3055
|
+
/**
|
|
3056
|
+
* Select Primitive: The text that appears in the trigger
|
|
3057
|
+
*/
|
|
3058
|
+
declare const SelectValueText: ForwardRefExoticComponent<Select_2.ValueTextProps & RefAttributes<HTMLSpanElement>>;
|
|
3059
|
+
export { SelectValueText }
|
|
3060
|
+
export { SelectValueText as SelectValueText_alias_1 }
|
|
3061
|
+
|
|
2963
3062
|
export { Sensor }
|
|
2964
3063
|
|
|
2965
3064
|
export { SensorContext }
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Text
|
|
3
|
+
} from "./chunk-RU5LOXWI.js";
|
|
4
|
+
import {
|
|
5
|
+
SelectContent,
|
|
6
|
+
SelectControl,
|
|
7
|
+
SelectIndicator,
|
|
8
|
+
SelectItem,
|
|
9
|
+
SelectItemGroup,
|
|
10
|
+
SelectItemGroupLabel,
|
|
11
|
+
SelectItemIndicator,
|
|
12
|
+
SelectItemText,
|
|
13
|
+
SelectLabel,
|
|
14
|
+
SelectPositioner,
|
|
15
|
+
SelectRoot,
|
|
16
|
+
SelectTrigger,
|
|
17
|
+
SelectValueText
|
|
18
|
+
} from "./chunk-YWMPB2JR.js";
|
|
19
|
+
import {
|
|
20
|
+
Portal
|
|
21
|
+
} from "./chunk-IQJDVFPP.js";
|
|
22
|
+
import {
|
|
23
|
+
Show
|
|
24
|
+
} from "./chunk-BUVVRQLZ.js";
|
|
25
|
+
import {
|
|
26
|
+
useCerberusContext
|
|
27
|
+
} from "./chunk-GITT5645.js";
|
|
28
|
+
|
|
29
|
+
// src/components/Select.tsx
|
|
30
|
+
import {
|
|
31
|
+
Select as ArkSelect,
|
|
32
|
+
createListCollection
|
|
33
|
+
} from "@ark-ui/react/select";
|
|
34
|
+
import {
|
|
35
|
+
select
|
|
36
|
+
} from "@cerberus/styled-system/recipes";
|
|
37
|
+
import { cx } from "@cerberus/styled-system/css";
|
|
38
|
+
import { HStack } from "@cerberus/styled-system/jsx";
|
|
39
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
40
|
+
function Select(props) {
|
|
41
|
+
const { collection, label, placeholder, size, ...rootProps } = props;
|
|
42
|
+
const { icons } = useCerberusContext();
|
|
43
|
+
const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons;
|
|
44
|
+
const styles = select({ size });
|
|
45
|
+
return /* @__PURE__ */ jsxs(SelectRoot, { className: styles.root, collection, ...rootProps, children: [
|
|
46
|
+
/* @__PURE__ */ jsxs(SelectLabel, { className: styles.label, children: [
|
|
47
|
+
label,
|
|
48
|
+
/* @__PURE__ */ jsx(Show, { when: props.required, children: /* @__PURE__ */ jsx(Text, { as: "span", color: "page.text.100", children: "(required)" }) })
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ jsx(SelectControl, { className: styles.control, children: /* @__PURE__ */ jsxs(SelectTrigger, { className: styles.trigger, children: [
|
|
51
|
+
/* @__PURE__ */ jsx(SelectValueText, { placeholder }),
|
|
52
|
+
/* @__PURE__ */ jsxs(HStack, { children: [
|
|
53
|
+
/* @__PURE__ */ jsx(Show, { when: props.invalid, children: /* @__PURE__ */ jsx(InvalidIcon, { "data-part": "invalid-icon" }) }),
|
|
54
|
+
/* @__PURE__ */ jsx(SelectIndicator, { className: styles.indicator, children: /* @__PURE__ */ jsx(SelectArrow, {}) })
|
|
55
|
+
] })
|
|
56
|
+
] }) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(SelectPositioner, { className: styles.positioner, children: /* @__PURE__ */ jsx(SelectContent, { className: styles.content, children: props.children }) }) }),
|
|
58
|
+
/* @__PURE__ */ jsx(ArkSelect.HiddenSelect, {})
|
|
59
|
+
] });
|
|
60
|
+
}
|
|
61
|
+
function Option(props) {
|
|
62
|
+
const { item, ...itemProps } = props;
|
|
63
|
+
const { icons } = useCerberusContext();
|
|
64
|
+
const { selectChecked: CheckedIcon } = icons;
|
|
65
|
+
const styles = select();
|
|
66
|
+
return /* @__PURE__ */ jsxs(SelectItem, { ...itemProps, item, className: styles.item, children: [
|
|
67
|
+
/* @__PURE__ */ jsx(SelectItemText, { className: styles.itemText, children: item?.label }),
|
|
68
|
+
/* @__PURE__ */ jsx(SelectItemIndicator, { className: styles.itemIndicator, children: /* @__PURE__ */ jsx(CheckedIcon, {}) })
|
|
69
|
+
] });
|
|
70
|
+
}
|
|
71
|
+
function OptionGroup(props) {
|
|
72
|
+
return /* @__PURE__ */ jsx(SelectItemGroup, { ...props });
|
|
73
|
+
}
|
|
74
|
+
function OptionGroupLabel(props) {
|
|
75
|
+
const styles = select();
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
SelectItemGroupLabel,
|
|
78
|
+
{
|
|
79
|
+
...props,
|
|
80
|
+
className: cx(props.className, styles.itemGroupLabel)
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
function createSelectCollection(collection) {
|
|
85
|
+
return createListCollection({
|
|
86
|
+
items: collection
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
Select,
|
|
92
|
+
Option,
|
|
93
|
+
OptionGroup,
|
|
94
|
+
OptionGroupLabel,
|
|
95
|
+
createSelectCollection
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=chunk-FV4UITYD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Select.tsx"],"sourcesContent":["'use client'\n\nimport {\n Select as ArkSelect,\n createListCollection,\n type SelectRootProps,\n type SelectItemProps,\n type SelectItemGroupProps,\n type SelectItemGroupLabelProps,\n type ListCollection,\n type SelectValueChangeDetails,\n} from '@ark-ui/react/select'\nimport {\n select,\n type SelectVariantProps,\n} from '@cerberus/styled-system/recipes'\nimport { cx } from '@cerberus/styled-system/css'\nimport { HStack } from '@cerberus/styled-system/jsx'\nimport { useCerberusContext } from '../context/cerberus'\nimport { Portal } from './Portal'\nimport { Show } from './Show'\nimport { Text } from './Text'\nimport {\n SelectContent,\n SelectControl,\n SelectIndicator,\n SelectItem,\n SelectItemGroup,\n SelectItemGroupLabel,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPositioner,\n SelectRoot,\n SelectTrigger,\n SelectValueText,\n} from './Select.server'\n\n/**\n * This module contains the Select components.\n * @module 'react/select'\n */\n\nexport interface SelectCollectionItem {\n /**\n * What is displayed in the dropdown list.\n */\n label: string\n /**\n * The value of the selected item used in the form.\n */\n value: string\n /**\n * If the item is disabled.\n */\n disabled?: boolean\n}\n\nexport interface SelectCollection {\n /**\n * The items to be displayed in the dropdown list.\n */\n items: SelectCollectionItem[]\n}\n\nexport interface BaseSelectProps {\n /**\n * The placeholder text when no option is selected.\n */\n placeholder?: string\n /**\n * The label of the select.\n */\n label: string\n}\n\nexport type SelectProps = SelectRootProps<SelectCollectionItem> &\n BaseSelectProps &\n SelectVariantProps\n\n/**\n * The Select component is a dropdown list that allows users to select an\n * option from a list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * import { Select, Option, createListCollection } from '@cerberus-design/react'\n *\n * export function SelectBasicPreview() {\n * const collection = createListCollection({\n * items: [\n * { label: 'Hades', value: 'hades' },\n * { label: 'Persephone', value: 'persephone' },\n * { label: 'Zeus', value: 'zeus', disabled: true },\n * ]\n * })\n *\n * return (\n * <Select\n * collection={collection}\n * label=\"Select Relative\"\n * placeholder=\"Choose option\"\n * >\n * {collection.items.map((item) => (\n * <Option key={item.value} item={item} />\n * ))}\n * </Select>\n * )\n * }\n */\nexport function Select(props: SelectProps) {\n const { collection, label, placeholder, size, ...rootProps } = props\n const { icons } = useCerberusContext()\n const { selectArrow: SelectArrow, invalid: InvalidIcon } = icons\n\n const styles = select({ size })\n\n return (\n <SelectRoot className={styles.root} collection={collection} {...rootProps}>\n <SelectLabel className={styles.label}>\n {label}\n <Show when={props.required}>\n <Text as=\"span\" color=\"page.text.100\">\n (required)\n </Text>\n </Show>\n </SelectLabel>\n\n <SelectControl className={styles.control}>\n <SelectTrigger className={styles.trigger}>\n <SelectValueText placeholder={placeholder} />\n\n <HStack>\n <Show when={props.invalid}>\n <InvalidIcon data-part=\"invalid-icon\" />\n </Show>\n <SelectIndicator className={styles.indicator}>\n <SelectArrow />\n </SelectIndicator>\n </HStack>\n </SelectTrigger>\n </SelectControl>\n\n <Portal>\n <SelectPositioner className={styles.positioner}>\n <SelectContent className={styles.content}>\n {props.children}\n </SelectContent>\n </SelectPositioner>\n </Portal>\n\n <ArkSelect.HiddenSelect />\n </SelectRoot>\n )\n}\n\nexport interface OptionProps extends SelectItemProps {\n /**\n * The CollectionListItem to be displayed in the dropdown list.\n */\n item: SelectCollectionItem\n}\n\nexport function Option(props: OptionProps) {\n const { item, ...itemProps } = props\n\n const { icons } = useCerberusContext()\n const { selectChecked: CheckedIcon } = icons\n\n const styles = select()\n\n return (\n <SelectItem {...itemProps} item={item} className={styles.item}>\n <SelectItemText className={styles.itemText}>{item?.label}</SelectItemText>\n <SelectItemIndicator className={styles.itemIndicator}>\n <CheckedIcon />\n </SelectItemIndicator>\n </SelectItem>\n )\n}\n\n/**\n * The OptionGroup component is a group of options in the dropdown list.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroup>\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ...\n * </OptionGroup>\n * ```\n */\nexport function OptionGroup(props: SelectItemGroupProps) {\n return <SelectItemGroup {...props} />\n}\n\n/**\n * The OptionGroupLabel component is the label of the OptionGroup.\n * @definition [Select docs](https://cerberus.digitalu.design/react/select)\n * @definition [ARK docs](https://ark-ui.com/react/docs/components/select)\n * @example\n * ```tsx\n * <OptionGroupLabel>Greek gods</OptionGroupLabel>\n * ```\n */\nexport function OptionGroupLabel(props: SelectItemGroupLabelProps) {\n const styles = select()\n return (\n <SelectItemGroupLabel\n {...props}\n className={cx(props.className, styles.itemGroupLabel)}\n />\n )\n}\n\n/**\n * A helper function to create a SelectCollection object.\n * @param collection - An array of SelectCollectionItem objects that matches\n * the following shape:\n * ```ts\n * [{ label: 'Hades', value: 'hades', disabled?: true }]\n * ```\n */\nexport function createSelectCollection(\n collection: SelectCollectionItem[],\n): ListCollection<SelectCollectionItem> {\n return createListCollection({\n items: collection,\n })\n}\n\nexport type { SelectValueChangeDetails, ListCollection }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA;AAAA,EACE,UAAU;AAAA,EACV;AAAA,OAOK;AACP;AAAA,EACE;AAAA,OAEK;AACP,SAAS,UAAU;AACnB,SAAS,cAAc;AAuGjB,SAGI,KAHJ;AATC,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,YAAY,OAAO,aAAa,MAAM,GAAG,UAAU,IAAI;AAC/D,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,aAAa,aAAa,SAAS,YAAY,IAAI;AAE3D,QAAM,SAAS,OAAO,EAAE,KAAK,CAAC;AAE9B,SACE,qBAAC,cAAW,WAAW,OAAO,MAAM,YAAyB,GAAG,WAC9D;AAAA,yBAAC,eAAY,WAAW,OAAO,OAC5B;AAAA;AAAA,MACD,oBAAC,QAAK,MAAM,MAAM,UAChB,8BAAC,QAAK,IAAG,QAAO,OAAM,iBAAgB,wBAEtC,GACF;AAAA,OACF;AAAA,IAEA,oBAAC,iBAAc,WAAW,OAAO,SAC/B,+BAAC,iBAAc,WAAW,OAAO,SAC/B;AAAA,0BAAC,mBAAgB,aAA0B;AAAA,MAE3C,qBAAC,UACC;AAAA,4BAAC,QAAK,MAAM,MAAM,SAChB,8BAAC,eAAY,aAAU,gBAAe,GACxC;AAAA,QACA,oBAAC,mBAAgB,WAAW,OAAO,WACjC,8BAAC,eAAY,GACf;AAAA,SACF;AAAA,OACF,GACF;AAAA,IAEA,oBAAC,UACC,8BAAC,oBAAiB,WAAW,OAAO,YAClC,8BAAC,iBAAc,WAAW,OAAO,SAC9B,gBAAM,UACT,GACF,GACF;AAAA,IAEA,oBAAC,UAAU,cAAV,EAAuB;AAAA,KAC1B;AAEJ;AASO,SAAS,OAAO,OAAoB;AACzC,QAAM,EAAE,MAAM,GAAG,UAAU,IAAI;AAE/B,QAAM,EAAE,MAAM,IAAI,mBAAmB;AACrC,QAAM,EAAE,eAAe,YAAY,IAAI;AAEvC,QAAM,SAAS,OAAO;AAEtB,SACE,qBAAC,cAAY,GAAG,WAAW,MAAY,WAAW,OAAO,MACvD;AAAA,wBAAC,kBAAe,WAAW,OAAO,UAAW,gBAAM,OAAM;AAAA,IACzD,oBAAC,uBAAoB,WAAW,OAAO,eACrC,8BAAC,eAAY,GACf;AAAA,KACF;AAEJ;AAcO,SAAS,YAAY,OAA6B;AACvD,SAAO,oBAAC,mBAAiB,GAAG,OAAO;AACrC;AAWO,SAAS,iBAAiB,OAAkC;AACjE,QAAM,SAAS,OAAO;AACtB,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,GAAG,MAAM,WAAW,OAAO,cAAc;AAAA;AAAA,EACtD;AAEJ;AAUO,SAAS,uBACd,YACsC;AACtC,SAAO,qBAAqB;AAAA,IAC1B,OAAO;AAAA,EACT,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// src/components/Select.server.tsx
|
|
2
|
+
import { Select as ArkSelect } from "@ark-ui/react/select";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
function SelectRoot(props) {
|
|
5
|
+
const { children, ...rootProps } = props;
|
|
6
|
+
return /* @__PURE__ */ jsxs(ArkSelect.Root, { ...rootProps, children: [
|
|
7
|
+
children,
|
|
8
|
+
/* @__PURE__ */ jsx(ArkSelect.HiddenSelect, {})
|
|
9
|
+
] });
|
|
10
|
+
}
|
|
11
|
+
var SelectLabel = ArkSelect.Label;
|
|
12
|
+
var SelectControl = ArkSelect.Control;
|
|
13
|
+
var SelectTrigger = ArkSelect.Trigger;
|
|
14
|
+
var SelectValueText = ArkSelect.ValueText;
|
|
15
|
+
var SelectIndicator = ArkSelect.Indicator;
|
|
16
|
+
var SelectClearTrigger = ArkSelect.ClearTrigger;
|
|
17
|
+
var SelectPositioner = ArkSelect.Positioner;
|
|
18
|
+
var SelectContent = ArkSelect.Content;
|
|
19
|
+
var SelectItemGroup = ArkSelect.ItemGroup;
|
|
20
|
+
var SelectItemGroupLabel = ArkSelect.ItemGroupLabel;
|
|
21
|
+
var SelectItem = ArkSelect.Item;
|
|
22
|
+
var SelectItemText = ArkSelect.ItemText;
|
|
23
|
+
var SelectItemIndicator = ArkSelect.ItemIndicator;
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
SelectRoot,
|
|
27
|
+
SelectLabel,
|
|
28
|
+
SelectControl,
|
|
29
|
+
SelectTrigger,
|
|
30
|
+
SelectValueText,
|
|
31
|
+
SelectIndicator,
|
|
32
|
+
SelectClearTrigger,
|
|
33
|
+
SelectPositioner,
|
|
34
|
+
SelectContent,
|
|
35
|
+
SelectItemGroup,
|
|
36
|
+
SelectItemGroupLabel,
|
|
37
|
+
SelectItem,
|
|
38
|
+
SelectItemText,
|
|
39
|
+
SelectItemIndicator
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=chunk-YWMPB2JR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Select.server.tsx"],"sourcesContent":["import { Select as ArkSelect, type SelectRootProps } from '@ark-ui/react/select'\nimport type { SelectCollectionItem } from './Select'\n\n/**\n * Select Primitive: The context provider for the Select family\n */\nexport function SelectRoot(props: SelectRootProps<SelectCollectionItem>) {\n const { children, ...rootProps } = props\n return (\n <ArkSelect.Root {...rootProps}>\n {children}\n <ArkSelect.HiddenSelect />\n </ArkSelect.Root>\n )\n}\n\n/**\n * Select Primitive: The label that appears above the select input\n */\nexport const SelectLabel = ArkSelect.Label\n\n/**\n * Select Primitive: The wrapper to the select trigger that opens the dropdown\n */\nexport const SelectControl = ArkSelect.Control\n\n/**\n * Select Primitive: The trigger that opens the dropdown\n */\nexport const SelectTrigger = ArkSelect.Trigger\n\n/**\n * Select Primitive: The text that appears in the trigger\n */\nexport const SelectValueText = ArkSelect.ValueText\n\n/**\n * Select Primitive: The indicator that appears in the trigger\n */\nexport const SelectIndicator = ArkSelect.Indicator\n\n/**\n * Select Primitive: The trigger that clears the selected value\n */\nexport const SelectClearTrigger = ArkSelect.ClearTrigger\n\n/**\n * Select Primitive: The positioner that contains the dropdown\n */\nexport const SelectPositioner = ArkSelect.Positioner\n\n/**\n * Select Primitive: The content of the dropdown (i.e. the container itself)\n */\nexport const SelectContent = ArkSelect.Content\n\n/**\n * Select Primitive: The container for a group of item options\n */\nexport const SelectItemGroup = ArkSelect.ItemGroup\n\n/**\n * Select Primitive: The label for a group of item options\n */\nexport const SelectItemGroupLabel = ArkSelect.ItemGroupLabel\n\n/**\n * Select Primitive: The container for an item option\n */\nexport const SelectItem = ArkSelect.Item\n\n/**\n * Select Primitive: The text for an item option\n */\nexport const SelectItemText = ArkSelect.ItemText\n\n/**\n * Select Primitive: The indicator for an item option\n */\nexport const SelectItemIndicator = ArkSelect.ItemIndicator\n"],"mappings":";AAAA,SAAS,UAAU,iBAAuC;AAStD,SAEE,KAFF;AAHG,SAAS,WAAW,OAA8C;AACvE,QAAM,EAAE,UAAU,GAAG,UAAU,IAAI;AACnC,SACE,qBAAC,UAAU,MAAV,EAAgB,GAAG,WACjB;AAAA;AAAA,IACD,oBAAC,UAAU,cAAV,EAAuB;AAAA,KAC1B;AAEJ;AAKO,IAAM,cAAc,UAAU;AAK9B,IAAM,gBAAgB,UAAU;AAKhC,IAAM,gBAAgB,UAAU;AAKhC,IAAM,kBAAkB,UAAU;AAKlC,IAAM,kBAAkB,UAAU;AAKlC,IAAM,qBAAqB,UAAU;AAKrC,IAAM,mBAAmB,UAAU;AAKnC,IAAM,gBAAgB,UAAU;AAKhC,IAAM,kBAAkB,UAAU;AAKlC,IAAM,uBAAuB,UAAU;AAKvC,IAAM,aAAa,UAAU;AAK7B,IAAM,iBAAiB,UAAU;AAKjC,IAAM,sBAAsB,UAAU;","names":[]}
|
|
@@ -5,8 +5,9 @@ import {
|
|
|
5
5
|
OptionGroupLabel,
|
|
6
6
|
Select,
|
|
7
7
|
createSelectCollection
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-FV4UITYD.js";
|
|
9
9
|
import "../chunk-RU5LOXWI.js";
|
|
10
|
+
import "../chunk-YWMPB2JR.js";
|
|
10
11
|
import "../chunk-IQJDVFPP.js";
|
|
11
12
|
import "../chunk-BUVVRQLZ.js";
|
|
12
13
|
import "../chunk-GITT5645.js";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SelectClearTrigger,
|
|
3
|
+
SelectContent,
|
|
4
|
+
SelectControl,
|
|
5
|
+
SelectIndicator,
|
|
6
|
+
SelectItem,
|
|
7
|
+
SelectItemGroup,
|
|
8
|
+
SelectItemGroupLabel,
|
|
9
|
+
SelectItemIndicator,
|
|
10
|
+
SelectItemText,
|
|
11
|
+
SelectLabel,
|
|
12
|
+
SelectPositioner,
|
|
13
|
+
SelectRoot,
|
|
14
|
+
SelectTrigger,
|
|
15
|
+
SelectValueText
|
|
16
|
+
} from "../chunk-YWMPB2JR.js";
|
|
17
|
+
export {
|
|
18
|
+
SelectClearTrigger,
|
|
19
|
+
SelectContent,
|
|
20
|
+
SelectControl,
|
|
21
|
+
SelectIndicator,
|
|
22
|
+
SelectItem,
|
|
23
|
+
SelectItemGroup,
|
|
24
|
+
SelectItemGroupLabel,
|
|
25
|
+
SelectItemIndicator,
|
|
26
|
+
SelectItemText,
|
|
27
|
+
SelectLabel,
|
|
28
|
+
SelectPositioner,
|
|
29
|
+
SelectRoot,
|
|
30
|
+
SelectTrigger,
|
|
31
|
+
SelectValueText
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=Select.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/build/modern/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThemeProvider,
|
|
3
|
+
useThemeContext
|
|
4
|
+
} from "./chunk-EB37HRCN.js";
|
|
1
5
|
import {
|
|
2
6
|
Modal
|
|
3
7
|
} from "./chunk-Q3I4H6EC.js";
|
|
@@ -20,6 +24,10 @@ import {
|
|
|
20
24
|
import {
|
|
21
25
|
NavMenuTrigger
|
|
22
26
|
} from "./chunk-BRVZVAPT.js";
|
|
27
|
+
import {
|
|
28
|
+
ConfirmModal,
|
|
29
|
+
useConfirmModal
|
|
30
|
+
} from "./chunk-BHB56M7S.js";
|
|
23
31
|
import {
|
|
24
32
|
CTAModal,
|
|
25
33
|
useCTAModal
|
|
@@ -37,9 +45,8 @@ import {
|
|
|
37
45
|
usePromptModal
|
|
38
46
|
} from "./chunk-SD3OVTHT.js";
|
|
39
47
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} from "./chunk-EB37HRCN.js";
|
|
48
|
+
Td
|
|
49
|
+
} from "./chunk-3R4TIF2X.js";
|
|
43
50
|
import {
|
|
44
51
|
Textarea
|
|
45
52
|
} from "./chunk-JIJM6JFJ.js";
|
|
@@ -55,20 +62,32 @@ import {
|
|
|
55
62
|
import {
|
|
56
63
|
Tooltip
|
|
57
64
|
} from "./chunk-LPALHB6R.js";
|
|
58
|
-
import {
|
|
59
|
-
ConfirmModal,
|
|
60
|
-
useConfirmModal
|
|
61
|
-
} from "./chunk-BHB56M7S.js";
|
|
62
65
|
import {
|
|
63
66
|
Option,
|
|
64
67
|
OptionGroup,
|
|
65
68
|
OptionGroupLabel,
|
|
66
69
|
Select,
|
|
67
70
|
createSelectCollection
|
|
68
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FV4UITYD.js";
|
|
69
72
|
import {
|
|
70
73
|
Text
|
|
71
74
|
} from "./chunk-RU5LOXWI.js";
|
|
75
|
+
import {
|
|
76
|
+
SelectClearTrigger,
|
|
77
|
+
SelectContent,
|
|
78
|
+
SelectControl,
|
|
79
|
+
SelectIndicator,
|
|
80
|
+
SelectItem,
|
|
81
|
+
SelectItemGroup,
|
|
82
|
+
SelectItemGroupLabel,
|
|
83
|
+
SelectItemIndicator,
|
|
84
|
+
SelectItemText,
|
|
85
|
+
SelectLabel,
|
|
86
|
+
SelectPositioner,
|
|
87
|
+
SelectRoot,
|
|
88
|
+
SelectTrigger,
|
|
89
|
+
SelectValueText
|
|
90
|
+
} from "./chunk-YWMPB2JR.js";
|
|
72
91
|
import {
|
|
73
92
|
Spinner
|
|
74
93
|
} from "./chunk-7SYJFI5E.js";
|
|
@@ -94,9 +113,6 @@ import {
|
|
|
94
113
|
import {
|
|
95
114
|
Tbody
|
|
96
115
|
} from "./chunk-ZR37P4NZ.js";
|
|
97
|
-
import {
|
|
98
|
-
Td
|
|
99
|
-
} from "./chunk-3R4TIF2X.js";
|
|
100
116
|
import {
|
|
101
117
|
Legend
|
|
102
118
|
} from "./chunk-ILQW5VZT.js";
|
|
@@ -374,6 +390,20 @@ export {
|
|
|
374
390
|
Radio,
|
|
375
391
|
RangePickerInput,
|
|
376
392
|
Select,
|
|
393
|
+
SelectClearTrigger,
|
|
394
|
+
SelectContent,
|
|
395
|
+
SelectControl,
|
|
396
|
+
SelectIndicator,
|
|
397
|
+
SelectItem,
|
|
398
|
+
SelectItemGroup,
|
|
399
|
+
SelectItemGroupLabel,
|
|
400
|
+
SelectItemIndicator,
|
|
401
|
+
SelectItemText,
|
|
402
|
+
SelectLabel,
|
|
403
|
+
SelectPositioner,
|
|
404
|
+
SelectRoot,
|
|
405
|
+
SelectTrigger,
|
|
406
|
+
SelectValueText,
|
|
377
407
|
Show,
|
|
378
408
|
Spinner,
|
|
379
409
|
THEME_KEY,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Select'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/Button'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Select'\nexport * from './components/Select.server'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.15.0-next-
|
|
3
|
+
"version": "0.15.0-next-b2ad645",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"react": "^18",
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
|
-
"@cerberus-
|
|
29
|
-
"@cerberus/
|
|
28
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-b2ad645",
|
|
29
|
+
"@cerberus-design/configs": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Select as ArkSelect, type SelectRootProps } from '@ark-ui/react/select'
|
|
2
|
+
import type { SelectCollectionItem } from './Select'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Select Primitive: The context provider for the Select family
|
|
6
|
+
*/
|
|
7
|
+
export function SelectRoot(props: SelectRootProps<SelectCollectionItem>) {
|
|
8
|
+
const { children, ...rootProps } = props
|
|
9
|
+
return (
|
|
10
|
+
<ArkSelect.Root {...rootProps}>
|
|
11
|
+
{children}
|
|
12
|
+
<ArkSelect.HiddenSelect />
|
|
13
|
+
</ArkSelect.Root>
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Select Primitive: The label that appears above the select input
|
|
19
|
+
*/
|
|
20
|
+
export const SelectLabel = ArkSelect.Label
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Select Primitive: The wrapper to the select trigger that opens the dropdown
|
|
24
|
+
*/
|
|
25
|
+
export const SelectControl = ArkSelect.Control
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Select Primitive: The trigger that opens the dropdown
|
|
29
|
+
*/
|
|
30
|
+
export const SelectTrigger = ArkSelect.Trigger
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Select Primitive: The text that appears in the trigger
|
|
34
|
+
*/
|
|
35
|
+
export const SelectValueText = ArkSelect.ValueText
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Select Primitive: The indicator that appears in the trigger
|
|
39
|
+
*/
|
|
40
|
+
export const SelectIndicator = ArkSelect.Indicator
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Select Primitive: The trigger that clears the selected value
|
|
44
|
+
*/
|
|
45
|
+
export const SelectClearTrigger = ArkSelect.ClearTrigger
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Select Primitive: The positioner that contains the dropdown
|
|
49
|
+
*/
|
|
50
|
+
export const SelectPositioner = ArkSelect.Positioner
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Select Primitive: The content of the dropdown (i.e. the container itself)
|
|
54
|
+
*/
|
|
55
|
+
export const SelectContent = ArkSelect.Content
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Select Primitive: The container for a group of item options
|
|
59
|
+
*/
|
|
60
|
+
export const SelectItemGroup = ArkSelect.ItemGroup
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Select Primitive: The label for a group of item options
|
|
64
|
+
*/
|
|
65
|
+
export const SelectItemGroupLabel = ArkSelect.ItemGroupLabel
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Select Primitive: The container for an item option
|
|
69
|
+
*/
|
|
70
|
+
export const SelectItem = ArkSelect.Item
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Select Primitive: The text for an item option
|
|
74
|
+
*/
|
|
75
|
+
export const SelectItemText = ArkSelect.ItemText
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Select Primitive: The indicator for an item option
|
|
79
|
+
*/
|
|
80
|
+
export const SelectItemIndicator = ArkSelect.ItemIndicator
|