@sikka/hawa 0.24.4-next → 0.24.5-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/accordion/index.d.mts +1 -2
- package/dist/accordion/index.d.ts +1 -2
- package/dist/accordion/index.mjs +219 -7
- package/dist/alert/index.d.mts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/appLayout/index.d.mts +126 -0
- package/dist/appLayout/index.d.ts +126 -0
- package/dist/appLayout/index.js +1325 -0
- package/dist/appLayout/index.mjs +1285 -0
- package/dist/appMenubar/index.d.mts +33 -0
- package/dist/appMenubar/index.d.ts +33 -0
- package/dist/appMenubar/index.js +281 -0
- package/dist/appMenubar/index.mjs +224 -0
- package/dist/appTabs/index.d.mts +18 -0
- package/dist/appTabs/index.d.ts +18 -0
- package/dist/appTabs/index.js +92 -0
- package/dist/appTabs/index.mjs +50 -0
- package/dist/appTopbar/index.d.mts +44 -0
- package/dist/appTopbar/index.d.ts +44 -0
- package/dist/appTopbar/index.js +483 -0
- package/dist/appTopbar/index.mjs +441 -0
- package/dist/avatar/index.d.mts +5 -4
- package/dist/avatar/index.d.ts +5 -4
- package/dist/backToTop/index.mjs +353 -3
- package/dist/badge/index.d.mts +2 -2
- package/dist/badge/index.d.ts +2 -2
- package/dist/checkbox/index.d.mts +1 -2
- package/dist/checkbox/index.d.ts +1 -2
- package/dist/chip/index.d.mts +36 -2
- package/dist/chip/index.d.ts +36 -2
- package/dist/chip/index.mjs +83 -3
- package/dist/chunk-62GI5F2P.mjs +442 -0
- package/dist/chunk-7NCNPRCL.mjs +120 -0
- package/dist/{chunk-TNAHW35O.mjs → chunk-C2UYTGUD.mjs} +8 -4
- package/dist/{chunk-26FHSPJI.mjs → chunk-DGWAHQRX.mjs} +1 -101
- package/dist/chunk-LRLLDOQZ.mjs +178 -0
- package/dist/chunk-ND4BWUKH.mjs +34 -0
- package/dist/codeBlock/index.mjs +684 -310
- package/dist/colorPicker/index.d.mts +2 -1
- package/dist/colorPicker/index.d.ts +2 -1
- package/dist/colorPicker/index.mjs +2 -167
- package/dist/combobox/index.d.mts +9 -1
- package/dist/combobox/index.d.ts +9 -1
- package/dist/combobox/index.mjs +61 -393
- package/dist/command/index.mjs +10 -425
- package/dist/commonTypes-3J1E3b61.d.mts +6 -0
- package/dist/commonTypes-3J1E3b61.d.ts +6 -0
- package/dist/commonTypes-GhKAraJw.d.mts +4 -0
- package/dist/commonTypes-GhKAraJw.d.ts +4 -0
- package/dist/commonTypes-LrR8QrYP.d.mts +5 -0
- package/dist/commonTypes-LrR8QrYP.d.ts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.mts +5 -0
- package/dist/commonTypes-WPhcN3Vr.d.ts +5 -0
- package/dist/commonTypes-ko_NGEoT.d.mts +3 -0
- package/dist/commonTypes-ko_NGEoT.d.ts +3 -0
- package/dist/copyrights/index.d.mts +17 -0
- package/dist/copyrights/index.d.ts +17 -0
- package/dist/copyrights/index.js +45 -0
- package/dist/copyrights/index.mjs +8 -0
- package/dist/count/index.d.mts +11 -0
- package/dist/count/index.d.ts +11 -0
- package/dist/count/index.js +45 -0
- package/dist/count/index.mjs +8 -0
- package/dist/dataTable/index.d.mts +1 -1
- package/dist/dataTable/index.d.ts +1 -1
- package/dist/destroyableCard/index.d.mts +1 -1
- package/dist/destroyableCard/index.d.ts +1 -1
- package/dist/dialog/index.d.mts +1 -1
- package/dist/dialog/index.d.ts +1 -1
- package/dist/docsLayout/index.d.mts +37 -0
- package/dist/docsLayout/index.d.ts +37 -0
- package/dist/docsLayout/index.js +926 -0
- package/dist/docsLayout/index.mjs +886 -0
- package/dist/docsSidebar/index.d.mts +11 -0
- package/dist/docsSidebar/index.d.ts +11 -0
- package/dist/docsSidebar/index.js +111 -0
- package/dist/docsSidebar/index.mjs +69 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +50 -41
- package/dist/index.mjs +50 -41
- package/dist/input/index.d.mts +2 -9
- package/dist/input/index.d.ts +2 -9
- package/dist/input/index.mjs +14 -98
- package/dist/interfaceSettings/index.d.mts +1 -1
- package/dist/interfaceSettings/index.d.ts +1 -1
- package/dist/interfaceSettings/index.mjs +24 -110
- package/dist/label/index.d.mts +1 -1
- package/dist/label/index.d.ts +1 -1
- package/dist/label/index.mjs +2 -87
- package/dist/layout/index.d.mts +1 -0
- package/dist/layout/index.d.ts +1 -0
- package/dist/layout/index.js +53 -44
- package/dist/layout/index.mjs +50 -41
- package/dist/navbar/index.d.mts +17 -0
- package/dist/navbar/index.d.ts +17 -0
- package/dist/navbar/index.js +166 -0
- package/dist/navbar/index.mjs +126 -0
- package/dist/pagination/index.d.mts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/passwordInput/index.mjs +27 -137
- package/dist/phoneInput/index.mjs +19 -129
- package/dist/radio/index.d.mts +1 -4
- package/dist/radio/index.d.ts +1 -4
- package/dist/scrollArea/index.d.mts +1 -1
- package/dist/scrollArea/index.d.ts +1 -1
- package/dist/select/index.d.mts +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/separator/index.d.mts +1 -1
- package/dist/separator/index.d.ts +1 -1
- package/dist/sidebar/index.d.mts +48 -0
- package/dist/sidebar/index.d.ts +48 -0
- package/dist/sidebar/index.js +341 -0
- package/dist/sidebar/index.mjs +298 -0
- package/dist/simpleTable/index.d.mts +4 -3
- package/dist/simpleTable/index.d.ts +4 -3
- package/dist/simpleTable/index.mjs +21 -45
- package/dist/skeleton/index.d.mts +3 -3
- package/dist/skeleton/index.d.ts +3 -3
- package/dist/skeleton/index.mjs +3 -29
- package/dist/sortButton/index.mjs +9 -260
- package/dist/splitButton/index.d.mts +4 -3
- package/dist/splitButton/index.d.ts +4 -3
- package/dist/splitButton/index.mjs +10 -259
- package/dist/stats/index.d.mts +19 -0
- package/dist/stats/index.d.ts +19 -0
- package/dist/stats/index.js +191 -0
- package/dist/stats/index.mjs +154 -0
- package/dist/stopPropagationWrapper/index.d.mts +2 -2
- package/dist/stopPropagationWrapper/index.d.ts +2 -2
- package/dist/switch/index.d.mts +2 -1
- package/dist/switch/index.d.ts +2 -1
- package/dist/tabs/index.d.mts +19 -1
- package/dist/tabs/index.d.ts +19 -1
- package/dist/tabs/index.mjs +94 -14
- package/dist/textarea/index.d.mts +8 -1
- package/dist/textarea/index.d.ts +8 -1
- package/dist/textarea/index.mjs +92 -8
- package/dist/toast/index.d.mts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Label-fkQ4ebuH.d.mts +0 -12
- package/dist/Label-fkQ4ebuH.d.ts +0 -12
- package/dist/chunk-72HYR6WB.mjs +0 -88
- package/dist/chunk-JYSC6GKM.mjs +0 -229
- package/dist/commonTypes-3k5cNB1s.d.mts +0 -4
- package/dist/commonTypes-3k5cNB1s.d.ts +0 -4
- package/dist/commonTypes-N7XOVCit.d.mts +0 -5
- package/dist/commonTypes-N7XOVCit.d.ts +0 -5
- package/dist/index-DUZFcPRO.d.mts +0 -38
- package/dist/index-DUZFcPRO.d.ts +0 -38
@@ -0,0 +1,92 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __create = Object.create;
|
3
|
+
var __defProp = Object.defineProperty;
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
8
|
+
var __export = (target, all) => {
|
9
|
+
for (var name in all)
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
11
|
+
};
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
14
|
+
for (let key of __getOwnPropNames(from))
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
17
|
+
}
|
18
|
+
return to;
|
19
|
+
};
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
26
|
+
mod
|
27
|
+
));
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
+
|
30
|
+
// components/layout/appTabs/index.ts
|
31
|
+
var appTabs_exports = {};
|
32
|
+
__export(appTabs_exports, {
|
33
|
+
AppTabs: () => AppTabs
|
34
|
+
});
|
35
|
+
module.exports = __toCommonJS(appTabs_exports);
|
36
|
+
|
37
|
+
// components/layout/appTabs/AppTabs.tsx
|
38
|
+
var import_react = __toESM(require("react"));
|
39
|
+
|
40
|
+
// components/util.ts
|
41
|
+
var import_clsx = require("clsx");
|
42
|
+
var import_tailwind_merge = require("tailwind-merge");
|
43
|
+
function cn(...inputs) {
|
44
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
45
|
+
}
|
46
|
+
|
47
|
+
// components/layout/appTabs/AppTabs.tsx
|
48
|
+
var AppTabs = ({ tabs, className }) => {
|
49
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react.useState)(0);
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
51
|
+
"div",
|
52
|
+
{
|
53
|
+
className: cn(
|
54
|
+
"hawa-w-full hawa-border-b hawa-bg-card hawa-p-6 hawa-pb-0",
|
55
|
+
className
|
56
|
+
)
|
57
|
+
},
|
58
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
59
|
+
const selected = index === selectedIndex;
|
60
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
61
|
+
"a",
|
62
|
+
{
|
63
|
+
href: tab.path,
|
64
|
+
key: index,
|
65
|
+
onMouseDown: (e) => {
|
66
|
+
if (tab.onMouseDown) {
|
67
|
+
tab.onMouseDown(e);
|
68
|
+
}
|
69
|
+
},
|
70
|
+
onClick: (e) => {
|
71
|
+
if (tab.onClick) {
|
72
|
+
tab.onClick(e);
|
73
|
+
}
|
74
|
+
setSelectedIndex(index);
|
75
|
+
},
|
76
|
+
className: cn(
|
77
|
+
"hawa-z-10 hawa-flex hawa-translate-y-[1.1px] hawa-select-none hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-4 hawa-py-2 hawa-text-sm hawa-transition-all ",
|
78
|
+
"hawa-border",
|
79
|
+
// Always have a border but make it transparent
|
80
|
+
selected ? "hawa-border hawa-border-b-transparent hawa-bg-background" : "hawa-cursor-pointer hawa-border-transparent hover:hawa-bg-gray-200 dark:hover:hawa-bg-gray-700"
|
81
|
+
)
|
82
|
+
},
|
83
|
+
tab.icon && tab.icon,
|
84
|
+
tab.label
|
85
|
+
);
|
86
|
+
}))
|
87
|
+
);
|
88
|
+
};
|
89
|
+
// Annotate the CommonJS export names for ESM import in node:
|
90
|
+
0 && (module.exports = {
|
91
|
+
AppTabs
|
92
|
+
});
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import {
|
2
|
+
cn
|
3
|
+
} from "../chunk-TE3BKEXL.mjs";
|
4
|
+
|
5
|
+
// components/layout/appTabs/AppTabs.tsx
|
6
|
+
import React, { useState } from "react";
|
7
|
+
var AppTabs = ({ tabs, className }) => {
|
8
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
9
|
+
return /* @__PURE__ */ React.createElement(
|
10
|
+
"div",
|
11
|
+
{
|
12
|
+
className: cn(
|
13
|
+
"hawa-w-full hawa-border-b hawa-bg-card hawa-p-6 hawa-pb-0",
|
14
|
+
className
|
15
|
+
)
|
16
|
+
},
|
17
|
+
/* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center " }, tabs.map((tab, index) => {
|
18
|
+
const selected = index === selectedIndex;
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
20
|
+
"a",
|
21
|
+
{
|
22
|
+
href: tab.path,
|
23
|
+
key: index,
|
24
|
+
onMouseDown: (e) => {
|
25
|
+
if (tab.onMouseDown) {
|
26
|
+
tab.onMouseDown(e);
|
27
|
+
}
|
28
|
+
},
|
29
|
+
onClick: (e) => {
|
30
|
+
if (tab.onClick) {
|
31
|
+
tab.onClick(e);
|
32
|
+
}
|
33
|
+
setSelectedIndex(index);
|
34
|
+
},
|
35
|
+
className: cn(
|
36
|
+
"hawa-z-10 hawa-flex hawa-translate-y-[1.1px] hawa-select-none hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-4 hawa-py-2 hawa-text-sm hawa-transition-all ",
|
37
|
+
"hawa-border",
|
38
|
+
// Always have a border but make it transparent
|
39
|
+
selected ? "hawa-border hawa-border-b-transparent hawa-bg-background" : "hawa-cursor-pointer hawa-border-transparent hover:hawa-bg-gray-200 dark:hover:hawa-bg-gray-700"
|
40
|
+
)
|
41
|
+
},
|
42
|
+
tab.icon && tab.icon,
|
43
|
+
tab.label
|
44
|
+
);
|
45
|
+
}))
|
46
|
+
);
|
47
|
+
};
|
48
|
+
export {
|
49
|
+
AppTabs
|
50
|
+
};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default from 'react';
|
3
|
+
import { D as DirectionType } from '../commonTypes-ko_NGEoT.mjs';
|
4
|
+
|
5
|
+
type SubItem = {
|
6
|
+
label?: string;
|
7
|
+
value?: any;
|
8
|
+
icon?: any;
|
9
|
+
action?: () => void;
|
10
|
+
onMiddleClick?: (e: any) => void;
|
11
|
+
highlighted?: boolean;
|
12
|
+
disabled?: boolean;
|
13
|
+
slug?: string;
|
14
|
+
};
|
15
|
+
type MenuItemType = {
|
16
|
+
icon?: React.ReactNode;
|
17
|
+
label?: string;
|
18
|
+
shortcut?: React.ReactNode;
|
19
|
+
badged?: boolean;
|
20
|
+
value?: any;
|
21
|
+
content?: any;
|
22
|
+
slug?: string;
|
23
|
+
end?: any;
|
24
|
+
presist?: boolean;
|
25
|
+
itemType?: "separator" | "label" | string;
|
26
|
+
action?: () => void;
|
27
|
+
highlighted?: boolean;
|
28
|
+
subitems?: SubItem[];
|
29
|
+
disabled?: boolean;
|
30
|
+
onMiddleClick?: (e: any) => void;
|
31
|
+
onClick?: any;
|
32
|
+
};
|
33
|
+
|
34
|
+
type AppTopbarType = {
|
35
|
+
direction?: DirectionType;
|
36
|
+
size?: number;
|
37
|
+
username?: string;
|
38
|
+
email?: string;
|
39
|
+
profileMenuItems?: MenuItemType[];
|
40
|
+
avatarImage?: string;
|
41
|
+
};
|
42
|
+
declare const AppTopbar: React__default.FC<AppTopbarType>;
|
43
|
+
|
44
|
+
export { AppTopbar };
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import React__default from 'react';
|
3
|
+
import { D as DirectionType } from '../commonTypes-ko_NGEoT.js';
|
4
|
+
|
5
|
+
type SubItem = {
|
6
|
+
label?: string;
|
7
|
+
value?: any;
|
8
|
+
icon?: any;
|
9
|
+
action?: () => void;
|
10
|
+
onMiddleClick?: (e: any) => void;
|
11
|
+
highlighted?: boolean;
|
12
|
+
disabled?: boolean;
|
13
|
+
slug?: string;
|
14
|
+
};
|
15
|
+
type MenuItemType = {
|
16
|
+
icon?: React.ReactNode;
|
17
|
+
label?: string;
|
18
|
+
shortcut?: React.ReactNode;
|
19
|
+
badged?: boolean;
|
20
|
+
value?: any;
|
21
|
+
content?: any;
|
22
|
+
slug?: string;
|
23
|
+
end?: any;
|
24
|
+
presist?: boolean;
|
25
|
+
itemType?: "separator" | "label" | string;
|
26
|
+
action?: () => void;
|
27
|
+
highlighted?: boolean;
|
28
|
+
subitems?: SubItem[];
|
29
|
+
disabled?: boolean;
|
30
|
+
onMiddleClick?: (e: any) => void;
|
31
|
+
onClick?: any;
|
32
|
+
};
|
33
|
+
|
34
|
+
type AppTopbarType = {
|
35
|
+
direction?: DirectionType;
|
36
|
+
size?: number;
|
37
|
+
username?: string;
|
38
|
+
email?: string;
|
39
|
+
profileMenuItems?: MenuItemType[];
|
40
|
+
avatarImage?: string;
|
41
|
+
};
|
42
|
+
declare const AppTopbar: React__default.FC<AppTopbarType>;
|
43
|
+
|
44
|
+
export { AppTopbar };
|