iryx-ui 0.5.0 → 0.7.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.
Files changed (71) hide show
  1. package/README.md +355 -5
  2. package/dist/component-names.d.ts +1 -1
  3. package/dist/components/Alert.vue.d.ts +19 -4
  4. package/dist/components/Badge.vue.d.ts +4 -3
  5. package/dist/components/Banner.vue.d.ts +81 -0
  6. package/dist/components/Combobox.vue.d.ts +3 -3
  7. package/dist/components/DatePicker.vue.d.ts +52 -0
  8. package/dist/components/DateRangePicker.vue.d.ts +60 -0
  9. package/dist/components/DropdownMenu.vue.d.ts +1 -1
  10. package/dist/components/Input.vue.d.ts +39 -1
  11. package/dist/components/Pagination.vue.d.ts +3 -1
  12. package/dist/components/PasswordInput.vue.d.ts +54 -0
  13. package/dist/components/Select.vue.d.ts +2 -2
  14. package/dist/components/Table.vue.d.ts +131 -0
  15. package/dist/components/Textarea.vue.d.ts +16 -1
  16. package/dist/components/index.d.ts +5 -0
  17. package/dist/composables/data-table.d.ts +93 -0
  18. package/dist/composables/date.d.ts +21 -0
  19. package/dist/index.d.ts +7 -0
  20. package/dist/index.js +72 -60
  21. package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +104 -7
  22. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +122 -0
  23. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +84 -0
  24. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +91 -0
  25. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +107 -0
  26. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +159 -0
  27. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +29 -0
  28. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +37 -0
  29. package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +6 -0
  30. package/dist/packages/iryx-ui/src/component-names.js +1 -1
  31. package/dist/packages/iryx-ui/src/components/Alert.vue_vue_type_script_setup_true_lang.js +51 -35
  32. package/dist/packages/iryx-ui/src/components/Badge.vue_vue_type_script_setup_true_lang.js +1 -2
  33. package/dist/packages/iryx-ui/src/components/Banner.js +5 -0
  34. package/dist/packages/iryx-ui/src/components/Banner.vue_vue_type_script_setup_true_lang.js +93 -0
  35. package/dist/packages/iryx-ui/src/components/DatePicker.js +5 -0
  36. package/dist/packages/iryx-ui/src/components/DatePicker.vue_vue_type_script_setup_true_lang.js +186 -0
  37. package/dist/packages/iryx-ui/src/components/DateRangePicker.js +5 -0
  38. package/dist/packages/iryx-ui/src/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +210 -0
  39. package/dist/packages/iryx-ui/src/components/Input.vue_vue_type_script_setup_true_lang.js +94 -25
  40. package/dist/packages/iryx-ui/src/components/Pagination.vue_vue_type_script_setup_true_lang.js +5 -1
  41. package/dist/packages/iryx-ui/src/components/PasswordInput.js +5 -0
  42. package/dist/packages/iryx-ui/src/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +113 -0
  43. package/dist/packages/iryx-ui/src/components/Table.js +5 -0
  44. package/dist/packages/iryx-ui/src/components/Table.vue_vue_type_script_setup_true_lang.js +217 -0
  45. package/dist/packages/iryx-ui/src/components/Textarea.vue_vue_type_script_setup_true_lang.js +47 -21
  46. package/dist/packages/iryx-ui/src/components/index.js +68 -58
  47. package/dist/packages/iryx-ui/src/composables/data-table.js +106 -0
  48. package/dist/packages/iryx-ui/src/composables/date.js +25 -0
  49. package/dist/packages/iryx-ui/src/theme/alert.js +10 -21
  50. package/dist/packages/iryx-ui/src/theme/badge.js +37 -37
  51. package/dist/packages/iryx-ui/src/theme/banner.js +62 -0
  52. package/dist/packages/iryx-ui/src/theme/date-picker.js +45 -0
  53. package/dist/packages/iryx-ui/src/theme/input.js +22 -6
  54. package/dist/packages/iryx-ui/src/theme/pagination.js +23 -13
  55. package/dist/packages/iryx-ui/src/theme/password-input.js +22 -0
  56. package/dist/packages/iryx-ui/src/theme/stat.js +4 -4
  57. package/dist/packages/iryx-ui/src/theme/table.js +62 -0
  58. package/dist/packages/iryx-ui/src/theme/toast.js +11 -26
  59. package/dist/theme/alert.d.ts +6 -12
  60. package/dist/theme/badge.d.ts +15 -12
  61. package/dist/theme/banner.d.ts +185 -0
  62. package/dist/theme/date-picker.d.ts +254 -0
  63. package/dist/theme/index.d.ts +4 -0
  64. package/dist/theme/input.d.ts +94 -15
  65. package/dist/theme/pagination.d.ts +33 -0
  66. package/dist/theme/password-input.d.ts +79 -0
  67. package/dist/theme/stat.d.ts +0 -3
  68. package/dist/theme/table.d.ts +230 -0
  69. package/dist/theme/toast.d.ts +0 -15
  70. package/package.json +2 -1
  71. package/theme.css +10 -0
@@ -0,0 +1,107 @@
1
+ import { $93635573935797de$export$80ee6245ec4f29ec as e, $93635573935797de$export$c36e0ecb2d4fa69d as t } from "./calendars/GregorianCalendar.js";
2
+ import { $ad063034c8620db8$export$6ab69b273755230b as n, $ad063034c8620db8$export$aa8b41735afcabd2 as r, $ad063034c8620db8$export$dbc69fd56b53d5e as i } from "./queries.js";
3
+ import { $435a2ceaa8778ed8$export$c4e2ecac49351ef2 as a } from "./manipulation.js";
4
+ import { $2aaf608024c21ca1$export$99faa760c7908e4f as o, $2aaf608024c21ca1$export$ca871e8dbb80966f as s, $2aaf608024c21ca1$export$d3b7288e7994edea as c } from "./CalendarDate.js";
5
+ //#region ../../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.mjs
6
+ function l(n) {
7
+ return n = S(n, new e()), u(t(n.era, n.year), n.month, n.day, n.hour, n.minute, n.second, n.millisecond);
8
+ }
9
+ function u(e, t, n, r, i, a, o) {
10
+ let s = /* @__PURE__ */ new Date();
11
+ return s.setUTCHours(r, i, a, o), s.setUTCFullYear(e, t - 1, n), s.getTime();
12
+ }
13
+ function d(e, t) {
14
+ if (t === "UTC") return 0;
15
+ if (e > 0 && t === r() && !n()) return new Date(e).getTimezoneOffset() * -6e4;
16
+ let { year: i, month: a, day: o, hour: s, minute: c, second: l } = p(e, t);
17
+ return u(i, a, o, s, c, l, 0) - Math.floor(e / 1e3) * 1e3;
18
+ }
19
+ var f = /* @__PURE__ */ new Map();
20
+ function p(e, t) {
21
+ let n = f.get(t);
22
+ n || (n = new Intl.DateTimeFormat("en-US", {
23
+ timeZone: t,
24
+ hour12: !1,
25
+ era: "short",
26
+ year: "numeric",
27
+ month: "numeric",
28
+ day: "numeric",
29
+ hour: "numeric",
30
+ minute: "numeric",
31
+ second: "numeric"
32
+ }), f.set(t, n));
33
+ let r = n.formatToParts(new Date(e)), i = {};
34
+ for (let e of r) e.type !== "literal" && (i[e.type] = e.value);
35
+ return {
36
+ year: i.era === "BC" || i.era === "B" ? -i.year + 1 : +i.year,
37
+ month: +i.month,
38
+ day: +i.day,
39
+ hour: i.hour === "24" ? 0 : +i.hour,
40
+ minute: +i.minute,
41
+ second: +i.second
42
+ };
43
+ }
44
+ var m = 864e5;
45
+ function h(e, t, n, r) {
46
+ return (n === r ? [n] : [n, r]).filter((n) => g(e, t, n));
47
+ }
48
+ function g(e, t, n) {
49
+ let r = p(n, t);
50
+ return e.year === r.year && e.month === r.month && e.day === r.day && e.hour === r.hour && e.minute === r.minute && e.second === r.second;
51
+ }
52
+ function _(i, a, o = "compatible") {
53
+ let s = x(i);
54
+ if (a === "UTC") return l(s);
55
+ if (a === r() && o === "compatible" && !n()) {
56
+ s = S(s, new e());
57
+ let n = /* @__PURE__ */ new Date(), r = t(s.era, s.year);
58
+ return n.setFullYear(r, s.month - 1, s.day), n.setHours(s.hour, s.minute, s.second, s.millisecond), n.getTime();
59
+ }
60
+ let c = l(s), u = d(c - m, a), f = d(c + m, a), p = h(s, a, c - u, c - f);
61
+ if (p.length === 1) return p[0];
62
+ if (p.length > 1) switch (o) {
63
+ case "compatible":
64
+ case "earlier": return p[0];
65
+ case "later": return p[p.length - 1];
66
+ case "reject": throw RangeError("Multiple possible absolute times found");
67
+ }
68
+ switch (o) {
69
+ case "earlier": return Math.min(c - u, c - f);
70
+ case "compatible":
71
+ case "later": return Math.max(c - u, c - f);
72
+ case "reject": throw RangeError("No such absolute time found");
73
+ }
74
+ }
75
+ function v(e, t, n = "compatible") {
76
+ return new Date(_(e, t, n));
77
+ }
78
+ function y(e, t) {
79
+ let n = d(e, t), r = new Date(e + n), i = r.getUTCFullYear(), a = r.getUTCMonth() + 1, o = r.getUTCDate(), s = r.getUTCHours(), l = r.getUTCMinutes(), u = r.getUTCSeconds(), f = r.getUTCMilliseconds();
80
+ return new c(i < 1 ? "BC" : "AD", i < 1 ? -i + 1 : i, a, o, t, n, s, l, u, f);
81
+ }
82
+ function b(e) {
83
+ return new o(e.calendar, e.era, e.year, e.month, e.day);
84
+ }
85
+ function x(e, t) {
86
+ let n = 0, r = 0, i = 0, a = 0;
87
+ if ("timeZone" in e) ({hour: n, minute: r, second: i, millisecond: a} = e);
88
+ else if ("hour" in e && !t) return e;
89
+ return t && ({hour: n, minute: r, second: i, millisecond: a} = t), new s(e.calendar, e.era, e.year, e.month, e.day, n, r, i, a);
90
+ }
91
+ function S(e, t) {
92
+ if (i(e.calendar, t)) return e;
93
+ let n = t.fromJulianDay(e.calendar.toJulianDay(e)), r = e.copy();
94
+ return r.calendar = t, r.era = n.era, r.year = n.year, r.month = n.month, r.day = n.day, a(r), r;
95
+ }
96
+ function C(e, t, n) {
97
+ return e instanceof c ? e.timeZone === t ? e : T(e, t) : y(_(e, t, n), t);
98
+ }
99
+ function w(e) {
100
+ let t = l(e) - e.offset;
101
+ return new Date(t);
102
+ }
103
+ function T(e, t) {
104
+ return S(y(l(e) - e.offset, t), e.calendar);
105
+ }
106
+ //#endregion
107
+ export { y as $d07e34cce18680fd$export$1b96692a1ba042ac, _ as $d07e34cce18680fd$export$5107c82f94518f5c, w as $d07e34cce18680fd$export$83aac07b4c37b25, C as $d07e34cce18680fd$export$84c95a83c799e074, b as $d07e34cce18680fd$export$93522d1a439f3617, x as $d07e34cce18680fd$export$b21e0b124e224484, S as $d07e34cce18680fd$export$b4a036af3fc0b032, l as $d07e34cce18680fd$export$bd4fb2bc8bb06fb, v as $d07e34cce18680fd$export$e67a095c620b86fe };
@@ -0,0 +1,159 @@
1
+ import { $93635573935797de$export$80ee6245ec4f29ec as e } from "./calendars/GregorianCalendar.js";
2
+ import { $d07e34cce18680fd$export$1b96692a1ba042ac as t, $d07e34cce18680fd$export$5107c82f94518f5c as n, $d07e34cce18680fd$export$b21e0b124e224484 as r, $d07e34cce18680fd$export$b4a036af3fc0b032 as i, $d07e34cce18680fd$export$bd4fb2bc8bb06fb as a } from "./conversion.js";
3
+ //#region ../../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.mjs
4
+ var o = 36e5;
5
+ function s(e, t) {
6
+ let n = e.copy(), r = "hour" in n ? b(n, t) : 0;
7
+ c(n, t.years || 0), n.calendar.balanceYearMonth && n.calendar.balanceYearMonth(n, e), n.month += t.months || 0, l(n), d(n), n.day += (t.weeks || 0) * 7, n.day += t.days || 0, n.day += r, u(n), n.calendar.balanceDate && n.calendar.balanceDate(n), n.year < 1 && (n.year = 1, n.month = 1, n.day = 1);
8
+ let i = n.calendar.getYearsInEra(n);
9
+ if (n.year > i) {
10
+ let e = n.calendar.isInverseEra?.(n);
11
+ n.year = i, n.month = e ? 1 : n.calendar.getMonthsInYear(n), n.day = e ? 1 : n.calendar.getDaysInMonth(n);
12
+ }
13
+ n.month < 1 && (n.month = 1, n.day = 1);
14
+ let a = n.calendar.getMonthsInYear(n);
15
+ return n.month > a && (n.month = a, n.day = n.calendar.getDaysInMonth(n)), n.day = Math.max(1, Math.min(n.calendar.getDaysInMonth(n), n.day)), n;
16
+ }
17
+ function c(e, t) {
18
+ e.calendar.isInverseEra?.(e) && (t = -t), e.year += t;
19
+ }
20
+ function l(e) {
21
+ for (; e.month < 1;) c(e, -1), e.month += e.calendar.getMonthsInYear(e);
22
+ let t = 0;
23
+ for (; e.month > (t = e.calendar.getMonthsInYear(e));) e.month -= t, c(e, 1);
24
+ }
25
+ function u(e) {
26
+ for (; e.day < 1;) e.month--, l(e), e.day += e.calendar.getDaysInMonth(e);
27
+ for (; e.day > e.calendar.getDaysInMonth(e);) e.day -= e.calendar.getDaysInMonth(e), e.month++, l(e);
28
+ }
29
+ function d(e) {
30
+ e.month = Math.max(1, Math.min(e.calendar.getMonthsInYear(e), e.month)), e.day = Math.max(1, Math.min(e.calendar.getDaysInMonth(e), e.day));
31
+ }
32
+ function f(e) {
33
+ e.calendar.constrainDate && e.calendar.constrainDate(e), e.year = Math.max(1, Math.min(e.calendar.getYearsInEra(e), e.year)), d(e);
34
+ }
35
+ function p(e) {
36
+ let t = {};
37
+ for (let n in e) typeof e[n] == "number" && (t[n] = -e[n]);
38
+ return t;
39
+ }
40
+ function m(e, t) {
41
+ return s(e, p(t));
42
+ }
43
+ function h(e, t) {
44
+ let n = e.copy();
45
+ return t.era != null && (n.era = t.era), t.year != null && (n.year = t.year), t.month != null && (n.month = t.month), t.day != null && (n.day = t.day), f(n), n;
46
+ }
47
+ function g(e, t) {
48
+ let n = e.copy();
49
+ return t.hour != null && (n.hour = t.hour), t.minute != null && (n.minute = t.minute), t.second != null && (n.second = t.second), t.millisecond != null && (n.millisecond = t.millisecond), v(n), n;
50
+ }
51
+ function _(e) {
52
+ e.second += Math.floor(e.millisecond / 1e3), e.millisecond = y(e.millisecond, 1e3), e.minute += Math.floor(e.second / 60), e.second = y(e.second, 60), e.hour += Math.floor(e.minute / 60), e.minute = y(e.minute, 60);
53
+ let t = Math.floor(e.hour / 24);
54
+ return e.hour = y(e.hour, 24), t;
55
+ }
56
+ function v(e) {
57
+ e.millisecond = Math.max(0, Math.min(e.millisecond, 999)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
58
+ }
59
+ function y(e, t) {
60
+ let n = e % t;
61
+ return n < 0 && (n += t), n;
62
+ }
63
+ function b(e, t) {
64
+ return e.hour += t.hours || 0, e.minute += t.minutes || 0, e.second += t.seconds || 0, e.millisecond += t.milliseconds || 0, _(e);
65
+ }
66
+ function x(e, t, n, r) {
67
+ let i = e.copy();
68
+ switch (t) {
69
+ case "era": {
70
+ let t = e.calendar.getEras(), a = t.indexOf(e.era);
71
+ if (a < 0) throw Error("Invalid era: " + e.era);
72
+ a = C(a, n, 0, t.length - 1, r?.round), i.era = t[a], f(i);
73
+ break;
74
+ }
75
+ case "year":
76
+ i.calendar.isInverseEra?.(i) && (n = -n), i.year = C(e.year, n, -Infinity, 9999, r?.round), i.year === -Infinity && (i.year = 1), i.calendar.balanceYearMonth && i.calendar.balanceYearMonth(i, e);
77
+ break;
78
+ case "month":
79
+ i.month = C(e.month, n, 1, e.calendar.getMonthsInYear(e), r?.round);
80
+ break;
81
+ case "day":
82
+ i.day = C(e.day, n, 1, e.calendar.getDaysInMonth(e), r?.round);
83
+ break;
84
+ default: throw Error("Unsupported field " + t);
85
+ }
86
+ return e.calendar.balanceDate && e.calendar.balanceDate(i), f(i), i;
87
+ }
88
+ function S(e, t, n, r) {
89
+ let i = e.copy();
90
+ switch (t) {
91
+ case "hour": {
92
+ let t = e.hour, a = 0, o = 23;
93
+ if (r?.hourCycle === 12) {
94
+ let e = t >= 12;
95
+ a = e ? 12 : 0, o = e ? 23 : 11;
96
+ }
97
+ i.hour = C(t, n, a, o, r?.round);
98
+ break;
99
+ }
100
+ case "minute":
101
+ i.minute = C(e.minute, n, 0, 59, r?.round);
102
+ break;
103
+ case "second":
104
+ i.second = C(e.second, n, 0, 59, r?.round);
105
+ break;
106
+ case "millisecond":
107
+ i.millisecond = C(e.millisecond, n, 0, 999, r?.round);
108
+ break;
109
+ default: throw Error("Unsupported field " + t);
110
+ }
111
+ return i;
112
+ }
113
+ function C(e, t, n, r, i = !1) {
114
+ if (i) {
115
+ e += Math.sign(t), e < n && (e = r);
116
+ let i = Math.abs(t);
117
+ e = t > 0 ? Math.ceil(e / i) * i : Math.floor(e / i) * i, e > r && (e = n);
118
+ } else e += t, e < n ? e = r - (n - e - 1) : e > r && (e = n + (e - r - 1));
119
+ return e;
120
+ }
121
+ function w(e, o) {
122
+ let c;
123
+ return c = o.years != null && o.years !== 0 || o.months != null && o.months !== 0 || o.weeks != null && o.weeks !== 0 || o.days != null && o.days !== 0 ? n(s(r(e), {
124
+ years: o.years,
125
+ months: o.months,
126
+ weeks: o.weeks,
127
+ days: o.days
128
+ }), e.timeZone) : a(e) - e.offset, c += o.milliseconds || 0, c += (o.seconds || 0) * 1e3, c += (o.minutes || 0) * 6e4, c += (o.hours || 0) * 36e5, i(t(c, e.timeZone), e.calendar);
129
+ }
130
+ function T(e, t) {
131
+ return w(e, p(t));
132
+ }
133
+ function E(s, c, l, u) {
134
+ switch (c) {
135
+ case "hour": {
136
+ let c = 0, d = 23;
137
+ if (u?.hourCycle === 12) {
138
+ let e = s.hour >= 12;
139
+ c = e ? 12 : 0, d = e ? 23 : 11;
140
+ }
141
+ let f = r(s), p = i(g(f, { hour: c }), new e()), m = [n(p, s.timeZone, "earlier"), n(p, s.timeZone, "later")].filter((e) => t(e, s.timeZone).day === p.day)[0], h = i(g(f, { hour: d }), new e()), _ = [n(h, s.timeZone, "earlier"), n(h, s.timeZone, "later")].filter((e) => t(e, s.timeZone).day === h.day).pop(), v = a(s) - s.offset, y = Math.floor(v / o), b = v % o;
142
+ return v = C(y, l, Math.floor(m / o), Math.floor(_ / o), u?.round) * o + b, i(t(v, s.timeZone), s.calendar);
143
+ }
144
+ case "minute":
145
+ case "second":
146
+ case "millisecond": return S(s, c, l, u);
147
+ case "era":
148
+ case "year":
149
+ case "month":
150
+ case "day": return i(t(n(x(r(s), c, l, u), s.timeZone), s.timeZone), s.calendar);
151
+ default: throw Error("Unsupported field " + c);
152
+ }
153
+ }
154
+ function D(e, a, o) {
155
+ let s = r(e), c = g(h(s, a), a);
156
+ return c.compare(s) === 0 ? e : i(t(n(c, e.timeZone, o), e.timeZone), e.calendar);
157
+ }
158
+ //#endregion
159
+ export { D as $435a2ceaa8778ed8$export$31b5430eb18be4f8, m as $435a2ceaa8778ed8$export$4e2d2ead65e5f7e3, T as $435a2ceaa8778ed8$export$6814caac34ca03c7, w as $435a2ceaa8778ed8$export$96b1d28349274637, E as $435a2ceaa8778ed8$export$9a297d111fc86b79, h as $435a2ceaa8778ed8$export$adaa4cf7ef1b65be, f as $435a2ceaa8778ed8$export$c4e2ecac49351ef2, x as $435a2ceaa8778ed8$export$d52ced6badfb9a4c, S as $435a2ceaa8778ed8$export$dd02b3e0007dfe28, s as $435a2ceaa8778ed8$export$e16d8520af44a096, g as $435a2ceaa8778ed8$export$e5d5e1c1822b6e56 };
@@ -0,0 +1,29 @@
1
+ import { $d07e34cce18680fd$export$1b96692a1ba042ac as e, $d07e34cce18680fd$export$93522d1a439f3617 as t } from "./conversion.js";
2
+ //#region ../../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/queries.mjs
3
+ function n(e, t) {
4
+ return e.isEqual?.(t) ?? t.isEqual?.(e) ?? e.identifier === t.identifier;
5
+ }
6
+ function r(t) {
7
+ return e(Date.now(), t);
8
+ }
9
+ function i(e) {
10
+ return t(r(e));
11
+ }
12
+ function a(e, t) {
13
+ return e.calendar.toJulianDay(e) - t.calendar.toJulianDay(t);
14
+ }
15
+ function o(e, t) {
16
+ return s(e) - s(t);
17
+ }
18
+ function s(e) {
19
+ return e.hour * 36e5 + e.minute * 6e4 + e.second * 1e3 + e.millisecond;
20
+ }
21
+ var c = null, l = !1;
22
+ function u() {
23
+ return c ??= new Intl.DateTimeFormat().resolvedOptions().timeZone, c;
24
+ }
25
+ function d() {
26
+ return l;
27
+ }
28
+ //#endregion
29
+ export { a as $ad063034c8620db8$export$68781ddf31c0090f, d as $ad063034c8620db8$export$6ab69b273755230b, u as $ad063034c8620db8$export$aa8b41735afcabd2, o as $ad063034c8620db8$export$c19a80a9721b80f6, i as $ad063034c8620db8$export$d0bdf45af03a6ea3, n as $ad063034c8620db8$export$dbc69fd56b53d5e };
@@ -0,0 +1,37 @@
1
+ import { $93635573935797de$export$80ee6245ec4f29ec as e } from "./calendars/GregorianCalendar.js";
2
+ import { $d07e34cce18680fd$export$b4a036af3fc0b032 as t } from "./conversion.js";
3
+ import { $2aaf608024c21ca1$export$99faa760c7908e4f as n } from "./CalendarDate.js";
4
+ //#region ../../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/string.mjs
5
+ var r = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, i = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;
6
+ function a(e) {
7
+ let t = e.match(r);
8
+ if (!t) throw i.test(e) ? Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`) : Error("Invalid ISO 8601 date string: " + e);
9
+ let a = new n(o(t[1], 0, 9999), o(t[2], 1, 12), 1);
10
+ return a.day = o(t[3], 1, a.calendar.getDaysInMonth(a)), a;
11
+ }
12
+ function o(e, t, n) {
13
+ let r = Number(e);
14
+ if (r < t || r > n) throw RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);
15
+ return r;
16
+ }
17
+ function s(e) {
18
+ return `${String(e.hour).padStart(2, "0")}:${String(e.minute).padStart(2, "0")}:${String(e.second).padStart(2, "0")}${e.millisecond ? String(e.millisecond / 1e3).slice(1) : ""}`;
19
+ }
20
+ function c(n) {
21
+ let r = t(n, new e()), i;
22
+ return i = r.era === "BC" ? r.year === 1 ? "0000" : "-" + String(Math.abs(1 - r.year)).padStart(6, "00") : String(r.year).padStart(4, "0"), `${i}-${String(r.month).padStart(2, "0")}-${String(r.day).padStart(2, "0")}`;
23
+ }
24
+ function l(e) {
25
+ return `${c(e)}T${s(e)}`;
26
+ }
27
+ function u(e) {
28
+ let t = Math.sign(e) < 0 ? "-" : "+";
29
+ e = Math.abs(e);
30
+ let n = Math.floor(e / 36e5), r = Math.floor(e % 36e5 / 6e4), i = Math.floor(e % 36e5 % 6e4 / 1e3), a = `${t}${String(n).padStart(2, "0")}:${String(r).padStart(2, "0")}`;
31
+ return i !== 0 && (a += `:${String(i).padStart(2, "0")}`), a;
32
+ }
33
+ function d(e) {
34
+ return `${l(e)}${u(e.offset)}[${e.timeZone}]`;
35
+ }
36
+ //#endregion
37
+ export { l as $58246871e4652552$export$4223de14708adc63, c as $58246871e4652552$export$60dfd74aa96791bd, a as $58246871e4652552$export$6b862160d295c8e, d as $58246871e4652552$export$bf79f1ebf4b18792 };
@@ -0,0 +1,6 @@
1
+ //#region ../../node_modules/.pnpm/@internationalized+date@3.12.3/node_modules/@internationalized/date/dist/private/utils.mjs
2
+ function e(e, t) {
3
+ return e - t * Math.floor(e / t);
4
+ }
5
+ //#endregion
6
+ export { e as $09ec6a572d60460f$export$842a2cf37af977e1 };
@@ -1,4 +1,4 @@
1
1
  //#region src/component-names.ts
2
- var e = /* @__PURE__ */ "Alert.App.Badge.Breadcrumb.Button.ButtonGroup.Card.Checkbox.Combobox.ConfirmDialog.Dialog.DropdownMenu.EmptyState.Form.FormField.Input.Label.NumberInput.Pagination.Progress.RadioGroup.Select.Separator.Skeleton.Stat.Stepper.Switch.Tabs.Textarea.Toaster.Tooltip".split(".");
2
+ var e = /* @__PURE__ */ "Alert.App.Badge.Banner.Breadcrumb.Button.ButtonGroup.Card.Checkbox.Combobox.ConfirmDialog.DatePicker.DateRangePicker.Dialog.DropdownMenu.EmptyState.Form.FormField.Input.Label.NumberInput.Pagination.PasswordInput.Progress.RadioGroup.Select.Separator.Skeleton.Stat.Stepper.Switch.Table.Tabs.Textarea.Toaster.Tooltip".split(".");
3
3
  //#endregion
4
4
  export { e as componentNames };
@@ -2,12 +2,12 @@ import { Alert02Icon as e, AlertCircleIcon as t, Cancel01Icon as n, CheckmarkCir
2
2
  import { useIryxUiConfig as a } from "../config.js";
3
3
  import { alertTheme as o } from "../theme/alert.js";
4
4
  import s from "./Icon.js";
5
- import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, openBlock as _, renderSlot as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
6
- import { Primitive as S } from "reka-ui";
5
+ import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, normalizeClass as _, openBlock as v, renderSlot as y, toDisplayString as b, unref as x, useModel as S, withCtx as C } from "vue";
6
+ import { Primitive as w } from "reka-ui";
7
7
  //#region src/components/Alert.vue?vue&type=script&setup=true&lang.ts
8
- var C = ["aria-label"], w = /*@__PURE__*/ h({
8
+ var T = ["aria-label"], E = /*@__PURE__*/ h({
9
9
  __name: "Alert",
10
- props: {
10
+ props: /*@__PURE__*/ g({
11
11
  as: { default: "div" },
12
12
  variant: {},
13
13
  title: {},
@@ -24,52 +24,68 @@ var C = ["aria-label"], w = /*@__PURE__*/ h({
24
24
  },
25
25
  class: {},
26
26
  ui: {}
27
- },
28
- emits: ["close"],
27
+ }, {
28
+ open: {
29
+ type: Boolean,
30
+ default: !0
31
+ },
32
+ openModifiers: {}
33
+ }),
34
+ emits: /*@__PURE__*/ g(["close"], ["update:open"]),
29
35
  setup(h) {
30
- let w = h, T = {
36
+ let g = h, E = S(h, "open"), D = {
31
37
  info: i,
32
38
  success: r,
33
39
  warning: e,
34
40
  danger: t
35
- }, E = c(() => {
36
- if (w.icon !== !1) return w.icon ?? T[w.variant ?? "info"];
37
- }), D = c(() => w.variant === "danger" || w.variant === "warning" ? "alert" : "status"), O = a(), k = c(() => w.unstyled ?? O.unstyled), A = c(() => o({
38
- variant: w.variant,
39
- withTitle: !!w.title
40
- })), j = c(() => k.value ? [w.ui?.root, w.class] : A.value.root({ class: [w.ui?.root, w.class] })), M = c(() => k.value ? w.ui?.icon : A.value.icon({ class: w.ui?.icon })), N = c(() => k.value ? w.ui?.content : A.value.content({ class: w.ui?.content })), P = c(() => k.value ? w.ui?.title : A.value.title({ class: w.ui?.title })), F = c(() => k.value ? w.ui?.description : A.value.description({ class: w.ui?.description })), I = c(() => k.value ? w.ui?.close : A.value.close({ class: w.ui?.close }));
41
- return (e, t) => (_(), l(b(S), {
42
- as: w.as,
43
- role: D.value,
44
- class: g(j.value)
41
+ }, O = c(() => {
42
+ if (g.icon !== !1) return g.icon ?? D[g.variant ?? "info"];
43
+ }), k = c(() => g.variant === "danger" || g.variant === "warning" ? "alert" : "status"), A = a(), j = c(() => g.unstyled ?? A.unstyled), M = c(() => o({
44
+ variant: g.variant,
45
+ withTitle: !!g.title
46
+ })), N = c(() => j.value ? [g.ui?.root, g.class] : M.value.root({ class: [g.ui?.root, g.class] })), P = c(() => j.value ? g.ui?.icon : M.value.icon({ class: g.ui?.icon })), F = c(() => j.value ? g.ui?.content : M.value.content({ class: g.ui?.content })), I = c(() => j.value ? g.ui?.title : M.value.title({ class: g.ui?.title })), L = c(() => j.value ? g.ui?.description : M.value.description({ class: g.ui?.description })), R = c(() => j.value ? g.ui?.actions : M.value.actions({ class: g.ui?.actions })), z = c(() => j.value ? g.ui?.close : M.value.close({ class: g.ui?.close }));
47
+ return (e, t) => E.value ? (v(), l(x(w), {
48
+ key: 0,
49
+ as: g.as,
50
+ role: k.value,
51
+ class: _(N.value)
45
52
  }, {
46
- default: x(() => [
47
- E.value || e.$slots.icon ? (_(), d("div", {
53
+ default: C(() => [
54
+ O.value || e.$slots.icon ? (v(), d("div", {
48
55
  key: 0,
49
- class: g(M.value)
50
- }, [v(e.$slots, "icon", {}, () => [m(s, { icon: E.value }, null, 8, ["icon"])])], 2)) : u("", !0),
51
- f("div", { class: g(N.value) }, [w.title || e.$slots.title ? (_(), d("p", {
52
- key: 0,
53
- class: g(P.value)
54
- }, [v(e.$slots, "title", {}, () => [p(y(w.title), 1)])], 2)) : u("", !0), w.description || e.$slots.default ? (_(), d("div", {
55
- key: 1,
56
- class: g(F.value)
57
- }, [v(e.$slots, "default", {}, () => [p(y(w.description), 1)])], 2)) : u("", !0)], 2),
58
- w.closable ? (_(), d("button", {
56
+ class: _(P.value)
57
+ }, [y(e.$slots, "icon", {}, () => [m(s, { icon: O.value }, null, 8, ["icon"])])], 2)) : u("", !0),
58
+ f("div", { class: _(F.value) }, [
59
+ g.title || e.$slots.title ? (v(), d("p", {
60
+ key: 0,
61
+ class: _(I.value)
62
+ }, [y(e.$slots, "title", {}, () => [p(b(g.title), 1)])], 2)) : u("", !0),
63
+ g.description || e.$slots.default ? (v(), d("div", {
64
+ key: 1,
65
+ class: _(L.value)
66
+ }, [y(e.$slots, "default", {}, () => [p(b(g.description), 1)])], 2)) : u("", !0),
67
+ e.$slots.actions ? (v(), d("div", {
68
+ key: 2,
69
+ class: _(R.value)
70
+ }, [y(e.$slots, "actions")], 2)) : u("", !0)
71
+ ], 2),
72
+ g.closable ? (v(), d("button", {
59
73
  key: 1,
60
74
  type: "button",
61
- "aria-label": w.closeLabel,
62
- class: g(I.value),
63
- onClick: t[0] ||= (t) => e.$emit("close")
64
- }, [v(e.$slots, "close", {}, () => [m(s, { icon: b(n) }, null, 8, ["icon"])])], 10, C)) : u("", !0)
75
+ "aria-label": g.closeLabel,
76
+ class: _(z.value),
77
+ onClick: t[0] ||= (t) => {
78
+ E.value = !1, e.$emit("close");
79
+ }
80
+ }, [y(e.$slots, "close", {}, () => [m(s, { icon: x(n) }, null, 8, ["icon"])])], 10, T)) : u("", !0)
65
81
  ]),
66
82
  _: 3
67
83
  }, 8, [
68
84
  "as",
69
85
  "role",
70
86
  "class"
71
- ]));
87
+ ])) : u("", !0);
72
88
  }
73
89
  });
74
90
  //#endregion
75
- export { w as default };
91
+ export { E as default };
@@ -9,7 +9,6 @@ var h = /*@__PURE__*/ s({
9
9
  as: { default: "span" },
10
10
  asChild: { type: Boolean },
11
11
  variant: {},
12
- tone: {},
13
12
  size: {},
14
13
  dot: { type: Boolean },
15
14
  label: {},
@@ -23,7 +22,7 @@ var h = /*@__PURE__*/ s({
23
22
  setup(s) {
24
23
  let h = s, g = e(), _ = n(() => h.unstyled ?? g.unstyled), v = n(() => t({
25
24
  variant: h.variant,
26
- tone: h.tone,
25
+ withDot: h.dot ?? !1,
27
26
  size: h.size
28
27
  })), y = n(() => _.value ? [h.ui?.root, h.class] : v.value.root({ class: [h.ui?.root, h.class] })), b = n(() => _.value ? h.ui?.dot : v.value.dot({ class: h.ui?.dot }));
29
28
  return (e, t) => (l(), r(f(m), {
@@ -0,0 +1,5 @@
1
+ import e from "./Banner.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/Banner.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,93 @@
1
+ import { Cancel01Icon as e } from "../../../../node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js";
2
+ import { useIryxUiConfig as t } from "../config.js";
3
+ import n from "./Icon.js";
4
+ import { bannerTheme as r } from "../theme/banner.js";
5
+ import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, useModel as v, withCtx as y } from "vue";
6
+ import { Primitive as b } from "reka-ui";
7
+ //#region src/components/Banner.vue?vue&type=script&setup=true&lang.ts
8
+ var x = ["aria-label"], S = /*@__PURE__*/ d({
9
+ __name: "Banner",
10
+ props: /*@__PURE__*/ f({
11
+ as: { default: "div" },
12
+ variant: {},
13
+ position: {},
14
+ title: {},
15
+ description: {},
16
+ icon: {},
17
+ contained: {
18
+ type: Boolean,
19
+ default: void 0
20
+ },
21
+ align: {},
22
+ closable: { type: Boolean },
23
+ closeLabel: { default: "Dismiss" },
24
+ label: { default: "Announcement" },
25
+ unstyled: {
26
+ type: Boolean,
27
+ default: void 0
28
+ },
29
+ class: {},
30
+ ui: {}
31
+ }, {
32
+ open: {
33
+ type: Boolean,
34
+ default: !0
35
+ },
36
+ openModifiers: {}
37
+ }),
38
+ emits: /*@__PURE__*/ f(["close"], ["update:open"]),
39
+ setup(d) {
40
+ let f = d, S = v(d, "open"), C = t(), w = i(() => f.unstyled ?? C.unstyled), T = i(() => r({
41
+ variant: f.variant,
42
+ position: f.position,
43
+ contained: f.contained ?? !1,
44
+ align: f.align
45
+ })), E = i(() => w.value ? [f.ui?.root, f.class] : T.value.root({ class: [f.ui?.root, f.class] }));
46
+ function D(e) {
47
+ let t = f.ui?.[e];
48
+ return w.value ? t : T.value[e]({ class: t });
49
+ }
50
+ return (t, r) => S.value ? (m(), a(_(b), {
51
+ key: 0,
52
+ as: f.as,
53
+ role: "region",
54
+ "aria-label": f.label,
55
+ class: p(E.value)
56
+ }, {
57
+ default: y(() => [c("div", { class: p(D("container")) }, [
58
+ f.icon || t.$slots.icon ? (m(), s("span", {
59
+ key: 0,
60
+ class: p(D("icon"))
61
+ }, [h(t.$slots, "icon", {}, () => [u(n, { icon: f.icon }, null, 8, ["icon"])])], 2)) : o("", !0),
62
+ c("p", { class: p(D("content")) }, [
63
+ f.title || t.$slots.title ? (m(), s("strong", {
64
+ key: 0,
65
+ class: p(D("title"))
66
+ }, [h(t.$slots, "title", {}, () => [l(g(f.title), 1)])], 2)) : o("", !0),
67
+ r[1] ||= l(" " + g(" ") + " ", -1),
68
+ h(t.$slots, "default", {}, () => [l(g(f.description), 1)])
69
+ ], 2),
70
+ t.$slots.actions ? (m(), s("span", {
71
+ key: 1,
72
+ class: p(D("actions"))
73
+ }, [h(t.$slots, "actions")], 2)) : o("", !0),
74
+ f.closable ? (m(), s("button", {
75
+ key: 2,
76
+ type: "button",
77
+ "aria-label": f.closeLabel,
78
+ class: p(D("close")),
79
+ onClick: r[0] ||= (e) => {
80
+ S.value = !1, t.$emit("close");
81
+ }
82
+ }, [h(t.$slots, "close", {}, () => [u(n, { icon: _(e) }, null, 8, ["icon"])])], 10, x)) : o("", !0)
83
+ ], 2)]),
84
+ _: 3
85
+ }, 8, [
86
+ "as",
87
+ "aria-label",
88
+ "class"
89
+ ])) : o("", !0);
90
+ }
91
+ });
92
+ //#endregion
93
+ export { S as default };
@@ -0,0 +1,5 @@
1
+ import e from "./DatePicker.vue_vue_type_script_setup_true_lang.js";
2
+ //#region src/components/DatePicker.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };