@pie-element/multi-trait-rubric 0.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/dist/author/common.d.ts +91 -0
- package/dist/author/common.d.ts.map +1 -0
- package/dist/author/common.js +275 -0
- package/dist/author/defaults.d.ts +154 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +113 -0
- package/dist/author/index.d.ts +23 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +89 -0
- package/dist/author/main.d.ts +44 -0
- package/dist/author/main.d.ts.map +1 -0
- package/dist/author/main.js +249 -0
- package/dist/author/modals.d.ts +95 -0
- package/dist/author/modals.d.ts.map +1 -0
- package/dist/author/modals.js +171 -0
- package/dist/author/scale.d.ts +47 -0
- package/dist/author/scale.d.ts.map +1 -0
- package/dist/author/scale.js +280 -0
- package/dist/author/trait.d.ts +71 -0
- package/dist/author/trait.d.ts.map +1 -0
- package/dist/author/trait.js +202 -0
- package/dist/author/traitsHeader.d.ts +29 -0
- package/dist/author/traitsHeader.d.ts.map +1 -0
- package/dist/author/traitsHeader.js +172 -0
- package/dist/author/utils.d.ts +11 -0
- package/dist/author/utils.d.ts.map +1 -0
- package/dist/author/utils.js +41 -0
- package/dist/controller/defaults.d.ts +21 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +14 -0
- package/dist/controller/index.d.ts +27 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +57 -0
- package/dist/controller/utils.d.ts +10 -0
- package/dist/controller/utils.d.ts.map +1 -0
- package/dist/controller/utils.js +4 -0
- package/dist/delivery/index.d.ts +18 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +37 -0
- package/dist/delivery/main.d.ts +16 -0
- package/dist/delivery/main.d.ts.map +1 -0
- package/dist/delivery/main.js +95 -0
- package/dist/delivery/scale.d.ts +18 -0
- package/dist/delivery/scale.d.ts.map +1 -0
- package/dist/delivery/scale.js +175 -0
- package/dist/delivery/trait.d.ts +28 -0
- package/dist/delivery/trait.d.ts.map +1 -0
- package/dist/delivery/trait.js +44 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +145 -0
- package/dist/index.js +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +19 -0
- package/package.json +70 -0
- package/src/author/common.tsx +473 -0
- package/src/author/defaults.tsx +157 -0
- package/src/author/index.ts +174 -0
- package/src/author/main.tsx +407 -0
- package/src/author/modals.tsx +254 -0
- package/src/author/scale.tsx +453 -0
- package/src/author/trait.tsx +305 -0
- package/src/author/traitsHeader.tsx +301 -0
- package/src/author/utils.ts +83 -0
- package/src/controller/defaults.ts +21 -0
- package/src/controller/index.ts +137 -0
- package/src/controller/utils.ts +13 -0
- package/src/delivery/index.ts +61 -0
- package/src/delivery/main.tsx +140 -0
- package/src/delivery/scale.tsx +313 -0
- package/src/delivery/trait.tsx +86 -0
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseUnary.js";
|
|
2
|
+
import t from "./_nodeUtil.js";
|
|
3
|
+
import n from "./_baseIsSet.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js
|
|
5
|
+
var r = t && t.isSet, i = r ? e(r) : n;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./_baseGetTag.js";
|
|
2
|
+
import t from "./isObjectLike.js";
|
|
3
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js
|
|
4
|
+
var n = "[object Symbol]";
|
|
5
|
+
function r(r) {
|
|
6
|
+
return typeof r == "symbol" || t(r) && e(r) == n;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "./_baseIsTypedArray.js";
|
|
2
|
+
import t from "./_baseUnary.js";
|
|
3
|
+
import n from "./_nodeUtil.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js
|
|
5
|
+
var r = n && n.isTypedArray, i = r ? t(r) : e;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { i as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeys.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import e from "./isArrayLike.js";
|
|
2
|
+
import t from "./_arrayLikeKeys.js";
|
|
3
|
+
import n from "./_baseKeysIn.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
5
|
+
function r(r) {
|
|
6
|
+
return e(r) ? t(r, !0) : n(r);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { r as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import e from "./isSymbol.js";
|
|
2
|
+
import t from "./_baseTrim.js";
|
|
3
|
+
import n from "./isObject.js";
|
|
4
|
+
//#region ../../../node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js
|
|
5
|
+
var r = NaN, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt;
|
|
6
|
+
function c(c) {
|
|
7
|
+
if (typeof c == "number") return c;
|
|
8
|
+
if (e(c)) return r;
|
|
9
|
+
if (n(c)) {
|
|
10
|
+
var l = typeof c.valueOf == "function" ? c.valueOf() : c;
|
|
11
|
+
c = n(l) ? l + "" : l;
|
|
12
|
+
}
|
|
13
|
+
if (typeof c != "string") return c === 0 ? c : +c;
|
|
14
|
+
c = t(c);
|
|
15
|
+
var u = a.test(c);
|
|
16
|
+
return u || o.test(c) ? s(c.slice(2), u ? 2 : 8) : i.test(c) ? r : +c;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { c as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pie-element/multi-trait-rubric",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "React implementation of multi-trait-rubric element synced from pie-elements",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@emotion/react": "^11.14.0",
|
|
7
|
+
"@emotion/style": "^0.8.0",
|
|
8
|
+
"@mui/icons-material": "^7.3.4",
|
|
9
|
+
"@mui/material": "^7.3.4",
|
|
10
|
+
"@pie-lib/render-ui": "0.1.0",
|
|
11
|
+
"clsx": "^1.1.1",
|
|
12
|
+
"prop-types": "^15.6.1",
|
|
13
|
+
"@pie-lib/editable-html-tip-tap": "0.1.0",
|
|
14
|
+
"@pie-element/shared-configure-events": "0.1.0",
|
|
15
|
+
"@pie-lib/config-ui": "0.1.0",
|
|
16
|
+
"@pie-lib/drag": "0.1.0",
|
|
17
|
+
"@pie-element/shared-player-events": "0.1.0",
|
|
18
|
+
"@pie-element/shared-math-rendering-mathjax": "0.1.0",
|
|
19
|
+
"@dnd-kit/core": "6.3.1",
|
|
20
|
+
"debug": "^4.1.1",
|
|
21
|
+
"lodash-es": "^4.17.21"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^18.0.0",
|
|
25
|
+
"react-dom": "^18.0.0"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"development": "./src/index.ts",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./delivery": {
|
|
34
|
+
"development": "./src/delivery/index.ts",
|
|
35
|
+
"types": "./dist/delivery/index.d.ts",
|
|
36
|
+
"default": "./dist/delivery/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./author": {
|
|
39
|
+
"development": "./src/author/index.ts",
|
|
40
|
+
"types": "./dist/author/index.d.ts",
|
|
41
|
+
"default": "./dist/author/index.js"
|
|
42
|
+
},
|
|
43
|
+
"./controller": {
|
|
44
|
+
"development": "./src/controller/index.ts",
|
|
45
|
+
"types": "./dist/controller/index.d.ts",
|
|
46
|
+
"default": "./dist/controller/index.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"type": "module",
|
|
50
|
+
"main": "./dist/index.js",
|
|
51
|
+
"types": "./dist/index.d.ts",
|
|
52
|
+
"files": [
|
|
53
|
+
"dist",
|
|
54
|
+
"src"
|
|
55
|
+
],
|
|
56
|
+
"sideEffects": false,
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"vite": "^8.0.1",
|
|
59
|
+
"typescript": "^5.9.3",
|
|
60
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
61
|
+
"@types/react": "^18.2.0",
|
|
62
|
+
"@types/react-dom": "^18.2.0"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "bun x vite build && bun x vite build --config vite.config.iife.ts && bun x tsc --emitDeclarationOnly",
|
|
66
|
+
"dev": "bun x vite",
|
|
67
|
+
"demo": "bun x vite --mode demo",
|
|
68
|
+
"test": "bun x vitest run"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
/**
|
|
3
|
+
* @synced-from pie-elements/packages/multi-trait-rubric/configure/src/common.jsx
|
|
4
|
+
* @auto-generated
|
|
5
|
+
*
|
|
6
|
+
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
7
|
+
* Manual edits will be overwritten on next sync.
|
|
8
|
+
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { styled } from '@mui/material/styles';
|
|
13
|
+
import EditableHtml from '@pie-lib/editable-html-tip-tap';
|
|
14
|
+
import Select from '@mui/material/Select';
|
|
15
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
16
|
+
import InputBase from '@mui/material/InputBase';
|
|
17
|
+
import { color, InputContainer as InputContainerImport } from '@pie-lib/render-ui';
|
|
18
|
+
|
|
19
|
+
function isRenderableReactInteropType(value: any) {
|
|
20
|
+
return (
|
|
21
|
+
typeof value === 'function' ||
|
|
22
|
+
(typeof value === 'object' && value !== null && typeof value.$$typeof === 'symbol')
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function unwrapReactInteropSymbol(maybeSymbol: any, namedExport?: string) {
|
|
27
|
+
if (!maybeSymbol) return maybeSymbol;
|
|
28
|
+
if (isRenderableReactInteropType(maybeSymbol)) return maybeSymbol;
|
|
29
|
+
if (isRenderableReactInteropType(maybeSymbol.default)) return maybeSymbol.default;
|
|
30
|
+
if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport])) {
|
|
31
|
+
return maybeSymbol[namedExport];
|
|
32
|
+
}
|
|
33
|
+
if (namedExport && isRenderableReactInteropType(maybeSymbol[namedExport]?.default)) {
|
|
34
|
+
return maybeSymbol[namedExport].default;
|
|
35
|
+
}
|
|
36
|
+
return maybeSymbol;
|
|
37
|
+
}
|
|
38
|
+
const InputContainer = unwrapReactInteropSymbol(InputContainerImport, 'InputContainer') || unwrapReactInteropSymbol(renderUi.InputContainer, 'InputContainer');
|
|
39
|
+
import * as RenderUiNamespace from '@pie-lib/render-ui';
|
|
40
|
+
const renderUiNamespaceAny = RenderUiNamespace as any;
|
|
41
|
+
const renderUiDefaultMaybe = renderUiNamespaceAny['default'];
|
|
42
|
+
const renderUi =
|
|
43
|
+
renderUiDefaultMaybe && typeof renderUiDefaultMaybe === 'object'
|
|
44
|
+
? renderUiDefaultMaybe
|
|
45
|
+
: renderUiNamespaceAny;
|
|
46
|
+
import { grey } from '@mui/material/colors';
|
|
47
|
+
|
|
48
|
+
import { filteredDefaultPlugins } from './utils.js';
|
|
49
|
+
|
|
50
|
+
const InputHeight = '120px';
|
|
51
|
+
export const BlockWidth = 200;
|
|
52
|
+
export const PrimaryBlockWidth = 200;
|
|
53
|
+
export const DragHandleSpace = 32;
|
|
54
|
+
export const HeaderHeight = '100px';
|
|
55
|
+
export const HeaderHeightLarge = '160px';
|
|
56
|
+
const greyBorder = `solid 1px ${grey[400]}`;
|
|
57
|
+
const Padding = '8px 4px';
|
|
58
|
+
|
|
59
|
+
// global styles for EditableHtml components
|
|
60
|
+
const GlobalStyles: any = styled('div')(({ theme }) => ({
|
|
61
|
+
fontFamily: 'Cerebri',
|
|
62
|
+
|
|
63
|
+
'& .editable-label': {
|
|
64
|
+
textAlign: 'left',
|
|
65
|
+
flex: 1,
|
|
66
|
+
border: 'none',
|
|
67
|
+
|
|
68
|
+
'& div:not(.tiptap)': {
|
|
69
|
+
padding: 0,
|
|
70
|
+
border: 'none',
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
'& > div:first-of-type': {
|
|
74
|
+
borderLeft: greyBorder,
|
|
75
|
+
borderRadius: 0,
|
|
76
|
+
padding: Padding,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
'& .editable-level': {
|
|
81
|
+
background: theme.palette.common.white,
|
|
82
|
+
width: '60%',
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
'& .underlined-editable-level': {
|
|
86
|
+
background: theme.palette.common.white,
|
|
87
|
+
width: '100%',
|
|
88
|
+
padding: 0,
|
|
89
|
+
border: 'none',
|
|
90
|
+
|
|
91
|
+
'& > div:first-of-type': {
|
|
92
|
+
borderBottom: greyBorder,
|
|
93
|
+
borderRadius: 0,
|
|
94
|
+
padding: Padding,
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
'& .expanded-input-prompt': {
|
|
99
|
+
border: 'none',
|
|
100
|
+
margin: '10px',
|
|
101
|
+
marginTop: 0,
|
|
102
|
+
'& > div:first-of-type': {
|
|
103
|
+
border: greyBorder,
|
|
104
|
+
borderRadius: '4px',
|
|
105
|
+
padding: Padding,
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
'& .tiptap': {
|
|
109
|
+
fontFamily: 'Cerebri',
|
|
110
|
+
height: InputHeight,
|
|
111
|
+
padding: 0
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
}));
|
|
115
|
+
|
|
116
|
+
const StyledButton: any = styled('div')(({ theme }) => ({
|
|
117
|
+
fontSize: theme.typography.fontSize + 2,
|
|
118
|
+
textAlign: 'right',
|
|
119
|
+
display: 'flex',
|
|
120
|
+
flexDirection: 'row',
|
|
121
|
+
alignItems: 'flex-start',
|
|
122
|
+
padding: `${theme.spacing(1.5)} ${theme.spacing(2)}`,
|
|
123
|
+
width: '114px',
|
|
124
|
+
background: color.secondaryBackground(),
|
|
125
|
+
borderRadius: '4px',
|
|
126
|
+
justifyContent: 'space-around',
|
|
127
|
+
color: color.text(),
|
|
128
|
+
cursor: 'pointer',
|
|
129
|
+
}));
|
|
130
|
+
|
|
131
|
+
export const MultiTraitButton = ({ children, onClick }) => (
|
|
132
|
+
<StyledButton onClick={onClick}>
|
|
133
|
+
<strong>+</strong>
|
|
134
|
+
<div>{children}</div>
|
|
135
|
+
</StyledButton>
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
export const PrimaryBlock: any = styled('div')({
|
|
139
|
+
width: `${PrimaryBlockWidth}px`,
|
|
140
|
+
minWidth: `${PrimaryBlockWidth}px`,
|
|
141
|
+
position: 'relative',
|
|
142
|
+
padding: '0 10px',
|
|
143
|
+
boxSizing: 'border-box',
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
export const Block: any = styled('div')(({ theme }) => ({
|
|
147
|
+
width: `${BlockWidth}px`,
|
|
148
|
+
minWidth: `${BlockWidth}px`,
|
|
149
|
+
'& ul, ol': {
|
|
150
|
+
marginBlockStart: 0,
|
|
151
|
+
paddingInlineStart: theme.spacing(2),
|
|
152
|
+
},
|
|
153
|
+
}));
|
|
154
|
+
|
|
155
|
+
const StyledSecondaryBlock: any = styled('div')({
|
|
156
|
+
display: 'flex',
|
|
157
|
+
overflowX: 'hidden',
|
|
158
|
+
overflowY: 'hidden',
|
|
159
|
+
alignItems: 'flex-end',
|
|
160
|
+
// this is needed to show the editor toolbar!!!
|
|
161
|
+
paddingBottom: '30px',
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
export const SecondaryBlock = ({ children, setRef, width }) => (
|
|
165
|
+
<StyledSecondaryBlock style={{ width: width }} ref={setRef}>
|
|
166
|
+
{children}
|
|
167
|
+
</StyledSecondaryBlock>
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
export const Row = (({ children, height }) => (
|
|
171
|
+
<div
|
|
172
|
+
style={{
|
|
173
|
+
display: 'flex',
|
|
174
|
+
height,
|
|
175
|
+
}}
|
|
176
|
+
>
|
|
177
|
+
{children}
|
|
178
|
+
</div>
|
|
179
|
+
));
|
|
180
|
+
|
|
181
|
+
const ScorePointBoxWrapper: any = styled('div')({
|
|
182
|
+
padding: '0 10px',
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
const ScorePointBox: any = styled('div')({
|
|
186
|
+
display: 'flex',
|
|
187
|
+
borderRadius: '4px',
|
|
188
|
+
background: 'white',
|
|
189
|
+
flexDirection: 'row',
|
|
190
|
+
alignItems: 'center',
|
|
191
|
+
justifyContent: 'space-between',
|
|
192
|
+
border: greyBorder,
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
const ScorePointBoxDisabled: any = styled('div')({
|
|
196
|
+
display: 'flex',
|
|
197
|
+
borderRadius: '4px',
|
|
198
|
+
background: 'none',
|
|
199
|
+
flexDirection: 'row',
|
|
200
|
+
alignItems: 'center',
|
|
201
|
+
justifyContent: 'center',
|
|
202
|
+
border: '0',
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
const SubLabel: any = styled('div')({
|
|
206
|
+
width: '24px',
|
|
207
|
+
textAlign: 'center',
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
export const ScorePoint = ({
|
|
211
|
+
error = '',
|
|
212
|
+
scorePointsValue,
|
|
213
|
+
scoreDescriptor,
|
|
214
|
+
pluginProps,
|
|
215
|
+
onChange,
|
|
216
|
+
showScorePointLabels,
|
|
217
|
+
alignToRight,
|
|
218
|
+
spellCheck,
|
|
219
|
+
uploadSoundSupport,
|
|
220
|
+
imageSupport = {},
|
|
221
|
+
mathMlOptions = {},
|
|
222
|
+
}) => {
|
|
223
|
+
const ScorePointBoxComponent = showScorePointLabels ? ScorePointBox : ScorePointBoxDisabled;
|
|
224
|
+
|
|
225
|
+
return (
|
|
226
|
+
<GlobalStyles>
|
|
227
|
+
<ScorePointBoxWrapper>
|
|
228
|
+
<ScorePointBoxComponent>
|
|
229
|
+
<SubLabel>{scorePointsValue}</SubLabel>
|
|
230
|
+
|
|
231
|
+
{showScorePointLabels ? (
|
|
232
|
+
<EditableHtml
|
|
233
|
+
className="editable-label"
|
|
234
|
+
error={error}
|
|
235
|
+
markup={scoreDescriptor}
|
|
236
|
+
placeholder=" Enter Label"
|
|
237
|
+
onChange={onChange}
|
|
238
|
+
pluginProps={pluginProps}
|
|
239
|
+
activePlugins={filteredDefaultPlugins}
|
|
240
|
+
spellCheck={spellCheck}
|
|
241
|
+
toolbarOpts={alignToRight ? { alignment: 'right' } : {}}
|
|
242
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
243
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
244
|
+
mathMlOptions={mathMlOptions}
|
|
245
|
+
imageSupport={imageSupport}
|
|
246
|
+
autoWidthToolbar
|
|
247
|
+
/>
|
|
248
|
+
) : null}
|
|
249
|
+
</ScorePointBoxComponent>
|
|
250
|
+
</ScorePointBoxWrapper>
|
|
251
|
+
</GlobalStyles>
|
|
252
|
+
);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
const StyledBootstrapInput: any = styled(InputBase)(({ theme }) => ({
|
|
256
|
+
'&.MuiInputBase-root': {
|
|
257
|
+
background: theme.palette.common.white,
|
|
258
|
+
marginTop: theme.spacing(1),
|
|
259
|
+
'label + &': {
|
|
260
|
+
width: '80px',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
'& .MuiInputBase-input': {
|
|
264
|
+
borderRadius: '4px',
|
|
265
|
+
position: 'relative',
|
|
266
|
+
border: greyBorder,
|
|
267
|
+
fontSize: theme.typography.fontSize,
|
|
268
|
+
fontFamily: 'Cerebri Sans',
|
|
269
|
+
padding: `${theme.spacing(1)} ${theme.spacing(1.5)}`,
|
|
270
|
+
|
|
271
|
+
'&:focus': {
|
|
272
|
+
borderRadius: '4px',
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
}));
|
|
276
|
+
|
|
277
|
+
const createMaxScoreOptions = (maxMaxPoints) => Array.from({ length: maxMaxPoints }, (_, i) => i + 1);
|
|
278
|
+
|
|
279
|
+
export const MaxPointsPicker = ({ maxPoints, onChange, maxMaxPoints }) => (
|
|
280
|
+
<InputContainer label="Max Points">
|
|
281
|
+
<Select
|
|
282
|
+
value={maxPoints}
|
|
283
|
+
onChange={onChange}
|
|
284
|
+
input={<StyledBootstrapInput />}
|
|
285
|
+
MenuProps={{
|
|
286
|
+
transitionDuration: {
|
|
287
|
+
enter: 225,
|
|
288
|
+
exit: 195
|
|
289
|
+
}
|
|
290
|
+
}}
|
|
291
|
+
>
|
|
292
|
+
{createMaxScoreOptions(maxMaxPoints).map((maxScore) => (
|
|
293
|
+
<MenuItem key={`menu-item-${maxScore}`} value={maxScore}>
|
|
294
|
+
{maxScore}
|
|
295
|
+
</MenuItem>
|
|
296
|
+
))}
|
|
297
|
+
</Select>
|
|
298
|
+
</InputContainer>
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
const SimpleInputWrapper: any = styled('div')(({ theme }) => ({
|
|
302
|
+
display: 'flex',
|
|
303
|
+
justifyContent: 'space-between',
|
|
304
|
+
alignItems: 'center',
|
|
305
|
+
margin: `${theme.spacing(1.5)} 0`,
|
|
306
|
+
}));
|
|
307
|
+
|
|
308
|
+
export const SimpleInput = ({
|
|
309
|
+
markup,
|
|
310
|
+
onChange,
|
|
311
|
+
pluginProps,
|
|
312
|
+
label,
|
|
313
|
+
spellCheck,
|
|
314
|
+
uploadSoundSupport,
|
|
315
|
+
mathMlOptions = {},
|
|
316
|
+
imageSupport = {},
|
|
317
|
+
}) => (
|
|
318
|
+
<GlobalStyles>
|
|
319
|
+
<SimpleInputWrapper>
|
|
320
|
+
{label && <div>{label}</div>}
|
|
321
|
+
|
|
322
|
+
<EditableHtml
|
|
323
|
+
className="editable-level"
|
|
324
|
+
markup={markup}
|
|
325
|
+
onChange={onChange}
|
|
326
|
+
placeholder="Trait Label"
|
|
327
|
+
pluginProps={pluginProps}
|
|
328
|
+
activePlugins={filteredDefaultPlugins}
|
|
329
|
+
spellCheck={spellCheck}
|
|
330
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
331
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
332
|
+
mathMlOptions={mathMlOptions}
|
|
333
|
+
imageSupport={imageSupport}
|
|
334
|
+
autoWidthToolbar
|
|
335
|
+
/>
|
|
336
|
+
</SimpleInputWrapper>
|
|
337
|
+
</GlobalStyles>
|
|
338
|
+
);
|
|
339
|
+
|
|
340
|
+
const UnderlinedInputWrapper: any = styled('div')({
|
|
341
|
+
width: '100%',
|
|
342
|
+
display: 'flex',
|
|
343
|
+
justifyContent: 'center',
|
|
344
|
+
alignItems: 'center',
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
export const UnderlinedInput = ({
|
|
348
|
+
error,
|
|
349
|
+
markup,
|
|
350
|
+
onChange,
|
|
351
|
+
pluginProps,
|
|
352
|
+
label,
|
|
353
|
+
placeholder,
|
|
354
|
+
spellCheck,
|
|
355
|
+
uploadSoundSupport,
|
|
356
|
+
imageSupport = {},
|
|
357
|
+
mathMlOptions = {},
|
|
358
|
+
}) => (
|
|
359
|
+
<GlobalStyles>
|
|
360
|
+
<UnderlinedInputWrapper>
|
|
361
|
+
{label && <div>{label}</div>}
|
|
362
|
+
|
|
363
|
+
<EditableHtml
|
|
364
|
+
className="underlined-editable-level"
|
|
365
|
+
error={error}
|
|
366
|
+
markup={markup}
|
|
367
|
+
onChange={onChange}
|
|
368
|
+
placeholder={placeholder}
|
|
369
|
+
pluginProps={pluginProps}
|
|
370
|
+
activePlugins={filteredDefaultPlugins}
|
|
371
|
+
spellCheck={spellCheck}
|
|
372
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
373
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
374
|
+
mathMlOptions={mathMlOptions}
|
|
375
|
+
imageSupport={imageSupport}
|
|
376
|
+
autoWidthToolbar
|
|
377
|
+
/>
|
|
378
|
+
</UnderlinedInputWrapper>
|
|
379
|
+
</GlobalStyles>
|
|
380
|
+
);
|
|
381
|
+
|
|
382
|
+
export const ExpandedInput = ({
|
|
383
|
+
error,
|
|
384
|
+
markup,
|
|
385
|
+
onChange,
|
|
386
|
+
pluginProps,
|
|
387
|
+
placeholder,
|
|
388
|
+
alignToRight,
|
|
389
|
+
spellCheck,
|
|
390
|
+
uploadSoundSupport,
|
|
391
|
+
mathMlOptions = {},
|
|
392
|
+
imageSupport = {},
|
|
393
|
+
}) => (
|
|
394
|
+
<GlobalStyles>
|
|
395
|
+
<EditableHtml
|
|
396
|
+
className="expanded-input-prompt"
|
|
397
|
+
error={error}
|
|
398
|
+
markup={markup}
|
|
399
|
+
onChange={onChange}
|
|
400
|
+
placeholder={placeholder}
|
|
401
|
+
pluginProps={pluginProps}
|
|
402
|
+
toolbarOpts={alignToRight ? { alignment: 'right' } : {}}
|
|
403
|
+
spellCheck={spellCheck}
|
|
404
|
+
uploadSoundSupport={uploadSoundSupport}
|
|
405
|
+
languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}
|
|
406
|
+
autoWidthToolbar
|
|
407
|
+
mathMlOptions={mathMlOptions}
|
|
408
|
+
imageSupport={imageSupport}
|
|
409
|
+
/>
|
|
410
|
+
</GlobalStyles>
|
|
411
|
+
);
|
|
412
|
+
|
|
413
|
+
export const ScaleSettings: any = styled('div')(({ theme }) => ({
|
|
414
|
+
display: 'flex',
|
|
415
|
+
justifyContent: 'space-between',
|
|
416
|
+
alignItems: 'flex-end',
|
|
417
|
+
paddingBottom: '18px',
|
|
418
|
+
gap: theme.spacing(0.25),
|
|
419
|
+
}));
|
|
420
|
+
|
|
421
|
+
const StyledArrow: any = styled('div')(({ theme }) => ({
|
|
422
|
+
position: 'absolute',
|
|
423
|
+
zIndex: 10,
|
|
424
|
+
cursor: 'pointer',
|
|
425
|
+
right: 0,
|
|
426
|
+
alignItems: 'flex-start',
|
|
427
|
+
justifyContent: 'center',
|
|
428
|
+
background: `linear-gradient(to left, ${theme.palette.common.white}, ${color.background()})`,
|
|
429
|
+
boxSizing: 'border-box',
|
|
430
|
+
}));
|
|
431
|
+
|
|
432
|
+
const StyledInnerGrey: any = styled('div')(({ theme }) => ({
|
|
433
|
+
position: 'absolute',
|
|
434
|
+
zIndex: 11,
|
|
435
|
+
cursor: 'pointer',
|
|
436
|
+
right: 0,
|
|
437
|
+
alignItems: 'flex-start',
|
|
438
|
+
justifyContent: 'center',
|
|
439
|
+
background: `linear-gradient(to left, ${theme.palette.common.white}, ${color.background()})`,
|
|
440
|
+
boxSizing: 'border-box',
|
|
441
|
+
'& svg': {
|
|
442
|
+
position: 'absolute',
|
|
443
|
+
bottom: '-24px',
|
|
444
|
+
},
|
|
445
|
+
}));
|
|
446
|
+
|
|
447
|
+
export const Arrow = ({ children, show, width, onClick, left, showLevelTagInput }) => (
|
|
448
|
+
<StyledArrow
|
|
449
|
+
style={{
|
|
450
|
+
height: '-webkit-fill-available',
|
|
451
|
+
display: show ? 'flex' : 'none',
|
|
452
|
+
width: width,
|
|
453
|
+
left: left,
|
|
454
|
+
background: left ? `linear-gradient(to right, white, ${color.background()})` : undefined,
|
|
455
|
+
}}
|
|
456
|
+
onClick={onClick}
|
|
457
|
+
>
|
|
458
|
+
<StyledInnerGrey
|
|
459
|
+
style={{
|
|
460
|
+
display: show ? 'flex' : 'none',
|
|
461
|
+
width: width,
|
|
462
|
+
height: showLevelTagInput ? HeaderHeightLarge : HeaderHeight,
|
|
463
|
+
left: 0,
|
|
464
|
+
background: left
|
|
465
|
+
? `linear-gradient(to right, ${color.secondaryBackground()}, ${color.background()})`
|
|
466
|
+
: undefined,
|
|
467
|
+
}}
|
|
468
|
+
onClick={onClick}
|
|
469
|
+
>
|
|
470
|
+
{children}
|
|
471
|
+
</StyledInnerGrey>
|
|
472
|
+
</StyledArrow>
|
|
473
|
+
);
|