@dmsi/wedgekit-react 0.0.2
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/README.md +35 -0
- package/dist/chunk-27KIIUAR.js +59 -0
- package/dist/chunk-2G2E2JMA.js +123 -0
- package/dist/chunk-4C66DLIJ.js +51 -0
- package/dist/chunk-4RD5ZF2V.js +55 -0
- package/dist/chunk-4RJKB7LC.js +14 -0
- package/dist/chunk-4T7F5BZZ.js +26 -0
- package/dist/chunk-5GOBP2JS.js +53 -0
- package/dist/chunk-6ZY524ID.js +42 -0
- package/dist/chunk-AWQSSKCK.js +32 -0
- package/dist/chunk-BNHSAFMP.js +93 -0
- package/dist/chunk-BWRHL2AG.js +439 -0
- package/dist/chunk-DKKYR6DS.js +132 -0
- package/dist/chunk-E5ALT5W7.js +182 -0
- package/dist/chunk-FY7PTP6E.js +322 -0
- package/dist/chunk-GTCSRHPF.js +119 -0
- package/dist/chunk-I2UVVKQI.js +12 -0
- package/dist/chunk-IGQVA7SC.js +41 -0
- package/dist/chunk-K3IKUSZW.js +59 -0
- package/dist/chunk-KENSVWOY.js +151 -0
- package/dist/chunk-KX3O6GJ6.js +138 -0
- package/dist/chunk-L4UM372R.js +253 -0
- package/dist/chunk-ORMEWXMH.js +37 -0
- package/dist/chunk-Q3FKEKIN.js +23 -0
- package/dist/chunk-SEKKGFM6.js +28 -0
- package/dist/chunk-SY3HT54E.js +91 -0
- package/dist/chunk-TAW5ZZ4Z.js +346 -0
- package/dist/chunk-TRUPPHBQ.js +109 -0
- package/dist/chunk-TU55CHXU.js +30 -0
- package/dist/chunk-TWZZB4WO.js +114 -0
- package/dist/chunk-TYI74BSP.js +62 -0
- package/dist/chunk-U42SKNR6.js +104 -0
- package/dist/chunk-UU3FA6LV.js +72 -0
- package/dist/chunk-WVUIIBRR.js +51 -0
- package/dist/chunk-XUIPGYP5.js +39 -0
- package/dist/chunk-Z4UCFUF7.js +299 -0
- package/dist/components/Breadcrumbs.cjs +376 -0
- package/dist/components/Breadcrumbs.js +90 -0
- package/dist/components/Button.cjs +319 -0
- package/dist/components/Button.js +8 -0
- package/dist/components/CalendarRange.cjs +520 -0
- package/dist/components/CalendarRange.js +13 -0
- package/dist/components/Caption.cjs +283 -0
- package/dist/components/Caption.js +80 -0
- package/dist/components/Checkbox.cjs +378 -0
- package/dist/components/Checkbox.js +11 -0
- package/dist/components/ContentTab.cjs +382 -0
- package/dist/components/ContentTab.js +10 -0
- package/dist/components/ContentTabs.cjs +472 -0
- package/dist/components/ContentTabs.js +98 -0
- package/dist/components/DMSiLogo.cjs +79 -0
- package/dist/components/DMSiLogo.js +56 -0
- package/dist/components/DataGrid.cjs +3113 -0
- package/dist/components/DataGrid.js +758 -0
- package/dist/components/DataGridCell.cjs +1907 -0
- package/dist/components/DataGridCell.js +24 -0
- package/dist/components/DataTable.cjs +791 -0
- package/dist/components/DataTable.js +720 -0
- package/dist/components/DateInput.cjs +1130 -0
- package/dist/components/DateInput.js +170 -0
- package/dist/components/DateRangeInput.cjs +1131 -0
- package/dist/components/DateRangeInput.js +171 -0
- package/dist/components/DebugJson.cjs +50 -0
- package/dist/components/DebugJson.js +27 -0
- package/dist/components/Display.cjs +234 -0
- package/dist/components/Display.js +12 -0
- package/dist/components/EditingContext.cjs +73 -0
- package/dist/components/EditingContext.js +35 -0
- package/dist/components/FilterGroup.cjs +1431 -0
- package/dist/components/FilterGroup.js +231 -0
- package/dist/components/FullViewportBox.cjs +35 -0
- package/dist/components/FullViewportBox.js +12 -0
- package/dist/components/Grid.cjs +69 -0
- package/dist/components/Grid.js +36 -0
- package/dist/components/GridContainer.cjs +125 -0
- package/dist/components/GridContainer.js +92 -0
- package/dist/components/Heading.cjs +238 -0
- package/dist/components/Heading.js +14 -0
- package/dist/components/HorizontalDivider.cjs +33 -0
- package/dist/components/HorizontalDivider.js +10 -0
- package/dist/components/Icon.cjs +98 -0
- package/dist/components/Icon.js +7 -0
- package/dist/components/Input.cjs +672 -0
- package/dist/components/Input.js +21 -0
- package/dist/components/InputGroup.cjs +270 -0
- package/dist/components/InputGroup.js +60 -0
- package/dist/components/Label.cjs +223 -0
- package/dist/components/Label.js +8 -0
- package/dist/components/Link.cjs +262 -0
- package/dist/components/Link.js +8 -0
- package/dist/components/List.cjs +37 -0
- package/dist/components/List.js +14 -0
- package/dist/components/LiveChatComponent.cjs +63 -0
- package/dist/components/LiveChatComponent.js +40 -0
- package/dist/components/LogoAgilityTopBar.cjs +115 -0
- package/dist/components/LogoAgilityTopBar.js +92 -0
- package/dist/components/LogoDMSiTopBar.cjs +79 -0
- package/dist/components/LogoDMSiTopBar.js +7 -0
- package/dist/components/LogoMillworkTopBar.cjs +221 -0
- package/dist/components/LogoMillworkTopBar.js +198 -0
- package/dist/components/MainBar.cjs +211 -0
- package/dist/components/MainBar.js +65 -0
- package/dist/components/Menu.cjs +437 -0
- package/dist/components/Menu.js +11 -0
- package/dist/components/MenuOption.cjs +483 -0
- package/dist/components/MenuOption.js +13 -0
- package/dist/components/MobileDataGrid.cjs +658 -0
- package/dist/components/MobileDataGrid.js +125 -0
- package/dist/components/Modal.cjs +783 -0
- package/dist/components/Modal.js +245 -0
- package/dist/components/ModalButtons.cjs +385 -0
- package/dist/components/ModalButtons.js +10 -0
- package/dist/components/ModalContent.cjs +57 -0
- package/dist/components/ModalContent.js +7 -0
- package/dist/components/ModalHeader.cjs +426 -0
- package/dist/components/ModalHeader.js +11 -0
- package/dist/components/ModalScrim.cjs +64 -0
- package/dist/components/ModalScrim.js +7 -0
- package/dist/components/NavigationTab.cjs +431 -0
- package/dist/components/NavigationTab.js +10 -0
- package/dist/components/NavigationTabs.cjs +477 -0
- package/dist/components/NavigationTabs.js +56 -0
- package/dist/components/Notification.cjs +640 -0
- package/dist/components/Notification.js +117 -0
- package/dist/components/OptionPill.cjs +478 -0
- package/dist/components/OptionPill.js +11 -0
- package/dist/components/Paragraph.cjs +231 -0
- package/dist/components/Paragraph.js +8 -0
- package/dist/components/Password.cjs +700 -0
- package/dist/components/Password.js +53 -0
- package/dist/components/ProjectBar.cjs +242 -0
- package/dist/components/ProjectBar.js +63 -0
- package/dist/components/Radio.cjs +349 -0
- package/dist/components/Radio.js +131 -0
- package/dist/components/Search.cjs +767 -0
- package/dist/components/Search.js +12 -0
- package/dist/components/Select.cjs +758 -0
- package/dist/components/Select.js +12 -0
- package/dist/components/SideMenu.cjs +54 -0
- package/dist/components/SideMenu.js +21 -0
- package/dist/components/SideMenuGroup.cjs +422 -0
- package/dist/components/SideMenuGroup.js +83 -0
- package/dist/components/SideMenuItem.cjs +388 -0
- package/dist/components/SideMenuItem.js +70 -0
- package/dist/components/Stack.cjs +138 -0
- package/dist/components/Stack.js +7 -0
- package/dist/components/StatusPill.cjs +265 -0
- package/dist/components/StatusPill.js +52 -0
- package/dist/components/Stepper.cjs +885 -0
- package/dist/components/Stepper.js +105 -0
- package/dist/components/Subheader.cjs +226 -0
- package/dist/components/Subheader.js +8 -0
- package/dist/components/Surface.cjs +98 -0
- package/dist/components/Surface.js +40 -0
- package/dist/components/Swatch.cjs +1728 -0
- package/dist/components/Swatch.js +1319 -0
- package/dist/components/Textarea.cjs +269 -0
- package/dist/components/Textarea.js +96 -0
- package/dist/components/Theme.cjs +36 -0
- package/dist/components/Theme.js +7 -0
- package/dist/components/Time.cjs +1118 -0
- package/dist/components/Time.js +353 -0
- package/dist/components/Toast.cjs +644 -0
- package/dist/components/Toast.js +218 -0
- package/dist/components/Tooltip.cjs +273 -0
- package/dist/components/Tooltip.js +9 -0
- package/dist/components/TopBar.cjs +352 -0
- package/dist/components/TopBar.js +132 -0
- package/dist/components/useInfiniteScroll.cjs +57 -0
- package/dist/components/useInfiniteScroll.js +8 -0
- package/dist/components/useMatchesMedia.cjs +53 -0
- package/dist/components/useMatchesMedia.js +9 -0
- package/dist/components/useMenuSystem.cjs +358 -0
- package/dist/components/useMenuSystem.js +11 -0
- package/dist/components/useMounted.cjs +39 -0
- package/dist/components/useMounted.js +8 -0
- package/dist/fonts.css +21 -0
- package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/index.css +4401 -0
- package/dist/open-sans-55T6A4JE.woff2 +0 -0
- package/dist/types.cjs +18 -0
- package/dist/types.js +0 -0
- package/package.json +66 -0
- package/src/brand.css +125 -0
- package/src/classNames.ts +144 -0
- package/src/components/Breadcrumbs.tsx +116 -0
- package/src/components/Button.tsx +210 -0
- package/src/components/CalendarRange.tsx +429 -0
- package/src/components/Caption.tsx +101 -0
- package/src/components/Checkbox.tsx +196 -0
- package/src/components/ContentTab.tsx +66 -0
- package/src/components/ContentTabs.tsx +103 -0
- package/src/components/DMSiLogo.tsx +32 -0
- package/src/components/DataGrid.tsx +948 -0
- package/src/components/DataGridCell.tsx +384 -0
- package/src/components/DataTable.tsx +835 -0
- package/src/components/DateInput.tsx +188 -0
- package/src/components/DateRangeInput.tsx +179 -0
- package/src/components/DebugJson.tsx +24 -0
- package/src/components/Display.tsx +60 -0
- package/src/components/EditingContext.tsx +40 -0
- package/src/components/FilterGroup.tsx +234 -0
- package/src/components/FullViewportBox.tsx +11 -0
- package/src/components/Grid.tsx +75 -0
- package/src/components/GridContainer.tsx +124 -0
- package/src/components/Heading.tsx +66 -0
- package/src/components/HorizontalDivider.tsx +3 -0
- package/src/components/Icon.tsx +36 -0
- package/src/components/Input.tsx +511 -0
- package/src/components/InputGroup.tsx +51 -0
- package/src/components/Label.tsx +40 -0
- package/src/components/Link.tsx +106 -0
- package/src/components/List.tsx +10 -0
- package/src/components/LiveChatComponent.tsx +56 -0
- package/src/components/LogoAgilityTopBar.tsx +53 -0
- package/src/components/LogoDMSiTopBar.tsx +32 -0
- package/src/components/LogoMillworkTopBar.tsx +118 -0
- package/src/components/MainBar.tsx +83 -0
- package/src/components/Menu.tsx +286 -0
- package/src/components/MenuOption.tsx +275 -0
- package/src/components/MobileDataGrid.tsx +135 -0
- package/src/components/Modal.tsx +271 -0
- package/src/components/ModalButtons.tsx +44 -0
- package/src/components/ModalContent.tsx +23 -0
- package/src/components/ModalHeader.tsx +41 -0
- package/src/components/ModalScrim.tsx +35 -0
- package/src/components/NavigationTab.tsx +89 -0
- package/src/components/NavigationTabs.tsx +63 -0
- package/src/components/Notification.tsx +120 -0
- package/src/components/OptionPill.tsx +114 -0
- package/src/components/Paragraph.tsx +49 -0
- package/src/components/Password.tsx +46 -0
- package/src/components/ProjectBar.tsx +76 -0
- package/src/components/Radio.tsx +140 -0
- package/src/components/Search.tsx +129 -0
- package/src/components/Select.tsx +104 -0
- package/src/components/SideMenu.tsx +21 -0
- package/src/components/SideMenuGroup.tsx +81 -0
- package/src/components/SideMenuItem.tsx +90 -0
- package/src/components/Stack.tsx +179 -0
- package/src/components/StatusPill.tsx +51 -0
- package/src/components/Stepper.tsx +91 -0
- package/src/components/Subheader.tsx +44 -0
- package/src/components/Surface.tsx +34 -0
- package/src/components/Swatch.tsx +1066 -0
- package/src/components/Textarea.tsx +101 -0
- package/src/components/Theme.tsx +13 -0
- package/src/components/Time.tsx +438 -0
- package/src/components/Toast.tsx +244 -0
- package/src/components/Tooltip.tsx +137 -0
- package/src/components/TopBar.tsx +124 -0
- package/src/components/useInfiniteScroll.tsx +40 -0
- package/src/components/useMatchesMedia.tsx +28 -0
- package/src/components/useMenuSystem.tsx +367 -0
- package/src/components/useMounted.tsx +14 -0
- package/src/darkmode.css +140 -0
- package/src/fonts.css +23 -0
- package/src/index.css +509 -0
- package/src/index.tsx +2 -0
- package/src/types.ts +149 -0
- package/src/utils/formatting.tsx +81 -0
- package/src/utils.ts +23 -0
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defProps = Object.defineProperties;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
13
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14
|
+
var __spreadValues = (a, b) => {
|
|
15
|
+
for (var prop in b || (b = {}))
|
|
16
|
+
if (__hasOwnProp.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
if (__getOwnPropSymbols)
|
|
19
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
20
|
+
if (__propIsEnum.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
};
|
|
25
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
26
|
+
var __objRest = (source, exclude) => {
|
|
27
|
+
var target = {};
|
|
28
|
+
for (var prop in source)
|
|
29
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
30
|
+
target[prop] = source[prop];
|
|
31
|
+
if (source != null && __getOwnPropSymbols)
|
|
32
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
33
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
34
|
+
target[prop] = source[prop];
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
38
|
+
var __export = (target, all) => {
|
|
39
|
+
for (var name in all)
|
|
40
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
41
|
+
};
|
|
42
|
+
var __copyProps = (to, from, except, desc) => {
|
|
43
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
44
|
+
for (let key of __getOwnPropNames(from))
|
|
45
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
46
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
47
|
+
}
|
|
48
|
+
return to;
|
|
49
|
+
};
|
|
50
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
51
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
52
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
53
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
54
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
55
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
56
|
+
mod
|
|
57
|
+
));
|
|
58
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
59
|
+
|
|
60
|
+
// src/components/ContentTabs.tsx
|
|
61
|
+
var ContentTabs_exports = {};
|
|
62
|
+
__export(ContentTabs_exports, {
|
|
63
|
+
ContentTabs: () => ContentTabs
|
|
64
|
+
});
|
|
65
|
+
module.exports = __toCommonJS(ContentTabs_exports);
|
|
66
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
67
|
+
var import_react2 = require("react");
|
|
68
|
+
|
|
69
|
+
// src/components/ContentTab.tsx
|
|
70
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
71
|
+
var import_react = require("react");
|
|
72
|
+
|
|
73
|
+
// src/components/Button.tsx
|
|
74
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
75
|
+
|
|
76
|
+
// src/classNames.ts
|
|
77
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
78
|
+
var typography = {
|
|
79
|
+
display1: (0, import_clsx.default)(
|
|
80
|
+
"font-sans font-semibold",
|
|
81
|
+
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
82
|
+
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
83
|
+
),
|
|
84
|
+
display2: (0, import_clsx.default)(
|
|
85
|
+
"font-sans font-bold",
|
|
86
|
+
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
87
|
+
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
88
|
+
),
|
|
89
|
+
heading1: (0, import_clsx.default)(
|
|
90
|
+
"font-sans font-semibold",
|
|
91
|
+
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
92
|
+
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
93
|
+
),
|
|
94
|
+
heading2: (0, import_clsx.default)(
|
|
95
|
+
"font-sans font-normal",
|
|
96
|
+
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
97
|
+
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
98
|
+
),
|
|
99
|
+
heading3: (0, import_clsx.default)(
|
|
100
|
+
"font-sans font-semibold",
|
|
101
|
+
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
102
|
+
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
103
|
+
),
|
|
104
|
+
subheader: (0, import_clsx.default)(
|
|
105
|
+
"font-sans font-semibold",
|
|
106
|
+
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
107
|
+
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
108
|
+
),
|
|
109
|
+
link: (0, import_clsx.default)(
|
|
110
|
+
"font-sans font-normal",
|
|
111
|
+
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
112
|
+
"leading-link-mobile desktop:leading-link-desktop"
|
|
113
|
+
),
|
|
114
|
+
buttonLabel: (0, import_clsx.default)(
|
|
115
|
+
"font-sans font-semibold",
|
|
116
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
117
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
118
|
+
),
|
|
119
|
+
label: (0, import_clsx.default)(
|
|
120
|
+
"font-sans font-semibold",
|
|
121
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
122
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
123
|
+
),
|
|
124
|
+
paragraph: (0, import_clsx.default)(
|
|
125
|
+
"font-sans font-normal",
|
|
126
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
127
|
+
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
128
|
+
),
|
|
129
|
+
caption: (0, import_clsx.default)(
|
|
130
|
+
"font-sans font-normal",
|
|
131
|
+
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
132
|
+
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
133
|
+
)
|
|
134
|
+
};
|
|
135
|
+
var baseTransition = (0, import_clsx.default)(
|
|
136
|
+
"transition-colors duration-100 ease-in-out"
|
|
137
|
+
);
|
|
138
|
+
var componentGap = (0, import_clsx.default)(
|
|
139
|
+
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
140
|
+
);
|
|
141
|
+
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
142
|
+
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
143
|
+
);
|
|
144
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
145
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
146
|
+
);
|
|
147
|
+
var componentPadding = (0, import_clsx.default)(
|
|
148
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
149
|
+
);
|
|
150
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
151
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
152
|
+
);
|
|
153
|
+
var componentPaddingY = (0, import_clsx.default)(
|
|
154
|
+
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding"
|
|
155
|
+
);
|
|
156
|
+
var componentPaddingXUsingComponentGap = (0, import_clsx.default)(
|
|
157
|
+
"px-mobile-component-gap desktop:px-desktop-component-gap compact:px-desktop-compact-component-gap"
|
|
158
|
+
);
|
|
159
|
+
var componentPaddingYUsingComponentGap = (0, import_clsx.default)(
|
|
160
|
+
"py-mobile-component-gap desktop:py-desktop-component-gap compact:py-desktop-compact-component-gap"
|
|
161
|
+
);
|
|
162
|
+
var componentPaddingMinusBorder = (0, import_clsx.default)(
|
|
163
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_1px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_1px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_1px)]"
|
|
164
|
+
);
|
|
165
|
+
var componentPaddingMinus2pxBorder = (0, import_clsx.default)(
|
|
166
|
+
"p-[calc(var(--spacing-mobile-component-padding)_-_2px)] desktop:p-[calc(var(--spacing-desktop-component-padding)_-_2px)] compact:p-[calc(var(--spacing-desktop-compact-component-padding)_-_2px)]"
|
|
167
|
+
);
|
|
168
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
169
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
170
|
+
);
|
|
171
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
172
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
173
|
+
);
|
|
174
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
175
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
176
|
+
);
|
|
177
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
178
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
179
|
+
);
|
|
180
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
181
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
182
|
+
);
|
|
183
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
184
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
185
|
+
);
|
|
186
|
+
var layoutGap = (0, import_clsx.default)(
|
|
187
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
188
|
+
);
|
|
189
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
190
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
191
|
+
);
|
|
192
|
+
|
|
193
|
+
// src/components/Button.tsx
|
|
194
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
195
|
+
var Button = (_a) => {
|
|
196
|
+
var _b = _a, {
|
|
197
|
+
variant = "primary",
|
|
198
|
+
as = "button",
|
|
199
|
+
block,
|
|
200
|
+
leftIcon,
|
|
201
|
+
rightIcon,
|
|
202
|
+
className,
|
|
203
|
+
classNameLabel,
|
|
204
|
+
disabled = false,
|
|
205
|
+
children,
|
|
206
|
+
iconOnly = false,
|
|
207
|
+
colorClassName,
|
|
208
|
+
href
|
|
209
|
+
} = _b, props = __objRest(_b, [
|
|
210
|
+
"variant",
|
|
211
|
+
"as",
|
|
212
|
+
"block",
|
|
213
|
+
"leftIcon",
|
|
214
|
+
"rightIcon",
|
|
215
|
+
"className",
|
|
216
|
+
"classNameLabel",
|
|
217
|
+
"disabled",
|
|
218
|
+
"children",
|
|
219
|
+
"iconOnly",
|
|
220
|
+
"colorClassName",
|
|
221
|
+
"href"
|
|
222
|
+
]);
|
|
223
|
+
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
224
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
225
|
+
"bg-background-action-primary-normal border-background-action-primary-normal",
|
|
226
|
+
"hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
|
|
227
|
+
"focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
|
|
228
|
+
"active:bg-background-action-primary-active active:border-background-action-primary-active",
|
|
229
|
+
"disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
230
|
+
);
|
|
231
|
+
const secondaryVariantStyles = variant === "secondary" && (0, import_clsx2.default)(
|
|
232
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
233
|
+
"bg-background-action-secondary-normal border-border-action-normal",
|
|
234
|
+
"hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
|
|
235
|
+
"focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
236
|
+
"active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
|
|
237
|
+
"disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
|
|
238
|
+
);
|
|
239
|
+
const tertiaryVariantStyles = variant === "tertiary" && (0, import_clsx2.default)(
|
|
240
|
+
"bg-transparent border-transparent",
|
|
241
|
+
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
242
|
+
"bg-transparent border-transparent",
|
|
243
|
+
"hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
244
|
+
"focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
245
|
+
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
246
|
+
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
247
|
+
);
|
|
248
|
+
const primaryCriticalVariantStyles = variant === "primary-critical" && (0, import_clsx2.default)(
|
|
249
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
250
|
+
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
251
|
+
"hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
|
|
252
|
+
"focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
|
|
253
|
+
"active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
|
|
254
|
+
"disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
255
|
+
);
|
|
256
|
+
const secondaryCriticalVariantStyles = variant === "secondary-critical" && (0, import_clsx2.default)(
|
|
257
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
258
|
+
"bg-background-action-critical-secondary-normal border-border-action-critical-normal",
|
|
259
|
+
"hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
|
|
260
|
+
"focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
261
|
+
"active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
|
|
262
|
+
"disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
|
|
263
|
+
);
|
|
264
|
+
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && (0, import_clsx2.default)(
|
|
265
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
266
|
+
"bg-transparent border-transparent text-text-action-critical-normal",
|
|
267
|
+
"hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
|
|
268
|
+
"focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
269
|
+
"active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
|
|
270
|
+
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
|
|
271
|
+
);
|
|
272
|
+
const navigationVarianStyles = variant === "navigation" && (0, import_clsx2.default)(
|
|
273
|
+
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
274
|
+
"bg-transparent",
|
|
275
|
+
"hover:bg-background-on-action-secondary-hover hover:text-brand-text-action-primary-hover",
|
|
276
|
+
// "hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover", // Will use this once colors are finalized
|
|
277
|
+
"focus:bg-background-on-action-secondary-hover focus:text-brand-text-action-primary-hover focus:outline-0",
|
|
278
|
+
// "focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover", // Will use this once colors are finalized
|
|
279
|
+
"active:bg-background-on-action-secondary-active active:text-brand-text-action-primary-active",
|
|
280
|
+
// "active:bg-background-action-secondary-active active:text-text-action-primary-active", // Will use this once colors are finalized
|
|
281
|
+
"disabled:bg-transparent disabled:text-text-on-action-primary-disabled",
|
|
282
|
+
"flex-col",
|
|
283
|
+
paddingUsingComponentGap
|
|
284
|
+
);
|
|
285
|
+
const notNavigationVariantStyles = variant !== "navigation" && (0, import_clsx2.default)("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
|
|
286
|
+
const buttonClasses = (0, import_clsx2.default)(
|
|
287
|
+
disabled ? "cursor-default" : "cursor-pointer",
|
|
288
|
+
block ? "w-full" : "w-fit",
|
|
289
|
+
baseTransition,
|
|
290
|
+
"rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
|
|
291
|
+
primaryVariantStyles,
|
|
292
|
+
secondaryVariantStyles,
|
|
293
|
+
tertiaryVariantStyles,
|
|
294
|
+
primaryCriticalVariantStyles,
|
|
295
|
+
secondaryCriticalVariantStyles,
|
|
296
|
+
tertiaryCriticalVariantStyles,
|
|
297
|
+
navigationVarianStyles,
|
|
298
|
+
notNavigationVariantStyles,
|
|
299
|
+
className
|
|
300
|
+
);
|
|
301
|
+
const labelClasses = (0, import_clsx2.default)(
|
|
302
|
+
"min-h-6 flex items-center justify-center",
|
|
303
|
+
classNameLabel,
|
|
304
|
+
componentPaddingXUsingComponentGap,
|
|
305
|
+
typography.buttonLabel
|
|
306
|
+
);
|
|
307
|
+
const Element = href ? "a" : as;
|
|
308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
309
|
+
Element,
|
|
310
|
+
__spreadProps(__spreadValues({
|
|
311
|
+
type: Element === "button" ? "button" : void 0,
|
|
312
|
+
className: buttonClasses
|
|
313
|
+
}, props), {
|
|
314
|
+
disabled,
|
|
315
|
+
href,
|
|
316
|
+
children: [
|
|
317
|
+
leftIcon && leftIcon,
|
|
318
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
|
|
319
|
+
rightIcon && rightIcon
|
|
320
|
+
]
|
|
321
|
+
})
|
|
322
|
+
);
|
|
323
|
+
};
|
|
324
|
+
Button.displayName = "Button";
|
|
325
|
+
|
|
326
|
+
// src/components/ContentTab.tsx
|
|
327
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
328
|
+
var ContentTab = (_a) => {
|
|
329
|
+
var _b = _a, {
|
|
330
|
+
label,
|
|
331
|
+
selected = false,
|
|
332
|
+
className,
|
|
333
|
+
disabled = false,
|
|
334
|
+
onClick,
|
|
335
|
+
ref
|
|
336
|
+
} = _b, props = __objRest(_b, [
|
|
337
|
+
"label",
|
|
338
|
+
"selected",
|
|
339
|
+
"className",
|
|
340
|
+
"disabled",
|
|
341
|
+
"onClick",
|
|
342
|
+
"ref"
|
|
343
|
+
]);
|
|
344
|
+
const [active, setActive] = (0, import_react.useState)(false);
|
|
345
|
+
const handleClick = (0, import_react.useCallback)(
|
|
346
|
+
(e) => {
|
|
347
|
+
if (!disabled) {
|
|
348
|
+
onClick == null ? void 0 : onClick(e);
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
[onClick, disabled]
|
|
352
|
+
);
|
|
353
|
+
const computedClassName = (0, import_clsx3.default)(
|
|
354
|
+
"absolute left-0 right-0 bottom-0 transition-colors duration-200 ease-in-out hover:bg-border-action-hover z-10",
|
|
355
|
+
"rounded-px",
|
|
356
|
+
"h-0.5",
|
|
357
|
+
active && "bg-text-action-primary-active",
|
|
358
|
+
!active && !disabled && "bg-text-action-primary-normal",
|
|
359
|
+
!active && disabled && "bg-text-action-primary-disabled",
|
|
360
|
+
className
|
|
361
|
+
);
|
|
362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "relative", children: [
|
|
363
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
364
|
+
Button,
|
|
365
|
+
__spreadProps(__spreadValues({
|
|
366
|
+
ref,
|
|
367
|
+
variant: "tertiary",
|
|
368
|
+
disabled,
|
|
369
|
+
onMouseDown: () => setActive(true),
|
|
370
|
+
onMouseLeave: () => setActive(false),
|
|
371
|
+
onMouseUp: () => setActive(false),
|
|
372
|
+
onClick: handleClick,
|
|
373
|
+
role: "tab",
|
|
374
|
+
"aria-selected": selected
|
|
375
|
+
}, props), {
|
|
376
|
+
children: label
|
|
377
|
+
})
|
|
378
|
+
),
|
|
379
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: computedClassName, children: " " })
|
|
380
|
+
] });
|
|
381
|
+
};
|
|
382
|
+
ContentTab.displayName = "ContentTab";
|
|
383
|
+
|
|
384
|
+
// src/components/ContentTabs.tsx
|
|
385
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
386
|
+
var afterClasses = "after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-border-primary-normal z-0";
|
|
387
|
+
var ContentTabs = ({ tabs, onTabChange }) => {
|
|
388
|
+
var _a, _b;
|
|
389
|
+
const [selectedTab, setSelectedTab] = (0, import_react2.useState)(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
390
|
+
const [focusedTabIndex, setFocusedTabIndex] = (0, import_react2.useState)(0);
|
|
391
|
+
const tabRefs = (0, import_react2.useRef)([]);
|
|
392
|
+
const handleTabClick = (0, import_react2.useCallback)(
|
|
393
|
+
(id, index) => {
|
|
394
|
+
setSelectedTab(id);
|
|
395
|
+
setFocusedTabIndex(index);
|
|
396
|
+
onTabChange == null ? void 0 : onTabChange(id);
|
|
397
|
+
},
|
|
398
|
+
[onTabChange]
|
|
399
|
+
);
|
|
400
|
+
const handleKeyDown = (e) => {
|
|
401
|
+
var _a2;
|
|
402
|
+
let newIndex = focusedTabIndex;
|
|
403
|
+
if (e.key === "ArrowRight") {
|
|
404
|
+
e.preventDefault();
|
|
405
|
+
newIndex = (focusedTabIndex + 1) % tabs.length;
|
|
406
|
+
} else if (e.key === "ArrowLeft") {
|
|
407
|
+
e.preventDefault();
|
|
408
|
+
newIndex = (focusedTabIndex - 1 + tabs.length) % tabs.length;
|
|
409
|
+
} else {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
const id = tabs[newIndex].id;
|
|
413
|
+
setSelectedTab(id);
|
|
414
|
+
onTabChange == null ? void 0 : onTabChange(id);
|
|
415
|
+
(_a2 = tabRefs.current[newIndex]) == null ? void 0 : _a2.focus();
|
|
416
|
+
setFocusedTabIndex(newIndex);
|
|
417
|
+
};
|
|
418
|
+
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
|
|
420
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "overflow-x-auto pb-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
421
|
+
"div",
|
|
422
|
+
{
|
|
423
|
+
role: "tablist",
|
|
424
|
+
"aria-orientation": "horizontal",
|
|
425
|
+
className: (0, import_clsx4.default)("flex relative", afterClasses),
|
|
426
|
+
onKeyDown: handleKeyDown,
|
|
427
|
+
children: tabs.map((tab, index) => {
|
|
428
|
+
const isSelected = selectedTab === tab.id;
|
|
429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
430
|
+
ContentTab,
|
|
431
|
+
{
|
|
432
|
+
id: `tab-${tab.id}`,
|
|
433
|
+
label: tab.label,
|
|
434
|
+
selected: isSelected,
|
|
435
|
+
onClick: () => handleTabClick(tab.id, index),
|
|
436
|
+
onFocus: () => {
|
|
437
|
+
setSelectedTab(tab.id);
|
|
438
|
+
setFocusedTabIndex(index);
|
|
439
|
+
onTabChange == null ? void 0 : onTabChange(tab.id);
|
|
440
|
+
},
|
|
441
|
+
className: (0, import_clsx4.default)(!isSelected && afterClasses),
|
|
442
|
+
role: "tab",
|
|
443
|
+
"aria-selected": isSelected,
|
|
444
|
+
"aria-controls": `panel-${tab.id}`,
|
|
445
|
+
tabIndex: isSelected ? 0 : -1,
|
|
446
|
+
ref: (el) => {
|
|
447
|
+
tabRefs.current[index] = el;
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
tab.id
|
|
451
|
+
);
|
|
452
|
+
})
|
|
453
|
+
}
|
|
454
|
+
) }),
|
|
455
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
456
|
+
"div",
|
|
457
|
+
{
|
|
458
|
+
id: `panel-${selectedTab}`,
|
|
459
|
+
className: "mt-2",
|
|
460
|
+
role: "tabpanel",
|
|
461
|
+
"aria-labelledby": `tab-${selectedTab}`,
|
|
462
|
+
tabIndex: 0,
|
|
463
|
+
children: selectedContent
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
] });
|
|
467
|
+
};
|
|
468
|
+
ContentTabs.displayName = "ContentTabs";
|
|
469
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
470
|
+
0 && (module.exports = {
|
|
471
|
+
ContentTabs
|
|
472
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
ContentTab
|
|
4
|
+
} from "../chunk-UU3FA6LV.js";
|
|
5
|
+
import "../chunk-KENSVWOY.js";
|
|
6
|
+
import "../chunk-KX3O6GJ6.js";
|
|
7
|
+
import "../chunk-ORMEWXMH.js";
|
|
8
|
+
|
|
9
|
+
// src/components/ContentTabs.tsx
|
|
10
|
+
import clsx from "clsx";
|
|
11
|
+
import { useState, useRef, useCallback } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var afterClasses = "after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-border-primary-normal z-0";
|
|
14
|
+
var ContentTabs = ({ tabs, onTabChange }) => {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
const [selectedTab, setSelectedTab] = useState(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
17
|
+
const [focusedTabIndex, setFocusedTabIndex] = useState(0);
|
|
18
|
+
const tabRefs = useRef([]);
|
|
19
|
+
const handleTabClick = useCallback(
|
|
20
|
+
(id, index) => {
|
|
21
|
+
setSelectedTab(id);
|
|
22
|
+
setFocusedTabIndex(index);
|
|
23
|
+
onTabChange == null ? void 0 : onTabChange(id);
|
|
24
|
+
},
|
|
25
|
+
[onTabChange]
|
|
26
|
+
);
|
|
27
|
+
const handleKeyDown = (e) => {
|
|
28
|
+
var _a2;
|
|
29
|
+
let newIndex = focusedTabIndex;
|
|
30
|
+
if (e.key === "ArrowRight") {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
newIndex = (focusedTabIndex + 1) % tabs.length;
|
|
33
|
+
} else if (e.key === "ArrowLeft") {
|
|
34
|
+
e.preventDefault();
|
|
35
|
+
newIndex = (focusedTabIndex - 1 + tabs.length) % tabs.length;
|
|
36
|
+
} else {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const id = tabs[newIndex].id;
|
|
40
|
+
setSelectedTab(id);
|
|
41
|
+
onTabChange == null ? void 0 : onTabChange(id);
|
|
42
|
+
(_a2 = tabRefs.current[newIndex]) == null ? void 0 : _a2.focus();
|
|
43
|
+
setFocusedTabIndex(newIndex);
|
|
44
|
+
};
|
|
45
|
+
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
47
|
+
/* @__PURE__ */ jsx("div", { className: "overflow-x-auto pb-2", children: /* @__PURE__ */ jsx(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
role: "tablist",
|
|
51
|
+
"aria-orientation": "horizontal",
|
|
52
|
+
className: clsx("flex relative", afterClasses),
|
|
53
|
+
onKeyDown: handleKeyDown,
|
|
54
|
+
children: tabs.map((tab, index) => {
|
|
55
|
+
const isSelected = selectedTab === tab.id;
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
ContentTab,
|
|
58
|
+
{
|
|
59
|
+
id: `tab-${tab.id}`,
|
|
60
|
+
label: tab.label,
|
|
61
|
+
selected: isSelected,
|
|
62
|
+
onClick: () => handleTabClick(tab.id, index),
|
|
63
|
+
onFocus: () => {
|
|
64
|
+
setSelectedTab(tab.id);
|
|
65
|
+
setFocusedTabIndex(index);
|
|
66
|
+
onTabChange == null ? void 0 : onTabChange(tab.id);
|
|
67
|
+
},
|
|
68
|
+
className: clsx(!isSelected && afterClasses),
|
|
69
|
+
role: "tab",
|
|
70
|
+
"aria-selected": isSelected,
|
|
71
|
+
"aria-controls": `panel-${tab.id}`,
|
|
72
|
+
tabIndex: isSelected ? 0 : -1,
|
|
73
|
+
ref: (el) => {
|
|
74
|
+
tabRefs.current[index] = el;
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
tab.id
|
|
78
|
+
);
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
) }),
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
id: `panel-${selectedTab}`,
|
|
86
|
+
className: "mt-2",
|
|
87
|
+
role: "tabpanel",
|
|
88
|
+
"aria-labelledby": `tab-${selectedTab}`,
|
|
89
|
+
tabIndex: 0,
|
|
90
|
+
children: selectedContent
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
ContentTabs.displayName = "ContentTabs";
|
|
96
|
+
export {
|
|
97
|
+
ContentTabs
|
|
98
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/DMSiLogo.tsx
|
|
21
|
+
var DMSiLogo_exports = {};
|
|
22
|
+
__export(DMSiLogo_exports, {
|
|
23
|
+
DMSiLogo: () => DMSiLogo
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(DMSiLogo_exports);
|
|
26
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
+
function DMSiLogo() {
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
29
|
+
"svg",
|
|
30
|
+
{
|
|
31
|
+
width: "107",
|
|
32
|
+
height: "24",
|
|
33
|
+
viewBox: "0 0 107 24",
|
|
34
|
+
fill: "none",
|
|
35
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
+
"path",
|
|
39
|
+
{
|
|
40
|
+
d: "M10.1472 5.86855H22.261C24.0328 5.86855 25.2192 5.79792 26.2514 7.25517C27.1489 8.60833 27.4185 9.79792 27.2105 11.4336C27.0025 13.0693 26.5596 14.2291 25.4926 15.6529C24.9996 16.3295 24.3795 16.8648 23.6284 17.2552C22.6077 17.7533 21.9529 17.6827 20.9206 17.6827H8.69893V17.6381L8.00562 23.2589H20.7704C24.2755 23.2589 27.6496 22.5228 30.4807 19.9949C33.0999 17.6827 34.6444 14.8128 35.0489 11.612C35.4918 8.12506 34.6406 5.72357 32.2948 3.3035C29.8875 0.775615 26.8793 0.362976 23.2278 0.362976H10.8328L10.1472 5.92803V5.86855Z",
|
|
41
|
+
fill: "#1D1E1E"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
+
"path",
|
|
46
|
+
{
|
|
47
|
+
d: "M45.7143 0.960477L45.3484 3.9233L45.437 3.64077C46.9276 1.46605 49.2772 0.618469 51.8771 0.618469C54.6042 0.618469 56.3567 1.62219 57.4082 3.91958C59.2263 1.53668 61.5527 0.618469 64.4531 0.618469C66.3135 0.618469 67.9544 1.16122 69.0868 2.45862C70.485 4.04598 70.2192 6.1352 69.9342 8.3917L68.0083 23.2356H60.5705L62.3462 9.28018C62.5234 7.901 62.5041 6.35453 60.5128 6.35453C58.0862 6.35453 57.6085 8.52925 57.389 10.2393L55.7366 23.2319H48.2025L49.9782 9.27646C50.1477 7.93817 49.9897 6.22442 48.1255 6.22442C46.0918 6.22442 45.4408 7.6891 45.2367 9.27646L43.461 23.2319H35.3453L38.2072 0.960477H45.7143Z",
|
|
48
|
+
fill: "#1D1E1E"
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
d: "M97.4234 0.336578L96.6954 6.39234H103.474L96.2755 9.54104L94.5076 23.2734H103.255L106.175 0.336578H97.4234Z",
|
|
55
|
+
fill: "#1D1E1E"
|
|
56
|
+
}
|
|
57
|
+
),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
59
|
+
"path",
|
|
60
|
+
{
|
|
61
|
+
d: "M91.03 10.4126C89.3545 9.34573 86.6082 9.04833 84.6092 8.79182C83.9158 8.70632 83.1339 8.49814 82.4059 8.29368C82.1286 8.23792 81.8705 8.16729 81.6317 8.07807C81.5431 8.05204 81.443 8.02231 81.3583 8C81.1618 7.95539 80.9461 7.81041 80.7535 7.61338C80.353 7.30855 80.1141 6.94424 80.1141 6.54647C80.1141 6.35688 80.1835 6.17844 80.2836 6.00372C80.2952 5.98513 80.3029 5.97026 80.3144 5.95167C80.7921 5.20446 82.1248 4.66543 83.7117 4.66543C85.626 4.66543 87.1821 5.44981 87.29 6.43866H94.7393C93.7571 2.34572 89.0772 0 84.8326 0C82.3135 0 79.1204 0.342007 76.7439 1.66171C74.4598 2.94052 72.8228 4.66914 72.5069 7.14126C71.7674 12.9405 77.1945 14.026 81.8436 14.6654C82.1017 14.6952 82.6062 14.8141 83.157 15.0037C84.5976 15.2974 85.6183 16.026 85.6183 16.8848C85.6183 17.8773 84.2509 18.6989 82.4522 18.8699C82.2442 18.9145 82.0593 18.9368 81.9168 18.9368C80.7689 18.9368 79.987 18.8625 79.4131 18.487C78.689 18.197 78.1613 17.777 77.9726 17.29H70.165C71.205 22.3234 75.8387 24 80.534 24C85.6145 24 92.6747 22.2491 93.4412 16.2342C93.6801 14.3494 93.0099 11.7286 91.0378 10.4089L91.03 10.4126Z",
|
|
62
|
+
fill: "#1D1E1E"
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
d: "M1.85771 9.54941H16.9027L0.825439 16.9174L1.85771 9.54941Z",
|
|
69
|
+
fill: "#0077C8"
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
77
|
+
0 && (module.exports = {
|
|
78
|
+
DMSiLogo
|
|
79
|
+
});
|