@skf-design-system/ui-components 1.0.2-beta.11 → 1.0.2-beta.13

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,27 +1,27 @@
1
- import { flip as w, offset as E, arrow as $, computePosition as O } from "@floating-ui/dom";
1
+ import { flip as y, offset as $, arrow as E, computePosition as O } from "@floating-ui/dom";
2
2
  import { SkfElement as C } from "../../components/skf-element.js";
3
- import { PopoverController as x } from "../../controllers/popover.controller.js";
4
- import { uuid as A } from "../../helpers/uuid.js";
3
+ import { PopoverController as T } from "../../controllers/popover.controller.js";
4
+ import { uuid as k } from "../../helpers/uuid.js";
5
5
  import { watch as f } from "../../helpers/watch.js";
6
- import { componentStyles as S } from "../../../styles/component.styles.js";
7
- import { nothing as P, html as g } from "lit";
8
- import { property as u, state as c, query as _ } from "lit/decorators.js";
9
- import { classMap as L } from "lit/directives/class-map.js";
10
- import { styles as F } from "./popover.styles.js";
11
- var k = Object.defineProperty, T = Object.getOwnPropertyDescriptor, r = (m, t, o, i) => {
12
- for (var e = i > 1 ? void 0 : i ? T(t, o) : t, n = m.length - 1, a; n >= 0; n--)
13
- (a = m[n]) && (e = (i ? a(t, o, e) : a(e)) || e);
14
- return i && e && k(t, o, e), e;
15
- }, p;
16
- const s = (p = class extends C {
6
+ import { componentStyles as P } from "../../../styles/component.styles.js";
7
+ import { nothing as _, html as m } from "lit";
8
+ import { property as u, state as c, query as A } from "lit/decorators.js";
9
+ import { classMap as S } from "lit/directives/class-map.js";
10
+ import { styles as L } from "./popover.styles.js";
11
+ var x = Object.defineProperty, F = Object.getOwnPropertyDescriptor, r = (g, t, s, o) => {
12
+ for (var e = o > 1 ? void 0 : o ? F(t, s) : t, n = g.length - 1, a; n >= 0; n--)
13
+ (a = g[n]) && (e = (o ? a(t, s, e) : a(e)) || e);
14
+ return o && e && x(t, s, e), e;
15
+ }, h;
16
+ const i = (h = class extends C {
17
17
  constructor() {
18
- super(...arguments), this.$popover = this, this.placement = "top", this.variant = "popup", this.isOpen = !1, this.offset = 0, this.arrow = !1, this.triggerEvent = "mouseenter", this.abortEventsController = new AbortController(), this.signal = this.abortEventsController.signal, this.popoverController = new x(this), this._toggleOpen = (t) => {
18
+ super(...arguments), this._skipClosingThisTick = !1, this.$popover = this, this.placement = "top", this.variant = "popup", this.isOpen = !1, this.offset = 0, this.arrow = !1, this.triggerEvent = "mouseenter", this.abortEventsController = new AbortController(), this.signal = this.abortEventsController.signal, this.popoverController = new T(this), this._toggleOpen = (t) => {
19
19
  this.isOpen = t ?? !this.isOpen;
20
20
  }, this._handleToggle = (t) => {
21
- const o = t.newState === "open";
22
- this.isOpen = o, this.emit(o ? "skf-opened" : "skf-closed");
21
+ const s = t.newState === "open";
22
+ this.isOpen = s, this.emit(s ? "skf-opened" : "skf-closed");
23
23
  }, this.handleToggleOpen = async () => {
24
- this.$anchor && (this.isOpen ? (this.$popover.togglePopover(!0), this.$popover.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 250, fill: "forwards" })) : (await this.$popover.animate([{ opacity: 0 }], { duration: 150, fill: "forwards" }).finished, this.$popover.togglePopover(this.isOpen)));
24
+ this.$anchor && (this.isOpen ? (this.$popover.togglePopover(!0), this.$popover.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 250, fill: "forwards" })) : (await this.$popover.animate([{ opacity: 0 }], { duration: 150, fill: "forwards" }).finished, this.$popover && this.$popover.togglePopover(this.isOpen)));
25
25
  }, this.handleAnchorChange = async () => {
26
26
  if (!this.anchor) return;
27
27
  await this.popoverController.stop(), this.$anchor && this.removeEventListeners();
@@ -29,18 +29,18 @@ const s = (p = class extends C {
29
29
  this.$anchor = t.getElementById(this.anchor), this.$anchor && (this.addEventListeners(this.$anchor), this.popoverController.start());
30
30
  }, this.reposition = async () => {
31
31
  if (!this.$anchor) return;
32
- const t = [w(), E(this.offset)];
33
- this.arrow && t.push($({ element: this.$arrow }));
34
- const { x: o, y: i, middlewareData: e } = await O(this.$anchor, this.$popover, {
32
+ const t = [y(), $(this.offset)];
33
+ this.arrow && t.push(E({ element: this.$arrow }));
34
+ const { x: s, y: o, middlewareData: e } = await O(this.$anchor, this.$popover, {
35
35
  placement: this.placement,
36
36
  middleware: t,
37
37
  strategy: "fixed"
38
38
  });
39
39
  if (Object.assign(this.$popover.style, {
40
- left: `${String(o)}px`,
41
- top: `${String(i)}px`
40
+ left: `${String(s)}px`,
41
+ top: `${String(o)}px`
42
42
  }), this.arrow) {
43
- const n = this.placement.split("-")[0], a = { top: "bottom", right: "left", bottom: "top", left: "right" }[n] ?? "", h = e.flip?.index, d = e.arrow?.x, l = e.arrow?.y, v = typeof d == "number" ? `${String(d)}px` : "", b = typeof l == "number" ? `${String(l)}px` : "", y = {
43
+ const n = this.placement.split("-")[0], a = { top: "bottom", right: "left", bottom: "top", left: "right" }[n] ?? "", p = e.flip?.index, d = e.arrow?.x, l = e.arrow?.y, v = typeof d == "number" ? `${String(d)}px` : "", b = typeof l == "number" ? `${String(l)}px` : "", w = {
44
44
  bottom: 45,
45
45
  right: 135,
46
46
  top: 225,
@@ -49,16 +49,18 @@ const s = (p = class extends C {
49
49
  Object.assign(this.$arrow.style, {
50
50
  top: b,
51
51
  [this.placement.includes("left") ? "right" : "left"]: v,
52
- [h ? n : a]: "calc(var(--_skf-popover-arrow-size) * -1)",
53
- rotate: `${(y[a] + (h ? 180 : 0)).toString()}deg`
52
+ [p ? n : a]: "calc(var(--_skf-popover-arrow-size) * -1)",
53
+ rotate: `${(w[a] + (p ? 180 : 0)).toString()}deg`
54
54
  });
55
55
  }
56
56
  }, this.handleEscapeKey = (t) => {
57
57
  t.key === "Escape" && this.close();
58
58
  }, this.open = (t) => {
59
- t.stopPropagation(), this._toggleOpen(!0), this.abortEventsController = new AbortController(), this.signal = this.abortEventsController.signal, document.addEventListener("keydown", this.handleEscapeKey, { signal: this.signal }), this.openExtended();
60
- }, this.close = () => {
61
- this.closeExtended(), this._toggleOpen(!1), this.abortEventsController.abort();
59
+ t.stopPropagation();
60
+ const o = this.tagName === "SKF-MENU" ? void 0 : !0;
61
+ this._toggleOpen(o), this.abortEventsController = new AbortController(), this.signal = this.abortEventsController.signal, document.addEventListener("keydown", this.handleEscapeKey, { signal: this.signal }), this.tagName === "SKF-TOOLTIP" && this.$anchor?.setAttribute("aria-describedby", this.id);
62
+ }, this.close = (t = "") => {
63
+ console.log("Popover closing", t), this._toggleOpen(!1), this.abortEventsController.abort(), this.tagName === "SKF-TOOLTIP" && this.$anchor?.removeAttribute("aria-describedby");
62
64
  };
63
65
  }
64
66
  connectedCallback() {
@@ -75,24 +77,28 @@ const s = (p = class extends C {
75
77
  this.$anchor.addEventListener(
76
78
  "focusout",
77
79
  (o) => {
78
- const i = this.contains(o.relatedTarget);
79
- t && i || this.close();
80
+ const e = this.contains(o.relatedTarget);
81
+ t && e || this._skipClosingThisTick || this.close("anchor focus out");
80
82
  },
81
83
  { signal: this.signal }
82
84
  ), this.addEventListener(
83
85
  "focusout",
84
86
  (o) => {
85
- const i = this.contains(o.relatedTarget);
86
- t && i || this.close();
87
+ const e = this.contains(o.relatedTarget);
88
+ t && e || this.close("popover focusout");
87
89
  },
88
90
  { signal: this.signal }
89
- ), this.$popover.id = await A(this.$anchor.id), ["popup", "menu"].includes(this.variant) && (this.$anchor.setAttribute("aria-haspopup", "true"), this.setAttribute("aria-labelledby", this.$anchor.id)), ["menu"].includes(this.variant) && this.$anchor.setAttribute("aria-controls", this.$popover.id), ["popup"].includes(this.variant) && t && (this.role = "dialog"), ["tooltip"].includes(this.variant) && this.$anchor.addEventListener("focusin", this.open, { signal: this.signal });
90
- }
91
- /** @internal add additional open tasks here in UI component */
92
- openExtended() {
93
- }
94
- /** @internal add additional close tasks here in UI component */
95
- closeExtended() {
91
+ ), this._skfPopoverOutsideClickListener ??= (o) => {
92
+ this.isOpen && this.$anchor && !this.contains(o.target) && !this.$anchor.contains(o.target) ? this.close("outside click") : (this._skipClosingThisTick = !0, setTimeout(() => {
93
+ this._skipClosingThisTick = !1;
94
+ }, 0));
95
+ }, document.addEventListener("mousedown", this._skfPopoverOutsideClickListener, {
96
+ signal: this.signal
97
+ });
98
+ const s = window.top && window.self !== window.top;
99
+ console.log("contains frames", s), s && window.top && !this._skipClosingThisTick && window.top.addEventListener("mousedown", this._skfPopoverOutsideClickListener, {
100
+ signal: this.signal
101
+ }), this.$popover.id = await k(this.$anchor.id), ["popup", "menu"].includes(this.variant) && (this.$anchor.setAttribute("aria-haspopup", "true"), this.setAttribute("aria-labelledby", this.$anchor.id)), ["menu"].includes(this.variant) && this.$anchor.setAttribute("aria-controls", this.$popover.id), ["popup"].includes(this.variant) && t && (this.role = "dialog"), ["tooltip"].includes(this.variant) && this.$anchor.addEventListener("focusin", this.open, { signal: this.signal });
96
102
  }
97
103
  /** @internal eventlisteners here should implement abort signal */
98
104
  addEventListeners(t) {
@@ -103,10 +109,10 @@ const s = (p = class extends C {
103
109
  this.abortEventsController.abort();
104
110
  }
105
111
  render() {
106
- return ["popup", "menu"].includes(this.variant) && this.$anchor?.setAttribute("aria-expanded", this.isOpen ? "true" : "false"), g`
107
- <div class=${L({ popover: !0, ...p.classMap })} id="root">
112
+ return ["popup", "menu"].includes(this.variant) && this.$anchor?.setAttribute("aria-expanded", this.isOpen ? "true" : "false"), m`
113
+ <div class=${S({ popover: !0, ...h.classMap })} id="root">
108
114
  <slot></slot>
109
- ${this.arrow ? g`<div id="arrow"></div>` : P}
115
+ ${this.arrow ? m`<div id="arrow"></div>` : _}
110
116
  </div>
111
117
  `;
112
118
  }
@@ -121,54 +127,54 @@ const s = (p = class extends C {
121
127
  '[tabindex]:not([tabindex="-1"])'
122
128
  ]).length > 0;
123
129
  function e(n, a) {
124
- const h = Array.from(
130
+ const p = Array.from(
125
131
  n.querySelectorAll(a.join(", "))
126
132
  ), d = Array.from(n.querySelectorAll("*")).map((l) => l.shadowRoot).filter((l) => l !== null);
127
133
  for (const l of d)
128
- h.push(
134
+ p.push(
129
135
  ...e(l, a)
130
136
  );
131
- return h;
137
+ return p;
132
138
  }
133
139
  }
134
- }, p.styles = [S, F], p.classMap = {}, p);
140
+ }, h.styles = [P, L], h.classMap = {}, h);
135
141
  r([
136
142
  u()
137
- ], s.prototype, "placement", 2);
143
+ ], i.prototype, "placement", 2);
138
144
  r([
139
145
  u()
140
- ], s.prototype, "variant", 2);
146
+ ], i.prototype, "variant", 2);
141
147
  r([
142
148
  u()
143
- ], s.prototype, "anchor", 2);
149
+ ], i.prototype, "anchor", 2);
144
150
  r([
145
151
  c()
146
- ], s.prototype, "isOpen", 2);
152
+ ], i.prototype, "isOpen", 2);
147
153
  r([
148
154
  c()
149
- ], s.prototype, "offset", 2);
155
+ ], i.prototype, "offset", 2);
150
156
  r([
151
157
  c()
152
- ], s.prototype, "$anchor", 2);
158
+ ], i.prototype, "$anchor", 2);
153
159
  r([
154
160
  c()
155
- ], s.prototype, "arrow", 2);
161
+ ], i.prototype, "arrow", 2);
156
162
  r([
157
163
  c()
158
- ], s.prototype, "triggerEvent", 2);
164
+ ], i.prototype, "triggerEvent", 2);
159
165
  r([
160
- _("#arrow")
161
- ], s.prototype, "$arrow", 2);
166
+ A("#arrow")
167
+ ], i.prototype, "$arrow", 2);
162
168
  r([
163
169
  f("isOpen", { afterUpdate: !0 })
164
- ], s.prototype, "handleToggleOpen", 2);
170
+ ], i.prototype, "handleToggleOpen", 2);
165
171
  r([
166
172
  f("$anchor")
167
- ], s.prototype, "handleAnchorEl", 1);
173
+ ], i.prototype, "handleAnchorEl", 1);
168
174
  r([
169
175
  f("anchor")
170
- ], s.prototype, "handleAnchorChange", 2);
171
- let U = s;
176
+ ], i.prototype, "handleAnchorChange", 2);
177
+ let z = i;
172
178
  export {
173
- U as SkfPopoverBase
179
+ z as SkfPopoverBase
174
180
  };
@@ -426,8 +426,6 @@ export type SkfDatepickerCalendarProps = {
426
426
  "invalid-dates"?: SkfDatepickerCalendar['invalidDates'];
427
427
  /** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
428
428
  "invalidDates"?: SkfDatepickerCalendar['invalidDates'];
429
- /** Sets the internal language of the component */
430
- "lang"?: SkfDatepickerCalendar['lang'];
431
429
  /** */
432
430
  "locale"?: SkfDatepickerCalendar['locale'];
433
431
  /** */
@@ -674,6 +672,8 @@ export type SkfInputProps = {
674
672
  /** Indicates whether the value of the control can be automatically completed by the browser. See
675
673
  [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
676
674
  "autocomplete"?: SkfInput['autocomplete'];
675
+ /** */
676
+ "autofocus"?: SkfInput['autofocus'];
677
677
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
678
678
  "custom-invalid"?: SkfInput['customInvalid'];
679
679
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
@@ -945,6 +945,10 @@ export type SkfSelectProps = {
945
945
  "lang"?: SkfSelect['lang'];
946
946
  /** If defined, limits the number of selectable options */
947
947
  "max"?: SkfSelect['max'];
948
+ /** */
949
+ "max-visible-items"?: SkfSelect['maxVisibleItems'];
950
+ /** */
951
+ "maxVisibleItems"?: SkfSelect['maxVisibleItems'];
948
952
  /** If defined, sets the minimum number of required options */
949
953
  "min"?: SkfSelect['min'];
950
954
  /** If true, allows for multiple options to be selected */
@@ -1509,7 +1513,6 @@ export type SkfTooltipProps = {
1509
1513
  * - `eventid`: undefined
1510
1514
  * - `firstDayOfWeek`: undefined
1511
1515
  * - `invalid-dates`/`invalidDates`: A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.
1512
- * - `lang`: Sets the internal language of the component
1513
1516
  * - `locale`: undefined
1514
1517
  * - `range`: undefined
1515
1518
  * - `selectable-from`/`selectableFrom`: Earliest selectable date. (yyyy-mm-dd format)
@@ -1825,6 +1828,7 @@ export type SkfTooltipProps = {
1825
1828
  * - `required`/`undefined`: If true, value is required or must be checked for the form to be submittable
1826
1829
  * - `autocomplete`: Indicates whether the value of the control can be automatically completed by the browser. See
1827
1830
  * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.
1831
+ * - `autofocus`: undefined
1828
1832
  * - `custom-invalid`/`customInvalid`: If defined, forces component to invalid state until removed. Its value is used as hint text.
1829
1833
  * - `debug`: If true, outputs helping hints in console
1830
1834
  * - `hide-label`/`hideLabel`: If true, hides the label visually
@@ -1862,6 +1866,14 @@ export type SkfTooltipProps = {
1862
1866
  * Areas where markup can be added to the component.
1863
1867
  *
1864
1868
  * - `(default)`: The Inputs label. Alternatively, you can use the `label` attribute.
1869
+ *
1870
+ * #### Methods
1871
+ *
1872
+ * Methods that can be called to access component functionality.
1873
+ *
1874
+ * - `focus() => void`: undefined
1875
+ * - `blur() => void`: undefined
1876
+ * - `select() => void`: undefined
1865
1877
  */
1866
1878
  "skf-input": Partial<SkfInputProps & BaseProps<SkfInput> & BaseEvents>;
1867
1879
 
@@ -2128,6 +2140,7 @@ export type SkfTooltipProps = {
2128
2140
  * - `label`: If defined, displays provided label
2129
2141
  * - `lang`: Sets the internal language of the component
2130
2142
  * - `max`: If defined, limits the number of selectable options
2143
+ * - `max-visible-items`/`maxVisibleItems`: undefined
2131
2144
  * - `min`: If defined, sets the minimum number of required options
2132
2145
  * - `multiple`: If true, allows for multiple options to be selected
2133
2146
  * - `name`: If defined, set name of the component
@@ -2161,7 +2174,6 @@ export type SkfTooltipProps = {
2161
2174
  * Methods that can be called to access component functionality.
2162
2175
  *
2163
2176
  * - `_handleSizeUpdate() => void`: undefined
2164
- * - `handleExpandedChange() => void`: undefined
2165
2177
  */
2166
2178
  "skf-select": Partial<SkfSelectProps & BaseProps<SkfSelect> & BaseEvents>;
2167
2179
 
@@ -203,8 +203,6 @@ type SkfDatepickerCalendarProps = {
203
203
  firstDayOfWeek?: SkfDatepickerCalendar["firstDayOfWeek"];
204
204
  /** A comma-separated list of dates (yyyy-mm-dd format) that are not selectable. */
205
205
  "invalid-dates"?: SkfDatepickerCalendar["invalidDates"];
206
- /** Sets the internal language of the component */
207
- lang?: SkfDatepickerCalendar["lang"];
208
206
  /** */
209
207
  locale?: SkfDatepickerCalendar["locale"];
210
208
  /** */
@@ -392,6 +390,8 @@ type SkfInputProps = {
392
390
  /** Indicates whether the value of the control can be automatically completed by the browser. See
393
391
  [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details. */
394
392
  autocomplete?: SkfInput["autocomplete"];
393
+ /** */
394
+ autofocus?: SkfInput["autofocus"];
395
395
  /** If defined, forces component to invalid state until removed. Its value is used as hint text. */
396
396
  "custom-invalid"?: SkfInput["customInvalid"];
397
397
  /** If true, outputs helping hints in console */
@@ -609,6 +609,8 @@ type SkfSelectProps = {
609
609
  lang?: SkfSelect["lang"];
610
610
  /** If defined, limits the number of selectable options */
611
611
  max?: SkfSelect["max"];
612
+ /** */
613
+ "max-visible-items"?: SkfSelect["maxVisibleItems"];
612
614
  /** If defined, sets the minimum number of required options */
613
615
  min?: SkfSelect["min"];
614
616
  /** If true, allows for multiple options to be selected */
@@ -338,11 +338,6 @@
338
338
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
339
339
  "values": []
340
340
  },
341
- {
342
- "name": "lang",
343
- "description": "Sets the internal language of the component",
344
- "values": [{ "name": "Language" }]
345
- },
346
341
  { "name": "locale", "values": [] },
347
342
  { "name": "range", "values": [] },
348
343
  {
@@ -720,6 +715,7 @@
720
715
  "description": "Indicates whether the value of the control can be automatically completed by the browser. See\n[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.",
721
716
  "values": [{ "name": "HTMLInputElement['autocomplete']" }]
722
717
  },
718
+ { "name": "autofocus", "values": [] },
723
719
  {
724
720
  "name": "custom-invalid",
725
721
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
@@ -1198,6 +1194,7 @@
1198
1194
  "description": "If defined, limits the number of selectable options",
1199
1195
  "values": []
1200
1196
  },
1197
+ { "name": "max-visible-items", "values": [] },
1201
1198
  {
1202
1199
  "name": "min",
1203
1200
  "description": "If defined, sets the minimum number of required options",
@@ -745,11 +745,6 @@
745
745
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
746
746
  "value": { "type": "string | undefined" }
747
747
  },
748
- {
749
- "name": "lang",
750
- "description": "Sets the internal language of the component",
751
- "value": { "type": "Language", "default": "'en'" }
752
- },
753
748
  {
754
749
  "name": "locale",
755
750
  "value": { "type": "string", "default": "'en-CA'" }
@@ -790,11 +785,6 @@
790
785
  "description": "A comma-separated list of dates (yyyy-mm-dd format) that are not selectable.",
791
786
  "type": "string | undefined"
792
787
  },
793
- {
794
- "name": "lang",
795
- "description": "Sets the internal language of the component",
796
- "type": "Language"
797
- },
798
788
  { "name": "locale", "type": "string" },
799
789
  { "name": "range", "type": "boolean" },
800
790
  {
@@ -1583,6 +1573,10 @@
1583
1573
  "type": "HTMLInputElement['autocomplete'] | undefined"
1584
1574
  }
1585
1575
  },
1576
+ {
1577
+ "name": "autofocus",
1578
+ "value": { "type": "boolean", "default": "false" }
1579
+ },
1586
1580
  {
1587
1581
  "name": "custom-invalid",
1588
1582
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text.",
@@ -1733,6 +1727,7 @@
1733
1727
  "description": "Indicates whether the value of the control can be automatically completed by the browser. See\n[MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete) for details.",
1734
1728
  "type": "HTMLInputElement['autocomplete'] | undefined"
1735
1729
  },
1730
+ { "name": "autofocus", "type": "boolean" },
1736
1731
  {
1737
1732
  "name": "customInvalid",
1738
1733
  "description": "If defined, forces component to invalid state until removed. Its value is used as hint text."
@@ -2559,6 +2554,10 @@
2559
2554
  "description": "If defined, limits the number of selectable options",
2560
2555
  "value": { "type": "number | undefined" }
2561
2556
  },
2557
+ {
2558
+ "name": "max-visible-items",
2559
+ "value": { "type": "number | undefined" }
2560
+ },
2562
2561
  {
2563
2562
  "name": "min",
2564
2563
  "description": "If defined, sets the minimum number of required options",
@@ -2674,6 +2673,7 @@
2674
2673
  "description": "If defined, limits the number of selectable options",
2675
2674
  "type": "number | undefined"
2676
2675
  },
2676
+ { "name": "maxVisibleItems", "type": "number | undefined" },
2677
2677
  {
2678
2678
  "name": "min",
2679
2679
  "description": "If defined, sets the minimum number of required options",
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "sideEffects": true,
36
36
  "type": "module",
37
37
  "types": "./dist/index.d.ts",
38
- "version": "1.0.2-beta.11",
38
+ "version": "1.0.2-beta.13",
39
39
  "dependencies": {
40
40
  "@floating-ui/dom": "^1.7.1",
41
41
  "@js-temporal/polyfill": "^0.5.1",