@deepnoid/ui 0.1.167 → 0.1.169
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/.turbo/turbo-build.log +165 -160
- package/dist/chunk-B4UNRT7U.mjs +192 -0
- package/dist/{chunk-BRVQTI2T.mjs → chunk-JOK735WN.mjs} +9 -3
- package/dist/{chunk-ARNMOGRH.mjs → chunk-LH6Z7SDZ.mjs} +1 -1
- package/dist/components/charts/areaChart.js +1 -1
- package/dist/components/charts/areaChart.mjs +1 -1
- package/dist/components/charts/barChart.d.mts +4 -2
- package/dist/components/charts/barChart.d.ts +4 -2
- package/dist/components/charts/barChart.js +9 -3
- package/dist/components/charts/barChart.mjs +1 -1
- package/dist/components/charts/index.d.mts +1 -0
- package/dist/components/charts/index.d.ts +1 -0
- package/dist/components/charts/index.js +195 -6
- package/dist/components/charts/index.mjs +8 -4
- package/dist/components/charts/simpleBarChart.d.mts +40 -0
- package/dist/components/charts/simpleBarChart.d.ts +40 -0
- package/dist/components/charts/simpleBarChart.js +555 -0
- package/dist/components/charts/simpleBarChart.mjs +10 -0
- package/dist/components/picker/datePicker.mjs +2 -2
- package/dist/components/picker/index.mjs +2 -2
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.mjs +1 -1
- package/dist/components/toast/index.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +208 -19
- package/dist/index.mjs +26 -22
- package/package.json +1 -1
- package/dist/{chunk-VYNBJBXD.mjs → chunk-3OCNT22V.mjs} +0 -0
- package/dist/{chunk-EQLBG32V.mjs → chunk-4OOHXMJH.mjs} +3 -3
- package/dist/{chunk-NJFJJIWK.mjs → chunk-W66K4FK5.mjs} +3 -3
|
@@ -3,11 +3,11 @@ import "../../chunk-LUWGOKLG.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ToastProvider,
|
|
5
5
|
useToast
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-ZOTHPHXA.mjs";
|
|
6
|
+
} from "../../chunk-4OOHXMJH.mjs";
|
|
8
7
|
import {
|
|
9
8
|
toast_default
|
|
10
9
|
} from "../../chunk-6574ITBF.mjs";
|
|
10
|
+
import "../../chunk-ZOTHPHXA.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-R7KUEH3N.mjs";
|
|
13
13
|
import "../../chunk-E3G5QXSH.mjs";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-ZOTHPHXA.mjs";
|
|
5
|
+
} from "../../chunk-4OOHXMJH.mjs";
|
|
7
6
|
import "../../chunk-6574ITBF.mjs";
|
|
7
|
+
import "../../chunk-ZOTHPHXA.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-R7KUEH3N.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,7 @@ export { default as CircularProgress } from './components/charts/circularProgres
|
|
|
37
37
|
export { default as AreaChart } from './components/charts/areaChart.mjs';
|
|
38
38
|
export { default as BarChart, BarChartTooltip } from './components/charts/barChart.mjs';
|
|
39
39
|
export { default as RadarChart } from './components/charts/radarChart.mjs';
|
|
40
|
+
export { default as SimpleBarChart } from './components/charts/simpleBarChart.mjs';
|
|
40
41
|
export { default as Progress } from './components/progress/progress.mjs';
|
|
41
42
|
export { default as StarRating, StarRatingProps } from './components/starRating/starRating.mjs';
|
|
42
43
|
export { tv } from './utils/tailwind-variants.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { default as CircularProgress } from './components/charts/circularProgres
|
|
|
37
37
|
export { default as AreaChart } from './components/charts/areaChart.js';
|
|
38
38
|
export { default as BarChart, BarChartTooltip } from './components/charts/barChart.js';
|
|
39
39
|
export { default as RadarChart } from './components/charts/radarChart.js';
|
|
40
|
+
export { default as SimpleBarChart } from './components/charts/simpleBarChart.js';
|
|
40
41
|
export { default as Progress } from './components/progress/progress.js';
|
|
41
42
|
export { default as StarRating, StarRatingProps } from './components/starRating/starRating.js';
|
|
42
43
|
export { tv } from './utils/tailwind-variants.js';
|
package/dist/index.js
CHANGED
|
@@ -132,6 +132,7 @@ __export(index_exports, {
|
|
|
132
132
|
Radio: () => radio_default,
|
|
133
133
|
ScrollArea: () => scrollArea_default,
|
|
134
134
|
Select: () => select_default,
|
|
135
|
+
SimpleBarChart: () => simpleBarChart_default,
|
|
135
136
|
Skeleton: () => skeleton_default,
|
|
136
137
|
StarRating: () => starRating_default,
|
|
137
138
|
Switch: () => switch_default,
|
|
@@ -12804,7 +12805,7 @@ var AreaChartComponent = (0, import_react39.forwardRef)((originalProps, ref) =>
|
|
|
12804
12805
|
{
|
|
12805
12806
|
vertical: true,
|
|
12806
12807
|
horizontal: false,
|
|
12807
|
-
strokeDasharray: "
|
|
12808
|
+
strokeDasharray: "4 4",
|
|
12808
12809
|
className: "stroke-neutral-light",
|
|
12809
12810
|
verticalPoints: tickPositions
|
|
12810
12811
|
}
|
|
@@ -13021,7 +13022,7 @@ var BarChartComponent = (0, import_react40.forwardRef)((originalProps, ref) => {
|
|
|
13021
13022
|
{
|
|
13022
13023
|
vertical: true,
|
|
13023
13024
|
horizontal: false,
|
|
13024
|
-
strokeDasharray: "
|
|
13025
|
+
strokeDasharray: "4 4",
|
|
13025
13026
|
className: "stroke-neutral-light",
|
|
13026
13027
|
verticalPoints: tickPositions
|
|
13027
13028
|
}
|
|
@@ -13110,8 +13111,14 @@ var barChartStyle = tv({
|
|
|
13110
13111
|
variants: {},
|
|
13111
13112
|
defaultVariants: {}
|
|
13112
13113
|
});
|
|
13113
|
-
function BarChartTooltip({ children }) {
|
|
13114
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
13114
|
+
function BarChartTooltip({ className = "", children }) {
|
|
13115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
13116
|
+
"div",
|
|
13117
|
+
{
|
|
13118
|
+
className: `text-md text-common-white bg-common-black flex max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold ${className}`,
|
|
13119
|
+
children
|
|
13120
|
+
}
|
|
13121
|
+
);
|
|
13115
13122
|
}
|
|
13116
13123
|
|
|
13117
13124
|
// src/components/charts/radarChart.tsx
|
|
@@ -13218,10 +13225,191 @@ var radarChartStyle = tv({
|
|
|
13218
13225
|
}
|
|
13219
13226
|
});
|
|
13220
13227
|
|
|
13221
|
-
// src/components/
|
|
13228
|
+
// src/components/charts/simpleBarChart.tsx
|
|
13222
13229
|
var import_react42 = require("react");
|
|
13230
|
+
var import_recharts5 = require("recharts");
|
|
13223
13231
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
13224
|
-
var
|
|
13232
|
+
var SimpleBarChartComponent = (0, import_react42.forwardRef)((originalProps, ref) => {
|
|
13233
|
+
const [props, variantProps] = mapPropsVariants(originalProps, simpleBarChartStyle.variantKeys);
|
|
13234
|
+
const {
|
|
13235
|
+
data = [],
|
|
13236
|
+
label,
|
|
13237
|
+
classNames,
|
|
13238
|
+
yAxisTicks = [0, 20, 40, 60, 80, 100],
|
|
13239
|
+
yAxisDomain = [0, 100],
|
|
13240
|
+
barGap = 20,
|
|
13241
|
+
tooltipFormatter
|
|
13242
|
+
} = { ...props, ...variantProps };
|
|
13243
|
+
const slots = (0, import_react42.useMemo)(() => simpleBarChartStyle({ ...variantProps }), [variantProps]);
|
|
13244
|
+
const chartRef = (0, import_react42.useRef)(null);
|
|
13245
|
+
const tooltipRef = (0, import_react42.useRef)(null);
|
|
13246
|
+
const [tooltipLeft, setTooltipLeft] = (0, import_react42.useState)(0);
|
|
13247
|
+
const [tickPositions, setTickPositions] = (0, import_react42.useState)([]);
|
|
13248
|
+
const tickRef = (0, import_react42.useRef)([]);
|
|
13249
|
+
const [tooltipState, setTooltipState] = (0, import_react42.useState)(null);
|
|
13250
|
+
const handleMouseEnter = (e) => {
|
|
13251
|
+
if (!tooltipFormatter || !chartRef.current) return;
|
|
13252
|
+
const { payload, x, y } = e;
|
|
13253
|
+
if (!payload) return;
|
|
13254
|
+
setTooltipState({
|
|
13255
|
+
x,
|
|
13256
|
+
y,
|
|
13257
|
+
value: payload.value,
|
|
13258
|
+
label: payload.title
|
|
13259
|
+
});
|
|
13260
|
+
};
|
|
13261
|
+
const handleMouseLeave = () => {
|
|
13262
|
+
setTooltipState(null);
|
|
13263
|
+
};
|
|
13264
|
+
const CustomBarShape = ({ x, y, width, height, fill }) => {
|
|
13265
|
+
const radius = 4;
|
|
13266
|
+
const extraHeight = 10;
|
|
13267
|
+
const adjustedHeight = height + extraHeight;
|
|
13268
|
+
const adjustedY = y - extraHeight;
|
|
13269
|
+
const bottomY = adjustedY + adjustedHeight;
|
|
13270
|
+
return height > 0 ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13271
|
+
"path",
|
|
13272
|
+
{
|
|
13273
|
+
d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
|
|
13274
|
+
fill
|
|
13275
|
+
}
|
|
13276
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("rect", { x, y, width, height: 0, fill });
|
|
13277
|
+
};
|
|
13278
|
+
const CustomTick = ({ x, y, payload }) => {
|
|
13279
|
+
if (x !== void 0) tickRef.current.push(x);
|
|
13280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13281
|
+
"text",
|
|
13282
|
+
{
|
|
13283
|
+
x,
|
|
13284
|
+
y: y + 14,
|
|
13285
|
+
textAnchor: "middle",
|
|
13286
|
+
fontSize: 12,
|
|
13287
|
+
fontWeight: 700,
|
|
13288
|
+
fill: "currentColor",
|
|
13289
|
+
className: "text-body-foreground",
|
|
13290
|
+
children: payload.value
|
|
13291
|
+
}
|
|
13292
|
+
);
|
|
13293
|
+
};
|
|
13294
|
+
(0, import_react42.useEffect)(() => {
|
|
13295
|
+
const raf = requestAnimationFrame(() => {
|
|
13296
|
+
const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
|
|
13297
|
+
const mids = [];
|
|
13298
|
+
for (let i = 0; i < unique.length - 1; i++) {
|
|
13299
|
+
mids.push((unique[i] + unique[i + 1]) / 2);
|
|
13300
|
+
}
|
|
13301
|
+
setTickPositions(mids);
|
|
13302
|
+
tickRef.current = [];
|
|
13303
|
+
});
|
|
13304
|
+
return () => cancelAnimationFrame(raf);
|
|
13305
|
+
}, [data]);
|
|
13306
|
+
(0, import_react42.useLayoutEffect)(() => {
|
|
13307
|
+
if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
|
|
13308
|
+
const chartRect = chartRef.current.getBoundingClientRect();
|
|
13309
|
+
const tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
13310
|
+
const chartWidth = chartRect.width;
|
|
13311
|
+
const tooltipWidth = tooltipRect.width;
|
|
13312
|
+
let left = tooltipState.x - tooltipWidth / 2;
|
|
13313
|
+
const padding2 = 8;
|
|
13314
|
+
if (left < padding2) {
|
|
13315
|
+
left = padding2;
|
|
13316
|
+
} else if (left + tooltipWidth > chartWidth - padding2) {
|
|
13317
|
+
left = chartWidth - tooltipWidth - padding2;
|
|
13318
|
+
}
|
|
13319
|
+
setTooltipLeft(left);
|
|
13320
|
+
}, [tooltipState]);
|
|
13321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
|
|
13322
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
13323
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_recharts5.ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
13324
|
+
import_recharts5.BarChart,
|
|
13325
|
+
{
|
|
13326
|
+
data,
|
|
13327
|
+
margin: { left: 0, right: 0, top: 0, bottom: 0 },
|
|
13328
|
+
barSize: 10,
|
|
13329
|
+
barGap,
|
|
13330
|
+
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
13331
|
+
children: [
|
|
13332
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13333
|
+
import_recharts5.CartesianGrid,
|
|
13334
|
+
{
|
|
13335
|
+
vertical: true,
|
|
13336
|
+
horizontal: false,
|
|
13337
|
+
strokeDasharray: "4 4",
|
|
13338
|
+
className: "stroke-neutral-light",
|
|
13339
|
+
verticalPoints: tickPositions
|
|
13340
|
+
}
|
|
13341
|
+
),
|
|
13342
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13343
|
+
import_recharts5.CartesianGrid,
|
|
13344
|
+
{
|
|
13345
|
+
vertical: true,
|
|
13346
|
+
horizontal: false,
|
|
13347
|
+
strokeDasharray: "0",
|
|
13348
|
+
strokeWidth: 2,
|
|
13349
|
+
className: "stroke-neutral-light",
|
|
13350
|
+
verticalPoints: [0]
|
|
13351
|
+
}
|
|
13352
|
+
),
|
|
13353
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13354
|
+
import_recharts5.XAxis,
|
|
13355
|
+
{
|
|
13356
|
+
dataKey: "title",
|
|
13357
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
13358
|
+
tickLine: false,
|
|
13359
|
+
tick: CustomTick,
|
|
13360
|
+
padding: { left: 0, right: 0 }
|
|
13361
|
+
}
|
|
13362
|
+
),
|
|
13363
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_recharts5.YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
|
|
13364
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13365
|
+
import_recharts5.Bar,
|
|
13366
|
+
{
|
|
13367
|
+
dataKey: "value",
|
|
13368
|
+
fill: "#C7E5FA",
|
|
13369
|
+
shape: CustomBarShape,
|
|
13370
|
+
onMouseEnter: handleMouseEnter,
|
|
13371
|
+
onMouseLeave: handleMouseLeave
|
|
13372
|
+
}
|
|
13373
|
+
)
|
|
13374
|
+
]
|
|
13375
|
+
}
|
|
13376
|
+
) }),
|
|
13377
|
+
tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
13378
|
+
"div",
|
|
13379
|
+
{
|
|
13380
|
+
ref: tooltipRef,
|
|
13381
|
+
style: {
|
|
13382
|
+
position: "absolute",
|
|
13383
|
+
left: tooltipLeft + 5,
|
|
13384
|
+
top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 20 : 0,
|
|
13385
|
+
pointerEvents: "none",
|
|
13386
|
+
zIndex: 10,
|
|
13387
|
+
opacity: tooltipState ? 1 : 0,
|
|
13388
|
+
transition: "opacity 0.1s ease-out",
|
|
13389
|
+
visibility: tooltipState ? "visible" : "hidden",
|
|
13390
|
+
width: "fit-content",
|
|
13391
|
+
whiteSpace: "nowrap"
|
|
13392
|
+
},
|
|
13393
|
+
children: tooltipState && tooltipFormatter(tooltipState)
|
|
13394
|
+
}
|
|
13395
|
+
)
|
|
13396
|
+
] });
|
|
13397
|
+
});
|
|
13398
|
+
SimpleBarChartComponent.displayName = "simpleBarChart";
|
|
13399
|
+
var simpleBarChart_default = SimpleBarChartComponent;
|
|
13400
|
+
var simpleBarChartStyle = tv({
|
|
13401
|
+
slots: {
|
|
13402
|
+
base: ["flex", "flex-col", "gap-[10px]", "select-none", "relative", "w-full"],
|
|
13403
|
+
label: ["text-md", "font-bold", "text-common-black"]
|
|
13404
|
+
},
|
|
13405
|
+
variants: {},
|
|
13406
|
+
defaultVariants: {}
|
|
13407
|
+
});
|
|
13408
|
+
|
|
13409
|
+
// src/components/starRating/starRating.tsx
|
|
13410
|
+
var import_react43 = require("react");
|
|
13411
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
13412
|
+
var StarRating = (0, import_react43.forwardRef)((originalProps, ref) => {
|
|
13225
13413
|
const [props, variantProps] = mapPropsVariants(originalProps, starRatingStyle.variantKeys);
|
|
13226
13414
|
const {
|
|
13227
13415
|
stars,
|
|
@@ -13234,8 +13422,8 @@ var StarRating = (0, import_react42.forwardRef)((originalProps, ref) => {
|
|
|
13234
13422
|
filledColor = "text-primary-main",
|
|
13235
13423
|
emptyColor = "text-neutral-soft"
|
|
13236
13424
|
} = { ...props, ...variantProps };
|
|
13237
|
-
const slots = (0,
|
|
13238
|
-
const [hoverRating, setHoverRating] = (0,
|
|
13425
|
+
const slots = (0, import_react43.useMemo)(() => starRatingStyle({ ...variantProps }), [variantProps]);
|
|
13426
|
+
const [hoverRating, setHoverRating] = (0, import_react43.useState)(0);
|
|
13239
13427
|
const handleStarClick = (starIndex, isHalf = false) => {
|
|
13240
13428
|
if (readOnly || !onChange) return;
|
|
13241
13429
|
let newRating;
|
|
@@ -13269,9 +13457,9 @@ var StarRating = (0, import_react42.forwardRef)((originalProps, ref) => {
|
|
|
13269
13457
|
const isEmpty = currentRating < starIndex - 1;
|
|
13270
13458
|
const isPartial = !isFull && !isEmpty;
|
|
13271
13459
|
const fillPercentage = isPartial ? (currentRating - (starIndex - 1)) * 100 : 0;
|
|
13272
|
-
return /* @__PURE__ */ (0,
|
|
13273
|
-
!readOnly && /* @__PURE__ */ (0,
|
|
13274
|
-
/* @__PURE__ */ (0,
|
|
13460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: slots.starWrapper({ class: classNames == null ? void 0 : classNames.starWrapper }), children: [
|
|
13461
|
+
!readOnly && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
13462
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
13275
13463
|
"div",
|
|
13276
13464
|
{
|
|
13277
13465
|
className: slots.star({ class: classNames == null ? void 0 : classNames.star }),
|
|
@@ -13279,7 +13467,7 @@ var StarRating = (0, import_react42.forwardRef)((originalProps, ref) => {
|
|
|
13279
13467
|
onMouseEnter: () => handleStarHover(starIndex)
|
|
13280
13468
|
}
|
|
13281
13469
|
),
|
|
13282
|
-
allowHalf && /* @__PURE__ */ (0,
|
|
13470
|
+
allowHalf && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
13283
13471
|
"div",
|
|
13284
13472
|
{
|
|
13285
13473
|
className: slots.starHalf({ class: classNames == null ? void 0 : classNames.starHalf }),
|
|
@@ -13288,25 +13476,25 @@ var StarRating = (0, import_react42.forwardRef)((originalProps, ref) => {
|
|
|
13288
13476
|
}
|
|
13289
13477
|
)
|
|
13290
13478
|
] }),
|
|
13291
|
-
/* @__PURE__ */ (0,
|
|
13292
|
-
(isFull || isPartial) && /* @__PURE__ */ (0,
|
|
13293
|
-
/* @__PURE__ */ (0,
|
|
13294
|
-
/* @__PURE__ */ (0,
|
|
13479
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "relative", children: [
|
|
13480
|
+
(isFull || isPartial) && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
13481
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon_default, { name: "star", fill: true, className: emptyColor, size }),
|
|
13482
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
13295
13483
|
"div",
|
|
13296
13484
|
{
|
|
13297
13485
|
className: "absolute left-0 top-0 overflow-hidden",
|
|
13298
13486
|
style: {
|
|
13299
13487
|
width: isFull ? "100%" : `${fillPercentage}%`
|
|
13300
13488
|
},
|
|
13301
|
-
children: /* @__PURE__ */ (0,
|
|
13489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon_default, { name: "star", fill: true, className: filledColor, size })
|
|
13302
13490
|
}
|
|
13303
13491
|
)
|
|
13304
13492
|
] }),
|
|
13305
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
13493
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon_default, { name: "star", fill: true, className: emptyColor, size })
|
|
13306
13494
|
] })
|
|
13307
13495
|
] }, starIndex);
|
|
13308
13496
|
};
|
|
13309
|
-
return /* @__PURE__ */ (0,
|
|
13497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: createRange(stars).map(renderStar) });
|
|
13310
13498
|
});
|
|
13311
13499
|
StarRating.displayName = "StarRating";
|
|
13312
13500
|
var starRating_default = StarRating;
|
|
@@ -13361,6 +13549,7 @@ var starRatingStyle = tv({
|
|
|
13361
13549
|
Radio,
|
|
13362
13550
|
ScrollArea,
|
|
13363
13551
|
Select,
|
|
13552
|
+
SimpleBarChart,
|
|
13364
13553
|
Skeleton,
|
|
13365
13554
|
StarRating,
|
|
13366
13555
|
Switch,
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-HIE2YRGA.mjs";
|
|
3
|
+
import {
|
|
4
|
+
tooltip_default
|
|
5
|
+
} from "./chunk-5KC3IFNR.mjs";
|
|
6
|
+
import "./chunk-ZMOAFSYE.mjs";
|
|
7
|
+
import "./chunk-WSIADHVC.mjs";
|
|
2
8
|
import "./chunk-MBLZYQCN.mjs";
|
|
3
9
|
import {
|
|
4
10
|
tree_default
|
|
5
11
|
} from "./chunk-WSBUOY2M.mjs";
|
|
12
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
13
|
+
import {
|
|
14
|
+
tabs_default
|
|
15
|
+
} from "./chunk-DW3BX4M2.mjs";
|
|
6
16
|
import "./chunk-RRAZM5D3.mjs";
|
|
7
17
|
import {
|
|
8
18
|
textarea_default
|
|
9
19
|
} from "./chunk-3CRSSRCH.mjs";
|
|
10
|
-
import "./chunk-HIE2YRGA.mjs";
|
|
11
|
-
import {
|
|
12
|
-
tooltip_default
|
|
13
|
-
} from "./chunk-5KC3IFNR.mjs";
|
|
14
|
-
import "./chunk-ZMOAFSYE.mjs";
|
|
15
|
-
import "./chunk-WSIADHVC.mjs";
|
|
16
20
|
import "./chunk-LUWGOKLG.mjs";
|
|
17
21
|
import {
|
|
18
22
|
ToastProvider,
|
|
19
23
|
useToast
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
24
|
+
} from "./chunk-4OOHXMJH.mjs";
|
|
22
25
|
import {
|
|
23
26
|
toast_default
|
|
24
27
|
} from "./chunk-6574ITBF.mjs";
|
|
28
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
29
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
30
|
+
import {
|
|
31
|
+
switch_default
|
|
32
|
+
} from "./chunk-AGE57VDD.mjs";
|
|
25
33
|
import "./chunk-DX3KXNP6.mjs";
|
|
26
34
|
import {
|
|
27
35
|
definition_table_default
|
|
@@ -29,10 +37,6 @@ import {
|
|
|
29
37
|
import {
|
|
30
38
|
table_default
|
|
31
39
|
} from "./chunk-PX4RCHOE.mjs";
|
|
32
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
33
|
-
import {
|
|
34
|
-
tabs_default
|
|
35
|
-
} from "./chunk-DW3BX4M2.mjs";
|
|
36
40
|
import "./chunk-MZ76AA76.mjs";
|
|
37
41
|
import {
|
|
38
42
|
skeleton_default
|
|
@@ -41,10 +45,6 @@ import "./chunk-OLQOLLKG.mjs";
|
|
|
41
45
|
import {
|
|
42
46
|
starRating_default
|
|
43
47
|
} from "./chunk-XTS6WKFD.mjs";
|
|
44
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
45
|
-
import {
|
|
46
|
-
switch_default
|
|
47
|
-
} from "./chunk-AGE57VDD.mjs";
|
|
48
48
|
import "./chunk-TPFN22HR.mjs";
|
|
49
49
|
import {
|
|
50
50
|
radio_default
|
|
@@ -57,7 +57,8 @@ import "./chunk-F3HENRVM.mjs";
|
|
|
57
57
|
import "./chunk-4VWG4726.mjs";
|
|
58
58
|
import {
|
|
59
59
|
datePicker_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-W66K4FK5.mjs";
|
|
61
|
+
import "./chunk-FWFEKWWD.mjs";
|
|
61
62
|
import {
|
|
62
63
|
day_default
|
|
63
64
|
} from "./chunk-XZYQFBCT.mjs";
|
|
@@ -68,7 +69,6 @@ import "./chunk-QCEKPS7U.mjs";
|
|
|
68
69
|
import {
|
|
69
70
|
select_default
|
|
70
71
|
} from "./chunk-5G6CCE55.mjs";
|
|
71
|
-
import "./chunk-FWFEKWWD.mjs";
|
|
72
72
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
73
73
|
import {
|
|
74
74
|
list_default
|
|
@@ -80,6 +80,7 @@ import "./chunk-DJOG6Z35.mjs";
|
|
|
80
80
|
import {
|
|
81
81
|
modal_default
|
|
82
82
|
} from "./chunk-SCQCMQDP.mjs";
|
|
83
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
83
84
|
import "./chunk-MGEWSREV.mjs";
|
|
84
85
|
import {
|
|
85
86
|
chip_default
|
|
@@ -100,10 +101,10 @@ import "./chunk-2GCSFWHD.mjs";
|
|
|
100
101
|
import {
|
|
101
102
|
input_default
|
|
102
103
|
} from "./chunk-VNRGOOSY.mjs";
|
|
103
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-3OCNT22V.mjs";
|
|
104
105
|
import {
|
|
105
106
|
areaChart_default
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-LH6Z7SDZ.mjs";
|
|
107
108
|
import "./chunk-DQRAFUDA.mjs";
|
|
108
109
|
import {
|
|
109
110
|
scrollArea_default
|
|
@@ -111,14 +112,16 @@ import {
|
|
|
111
112
|
import {
|
|
112
113
|
BarChartTooltip,
|
|
113
114
|
barChart_default
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-JOK735WN.mjs";
|
|
115
116
|
import {
|
|
116
117
|
circularProgress_default
|
|
117
118
|
} from "./chunk-WA7CSZQ3.mjs";
|
|
118
119
|
import {
|
|
119
120
|
radarChart_default
|
|
120
121
|
} from "./chunk-U7SYKG2C.mjs";
|
|
121
|
-
import
|
|
122
|
+
import {
|
|
123
|
+
simpleBarChart_default
|
|
124
|
+
} from "./chunk-B4UNRT7U.mjs";
|
|
122
125
|
import {
|
|
123
126
|
checkbox_default
|
|
124
127
|
} from "./chunk-OEIEALIP.mjs";
|
|
@@ -202,6 +205,7 @@ export {
|
|
|
202
205
|
radio_default as Radio,
|
|
203
206
|
scrollArea_default as ScrollArea,
|
|
204
207
|
select_default as Select,
|
|
208
|
+
simpleBarChart_default as SimpleBarChart,
|
|
205
209
|
skeleton_default as Skeleton,
|
|
206
210
|
starRating_default as StarRating,
|
|
207
211
|
switch_default as Switch,
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getToastPosition
|
|
4
|
-
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
2
|
import {
|
|
6
3
|
toast_default
|
|
7
4
|
} from "./chunk-6574ITBF.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getToastPosition
|
|
7
|
+
} from "./chunk-ZOTHPHXA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
day_default
|
|
4
|
-
} from "./chunk-XZYQFBCT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
formatDateToString,
|
|
7
4
|
formatStringToDate
|
|
8
5
|
} from "./chunk-FWFEKWWD.mjs";
|
|
6
|
+
import {
|
|
7
|
+
day_default
|
|
8
|
+
} from "./chunk-XZYQFBCT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
input_default
|
|
11
11
|
} from "./chunk-VNRGOOSY.mjs";
|