@dmsi/wedgekit-react 0.0.46 → 0.0.48
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-XIEG2XMD.js → chunk-4EPPG7SE.js} +1 -1
- package/dist/{chunk-KXUUKAQM.js → chunk-K27465U2.js} +6 -0
- package/dist/{chunk-INYI65WW.js → chunk-S3CQ5VFT.js} +7 -1
- package/dist/components/AccessChangerTabItem.cjs +329 -0
- package/dist/components/AccessChangerTabItem.js +72 -0
- package/dist/components/ContentTab.cjs +7 -1
- package/dist/components/ContentTab.js +1 -1
- package/dist/components/ContentTabs.cjs +9 -2
- package/dist/components/ContentTabs.js +3 -2
- package/dist/components/DataGrid.js +11 -11
- package/dist/components/DataGridCell.js +3 -3
- package/dist/components/DateInput.cjs +5 -1
- package/dist/components/DateInput.js +5 -1
- package/dist/components/FilterGroup.js +4 -4
- package/dist/components/MenuOption.js +2 -2
- package/dist/components/MobileDataGrid.cjs +6 -0
- package/dist/components/MobileDataGrid.js +4 -4
- package/dist/components/Modal.js +3 -3
- package/dist/components/NestedMenu.js +2 -2
- package/dist/components/Notification.cjs +6 -0
- package/dist/components/Notification.js +4 -4
- package/dist/components/SideMenuGroup.cjs +6 -0
- package/dist/components/SideMenuGroup.js +1 -1
- package/dist/components/SideMenuItem.cjs +6 -0
- package/dist/components/SideMenuItem.js +1 -1
- package/dist/components/Stack.cjs +6 -0
- package/dist/components/Stack.js +1 -1
- package/dist/components/Swatch.cjs +6 -0
- package/dist/components/Swatch.js +1 -1
- package/dist/components/Time.cjs +6 -0
- package/dist/components/Time.js +1 -1
- package/dist/components/Toast.js +3 -3
- package/dist/index.css +24 -0
- package/package.json +1 -1
- package/src/components/AccessChangerTabItem.tsx +56 -0
- package/src/components/ContentTab.tsx +7 -1
- package/src/components/ContentTabs.tsx +3 -1
- package/src/components/DateInput.tsx +19 -14
- package/src/components/Stack.tsx +14 -0
- package/dist/{chunk-S46RZBT4.js → chunk-T22EH3MG.js} +3 -3
|
@@ -38,6 +38,7 @@ var Stack = (_a) => {
|
|
|
38
38
|
grow,
|
|
39
39
|
padding,
|
|
40
40
|
paddingX,
|
|
41
|
+
paddingY,
|
|
41
42
|
margin,
|
|
42
43
|
marginX,
|
|
43
44
|
marginY,
|
|
@@ -72,6 +73,7 @@ var Stack = (_a) => {
|
|
|
72
73
|
"grow",
|
|
73
74
|
"padding",
|
|
74
75
|
"paddingX",
|
|
76
|
+
"paddingY",
|
|
75
77
|
"margin",
|
|
76
78
|
"marginX",
|
|
77
79
|
"marginY",
|
|
@@ -142,6 +144,10 @@ var Stack = (_a) => {
|
|
|
142
144
|
paddingX && sizing === "layout" && "px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding",
|
|
143
145
|
paddingX && sizing === "layout-group" && "px-mobile-layout-group-padding desktop:px-desktop-layout-group-padding compact:px-desktop-compact-layout-group-padding",
|
|
144
146
|
paddingX && sizing === "component" && "px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
147
|
+
paddingY && sizing === "container" && "py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding",
|
|
148
|
+
paddingY && sizing === "layout" && "py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding",
|
|
149
|
+
paddingY && sizing === "layout-group" && "py-mobile-layout-group-padding desktop:py-desktop-layout-group-padding compact:py-desktop-compact-layout-group-padding",
|
|
150
|
+
paddingY && sizing === "component" && "py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
145
151
|
margin && sizing === "container" && "m-mobile-container-padding desktop:m-desktop-container-padding compact:m-compact-container-padding",
|
|
146
152
|
marginX && sizing === "container" && "mx-mobile-container-padding desktop:mx-desktop-container-padding compact:mx-compact-container-padding",
|
|
147
153
|
marginTop && sizing === "container" && "mt-mobile-container-padding desktop:mt-desktop-container-padding compact:mt-compact-container-padding",
|
|
@@ -19,6 +19,7 @@ var ContentTab = (_a) => {
|
|
|
19
19
|
disabled = false,
|
|
20
20
|
onClick,
|
|
21
21
|
ref,
|
|
22
|
+
fullWidth,
|
|
22
23
|
id
|
|
23
24
|
} = _b, props = __objRest(_b, [
|
|
24
25
|
"label",
|
|
@@ -27,6 +28,7 @@ var ContentTab = (_a) => {
|
|
|
27
28
|
"disabled",
|
|
28
29
|
"onClick",
|
|
29
30
|
"ref",
|
|
31
|
+
"fullWidth",
|
|
30
32
|
"id"
|
|
31
33
|
]);
|
|
32
34
|
const [active, setActive] = useState(false);
|
|
@@ -47,11 +49,15 @@ var ContentTab = (_a) => {
|
|
|
47
49
|
!active && disabled && "bg-text-action-primary-disabled",
|
|
48
50
|
className
|
|
49
51
|
);
|
|
50
|
-
return /* @__PURE__ */ jsxs("div", { id, className:
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", { id, className: clsx(
|
|
53
|
+
"relative",
|
|
54
|
+
fullWidth && "flex-1"
|
|
55
|
+
), children: [
|
|
51
56
|
/* @__PURE__ */ jsx(
|
|
52
57
|
Button,
|
|
53
58
|
__spreadProps(__spreadValues({
|
|
54
59
|
id: id ? `${id}-button` : void 0,
|
|
60
|
+
block: fullWidth,
|
|
55
61
|
ref,
|
|
56
62
|
variant: "tertiary",
|
|
57
63
|
disabled,
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
var __export = (target, all) => {
|
|
38
|
+
for (var name in all)
|
|
39
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
40
|
+
};
|
|
41
|
+
var __copyProps = (to, from, except, desc) => {
|
|
42
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
43
|
+
for (let key of __getOwnPropNames(from))
|
|
44
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
45
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
46
|
+
}
|
|
47
|
+
return to;
|
|
48
|
+
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
57
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
|
+
|
|
59
|
+
// src/components/AccessChangerTabItem.tsx
|
|
60
|
+
var AccessChangerTabItem_exports = {};
|
|
61
|
+
__export(AccessChangerTabItem_exports, {
|
|
62
|
+
AccessChangerTabItem: () => AccessChangerTabItem
|
|
63
|
+
});
|
|
64
|
+
module.exports = __toCommonJS(AccessChangerTabItem_exports);
|
|
65
|
+
var import_clsx4 = __toESM(require("clsx"), 1);
|
|
66
|
+
|
|
67
|
+
// src/components/Subheader.tsx
|
|
68
|
+
var import_clsx2 = __toESM(require("clsx"), 1);
|
|
69
|
+
|
|
70
|
+
// src/classNames.ts
|
|
71
|
+
var import_clsx = __toESM(require("clsx"), 1);
|
|
72
|
+
var typography = {
|
|
73
|
+
display1: (0, import_clsx.default)(
|
|
74
|
+
"font-sans font-semibold",
|
|
75
|
+
"text-display-1-mobile desktop:text-display-1-desktop compact:text-display-1-desktop-compact",
|
|
76
|
+
"leading-display-1-mobile desktop:leading-display-1-desktop"
|
|
77
|
+
),
|
|
78
|
+
display2: (0, import_clsx.default)(
|
|
79
|
+
"font-sans font-bold",
|
|
80
|
+
"text-display-2-mobile desktop:text-display-2-desktop compact:text-display-2-desktop-compact",
|
|
81
|
+
"leading-display-2-mobile desktop:leading-display-2-desktop"
|
|
82
|
+
),
|
|
83
|
+
heading1: (0, import_clsx.default)(
|
|
84
|
+
"font-sans font-semibold",
|
|
85
|
+
"text-heading-1-mobile desktop:text-heading-1-desktop compact:text-heading-1-desktop-compact",
|
|
86
|
+
"leading-heading-1-mobile desktop:leading-heading-1-desktop"
|
|
87
|
+
),
|
|
88
|
+
heading2: (0, import_clsx.default)(
|
|
89
|
+
"font-sans font-normal",
|
|
90
|
+
"text-heading-2-mobile desktop:text-heading-2-desktop compact:text-heading-2-desktop-compact",
|
|
91
|
+
"leading-heading-2-mobile desktop:leading-heading-2-desktop"
|
|
92
|
+
),
|
|
93
|
+
heading3: (0, import_clsx.default)(
|
|
94
|
+
"font-sans font-semibold",
|
|
95
|
+
"text-heading-3-mobile desktop:text-heading-3-desktop compact:text-heading-3-desktop-compact",
|
|
96
|
+
"leading-heading-3-mobile desktop:leading-heading-3-desktop"
|
|
97
|
+
),
|
|
98
|
+
subheader: (0, import_clsx.default)(
|
|
99
|
+
"font-sans font-semibold",
|
|
100
|
+
"text-subheader-mobile desktop:text-subheader-desktop compact:text-subheader-desktop-compact",
|
|
101
|
+
"leading-subheader-mobile desktop:leading-subheader-desktop"
|
|
102
|
+
),
|
|
103
|
+
link: (0, import_clsx.default)(
|
|
104
|
+
"font-sans font-normal",
|
|
105
|
+
"text-link-mobile desktop:text-link-desktop compact:text-link-desktop-compact",
|
|
106
|
+
"leading-link-mobile desktop:leading-link-desktop"
|
|
107
|
+
),
|
|
108
|
+
buttonLabel: (0, import_clsx.default)(
|
|
109
|
+
"font-sans font-semibold",
|
|
110
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
111
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
112
|
+
),
|
|
113
|
+
label: (0, import_clsx.default)(
|
|
114
|
+
"font-sans font-semibold",
|
|
115
|
+
"text-label-mobile desktop:text-label-desktop compact:text-label-desktop-compact",
|
|
116
|
+
"leading-label-mobile desktop:leading-label-desktop"
|
|
117
|
+
),
|
|
118
|
+
paragraph: (0, import_clsx.default)(
|
|
119
|
+
"font-sans font-normal",
|
|
120
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
121
|
+
"leading-paragraph-mobile desktop:leading-paragraph-desktop"
|
|
122
|
+
),
|
|
123
|
+
caption: (0, import_clsx.default)(
|
|
124
|
+
"font-sans font-normal",
|
|
125
|
+
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
126
|
+
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
127
|
+
)
|
|
128
|
+
};
|
|
129
|
+
var baseTransition = (0, import_clsx.default)(
|
|
130
|
+
"transition-colors duration-100 ease-in-out"
|
|
131
|
+
);
|
|
132
|
+
var componentGap = (0, import_clsx.default)(
|
|
133
|
+
"gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-desktop-compact-component-gap"
|
|
134
|
+
);
|
|
135
|
+
var paddingUsingComponentGap = (0, import_clsx.default)(
|
|
136
|
+
"p-mobile-component-gap desktop:p-desktop-component-gap compact:p-desktop-compact-component-gap"
|
|
137
|
+
);
|
|
138
|
+
var paddingXUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
139
|
+
"px-mobile-layout-group-gap desktop:px-desktop-layout-group-gap compact:px-desktop-compact-layout-group-gap"
|
|
140
|
+
);
|
|
141
|
+
var paddingYUsingLayoutGroupGap = (0, import_clsx.default)(
|
|
142
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
143
|
+
);
|
|
144
|
+
var componentPadding = (0, import_clsx.default)(
|
|
145
|
+
"p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
|
|
146
|
+
);
|
|
147
|
+
var componentPaddingBottom = (0, import_clsx.default)(
|
|
148
|
+
"pb-mobile-component-padding desktop:pb-desktop-component-padding compact:pb-desktop-compact-component-padding"
|
|
149
|
+
);
|
|
150
|
+
var componentPaddingX = (0, import_clsx.default)(
|
|
151
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-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 layoutPaddding = (0, import_clsx.default)(
|
|
169
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
170
|
+
);
|
|
171
|
+
var layoutPaddingBottom = (0, import_clsx.default)(
|
|
172
|
+
"pb-mobile-layout-padding desktop:pb-desktop-layout-padding compact:pb-desktop-compact-layout-padding"
|
|
173
|
+
);
|
|
174
|
+
var layoutPaddingY = (0, import_clsx.default)(
|
|
175
|
+
"py-mobile-layout-padding desktop:py-desktop-layout-padding compact:py-desktop-compact-layout-padding"
|
|
176
|
+
);
|
|
177
|
+
var containerPaddingX = (0, import_clsx.default)(
|
|
178
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding"
|
|
179
|
+
);
|
|
180
|
+
var containerPaddingY = (0, import_clsx.default)(
|
|
181
|
+
"py-mobile-container-padding desktop:py-desktop-container-padding compact:py-desktop-compact-container-padding"
|
|
182
|
+
);
|
|
183
|
+
var layoutGroupGapPaddingY = (0, import_clsx.default)(
|
|
184
|
+
"py-mobile-layout-group-gap desktop:py-desktop-layout-group-gap compact:py-desktop-compact-layout-group-gap"
|
|
185
|
+
);
|
|
186
|
+
var layoutGroupGap = (0, import_clsx.default)(
|
|
187
|
+
"gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-desktop-compact-layout-group-gap"
|
|
188
|
+
);
|
|
189
|
+
var layoutGap = (0, import_clsx.default)(
|
|
190
|
+
"gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap"
|
|
191
|
+
);
|
|
192
|
+
var gapUsingContainerPadding = (0, import_clsx.default)(
|
|
193
|
+
"gap-mobile-container-padding desktop:gap-desktop-container-padding compact:gap-desktop-compact-container-padding"
|
|
194
|
+
);
|
|
195
|
+
|
|
196
|
+
// src/components/Subheader.tsx
|
|
197
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
198
|
+
var Subheader = (_a) => {
|
|
199
|
+
var _b = _a, {
|
|
200
|
+
className,
|
|
201
|
+
children,
|
|
202
|
+
as = "span",
|
|
203
|
+
align,
|
|
204
|
+
color,
|
|
205
|
+
tall,
|
|
206
|
+
id
|
|
207
|
+
} = _b, props = __objRest(_b, [
|
|
208
|
+
"className",
|
|
209
|
+
"children",
|
|
210
|
+
"as",
|
|
211
|
+
"align",
|
|
212
|
+
"color",
|
|
213
|
+
"tall",
|
|
214
|
+
"id"
|
|
215
|
+
]);
|
|
216
|
+
const Element = as;
|
|
217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
218
|
+
Element,
|
|
219
|
+
__spreadProps(__spreadValues({
|
|
220
|
+
id,
|
|
221
|
+
className: (0, import_clsx2.default)(
|
|
222
|
+
typography.subheader,
|
|
223
|
+
className,
|
|
224
|
+
align === "left" && "text-left",
|
|
225
|
+
align === "center" && "text-center",
|
|
226
|
+
align === "right" && "text-right",
|
|
227
|
+
tall && "!leading-6"
|
|
228
|
+
),
|
|
229
|
+
style: __spreadProps(__spreadValues({}, props.style), {
|
|
230
|
+
color: color ? `var(--color-${color})` : void 0
|
|
231
|
+
})
|
|
232
|
+
}, props), {
|
|
233
|
+
children
|
|
234
|
+
})
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
Subheader.displayName = "Subheader";
|
|
238
|
+
|
|
239
|
+
// src/components/Icon.tsx
|
|
240
|
+
var import_clsx3 = __toESM(require("clsx"), 1);
|
|
241
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
242
|
+
function Icon(_a) {
|
|
243
|
+
var _b = _a, {
|
|
244
|
+
name,
|
|
245
|
+
size = 24,
|
|
246
|
+
variant = "outline"
|
|
247
|
+
} = _b, props = __objRest(_b, [
|
|
248
|
+
"name",
|
|
249
|
+
"size",
|
|
250
|
+
"variant"
|
|
251
|
+
]);
|
|
252
|
+
const variantStyle = variant === "filled" ? '"FILL" 1' : '"FILL" 0';
|
|
253
|
+
const weightStyle = size === 16 ? '"wght" 400' : '"wght" 300';
|
|
254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
255
|
+
"span",
|
|
256
|
+
__spreadProps(__spreadValues({}, props), {
|
|
257
|
+
className: (0, import_clsx3.default)(
|
|
258
|
+
"icon",
|
|
259
|
+
`icon-${size}`,
|
|
260
|
+
// size === 16 ? "font-normal" : "font-light", // size 16 font weight is not working as normal from before
|
|
261
|
+
props.className
|
|
262
|
+
),
|
|
263
|
+
style: __spreadValues({
|
|
264
|
+
fontVariationSettings: variantStyle + `, ${weightStyle}`
|
|
265
|
+
}, props.style),
|
|
266
|
+
children: name
|
|
267
|
+
})
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// src/components/AccessChangerTabItem.tsx
|
|
272
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
273
|
+
function AccessChangerTabItem(props) {
|
|
274
|
+
const _a = props, {
|
|
275
|
+
additionalText,
|
|
276
|
+
borderTop,
|
|
277
|
+
borderBottom,
|
|
278
|
+
selected,
|
|
279
|
+
children,
|
|
280
|
+
loading,
|
|
281
|
+
disabled,
|
|
282
|
+
onClick
|
|
283
|
+
} = _a, rest = __objRest(_a, [
|
|
284
|
+
"additionalText",
|
|
285
|
+
"borderTop",
|
|
286
|
+
"borderBottom",
|
|
287
|
+
"selected",
|
|
288
|
+
"children",
|
|
289
|
+
"loading",
|
|
290
|
+
"disabled",
|
|
291
|
+
"onClick"
|
|
292
|
+
]);
|
|
293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
294
|
+
"div",
|
|
295
|
+
__spreadProps(__spreadValues({
|
|
296
|
+
className: (0, import_clsx4.default)(
|
|
297
|
+
"flex items-center justify-between",
|
|
298
|
+
"py-[15px] px-4 gap-4",
|
|
299
|
+
"bg-background-grouped-primary-normal cursor-pointer",
|
|
300
|
+
borderTop && "border-t",
|
|
301
|
+
borderBottom && "border-b",
|
|
302
|
+
borderTop || borderBottom ? "border-border-primary-normal" : "border-transparent",
|
|
303
|
+
selected ? "text-text-action-primary-normal" : "text-text-primary-normal hover:text-text-action-primary-normal"
|
|
304
|
+
),
|
|
305
|
+
onClick: (e) => {
|
|
306
|
+
if (selected || loading || disabled) {
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
onClick == null ? void 0 : onClick(e);
|
|
310
|
+
}
|
|
311
|
+
}, rest), {
|
|
312
|
+
children: [
|
|
313
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-col gap-0.5", children: [
|
|
314
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Subheader, { children }),
|
|
315
|
+
additionalText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "text-text-primary-normal text-[13px] leading-[1.38462] font-normal", children: additionalText })
|
|
316
|
+
] }),
|
|
317
|
+
loading && !selected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "cached", size: 16 }),
|
|
318
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
319
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "rounded-full size-2 bg-text-action-primary-normal" }),
|
|
320
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Subheader, { children: "Active" })
|
|
321
|
+
] })
|
|
322
|
+
]
|
|
323
|
+
})
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
327
|
+
0 && (module.exports = {
|
|
328
|
+
AccessChangerTabItem
|
|
329
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Subheader
|
|
3
|
+
} from "../chunk-O4M2GISS.js";
|
|
4
|
+
import {
|
|
5
|
+
Icon
|
|
6
|
+
} from "../chunk-IGQVA7SC.js";
|
|
7
|
+
import "../chunk-RDLEIAQU.js";
|
|
8
|
+
import {
|
|
9
|
+
__objRest,
|
|
10
|
+
__spreadProps,
|
|
11
|
+
__spreadValues
|
|
12
|
+
} from "../chunk-ORMEWXMH.js";
|
|
13
|
+
|
|
14
|
+
// src/components/AccessChangerTabItem.tsx
|
|
15
|
+
import clsx from "clsx";
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
function AccessChangerTabItem(props) {
|
|
18
|
+
const _a = props, {
|
|
19
|
+
additionalText,
|
|
20
|
+
borderTop,
|
|
21
|
+
borderBottom,
|
|
22
|
+
selected,
|
|
23
|
+
children,
|
|
24
|
+
loading,
|
|
25
|
+
disabled,
|
|
26
|
+
onClick
|
|
27
|
+
} = _a, rest = __objRest(_a, [
|
|
28
|
+
"additionalText",
|
|
29
|
+
"borderTop",
|
|
30
|
+
"borderBottom",
|
|
31
|
+
"selected",
|
|
32
|
+
"children",
|
|
33
|
+
"loading",
|
|
34
|
+
"disabled",
|
|
35
|
+
"onClick"
|
|
36
|
+
]);
|
|
37
|
+
return /* @__PURE__ */ jsxs(
|
|
38
|
+
"div",
|
|
39
|
+
__spreadProps(__spreadValues({
|
|
40
|
+
className: clsx(
|
|
41
|
+
"flex items-center justify-between",
|
|
42
|
+
"py-[15px] px-4 gap-4",
|
|
43
|
+
"bg-background-grouped-primary-normal cursor-pointer",
|
|
44
|
+
borderTop && "border-t",
|
|
45
|
+
borderBottom && "border-b",
|
|
46
|
+
borderTop || borderBottom ? "border-border-primary-normal" : "border-transparent",
|
|
47
|
+
selected ? "text-text-action-primary-normal" : "text-text-primary-normal hover:text-text-action-primary-normal"
|
|
48
|
+
),
|
|
49
|
+
onClick: (e) => {
|
|
50
|
+
if (selected || loading || disabled) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
onClick == null ? void 0 : onClick(e);
|
|
54
|
+
}
|
|
55
|
+
}, rest), {
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
58
|
+
/* @__PURE__ */ jsx(Subheader, { children }),
|
|
59
|
+
additionalText && /* @__PURE__ */ jsx("p", { className: "text-text-primary-normal text-[13px] leading-[1.38462] font-normal", children: additionalText })
|
|
60
|
+
] }),
|
|
61
|
+
loading && !selected && /* @__PURE__ */ jsx(Icon, { name: "cached", size: 16 }),
|
|
62
|
+
selected && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
63
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-full size-2 bg-text-action-primary-normal" }),
|
|
64
|
+
/* @__PURE__ */ jsx(Subheader, { children: "Active" })
|
|
65
|
+
] })
|
|
66
|
+
]
|
|
67
|
+
})
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
AccessChangerTabItem
|
|
72
|
+
};
|
|
@@ -341,6 +341,7 @@ var ContentTab = (_a) => {
|
|
|
341
341
|
disabled = false,
|
|
342
342
|
onClick,
|
|
343
343
|
ref,
|
|
344
|
+
fullWidth,
|
|
344
345
|
id
|
|
345
346
|
} = _b, props = __objRest(_b, [
|
|
346
347
|
"label",
|
|
@@ -349,6 +350,7 @@ var ContentTab = (_a) => {
|
|
|
349
350
|
"disabled",
|
|
350
351
|
"onClick",
|
|
351
352
|
"ref",
|
|
353
|
+
"fullWidth",
|
|
352
354
|
"id"
|
|
353
355
|
]);
|
|
354
356
|
const [active, setActive] = (0, import_react.useState)(false);
|
|
@@ -369,11 +371,15 @@ var ContentTab = (_a) => {
|
|
|
369
371
|
!active && disabled && "bg-text-action-primary-disabled",
|
|
370
372
|
className
|
|
371
373
|
);
|
|
372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className:
|
|
374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className: (0, import_clsx3.default)(
|
|
375
|
+
"relative",
|
|
376
|
+
fullWidth && "flex-1"
|
|
377
|
+
), children: [
|
|
373
378
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
374
379
|
Button,
|
|
375
380
|
__spreadProps(__spreadValues({
|
|
376
381
|
id: id ? `${id}-button` : void 0,
|
|
382
|
+
block: fullWidth,
|
|
377
383
|
ref,
|
|
378
384
|
variant: "tertiary",
|
|
379
385
|
disabled,
|
|
@@ -345,6 +345,7 @@ var ContentTab = (_a) => {
|
|
|
345
345
|
disabled = false,
|
|
346
346
|
onClick,
|
|
347
347
|
ref,
|
|
348
|
+
fullWidth,
|
|
348
349
|
id
|
|
349
350
|
} = _b, props = __objRest(_b, [
|
|
350
351
|
"label",
|
|
@@ -353,6 +354,7 @@ var ContentTab = (_a) => {
|
|
|
353
354
|
"disabled",
|
|
354
355
|
"onClick",
|
|
355
356
|
"ref",
|
|
357
|
+
"fullWidth",
|
|
356
358
|
"id"
|
|
357
359
|
]);
|
|
358
360
|
const [active, setActive] = (0, import_react.useState)(false);
|
|
@@ -373,11 +375,15 @@ var ContentTab = (_a) => {
|
|
|
373
375
|
!active && disabled && "bg-text-action-primary-disabled",
|
|
374
376
|
className
|
|
375
377
|
);
|
|
376
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className:
|
|
378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { id, className: (0, import_clsx3.default)(
|
|
379
|
+
"relative",
|
|
380
|
+
fullWidth && "flex-1"
|
|
381
|
+
), children: [
|
|
377
382
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
378
383
|
Button,
|
|
379
384
|
__spreadProps(__spreadValues({
|
|
380
385
|
id: id ? `${id}-button` : void 0,
|
|
386
|
+
block: fullWidth,
|
|
381
387
|
ref,
|
|
382
388
|
variant: "tertiary",
|
|
383
389
|
disabled,
|
|
@@ -406,7 +412,7 @@ ContentTab.displayName = "ContentTab";
|
|
|
406
412
|
// src/components/ContentTabs.tsx
|
|
407
413
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
408
414
|
var afterClasses = "after:absolute after:bottom-0 after:left-0 after:w-full after:h-0.5 after:bg-border-primary-normal z-0";
|
|
409
|
-
var ContentTabs = ({ tabs, onTabChange, id }) => {
|
|
415
|
+
var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id }) => {
|
|
410
416
|
var _a, _b;
|
|
411
417
|
const [selectedTab, setSelectedTab] = (0, import_react2.useState)(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
412
418
|
const [focusedTabIndex, setFocusedTabIndex] = (0, import_react2.useState)(0);
|
|
@@ -452,6 +458,7 @@ var ContentTabs = ({ tabs, onTabChange, id }) => {
|
|
|
452
458
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
453
459
|
ContentTab,
|
|
454
460
|
{
|
|
461
|
+
fullWidth: fullWidthTabs,
|
|
455
462
|
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
456
463
|
label: tab.label,
|
|
457
464
|
selected: isSelected,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
ContentTab
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-S3CQ5VFT.js";
|
|
5
5
|
import "../chunk-MZJS2ZAU.js";
|
|
6
6
|
import "../chunk-RDLEIAQU.js";
|
|
7
7
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -11,7 +11,7 @@ import clsx from "clsx";
|
|
|
11
11
|
import { useState, useRef, useCallback } from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
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, id }) => {
|
|
14
|
+
var ContentTabs = ({ tabs, onTabChange, fullWidthTabs, id }) => {
|
|
15
15
|
var _a, _b;
|
|
16
16
|
const [selectedTab, setSelectedTab] = useState(((_a = tabs[0]) == null ? void 0 : _a.id) || "");
|
|
17
17
|
const [focusedTabIndex, setFocusedTabIndex] = useState(0);
|
|
@@ -57,6 +57,7 @@ var ContentTabs = ({ tabs, onTabChange, id }) => {
|
|
|
57
57
|
return /* @__PURE__ */ jsx(
|
|
58
58
|
ContentTab,
|
|
59
59
|
{
|
|
60
|
+
fullWidth: fullWidthTabs,
|
|
60
61
|
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
61
62
|
label: tab.label,
|
|
62
63
|
selected: isSelected,
|
|
@@ -5,29 +5,32 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
useInfiniteScroll
|
|
7
7
|
} from "../chunk-AWQSSKCK.js";
|
|
8
|
-
import {
|
|
9
|
-
Subheader
|
|
10
|
-
} from "../chunk-O4M2GISS.js";
|
|
11
8
|
import {
|
|
12
9
|
Select
|
|
13
10
|
} from "../chunk-2BVSUYXU.js";
|
|
11
|
+
import {
|
|
12
|
+
Checkbox
|
|
13
|
+
} from "../chunk-WT5XXW6G.js";
|
|
14
14
|
import {
|
|
15
15
|
DataCellHeader,
|
|
16
16
|
DataGridCell,
|
|
17
17
|
DragAlongCell,
|
|
18
18
|
DraggableCellHeader
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-4EPPG7SE.js";
|
|
20
20
|
import {
|
|
21
21
|
Menu
|
|
22
22
|
} from "../chunk-VC3R5EUH.js";
|
|
23
23
|
import "../chunk-Z4UCFUF7.js";
|
|
24
24
|
import {
|
|
25
25
|
MenuOption
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-T22EH3MG.js";
|
|
27
27
|
import "../chunk-SEKKGFM6.js";
|
|
28
28
|
import {
|
|
29
29
|
Search
|
|
30
30
|
} from "../chunk-SGQWENE2.js";
|
|
31
|
+
import {
|
|
32
|
+
Paragraph
|
|
33
|
+
} from "../chunk-VG4EPHJA.js";
|
|
31
34
|
import "../chunk-WVUIIBRR.js";
|
|
32
35
|
import "../chunk-4T7F5BZZ.js";
|
|
33
36
|
import {
|
|
@@ -36,15 +39,12 @@ import {
|
|
|
36
39
|
import {
|
|
37
40
|
Label
|
|
38
41
|
} from "../chunk-S5K22XTH.js";
|
|
42
|
+
import {
|
|
43
|
+
Subheader
|
|
44
|
+
} from "../chunk-O4M2GISS.js";
|
|
39
45
|
import {
|
|
40
46
|
Button
|
|
41
47
|
} from "../chunk-MZJS2ZAU.js";
|
|
42
|
-
import {
|
|
43
|
-
Checkbox
|
|
44
|
-
} from "../chunk-WT5XXW6G.js";
|
|
45
|
-
import {
|
|
46
|
-
Paragraph
|
|
47
|
-
} from "../chunk-VG4EPHJA.js";
|
|
48
48
|
import {
|
|
49
49
|
Icon
|
|
50
50
|
} from "../chunk-IGQVA7SC.js";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
DataGridCell,
|
|
5
5
|
DragAlongCell,
|
|
6
6
|
DraggableCellHeader
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-4EPPG7SE.js";
|
|
8
8
|
import "../chunk-VC3R5EUH.js";
|
|
9
9
|
import "../chunk-Z4UCFUF7.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-T22EH3MG.js";
|
|
11
11
|
import "../chunk-SEKKGFM6.js";
|
|
12
12
|
import "../chunk-SGQWENE2.js";
|
|
13
|
+
import "../chunk-VG4EPHJA.js";
|
|
13
14
|
import "../chunk-WVUIIBRR.js";
|
|
14
15
|
import "../chunk-4T7F5BZZ.js";
|
|
15
16
|
import "../chunk-724LJWFR.js";
|
|
16
17
|
import "../chunk-S5K22XTH.js";
|
|
17
|
-
import "../chunk-VG4EPHJA.js";
|
|
18
18
|
import "../chunk-IGQVA7SC.js";
|
|
19
19
|
import "../chunk-RDLEIAQU.js";
|
|
20
20
|
import "../chunk-ORMEWXMH.js";
|
|
@@ -1246,7 +1246,11 @@ var DateInput = (_a) => {
|
|
|
1246
1246
|
setInputValue(formattedValue);
|
|
1247
1247
|
requestAnimationFrame(() => {
|
|
1248
1248
|
if (triggerRef.current) {
|
|
1249
|
-
const newPosition = calculateCursorPosition(
|
|
1249
|
+
const newPosition = calculateCursorPosition(
|
|
1250
|
+
rawValue,
|
|
1251
|
+
formattedValue,
|
|
1252
|
+
cursorPosition
|
|
1253
|
+
);
|
|
1250
1254
|
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
1251
1255
|
}
|
|
1252
1256
|
});
|