se-design 1.0.69-dev → 1.0.70
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/dist/assets/icons/file-filled-checked.svg +8 -0
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +2 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -2
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +2 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +2 -2
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +2 -2
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -2
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -2
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +2 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +1 -1
- package/dist/index180.js +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +1 -1
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +2 -2
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +2 -2
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +2 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +2 -149
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +149 -9
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +8 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +5 -4
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +8 -0
- package/dist/index190.js.map +1 -0
- package/dist/{index192.js → index193.js} +1 -1
- package/dist/{index192.js.map → index193.js.map} +1 -1
- package/dist/{index194.js → index195.js} +2 -2
- package/dist/{index194.js.map → index195.js.map} +1 -1
- package/dist/{index196.js → index197.js} +1 -1
- package/dist/{index196.js.map → index197.js.map} +1 -1
- package/dist/{index204.js → index205.js} +1 -1
- package/dist/{index204.js.map → index205.js.map} +1 -1
- package/dist/{index212.js → index213.js} +1 -1
- package/dist/{index212.js.map → index213.js.map} +1 -1
- package/dist/index216.js +32 -43
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +46 -0
- package/dist/index217.js.map +1 -0
- package/dist/index22.js +2 -2
- package/dist/{index225.js → index226.js} +1 -1
- package/dist/{index225.js.map → index226.js.map} +1 -1
- package/dist/index228.js +57 -20
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +1 -1
- package/dist/index230.js +9 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +9 -9
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -9
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +170 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +11 -170
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +22 -11
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +18 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +5 -5
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +5 -37
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +38 -2
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.js +2 -8
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +7 -326
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +324 -47
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +50 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +2 -76
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +65 -82
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +89 -48
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +51 -7
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +7 -4
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +4 -51
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +52 -2
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -2
- package/dist/index252.js +5 -0
- package/dist/index252.js.map +1 -0
- package/dist/index27.js +1 -1
- package/dist/index29.js +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index38.js +2 -2
- package/dist/index39.js +1 -1
- package/dist/index44.js +2 -2
- package/dist/index45.js +3 -3
- package/dist/index48.js +2 -2
- package/dist/index5.js +86 -84
- package/dist/index5.js.map +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index56.js +1 -1
- package/dist/index6.js +1 -1
- package/dist/index62.js +1 -1
- package/dist/index64.js +2 -2
- package/dist/index8.js +2 -2
- package/package.json +1 -1
- package/dist/index215.js +0 -35
- package/dist/index215.js.map +0 -1
- package/dist/index227.js +0 -62
- package/dist/index227.js.map +0 -1
package/dist/index250.js
CHANGED
|
@@ -1,5 +1,55 @@
|
|
|
1
|
-
|
|
1
|
+
import { __require as E } from "./index248.js";
|
|
2
|
+
import { __require as _ } from "./index249.js";
|
|
3
|
+
var f, v;
|
|
4
|
+
function P() {
|
|
5
|
+
if (v) return f;
|
|
6
|
+
v = 1;
|
|
7
|
+
var o = function() {
|
|
8
|
+
};
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10
|
+
var y = E(), t = {}, d = _();
|
|
11
|
+
o = function(n) {
|
|
12
|
+
var a = "Warning: " + n;
|
|
13
|
+
typeof console < "u" && console.error(a);
|
|
14
|
+
try {
|
|
15
|
+
throw new Error(a);
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function u(n, a, i, s, c) {
|
|
21
|
+
if (process.env.NODE_ENV !== "production") {
|
|
22
|
+
for (var e in n)
|
|
23
|
+
if (d(n, e)) {
|
|
24
|
+
var r;
|
|
25
|
+
try {
|
|
26
|
+
if (typeof n[e] != "function") {
|
|
27
|
+
var h = Error(
|
|
28
|
+
(s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
29
|
+
);
|
|
30
|
+
throw h.name = "Invariant Violation", h;
|
|
31
|
+
}
|
|
32
|
+
r = n[e](a, e, s, i, null, y);
|
|
33
|
+
} catch (l) {
|
|
34
|
+
r = l;
|
|
35
|
+
}
|
|
36
|
+
if (r && !(r instanceof Error) && o(
|
|
37
|
+
(s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
38
|
+
), r instanceof Error && !(r.message in t)) {
|
|
39
|
+
t[r.message] = !0;
|
|
40
|
+
var p = c ? c() : "";
|
|
41
|
+
o(
|
|
42
|
+
"Failed " + i + " type: " + r.message + (p ?? "")
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return u.resetWarningCache = function() {
|
|
49
|
+
process.env.NODE_ENV !== "production" && (t = {});
|
|
50
|
+
}, f = u, f;
|
|
51
|
+
}
|
|
2
52
|
export {
|
|
3
|
-
|
|
53
|
+
P as __require
|
|
4
54
|
};
|
|
5
55
|
//# sourceMappingURL=index250.js.map
|
package/dist/index250.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index250.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index250.js","sources":["../node_modules/prop-types/checkPropTypes.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n"],"names":["printWarning","ReactPropTypesSecret","require$$0","loggedTypeFailures","has","require$$1","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1"],"mappings":";;;;;;AASA,MAAIA,IAAe,WAAW;AAAA,EAAA;AAE9B,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,QAAIC,IAAuBC,EAAA,GACvBC,IAAqB,CAAA,GACrBC,IAAMC,EAAA;AAEV,IAAAL,IAAe,SAASM,GAAM;AAC5B,UAAIC,IAAU,cAAcD;AAC5B,MAAI,OAAO,UAAY,OACrB,QAAQ,MAAMC,CAAO;AAEvB,UAAI;AAIF,cAAM,IAAI,MAAMA,CAAO;AAAA,MAC7B,QAAgB;AAAA,MAAA;AAAA,IAChB;AAAA,EACA;AAaA,WAASC,EAAeC,GAAWC,GAAQC,GAAUC,GAAeC,GAAU;AAC5E,QAAI,QAAQ,IAAI,aAAa;AAC3B,eAASC,KAAgBL;AACvB,YAAIL,EAAIK,GAAWK,CAAY,GAAG;AAChC,cAAIC;AAIJ,cAAI;AAGF,gBAAI,OAAON,EAAUK,CAAY,KAAM,YAAY;AACjD,kBAAIE,IAAM;AAAA,iBACPJ,KAAiB,iBAAiB,OAAOD,IAAW,YAAYG,IAAe,+FACC,OAAOL,EAAUK,CAAY,IAAI;AAAA,cAEhI;AACY,oBAAAE,EAAI,OAAO,uBACLA;AAAA,YAClB;AACU,YAAAD,IAAQN,EAAUK,CAAY,EAAEJ,GAAQI,GAAcF,GAAeD,GAAU,MAAMV,CAAoB;AAAA,UACnH,SAAiBgB,GAAI;AACX,YAAAF,IAAQE;AAAA,UAClB;AAWQ,cAVIF,KAAS,EAAEA,aAAiB,UAC9Bf;AAAA,aACGY,KAAiB,iBAAiB,6BACnCD,IAAW,OAAOG,IAAe,6FAC6B,OAAOC,IAAQ;AAAA,UAIzF,GAEYA,aAAiB,SAAS,EAAEA,EAAM,WAAWZ,IAAqB;AAGpE,YAAAA,EAAmBY,EAAM,OAAO,IAAI;AAEpC,gBAAIG,IAAQL,IAAWA,EAAQ,IAAK;AAEpC,YAAAb;AAAA,cACE,YAAYW,IAAW,YAAYI,EAAM,WAAWG,KAAwB;AAAA,YACxF;AAAA,UACA;AAAA,QACA;AAAA;AAAA,EAGA;AAOA,SAAAV,EAAe,oBAAoB,WAAW;AAC5C,IAAI,QAAQ,IAAI,aAAa,iBAC3BL,IAAqB,CAAA;AAAA,EAEzB,GAEAgB,IAAiBX;;","x_google_ignoreList":[0]}
|
package/dist/index251.js
CHANGED
package/dist/index252.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index252.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index27.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import d, { useMemo as S, useRef as D, useEffect as c } from "react";
|
|
2
2
|
import { Icon as j } from "./index5.js";
|
|
3
3
|
import { getA11yNameAttributes as B } from "./index70.js";
|
|
4
|
-
import { useDismissOnEscape as M } from "./
|
|
4
|
+
import { useDismissOnEscape as M } from "./index197.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function m() {
|
|
7
7
|
return m = Object.assign ? Object.assign.bind() : function(r) {
|
package/dist/index29.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e, { forwardRef as H } from "react";
|
|
2
2
|
import { Icon as J } from "./index5.js";
|
|
3
3
|
import { Button as b } from "./index3.js";
|
|
4
|
-
import { useStableId as I } from "./
|
|
4
|
+
import { useStableId as I } from "./index189.js";
|
|
5
5
|
import { getRegionAttributes as K } from "./index65.js";
|
|
6
6
|
import { useAccessiblePress as M } from "./index66.js";
|
|
7
7
|
/* empty css */
|
package/dist/index34.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useState as h, useEffect as E } from "react";
|
|
2
2
|
import { Icon as N } from "./index5.js";
|
|
3
|
-
import { useStableId as $ } from "./
|
|
3
|
+
import { useStableId as $ } from "./index189.js";
|
|
4
4
|
import { getRegionAttributes as I } from "./index65.js";
|
|
5
5
|
import { useAccessiblePress as _ } from "./index66.js";
|
|
6
6
|
function r() {
|
package/dist/index35.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e, { useState as I, useEffect as h } from "react";
|
|
2
2
|
import { Icon as d } from "./index5.js";
|
|
3
|
-
import { useStableId as y } from "./
|
|
3
|
+
import { useStableId as y } from "./index189.js";
|
|
4
4
|
import { getA11yNameAttributes as _ } from "./index70.js";
|
|
5
5
|
import { getRegionAttributes as O } from "./index65.js";
|
|
6
6
|
import { useAccessiblePress as C } from "./index66.js";
|
package/dist/index37.js
CHANGED
|
@@ -3,8 +3,8 @@ import { Popover as ve } from "./index18.js";
|
|
|
3
3
|
import { Icon as we } from "./index5.js";
|
|
4
4
|
import { Checkbox as Ee } from "./index22.js";
|
|
5
5
|
import { Button as G } from "./index3.js";
|
|
6
|
-
import { useCombobox as ke } from "./
|
|
7
|
-
import { useStableId as be } from "./
|
|
6
|
+
import { useCombobox as ke } from "./index195.js";
|
|
7
|
+
import { useStableId as be } from "./index189.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
function g() {
|
|
10
10
|
return g = Object.assign ? Object.assign.bind() : function(v) {
|
package/dist/index38.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import e from "react";
|
|
2
|
-
import { useStableId as A } from "./
|
|
3
|
-
import { mergeIds as P } from "./
|
|
2
|
+
import { useStableId as A } from "./index189.js";
|
|
3
|
+
import { mergeIds as P } from "./index190.js";
|
|
4
4
|
import { getA11yNameAttributes as _ } from "./index70.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function z({
|
package/dist/index39.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import a, { useState as d, useRef as $, useEffect as r, useMemo as D } from "react";
|
|
2
2
|
import { Icon as g } from "./index5.js";
|
|
3
3
|
import { LabelChip as F } from "./index10.js";
|
|
4
|
-
import { debounce as L } from "./
|
|
4
|
+
import { debounce as L } from "./index205.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function z(p) {
|
|
7
7
|
const {
|
package/dist/index44.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e, { useState as S, useRef as k, useCallback as P, useEffect as Y } from "react";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { Icon as x } from "./index5.js";
|
|
4
|
-
import { useStableId as Z } from "./
|
|
4
|
+
import { useStableId as Z } from "./index189.js";
|
|
5
5
|
import { getA11yNameAttributes as L } from "./index70.js";
|
|
6
|
-
import { useCombobox as ee } from "./
|
|
6
|
+
import { useCombobox as ee } from "./index195.js";
|
|
7
7
|
function u() {
|
|
8
8
|
return u = Object.assign ? Object.assign.bind() : function(o) {
|
|
9
9
|
for (var s = 1; s < arguments.length; s++) {
|
package/dist/index45.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t, { useState as m, useRef as h, useCallback as f, useEffect as x } from "react";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import g from "./
|
|
3
|
+
import g from "./index213.js";
|
|
4
4
|
import { Icon as T } from "./index5.js";
|
|
5
|
-
import { useStableId as E } from "./
|
|
5
|
+
import { useStableId as E } from "./index189.js";
|
|
6
6
|
import { getA11yNameAttributes as ce } from "./index70.js";
|
|
7
|
-
import { useCombobox as se } from "./
|
|
7
|
+
import { useCombobox as se } from "./index195.js";
|
|
8
8
|
function c() {
|
|
9
9
|
return c = Object.assign ? Object.assign.bind() : function(s) {
|
|
10
10
|
for (var i = 1; i < arguments.length; i++) {
|
package/dist/index48.js
CHANGED
|
@@ -27,8 +27,8 @@ import { Popover as $ } from "./index18.js";
|
|
|
27
27
|
/* empty css */
|
|
28
28
|
/* empty css */
|
|
29
29
|
/* empty css */
|
|
30
|
-
import { TabButton as j } from "./
|
|
31
|
-
import { useTabsA11y as K } from "./
|
|
30
|
+
import { TabButton as j } from "./index216.js";
|
|
31
|
+
import { useTabsA11y as K } from "./index217.js";
|
|
32
32
|
/* empty css */
|
|
33
33
|
/* empty css */
|
|
34
34
|
/* empty css */
|
package/dist/index5.js
CHANGED
|
@@ -112,10 +112,11 @@ import Bo from "./index182.js";
|
|
|
112
112
|
import Mo from "./index183.js";
|
|
113
113
|
import qo from "./index184.js";
|
|
114
114
|
import Go from "./index185.js";
|
|
115
|
+
import To from "./index186.js";
|
|
115
116
|
import c from "react";
|
|
116
|
-
import { ReactSVG as
|
|
117
|
-
import { getA11yNameAttributes as
|
|
118
|
-
import { useAccessiblePress as
|
|
117
|
+
import { ReactSVG as Vo } from "./index187.js";
|
|
118
|
+
import { getA11yNameAttributes as Ho } from "./index70.js";
|
|
119
|
+
import { useAccessiblePress as Jo } from "./index66.js";
|
|
119
120
|
function a() {
|
|
120
121
|
return a = Object.assign ? Object.assign.bind() : function(s) {
|
|
121
122
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -125,7 +126,7 @@ function a() {
|
|
|
125
126
|
return s;
|
|
126
127
|
}, a.apply(null, arguments);
|
|
127
128
|
}
|
|
128
|
-
const
|
|
129
|
+
const Qo = /* @__PURE__ */ Object.assign({
|
|
129
130
|
"/src/assets/icons/ai-off.svg": L,
|
|
130
131
|
"/src/assets/icons/ai-search.svg": R,
|
|
131
132
|
"/src/assets/icons/ai-stars.svg": K,
|
|
@@ -167,84 +168,85 @@ const Jo = /* @__PURE__ */ Object.assign({
|
|
|
167
168
|
"/src/assets/icons/fields-create.svg": ks,
|
|
168
169
|
"/src/assets/icons/fields-panel.svg": xs,
|
|
169
170
|
"/src/assets/icons/file-empty.svg": As,
|
|
170
|
-
"/src/assets/icons/file-
|
|
171
|
-
"/src/assets/icons/file.svg": ws,
|
|
172
|
-
"/src/assets/icons/
|
|
173
|
-
"/src/assets/icons/
|
|
174
|
-
"/src/assets/icons/
|
|
175
|
-
"/src/assets/icons/folder.svg": Cs,
|
|
176
|
-
"/src/assets/icons/
|
|
177
|
-
"/src/assets/icons/
|
|
178
|
-
"/src/assets/icons/
|
|
179
|
-
"/src/assets/icons/
|
|
180
|
-
"/src/assets/icons/
|
|
181
|
-
"/src/assets/icons/
|
|
182
|
-
"/src/assets/icons/
|
|
183
|
-
"/src/assets/icons/
|
|
184
|
-
"/src/assets/icons/
|
|
185
|
-
"/src/assets/icons/
|
|
186
|
-
"/src/assets/icons/
|
|
187
|
-
"/src/assets/icons/
|
|
188
|
-
"/src/assets/icons/
|
|
189
|
-
"/src/assets/icons/
|
|
190
|
-
"/src/assets/icons/
|
|
191
|
-
"/src/assets/icons/
|
|
192
|
-
"/src/assets/icons/
|
|
193
|
-
"/src/assets/icons/
|
|
194
|
-
"/src/assets/icons/
|
|
195
|
-
"/src/assets/icons/
|
|
196
|
-
"/src/assets/icons/
|
|
197
|
-
"/src/assets/icons/
|
|
198
|
-
"/src/assets/icons/
|
|
199
|
-
"/src/assets/icons/
|
|
200
|
-
"/src/assets/icons/
|
|
201
|
-
"/src/assets/icons/
|
|
202
|
-
"/src/assets/icons/
|
|
203
|
-
"/src/assets/icons/
|
|
204
|
-
"/src/assets/icons/
|
|
205
|
-
"/src/assets/icons/radio-
|
|
206
|
-
"/src/assets/icons/radio.svg": ro,
|
|
207
|
-
"/src/assets/icons/
|
|
208
|
-
"/src/assets/icons/
|
|
209
|
-
"/src/assets/icons/
|
|
210
|
-
"/src/assets/icons/
|
|
211
|
-
"/src/assets/icons/
|
|
212
|
-
"/src/assets/icons/
|
|
213
|
-
"/src/assets/icons/
|
|
214
|
-
"/src/assets/icons/rotate-
|
|
215
|
-
"/src/assets/icons/
|
|
216
|
-
"/src/assets/icons/
|
|
217
|
-
"/src/assets/icons/
|
|
218
|
-
"/src/assets/icons/
|
|
219
|
-
"/src/assets/icons/shield.svg": ho,
|
|
220
|
-
"/src/assets/icons/
|
|
221
|
-
"/src/assets/icons/shipment.svg": xo,
|
|
222
|
-
"/src/assets/icons/
|
|
223
|
-
"/src/assets/icons/
|
|
224
|
-
"/src/assets/icons/
|
|
225
|
-
"/src/assets/icons/
|
|
226
|
-
"/src/assets/icons/
|
|
227
|
-
"/src/assets/icons/
|
|
228
|
-
"/src/assets/icons/sort-
|
|
229
|
-
"/src/assets/icons/sort.svg": Oo,
|
|
230
|
-
"/src/assets/icons/
|
|
231
|
-
"/src/assets/icons/
|
|
232
|
-
"/src/assets/icons/
|
|
233
|
-
"/src/assets/icons/
|
|
234
|
-
"/src/assets/icons/
|
|
235
|
-
"/src/assets/icons/
|
|
236
|
-
"/src/assets/icons/
|
|
237
|
-
"/src/assets/icons/
|
|
238
|
-
"/src/assets/icons/
|
|
239
|
-
"/src/assets/icons/
|
|
240
|
-
"/src/assets/icons/
|
|
241
|
-
"/src/assets/icons/
|
|
242
|
-
"/src/assets/icons/
|
|
171
|
+
"/src/assets/icons/file-filled-checked.svg": ys,
|
|
172
|
+
"/src/assets/icons/file-red.svg": ws,
|
|
173
|
+
"/src/assets/icons/file.svg": Is,
|
|
174
|
+
"/src/assets/icons/fill-and-sign.svg": Ps,
|
|
175
|
+
"/src/assets/icons/filter.svg": Ns,
|
|
176
|
+
"/src/assets/icons/folder-empty.svg": Cs,
|
|
177
|
+
"/src/assets/icons/folder.svg": Os,
|
|
178
|
+
"/src/assets/icons/gmail.svg": $s,
|
|
179
|
+
"/src/assets/icons/google-drive.svg": Ds,
|
|
180
|
+
"/src/assets/icons/hamburger.svg": Es,
|
|
181
|
+
"/src/assets/icons/hashtag.svg": Ss,
|
|
182
|
+
"/src/assets/icons/help-question.svg": js,
|
|
183
|
+
"/src/assets/icons/history.svg": Fs,
|
|
184
|
+
"/src/assets/icons/home.svg": Ls,
|
|
185
|
+
"/src/assets/icons/hourglass.svg": Rs,
|
|
186
|
+
"/src/assets/icons/image-field.svg": Ks,
|
|
187
|
+
"/src/assets/icons/info.svg": Bs,
|
|
188
|
+
"/src/assets/icons/initials-field.svg": Ms,
|
|
189
|
+
"/src/assets/icons/kebab-menu.svg": qs,
|
|
190
|
+
"/src/assets/icons/left-align.svg": Gs,
|
|
191
|
+
"/src/assets/icons/library.svg": Ts,
|
|
192
|
+
"/src/assets/icons/minus.svg": Vs,
|
|
193
|
+
"/src/assets/icons/move-folder.svg": Hs,
|
|
194
|
+
"/src/assets/icons/name-field.svg": Js,
|
|
195
|
+
"/src/assets/icons/next.svg": Qs,
|
|
196
|
+
"/src/assets/icons/observer.svg": Us,
|
|
197
|
+
"/src/assets/icons/office-building.svg": Ws,
|
|
198
|
+
"/src/assets/icons/onedrive.svg": Xs,
|
|
199
|
+
"/src/assets/icons/outlook.svg": Ys,
|
|
200
|
+
"/src/assets/icons/padlock.svg": Zs,
|
|
201
|
+
"/src/assets/icons/pages.svg": zs,
|
|
202
|
+
"/src/assets/icons/pdf-file.svg": so,
|
|
203
|
+
"/src/assets/icons/people.svg": oo,
|
|
204
|
+
"/src/assets/icons/photo.svg": _o,
|
|
205
|
+
"/src/assets/icons/plus.svg": to,
|
|
206
|
+
"/src/assets/icons/radio-field.svg": io,
|
|
207
|
+
"/src/assets/icons/radio-filled.svg": ro,
|
|
208
|
+
"/src/assets/icons/radio.svg": eo,
|
|
209
|
+
"/src/assets/icons/reports.svg": co,
|
|
210
|
+
"/src/assets/icons/repository.svg": ao,
|
|
211
|
+
"/src/assets/icons/reset.svg": mo,
|
|
212
|
+
"/src/assets/icons/return.svg": go,
|
|
213
|
+
"/src/assets/icons/right-align.svg": vo,
|
|
214
|
+
"/src/assets/icons/rightSide.svg": no,
|
|
215
|
+
"/src/assets/icons/rotate-left.svg": lo,
|
|
216
|
+
"/src/assets/icons/rotate-right.svg": fo,
|
|
217
|
+
"/src/assets/icons/rounded-plus.svg": bo,
|
|
218
|
+
"/src/assets/icons/search.svg": po,
|
|
219
|
+
"/src/assets/icons/select-files.svg": uo,
|
|
220
|
+
"/src/assets/icons/shield-with-tick.svg": ho,
|
|
221
|
+
"/src/assets/icons/shield.svg": ko,
|
|
222
|
+
"/src/assets/icons/shipment-private.svg": xo,
|
|
223
|
+
"/src/assets/icons/shipment.svg": Ao,
|
|
224
|
+
"/src/assets/icons/sidebar.svg": yo,
|
|
225
|
+
"/src/assets/icons/signature-field.svg": wo,
|
|
226
|
+
"/src/assets/icons/signer.svg": Io,
|
|
227
|
+
"/src/assets/icons/slideout.svg": Po,
|
|
228
|
+
"/src/assets/icons/sms.svg": No,
|
|
229
|
+
"/src/assets/icons/sort-asc.svg": Co,
|
|
230
|
+
"/src/assets/icons/sort-desc.svg": Oo,
|
|
231
|
+
"/src/assets/icons/sort.svg": $o,
|
|
232
|
+
"/src/assets/icons/space.svg": Do,
|
|
233
|
+
"/src/assets/icons/stamp-field.svg": Eo,
|
|
234
|
+
"/src/assets/icons/stop.svg": So,
|
|
235
|
+
"/src/assets/icons/success-check.svg": jo,
|
|
236
|
+
"/src/assets/icons/tag.svg": Fo,
|
|
237
|
+
"/src/assets/icons/text-field.svg": Lo,
|
|
238
|
+
"/src/assets/icons/tick.svg": Ro,
|
|
239
|
+
"/src/assets/icons/title-field.svg": Ko,
|
|
240
|
+
"/src/assets/icons/upload-csv.svg": Bo,
|
|
241
|
+
"/src/assets/icons/warning.svg": Mo,
|
|
242
|
+
"/src/assets/icons/webinar-widget.svg": qo,
|
|
243
|
+
"/src/assets/icons/white-close.svg": Go,
|
|
244
|
+
"/src/assets/icons/widget-demo-image.svg": To
|
|
243
245
|
}), v = (s, t, o, _) => {
|
|
244
246
|
t && s.hasAttribute("fill") && s.getAttribute("fill") !== "none" && s.setAttribute("fill", t), o && s.hasAttribute("stroke") && s.setAttribute("stroke", o), _ && s.hasAttribute("width") && s.setAttribute("width", _.toString()), _ && s.hasAttribute("height") && s.setAttribute("height", _.toString()), Array.from(s.children).forEach((r) => {
|
|
245
247
|
v(r, t, o);
|
|
246
248
|
});
|
|
247
|
-
},
|
|
249
|
+
}, Uo = /* @__PURE__ */ c.forwardRef((s, t) => {
|
|
248
250
|
const {
|
|
249
251
|
name: o = "",
|
|
250
252
|
className: _ = "",
|
|
@@ -275,7 +277,7 @@ const Jo = /* @__PURE__ */ Object.assign({
|
|
|
275
277
|
225: "rotate-[225deg]",
|
|
276
278
|
270: "-rotate-90",
|
|
277
279
|
315: "-rotate-45"
|
|
278
|
-
}, m =
|
|
280
|
+
}, m = Qo[`/src/assets/icons/${o}.svg`];
|
|
279
281
|
if (!m)
|
|
280
282
|
return console.error(`Icon "${o}" not found in ICON_MAP.`), null;
|
|
281
283
|
const e = typeof r == "function", $ = n || o, {
|
|
@@ -283,13 +285,13 @@ const Jo = /* @__PURE__ */ Object.assign({
|
|
|
283
285
|
role: D,
|
|
284
286
|
tabIndex: E,
|
|
285
287
|
isDisabled: S
|
|
286
|
-
} =
|
|
288
|
+
} = Jo({
|
|
287
289
|
isNative: !1,
|
|
288
290
|
onClick: e ? () => r?.() : void 0,
|
|
289
291
|
disabled: e ? I : !1,
|
|
290
292
|
stopPropagation: A,
|
|
291
293
|
tabIndex: y
|
|
292
|
-
}), j =
|
|
294
|
+
}), j = Ho({
|
|
293
295
|
ariaLabel: $,
|
|
294
296
|
ariaLabelledBy: l,
|
|
295
297
|
ariaDescribedBy: f
|
|
@@ -313,7 +315,7 @@ const Jo = /* @__PURE__ */ Object.assign({
|
|
|
313
315
|
}, F, {
|
|
314
316
|
onFocus: N,
|
|
315
317
|
"data-automation-id": P
|
|
316
|
-
}), /* @__PURE__ */ c.createElement(
|
|
318
|
+
}), /* @__PURE__ */ c.createElement(Vo, {
|
|
317
319
|
src: m,
|
|
318
320
|
wrapper: "span",
|
|
319
321
|
beforeInjection: (i) => {
|
|
@@ -321,8 +323,8 @@ const Jo = /* @__PURE__ */ Object.assign({
|
|
|
321
323
|
}
|
|
322
324
|
}));
|
|
323
325
|
});
|
|
324
|
-
|
|
326
|
+
Uo.displayName = "Icon";
|
|
325
327
|
export {
|
|
326
|
-
|
|
328
|
+
Uo as Icon
|
|
327
329
|
};
|
|
328
330
|
//# sourceMappingURL=index5.js.map
|
package/dist/index5.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index5.js","sources":["../src/components/Icon/index.tsx"],"sourcesContent":["// TODO: `applyAttributesToElement` recursion drops `size` for nested elements (pre-existing).\nimport React from 'react';\nimport { ReactSVG } from 'react-svg';\nimport { getA11yNameAttributes, useAccessiblePress } from '../../utils/a11y';\n\n// Dynamically import icons using Vite's asset handling\nconst ICON_MAP: Record<string, string> = (import.meta as any).glob('/src/assets/icons/*.svg', {\n eager: true,\n query: '?url',\n import: 'default'\n});\n\nexport type RotationTypes = '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n\nexport type IconProps = {\n name: string;\n className?: string;\n onClick?: () => void;\n /**\n * Accessible name when Icon is interactive (onClick is provided).\n * If omitted, we fall back to `name` and warn in development.\n */\n ariaLabel?: string;\n /**\n * ID(s) of visible element(s) that label this Icon when interactive.\n * Preferred over ariaLabel when a visible label exists (keeps SR and visual text in sync).\n */\n ariaLabelledBy?: string;\n /**\n * ID(s) of element(s) that describe this Icon when interactive (additional context).\n */\n ariaDescribedBy?: string;\n /**\n * Toggle state when Icon is used as a button (e.g., show/hide sidebar).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaPressed?: boolean;\n /**\n * Expansion state when Icon controls a collapsible region/panel.\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaExpanded?: boolean;\n /**\n * ID of the element controlled by this Icon (for aria-controls).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaControls?: string;\n fill?: string;\n stroke?: string;\n rotation?: RotationTypes;\n size?: number;\n shouldStopPropagation?: boolean;\n automationId?: string;\n id?: string;\n tabIndex?: number;\n disabled?: boolean;\n onFocus?: React.FocusEventHandler<HTMLDivElement>;\n onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;\n};\n\nconst applyAttributesToElement = (element: Element, fill?: string, stroke?: string, size?: number) => {\n // Only modify existing attributes\n if (fill && element.hasAttribute('fill')) {\n const currentFill = element.getAttribute('fill');\n // Only update if the current fill is not \"none\"\n if (currentFill !== 'none') {\n element.setAttribute('fill', fill);\n }\n }\n\n if (stroke && element.hasAttribute('stroke')) {\n element.setAttribute('stroke', stroke);\n }\n\n if (size && element.hasAttribute('width')) {\n element.setAttribute('width', size.toString());\n }\n\n if (size && element.hasAttribute('height')) {\n element.setAttribute('height', size.toString());\n }\n\n // Recursively apply to all child elements\n Array.from(element.children).forEach((child) => {\n applyAttributesToElement(child, fill, stroke);\n });\n};\n\nexport const Icon = React.forwardRef<HTMLDivElement, IconProps>((props, ref) => {\n const {\n name = '',\n className = '',\n onClick,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaPressed,\n ariaExpanded,\n ariaControls,\n fill,\n stroke,\n rotation = '0',\n size,\n shouldStopPropagation = false,\n tabIndex: tabIndexProp = 0,\n id,\n disabled = false,\n automationId,\n onFocus,\n onKeyDown\n } = props;\n const iconRotationClasses = {\n '0': 'rotate-0',\n '45': 'rotate-45',\n '90': 'rotate-90',\n '135': 'rotate-[135deg]',\n '180': 'rotate-180',\n '225': 'rotate-[225deg]',\n '270': '-rotate-90',\n '315': '-rotate-45'\n };\n const src = ICON_MAP[`/src/assets/icons/${name}.svg`];\n\n if (!src) {\n console.error(`Icon \"${name}\" not found in ICON_MAP.`);\n return null;\n }\n\n const isInteractive = typeof onClick === 'function';\n const computedAriaLabel = ariaLabel || name;\n\n if (isInteractive && !ariaLabel && (import.meta as { env?: { DEV?: boolean } }).env?.DEV) {\n // eslint-disable-next-line no-console\n console.warn(\n `[se-design/Icon] Missing ariaLabel for clickable icon \"${name}\". ` +\n `Falling back to aria-label=\"${computedAriaLabel}\".`\n );\n }\n\n const { pressProps, role, tabIndex, isDisabled } = useAccessiblePress({\n isNative: false,\n onClick: isInteractive ? () => onClick?.() : undefined,\n disabled: isInteractive ? disabled : false,\n stopPropagation: shouldStopPropagation,\n tabIndex: tabIndexProp\n });\n\n // Compute accessible name/description props with correct precedence (aligns with Button/Link).\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel: computedAriaLabel,\n ariaLabelledBy,\n ariaDescribedBy\n });\n\n const interactiveProps = isInteractive\n ? {\n ...pressProps,\n role,\n tabIndex,\n ...accessibleNameProps,\n 'aria-pressed': ariaPressed,\n 'aria-expanded': ariaExpanded,\n 'aria-controls': ariaControls || undefined,\n onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => { pressProps.onKeyDown?.(e); onKeyDown?.(e); }\n }\n : undefined;\n\n return (\n <div\n ref={ref}\n className={`se-design-svg-wrapper transition-transform duration-250 ease-linear rounded-[3px] ${\n isInteractive ? `${isDisabled ? 'opacity-50 cursor-default' : 'cursor-pointer focus-outline'}` : ''\n } ${className} ${iconRotationClasses[rotation]}`}\n id={id}\n aria-hidden={!isInteractive ? 'true' : undefined}\n {...interactiveProps}\n onFocus={onFocus}\n data-automation-id={automationId}\n >\n <ReactSVG\n src={src}\n wrapper=\"span\"\n beforeInjection={(svg) => {\n svg.setAttribute('aria-hidden', 'true');\n svg.setAttribute('role', 'none');\n applyAttributesToElement(svg, fill, stroke, size);\n }}\n />\n </div>\n );\n});\n\nIcon.displayName = 'Icon';\n"],"names":["ICON_MAP","import","applyAttributesToElement","element","fill","stroke","size","hasAttribute","getAttribute","setAttribute","toString","Array","from","children","forEach","child","Icon","React","forwardRef","props","ref","name","className","onClick","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaPressed","ariaExpanded","ariaControls","rotation","shouldStopPropagation","tabIndex","tabIndexProp","id","disabled","automationId","onFocus","onKeyDown","iconRotationClasses","src","console","error","isInteractive","computedAriaLabel","pressProps","role","isDisabled","useAccessiblePress","isNative","undefined","stopPropagation","accessibleNameProps","getA11yNameAttributes","interactiveProps","e","createElement","_extends","ReactSVG","wrapper","beforeInjection","svg","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAAA,EAAAuC,cAAA,OAAAC,EAAA;AAAA,IACErC,KAAAA;AAAAA,IACAE,WAAW,qFACTqB,IAAgB,GAAGI,IAAa,8BAA8B,8BAA8B,KAAK,EAAE,IACjGzB,CAAS,IAAIiB,EAAoBT,CAAQ,CAAC;AAAA,IAC9CI,IAAAA;AAAAA,IACA,eAAcS,IAAyBO,SAAT;AAAA,EAASA,GACnCI,GAAgB;AAAA,IACpBjB,SAAAA;AAAAA,IACA,sBAAoBD;AAAAA,EAAAA,CAAa,GAEjCnB,gBAAAA,EAAAuC,cAACE,IAAQ;AAAA,IACPlB,KAAAA;AAAAA,IACAmB,SAAQ;AAAA,IACRC,iBAAkBC,CAAAA,MAAQ;AACxBA,MAAAA,EAAIpD,aAAa,eAAe,MAAM,GACtCoD,EAAIpD,aAAa,QAAQ,MAAM,GAC/BP,EAAyB2D,GAAKzD,GAAMC,GAAQC,CAAI;AAAA,IAClD;AAAA,EAAA,CACD,CACE;AAET,CAAC;AAEDU,GAAK8C,cAAc;"}
|
|
1
|
+
{"version":3,"file":"index5.js","sources":["../src/components/Icon/index.tsx"],"sourcesContent":["// TODO: `applyAttributesToElement` recursion drops `size` for nested elements (pre-existing).\nimport React from 'react';\nimport { ReactSVG } from 'react-svg';\nimport { getA11yNameAttributes, useAccessiblePress } from '../../utils/a11y';\n\n// Dynamically import icons using Vite's asset handling\nconst ICON_MAP: Record<string, string> = (import.meta as any).glob('/src/assets/icons/*.svg', {\n eager: true,\n query: '?url',\n import: 'default'\n});\n\nexport type RotationTypes = '0' | '45' | '90' | '135' | '180' | '225' | '270' | '315';\n\nexport type IconProps = {\n name: string;\n className?: string;\n onClick?: () => void;\n /**\n * Accessible name when Icon is interactive (onClick is provided).\n * If omitted, we fall back to `name` and warn in development.\n */\n ariaLabel?: string;\n /**\n * ID(s) of visible element(s) that label this Icon when interactive.\n * Preferred over ariaLabel when a visible label exists (keeps SR and visual text in sync).\n */\n ariaLabelledBy?: string;\n /**\n * ID(s) of element(s) that describe this Icon when interactive (additional context).\n */\n ariaDescribedBy?: string;\n /**\n * Toggle state when Icon is used as a button (e.g., show/hide sidebar).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaPressed?: boolean;\n /**\n * Expansion state when Icon controls a collapsible region/panel.\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaExpanded?: boolean;\n /**\n * ID of the element controlled by this Icon (for aria-controls).\n * Only applies when `onClick` is provided (interactive icon).\n */\n ariaControls?: string;\n fill?: string;\n stroke?: string;\n rotation?: RotationTypes;\n size?: number;\n shouldStopPropagation?: boolean;\n automationId?: string;\n id?: string;\n tabIndex?: number;\n disabled?: boolean;\n onFocus?: React.FocusEventHandler<HTMLDivElement>;\n onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;\n};\n\nconst applyAttributesToElement = (element: Element, fill?: string, stroke?: string, size?: number) => {\n // Only modify existing attributes\n if (fill && element.hasAttribute('fill')) {\n const currentFill = element.getAttribute('fill');\n // Only update if the current fill is not \"none\"\n if (currentFill !== 'none') {\n element.setAttribute('fill', fill);\n }\n }\n\n if (stroke && element.hasAttribute('stroke')) {\n element.setAttribute('stroke', stroke);\n }\n\n if (size && element.hasAttribute('width')) {\n element.setAttribute('width', size.toString());\n }\n\n if (size && element.hasAttribute('height')) {\n element.setAttribute('height', size.toString());\n }\n\n // Recursively apply to all child elements\n Array.from(element.children).forEach((child) => {\n applyAttributesToElement(child, fill, stroke);\n });\n};\n\nexport const Icon = React.forwardRef<HTMLDivElement, IconProps>((props, ref) => {\n const {\n name = '',\n className = '',\n onClick,\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaPressed,\n ariaExpanded,\n ariaControls,\n fill,\n stroke,\n rotation = '0',\n size,\n shouldStopPropagation = false,\n tabIndex: tabIndexProp = 0,\n id,\n disabled = false,\n automationId,\n onFocus,\n onKeyDown\n } = props;\n const iconRotationClasses = {\n '0': 'rotate-0',\n '45': 'rotate-45',\n '90': 'rotate-90',\n '135': 'rotate-[135deg]',\n '180': 'rotate-180',\n '225': 'rotate-[225deg]',\n '270': '-rotate-90',\n '315': '-rotate-45'\n };\n const src = ICON_MAP[`/src/assets/icons/${name}.svg`];\n\n if (!src) {\n console.error(`Icon \"${name}\" not found in ICON_MAP.`);\n return null;\n }\n\n const isInteractive = typeof onClick === 'function';\n const computedAriaLabel = ariaLabel || name;\n\n if (isInteractive && !ariaLabel && (import.meta as { env?: { DEV?: boolean } }).env?.DEV) {\n // eslint-disable-next-line no-console\n console.warn(\n `[se-design/Icon] Missing ariaLabel for clickable icon \"${name}\". ` +\n `Falling back to aria-label=\"${computedAriaLabel}\".`\n );\n }\n\n const { pressProps, role, tabIndex, isDisabled } = useAccessiblePress({\n isNative: false,\n onClick: isInteractive ? () => onClick?.() : undefined,\n disabled: isInteractive ? disabled : false,\n stopPropagation: shouldStopPropagation,\n tabIndex: tabIndexProp\n });\n\n // Compute accessible name/description props with correct precedence (aligns with Button/Link).\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel: computedAriaLabel,\n ariaLabelledBy,\n ariaDescribedBy\n });\n\n const interactiveProps = isInteractive\n ? {\n ...pressProps,\n role,\n tabIndex,\n ...accessibleNameProps,\n 'aria-pressed': ariaPressed,\n 'aria-expanded': ariaExpanded,\n 'aria-controls': ariaControls || undefined,\n onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => { pressProps.onKeyDown?.(e); onKeyDown?.(e); }\n }\n : undefined;\n\n return (\n <div\n ref={ref}\n className={`se-design-svg-wrapper transition-transform duration-250 ease-linear rounded-[3px] ${\n isInteractive ? `${isDisabled ? 'opacity-50 cursor-default' : 'cursor-pointer focus-outline'}` : ''\n } ${className} ${iconRotationClasses[rotation]}`}\n id={id}\n aria-hidden={!isInteractive ? 'true' : undefined}\n {...interactiveProps}\n onFocus={onFocus}\n data-automation-id={automationId}\n >\n <ReactSVG\n src={src}\n wrapper=\"span\"\n beforeInjection={(svg) => {\n svg.setAttribute('aria-hidden', 'true');\n svg.setAttribute('role', 'none');\n applyAttributesToElement(svg, fill, stroke, size);\n }}\n />\n </div>\n );\n});\n\nIcon.displayName = 'Icon';\n"],"names":["ICON_MAP","import","applyAttributesToElement","element","fill","stroke","size","hasAttribute","getAttribute","setAttribute","toString","Array","from","children","forEach","child","Icon","React","forwardRef","props","ref","name","className","onClick","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaPressed","ariaExpanded","ariaControls","rotation","shouldStopPropagation","tabIndex","tabIndexProp","id","disabled","automationId","onFocus","onKeyDown","iconRotationClasses","src","console","error","isInteractive","computedAriaLabel","pressProps","role","isDisabled","useAccessiblePress","isNative","undefined","stopPropagation","accessibleNameProps","getA11yNameAttributes","interactiveProps","e","createElement","_extends","ReactSVG","wrapper","beforeInjection","svg","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAMA,KAAoCC,uBAAAA,OAAAA;AAAAA,EAAAA,gCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,kCAAAA;AAAAA,EAAAA,4BAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,oCAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,yCAAAA;AAAAA,EAAAA,2CAAAA;AAAAA,EAAAA,8BAAAA;AAAAA,EAAAA,sCAAAA;AAAAA,EAAAA,iDAAAA;AAAAA,EAAAA,gDAAAA;AAAAA,EAAAA,2CAAAA;AAAAA,EAAAA,wCAAAA;AAAAA,EAAAA,uCAAAA;AAAAA,EAAAA,6CAAAA;AAAAA,EAAAA,8CAAAA;AAAAA,EAAAA,6CAAAA;AAAAA,EAAAA,wCAAAA;AAAAA,EAAAA,uCAAAA;AAAAA,EAAAA,wCAAAA;AAAAA,EAAAA,mCAAAA;AAAAA,EAAAA,iC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/dist/index6.js
CHANGED
package/dist/index62.js
CHANGED
|
@@ -2,7 +2,7 @@ import F, { useState as ot, useRef as X, useEffect as $ } from "react";
|
|
|
2
2
|
import { createPortal as nt } from "react-dom";
|
|
3
3
|
import { Icon as it } from "./index5.js";
|
|
4
4
|
import { Button as rt } from "./index3.js";
|
|
5
|
-
import { debounce as lt } from "./
|
|
5
|
+
import { debounce as lt } from "./index205.js";
|
|
6
6
|
const q = 500, S = 50, U = 150, st = {
|
|
7
7
|
"top-left": {
|
|
8
8
|
rotate: "315",
|
package/dist/index64.js
CHANGED
|
@@ -4,8 +4,8 @@ import { Badge as J } from "./index9.js";
|
|
|
4
4
|
import { Icon as K } from "./index5.js";
|
|
5
5
|
import { Link as E } from "./index63.js";
|
|
6
6
|
import { CustomModal as O } from "./index12.js";
|
|
7
|
-
import { useFocusTrap as Q } from "./
|
|
8
|
-
import { useStableId as T } from "./
|
|
7
|
+
import { useFocusTrap as Q } from "./index228.js";
|
|
8
|
+
import { useStableId as T } from "./index189.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
const U = {
|
|
11
11
|
lg: {
|
package/dist/index8.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import o from "react";
|
|
2
|
-
import { useStableId as k } from "./
|
|
2
|
+
import { useStableId as k } from "./index189.js";
|
|
3
3
|
import { getA11yNameAttributes as A } from "./index70.js";
|
|
4
4
|
import { useAccessiblePress as O } from "./index66.js";
|
|
5
|
-
import { mergeIds as C } from "./
|
|
5
|
+
import { mergeIds as C } from "./index190.js";
|
|
6
6
|
function l() {
|
|
7
7
|
return l = Object.assign ? Object.assign.bind() : function(t) {
|
|
8
8
|
for (var a = 1; a < arguments.length; a++) {
|
package/package.json
CHANGED
package/dist/index215.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import u, { forwardRef as c } from "react";
|
|
2
|
-
import { Button as p } from "./index3.js";
|
|
3
|
-
const b = /* @__PURE__ */ c(({
|
|
4
|
-
id: t,
|
|
5
|
-
label: e,
|
|
6
|
-
isSelected: a,
|
|
7
|
-
isDisabled: r = !1,
|
|
8
|
-
panelId: o,
|
|
9
|
-
tabIndex: l,
|
|
10
|
-
className: n = "",
|
|
11
|
-
automationId: d,
|
|
12
|
-
onClick: s,
|
|
13
|
-
onFocus: f,
|
|
14
|
-
onKeyDown: i
|
|
15
|
-
}, m) => /* @__PURE__ */ u.createElement(p, {
|
|
16
|
-
ref: m,
|
|
17
|
-
type: "unstyled",
|
|
18
|
-
label: e,
|
|
19
|
-
disabled: r,
|
|
20
|
-
onClick: s,
|
|
21
|
-
className: n,
|
|
22
|
-
automationId: d,
|
|
23
|
-
role: "tab",
|
|
24
|
-
id: t,
|
|
25
|
-
"aria-selected": a,
|
|
26
|
-
"aria-controls": o,
|
|
27
|
-
tabIndex: l,
|
|
28
|
-
onFocus: f,
|
|
29
|
-
onKeyDown: i
|
|
30
|
-
}));
|
|
31
|
-
b.displayName = "TabButton";
|
|
32
|
-
export {
|
|
33
|
-
b as TabButton
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=index215.js.map
|
package/dist/index215.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index215.js","sources":["../src/components/NavigationBar/TabButton.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Button } from '../Button';\n\nexport interface TabButtonProps {\n id: string;\n label: string;\n isSelected: boolean;\n isDisabled?: boolean;\n panelId: string;\n tabIndex: number;\n className?: string;\n automationId?: string;\n onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;\n onFocus: () => void;\n onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => void;\n}\n\n/**\n * Internal TabButton component for NavigationBar.\n * Uses Button (unstyled) internally for consistent activation handling.\n * Supports forwardRef for focus management (roving tabindex).\n */\nexport const TabButton = forwardRef<HTMLButtonElement, TabButtonProps>(\n (\n {\n id,\n label,\n isSelected,\n isDisabled = false,\n panelId,\n tabIndex,\n className = '',\n automationId,\n onClick,\n onFocus,\n onKeyDown\n },\n ref\n ) => {\n return (\n <Button\n ref={ref}\n type=\"unstyled\"\n label={label}\n disabled={isDisabled}\n onClick={onClick}\n className={className}\n automationId={automationId}\n role=\"tab\"\n id={id}\n aria-selected={isSelected}\n aria-controls={panelId}\n tabIndex={tabIndex}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n />\n );\n }\n);\n\nTabButton.displayName = 'TabButton';\n"],"names":["React__default","forwardRef","Button","TabButton","id","label","isSelected","isDisabled","panelId","tabIndex","className","automationId","onClick","onFocus","onKeyDown","ref","React","createElement","type","disabled","role","displayName"],"mappings":"AAsBO,OAAAA,KAAA,cAAAC,SAAA;AAAA,SAAA,UAAAC,SAAA;AAAA,MAAMC,sBACX,CACE;AAAA,EACEC,IAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,YAAAA,IAAa;AAAA,EACbC,SAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA,IAAY;AAAA,EACZC,cAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,WAAAA;AACF,GACAC,MAGEC,gBAAAA,EAAAC,cAACf,GAAM;AAAA,EACLa,KAAAA;AAAAA,EACAG,MAAK;AAAA,EACLb,OAAAA;AAAAA,EACAc,UAAUZ;AAAAA,EACVK,SAAAA;AAAAA,EACAF,WAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAS,MAAK;AAAA,EACLhB,IAAAA;AAAAA,EACA,iBAAeE;AAAAA,EACf,iBAAeE;AAAAA,EACfC,UAAAA;AAAAA,EACAI,SAAAA;AAAAA,EACAC,WAAAA;AAAAA,CACD,CAGP;AAEAX,EAAUkB,cAAc;"}
|