@oliasoft-open-source/react-ui-library 9.5.0-beta-2 → 10.0.0-beta-1
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/README.md +0 -3
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/popover/popover.test-case.stories.d.ts.map +1 -1
- package/dist/components/select/custom-select/custom-select.d.ts.map +1 -1
- package/dist/components/select/custom-select/custom-select.interface.d.ts +2 -7
- package/dist/components/select/custom-select/custom-select.interface.d.ts.map +1 -1
- package/dist/components/select/custom-select/hooks/combo-box-bridges.d.ts +17 -0
- package/dist/components/select/custom-select/hooks/combo-box-bridges.d.ts.map +1 -0
- package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts +30 -40
- package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts.map +1 -1
- package/dist/components/select/custom-select/layer/layer.d.ts +5 -10
- package/dist/components/select/custom-select/layer/layer.d.ts.map +1 -1
- package/dist/components/select/custom-select/layer/option.d.ts +1 -6
- package/dist/components/select/custom-select/layer/option.d.ts.map +1 -1
- package/dist/components/select/custom-select/layer/section.d.ts +4 -5
- package/dist/components/select/custom-select/layer/section.d.ts.map +1 -1
- package/dist/components/select/custom-select/trigger/input.d.ts +4 -4
- package/dist/components/select/custom-select/trigger/input.d.ts.map +1 -1
- package/dist/components/select/custom-select/trigger/multi-selected-options.d.ts.map +1 -1
- package/dist/components/select/custom-select/trigger/trigger.d.ts +2 -8
- package/dist/components/select/custom-select/trigger/trigger.d.ts.map +1 -1
- package/dist/components/select/native-select/native-select.d.ts +1 -2
- package/dist/components/select/native-select/native-select.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +0 -2
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/select/select.input.d.ts +1 -3
- package/dist/components/select/select.input.d.ts.map +1 -1
- package/dist/components/select/select.test-case.stories.d.ts +1 -0
- package/dist/components/select/select.test-case.stories.d.ts.map +1 -1
- package/dist/components/table/cell/cell-types/select-cell.d.ts.map +1 -1
- package/dist/components/table/table.test-case.stories.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2119 -2189
- package/dist/typings/common-types.d.ts +9 -0
- package/dist/typings/common-types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/select/custom-select/custom-select.reducer.d.ts +0 -7
- package/dist/components/select/custom-select/custom-select.reducer.d.ts.map +0 -1
- package/dist/components/select/custom-select/enum.d.ts +0 -12
- package/dist/components/select/custom-select/enum.d.ts.map +0 -1
- package/dist/components/select/custom-select/hooks/enum.d.ts +0 -21
- package/dist/components/select/custom-select/hooks/enum.d.ts.map +0 -1
- package/dist/components/select/custom-select/reducer.interface.d.ts +0 -36
- package/dist/components/select/custom-select/reducer.interface.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1581,7 +1581,6 @@ The `NativeSelect` component renders a native HTML select element with various c
|
|
|
1581
1581
|
|
|
1582
1582
|
| Prop | Description | Default Value |
|
|
1583
1583
|
| --------------------- | --------------------------------------------------------------------------- | ------------- |
|
|
1584
|
-
| `borderRadius` | The border radius of the select element. | - |
|
|
1585
1584
|
| `disabled` | Determines whether the select element is disabled. | `false` |
|
|
1586
1585
|
| `error` | Error message to display. | - |
|
|
1587
1586
|
| `warning` | Warning message to display. | - |
|
|
@@ -1628,7 +1627,6 @@ The `NativeSelect` component renders a native HTML select element with various c
|
|
|
1628
1627
|
placeholder="Select an option"
|
|
1629
1628
|
hasNonExistentValue={false}
|
|
1630
1629
|
maxTooltipWidth="200px"
|
|
1631
|
-
borderRadius="5px"
|
|
1632
1630
|
/>
|
|
1633
1631
|
```
|
|
1634
1632
|
|
|
@@ -1691,7 +1689,6 @@ The `Select` component is used to render a dropdown menu for selecting options f
|
|
|
1691
1689
|
| `onChange` | A callback function invoked when the selection changes. | `() => {}` |
|
|
1692
1690
|
| `onCreate` | A callback function invoked when a new option is created. | `() => {}` |
|
|
1693
1691
|
| `deprecatedEventHandler` | Determines whether to use deprecated event handlers. | `false` |
|
|
1694
|
-
| `autoScroll` | Determines whether the dropdown menu should auto-scroll. | `true` |
|
|
1695
1692
|
| `warning` | Warning message to be displayed. | - |
|
|
1696
1693
|
| `error` | Error message to be displayed. | - |
|
|
1697
1694
|
| `checkNonExistentValues` | Determines whether to check for non-existent values. | `true` |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAoC,UAAU,EAAyB,MAAM,OAAO,CAAC;AAWnG,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../../src/components/number-input/number-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAoC,UAAU,EAAyB,MAAM,OAAO,CAAC;AAWnG,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAG5F,OAAO,EAAY,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,eAAe,CAAC;IAC/D,sCAAsC,CAAC,EAAE,OAAO,CAAC;IACjD,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAYD,eAAO,MAAM,WAAW,GAAI,6UA0BzB,iBAAiB,4CAmKnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;wBAoB9C,IAAI;AAZT,wBAYU;AAEV,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,aAAa,CAAmC,CAAC;AAqE5E,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"popover.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;wBAoB9C,IAAI;AAZT,wBAYU;AAEV,eAAO,MAAM,IAAI,EAAE,OAAO,CAAC,aAAa,CAAmC,CAAC;AAqE5E,eAAO,MAAM,qBAAqB,EAAE,OA2BnC,CAAC;AA6BF,eAAO,MAAM,wBAAwB;;4BAWqB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CADvF,CAAC;AAeF,eAAO,MAAM,0BAA0B;;4BAWqB;QAAE,aAAa,EAAE,WAAW,CAAA;KAAE;CADzF,CAAC;AAeF,eAAO,MAAM,8BAA8B,EAAE,OAAO,CAAC,aAAa,CAuBjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/custom-select/custom-select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom-select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/custom-select/custom-select.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AA4I/D,eAAO,MAAM,YAAY,GAAI,OAAO,kBAAkB,4CAAuC,CAAC"}
|
|
@@ -8,12 +8,6 @@ interface Heading {
|
|
|
8
8
|
type: string;
|
|
9
9
|
}
|
|
10
10
|
export type TCustomSelectSelectOption = ISelectSelectedOption | Heading;
|
|
11
|
-
export type ICustomSelectOptionType = TCustomSelectSelectOption & {
|
|
12
|
-
createAble?: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type ICustomSelectScrollableComponent = {
|
|
15
|
-
scrollToRow: (index: number) => void;
|
|
16
|
-
};
|
|
17
11
|
export interface ICustomSelectProps {
|
|
18
12
|
multi?: boolean;
|
|
19
13
|
disabled?: boolean;
|
|
@@ -33,9 +27,10 @@ export interface ICustomSelectProps {
|
|
|
33
27
|
onBlur?: TEmpty;
|
|
34
28
|
searchable?: boolean;
|
|
35
29
|
clearable?: boolean;
|
|
30
|
+
/** @internal For Select / table cell composition only. */
|
|
36
31
|
isInTable?: boolean;
|
|
32
|
+
/** @internal For InputGroup composition only. */
|
|
37
33
|
groupOrder?: TGroupOrder;
|
|
38
|
-
firstSelectedOptionIndex: number | null;
|
|
39
34
|
right?: boolean;
|
|
40
35
|
maxTooltipWidth?: TStringOrNumber;
|
|
41
36
|
closeOnOptionActionClick?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-select.interface.d.ts","sourceRoot":"","sources":["../../../../src/components/select/custom-select/custom-select.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,GAAG,OAAO,CAAC;AAExE,MAAM,
|
|
1
|
+
{"version":3,"file":"custom-select.interface.d.ts","sourceRoot":"","sources":["../../../../src/components/select/custom-select/custom-select.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,yBAAyB,GAAG,qBAAqB,GAAG,OAAO,CAAC;AAExE,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACrC,eAAe,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IACjE,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TEmpty } from '../../../../typings/common-type-definitions';
|
|
3
|
+
/** Restore outside-click dismiss inside Modal top layers (RAC ignores those presses). */
|
|
4
|
+
export declare const ComboBoxDismiss: ({ triggerRef }: {
|
|
5
|
+
triggerRef: React.RefObject<HTMLElement | null>;
|
|
6
|
+
}) => null;
|
|
7
|
+
/** Ensure the selected option receives collection focus when the menu opens (needed with Virtualizer). */
|
|
8
|
+
export declare const FocusSelectedOnOpen: ({ selectedItemId }: {
|
|
9
|
+
selectedItemId: string | null;
|
|
10
|
+
}) => null;
|
|
11
|
+
/** Expose ComboBox close() to the parent via a ref (used after create / option actions). */
|
|
12
|
+
export declare const ComboBoxStateCapture: ({ stateRef }: {
|
|
13
|
+
stateRef: React.MutableRefObject<{
|
|
14
|
+
close: TEmpty;
|
|
15
|
+
} | null>;
|
|
16
|
+
}) => null;
|
|
17
|
+
//# sourceMappingURL=combo-box-bridges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combo-box-bridges.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/hooks/combo-box-bridges.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAG9E,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAEzD,yFAAyF;AACzF,eAAO,MAAM,eAAe,GAAI,gBAAgB;IAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAAE,SAQlG,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,mBAAmB,GAAI,oBAAoB;IAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,SA4BxF,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,GAAI,cAAc;IAAE,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAA;CAAE,SAMhH,CAAC"}
|
|
@@ -1,46 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
disabledContext: boolean;
|
|
13
|
-
onCreate: ((value: string) => void) | null;
|
|
14
|
-
onChange: TChangeEventHandler | null;
|
|
15
|
-
selectedOptions: ISelectSelectedOption | ISelectSelectedOption[];
|
|
16
|
-
width: TStringOrNumber | null;
|
|
1
|
+
import { Key } from 'react';
|
|
2
|
+
import { TEmpty, TStringOrNumber } from '../../../../typings/common-type-definitions';
|
|
3
|
+
import { ICustomSelectProps } from '../custom-select.interface';
|
|
4
|
+
import { SelectListItem } from '../layer/section';
|
|
5
|
+
export interface UseCustomSelectLogicArgs {
|
|
6
|
+
options: ICustomSelectProps['options'];
|
|
7
|
+
selectedOptions: ICustomSelectProps['selectedOptions'];
|
|
8
|
+
onChange?: ICustomSelectProps['onChange'];
|
|
9
|
+
onCreate?: ICustomSelectProps['onCreate'];
|
|
10
|
+
isMulti: boolean;
|
|
11
|
+
isDisabled: boolean;
|
|
17
12
|
small: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
listRef: React.RefObject<ICustomSelectScrollableComponent | null>;
|
|
23
|
-
autoLayerWidth: boolean;
|
|
13
|
+
width?: TStringOrNumber | null;
|
|
14
|
+
autoLayerWidth?: boolean;
|
|
15
|
+
placeholder?: string | null;
|
|
16
|
+
closeOnOptionActionClick?: boolean;
|
|
24
17
|
}
|
|
25
|
-
export declare const useCustomSelectLogic: ({
|
|
18
|
+
export declare const useCustomSelectLogic: ({ options, selectedOptions, onChange, onCreate, isMulti, isDisabled, small, width, autoLayerWidth, placeholder, closeOnOptionActionClick, }: UseCustomSelectLogicArgs) => {
|
|
19
|
+
inputValue: string;
|
|
20
|
+
setInputValue: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
21
|
+
isOpen: boolean;
|
|
22
|
+
setIsOpen: (open: boolean) => void;
|
|
23
|
+
handleInputChange: (value: string) => void;
|
|
24
|
+
collectionItems: SelectListItem[];
|
|
25
|
+
comboValue: string | string[] | null;
|
|
26
|
+
selectedItemId: string | null;
|
|
26
27
|
getTriggerWidth: () => TStringOrNumber;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
ref: (node: Element | import('@floating-ui/react').VirtualElement | null) => void;
|
|
31
|
-
};
|
|
32
|
-
onClickTrigger: () => void;
|
|
33
|
-
onChangeSearch: (value: any) => void;
|
|
34
|
-
onClickDeselectOption: (evt: any, options?: any) => void;
|
|
35
|
-
onClickClearAll: (evt: ChangeEvent<any>) => void;
|
|
36
|
-
renderLayer: (layer: React.ReactElement) => React.ReactElement | null;
|
|
37
|
-
layerProps: React.HTMLAttributes<HTMLElement> & {
|
|
38
|
-
ref: (node: HTMLElement | null) => void;
|
|
39
|
-
style?: React.CSSProperties;
|
|
40
|
-
};
|
|
28
|
+
getLayerWidth: (triggerElement: HTMLElement | null) => number;
|
|
29
|
+
handleChange: (key: Key | Key[] | Iterable<Key> | null) => void;
|
|
30
|
+
handleClear: () => void;
|
|
41
31
|
closeLayer: () => void;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
comboBoxStateRef: import('react').RefObject<{
|
|
33
|
+
close: TEmpty;
|
|
34
|
+
} | null>;
|
|
45
35
|
};
|
|
46
36
|
//# sourceMappingURL=use-custom-select-logic.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-custom-select-logic.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/hooks/use-custom-select-logic.
|
|
1
|
+
{"version":3,"file":"use-custom-select-logic.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/hooks/use-custom-select-logic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAA0C,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAgB,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAA6B,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAuD,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA+BvG,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACvC,eAAe,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvD,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,eAAO,MAAM,oBAAoB,GAAI,6IAYlC,wBAAwB;;;;sBASmB,OAAO;+BAQzC,MAAM;;;;2BAUwB,eAAe;oCAWpC,WAAW,GAAG,IAAI,KAAG,MAAM;wBA6FtC,GAAG,GAAG,GAAG,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI;;;;eAhID,MAAM;;CAgOhD,CAAC"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { default as React, RefObject } from 'react';
|
|
2
1
|
import { TEmpty } from '../../../../typings/common-type-definitions';
|
|
3
|
-
import {
|
|
4
|
-
import { ICustomSelectScrollableComponent } from '../custom-select.interface';
|
|
5
|
-
import { ISelectSection } from './section';
|
|
2
|
+
import { SelectListItem } from './section';
|
|
6
3
|
export interface ISelectLayerProps {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
selectedOptions: ISelectSelectedOption | ISelectSelectedOption[];
|
|
10
|
-
onSelectOption: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>, section?: ISelectSection) => void;
|
|
11
|
-
focusedOptionIndex?: number;
|
|
4
|
+
items: SelectListItem[];
|
|
5
|
+
selectedItemId?: string | null;
|
|
12
6
|
width: number;
|
|
13
7
|
small?: boolean;
|
|
8
|
+
isMulti?: boolean;
|
|
14
9
|
closeLayer: TEmpty;
|
|
15
10
|
testId?: string;
|
|
16
11
|
}
|
|
17
|
-
export declare const Layer: ({
|
|
12
|
+
export declare const Layer: ({ items, selectedItemId, width, small, isMulti, closeLayer, testId, }: ISelectLayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
13
|
//# sourceMappingURL=layer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/layer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/layer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAGzD,OAAO,EAAW,cAAc,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,cAAc,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAUD,eAAO,MAAM,KAAK,GAAI,uEAQnB,iBAAiB,4CA8CnB,CAAC"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { TEmpty } from '../../../../typings/common-type-definitions';
|
|
3
|
-
import { ISelectSection } from './section';
|
|
4
3
|
export interface ISelectOptionProps {
|
|
5
4
|
details?: string;
|
|
6
5
|
label?: ReactNode;
|
|
7
6
|
icon?: ReactNode;
|
|
8
|
-
disabled?: boolean;
|
|
9
7
|
selected?: boolean;
|
|
10
|
-
focused?: boolean;
|
|
11
|
-
onSelectOption?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>, section?: ISelectSection) => void;
|
|
12
8
|
actions?: any[];
|
|
13
9
|
closeLayer?: TEmpty;
|
|
14
|
-
testId?: string;
|
|
15
10
|
}
|
|
16
11
|
export declare const Option: ({ details, label, icon, selected, actions, closeLayer }: ISelectOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
12
|
//# sourceMappingURL=option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/option.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"option.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/option.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAOzD,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,GAAI,yDAAiE,kBAAkB,4CAsBzG,CAAC"}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { TEmpty, TStringNumberNull } from '../../../../typings/common-type-definitions';
|
|
3
2
|
import { ISelectOptionProps } from './option';
|
|
4
3
|
export interface ISelectSection extends ISelectOptionProps {
|
|
5
4
|
type?: string;
|
|
6
5
|
value?: TStringNumberNull | boolean;
|
|
7
6
|
createAble?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
testId?: string;
|
|
8
9
|
}
|
|
9
10
|
export type SelectListItem = {
|
|
10
11
|
id: string;
|
|
11
12
|
index: number;
|
|
12
13
|
section: ISelectSection;
|
|
13
|
-
isFocused: boolean;
|
|
14
|
-
isSelected: boolean;
|
|
15
14
|
};
|
|
15
|
+
export declare const CREATE_OPTION_KEY = "create";
|
|
16
16
|
export declare const getSectionItemId: (section: ISelectSection, index: number) => string;
|
|
17
17
|
export type ISelectSectionProps = {
|
|
18
18
|
item: SelectListItem;
|
|
19
|
-
onSelectOption?: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>, section?: ISelectSection) => void;
|
|
20
19
|
closeLayer?: TEmpty;
|
|
21
20
|
};
|
|
22
|
-
export declare const Section: ({ item,
|
|
21
|
+
export declare const Section: ({ item, closeLayer }: ISelectSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/section.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/layer/section.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAK5E,OAAO,EAAE,kBAAkB,EAAU,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,gBAAgB,GAAI,SAAS,cAAc,EAAE,OAAO,MAAM,KAAG,MAUzE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,sBAAsB,mBAAmB,4CA8BhE,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { ISelectSelectedOption } from '../../select.interface';
|
|
3
3
|
interface ISelectInputProps {
|
|
4
4
|
selectedOptions?: ISelectSelectedOption | ISelectSelectedOption[];
|
|
5
5
|
searchable?: boolean;
|
|
6
6
|
searchValue?: string;
|
|
7
|
-
inputRef: MutableRefObject<HTMLInputElement | null>;
|
|
8
|
-
onChange?: (value: string) => void;
|
|
9
7
|
error?: string | ReactNode;
|
|
10
8
|
placeholder?: string | null;
|
|
11
9
|
small?: boolean;
|
|
10
|
+
isOpen?: boolean;
|
|
12
11
|
testId?: string;
|
|
12
|
+
tabIndex?: number;
|
|
13
13
|
}
|
|
14
|
-
export declare const Input: ({ selectedOptions, searchable, searchValue,
|
|
14
|
+
export declare const Input: ({ selectedOptions, searchable, searchValue, error, placeholder, small, isOpen, testId, tabIndex, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
16
16
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/input.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/input.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AAK5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,UAAU,iBAAiB;IACzB,eAAe,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IAClE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,KAAK,GAAI,oGAUnB,iBAAiB,4CAqDnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-selected-options.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/multi-selected-options.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,UAAU,gCAAgC;IACxC,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"multi-selected-options.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/multi-selected-options.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAG/D,UAAU,gCAAgC;IACxC,eAAe,EAAE,qBAAqB,EAAE,CAAC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA6BD,eAAO,MAAM,oBAAoB,GAAI,2CAA2C,gCAAgC,4CAsC/G,CAAC"}
|
|
@@ -7,22 +7,16 @@ interface ISelectTriggerProps {
|
|
|
7
7
|
searchValue?: string;
|
|
8
8
|
searchable?: boolean;
|
|
9
9
|
clearable?: boolean;
|
|
10
|
-
onClickTrigger: (evt: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
11
|
-
element?: ReactNode;
|
|
12
10
|
error?: string | ReactNode;
|
|
13
11
|
warning?: string | ReactNode;
|
|
14
12
|
tooltip?: string | ReactNode;
|
|
15
13
|
small?: boolean;
|
|
16
14
|
isInTable?: boolean;
|
|
17
15
|
disabled?: boolean;
|
|
18
|
-
onChangeSearch?: (value: string) => void;
|
|
19
|
-
onClickDeselect?: (evt: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
20
16
|
onClickClear?: (evt: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
21
17
|
tabIndex?: number;
|
|
22
18
|
isOpen?: boolean;
|
|
23
|
-
triggerRef?: RefObject<HTMLDivElement>;
|
|
24
|
-
clearAllIsFocused?: boolean;
|
|
25
|
-
focusedSelectedOptionIndex?: number;
|
|
19
|
+
triggerRef?: RefObject<HTMLDivElement | null>;
|
|
26
20
|
onFocus?: (evt: React.FocusEvent<HTMLDivElement>) => void;
|
|
27
21
|
onBlur?: (evt: React.FocusEvent<HTMLDivElement>) => void;
|
|
28
22
|
groupOrder?: TGroupOrder;
|
|
@@ -31,6 +25,6 @@ interface ISelectTriggerProps {
|
|
|
31
25
|
right?: boolean;
|
|
32
26
|
testId?: string;
|
|
33
27
|
}
|
|
34
|
-
export declare const Trigger: ({ selectedOptions, searchValue, searchable, clearable,
|
|
28
|
+
export declare const Trigger: ({ selectedOptions, searchValue, searchable, clearable, error, warning, tooltip, small, isInTable, disabled, onClickClear, tabIndex, isOpen, triggerRef, onFocus, onBlur, groupOrder, maxTooltipWidth, placeholder, right, testId, }: ISelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
29
|
export {};
|
|
36
30
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../../../../src/components/select/custom-select/trigger/trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAwB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,UAAU,mBAAmB;IAC3B,eAAe,CAAC,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAAC;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,eAAe,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,GAAI,qOAsBrB,mBAAmB,4CA+GrB,CAAC"}
|
|
@@ -3,7 +3,6 @@ import { TEmpty, TStringOrNumber } from '../../../typings/common-type-definition
|
|
|
3
3
|
import { TGroupOrder } from '../../../typings/common-types';
|
|
4
4
|
import { ISelectSelectedOption } from '../select.interface';
|
|
5
5
|
export interface INativeSelectProps {
|
|
6
|
-
borderRadius?: TStringOrNumber;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
error?: TStringOrNumber | React.ReactNode | null;
|
|
9
8
|
warning?: TStringOrNumber | React.ReactNode | null;
|
|
@@ -27,5 +26,5 @@ export interface INativeSelectProps {
|
|
|
27
26
|
hasNonExistentValue?: boolean;
|
|
28
27
|
maxTooltipWidth?: TStringOrNumber;
|
|
29
28
|
}
|
|
30
|
-
export declare const NativeSelect: ({ disabled, error, warning, tooltip, options, onChange, onFocus, onBlur, right, small, tabIndex, selectedOption, width, groupOrder, testId, isInTable, clearable, placeholder, hasNonExistentValue, maxTooltipWidth,
|
|
29
|
+
export declare const NativeSelect: ({ disabled, error, warning, tooltip, options, onChange, onFocus, onBlur, right, small, tabIndex, selectedOption, width, groupOrder, testId, isInTable, clearable, placeholder, hasNonExistentValue, maxTooltipWidth, }: INativeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
30
|
//# sourceMappingURL=native-select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/native-select/native-select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,WAAW,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAc,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAM/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,
|
|
1
|
+
{"version":3,"file":"native-select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/native-select/native-select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAc,WAAW,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAc,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAM/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACnD,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,CAAC,iBAAiB,CAAC,EAAE,KAAK,EAAE,qBAAqB,GAAG;QAAE,KAAK,EAAE,IAAI,CAAA;KAAE,KAAK,IAAI,CAAC;IACzG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,YAAY,GAAI,wNAqB1B,kBAAkB,4CAqGpB,CAAC"}
|
|
@@ -9,14 +9,12 @@ export interface ISelectProps {
|
|
|
9
9
|
native?: boolean;
|
|
10
10
|
onChange?: TChangeEventHandler;
|
|
11
11
|
deprecatedEventHandler?: boolean;
|
|
12
|
-
autoScroll?: boolean;
|
|
13
12
|
warning?: TStringOrNumber | ReactNode;
|
|
14
13
|
error?: TStringOrNumber | ReactNode;
|
|
15
14
|
checkNonExistentValues?: boolean;
|
|
16
15
|
closeOnOptionActionClick?: boolean;
|
|
17
16
|
small?: boolean;
|
|
18
17
|
width?: TStringOrNumber | null;
|
|
19
|
-
borderRadius?: TStringOrNumber;
|
|
20
18
|
onCreate?: (evt: any) => any;
|
|
21
19
|
disabled?: boolean;
|
|
22
20
|
placeholder?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAgB,mBAAmB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKrG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAgB,mBAAmB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKrG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,MAAM,GAAI,OAAO,YAAY,4CA6GzC,CAAC"}
|
|
@@ -9,14 +9,12 @@ export declare const standardizeSelectedOption: (standardizedOptions: Option[],
|
|
|
9
9
|
export declare const standardizeSelectedOptions: (standardizedOptions: Option[], selectedOptions: SelectedOption[] | SelectedOption) => Option[] | Option | undefined;
|
|
10
10
|
export declare const isSimpleOptions: (options: Option[]) => boolean;
|
|
11
11
|
export declare const isSimpleSelectedOptions: (selectedOptions: SelectedOption | SelectedOption[]) => boolean;
|
|
12
|
-
export declare const getFirstSelectedOptionIndex: (options: Option[], selectedOptions: SelectedOption | SelectedOption[]) => number | null;
|
|
13
12
|
export declare const nonExistentValue: (options: Option[], selectedOptions: SelectedOption | SelectedOption[]) => boolean;
|
|
14
|
-
export declare const standardizeInputs: (options: Option[], selectedOptions: SelectedOption | SelectedOption[],
|
|
13
|
+
export declare const standardizeInputs: (options: Option[], selectedOptions: SelectedOption | SelectedOption[], checkNonExistentValues?: boolean) => {
|
|
15
14
|
options: ISelectSelectedOption[];
|
|
16
15
|
selectedOptions: ISelectSelectedOption | ISelectSelectedOption[] | undefined;
|
|
17
16
|
multi: boolean;
|
|
18
17
|
simpleInputs: boolean;
|
|
19
|
-
firstSelectedOptionIndex: number | null;
|
|
20
18
|
hasNonExistentValue: boolean;
|
|
21
19
|
};
|
|
22
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.input.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,KAAK,MAAM,GAAG,qBAAqB,CAAC;AACpC,KAAK,YAAY,GAAG,eAAe,CAAC;AACpC,KAAK,cAAc,GAAG,MAAM,GAAG,YAAY,CAAC;AAE5C,eAAO,MAAM,OAAO,GAAI,iBAAiB,GAAG,KAAG,OAA2C,CAAC;AAE3F,eAAO,MAAM,kBAAkB,GAAI,SAAS,GAAG,EAAE,EAAE,QAAQ,OAAO,KAAG,MAAM,EAI1E,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,qBAAqB,MAAM,EAAE,EAC7B,gBAAgB,cAAc,KAC7B,MAAM,GAAG,SA8BX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,qBAAqB,MAAM,EAAE,EAC7B,iBAAiB,cAAc,EAAE,GAAG,cAAc,KACjD,MAAM,EAAE,GAAG,MAAM,GAAG,SAWtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,KAAG,OAC2C,CAAC;AAEhG,eAAO,MAAM,uBAAuB,GAAI,iBAAiB,cAAc,GAAG,cAAc,EAAE,KAAG,OAM5F,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"select.input.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAG3D,KAAK,MAAM,GAAG,qBAAqB,CAAC;AACpC,KAAK,YAAY,GAAG,eAAe,CAAC;AACpC,KAAK,cAAc,GAAG,MAAM,GAAG,YAAY,CAAC;AAE5C,eAAO,MAAM,OAAO,GAAI,iBAAiB,GAAG,KAAG,OAA2C,CAAC;AAE3F,eAAO,MAAM,kBAAkB,GAAI,SAAS,GAAG,EAAE,EAAE,QAAQ,OAAO,KAAG,MAAM,EAI1E,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,qBAAqB,MAAM,EAAE,EAC7B,gBAAgB,cAAc,KAC7B,MAAM,GAAG,SA8BX,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,qBAAqB,MAAM,EAAE,EAC7B,iBAAiB,cAAc,EAAE,GAAG,cAAc,KACjD,MAAM,EAAE,GAAG,MAAM,GAAG,SAWtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,EAAE,KAAG,OAC2C,CAAC;AAEhG,eAAO,MAAM,uBAAuB,GAAI,iBAAiB,cAAc,GAAG,cAAc,EAAE,KAAG,OAM5F,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,EAAE,iBAAiB,cAAc,GAAG,cAAc,EAAE,KAAG,OAWxG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EAAE,EACjB,iBAAiB,cAAc,GAAG,cAAc,EAAE,EAClD,yBAAyB,OAAO;;;;;;CAmBjC,CAAC"}
|
|
@@ -5,6 +5,7 @@ declare const _default: Meta;
|
|
|
5
5
|
export default _default;
|
|
6
6
|
type TSelectType = ISelectProps | ICustomSelectProps;
|
|
7
7
|
export declare const Test: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, TSelectType>;
|
|
8
|
+
export declare const TestNative: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, TSelectType>;
|
|
8
9
|
export declare const TestSearchTypingWhileOpen: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, TSelectType>;
|
|
9
10
|
export declare const TestKeyboardNavigation: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, TSelectType>;
|
|
10
11
|
export declare const TestMultiKeyboard: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, TSelectType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAU,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;wBAWxE,IAAI;AAPT,wBAOU;AAEV,KAAK,WAAW,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAYrD,eAAO,MAAM,IAAI,+GAAoB,CAAC;AAwBtC,eAAO,MAAM,yBAAyB,+GAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"select.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAU,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;wBAWxE,IAAI;AAPT,wBAOU;AAEV,KAAK,WAAW,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAYrD,eAAO,MAAM,IAAI,+GAAoB,CAAC;AAwBtC,eAAO,MAAM,UAAU,+GAAoB,CAAC;AAc5C,eAAO,MAAM,yBAAyB,+GAAoB,CAAC;AA4B3D,eAAO,MAAM,sBAAsB,+GAAoB,CAAC;AAyFxD,eAAO,MAAM,iBAAiB,+GAAoB,CAAC;AAyCnD,eAAO,MAAM,SAAS,+GAAoB,CAAC;AAqC3C,eAAO,MAAM,YAAY,+GAAoB,CAAC;AAe9C,eAAO,MAAM,UAAU,EAAE,OAAO,CAAC,WAAW,CAkB3C,CAAC;AA0CF,eAAO,MAAM,YAAY,+GAAoB,CAAC;AAyC9C,eAAO,MAAM,iBAAiB,+GAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/cell/cell-types/select-cell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,mCAAmC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"select-cell.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/cell/cell-types/select-cell.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,mCAAmC,gBAAgB,4CA0B7E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBASjD,IAAI;AAJT,wBAIU;AAMV,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAiG5C,eAAO,MAAM,QAAQ,EAAE,OAqFtB,CAAC;
|
|
1
|
+
{"version":3,"file":"table.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBASjD,IAAI;AAJT,wBAIU;AAMV,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAiG5C,eAAO,MAAM,QAAQ,EAAE,OAqFtB,CAAC;AAoDF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,OAqFvB,CAAC;AAyCF,eAAO,MAAM,UAAU,EAAE,OAyCxB,CAAC;AAyCF,eAAO,MAAM,cAAc,EAAE,OAqB5B,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,OA6DzB,CAAC"}
|