@xqmsg/ui-core 0.24.9 → 0.24.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form/FormTypes.d.ts +2 -2
- package/dist/components/input/InputTypes.d.ts +0 -1
- package/dist/components/input/StackedMultiSelect/index.d.ts +2 -2
- package/dist/components/input/StackedRadio/StackedRadioGroup.d.ts +2 -2
- package/dist/components/input/StackedSelect/index.d.ts +4 -3
- package/dist/components/input/components/dropdown/index.d.ts +2 -2
- package/dist/components/input/index.d.ts +5 -4
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/toolbar/components/actions/sort/index.d.ts +2 -2
- package/dist/components/toolbar/components/dropdown/index.d.ts +2 -2
- package/dist/theme/components/menu.d.ts +55 -0
- package/dist/ui-core.cjs.development.js +109 -34
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +109 -34
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/form/FormTypes.ts +2 -2
- package/src/components/icons/workspace/index.tsx +1 -1
- package/src/components/input/Input.stories.tsx +1 -0
- package/src/components/input/InputTypes.ts +0 -2
- package/src/components/input/StackedMultiSelect/index.tsx +6 -9
- package/src/components/input/StackedRadio/StackedRadioGroup.tsx +2 -3
- package/src/components/input/StackedSelect/index.tsx +16 -12
- package/src/components/input/components/dropdown/index.tsx +2 -2
- package/src/components/input/index.tsx +9 -6
- package/src/components/select/index.tsx +3 -3
- package/src/components/toolbar/components/actions/sort/index.tsx +2 -2
- package/src/components/toolbar/components/dropdown/index.tsx +2 -2
- package/src/theme/components/menu.ts +78 -0
- package/src/theme/customXQChakraTheme.ts +2 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldOption, InputType } from '../input/InputTypes';
|
|
2
2
|
export interface FormInput {
|
|
3
3
|
label: string;
|
|
4
4
|
name: string;
|
|
5
5
|
ariaLabel: string;
|
|
6
6
|
inputType: InputType;
|
|
7
|
-
options?:
|
|
7
|
+
options?: FieldOption[];
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
isRequired: boolean;
|
|
10
10
|
maxLength?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldOption, ReactSelectFieldProps } from '../InputTypes';
|
|
3
3
|
import { Control, FieldValues, UseFormClearErrors, UseFormSetError, UseFormSetValue } from 'react-hook-form';
|
|
4
4
|
export interface StackedMultiSelectProps extends ReactSelectFieldProps {
|
|
5
|
-
options:
|
|
5
|
+
options: FieldOption[];
|
|
6
6
|
setValue: UseFormSetValue<FieldValues>;
|
|
7
7
|
setError: UseFormSetError<FieldValues>;
|
|
8
8
|
clearErrors: UseFormClearErrors<FieldValues>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldOption, SelectFieldProps } from '../InputTypes';
|
|
3
3
|
export interface StackedRadioGroupProps extends SelectFieldProps {
|
|
4
4
|
flexDirection?: 'row' | 'column';
|
|
5
|
-
options:
|
|
5
|
+
options: FieldOption[];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* A functional React component utilized to render the `StackedRadio` component.
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldOption } from '../InputTypes';
|
|
3
3
|
import { StackedInputProps } from '../StackedInput/StackedInput';
|
|
4
4
|
import { UseFormSetValue, FieldValues, Control } from 'react-hook-form';
|
|
5
5
|
export interface StackedSelectProps extends StackedInputProps {
|
|
6
|
-
options:
|
|
7
|
-
fullOptions?:
|
|
6
|
+
options: FieldOption[];
|
|
7
|
+
fullOptions?: FieldOption[];
|
|
8
8
|
setValue: UseFormSetValue<FieldValues>;
|
|
9
9
|
control: Control<FieldValues, any>;
|
|
10
10
|
handleOnChange: (value?: string) => void;
|
|
11
11
|
loadingOptions?: boolean;
|
|
12
|
+
searchable?: boolean;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* A functional React component utilized to render the `StackedSelect` component.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { FieldOption
|
|
2
|
+
import { FieldOption } from '../../InputTypes';
|
|
3
3
|
export interface DropdownProps {
|
|
4
4
|
onSelectItem: (option: FieldOption) => void;
|
|
5
|
-
options:
|
|
5
|
+
options: FieldOption[];
|
|
6
6
|
dropdownRef: RefObject<HTMLDivElement>;
|
|
7
7
|
position: 'top' | 'bottom';
|
|
8
8
|
optionIndex?: number | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ChangeEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldOption, ValidationProps, InputType } from './InputTypes';
|
|
3
3
|
import { Control, FieldValues, UseFormClearErrors, UseFormSetError, UseFormSetValue } from 'react-hook-form';
|
|
4
4
|
export interface InputProps<T extends FieldValues = FieldValues> extends ValidationProps {
|
|
5
5
|
inputType: InputType;
|
|
@@ -9,8 +9,8 @@ export interface InputProps<T extends FieldValues = FieldValues> extends Validat
|
|
|
9
9
|
defaultValue?: string;
|
|
10
10
|
label?: string;
|
|
11
11
|
className?: string;
|
|
12
|
-
options?:
|
|
13
|
-
fullOptions?:
|
|
12
|
+
options?: FieldOption[];
|
|
13
|
+
fullOptions?: FieldOption[];
|
|
14
14
|
maxLength?: number;
|
|
15
15
|
helperText?: React.ReactNode;
|
|
16
16
|
control: Control<T, any>;
|
|
@@ -26,9 +26,10 @@ export interface InputProps<T extends FieldValues = FieldValues> extends Validat
|
|
|
26
26
|
separators?: string[];
|
|
27
27
|
loadingOptions?: boolean;
|
|
28
28
|
truncatePillLength?: number;
|
|
29
|
+
searchable?: boolean;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* A functional React component utilized to render the `Input` component. Utilizes a switch statement
|
|
32
33
|
* to render the correct input based on the `inputType`.
|
|
33
34
|
*/
|
|
34
|
-
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, variant, onChange, setValue, setError, clearErrors, separators, loadingOptions, truncatePillLength, }: InputProps<T>): React.JSX.Element;
|
|
35
|
+
export declare function Input<T extends FieldValues>({ inputType, label, ariaLabel, className, placeholder, name, helperText, options, tooltipText, isInvalid, errorText, isRequired, maxLength, defaultValue, fullOptions, control, disabled, rightElement, leftElement, variant, onChange, setValue, setError, clearErrors, separators, loadingOptions, truncatePillLength, searchable, }: InputProps<T>): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectProps } from '@chakra-ui/react';
|
|
3
3
|
import { Control, FieldValues, Path, UseFormClearErrors, UseFormSetError, UseFormSetValue } from 'react-hook-form';
|
|
4
|
-
import {
|
|
4
|
+
import { FieldOption, ValidationProps } from 'src/components/input/InputTypes';
|
|
5
5
|
export interface SelectNativeProps<T extends FieldValues> extends ValidationProps, SelectProps {
|
|
6
6
|
isRequired: boolean;
|
|
7
7
|
name: Path<T>;
|
|
@@ -10,8 +10,8 @@ export interface SelectNativeProps<T extends FieldValues> extends ValidationProp
|
|
|
10
10
|
defaultValue?: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
className?: string;
|
|
13
|
-
options?:
|
|
14
|
-
fullOptions?:
|
|
13
|
+
options?: FieldOption[];
|
|
14
|
+
fullOptions?: FieldOption[];
|
|
15
15
|
helperText?: React.ReactNode;
|
|
16
16
|
control: Control<T, unknown>;
|
|
17
17
|
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FieldOption
|
|
2
|
+
import { FieldOption } from '../../../../input/InputTypes';
|
|
3
3
|
export interface SortProps {
|
|
4
4
|
onSelectItem: (option: FieldOption) => void;
|
|
5
|
-
sortOptions:
|
|
5
|
+
sortOptions: FieldOption[];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* A functional React component utilized to render the `Sort` component
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import { FieldOption
|
|
2
|
+
import { FieldOption } from '../../../input/InputTypes';
|
|
3
3
|
export interface DropdownProps {
|
|
4
4
|
onSelectItem: (option: FieldOption) => void;
|
|
5
|
-
options:
|
|
5
|
+
options: FieldOption[];
|
|
6
6
|
dropdownRef: RefObject<HTMLDivElement>;
|
|
7
7
|
position: 'top' | 'bottom';
|
|
8
8
|
optionIndex: number | null;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: (props: Record<string, any>) => {
|
|
4
|
+
list: {
|
|
5
|
+
bg: string;
|
|
6
|
+
boxShadow: string;
|
|
7
|
+
color: string;
|
|
8
|
+
minW: string;
|
|
9
|
+
py: number;
|
|
10
|
+
px: number;
|
|
11
|
+
zIndex: string;
|
|
12
|
+
borderWidth: number;
|
|
13
|
+
overflow: string;
|
|
14
|
+
backdropFilter: string;
|
|
15
|
+
backdropBlur: string;
|
|
16
|
+
borderRadius: string;
|
|
17
|
+
border: string;
|
|
18
|
+
borderColor: string;
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
fontSize: string;
|
|
22
|
+
fontWeight: number;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
py: number;
|
|
25
|
+
px: number;
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
width: string;
|
|
28
|
+
transition: string;
|
|
29
|
+
_hover: {
|
|
30
|
+
color: string;
|
|
31
|
+
background: string;
|
|
32
|
+
};
|
|
33
|
+
_active: {
|
|
34
|
+
bg: string;
|
|
35
|
+
};
|
|
36
|
+
_expanded: {
|
|
37
|
+
bg: string;
|
|
38
|
+
};
|
|
39
|
+
_disabled: {
|
|
40
|
+
opacity: number;
|
|
41
|
+
cursor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
groupTitle: {
|
|
45
|
+
mx: number;
|
|
46
|
+
my: number;
|
|
47
|
+
fontWeight: string;
|
|
48
|
+
fontSize: string;
|
|
49
|
+
};
|
|
50
|
+
command: {
|
|
51
|
+
opacity: number;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|
|
@@ -1041,7 +1041,7 @@ var Dropdown$1 = function Dropdown(_ref) {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
};
|
|
1043
1043
|
|
|
1044
|
-
var _excluded$1 = ["isRequired", "options", "name", "setValue", "handleOnChange", "disabled", "value", "fullOptions", "loadingOptions"];
|
|
1044
|
+
var _excluded$1 = ["isRequired", "options", "name", "setValue", "handleOnChange", "disabled", "value", "fullOptions", "loadingOptions", "searchable"];
|
|
1045
1045
|
/**
|
|
1046
1046
|
* A functional React component utilized to render the `StackedSelect` component.
|
|
1047
1047
|
*/
|
|
@@ -1056,6 +1056,8 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1056
1056
|
value = _ref2.value,
|
|
1057
1057
|
fullOptions = _ref2.fullOptions,
|
|
1058
1058
|
loadingOptions = _ref2.loadingOptions,
|
|
1059
|
+
_ref2$searchable = _ref2.searchable,
|
|
1060
|
+
searchable = _ref2$searchable === void 0 ? true : _ref2$searchable,
|
|
1059
1061
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
|
|
1060
1062
|
var dropdownRef = React.useRef(null);
|
|
1061
1063
|
var dropdownMenuRef = React.useRef(null);
|
|
@@ -1174,11 +1176,13 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1174
1176
|
}));
|
|
1175
1177
|
}, [options, searchValue]);
|
|
1176
1178
|
var handleInput = function handleInput(e) {
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1179
|
+
if (searchable) {
|
|
1180
|
+
var _filteredOptions$;
|
|
1181
|
+
var initialOptionIndex = filteredOptions.length && ((_filteredOptions$ = filteredOptions[0]) == null ? void 0 : _filteredOptions$.value) === 'section_header' ? 1 : 0;
|
|
1182
|
+
setOptionIndex(initialOptionIndex);
|
|
1183
|
+
var _value = e.target.value;
|
|
1184
|
+
setSearchValue(_value);
|
|
1185
|
+
}
|
|
1182
1186
|
};
|
|
1183
1187
|
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
1184
1188
|
ref: dropdownRef,
|
|
@@ -1191,7 +1195,6 @@ var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
1191
1195
|
return setIsFocussed(!isFocussed);
|
|
1192
1196
|
},
|
|
1193
1197
|
cursor: isFocussed ? 'default' : 'pointer',
|
|
1194
|
-
color: loadingOptions ? 'transparent' : 'inital',
|
|
1195
1198
|
fontSize: "13px",
|
|
1196
1199
|
value: isFocussed ? searchValue : selectedOption,
|
|
1197
1200
|
autoComplete: "off",
|
|
@@ -1597,6 +1600,7 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
1597
1600
|
optionIndex: optionIndex,
|
|
1598
1601
|
loading: loadingOptions
|
|
1599
1602
|
}, /*#__PURE__*/React__default.createElement(react.Input, {
|
|
1603
|
+
autoFocus: true,
|
|
1600
1604
|
value: searchValue,
|
|
1601
1605
|
onChange: handleInput,
|
|
1602
1606
|
disabled: loadingOptions
|
|
@@ -1946,7 +1950,8 @@ function Input(_ref) {
|
|
|
1946
1950
|
separators = _ref.separators,
|
|
1947
1951
|
_ref$loadingOptions = _ref.loadingOptions,
|
|
1948
1952
|
loadingOptions = _ref$loadingOptions === void 0 ? false : _ref$loadingOptions,
|
|
1949
|
-
truncatePillLength = _ref.truncatePillLength
|
|
1953
|
+
truncatePillLength = _ref.truncatePillLength,
|
|
1954
|
+
searchable = _ref.searchable;
|
|
1950
1955
|
function selectedInputField(onChange, onBlur, ref, value) {
|
|
1951
1956
|
switch (inputType) {
|
|
1952
1957
|
case 'text':
|
|
@@ -2001,7 +2006,8 @@ function Input(_ref) {
|
|
|
2001
2006
|
defaultValue: defaultValue,
|
|
2002
2007
|
placeholder: placeholder,
|
|
2003
2008
|
fullOptions: fullOptions,
|
|
2004
|
-
loadingOptions: loadingOptions
|
|
2009
|
+
loadingOptions: loadingOptions,
|
|
2010
|
+
searchable: searchable
|
|
2005
2011
|
});
|
|
2006
2012
|
case 'textarea':
|
|
2007
2013
|
return /*#__PURE__*/React__default.createElement(StackedTextarea, {
|
|
@@ -3034,7 +3040,8 @@ var Workspace = function Workspace(_ref) {
|
|
|
3034
3040
|
filled = _ref$filled === void 0 ? false : _ref$filled;
|
|
3035
3041
|
if (filled) {
|
|
3036
3042
|
return /*#__PURE__*/React__default.createElement(Memo$w, {
|
|
3037
|
-
|
|
3043
|
+
width: boxSize,
|
|
3044
|
+
height: boxSize
|
|
3038
3045
|
});
|
|
3039
3046
|
}
|
|
3040
3047
|
return /*#__PURE__*/React__default.createElement(react.Image, {
|
|
@@ -4270,8 +4277,75 @@ var Link$1 = {
|
|
|
4270
4277
|
variants: variants$6
|
|
4271
4278
|
};
|
|
4272
4279
|
|
|
4273
|
-
var parts$4 = ['
|
|
4274
|
-
|
|
4280
|
+
var parts$4 = ['item', 'command', 'list', 'button', 'groupTitle'];
|
|
4281
|
+
function baseStyleList(props) {
|
|
4282
|
+
return {
|
|
4283
|
+
bg: colors.fill.light.quaternary,
|
|
4284
|
+
boxShadow: themeTools.mode("2xl", "dark-lg")(props),
|
|
4285
|
+
color: 'inherit',
|
|
4286
|
+
minW: '3xs',
|
|
4287
|
+
py: 4,
|
|
4288
|
+
px: 2,
|
|
4289
|
+
zIndex: 'docked',
|
|
4290
|
+
borderWidth: 0,
|
|
4291
|
+
overflow: 'hidden',
|
|
4292
|
+
backdropFilter: 'auto',
|
|
4293
|
+
backdropBlur: '64px',
|
|
4294
|
+
borderRadius: '4px',
|
|
4295
|
+
border: '0.25px solid',
|
|
4296
|
+
borderColor: colors.fill.light.tertiary
|
|
4297
|
+
};
|
|
4298
|
+
}
|
|
4299
|
+
function baseStyleItem(props) {
|
|
4300
|
+
return {
|
|
4301
|
+
fontSize: '13px;',
|
|
4302
|
+
fontWeight: 500,
|
|
4303
|
+
lineHeight: '16px',
|
|
4304
|
+
py: 3,
|
|
4305
|
+
px: 4,
|
|
4306
|
+
borderRadius: '4px',
|
|
4307
|
+
width: '100%',
|
|
4308
|
+
transition: 'background 50ms ease-in 0s',
|
|
4309
|
+
_hover: {
|
|
4310
|
+
color: colors.white,
|
|
4311
|
+
background: colors.fill.action
|
|
4312
|
+
},
|
|
4313
|
+
_active: {
|
|
4314
|
+
bg: themeTools.mode("gray.200", "whiteAlpha.200")(props)
|
|
4315
|
+
},
|
|
4316
|
+
_expanded: {
|
|
4317
|
+
bg: themeTools.mode("gray.100", "whiteAlpha.100")(props)
|
|
4318
|
+
},
|
|
4319
|
+
_disabled: {
|
|
4320
|
+
opacity: 0.4,
|
|
4321
|
+
cursor: 'not-allowed'
|
|
4322
|
+
}
|
|
4323
|
+
};
|
|
4324
|
+
}
|
|
4325
|
+
var baseStyleGroupTitle = {
|
|
4326
|
+
mx: 4,
|
|
4327
|
+
my: 2,
|
|
4328
|
+
fontWeight: 'semibold',
|
|
4329
|
+
fontSize: 'sm'
|
|
4330
|
+
};
|
|
4331
|
+
var baseStyleCommand = {
|
|
4332
|
+
opacity: 0.6
|
|
4333
|
+
};
|
|
4334
|
+
var baseStyle$9 = function baseStyle(props) {
|
|
4335
|
+
return {
|
|
4336
|
+
list: baseStyleList(props),
|
|
4337
|
+
item: baseStyleItem(props),
|
|
4338
|
+
groupTitle: baseStyleGroupTitle,
|
|
4339
|
+
command: baseStyleCommand
|
|
4340
|
+
};
|
|
4341
|
+
};
|
|
4342
|
+
var Menu$1 = {
|
|
4343
|
+
parts: parts$4,
|
|
4344
|
+
baseStyle: baseStyle$9
|
|
4345
|
+
};
|
|
4346
|
+
|
|
4347
|
+
var parts$5 = ['overlay', 'dialogContainer', 'dialog', 'header', 'closeButton', 'body', 'footer'];
|
|
4348
|
+
var baseStyle$a = {
|
|
4275
4349
|
width: 'fit-content',
|
|
4276
4350
|
height: 'fit-content',
|
|
4277
4351
|
background: '#F6F6F6',
|
|
@@ -4302,8 +4376,8 @@ var baseStyle$9 = {
|
|
|
4302
4376
|
}
|
|
4303
4377
|
};
|
|
4304
4378
|
var Modal$1 = {
|
|
4305
|
-
parts: parts$
|
|
4306
|
-
baseStyle: baseStyle$
|
|
4379
|
+
parts: parts$5,
|
|
4380
|
+
baseStyle: baseStyle$a
|
|
4307
4381
|
};
|
|
4308
4382
|
|
|
4309
4383
|
var Popover = {
|
|
@@ -4316,7 +4390,7 @@ var Popover = {
|
|
|
4316
4390
|
|
|
4317
4391
|
var defaultProps$5 = Input$1.defaultProps,
|
|
4318
4392
|
variants$7 = Input$1.variants;
|
|
4319
|
-
var parts$
|
|
4393
|
+
var parts$6 = ['field', 'icon'];
|
|
4320
4394
|
function baseStyleField() {
|
|
4321
4395
|
return _extends$6({}, Input$1.baseStyle.field, {
|
|
4322
4396
|
appearance: 'none',
|
|
@@ -4335,20 +4409,20 @@ var baseStyleInput = {
|
|
|
4335
4409
|
opacity: 0.5
|
|
4336
4410
|
}
|
|
4337
4411
|
};
|
|
4338
|
-
var baseStyle$
|
|
4412
|
+
var baseStyle$b = function baseStyle() {
|
|
4339
4413
|
return {
|
|
4340
4414
|
field: baseStyleField(),
|
|
4341
4415
|
icon: baseStyleInput
|
|
4342
4416
|
};
|
|
4343
4417
|
};
|
|
4344
4418
|
var Select = {
|
|
4345
|
-
parts: parts$
|
|
4346
|
-
baseStyle: baseStyle$
|
|
4419
|
+
parts: parts$6,
|
|
4420
|
+
baseStyle: baseStyle$b,
|
|
4347
4421
|
variants: variants$7,
|
|
4348
4422
|
defaultProps: defaultProps$5
|
|
4349
4423
|
};
|
|
4350
4424
|
|
|
4351
|
-
var parts$
|
|
4425
|
+
var parts$7 = ['track', 'thumb'];
|
|
4352
4426
|
function baseStyleTrack(props) {
|
|
4353
4427
|
var c = props.colorScheme,
|
|
4354
4428
|
theme = props.theme;
|
|
@@ -4378,7 +4452,7 @@ var baseStyleThumb = {
|
|
|
4378
4452
|
borderRadius: 'full',
|
|
4379
4453
|
transform: 'translateX(0)'
|
|
4380
4454
|
};
|
|
4381
|
-
var baseStyle$
|
|
4455
|
+
var baseStyle$c = function baseStyle(props) {
|
|
4382
4456
|
return {
|
|
4383
4457
|
track: baseStyleTrack(props),
|
|
4384
4458
|
thumb: baseStyleThumb
|
|
@@ -4430,14 +4504,14 @@ var defaultProps$6 = {
|
|
|
4430
4504
|
colorScheme: 'blue'
|
|
4431
4505
|
};
|
|
4432
4506
|
var Switch = {
|
|
4433
|
-
parts: parts$
|
|
4434
|
-
baseStyle: baseStyle$
|
|
4507
|
+
parts: parts$7,
|
|
4508
|
+
baseStyle: baseStyle$c,
|
|
4435
4509
|
sizes: sizes,
|
|
4436
4510
|
defaultProps: defaultProps$6
|
|
4437
4511
|
};
|
|
4438
4512
|
|
|
4439
|
-
var parts$
|
|
4440
|
-
var baseStyle$
|
|
4513
|
+
var parts$8 = ['th', 'td', 'tr', 'body', 'thead'];
|
|
4514
|
+
var baseStyle$d = {
|
|
4441
4515
|
thead: {
|
|
4442
4516
|
bg: colors.label.primary.dark
|
|
4443
4517
|
},
|
|
@@ -4473,11 +4547,11 @@ var baseStyle$c = {
|
|
|
4473
4547
|
}
|
|
4474
4548
|
};
|
|
4475
4549
|
var Table = {
|
|
4476
|
-
parts: parts$
|
|
4477
|
-
baseStyle: baseStyle$
|
|
4550
|
+
parts: parts$8,
|
|
4551
|
+
baseStyle: baseStyle$d
|
|
4478
4552
|
};
|
|
4479
4553
|
|
|
4480
|
-
var parts$
|
|
4554
|
+
var parts$9 = ['root', 'tablist', 'tab', 'tabpanel', 'indicator'];
|
|
4481
4555
|
function baseStyleRoot(props) {
|
|
4482
4556
|
var orientation = props.orientation;
|
|
4483
4557
|
return {
|
|
@@ -4512,7 +4586,7 @@ function baseStyleTablist(props) {
|
|
|
4512
4586
|
var baseStyleTabpanel = {
|
|
4513
4587
|
p: 4
|
|
4514
4588
|
};
|
|
4515
|
-
var baseStyle$
|
|
4589
|
+
var baseStyle$e = function baseStyle(props) {
|
|
4516
4590
|
return {
|
|
4517
4591
|
root: baseStyleRoot(props),
|
|
4518
4592
|
tab: baseStyleTab(props),
|
|
@@ -4698,14 +4772,14 @@ var defaultProps$7 = {
|
|
|
4698
4772
|
colorScheme: 'blue'
|
|
4699
4773
|
};
|
|
4700
4774
|
var Tabs = {
|
|
4701
|
-
parts: parts$
|
|
4702
|
-
baseStyle: baseStyle$
|
|
4775
|
+
parts: parts$9,
|
|
4776
|
+
baseStyle: baseStyle$e,
|
|
4703
4777
|
sizes: sizes$1,
|
|
4704
4778
|
variants: variants$8,
|
|
4705
4779
|
defaultProps: defaultProps$7
|
|
4706
4780
|
};
|
|
4707
4781
|
|
|
4708
|
-
var baseStyle$
|
|
4782
|
+
var baseStyle$f = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
|
|
4709
4783
|
fontSize: '13px',
|
|
4710
4784
|
display: 'block',
|
|
4711
4785
|
paddingY: '8px',
|
|
@@ -4713,7 +4787,7 @@ var baseStyle$e = /*#__PURE__*/_extends$6({}, Input$1.baseStyle.field, {
|
|
|
4713
4787
|
height: '78px',
|
|
4714
4788
|
lineHeight: 'short'
|
|
4715
4789
|
});
|
|
4716
|
-
var mobileInputs$1 = /*#__PURE__*/react.defineStyle( /*#__PURE__*/_extends$6({}, baseStyle$
|
|
4790
|
+
var mobileInputs$1 = /*#__PURE__*/react.defineStyle( /*#__PURE__*/_extends$6({}, baseStyle$f, Input$1.variants.mobile.field, {
|
|
4717
4791
|
border: 'none',
|
|
4718
4792
|
borderRadius: 0,
|
|
4719
4793
|
paddingY: '16px',
|
|
@@ -4728,14 +4802,14 @@ var mobileInputs$1 = /*#__PURE__*/react.defineStyle( /*#__PURE__*/_extends$6({},
|
|
|
4728
4802
|
minHeight: '208px'
|
|
4729
4803
|
}));
|
|
4730
4804
|
var variants$9 = {
|
|
4731
|
-
"default": baseStyle$
|
|
4805
|
+
"default": baseStyle$f,
|
|
4732
4806
|
mobile: mobileInputs$1
|
|
4733
4807
|
};
|
|
4734
4808
|
var defaultProps$8 = {
|
|
4735
4809
|
variant: 'default'
|
|
4736
4810
|
};
|
|
4737
4811
|
var Textarea = {
|
|
4738
|
-
baseStyle: baseStyle$
|
|
4812
|
+
baseStyle: baseStyle$f,
|
|
4739
4813
|
variants: variants$9,
|
|
4740
4814
|
defaultProps: defaultProps$8
|
|
4741
4815
|
};
|
|
@@ -4867,6 +4941,7 @@ var customXQChakraTheme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends$
|
|
|
4867
4941
|
FormLabel: FormLabel,
|
|
4868
4942
|
Input: Input$1,
|
|
4869
4943
|
Link: Link$1,
|
|
4944
|
+
Menu: Menu$1,
|
|
4870
4945
|
Modal: Modal$1,
|
|
4871
4946
|
Popover: Popover,
|
|
4872
4947
|
Select: Select,
|