@profitliga/ui 1.1.23 → 1.1.25

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.
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'vue';
2
- export type ButtonSize = 'extrasmall' | 'small' | 'medium' | 'large';
2
+ export type ButtonSize = 'extrasmall' | 'small' | 'medium' | 'large' | 'extralarge';
3
3
  export type ButtonVariant = 'primary' | 'danger' | 'secondary' | 'secondary-blue' | 'link';
4
4
  export type ButtonStyle = 'contrast' | 'outlined' | 'text' | 'text-filled';
5
5
  export type ButtonIconPosition = 'start' | 'end';
@@ -9,7 +9,11 @@ declare function __VLS_template(): {
9
9
  rootEl: HTMLButtonElement;
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: DefineComponent<IButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
12
+ declare const __VLS_component: DefineComponent<IButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ click: () => any;
14
+ }, string, PublicProps, Readonly<IButtonProps> & Readonly<{
15
+ onClick?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
13
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
18
  export default _default;
15
19
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -117,8 +117,11 @@ const pl = /* @__PURE__ */ c({
117
117
  strong: { type: Boolean },
118
118
  loading: { type: Boolean }
119
119
  },
120
- setup(e) {
121
- const l = P(() => [
120
+ emits: ["click"],
121
+ setup(e, { emit: l }) {
122
+ const a = l, o = () => {
123
+ a("click");
124
+ }, n = P(() => [
122
125
  "button",
123
126
  `button--${e.variant}`,
124
127
  `button--${e.size}`,
@@ -133,19 +136,20 @@ const pl = /* @__PURE__ */ c({
133
136
  "button--disabled": e.disabled
134
137
  }
135
138
  ]);
136
- return (a, o) => {
137
- const n = De("loading");
139
+ return (r, u) => {
140
+ const C = De("loading");
138
141
  return ee((s(), m("button", {
139
- class: A(l.value),
140
- disabled: e.disabled || e.loading
142
+ class: A(n.value),
143
+ disabled: e.disabled || e.loading,
144
+ onClick: o
141
145
  }, [
142
146
  e.icon ? (s(), i(Z(e.icon), {
143
147
  key: 0,
144
148
  class: "button__icon"
145
149
  })) : x("", !0),
146
- e.iconOnly ? x("", !0) : g(a.$slots, "default", { key: 1 })
150
+ e.iconOnly ? x("", !0) : g(r.$slots, "default", { key: 1 })
147
151
  ], 10, gl)), [
148
- [n, e.loading]
152
+ [C, e.loading]
149
153
  ]);
150
154
  };
151
155
  }
@@ -1418,7 +1422,9 @@ const ge = z(null), _n = {
1418
1422
  function T(F) {
1419
1423
  F || R();
1420
1424
  }
1421
- return (F, oe) => t(a) ? (s(), i(t(ot), {
1425
+ return j(u, () => {
1426
+ console.log(u.value);
1427
+ }), (F, oe) => t(a) ? (s(), i(t(ot), {
1422
1428
  key: 0,
1423
1429
  open: h.value,
1424
1430
  "onUpdate:open": T
@@ -1518,7 +1524,7 @@ const ge = z(null), _n = {
1518
1524
  _: 1
1519
1525
  }, 8, ["open"]));
1520
1526
  }
1521
- }), fc = /* @__PURE__ */ y(In, [["__scopeId", "data-v-613920a9"]]), Rn = { class: "table__body" }, Vn = ["onClick"], Tn = {
1527
+ }), fc = /* @__PURE__ */ y(In, [["__scopeId", "data-v-bda265b7"]]), Rn = { class: "table__body" }, Vn = ["onClick"], Tn = {
1522
1528
  key: 1,
1523
1529
  class: "table__body-empty"
1524
1530
  }, An = /* @__PURE__ */ c({
@@ -10,8 +10,8 @@ import { default as PdfIcon } from './PdfIcon.vue';
10
10
  import { default as SberPayColorIcon } from './SberPayColorIcon.vue';
11
11
  import { default as ShieldIcon } from './ShieldIcon.vue';
12
12
  import { default as SpbIcon } from './SpbIcon.vue';
13
- import { default as TelegramIcon } from './TelegramIcon.vue';
13
+ import { default as TelegramColorIcon } from './TelegramColorIcon.vue';
14
14
  import { default as TruesignIcon } from './TruesignIcon.vue';
15
15
  import { default as WarehousePointIcon } from './WarehousePointIcon.vue';
16
16
  import { default as WordIcon } from './WordIcon.vue';
17
- export { BonusIcon, CashbackIcon, CertificateIcon, DiscountIcon, GiftColorIcon, FaviconIcon, ExcelIcon, PdfIcon, SpbIcon, WarehousePointIcon, WordIcon, SberPayColorIcon, TruesignIcon, ShieldIcon, MaxIcon, TelegramIcon };
17
+ export { BonusIcon, CashbackIcon, CertificateIcon, DiscountIcon, GiftColorIcon, FaviconIcon, ExcelIcon, PdfIcon, SpbIcon, WarehousePointIcon, WordIcon, SberPayColorIcon, TruesignIcon, ShieldIcon, MaxIcon, TelegramColorIcon };