@flux-ui/components 3.1.3 → 3.1.4

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.
@@ -3,6 +3,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  export declare const SLOTS: readonly ["default", "after", "before", "iconLeading", "iconTrailing", "label"];
4
4
  declare const _default: __VLS_WithSlots< DefineComponent<FluxButtonProps & {
5
5
  readonly cssClass: string;
6
+ readonly cssClassActive?: string;
6
7
  readonly cssClassIcon: string;
7
8
  readonly cssClassLabel: string;
8
9
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -11,6 +12,7 @@ declare const _default: __VLS_WithSlots< DefineComponent<FluxButtonProps & {
11
12
  mouseleave: (args_0: MouseEvent) => any;
12
13
  }, string, PublicProps, Readonly<FluxButtonProps & {
13
14
  readonly cssClass: string;
15
+ readonly cssClassActive?: string;
14
16
  readonly cssClassIcon: string;
15
17
  readonly cssClassLabel: string;
16
18
  }> & Readonly<{
@@ -1,5 +1,5 @@
1
1
  import { FluxDirection } from '@flux-ui/types';
2
- import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { VNode, DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  type __VLS_Props = {
4
4
  readonly direction?: FluxDirection;
5
5
  readonly isAutoWidth?: boolean;
@@ -28,7 +28,14 @@ declare const __VLS_base: DefineComponent<__VLS_Props, {
28
28
  close: typeof close;
29
29
  open: typeof open;
30
30
  toggle: typeof toggle;
31
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
31
+ isOpen: Ref<boolean, boolean>;
32
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
+ close: () => any;
34
+ open: () => any;
35
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
36
+ onClose?: () => any;
37
+ onOpen?: () => any;
38
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
32
39
  declare const _default: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
40
  export default _default;
34
41
  type __VLS_WithSlots<T, S> = T & {
package/dist/index.css CHANGED
@@ -850,8 +850,9 @@
850
850
  border-color: var(--primary-800);
851
851
  }
852
852
  }
853
- .primary-button:active {
853
+ .primary-button:active, .primary-button.is-active {
854
854
  background: var(--primary-800);
855
+ box-shadow: none;
855
856
  scale: 0.9875;
856
857
  }
857
858
  .primary-button .spinner {
@@ -876,8 +877,9 @@
876
877
  background: var(--surface-hover);
877
878
  }
878
879
  }
879
- .secondary-button:active {
880
+ .secondary-button:active, .secondary-button.is-active {
880
881
  background: var(--surface-active);
882
+ box-shadow: none;
881
883
  scale: 0.9875;
882
884
  }
883
885
 
@@ -898,8 +900,9 @@
898
900
  background: var(--surface-hover);
899
901
  }
900
902
  }
901
- .destructive-button:active {
903
+ .destructive-button:active, .destructive-button.is-active {
902
904
  background: var(--surface-active);
905
+ box-shadow: none;
903
906
  scale: 0.9875;
904
907
  }
905
908
  .destructive-button .spinner {
@@ -931,8 +934,9 @@
931
934
  background: var(--surface-hover);
932
935
  }
933
936
  }
934
- .base-link-button:active {
937
+ .base-link-button:active, .base-link-button.is-active {
935
938
  background: var(--surface-active);
939
+ box-shadow: none;
936
940
  scale: 0.9875;
937
941
  }
938
942
 
package/dist/index.js CHANGED
@@ -2623,7 +2623,7 @@ function W$1(e, t, n) {
2623
2623
  function G$2(e, t, n) {
2624
2624
  e.prototype[t] = n;
2625
2625
  }
2626
- function K$1(e, t, n) {
2626
+ function K$2(e, t, n) {
2627
2627
  Object.defineProperty(e, t, { value: n });
2628
2628
  }
2629
2629
  //#endregion
@@ -7025,10 +7025,10 @@ function dto_default(clazz) {
7025
7025
  validate(clazz);
7026
7026
  const descriptors = Object.freeze(x$3(clazz));
7027
7027
  const properties = Object.keys(descriptors);
7028
- K$1(clazz.prototype, DESCRIPTORS, descriptors);
7029
- K$1(clazz.prototype, NAME, clazz.name);
7030
- K$1(clazz.prototype, PROPERTIES, properties);
7031
- K$1(clazz, Symbol.hasInstance, (instance) => typeof instance === "object" && instance?.[NAME] === clazz.name);
7028
+ K$2(clazz.prototype, DESCRIPTORS, descriptors);
7029
+ K$2(clazz.prototype, NAME, clazz.name);
7030
+ K$2(clazz.prototype, PROPERTIES, properties);
7031
+ K$2(clazz, Symbol.hasInstance, (instance) => typeof instance === "object" && instance?.[NAME] === clazz.name);
7032
7032
  G$2(clazz, "clone", clone_default);
7033
7033
  G$2(clazz, "fill", fill_default);
7034
7034
  G$2(clazz, "toJSON", toJSON_default);
@@ -7183,6 +7183,10 @@ function G$1(e) {
7183
7183
  let t = unref(e);
7184
7184
  return t ? R$2(t) ? t : t.$el ?? null : null;
7185
7185
  }
7186
+ function K$1(e) {
7187
+ let t = toValue(e);
7188
+ return t ? t instanceof Window || t instanceof Document || R$2(t) ? t : t.$el ?? null : null;
7189
+ }
7186
7190
  function q$1(e, t, n) {
7187
7191
  let r = ref([]);
7188
7192
  onMounted(() => {
@@ -7235,6 +7239,100 @@ function Y$1(t = 0, n = !1) {
7235
7239
  loaded: o
7236
7240
  };
7237
7241
  }
7242
+ function Z$1(e, t, n, r) {
7243
+ let i = Array.isArray(t) ? t : [t], a, o = watch(() => K$1(e), (e) => {
7244
+ if (a?.(), a = void 0, e) {
7245
+ for (let t of i) e.addEventListener(t, n, r);
7246
+ a = () => {
7247
+ for (let t of i) e.removeEventListener(t, n, r);
7248
+ };
7249
+ }
7250
+ }, { immediate: !0 });
7251
+ function c() {
7252
+ a?.(), a = void 0, o();
7253
+ }
7254
+ return onScopeDispose(c), c;
7255
+ }
7256
+ var me$1 = {
7257
+ esc: `escape`,
7258
+ space: ` `,
7259
+ spacebar: ` `,
7260
+ up: `arrowup`,
7261
+ down: `arrowdown`,
7262
+ left: `arrowleft`,
7263
+ right: `arrowright`,
7264
+ return: `enter`,
7265
+ del: `delete`,
7266
+ plus: `+`
7267
+ };
7268
+ function he$1(e, t, n) {
7269
+ let { target: r, enabled: i, event: a = `keydown`, preventDefault: o = !0, stopPropagation: s = !1, ignoreWhileTyping: c = !0, repeat: l = !1 } = n ?? {}, u = (Array.isArray(e) ? e : [e]).map(ge$1);
7270
+ function d() {
7271
+ return r === void 0 ? typeof window < `u` ? window : null : toValue(r);
7272
+ }
7273
+ function p(e) {
7274
+ if (i !== void 0 && !toValue(i) || e.repeat && !l) return;
7275
+ let n = ve$1(), r = e.key.toLowerCase();
7276
+ for (let i of u) {
7277
+ let a = i.meta || i.mod && n, l = i.ctrl || i.mod && !n, u = !i.shift && i.key.length === 1;
7278
+ if (e.metaKey === a && e.ctrlKey === l && (u || e.shiftKey === i.shift) && e.altKey === i.alt && r === i.key) {
7279
+ if (c && !a && !l && _e$1(e.target)) return;
7280
+ o && e.preventDefault(), s && e.stopPropagation(), t(e);
7281
+ return;
7282
+ }
7283
+ }
7284
+ }
7285
+ return Z$1(d, a, p);
7286
+ }
7287
+ function ge$1(e) {
7288
+ let t = ``, n = !1, r = !1, i = !1, a = !1, o = !1;
7289
+ for (let s of e.split(`+`)) {
7290
+ let e = s.trim().toLowerCase();
7291
+ switch (e) {
7292
+ case `ctrl`:
7293
+ case `control`:
7294
+ n = !0;
7295
+ break;
7296
+ case `meta`:
7297
+ case `cmd`:
7298
+ case `command`:
7299
+ case `super`:
7300
+ case `win`:
7301
+ case `windows`:
7302
+ r = !0;
7303
+ break;
7304
+ case `shift`:
7305
+ i = !0;
7306
+ break;
7307
+ case `alt`:
7308
+ case `option`:
7309
+ case `opt`:
7310
+ a = !0;
7311
+ break;
7312
+ case `mod`:
7313
+ o = !0;
7314
+ break;
7315
+ case ``: break;
7316
+ default:
7317
+ t = me$1[e] ?? e;
7318
+ break;
7319
+ }
7320
+ }
7321
+ return {
7322
+ key: t,
7323
+ ctrl: n,
7324
+ meta: r,
7325
+ shift: i,
7326
+ alt: a,
7327
+ mod: o
7328
+ };
7329
+ }
7330
+ function _e$1(e) {
7331
+ return e instanceof HTMLElement ? e.tagName === `INPUT` || e.tagName === `TEXTAREA` || e.tagName === `SELECT` || e.isContentEditable : !1;
7332
+ }
7333
+ function ve$1() {
7334
+ return typeof navigator > `u` ? !1 : /mac|iphone|ipod|ipad/i.test(navigator.platform || navigator.userAgent);
7335
+ }
7238
7336
  function ye$1(e, t) {
7239
7337
  let n = ref();
7240
7338
  onMounted(() => {
@@ -7722,7 +7820,7 @@ var Icon_module_default = {
7722
7820
  };
7723
7821
  //#endregion
7724
7822
  //#region src/component/FluxIcon.vue?vue&type=script&setup=true&lang.ts
7725
- var _hoisted_1$73 = [
7823
+ var _hoisted_1$72 = [
7726
7824
  "viewBox",
7727
7825
  "role",
7728
7826
  "aria-hidden",
@@ -7775,7 +7873,7 @@ var FluxIcon_default = /* @__PURE__ */ defineComponent({
7775
7873
  d: path,
7776
7874
  fill: "currentColor"
7777
7875
  }, null, 8, _hoisted_2$28);
7778
- }), 256))], 14, _hoisted_1$73)) : (openBlock(), createElementBlock("i", {
7876
+ }), 256))], 14, _hoisted_1$72)) : (openBlock(), createElementBlock("i", {
7779
7877
  key: 1,
7780
7878
  class: normalizeClass(unref(Icon_module_default).icon)
7781
7879
  }, null, 2));
@@ -9651,7 +9749,7 @@ function sanitizeUrl_default(href) {
9651
9749
  }
9652
9750
  //#endregion
9653
9751
  //#region src/component/FluxPressable.vue?vue&type=script&setup=true&lang.ts
9654
- var _hoisted_1$72 = [
9752
+ var _hoisted_1$71 = [
9655
9753
  "href",
9656
9754
  "rel",
9657
9755
  "target",
@@ -9705,7 +9803,7 @@ var FluxPressable_default = /* @__PURE__ */ defineComponent({
9705
9803
  rel: resolvedRel.value,
9706
9804
  target: __props.target,
9707
9805
  onClick: ($event) => onClick($event, navigate)
9708
- }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$72)]),
9806
+ }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$71)]),
9709
9807
  _: 3
9710
9808
  }, 8, ["to"])) : __props.componentType === "link" ? (openBlock(), createElementBlock("a", mergeProps({ key: 1 }, $attrs, toHandlers(hoverListeners, true), {
9711
9809
  href: unref(sanitizeUrl_default)(__props.href),
@@ -9799,6 +9897,7 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
9799
9897
  disabled: { type: Boolean },
9800
9898
  iconLeading: {},
9801
9899
  iconTrailing: {},
9900
+ isActive: { type: Boolean },
9802
9901
  isFilled: { type: Boolean },
9803
9902
  isLoading: { type: Boolean },
9804
9903
  isSubmit: { type: Boolean },
@@ -9810,6 +9909,7 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
9810
9909
  target: {},
9811
9910
  to: {},
9812
9911
  cssClass: {},
9912
+ cssClassActive: {},
9813
9913
  cssClassIcon: {},
9814
9914
  cssClassLabel: {}
9815
9915
  },
@@ -9838,9 +9938,10 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
9838
9938
  return (_ctx, _cache) => {
9839
9939
  return openBlock(), createBlock(FluxPressable_default, {
9840
9940
  "component-type": __props.type,
9841
- class: normalizeClass(unref(clsx)(__props.cssClass, __props.isFilled && unref(Button_module_default$1).isFilled, __props.size === "small" && unref(Button_module_default$1).isSmall, __props.size === "medium" && unref(Button_module_default$1).isMedium, __props.size === "large" && unref(Button_module_default$1).isLarge, __props.size === "xl" && unref(Button_module_default$1).isXl)),
9941
+ class: normalizeClass(unref(clsx)(__props.cssClass, __props.isActive && __props.cssClassActive, __props.isFilled && unref(Button_module_default$1).isFilled, __props.size === "small" && unref(Button_module_default$1).isSmall, __props.size === "medium" && unref(Button_module_default$1).isMedium, __props.size === "large" && unref(Button_module_default$1).isLarge, __props.size === "xl" && unref(Button_module_default$1).isXl)),
9842
9942
  type: __props.isSubmit ? "submit" : "button",
9843
9943
  "aria-disabled": unref(disabled) ? true : void 0,
9944
+ "aria-pressed": __props.isActive && __props.type === "button" ? true : void 0,
9844
9945
  disabled: unref(disabled) ? true : void 0,
9845
9946
  tabindex: unref(disabled) ? -1 : __props.tabindex,
9846
9947
  href: __props.href,
@@ -9881,6 +9982,7 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
9881
9982
  "class",
9882
9983
  "type",
9883
9984
  "aria-disabled",
9985
+ "aria-pressed",
9884
9986
  "disabled",
9885
9987
  "tabindex",
9886
9988
  "href",
@@ -9893,13 +9995,13 @@ var FluxButton_default = /* @__PURE__ */ defineComponent({
9893
9995
  });
9894
9996
  //#endregion
9895
9997
  //#region src/css/component/Action.module.scss
9896
- var { "buttonLabel": _0$17, "button": _1$6, "buttonIcon": _2$5 } = Button_module_default$1;
9998
+ var { "button": _0$17, "buttonIcon": _1$6, "buttonLabel": _2$5 } = Button_module_default$1;
9897
9999
  var Action_module_default = {
9898
- action: `action ${_1$6}`,
10000
+ action: `action ${_0$17}`,
9899
10001
  spinner: `spinner`,
9900
- actionIcon: `action-icon ${_2$5}`,
10002
+ actionIcon: `action-icon ${_1$6}`,
9901
10003
  isDestructive: `is-destructive`,
9902
- actionLabel: `action-label ${_0$17}`,
10004
+ actionLabel: `action-label ${_2$5}`,
9903
10005
  actionBar: `action-bar`,
9904
10006
  separator: `separator`,
9905
10007
  formInput: `form-input`,
@@ -9916,6 +10018,7 @@ var FluxAction_default = /* @__PURE__ */ defineComponent({
9916
10018
  props: {
9917
10019
  type: {},
9918
10020
  disabled: { type: Boolean },
10021
+ isActive: { type: Boolean },
9919
10022
  isLoading: { type: Boolean },
9920
10023
  isSubmit: { type: Boolean },
9921
10024
  label: {},
@@ -9969,6 +10072,7 @@ var FluxAction_default = /* @__PURE__ */ defineComponent({
9969
10072
  var { "button": _0$16, "buttonIcon": _1$5, "buttonLabel": _2$4 } = Button_module_default$1;
9970
10073
  var Button_module_default = {
9971
10074
  primaryButton: `primary-button ${_0$16}`,
10075
+ isActive: `is-active`,
9972
10076
  spinner: `spinner`,
9973
10077
  primaryButtonIcon: `primary-button-icon ${_1$5}`,
9974
10078
  primaryButtonLabel: `primary-button-label ${_2$4}`,
@@ -10025,6 +10129,7 @@ var FluxDestructiveButton_default = /* @__PURE__ */ defineComponent({
10025
10129
  disabled: { type: Boolean },
10026
10130
  iconLeading: {},
10027
10131
  iconTrailing: {},
10132
+ isActive: { type: Boolean },
10028
10133
  isFilled: { type: Boolean },
10029
10134
  isLoading: { type: Boolean },
10030
10135
  isSubmit: { type: Boolean },
@@ -10048,6 +10153,7 @@ var FluxDestructiveButton_default = /* @__PURE__ */ defineComponent({
10048
10153
  disabled: __props.disabled,
10049
10154
  iconLeading: __props.iconLeading,
10050
10155
  iconTrailing: __props.iconTrailing,
10156
+ isActive: __props.isActive,
10051
10157
  isFilled: __props.isFilled,
10052
10158
  isLoading: __props.isLoading,
10053
10159
  isSubmit: __props.isSubmit,
@@ -10060,6 +10166,7 @@ var FluxDestructiveButton_default = /* @__PURE__ */ defineComponent({
10060
10166
  to: __props.to
10061
10167
  }, {
10062
10168
  "css-class": unref(Button_module_default).destructiveButton,
10169
+ "css-class-active": unref(Button_module_default).isActive,
10063
10170
  "css-class-icon": unref(Button_module_default).destructiveButtonIcon,
10064
10171
  "css-class-label": unref(Button_module_default).destructiveButtonLabel,
10065
10172
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -10072,6 +10179,7 @@ var FluxDestructiveButton_default = /* @__PURE__ */ defineComponent({
10072
10179
  };
10073
10180
  })]), 1040, [
10074
10181
  "css-class",
10182
+ "css-class-active",
10075
10183
  "css-class-icon",
10076
10184
  "css-class-label"
10077
10185
  ]);
@@ -10549,9 +10657,6 @@ var Flyout_module_default = {
10549
10657
  mobileOpen: `mobile-open`
10550
10658
  };
10551
10659
  //#endregion
10552
- //#region src/component/FluxFlyout.vue?vue&type=script&setup=true&lang.ts
10553
- var _hoisted_1$71 = ["onKeydown"];
10554
- //#endregion
10555
10660
  //#region src/component/FluxFlyout.vue
10556
10661
  var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10557
10662
  __name: "FluxFlyout",
@@ -10561,7 +10666,9 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10561
10666
  margin: { default: 9 },
10562
10667
  width: {}
10563
10668
  },
10564
- setup(__props, { expose: __expose }) {
10669
+ emits: ["close", "open"],
10670
+ setup(__props, { expose: __expose, emit: __emit }) {
10671
+ const emit = __emit;
10565
10672
  const dialogRef = useTemplateRef("dialog");
10566
10673
  const mountRef = useTemplateRef("mount");
10567
10674
  const paneRef = useTemplateRef("pane");
@@ -10576,6 +10683,10 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10576
10683
  const paneMarginY = ref(0);
10577
10684
  !C$2 && O$1(ref(window), "resize", () => unref(isOpen) && reposition());
10578
10685
  I$1(paneRef);
10686
+ he$1("esc", () => close(), {
10687
+ enabled: isOpen,
10688
+ target: dialogRef
10689
+ });
10579
10690
  let closeAnimationEndListener = null;
10580
10691
  let openAnimationEndListener = null;
10581
10692
  function close() {
@@ -10663,9 +10774,13 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10663
10774
  const dialog = unref(dialogRef);
10664
10775
  if (isOpen && !dialog.open) {
10665
10776
  dialog.showModal();
10777
+ emit("open");
10666
10778
  window.addEventListener("scroll", reposition, { passive: true });
10667
10779
  onCleanup(() => window.removeEventListener("scroll", reposition));
10668
- } else if (!isOpen && dialog.open) dialog.close();
10780
+ } else if (!isOpen && dialog.open) {
10781
+ dialog.close();
10782
+ emit("close");
10783
+ }
10669
10784
  });
10670
10785
  provide(FluxFlyoutInjectionKey, {
10671
10786
  isClosing,
@@ -10675,7 +10790,8 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10675
10790
  __expose({
10676
10791
  close,
10677
10792
  open,
10678
- toggle
10793
+ toggle,
10794
+ isOpen
10679
10795
  });
10680
10796
  return (_ctx, _cache) => {
10681
10797
  return openBlock(), createElementBlock("div", {
@@ -10696,8 +10812,7 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10696
10812
  }))), createElementVNode("dialog", {
10697
10813
  ref: "dialog",
10698
10814
  class: normalizeClass(unref(Flyout_module_default).flyoutDialog),
10699
- onClick: onDialogBackdropClick,
10700
- onKeydown: withKeys(withModifiers(close, ["prevent"]), ["esc"])
10815
+ onClick: onDialogBackdropClick
10701
10816
  }, [isOpen.value ? (openBlock(), createBlock(FluxPane_default, {
10702
10817
  key: 0,
10703
10818
  ref: "pane",
@@ -10712,7 +10827,7 @@ var FluxFlyout_default = /* @__PURE__ */ defineComponent({
10712
10827
  openerHeight: openerHeight.value
10713
10828
  })))]),
10714
10829
  _: 3
10715
- }, 8, ["class", "style"])) : createCommentVNode("", true)], 42, _hoisted_1$71)], 6);
10830
+ }, 8, ["class", "style"])) : createCommentVNode("", true)], 2)], 6);
10716
10831
  };
10717
10832
  }
10718
10833
  });
@@ -10725,6 +10840,7 @@ var FluxSecondaryButton_default = /* @__PURE__ */ defineComponent({
10725
10840
  disabled: { type: Boolean },
10726
10841
  iconLeading: {},
10727
10842
  iconTrailing: {},
10843
+ isActive: { type: Boolean },
10728
10844
  isFilled: { type: Boolean },
10729
10845
  isLoading: { type: Boolean },
10730
10846
  isSubmit: { type: Boolean },
@@ -10748,6 +10864,7 @@ var FluxSecondaryButton_default = /* @__PURE__ */ defineComponent({
10748
10864
  disabled: __props.disabled,
10749
10865
  iconLeading: __props.iconLeading,
10750
10866
  iconTrailing: __props.iconTrailing,
10867
+ isActive: __props.isActive,
10751
10868
  isFilled: __props.isFilled,
10752
10869
  isLoading: __props.isLoading,
10753
10870
  isSubmit: __props.isSubmit,
@@ -10760,6 +10877,7 @@ var FluxSecondaryButton_default = /* @__PURE__ */ defineComponent({
10760
10877
  to: __props.to
10761
10878
  }, {
10762
10879
  "css-class": unref(Button_module_default).secondaryButton,
10880
+ "css-class-active": unref(Button_module_default).isActive,
10763
10881
  "css-class-icon": unref(Button_module_default).secondaryButtonIcon,
10764
10882
  "css-class-label": unref(Button_module_default).secondaryButtonLabel,
10765
10883
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -10772,6 +10890,7 @@ var FluxSecondaryButton_default = /* @__PURE__ */ defineComponent({
10772
10890
  };
10773
10891
  })]), 1040, [
10774
10892
  "css-class",
10893
+ "css-class-active",
10775
10894
  "css-class-icon",
10776
10895
  "css-class-label"
10777
10896
  ]);
@@ -14700,7 +14819,7 @@ var FilterBadge_default = /* @__PURE__ */ defineComponent({
14700
14819
  });
14701
14820
  //#endregion
14702
14821
  //#region src/css/component/Menu.module.scss
14703
- var { "button": _0$12, "buttonLabel": _1$3, "buttonIcon": _2$2 } = Button_module_default$1;
14822
+ var { "buttonIcon": _0$12, "buttonLabel": _1$3, "button": _2$2 } = Button_module_default$1;
14704
14823
  var Menu_module_default = {
14705
14824
  menu: `menu`,
14706
14825
  menuNormal: `menu-normal menu`,
@@ -14708,9 +14827,9 @@ var Menu_module_default = {
14708
14827
  menuGroup: `menu-group`,
14709
14828
  menuGroupHorizontal: `menu-group-horizontal menu-group`,
14710
14829
  menuGroupVertical: `menu-group-vertical menu-group`,
14711
- menuItem: `menu-item ${_0$12}`,
14830
+ menuItem: `menu-item ${_2$2}`,
14712
14831
  badge: `badge`,
14713
- menuItemIcon: `menu-item-icon ${_2$2}`,
14832
+ menuItemIcon: `menu-item-icon ${_0$12}`,
14714
14833
  menuItemLabel: `menu-item-label ${_1$3}`,
14715
14834
  menuItemActive: `menu-item-active`,
14716
14835
  menuItemDestructive: `menu-item-destructive`,
@@ -14721,7 +14840,7 @@ var Menu_module_default = {
14721
14840
  menuCollapsibleOpened: `menu-collapsible-opened menu-collapsible`,
14722
14841
  menuCollapsibleBody: `menu-collapsible-body`,
14723
14842
  menuCollapsibleContent: `menu-collapsible-content`,
14724
- menuItemSelectableIcon: `menu-item-selectable-icon ${_2$2}`,
14843
+ menuItemSelectableIcon: `menu-item-selectable-icon ${_0$12}`,
14725
14844
  menuItemSelected: `menu-item-selected`,
14726
14845
  menuItemCommand: `menu-item-command`,
14727
14846
  menuItemCommandIcon: `menu-item-command-icon`,
@@ -14763,6 +14882,7 @@ var FluxMenuItem_default = /* @__PURE__ */ defineComponent({
14763
14882
  disabled: { type: Boolean },
14764
14883
  iconLeading: {},
14765
14884
  iconTrailing: {},
14885
+ isActive: { type: Boolean },
14766
14886
  isLoading: { type: Boolean },
14767
14887
  label: {},
14768
14888
  tabindex: {},
@@ -14775,7 +14895,6 @@ var FluxMenuItem_default = /* @__PURE__ */ defineComponent({
14775
14895
  commandLoading: { type: Boolean },
14776
14896
  imageAlt: {},
14777
14897
  imageSrc: {},
14778
- isActive: { type: Boolean },
14779
14898
  isDestructive: { type: Boolean },
14780
14899
  isHighlighted: { type: Boolean },
14781
14900
  isIndented: { type: Boolean },
@@ -16313,6 +16432,7 @@ var FluxPrimaryButton_default = /* @__PURE__ */ defineComponent({
16313
16432
  disabled: { type: Boolean },
16314
16433
  iconLeading: {},
16315
16434
  iconTrailing: {},
16435
+ isActive: { type: Boolean },
16316
16436
  isFilled: { type: Boolean },
16317
16437
  isLoading: { type: Boolean },
16318
16438
  isSubmit: { type: Boolean },
@@ -16336,6 +16456,7 @@ var FluxPrimaryButton_default = /* @__PURE__ */ defineComponent({
16336
16456
  disabled: __props.disabled,
16337
16457
  iconLeading: __props.iconLeading,
16338
16458
  iconTrailing: __props.iconTrailing,
16459
+ isActive: __props.isActive,
16339
16460
  isFilled: __props.isFilled,
16340
16461
  isLoading: __props.isLoading,
16341
16462
  isSubmit: __props.isSubmit,
@@ -16348,6 +16469,7 @@ var FluxPrimaryButton_default = /* @__PURE__ */ defineComponent({
16348
16469
  to: __props.to
16349
16470
  }, {
16350
16471
  "css-class": unref(Button_module_default).primaryButton,
16472
+ "css-class-active": unref(Button_module_default).isActive,
16351
16473
  "css-class-icon": unref(Button_module_default).primaryButtonIcon,
16352
16474
  "css-class-label": unref(Button_module_default).primaryButtonLabel,
16353
16475
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -16360,6 +16482,7 @@ var FluxPrimaryButton_default = /* @__PURE__ */ defineComponent({
16360
16482
  };
16361
16483
  })]), 1040, [
16362
16484
  "css-class",
16485
+ "css-class-active",
16363
16486
  "css-class-icon",
16364
16487
  "css-class-label"
16365
16488
  ]);
@@ -16782,6 +16905,7 @@ var FluxPaginationButton_default = /* @__PURE__ */ defineComponent({
16782
16905
  disabled: { type: Boolean },
16783
16906
  iconLeading: {},
16784
16907
  iconTrailing: {},
16908
+ isActive: { type: Boolean },
16785
16909
  isFilled: { type: Boolean },
16786
16910
  isLoading: { type: Boolean },
16787
16911
  isSubmit: { type: Boolean },
@@ -22978,6 +23102,7 @@ var FluxLink_default = /* @__PURE__ */ defineComponent({
22978
23102
  disabled: { type: Boolean },
22979
23103
  iconLeading: {},
22980
23104
  iconTrailing: {},
23105
+ isActive: { type: Boolean },
22981
23106
  isFilled: { type: Boolean },
22982
23107
  isLoading: { type: Boolean },
22983
23108
  isSubmit: { type: Boolean },
@@ -23753,6 +23878,7 @@ var FluxPrimaryLinkButton_default = /* @__PURE__ */ defineComponent({
23753
23878
  disabled: { type: Boolean },
23754
23879
  iconLeading: {},
23755
23880
  iconTrailing: {},
23881
+ isActive: { type: Boolean },
23756
23882
  isFilled: { type: Boolean },
23757
23883
  isLoading: { type: Boolean },
23758
23884
  isSubmit: { type: Boolean },
@@ -23776,6 +23902,7 @@ var FluxPrimaryLinkButton_default = /* @__PURE__ */ defineComponent({
23776
23902
  disabled: __props.disabled,
23777
23903
  iconLeading: __props.iconLeading,
23778
23904
  iconTrailing: __props.iconTrailing,
23905
+ isActive: __props.isActive,
23779
23906
  isFilled: __props.isFilled,
23780
23907
  isLoading: __props.isLoading,
23781
23908
  isSubmit: __props.isSubmit,
@@ -23788,6 +23915,7 @@ var FluxPrimaryLinkButton_default = /* @__PURE__ */ defineComponent({
23788
23915
  to: __props.to
23789
23916
  }, {
23790
23917
  "css-class": unref(Button_module_default).primaryLinkButton,
23918
+ "css-class-active": unref(Button_module_default).isActive,
23791
23919
  "css-class-icon": unref(Button_module_default).primaryLinkButtonIcon,
23792
23920
  "css-class-label": unref(Button_module_default).primaryLinkButtonLabel,
23793
23921
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -23800,6 +23928,7 @@ var FluxPrimaryLinkButton_default = /* @__PURE__ */ defineComponent({
23800
23928
  };
23801
23929
  })]), 1040, [
23802
23930
  "css-class",
23931
+ "css-class-active",
23803
23932
  "css-class-icon",
23804
23933
  "css-class-label"
23805
23934
  ]);
@@ -23891,6 +24020,7 @@ var FluxPublishButton_default = /* @__PURE__ */ defineComponent({
23891
24020
  type: {},
23892
24021
  disabled: { type: Boolean },
23893
24022
  iconTrailing: {},
24023
+ isActive: { type: Boolean },
23894
24024
  isFilled: { type: Boolean },
23895
24025
  isLoading: { type: Boolean },
23896
24026
  isSubmit: { type: Boolean },
@@ -23914,6 +24044,7 @@ var FluxPublishButton_default = /* @__PURE__ */ defineComponent({
23914
24044
  type: __props.type,
23915
24045
  disabled: __props.disabled,
23916
24046
  iconTrailing: __props.iconTrailing,
24047
+ isActive: __props.isActive,
23917
24048
  isFilled: __props.isFilled,
23918
24049
  isLoading: __props.isLoading,
23919
24050
  isSubmit: __props.isSubmit,
@@ -23927,6 +24058,7 @@ var FluxPublishButton_default = /* @__PURE__ */ defineComponent({
23927
24058
  }, {
23928
24059
  class: unref(clsx)(!__props.isDone && !__props.isLoading && unref(Button_module_default).isIdle, __props.isDone && unref(Button_module_default).isDone, __props.isLoading && unref(Button_module_default).isLoading),
23929
24060
  "css-class": unref(Button_module_default).publishButton,
24061
+ "css-class-active": unref(Button_module_default).isActive,
23930
24062
  "css-class-icon": unref(Button_module_default).publishButtonIcon,
23931
24063
  "css-class-label": unref(Button_module_default).publishButtonLabel,
23932
24064
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -23964,6 +24096,7 @@ var FluxPublishButton_default = /* @__PURE__ */ defineComponent({
23964
24096
  }, 16, [
23965
24097
  "class",
23966
24098
  "css-class",
24099
+ "css-class-active",
23967
24100
  "css-class-icon",
23968
24101
  "css-class-label"
23969
24102
  ]);
@@ -24501,6 +24634,7 @@ var FluxSecondaryLinkButton_default = /* @__PURE__ */ defineComponent({
24501
24634
  disabled: { type: Boolean },
24502
24635
  iconLeading: {},
24503
24636
  iconTrailing: {},
24637
+ isActive: { type: Boolean },
24504
24638
  isFilled: { type: Boolean },
24505
24639
  isLoading: { type: Boolean },
24506
24640
  isSubmit: { type: Boolean },
@@ -24524,6 +24658,7 @@ var FluxSecondaryLinkButton_default = /* @__PURE__ */ defineComponent({
24524
24658
  disabled: __props.disabled,
24525
24659
  iconLeading: __props.iconLeading,
24526
24660
  iconTrailing: __props.iconTrailing,
24661
+ isActive: __props.isActive,
24527
24662
  isFilled: __props.isFilled,
24528
24663
  isLoading: __props.isLoading,
24529
24664
  isSubmit: __props.isSubmit,
@@ -24536,6 +24671,7 @@ var FluxSecondaryLinkButton_default = /* @__PURE__ */ defineComponent({
24536
24671
  to: __props.to
24537
24672
  }, {
24538
24673
  "css-class": unref(Button_module_default).secondaryLinkButton,
24674
+ "css-class-active": unref(Button_module_default).isActive,
24539
24675
  "css-class-icon": unref(Button_module_default).secondaryLinkButtonIcon,
24540
24676
  "css-class-label": unref(Button_module_default).secondaryLinkButtonLabel,
24541
24677
  onClick: _cache[0] || (_cache[0] = ($event) => $emit("click", $event)),
@@ -24548,6 +24684,7 @@ var FluxSecondaryLinkButton_default = /* @__PURE__ */ defineComponent({
24548
24684
  };
24549
24685
  })]), 1040, [
24550
24686
  "css-class",
24687
+ "css-class-active",
24551
24688
  "css-class-icon",
24552
24689
  "css-class-label"
24553
24690
  ]);