pixel-react 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/components/AddButton/AddButton.d.ts +5 -0
- package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
- package/lib/components/AddButton/index.d.ts +1 -0
- package/lib/components/AddButton/types.d.ts +4 -0
- package/lib/components/Editor/Editor.d.ts +5 -0
- package/lib/components/Editor/Editor.stories.d.ts +6 -0
- package/lib/components/Editor/VariableDropdown.d.ts +5 -0
- package/lib/components/Editor/constants.d.ts +3 -0
- package/lib/components/Editor/index.d.ts +1 -0
- package/lib/components/Editor/types.d.ts +71 -0
- package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
- package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
- package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
- package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
- package/lib/components/ExcelFile/Types.d.ts +176 -0
- package/lib/components/ExcelFile/index.d.ts +1 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
- package/lib/components/InputWithDropdown/types.d.ts +3 -1
- package/lib/components/Select/Select.d.ts +3 -2
- package/lib/components/Select/components/Dropdown.d.ts +5 -0
- package/lib/components/Select/components/types.d.ts +18 -0
- package/lib/components/Select/types.d.ts +2 -42
- package/lib/index.d.ts +7 -12
- package/lib/index.esm.js +200 -330
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +199 -329
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/find/findAndInsert.d.ts +7 -0
- package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
- package/package.json +3 -3
- package/src/assets/Themes/BaseTheme.scss +1 -0
- package/src/assets/Themes/DarkTheme.scss +2 -0
- package/src/components/Icon/Icons.scss +4 -0
- package/src/components/InputWithDropdown/InputWithDropdown.scss +30 -1
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +45 -16
- package/src/components/InputWithDropdown/types.ts +5 -1
- package/src/components/Select/Select.scss +121 -188
- package/src/components/Select/Select.stories.tsx +4 -1
- package/src/components/Select/Select.tsx +140 -296
- package/src/components/Select/components/Dropdown.scss +50 -0
- package/src/components/Select/components/Dropdown.tsx +94 -0
- package/src/components/Select/components/types.ts +20 -0
- package/src/components/Select/types.ts +15 -39
- package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +1 -1
@@ -63,19 +63,31 @@ export interface SelectProps {
|
|
63
63
|
*/
|
64
64
|
optionsRequired?: boolean;
|
65
65
|
|
66
|
-
|
66
|
+
/*
|
67
67
|
* selectedOptionColor prop provides the custom color for the selected option
|
68
68
|
*/
|
69
69
|
selectedOptionColor?: string;
|
70
70
|
|
71
|
-
|
71
|
+
/*
|
72
72
|
* Label accessor
|
73
73
|
*/
|
74
|
+
|
74
75
|
labelAccessor?: string;
|
75
|
-
|
76
|
+
|
77
|
+
/*
|
76
78
|
* Value accessor
|
77
79
|
*/
|
78
80
|
valueAccessor?: string;
|
81
|
+
|
82
|
+
/*
|
83
|
+
* Provide the custom height for the select container
|
84
|
+
*/
|
85
|
+
height?: number;
|
86
|
+
|
87
|
+
/*
|
88
|
+
* Provide the custom width for the select container
|
89
|
+
*/
|
90
|
+
width?: number;
|
79
91
|
}
|
80
92
|
|
81
93
|
export interface DrowdownPosition {
|
@@ -95,42 +107,6 @@ export interface SelectState {
|
|
95
107
|
dropdownPosition: DrowdownPosition;
|
96
108
|
}
|
97
109
|
|
98
|
-
export type SelectAction =
|
99
|
-
| { type: 'FOCUS_INPUT' }
|
100
|
-
| {
|
101
|
-
type: 'BLUR_INPUT';
|
102
|
-
payload: {
|
103
|
-
optionsList: Option[];
|
104
|
-
option: Option['value'];
|
105
|
-
};
|
106
|
-
}
|
107
|
-
| { type: 'MOUSE_ENTER' }
|
108
|
-
| { type: 'MOUSE_LEAVE' }
|
109
|
-
| {
|
110
|
-
type: 'UPDATE_DROPDOWN_POSITION';
|
111
|
-
payload: {
|
112
|
-
positionX: number;
|
113
|
-
positionY: number;
|
114
|
-
width: number;
|
115
|
-
fromBottom: number;
|
116
|
-
};
|
117
|
-
}
|
118
|
-
| {
|
119
|
-
type: 'UPDATE_OPTION';
|
120
|
-
payload: string;
|
121
|
-
}
|
122
|
-
| {
|
123
|
-
type: 'UPDATE_OPTION_LIST';
|
124
|
-
payload: Option[];
|
125
|
-
}
|
126
|
-
| {
|
127
|
-
type: 'SHOW_ERROR';
|
128
|
-
payload: {
|
129
|
-
optionsList: Option[];
|
130
|
-
option: Option['value'];
|
131
|
-
};
|
132
|
-
};
|
133
|
-
|
134
110
|
type OptionValue = any;
|
135
111
|
|
136
112
|
export interface Option {
|