pixel-react-excel-sheet 1.0.15 → 1.0.16

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/lib/index.js CHANGED
@@ -32021,7 +32021,11 @@ const ExcelToolBar = ({
32021
32021
  const [underLine, setUnderLine] = React.useState('underline');
32022
32022
  const [selectedFontFamily, setSelectedFontFamily] = React.useState({
32023
32023
  label: 'Times New Roman',
32024
- value: '"Times New Roman"'
32024
+ value: 'Times New Roman'
32025
+ });
32026
+ const [selectedFontSize, setSelectedFontSize] = React.useState({
32027
+ label: '11',
32028
+ value: '11'
32025
32029
  });
32026
32030
  const [colorContainer, setColorPicker] = React.useState({
32027
32031
  color: 'var(--error-light)',
@@ -32154,11 +32158,12 @@ const ExcelToolBar = ({
32154
32158
  className: "ff-excel-toolbar-font-family",
32155
32159
  children: jsxRuntime.jsx(Select$1, {
32156
32160
  showLabel: false,
32157
- optionZIndex: 10000,
32161
+ optionZIndex: 1000,
32158
32162
  onChange: e => {
32163
+ console.log(e);
32159
32164
  setSelectedFontFamily({
32160
32165
  label: e.label,
32161
- value: e.value
32166
+ value: e.label
32162
32167
  });
32163
32168
  setFontFamily(data, e.label);
32164
32169
  },
@@ -32174,14 +32179,17 @@ const ExcelToolBar = ({
32174
32179
  className: "ff-excel-toolbar-font-size",
32175
32180
  children: jsxRuntime.jsx(Select$1, {
32176
32181
  showLabel: false,
32177
- optionZIndex: 5000,
32182
+ optionZIndex: 1000,
32178
32183
  required: false,
32179
- onChange: e => setFontSize(data, e.value),
32184
+ onChange: e => {
32185
+ setSelectedFontSize({
32186
+ label: e.label,
32187
+ value: e.value
32188
+ });
32189
+ setFontSize(data, e.value);
32190
+ },
32180
32191
  optionsList: fontSize,
32181
- selectedOption: {
32182
- label: '11',
32183
- value: '11'
32184
- }
32192
+ selectedOption: selectedFontSize
32185
32193
  })
32186
32194
  })
32187
32195
  })]
@@ -32257,7 +32265,7 @@ const ExcelToolBar = ({
32257
32265
  name: getUnderlineIcon()
32258
32266
  }), jsxRuntime.jsx(MenuOption, {
32259
32267
  iconName: "arrow_down",
32260
- zIndex: 2000,
32268
+ zIndex: 1000,
32261
32269
  iconSize: 12,
32262
32270
  options: underlineTypeIcon,
32263
32271
  tooltipPlacement: "top",
@@ -32340,7 +32348,7 @@ const ExcelToolBar = ({
32340
32348
  }), jsxRuntime.jsx(MenuOption, {
32341
32349
  iconName: "arrow_down",
32342
32350
  iconSize: 12,
32343
- zIndex: 5000,
32351
+ zIndex: 1000,
32344
32352
  options: borderTypeIcon,
32345
32353
  tooltipPlacement: "top",
32346
32354
  variant: "light",
@@ -32621,7 +32629,7 @@ const Spreadsheet = props => {
32621
32629
  var css_248z$j = ".ff-excel-book {\n z-index: 1000;\n}\n.ff-excel-book .ff-excel-sheet {\n position: static;\n top: 0;\n}\n.ff-excel-book .ff-excel-sheet-bar {\n position: static;\n max-width: 100%;\n margin-left: 60px;\n display: flex;\n height: 36px;\n align-items: center;\n color: var(--brand2-color);\n box-shadow: 0px 0px 4px -1px var(--toggle-strip-shadow);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-add-sheet-icon {\n position: fixed;\n margin-top: 4px;\n padding: 0px 6px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container {\n padding-left: 40px;\n height: 36px;\n display: flex;\n overflow-x: auto;\n align-items: center;\n scrollbar-width: none;\n scrollbar-color: var(--hover-color) transparent;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar-track {\n background-color: transparent;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar-thumb {\n border-radius: 5px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container::-webkit-scrollbar {\n height: 0px;\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list {\n margin-top: 2px;\n padding: 10px 9px;\n min-width: max-content;\n cursor: pointer;\n display: flex;\n background-color: var(--hover-color);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list.active {\n background-color: var(--excel-sheet-button-color);\n}\n.ff-excel-book .ff-excel-sheet-bar .ff-excel-tab-container .ff-excel-tab-list:focus {\n outline: none;\n text-decoration: none;\n}";
32622
32630
  styleInject(css_248z$j);
32623
32631
 
32624
- var css_248z$i = ".ff-excel-menu {\n position: absolute;\n border: 1px solid var(--option-card-border-color);\n background: var(--option-card-bg-color);\n border-radius: 4px;\n margin: 2px;\n min-height: 32px;\n min-width: 111px;\n white-space: nowrap;\n z-index: 200;\n}\n.ff-excel-menu .ff-excel-menu-options {\n color: var(--text-color);\n cursor: pointer;\n border-radius: 3px;\n display: flex;\n align-items: center;\n padding: 4px;\n gap: 8px;\n}\n.ff-excel-menu .ff-excel-menu-options:hover {\n background-color: var(--hover-color);\n}\n.ff-excel-menu .ff-excel-menu-options label {\n cursor: pointer;\n}";
32632
+ var css_248z$i = ".ff-excel-menu {\n position: absolute;\n border: 1px solid var(--option-card-border-color);\n background: var(--option-card-bg-color);\n border-radius: 4px;\n margin: 2px;\n min-height: 32px;\n min-width: 111px;\n white-space: nowrap;\n z-index: 2000;\n}\n.ff-excel-menu .ff-excel-menu-options {\n color: var(--text-color);\n cursor: pointer;\n border-radius: 3px;\n display: flex;\n align-items: center;\n padding: 4px;\n gap: 8px;\n}\n.ff-excel-menu .ff-excel-menu-options:hover {\n background-color: var(--hover-color);\n}\n.ff-excel-menu .ff-excel-menu-options label {\n cursor: pointer;\n}";
32625
32633
  styleInject(css_248z$i);
32626
32634
 
32627
32635
  const ExcelContextMenu = ({
@@ -32997,8 +33005,8 @@ const ExcelFile = ({
32997
33005
  setContextMenu({
32998
33006
  open: true,
32999
33007
  position: {
33000
- x: event.pageX - 50,
33001
- y: event.pageY - 350
33008
+ x: event.pageX - 0,
33009
+ y: event.pageY - 50
33002
33010
  },
33003
33011
  options: options
33004
33012
  });