@postenbring/hedwig-react 0.0.16 → 0.0.18
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/chunk-4RBJ5GJR.mjs +37 -0
- package/dist/chunk-4ZM45P62.mjs +13 -0
- package/dist/chunk-BKXVC23Y.mjs +5 -0
- package/dist/chunk-FSBY3NKV.mjs +47 -0
- package/dist/chunk-NVMNXQ5Q.mjs +79 -0
- package/dist/{chunk-FFQBRM3W.mjs → chunk-QV33ZHNO.mjs} +3 -21
- package/dist/{chunk-5CZXT7I6.mjs → chunk-YFBW5ZRC.mjs} +1 -1
- package/dist/chunk-ZLCNSHLT.mjs +31 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +162 -4
- package/dist/index.mjs +21 -2
- package/dist/modal/index.js +5 -4
- package/dist/modal/index.mjs +3 -2
- package/dist/modal/modal.js +5 -4
- package/dist/modal/modal.mjs +2 -1
- package/dist/tabs/index.d.mts +6 -0
- package/dist/tabs/index.d.ts +6 -0
- package/dist/tabs/index.js +227 -0
- package/dist/tabs/index.mjs +22 -0
- package/dist/tabs/tabs-content.d.mts +21 -0
- package/dist/tabs/tabs-content.d.ts +21 -0
- package/dist/tabs/tabs-content.js +94 -0
- package/dist/tabs/tabs-content.mjs +10 -0
- package/dist/tabs/tabs-list.d.mts +26 -0
- package/dist/tabs/tabs-list.d.ts +26 -0
- package/dist/tabs/tabs-list.js +170 -0
- package/dist/tabs/tabs-list.mjs +11 -0
- package/dist/tabs/tabs.d.mts +16 -0
- package/dist/tabs/tabs.d.ts +16 -0
- package/dist/tabs/tabs.js +87 -0
- package/dist/tabs/tabs.mjs +8 -0
- package/package.json +2 -2
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/tabs/tabs.tsx
|
|
50
|
+
var tabs_exports = {};
|
|
51
|
+
__export(tabs_exports, {
|
|
52
|
+
Tabs: () => Tabs
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(tabs_exports);
|
|
55
|
+
var import_react2 = require("react");
|
|
56
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
57
|
+
|
|
58
|
+
// src/tabs/context.ts
|
|
59
|
+
var import_react = require("react");
|
|
60
|
+
var TabsContext = (0, import_react.createContext)({
|
|
61
|
+
mounted: false,
|
|
62
|
+
activeTabId: void 0,
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
|
|
64
|
+
toggleActiveTabId: (tabId) => {
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// src/tabs/tabs.tsx
|
|
69
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
70
|
+
var Tabs = (0, import_react2.forwardRef)(
|
|
71
|
+
(_a, ref) => {
|
|
72
|
+
var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
|
|
73
|
+
const [activeTabId, setActiveTabId] = (0, import_react2.useState)(defaultTab);
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
+
TabsContext.Provider,
|
|
76
|
+
{
|
|
77
|
+
value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
|
|
78
|
+
children
|
|
79
|
+
}
|
|
80
|
+
) }));
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
Tabs.displayName = "Tabs";
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
Tabs
|
|
87
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hedwig-tsconfig": "0.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@postenbring/hedwig-css": "0.0.
|
|
22
|
+
"@postenbring/hedwig-css": "0.0.17"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|