@workday/canvas-kit-labs-react 7.1.4 → 7.2.0-427-next.2
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/combobox/README.md +4 -4
- package/combobox/index.ts +0 -4
- package/combobox/lib/AutocompleteList.tsx +5 -8
- package/combobox/lib/Combobox.tsx +14 -20
- package/combobox/lib/Status.tsx +1 -3
- package/combobox/package.json +2 -1
- package/common/index.ts +0 -2
- package/common/lib/theming/index.ts +0 -1
- package/common/lib/theming/useThemeRTL.ts +14 -13
- package/common/package.json +2 -1
- package/dist/commonjs/combobox/index.d.ts +0 -3
- package/dist/commonjs/combobox/index.d.ts.map +1 -1
- package/dist/commonjs/combobox/index.js +0 -7
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts +4 -5
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +33 -53
- package/dist/commonjs/combobox/lib/Combobox.d.ts +4 -6
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Combobox.js +110 -142
- package/dist/commonjs/combobox/lib/Status.d.ts +1 -2
- package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Status.js +11 -11
- package/dist/commonjs/common/index.d.ts +0 -2
- package/dist/commonjs/common/index.d.ts.map +1 -1
- package/dist/commonjs/common/index.js +0 -5
- package/dist/commonjs/common/lib/theming/index.d.ts +0 -1
- package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/index.js +0 -1
- package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts +3 -0
- package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/useThemeRTL.js +21 -46
- package/dist/commonjs/expandable/index.d.ts +3 -0
- package/dist/commonjs/expandable/index.d.ts.map +1 -0
- package/dist/commonjs/{drawer → expandable}/index.js +2 -10
- package/dist/commonjs/expandable/lib/Expandable.d.ts +108 -0
- package/dist/commonjs/expandable/lib/Expandable.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/Expandable.js +59 -0
- package/dist/commonjs/expandable/lib/ExpandableAvatar.d.ts +7 -0
- package/dist/commonjs/expandable/lib/ExpandableAvatar.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/ExpandableAvatar.js +23 -0
- package/dist/commonjs/expandable/lib/ExpandableContent.d.ts +21 -0
- package/dist/commonjs/expandable/lib/ExpandableContent.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/ExpandableContent.js +18 -0
- package/dist/commonjs/expandable/lib/ExpandableIcon.d.ts +29 -0
- package/dist/commonjs/expandable/lib/ExpandableIcon.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/ExpandableIcon.js +31 -0
- package/dist/commonjs/expandable/lib/ExpandableTarget.d.ts +33 -0
- package/dist/commonjs/expandable/lib/ExpandableTarget.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/ExpandableTarget.js +32 -0
- package/dist/commonjs/expandable/lib/ExpandableTitle.d.ts +11 -0
- package/dist/commonjs/expandable/lib/ExpandableTitle.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/ExpandableTitle.js +16 -0
- package/dist/commonjs/expandable/lib/hooks/index.d.ts +5 -0
- package/dist/commonjs/expandable/lib/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/hooks/index.js +16 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableContent.d.ts +18 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableContent.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableContent.js +11 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableIcon.d.ts +13 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableIcon.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableIcon.js +10 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableModel.d.ts +53 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableModel.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableModel.js +22 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableTarget.d.ts +15 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableTarget.d.ts.map +1 -0
- package/dist/commonjs/expandable/lib/hooks/useExpandableTarget.js +19 -0
- package/dist/commonjs/index.d.ts +1 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -2
- package/dist/commonjs/search-form/lib/SearchForm.d.ts +7 -3
- package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/commonjs/search-form/lib/SearchForm.js +118 -145
- package/dist/commonjs/search-form/lib/themes.js +7 -8
- package/dist/es6/combobox/index.d.ts +0 -3
- package/dist/es6/combobox/index.d.ts.map +1 -1
- package/dist/es6/combobox/index.js +0 -3
- package/dist/es6/combobox/lib/AutocompleteList.d.ts +4 -5
- package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/es6/combobox/lib/AutocompleteList.js +26 -48
- package/dist/es6/combobox/lib/Combobox.d.ts +4 -6
- package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.js +98 -131
- package/dist/es6/combobox/lib/Status.d.ts +1 -2
- package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Status.js +6 -8
- package/dist/es6/common/index.d.ts +0 -2
- package/dist/es6/common/index.d.ts.map +1 -1
- package/dist/es6/common/index.js +0 -2
- package/dist/es6/common/lib/theming/index.d.ts +0 -1
- package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/index.js +0 -1
- package/dist/es6/common/lib/theming/useThemeRTL.d.ts +3 -0
- package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/useThemeRTL.js +19 -44
- package/dist/es6/expandable/index.d.ts +3 -0
- package/dist/es6/expandable/index.d.ts.map +1 -0
- package/dist/es6/expandable/index.js +2 -0
- package/dist/es6/expandable/lib/Expandable.d.ts +108 -0
- package/dist/es6/expandable/lib/Expandable.d.ts.map +1 -0
- package/dist/es6/expandable/lib/Expandable.js +53 -0
- package/dist/es6/expandable/lib/ExpandableAvatar.d.ts +7 -0
- package/dist/es6/expandable/lib/ExpandableAvatar.d.ts.map +1 -0
- package/dist/es6/expandable/lib/ExpandableAvatar.js +17 -0
- package/dist/es6/expandable/lib/ExpandableContent.d.ts +21 -0
- package/dist/es6/expandable/lib/ExpandableContent.d.ts.map +1 -0
- package/dist/es6/expandable/lib/ExpandableContent.js +12 -0
- package/dist/es6/expandable/lib/ExpandableIcon.d.ts +29 -0
- package/dist/es6/expandable/lib/ExpandableIcon.d.ts.map +1 -0
- package/dist/es6/expandable/lib/ExpandableIcon.js +25 -0
- package/dist/es6/expandable/lib/ExpandableTarget.d.ts +33 -0
- package/dist/es6/expandable/lib/ExpandableTarget.d.ts.map +1 -0
- package/dist/es6/expandable/lib/ExpandableTarget.js +26 -0
- package/dist/es6/expandable/lib/ExpandableTitle.d.ts +11 -0
- package/dist/es6/expandable/lib/ExpandableTitle.d.ts.map +1 -0
- package/dist/es6/expandable/lib/ExpandableTitle.js +10 -0
- package/dist/es6/expandable/lib/hooks/index.d.ts +5 -0
- package/dist/es6/expandable/lib/hooks/index.d.ts.map +1 -0
- package/dist/es6/expandable/lib/hooks/index.js +4 -0
- package/dist/es6/expandable/lib/hooks/useExpandableContent.d.ts +18 -0
- package/dist/es6/expandable/lib/hooks/useExpandableContent.d.ts.map +1 -0
- package/dist/es6/expandable/lib/hooks/useExpandableContent.js +8 -0
- package/dist/es6/expandable/lib/hooks/useExpandableIcon.d.ts +13 -0
- package/dist/es6/expandable/lib/hooks/useExpandableIcon.d.ts.map +1 -0
- package/dist/es6/expandable/lib/hooks/useExpandableIcon.js +7 -0
- package/dist/es6/expandable/lib/hooks/useExpandableModel.d.ts +53 -0
- package/dist/es6/expandable/lib/hooks/useExpandableModel.d.ts.map +1 -0
- package/dist/es6/expandable/lib/hooks/useExpandableModel.js +19 -0
- package/dist/es6/expandable/lib/hooks/useExpandableTarget.d.ts +15 -0
- package/dist/es6/expandable/lib/hooks/useExpandableTarget.d.ts.map +1 -0
- package/dist/es6/expandable/lib/hooks/useExpandableTarget.js +16 -0
- package/dist/es6/index.d.ts +1 -2
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +1 -2
- package/dist/es6/search-form/lib/SearchForm.d.ts +7 -3
- package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/es6/search-form/lib/SearchForm.js +108 -136
- package/dist/es6/search-form/lib/themes.js +5 -6
- package/{drawer → expandable}/LICENSE +2 -1
- package/expandable/README.md +11 -0
- package/expandable/index.ts +2 -0
- package/expandable/lib/Expandable.tsx +68 -0
- package/expandable/lib/ExpandableAvatar.tsx +26 -0
- package/expandable/lib/ExpandableContent.tsx +32 -0
- package/expandable/lib/ExpandableIcon.tsx +75 -0
- package/expandable/lib/ExpandableTarget.tsx +67 -0
- package/expandable/lib/ExpandableTitle.tsx +32 -0
- package/expandable/lib/hooks/index.ts +4 -0
- package/expandable/lib/hooks/useExpandableContent.ts +9 -0
- package/expandable/lib/hooks/useExpandableIcon.ts +8 -0
- package/expandable/lib/hooks/useExpandableModel.tsx +20 -0
- package/expandable/lib/hooks/useExpandableTarget.ts +16 -0
- package/expandable/package.json +6 -0
- package/index.ts +1 -2
- package/package.json +5 -5
- package/search-form/lib/SearchForm.tsx +13 -11
- package/search-form/package.json +2 -1
- package/common/lib/storybook-utils/ComponentStatesTable.tsx +0 -80
- package/common/lib/storybook-utils/permutateProps.ts +0 -47
- package/common/lib/storybook-utils/propTypes.ts +0 -15
- package/common/lib/theming/useThemedRing.ts +0 -82
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +0 -1
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +0 -48
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts +0 -5
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +0 -1
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +0 -47
- package/dist/commonjs/common/lib/storybook-utils/propTypes.d.ts +0 -15
- package/dist/commonjs/common/lib/storybook-utils/propTypes.d.ts.map +0 -1
- package/dist/commonjs/common/lib/storybook-utils/propTypes.js +0 -2
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +0 -11
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +0 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.js +0 -67
- package/dist/commonjs/drawer/index.d.ts +0 -6
- package/dist/commonjs/drawer/index.d.ts.map +0 -1
- package/dist/commonjs/drawer/lib/Drawer.d.ts +0 -49
- package/dist/commonjs/drawer/lib/Drawer.d.ts.map +0 -1
- package/dist/commonjs/drawer/lib/Drawer.js +0 -124
- package/dist/commonjs/drawer/lib/DrawerHeader.d.ts +0 -38
- package/dist/commonjs/drawer/lib/DrawerHeader.d.ts.map +0 -1
- package/dist/commonjs/drawer/lib/DrawerHeader.js +0 -105
- package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts +0 -26
- package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +0 -1
- package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.js +0 -41
- package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts +0 -5
- package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +0 -1
- package/dist/es6/common/lib/storybook-utils/permutateProps.js +0 -43
- package/dist/es6/common/lib/storybook-utils/propTypes.d.ts +0 -15
- package/dist/es6/common/lib/storybook-utils/propTypes.d.ts.map +0 -1
- package/dist/es6/common/lib/storybook-utils/propTypes.js +0 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts +0 -11
- package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +0 -1
- package/dist/es6/common/lib/theming/useThemedRing.js +0 -59
- package/dist/es6/drawer/index.d.ts +0 -6
- package/dist/es6/drawer/index.d.ts.map +0 -1
- package/dist/es6/drawer/index.js +0 -5
- package/dist/es6/drawer/lib/Drawer.d.ts +0 -49
- package/dist/es6/drawer/lib/Drawer.d.ts.map +0 -1
- package/dist/es6/drawer/lib/Drawer.js +0 -99
- package/dist/es6/drawer/lib/DrawerHeader.d.ts +0 -38
- package/dist/es6/drawer/lib/DrawerHeader.d.ts.map +0 -1
- package/dist/es6/drawer/lib/DrawerHeader.js +0 -81
- package/drawer/README.md +0 -35
- package/drawer/index.ts +0 -5
- package/drawer/lib/Drawer.tsx +0 -119
- package/drawer/lib/DrawerHeader.tsx +0 -105
- package/drawer/package.json +0 -5
package/combobox/README.md
CHANGED
|
@@ -24,7 +24,7 @@ See here for
|
|
|
24
24
|
|
|
25
25
|
```tsx
|
|
26
26
|
import {Combobox} from '@workday/canvas-kit-labs-react/combobox';
|
|
27
|
-
import {
|
|
27
|
+
import {DeprecatedMenuItem} from '@workday/canvas-kit-preview-react/menu';
|
|
28
28
|
import {TextInput} from '@workday/canvas-kit-react/text-input';
|
|
29
29
|
import {FormField} from '@workday/canvas-kit-react/form-field';
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ const autocompleteCallback = event => console.log('Adjust menu items here')
|
|
|
32
32
|
|
|
33
33
|
<FormField id='id-123' label='Example'>
|
|
34
34
|
<Combobox
|
|
35
|
-
autocompleteItems={[<
|
|
35
|
+
autocompleteItems={[<DeprecatedMenuItem>Item 1</DeprecatedMenuItem>]}
|
|
36
36
|
onChange={autocompleteCallback}
|
|
37
37
|
onFocus={() => { console.log('focus') }}
|
|
38
38
|
onBlur={() => { console.log('blur') }}
|
|
@@ -84,9 +84,9 @@ Default: `'Reset Search Input'`
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
-
#### `autocompleteItems: React.ReactElement<
|
|
87
|
+
#### `autocompleteItems: React.ReactElement<DeprecatedMenuItemProps>[] | ComboBoxMenuItemGroup[]`
|
|
88
88
|
|
|
89
|
-
> An array of
|
|
89
|
+
> An array of DeprecatedMenuItems to show under the input. You can also optional group the results.
|
|
90
90
|
|
|
91
91
|
---
|
|
92
92
|
|
package/combobox/index.ts
CHANGED
|
@@ -2,7 +2,6 @@ import React, {Fragment, useState} from 'react';
|
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import {space} from '@workday/canvas-kit-react/tokens';
|
|
4
4
|
import {accessibleHide, generateUniqueId} from '@workday/canvas-kit-react/common';
|
|
5
|
-
import {MenuItemProps} from '@workday/canvas-kit-preview-react/menu';
|
|
6
5
|
import {ComboBoxMenuItemGroup, getOptionId, listBoxIdPart, getTextFromElement} from './Combobox';
|
|
7
6
|
|
|
8
7
|
const Autocomplete = styled('ul')({
|
|
@@ -19,7 +18,7 @@ interface AutocompleteListProps {
|
|
|
19
18
|
/**
|
|
20
19
|
* The autocomplete items of the Combobox. This array of menu items is shown under the text input.
|
|
21
20
|
*/
|
|
22
|
-
autocompleteItems: React.ReactElement<
|
|
21
|
+
autocompleteItems: React.ReactElement<any>[] | ComboBoxMenuItemGroup[];
|
|
23
22
|
/**
|
|
24
23
|
* Index of the active autocomplete item
|
|
25
24
|
*/
|
|
@@ -29,7 +28,7 @@ interface AutocompleteListProps {
|
|
|
29
28
|
*/
|
|
30
29
|
handleAutocompleteClick: (
|
|
31
30
|
event: React.SyntheticEvent<Element, Event>,
|
|
32
|
-
menuItemProps:
|
|
31
|
+
menuItemProps: any
|
|
33
32
|
) => void;
|
|
34
33
|
/**
|
|
35
34
|
* The id of the form field.
|
|
@@ -46,7 +45,7 @@ interface AutocompleteListProps {
|
|
|
46
45
|
showGroupText: boolean;
|
|
47
46
|
}
|
|
48
47
|
|
|
49
|
-
const AutocompleteList = ({
|
|
48
|
+
export const AutocompleteList = ({
|
|
50
49
|
autocompleteItems,
|
|
51
50
|
comboboxId,
|
|
52
51
|
selectedIndex,
|
|
@@ -65,7 +64,7 @@ const AutocompleteList = ({
|
|
|
65
64
|
};
|
|
66
65
|
|
|
67
66
|
const createListItem = (
|
|
68
|
-
listboxItem: React.ReactElement<
|
|
67
|
+
listboxItem: React.ReactElement<any>,
|
|
69
68
|
itemIndex: number,
|
|
70
69
|
groupMessage?: string
|
|
71
70
|
) => {
|
|
@@ -127,7 +126,7 @@ const AutocompleteList = ({
|
|
|
127
126
|
return (
|
|
128
127
|
<Autocomplete {...listBoxProps}>
|
|
129
128
|
{(autocompleteItems as React.ReactElement<
|
|
130
|
-
|
|
129
|
+
any
|
|
131
130
|
>[]).map((listboxItem: React.ReactElement, index: number) =>
|
|
132
131
|
createListItem(listboxItem, index)
|
|
133
132
|
)}
|
|
@@ -135,5 +134,3 @@ const AutocompleteList = ({
|
|
|
135
134
|
);
|
|
136
135
|
}
|
|
137
136
|
};
|
|
138
|
-
|
|
139
|
-
export default AutocompleteList;
|
|
@@ -8,20 +8,19 @@ import {
|
|
|
8
8
|
useUniqueId,
|
|
9
9
|
} from '@workday/canvas-kit-react/common';
|
|
10
10
|
import {space, commonColors, borderRadius} from '@workday/canvas-kit-react/tokens';
|
|
11
|
-
import {MenuItemProps} from '@workday/canvas-kit-preview-react/menu';
|
|
12
11
|
import {Card} from '@workday/canvas-kit-react/card';
|
|
13
12
|
import {TertiaryButton, TertiaryButtonProps} from '@workday/canvas-kit-react/button';
|
|
14
13
|
import {xSmallIcon} from '@workday/canvas-system-icons-web';
|
|
15
14
|
import {TextInputProps} from '@workday/canvas-kit-react/text-input';
|
|
16
15
|
import flatten from 'lodash.flatten';
|
|
17
|
-
import AutocompleteList from './AutocompleteList';
|
|
18
|
-
import Status from './Status';
|
|
16
|
+
import {AutocompleteList} from './AutocompleteList';
|
|
17
|
+
import {Status} from './Status';
|
|
19
18
|
|
|
20
19
|
export interface ComboBoxMenuItemGroup {
|
|
21
20
|
// A non intractable header that logically separates autocomplete items
|
|
22
|
-
header: React.ReactElement<
|
|
21
|
+
header: React.ReactElement<any>;
|
|
23
22
|
// A group of logically distinct autocomplete items
|
|
24
|
-
items: React.ReactElement<
|
|
23
|
+
items: React.ReactElement<any>[];
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTMLElement> {
|
|
@@ -50,7 +49,7 @@ export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTML
|
|
|
50
49
|
/**
|
|
51
50
|
* The autocomplete items of the Combobox. This array of menu items is shown under the text input.
|
|
52
51
|
*/
|
|
53
|
-
autocompleteItems?: React.ReactElement<
|
|
52
|
+
autocompleteItems?: React.ReactElement<any>[] | ComboBoxMenuItemGroup[];
|
|
54
53
|
/**
|
|
55
54
|
* The function called when the Combobox text input changes.
|
|
56
55
|
*/
|
|
@@ -138,7 +137,7 @@ export const getOptionId = (baseId?: string, index?: number) =>
|
|
|
138
137
|
export const getTextFromElement = (children?: React.ReactNode) => {
|
|
139
138
|
let text = '';
|
|
140
139
|
React.Children.map(children, child => {
|
|
141
|
-
if (child == null || typeof child === 'boolean'
|
|
140
|
+
if (child == null || typeof child === 'boolean') {
|
|
142
141
|
text += '';
|
|
143
142
|
} else if (typeof child === 'string' || typeof child === 'number') {
|
|
144
143
|
text += child.toString();
|
|
@@ -161,7 +160,7 @@ const isValidSingleChild = (child: React.ReactNode) => {
|
|
|
161
160
|
return React.isValidElement(child) && React.Children.only(child);
|
|
162
161
|
};
|
|
163
162
|
|
|
164
|
-
const Combobox = ({
|
|
163
|
+
export const Combobox = ({
|
|
165
164
|
autocompleteItems,
|
|
166
165
|
children,
|
|
167
166
|
grow,
|
|
@@ -182,7 +181,7 @@ const Combobox = ({
|
|
|
182
181
|
const [showingAutocomplete, setShowingAutocomplete] = useState(false);
|
|
183
182
|
const [selectedAutocompleteIndex, setSelectedAutocompleteIndex] = useState<number | null>(null);
|
|
184
183
|
const [interactiveAutocompleteItems, setInteractiveAutocompleteItems] = useState<
|
|
185
|
-
React.ReactElement<
|
|
184
|
+
React.ReactElement<any>[]
|
|
186
185
|
>([]);
|
|
187
186
|
const [announcementText, setAnnouncementText] = useState('');
|
|
188
187
|
|
|
@@ -263,7 +262,7 @@ const Combobox = ({
|
|
|
263
262
|
}, [initialValue, setInputValue]);
|
|
264
263
|
|
|
265
264
|
useEffect(() => {
|
|
266
|
-
const getInteractiveAutocompleteItems = (): React.ReactElement<
|
|
265
|
+
const getInteractiveAutocompleteItems = (): React.ReactElement<any>[] => {
|
|
267
266
|
if (
|
|
268
267
|
autocompleteItems &&
|
|
269
268
|
autocompleteItems.length &&
|
|
@@ -271,14 +270,14 @@ const Combobox = ({
|
|
|
271
270
|
) {
|
|
272
271
|
return flatten((autocompleteItems as ComboBoxMenuItemGroup[]).map(group => group.items));
|
|
273
272
|
}
|
|
274
|
-
return (autocompleteItems as React.ReactElement<
|
|
273
|
+
return (autocompleteItems as React.ReactElement<any>[]) || [];
|
|
275
274
|
};
|
|
276
275
|
setInteractiveAutocompleteItems(getInteractiveAutocompleteItems());
|
|
277
276
|
}, [autocompleteItems]);
|
|
278
277
|
|
|
279
278
|
const handleAutocompleteClick = (
|
|
280
279
|
event: React.SyntheticEvent<Element, Event>,
|
|
281
|
-
menuItemProps:
|
|
280
|
+
menuItemProps: any
|
|
282
281
|
): void => {
|
|
283
282
|
if (menuItemProps.isDisabled) {
|
|
284
283
|
return;
|
|
@@ -313,11 +312,8 @@ const Combobox = ({
|
|
|
313
312
|
|
|
314
313
|
const handleBlur = (event: React.FocusEvent) => {
|
|
315
314
|
if (comboboxRef.current) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
// IE11 swaps related and active target before it fires the blur event
|
|
319
|
-
target = document.activeElement;
|
|
320
|
-
}
|
|
315
|
+
const target: EventTarget | null = event.relatedTarget;
|
|
316
|
+
|
|
321
317
|
if (target && comboboxRef.current.contains(target as Element)) {
|
|
322
318
|
return;
|
|
323
319
|
}
|
|
@@ -415,7 +411,7 @@ const Combobox = ({
|
|
|
415
411
|
};
|
|
416
412
|
|
|
417
413
|
const renderChildren = (inputElement: React.ReactElement<TextInputProps>): React.ReactNode => {
|
|
418
|
-
let cssOverride: CSSObject = {zIndex: 2};
|
|
414
|
+
let cssOverride: CSSObject = {':focus': {zIndex: 2}};
|
|
419
415
|
if (showClearButton) {
|
|
420
416
|
const paddingDirection = isRTL ? 'paddingLeft' : 'paddingRight';
|
|
421
417
|
cssOverride = {
|
|
@@ -491,5 +487,3 @@ const Combobox = ({
|
|
|
491
487
|
</Container>
|
|
492
488
|
);
|
|
493
489
|
};
|
|
494
|
-
|
|
495
|
-
export default Combobox;
|
package/combobox/lib/Status.tsx
CHANGED
|
@@ -13,7 +13,7 @@ export interface StatusProps {
|
|
|
13
13
|
|
|
14
14
|
const Container = styled('div')(accessibleHide);
|
|
15
15
|
|
|
16
|
-
const Status = ({
|
|
16
|
+
export const Status = ({
|
|
17
17
|
ariaLive = 'polite',
|
|
18
18
|
role = 'status',
|
|
19
19
|
ariaRelevant = 'additions',
|
|
@@ -44,5 +44,3 @@ const Status = ({
|
|
|
44
44
|
</Container>
|
|
45
45
|
);
|
|
46
46
|
};
|
|
47
|
-
|
|
48
|
-
export default Status;
|
package/combobox/package.json
CHANGED
package/common/index.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
convertToStaticStates,
|
|
3
|
-
CanvasTheme,
|
|
4
|
-
useIsRTL,
|
|
5
|
-
useTheme,
|
|
6
|
-
} from '@workday/canvas-kit-react/common';
|
|
1
|
+
import {CanvasTheme, useIsRTL, useTheme, StyleRewriteFn} from '@workday/canvas-kit-react/common';
|
|
7
2
|
import {CSSProperties} from '@workday/canvas-kit-react/tokens';
|
|
8
3
|
import {useMemo} from 'react';
|
|
9
4
|
import rtlCSSJS from 'rtl-css-js';
|
|
10
5
|
|
|
11
6
|
export type ComponentStyles = Record<string, CSSProperties>;
|
|
12
|
-
type ThemeWithStaticStates = CanvasTheme & {
|
|
7
|
+
type ThemeWithStaticStates = CanvasTheme & {_styleRewriteFn?: StyleRewriteFn};
|
|
13
8
|
|
|
14
9
|
const getDirectionalStyles = (isRTL: boolean, ...styles: CSSProperties[]) => {
|
|
15
10
|
return isRTL ? rtlCSSJS(styles) : styles;
|
|
16
11
|
};
|
|
17
12
|
|
|
18
|
-
const getConvertedStyles = (
|
|
19
|
-
|
|
13
|
+
const getConvertedStyles = (
|
|
14
|
+
styles: CSSProperties,
|
|
15
|
+
convertFunc?: StyleRewriteFn
|
|
16
|
+
): CSSProperties | undefined => {
|
|
17
|
+
return convertFunc ? convertFunc(styles) : styles;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
20
|
/**
|
|
21
|
+
* @deprecated Now that IE11 is no longer supported, we encourage consumers to use [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)
|
|
22
|
+
*
|
|
23
|
+
*
|
|
23
24
|
* A helpful hook for supporting bidirectional styles.
|
|
24
25
|
* * Read below for more detail or [view the docs](https://github.com/Workday/canvas-kit/blob/master/modules/labs-react/common/README.md#useThemeRTL).
|
|
25
26
|
*
|
|
@@ -51,19 +52,19 @@ const getConvertedStyles = (shouldConvert: boolean, styles: CSSProperties): CSSP
|
|
|
51
52
|
export function useThemeRTL() {
|
|
52
53
|
const theme = useTheme();
|
|
53
54
|
const direction = useIsRTL(theme);
|
|
54
|
-
const
|
|
55
|
+
const convertFunc = (theme.canvas as ThemeWithStaticStates)._styleRewriteFn;
|
|
55
56
|
|
|
56
57
|
const themeRTL = useMemo(() => {
|
|
57
58
|
return (...cssObject: CSSProperties[]) => {
|
|
58
59
|
const styles = getDirectionalStyles(direction, ...cssObject);
|
|
59
60
|
return styles.reduce((first, second) => {
|
|
60
|
-
const convertedFirst =
|
|
61
|
-
const convertedSecond =
|
|
61
|
+
const convertedFirst = getConvertedStyles(first, convertFunc);
|
|
62
|
+
const convertedSecond = getConvertedStyles(second, convertFunc);
|
|
62
63
|
|
|
63
64
|
return {...convertedFirst, ...convertedSecond};
|
|
64
65
|
}, {});
|
|
65
66
|
};
|
|
66
|
-
}, [direction,
|
|
67
|
+
}, [direction, convertFunc]);
|
|
67
68
|
|
|
68
69
|
return {themeRTL, theme};
|
|
69
70
|
}
|
package/common/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -9,12 +9,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.Combobox = void 0;
|
|
17
|
-
var Combobox_1 = __importDefault(require("./lib/Combobox"));
|
|
18
|
-
exports.Combobox = Combobox_1.default;
|
|
19
|
-
exports.default = Combobox_1.default;
|
|
20
13
|
__exportStar(require("./lib/Combobox"), exports);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MenuItemProps } from '@workday/canvas-kit-preview-react/menu';
|
|
3
2
|
import { ComboBoxMenuItemGroup } from './Combobox';
|
|
4
3
|
interface AutocompleteListProps {
|
|
5
4
|
/**
|
|
6
5
|
* The autocomplete items of the Combobox. This array of menu items is shown under the text input.
|
|
7
6
|
*/
|
|
8
|
-
autocompleteItems: React.ReactElement<
|
|
7
|
+
autocompleteItems: React.ReactElement<any>[] | ComboBoxMenuItemGroup[];
|
|
9
8
|
/**
|
|
10
9
|
* Index of the active autocomplete item
|
|
11
10
|
*/
|
|
@@ -13,7 +12,7 @@ interface AutocompleteListProps {
|
|
|
13
12
|
/**
|
|
14
13
|
* The function called when an autocomplete item is selected
|
|
15
14
|
*/
|
|
16
|
-
handleAutocompleteClick: (event: React.SyntheticEvent<Element, Event>, menuItemProps:
|
|
15
|
+
handleAutocompleteClick: (event: React.SyntheticEvent<Element, Event>, menuItemProps: any) => void;
|
|
17
16
|
/**
|
|
18
17
|
* The id of the form field.
|
|
19
18
|
*/
|
|
@@ -27,6 +26,6 @@ interface AutocompleteListProps {
|
|
|
27
26
|
*/
|
|
28
27
|
showGroupText: boolean;
|
|
29
28
|
}
|
|
30
|
-
declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
|
|
31
|
-
export
|
|
29
|
+
export declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
|
|
30
|
+
export {};
|
|
32
31
|
//# sourceMappingURL=AutocompleteList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,qBAAqB,EAAiD,MAAM,YAAY,CAAC;AAYjG,UAAU,qBAAqB;IAC7B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACvE;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAC3C,aAAa,EAAE,GAAG,KACf,IAAI,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,uGAO1B,qBAAqB,uBAiFvB,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
@@ -29,54 +18,48 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
29
18
|
__setModuleDefault(result, mod);
|
|
30
19
|
return result;
|
|
31
20
|
};
|
|
32
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
33
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
34
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
35
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
36
|
-
r[k] = a[j];
|
|
37
|
-
return r;
|
|
38
|
-
};
|
|
39
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
23
|
};
|
|
42
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
exports.AutocompleteList = void 0;
|
|
26
|
+
const react_1 = __importStar(require("react"));
|
|
27
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
28
|
+
const tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
29
|
+
const common_1 = require("@workday/canvas-kit-react/common");
|
|
30
|
+
const Combobox_1 = require("./Combobox");
|
|
31
|
+
const Autocomplete = styled_1.default('ul')({
|
|
49
32
|
margin: 0,
|
|
50
33
|
maxHeight: 200,
|
|
51
34
|
boxSizing: 'border-box',
|
|
52
35
|
overflowY: 'auto',
|
|
53
|
-
padding: tokens_1.space.xxs
|
|
36
|
+
padding: `${tokens_1.space.xxs} 0`,
|
|
54
37
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var listBoxProps = {
|
|
38
|
+
const AccessibleHide = styled_1.default('span')(common_1.accessibleHide);
|
|
39
|
+
const AutocompleteList = ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }) => {
|
|
40
|
+
const [randomComponentId] = react_1.useState(common_1.generateUniqueId); // https://codesandbox.io/s/p2ndq
|
|
41
|
+
const componentId = comboboxId || randomComponentId;
|
|
42
|
+
const listBoxProps = {
|
|
61
43
|
role: 'listbox',
|
|
62
|
-
id: componentId
|
|
44
|
+
id: `${componentId}-${Combobox_1.listBoxIdPart}`,
|
|
63
45
|
'aria-labelledby': labelId,
|
|
64
46
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
react_1.default.createElement(AccessibleHide, { key:
|
|
68
|
-
|
|
47
|
+
const createListItem = (listboxItem, itemIndex, groupMessage) => {
|
|
48
|
+
const children = [
|
|
49
|
+
react_1.default.createElement(AccessibleHide, { key: `group-message-${itemIndex}` }, groupMessage),
|
|
50
|
+
...react_1.default.Children.toArray(listboxItem.props.children),
|
|
51
|
+
];
|
|
69
52
|
return (react_1.default.createElement(react_1.Fragment, { key: itemIndex }, react_1.default.cloneElement(listboxItem, {
|
|
70
53
|
children: children,
|
|
71
54
|
id: Combobox_1.getOptionId(componentId, itemIndex),
|
|
72
55
|
role: 'option',
|
|
73
56
|
isFocused: selectedIndex === itemIndex,
|
|
74
57
|
'aria-selected': selectedIndex === itemIndex ? true : undefined,
|
|
75
|
-
onMouseDown:
|
|
58
|
+
onMouseDown: (event) => {
|
|
76
59
|
// prevent focus from shifting away from the the combobox
|
|
77
60
|
event.preventDefault();
|
|
78
61
|
},
|
|
79
|
-
onClick:
|
|
62
|
+
onClick: (event) => {
|
|
80
63
|
event.preventDefault();
|
|
81
64
|
handleAutocompleteClick(event, listboxItem.props);
|
|
82
65
|
},
|
|
@@ -86,30 +69,27 @@ var AutocompleteList = function (_a) {
|
|
|
86
69
|
return null;
|
|
87
70
|
}
|
|
88
71
|
else if (autocompleteItems[0].hasOwnProperty('header')) {
|
|
89
|
-
|
|
90
|
-
return (react_1.default.createElement(Autocomplete,
|
|
91
|
-
|
|
92
|
-
var groupLabel = "itemGroup-" + componentId + "-" + groupIndex;
|
|
72
|
+
let itemIndex = 0;
|
|
73
|
+
return (react_1.default.createElement(Autocomplete, Object.assign({}, listBoxProps), autocompleteItems.map(({ header, items }, groupIndex) => {
|
|
74
|
+
const groupLabel = `itemGroup-${componentId}-${groupIndex}`;
|
|
93
75
|
return (react_1.default.createElement(react_1.Fragment, { key: groupLabel },
|
|
94
76
|
react_1.default.cloneElement(header, {
|
|
95
77
|
role: 'presentation',
|
|
96
|
-
style: { pointerEvents:
|
|
78
|
+
style: { pointerEvents: `none` },
|
|
97
79
|
}),
|
|
98
|
-
items.map(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
?
|
|
80
|
+
items.map((listboxItem) => {
|
|
81
|
+
const headerName = Combobox_1.getTextFromElement(header);
|
|
82
|
+
const groupMessage = showGroupText
|
|
83
|
+
? `Entering group ${headerName}, with ${items.length} options.`
|
|
102
84
|
: undefined;
|
|
103
|
-
|
|
104
|
-
|
|
85
|
+
const item = createListItem(listboxItem, itemIndex, groupMessage);
|
|
86
|
+
itemIndex++;
|
|
105
87
|
return item;
|
|
106
88
|
})));
|
|
107
89
|
})));
|
|
108
90
|
}
|
|
109
91
|
else {
|
|
110
|
-
return (react_1.default.createElement(Autocomplete,
|
|
111
|
-
return createListItem(listboxItem, index);
|
|
112
|
-
})));
|
|
92
|
+
return (react_1.default.createElement(Autocomplete, Object.assign({}, listBoxProps), autocompleteItems.map((listboxItem, index) => createListItem(listboxItem, index))));
|
|
113
93
|
}
|
|
114
94
|
};
|
|
115
|
-
exports.
|
|
95
|
+
exports.AutocompleteList = AutocompleteList;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { MenuItemProps } from '@workday/canvas-kit-preview-react/menu';
|
|
4
3
|
import { TertiaryButtonProps } from '@workday/canvas-kit-react/button';
|
|
5
4
|
import { TextInputProps } from '@workday/canvas-kit-react/text-input';
|
|
6
5
|
export interface ComboBoxMenuItemGroup {
|
|
7
|
-
header: React.ReactElement<
|
|
8
|
-
items: React.ReactElement<
|
|
6
|
+
header: React.ReactElement<any>;
|
|
7
|
+
items: React.ReactElement<any>[];
|
|
9
8
|
}
|
|
10
9
|
export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTMLElement> {
|
|
11
10
|
/**
|
|
@@ -33,7 +32,7 @@ export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTML
|
|
|
33
32
|
/**
|
|
34
33
|
* The autocomplete items of the Combobox. This array of menu items is shown under the text input.
|
|
35
34
|
*/
|
|
36
|
-
autocompleteItems?: React.ReactElement<
|
|
35
|
+
autocompleteItems?: React.ReactElement<any>[] | ComboBoxMenuItemGroup[];
|
|
37
36
|
/**
|
|
38
37
|
* The function called when the Combobox text input changes.
|
|
39
38
|
*/
|
|
@@ -58,6 +57,5 @@ export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTML
|
|
|
58
57
|
export declare const listBoxIdPart = "listbox";
|
|
59
58
|
export declare const getOptionId: (baseId?: string | undefined, index?: number | undefined) => string;
|
|
60
59
|
export declare const getTextFromElement: (children?: React.ReactNode) => string;
|
|
61
|
-
declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
|
|
62
|
-
export default Combobox;
|
|
60
|
+
export declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
|
|
63
61
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,OAAO,EACL,cAAc,EAKf,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,OAAO,EACL,cAAc,EAKf,MAAM,kCAAkC,CAAC;AAG1C,OAAO,EAAiB,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAErF,OAAO,EAAC,cAAc,EAAC,MAAM,sCAAsC,CAAC;AAKpE,MAAM,WAAW,qBAAqB;IAEpC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAEhC,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACtF;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC;IAC7C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACpD;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACxE;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AA2DD,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,WAAW,qEACc,CAAC;AAEvC,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAAS,WAc5D,CAAC;AAYF,eAAO,MAAM,QAAQ,wLAelB,aAAa,gBAuTf,CAAC"}
|