@appcorp/shadcn 1.1.11 → 1.1.13

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.
@@ -52,7 +52,7 @@ var createChartConfig = function (legends) {
52
52
  };
53
53
  var AreaChartV1 = function (_a) {
54
54
  var dates = _a.dates, description = _a.description, legends = _a.legends, title = _a.title, selectors = _a.selectors, _b = _a.locale, locale = _b === void 0 ? "en-US" : _b, onSelectorChange = _a.onSelectorChange;
55
- var _c = React.useState("90d"), timeRange = _c[0], setTimeRange = _c[1];
55
+ var _c = React.useState("30d"), timeRange = _c[0], setTimeRange = _c[1];
56
56
  var dynamicChartConfig = createChartConfig(legends);
57
57
  var handleValueChange = function (value) {
58
58
  setTimeRange(value);
@@ -91,6 +91,7 @@ var AreaChartV1 = function (_a) {
91
91
  React.createElement("stop", { offset: "95%", stopColor: "var(--color-".concat(key, ")"), stopOpacity: 0.1 })));
92
92
  })),
93
93
  React.createElement(recharts_1.CartesianGrid, { vertical: false }),
94
+ React.createElement(recharts_1.YAxis, { domain: [0, "auto"], hide: true }),
94
95
  React.createElement(recharts_1.XAxis, { dataKey: "date", tickLine: false, axisLine: false, tickMargin: 8, minTickGap: 32, tickFormatter: function (value) {
95
96
  var date = new Date(value);
96
97
  return date.toLocaleDateString(locale, {
@@ -106,7 +107,7 @@ var AreaChartV1 = function (_a) {
106
107
  }, indicator: "dot" }) }),
107
108
  legends.map(function (legend) {
108
109
  var key = legend.toLowerCase();
109
- return (React.createElement(recharts_1.Area, { key: key, dataKey: key, type: "natural", fill: "url(#fill".concat(legend, ")"), stroke: "var(--color-".concat(key, ")"), stackId: "a" }));
110
+ return (React.createElement(recharts_1.Area, { key: key, dataKey: key, type: "monotone", fill: "url(#fill".concat(legend, ")"), stroke: "var(--color-".concat(key, ")"), stackId: "a" }));
110
111
  }),
111
112
  React.createElement(chart_1.ChartLegend, { content: React.createElement(chart_1.ChartLegendContent, null) }))))));
112
113
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/shadcn",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "scripts": {
5
5
  "build:next": "next build",
6
6
  "build:storybook": "storybook build -c .storybook -o .out",