@uzum-tech/ui 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -29393,7 +29393,7 @@
29393
29393
  "path",
29394
29394
  {
29395
29395
  d: "M15 0L0 0V82H15V72.0682C15 67.6499 18.7463 64.209 22.7412 62.3215C29.9427 58.9189 35 50.9123 35 41.5775C35 32.2426 29.9427 24.236 22.7412 20.8334C18.7463 18.946 15 15.505 15 11.0867V0Z",
29396
- fill: "currentColor"
29396
+ fill: "#fff"
29397
29397
  }
29398
29398
  ));
29399
29399
  }
@@ -102097,15 +102097,26 @@
102097
102097
  };
102098
102098
 
102099
102099
  var style$F = cB("icon-wrapper", `
102100
- transition:
102101
- color .3s var(--u-bezier),
102102
- background-color .3s var(--u-bezier);
102103
- background-color: var(--u-color);
102100
+ position: relative;
102104
102101
  display: inline-flex;
102105
102102
  align-items: center;
102106
102103
  justify-content: center;
102107
- color: var(--u-icon-color);
102108
- `);
102104
+ `, [c$1("&__pulse", `
102105
+ position: absolute;
102106
+ background-color: var(--u-pulse-background-color);
102107
+ z-index: 0;
102108
+ transition: background-color .3s var(--u-bezier);
102109
+ `), c$1("&__icon", `
102110
+ transition:
102111
+ color .3s var(--u-bezier);
102112
+ background-color .3s var(--u-bezier);
102113
+ background-color: var(--u-color);
102114
+ color: var(--u-icon-color);
102115
+ display: flex;
102116
+ align-items: center;
102117
+ justify-content: center;
102118
+ z-index: 1
102119
+ `)]);
102109
102120
 
102110
102121
  const iconWrapperProps = {
102111
102122
  ...useTheme.props,
@@ -102113,11 +102124,20 @@
102113
102124
  type: Number,
102114
102125
  default: 24
102115
102126
  },
102127
+ pulseSize: {
102128
+ type: Number,
102129
+ default: 32
102130
+ },
102116
102131
  borderRadius: {
102117
102132
  type: Number,
102118
102133
  default: 6
102119
102134
  },
102135
+ variant: {
102136
+ type: String,
102137
+ default: "default"
102138
+ },
102120
102139
  color: String,
102140
+ pulseColor: String,
102121
102141
  iconColor: String
102122
102142
  };
102123
102143
  const UIconWrapper = vue.defineComponent({
@@ -102141,12 +102161,14 @@
102141
102161
  return {
102142
102162
  "--u-bezier": cubicBezierEaseInOut,
102143
102163
  "--u-color": color,
102144
- "--u-icon-color": iconColor
102164
+ "--u-icon-color": iconColor,
102165
+ "--u-pulse-background-color": props.variant === "pulse" ? `${color}50` : "transparent"
102145
102166
  };
102146
102167
  });
102147
102168
  const themeClassHandle = inlineThemeDisabled ? useThemeClass("icon-wrapper", void 0, cssVarsRef, props) : void 0;
102148
102169
  return () => {
102149
102170
  const size = formatLength(props.size);
102171
+ const pulseSize = formatLength(props.pulseSize);
102150
102172
  themeClassHandle?.onRender();
102151
102173
  return /* @__PURE__ */ vue.h(
102152
102174
  "div",
@@ -102158,15 +102180,37 @@
102158
102180
  style: [
102159
102181
  cssVarsRef?.value,
102160
102182
  {
102161
- height: size,
102183
+ width: props.variant === "pulse" ? pulseSize : size,
102184
+ height: props.variant === "pulse" ? pulseSize : size
102185
+ }
102186
+ ]
102187
+ },
102188
+ props.variant === "pulse" && /* @__PURE__ */ vue.h(
102189
+ "div",
102190
+ {
102191
+ class: `${mergedClsPrefixRef.value}-icon-wrapper__pulse`,
102192
+ style: {
102193
+ width: pulseSize,
102194
+ height: pulseSize,
102195
+ backgroundColor: props.pulseColor,
102196
+ borderRadius: formatLength(props.borderRadius)
102197
+ }
102198
+ }
102199
+ ),
102200
+ /* @__PURE__ */ vue.h(
102201
+ "div",
102202
+ {
102203
+ class: `${mergedClsPrefixRef.value}-icon-wrapper__icon`,
102204
+ style: {
102162
102205
  width: size,
102206
+ height: size,
102163
102207
  borderRadius: formatLength(props.borderRadius),
102164
102208
  backgroundColor: props.color,
102165
102209
  color: props.iconColor
102166
102210
  }
102167
- ]
102168
- },
102169
- slots
102211
+ },
102212
+ slots
102213
+ )
102170
102214
  );
102171
102215
  };
102172
102216
  }
@@ -106322,7 +106366,7 @@
106322
106366
  align-items: center;
106323
106367
  justify-content: center;
106324
106368
  color: var(--u-toggle-button-icon-color);
106325
- background-color: var(--u-toggle-button-color);
106369
+ background-color: transparent;
106326
106370
  transform: translateX(50%);
106327
106371
  z-index: 1;
106328
106372
  `, [cB("base-icon", `
@@ -125401,7 +125445,7 @@
125401
125445
  watermarkProps: watermarkProps
125402
125446
  });
125403
125447
 
125404
- var version = "1.4.1";
125448
+ var version = "1.4.2";
125405
125449
 
125406
125450
  function create({
125407
125451
  componentPrefix = "U",