@redsift/pickers 11.6.0-muiv5-alpha.3 → 11.6.0-muiv5-alpha.5
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/{components/combobox/Combobox.d.ts → _internal/Combobox2.js} +7 -7
- package/_internal/Combobox2.js.map +1 -0
- package/{components/combobox-content/ComboboxContent.d.ts → _internal/ComboboxContent.js} +5 -5
- package/_internal/ComboboxContent.js.map +1 -0
- package/{components/combobox-content-footer/ComboboxContentFooter.d.ts → _internal/ComboboxContentFooter.js} +2 -2
- package/_internal/ComboboxContentFooter.js.map +1 -0
- package/{components/combobox-content-header/ComboboxContentHeader.d.ts → _internal/ComboboxContentHeader.js} +2 -2
- package/_internal/ComboboxContentHeader.js.map +1 -0
- package/{components/combobox-content-listbox/ComboboxContentListbox.d.ts → _internal/ComboboxContentListbox.js} +2 -2
- package/_internal/ComboboxContentListbox.js.map +1 -0
- package/{components/combobox-trigger/ComboboxTrigger.d.ts → _internal/ComboboxTrigger.js} +2 -2
- package/_internal/ComboboxTrigger.js.map +1 -0
- package/{components/item/Item.d.ts → _internal/Item2.js} +1 -1
- package/_internal/Item2.js.map +1 -0
- package/{components/menu-button/types.d.ts → _internal/MenuButton.js} +27 -2
- package/_internal/MenuButton.js.map +1 -0
- package/{components/menu-button-content/MenuButtonContent.d.ts → _internal/MenuButtonContent.js} +5 -5
- package/_internal/MenuButtonContent.js.map +1 -0
- package/{components/menu-button-content-footer/MenuButtonContentFooter.d.ts → _internal/MenuButtonContentFooter.js} +2 -2
- package/_internal/MenuButtonContentFooter.js.map +1 -0
- package/{components/menu-button-content-header/MenuButtonContentHeader.d.ts → _internal/MenuButtonContentHeader.js} +2 -2
- package/_internal/MenuButtonContentHeader.js.map +1 -0
- package/{components/menu-button-content-menu/MenuButtonContentMenu.d.ts → _internal/MenuButtonContentMenu.js} +2 -2
- package/_internal/MenuButtonContentMenu.js.map +1 -0
- package/{components/menu-button-trigger/MenuButtonTrigger.d.ts → _internal/MenuButtonTrigger.js} +2 -2
- package/_internal/MenuButtonTrigger.js.map +1 -0
- package/{components/select/types.d.ts → _internal/Select2.js} +20 -2
- package/_internal/Select2.js.map +1 -0
- package/{components/select-content/SelectContent.d.ts → _internal/SelectContent.js} +2 -2
- package/_internal/SelectContent.js.map +1 -0
- package/{components/select-trigger/SelectTrigger.d.ts → _internal/SelectTrigger.js} +2 -2
- package/_internal/SelectTrigger.js.map +1 -0
- package/{_virtual → _internal}/_rollupPluginBabelHelpers.js +1 -1
- package/_internal/combobox-content-footer.js +4 -0
- package/_internal/combobox-content-footer.js.map +1 -0
- package/_internal/combobox-content-header.js +4 -0
- package/_internal/combobox-content-header.js.map +1 -0
- package/_internal/combobox-content-listbox.js +6 -0
- package/_internal/combobox-content-listbox.js.map +1 -0
- package/_internal/combobox-content.js +9 -0
- package/_internal/combobox-content.js.map +1 -0
- package/_internal/combobox-trigger.js +6 -0
- package/_internal/combobox-trigger.js.map +1 -0
- package/_internal/combobox.js +10 -0
- package/_internal/combobox.js.map +1 -0
- package/_internal/item.js +2 -0
- package/_internal/item.js.map +1 -0
- package/_internal/menu-button-content-footer.js +4 -0
- package/_internal/menu-button-content-footer.js.map +1 -0
- package/_internal/menu-button-content-header.js +4 -0
- package/_internal/menu-button-content-header.js.map +1 -0
- package/_internal/menu-button-content-menu.js +3 -0
- package/_internal/menu-button-content-menu.js.map +1 -0
- package/_internal/menu-button-content.js +8 -0
- package/_internal/menu-button-content.js.map +1 -0
- package/_internal/menu-button-trigger.js +5 -0
- package/_internal/menu-button-trigger.js.map +1 -0
- package/_internal/menu-button.js +9 -0
- package/_internal/menu-button.js.map +1 -0
- package/_internal/select-content.js +4 -0
- package/_internal/select-content.js.map +1 -0
- package/_internal/select-trigger.js +5 -0
- package/_internal/select-trigger.js.map +1 -0
- package/_internal/select.js +6 -0
- package/_internal/select.js.map +1 -0
- package/{components/combobox-content-footer/types.d.ts → _internal/types.js} +1 -1
- package/_internal/types.js.map +1 -0
- package/{components/menu-button-content/types.d.ts → _internal/types10.js} +1 -1
- package/{components/menu-button-trigger/types.d.ts → _internal/types11.js} +1 -1
- package/{components/select-content/types.d.ts → _internal/types12.js} +1 -1
- package/{components/select-trigger/types.d.ts → _internal/types13.js} +1 -1
- package/{components/combobox-content-header/types.d.ts → _internal/types2.js} +1 -1
- package/{components/combobox-content-listbox/types.d.ts → _internal/types3.js} +2 -2
- package/{components/combobox-content/types.d.ts → _internal/types4.js} +1 -1
- package/{components/combobox-trigger/types.d.ts → _internal/types5.js} +2 -2
- package/{components/combobox/types.d.ts → _internal/types6.js} +1 -1
- package/{components/menu-button-content-footer/types.d.ts → _internal/types7.js} +1 -1
- package/{components/menu-button-content-header/types.d.ts → _internal/types8.js} +1 -1
- package/{components/menu-button-content-menu/types.d.ts → _internal/types9.js} +1 -1
- package/index.js +32 -18
- package/package.json +5 -5
- package/components/combobox/Combobox.js +0 -151
- package/components/combobox/Combobox.js.map +0 -1
- package/components/combobox/context.js +0 -6
- package/components/combobox/context.js.map +0 -1
- package/components/combobox/intl/en-US.json.js +0 -13
- package/components/combobox/intl/en-US.json.js.map +0 -1
- package/components/combobox/intl/fr-FR.json.js +0 -13
- package/components/combobox/intl/fr-FR.json.js.map +0 -1
- package/components/combobox/intl/index.js +0 -10
- package/components/combobox/intl/index.js.map +0 -1
- package/components/combobox/types.js +0 -22
- package/components/combobox/types.js.map +0 -1
- package/components/combobox-content/ComboboxContent.js +0 -70
- package/components/combobox-content/ComboboxContent.js.map +0 -1
- package/components/combobox-content-footer/ComboboxContentFooter.js +0 -28
- package/components/combobox-content-footer/ComboboxContentFooter.js.map +0 -1
- package/components/combobox-content-footer/styles.js +0 -12
- package/components/combobox-content-footer/styles.js.map +0 -1
- package/components/combobox-content-header/ComboboxContentHeader.js +0 -28
- package/components/combobox-content-header/ComboboxContentHeader.js.map +0 -1
- package/components/combobox-content-header/styles.js +0 -12
- package/components/combobox-content-header/styles.js.map +0 -1
- package/components/combobox-content-listbox/ComboboxContentListbox.js +0 -124
- package/components/combobox-content-listbox/ComboboxContentListbox.js.map +0 -1
- package/components/combobox-trigger/ComboboxTrigger.js +0 -352
- package/components/combobox-trigger/ComboboxTrigger.js.map +0 -1
- package/components/item/Item.js +0 -137
- package/components/item/Item.js.map +0 -1
- package/components/item/useMenuItem.js +0 -69
- package/components/item/useMenuItem.js.map +0 -1
- package/components/menu-button/MenuButton.d.ts +0 -29
- package/components/menu-button/MenuButton.js +0 -76
- package/components/menu-button/MenuButton.js.map +0 -1
- package/components/menu-button/context.js +0 -6
- package/components/menu-button/context.js.map +0 -1
- package/components/menu-button-content/MenuButtonContent.js +0 -68
- package/components/menu-button-content/MenuButtonContent.js.map +0 -1
- package/components/menu-button-content-footer/MenuButtonContentFooter.js +0 -28
- package/components/menu-button-content-footer/MenuButtonContentFooter.js.map +0 -1
- package/components/menu-button-content-footer/styles.js +0 -12
- package/components/menu-button-content-footer/styles.js.map +0 -1
- package/components/menu-button-content-header/MenuButtonContentHeader.js +0 -28
- package/components/menu-button-content-header/MenuButtonContentHeader.js.map +0 -1
- package/components/menu-button-content-header/styles.js +0 -12
- package/components/menu-button-content-header/styles.js.map +0 -1
- package/components/menu-button-content-menu/MenuButtonContentMenu.js +0 -41
- package/components/menu-button-content-menu/MenuButtonContentMenu.js.map +0 -1
- package/components/menu-button-trigger/MenuButtonTrigger.js +0 -167
- package/components/menu-button-trigger/MenuButtonTrigger.js.map +0 -1
- package/components/select/Select.d.ts +0 -22
- package/components/select/Select.js +0 -116
- package/components/select/Select.js.map +0 -1
- package/components/select/context.js +0 -6
- package/components/select/context.js.map +0 -1
- package/components/select-content/SelectContent.js +0 -62
- package/components/select-content/SelectContent.js.map +0 -1
- package/components/select-trigger/SelectTrigger.js +0 -249
- package/components/select-trigger/SelectTrigger.js.map +0 -1
- package/index.d.ts +0 -32
- /package/{_virtual → _internal}/_rollupPluginBabelHelpers.js.map +0 -0
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { useState, useEffect, useReducer, useMemo } from 'react';
|
|
3
|
-
import { Popover } from '@redsift/popovers';
|
|
4
|
-
import { SelectContext } from './context.js';
|
|
5
|
-
import { useTheme, ListboxReducer, ListboxActionType, ThemeProvider, FocusWithinGroup, ListboxContext, Flexbox, Text, Theme } from '@redsift/design-system';
|
|
6
|
-
import { SelectTrigger } from '../select-trigger/SelectTrigger.js';
|
|
7
|
-
import { SelectContent } from '../select-content/SelectContent.js';
|
|
8
|
-
|
|
9
|
-
const COMPONENT_NAME = 'Select';
|
|
10
|
-
const CLASSNAME = 'redsift-select';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The Select component.
|
|
14
|
-
*/
|
|
15
|
-
const BaseSelect = props => {
|
|
16
|
-
const {
|
|
17
|
-
color,
|
|
18
|
-
defaultValue,
|
|
19
|
-
description,
|
|
20
|
-
descriptionProps,
|
|
21
|
-
isDisabled,
|
|
22
|
-
isInvalid,
|
|
23
|
-
minWidth = 'trigger-width',
|
|
24
|
-
onChange,
|
|
25
|
-
theme: propsTheme,
|
|
26
|
-
triggerClassName,
|
|
27
|
-
value,
|
|
28
|
-
variant,
|
|
29
|
-
wrapperProps
|
|
30
|
-
} = props;
|
|
31
|
-
const theme = useTheme(propsTheme);
|
|
32
|
-
const [selectedValue, setValue] = useState(value || defaultValue || '');
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
if (value) {
|
|
35
|
-
state.setValue(value);
|
|
36
|
-
}
|
|
37
|
-
}, [value]);
|
|
38
|
-
|
|
39
|
-
/** Listbox context */
|
|
40
|
-
const [listboxState, listboxDispatch] = useReducer(ListboxReducer, {
|
|
41
|
-
isDisabled,
|
|
42
|
-
selectedValues: [selectedValue]
|
|
43
|
-
});
|
|
44
|
-
const listboxContext = useMemo(() => ({
|
|
45
|
-
state: listboxState,
|
|
46
|
-
dispatch: listboxDispatch
|
|
47
|
-
}), [listboxState]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
listboxDispatch({
|
|
50
|
-
type: ListboxActionType.UPDATE_OPTIONS,
|
|
51
|
-
payload: {
|
|
52
|
-
isDisabled: isDisabled || false
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
}, [isDisabled, theme]);
|
|
56
|
-
|
|
57
|
-
/** Select context. */
|
|
58
|
-
const state = {
|
|
59
|
-
color,
|
|
60
|
-
isDisabled: isDisabled || false,
|
|
61
|
-
isInvalid: isInvalid || false,
|
|
62
|
-
setValue(value) {
|
|
63
|
-
if (isDisabled) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
const previousValue = selectedValue;
|
|
67
|
-
setValue(value);
|
|
68
|
-
if (value !== previousValue && onChange) {
|
|
69
|
-
onChange(value);
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
theme,
|
|
73
|
-
triggerClassName,
|
|
74
|
-
value: selectedValue,
|
|
75
|
-
variant
|
|
76
|
-
};
|
|
77
|
-
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
78
|
-
value: {
|
|
79
|
-
theme
|
|
80
|
-
}
|
|
81
|
-
}, /*#__PURE__*/React.createElement(FocusWithinGroup, {
|
|
82
|
-
focusType: "virtual-focus",
|
|
83
|
-
focusOnInit: false
|
|
84
|
-
}, /*#__PURE__*/React.createElement(SelectContext.Provider, {
|
|
85
|
-
value: state
|
|
86
|
-
}, /*#__PURE__*/React.createElement(ListboxContext.Provider, {
|
|
87
|
-
value: listboxContext
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Flexbox, _extends({
|
|
89
|
-
flexDirection: "column",
|
|
90
|
-
alignItems: "flex-start",
|
|
91
|
-
gap: "0px"
|
|
92
|
-
}, wrapperProps), /*#__PURE__*/React.createElement(Popover, _extends({
|
|
93
|
-
theme: theme,
|
|
94
|
-
overrideDisplayName: {
|
|
95
|
-
content: 'SelectContent',
|
|
96
|
-
trigger: 'SelectTrigger'
|
|
97
|
-
},
|
|
98
|
-
placement: "bottom-start",
|
|
99
|
-
role: "listbox",
|
|
100
|
-
minWidth: minWidth
|
|
101
|
-
}, props)), description && typeof description === 'string' ? /*#__PURE__*/React.createElement(Text, _extends({
|
|
102
|
-
theme: theme,
|
|
103
|
-
marginTop: "8px",
|
|
104
|
-
variant: "caption",
|
|
105
|
-
color: isInvalid ? 'error' : theme === Theme.light ? 'dark-grey' : 'white'
|
|
106
|
-
}, descriptionProps), description) : description ? description : null)))));
|
|
107
|
-
};
|
|
108
|
-
BaseSelect.className = CLASSNAME;
|
|
109
|
-
BaseSelect.displayName = COMPONENT_NAME;
|
|
110
|
-
const Select = Object.assign(BaseSelect, {
|
|
111
|
-
Trigger: SelectTrigger,
|
|
112
|
-
Content: SelectContent
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export { BaseSelect, Select };
|
|
116
|
-
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../src/components/select/Select.tsx"],"sourcesContent":["import React, { useEffect, useMemo, useReducer, useState } from 'react';\nimport { SelectContent } from '../select-content';\nimport { SelectTrigger } from '../select-trigger';\n\nimport { SelectProps } from './types';\nimport { Popover } from '@redsift/popovers';\nimport { SelectContext } from './context';\nimport {\n ListboxReducer,\n ListboxState,\n ListboxContextProps,\n FocusWithinGroup,\n ListboxContext,\n Flexbox,\n Text,\n ListboxActionType,\n Theme,\n useTheme,\n ThemeProvider,\n} from '@redsift/design-system';\n\nconst COMPONENT_NAME = 'Select';\nconst CLASSNAME = 'redsift-select';\n\n/**\n * The Select component.\n */\nexport const BaseSelect: React.FC<SelectProps> & {\n displayName?: string;\n className?: string;\n} = (props) => {\n const {\n color,\n defaultValue,\n description,\n descriptionProps,\n isDisabled,\n isInvalid,\n minWidth = 'trigger-width',\n onChange,\n theme: propsTheme,\n triggerClassName,\n value,\n variant,\n wrapperProps,\n } = props;\n\n const theme = useTheme(propsTheme);\n\n const [selectedValue, setValue] = useState<string>(value || defaultValue || '');\n useEffect(() => {\n if (value) {\n state.setValue(value);\n }\n }, [value]);\n\n /** Listbox context */\n const [listboxState, listboxDispatch] = useReducer(ListboxReducer, {\n isDisabled,\n selectedValues: [selectedValue],\n } as ListboxState);\n const listboxContext = useMemo<ListboxContextProps>(\n () => ({\n state: listboxState,\n dispatch: listboxDispatch,\n }),\n [listboxState]\n );\n useEffect(() => {\n listboxDispatch({\n type: ListboxActionType.UPDATE_OPTIONS,\n payload: {\n isDisabled: isDisabled || false,\n },\n });\n }, [isDisabled, theme]);\n\n /** Select context. */\n const state = {\n color,\n isDisabled: isDisabled || false,\n isInvalid: isInvalid || false,\n setValue(value: string) {\n if (isDisabled) {\n return;\n }\n\n const previousValue = selectedValue;\n setValue(value);\n if (value !== previousValue && onChange) {\n onChange(value);\n }\n },\n theme,\n triggerClassName,\n value: selectedValue,\n variant,\n };\n\n return (\n <ThemeProvider value={{ theme }}>\n <FocusWithinGroup focusType=\"virtual-focus\" focusOnInit={false}>\n <SelectContext.Provider value={state}>\n <ListboxContext.Provider value={listboxContext}>\n <Flexbox flexDirection=\"column\" alignItems=\"flex-start\" gap=\"0px\" {...wrapperProps}>\n <Popover\n theme={theme}\n overrideDisplayName={{ content: 'SelectContent', trigger: 'SelectTrigger' }}\n placement=\"bottom-start\"\n role=\"listbox\"\n minWidth={minWidth}\n {...props}\n />\n {description && typeof description === 'string' ? (\n <Text\n theme={theme}\n marginTop=\"8px\"\n variant=\"caption\"\n color={isInvalid ? 'error' : theme === Theme.light ? 'dark-grey' : 'white'}\n {...descriptionProps}\n >\n {description}\n </Text>\n ) : description ? (\n description\n ) : null}\n </Flexbox>\n </ListboxContext.Provider>\n </SelectContext.Provider>\n </FocusWithinGroup>\n </ThemeProvider>\n );\n};\nBaseSelect.className = CLASSNAME;\nBaseSelect.displayName = COMPONENT_NAME;\n\nexport const Select = Object.assign(BaseSelect, {\n Trigger: SelectTrigger,\n Content: SelectContent,\n});\n"],"names":["COMPONENT_NAME","CLASSNAME","BaseSelect","props","color","defaultValue","description","descriptionProps","isDisabled","isInvalid","minWidth","onChange","theme","propsTheme","triggerClassName","value","variant","wrapperProps","useTheme","selectedValue","setValue","useState","useEffect","state","listboxState","listboxDispatch","useReducer","ListboxReducer","selectedValues","listboxContext","useMemo","dispatch","type","ListboxActionType","UPDATE_OPTIONS","payload","previousValue","React","createElement","ThemeProvider","FocusWithinGroup","focusType","focusOnInit","SelectContext","Provider","ListboxContext","Flexbox","_extends","flexDirection","alignItems","gap","Popover","overrideDisplayName","content","trigger","placement","role","Text","marginTop","Theme","light","className","displayName","Select","Object","assign","Trigger","SelectTrigger","Content","SelectContent"],"mappings":";;;;;;;;AAqBA,MAAMA,cAAc,GAAG,QAAQ,CAAA;AAC/B,MAAMC,SAAS,GAAG,gBAAgB,CAAA;;AAElC;AACA;AACA;AACaC,MAAAA,UAGZ,GAAIC,KAAK,IAAK;EACb,MAAM;IACJC,KAAK;IACLC,YAAY;IACZC,WAAW;IACXC,gBAAgB;IAChBC,UAAU;IACVC,SAAS;AACTC,IAAAA,QAAQ,GAAG,eAAe;IAC1BC,QAAQ;AACRC,IAAAA,KAAK,EAAEC,UAAU;IACjBC,gBAAgB;IAChBC,KAAK;IACLC,OAAO;AACPC,IAAAA,YAAAA;AACF,GAAC,GAAGd,KAAK,CAAA;AAET,EAAA,MAAMS,KAAK,GAAGM,QAAQ,CAACL,UAAU,CAAC,CAAA;AAElC,EAAA,MAAM,CAACM,aAAa,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAASN,KAAK,IAAIV,YAAY,IAAI,EAAE,CAAC,CAAA;AAC/EiB,EAAAA,SAAS,CAAC,MAAM;AACd,IAAA,IAAIP,KAAK,EAAE;AACTQ,MAAAA,KAAK,CAACH,QAAQ,CAACL,KAAK,CAAC,CAAA;AACvB,KAAA;AACF,GAAC,EAAE,CAACA,KAAK,CAAC,CAAC,CAAA;;AAEX;EACA,MAAM,CAACS,YAAY,EAAEC,eAAe,CAAC,GAAGC,UA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;AACDJ,UAAU,CAAC2D,SAAS,GAAG5D,SAAS,CAAA;AAChCC,UAAU,CAAC4D,WAAW,GAAG9D,cAAc,CAAA;AAEhC,MAAM+D,MAAM,GAAGC,MAAM,CAACC,MAAM,CAAC/D,UAAU,EAAE;AAC9CgE,EAAAA,OAAO,EAAEC,aAAa;AACtBC,EAAAA,OAAO,EAAEC,aAAAA;AACX,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../../src/components/select/context.ts"],"sourcesContent":["import React from 'react';\nimport { SelectState } from './types';\n\nexport const SelectContext = React.createContext<SelectState | null>(null);\n"],"names":["SelectContext","React","createContext"],"mappings":";;AAGO,MAAMA,aAAa,gBAAGC,KAAK,CAACC,aAAa,CAAqB,IAAI;;;;"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { forwardRef, useContext, useEffect } from 'react';
|
|
3
|
-
import { getContainerProps, AppContainerContext, FocusWithinGroupContext, ListboxContext, useTheme, Flexbox } from '@redsift/design-system';
|
|
4
|
-
import { usePopoverContext, useMergeRefs, FloatingPortal, StyledPopoverContent, PopoverContent } from '@redsift/popovers';
|
|
5
|
-
import classNames from 'classnames';
|
|
6
|
-
|
|
7
|
-
const COMPONENT_NAME = 'SelectContent';
|
|
8
|
-
const CLASSNAME = 'redsift-select-content';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The SelectContent component.
|
|
12
|
-
*/
|
|
13
|
-
const SelectContent = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14
|
-
const {
|
|
15
|
-
children,
|
|
16
|
-
className,
|
|
17
|
-
style
|
|
18
|
-
} = props;
|
|
19
|
-
const containerProps = getContainerProps(props);
|
|
20
|
-
const {
|
|
21
|
-
getFloatingProps,
|
|
22
|
-
isOpen,
|
|
23
|
-
refs,
|
|
24
|
-
strategy,
|
|
25
|
-
x,
|
|
26
|
-
y
|
|
27
|
-
} = usePopoverContext();
|
|
28
|
-
const popoverRef = useMergeRefs([refs.setFloating, ref]);
|
|
29
|
-
const appContainerState = useContext(AppContainerContext);
|
|
30
|
-
const focusContext = useContext(FocusWithinGroupContext);
|
|
31
|
-
const listboxState = useContext(ListboxContext);
|
|
32
|
-
const theme = useTheme();
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
if (focusContext && focusContext.state.delayedAction && focusContext.state.tabStops.length) {
|
|
35
|
-
focusContext.dispatch(focusContext.state.delayedAction);
|
|
36
|
-
}
|
|
37
|
-
}, [focusContext.state.delayedAction, focusContext.state.tabStops.length]);
|
|
38
|
-
return /*#__PURE__*/React.createElement(FloatingPortal, {
|
|
39
|
-
root: appContainerState === null || appContainerState === void 0 ? void 0 : appContainerState.appContainerRef.current
|
|
40
|
-
}, isOpen && /*#__PURE__*/React.createElement(StyledPopoverContent, _extends({
|
|
41
|
-
$theme: theme,
|
|
42
|
-
ref: popoverRef
|
|
43
|
-
}, getFloatingProps(props), {
|
|
44
|
-
style: _objectSpread2({
|
|
45
|
-
position: strategy,
|
|
46
|
-
top: y !== null && y !== void 0 ? y : 0,
|
|
47
|
-
left: x !== null && x !== void 0 ? x : 0
|
|
48
|
-
}, style),
|
|
49
|
-
className: classNames(PopoverContent.className, SelectContent.className, className),
|
|
50
|
-
"aria-disabled": listboxState.state.isDisabled
|
|
51
|
-
}), /*#__PURE__*/React.createElement(Flexbox, _extends({
|
|
52
|
-
flexDirection: "column",
|
|
53
|
-
gap: "0px",
|
|
54
|
-
margin: "8px 0px",
|
|
55
|
-
width: "100%"
|
|
56
|
-
}, containerProps), children)));
|
|
57
|
-
});
|
|
58
|
-
SelectContent.className = CLASSNAME;
|
|
59
|
-
SelectContent.displayName = COMPONENT_NAME;
|
|
60
|
-
|
|
61
|
-
export { SelectContent };
|
|
62
|
-
//# sourceMappingURL=SelectContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectContent.js","sources":["../../../src/components/select-content/SelectContent.tsx"],"sourcesContent":["import React, { forwardRef, useContext, useEffect } from 'react';\n\nimport {\n AppContainerContext,\n Comp,\n Flexbox,\n FocusWithinGroupContext,\n ListboxContext,\n getContainerProps,\n useTheme,\n} from '@redsift/design-system';\nimport { SelectContentProps } from './types';\nimport {\n FloatingPortal,\n PopoverContent,\n StyledPopoverContent,\n useMergeRefs,\n usePopoverContext,\n} from '@redsift/popovers';\nimport classNames from 'classnames';\n\nconst COMPONENT_NAME = 'SelectContent';\nconst CLASSNAME = 'redsift-select-content';\n\n/**\n * The SelectContent component.\n */\nexport const SelectContent: Comp<SelectContentProps, HTMLDivElement> = forwardRef((props, ref) => {\n const { children, className, style } = props;\n const containerProps = getContainerProps(props);\n\n const { getFloatingProps, isOpen, refs, strategy, x, y } = usePopoverContext();\n const popoverRef = useMergeRefs([refs.setFloating, ref]);\n\n const appContainerState = useContext(AppContainerContext);\n const focusContext = useContext(FocusWithinGroupContext);\n const listboxState = useContext(ListboxContext);\n const theme = useTheme();\n\n useEffect(() => {\n if (focusContext && focusContext.state.delayedAction && focusContext.state.tabStops.length) {\n focusContext.dispatch(focusContext.state.delayedAction);\n }\n }, [focusContext.state.delayedAction, focusContext.state.tabStops.length]);\n\n return (\n <FloatingPortal root={appContainerState?.appContainerRef.current}>\n {isOpen && (\n <StyledPopoverContent\n $theme={theme!}\n ref={popoverRef}\n {...getFloatingProps(props)}\n style={{\n position: strategy,\n top: y ?? 0,\n left: x ?? 0,\n ...style,\n }}\n className={classNames(PopoverContent.className, SelectContent.className, className)}\n aria-disabled={listboxState.state.isDisabled}\n >\n <Flexbox flexDirection=\"column\" gap=\"0px\" margin=\"8px 0px\" width=\"100%\" {...containerProps}>\n {children}\n </Flexbox>\n </StyledPopoverContent>\n )}\n </FloatingPortal>\n );\n});\nSelectContent.className = CLASSNAME;\nSelectContent.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","SelectContent","forwardRef","props","ref","children","className","style","containerProps","getContainerProps","getFloatingProps","isOpen","refs","strategy","x","y","usePopoverContext","popoverRef","useMergeRefs","setFloating","appContainerState","useContext","AppContainerContext","focusContext","FocusWithinGroupContext","listboxState","ListboxContext","theme","useTheme","useEffect","state","delayedAction","tabStops","length","dispatch","React","createElement","FloatingPortal","root","appContainerRef","current","StyledPopoverContent","_extends","$theme","_objectSpread","position","top","left","classNames","PopoverContent","isDisabled","Flexbox","flexDirection","gap","margin","width","displayName"],"mappings":";;;;;;AAqBA,MAAMA,cAAc,GAAG,eAAe,CAAA;AACtC,MAAMC,SAAS,GAAG,wBAAwB,CAAA;;AAE1C;AACA;AACA;AACO,MAAMC,aAAuD,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;EAChG,MAAM;IAAEC,QAAQ;IAAEC,SAAS;AAAEC,IAAAA,KAAAA;AAAM,GAAC,GAAGJ,KAAK,CAAA;AAC5C,EAAA,MAAMK,cAAc,GAAGC,iBAAiB,CAACN,KAAK,CAAC,CAAA;EAE/C,MAAM;IAAEO,gBAAgB;IAAEC,MAAM;IAAEC,IAAI;IAAEC,QAAQ;IAAEC,CAAC;AAAEC,IAAAA,CAAAA;GAAG,GAAGC,iBAAiB,EAAE,CAAA;EAC9E,MAAMC,UAAU,GAAGC,YAAY,CAAC,CAACN,IAAI,CAACO,WAAW,EAAEf,GAAG,CAAC,CAAC,CAAA;AAExD,EAAA,MAAMgB,iBAAiB,GAAGC,UAAU,CAACC,mBAAmB,CAAC,CAAA;AACzD,EAAA,MAAMC,YAAY,GAAGF,UAAU,CAACG,uBAAuB,CAAC,CAAA;AACxD,EAAA,MAAMC,YAAY,GAAGJ,UAAU,CAACK,cAAc,CAAC,CAAA;AAC/C,EAAA,MAAMC,KAAK,GAAGC,QAAQ,EAAE,CAAA;AAExBC,EAAAA,SAAS,CAAC,MAAM;AACd,IAAA,IAAIN,YAAY,IAAIA,YAAY,CAACO,KAAK,CA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AAG,EAAC,KAAK;AAACC,IAAAA,MAAM,EAAC,SAAS;AAACC,IAAAA,KAAK,EAAC,MAAA;AAAM,GAAA,EAAK/C,cAAc,CAAA,EACvFH,QACM,CACW,CAEV,CAAC,CAAA;AAErB,CAAC,EAAC;AACFJ,aAAa,CAACK,SAAS,GAAGN,SAAS,CAAA;AACnCC,aAAa,CAACuD,WAAW,GAAGzD,cAAc;;;;"}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import React, { forwardRef, useContext, useRef, useEffect } from 'react';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { FocusWithinGroupContext, ListboxContext, useTheme, isComponent, Icon, FocusWithinGroupActionType, EventKey, ListboxActionType } from '@redsift/design-system';
|
|
5
|
-
import { usePopoverContext, useMergeRefs } from '@redsift/popovers';
|
|
6
|
-
import { SelectContext } from '../select/context.js';
|
|
7
|
-
import { mdiChevronDown } from '@redsift/icons';
|
|
8
|
-
|
|
9
|
-
const COMPONENT_NAME = 'SelectTrigger';
|
|
10
|
-
const CLASSNAME = 'redsift-select-trigger';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The SelectTrigger component.
|
|
14
|
-
*/
|
|
15
|
-
const SelectTrigger = /*#__PURE__*/forwardRef((props, ref) => {
|
|
16
|
-
var _renderedChildren$pro;
|
|
17
|
-
const {
|
|
18
|
-
children,
|
|
19
|
-
hideExpandButton
|
|
20
|
-
} = props;
|
|
21
|
-
const {
|
|
22
|
-
getReferenceProps,
|
|
23
|
-
isOpen,
|
|
24
|
-
handleOpen,
|
|
25
|
-
refs
|
|
26
|
-
} = usePopoverContext();
|
|
27
|
-
const childrenRef = children.ref;
|
|
28
|
-
const triggerRef = useMergeRefs([refs.setReference, ref, childrenRef]);
|
|
29
|
-
const focusContext = useContext(FocusWithinGroupContext);
|
|
30
|
-
const selectContext = useContext(SelectContext);
|
|
31
|
-
const listboxState = useContext(ListboxContext);
|
|
32
|
-
const theme = useTheme();
|
|
33
|
-
const renderedChildren = typeof children === 'function' ? children({
|
|
34
|
-
value: selectContext === null || selectContext === void 0 ? void 0 : selectContext.value,
|
|
35
|
-
isOpen
|
|
36
|
-
}) : children;
|
|
37
|
-
const _inputRef = useRef();
|
|
38
|
-
const inputRef = (_renderedChildren$pro = renderedChildren.props.inputRef) !== null && _renderedChildren$pro !== void 0 ? _renderedChildren$pro : _inputRef;
|
|
39
|
-
const handleKeyDown = event => {
|
|
40
|
-
const code = event.code;
|
|
41
|
-
if (code === 'Escape') {
|
|
42
|
-
if (isOpen) {
|
|
43
|
-
handleOpen(false);
|
|
44
|
-
}
|
|
45
|
-
} else if (code === 'ArrowDown') {
|
|
46
|
-
var _focusContext$state$a;
|
|
47
|
-
if (!isOpen) {
|
|
48
|
-
handleOpen(true);
|
|
49
|
-
}
|
|
50
|
-
if (focusContext.state.selectedId !== null) {
|
|
51
|
-
focusContext.dispatch({
|
|
52
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
53
|
-
payload: {
|
|
54
|
-
type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
|
|
55
|
-
payload: {
|
|
56
|
-
key: EventKey.ArrowDown,
|
|
57
|
-
ctrlKey: event.ctrlKey
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
} else if (!((_focusContext$state$a = focusContext.state.activedescendant) !== null && _focusContext$state$a !== void 0 && _focusContext$state$a[0])) {
|
|
62
|
-
focusContext.dispatch({
|
|
63
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
64
|
-
payload: {
|
|
65
|
-
type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
|
|
66
|
-
payload: {
|
|
67
|
-
key: EventKey.Home,
|
|
68
|
-
ctrlKey: event.ctrlKey
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
var _focusContext$state$a2, _focusContext$state$a3;
|
|
74
|
-
focusContext.dispatch({
|
|
75
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
76
|
-
payload: {
|
|
77
|
-
type: FocusWithinGroupActionType.FOCUS_ON_LIST,
|
|
78
|
-
payload: {
|
|
79
|
-
id: (_focusContext$state$a2 = (_focusContext$state$a3 = focusContext.state.activedescendant) === null || _focusContext$state$a3 === void 0 ? void 0 : _focusContext$state$a3[0]) !== null && _focusContext$state$a2 !== void 0 ? _focusContext$state$a2 : ''
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
event.preventDefault();
|
|
85
|
-
} else if (code === 'ArrowUp') {
|
|
86
|
-
if (!isOpen) {
|
|
87
|
-
handleOpen(true);
|
|
88
|
-
}
|
|
89
|
-
focusContext.dispatch({
|
|
90
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
91
|
-
payload: {
|
|
92
|
-
type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
|
|
93
|
-
payload: {
|
|
94
|
-
key: focusContext.state.selectedId !== null ? EventKey.ArrowUp : EventKey.Home,
|
|
95
|
-
ctrlKey: event.ctrlKey
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
event.preventDefault();
|
|
100
|
-
} else if (code === 'Home') {
|
|
101
|
-
if (!isOpen) {
|
|
102
|
-
handleOpen(true);
|
|
103
|
-
}
|
|
104
|
-
focusContext.dispatch({
|
|
105
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
106
|
-
payload: {
|
|
107
|
-
type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
|
|
108
|
-
payload: {
|
|
109
|
-
key: EventKey.Home,
|
|
110
|
-
ctrlKey: event.ctrlKey
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
event.preventDefault();
|
|
115
|
-
} else if (code === 'End') {
|
|
116
|
-
if (!isOpen) {
|
|
117
|
-
handleOpen(true);
|
|
118
|
-
}
|
|
119
|
-
focusContext.dispatch({
|
|
120
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
121
|
-
payload: {
|
|
122
|
-
type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,
|
|
123
|
-
payload: {
|
|
124
|
-
key: EventKey.End,
|
|
125
|
-
ctrlKey: event.ctrlKey
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
event.preventDefault();
|
|
130
|
-
} else if (code === 'Enter') {
|
|
131
|
-
if (isOpen && focusContext.state.selectedId) {
|
|
132
|
-
var _focusContext$state$a4, _focusContext$state$a5;
|
|
133
|
-
listboxState.dispatch({
|
|
134
|
-
type: ListboxActionType.SET,
|
|
135
|
-
payload: {
|
|
136
|
-
values: [(_focusContext$state$a4 = (_focusContext$state$a5 = focusContext.state.activedescendant) === null || _focusContext$state$a5 === void 0 ? void 0 : _focusContext$state$a5[1]) !== null && _focusContext$state$a4 !== void 0 ? _focusContext$state$a4 : ''],
|
|
137
|
-
activedescendant: focusContext.state.activedescendant
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
const handleClick = event => {
|
|
144
|
-
event.preventDefault();
|
|
145
|
-
if (isOpen) {
|
|
146
|
-
handleOpen(false);
|
|
147
|
-
} else {
|
|
148
|
-
var _focusContext$state$a6, _focusContext$state$a7;
|
|
149
|
-
handleOpen(true);
|
|
150
|
-
focusContext.dispatch({
|
|
151
|
-
type: FocusWithinGroupActionType.DELAY_ACTION,
|
|
152
|
-
payload: {
|
|
153
|
-
type: FocusWithinGroupActionType.FOCUS_ON_LIST,
|
|
154
|
-
payload: {
|
|
155
|
-
id: (_focusContext$state$a6 = (_focusContext$state$a7 = focusContext.state.activedescendant) === null || _focusContext$state$a7 === void 0 ? void 0 : _focusContext$state$a7[0]) !== null && _focusContext$state$a6 !== void 0 ? _focusContext$state$a6 : ''
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
useEffect(() => {
|
|
162
|
-
selectContext === null || selectContext === void 0 ? void 0 : selectContext.setValue(listboxState.state.selectedValues[0]);
|
|
163
|
-
handleOpen(false);
|
|
164
|
-
}, [listboxState.state]);
|
|
165
|
-
if (isComponent('TextField')(renderedChildren)) {
|
|
166
|
-
var _props$children, _focusContext$state$a8, _selectContext$color, _selectContext$varian, _props$inputProps;
|
|
167
|
-
return /*#__PURE__*/React.cloneElement(renderedChildren, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getReferenceProps(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
168
|
-
ref: triggerRef
|
|
169
|
-
}, props), renderedChildren.props), {}, {
|
|
170
|
-
children: (_props$children = renderedChildren.props.children) !== null && _props$children !== void 0 ? _props$children : ''
|
|
171
|
-
}))), {}, {
|
|
172
|
-
'aria-activedescendant': isOpen ? (_focusContext$state$a8 = focusContext.state.activedescendant) === null || _focusContext$state$a8 === void 0 ? void 0 : _focusContext$state$a8[0] : undefined,
|
|
173
|
-
className: classNames(renderedChildren.props.className, selectContext === null || selectContext === void 0 ? void 0 : selectContext.triggerClassName),
|
|
174
|
-
color: (_selectContext$color = selectContext === null || selectContext === void 0 ? void 0 : selectContext.color) !== null && _selectContext$color !== void 0 ? _selectContext$color : renderedChildren.props.color,
|
|
175
|
-
inputRef,
|
|
176
|
-
internal: (value, isDisabled, isInvalid, isRequired) => {
|
|
177
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, typeof renderedChildren.props.internal === 'function' ? renderedChildren.props.internal(value, isDisabled, isInvalid, isRequired) : renderedChildren.props.internal, hideExpandButton ? null : /*#__PURE__*/React.createElement(Icon, {
|
|
178
|
-
color: isDisabled ? 'no-data' : 'question',
|
|
179
|
-
icon: mdiChevronDown,
|
|
180
|
-
style: {
|
|
181
|
-
transition: 'transform 300ms ease-out',
|
|
182
|
-
transform: `rotate(${isOpen ? '-180deg' : '0'})`,
|
|
183
|
-
cursor: 'pointer'
|
|
184
|
-
}
|
|
185
|
-
}));
|
|
186
|
-
},
|
|
187
|
-
isActive: isOpen,
|
|
188
|
-
isDisabled: selectContext === null || selectContext === void 0 ? void 0 : selectContext.isDisabled,
|
|
189
|
-
isReadOnly: true,
|
|
190
|
-
theme,
|
|
191
|
-
role: 'combobox',
|
|
192
|
-
onClick: handleClick,
|
|
193
|
-
onKeyDown: handleKeyDown,
|
|
194
|
-
style: _objectSpread2(_objectSpread2({}, renderedChildren.props.style), {}, {
|
|
195
|
-
caretColor: 'transparent',
|
|
196
|
-
cursor: 'pointer'
|
|
197
|
-
}),
|
|
198
|
-
variant: (_selectContext$varian = selectContext === null || selectContext === void 0 ? void 0 : selectContext.variant) !== null && _selectContext$varian !== void 0 ? _selectContext$varian : renderedChildren.props.variant
|
|
199
|
-
}, (selectContext === null || selectContext === void 0 ? void 0 : selectContext.isInvalid) === true && {
|
|
200
|
-
color: 'error'
|
|
201
|
-
}), typeof children !== 'function' && (selectContext === null || selectContext === void 0 ? void 0 : selectContext.value) && {
|
|
202
|
-
value: selectContext.value
|
|
203
|
-
}), {}, {
|
|
204
|
-
inputProps: _objectSpread2(_objectSpread2({}, renderedChildren.props.inputProps), {}, {
|
|
205
|
-
style: _objectSpread2(_objectSpread2({}, (_props$inputProps = renderedChildren.props.inputProps) === null || _props$inputProps === void 0 ? void 0 : _props$inputProps.style), {}, {
|
|
206
|
-
cursor: 'pointer'
|
|
207
|
-
})
|
|
208
|
-
})
|
|
209
|
-
}));
|
|
210
|
-
} else if (isComponent('Button')(renderedChildren)) {
|
|
211
|
-
var _props$children2, _focusContext$state$a9, _props$ariaLabel, _selectContext$color2, _props$rightIcon, _props$rightIconProps, _selectContext$varian2;
|
|
212
|
-
const children = renderedChildren.props.children;
|
|
213
|
-
const label = typeof children === 'string' ? children : children === null || children === void 0 ? void 0 : children.textContent;
|
|
214
|
-
return /*#__PURE__*/React.cloneElement(renderedChildren, _objectSpread2(_objectSpread2(_objectSpread2({}, getReferenceProps(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
215
|
-
ref: triggerRef
|
|
216
|
-
}, props), renderedChildren.props), {}, {
|
|
217
|
-
children: (_props$children2 = renderedChildren.props.children) !== null && _props$children2 !== void 0 ? _props$children2 : ''
|
|
218
|
-
}))), {}, {
|
|
219
|
-
'aria-activedescendant': isOpen ? (_focusContext$state$a9 = focusContext.state.activedescendant) === null || _focusContext$state$a9 === void 0 ? void 0 : _focusContext$state$a9[0] : undefined,
|
|
220
|
-
'aria-label': (_props$ariaLabel = renderedChildren.props['aria-label']) !== null && _props$ariaLabel !== void 0 ? _props$ariaLabel : label,
|
|
221
|
-
className: classNames(renderedChildren.props.className, selectContext === null || selectContext === void 0 ? void 0 : selectContext.triggerClassName),
|
|
222
|
-
color: (_selectContext$color2 = selectContext === null || selectContext === void 0 ? void 0 : selectContext.color) !== null && _selectContext$color2 !== void 0 ? _selectContext$color2 : renderedChildren.props.color,
|
|
223
|
-
isActive: isOpen,
|
|
224
|
-
isDisabled: selectContext === null || selectContext === void 0 ? void 0 : selectContext.isDisabled,
|
|
225
|
-
onClick: handleClick,
|
|
226
|
-
onKeyDown: handleKeyDown,
|
|
227
|
-
rightIcon: (_props$rightIcon = renderedChildren.props.rightIcon) !== null && _props$rightIcon !== void 0 ? _props$rightIcon : mdiChevronDown,
|
|
228
|
-
rightIconProps: renderedChildren.props.rightIcon ? renderedChildren.props.rightIconProps : (_props$rightIconProps = renderedChildren.props.rightIconProps) !== null && _props$rightIconProps !== void 0 ? _props$rightIconProps : {
|
|
229
|
-
style: {
|
|
230
|
-
transition: 'transform 300ms ease-out',
|
|
231
|
-
transform: `rotate(${isOpen ? '-180deg' : '0'})`
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
role: 'combobox',
|
|
235
|
-
theme,
|
|
236
|
-
variant: (_selectContext$varian2 = selectContext === null || selectContext === void 0 ? void 0 : selectContext.variant) !== null && _selectContext$varian2 !== void 0 ? _selectContext$varian2 : renderedChildren.props.variant
|
|
237
|
-
}, (selectContext === null || selectContext === void 0 ? void 0 : selectContext.isInvalid) === true && {
|
|
238
|
-
color: 'error'
|
|
239
|
-
}), typeof children !== 'function' && (selectContext === null || selectContext === void 0 ? void 0 : selectContext.value) && {
|
|
240
|
-
children: selectContext.value
|
|
241
|
-
}));
|
|
242
|
-
}
|
|
243
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, renderedChildren);
|
|
244
|
-
});
|
|
245
|
-
SelectTrigger.className = CLASSNAME;
|
|
246
|
-
SelectTrigger.displayName = COMPONENT_NAME;
|
|
247
|
-
|
|
248
|
-
export { SelectTrigger };
|
|
249
|
-
//# sourceMappingURL=SelectTrigger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectTrigger.js","sources":["../../../src/components/select-trigger/SelectTrigger.tsx"],"sourcesContent":["import React, { MouseEvent, ReactElement, forwardRef, useContext, useEffect, useRef } from 'react';\nimport classNames from 'classnames';\n\nimport {\n Comp,\n EventKey,\n FocusWithinGroupActionType,\n FocusWithinGroupContext,\n Icon,\n ListboxActionType,\n ListboxContext,\n isComponent,\n useTheme,\n} from '@redsift/design-system';\nimport { SelectTriggerProps } from './types';\nimport { useMergeRefs, usePopoverContext } from '@redsift/popovers';\nimport { SelectContext } from '../select/context';\nimport { mdiChevronDown } from '@redsift/icons';\n\nconst COMPONENT_NAME = 'SelectTrigger';\nconst CLASSNAME = 'redsift-select-trigger';\n\n/**\n * The SelectTrigger component.\n */\nexport const SelectTrigger: Comp<SelectTriggerProps, HTMLButtonElement> = forwardRef((props, ref) => {\n const { children, hideExpandButton } = props;\n\n const { getReferenceProps, isOpen, handleOpen, refs } = usePopoverContext();\n const childrenRef = (children as any).ref;\n const triggerRef = useMergeRefs([refs.setReference, ref, childrenRef]);\n\n const focusContext = useContext(FocusWithinGroupContext);\n const selectContext = useContext(SelectContext);\n const listboxState = useContext(ListboxContext);\n const theme = useTheme();\n\n const renderedChildren =\n typeof children === 'function' ? children({ value: selectContext?.value, isOpen }) : children;\n\n const _inputRef = useRef<HTMLInputElement>();\n const inputRef = renderedChildren.props.inputRef ?? _inputRef;\n\n const handleKeyDown = (event: KeyboardEvent) => {\n const code = event.code;\n\n if (code === 'Escape') {\n if (isOpen) {\n handleOpen(false);\n }\n } else if (code === 'ArrowDown') {\n if (!isOpen) {\n handleOpen(true);\n }\n if (focusContext.state.selectedId !== null) {\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: {\n key: EventKey.ArrowDown,\n ctrlKey: event.ctrlKey,\n },\n },\n });\n } else if (!focusContext.state.activedescendant?.[0]) {\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: {\n key: EventKey.Home,\n ctrlKey: event.ctrlKey,\n },\n },\n });\n } else {\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.FOCUS_ON_LIST,\n payload: {\n id: focusContext.state.activedescendant?.[0] ?? '',\n },\n },\n });\n }\n event.preventDefault();\n } else if (code === 'ArrowUp') {\n if (!isOpen) {\n handleOpen(true);\n }\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: {\n key: focusContext.state.selectedId !== null ? EventKey.ArrowUp : EventKey.Home,\n ctrlKey: event.ctrlKey,\n },\n },\n });\n event.preventDefault();\n } else if (code === 'Home') {\n if (!isOpen) {\n handleOpen(true);\n }\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: {\n key: EventKey.Home,\n ctrlKey: event.ctrlKey,\n },\n },\n });\n event.preventDefault();\n } else if (code === 'End') {\n if (!isOpen) {\n handleOpen(true);\n }\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.KEY_DOWN_ON_LIST,\n payload: {\n key: EventKey.End,\n ctrlKey: event.ctrlKey,\n },\n },\n });\n event.preventDefault();\n } else if (code === 'Enter') {\n if (isOpen && focusContext.state.selectedId) {\n listboxState.dispatch({\n type: ListboxActionType.SET,\n payload: {\n values: [focusContext.state.activedescendant?.[1] ?? ''],\n activedescendant: focusContext.state.activedescendant,\n },\n });\n }\n }\n };\n\n const handleClick = (event: MouseEvent) => {\n event.preventDefault();\n if (isOpen) {\n handleOpen(false);\n } else {\n handleOpen(true);\n focusContext.dispatch({\n type: FocusWithinGroupActionType.DELAY_ACTION,\n payload: {\n type: FocusWithinGroupActionType.FOCUS_ON_LIST,\n payload: {\n id: focusContext.state.activedescendant?.[0] ?? '',\n },\n },\n });\n }\n };\n\n useEffect(() => {\n selectContext?.setValue(listboxState.state.selectedValues[0]);\n handleOpen(false);\n }, [listboxState.state]);\n\n if (isComponent('TextField')(renderedChildren)) {\n return React.cloneElement(renderedChildren, {\n ...getReferenceProps({\n ref: triggerRef,\n ...props,\n ...(renderedChildren as ReactElement).props,\n children: (renderedChildren as ReactElement).props.children ?? '',\n }),\n 'aria-activedescendant': isOpen ? focusContext.state.activedescendant?.[0] : undefined,\n className: classNames((renderedChildren as ReactElement).props.className, selectContext?.triggerClassName),\n color: selectContext?.color ?? (renderedChildren as ReactElement).props.color,\n inputRef,\n internal: (value?: string, isDisabled?: boolean, isInvalid?: boolean, isRequired?: boolean) => {\n return (\n <>\n {typeof (renderedChildren as ReactElement).props.internal === 'function'\n ? (renderedChildren as ReactElement).props.internal(value, isDisabled, isInvalid, isRequired)\n : (renderedChildren as ReactElement).props.internal}\n {hideExpandButton ? null : (\n <Icon\n color={isDisabled ? 'no-data' : 'question'}\n icon={mdiChevronDown}\n style={{\n transition: 'transform 300ms ease-out',\n transform: `rotate(${isOpen ? '-180deg' : '0'})`,\n cursor: 'pointer',\n }}\n />\n )}\n </>\n );\n },\n isActive: isOpen,\n isDisabled: selectContext?.isDisabled,\n isReadOnly: true,\n theme,\n role: 'combobox',\n onClick: handleClick,\n onKeyDown: handleKeyDown,\n style: { ...(renderedChildren as ReactElement).props.style, caretColor: 'transparent', cursor: 'pointer' },\n variant: selectContext?.variant ?? (renderedChildren as ReactElement).props.variant,\n ...(selectContext?.isInvalid === true && { color: 'error' }),\n ...(typeof children !== 'function' &&\n selectContext?.value && {\n value: selectContext.value,\n }),\n inputProps: {\n ...(renderedChildren as ReactElement).props.inputProps,\n style: { ...(renderedChildren as ReactElement).props.inputProps?.style, cursor: 'pointer' },\n },\n });\n } else if (isComponent('Button')(renderedChildren)) {\n const children = (renderedChildren as ReactElement).props.children;\n const label = typeof children === 'string' ? children : children?.textContent;\n\n return React.cloneElement(renderedChildren, {\n ...getReferenceProps({\n ref: triggerRef,\n ...props,\n ...(renderedChildren as ReactElement).props,\n children: (renderedChildren as ReactElement).props.children ?? '',\n }),\n 'aria-activedescendant': isOpen ? focusContext.state.activedescendant?.[0] : undefined,\n 'aria-label': (renderedChildren as ReactElement).props['aria-label'] ?? label,\n className: classNames((renderedChildren as ReactElement).props.className, selectContext?.triggerClassName),\n color: selectContext?.color ?? (renderedChildren as ReactElement).props.color,\n isActive: isOpen,\n isDisabled: selectContext?.isDisabled,\n onClick: handleClick,\n onKeyDown: handleKeyDown,\n rightIcon: (renderedChildren as ReactElement).props.rightIcon ?? mdiChevronDown,\n rightIconProps: (renderedChildren as ReactElement).props.rightIcon\n ? (renderedChildren as ReactElement).props.rightIconProps\n : (renderedChildren as ReactElement).props.rightIconProps ?? {\n style: {\n transition: 'transform 300ms ease-out',\n transform: `rotate(${isOpen ? '-180deg' : '0'})`,\n },\n },\n role: 'combobox',\n theme,\n variant: selectContext?.variant ?? (renderedChildren as ReactElement).props.variant,\n ...(selectContext?.isInvalid === true && { color: 'error' }),\n ...(typeof children !== 'function' &&\n selectContext?.value && {\n children: selectContext.value,\n }),\n });\n }\n\n return <>{renderedChildren}</>;\n});\nSelectTrigger.className = CLASSNAME;\nSelectTrigger.displayName = COMPONENT_NAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","SelectTrigger","forwardRef","props","ref","_renderedChildren$pro","children","hideExpandButton","getReferenceProps","isOpen","handleOpen","refs","usePopoverContext","childrenRef","triggerRef","useMergeRefs","setReference","focusContext","useContext","FocusWithinGroupContext","selectContext","SelectContext","listboxState","ListboxContext","theme","useTheme","renderedChildren","value","_inputRef","useRef","inputRef","handleKeyDown","event","code","_focusContext$state$a","state","selectedId","dispatch","type","FocusWithinGroupActionType","DELAY_ACTION","payload","KEY_DOWN_ON_LIST","key","EventKey","ArrowDown","ctrlKey","activedescendant","Home","_focusContext$state$a2","_focusContext$state$a3","FOCUS_ON_LIST","id","preventDefault","ArrowUp","End","_focusContext$state$a4","_focusContext$state$a5","ListboxActionType","SET","values","handleClick","_focusContext$state$a6","_focusContext$state$a7","useEffect","setValue","selectedValues","isComponent","_props$children","_focusContext$state$a8","_selectContext$color","_selectContext$varian","_props$inputProps","React","cloneElement","_objectSpread","undefined","className","classNames","triggerClassName","color","internal","isDisabled","isInvalid","isRequired","createElement","Fragment","Icon","icon","mdiChevronDown","style","transition","transform","cursor","isActive","isReadOnly","role","onClick","onKeyDown","caretColor","variant","inputProps","_props$children2","_focusContext$state$a9","_props$ariaLabel","_selectContext$color2","_props$rightIcon","_props$rightIconProps","_selectContext$varian2","label","textContent","rightIcon","rightIconProps","displayName"],"mappings":";;;;;;;;AAmBA,MAAMA,cAAc,GAAG,eAAe,CAAA;AACtC,MAAMC,SAAS,GAAG,wBAAwB,CAAA;;AAE1C;AACA;AACA;AACO,MAAMC,aAA0D,gBAAGC,UAAU,CAAC,CAACC,KAAK,EAAEC,GAAG,KAAK;AAAA,EAAA,IAAAC,qBAAA,CAAA;EACnG,MAAM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F,MAAAA,IAAI,EAAE,UAAU;MAChBxE,KAAK;AACL4E,MAAAA,OAAO,GAAAQ,sBAAA,GAAExF,aAAa,KAAbA,IAAAA,IAAAA,aAAa,uBAAbA,aAAa,CAAEgF,OAAO,MAAA,IAAA,IAAAQ,sBAAA,KAAAA,KAAAA,CAAAA,GAAAA,sBAAA,GAAKlF,gBAAgB,CAAkBvB,KAAK,CAACiG,OAAAA;KACxE,EAAA,CAAAhF,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAE+D,SAAS,MAAK,IAAI,IAAI;AAAEH,MAAAA,KAAK,EAAE,OAAA;AAAQ,KAAC,CACvD,EAAA,OAAO1E,QAAQ,KAAK,UAAU,KAChCc,aAAa,KAAA,IAAA,IAAbA,aAAa,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAbA,aAAa,CAAEO,KAAK,CAAI,IAAA;MACtBrB,QAAQ,EAAEc,aAAa,CAACO,KAAAA;AAC1B,KAAC,CACJ,CAAC,CAAA;AACJ,GAAA;EAEA,oBAAO8C,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAa,QAAA,EAAG5D,IAAAA,EAAAA,gBAAmB,CAAC,CAAA;AAChC,CAAC,EAAC;AACFzB,aAAa,CAAC4E,SAAS,GAAG7E,SAAS,CAAA;AACnCC,aAAa,CAACgH,WAAW,GAAGlH,cAAc;;;;"}
|
package/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export { ComboboxContentFooterProps, StyledComboboxContentFooterProps } from './components/combobox-content-footer/types.js';
|
|
2
|
-
export { ComboboxContentFooter } from './components/combobox-content-footer/ComboboxContentFooter.js';
|
|
3
|
-
export { ComboboxContentHeaderProps, StyledComboboxContentHeaderProps } from './components/combobox-content-header/types.js';
|
|
4
|
-
export { ComboboxContentHeader } from './components/combobox-content-header/ComboboxContentHeader.js';
|
|
5
|
-
export { ComboboxContentListboxProps } from './components/combobox-content-listbox/types.js';
|
|
6
|
-
export { ComboboxContentListbox } from './components/combobox-content-listbox/ComboboxContentListbox.js';
|
|
7
|
-
export { ComboboxContentProps } from './components/combobox-content/types.js';
|
|
8
|
-
export { BaseComboboxContent, ComboboxContent } from './components/combobox-content/ComboboxContent.js';
|
|
9
|
-
export { ComboboxTriggerProps } from './components/combobox-trigger/types.js';
|
|
10
|
-
export { ComboboxTrigger } from './components/combobox-trigger/ComboboxTrigger.js';
|
|
11
|
-
export { ComboboxProps, ComboboxSelectionMode, ComboboxState, ComboboxValue, ComboboxVariant, StyledComboboxProps } from './components/combobox/types.js';
|
|
12
|
-
export { BaseCombobox, Combobox } from './components/combobox/Combobox.js';
|
|
13
|
-
export { ItemProps } from '@redsift/design-system';
|
|
14
|
-
export { Item } from './components/item/Item.js';
|
|
15
|
-
export { MenuButtonContentFooterProps, StyledMenuButtonContentFooterProps } from './components/menu-button-content-footer/types.js';
|
|
16
|
-
export { MenuButtonContentFooter } from './components/menu-button-content-footer/MenuButtonContentFooter.js';
|
|
17
|
-
export { MenuButtonContentHeaderProps, StyledMenuButtonContentHeaderProps } from './components/menu-button-content-header/types.js';
|
|
18
|
-
export { MenuButtonContentHeader } from './components/menu-button-content-header/MenuButtonContentHeader.js';
|
|
19
|
-
export { MenuButtonContentMenuProps } from './components/menu-button-content-menu/types.js';
|
|
20
|
-
export { MenuButtonContentMenu } from './components/menu-button-content-menu/MenuButtonContentMenu.js';
|
|
21
|
-
export { MenuButtonContentProps } from './components/menu-button-content/types.js';
|
|
22
|
-
export { BaseMenuButtonContent, MenuButtonContent } from './components/menu-button-content/MenuButtonContent.js';
|
|
23
|
-
export { MenuButtonTriggerProps } from './components/menu-button-trigger/types.js';
|
|
24
|
-
export { MenuButtonTrigger } from './components/menu-button-trigger/MenuButtonTrigger.js';
|
|
25
|
-
export { MenuButtonProps, MenuButtonState, StyledMenuButtonProps } from './components/menu-button/types.js';
|
|
26
|
-
export { BaseMenuButton, MenuButton } from './components/menu-button/MenuButton.js';
|
|
27
|
-
export { SelectContentProps } from './components/select-content/types.js';
|
|
28
|
-
export { SelectContent } from './components/select-content/SelectContent.js';
|
|
29
|
-
export { SelectTriggerProps } from './components/select-trigger/types.js';
|
|
30
|
-
export { SelectTrigger } from './components/select-trigger/SelectTrigger.js';
|
|
31
|
-
export { SelectProps, SelectState, StyledSelectProps } from './components/select/types.js';
|
|
32
|
-
export { BaseSelect, Select } from './components/select/Select.js';
|
|
File without changes
|