@duskmoon-dev/components 0.1.2 → 0.2.0
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 +1 -0
- package/dist/classes/app.d.ts +2 -2
- package/dist/classes/auto-complete.d.ts +4 -2
- package/dist/classes/checkbox.d.ts +9 -5
- package/dist/classes/color-picker.d.ts +2 -1
- package/dist/classes/dm-drawer.d.ts +1 -1
- package/dist/classes/dm-toolbar.d.ts +1 -1
- package/dist/classes/index.js +35 -22
- package/dist/components/alert/index.js +3 -3
- package/dist/components/app/index.js +3 -10
- package/dist/components/auto-complete/AutoComplete.types.d.ts +2 -0
- package/dist/components/auto-complete/index.js +14 -8
- package/dist/components/cascader/index.js +10 -1
- package/dist/components/checkbox/index.js +10 -21
- package/dist/components/col/index.d.ts +1 -1
- package/dist/components/collapse/index.js +3 -1
- package/dist/components/color-picker/index.js +6 -2
- package/dist/components/date-picker/DatePicker.types.d.ts +4 -1
- package/dist/components/date-picker/index.js +1 -2
- package/dist/components/descriptions/index.js +10 -1
- package/dist/components/dm-date-picker/index.js +1 -2
- package/dist/components/dm-drawer/index.js +1 -3
- package/dist/components/dm-page-header/index.js +1 -3
- package/dist/components/dm-pro-table/index.js +6 -6
- package/dist/components/dm-pro-table-inner/index.js +5 -3
- package/dist/components/dm-query/index.js +11 -4
- package/dist/components/dm-search/index.js +5 -3
- package/dist/components/dm-table/index.js +5 -3
- package/dist/components/dm-toolbar/index.js +1 -3
- package/dist/components/dm-tree/index.js +3 -1
- package/dist/components/mentions/index.js +1 -7
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/tour/index.js +4 -1
- package/dist/components/transfer/index.js +7 -6
- package/dist/components/typography/index.js +1 -7
- package/dist/generated/version.d.ts +1 -0
- package/dist/index.js +93 -80
- package/dist/infrastructure.d.ts +1 -1
- package/dist/infrastructure.js +5 -1
- package/dist/styles.css +5442 -0
- package/package.json +33 -8
|
@@ -291,8 +291,7 @@ var DatePickerRoot = forwardRef(({
|
|
|
291
291
|
}) : null,
|
|
292
292
|
/* @__PURE__ */ jsx2("span", {
|
|
293
293
|
className: datePickerIconClass,
|
|
294
|
-
"aria-hidden": "true"
|
|
295
|
-
children: "calendar"
|
|
294
|
+
"aria-hidden": "true"
|
|
296
295
|
}),
|
|
297
296
|
(presetItems.length > 0 || showNow) && visible ? /* @__PURE__ */ jsxs2("div", {
|
|
298
297
|
className: getDatePickerDropdownClasses({ open: visible }),
|
|
@@ -1222,7 +1221,10 @@ var DmSearch = forwardRef4(({
|
|
|
1222
1221
|
value: values[item.dataIndex],
|
|
1223
1222
|
loading,
|
|
1224
1223
|
enableDefaultPlaceHolder,
|
|
1225
|
-
setValue: (value) => setValues((current) => ({
|
|
1224
|
+
setValue: (value) => setValues((current) => ({
|
|
1225
|
+
...current,
|
|
1226
|
+
[item.dataIndex]: value
|
|
1227
|
+
}))
|
|
1226
1228
|
})
|
|
1227
1229
|
]
|
|
1228
1230
|
}, item.key))
|
|
@@ -1260,7 +1262,12 @@ var DmSearch = forwardRef4(({
|
|
|
1260
1262
|
});
|
|
1261
1263
|
DmSearch.displayName = "DmSearch";
|
|
1262
1264
|
// src/components/dm-query/DmQuery.tsx
|
|
1263
|
-
import {
|
|
1265
|
+
import {
|
|
1266
|
+
forwardRef as forwardRef5,
|
|
1267
|
+
useImperativeHandle as useImperativeHandle3,
|
|
1268
|
+
useRef as useRef2,
|
|
1269
|
+
useState as useState5
|
|
1270
|
+
} from "react";
|
|
1264
1271
|
import { jsx as jsx6, jsxs as jsxs6, Fragment } from "react/jsx-runtime";
|
|
1265
1272
|
function toSearchItem(item) {
|
|
1266
1273
|
return {
|
|
@@ -291,8 +291,7 @@ var DatePickerRoot = forwardRef(({
|
|
|
291
291
|
}) : null,
|
|
292
292
|
/* @__PURE__ */ jsx2("span", {
|
|
293
293
|
className: datePickerIconClass,
|
|
294
|
-
"aria-hidden": "true"
|
|
295
|
-
children: "calendar"
|
|
294
|
+
"aria-hidden": "true"
|
|
296
295
|
}),
|
|
297
296
|
(presetItems.length > 0 || showNow) && visible ? /* @__PURE__ */ jsxs2("div", {
|
|
298
297
|
className: getDatePickerDropdownClasses({ open: visible }),
|
|
@@ -1222,7 +1221,10 @@ var DmSearch = forwardRef4(({
|
|
|
1222
1221
|
value: values[item.dataIndex],
|
|
1223
1222
|
loading,
|
|
1224
1223
|
enableDefaultPlaceHolder,
|
|
1225
|
-
setValue: (value) => setValues((current) => ({
|
|
1224
|
+
setValue: (value) => setValues((current) => ({
|
|
1225
|
+
...current,
|
|
1226
|
+
[item.dataIndex]: value
|
|
1227
|
+
}))
|
|
1226
1228
|
})
|
|
1227
1229
|
]
|
|
1228
1230
|
}, item.key))
|
|
@@ -334,8 +334,7 @@ var DatePickerRoot = forwardRef(({
|
|
|
334
334
|
}) : null,
|
|
335
335
|
/* @__PURE__ */ jsx3("span", {
|
|
336
336
|
className: datePickerIconClass,
|
|
337
|
-
"aria-hidden": "true"
|
|
338
|
-
children: "calendar"
|
|
337
|
+
"aria-hidden": "true"
|
|
339
338
|
}),
|
|
340
339
|
(presetItems.length > 0 || showNow) && visible ? /* @__PURE__ */ jsxs2("div", {
|
|
341
340
|
className: getDatePickerDropdownClasses({ open: visible }),
|
|
@@ -1704,7 +1703,10 @@ var DmSearch = forwardRef6(({
|
|
|
1704
1703
|
value: values[item.dataIndex],
|
|
1705
1704
|
loading,
|
|
1706
1705
|
enableDefaultPlaceHolder,
|
|
1707
|
-
setValue: (value) => setValues((current) => ({
|
|
1706
|
+
setValue: (value) => setValues((current) => ({
|
|
1707
|
+
...current,
|
|
1708
|
+
[item.dataIndex]: value
|
|
1709
|
+
}))
|
|
1708
1710
|
})
|
|
1709
1711
|
]
|
|
1710
1712
|
}, item.key))
|
|
@@ -415,9 +415,7 @@ var dmToolbarItemClass = "dm-toolbar-item";
|
|
|
415
415
|
var dmToolbarPrimaryItemClass = "dm-toolbar-primary-item";
|
|
416
416
|
var dmToolbarSecondaryItemClass = "dm-toolbar-secondary-item";
|
|
417
417
|
var dmToolbarMoreClass = "dm-toolbar-more";
|
|
418
|
-
function getDmToolbarClasses({
|
|
419
|
-
className
|
|
420
|
-
}) {
|
|
418
|
+
function getDmToolbarClasses({ className }) {
|
|
421
419
|
return cn(dmToolbarBaseClass, className);
|
|
422
420
|
}
|
|
423
421
|
function getDmToolbarItemClasses({
|
|
@@ -1699,7 +1699,9 @@ function CommonDmTree({
|
|
|
1699
1699
|
const titleField = fieldName(fieldNames, "title");
|
|
1700
1700
|
const title = source[titleField] ?? source.title;
|
|
1701
1701
|
const actions = typeof itemToolbar === "function" ? itemToolbar(source) : Array.isArray(itemToolbar) ? /* @__PURE__ */ jsx8("span", {
|
|
1702
|
-
className: getDmTreeItemToolbarClasses({
|
|
1702
|
+
className: getDmTreeItemToolbarClasses({
|
|
1703
|
+
alwaysShow: itemToolbarAlwaysShow
|
|
1704
|
+
}),
|
|
1703
1705
|
children: itemToolbar.filter((action) => shouldShowAction(action, source)).map((action, index) => {
|
|
1704
1706
|
const disabled = isActionDisabled(action, source);
|
|
1705
1707
|
return /* @__PURE__ */ jsx8("button", {
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/components/mentions/Mentions.tsx
|
|
4
|
-
import React, {
|
|
5
|
-
forwardRef,
|
|
6
|
-
useId,
|
|
7
|
-
useMemo,
|
|
8
|
-
useRef,
|
|
9
|
-
useState
|
|
10
|
-
} from "react";
|
|
4
|
+
import React, { forwardRef, useId, useMemo, useRef, useState } from "react";
|
|
11
5
|
|
|
12
6
|
// ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
13
7
|
function r(e) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Popover } from "./Popover";
|
|
2
|
-
export type { PopoverPlacement, PopoverProps, PopoverTrigger } from "./Popover.types";
|
|
2
|
+
export type { PopoverPlacement, PopoverProps, PopoverTrigger, } from "./Popover.types";
|
|
@@ -335,7 +335,10 @@ var Tour = forwardRef(({
|
|
|
335
335
|
const descriptionId = `${rootId}-description`;
|
|
336
336
|
const lastStep = mergedCurrent >= steps.length - 1;
|
|
337
337
|
const showHighlight = hasMask && (targetRect.width > 0 || targetRect.height > 0);
|
|
338
|
-
const rootStyle = {
|
|
338
|
+
const rootStyle = {
|
|
339
|
+
...style,
|
|
340
|
+
...zIndex !== undefined ? { zIndex } : undefined
|
|
341
|
+
};
|
|
339
342
|
const currentCloseIcon = step.closeIcon ?? closeIcon;
|
|
340
343
|
const currentNextButtonProps = mergeButtonProps(nextButtonProps, step.nextButtonProps);
|
|
341
344
|
const currentPrevButtonProps = mergeButtonProps(prevButtonProps, step.prevButtonProps);
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/components/transfer/Transfer.tsx
|
|
4
|
-
import {
|
|
5
|
-
forwardRef,
|
|
6
|
-
useMemo,
|
|
7
|
-
useState
|
|
8
|
-
} from "react";
|
|
4
|
+
import { forwardRef, useMemo, useState } from "react";
|
|
9
5
|
|
|
10
6
|
// ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
11
7
|
function r(e) {
|
|
@@ -148,7 +144,12 @@ function splitSelectedKeys(keys, targetKeySet) {
|
|
|
148
144
|
return groups;
|
|
149
145
|
}, { source: [], target: [] });
|
|
150
146
|
}
|
|
151
|
-
var TransferSearch = forwardRef(({
|
|
147
|
+
var TransferSearch = forwardRef(({
|
|
148
|
+
className,
|
|
149
|
+
placeholder = defaultLocale.searchPlaceholder,
|
|
150
|
+
onChange,
|
|
151
|
+
...props
|
|
152
|
+
}, ref) => /* @__PURE__ */ jsx("input", {
|
|
152
153
|
...props,
|
|
153
154
|
ref,
|
|
154
155
|
type: "search",
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
// src/components/typography/Typography.tsx
|
|
4
|
-
import React, {
|
|
5
|
-
forwardRef,
|
|
6
|
-
useEffect,
|
|
7
|
-
useMemo,
|
|
8
|
-
useRef,
|
|
9
|
-
useState
|
|
10
|
-
} from "react";
|
|
4
|
+
import React, { forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
11
5
|
|
|
12
6
|
// ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
13
7
|
function r(e) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const version = "0.2.0";
|
package/dist/index.js
CHANGED
|
@@ -77,7 +77,11 @@ var ThemeInitScript = () => {
|
|
|
77
77
|
};
|
|
78
78
|
// src/infrastructure.ts
|
|
79
79
|
import { useCallback as useCallback2, useState as useState2 } from "react";
|
|
80
|
-
|
|
80
|
+
|
|
81
|
+
// src/generated/version.ts
|
|
82
|
+
var version = "0.2.0";
|
|
83
|
+
|
|
84
|
+
// src/infrastructure.ts
|
|
81
85
|
var theme = {
|
|
82
86
|
defaultSeed: {
|
|
83
87
|
colorPrimary: "#0065ff"
|
|
@@ -1089,7 +1093,16 @@ function CascaderMenus({
|
|
|
1089
1093
|
})
|
|
1090
1094
|
});
|
|
1091
1095
|
}
|
|
1092
|
-
var CascaderPanel = forwardRef3(({
|
|
1096
|
+
var CascaderPanel = forwardRef3(({
|
|
1097
|
+
className,
|
|
1098
|
+
options = [],
|
|
1099
|
+
fieldNames,
|
|
1100
|
+
value,
|
|
1101
|
+
defaultValue,
|
|
1102
|
+
onChange,
|
|
1103
|
+
onSelect,
|
|
1104
|
+
...props
|
|
1105
|
+
}, ref) => {
|
|
1093
1106
|
const names = useMemo4(() => normalizeFieldNames(fieldNames), [fieldNames]);
|
|
1094
1107
|
const [activeValue, setActiveValue] = useState5(normalizeSingleValue(value ?? defaultValue));
|
|
1095
1108
|
const [internalValue, setInternalValue] = useState5(defaultValue);
|
|
@@ -1680,9 +1693,9 @@ var alertColorClasses = {
|
|
|
1680
1693
|
error: "alert-error"
|
|
1681
1694
|
};
|
|
1682
1695
|
var alertAppearanceClasses = {
|
|
1683
|
-
filled: "",
|
|
1684
|
-
outline: "alert-
|
|
1685
|
-
tonal: "
|
|
1696
|
+
filled: "alert-filled",
|
|
1697
|
+
outline: "alert-outlined",
|
|
1698
|
+
tonal: ""
|
|
1686
1699
|
};
|
|
1687
1700
|
function getAlertClasses({
|
|
1688
1701
|
color = "info",
|
|
@@ -1998,14 +2011,10 @@ import {
|
|
|
1998
2011
|
var appClass = "app";
|
|
1999
2012
|
var appRootClass = "app-root";
|
|
2000
2013
|
var appHolderClass = "app-holder";
|
|
2001
|
-
function getAppClasses({
|
|
2002
|
-
className
|
|
2003
|
-
}) {
|
|
2014
|
+
function getAppClasses({ className }) {
|
|
2004
2015
|
return cn(appClass, className);
|
|
2005
2016
|
}
|
|
2006
|
-
function getAppRootClasses({
|
|
2007
|
-
className
|
|
2008
|
-
}) {
|
|
2017
|
+
function getAppRootClasses({ className }) {
|
|
2009
2018
|
return cn(appRootClass, className);
|
|
2010
2019
|
}
|
|
2011
2020
|
|
|
@@ -2834,23 +2843,14 @@ AppBase.displayName = "App";
|
|
|
2834
2843
|
var App = AppBase;
|
|
2835
2844
|
App.Context = AppContext;
|
|
2836
2845
|
App.useApp = () => useContext3(AppContext);
|
|
2837
|
-
function AppRoot({
|
|
2838
|
-
className,
|
|
2839
|
-
...props
|
|
2840
|
-
}) {
|
|
2846
|
+
function AppRoot({ className, ...props }) {
|
|
2841
2847
|
return /* @__PURE__ */ jsx16("div", {
|
|
2842
2848
|
...props,
|
|
2843
2849
|
className: getAppRootClasses({ className })
|
|
2844
2850
|
});
|
|
2845
2851
|
}
|
|
2846
2852
|
// src/components/auto-complete/AutoComplete.tsx
|
|
2847
|
-
import React13, {
|
|
2848
|
-
forwardRef as forwardRef10,
|
|
2849
|
-
useId,
|
|
2850
|
-
useMemo as useMemo8,
|
|
2851
|
-
useRef as useRef4,
|
|
2852
|
-
useState as useState10
|
|
2853
|
-
} from "react";
|
|
2853
|
+
import React13, { forwardRef as forwardRef10, useId, useMemo as useMemo8, useRef as useRef4, useState as useState10 } from "react";
|
|
2854
2854
|
|
|
2855
2855
|
// src/classes/auto-complete.ts
|
|
2856
2856
|
var autoCompleteBaseClass = "autocomplete";
|
|
@@ -2866,17 +2866,27 @@ var autoCompleteOptionFocusedClass = "autocomplete-option-focused";
|
|
|
2866
2866
|
var autoCompleteOptionDisabledClass = "autocomplete-option-disabled";
|
|
2867
2867
|
var autoCompleteClearClass = "autocomplete-clear";
|
|
2868
2868
|
var autoCompleteNoOptionsClass = "autocomplete-no-options";
|
|
2869
|
+
var autoCompleteColorClasses = {
|
|
2870
|
+
primary: "autocomplete-primary",
|
|
2871
|
+
secondary: "autocomplete-secondary",
|
|
2872
|
+
tertiary: "autocomplete-tertiary",
|
|
2873
|
+
info: "autocomplete-info",
|
|
2874
|
+
success: "autocomplete-success",
|
|
2875
|
+
warning: "autocomplete-warning",
|
|
2876
|
+
error: "autocomplete-error"
|
|
2877
|
+
};
|
|
2869
2878
|
var autoCompleteSizeClasses = {
|
|
2870
2879
|
sm: "autocomplete-sm",
|
|
2871
2880
|
md: "",
|
|
2872
2881
|
lg: "autocomplete-lg"
|
|
2873
2882
|
};
|
|
2874
2883
|
function getAutoCompleteClasses({
|
|
2884
|
+
color,
|
|
2875
2885
|
disabled,
|
|
2876
2886
|
open: open2,
|
|
2877
2887
|
className
|
|
2878
2888
|
}) {
|
|
2879
|
-
return cn(autoCompleteBaseClass, disabled && "autocomplete-disabled", open2 && "autocomplete-open", className);
|
|
2889
|
+
return cn(autoCompleteBaseClass, color && autoCompleteColorClasses[color], disabled && "autocomplete-disabled", open2 && "autocomplete-open", className);
|
|
2880
2890
|
}
|
|
2881
2891
|
function getAutoCompleteInputClasses({
|
|
2882
2892
|
size = "md",
|
|
@@ -2947,6 +2957,7 @@ var AutoCompleteRoot = forwardRef10(({
|
|
|
2947
2957
|
allowClear,
|
|
2948
2958
|
children,
|
|
2949
2959
|
className,
|
|
2960
|
+
color,
|
|
2950
2961
|
defaultOpen,
|
|
2951
2962
|
defaultValue = "",
|
|
2952
2963
|
disabled,
|
|
@@ -3084,6 +3095,7 @@ var AutoCompleteRoot = forwardRef10(({
|
|
|
3084
3095
|
...props,
|
|
3085
3096
|
ref,
|
|
3086
3097
|
className: getAutoCompleteClasses({
|
|
3098
|
+
color,
|
|
3087
3099
|
disabled,
|
|
3088
3100
|
open: isOpen,
|
|
3089
3101
|
className
|
|
@@ -3290,11 +3302,10 @@ import {
|
|
|
3290
3302
|
} from "react";
|
|
3291
3303
|
|
|
3292
3304
|
// src/classes/checkbox.ts
|
|
3293
|
-
var checkboxBaseClass = "checkbox";
|
|
3305
|
+
var checkboxBaseClass = "checkbox-wrapper";
|
|
3306
|
+
var checkboxInputBaseClass = "checkbox";
|
|
3294
3307
|
var checkboxInputClass = "checkbox-input";
|
|
3295
|
-
var
|
|
3296
|
-
var checkboxCheckmarkClass = "checkbox-checkmark";
|
|
3297
|
-
var checkboxLabelBaseClass = "checkbox-label";
|
|
3308
|
+
var checkboxLabelBaseClass = "checkbox-text";
|
|
3298
3309
|
var checkboxColorClasses = {
|
|
3299
3310
|
primary: "checkbox-primary",
|
|
3300
3311
|
secondary: "checkbox-secondary",
|
|
@@ -3312,17 +3323,17 @@ var checkboxLabelPositionClasses = {
|
|
|
3312
3323
|
var checkboxErrorClass = "checkbox-error";
|
|
3313
3324
|
var checkboxLoadingClass = "checkbox-loading";
|
|
3314
3325
|
function getCheckboxClasses({
|
|
3315
|
-
size = "md",
|
|
3316
|
-
error,
|
|
3317
3326
|
loading,
|
|
3318
3327
|
className
|
|
3319
3328
|
}) {
|
|
3320
|
-
return cn(
|
|
3329
|
+
return cn("checkbox-label", checkboxBaseClass, loading && checkboxLoadingClass, className);
|
|
3321
3330
|
}
|
|
3322
|
-
function
|
|
3323
|
-
color = "primary"
|
|
3331
|
+
function getCheckboxInputClasses({
|
|
3332
|
+
color = "primary",
|
|
3333
|
+
size = "md",
|
|
3334
|
+
error
|
|
3324
3335
|
}) {
|
|
3325
|
-
return cn(
|
|
3336
|
+
return cn(checkboxInputBaseClass, checkboxInputClass, checkboxColorClasses[color], checkboxSizeClasses[size], error && checkboxErrorClass);
|
|
3326
3337
|
}
|
|
3327
3338
|
function getCheckboxLabelClasses({
|
|
3328
3339
|
labelPosition = "right"
|
|
@@ -3355,8 +3366,6 @@ var Checkbox = forwardRef13(({
|
|
|
3355
3366
|
const isDisabled = disabled || loading;
|
|
3356
3367
|
return /* @__PURE__ */ jsxs12("label", {
|
|
3357
3368
|
className: getCheckboxClasses({
|
|
3358
|
-
size,
|
|
3359
|
-
error,
|
|
3360
3369
|
loading,
|
|
3361
3370
|
className
|
|
3362
3371
|
}),
|
|
@@ -3365,18 +3374,10 @@ var Checkbox = forwardRef13(({
|
|
|
3365
3374
|
...props,
|
|
3366
3375
|
ref: inputRef,
|
|
3367
3376
|
type: "checkbox",
|
|
3368
|
-
className:
|
|
3377
|
+
className: getCheckboxInputClasses({ color, size, error }),
|
|
3369
3378
|
disabled: isDisabled,
|
|
3370
3379
|
"aria-checked": indeterminate ? "mixed" : ariaChecked
|
|
3371
3380
|
}),
|
|
3372
|
-
/* @__PURE__ */ jsx20("span", {
|
|
3373
|
-
className: getCheckboxBoxClasses({ color }),
|
|
3374
|
-
"aria-hidden": "true",
|
|
3375
|
-
children: /* @__PURE__ */ jsx20("span", {
|
|
3376
|
-
className: checkboxCheckmarkClass,
|
|
3377
|
-
children: indeterminate ? "-" : "✓"
|
|
3378
|
-
})
|
|
3379
|
-
}),
|
|
3380
3381
|
children ? /* @__PURE__ */ jsx20("span", {
|
|
3381
3382
|
className: getCheckboxLabelClasses({ labelPosition }),
|
|
3382
3383
|
children
|
|
@@ -3565,7 +3566,9 @@ var Collapse = forwardRef15(({
|
|
|
3565
3566
|
open2 ? /* @__PURE__ */ jsx22("div", {
|
|
3566
3567
|
id: contentId,
|
|
3567
3568
|
className: collapseContentClass,
|
|
3568
|
-
children:
|
|
3569
|
+
children: /* @__PURE__ */ jsx22("div", {
|
|
3570
|
+
children: item.children
|
|
3571
|
+
})
|
|
3569
3572
|
}) : null
|
|
3570
3573
|
]
|
|
3571
3574
|
}, itemKey);
|
|
@@ -3676,8 +3679,9 @@ import { forwardRef as forwardRef17, useState as useState14 } from "react";
|
|
|
3676
3679
|
var colorPickerBaseClass = "color-picker";
|
|
3677
3680
|
var colorPickerSwatchClass = "color-picker-swatch";
|
|
3678
3681
|
var colorPickerTextClass = "color-picker-text";
|
|
3679
|
-
var colorPickerPanelClass = "color-picker-panel popover popover-show";
|
|
3682
|
+
var colorPickerPanelClass = "color-picker-panel popover popover-bottom popover-show";
|
|
3680
3683
|
var colorPickerInputClass = "color-picker-input input";
|
|
3684
|
+
var colorPickerFormatSelectClass = "color-picker-format-select select select-sm";
|
|
3681
3685
|
var colorPickerPresetsClass = "color-picker-presets";
|
|
3682
3686
|
var colorPickerPresetClass = "color-picker-preset";
|
|
3683
3687
|
var colorPickerPresetLabelClass = "color-picker-preset-label";
|
|
@@ -3851,7 +3855,9 @@ var ColorPicker = forwardRef17(({
|
|
|
3851
3855
|
type: "button",
|
|
3852
3856
|
"aria-label": `Select color ${presetCss}`,
|
|
3853
3857
|
className: colorPickerSwatchClass,
|
|
3854
|
-
style: {
|
|
3858
|
+
style: {
|
|
3859
|
+
backgroundColor: colorToCss(presetColor, "hex")
|
|
3860
|
+
},
|
|
3855
3861
|
onClick: () => emitChange(presetColor)
|
|
3856
3862
|
}, `${presetIndex}-${colorIndex}`);
|
|
3857
3863
|
})
|
|
@@ -3897,6 +3903,7 @@ var ColorPicker = forwardRef17(({
|
|
|
3897
3903
|
children: typeof showText === "function" ? showText(cssValue) : cssValue
|
|
3898
3904
|
}) : null,
|
|
3899
3905
|
/* @__PURE__ */ jsxs14("select", {
|
|
3906
|
+
className: colorPickerFormatSelectClass,
|
|
3900
3907
|
"aria-label": "Color format",
|
|
3901
3908
|
value: format,
|
|
3902
3909
|
disabled,
|
|
@@ -4092,8 +4099,7 @@ var DatePickerRoot = forwardRef18(({
|
|
|
4092
4099
|
}) : null,
|
|
4093
4100
|
/* @__PURE__ */ jsx25("span", {
|
|
4094
4101
|
className: datePickerIconClass,
|
|
4095
|
-
"aria-hidden": "true"
|
|
4096
|
-
children: "calendar"
|
|
4102
|
+
"aria-hidden": "true"
|
|
4097
4103
|
}),
|
|
4098
4104
|
(presetItems.length > 0 || showNow) && visible ? /* @__PURE__ */ jsxs15("div", {
|
|
4099
4105
|
className: getDatePickerDropdownClasses({ open: visible }),
|
|
@@ -4282,7 +4288,16 @@ function toItems(items, children) {
|
|
|
4282
4288
|
};
|
|
4283
4289
|
});
|
|
4284
4290
|
}
|
|
4285
|
-
var DescriptionsItem = forwardRef19(({
|
|
4291
|
+
var DescriptionsItem = forwardRef19(({
|
|
4292
|
+
children,
|
|
4293
|
+
label,
|
|
4294
|
+
span,
|
|
4295
|
+
labelStyle,
|
|
4296
|
+
contentStyle,
|
|
4297
|
+
className,
|
|
4298
|
+
style,
|
|
4299
|
+
...props
|
|
4300
|
+
}, ref) => /* @__PURE__ */ jsxs16("div", {
|
|
4286
4301
|
...props,
|
|
4287
4302
|
ref,
|
|
4288
4303
|
className: cn(descriptionsItemClass, className),
|
|
@@ -4806,9 +4821,7 @@ import { forwardRef as forwardRef24 } from "react";
|
|
|
4806
4821
|
// src/classes/dm-drawer.ts
|
|
4807
4822
|
var dmDrawerBaseClass = "dm-drawer";
|
|
4808
4823
|
var dmDrawerFooterActionClass = "dm-drawer-footer-action";
|
|
4809
|
-
function getDmDrawerClasses({
|
|
4810
|
-
className
|
|
4811
|
-
}) {
|
|
4824
|
+
function getDmDrawerClasses({ className }) {
|
|
4812
4825
|
return cn(dmDrawerBaseClass, className);
|
|
4813
4826
|
}
|
|
4814
4827
|
function getDmDrawerFooterClasses({
|
|
@@ -5897,9 +5910,7 @@ var dmToolbarItemClass = "dm-toolbar-item";
|
|
|
5897
5910
|
var dmToolbarPrimaryItemClass = "dm-toolbar-primary-item";
|
|
5898
5911
|
var dmToolbarSecondaryItemClass = "dm-toolbar-secondary-item";
|
|
5899
5912
|
var dmToolbarMoreClass = "dm-toolbar-more";
|
|
5900
|
-
function getDmToolbarClasses({
|
|
5901
|
-
className
|
|
5902
|
-
}) {
|
|
5913
|
+
function getDmToolbarClasses({ className }) {
|
|
5903
5914
|
return cn(dmToolbarBaseClass, className);
|
|
5904
5915
|
}
|
|
5905
5916
|
function getDmToolbarItemClasses({
|
|
@@ -7614,7 +7625,10 @@ var DmSearch = forwardRef36(({
|
|
|
7614
7625
|
value: values[item.dataIndex],
|
|
7615
7626
|
loading,
|
|
7616
7627
|
enableDefaultPlaceHolder,
|
|
7617
|
-
setValue: (value) => setValues((current) => ({
|
|
7628
|
+
setValue: (value) => setValues((current) => ({
|
|
7629
|
+
...current,
|
|
7630
|
+
[item.dataIndex]: value
|
|
7631
|
+
}))
|
|
7618
7632
|
})
|
|
7619
7633
|
]
|
|
7620
7634
|
}, item.key))
|
|
@@ -8610,7 +8624,12 @@ var DmProvider = forwardRef38(({
|
|
|
8610
8624
|
});
|
|
8611
8625
|
DmProvider.displayName = "DmProvider";
|
|
8612
8626
|
// src/components/dm-query/DmQuery.tsx
|
|
8613
|
-
import {
|
|
8627
|
+
import {
|
|
8628
|
+
forwardRef as forwardRef39,
|
|
8629
|
+
useImperativeHandle as useImperativeHandle5,
|
|
8630
|
+
useRef as useRef10,
|
|
8631
|
+
useState as useState31
|
|
8632
|
+
} from "react";
|
|
8614
8633
|
import { jsx as jsx52, jsxs as jsxs36, Fragment as Fragment7 } from "react/jsx-runtime";
|
|
8615
8634
|
function toSearchItem(item) {
|
|
8616
8635
|
return {
|
|
@@ -10396,7 +10415,9 @@ function CommonDmTree({
|
|
|
10396
10415
|
const titleField = fieldName(fieldNames, "title");
|
|
10397
10416
|
const title = source[titleField] ?? source.title;
|
|
10398
10417
|
const actions = typeof itemToolbar === "function" ? itemToolbar(source) : Array.isArray(itemToolbar) ? /* @__PURE__ */ jsx61("span", {
|
|
10399
|
-
className: getDmTreeItemToolbarClasses({
|
|
10418
|
+
className: getDmTreeItemToolbarClasses({
|
|
10419
|
+
alwaysShow: itemToolbarAlwaysShow
|
|
10420
|
+
}),
|
|
10400
10421
|
children: itemToolbar.filter((action) => shouldShowAction(action, source)).map((action, index) => {
|
|
10401
10422
|
const disabled = isActionDisabled(action, source);
|
|
10402
10423
|
return /* @__PURE__ */ jsx61("button", {
|
|
@@ -12191,13 +12212,7 @@ var List = Object.assign(ListRootWithRef, {
|
|
|
12191
12212
|
});
|
|
12192
12213
|
List.displayName = "List";
|
|
12193
12214
|
// src/components/mentions/Mentions.tsx
|
|
12194
|
-
import React62, {
|
|
12195
|
-
forwardRef as forwardRef56,
|
|
12196
|
-
useId as useId4,
|
|
12197
|
-
useMemo as useMemo30,
|
|
12198
|
-
useRef as useRef15,
|
|
12199
|
-
useState as useState44
|
|
12200
|
-
} from "react";
|
|
12215
|
+
import React62, { forwardRef as forwardRef56, useId as useId4, useMemo as useMemo30, useRef as useRef15, useState as useState44 } from "react";
|
|
12201
12216
|
|
|
12202
12217
|
// src/classes/mentions.ts
|
|
12203
12218
|
var mentionsBaseClass = "mentions";
|
|
@@ -15723,7 +15738,10 @@ var Tour = forwardRef74(({
|
|
|
15723
15738
|
const descriptionId = `${rootId}-description`;
|
|
15724
15739
|
const lastStep = mergedCurrent >= steps.length - 1;
|
|
15725
15740
|
const showHighlight = hasMask && (targetRect.width > 0 || targetRect.height > 0);
|
|
15726
|
-
const rootStyle = {
|
|
15741
|
+
const rootStyle = {
|
|
15742
|
+
...style,
|
|
15743
|
+
...zIndex !== undefined ? { zIndex } : undefined
|
|
15744
|
+
};
|
|
15727
15745
|
const currentCloseIcon = step.closeIcon ?? closeIcon;
|
|
15728
15746
|
const currentNextButtonProps = mergeButtonProps(nextButtonProps, step.nextButtonProps);
|
|
15729
15747
|
const currentPrevButtonProps = mergeButtonProps(prevButtonProps, step.prevButtonProps);
|
|
@@ -15891,11 +15909,7 @@ var Tour = forwardRef74(({
|
|
|
15891
15909
|
});
|
|
15892
15910
|
Tour.displayName = "Tour";
|
|
15893
15911
|
// src/components/transfer/Transfer.tsx
|
|
15894
|
-
import {
|
|
15895
|
-
forwardRef as forwardRef75,
|
|
15896
|
-
useMemo as useMemo33,
|
|
15897
|
-
useState as useState54
|
|
15898
|
-
} from "react";
|
|
15912
|
+
import { forwardRef as forwardRef75, useMemo as useMemo33, useState as useState54 } from "react";
|
|
15899
15913
|
|
|
15900
15914
|
// src/classes/transfer.ts
|
|
15901
15915
|
var transferBaseClass = "transfer";
|
|
@@ -16013,7 +16027,12 @@ function splitSelectedKeys(keys, targetKeySet) {
|
|
|
16013
16027
|
return groups;
|
|
16014
16028
|
}, { source: [], target: [] });
|
|
16015
16029
|
}
|
|
16016
|
-
var TransferSearch = forwardRef75(({
|
|
16030
|
+
var TransferSearch = forwardRef75(({
|
|
16031
|
+
className,
|
|
16032
|
+
placeholder = defaultLocale2.searchPlaceholder,
|
|
16033
|
+
onChange,
|
|
16034
|
+
...props
|
|
16035
|
+
}, ref) => /* @__PURE__ */ jsx90("input", {
|
|
16017
16036
|
...props,
|
|
16018
16037
|
ref,
|
|
16019
16038
|
type: "search",
|
|
@@ -16775,13 +16794,7 @@ TreeSelect.SHOW_ALL = SHOW_ALL;
|
|
|
16775
16794
|
TreeSelect.SHOW_PARENT = SHOW_PARENT;
|
|
16776
16795
|
TreeSelect.SHOW_CHILD = SHOW_CHILD;
|
|
16777
16796
|
// src/components/typography/Typography.tsx
|
|
16778
|
-
import React83, {
|
|
16779
|
-
forwardRef as forwardRef77,
|
|
16780
|
-
useEffect as useEffect26,
|
|
16781
|
-
useMemo as useMemo35,
|
|
16782
|
-
useRef as useRef18,
|
|
16783
|
-
useState as useState56
|
|
16784
|
-
} from "react";
|
|
16797
|
+
import React83, { forwardRef as forwardRef77, useEffect as useEffect26, useMemo as useMemo35, useRef as useRef18, useState as useState56 } from "react";
|
|
16785
16798
|
|
|
16786
16799
|
// src/classes/typography.ts
|
|
16787
16800
|
var typographyBaseClass = "typography markdown-body";
|
package/dist/infrastructure.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentProps, ElementType, Ref } from "react";
|
|
2
|
-
export
|
|
2
|
+
export { version } from "./generated/version";
|
|
3
3
|
export type GetProps<T extends ElementType> = ComponentProps<T>;
|
|
4
4
|
export type GetProp<T, K extends keyof T> = T[K];
|
|
5
5
|
export type GetRef<T> = T extends ElementType ? ComponentProps<T> extends {
|
package/dist/infrastructure.js
CHANGED