@midas-ds/components 1.0.3 → 1.1.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.
- package/{Button-B4vMZbC6.js → Button-DL6nqUco.js} +22 -22
- package/CHANGELOG.md +6 -1
- package/{Checkbox-DnKWanep.js → Checkbox-q0dugR2t.js} +8 -8
- package/{Collection-COLWgm24.js → Collection-KMFfVuzU.js} +2 -2
- package/{Dialog-Cb6toyXO.js → Dialog-D6Bqrpn-.js} +170 -169
- package/Disclosure-dAZYXyTH.js +225 -0
- package/Disclosure.css +1 -0
- package/{FocusScope-C8i7CH6y.js → FocusScope-B7CkxXNC.js} +1 -1
- package/{Form-BQQs3jUk.js → Form-BWBjJC6v.js} +42 -42
- package/{Group-CdwXhx8Q.js → Group-D7_8007y.js} +10 -10
- package/Heading-RCRHv6hd.js +15 -0
- package/{Hidden-DngIphiL.js → Hidden-CVlUgUJM.js} +1 -1
- package/{Link-iAZLB3RI.js → Link-BnQvB-hH.js} +8 -8
- package/{ListBox-BKWkIIm6.js → ListBox-DBBiqvcR.js} +72 -72
- package/{ListKeyboardDelegate-BH-K5hyq.js → ListKeyboardDelegate-gCXy-Xnn.js} +2 -2
- package/{PressResponder-Cz-TRBHO.js → PressResponder-B4g56kDz.js} +5 -5
- package/{RSPContexts-EOiWkKOf.js → RSPContexts-BW2SEIqe.js} +2 -2
- package/{SelectionManager-8o40f7mx.js → SelectionManager-BfXUE1qg.js} +113 -129
- package/{Separator-BlvmQjwz.js → Separator-BBX9m2O2.js} +2 -2
- package/{Tag--W5TgxmK.js → Tag-DWt0koFj.js} +74 -74
- package/Text-BCF0xvqL.js +15 -0
- package/{TextField-DeK_yiK-.js → TextField-CX4eOQf6.js} +33 -33
- package/{TextField.module-0-u4LVPp.js → TextField.module-DdICj682.js} +7 -7
- package/{VisuallyHidden-CFx06Bae.js → VisuallyHidden-Dhr5caPC.js} +1 -1
- package/accordion/Accordion.d.ts +8 -8
- package/accordion/AccordionItem.d.ts +11 -3
- package/accordion/index.d.ts +0 -3
- package/{context-Bnqknrce.js → context-BpJLnOuu.js} +11 -11
- package/global.css +1 -0
- package/index.d.ts +1 -0
- package/index.js +105 -110
- package/index10.js +1 -1
- package/index11.js +1 -1
- package/index12.js +1 -1
- package/index13.js +1 -1
- package/index14.js +1 -1
- package/index15.js +2 -2
- package/index16.js +2 -2
- package/index17.js +1 -1
- package/index18.js +1 -1
- package/index19.js +2 -2
- package/index2.js +1 -1
- package/index20.js +2 -2
- package/index21.js +1 -1
- package/index22.js +1 -1
- package/index23.js +1 -1
- package/index24.js +1 -1
- package/index25.js +2 -2
- package/index26.js +2 -2
- package/index27.js +2 -2
- package/index28.js +1 -1
- package/index29.js +2 -8
- package/index3.js +1 -1
- package/index30.js +17 -16
- package/index31.js +1 -1
- package/index32.js +1 -1
- package/index33.js +1 -1
- package/index34.js +2 -2
- package/index36.js +1 -1
- package/index37.js +1 -1
- package/index38.js +1 -1
- package/index39.js +1 -1
- package/index4.js +1 -1
- package/index40.js +19 -12
- package/index41.js +61 -14
- package/index42.js +44 -22
- package/index43.js +13 -11
- package/index44.js +25 -4
- package/index45.js +16 -51
- package/index46.js +19 -16
- package/index47.js +49 -27
- package/index48.js +5 -18
- package/index49.js +25 -21
- package/index5.js +1 -1
- package/index50.js +16 -47
- package/index51.js +7 -3
- package/index52.js +18 -18
- package/index53.js +16 -16
- package/index54.js +5 -3
- package/index55.js +7 -20
- package/index56.js +13 -16
- package/index57.js +6 -8
- package/index58.js +5 -8
- package/index59.js +17 -13
- package/index6.js +1 -1
- package/index60.js +20 -7
- package/index61.js +59 -7
- package/index62.js +13 -17
- package/index63.js +9 -20
- package/index64.js +38 -46
- package/index65.js +85 -15
- package/index66.js +74 -11
- package/index67.js +23 -62
- package/index68.js +64 -80
- package/index69.js +68 -62
- package/index7.js +1 -1
- package/index70.js +138 -22
- package/index71.js +66 -65
- package/index72.js +40 -78
- package/index73.js +75 -133
- package/index74.js +69 -68
- package/index75.js +96 -34
- package/index76.js +258 -65
- package/index77.js +715 -63
- package/index78.js +478 -93
- package/index79.js +303 -263
- package/index8.js +1 -1
- package/index80.js +343 -677
- package/index81.js +242 -479
- package/index82.js +1332 -282
- package/index83.js +966 -346
- package/index84.js +344 -210
- package/index85.js +2024 -1286
- package/index86.js +2314 -955
- package/index87.js +6785 -340
- package/index88.js +15 -2099
- package/index89.js +12 -2367
- package/index9.js +1 -1
- package/index90.js +4 -6834
- package/index91.js +7 -15
- package/package.json +1 -1
- package/useControlledState-Kv9K2AYu.js +30 -0
- package/{useDescription-BPs7eRff.js → useDescription-B7stiK3j.js} +1 -1
- package/useEvent-Xk5kn5Ns.js +21 -0
- package/{useField-Dz62UHCP.js → useField-DMzJIIN4.js} +5 -5
- package/{useFilter-ViwzkzZe.js → useFilter-Bt9dbV1U.js} +1 -1
- package/{useFocusRing-BKGhL91C.js → useFocusRing-9PXyKy2A.js} +26 -26
- package/{useFocusable-CRSmYEQc.js → useFocusable-CcEBZe40.js} +1 -1
- package/{useGridSelectionCheckbox-CVEvUCJL.js → useGridSelectionCheckbox-DYgEnElE.js} +3 -3
- package/{useHasTabbableChild-C8y4fwiY.js → useHasTabbableChild-D6DwR81L.js} +5 -5
- package/{useHighlightSelectionDescription-CD74uzLh.js → useHighlightSelectionDescription-WYAbP4No.js} +4 -4
- package/useLabels-9zaZ9oa0.js +17 -0
- package/{useListState-DKnP5TB5.js → useListState-BfTeKTk5.js} +1 -1
- package/{useLocalizedStringFormatter-DsZ-ZWSk.js → useLocalizedStringFormatter-BlCbn-hX.js} +1 -1
- package/{useSingleSelectListState-BHTLh8Ob.js → useSingleSelectListState-DPkaL0la.js} +2 -2
- package/Text-CQPW6xs7.js +0 -15
- package/accordion/AccordionContent.d.ts +0 -3
- package/accordion/AccordionTagContext.d.ts +0 -3
- package/accordion/AccordionTrigger.d.ts +0 -3
- package/index-DK9ZACEc.js +0 -642
- package/index.css +0 -1
- package/index92.js +0 -14
- package/index93.js +0 -6
- package/index94.js +0 -9
- package/useControlledState-DrAoodI6.js +0 -45
package/index91.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { T as i, a as T } from "./Tag-DWt0koFj.js";
|
|
3
|
+
import "./index66.js";
|
|
4
|
+
import "./clsx-OuTLNxxd.js";
|
|
5
|
+
import "./x-JK7i-TQC.js";
|
|
2
6
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
r as borderRadius,
|
|
6
|
-
t as borderWidths,
|
|
7
|
-
e as boxShadow,
|
|
8
|
-
n as breakpoints,
|
|
9
|
-
b as buttonColors,
|
|
10
|
-
d as font,
|
|
11
|
-
l as fontSizes,
|
|
12
|
-
f as fontWeights,
|
|
13
|
-
C as inputColor,
|
|
14
|
-
h as midasColors,
|
|
15
|
-
m as midasTransitions,
|
|
16
|
-
c as signalColors
|
|
7
|
+
i as Tag,
|
|
8
|
+
T as TagGroup
|
|
17
9
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { useState as $, useRef as C, useEffect as V, useCallback as h } from "react";
|
|
2
|
+
function R(o, d, l) {
|
|
3
|
+
let [p, s] = $(o || d), i = C(o !== void 0), e = o !== void 0;
|
|
4
|
+
V(() => {
|
|
5
|
+
let t = i.current;
|
|
6
|
+
t !== e && console.warn(`WARN: A component changed from ${t ? "controlled" : "uncontrolled"} to ${e ? "controlled" : "uncontrolled"}.`), i.current = e;
|
|
7
|
+
}, [
|
|
8
|
+
e
|
|
9
|
+
]);
|
|
10
|
+
let n = e ? o : p, b = h((t, ...u) => {
|
|
11
|
+
let f = (r, ...c) => {
|
|
12
|
+
l && (Object.is(n, r) || l(r, ...c)), e || (n = r);
|
|
13
|
+
};
|
|
14
|
+
typeof t == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), s((c, ...m) => {
|
|
15
|
+
let a = t(e ? n : c, ...m);
|
|
16
|
+
return f(a, ...u), e ? c : a;
|
|
17
|
+
})) : (e || s(t), f(t, ...u));
|
|
18
|
+
}, [
|
|
19
|
+
e,
|
|
20
|
+
n,
|
|
21
|
+
l
|
|
22
|
+
]);
|
|
23
|
+
return [
|
|
24
|
+
n,
|
|
25
|
+
b
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
R as $
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { m as l } from "./useFocusRing-9PXyKy2A.js";
|
|
2
|
+
import { useEffect as m } from "react";
|
|
3
|
+
function i(e, t, f, r) {
|
|
4
|
+
let a = l(f), c = f == null;
|
|
5
|
+
m(() => {
|
|
6
|
+
if (c || !e.current) return;
|
|
7
|
+
let n = e.current;
|
|
8
|
+
return n.addEventListener(t, a, r), () => {
|
|
9
|
+
n.removeEventListener(t, a, r);
|
|
10
|
+
};
|
|
11
|
+
}, [
|
|
12
|
+
e,
|
|
13
|
+
t,
|
|
14
|
+
r,
|
|
15
|
+
c,
|
|
16
|
+
a
|
|
17
|
+
]);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as $
|
|
21
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as n,
|
|
2
|
-
import { $ } from "./Hidden-
|
|
1
|
+
import { a as n, k as s, C as f, e as $ } from "./useFocusRing-9PXyKy2A.js";
|
|
2
|
+
import { $ as c } from "./Hidden-CVlUgUJM.js";
|
|
3
3
|
import p, { createContext as m } from "react";
|
|
4
|
-
import {
|
|
5
|
-
const u = /* @__PURE__ */ m({}), g = /* @__PURE__ */
|
|
4
|
+
import { $ as y } from "./useLabels-9zaZ9oa0.js";
|
|
5
|
+
const u = /* @__PURE__ */ m({}), g = /* @__PURE__ */ c(function(e, l) {
|
|
6
6
|
[e, l] = n(e, l, u);
|
|
7
7
|
let { elementType: a = "label", ...r } = e;
|
|
8
8
|
return /* @__PURE__ */ p.createElement(a, {
|
|
@@ -41,7 +41,7 @@ function E(t) {
|
|
|
41
41
|
a,
|
|
42
42
|
r
|
|
43
43
|
]);
|
|
44
|
-
return o =
|
|
44
|
+
return o = $(o, {
|
|
45
45
|
"aria-describedby": [
|
|
46
46
|
i,
|
|
47
47
|
// Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
|
|
@@ -1248,16 +1248,16 @@ function En(e = {}) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
export {
|
|
1250
1250
|
ln as $,
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1251
|
+
bn as A,
|
|
1252
|
+
dn as B,
|
|
1253
|
+
on as C,
|
|
1254
|
+
zt as D,
|
|
1255
|
+
Ke as E,
|
|
1256
|
+
vt as F,
|
|
1257
|
+
J as G,
|
|
1258
|
+
xt as H,
|
|
1259
|
+
We as I,
|
|
1260
|
+
et as J,
|
|
1261
1261
|
yn as K,
|
|
1262
1262
|
kt as L,
|
|
1263
1263
|
un as M,
|
|
@@ -1278,20 +1278,20 @@ export {
|
|
|
1278
1278
|
je as h,
|
|
1279
1279
|
Ft as i,
|
|
1280
1280
|
Ht as j,
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1281
|
+
gt as k,
|
|
1282
|
+
Y as l,
|
|
1283
|
+
V as m,
|
|
1284
|
+
vn as n,
|
|
1285
|
+
sn as o,
|
|
1286
|
+
Ue as p,
|
|
1287
|
+
cn as q,
|
|
1288
|
+
Kt as r,
|
|
1289
|
+
K as s,
|
|
1290
|
+
P as t,
|
|
1291
|
+
Tn as u,
|
|
1292
|
+
Ne as v,
|
|
1293
|
+
Lt as w,
|
|
1294
|
+
Jt as x,
|
|
1295
|
+
Ot as y,
|
|
1296
|
+
gn as z
|
|
1297
1297
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as s } from "./useHighlightSelectionDescription-
|
|
2
|
-
import {
|
|
3
|
-
import { $ } from "./useLocalizedStringFormatter-
|
|
1
|
+
import { $ as s } from "./useHighlightSelectionDescription-WYAbP4No.js";
|
|
2
|
+
import { k as f } from "./useFocusRing-9PXyKy2A.js";
|
|
3
|
+
import { $ } from "./useLocalizedStringFormatter-BlCbn-hX.js";
|
|
4
4
|
function d(e) {
|
|
5
5
|
return e && e.__esModule ? e.default : e;
|
|
6
6
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import {
|
|
1
|
+
import { $ as i } from "./FocusScope-B7CkxXNC.js";
|
|
2
|
+
import { l as n } from "./useFocusRing-9PXyKy2A.js";
|
|
3
3
|
import { useState as s } from "react";
|
|
4
4
|
function $(e, t) {
|
|
5
|
-
let a = t == null ? void 0 : t.isDisabled, [b,
|
|
5
|
+
let a = t == null ? void 0 : t.isDisabled, [b, l] = s(!1);
|
|
6
6
|
return n(() => {
|
|
7
7
|
if (e != null && e.current && !a) {
|
|
8
8
|
let r = () => {
|
|
9
9
|
if (e.current) {
|
|
10
|
-
let
|
|
10
|
+
let u = i(e.current, {
|
|
11
11
|
tabbable: !0
|
|
12
12
|
});
|
|
13
|
-
|
|
13
|
+
l(!!u.nextNode());
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
r();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as J } from "./Button-
|
|
2
|
-
import { $ as B } from "./useLocalizedStringFormatter-
|
|
1
|
+
import { b as J } from "./Button-DL6nqUco.js";
|
|
2
|
+
import { $ as B } from "./useLocalizedStringFormatter-BlCbn-hX.js";
|
|
3
3
|
import { useRef as q, useMemo as Q } from "react";
|
|
4
4
|
import { $ as X } from "./useUpdateEffect-Dtz-i14F.js";
|
|
5
|
-
import { $ as Y } from "./useDescription-
|
|
6
|
-
import { P as ee } from "./useFocusRing-
|
|
5
|
+
import { $ as Y } from "./useDescription-B7stiK3j.js";
|
|
6
|
+
import { P as ee } from "./useFocusRing-9PXyKy2A.js";
|
|
7
7
|
var D = {};
|
|
8
8
|
D = {
|
|
9
9
|
deselectedItem: (e) => `${e.item} غير المحدد`,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { k as t } from "./useFocusRing-9PXyKy2A.js";
|
|
2
|
+
function s(r, a) {
|
|
3
|
+
let { id: i, "aria-label": l, "aria-labelledby": e } = r;
|
|
4
|
+
return i = t(i), e && l ? e = [
|
|
5
|
+
.../* @__PURE__ */ new Set([
|
|
6
|
+
i,
|
|
7
|
+
...e.trim().split(/\s+/)
|
|
8
|
+
])
|
|
9
|
+
].join(" ") : e && (e = e.trim().split(/\s+/).join(" ")), !l && !e && a && (l = a), {
|
|
10
|
+
id: i,
|
|
11
|
+
"aria-label": l,
|
|
12
|
+
"aria-labelledby": e
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
s as $
|
|
17
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as r } from "./useListState-
|
|
2
|
-
import { $ as y } from "./useControlledState-
|
|
1
|
+
import { $ as r } from "./useListState-BfTeKTk5.js";
|
|
2
|
+
import { $ as y } from "./useControlledState-Kv9K2AYu.js";
|
|
3
3
|
import { useMemo as K } from "react";
|
|
4
4
|
function S(l) {
|
|
5
5
|
var t;
|
package/Text-CQPW6xs7.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { a as c } from "./useFocusRing-BKGhL91C.js";
|
|
2
|
-
import o, { forwardRef as f, createContext as n } from "react";
|
|
3
|
-
const $ = /* @__PURE__ */ n({}), s = /* @__PURE__ */ f(function(e, t) {
|
|
4
|
-
[e, t] = c(e, t, $);
|
|
5
|
-
let { elementType: a = "span", ...r } = e;
|
|
6
|
-
return /* @__PURE__ */ o.createElement(a, {
|
|
7
|
-
className: "react-aria-Text",
|
|
8
|
-
...r,
|
|
9
|
-
ref: t
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
$,
|
|
14
|
-
s as a
|
|
15
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type TextElementTag = keyof Pick<JSX.IntrinsicElements, 'p' | 'span' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong' | 'em'>;
|
|
2
|
-
export declare const AccordionTagContext: import('react').Context<"p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em">;
|
|
3
|
-
export declare const useAccordionTag: () => "p" | "span" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "strong" | "em";
|