@uzum-tech/ui 2.3.8 → 3.0.0-alpha.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/index.js +631 -35
- package/dist/index.mjs +627 -36
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/button-v3/index.d.ts +5 -0
- package/es/_internal/button-v3/index.mjs +3 -0
- package/es/_internal/button-v3/src/ButtonV3.d.ts +533 -0
- package/es/_internal/button-v3/src/ButtonV3.mjs +200 -0
- package/es/_internal/button-v3/src/interface.d.ts +281 -0
- package/es/_internal/button-v3/src/interface.mjs +29 -0
- package/es/_internal/button-v3/src/styles/index.cssr.d.ts +2 -0
- package/es/_internal/button-v3/src/styles/index.cssr.mjs +119 -0
- package/es/_internal/button-v3/src/utils.d.ts +10 -0
- package/es/_internal/button-v3/src/utils.mjs +52 -0
- package/es/_internal/button-v3/styles/_common.d.ts +19 -0
- package/es/_internal/button-v3/styles/_common.mjs +18 -0
- package/es/_internal/button-v3/styles/dark.d.ts +3 -0
- package/es/_internal/button-v3/styles/dark.mjs +8 -0
- package/es/_internal/button-v3/styles/index.d.ts +3 -0
- package/es/_internal/button-v3/styles/index.mjs +2 -0
- package/es/_internal/button-v3/styles/light.d.ts +81 -0
- package/es/_internal/button-v3/styles/light.mjs +91 -0
- package/es/_internal/index.d.ts +2 -0
- package/es/_internal/index.mjs +1 -0
- package/es/_styles/common/dark.mjs +12 -0
- package/es/_styles/common/light.d.ts +12 -0
- package/es/_styles/common/light.mjs +12 -0
- package/es/button-v3/index.d.ts +4 -0
- package/es/button-v3/index.mjs +2 -0
- package/es/button-v3/src/ButtonV3.d.ts +525 -0
- package/es/button-v3/src/ButtonV3.mjs +17 -0
- package/es/components.d.ts +524 -2
- package/es/components.mjs +4 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/dialog/src/DialogProvider.d.ts +48 -0
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/theme-editor/src/ThemeEditor.d.ts +12 -0
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/button-v3/index.d.ts +5 -0
- package/lib/_internal/button-v3/index.js +13 -0
- package/lib/_internal/button-v3/src/ButtonV3.d.ts +533 -0
- package/lib/_internal/button-v3/src/ButtonV3.js +170 -0
- package/lib/_internal/button-v3/src/interface.d.ts +281 -0
- package/lib/_internal/button-v3/src/interface.js +20 -0
- package/lib/_internal/button-v3/src/styles/index.cssr.d.ts +2 -0
- package/lib/_internal/button-v3/src/styles/index.cssr.js +124 -0
- package/lib/_internal/button-v3/src/utils.d.ts +10 -0
- package/lib/_internal/button-v3/src/utils.js +56 -0
- package/lib/_internal/button-v3/styles/_common.d.ts +19 -0
- package/lib/_internal/button-v3/styles/_common.js +20 -0
- package/lib/_internal/button-v3/styles/dark.d.ts +3 -0
- package/lib/_internal/button-v3/styles/dark.js +10 -0
- package/lib/_internal/button-v3/styles/index.d.ts +3 -0
- package/lib/_internal/button-v3/styles/index.js +10 -0
- package/lib/_internal/button-v3/styles/light.d.ts +81 -0
- package/lib/_internal/button-v3/styles/light.js +19 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/index.js +4 -1
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +12 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/button-v3/index.d.ts +4 -0
- package/lib/button-v3/index.js +13 -0
- package/lib/button-v3/src/ButtonV3.d.ts +525 -0
- package/lib/button-v3/src/ButtonV3.js +17 -0
- package/lib/components.d.ts +524 -2
- package/lib/components.js +15 -8
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/dialog/src/DialogProvider.d.ts +48 -0
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +195 -193
- package/lib/theme-editor/src/ThemeEditor.d.ts +12 -0
- package/lib/themes/dark.js +202 -200
- package/lib/themes/light.js +202 -200
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/volar.d.ts +2 -0
- package/web-types.json +14 -1
package/dist/index.js
CHANGED
|
@@ -3905,7 +3905,7 @@
|
|
|
3905
3905
|
* _.upperFirst('FRED');
|
|
3906
3906
|
* // => 'FRED'
|
|
3907
3907
|
*/
|
|
3908
|
-
var upperFirst = createCaseFirst('toUpperCase');
|
|
3908
|
+
var upperFirst$1 = createCaseFirst('toUpperCase');
|
|
3909
3909
|
|
|
3910
3910
|
/**
|
|
3911
3911
|
* Converts the first character of `string` to upper case and the remaining
|
|
@@ -3923,7 +3923,7 @@
|
|
|
3923
3923
|
* // => 'Fred'
|
|
3924
3924
|
*/
|
|
3925
3925
|
function capitalize(string) {
|
|
3926
|
-
return upperFirst(toString$1(string).toLowerCase());
|
|
3926
|
+
return upperFirst$1(toString$1(string).toLowerCase());
|
|
3927
3927
|
}
|
|
3928
3928
|
|
|
3929
3929
|
/**
|
|
@@ -6649,7 +6649,7 @@
|
|
|
6649
6649
|
});
|
|
6650
6650
|
}
|
|
6651
6651
|
|
|
6652
|
-
var commonVariables$
|
|
6652
|
+
var commonVariables$7 = {
|
|
6653
6653
|
fontFamily: 'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
|
|
6654
6654
|
fontFamilyMono: "v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",
|
|
6655
6655
|
fontFamilyWixMadeforDisplay: '"Wix Madefor Display", v-sans, system-ui, sans-serif',
|
|
@@ -6707,7 +6707,7 @@
|
|
|
6707
6707
|
const {
|
|
6708
6708
|
fontBodyMedium,
|
|
6709
6709
|
fontFamily: fontFamily$1
|
|
6710
|
-
} = commonVariables$
|
|
6710
|
+
} = commonVariables$7;
|
|
6711
6711
|
var globalStyle = c$1("body", `
|
|
6712
6712
|
margin: 0;
|
|
6713
6713
|
font-size: ${fontBodyMedium};
|
|
@@ -8828,7 +8828,7 @@
|
|
|
8828
8828
|
}
|
|
8829
8829
|
|
|
8830
8830
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
8831
|
-
const style$
|
|
8831
|
+
const style$1$ = c([c('.v-binder-follower-container', {
|
|
8832
8832
|
position: 'absolute',
|
|
8833
8833
|
left: '0',
|
|
8834
8834
|
right: '0',
|
|
@@ -8907,7 +8907,7 @@
|
|
|
8907
8907
|
}
|
|
8908
8908
|
});
|
|
8909
8909
|
const ssrAdapter = useSsrAdapter();
|
|
8910
|
-
style$
|
|
8910
|
+
style$1$.mount({
|
|
8911
8911
|
id: 'vueuc/binder',
|
|
8912
8912
|
head: true,
|
|
8913
8913
|
anchorMetaName: cssrAnchorMetaName,
|
|
@@ -10367,7 +10367,7 @@
|
|
|
10367
10367
|
|
|
10368
10368
|
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
|
10369
10369
|
const hiddenAttr = 'v-hidden';
|
|
10370
|
-
const style$
|
|
10370
|
+
const style$1_ = c('[v-hidden]', {
|
|
10371
10371
|
display: 'none!important'
|
|
10372
10372
|
});
|
|
10373
10373
|
var VOverflow = vue.defineComponent({
|
|
@@ -10480,7 +10480,7 @@
|
|
|
10480
10480
|
}
|
|
10481
10481
|
}
|
|
10482
10482
|
const ssrAdapter = useSsrAdapter();
|
|
10483
|
-
style$
|
|
10483
|
+
style$1_.mount({
|
|
10484
10484
|
id: 'vueuc/overflow',
|
|
10485
10485
|
head: true,
|
|
10486
10486
|
anchorMetaName: cssrAnchorMetaName,
|
|
@@ -14169,7 +14169,7 @@
|
|
|
14169
14169
|
}
|
|
14170
14170
|
}
|
|
14171
14171
|
|
|
14172
|
-
var style$
|
|
14172
|
+
var style$1Z = cB("base-icon", `
|
|
14173
14173
|
height: 1em;
|
|
14174
14174
|
width: 1em;
|
|
14175
14175
|
line-height: 1em;
|
|
@@ -14205,7 +14205,7 @@
|
|
|
14205
14205
|
onMouseup: Function
|
|
14206
14206
|
},
|
|
14207
14207
|
setup(props) {
|
|
14208
|
-
useStyle("-base-icon", style$
|
|
14208
|
+
useStyle("-base-icon", style$1Z, vue.toRef(props, "clsPrefix"));
|
|
14209
14209
|
},
|
|
14210
14210
|
render() {
|
|
14211
14211
|
return /* @__PURE__ */ vue.h(
|
|
@@ -14240,7 +14240,7 @@
|
|
|
14240
14240
|
onClick: Function
|
|
14241
14241
|
};
|
|
14242
14242
|
|
|
14243
|
-
var style$
|
|
14243
|
+
var style$1Y = cB("icon", `
|
|
14244
14244
|
height: 1em;
|
|
14245
14245
|
width: 1em;
|
|
14246
14246
|
line-height: 1em;
|
|
@@ -14264,7 +14264,7 @@
|
|
|
14264
14264
|
|
|
14265
14265
|
const derived$1 = {
|
|
14266
14266
|
name: "common",
|
|
14267
|
-
...commonVariables$
|
|
14267
|
+
...commonVariables$7,
|
|
14268
14268
|
scrollbarColor: "rgba(255, 255, 255, 0.25)",
|
|
14269
14269
|
scrollbarColorHover: "rgba(255, 255, 255, 0.4)",
|
|
14270
14270
|
scrollbarWidth: "5px",
|
|
@@ -14297,6 +14297,18 @@
|
|
|
14297
14297
|
brandQuinary300: "#F19EDA",
|
|
14298
14298
|
brandQuinary600: "#EA3E68",
|
|
14299
14299
|
brandQuinary100: "#FAD6D9",
|
|
14300
|
+
accentBrand: "#7000FF",
|
|
14301
|
+
accentBrandHover: "#5D46A6",
|
|
14302
|
+
accentError: "#F24835",
|
|
14303
|
+
accentErrorHover: "#A82C1E",
|
|
14304
|
+
accentErrorSubtle: "#FFFFFF",
|
|
14305
|
+
accentNeutral: "#F3F4F6",
|
|
14306
|
+
accentNeutralHover: "#E8EAED",
|
|
14307
|
+
accentFocusRing: "#CDD1D5",
|
|
14308
|
+
accentBorder: "#DDE0E3",
|
|
14309
|
+
accentDisabled: "#DDE0E3",
|
|
14310
|
+
accentDisabledContent: "#B2B8BC",
|
|
14311
|
+
accentPressedOverlay: "rgba(0, 0, 0, 0.12)",
|
|
14300
14312
|
surfacePrimary: "#101010",
|
|
14301
14313
|
surfaceSecondary: "#1D1D1D",
|
|
14302
14314
|
containerPrimary: "#1D1D1D",
|
|
@@ -14347,7 +14359,7 @@
|
|
|
14347
14359
|
|
|
14348
14360
|
const derived = {
|
|
14349
14361
|
name: "common",
|
|
14350
|
-
...commonVariables$
|
|
14362
|
+
...commonVariables$7,
|
|
14351
14363
|
scrollbarColor: "rgba(0, 0, 0, 0.25)",
|
|
14352
14364
|
scrollbarColorHover: "rgba(0, 0, 0, 0.4)",
|
|
14353
14365
|
scrollbarWidth: "5px",
|
|
@@ -14380,6 +14392,18 @@
|
|
|
14380
14392
|
brandQuinary300: "#F19EDA",
|
|
14381
14393
|
brandQuinary600: "#EA3E68",
|
|
14382
14394
|
brandQuinary100: "#FAD6D9",
|
|
14395
|
+
accentBrand: "#7000FF",
|
|
14396
|
+
accentBrandHover: "#5D46A6",
|
|
14397
|
+
accentError: "#F24835",
|
|
14398
|
+
accentErrorHover: "#A82C1E",
|
|
14399
|
+
accentErrorSubtle: "#FFFFFF",
|
|
14400
|
+
accentNeutral: "#F3F4F6",
|
|
14401
|
+
accentNeutralHover: "#E8EAED",
|
|
14402
|
+
accentFocusRing: "#CDD1D5",
|
|
14403
|
+
accentBorder: "#DDE0E3",
|
|
14404
|
+
accentDisabled: "#DDE0E3",
|
|
14405
|
+
accentDisabledContent: "#B2B8BC",
|
|
14406
|
+
accentPressedOverlay: "rgba(0, 0, 0, 0.12)",
|
|
14383
14407
|
surfacePrimary: "#fff",
|
|
14384
14408
|
surfaceSecondary: "#1d1d1d",
|
|
14385
14409
|
containerPrimary: "#fff",
|
|
@@ -14426,7 +14450,7 @@
|
|
|
14426
14450
|
boxShadow2: "0px 20px 80px 0px rgba(0, 0, 0, 0.07)"
|
|
14427
14451
|
};
|
|
14428
14452
|
|
|
14429
|
-
function self$
|
|
14453
|
+
function self$1F(vars) {
|
|
14430
14454
|
const {
|
|
14431
14455
|
elementsPrimary
|
|
14432
14456
|
} = vars;
|
|
@@ -14442,13 +14466,13 @@
|
|
|
14442
14466
|
const iconLight = {
|
|
14443
14467
|
name: "Icon",
|
|
14444
14468
|
common: derived,
|
|
14445
|
-
self: self$
|
|
14469
|
+
self: self$1F
|
|
14446
14470
|
};
|
|
14447
14471
|
|
|
14448
14472
|
const iconDark$1 = {
|
|
14449
14473
|
name: "Icon",
|
|
14450
14474
|
common: derived$1,
|
|
14451
|
-
self: self$
|
|
14475
|
+
self: self$1F
|
|
14452
14476
|
};
|
|
14453
14477
|
|
|
14454
14478
|
const FALLBACK_ICON = "�";
|
|
@@ -14462,7 +14486,7 @@
|
|
|
14462
14486
|
mergedIconPacksRef,
|
|
14463
14487
|
inlineThemeDisabled
|
|
14464
14488
|
} = useConfig(props);
|
|
14465
|
-
const themeRef = useTheme("Icon", "-icon", style$
|
|
14489
|
+
const themeRef = useTheme("Icon", "-icon", style$1Y, iconLight, props, mergedClsPrefixRef);
|
|
14466
14490
|
const cssVarsRef = vue.computed(() => {
|
|
14467
14491
|
const {
|
|
14468
14492
|
depth
|
|
@@ -14603,7 +14627,7 @@
|
|
|
14603
14627
|
avatarSize: "16px"
|
|
14604
14628
|
};
|
|
14605
14629
|
|
|
14606
|
-
function self$
|
|
14630
|
+
function self$1E(vars) {
|
|
14607
14631
|
const {
|
|
14608
14632
|
heightHuge,
|
|
14609
14633
|
fontBodyLarge,
|
|
@@ -14633,16 +14657,16 @@
|
|
|
14633
14657
|
const accountOptionLight = {
|
|
14634
14658
|
name: "AccountOption",
|
|
14635
14659
|
common: derived,
|
|
14636
|
-
self: self$
|
|
14660
|
+
self: self$1E
|
|
14637
14661
|
};
|
|
14638
14662
|
|
|
14639
14663
|
const accountOptionDark = {
|
|
14640
14664
|
name: "AccountOption",
|
|
14641
14665
|
common: derived$1,
|
|
14642
|
-
self: self$
|
|
14666
|
+
self: self$1E
|
|
14643
14667
|
};
|
|
14644
14668
|
|
|
14645
|
-
var style$
|
|
14669
|
+
var style$1X = cB("base-account-option", `
|
|
14646
14670
|
display: flex;
|
|
14647
14671
|
align-items: center;
|
|
14648
14672
|
position: relative;
|
|
@@ -14697,7 +14721,7 @@
|
|
|
14697
14721
|
const themeRef = useTheme(
|
|
14698
14722
|
"AccountOption",
|
|
14699
14723
|
"-base-account-option",
|
|
14700
|
-
style$
|
|
14724
|
+
style$1X,
|
|
14701
14725
|
accountOptionLight,
|
|
14702
14726
|
props,
|
|
14703
14727
|
mergedClsPrefixRef
|
|
@@ -14773,6 +14797,546 @@
|
|
|
14773
14797
|
}
|
|
14774
14798
|
});
|
|
14775
14799
|
|
|
14800
|
+
var commonVariables$6 = {
|
|
14801
|
+
heightSmall: "36px",
|
|
14802
|
+
heightMedium: "48px",
|
|
14803
|
+
heightLarge: "56px",
|
|
14804
|
+
paddingSmall: "0 12px",
|
|
14805
|
+
paddingMedium: "0 16px",
|
|
14806
|
+
paddingLarge: "0 24px",
|
|
14807
|
+
borderRadiusSmall: "8px",
|
|
14808
|
+
borderRadiusMedium: "12px",
|
|
14809
|
+
borderRadiusLarge: "16px",
|
|
14810
|
+
iconSizeSmall: "16px",
|
|
14811
|
+
iconSizeMedium: "20px",
|
|
14812
|
+
iconSizeLarge: "24px",
|
|
14813
|
+
iconMargin: "8px",
|
|
14814
|
+
borderWidth: "1px",
|
|
14815
|
+
focusRingWidth: "2px",
|
|
14816
|
+
spinnerStrokeWidth: "3.7px"
|
|
14817
|
+
};
|
|
14818
|
+
|
|
14819
|
+
const TRANSPARENT = "transparent";
|
|
14820
|
+
function self$1D(vars) {
|
|
14821
|
+
const {
|
|
14822
|
+
fontFamilyWixMadeforDisplay,
|
|
14823
|
+
fontBodyMedium,
|
|
14824
|
+
lineHeightBodyMedium,
|
|
14825
|
+
fontWeightStrong,
|
|
14826
|
+
textPrimary,
|
|
14827
|
+
staticBlack,
|
|
14828
|
+
staticWhite,
|
|
14829
|
+
accentBrand,
|
|
14830
|
+
accentBrandHover,
|
|
14831
|
+
accentError,
|
|
14832
|
+
accentErrorHover,
|
|
14833
|
+
accentErrorSubtle,
|
|
14834
|
+
accentNeutral,
|
|
14835
|
+
accentNeutralHover,
|
|
14836
|
+
accentBorder,
|
|
14837
|
+
accentFocusRing,
|
|
14838
|
+
accentDisabled,
|
|
14839
|
+
accentDisabledContent,
|
|
14840
|
+
accentPressedOverlay
|
|
14841
|
+
} = vars;
|
|
14842
|
+
return {
|
|
14843
|
+
...commonVariables$6,
|
|
14844
|
+
fontFamily: fontFamilyWixMadeforDisplay,
|
|
14845
|
+
fontSize: fontBodyMedium,
|
|
14846
|
+
lineHeight: lineHeightBodyMedium,
|
|
14847
|
+
fontWeight: fontWeightStrong,
|
|
14848
|
+
letterSpacing: "0.1px",
|
|
14849
|
+
pressedOverlayColor: accentPressedOverlay,
|
|
14850
|
+
focusRingColor: accentFocusRing,
|
|
14851
|
+
textColorDisabled: accentDisabledContent,
|
|
14852
|
+
colorPrimary: accentBrand,
|
|
14853
|
+
colorPrimaryHover: accentBrandHover,
|
|
14854
|
+
textColorPrimary: staticWhite,
|
|
14855
|
+
textColorPrimaryHover: staticWhite,
|
|
14856
|
+
borderColorPrimary: TRANSPARENT,
|
|
14857
|
+
colorPrimaryDisabled: accentDisabled,
|
|
14858
|
+
borderColorPrimaryDisabled: TRANSPARENT,
|
|
14859
|
+
colorPrimaryNegative: accentError,
|
|
14860
|
+
colorPrimaryNegativeHover: accentErrorHover,
|
|
14861
|
+
textColorPrimaryNegative: staticWhite,
|
|
14862
|
+
textColorPrimaryNegativeHover: staticWhite,
|
|
14863
|
+
borderColorPrimaryNegative: TRANSPARENT,
|
|
14864
|
+
colorPrimaryNegativeDisabled: accentDisabled,
|
|
14865
|
+
borderColorPrimaryNegativeDisabled: TRANSPARENT,
|
|
14866
|
+
colorSecondary: accentNeutral,
|
|
14867
|
+
colorSecondaryHover: accentNeutralHover,
|
|
14868
|
+
textColorSecondary: staticBlack,
|
|
14869
|
+
textColorSecondaryHover: staticBlack,
|
|
14870
|
+
borderColorSecondary: accentBorder,
|
|
14871
|
+
colorSecondaryDisabled: accentDisabled,
|
|
14872
|
+
borderColorSecondaryDisabled: accentNeutral,
|
|
14873
|
+
colorTertiary: TRANSPARENT,
|
|
14874
|
+
colorTertiaryHover: accentNeutral,
|
|
14875
|
+
textColorTertiary: textPrimary,
|
|
14876
|
+
textColorTertiaryHover: staticBlack,
|
|
14877
|
+
borderColorTertiary: TRANSPARENT,
|
|
14878
|
+
colorTertiaryDisabled: TRANSPARENT,
|
|
14879
|
+
borderColorTertiaryDisabled: TRANSPARENT,
|
|
14880
|
+
colorTertiaryNegative: TRANSPARENT,
|
|
14881
|
+
colorTertiaryNegativeHover: accentErrorSubtle,
|
|
14882
|
+
textColorTertiaryNegative: accentError,
|
|
14883
|
+
textColorTertiaryNegativeHover: accentError,
|
|
14884
|
+
borderColorTertiaryNegative: TRANSPARENT,
|
|
14885
|
+
colorTertiaryNegativeDisabled: TRANSPARENT,
|
|
14886
|
+
borderColorTertiaryNegativeDisabled: TRANSPARENT,
|
|
14887
|
+
colorGhost: TRANSPARENT,
|
|
14888
|
+
colorGhostHover: TRANSPARENT,
|
|
14889
|
+
textColorGhost: accentBrand,
|
|
14890
|
+
textColorGhostHover: accentBrandHover,
|
|
14891
|
+
borderColorGhost: TRANSPARENT,
|
|
14892
|
+
colorGhostDisabled: TRANSPARENT,
|
|
14893
|
+
borderColorGhostDisabled: TRANSPARENT,
|
|
14894
|
+
colorGhostNegative: TRANSPARENT,
|
|
14895
|
+
colorGhostNegativeHover: TRANSPARENT,
|
|
14896
|
+
textColorGhostNegative: accentError,
|
|
14897
|
+
textColorGhostNegativeHover: accentErrorHover,
|
|
14898
|
+
borderColorGhostNegative: TRANSPARENT,
|
|
14899
|
+
colorGhostNegativeDisabled: TRANSPARENT,
|
|
14900
|
+
borderColorGhostNegativeDisabled: TRANSPARENT
|
|
14901
|
+
};
|
|
14902
|
+
}
|
|
14903
|
+
const buttonV3Light = {
|
|
14904
|
+
name: "ButtonV3",
|
|
14905
|
+
common: derived,
|
|
14906
|
+
self: self$1D
|
|
14907
|
+
};
|
|
14908
|
+
|
|
14909
|
+
const buttonV3Dark = {
|
|
14910
|
+
name: "ButtonV3",
|
|
14911
|
+
common: derived$1,
|
|
14912
|
+
self: self$1D
|
|
14913
|
+
};
|
|
14914
|
+
|
|
14915
|
+
const buttonV3Props = {
|
|
14916
|
+
...useTheme.props,
|
|
14917
|
+
type: {
|
|
14918
|
+
type: String,
|
|
14919
|
+
default: "primary"
|
|
14920
|
+
},
|
|
14921
|
+
tone: {
|
|
14922
|
+
type: String,
|
|
14923
|
+
default: "default"
|
|
14924
|
+
},
|
|
14925
|
+
size: String,
|
|
14926
|
+
iconOnly: Boolean,
|
|
14927
|
+
block: Boolean,
|
|
14928
|
+
disabled: Boolean,
|
|
14929
|
+
loading: Boolean,
|
|
14930
|
+
focusable: {
|
|
14931
|
+
type: Boolean,
|
|
14932
|
+
default: true
|
|
14933
|
+
},
|
|
14934
|
+
tag: {
|
|
14935
|
+
type: String,
|
|
14936
|
+
default: "button"
|
|
14937
|
+
},
|
|
14938
|
+
attrType: {
|
|
14939
|
+
type: String,
|
|
14940
|
+
default: "button"
|
|
14941
|
+
},
|
|
14942
|
+
onClick: [Function, Array]
|
|
14943
|
+
};
|
|
14944
|
+
|
|
14945
|
+
var style$1W = c$1([c$1("@keyframes u-button-v3-spin", `
|
|
14946
|
+
from {
|
|
14947
|
+
transform: rotate(0deg);
|
|
14948
|
+
}
|
|
14949
|
+
to {
|
|
14950
|
+
transform: rotate(360deg);
|
|
14951
|
+
}
|
|
14952
|
+
`), cB("button-v3", `
|
|
14953
|
+
box-sizing: border-box;
|
|
14954
|
+
position: relative;
|
|
14955
|
+
display: inline-flex;
|
|
14956
|
+
flex-wrap: nowrap;
|
|
14957
|
+
flex-shrink: 0;
|
|
14958
|
+
align-items: center;
|
|
14959
|
+
justify-content: center;
|
|
14960
|
+
gap: var(--u-icon-margin);
|
|
14961
|
+
margin: 0;
|
|
14962
|
+
max-width: 100%;
|
|
14963
|
+
height: var(--u-height);
|
|
14964
|
+
padding: var(--u-padding);
|
|
14965
|
+
border: var(--u-border-width) solid var(--u-border-color);
|
|
14966
|
+
border-radius: var(--u-border-radius);
|
|
14967
|
+
background-color: var(--u-color);
|
|
14968
|
+
color: var(--u-text-color);
|
|
14969
|
+
font-family: var(--u-font-family);
|
|
14970
|
+
font-size: var(--u-font-size);
|
|
14971
|
+
line-height: var(--u-line-height);
|
|
14972
|
+
font-weight: var(--u-font-weight);
|
|
14973
|
+
letter-spacing: var(--u-letter-spacing);
|
|
14974
|
+
text-align: center;
|
|
14975
|
+
text-decoration: none;
|
|
14976
|
+
white-space: nowrap;
|
|
14977
|
+
cursor: pointer;
|
|
14978
|
+
outline: none;
|
|
14979
|
+
user-select: none;
|
|
14980
|
+
-webkit-user-select: none;
|
|
14981
|
+
-webkit-tap-highlight-color: transparent;
|
|
14982
|
+
transition:
|
|
14983
|
+
color .3s var(--u-bezier),
|
|
14984
|
+
background-color .3s var(--u-bezier),
|
|
14985
|
+
border-color .3s var(--u-bezier);
|
|
14986
|
+
`, [c$1("&::after", `
|
|
14987
|
+
content: "";
|
|
14988
|
+
position: absolute;
|
|
14989
|
+
inset: calc(var(--u-border-width) * -1);
|
|
14990
|
+
z-index: 0;
|
|
14991
|
+
border-radius: inherit;
|
|
14992
|
+
background-color: var(--u-pressed-overlay-color);
|
|
14993
|
+
opacity: 0;
|
|
14994
|
+
pointer-events: none;
|
|
14995
|
+
transition: opacity .2s var(--u-bezier);
|
|
14996
|
+
`), cE("label", `
|
|
14997
|
+
position: relative;
|
|
14998
|
+
z-index: 1;
|
|
14999
|
+
min-width: 0;
|
|
15000
|
+
overflow: hidden;
|
|
15001
|
+
text-overflow: ellipsis;
|
|
15002
|
+
white-space: nowrap;
|
|
15003
|
+
`), cE("icon", `
|
|
15004
|
+
position: relative;
|
|
15005
|
+
z-index: 1;
|
|
15006
|
+
display: inline-flex;
|
|
15007
|
+
align-items: center;
|
|
15008
|
+
justify-content: center;
|
|
15009
|
+
flex: none;
|
|
15010
|
+
width: var(--u-icon-size);
|
|
15011
|
+
height: var(--u-icon-size);
|
|
15012
|
+
font-size: var(--u-icon-size);
|
|
15013
|
+
line-height: 1;
|
|
15014
|
+
`, [c$1("svg", `
|
|
15015
|
+
width: 1em;
|
|
15016
|
+
height: 1em;
|
|
15017
|
+
`)]), cE("spinner", `
|
|
15018
|
+
position: absolute;
|
|
15019
|
+
z-index: 1;
|
|
15020
|
+
top: 50%;
|
|
15021
|
+
left: 50%;
|
|
15022
|
+
transform: translate(-50%, -50%);
|
|
15023
|
+
width: var(--u-icon-size);
|
|
15024
|
+
height: var(--u-icon-size);
|
|
15025
|
+
font-size: var(--u-icon-size);
|
|
15026
|
+
line-height: 1;
|
|
15027
|
+
`), cE("spinner-icon", `
|
|
15028
|
+
display: block;
|
|
15029
|
+
width: 100%;
|
|
15030
|
+
height: 100%;
|
|
15031
|
+
color: currentColor;
|
|
15032
|
+
animation: u-button-v3-spin 1s linear infinite;
|
|
15033
|
+
`), cM("block", `
|
|
15034
|
+
display: flex;
|
|
15035
|
+
width: 100%;
|
|
15036
|
+
`), cM("icon-only", `
|
|
15037
|
+
padding: 0;
|
|
15038
|
+
width: var(--u-height);
|
|
15039
|
+
`), cNotM("disabled", [c$1("&:hover", `
|
|
15040
|
+
background-color: var(--u-color-hover);
|
|
15041
|
+
color: var(--u-text-color-hover);
|
|
15042
|
+
`), c$1("&:focus-visible", `
|
|
15043
|
+
outline: var(--u-focus-ring-width) solid var(--u-focus-ring-color);
|
|
15044
|
+
outline-offset: 0;
|
|
15045
|
+
`), cNotM("loading", [c$1("&:active", `
|
|
15046
|
+
background-color: var(--u-color);
|
|
15047
|
+
`, [c$1("&::after", `
|
|
15048
|
+
opacity: 1;
|
|
15049
|
+
`)])])]), cM("ghost-type", [c$1("&::after", `
|
|
15050
|
+
display: none;
|
|
15051
|
+
`), cNotM("disabled", [c$1("&:focus-visible", `
|
|
15052
|
+
color: var(--u-text-color-hover);
|
|
15053
|
+
`)])]), cM("disabled", `
|
|
15054
|
+
cursor: not-allowed;
|
|
15055
|
+
background-color: var(--u-color-disabled);
|
|
15056
|
+
border-color: var(--u-border-color-disabled);
|
|
15057
|
+
color: var(--u-text-color-disabled);
|
|
15058
|
+
`), cM("loading", `
|
|
15059
|
+
cursor: default;
|
|
15060
|
+
`), cM("loading-text-only", [cE("label", `
|
|
15061
|
+
visibility: hidden;
|
|
15062
|
+
`)])])]);
|
|
15063
|
+
|
|
15064
|
+
const SPINNER_VIEWBOX = 100;
|
|
15065
|
+
const SPINNER_ARC = 0.75;
|
|
15066
|
+
const DEFAULT_SPINNER_STROKE_WIDTH = 18.5;
|
|
15067
|
+
function resolveVariantKey(type, tone) {
|
|
15068
|
+
if (tone !== "negative" || type === "secondary") return type;
|
|
15069
|
+
return `${type}Negative`;
|
|
15070
|
+
}
|
|
15071
|
+
function upperFirst(value) {
|
|
15072
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
15073
|
+
}
|
|
15074
|
+
function resolveSpinnerStrokeWidth(iconSize, strokeWidth) {
|
|
15075
|
+
const size = Number.parseFloat(iconSize);
|
|
15076
|
+
const stroke = Number.parseFloat(strokeWidth);
|
|
15077
|
+
if (!size || !stroke) return DEFAULT_SPINNER_STROKE_WIDTH;
|
|
15078
|
+
return stroke / size * SPINNER_VIEWBOX;
|
|
15079
|
+
}
|
|
15080
|
+
function renderSpinner(clsPrefix, strokeWidth) {
|
|
15081
|
+
const radius = (SPINNER_VIEWBOX - strokeWidth) / 2;
|
|
15082
|
+
const circumference = 2 * Math.PI * radius;
|
|
15083
|
+
const arc = SPINNER_ARC * circumference;
|
|
15084
|
+
return vue.h("svg", {
|
|
15085
|
+
class: `${clsPrefix}-button-v3__spinner-icon`,
|
|
15086
|
+
viewBox: `0 0 ${SPINNER_VIEWBOX} ${SPINNER_VIEWBOX}`,
|
|
15087
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15088
|
+
role: "img",
|
|
15089
|
+
"aria-label": "loading"
|
|
15090
|
+
}, [vue.h("circle", {
|
|
15091
|
+
cx: SPINNER_VIEWBOX / 2,
|
|
15092
|
+
cy: SPINNER_VIEWBOX / 2,
|
|
15093
|
+
r: radius,
|
|
15094
|
+
fill: "none",
|
|
15095
|
+
stroke: "currentColor",
|
|
15096
|
+
"stroke-width": strokeWidth,
|
|
15097
|
+
"stroke-linecap": "round",
|
|
15098
|
+
"stroke-dasharray": `${arc} ${circumference - arc}`
|
|
15099
|
+
})]);
|
|
15100
|
+
}
|
|
15101
|
+
function renderIconSlot(options) {
|
|
15102
|
+
const {
|
|
15103
|
+
clsPrefix,
|
|
15104
|
+
slot,
|
|
15105
|
+
showSpinner,
|
|
15106
|
+
strokeWidth,
|
|
15107
|
+
key
|
|
15108
|
+
} = options;
|
|
15109
|
+
if (!showSpinner && !slot) return null;
|
|
15110
|
+
return vue.h("span", {
|
|
15111
|
+
key,
|
|
15112
|
+
class: `${clsPrefix}-button-v3__icon`
|
|
15113
|
+
}, showSpinner ? [renderSpinner(clsPrefix, strokeWidth)] : slot?.());
|
|
15114
|
+
}
|
|
15115
|
+
|
|
15116
|
+
const ButtonV3$1 = vue.defineComponent({
|
|
15117
|
+
name: "ButtonV3",
|
|
15118
|
+
props: buttonV3Props,
|
|
15119
|
+
slots: Object,
|
|
15120
|
+
setup(props, { attrs }) {
|
|
15121
|
+
{
|
|
15122
|
+
vue.watchEffect(() => {
|
|
15123
|
+
if (props.type === "secondary" && props.tone === "negative") {
|
|
15124
|
+
warnOnce(
|
|
15125
|
+
"button-v3",
|
|
15126
|
+
"\u0423 \u0442\u0438\u043F\u0430 `secondary` \u043D\u0435\u0442 \u0442\u043E\u043D\u0430 `negative` \u2014 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u0442\u043E\u043D `default`."
|
|
15127
|
+
);
|
|
15128
|
+
}
|
|
15129
|
+
if (props.iconOnly && !attrs["aria-label"] && !attrs["aria-labelledby"] && !attrs.title) {
|
|
15130
|
+
warnOnce(
|
|
15131
|
+
"button-v3",
|
|
15132
|
+
"\u041A\u043D\u043E\u043F\u043A\u0435 \u0441 `icon-only` \u043D\u0443\u0436\u0435\u043D `aria-label` (\u0438\u043B\u0438 `title`) \u2014 \u0438\u043D\u0430\u0447\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043F\u043E\u043D\u044F\u0442\u043D\u043E."
|
|
15133
|
+
);
|
|
15134
|
+
}
|
|
15135
|
+
});
|
|
15136
|
+
}
|
|
15137
|
+
const selfElRef = vue.ref(null);
|
|
15138
|
+
const { inlineThemeDisabled, mergedClsPrefixRef } = useConfig(props);
|
|
15139
|
+
const themeRef = useTheme(
|
|
15140
|
+
"ButtonV3",
|
|
15141
|
+
"-button-v3",
|
|
15142
|
+
style$1W,
|
|
15143
|
+
buttonV3Light,
|
|
15144
|
+
props,
|
|
15145
|
+
mergedClsPrefixRef
|
|
15146
|
+
);
|
|
15147
|
+
const { mergedSizeRef } = useFormItem(
|
|
15148
|
+
{},
|
|
15149
|
+
{
|
|
15150
|
+
defaultSize: "medium",
|
|
15151
|
+
mergedSize: (UFormItem) => {
|
|
15152
|
+
const { size } = props;
|
|
15153
|
+
if (size)
|
|
15154
|
+
return size;
|
|
15155
|
+
const { mergedSize: formItemSize } = UFormItem || {};
|
|
15156
|
+
if (formItemSize)
|
|
15157
|
+
return formItemSize.value;
|
|
15158
|
+
return "medium";
|
|
15159
|
+
}
|
|
15160
|
+
}
|
|
15161
|
+
);
|
|
15162
|
+
const variantKeyRef = vue.computed(
|
|
15163
|
+
() => resolveVariantKey(props.type, props.tone)
|
|
15164
|
+
);
|
|
15165
|
+
const mergedDisabledRef = vue.computed(() => props.disabled);
|
|
15166
|
+
const inertRef = vue.computed(() => props.disabled || props.loading);
|
|
15167
|
+
const mergedFocusableRef = vue.computed(
|
|
15168
|
+
() => props.focusable && !props.disabled
|
|
15169
|
+
);
|
|
15170
|
+
const spinnerStrokeWidthRef = vue.computed(() => {
|
|
15171
|
+
const { self } = themeRef.value;
|
|
15172
|
+
return resolveSpinnerStrokeWidth(
|
|
15173
|
+
self[createKey("iconSize", mergedSizeRef.value)],
|
|
15174
|
+
self.spinnerStrokeWidth
|
|
15175
|
+
);
|
|
15176
|
+
});
|
|
15177
|
+
const handleClick = (e) => {
|
|
15178
|
+
if (inertRef.value) {
|
|
15179
|
+
e.preventDefault();
|
|
15180
|
+
e.stopPropagation();
|
|
15181
|
+
return;
|
|
15182
|
+
}
|
|
15183
|
+
const { onClick } = props;
|
|
15184
|
+
if (onClick)
|
|
15185
|
+
call(onClick, e);
|
|
15186
|
+
};
|
|
15187
|
+
const cssVarsRef = vue.computed(() => {
|
|
15188
|
+
const {
|
|
15189
|
+
common: { cubicBezierEaseInOut },
|
|
15190
|
+
self
|
|
15191
|
+
} = themeRef.value;
|
|
15192
|
+
const {
|
|
15193
|
+
fontFamily,
|
|
15194
|
+
fontSize,
|
|
15195
|
+
lineHeight,
|
|
15196
|
+
fontWeight,
|
|
15197
|
+
letterSpacing,
|
|
15198
|
+
iconMargin,
|
|
15199
|
+
borderWidth,
|
|
15200
|
+
focusRingWidth,
|
|
15201
|
+
focusRingColor,
|
|
15202
|
+
pressedOverlayColor,
|
|
15203
|
+
textColorDisabled
|
|
15204
|
+
} = self;
|
|
15205
|
+
const size = mergedSizeRef.value;
|
|
15206
|
+
const variant = upperFirst(variantKeyRef.value);
|
|
15207
|
+
const colors = self;
|
|
15208
|
+
return {
|
|
15209
|
+
"--u-bezier": cubicBezierEaseInOut,
|
|
15210
|
+
"--u-height": self[createKey("height", size)],
|
|
15211
|
+
"--u-padding": self[createKey("padding", size)],
|
|
15212
|
+
"--u-border-radius": self[createKey("borderRadius", size)],
|
|
15213
|
+
"--u-icon-size": self[createKey("iconSize", size)],
|
|
15214
|
+
"--u-icon-margin": iconMargin,
|
|
15215
|
+
"--u-font-family": fontFamily,
|
|
15216
|
+
"--u-font-size": fontSize,
|
|
15217
|
+
"--u-line-height": lineHeight,
|
|
15218
|
+
"--u-font-weight": fontWeight,
|
|
15219
|
+
"--u-letter-spacing": letterSpacing,
|
|
15220
|
+
"--u-border-width": borderWidth,
|
|
15221
|
+
"--u-focus-ring-width": focusRingWidth,
|
|
15222
|
+
"--u-focus-ring-color": focusRingColor,
|
|
15223
|
+
"--u-pressed-overlay-color": pressedOverlayColor,
|
|
15224
|
+
"--u-color": colors[`color${variant}`],
|
|
15225
|
+
"--u-color-hover": colors[`color${variant}Hover`],
|
|
15226
|
+
"--u-color-disabled": colors[`color${variant}Disabled`],
|
|
15227
|
+
"--u-text-color": colors[`textColor${variant}`],
|
|
15228
|
+
"--u-text-color-hover": colors[`textColor${variant}Hover`],
|
|
15229
|
+
"--u-text-color-disabled": textColorDisabled,
|
|
15230
|
+
"--u-border-color": colors[`borderColor${variant}`],
|
|
15231
|
+
"--u-border-color-disabled": colors[`borderColor${variant}Disabled`]
|
|
15232
|
+
};
|
|
15233
|
+
});
|
|
15234
|
+
const themeClassHashRef = vue.computed(
|
|
15235
|
+
() => `${variantKeyRef.value}-${mergedSizeRef.value}`
|
|
15236
|
+
);
|
|
15237
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass("button-v3", themeClassHashRef, cssVarsRef, props) : void 0;
|
|
15238
|
+
return {
|
|
15239
|
+
selfElRef,
|
|
15240
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
15241
|
+
mergedSize: mergedSizeRef,
|
|
15242
|
+
mergedDisabled: mergedDisabledRef,
|
|
15243
|
+
mergedFocusable: mergedFocusableRef,
|
|
15244
|
+
inert: inertRef,
|
|
15245
|
+
spinnerStrokeWidth: spinnerStrokeWidthRef,
|
|
15246
|
+
handleClick,
|
|
15247
|
+
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
15248
|
+
themeClass: themeClassHandle?.themeClass,
|
|
15249
|
+
onRender: themeClassHandle?.onRender
|
|
15250
|
+
};
|
|
15251
|
+
},
|
|
15252
|
+
render() {
|
|
15253
|
+
const {
|
|
15254
|
+
$slots,
|
|
15255
|
+
mergedClsPrefix: clsPrefix,
|
|
15256
|
+
tag: Component,
|
|
15257
|
+
iconOnly,
|
|
15258
|
+
loading,
|
|
15259
|
+
mergedDisabled,
|
|
15260
|
+
inert,
|
|
15261
|
+
spinnerStrokeWidth: strokeWidth,
|
|
15262
|
+
onRender
|
|
15263
|
+
} = this;
|
|
15264
|
+
onRender?.();
|
|
15265
|
+
const iconStartSlot = $slots["icon-start"];
|
|
15266
|
+
const iconEndSlot = $slots["icon-end"];
|
|
15267
|
+
const hasIconStart = !!iconStartSlot;
|
|
15268
|
+
const hasIconEnd = !!iconEndSlot;
|
|
15269
|
+
const centeredSpinner = loading && !iconOnly && !hasIconStart && !hasIconEnd;
|
|
15270
|
+
const children = [];
|
|
15271
|
+
if (iconOnly) {
|
|
15272
|
+
children.push(
|
|
15273
|
+
renderIconSlot({
|
|
15274
|
+
clsPrefix,
|
|
15275
|
+
slot: iconStartSlot || $slots.default,
|
|
15276
|
+
showSpinner: loading,
|
|
15277
|
+
strokeWidth,
|
|
15278
|
+
key: "icon"
|
|
15279
|
+
})
|
|
15280
|
+
);
|
|
15281
|
+
} else {
|
|
15282
|
+
children.push(
|
|
15283
|
+
renderIconSlot({
|
|
15284
|
+
clsPrefix,
|
|
15285
|
+
slot: iconStartSlot,
|
|
15286
|
+
showSpinner: loading && hasIconStart,
|
|
15287
|
+
strokeWidth,
|
|
15288
|
+
key: "icon-start"
|
|
15289
|
+
})
|
|
15290
|
+
);
|
|
15291
|
+
if ($slots.default) {
|
|
15292
|
+
children.push(
|
|
15293
|
+
/* @__PURE__ */ vue.h("span", { class: `${clsPrefix}-button-v3__label` }, $slots.default())
|
|
15294
|
+
);
|
|
15295
|
+
}
|
|
15296
|
+
children.push(
|
|
15297
|
+
renderIconSlot({
|
|
15298
|
+
clsPrefix,
|
|
15299
|
+
slot: iconEndSlot,
|
|
15300
|
+
showSpinner: loading && !hasIconStart && hasIconEnd,
|
|
15301
|
+
strokeWidth,
|
|
15302
|
+
key: "icon-end"
|
|
15303
|
+
})
|
|
15304
|
+
);
|
|
15305
|
+
if (centeredSpinner) {
|
|
15306
|
+
children.push(
|
|
15307
|
+
/* @__PURE__ */ vue.h("span", { class: `${clsPrefix}-button-v3__spinner` }, renderSpinner(clsPrefix, strokeWidth))
|
|
15308
|
+
);
|
|
15309
|
+
}
|
|
15310
|
+
}
|
|
15311
|
+
return /* @__PURE__ */ vue.h(
|
|
15312
|
+
Component,
|
|
15313
|
+
{
|
|
15314
|
+
ref: "selfElRef",
|
|
15315
|
+
class: [
|
|
15316
|
+
`${clsPrefix}-button-v3`,
|
|
15317
|
+
this.themeClass,
|
|
15318
|
+
`${clsPrefix}-button-v3--${this.type}-type`,
|
|
15319
|
+
`${clsPrefix}-button-v3--${this.tone}-tone`,
|
|
15320
|
+
`${clsPrefix}-button-v3--${this.mergedSize}-size`,
|
|
15321
|
+
iconOnly && `${clsPrefix}-button-v3--icon-only`,
|
|
15322
|
+
this.block && `${clsPrefix}-button-v3--block`,
|
|
15323
|
+
mergedDisabled && `${clsPrefix}-button-v3--disabled`,
|
|
15324
|
+
loading && `${clsPrefix}-button-v3--loading`,
|
|
15325
|
+
centeredSpinner && `${clsPrefix}-button-v3--loading-text-only`
|
|
15326
|
+
],
|
|
15327
|
+
style: this.cssVars,
|
|
15328
|
+
type: Component === "button" ? this.attrType : void 0,
|
|
15329
|
+
disabled: Component === "button" ? mergedDisabled : void 0,
|
|
15330
|
+
tabindex: this.mergedFocusable ? 0 : -1,
|
|
15331
|
+
"aria-disabled": inert ? "true" : void 0,
|
|
15332
|
+
"aria-busy": loading ? "true" : void 0,
|
|
15333
|
+
onClick: this.handleClick
|
|
15334
|
+
},
|
|
15335
|
+
children
|
|
15336
|
+
);
|
|
15337
|
+
}
|
|
15338
|
+
});
|
|
15339
|
+
|
|
14776
15340
|
const checkboxGroupInjectionKey = createInjectionKey("u-checkbox-group");
|
|
14777
15341
|
const checkboxBaseProps = {
|
|
14778
15342
|
size: String,
|
|
@@ -15039,7 +15603,7 @@
|
|
|
15039
15603
|
|
|
15040
15604
|
function replaceable(name, icon) {
|
|
15041
15605
|
return vue.defineComponent({
|
|
15042
|
-
name: upperFirst(name),
|
|
15606
|
+
name: upperFirst$1(name),
|
|
15043
15607
|
setup() {
|
|
15044
15608
|
const mergedIconsRef = vue.inject(
|
|
15045
15609
|
configProviderInjectionKey,
|
|
@@ -16151,7 +16715,7 @@
|
|
|
16151
16715
|
|
|
16152
16716
|
const {
|
|
16153
16717
|
cubicBezierEaseInOut: cubicBezierEaseInOut$4
|
|
16154
|
-
} = commonVariables$
|
|
16718
|
+
} = commonVariables$7;
|
|
16155
16719
|
function iconSwitchTransition({
|
|
16156
16720
|
originalTransform = "",
|
|
16157
16721
|
left = 0,
|
|
@@ -16761,7 +17325,7 @@
|
|
|
16761
17325
|
|
|
16762
17326
|
const {
|
|
16763
17327
|
cubicBezierEaseInOut: cubicBezierEaseInOut$3
|
|
16764
|
-
} = commonVariables$
|
|
17328
|
+
} = commonVariables$7;
|
|
16765
17329
|
function fadeInTransition({
|
|
16766
17330
|
name = "fade-in",
|
|
16767
17331
|
enterDuration = "0.2s",
|
|
@@ -21907,7 +22471,7 @@
|
|
|
21907
22471
|
|
|
21908
22472
|
const {
|
|
21909
22473
|
cubicBezierEaseInOut: cubicBezierEaseInOut$2
|
|
21910
|
-
} = commonVariables$
|
|
22474
|
+
} = commonVariables$7;
|
|
21911
22475
|
function fadeInWidthExpandTransition({
|
|
21912
22476
|
duration = ".2s",
|
|
21913
22477
|
delay = ".1s"
|
|
@@ -22830,7 +23394,7 @@
|
|
|
22830
23394
|
cubicBezierEaseInOut: cubicBezierEaseInOut$1,
|
|
22831
23395
|
cubicBezierEaseOut: cubicBezierEaseOut$6,
|
|
22832
23396
|
cubicBezierEaseIn: cubicBezierEaseIn$5
|
|
22833
|
-
} = commonVariables$
|
|
23397
|
+
} = commonVariables$7;
|
|
22834
23398
|
function fadeInHeightExpandTransition({
|
|
22835
23399
|
overflow = "hidden",
|
|
22836
23400
|
duration = ".3s",
|
|
@@ -25017,7 +25581,7 @@
|
|
|
25017
25581
|
const {
|
|
25018
25582
|
cubicBezierEaseIn: cubicBezierEaseIn$4,
|
|
25019
25583
|
cubicBezierEaseOut: cubicBezierEaseOut$5
|
|
25020
|
-
} = commonVariables$
|
|
25584
|
+
} = commonVariables$7;
|
|
25021
25585
|
function fadeInScaleUpTransition({
|
|
25022
25586
|
transformOrigin = "inherit",
|
|
25023
25587
|
duration = ".2s",
|
|
@@ -29076,7 +29640,7 @@
|
|
|
29076
29640
|
|
|
29077
29641
|
const {
|
|
29078
29642
|
cubicBezierEaseOut: cubicBezierEaseOut$4
|
|
29079
|
-
} = commonVariables$
|
|
29643
|
+
} = commonVariables$7;
|
|
29080
29644
|
function fadeUpWidthExpandTransition({
|
|
29081
29645
|
duration = ".2s"
|
|
29082
29646
|
} = {}) {
|
|
@@ -34155,6 +34719,24 @@
|
|
|
34155
34719
|
}
|
|
34156
34720
|
});
|
|
34157
34721
|
|
|
34722
|
+
const ButtonV3 = vue.defineComponent({
|
|
34723
|
+
name: "ButtonV3",
|
|
34724
|
+
props: buttonV3Props,
|
|
34725
|
+
slots: Object,
|
|
34726
|
+
inheritAttrs: false,
|
|
34727
|
+
setup(props, { slots, attrs }) {
|
|
34728
|
+
return () => vue.h(
|
|
34729
|
+
ButtonV3$1,
|
|
34730
|
+
{
|
|
34731
|
+
...props,
|
|
34732
|
+
...attrs
|
|
34733
|
+
},
|
|
34734
|
+
slots
|
|
34735
|
+
);
|
|
34736
|
+
}
|
|
34737
|
+
});
|
|
34738
|
+
const XButtonV3 = ButtonV3;
|
|
34739
|
+
|
|
34158
34740
|
/**
|
|
34159
34741
|
* The {@link addDays} function options.
|
|
34160
34742
|
*/
|
|
@@ -91270,7 +91852,7 @@
|
|
|
91270
91852
|
const {
|
|
91271
91853
|
cubicBezierEaseIn: cubicBezierEaseIn$3,
|
|
91272
91854
|
cubicBezierEaseOut: cubicBezierEaseOut$3
|
|
91273
|
-
} = commonVariables$
|
|
91855
|
+
} = commonVariables$7;
|
|
91274
91856
|
function slideInFromBottomTransition({
|
|
91275
91857
|
duration = "0.3s",
|
|
91276
91858
|
leaveDuration = "0.2s",
|
|
@@ -91294,7 +91876,7 @@
|
|
|
91294
91876
|
const {
|
|
91295
91877
|
cubicBezierEaseIn: cubicBezierEaseIn$2,
|
|
91296
91878
|
cubicBezierEaseOut: cubicBezierEaseOut$2
|
|
91297
|
-
} = commonVariables$
|
|
91879
|
+
} = commonVariables$7;
|
|
91298
91880
|
function slideInFromLeftTransition({
|
|
91299
91881
|
duration = "0.3s",
|
|
91300
91882
|
leaveDuration = "0.2s",
|
|
@@ -91318,7 +91900,7 @@
|
|
|
91318
91900
|
const {
|
|
91319
91901
|
cubicBezierEaseIn: cubicBezierEaseIn$1,
|
|
91320
91902
|
cubicBezierEaseOut: cubicBezierEaseOut$1
|
|
91321
|
-
} = commonVariables$
|
|
91903
|
+
} = commonVariables$7;
|
|
91322
91904
|
function slideInFromRightTransition({
|
|
91323
91905
|
duration = "0.3s",
|
|
91324
91906
|
leaveDuration = "0.2s",
|
|
@@ -91342,7 +91924,7 @@
|
|
|
91342
91924
|
const {
|
|
91343
91925
|
cubicBezierEaseIn,
|
|
91344
91926
|
cubicBezierEaseOut
|
|
91345
|
-
} = commonVariables$
|
|
91927
|
+
} = commonVariables$7;
|
|
91346
91928
|
function slideInFromTopTransition({
|
|
91347
91929
|
duration = "0.3s",
|
|
91348
91930
|
leaveDuration = "0.2s",
|
|
@@ -94918,7 +95500,7 @@
|
|
|
94918
95500
|
|
|
94919
95501
|
const {
|
|
94920
95502
|
cubicBezierEaseInOut
|
|
94921
|
-
} = commonVariables$
|
|
95503
|
+
} = commonVariables$7;
|
|
94922
95504
|
function fadeDownTransition({
|
|
94923
95505
|
name = "fade-down",
|
|
94924
95506
|
fromOffset = "-4px",
|
|
@@ -123058,6 +123640,8 @@ ${icon.label}`.toLowerCase()
|
|
|
123058
123640
|
const UButton = /* @__PURE__ */wrap(Button);
|
|
123059
123641
|
const UxButton = /* @__PURE__ */wrap(XButton);
|
|
123060
123642
|
const UButtonGroup = /* @__PURE__ */wrap(_UButtonGroup);
|
|
123643
|
+
const UButtonV3 = /* @__PURE__ */wrap(ButtonV3);
|
|
123644
|
+
const UxButtonV3 = /* @__PURE__ */wrap(XButtonV3);
|
|
123061
123645
|
const UCalendar = /* @__PURE__ */wrap(_UCalendar);
|
|
123062
123646
|
const UCard = /* @__PURE__ */wrap(_UCard);
|
|
123063
123647
|
const UCardList = /* @__PURE__ */wrap(_UCardList);
|
|
@@ -123251,6 +123835,7 @@ ${icon.label}`.toLowerCase()
|
|
|
123251
123835
|
UBreadcrumbItem: UBreadcrumbItem,
|
|
123252
123836
|
UButton: UButton,
|
|
123253
123837
|
UButtonGroup: UButtonGroup,
|
|
123838
|
+
UButtonV3: UButtonV3,
|
|
123254
123839
|
UCalendar: UCalendar,
|
|
123255
123840
|
UCard: UCard,
|
|
123256
123841
|
UCardList: UCardList,
|
|
@@ -123420,6 +124005,7 @@ ${icon.label}`.toLowerCase()
|
|
|
123420
124005
|
UVirtualList: UVirtualList,
|
|
123421
124006
|
UWatermark: UWatermark,
|
|
123422
124007
|
UxButton: UxButton,
|
|
124008
|
+
UxButtonV3: UxButtonV3,
|
|
123423
124009
|
aProps: aProps,
|
|
123424
124010
|
actionCardDark: actionCardDark,
|
|
123425
124011
|
actionCardLight: actionCardLight,
|
|
@@ -123437,6 +124023,9 @@ ${icon.label}`.toLowerCase()
|
|
|
123437
124023
|
breadcrumbProps: breadcrumbProps,
|
|
123438
124024
|
buttonGroupProps: buttonGroupProps,
|
|
123439
124025
|
buttonProps: buttonProps,
|
|
124026
|
+
buttonV3Dark: buttonV3Dark,
|
|
124027
|
+
buttonV3Light: buttonV3Light,
|
|
124028
|
+
buttonV3Props: buttonV3Props,
|
|
123440
124029
|
calendarProps: calendarProps,
|
|
123441
124030
|
cardListProps: cardListProps,
|
|
123442
124031
|
cardProps: cardProps,
|
|
@@ -123636,7 +124225,7 @@ ${icon.label}`.toLowerCase()
|
|
|
123636
124225
|
});
|
|
123637
124226
|
}
|
|
123638
124227
|
|
|
123639
|
-
var version = "
|
|
124228
|
+
var version = "3.0.0-alpha.0";
|
|
123640
124229
|
|
|
123641
124230
|
function create({
|
|
123642
124231
|
componentPrefix = "U",
|
|
@@ -123706,6 +124295,7 @@ ${icon.label}`.toLowerCase()
|
|
|
123706
124295
|
Breadcrumb: breadcrumbLight,
|
|
123707
124296
|
Button: buttonLight,
|
|
123708
124297
|
ButtonGroup: buttonGroupLight,
|
|
124298
|
+
ButtonV3: buttonV3Light,
|
|
123709
124299
|
Calendar: calendarLight,
|
|
123710
124300
|
Card: cardLight,
|
|
123711
124301
|
CardList: cardListLight,
|
|
@@ -124331,6 +124921,7 @@ ${icon.label}`.toLowerCase()
|
|
|
124331
124921
|
Breadcrumb: breadcrumbDark,
|
|
124332
124922
|
Button: buttonDark,
|
|
124333
124923
|
ButtonGroup: buttonGroupDark,
|
|
124924
|
+
ButtonV3: buttonV3Dark,
|
|
124334
124925
|
Calendar: calendarDark,
|
|
124335
124926
|
Card: cardDark$1,
|
|
124336
124927
|
CardList: cardDark,
|
|
@@ -124466,6 +125057,7 @@ ${icon.label}`.toLowerCase()
|
|
|
124466
125057
|
exports.UBreadcrumbItem = UBreadcrumbItem;
|
|
124467
125058
|
exports.UButton = UButton;
|
|
124468
125059
|
exports.UButtonGroup = UButtonGroup;
|
|
125060
|
+
exports.UButtonV3 = UButtonV3;
|
|
124469
125061
|
exports.UCalendar = UCalendar;
|
|
124470
125062
|
exports.UCard = UCard;
|
|
124471
125063
|
exports.UCardList = UCardList;
|
|
@@ -124636,6 +125228,7 @@ ${icon.label}`.toLowerCase()
|
|
|
124636
125228
|
exports.UVirtualList = UVirtualList;
|
|
124637
125229
|
exports.UWatermark = UWatermark;
|
|
124638
125230
|
exports.UxButton = UxButton;
|
|
125231
|
+
exports.UxButtonV3 = UxButtonV3;
|
|
124639
125232
|
exports.UzumUiResolver = UzumUiResolver;
|
|
124640
125233
|
exports.aProps = aProps;
|
|
124641
125234
|
exports.actionCardDark = actionCardDark;
|
|
@@ -124663,6 +125256,9 @@ ${icon.label}`.toLowerCase()
|
|
|
124663
125256
|
exports.buttonGroupDark = buttonGroupDark;
|
|
124664
125257
|
exports.buttonGroupProps = buttonGroupProps;
|
|
124665
125258
|
exports.buttonProps = buttonProps;
|
|
125259
|
+
exports.buttonV3Dark = buttonV3Dark;
|
|
125260
|
+
exports.buttonV3Light = buttonV3Light;
|
|
125261
|
+
exports.buttonV3Props = buttonV3Props;
|
|
124666
125262
|
exports.c = c$1;
|
|
124667
125263
|
exports.cB = cB;
|
|
124668
125264
|
exports.cE = cE;
|