@sikka/hawa 0.30.19-next → 0.30.21-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/codeBlock/index.d.mts +29 -8
- package/dist/codeBlock/index.d.ts +29 -8
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js +6 -4
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs +6 -4
- 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/elements/index.d.mts +29 -8
- package/dist/elements/index.d.ts +29 -8
- package/dist/elements/index.js +6 -4
- package/dist/elements/index.mjs +6 -4
- package/dist/index.css +6 -0
- package/dist/index.d.mts +29 -8
- package/dist/index.d.ts +29 -8
- package/dist/index.js +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
@@ -971,20 +971,13 @@ type ScrollIndicatorProps = {
|
|
971
971
|
};
|
972
972
|
declare const ScrollIndicator: FC<ScrollIndicatorProps>;
|
973
973
|
|
974
|
-
type
|
974
|
+
type CodeBlockTypesBase = {
|
975
975
|
/** Specifies the programming language for syntax highlighting.*/
|
976
976
|
language?: HighlightProps["language"];
|
977
977
|
/** Defines the width of the code block.*/
|
978
978
|
width?: "full" | "md" | "sm";
|
979
|
-
/** Array of tabs each containing a title and code content.*/
|
980
|
-
tabs?: {
|
981
|
-
title: string;
|
982
|
-
code: string;
|
983
|
-
}[];
|
984
979
|
/** Name of the file being displayed. */
|
985
980
|
fileName?: string;
|
986
|
-
/** Code content to be displayed within the code block.*/
|
987
|
-
code: string;
|
988
981
|
/** line numbers for code block */
|
989
982
|
lineNumbers?: boolean;
|
990
983
|
/** Wrap text in code block */
|
@@ -999,6 +992,34 @@ type CodeBlockTypes = {
|
|
999
992
|
codeBlockContainer?: string;
|
1000
993
|
};
|
1001
994
|
};
|
995
|
+
/**
|
996
|
+
* Type for when tabs are provided. In this case, the code property is optional.
|
997
|
+
* Do not provide the "code" prop if "tabs" exists.
|
998
|
+
*/
|
999
|
+
type CodeBlockTypesWithTabs = CodeBlockTypesBase & {
|
1000
|
+
/** Array of tabs each containing a title and code content.*/
|
1001
|
+
tabs: {
|
1002
|
+
title: string;
|
1003
|
+
code: string;
|
1004
|
+
}[];
|
1005
|
+
/** Code content to be displayed within the code block.*/
|
1006
|
+
code?: string;
|
1007
|
+
};
|
1008
|
+
/**
|
1009
|
+
* Type for when tabs are not provided. In this case, the code property is required.
|
1010
|
+
* You must provide the "code" prop if "tabs" does not exist.
|
1011
|
+
*/
|
1012
|
+
type CodeBlockTypesWithoutTabs = CodeBlockTypesBase & {
|
1013
|
+
/** Array of tabs each containing a title and code content.*/
|
1014
|
+
tabs?: never;
|
1015
|
+
/** Code content to be displayed within the code block.*/
|
1016
|
+
code: string;
|
1017
|
+
};
|
1018
|
+
/**
|
1019
|
+
* Either provide "tabs" prop (in which case "code" is optional),
|
1020
|
+
* or do not provide "tabs" (in which case "code" is required).
|
1021
|
+
*/
|
1022
|
+
type CodeBlockTypes = CodeBlockTypesWithTabs | CodeBlockTypesWithoutTabs;
|
1002
1023
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
1003
1024
|
|
1004
1025
|
type CarouselProps = {
|
package/dist/index.js
CHANGED
@@ -3565,7 +3565,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3565
3565
|
{
|
3566
3566
|
ref,
|
3567
3567
|
className: cn(
|
3568
|
-
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
3568
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled='true']:hawa-pointer-events-none data-[disabled='true']:hawa-opacity-50",
|
3569
3569
|
className
|
3570
3570
|
),
|
3571
3571
|
...props
|
@@ -3758,13 +3758,15 @@ var Combobox = React27.forwardRef(
|
|
3758
3758
|
dir: direction,
|
3759
3759
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
3760
3760
|
}
|
3761
|
-
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3761
|
+
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3762
3762
|
CommandItem,
|
3763
3763
|
{
|
3764
3764
|
key: i,
|
3765
3765
|
onSelect: () => {
|
3766
3766
|
const newValue = getProperty(item, valueKey);
|
3767
|
-
setValue(
|
3767
|
+
setValue(
|
3768
|
+
newValue === value ? "" : newValue
|
3769
|
+
);
|
3768
3770
|
if (props.onChange) {
|
3769
3771
|
props.onChange(
|
3770
3772
|
newValue === value ? "" : newValue
|
@@ -3795,7 +3797,7 @@ var Combobox = React27.forwardRef(
|
|
3795
3797
|
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3796
3798
|
),
|
3797
3799
|
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3798
|
-
))))
|
3800
|
+
)))))
|
3799
3801
|
))
|
3800
3802
|
);
|
3801
3803
|
}
|
package/dist/index.mjs
CHANGED
@@ -3338,7 +3338,7 @@ var CommandItem = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
3338
3338
|
{
|
3339
3339
|
ref,
|
3340
3340
|
className: cn(
|
3341
|
-
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled]:hawa-pointer-events-none data-[disabled]:hawa-opacity-50",
|
3341
|
+
"hawa-relative hawa-flex hawa-cursor-default hawa-select-none hawa-items-center hawa-rounded-sm hawa-px-2 hawa-py-1.5 hawa-text-sm hawa-outline-none aria-selected:hawa-bg-accent aria-selected:hawa-text-accent-foreground data-[disabled='true']:hawa-pointer-events-none data-[disabled='true']:hawa-opacity-50",
|
3342
3342
|
className
|
3343
3343
|
),
|
3344
3344
|
...props
|
@@ -3531,13 +3531,15 @@ var Combobox = React27.forwardRef(
|
|
3531
3531
|
dir: direction,
|
3532
3532
|
placeholder: ((_b = props.texts) == null ? void 0 : _b.searchPlaceholder) || "Search"
|
3533
3533
|
}
|
3534
|
-
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3534
|
+
), /* @__PURE__ */ React27.createElement(CommandEmpty, null, ((_c = props.texts) == null ? void 0 : _c.noItems) || "No items found."), /* @__PURE__ */ React27.createElement(CommandList, null, /* @__PURE__ */ React27.createElement(CommandGroup, { className: "hawa-max-h-[200px] hawa-overflow-y-scroll" }, data.map((item, i) => /* @__PURE__ */ React27.createElement(
|
3535
3535
|
CommandItem,
|
3536
3536
|
{
|
3537
3537
|
key: i,
|
3538
3538
|
onSelect: () => {
|
3539
3539
|
const newValue = getProperty(item, valueKey);
|
3540
|
-
setValue(
|
3540
|
+
setValue(
|
3541
|
+
newValue === value ? "" : newValue
|
3542
|
+
);
|
3541
3543
|
if (props.onChange) {
|
3542
3544
|
props.onChange(
|
3543
3545
|
newValue === value ? "" : newValue
|
@@ -3568,7 +3570,7 @@ var Combobox = React27.forwardRef(
|
|
3568
3570
|
/* @__PURE__ */ React27.createElement("polyline", { points: "20 6 9 17 4 12" })
|
3569
3571
|
),
|
3570
3572
|
renderOption ? renderOption(item) : getProperty(item, labelKey)
|
3571
|
-
))))
|
3573
|
+
)))))
|
3572
3574
|
))
|
3573
3575
|
);
|
3574
3576
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sikka/hawa",
|
3
|
-
"version": "0.30.
|
3
|
+
"version": "0.30.21-next",
|
4
4
|
"description": "Modern UI Kit made with Tailwind",
|
5
5
|
"author": {
|
6
6
|
"name": "Sikka Software",
|
@@ -61,15 +61,15 @@
|
|
61
61
|
"@radix-ui/react-tabs": "^1.0.4",
|
62
62
|
"@radix-ui/react-toast": "^1.1.5",
|
63
63
|
"@radix-ui/react-tooltip": "^1.0.7",
|
64
|
-
"@tanstack/react-table": "^8.
|
65
|
-
"@tanstack/table-core": "^8.
|
64
|
+
"@tanstack/react-table": "^8.14.0",
|
65
|
+
"@tanstack/table-core": "^8.14.0",
|
66
66
|
"class-variance-authority": "^0.7.0",
|
67
67
|
"clsx": "^2.1.0",
|
68
68
|
"cmdk": "^1.0.0",
|
69
69
|
"embla-carousel-auto-height": "^8.0.0",
|
70
70
|
"embla-carousel-react": "^8.0.0",
|
71
71
|
"eslint": "^8.57.0",
|
72
|
-
"eslint-config-next": "^14.1.
|
72
|
+
"eslint-config-next": "^14.1.4",
|
73
73
|
"libphonenumber-js": "^1.10.58",
|
74
74
|
"prism-react-renderer": "^2.3.1",
|
75
75
|
"prismjs": "^1.29.0",
|
@@ -86,23 +86,23 @@
|
|
86
86
|
"zod": "^3.22.4"
|
87
87
|
},
|
88
88
|
"devDependencies": {
|
89
|
-
"@babel/preset-react": "^7.
|
89
|
+
"@babel/preset-react": "^7.24.1",
|
90
90
|
"@sikka/alam": "^0.0.4",
|
91
91
|
"@testing-library/jest-dom": "^6.4.2",
|
92
|
-
"@testing-library/react": "^14.2.
|
92
|
+
"@testing-library/react": "^14.2.2",
|
93
93
|
"@types/jest": "^29.5.12",
|
94
94
|
"@types/react": "^18.2.67",
|
95
95
|
"@types/react-dom": "^18.2.22",
|
96
|
-
"autoprefixer": "^10.4.
|
96
|
+
"autoprefixer": "^10.4.19",
|
97
97
|
"boxen": "^7.1.1",
|
98
98
|
"chalk": "^5.3.0",
|
99
99
|
"embla-carousel": "8.0.0",
|
100
100
|
"jest": "^29.7.0",
|
101
101
|
"jest-environment-jsdom": "^29.7.0",
|
102
|
-
"lucide-react": "^0.
|
103
|
-
"postcss": "^8.4.
|
102
|
+
"lucide-react": "^0.360.0",
|
103
|
+
"postcss": "^8.4.38",
|
104
104
|
"postcss-cli": "^11.0.0",
|
105
|
-
"postcss-import": "^16.0
|
105
|
+
"postcss-import": "^16.1.0",
|
106
106
|
"tailwindcss": "^3.4.1",
|
107
107
|
"tailwindcss-animate": "^1.0.7",
|
108
108
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|