@sikka/hawa 0.29.13-next → 0.30.0-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/{Radio-aAiNsg4d.d.ts → Radio-MHGhfbpA.d.ts} +3 -2
- package/dist/{Radio-H5-wIs2r.d.mts → Radio-ZM5l4CwH.d.mts} +3 -2
- package/dist/appLayout/index.js +2 -10
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +2 -10
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/blocks/feedback/index.js +24 -17
- package/dist/blocks/feedback/index.mjs +16 -14
- package/dist/blocks/index.d.mts +1 -1
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/index.js +24 -17
- package/dist/blocks/index.mjs +1 -1
- package/dist/blocks/pricing/index.js +9 -4
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/{chunk-JESKKO3W.mjs → chunk-JMBRP2WR.mjs} +9 -4
- package/dist/{chunk-W2RAWZAF.mjs → chunk-TGB72TYK.mjs} +24 -17
- package/dist/combobox/index.d.mts +1 -0
- package/dist/combobox/index.d.ts +1 -0
- package/dist/combobox/index.js +224 -218
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +224 -218
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.js +1 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +1 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dialog/index.d.mts +1 -0
- package/dist/dialog/index.d.ts +1 -0
- package/dist/dialog/index.js +1 -1
- package/dist/dialog/index.js.map +1 -1
- package/dist/dialog/index.mjs +1 -1
- package/dist/dialog/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +11 -6
- package/dist/elements/index.d.ts +11 -6
- package/dist/elements/index.js +96 -85
- package/dist/elements/index.mjs +15 -11
- package/dist/index.css +0 -3
- package/dist/index.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +98 -95
- package/dist/index.mjs +124 -121
- package/dist/interfaceSettings/index.js +9 -4
- package/dist/interfaceSettings/index.js.map +1 -1
- package/dist/interfaceSettings/index.mjs +9 -4
- package/dist/interfaceSettings/index.mjs.map +1 -1
- package/dist/layout/index.js +2 -10
- package/dist/layout/index.mjs +2 -10
- package/dist/passwordInput/index.js +15 -13
- package/dist/passwordInput/index.js.map +1 -1
- package/dist/passwordInput/index.mjs +15 -13
- package/dist/passwordInput/index.mjs.map +1 -1
- package/dist/popover/index.d.mts +3 -1
- package/dist/popover/index.d.ts +3 -1
- package/dist/popover/index.js +15 -13
- package/dist/popover/index.js.map +1 -1
- package/dist/popover/index.mjs +15 -13
- package/dist/popover/index.mjs.map +1 -1
- package/dist/radio/index.d.mts +3 -2
- package/dist/radio/index.d.ts +3 -2
- package/dist/radio/index.js +9 -4
- package/dist/radio/index.js.map +1 -1
- package/dist/radio/index.mjs +9 -4
- package/dist/radio/index.mjs.map +1 -1
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.js.map +1 -1
- package/dist/simpleTable/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/blocks/index.d.mts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.mjs';
|
3
3
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.mjs';
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-ZM5l4CwH.mjs';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-o2-hzTmS.mjs';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
package/dist/blocks/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import React__default, { FC, InputHTMLAttributes } from 'react';
|
2
2
|
import { ThirdPartyAuthTextsTypes, LoginFormTextsTypes, RegisterFormTextsTypes, NewPasswordTextsTypes, ResetPasswordTextsTypes, BaseInputType, TextInputType, PricingCardProps, PlanFeature, PricingPlanTexts } from '../types/index.js';
|
3
3
|
import { D as DirectionType, a as RadioOptionType, O as OrientationType } from '../commonTypes-CKtkuNFH.js';
|
4
|
-
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-
|
4
|
+
import { S as SelectOptionProps, L as LabelProps, R as RadioOptionsTypes } from '../Radio-MHGhfbpA.js';
|
5
5
|
import { M as MenuItemType } from '../DropdownMenu-q6HfeO08.js';
|
6
6
|
import '@radix-ui/react-dropdown-menu';
|
7
7
|
|
package/dist/blocks/index.js
CHANGED
@@ -4654,7 +4654,8 @@ var Radio = ({
|
|
4654
4654
|
props.defaultValue || props.value
|
4655
4655
|
);
|
4656
4656
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
4657
|
-
let inactiveTabStyle =
|
4657
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
4658
|
+
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
4658
4659
|
let orientationStyle = {
|
4659
4660
|
horizontal: "hawa-flex hawa-flex-row",
|
4660
4661
|
vertical: "hawa-flex hawa-flex-col"
|
@@ -4708,14 +4709,18 @@ var Radio = ({
|
|
4708
4709
|
"li",
|
4709
4710
|
{
|
4710
4711
|
"aria-current": "page",
|
4711
|
-
onClick: () =>
|
4712
|
+
onClick: () => {
|
4713
|
+
if (props.disabled)
|
4714
|
+
return;
|
4715
|
+
handleChange(opt);
|
4716
|
+
},
|
4712
4717
|
className: cn(
|
4713
|
-
"hawa-w-full hawa-
|
4718
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
4719
|
+
!props.disabled && "hawa-cursor-pointer",
|
4714
4720
|
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
4715
4721
|
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
4716
4722
|
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
4717
4723
|
tabSizeStyle[size],
|
4718
|
-
"hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
4719
4724
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
4720
4725
|
),
|
4721
4726
|
key: o
|
@@ -5166,19 +5171,21 @@ var import_react25 = __toESM(require("react"));
|
|
5166
5171
|
// elements/popover/Popover.tsx
|
5167
5172
|
var React30 = __toESM(require("react"));
|
5168
5173
|
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
5169
|
-
var PopoverContent = React30.forwardRef(
|
5170
|
-
PopoverPrimitive.
|
5171
|
-
|
5172
|
-
|
5173
|
-
|
5174
|
-
|
5175
|
-
|
5176
|
-
|
5177
|
-
|
5178
|
-
|
5179
|
-
|
5180
|
-
|
5181
|
-
|
5174
|
+
var PopoverContent = React30.forwardRef(
|
5175
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React30.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React30.createElement(
|
5176
|
+
PopoverPrimitive.Content,
|
5177
|
+
{
|
5178
|
+
ref,
|
5179
|
+
align,
|
5180
|
+
sideOffset,
|
5181
|
+
className: cn(
|
5182
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
5183
|
+
className
|
5184
|
+
),
|
5185
|
+
...props
|
5186
|
+
}
|
5187
|
+
))
|
5188
|
+
);
|
5182
5189
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
5183
5190
|
var Popover = ({
|
5184
5191
|
trigger,
|
package/dist/blocks/index.mjs
CHANGED
@@ -1011,7 +1011,8 @@ var Radio = ({
|
|
1011
1011
|
props.defaultValue || props.value
|
1012
1012
|
);
|
1013
1013
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
1014
|
-
let inactiveTabStyle =
|
1014
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
1015
|
+
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
1015
1016
|
let orientationStyle = {
|
1016
1017
|
horizontal: "hawa-flex hawa-flex-row",
|
1017
1018
|
vertical: "hawa-flex hawa-flex-col"
|
@@ -1065,14 +1066,18 @@ var Radio = ({
|
|
1065
1066
|
"li",
|
1066
1067
|
{
|
1067
1068
|
"aria-current": "page",
|
1068
|
-
onClick: () =>
|
1069
|
+
onClick: () => {
|
1070
|
+
if (props.disabled)
|
1071
|
+
return;
|
1072
|
+
handleChange(opt);
|
1073
|
+
},
|
1069
1074
|
className: cn(
|
1070
|
-
"hawa-w-full hawa-
|
1075
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
1076
|
+
!props.disabled && "hawa-cursor-pointer",
|
1071
1077
|
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
1072
1078
|
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
1073
1079
|
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
1074
1080
|
tabSizeStyle[size],
|
1075
|
-
"hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
1076
1081
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
1077
1082
|
),
|
1078
1083
|
key: o
|
@@ -23,7 +23,8 @@ var Radio = ({
|
|
23
23
|
props.defaultValue || props.value
|
24
24
|
);
|
25
25
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
26
|
-
let inactiveTabStyle =
|
26
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
27
|
+
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
27
28
|
let orientationStyle = {
|
28
29
|
horizontal: "hawa-flex hawa-flex-row",
|
29
30
|
vertical: "hawa-flex hawa-flex-col"
|
@@ -77,14 +78,18 @@ var Radio = ({
|
|
77
78
|
"li",
|
78
79
|
{
|
79
80
|
"aria-current": "page",
|
80
|
-
onClick: () =>
|
81
|
+
onClick: () => {
|
82
|
+
if (props.disabled)
|
83
|
+
return;
|
84
|
+
handleChange(opt);
|
85
|
+
},
|
81
86
|
className: cn(
|
82
|
-
"hawa-w-full hawa-
|
87
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
88
|
+
!props.disabled && "hawa-cursor-pointer",
|
83
89
|
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
84
90
|
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
85
91
|
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
86
92
|
tabSizeStyle[size],
|
87
|
-
"hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
88
93
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
89
94
|
),
|
90
95
|
key: o
|
@@ -2473,7 +2473,8 @@ var Radio = ({
|
|
2473
2473
|
props.defaultValue || props.value
|
2474
2474
|
);
|
2475
2475
|
let activeTabStyle = "hawa-inline-block hawa-w-full hawa-text-primary-foreground hawa-bg-primary hawa-active dark:hawa-bg-primary";
|
2476
|
-
let inactiveTabStyle =
|
2476
|
+
let inactiveTabStyle = `hawa-inline-block hawa-w-full hawa-transition-all hawa-bg-primary-foreground dark:hover:hawa-text-white
|
2477
|
+
${props.disabled ? "" : "hover:hawa-bg-muted"}`;
|
2477
2478
|
let orientationStyle = {
|
2478
2479
|
horizontal: "hawa-flex hawa-flex-row",
|
2479
2480
|
vertical: "hawa-flex hawa-flex-col"
|
@@ -2527,14 +2528,18 @@ var Radio = ({
|
|
2527
2528
|
"li",
|
2528
2529
|
{
|
2529
2530
|
"aria-current": "page",
|
2530
|
-
onClick: () =>
|
2531
|
+
onClick: () => {
|
2532
|
+
if (props.disabled)
|
2533
|
+
return;
|
2534
|
+
handleChange(opt);
|
2535
|
+
},
|
2531
2536
|
className: cn(
|
2532
|
-
"hawa-w-full hawa-
|
2537
|
+
"hawa-w-full hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
2538
|
+
!props.disabled && "hawa-cursor-pointer",
|
2533
2539
|
orientation === "horizontal" && parentDirection === "ltr" && "hawa-rounded-none first:hawa-rounded-l last:hawa-rounded-r",
|
2534
2540
|
orientation === "horizontal" && parentDirection === "rtl" && "hawa-rounded-none first:hawa-rounded-r last:hawa-rounded-l",
|
2535
2541
|
orientation === "vertical" && "hawa-rounded-none first:hawa-rounded-t last:hawa-rounded-b",
|
2536
2542
|
tabSizeStyle[size],
|
2537
|
-
"hawa-last hawa-flex hawa-flex-row hawa-items-center hawa-justify-center hawa-gap-2 ",
|
2538
2543
|
selectedOption === opt.value ? activeTabStyle : inactiveTabStyle
|
2539
2544
|
),
|
2540
2545
|
key: o
|
@@ -2714,19 +2719,21 @@ Textarea.displayName = "Textarea";
|
|
2714
2719
|
// elements/popover/Popover.tsx
|
2715
2720
|
import * as React11 from "react";
|
2716
2721
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
2717
|
-
var PopoverContent = React11.forwardRef(
|
2718
|
-
PopoverPrimitive.
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
|
2724
|
-
|
2725
|
-
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
2722
|
+
var PopoverContent = React11.forwardRef(
|
2723
|
+
({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ React11.createElement(PopoverPrimitive.Portal, { container }, /* @__PURE__ */ React11.createElement(
|
2724
|
+
PopoverPrimitive.Content,
|
2725
|
+
{
|
2726
|
+
ref,
|
2727
|
+
align,
|
2728
|
+
sideOffset,
|
2729
|
+
className: cn(
|
2730
|
+
"dark:dark-shadow hawa-z-50 hawa-rounded hawa-border hawa-bg-popover hawa-text-popover-foreground hawa-shadow-md hawa-outline-none data-[state=open]:hawa-animate-in data-[state=closed]:hawa-animate-out data-[state=closed]:hawa-fade-out-0 data-[state=open]:hawa-fade-in-0 data-[state=closed]:hawa-zoom-out-95 data-[state=open]:hawa-zoom-in-95 data-[side=bottom]:hawa-slide-in-from-top-2 data-[side=left]:hawa-slide-in-from-right-2 data-[side=right]:hawa-slide-in-from-left-2 data-[side=top]:hawa-slide-in-from-bottom-2",
|
2731
|
+
className
|
2732
|
+
),
|
2733
|
+
...props
|
2734
|
+
}
|
2735
|
+
))
|
2736
|
+
);
|
2730
2737
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
2731
2738
|
var Popover = ({
|
2732
2739
|
trigger,
|
@@ -35,6 +35,7 @@ type ComboboxTypes<T> = {
|
|
35
35
|
/** If true, it will show a red asterisk next to the label*/
|
36
36
|
isRequired?: boolean;
|
37
37
|
onChange?: (e: any) => void;
|
38
|
+
renderOption?: (item: T) => React.ReactNode;
|
38
39
|
};
|
39
40
|
declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
|
40
41
|
|
package/dist/combobox/index.d.ts
CHANGED
@@ -35,6 +35,7 @@ type ComboboxTypes<T> = {
|
|
35
35
|
/** If true, it will show a red asterisk next to the label*/
|
36
36
|
isRequired?: boolean;
|
37
37
|
onChange?: (e: any) => void;
|
38
|
+
renderOption?: (item: T) => React.ReactNode;
|
38
39
|
};
|
39
40
|
declare const Combobox: React.ForwardRefExoticComponent<ComboboxTypes<any> & React.RefAttributes<HTMLDivElement>>;
|
40
41
|
|