@midas-ds/components 16.6.2 → 16.6.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/Dialog.css +1 -1
  4. package/assets/ProgressBar.css +1 -1
  5. package/assets/Skeleton.css +1 -1
  6. package/assets/Spinner.css +1 -1
  7. package/assets/Toast.css +1 -1
  8. package/breadcrumbs/index.js +1 -1
  9. package/button/index.js +1 -1
  10. package/calendar/index.js +1 -1
  11. package/card/index.js +1 -1
  12. package/checkbox/index.js +2 -2
  13. package/chunks/{AccordionItem-BvJQhuYO.js → AccordionItem-CSvARy63.js} +3 -3
  14. package/chunks/{Breadcrumbs-By2bMbQd.js → Breadcrumbs-DFwP6lAP.js} +1 -1
  15. package/chunks/{Button-BGu-SRi7.js → Button-CaLOUTDO.js} +1 -1
  16. package/chunks/{Card-ia98VoKL.js → Card-DMSnokPn.js} +7 -7
  17. package/chunks/Checkbox-CRLj7_Ox.js +146 -0
  18. package/chunks/{CheckboxGroup-KqlchsTK.js → CheckboxGroup-DSXCj_ho.js} +2 -2
  19. package/chunks/{ClearButton-Dtkd_M_7.js → ClearButton-DPm_d7SL.js} +2 -2
  20. package/chunks/{ColorSchemeSwitch-CaqrCGTA.js → ColorSchemeSwitch-DOQ0yjtt.js} +1 -1
  21. package/chunks/{ComboBox-C-pAiys0.js → ComboBox-B7T13rzp.js} +3 -3
  22. package/chunks/{DateField-Scz9gaJl.js → DateField-zdUv4ooW.js} +3 -3
  23. package/chunks/{DateInputDivider-CkTB5q5k.js → DateInputDivider-DwopMIb9.js} +3 -3
  24. package/chunks/{DateRangePicker-DQfV97yu.js → DateRangePicker-D6lnN0ox.js} +6 -6
  25. package/chunks/{Dialog-DRpxD3Gh.js → Dialog-BHxDzbf8.js} +2 -2
  26. package/chunks/{FeedbackStatusIcon-YJaUAfjp.js → FeedbackStatusIcon-X9Bjgeta.js} +3 -3
  27. package/chunks/{FileUpload-h1PxqQmb.js → FileUpload-Cu8DCSjX.js} +3 -3
  28. package/chunks/{InfoBanner-DEwlyEud.js → InfoBanner-C4HnaXQO.js} +3 -3
  29. package/chunks/{Label-xWKvOuML.js → Label-6GZmmff9.js} +2 -2
  30. package/chunks/{Layout-MPNSphLF.js → Layout-C2-vyEKy.js} +4 -4
  31. package/chunks/Link-rqGQvFQq.js +58 -0
  32. package/chunks/LinkButton-B1zayj7k.js +67 -0
  33. package/chunks/{ListBoxLoadMoreItem-CygpsU3W.js → ListBoxLoadMoreItem-ufPaJaNS.js} +1 -1
  34. package/chunks/{ListBoxSection-MZB_5DdD.js → ListBoxSection-C4y3K7T5.js} +4 -4
  35. package/chunks/{Logo-CsWcKqIg.js → Logo-CCxPAmgw.js} +45 -39
  36. package/chunks/{ProgressBar-KQdaaME2.js → ProgressBar-Dg0JMQ71.js} +1 -1
  37. package/chunks/{Radio-BD-ICPhb.js → Radio-Bp-JwJid.js} +1 -1
  38. package/chunks/{RangeCalendar-CW38S2L8.js → RangeCalendar-h9wkh43W.js} +3 -3
  39. package/chunks/{SearchField-44UKmB8Z.js → SearchField-Dcs9LjKo.js} +3 -3
  40. package/chunks/{Select-BJlDjYWX.js → Select-BYz3DdXs.js} +14 -14
  41. package/chunks/{Select-Cz3Y8abd.js → Select-w2o-VyrP.js} +6 -6
  42. package/chunks/{Separator-BcnQEA9f.js → Separator-XIzn8lsq.js} +2 -2
  43. package/chunks/{Spinner-tvJ7rPiT.js → Spinner-CfKMn18u.js} +1 -1
  44. package/chunks/{TabList-D2XV5ixe.js → TabList-BaR443mu.js} +3 -3
  45. package/chunks/{Table-BgsgXhC_.js → Table-UbdCFrkS.js} +12 -12
  46. package/chunks/{Tag-CZrQBEgv.js → Tag-C7VZ0T0o.js} +2 -2
  47. package/chunks/{TextArea-Dudj2zg4.js → TextArea-Ceo3ziOi.js} +4 -4
  48. package/chunks/Toast-D7PXIDa9.js +157 -0
  49. package/chunks/{arrow-right-DNeP8Eqv.js → arrow-right-BVcFGZmy.js} +1 -1
  50. package/chunks/{check-BxlvVsvD.js → check-Bt2UikoU.js} +1 -1
  51. package/chunks/{chevron-down-DgT-uSF9.js → chevron-down-BBFYYzZq.js} +1 -1
  52. package/chunks/{chevron-right-GpyqdYK4.js → chevron-right-DvXGOiS_.js} +1 -1
  53. package/chunks/{createLucideIcon-D4r5Phnh.js → createLucideIcon-CP-mMPfa.js} +15 -10
  54. package/chunks/{info-kdfED7Wh.js → info-N5jWZg2A.js} +1 -1
  55. package/chunks/{square-arrow-out-up-right-XMqOAsOL.js → square-arrow-out-up-right-x_I6wdNi.js} +1 -1
  56. package/chunks/{x-BXShoIAM.js → x-B9bYxG31.js} +1 -1
  57. package/clear-button/index.js +1 -1
  58. package/color-scheme-switch/index.js +1 -1
  59. package/combobox/index.js +1 -1
  60. package/date-field/index.js +2 -2
  61. package/date-picker/index.js +1 -1
  62. package/file-upload/index.js +1 -1
  63. package/index.js +40 -40
  64. package/info-banner/index.js +1 -1
  65. package/label/index.js +1 -1
  66. package/layout/index.js +1 -1
  67. package/legacy-select/index.js +1 -1
  68. package/link/Link.d.ts +1 -1
  69. package/link/index.js +1 -1
  70. package/link-button/LinkButton.d.ts +3 -3
  71. package/link-button/index.js +1 -1
  72. package/list-box/index.js +2 -2
  73. package/logo/Logo.d.ts +1 -1
  74. package/logo/index.js +1 -1
  75. package/menu/index.js +1 -1
  76. package/modal/index.js +1 -1
  77. package/package.json +2 -2
  78. package/progress-bar/index.js +1 -1
  79. package/radio/index.js +1 -1
  80. package/search-field/index.js +1 -1
  81. package/select/index.js +1 -1
  82. package/spinner/index.js +1 -1
  83. package/table/index.js +1 -1
  84. package/tabs/index.js +1 -1
  85. package/tag/index.js +1 -1
  86. package/textfield/TextArea.stories.d.ts +9 -9
  87. package/textfield/index.js +1 -1
  88. package/toast/index.js +1 -1
  89. package/chunks/Checkbox-BTAfwDxU.js +0 -130
  90. package/chunks/Link-yTNUNv3C.js +0 -54
  91. package/chunks/LinkButton-3nAekUJ4.js +0 -63
  92. package/chunks/Toast-DGvPi4rb.js +0 -157
@@ -1,54 +0,0 @@
1
- import { jsx as n, jsxs as f, Fragment as h } from "react/jsx-runtime";
2
- import { Link as k } from "react-aria-components";
3
- import { c as p } from "./clsx-AexbMWKp.js";
4
- import { c as w } from "./createLucideIcon-D4r5Phnh.js";
5
- import { S as g } from "./square-arrow-out-up-right-XMqOAsOL.js";
6
- import { A as L } from "./arrow-right-DNeP8Eqv.js";
7
- import '../assets/Link.css';const x = [
8
- ["path", { d: "M12 17V3", key: "1cwfxf" }],
9
- ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
10
- ["path", { d: "M19 21H5", key: "150jfl" }]
11
- ], v = w("arrow-down-to-line", x), y = "_link_u43gv_1", A = "_icon_u43gv_51", j = "_standalone_u43gv_55", N = "_stretched_u43gv_72", t = {
12
- link: y,
13
- icon: A,
14
- standalone: j,
15
- stretched: N
16
- }, D = ({
17
- children: e,
18
- standalone: r,
19
- target: i,
20
- stretched: s,
21
- download: a,
22
- icon: c,
23
- className: l,
24
- as: m,
25
- ...d
26
- }) => {
27
- const _ = m || k, u = ({ ...o }) => c ? /* @__PURE__ */ n(c, { ...o }) : a ? /* @__PURE__ */ n(v, { ...o }) : i === "_blank" ? /* @__PURE__ */ n(g, { ...o }) : r ? /* @__PURE__ */ n(L, { ...o }) : null;
28
- return /* @__PURE__ */ n(
29
- _,
30
- {
31
- className: p(
32
- t.link,
33
- r && t.standalone,
34
- s && t.stretched,
35
- l
36
- ),
37
- ...d,
38
- target: i,
39
- children: /* @__PURE__ */ f(h, { children: [
40
- e,
41
- /* @__PURE__ */ n(
42
- u,
43
- {
44
- size: 16,
45
- className: t.icon
46
- }
47
- )
48
- ] })
49
- }
50
- );
51
- };
52
- export {
53
- D as L
54
- };
@@ -1,63 +0,0 @@
1
- import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
- import { Link as j } from "react-aria-components";
3
- import { c as y } from "./clsx-AexbMWKp.js";
4
- import { S as p } from "./square-arrow-out-up-right-XMqOAsOL.js";
5
- import { c as g } from "./createLucideIcon-D4r5Phnh.js";
6
- import { A as h } from "./arrow-right-DNeP8Eqv.js";
7
- import '../assets/LinkButton.css';const k = [
8
- ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
9
- ["path", { d: "M19 12H5", key: "x3x0zl" }]
10
- ], B = g("arrow-left", k), L = "_linkButton_138jj_1", w = "_secondary_138jj_56", x = "_icon_138jj_61", A = "_tertiary_138jj_98", N = "_danger_138jj_124", z = "_iconBtn_138jj_141", R = "_medium_138jj_163", S = "_iconLeft_138jj_168", b = "_fullwidth_138jj_172", t = {
11
- linkButton: L,
12
- secondary: w,
13
- icon: x,
14
- tertiary: A,
15
- danger: N,
16
- iconBtn: z,
17
- medium: R,
18
- iconLeft: S,
19
- fullwidth: b
20
- }, C = ({
21
- children: e,
22
- variant: n,
23
- fullwidth: s,
24
- icon: i,
25
- iconPlacement: c,
26
- className: _,
27
- as: m,
28
- size: a = "large",
29
- ...d
30
- }) => {
31
- const l = m || j, u = ({ ...o }) => i ? /* @__PURE__ */ r(i, { ...o }) : o.target === "_blank" ? /* @__PURE__ */ r(p, { ...o }) : c === "left" ? /* @__PURE__ */ r(B, { ...o }) : /* @__PURE__ */ r(h, { ...o });
32
- return /* @__PURE__ */ f(
33
- l,
34
- {
35
- className: y(
36
- t.linkButton,
37
- n === "primary" && t.primary,
38
- n === "secondary" && t.secondary,
39
- n === "tertiary" && t.tertiary,
40
- n === "danger" && t.danger,
41
- n === "icon" && t.iconBtn,
42
- a === "medium" && t.medium,
43
- s && t.fullwidth,
44
- c === "left" && t.iconLeft,
45
- _
46
- ),
47
- ...d,
48
- children: [
49
- e,
50
- /* @__PURE__ */ r(
51
- u,
52
- {
53
- size: 20,
54
- className: t.icon
55
- }
56
- )
57
- ]
58
- }
59
- );
60
- };
61
- export {
62
- C as L
63
- };
@@ -1,157 +0,0 @@
1
- import { jsx as o, jsxs as c, Fragment as T } from "react/jsx-runtime";
2
- import { B as h } from "./Button-BGu-SRi7.js";
3
- import { useToastRegion as f, useToast as p } from "react-aria";
4
- import { ToastQueue as g, useToastQueue as w, useToastState as R } from "react-stately";
5
- import _ from "react";
6
- import { createPortal as y, flushSync as b } from "react-dom";
7
- import { c as l } from "./clsx-AexbMWKp.js";
8
- import { F as P } from "./FeedbackStatusIcon-YJaUAfjp.js";
9
- import { X as I } from "./x-BXShoIAM.js";
10
- import '../assets/Toast.css';const N = "_toastRegion_1shnv_49", E = "_toast_1shnv_49", O = "_success_1shnv_97", x = "_info_1shnv_105", C = "_important_1shnv_113", M = "_warning_1shnv_121", S = "_icon_1shnv_129", k = "_toastContent_1shnv_143", B = "_toastMessage_1shnv_150", F = "_viewTransition_1shnv_157", Q = "_slideInTop_1shnv_1", V = "_slideInEnd_1shnv_1", j = "_slideOutTop_1shnv_1", G = "_slideOutEnd_1shnv_1", e = {
11
- toastRegion: N,
12
- toast: E,
13
- success: O,
14
- info: x,
15
- important: C,
16
- warning: M,
17
- icon: S,
18
- toastContent: k,
19
- toastMessage: B,
20
- viewTransition: F,
21
- slideInTop: Q,
22
- slideInEnd: V,
23
- slideOutTop: j,
24
- slideOutEnd: G
25
- }, u = {
26
- wrapUpdate(t) {
27
- "startViewTransition" in document ? document.startViewTransition(() => {
28
- b(t);
29
- }) : t();
30
- },
31
- maxVisibleToasts: 5
32
- }, z = new g(u), Y = (t) => {
33
- const n = w(z);
34
- return n.visibleToasts.length > 0 ? y(
35
- /* @__PURE__ */ o(
36
- d,
37
- {
38
- ...t,
39
- state: n
40
- }
41
- ),
42
- document.body
43
- ) : null;
44
- }, Z = ({ children: t, ...n }) => {
45
- const s = R(u);
46
- return /* @__PURE__ */ c(T, { children: [
47
- typeof t == "function" ? t(s) : t,
48
- s.visibleToasts.length > 0 && /* @__PURE__ */ o(
49
- d,
50
- {
51
- ...n,
52
- state: s
53
- }
54
- )
55
- ] });
56
- };
57
- function d({
58
- state: t,
59
- className: n,
60
- ...s
61
- }) {
62
- const a = _.useRef(null), { regionProps: r } = f(s, t, a);
63
- return /* @__PURE__ */ o(
64
- "div",
65
- {
66
- ...r,
67
- ref: a,
68
- className: l(e.toastRegion, n),
69
- children: t.visibleToasts.map((i) => /* @__PURE__ */ o(
70
- U,
71
- {
72
- toast: i,
73
- state: t
74
- },
75
- i.key
76
- ))
77
- }
78
- );
79
- }
80
- function U({
81
- state: t,
82
- className: n,
83
- ...s
84
- }) {
85
- const a = _.useRef(null), { toastProps: r, contentProps: i, titleProps: m, closeButtonProps: v } = p(
86
- s,
87
- t,
88
- a
89
- );
90
- return /* @__PURE__ */ c(
91
- "div",
92
- {
93
- ...r,
94
- ref: a,
95
- className: l(
96
- e.toast,
97
- e[s.toast.content.type],
98
- n
99
- ),
100
- style: {
101
- viewTransitionName: s.toast.key,
102
- viewTransitionClass: e.viewTransition
103
- },
104
- children: [
105
- /* @__PURE__ */ c(
106
- "div",
107
- {
108
- ...i,
109
- className: l(e.toastContent, i.className),
110
- children: [
111
- /* @__PURE__ */ o(
112
- P,
113
- {
114
- "aria-hidden": !0,
115
- className: e.icon,
116
- status: s.toast.content.type
117
- }
118
- ),
119
- /* @__PURE__ */ c("div", { children: [
120
- /* @__PURE__ */ o(
121
- "p",
122
- {
123
- className: e.toastMessage,
124
- ...m,
125
- children: s.toast.content.message
126
- }
127
- ),
128
- s.toast.content.children
129
- ] })
130
- ]
131
- }
132
- ),
133
- /* @__PURE__ */ o(
134
- h,
135
- {
136
- variant: "icon",
137
- ...v,
138
- children: /* @__PURE__ */ o(
139
- I,
140
- {
141
- size: 20,
142
- "aria-hidden": !0
143
- }
144
- )
145
- }
146
- )
147
- ]
148
- }
149
- );
150
- }
151
- export {
152
- Y as G,
153
- Z as T,
154
- d as a,
155
- U as b,
156
- z as t
157
- };