@sikka/hawa 0.35.5-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 +177 -170
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +198 -191
- 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 +177 -177
- package/dist/index.mjs +723 -724
- package/dist/layout/index.js +285 -278
- package/dist/layout/index.mjs +26 -57
- 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-545D35G6.mjs +0 -54
package/dist/elements/index.js
CHANGED
@@ -4209,7 +4209,7 @@ var SortButton = (props) => {
|
|
4209
4209
|
};
|
4210
4210
|
|
4211
4211
|
// elements/tabs/Tabs.tsx
|
4212
|
-
var
|
4212
|
+
var React41 = __toESM(require("react"));
|
4213
4213
|
|
4214
4214
|
// hooks/useIsomorphicEffect.ts
|
4215
4215
|
var import_react16 = require("react");
|
@@ -4315,15 +4315,15 @@ var useMeasureDirty = (ref) => {
|
|
4315
4315
|
return rect;
|
4316
4316
|
};
|
4317
4317
|
|
4318
|
-
// hooks/
|
4319
|
-
var import_react31 =
|
4318
|
+
// hooks/useClickOutside.ts
|
4319
|
+
var import_react31 = require("react");
|
4320
4320
|
|
4321
4321
|
// elements/tabs/Tabs.tsx
|
4322
4322
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
4323
4323
|
var import_tailwind_variants = require("tailwind-variants");
|
4324
4324
|
|
4325
4325
|
// elements/floatBox/FloatBox.tsx
|
4326
|
-
var
|
4326
|
+
var React40 = __toESM(require("react"));
|
4327
4327
|
var FloatBox = ({
|
4328
4328
|
className,
|
4329
4329
|
open,
|
@@ -4361,7 +4361,7 @@ var FloatBox = ({
|
|
4361
4361
|
right: "hawa-arrow-default-left",
|
4362
4362
|
left: "hawa-arrow-default-right"
|
4363
4363
|
};
|
4364
|
-
return /* @__PURE__ */
|
4364
|
+
return /* @__PURE__ */ React40.createElement(
|
4365
4365
|
"div",
|
4366
4366
|
{
|
4367
4367
|
className: cn(
|
@@ -4372,8 +4372,8 @@ var FloatBox = ({
|
|
4372
4372
|
"data-side": side,
|
4373
4373
|
"data-floatbox-state": open ? "open" : "closed"
|
4374
4374
|
},
|
4375
|
-
withArrow && /* @__PURE__ */
|
4376
|
-
/* @__PURE__ */
|
4375
|
+
withArrow && /* @__PURE__ */ React40.createElement("div", { className: cn(arrowDirection[side]) }),
|
4376
|
+
/* @__PURE__ */ React40.createElement("span", null, props.children)
|
4377
4377
|
);
|
4378
4378
|
};
|
4379
4379
|
|
@@ -4436,8 +4436,8 @@ var tabsTriggerVariant = (0, import_tailwind_variants.tv)({
|
|
4436
4436
|
],
|
4437
4437
|
defaultVariants: { variant: "default", orientation: "horizontal" }
|
4438
4438
|
});
|
4439
|
-
var TabsContext =
|
4440
|
-
var Tabs =
|
4439
|
+
var TabsContext = React41.createContext({ orientation: "horizontal", variant: "default" });
|
4440
|
+
var Tabs = React41.forwardRef(({ className, orientation, variant = "default", ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4441
4441
|
TabsPrimitive.Root,
|
4442
4442
|
{
|
4443
4443
|
ref,
|
@@ -4448,11 +4448,11 @@ var Tabs = React42.forwardRef(({ className, orientation, variant = "default", ..
|
|
4448
4448
|
),
|
4449
4449
|
...props
|
4450
4450
|
},
|
4451
|
-
/* @__PURE__ */
|
4451
|
+
/* @__PURE__ */ React41.createElement(TabsContext.Provider, { value: { orientation, variant } }, props.children)
|
4452
4452
|
));
|
4453
|
-
var TabsList =
|
4454
|
-
const { orientation, variant } =
|
4455
|
-
return /* @__PURE__ */
|
4453
|
+
var TabsList = React41.forwardRef(({ className, ...props }, ref) => {
|
4454
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4455
|
+
return /* @__PURE__ */ React41.createElement(
|
4456
4456
|
TabsPrimitive.List,
|
4457
4457
|
{
|
4458
4458
|
ref,
|
@@ -4465,11 +4465,11 @@ var TabsList = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4465
4465
|
}
|
4466
4466
|
);
|
4467
4467
|
});
|
4468
|
-
var TabsTrigger =
|
4469
|
-
const { orientation, variant } =
|
4470
|
-
const tabTriggerRef =
|
4468
|
+
var TabsTrigger = React41.forwardRef(({ className, chipProps, ...props }, ref) => {
|
4469
|
+
const { orientation, variant } = React41.useContext(TabsContext);
|
4470
|
+
const tabTriggerRef = React41.useRef(null);
|
4471
4471
|
const { width } = useMeasureDirty(tabTriggerRef);
|
4472
|
-
return /* @__PURE__ */
|
4472
|
+
return /* @__PURE__ */ React41.createElement(
|
4473
4473
|
TabsPrimitive.Trigger,
|
4474
4474
|
{
|
4475
4475
|
ref: tabTriggerRef,
|
@@ -4481,8 +4481,8 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4481
4481
|
...props
|
4482
4482
|
},
|
4483
4483
|
props.children,
|
4484
|
-
chipProps && /* @__PURE__ */
|
4485
|
-
/* @__PURE__ */
|
4484
|
+
chipProps && /* @__PURE__ */ React41.createElement(Chip, { ...chipProps }),
|
4485
|
+
/* @__PURE__ */ React41.createElement(
|
4486
4486
|
FloatBox,
|
4487
4487
|
{
|
4488
4488
|
withArrow: true,
|
@@ -4495,7 +4495,7 @@ var TabsTrigger = React42.forwardRef(({ className, chipProps, ...props }, ref) =
|
|
4495
4495
|
)
|
4496
4496
|
);
|
4497
4497
|
});
|
4498
|
-
var TabsContent =
|
4498
|
+
var TabsContent = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
4499
4499
|
TabsPrimitive.Content,
|
4500
4500
|
{
|
4501
4501
|
ref,
|
@@ -4700,15 +4700,15 @@ var Select = ({
|
|
4700
4700
|
};
|
4701
4701
|
|
4702
4702
|
// elements/switch/Switch.tsx
|
4703
|
-
var
|
4703
|
+
var React43 = __toESM(require("react"));
|
4704
4704
|
var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
|
4705
|
-
var Switch =
|
4705
|
+
var Switch = React43.forwardRef(
|
4706
4706
|
({ className, size = "default", roundedness = "inherit", label, ...props }, ref) => {
|
4707
|
-
const [parentDirection, setParentDirection] =
|
4707
|
+
const [parentDirection, setParentDirection] = React43.useState(
|
4708
4708
|
null
|
4709
4709
|
);
|
4710
|
-
const parentRef =
|
4711
|
-
|
4710
|
+
const parentRef = React43.useRef(null);
|
4711
|
+
React43.useEffect(() => {
|
4712
4712
|
var _a;
|
4713
4713
|
const parentNode = (_a = parentRef.current) == null ? void 0 : _a.parentNode;
|
4714
4714
|
if (parentNode) {
|
@@ -4736,13 +4736,13 @@ var Switch = React44.forwardRef(
|
|
4736
4736
|
full: "hawa-rounded-full",
|
4737
4737
|
inherit: "hawa-rounded-inner"
|
4738
4738
|
};
|
4739
|
-
return /* @__PURE__ */
|
4739
|
+
return /* @__PURE__ */ React43.createElement(
|
4740
4740
|
"div",
|
4741
4741
|
{
|
4742
4742
|
className: "hawa-flex hawa-flex-row hawa-items-center",
|
4743
4743
|
ref: parentRef
|
4744
4744
|
},
|
4745
|
-
/* @__PURE__ */
|
4745
|
+
/* @__PURE__ */ React43.createElement(
|
4746
4746
|
SwitchPrimitives.Root,
|
4747
4747
|
{
|
4748
4748
|
className: cn(
|
@@ -4756,7 +4756,7 @@ var Switch = React44.forwardRef(
|
|
4756
4756
|
...props,
|
4757
4757
|
ref
|
4758
4758
|
},
|
4759
|
-
/* @__PURE__ */
|
4759
|
+
/* @__PURE__ */ React43.createElement(
|
4760
4760
|
SwitchPrimitives.Thumb,
|
4761
4761
|
{
|
4762
4762
|
className: cn(
|
@@ -4770,14 +4770,14 @@ var Switch = React44.forwardRef(
|
|
4770
4770
|
}
|
4771
4771
|
)
|
4772
4772
|
),
|
4773
|
-
label && /* @__PURE__ */
|
4773
|
+
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)
|
4774
4774
|
);
|
4775
4775
|
}
|
4776
4776
|
);
|
4777
4777
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
4778
4778
|
|
4779
4779
|
// elements/checkbox/Checkbox.tsx
|
4780
|
-
var
|
4780
|
+
var React44 = __toESM(require("react"));
|
4781
4781
|
var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
|
4782
4782
|
var Checkbox = ({
|
4783
4783
|
id,
|
@@ -4797,7 +4797,7 @@ var Checkbox = ({
|
|
4797
4797
|
lg: 0.9,
|
4798
4798
|
xl: 1
|
4799
4799
|
};
|
4800
|
-
return /* @__PURE__ */
|
4800
|
+
return /* @__PURE__ */ React44.createElement(
|
4801
4801
|
"div",
|
4802
4802
|
{
|
4803
4803
|
className: cn(
|
@@ -4805,7 +4805,7 @@ var Checkbox = ({
|
|
4805
4805
|
size === "default" ? "hawa-items-top" : "hawa-items-center"
|
4806
4806
|
)
|
4807
4807
|
},
|
4808
|
-
/* @__PURE__ */
|
4808
|
+
/* @__PURE__ */ React44.createElement(
|
4809
4809
|
CheckboxElement,
|
4810
4810
|
{
|
4811
4811
|
...props,
|
@@ -4815,7 +4815,7 @@ var Checkbox = ({
|
|
4815
4815
|
id
|
4816
4816
|
}
|
4817
4817
|
),
|
4818
|
-
(label || helperText) && /* @__PURE__ */
|
4818
|
+
(label || helperText) && /* @__PURE__ */ React44.createElement("div", { className: "hawa-grid hawa-gap-1.5" }, label && /* @__PURE__ */ React44.createElement(
|
4819
4819
|
"label",
|
4820
4820
|
{
|
4821
4821
|
htmlFor: id,
|
@@ -4829,7 +4829,7 @@ var Checkbox = ({
|
|
4829
4829
|
}
|
4830
4830
|
},
|
4831
4831
|
label
|
4832
|
-
), sublabel && /* @__PURE__ */
|
4832
|
+
), sublabel && /* @__PURE__ */ React44.createElement(
|
4833
4833
|
"label",
|
4834
4834
|
{
|
4835
4835
|
htmlFor: id,
|
@@ -4839,7 +4839,7 @@ var Checkbox = ({
|
|
4839
4839
|
)
|
4840
4840
|
},
|
4841
4841
|
sublabel
|
4842
|
-
), helperText && !disabled && /* @__PURE__ */
|
4842
|
+
), helperText && !disabled && /* @__PURE__ */ React44.createElement(
|
4843
4843
|
"label",
|
4844
4844
|
{
|
4845
4845
|
htmlFor: id,
|
@@ -4852,7 +4852,7 @@ var Checkbox = ({
|
|
4852
4852
|
))
|
4853
4853
|
);
|
4854
4854
|
};
|
4855
|
-
var CheckboxElement =
|
4855
|
+
var CheckboxElement = React44.forwardRef(({ radius = "inherit", size = "default", className, ...props }, ref) => {
|
4856
4856
|
let checkboxRadius = {
|
4857
4857
|
none: "hawa-rounded-none",
|
4858
4858
|
inherit: "hawa-rounded-sm",
|
@@ -4874,7 +4874,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4874
4874
|
lg: "1em",
|
4875
4875
|
xl: "1.25em"
|
4876
4876
|
};
|
4877
|
-
return /* @__PURE__ */
|
4877
|
+
return /* @__PURE__ */ React44.createElement(
|
4878
4878
|
CheckboxPrimitive.Root,
|
4879
4879
|
{
|
4880
4880
|
ref,
|
@@ -4886,14 +4886,14 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4886
4886
|
),
|
4887
4887
|
...props
|
4888
4888
|
},
|
4889
|
-
/* @__PURE__ */
|
4889
|
+
/* @__PURE__ */ React44.createElement(
|
4890
4890
|
CheckboxPrimitive.Indicator,
|
4891
4891
|
{
|
4892
4892
|
className: cn(
|
4893
4893
|
"hawa-flex hawa-items-center hawa-justify-center hawa-text-current"
|
4894
4894
|
)
|
4895
4895
|
},
|
4896
|
-
/* @__PURE__ */
|
4896
|
+
/* @__PURE__ */ React44.createElement(
|
4897
4897
|
"svg",
|
4898
4898
|
{
|
4899
4899
|
"aria-label": "Check Mark",
|
@@ -4904,7 +4904,7 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4904
4904
|
height: checkboxIndicatorSizes[size],
|
4905
4905
|
width: checkboxIndicatorSizes[size]
|
4906
4906
|
},
|
4907
|
-
/* @__PURE__ */
|
4907
|
+
/* @__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" })
|
4908
4908
|
),
|
4909
4909
|
" "
|
4910
4910
|
)
|
@@ -4913,9 +4913,9 @@ var CheckboxElement = React45.forwardRef(({ radius = "inherit", size = "default"
|
|
4913
4913
|
CheckboxElement.displayName = CheckboxPrimitive.Root.displayName;
|
4914
4914
|
|
4915
4915
|
// elements/progress/Progress.tsx
|
4916
|
-
var
|
4916
|
+
var React45 = __toESM(require("react"));
|
4917
4917
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
4918
|
-
var Progress =
|
4918
|
+
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(
|
4919
4919
|
ProgressPrimitive.Root,
|
4920
4920
|
{
|
4921
4921
|
ref,
|
@@ -4925,7 +4925,7 @@ var Progress = React46.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
4925
4925
|
),
|
4926
4926
|
...props
|
4927
4927
|
},
|
4928
|
-
/* @__PURE__ */
|
4928
|
+
/* @__PURE__ */ React45.createElement(
|
4929
4929
|
ProgressPrimitive.Indicator,
|
4930
4930
|
{
|
4931
4931
|
className: "hawa-h-full hawa-w-full hawa-flex-1 hawa-bg-primary hawa-transition-all",
|
@@ -6941,21 +6941,21 @@ var StopPropagationWrapper = (props) => {
|
|
6941
6941
|
};
|
6942
6942
|
|
6943
6943
|
// elements/scrollArea/ScrollArea.tsx
|
6944
|
-
var
|
6944
|
+
var React52 = __toESM(require("react"));
|
6945
6945
|
var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
|
6946
|
-
var ScrollArea =
|
6946
|
+
var ScrollArea = React52.forwardRef(({ className, children, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6947
6947
|
ScrollAreaPrimitive.Root,
|
6948
6948
|
{
|
6949
6949
|
ref,
|
6950
6950
|
className: cn("hawa-relative hawa-overflow-hidden", className),
|
6951
6951
|
...props
|
6952
6952
|
},
|
6953
|
-
/* @__PURE__ */
|
6954
|
-
/* @__PURE__ */
|
6955
|
-
/* @__PURE__ */
|
6953
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Viewport, { className: "hawa-h-full hawa-w-full hawa-rounded-[inherit]" }, children),
|
6954
|
+
/* @__PURE__ */ React52.createElement(ScrollBar, { orientation }),
|
6955
|
+
/* @__PURE__ */ React52.createElement(ScrollAreaPrimitive.Corner, null)
|
6956
6956
|
));
|
6957
6957
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
6958
|
-
var ScrollBar =
|
6958
|
+
var ScrollBar = React52.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ React52.createElement(
|
6959
6959
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
6960
6960
|
{
|
6961
6961
|
ref,
|
@@ -6968,7 +6968,7 @@ var ScrollBar = React53.forwardRef(({ className, orientation = "vertical", ...pr
|
|
6968
6968
|
),
|
6969
6969
|
...props
|
6970
6970
|
},
|
6971
|
-
/* @__PURE__ */
|
6971
|
+
/* @__PURE__ */ React52.createElement(
|
6972
6972
|
ScrollAreaPrimitive.ScrollAreaThumb,
|
6973
6973
|
{
|
6974
6974
|
className: cn(
|
@@ -7496,9 +7496,9 @@ var PasswordInput = ({
|
|
7496
7496
|
};
|
7497
7497
|
|
7498
7498
|
// elements/slider/Slider.tsx
|
7499
|
-
var
|
7499
|
+
var React60 = __toESM(require("react"));
|
7500
7500
|
var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
|
7501
|
-
var Slider =
|
7501
|
+
var Slider = React60.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React60.createElement(
|
7502
7502
|
SliderPrimitive.Root,
|
7503
7503
|
{
|
7504
7504
|
ref,
|
@@ -7508,13 +7508,13 @@ var Slider = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
7508
7508
|
),
|
7509
7509
|
...props
|
7510
7510
|
},
|
7511
|
-
/* @__PURE__ */
|
7512
|
-
/* @__PURE__ */
|
7511
|
+
/* @__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" })),
|
7512
|
+
/* @__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" })
|
7513
7513
|
));
|
7514
7514
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
7515
7515
|
|
7516
7516
|
// elements/simpleTable/SimpleTable.tsx
|
7517
|
-
var
|
7517
|
+
var React61 = __toESM(require("react"));
|
7518
7518
|
var import_react_table2 = require("@tanstack/react-table");
|
7519
7519
|
var SimpleTable = ({
|
7520
7520
|
columns,
|
@@ -7529,7 +7529,7 @@ var SimpleTable = ({
|
|
7529
7529
|
columns,
|
7530
7530
|
getCoreRowModel: (0, import_react_table2.getCoreRowModel)()
|
7531
7531
|
});
|
7532
|
-
return /* @__PURE__ */
|
7532
|
+
return /* @__PURE__ */ React61.createElement(
|
7533
7533
|
"div",
|
7534
7534
|
{
|
7535
7535
|
className: cn(
|
@@ -7537,8 +7537,8 @@ var SimpleTable = ({
|
|
7537
7537
|
classNames
|
7538
7538
|
)
|
7539
7539
|
},
|
7540
|
-
props.isLoading ? /* @__PURE__ */
|
7541
|
-
return /* @__PURE__ */
|
7540
|
+
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) => {
|
7541
|
+
return /* @__PURE__ */ React61.createElement(
|
7542
7542
|
TableHead,
|
7543
7543
|
{
|
7544
7544
|
condensed: props.condensed,
|
@@ -7553,7 +7553,7 @@ var SimpleTable = ({
|
|
7553
7553
|
header.getContext()
|
7554
7554
|
)
|
7555
7555
|
);
|
7556
|
-
})))), /* @__PURE__ */
|
7556
|
+
})))), /* @__PURE__ */ React61.createElement(TableBody, null, ((_a = table.getRowModel().rows) == null ? void 0 : _a.length) ? table.getRowModel().rows.map((row) => /* @__PURE__ */ React61.createElement(
|
7557
7557
|
TableRow,
|
7558
7558
|
{
|
7559
7559
|
key: row.id,
|
@@ -7561,7 +7561,7 @@ var SimpleTable = ({
|
|
7561
7561
|
},
|
7562
7562
|
row.getVisibleCells().map((cell) => {
|
7563
7563
|
var _a2;
|
7564
|
-
return /* @__PURE__ */
|
7564
|
+
return /* @__PURE__ */ React61.createElement(
|
7565
7565
|
TableCell,
|
7566
7566
|
{
|
7567
7567
|
dir: props.direction,
|
@@ -7577,7 +7577,7 @@ var SimpleTable = ({
|
|
7577
7577
|
)
|
7578
7578
|
);
|
7579
7579
|
})
|
7580
|
-
)) : /* @__PURE__ */
|
7580
|
+
)) : /* @__PURE__ */ React61.createElement(TableRow, null, /* @__PURE__ */ React61.createElement(
|
7581
7581
|
TableCell,
|
7582
7582
|
{
|
7583
7583
|
colSpan: columns.length,
|
@@ -7589,12 +7589,12 @@ var SimpleTable = ({
|
|
7589
7589
|
};
|
7590
7590
|
|
7591
7591
|
// elements/separator/Separator.tsx
|
7592
|
-
var
|
7592
|
+
var React62 = __toESM(require("react"));
|
7593
7593
|
var Separator2 = ({
|
7594
7594
|
className,
|
7595
7595
|
orientation = "horizontal",
|
7596
7596
|
...props
|
7597
|
-
}) => /* @__PURE__ */
|
7597
|
+
}) => /* @__PURE__ */ React62.createElement(
|
7598
7598
|
"div",
|
7599
7599
|
{
|
7600
7600
|
className: cn(
|
@@ -7959,7 +7959,7 @@ var Count = (props) => {
|
|
7959
7959
|
};
|
7960
7960
|
|
7961
7961
|
// elements/toast/Toast.tsx
|
7962
|
-
var
|
7962
|
+
var React67 = __toESM(require("react"));
|
7963
7963
|
var ToastPrimitives = __toESM(require("@radix-ui/react-toast"));
|
7964
7964
|
var import_class_variance_authority4 = require("class-variance-authority");
|
7965
7965
|
var toastVariants = (0, import_class_variance_authority4.cva)(
|
@@ -7987,7 +7987,7 @@ var sizeStyles = {
|
|
7987
7987
|
sm: "hawa-text-xs"
|
7988
7988
|
};
|
7989
7989
|
var ToastProvider = ToastPrimitives.Provider;
|
7990
|
-
var ToastViewport =
|
7990
|
+
var ToastViewport = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
7991
7991
|
ToastPrimitives.Viewport,
|
7992
7992
|
{
|
7993
7993
|
ref,
|
@@ -7999,8 +7999,8 @@ var ToastViewport = React68.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
7999
7999
|
}
|
8000
8000
|
));
|
8001
8001
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
8002
|
-
var Toast =
|
8003
|
-
return /* @__PURE__ */
|
8002
|
+
var Toast = React67.forwardRef(({ className, variant, severity = "none", direction, ...props }, ref) => {
|
8003
|
+
return /* @__PURE__ */ React67.createElement(
|
8004
8004
|
ToastPrimitives.Root,
|
8005
8005
|
{
|
8006
8006
|
ref,
|
@@ -8015,8 +8015,8 @@ var Toast = React68.forwardRef(({ className, variant, severity = "none", directi
|
|
8015
8015
|
);
|
8016
8016
|
});
|
8017
8017
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
8018
|
-
var ToastAction =
|
8019
|
-
return /* @__PURE__ */
|
8018
|
+
var ToastAction = React67.forwardRef(({ className, ...props }, ref) => {
|
8019
|
+
return /* @__PURE__ */ React67.createElement(
|
8020
8020
|
ToastPrimitives.Action,
|
8021
8021
|
{
|
8022
8022
|
ref,
|
@@ -8034,7 +8034,7 @@ var ToastAction = React68.forwardRef(({ className, ...props }, ref) => {
|
|
8034
8034
|
);
|
8035
8035
|
});
|
8036
8036
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
8037
|
-
var ToastClose =
|
8037
|
+
var ToastClose = React67.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8038
8038
|
ToastPrimitives.Close,
|
8039
8039
|
{
|
8040
8040
|
ref,
|
@@ -8048,7 +8048,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8048
8048
|
"toast-close": "",
|
8049
8049
|
...props
|
8050
8050
|
},
|
8051
|
-
/* @__PURE__ */
|
8051
|
+
/* @__PURE__ */ React67.createElement(
|
8052
8052
|
"svg",
|
8053
8053
|
{
|
8054
8054
|
"aria-label": "Close Icon",
|
@@ -8057,7 +8057,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8057
8057
|
fill: "currentColor",
|
8058
8058
|
viewBox: "0 0 20 20"
|
8059
8059
|
},
|
8060
|
-
/* @__PURE__ */
|
8060
|
+
/* @__PURE__ */ React67.createElement(
|
8061
8061
|
"path",
|
8062
8062
|
{
|
8063
8063
|
fillRule: "evenodd",
|
@@ -8068,7 +8068,7 @@ var ToastClose = React68.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
8068
8068
|
)
|
8069
8069
|
));
|
8070
8070
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
8071
|
-
var ToastTitle =
|
8071
|
+
var ToastTitle = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8072
8072
|
ToastPrimitives.Title,
|
8073
8073
|
{
|
8074
8074
|
ref,
|
@@ -8081,7 +8081,7 @@ var ToastTitle = React68.forwardRef(({ className, size = "default", ...props },
|
|
8081
8081
|
}
|
8082
8082
|
));
|
8083
8083
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
8084
|
-
var ToastDescription =
|
8084
|
+
var ToastDescription = React67.forwardRef(({ className, size = "default", ...props }, ref) => /* @__PURE__ */ React67.createElement(
|
8085
8085
|
ToastPrimitives.Description,
|
8086
8086
|
{
|
8087
8087
|
ref,
|
package/dist/elements/index.mjs
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
"use client";
|
2
2
|
import {
|
3
3
|
Alert,
|
4
|
-
CheckMark,
|
5
4
|
Checkbox,
|
6
|
-
EyeIcon,
|
7
|
-
HiddenEyeIcon,
|
8
5
|
Input,
|
9
6
|
PhoneInput,
|
10
7
|
PinInput,
|
@@ -24,9 +21,8 @@ import {
|
|
24
21
|
TabsContent,
|
25
22
|
TabsList,
|
26
23
|
TabsTrigger,
|
27
|
-
Textarea
|
28
|
-
|
29
|
-
} from "../chunk-TERP5K6R.mjs";
|
24
|
+
Textarea
|
25
|
+
} from "../chunk-57EAKTAP.mjs";
|
30
26
|
import {
|
31
27
|
useClipboard
|
32
28
|
} from "../chunk-OPYDG34F.mjs";
|
@@ -41,7 +37,7 @@ import {
|
|
41
37
|
SheetPortal,
|
42
38
|
SheetTitle,
|
43
39
|
SheetTrigger
|
44
|
-
} from "../chunk-
|
40
|
+
} from "../chunk-MZRUEJED.mjs";
|
45
41
|
import {
|
46
42
|
Button,
|
47
43
|
Card,
|
@@ -50,6 +46,7 @@ import {
|
|
50
46
|
CardFooter,
|
51
47
|
CardHeader,
|
52
48
|
CardTitle,
|
49
|
+
CheckMark,
|
53
50
|
Chip,
|
54
51
|
DropdownMenu,
|
55
52
|
DropdownMenuCheckboxItem,
|
@@ -68,18 +65,21 @@ import {
|
|
68
65
|
DropdownMenuSubContent,
|
69
66
|
DropdownMenuSubTrigger,
|
70
67
|
DropdownMenuTrigger,
|
68
|
+
EyeIcon,
|
69
|
+
HiddenEyeIcon,
|
71
70
|
Label,
|
72
71
|
Loading,
|
73
72
|
Logos,
|
74
73
|
Skeleton,
|
75
74
|
Tooltip,
|
75
|
+
UncheckMark,
|
76
76
|
buttonVariants,
|
77
77
|
calculateLuminance,
|
78
78
|
cn
|
79
|
-
} from "../chunk-
|
79
|
+
} from "../chunk-ANXGMZXS.mjs";
|
80
80
|
import {
|
81
81
|
__require
|
82
|
-
} from "../chunk-
|
82
|
+
} from "../chunk-SYGWSBJL.mjs";
|
83
83
|
|
84
84
|
// elements/accordion/Accordion.tsx
|
85
85
|
import * as React3 from "react";
|
package/dist/hooks/index.d.mts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as React$1 from 'react';
|
1
2
|
import React__default, { useLayoutEffect, RefObject } from 'react';
|
2
3
|
import { T as ToasterToastProps } from '../Toast-BcFD9aeQ.mjs';
|
3
4
|
import 'class-variance-authority/types';
|
@@ -106,4 +107,6 @@ interface ContentRect {
|
|
106
107
|
}
|
107
108
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
108
109
|
|
109
|
-
|
110
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
111
|
+
|
112
|
+
export { type ContentRect, type UseFocusWithinOptions, type UseMediaQueryOptions, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/hooks/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import * as React$1 from 'react';
|
1
2
|
import React__default, { useLayoutEffect, RefObject } from 'react';
|
2
3
|
import { T as ToasterToastProps } from '../Toast-fy9tBz19.js';
|
3
4
|
import 'class-variance-authority/types';
|
@@ -106,4 +107,6 @@ interface ContentRect {
|
|
106
107
|
}
|
107
108
|
declare const useMeasureDirty: (ref: RefObject<HTMLElement>) => ContentRect;
|
108
109
|
|
109
|
-
|
110
|
+
declare function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): React$1.MutableRefObject<T | undefined>;
|
111
|
+
|
112
|
+
export { type ContentRect, type UseFocusWithinOptions, type UseMediaQueryOptions, reducer, toast, useBreakpoint, useClickOutside, useClipboard, useDialogCarousel, useFocusWithin, useIsomorphicEffect, useMeasureDirty, useMediaQuery, useMultiStepDialog, useTabs, useToast, useWindowSize };
|
package/dist/hooks/index.js
CHANGED
@@ -34,6 +34,7 @@ __export(hooks_exports, {
|
|
34
34
|
reducer: () => reducer,
|
35
35
|
toast: () => toast,
|
36
36
|
useBreakpoint: () => useBreakpoint,
|
37
|
+
useClickOutside: () => useClickOutside,
|
37
38
|
useClipboard: () => useClipboard,
|
38
39
|
useDialogCarousel: () => useDialogCarousel,
|
39
40
|
useFocusWithin: () => useFocusWithin,
|
@@ -461,13 +462,41 @@ var useMeasureDirty = (ref) => {
|
|
461
462
|
return rect;
|
462
463
|
};
|
463
464
|
|
464
|
-
// hooks/
|
465
|
-
var import_react16 =
|
465
|
+
// hooks/useClickOutside.ts
|
466
|
+
var import_react16 = require("react");
|
467
|
+
var DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
468
|
+
function useClickOutside(handler, events, nodes) {
|
469
|
+
const ref = (0, import_react16.useRef)();
|
470
|
+
(0, import_react16.useEffect)(() => {
|
471
|
+
const listener = (event) => {
|
472
|
+
const { target } = event != null ? event : {};
|
473
|
+
if (Array.isArray(nodes)) {
|
474
|
+
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
475
|
+
const shouldTrigger = nodes.every(
|
476
|
+
(node) => !!node && !event.composedPath().includes(node)
|
477
|
+
);
|
478
|
+
shouldTrigger && !shouldIgnore && handler();
|
479
|
+
} else if (ref.current && !ref.current.contains(target)) {
|
480
|
+
handler();
|
481
|
+
}
|
482
|
+
};
|
483
|
+
(events || DEFAULT_EVENTS).forEach(
|
484
|
+
(fn) => document.addEventListener(fn, listener)
|
485
|
+
);
|
486
|
+
return () => {
|
487
|
+
(events || DEFAULT_EVENTS).forEach(
|
488
|
+
(fn) => document.removeEventListener(fn, listener)
|
489
|
+
);
|
490
|
+
};
|
491
|
+
}, [ref, handler, nodes]);
|
492
|
+
return ref;
|
493
|
+
}
|
466
494
|
// Annotate the CommonJS export names for ESM import in node:
|
467
495
|
0 && (module.exports = {
|
468
496
|
reducer,
|
469
497
|
toast,
|
470
498
|
useBreakpoint,
|
499
|
+
useClickOutside,
|
471
500
|
useClipboard,
|
472
501
|
useDialogCarousel,
|
473
502
|
useFocusWithin,
|
package/dist/hooks/index.mjs
CHANGED
@@ -14,12 +14,14 @@ import {
|
|
14
14
|
useWindowSize
|
15
15
|
} from "../chunk-OPYDG34F.mjs";
|
16
16
|
import {
|
17
|
-
useBreakpoint
|
18
|
-
|
17
|
+
useBreakpoint,
|
18
|
+
useClickOutside
|
19
|
+
} from "../chunk-SYGWSBJL.mjs";
|
19
20
|
export {
|
20
21
|
reducer,
|
21
22
|
toast,
|
22
23
|
useBreakpoint,
|
24
|
+
useClickOutside,
|
23
25
|
useClipboard,
|
24
26
|
useDialogCarousel,
|
25
27
|
useFocusWithin,
|