@nethru/kit 1.0.6 → 1.0.7

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/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import React$1, { useMemo, createContext, useContext, useState, useEffect, useCa
2
2
  import { alpha, Box, keyframes, Stack, TextField, FormControl, Select, MenuItem, IconButton } from '@mui/material';
3
3
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
4
  import Highcharts from 'highcharts';
5
- import HighchartsReact from 'highcharts-react-official';
5
+ import HighchartsReactModule from 'highcharts-react-official';
6
6
  import 'highcharts/modules/pattern-fill.js';
7
7
  import highchartsAccessibility from 'highcharts/modules/accessibility.js';
8
8
  import highchartsAnnotations from 'highcharts/modules/annotations.js';
@@ -20868,6 +20868,8 @@ const formatDateInRange = (date, today) => {
20868
20868
  return date.format('YYYY년 M월 D일');
20869
20869
  };
20870
20870
 
20871
+ // Handle both ES module and CommonJS exports
20872
+ const HighchartsReact$2 = HighchartsReactModule.default || HighchartsReactModule;
20871
20873
  const ColumnChart = ({
20872
20874
  data,
20873
20875
  width,
@@ -20959,7 +20961,7 @@ const ColumnChart = ({
20959
20961
  }, [data, width, height, series, colors]);
20960
20962
  return /*#__PURE__*/React$1.createElement("div", {
20961
20963
  style: styles$7.chartWrapper
20962
- }, /*#__PURE__*/React$1.createElement(HighchartsReact, {
20964
+ }, /*#__PURE__*/React$1.createElement(HighchartsReact$2, {
20963
20965
  highcharts: Highcharts,
20964
20966
  options: options
20965
20967
  }));
@@ -21096,6 +21098,8 @@ const all = [[blue[500]], [purple[500], '#4168a6', '#81a7e1'], [green[500], '#de
21096
21098
  const preset = ['#003f5c', '#a05195', '#665191', '#2f4b7c', '#d45087', '#f95d6a', '#ff7c43', '#ffa600'];
21097
21099
  all.map(color => color[0]);
21098
21100
 
21101
+ // Handle both ES module and CommonJS exports
21102
+ const HighchartsReact$1 = HighchartsReactModule.default || HighchartsReactModule;
21099
21103
  highchartsAccessibility(Highcharts);
21100
21104
  highchartsAnnotations(Highcharts);
21101
21105
  function Chart(props) {
@@ -21106,7 +21110,7 @@ function Chart(props) {
21106
21110
  // eslint-disable-next-line
21107
21111
  }, [props]);
21108
21112
  const handleLegendItemClick = useCallback(() => setLegendLimitEnabled(false), []);
21109
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, options && /*#__PURE__*/React$1.createElement(HighchartsReact, {
21113
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, options && /*#__PURE__*/React$1.createElement(HighchartsReact$1, {
21110
21114
  highcharts: Highcharts,
21111
21115
  options: options
21112
21116
  }));
@@ -21629,6 +21633,8 @@ function xPlotIndex(tools) {
21629
21633
  }
21630
21634
  }
21631
21635
 
21636
+ // Handle both ES module and CommonJS exports
21637
+ const HighchartsReact = HighchartsReactModule.default || HighchartsReactModule;
21632
21638
  const PieChart = ({
21633
21639
  data,
21634
21640
  width = 230,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var React$1 = require('react');
4
4
  var material = require('@mui/material');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var Highcharts = require('highcharts');
7
- var HighchartsReact = require('highcharts-react-official');
7
+ var HighchartsReactModule = require('highcharts-react-official');
8
8
  require('highcharts/modules/pattern-fill.js');
9
9
  var highchartsAccessibility = require('highcharts/modules/accessibility.js');
10
10
  var highchartsAnnotations = require('highcharts/modules/annotations.js');
@@ -20870,6 +20870,8 @@ const formatDateInRange = (date, today) => {
20870
20870
  return date.format('YYYY년 M월 D일');
20871
20871
  };
20872
20872
 
20873
+ // Handle both ES module and CommonJS exports
20874
+ const HighchartsReact$2 = HighchartsReactModule.default || HighchartsReactModule;
20873
20875
  const ColumnChart = ({
20874
20876
  data,
20875
20877
  width,
@@ -20961,7 +20963,7 @@ const ColumnChart = ({
20961
20963
  }, [data, width, height, series, colors]);
20962
20964
  return /*#__PURE__*/React$1.createElement("div", {
20963
20965
  style: styles$7.chartWrapper
20964
- }, /*#__PURE__*/React$1.createElement(HighchartsReact, {
20966
+ }, /*#__PURE__*/React$1.createElement(HighchartsReact$2, {
20965
20967
  highcharts: Highcharts,
20966
20968
  options: options
20967
20969
  }));
@@ -21098,6 +21100,8 @@ const all = [[index_js.blue[500]], [index_js.purple[500], '#4168a6', '#81a7e1'],
21098
21100
  const preset = ['#003f5c', '#a05195', '#665191', '#2f4b7c', '#d45087', '#f95d6a', '#ff7c43', '#ffa600'];
21099
21101
  all.map(color => color[0]);
21100
21102
 
21103
+ // Handle both ES module and CommonJS exports
21104
+ const HighchartsReact$1 = HighchartsReactModule.default || HighchartsReactModule;
21101
21105
  highchartsAccessibility(Highcharts);
21102
21106
  highchartsAnnotations(Highcharts);
21103
21107
  function Chart(props) {
@@ -21108,7 +21112,7 @@ function Chart(props) {
21108
21112
  // eslint-disable-next-line
21109
21113
  }, [props]);
21110
21114
  const handleLegendItemClick = React$1.useCallback(() => setLegendLimitEnabled(false), []);
21111
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, options && /*#__PURE__*/React$1.createElement(HighchartsReact, {
21115
+ return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, options && /*#__PURE__*/React$1.createElement(HighchartsReact$1, {
21112
21116
  highcharts: Highcharts,
21113
21117
  options: options
21114
21118
  }));
@@ -21631,6 +21635,8 @@ function xPlotIndex(tools) {
21631
21635
  }
21632
21636
  }
21633
21637
 
21638
+ // Handle both ES module and CommonJS exports
21639
+ const HighchartsReact = HighchartsReactModule.default || HighchartsReactModule;
21634
21640
  const PieChart = ({
21635
21641
  data,
21636
21642
  width = 230,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/kit",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A React component library by Nethru",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",