@baishuyun/ui-base 6.25.0 → 6.27.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/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-DpMZOADo.js → Calendar-CMEZXjae.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/{CheckBox-Cc-7FP-b.js → CheckBox-CtOSHKM0.js} +1 -1
- package/dist/CheckBox/{CheckBox-BGbMzNLG.js → CheckBox-DOdRLFKI.js} +2 -2
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/{ColorPicker-C45iWNv0.js → ColorPicker-CpvEY9_p.js} +1 -1
- package/dist/ColorPicker/index.js +2 -2
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-MpFoHCHr.js → DatePicker-BAqfHpW3.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-C4n3podg.js → DatePickerPanel-V4o--MnL.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +14 -14
- package/dist/FieldCard/FieldCard-yPfxc-og.js +213 -0
- package/dist/FieldCard/index.js +3 -0
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Kanban/index.js +449 -389
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-9XzkUm0W.js → Select-C_g3oAkv.js} +9 -4
- package/dist/Select/index.js +5 -5
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +3 -3
- package/dist/components/CheckBox/interface.d.ts +4 -0
- package/dist/components/Editor/interface.d.ts +4 -0
- package/dist/components/FieldCard/FieldCard.d.ts +8 -0
- package/dist/components/FieldCard/FieldCardSkeleton.d.ts +2 -0
- package/dist/components/FieldCard/index.d.ts +2 -0
- package/dist/components/FieldCard/interface.d.ts +63 -0
- package/dist/components/FieldCard/style/index.d.ts +1 -0
- package/dist/components/FieldCard/style/resolveFieldCardThemeVars.d.ts +5 -0
- package/dist/components/Kanban/Kanban.d.ts +1 -1
- package/dist/components/Kanban/KanbanCardItem.d.ts +22 -6
- package/dist/components/Kanban/KanbanCardList.d.ts +11 -4
- package/dist/components/Kanban/KanbanColumnView.d.ts +12 -8
- package/dist/components/Kanban/index.d.ts +2 -2
- package/dist/components/Kanban/interface.d.ts +107 -36
- package/dist/components/Kanban/resolveDrop.d.ts +0 -1
- package/dist/components/Kanban/selection.d.ts +2 -2
- package/dist/components/Kanban/style/index.d.ts +1 -0
- package/dist/components/Kanban/style/resolveKanbanThemeVars.d.ts +12 -0
- package/dist/index.js +8 -8
- package/dist/style.css +1 -1
- package/dist/vendors/{Tree-BkxKK0Sf.js → Tree-f0FxoFIC.js} +1 -1
- package/dist/vendors/{version-Nw7Mc7qj.js → version-CHTDBkqW.js} +1 -1
- package/package.json +1 -1
- package/dist/components/Kanban/KanbanCardFace.d.ts +0 -14
package/dist/Amap/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t } from "../vendors/useLocale-3oUjPb-k.js";
|
|
|
3
3
|
import { t as n } from "../vendors/cssVars-UpriQzph.js";
|
|
4
4
|
import { t as r } from "../Segmented/Segmented-BMwjhsZw.js";
|
|
5
5
|
import { t as i } from "../Tooltip/Tooltip-N06Os8rG.js";
|
|
6
|
-
import { t as a } from "../DatePicker/DatePicker-
|
|
6
|
+
import { t as a } from "../DatePicker/DatePicker-BAqfHpW3.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
9
9
|
import h from "clsx";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CHTDBkqW.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
3
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
@@ -7,7 +7,7 @@ import "../vendors/useLocale-3oUjPb-k.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
8
8
|
import "../Segmented/Segmented-BMwjhsZw.js";
|
|
9
9
|
import "../Tooltip/Tooltip-N06Os8rG.js";
|
|
10
|
-
import { n as e, r as t, t as n } from "./Calendar-
|
|
11
|
-
import "../DatePicker/DatePicker-
|
|
10
|
+
import { n as e, r as t, t as n } from "./Calendar-CMEZXjae.js";
|
|
11
|
+
import "../DatePicker/DatePicker-BAqfHpW3.js";
|
|
12
12
|
import "../DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
13
13
|
export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
|
package/dist/Card/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./CheckBox-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./CheckBox-DOdRLFKI.js";
|
|
2
2
|
import { jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import a from "clsx";
|
|
4
4
|
import { useControllableValue as o } from "ahooks";
|
|
@@ -42,8 +42,8 @@ var l = a(null), u = "_checkbox_5dsmf_1", d = "_checkbox__inner_5dsmf_35", f = {
|
|
|
42
42
|
"bsy-checkbox__button--left-label": "_bsy-checkbox__button--left-label_dflop_49"
|
|
43
43
|
}, g = (e) => {
|
|
44
44
|
if (!e) return {};
|
|
45
|
-
let n = {};
|
|
46
|
-
return t(n, "--bsy-checkbox-checked-bg", e.checkedBg), t(n, "--bsy-checkbox-checked-border", e.checkedBorder), t(n, "--bsy-checkbox-check-icon-color", e.checkIconColor), t(n, "--bsy-checkbox-unchecked-bg", e.uncheckedBg), t(n, "--bsy-checkbox-color-border", e.colorBorder), t(n, "--bsy-checkbox-color-border-hover", e.colorBorderHover), t(n, "--bsy-checkbox-indeterminate-bg", e.indeterminateBg), t(n, "--bsy-checkbox-indeterminate-border", e.indeterminateBorder), t(n, "--bsy-checkbox-indeterminate-indicator", e.indeterminateIndicator), t(n, "--bsy-checkbox-color-bg-disabled", e.colorBgDisabled), t(n, "--bsy-checkbox-color-border-disabled", e.colorBorderDisabled), t(n, "--bsy-checkbox-check-icon-color-disabled", e.checkIconColorDisabled), t(n, "--bsy-checkbox-indeterminate-indicator-disabled", e.indeterminateIndicatorDisabled), t(n, "--bsy-checkbox-color-text-disabled", e.colorTextDisabled), n;
|
|
45
|
+
let n = {}, r = e.colorPrimary;
|
|
46
|
+
return t(n, "--bsy-checkbox-checked-bg", e.checkedBg ?? r), t(n, "--bsy-checkbox-checked-border", e.checkedBorder ?? r), t(n, "--bsy-checkbox-check-icon-color", e.checkIconColor), t(n, "--bsy-checkbox-unchecked-bg", e.uncheckedBg), t(n, "--bsy-checkbox-color-border", e.colorBorder), t(n, "--bsy-checkbox-color-border-hover", e.colorBorderHover ?? r), t(n, "--bsy-checkbox-indeterminate-bg", e.indeterminateBg), t(n, "--bsy-checkbox-indeterminate-border", e.indeterminateBorder ?? r), t(n, "--bsy-checkbox-indeterminate-indicator", e.indeterminateIndicator ?? r), t(n, "--bsy-checkbox-color-bg-disabled", e.colorBgDisabled), t(n, "--bsy-checkbox-color-border-disabled", e.colorBorderDisabled), t(n, "--bsy-checkbox-check-icon-color-disabled", e.checkIconColorDisabled), t(n, "--bsy-checkbox-indeterminate-indicator-disabled", e.indeterminateIndicatorDisabled), t(n, "--bsy-checkbox-color-text-disabled", e.colorTextDisabled), n;
|
|
47
47
|
}, _ = o((e, t) => {
|
|
48
48
|
let { checked: a, indeterminate: o = !1, onChange: u, value: d = n("checkbox"), disabled: f = !1, children: _, style: v, labelPosition: y = "right", theme: b } = e, x = s(l), S = x ? x.value?.includes(d) : a, C = (e) => {
|
|
49
49
|
if (!(f || x?.disabled)) if (x) {
|
package/dist/CheckBox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CHTDBkqW.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
|
-
import "./CheckBox-
|
|
4
|
-
import { t as e } from "./CheckBox-
|
|
3
|
+
import "./CheckBox-DOdRLFKI.js";
|
|
4
|
+
import { t as e } from "./CheckBox-CtOSHKM0.js";
|
|
5
5
|
export { e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CHTDBkqW.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
3
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
-
import { n as e, t } from "./ColorPicker-
|
|
5
|
+
import { n as e, t } from "./ColorPicker-CpvEY9_p.js";
|
|
6
6
|
import "../vendors/useFloatingOverlay-B66lOL8v.js";
|
|
7
7
|
import "../vendors/useLocale-3oUjPb-k.js";
|
|
8
8
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
@@ -48,7 +48,7 @@ var w = {
|
|
|
48
48
|
"bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
|
|
49
49
|
"bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
|
|
50
50
|
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
|
|
51
|
-
}, j = m(() => import("./DatePickerPanel-
|
|
51
|
+
}, j = m(() => import("./DatePickerPanel-V4o--MnL.js")), M = (o) => {
|
|
52
52
|
let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = o, { locale: N } = r(), P = e(M), [F, I] = v(o, {
|
|
53
53
|
defaultValuePropName: "defaultValue",
|
|
54
54
|
valuePropName: "value",
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CHTDBkqW.js";
|
|
2
2
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
3
3
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
4
|
import "../vendors/useFloatingOverlay-B66lOL8v.js";
|
|
5
5
|
import "../vendors/useLocale-3oUjPb-k.js";
|
|
6
6
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
7
|
-
import { t as e } from "./DatePicker-
|
|
7
|
+
import { t as e } from "./DatePicker-BAqfHpW3.js";
|
|
8
8
|
import "./pickerLocale-Brf7_Tnd.js";
|
|
9
9
|
export { e as default };
|
package/dist/DropDown/index.js
CHANGED
package/dist/Editor/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-CHTDBkqW.js";
|
|
2
2
|
import "../ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "../Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
5
5
|
import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
6
6
|
import "../Overlay/index.js";
|
|
7
7
|
import { t as r } from "../Modal/Modal-DXH8hz96.js";
|
|
8
|
-
import { t as i } from "../ColorPicker/ColorPicker-
|
|
8
|
+
import { t as i } from "../ColorPicker/ColorPicker-CpvEY9_p.js";
|
|
9
9
|
import "../vendors/useFloatingOverlay-B66lOL8v.js";
|
|
10
10
|
import { t as a } from "../vendors/useLocale-3oUjPb-k.js";
|
|
11
11
|
import { r as o } from "../vendors/animations-ISccYUE3.js";
|
|
@@ -13,8 +13,8 @@ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
|
13
13
|
import { t as s } from "../vendors/cssVars-UpriQzph.js";
|
|
14
14
|
import { t as c } from "../Tooltip/Tooltip-N06Os8rG.js";
|
|
15
15
|
import "../Select/SelectInputSearch-BMJQw4ll.js";
|
|
16
|
-
import "../CheckBox/CheckBox-
|
|
17
|
-
import { t as l } from "../CheckBox/CheckBox-
|
|
16
|
+
import "../CheckBox/CheckBox-DOdRLFKI.js";
|
|
17
|
+
import { t as l } from "../CheckBox/CheckBox-CtOSHKM0.js";
|
|
18
18
|
import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
|
|
19
19
|
import { t as u } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
|
|
20
20
|
import { t as d } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
|
|
@@ -2748,20 +2748,20 @@ var ja = (e, t, n) => {
|
|
|
2748
2748
|
}) }) })
|
|
2749
2749
|
});
|
|
2750
2750
|
}, $ = {
|
|
2751
|
-
"bsy-lexical-editor": "_bsy-lexical-
|
|
2752
|
-
"bsy-lexical-editor--floating": "_bsy-lexical-editor--
|
|
2753
|
-
"bsy-lexical-editor--sticky-toolbar": "_bsy-lexical-editor--sticky-
|
|
2754
|
-
"bsy-lexical-editor__body": "_bsy-lexical-
|
|
2755
|
-
"bsy-lexical-editor__body--fixed": "_bsy-lexical-editor__body--
|
|
2756
|
-
"bsy-lexical-editor__editable-wrap": "_bsy-lexical-editor__editable-
|
|
2757
|
-
"bsy-lexical-editor__content-editable": "_bsy-lexical-editor__content-
|
|
2758
|
-
"bsy-lexical-editor__length-badge": "_bsy-lexical-editor__length-
|
|
2759
|
-
"bsy-lexical-editor__length-badge--exceeded": "_bsy-lexical-editor__length-badge--
|
|
2751
|
+
"bsy-lexical-editor": "_bsy-lexical-editor_1sjhw_2",
|
|
2752
|
+
"bsy-lexical-editor--floating": "_bsy-lexical-editor--floating_1sjhw_10",
|
|
2753
|
+
"bsy-lexical-editor--sticky-toolbar": "_bsy-lexical-editor--sticky-toolbar_1sjhw_10",
|
|
2754
|
+
"bsy-lexical-editor__body": "_bsy-lexical-editor__body_1sjhw_13",
|
|
2755
|
+
"bsy-lexical-editor__body--fixed": "_bsy-lexical-editor__body--fixed_1sjhw_18",
|
|
2756
|
+
"bsy-lexical-editor__editable-wrap": "_bsy-lexical-editor__editable-wrap_1sjhw_21",
|
|
2757
|
+
"bsy-lexical-editor__content-editable": "_bsy-lexical-editor__content-editable_1sjhw_31",
|
|
2758
|
+
"bsy-lexical-editor__length-badge": "_bsy-lexical-editor__length-badge_1sjhw_52",
|
|
2759
|
+
"bsy-lexical-editor__length-badge--exceeded": "_bsy-lexical-editor__length-badge--exceeded_1sjhw_64"
|
|
2760
2760
|
}, za = (e) => {
|
|
2761
2761
|
if (!(e === void 0 || e === "")) return typeof e == "number" ? `${e}px` : e;
|
|
2762
2762
|
}, Ba = (e) => {
|
|
2763
2763
|
let t = {};
|
|
2764
|
-
return e ? (s(t, "--bsy-editor-container-border-color", e.borderColor), s(t, "--bsy-editor-container-border-width", za(e.borderWidth)), s(t, "--bsy-editor-container-border-radius", za(e.borderRadius)), s(t, "--bsy-editor-container-bg", e.bgColor), t) : t;
|
|
2764
|
+
return e ? (s(t, "--bsy-editor-container-border-color", e.borderColor), s(t, "--bsy-editor-container-border-width", za(e.borderWidth)), s(t, "--bsy-editor-container-border-radius", za(e.borderRadius)), s(t, "--bsy-editor-container-bg", e.bgColor), s(t, "--bsy-editor-word-count-color", e.wordCountColor), s(t, "--bsy-editor-word-count-color-exceeded", e.wordCountExceededColor), t) : t;
|
|
2765
2765
|
}, Va = class e extends st {
|
|
2766
2766
|
constructor(e, t) {
|
|
2767
2767
|
super(e, t);
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { t as e } from "../vendors/cssVars-UpriQzph.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { Children as r, isValidElement as i, useMemo as a } from "react";
|
|
4
|
+
import o from "clsx";
|
|
5
|
+
//#region src/components/FieldCard/style/resolveFieldCardThemeVars.ts
|
|
6
|
+
var s = (e) => {
|
|
7
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : String(e);
|
|
8
|
+
}, c = (t) => {
|
|
9
|
+
if (!t) return {};
|
|
10
|
+
let n = {}, r = t.colorPrimary;
|
|
11
|
+
return e(n, "--bsy-field-card-color-primary", r), e(n, "--bsy-field-card-bg", t.bg), e(n, "--bsy-field-card-title-color", t.titleColor), e(n, "--bsy-field-card-label-color", t.labelColor), e(n, "--bsy-field-card-value-color", t.valueColor), e(n, "--bsy-field-card-hover-border", t.hoverBorderColor ?? r), e(n, "--bsy-field-card-selected-border", t.selectedBorderColor ?? r), e(n, "--bsy-field-card-border-radius", s(t.borderRadius)), n;
|
|
12
|
+
}, l = "_root_2u5rz_1", u = "_sizeSmall_2u5rz_17", d = "_main_2u5rz_17", f = "_fields_2u5rz_20", p = "_sizeMiddle_2u5rz_24", m = "_sizeLarge_2u5rz_31", h = "_positionup_2u5rz_38", g = "_positionleft_2u5rz_43", _ = "_positionright_2u5rz_44", v = "_shapeCover_2u5rz_56", y = "_cover_2u5rz_77", b = "_coverShaperect_2u5rz_94", x = "_coverShapecircle_2u5rz_98", S = "_coverShapecover_2u5rz_102", C = "_coverPositionleft_2u5rz_105", w = "_coverPositionright_2u5rz_105", T = "_coverPositionup_2u5rz_111", E = "_coverFitComplete_2u5rz_116", D = "_coverPlaceholder_2u5rz_120", O = "_selected_2u5rz_129", k = "_titleRow_2u5rz_136", ee = "_check_2u5rz_143", te = "_titleYields_2u5rz_160", ne = "_hasCheck_2u5rz_164", re = "_title_2u5rz_136", A = "_meta_2u5rz_195", j = "_fieldsvertical_2u5rz_202", M = "_fieldshorizontal_2u5rz_206", N = "_label_2u5rz_212", P = "_icon_2u5rz_232", F = "_labelText_2u5rz_238", I = "_value_2u5rz_246", L = "_footer_2u5rz_255", R = "_skeleton_2u5rz_259", z = "_skeletonBody_2u5rz_283", B = "_skeletonTitle_2u5rz_289", V = "_skeletonFields_2u5rz_296", H = "_skeletonField_2u5rz_296", U = "_skeletonLabel_2u5rz_308", W = "_skeletonValue_2u5rz_315", G = "_skeletonWithCover_2u5rz_322", K = "_skeletonCover_2u5rz_326", q = {
|
|
13
|
+
root: l,
|
|
14
|
+
sizeSmall: u,
|
|
15
|
+
main: d,
|
|
16
|
+
fields: f,
|
|
17
|
+
sizeMiddle: p,
|
|
18
|
+
sizeLarge: m,
|
|
19
|
+
positionup: h,
|
|
20
|
+
positionleft: g,
|
|
21
|
+
positionright: _,
|
|
22
|
+
shapeCover: v,
|
|
23
|
+
cover: y,
|
|
24
|
+
coverShaperect: b,
|
|
25
|
+
coverShapecircle: x,
|
|
26
|
+
coverShapecover: S,
|
|
27
|
+
coverPositionleft: C,
|
|
28
|
+
coverPositionright: w,
|
|
29
|
+
coverPositionup: T,
|
|
30
|
+
coverFitComplete: E,
|
|
31
|
+
coverPlaceholder: D,
|
|
32
|
+
selected: O,
|
|
33
|
+
titleRow: k,
|
|
34
|
+
check: ee,
|
|
35
|
+
titleYields: te,
|
|
36
|
+
hasCheck: ne,
|
|
37
|
+
title: re,
|
|
38
|
+
meta: A,
|
|
39
|
+
fieldsvertical: j,
|
|
40
|
+
fieldshorizontal: M,
|
|
41
|
+
label: N,
|
|
42
|
+
icon: P,
|
|
43
|
+
labelText: F,
|
|
44
|
+
value: I,
|
|
45
|
+
footer: L,
|
|
46
|
+
skeleton: R,
|
|
47
|
+
"field-card-skeleton": "_field-card-skeleton_2u5rz_1",
|
|
48
|
+
skeletonBody: z,
|
|
49
|
+
skeletonTitle: B,
|
|
50
|
+
skeletonFields: V,
|
|
51
|
+
skeletonField: H,
|
|
52
|
+
skeletonLabel: U,
|
|
53
|
+
skeletonValue: W,
|
|
54
|
+
skeletonWithCover: G,
|
|
55
|
+
skeletonCover: K
|
|
56
|
+
}, J = ({ withCover: e, className: r, style: i }) => /* @__PURE__ */ n("div", {
|
|
57
|
+
className: o(q.root, q.skeleton, q.sizeMiddle, e && q.skeletonWithCover, r),
|
|
58
|
+
style: i,
|
|
59
|
+
"data-loading": "true",
|
|
60
|
+
"data-skeleton": "true",
|
|
61
|
+
children: [e ? /* @__PURE__ */ t("div", {
|
|
62
|
+
className: q.skeletonCover,
|
|
63
|
+
"data-skeleton-cover": ""
|
|
64
|
+
}) : null, /* @__PURE__ */ n("div", {
|
|
65
|
+
className: q.skeletonBody,
|
|
66
|
+
children: [/* @__PURE__ */ t("div", { className: q.skeletonTitle }), /* @__PURE__ */ n("div", {
|
|
67
|
+
className: q.skeletonFields,
|
|
68
|
+
children: [/* @__PURE__ */ n("div", {
|
|
69
|
+
className: q.skeletonField,
|
|
70
|
+
"data-skeleton-field": "",
|
|
71
|
+
children: [/* @__PURE__ */ t("div", { className: q.skeletonLabel }), /* @__PURE__ */ t("div", { className: q.skeletonValue })]
|
|
72
|
+
}), /* @__PURE__ */ n("div", {
|
|
73
|
+
className: q.skeletonField,
|
|
74
|
+
"data-skeleton-field": "",
|
|
75
|
+
children: [/* @__PURE__ */ t("div", { className: q.skeletonLabel }), /* @__PURE__ */ t("div", { className: q.skeletonValue })]
|
|
76
|
+
})]
|
|
77
|
+
})]
|
|
78
|
+
})]
|
|
79
|
+
}), Y = Symbol("FieldCard.slot"), X = (e, t) => (e[Y] = t, e), ie = (e) => {
|
|
80
|
+
if (typeof e == "function" && Y in e) return e[Y];
|
|
81
|
+
}, ae = {
|
|
82
|
+
small: q.sizeSmall,
|
|
83
|
+
middle: q.sizeMiddle,
|
|
84
|
+
large: q.sizeLarge
|
|
85
|
+
}, oe = {
|
|
86
|
+
vertical: q.fieldsvertical,
|
|
87
|
+
horizontal: q.fieldshorizontal
|
|
88
|
+
}, se = () => /* @__PURE__ */ n("svg", {
|
|
89
|
+
viewBox: "0 0 34 34",
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ t("rect", {
|
|
93
|
+
x: "4",
|
|
94
|
+
y: "6",
|
|
95
|
+
width: "26",
|
|
96
|
+
height: "22",
|
|
97
|
+
rx: "3",
|
|
98
|
+
fill: "none",
|
|
99
|
+
stroke: "#c5c8d4",
|
|
100
|
+
strokeWidth: "2"
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ t("circle", {
|
|
103
|
+
cx: "12",
|
|
104
|
+
cy: "14",
|
|
105
|
+
r: "2.2",
|
|
106
|
+
fill: "#c5c8d4"
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ t("path", {
|
|
109
|
+
d: "M7 24.5 13.2 18l4.2 4.2 2.6-2.4L27 24.5v1.2H7z",
|
|
110
|
+
fill: "#c5c8d4"
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
}), Z = ({ label: e, value: r, icon: i }) => {
|
|
114
|
+
let a = e != null || i != null;
|
|
115
|
+
return /* @__PURE__ */ n("div", {
|
|
116
|
+
className: q.meta,
|
|
117
|
+
children: [a ? /* @__PURE__ */ n("div", {
|
|
118
|
+
className: q.label,
|
|
119
|
+
children: [i == null ? null : /* @__PURE__ */ t("span", {
|
|
120
|
+
className: q.icon,
|
|
121
|
+
children: i
|
|
122
|
+
}), e == null ? null : /* @__PURE__ */ t("span", {
|
|
123
|
+
className: q.labelText,
|
|
124
|
+
children: e
|
|
125
|
+
})]
|
|
126
|
+
}) : null, /* @__PURE__ */ t("div", {
|
|
127
|
+
className: q.value,
|
|
128
|
+
children: r
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
131
|
+
}, Q = ({ className: e, children: n, ...r }) => /* @__PURE__ */ t("div", {
|
|
132
|
+
className: o(q.check, e),
|
|
133
|
+
...r,
|
|
134
|
+
children: n
|
|
135
|
+
}), $ = ({ className: e, children: n, onClick: r, onPointerDown: i, ...a }) => /* @__PURE__ */ t("div", {
|
|
136
|
+
className: o(q.footer, e),
|
|
137
|
+
...a,
|
|
138
|
+
onClick: (e) => {
|
|
139
|
+
r?.(e), e.stopPropagation();
|
|
140
|
+
},
|
|
141
|
+
onPointerDown: (e) => {
|
|
142
|
+
i?.(e), e.stopPropagation();
|
|
143
|
+
},
|
|
144
|
+
children: n
|
|
145
|
+
});
|
|
146
|
+
X(Z, "meta"), X(Q, "check"), X($, "footer");
|
|
147
|
+
var ce = Object.assign(({ title: e, selected: s = !1, cover: l, coverPlaceholder: u = !1, coverLayout: d, size: f = "middle", loading: p = !1, layout: m = "vertical", children: h, className: g, style: _, theme: v }) => {
|
|
148
|
+
let y = a(() => c(v), [v]);
|
|
149
|
+
if (p) return /* @__PURE__ */ t(J, {
|
|
150
|
+
withCover: !!l || u,
|
|
151
|
+
className: g,
|
|
152
|
+
style: {
|
|
153
|
+
...y,
|
|
154
|
+
..._
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
let b = !!l || u, x = b ? d?.position ?? "up" : void 0, S = b ? d?.shape ?? "cover" : void 0, C = l ? d?.fit ?? "full" : void 0, w = [], T = [], E = [];
|
|
158
|
+
r.forEach(h, (e) => {
|
|
159
|
+
if (!i(e)) return;
|
|
160
|
+
let t = ie(e.type);
|
|
161
|
+
t === "check" ? w.push(e) : t === "meta" ? T.push(e) : t === "footer" && E.push(e);
|
|
162
|
+
});
|
|
163
|
+
let D = w.length > 0 && (!b || x === "right");
|
|
164
|
+
return /* @__PURE__ */ n("div", {
|
|
165
|
+
className: o(q.root, ae[f], x && q[`position${x}`], S === "cover" && q.shapeCover, s && q.selected, w.length > 0 && q.hasCheck, D && q.titleYields, g),
|
|
166
|
+
style: {
|
|
167
|
+
...y,
|
|
168
|
+
..._
|
|
169
|
+
},
|
|
170
|
+
"data-selected": s ? "true" : "false",
|
|
171
|
+
"data-loading": "false",
|
|
172
|
+
"data-size": f,
|
|
173
|
+
"data-layout": m,
|
|
174
|
+
"data-title-yields": D ? "true" : "false",
|
|
175
|
+
children: [
|
|
176
|
+
w,
|
|
177
|
+
b && x && S ? /* @__PURE__ */ t("div", {
|
|
178
|
+
className: o(q.cover, q[`coverPosition${x}`], q[`coverShape${S}`], l && C === "complete" && q.coverFitComplete, !l && q.coverPlaceholder),
|
|
179
|
+
"data-cover-position": x,
|
|
180
|
+
"data-cover-shape": S,
|
|
181
|
+
"data-cover-fit": l ? C : void 0,
|
|
182
|
+
"data-cover-placeholder": l ? void 0 : "true",
|
|
183
|
+
children: l ? /* @__PURE__ */ t("img", {
|
|
184
|
+
src: l,
|
|
185
|
+
alt: ""
|
|
186
|
+
}) : /* @__PURE__ */ t(se, {})
|
|
187
|
+
}) : null,
|
|
188
|
+
/* @__PURE__ */ n("div", {
|
|
189
|
+
className: q.main,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ t("div", {
|
|
192
|
+
className: q.titleRow,
|
|
193
|
+
children: /* @__PURE__ */ t("div", {
|
|
194
|
+
className: q.title,
|
|
195
|
+
children: e
|
|
196
|
+
})
|
|
197
|
+
}),
|
|
198
|
+
T.length > 0 ? /* @__PURE__ */ t("div", {
|
|
199
|
+
className: o(q.fields, oe[m]),
|
|
200
|
+
children: T
|
|
201
|
+
}) : null,
|
|
202
|
+
E
|
|
203
|
+
]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
}, {
|
|
208
|
+
Meta: Z,
|
|
209
|
+
Check: Q,
|
|
210
|
+
Footer: $
|
|
211
|
+
});
|
|
212
|
+
//#endregion
|
|
213
|
+
export { ce as t };
|
package/dist/Gantt/index.js
CHANGED
package/dist/Icon/index.js
CHANGED
package/dist/InputTag/index.js
CHANGED