@sikka/hawa 0.35.4-next → 0.35.6-next
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/appLayout/index.js +178 -171
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +199 -192
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/index.js +60 -60
- package/dist/blocks/index.mjs +12 -12
- package/dist/blocks/misc/index.js +49 -49
- package/dist/blocks/misc/index.mjs +62 -62
- package/dist/{chunk-TERP5K6R.mjs → chunk-57EAKTAP.mjs} +1 -184
- package/dist/{chunk-G7JHUC5N.mjs → chunk-ANXGMZXS.mjs} +205 -0
- package/dist/{chunk-HSRW7X3Z.mjs → chunk-MZRUEJED.mjs} +1 -1
- package/dist/chunk-SYGWSBJL.mjs +63 -0
- package/dist/elements/index.js +74 -74
- package/dist/elements/index.mjs +9 -9
- package/dist/hooks/index.d.mts +4 -1
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +31 -2
- package/dist/hooks/index.mjs +4 -2
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +178 -178
- package/dist/index.mjs +724 -725
- package/dist/layout/index.js +286 -279
- package/dist/layout/index.mjs +27 -60
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/tabs/index.js +20 -20
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +25 -25
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-JU6Q4Q3T.mjs +0 -52
package/dist/index.js
CHANGED
@@ -232,6 +232,7 @@ __export(components_exports, {
|
|
232
232
|
reducer: () => reducer,
|
233
233
|
toast: () => toast,
|
234
234
|
useBreakpoint: () => useBreakpoint,
|
235
|
+
useClickOutside: () => useClickOutside,
|
235
236
|
useClipboard: () => useClipboard,
|
236
237
|
useDialogCarousel: () => useDialogCarousel,
|
237
238
|
useFocusWithin: () => useFocusWithin,
|
@@ -4277,7 +4278,7 @@ var SortButton = (props) => {
|
|
4277
4278
|
};
|
4278
4279
|
|
4279
4280
|
// elements/tabs/Tabs.tsx
|
4280
|
-
var
|
4281
|
+
var React41 = __toESM(require("react"));
|
4281
4282
|
|
4282
4283
|
// hooks/useIsomorphicEffect.ts
|
4283
4284
|
var import_react16 = require("react");
|
@@ -4693,31 +4694,42 @@ var useMeasureDirty = (ref) => {
|
|
4693
4694
|
return rect;
|
4694
4695
|
};
|
4695
4696
|
|
4696
|
-
// hooks/
|
4697
|
-
var import_react31 =
|
4698
|
-
var
|
4699
|
-
|
4700
|
-
import_react31.
|
4701
|
-
|
4702
|
-
|
4703
|
-
|
4697
|
+
// hooks/useClickOutside.ts
|
4698
|
+
var import_react31 = require("react");
|
4699
|
+
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
4700
|
+
function useClickOutside(handler, events, nodes) {
|
4701
|
+
const ref = (0, import_react31.useRef)();
|
4702
|
+
(0, import_react31.useEffect)(() => {
|
4703
|
+
const listener = (event) => {
|
4704
|
+
const { target } = event != null ? event : {};
|
4705
|
+
if (Array.isArray(nodes)) {
|
4706
|
+
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
4707
|
+
const shouldTrigger = nodes.every(
|
4708
|
+
(node) => !!node && !event.composedPath().includes(node)
|
4709
|
+
);
|
4710
|
+
shouldTrigger && !shouldIgnore && handler();
|
4711
|
+
} else if (ref.current && !ref.current.contains(target)) {
|
4712
|
+
handler();
|
4704
4713
|
}
|
4705
4714
|
};
|
4706
|
-
|
4715
|
+
(events || DEFAULT_EVENTS).forEach(
|
4716
|
+
(fn) => document.addEventListener(fn, listener)
|
4717
|
+
);
|
4707
4718
|
return () => {
|
4708
|
-
|
4719
|
+
(events || DEFAULT_EVENTS).forEach(
|
4720
|
+
(fn) => document.removeEventListener(fn, listener)
|
4721
|
+
);
|
4709
4722
|
};
|
4710
|
-
}, [ref]);
|
4723
|
+
}, [ref, handler, nodes]);
|
4711
4724
|
return ref;
|
4712
|
-
}
|
4713
|
-
var useOutsideClick_default = useOutsideClick;
|
4725
|
+
}
|
4714
4726
|
|
4715
4727
|
// elements/tabs/Tabs.tsx
|
4716
4728
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4717
4729
|
var import_tailwind_variants = require("tailwind-variants");
|
4718
4730
|
|
4719
4731
|
// elements/floatBox/FloatBox.tsx
|
4720
|
-
var
|
4732
|
+
var React40 = __toESM(require("react"));
|
4721
4733
|
var FloatBox = ({
|
4722
4734
|
className,
|
4723
4735
|
open,
|
@@ -4755,7 +4767,7 @@ var FloatBox = ({
|
|
4755
4767
|
right: "hawa-arrow-default-left",
|
4756
4768
|
left: "hawa-arrow-default-right"
|
4757
4769
|
};
|
4758
|
-
return /* @__PURE__ */
|
4770
|
+
return /* @__PURE__ */ React40.createElement(
|
4759
4771
|
"div",
|
4760
4772
|
{
|
4761
4773
|
className: cn(
|
@@ -4766,8 +4778,8 @@ var FloatBox = ({
|
|
4766
4778
|
"data-side": side,
|
4767
4779
|
"data-floatbox-state": open ? "open" : "closed"
|
4768
4780
|
},
|
4769
|
-
withArrow && /* @__PURE__ */
|
4770
|
-
/* @__PURE__ */
|
4781
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4782
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4771
4783
|
);
|
4772
4784
|
};
|
4773
4785
|
|
@@ -4830,8 +4842,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4830
4842
|
],
|
4831
4843
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4832
4844
|
});
|
4833
|
-
var TabsContext =
|
4834
|
-
var Tabs =
|
4845
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4846
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4835
4847
|
TabsPrimitive.Root,
|
4836
4848
|
{
|
4837
4849
|
ref,
|
@@ -4842,11 +4854,11 @@ var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ..
|
|
4842
4854
|
),
|
4843
4855
|
...props
|
4844
4856
|
},
|
4845
|
-
/* @__PURE__ */
|
4857
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4846
4858
|
));
|
4847
|
-
var TabsList =
|
4848
|
-
const { orientation, variant } =
|
4849
|
-
return /* @__PURE__ */
|
4859
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4860
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4861
|
+
return /* @__PURE__ */ React41.createElement(
|
4850
4862
|
TabsPrimitive.List,
|
4851
4863
|
{
|
4852
4864
|
ref,
|
@@ -4859,11 +4871,11 @@ var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4859
4871
|
}
|
4860
4872
|
);
|
4861
4873
|
});
|
4862
|
-
var TabsTrigger =
|
4863
|
-
const { orientation, variant } =
|
4864
|
-
const tabTriggerRef =
|
4874
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4875
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4876
|
+
const tabTriggerRef = React41.useRef(null);
|
4865
4877
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4866
|
-
return /* @__PURE__ */
|
4878
|
+
return /* @__PURE__ */ React41.createElement(
|
4867
4879
|
TabsPrimitive.Trigger,
|
4868
4880
|
{
|
4869
4881
|
ref: tabTriggerRef,
|
@@ -4875,8 +4887,8 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4875
4887
|
...props
|
4876
4888
|
},
|
4877
4889
|
props.children,
|
4878
|
-
chipProps && /* @__PURE__ */
|
4879
|
-
/* @__PURE__ */
|
4890
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4891
|
+
/* @__PURE__ */ React41.createElement(
|
4880
4892
|
FloatBox,
|
4881
4893
|
{
|
4882
4894
|
withArrow: true,
|
@@ -4889,7 +4901,7 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4889
4901
|
)
|
4890
4902
|
);
|
4891
4903
|
});
|
4892
|
-
var TabsContent =
|
4904
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4893
4905
|
TabsPrimitive.Content,
|
4894
4906
|
{
|
4895
4907
|
ref,
|
@@ -5094,15 +5106,15 @@ var Select = ({
|
|
5094
5106
|
};
|
5095
5107
|
|
5096
5108
|
// elements/switch/Switch.tsx
|
5097
|
-
var
|
5109
|
+
var React43 = __toESM(require("react"));
|
5098
5110
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
5099
|
-
var Switch =
|
5111
|
+
var Switch = React43.forwardRef(
|
5100
5112
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
5101
|
-
const [parentDirection, setParentDirection] =
|
5113
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
5102
5114
|
null
|
5103
5115
|
);
|
5104
|
-
const parentRef =
|
5105
|
-
|
5116
|
+
const parentRef = React43.useRef(null);
|
5117
|
+
React43.useEffect(() => {
|
5106
5118
|
var _a;
|
5107
5119
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
5108
5120
|
if (parentNode) {
|
@@ -5130,13 +5142,13 @@ var Switch = React44.forwardRef(
|
|
5130
5142
|
full: "hawa-rounded-full",
|
5131
5143
|
inherit: "hawa-rounded-inner"
|
5132
5144
|
};
|
5133
|
-
return /* @__PURE__ */
|
5145
|
+
return /* @__PURE__ */ React43.createElement(
|
5134
5146
|
"div",
|
5135
5147
|
{
|
5136
5148
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
5137
5149
|
ref: parentRef
|
5138
5150
|
},
|
5139
|
-
/* @__PURE__ */
|
5151
|
+
/* @__PURE__ */ React43.createElement(
|
5140
5152
|
SwitchPrimitives.Root,
|
5141
5153
|
{
|
5142
5154
|
className: cn(
|
@@ -5150,7 +5162,7 @@ var Switch = React44.forwardRef(
|
|
5150
5162
|
...props,
|
5151
5163
|
ref
|
5152
5164
|
},
|
5153
|
-
/* @__PURE__ */
|
5165
|
+
/* @__PURE__ */ React43.createElement(
|
5154
5166
|
SwitchPrimitives.Thumb,
|
5155
5167
|
{
|
5156
5168
|
className: cn(
|
@@ -5164,14 +5176,14 @@ var Switch = React44.forwardRef(
|
|
5164
5176
|
}
|
5165
5177
|
)
|
5166
5178
|
),
|
5167
|
-
label && /* @__PURE__ */
|
5179
|
+
label && /* @__PURE__ */ React43.createElement("span", { className: "hawa-mx-2 hawa-text-sm hawa-font-medium hawa-text-gray-900 dark:hawa-text-gray-300" }, label)
|
5168
5180
|
);
|
5169
5181
|
}
|
5170
5182
|
);
|
5171
5183
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
5172
5184
|
|
5173
5185
|
// elements/checkbox/Checkbox.tsx
|
5174
|
-
var
|
5186
|
+
var React44 = __toESM(require("react"));
|
5175
5187
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
5176
5188
|
var Checkbox = ({
|
5177
5189
|
id,
|
@@ -5191,7 +5203,7 @@ var Checkbox = ({
|
|
5191
5203
|
lg: 0.9,
|
5192
5204
|
xl: 1
|
5193
5205
|
};
|
5194
|
-
return /* @__PURE__ */
|
5206
|
+
return /* @__PURE__ */ React44.createElement(
|
5195
5207
|
"div",
|
5196
5208
|
{
|
5197
5209
|
className: cn(
|
@@ -5199,7 +5211,7 @@ var Checkbox = ({
|
|
5199
5211
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
5200
5212
|
)
|
5201
5213
|
},
|
5202
|
-
/* @__PURE__ */
|
5214
|
+
/* @__PURE__ */ React44.createElement(
|
5203
5215
|
CheckboxElement,
|
5204
5216
|
{
|
5205
5217
|
...props,
|
@@ -5209,7 +5221,7 @@ var Checkbox = ({
|
|
5209
5221
|
id
|
5210
5222
|
}
|
5211
5223
|
),
|
5212
|
-
(label || helperText) && /* @__PURE__ */
|
5224
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
5213
5225
|
"label",
|
5214
5226
|
{
|
5215
5227
|
htmlFor: id,
|
@@ -5223,7 +5235,7 @@ var Checkbox = ({
|
|
5223
5235
|
}
|
5224
5236
|
},
|
5225
5237
|
label
|
5226
|
-
), sublabel && /* @__PURE__ */
|
5238
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
5227
5239
|
"label",
|
5228
5240
|
{
|
5229
5241
|
htmlFor: id,
|
@@ -5233,7 +5245,7 @@ var Checkbox = ({
|
|
5233
5245
|
)
|
5234
5246
|
},
|
5235
5247
|
sublabel
|
5236
|
-
), helperText && !disabled && /* @__PURE__ */
|
5248
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
5237
5249
|
"label",
|
5238
5250
|
{
|
5239
5251
|
htmlFor: id,
|
@@ -5246,7 +5258,7 @@ var Checkbox = ({
|
|
5246
5258
|
))
|
5247
5259
|
);
|
5248
5260
|
};
|
5249
|
-
var CheckboxElement =
|
5261
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
5250
5262
|
let checkboxRadius = {
|
5251
5263
|
none: "hawa-rounded-none",
|
5252
5264
|
inherit: "hawa-rounded-sm",
|
@@ -5268,7 +5280,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5268
5280
|
lg: "1em",
|
5269
5281
|
xl: "1.25em"
|
5270
5282
|
};
|
5271
|
-
return /* @__PURE__ */
|
5283
|
+
return /* @__PURE__ */ React44.createElement(
|
5272
5284
|
CheckboxPrimitive.Root,
|
5273
5285
|
{
|
5274
5286
|
ref,
|
@@ -5280,14 +5292,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5280
5292
|
),
|
5281
5293
|
...props
|
5282
5294
|
},
|
5283
|
-
/* @__PURE__ */
|
5295
|
+
/* @__PURE__ */ React44.createElement(
|
5284
5296
|
CheckboxPrimitive.Indicator,
|
5285
5297
|
{
|
5286
5298
|
className: cn(
|
5287
5299
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
5288
5300
|
)
|
5289
5301
|
},
|
5290
|
-
/* @__PURE__ */
|
5302
|
+
/* @__PURE__ */ React44.createElement(
|
5291
5303
|
"svg",
|
5292
5304
|
{
|
5293
5305
|
"aria-label": "Check Mark",
|
@@ -5298,7 +5310,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5298
5310
|
height: checkboxIndicatorSizes[size],
|
5299
5311
|
width: checkboxIndicatorSizes[size]
|
5300
5312
|
},
|
5301
|
-
/* @__PURE__ */
|
5313
|
+
/* @__PURE__ */ React44.createElement("path", { d: "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" })
|
5302
5314
|
),
|
5303
5315
|
" "
|
5304
5316
|
)
|
@@ -5307,9 +5319,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
5307
5319
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
5308
5320
|
|
5309
5321
|
// elements/progress/Progress.tsx
|
5310
|
-
var
|
5322
|
+
var React45 = __toESM(require("react"));
|
5311
5323
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
5312
|
-
var Progress =
|
5324
|
+
var Progress = React45.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, props.label && /* @__PURE__ */ React45.createElement(Label2, { ...props.labelProps }, props.label), /* @__PURE__ */ React45.createElement(
|
5313
5325
|
ProgressPrimitive.Root,
|
5314
5326
|
{
|
5315
5327
|
ref,
|
@@ -5319,7 +5331,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
5319
5331
|
),
|
5320
5332
|
...props
|
5321
5333
|
},
|
5322
|
-
/* @__PURE__ */
|
5334
|
+
/* @__PURE__ */ React45.createElement(
|
5323
5335
|
ProgressPrimitive.Indicator,
|
5324
5336
|
{
|
5325
5337
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -7335,21 +7347,21 @@ var StopPropagationWrapper = (props) => {
|
|
7335
7347
|
};
|
7336
7348
|
|
7337
7349
|
// elements/scrollArea/ScrollArea.tsx
|
7338
|
-
var
|
7350
|
+
var React52 = __toESM(require("react"));
|
7339
7351
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
7340
|
-
var ScrollArea =
|
7352
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
7341
7353
|
ScrollAreaPrimitive.Root,
|
7342
7354
|
{
|
7343
7355
|
ref,
|
7344
7356
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
7345
7357
|
...props
|
7346
7358
|
},
|
7347
|
-
/* @__PURE__ */
|
7348
|
-
/* @__PURE__ */
|
7349
|
-
/* @__PURE__ */
|
7359
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
7360
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
7361
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
7350
7362
|
));
|
7351
7363
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
7352
|
-
var ScrollBar =
|
7364
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
7353
7365
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
7354
7366
|
{
|
7355
7367
|
ref,
|
@@ -7362,7 +7374,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
7362
7374
|
),
|
7363
7375
|
...props
|
7364
7376
|
},
|
7365
|
-
/* @__PURE__ */
|
7377
|
+
/* @__PURE__ */ React52.createElement(
|
7366
7378
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
7367
7379
|
{
|
7368
7380
|
className: cn(
|
@@ -7845,6 +7857,27 @@ var UncheckMark = ({ size = "default", className }) => {
|
|
7845
7857
|
)
|
7846
7858
|
);
|
7847
7859
|
};
|
7860
|
+
var MenuIcon = () => /* @__PURE__ */ import_react44.default.createElement(
|
7861
|
+
"svg",
|
7862
|
+
{
|
7863
|
+
"aria-label": "Menu Button",
|
7864
|
+
stroke: "currentColor",
|
7865
|
+
fill: "currentColor",
|
7866
|
+
strokeWidth: 0,
|
7867
|
+
viewBox: "0 0 20 20",
|
7868
|
+
"aria-hidden": "true",
|
7869
|
+
height: "1.6em",
|
7870
|
+
width: "1.6em"
|
7871
|
+
},
|
7872
|
+
/* @__PURE__ */ import_react44.default.createElement(
|
7873
|
+
"path",
|
7874
|
+
{
|
7875
|
+
fillRule: "evenodd",
|
7876
|
+
clipRule: "evenodd",
|
7877
|
+
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
7878
|
+
}
|
7879
|
+
)
|
7880
|
+
);
|
7848
7881
|
|
7849
7882
|
// elements/passwordInput/PasswordInput.tsx
|
7850
7883
|
var PasswordStrengthIndicator = ({ strength }) => {
|
@@ -7980,9 +8013,9 @@ var PasswordInput = ({
|
|
7980
8013
|
};
|
7981
8014
|
|
7982
8015
|
// elements/slider/Slider.tsx
|
7983
|
-
var
|
8016
|
+
var React60 = __toESM(require("react"));
|
7984
8017
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7985
|
-
var Slider =
|
8018
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7986
8019
|
SliderPrimitive.Root,
|
7987
8020
|
{
|
7988
8021
|
ref,
|
@@ -7992,13 +8025,13 @@ var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7992
8025
|
),
|
7993
8026
|
...props
|
7994
8027
|
},
|
7995
|
-
/* @__PURE__ */
|
7996
|
-
/* @__PURE__ */
|
8028
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Track, { className: "hawa-relative hawa-h-2 hawa-w-full hawa-grow hawa-overflow-hidden hawa-rounded-full hawa-border hawa-bg-background" }, /* @__PURE__ */ React60.createElement(SliderPrimitive.Range, { className: "hawa-absolute hawa-h-full hawa-bg-primary" })),
|
8029
|
+
/* @__PURE__ */ React60.createElement(SliderPrimitive.Thumb, { className: "hawa-block hawa-h-5 hawa-w-5 hawa-rounded-full hawa-border-2 hawa-border-primary hawa-bg-background hawa-ring-offset-background hawa-transition-colors focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-2 disabled:hawa-pointer-events-none disabled:hawa-opacity-50" })
|
7997
8030
|
));
|
7998
8031
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7999
8032
|
|
8000
8033
|
// elements/simpleTable/SimpleTable.tsx
|
8001
|
-
var
|
8034
|
+
var React61 = __toESM(require("react"));
|
8002
8035
|
var import_react_table2 = require("@tanstack/react-table");
|
8003
8036
|
var SimpleTable = ({
|
8004
8037
|
columns,
|
@@ -8013,7 +8046,7 @@ var SimpleTable = ({
|
|
8013
8046
|
columns,
|
8014
8047
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
8015
8048
|
});
|
8016
|
-
return /* @__PURE__ */
|
8049
|
+
return /* @__PURE__ */ React61.createElement(
|
8017
8050
|
"div",
|
8018
8051
|
{
|
8019
8052
|
className: cn(
|
@@ -8021,8 +8054,8 @@ var SimpleTable = ({
|
|
8021
8054
|
classNames
|
8022
8055
|
)
|
8023
8056
|
},
|
8024
|
-
props.isLoading ? /* @__PURE__ */
|
8025
|
-
return /* @__PURE__ */
|
8057
|
+
props.isLoading ? /* @__PURE__ */ React61.createElement(Skeleton, { className: "h-[130px] w-full" }) : /* @__PURE__ */ React61.createElement("div", { className: "hawa-rounded" }, /* @__PURE__ */ React61.createElement(Table, null, !headerless && table.getAllColumns().length > 0 && /* @__PURE__ */ React61.createElement(TableHeader, null, table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React61.createElement(TableRow, { key: headerGroup.id }, headerGroup.headers.map((header) => {
|
8058
|
+
return /* @__PURE__ */ React61.createElement(
|
8026
8059
|
TableHead,
|
8027
8060
|
{
|
8028
8061
|
condensed: props.condensed,
|
@@ -8037,7 +8070,7 @@ var SimpleTable = ({
|
|
8037
8070
|
header.getContext()
|
8038
8071
|
)
|
8039
8072
|
);
|
8040
|
-
})))), /* @__PURE__ */
|
8073
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
8041
8074
|
TableRow,
|
8042
8075
|
{
|
8043
8076
|
key: row.id,
|
@@ -8045,7 +8078,7 @@ var SimpleTable = ({
|
|
8045
8078
|
},
|
8046
8079
|
row.getVisibleCells().map((cell) => {
|
8047
8080
|
var _a2;
|
8048
|
-
return /* @__PURE__ */
|
8081
|
+
return /* @__PURE__ */ React61.createElement(
|
8049
8082
|
TableCell,
|
8050
8083
|
{
|
8051
8084
|
dir: props.direction,
|
@@ -8061,7 +8094,7 @@ var SimpleTable = ({
|
|
8061
8094
|
)
|
8062
8095
|
);
|
8063
8096
|
})
|
8064
|
-
)) : /* @__PURE__ */
|
8097
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
8065
8098
|
TableCell,
|
8066
8099
|
{
|
8067
8100
|
colSpan: columns.length,
|
@@ -8073,12 +8106,12 @@ var SimpleTable = ({
|
|
8073
8106
|
};
|
8074
8107
|
|
8075
8108
|
// elements/separator/Separator.tsx
|
8076
|
-
var
|
8109
|
+
var React62 = __toESM(require("react"));
|
8077
8110
|
var Separator2 = ({
|
8078
8111
|
className,
|
8079
8112
|
orientation = "horizontal",
|
8080
8113
|
...props
|
8081
|
-
}) => /* @__PURE__ */
|
8114
|
+
}) => /* @__PURE__ */ React62.createElement(
|
8082
8115
|
"div",
|
8083
8116
|
{
|
8084
8117
|
className: cn(
|
@@ -8443,7 +8476,7 @@ var Count = (props) => {
|
|
8443
8476
|
};
|
8444
8477
|
|
8445
8478
|
// elements/toast/Toast.tsx
|
8446
|
-
var
|
8479
|
+
var React67 = __toESM(require("react"));
|
8447
8480
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
8448
8481
|
var import_class_variance_authority4 = require("class-variance-authority");
|
8449
8482
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -8471,7 +8504,7 @@ var sizeStyles = {
|
|
8471
8504
|
sm: "hawa-text-xs"
|
8472
8505
|
};
|
8473
8506
|
var ToastProvider = ToastPrimitives.Provider;
|
8474
|
-
var ToastViewport =
|
8507
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8475
8508
|
ToastPrimitives.Viewport,
|
8476
8509
|
{
|
8477
8510
|
ref,
|
@@ -8483,8 +8516,8 @@ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
8483
8516
|
}
|
8484
8517
|
));
|
8485
8518
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8486
|
-
var Toast =
|
8487
|
-
return /* @__PURE__ */
|
8519
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8520
|
+
return /* @__PURE__ */ React67.createElement(
|
8488
8521
|
ToastPrimitives.Root,
|
8489
8522
|
{
|
8490
8523
|
ref,
|
@@ -8499,8 +8532,8 @@ var Toast = React68.forwardRef(({ className, variant, severity = "none", directi
|
|
8499
8532
|
);
|
8500
8533
|
});
|
8501
8534
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8502
|
-
var ToastAction =
|
8503
|
-
return /* @__PURE__ */
|
8535
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
8536
|
+
return /* @__PURE__ */ React67.createElement(
|
8504
8537
|
ToastPrimitives.Action,
|
8505
8538
|
{
|
8506
8539
|
ref,
|
@@ -8518,7 +8551,7 @@ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
|
|
8518
8551
|
);
|
8519
8552
|
});
|
8520
8553
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8521
|
-
var ToastClose =
|
8554
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8522
8555
|
ToastPrimitives.Close,
|
8523
8556
|
{
|
8524
8557
|
ref,
|
@@ -8532,7 +8565,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8532
8565
|
"toast-close": "",
|
8533
8566
|
...props
|
8534
8567
|
},
|
8535
|
-
/* @__PURE__ */
|
8568
|
+
/* @__PURE__ */ React67.createElement(
|
8536
8569
|
"svg",
|
8537
8570
|
{
|
8538
8571
|
"aria-label": "Close Icon",
|
@@ -8541,7 +8574,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8541
8574
|
fill: "currentColor",
|
8542
8575
|
viewBox: "0 0 20 20"
|
8543
8576
|
},
|
8544
|
-
/* @__PURE__ */
|
8577
|
+
/* @__PURE__ */ React67.createElement(
|
8545
8578
|
"path",
|
8546
8579
|
{
|
8547
8580
|
fillRule: "evenodd",
|
@@ -8552,7 +8585,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8552
8585
|
)
|
8553
8586
|
));
|
8554
8587
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8555
|
-
var ToastTitle =
|
8588
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8556
8589
|
ToastPrimitives.Title,
|
8557
8590
|
{
|
8558
8591
|
ref,
|
@@ -8565,7 +8598,7 @@ var ToastTitle = React68.forwardRef(({ className, size = "default", ...props },
|
|
8565
8598
|
}
|
8566
8599
|
));
|
8567
8600
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8568
|
-
var ToastDescription =
|
8601
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8569
8602
|
ToastPrimitives.Description,
|
8570
8603
|
{
|
8571
8604
|
ref,
|
@@ -8829,13 +8862,13 @@ var Stats = ({
|
|
8829
8862
|
};
|
8830
8863
|
|
8831
8864
|
// layout/sidebar/Sidebar.tsx
|
8832
|
-
var
|
8865
|
+
var React73 = __toESM(require("react"));
|
8833
8866
|
var AccordionPrimitive6 = __toESM(require("@radix-ui/react-accordion"));
|
8834
8867
|
var Accordion2 = AccordionPrimitive6.Root;
|
8835
8868
|
var triggerStyles = "hawa-flex hawa-flex-1 hawa-items-center hawa-duration-75 hawa-select-none hawa-cursor-pointer hawa-rounded hawa-justify-between hawa-p-2 hawa-px-3 hawa-font-medium hawa-transition-all [&[data-state=open]>svg]:hawa--rotate-90";
|
8836
|
-
var AccordionItem2 =
|
8869
|
+
var AccordionItem2 = React73.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Item, { ref, className: cn(className), ...props }));
|
8837
8870
|
AccordionItem2.displayName = "AccordionItem";
|
8838
|
-
var AccordionTrigger2 =
|
8871
|
+
var AccordionTrigger2 = React73.forwardRef(({ className, showArrow, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(AccordionPrimitive6.Header, { className: "flex" }, /* @__PURE__ */ React73.createElement(
|
8839
8872
|
AccordionPrimitive6.Trigger,
|
8840
8873
|
{
|
8841
8874
|
ref,
|
@@ -8843,7 +8876,7 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
|
|
8843
8876
|
...props
|
8844
8877
|
},
|
8845
8878
|
children,
|
8846
|
-
showArrow && /* @__PURE__ */
|
8879
|
+
showArrow && /* @__PURE__ */ React73.createElement(
|
8847
8880
|
"svg",
|
8848
8881
|
{
|
8849
8882
|
"aria-label": "Chevron Right Icon",
|
@@ -8854,11 +8887,11 @@ var AccordionTrigger2 = React74.forwardRef(({ className, showArrow, children, ..
|
|
8854
8887
|
width: "1em",
|
8855
8888
|
className: "hawa-icon hawa-shrink-0 hawa-rotate-90 hawa-transition-transform hawa-duration-200"
|
8856
8889
|
},
|
8857
|
-
/* @__PURE__ */
|
8890
|
+
/* @__PURE__ */ React73.createElement("path", { d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })
|
8858
8891
|
)
|
8859
8892
|
)));
|
8860
8893
|
AccordionTrigger2.displayName = AccordionPrimitive6.Trigger.displayName;
|
8861
|
-
var AccordionContent2 =
|
8894
|
+
var AccordionContent2 = React73.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React73.createElement(
|
8862
8895
|
AccordionPrimitive6.Content,
|
8863
8896
|
{
|
8864
8897
|
ref,
|
@@ -8868,7 +8901,7 @@ var AccordionContent2 = React74.forwardRef(({ className, children, ...props }, r
|
|
8868
8901
|
),
|
8869
8902
|
...props
|
8870
8903
|
},
|
8871
|
-
/* @__PURE__ */
|
8904
|
+
/* @__PURE__ */ React73.createElement("div", null, children)
|
8872
8905
|
));
|
8873
8906
|
AccordionContent2.displayName = AccordionPrimitive6.Content.displayName;
|
8874
8907
|
var SidebarGroup = ({
|
@@ -8884,7 +8917,7 @@ var SidebarGroup = ({
|
|
8884
8917
|
...props
|
8885
8918
|
}) => {
|
8886
8919
|
const LinkComponent = props.LinkComponent || "a";
|
8887
|
-
return /* @__PURE__ */
|
8920
|
+
return /* @__PURE__ */ React73.createElement("div", { className: "hawa-m-2" }, title && /* @__PURE__ */ React73.createElement("h3", { className: "hawa-mb-1 hawa-font-bold" }, title), /* @__PURE__ */ React73.createElement("ul", { className: "hawa-flex hawa-flex-col hawa-gap-2" }, /* @__PURE__ */ React73.createElement(
|
8888
8921
|
Accordion2,
|
8889
8922
|
{
|
8890
8923
|
value: openedItem,
|
@@ -8895,7 +8928,7 @@ var SidebarGroup = ({
|
|
8895
8928
|
collapsible: true,
|
8896
8929
|
className: "hawa-flex hawa-flex-col hawa-gap-1"
|
8897
8930
|
},
|
8898
|
-
items.map((item, idx) => /* @__PURE__ */
|
8931
|
+
items.map((item, idx) => /* @__PURE__ */ React73.createElement(
|
8899
8932
|
SidebarItem,
|
8900
8933
|
{
|
8901
8934
|
isOpen,
|
@@ -8923,14 +8956,14 @@ var SidebarItem = ({
|
|
8923
8956
|
return props.selectedItem === value ? "hawa-bg-primary/90 hawa-text-primary-foreground hawa-cursor-default" : "hover:hawa-bg-primary/10";
|
8924
8957
|
};
|
8925
8958
|
if (item.subitems) {
|
8926
|
-
return /* @__PURE__ */
|
8959
|
+
return /* @__PURE__ */ React73.createElement(
|
8927
8960
|
AccordionItem2,
|
8928
8961
|
{
|
8929
8962
|
value: item.value,
|
8930
8963
|
className: "hawa-overflow-x-clip ",
|
8931
8964
|
dir: direction
|
8932
8965
|
},
|
8933
|
-
/* @__PURE__ */
|
8966
|
+
/* @__PURE__ */ React73.createElement(
|
8934
8967
|
AccordionTrigger2,
|
8935
8968
|
{
|
8936
8969
|
className: cn(
|
@@ -8942,7 +8975,7 @@ var SidebarItem = ({
|
|
8942
8975
|
),
|
8943
8976
|
showArrow: isOpen
|
8944
8977
|
},
|
8945
|
-
/* @__PURE__ */
|
8978
|
+
/* @__PURE__ */ React73.createElement(
|
8946
8979
|
"div",
|
8947
8980
|
{
|
8948
8981
|
className: cn(
|
@@ -8950,7 +8983,7 @@ var SidebarItem = ({
|
|
8950
8983
|
)
|
8951
8984
|
},
|
8952
8985
|
item.icon && item.icon,
|
8953
|
-
/* @__PURE__ */
|
8986
|
+
/* @__PURE__ */ React73.createElement(
|
8954
8987
|
"span",
|
8955
8988
|
{
|
8956
8989
|
className: cn(
|
@@ -8962,14 +8995,14 @@ var SidebarItem = ({
|
|
8962
8995
|
)
|
8963
8996
|
)
|
8964
8997
|
),
|
8965
|
-
item.subitems && /* @__PURE__ */
|
8998
|
+
item.subitems && /* @__PURE__ */ React73.createElement(AccordionContent2, { className: "hawa-mt-1 hawa-h-full hawa-rounded" }, /* @__PURE__ */ React73.createElement(
|
8966
8999
|
"div",
|
8967
9000
|
{
|
8968
9001
|
className: cn(
|
8969
9002
|
"hawa-flex hawa-h-full hawa-flex-col hawa-gap-2 hawa-bg-foreground/5 hawa-p-1"
|
8970
9003
|
)
|
8971
9004
|
},
|
8972
|
-
item.subitems.map((subitem, idx) => /* @__PURE__ */
|
9005
|
+
item.subitems.map((subitem, idx) => /* @__PURE__ */ React73.createElement(
|
8973
9006
|
LinkComponent,
|
8974
9007
|
{
|
8975
9008
|
href: subitem.slug,
|
@@ -9000,7 +9033,7 @@ var SidebarItem = ({
|
|
9000
9033
|
))
|
9001
9034
|
);
|
9002
9035
|
} else {
|
9003
|
-
return /* @__PURE__ */
|
9036
|
+
return /* @__PURE__ */ React73.createElement(
|
9004
9037
|
LinkComponent,
|
9005
9038
|
{
|
9006
9039
|
href: item.slug,
|
@@ -9024,7 +9057,7 @@ var SidebarItem = ({
|
|
9024
9057
|
"hawa-overflow-x-clip "
|
9025
9058
|
)
|
9026
9059
|
},
|
9027
|
-
/* @__PURE__ */
|
9060
|
+
/* @__PURE__ */ React73.createElement("div", { className: "hawa-flex hawa-flex-row hawa-items-center hawa-gap-2" }, item.icon && item.icon, /* @__PURE__ */ React73.createElement(
|
9028
9061
|
"span",
|
9029
9062
|
{
|
9030
9063
|
className: cn(
|
@@ -9034,7 +9067,7 @@ var SidebarItem = ({
|
|
9034
9067
|
},
|
9035
9068
|
item.label,
|
9036
9069
|
" ",
|
9037
|
-
item.badge && /* @__PURE__ */
|
9070
|
+
item.badge && /* @__PURE__ */ React73.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
|
9038
9071
|
))
|
9039
9072
|
);
|
9040
9073
|
}
|
@@ -9203,6 +9236,15 @@ var AppLayout = ({
|
|
9203
9236
|
);
|
9204
9237
|
const [openSideMenu, setOpenSideMenu] = (0, import_react57.useState)(true);
|
9205
9238
|
const [keepDrawerOpen, setKeepDrawerOpen] = (0, import_react57.useState)(keepOpen);
|
9239
|
+
const handleClickOutside = () => {
|
9240
|
+
if (typeof window !== "undefined") {
|
9241
|
+
if (window.innerWidth < 600) {
|
9242
|
+
setKeepDrawerOpen(false);
|
9243
|
+
setOpenSideMenu(false);
|
9244
|
+
}
|
9245
|
+
}
|
9246
|
+
};
|
9247
|
+
const ref = useClickOutside(handleClickOutside);
|
9206
9248
|
(0, import_react57.useEffect)(() => {
|
9207
9249
|
if (typeof window !== "undefined") {
|
9208
9250
|
const resize = () => {
|
@@ -9221,25 +9263,14 @@ var AppLayout = ({
|
|
9221
9263
|
(0, import_react57.useEffect)(() => {
|
9222
9264
|
setKeepDrawerOpen(keepOpen);
|
9223
9265
|
}, [setKeepOpen]);
|
9224
|
-
const handleClickOutside = () => {
|
9225
|
-
if (typeof window !== "undefined") {
|
9226
|
-
if (keepDrawerOpen)
|
9227
|
-
return;
|
9228
|
-
if (window.innerWidth < 600) {
|
9229
|
-
setKeepDrawerOpen(false);
|
9230
|
-
setOpenSideMenu(false);
|
9231
|
-
}
|
9232
|
-
}
|
9233
|
-
};
|
9234
|
-
const ref = useOutsideClick_default(handleClickOutside);
|
9235
|
-
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9236
9266
|
(0, import_react57.useEffect)(() => {
|
9237
9267
|
if (size > 600) {
|
9238
9268
|
setOpenSideMenu(keepDrawerOpen);
|
9239
9269
|
} else {
|
9240
9270
|
setOpenSideMenu(false);
|
9241
9271
|
}
|
9242
|
-
}, [size]);
|
9272
|
+
}, [size, keepDrawerOpen]);
|
9273
|
+
const drawerSizeCondition = size > 600 ? drawerSizeStyle[keepDrawerOpen ? "opened" : "closed"][drawerSize] : 0;
|
9243
9274
|
return /* @__PURE__ */ import_react57.default.createElement("div", { className: "hawa-fixed hawa-start-0" }, props.topBar && /* @__PURE__ */ import_react57.default.createElement(
|
9244
9275
|
"div",
|
9245
9276
|
{
|
@@ -9286,14 +9317,12 @@ var AppLayout = ({
|
|
9286
9317
|
LinkComponent: MenuLinkComponent,
|
9287
9318
|
triggerClassname: "hawa-mx-2",
|
9288
9319
|
align: "end",
|
9289
|
-
alignOffset: 8,
|
9290
9320
|
side: "bottom",
|
9291
|
-
sideOffset:
|
9321
|
+
sideOffset: 10,
|
9292
9322
|
width: profileMenuWidth,
|
9293
9323
|
direction,
|
9294
9324
|
items: props.profileMenuItems || [],
|
9295
9325
|
onItemSelect: (e) => console.log("selecting item ", e),
|
9296
|
-
triggerProps: { asChild: true },
|
9297
9326
|
trigger: /* @__PURE__ */ import_react57.default.createElement(
|
9298
9327
|
"div",
|
9299
9328
|
{
|
@@ -9324,16 +9353,15 @@ var AppLayout = ({
|
|
9324
9353
|
"div",
|
9325
9354
|
{
|
9326
9355
|
className: cn(
|
9327
|
-
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-
|
9356
|
+
"hawa-fixed hawa-z-0 hawa-flex hawa-flex-col hawa-justify-between hawa-overflow-x-clip hawa-transition-all hawa-top-0 hawa-h-[calc(100dvh)] hawa-bg-red-500",
|
9357
|
+
// 'hawa-bg-primary-foreground',
|
9328
9358
|
isRTL ? "hawa-right-0" : "hawa-left-0",
|
9329
9359
|
bordered ? direction === "rtl" ? "hawa-border-s-[1px]" : "hawa-border-e-[1px]" : ""
|
9330
9360
|
),
|
9331
9361
|
style: {
|
9332
9362
|
width: size > 600 ? openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : `${drawerSizeStyle["closed"][drawerSize]}px` : openSideMenu ? `${drawerSizeStyle["opened"][drawerSize]}px` : "0px"
|
9333
9363
|
},
|
9334
|
-
onMouseEnter: () =>
|
9335
|
-
setOpenSideMenu(true);
|
9336
|
-
},
|
9364
|
+
onMouseEnter: () => setOpenSideMenu(true),
|
9337
9365
|
onMouseLeave: () => {
|
9338
9366
|
if (size > 600) {
|
9339
9367
|
if (keepDrawerOpen) {
|
@@ -9366,23 +9394,23 @@ var AppLayout = ({
|
|
9366
9394
|
!props.header && /* @__PURE__ */ import_react57.default.createElement(
|
9367
9395
|
"img",
|
9368
9396
|
{
|
9397
|
+
src: props.logoLink,
|
9369
9398
|
className: cn(
|
9370
9399
|
"hawa-h-9 hawa-opacity-0 hawa-transition-all",
|
9371
9400
|
!openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
9372
9401
|
classNames == null ? void 0 : classNames.fullLogoImg
|
9373
|
-
)
|
9374
|
-
src: props.logoLink
|
9402
|
+
)
|
9375
9403
|
}
|
9376
9404
|
),
|
9377
9405
|
size > 600 ? /* @__PURE__ */ import_react57.default.createElement(
|
9378
9406
|
"img",
|
9379
9407
|
{
|
9408
|
+
src: props.logoSymbol,
|
9380
9409
|
className: cn(
|
9381
9410
|
"hawa-fixed hawa-h-9 hawa-transition-all hawa-start-2.5 hawa-top-2.5",
|
9382
9411
|
openSideMenu ? "hawa-invisible hawa-opacity-0" : "hawa-visible hawa-opacity-100",
|
9383
9412
|
classNames == null ? void 0 : classNames.symbolLogoImg
|
9384
|
-
)
|
9385
|
-
src: props.logoSymbol
|
9413
|
+
)
|
9386
9414
|
}
|
9387
9415
|
) : null
|
9388
9416
|
),
|
@@ -9401,22 +9429,14 @@ var AppLayout = ({
|
|
9401
9429
|
SidebarGroup,
|
9402
9430
|
{
|
9403
9431
|
direction,
|
9404
|
-
onItemClick: (values) => {
|
9405
|
-
if (clickedItem) {
|
9406
|
-
clickedItem(values);
|
9407
|
-
}
|
9408
|
-
},
|
9409
|
-
onSubItemClick: (values) => {
|
9410
|
-
if (clickedItem) {
|
9411
|
-
clickedItem(values);
|
9412
|
-
}
|
9413
|
-
},
|
9414
9432
|
selectedItem: currentPage,
|
9415
9433
|
openedItem: openedSidebarItem,
|
9416
9434
|
setOpenedItem: (e) => setOpenedSidebarItem(e),
|
9417
9435
|
isOpen: keepDrawerOpen || openSideMenu,
|
9418
9436
|
items: props.drawerItems,
|
9419
|
-
LinkComponent: DrawerLinkComponent
|
9437
|
+
LinkComponent: DrawerLinkComponent,
|
9438
|
+
onItemClick: (values) => clickedItem && clickedItem(values),
|
9439
|
+
onSubItemClick: (values) => clickedItem && clickedItem(values)
|
9420
9440
|
}
|
9421
9441
|
)
|
9422
9442
|
),
|
@@ -9494,27 +9514,6 @@ var AppLayout = ({
|
|
9494
9514
|
props.children
|
9495
9515
|
));
|
9496
9516
|
};
|
9497
|
-
var MenuIcon = () => /* @__PURE__ */ import_react57.default.createElement(
|
9498
|
-
"svg",
|
9499
|
-
{
|
9500
|
-
"aria-label": "Menu Button",
|
9501
|
-
stroke: "currentColor",
|
9502
|
-
fill: "currentColor",
|
9503
|
-
strokeWidth: 0,
|
9504
|
-
viewBox: "0 0 20 20",
|
9505
|
-
"aria-hidden": "true",
|
9506
|
-
height: "1.6em",
|
9507
|
-
width: "1.6em"
|
9508
|
-
},
|
9509
|
-
/* @__PURE__ */ import_react57.default.createElement(
|
9510
|
-
"path",
|
9511
|
-
{
|
9512
|
-
fillRule: "evenodd",
|
9513
|
-
clipRule: "evenodd",
|
9514
|
-
d: "M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
9515
|
-
}
|
9516
|
-
)
|
9517
|
-
);
|
9518
9517
|
|
9519
9518
|
// layout/appTopbar/AppTopbar.tsx
|
9520
9519
|
var import_react58 = __toESM(require("react"));
|
@@ -9622,14 +9621,14 @@ var AppTopbar = ({ ...props }) => {
|
|
9622
9621
|
};
|
9623
9622
|
|
9624
9623
|
// layout/appMenubar/AppMenubar.tsx
|
9625
|
-
var
|
9624
|
+
var React78 = __toESM(require("react"));
|
9626
9625
|
var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"));
|
9627
9626
|
var MenubarMenu = MenubarPrimitive.Menu;
|
9628
9627
|
var MenubarGroup = MenubarPrimitive.Group;
|
9629
9628
|
var MenubarPortal = MenubarPrimitive.Portal;
|
9630
9629
|
var MenubarSub = MenubarPrimitive.Sub;
|
9631
9630
|
var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
|
9632
|
-
var Menubar =
|
9631
|
+
var Menubar = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9633
9632
|
MenubarPrimitive.Root,
|
9634
9633
|
{
|
9635
9634
|
ref,
|
@@ -9641,7 +9640,7 @@ var Menubar = React79.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
9641
9640
|
}
|
9642
9641
|
));
|
9643
9642
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
9644
|
-
var MenubarTrigger =
|
9643
|
+
var MenubarTrigger = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9645
9644
|
MenubarPrimitive.Trigger,
|
9646
9645
|
{
|
9647
9646
|
ref,
|
@@ -9653,7 +9652,7 @@ var MenubarTrigger = React79.forwardRef(({ className, ...props }, ref) => /* @__
|
|
9653
9652
|
}
|
9654
9653
|
));
|
9655
9654
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
9656
|
-
var MenubarSubTrigger =
|
9655
|
+
var MenubarSubTrigger = React78.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9657
9656
|
MenubarPrimitive.SubTrigger,
|
9658
9657
|
{
|
9659
9658
|
ref,
|
@@ -9665,7 +9664,7 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
|
|
9665
9664
|
...props
|
9666
9665
|
},
|
9667
9666
|
children,
|
9668
|
-
/* @__PURE__ */
|
9667
|
+
/* @__PURE__ */ React78.createElement(
|
9669
9668
|
"svg",
|
9670
9669
|
{
|
9671
9670
|
"aria-label": "Chevron Right Icon",
|
@@ -9680,11 +9679,11 @@ var MenubarSubTrigger = React79.forwardRef(({ className, inset, children, ...pro
|
|
9680
9679
|
strokeLinejoin: "round",
|
9681
9680
|
className: "hawa-icon hawa-ml-auto"
|
9682
9681
|
},
|
9683
|
-
/* @__PURE__ */
|
9682
|
+
/* @__PURE__ */ React78.createElement("path", { d: "m9 18 6-6-6-6" })
|
9684
9683
|
)
|
9685
9684
|
));
|
9686
9685
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
9687
|
-
var MenubarSubContent =
|
9686
|
+
var MenubarSubContent = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9688
9687
|
MenubarPrimitive.SubContent,
|
9689
9688
|
{
|
9690
9689
|
ref,
|
@@ -9696,8 +9695,8 @@ var MenubarSubContent = React79.forwardRef(({ className, ...props }, ref) => /*
|
|
9696
9695
|
}
|
9697
9696
|
));
|
9698
9697
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
9699
|
-
var MenubarContent =
|
9700
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
9698
|
+
var MenubarContent = React78.forwardRef(
|
9699
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ React78.createElement(MenubarPrimitive.Portal, null, /* @__PURE__ */ React78.createElement(
|
9701
9700
|
MenubarPrimitive.Content,
|
9702
9701
|
{
|
9703
9702
|
ref,
|
@@ -9713,7 +9712,7 @@ var MenubarContent = React79.forwardRef(
|
|
9713
9712
|
))
|
9714
9713
|
);
|
9715
9714
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
9716
|
-
var MenubarItem =
|
9715
|
+
var MenubarItem = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9717
9716
|
MenubarPrimitive.Item,
|
9718
9717
|
{
|
9719
9718
|
ref,
|
@@ -9726,7 +9725,7 @@ var MenubarItem = React79.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
9726
9725
|
}
|
9727
9726
|
));
|
9728
9727
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
9729
|
-
var MenubarCheckboxItem =
|
9728
|
+
var MenubarCheckboxItem = React78.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9730
9729
|
MenubarPrimitive.CheckboxItem,
|
9731
9730
|
{
|
9732
9731
|
ref,
|
@@ -9737,7 +9736,7 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
|
|
9737
9736
|
checked,
|
9738
9737
|
...props
|
9739
9738
|
},
|
9740
|
-
/* @__PURE__ */
|
9739
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9741
9740
|
"svg",
|
9742
9741
|
{
|
9743
9742
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9751,12 +9750,12 @@ var MenubarCheckboxItem = React79.forwardRef(({ className, children, checked, ..
|
|
9751
9750
|
strokeLinejoin: "round",
|
9752
9751
|
className: "hawa-icon"
|
9753
9752
|
},
|
9754
|
-
/* @__PURE__ */
|
9753
|
+
/* @__PURE__ */ React78.createElement("path", { d: "M20 6 9 17l-5-5" })
|
9755
9754
|
))),
|
9756
9755
|
children
|
9757
9756
|
));
|
9758
9757
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
9759
|
-
var MenubarRadioItem =
|
9758
|
+
var MenubarRadioItem = React78.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9760
9759
|
MenubarPrimitive.RadioItem,
|
9761
9760
|
{
|
9762
9761
|
ref,
|
@@ -9766,7 +9765,7 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
|
|
9766
9765
|
),
|
9767
9766
|
...props
|
9768
9767
|
},
|
9769
|
-
/* @__PURE__ */
|
9768
|
+
/* @__PURE__ */ React78.createElement("span", { className: "hawa-absolute hawa-left-2 hawa-flex hawa-h-3.5 hawa-w-3.5 hawa-items-center hawa-justify-center" }, /* @__PURE__ */ React78.createElement(MenubarPrimitive.ItemIndicator, null, /* @__PURE__ */ React78.createElement(
|
9770
9769
|
"svg",
|
9771
9770
|
{
|
9772
9771
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -9780,12 +9779,12 @@ var MenubarRadioItem = React79.forwardRef(({ className, children, ...props }, re
|
|
9780
9779
|
strokeLinejoin: "round",
|
9781
9780
|
className: "hawa-h-2 hawa-w-2 hawa-fill-current"
|
9782
9781
|
},
|
9783
|
-
/* @__PURE__ */
|
9782
|
+
/* @__PURE__ */ React78.createElement("circle", { cx: "12", cy: "12", r: "10" })
|
9784
9783
|
))),
|
9785
9784
|
children
|
9786
9785
|
));
|
9787
9786
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
9788
|
-
var MenubarLabel =
|
9787
|
+
var MenubarLabel = React78.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9789
9788
|
MenubarPrimitive.Label,
|
9790
9789
|
{
|
9791
9790
|
ref,
|
@@ -9798,7 +9797,7 @@ var MenubarLabel = React79.forwardRef(({ className, inset, ...props }, ref) => /
|
|
9798
9797
|
}
|
9799
9798
|
));
|
9800
9799
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
9801
|
-
var MenubarSeparator =
|
9800
|
+
var MenubarSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React78.createElement(
|
9802
9801
|
MenubarPrimitive.Separator,
|
9803
9802
|
{
|
9804
9803
|
ref,
|
@@ -9811,7 +9810,7 @@ var MenubarShortcut = ({
|
|
9811
9810
|
className,
|
9812
9811
|
...props
|
9813
9812
|
}) => {
|
9814
|
-
return /* @__PURE__ */
|
9813
|
+
return /* @__PURE__ */ React78.createElement(
|
9815
9814
|
"span",
|
9816
9815
|
{
|
9817
9816
|
className: cn(
|
@@ -13054,6 +13053,7 @@ var Usage = (props) => {
|
|
13054
13053
|
reducer,
|
13055
13054
|
toast,
|
13056
13055
|
useBreakpoint,
|
13056
|
+
useClickOutside,
|
13057
13057
|
useClipboard,
|
13058
13058
|
useDialogCarousel,
|
13059
13059
|
useFocusWithin,
|