@payloadcms/richtext-lexical 3.39.0-internal.32c7661 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/exports/client/bundled.css +1 -1
  2. package/dist/exports/client/index.d.ts +1 -0
  3. package/dist/exports/client/index.d.ts.map +1 -1
  4. package/dist/exports/client/index.js +10 -10
  5. package/dist/exports/client/index.js.map +4 -4
  6. package/dist/features/experimental_table/client/utils/debounce.d.ts +4 -4
  7. package/dist/features/experimental_table/client/utils/debounce.js +4 -4
  8. package/dist/features/experimental_table/client/utils/debounce.js.map +1 -1
  9. package/dist/features/textState/defaultColors.d.ts +91 -0
  10. package/dist/features/textState/defaultColors.d.ts.map +1 -0
  11. package/dist/features/textState/defaultColors.js +386 -0
  12. package/dist/features/textState/defaultColors.js.map +1 -0
  13. package/dist/features/textState/feature.client.d.ts +3 -0
  14. package/dist/features/textState/feature.client.d.ts.map +1 -0
  15. package/dist/features/textState/feature.client.js +69 -0
  16. package/dist/features/textState/feature.client.js.map +1 -0
  17. package/dist/features/textState/feature.server.d.ts +60 -0
  18. package/dist/features/textState/feature.server.d.ts.map +1 -0
  19. package/dist/features/textState/feature.server.js +25 -0
  20. package/dist/features/textState/feature.server.js.map +1 -0
  21. package/dist/features/textState/textState.d.ts +6 -0
  22. package/dist/features/textState/textState.d.ts.map +1 -0
  23. package/dist/features/textState/textState.js +67 -0
  24. package/dist/features/textState/textState.js.map +1 -0
  25. package/dist/field/bundled.css +1 -1
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +2 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/lexical/ui/icons/TextState/index.d.ts +5 -0
  31. package/dist/lexical/ui/icons/TextState/index.d.ts.map +1 -0
  32. package/dist/lexical/ui/icons/TextState/index.js +23 -0
  33. package/dist/lexical/ui/icons/TextState/index.js.map +1 -0
  34. package/package.json +8 -7
@@ -25,12 +25,12 @@
25
25
  * @category Function
26
26
  * @param {Function} func The function to debounce.
27
27
  * @param {number} [wait=0] The number of milliseconds to delay.
28
- * @param {Object} [options={}] The options object.
29
- * @param {boolean} [options.leading=false]
28
+ * @param {Object} [sortOnOptions={}] The options object.
29
+ * @param {boolean} [sortOnOptions.leading=false]
30
30
  * Specify invoking on the leading edge of the timeout.
31
- * @param {number} [options.maxWait]
31
+ * @param {number} [sortOnOptions.maxWait]
32
32
  * The maximum time `func` is allowed to be delayed before it's invoked.
33
- * @param {boolean} [options.trailing=true]
33
+ * @param {boolean} [sortOnOptions.trailing=true]
34
34
  * Specify invoking on the trailing edge of the timeout.
35
35
  * @returns {Function} Returns the new debounced function.
36
36
  * @example
@@ -85,12 +85,12 @@ const nativeMax = Math.max,
85
85
  * @category Function
86
86
  * @param {Function} func The function to debounce.
87
87
  * @param {number} [wait=0] The number of milliseconds to delay.
88
- * @param {Object} [options={}] The options object.
89
- * @param {boolean} [options.leading=false]
88
+ * @param {Object} [sortOnOptions={}] The options object.
89
+ * @param {boolean} [sortOnOptions.leading=false]
90
90
  * Specify invoking on the leading edge of the timeout.
91
- * @param {number} [options.maxWait]
91
+ * @param {number} [sortOnOptions.maxWait]
92
92
  * The maximum time `func` is allowed to be delayed before it's invoked.
93
- * @param {boolean} [options.trailing=true]
93
+ * @param {boolean} [sortOnOptions.trailing=true]
94
94
  * Specify invoking on the trailing edge of the timeout.
95
95
  * @returns {Function} Returns the new debounced function.
96
96
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"debounce.js","names":["FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastCallTime","lastInvokeTime","lastThis","leading","maxing","maxWait","result","timerID","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","Date","now","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments"],"sources":["../../../../../src/features/experimental_table/client/utils/debounce.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck - not worth it migrate jsdoc to tsdoc\n'use client'\n// Copied & modified from https://github.com/lodash/lodash/blob/main/src/debounce.ts\n/*\nThe MIT License\n\nCopyright JS Foundation and other contributors <https://js.foundation/>\n\nBased on Underscore.js, copyright Jeremy Ashkenas,\nDocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/lodash/lodash\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n====\n\nCopyright and related rights for sample code are waived via CC0. Sample\ncode is defined as all source code displayed within the prose of the\ndocumentation.\n\nCC0: http://creativecommons.org/publicdomain/zero/1.0/\n\n====\n\nFiles located in the node_modules and vendor directories are externally\nmaintained libraries used by this software which have their own\nlicenses; we recommend you read them, as their terms may differ from the\nterms above.\n */\n\n/** Error message constants. */\nconst FUNC_ERROR_TEXT = 'Expected a function'\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nconst nativeMax = Math.max,\n nativeMin = Math.min\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n let lastArgs,\n lastCallTime,\n lastInvokeTime = 0,\n lastThis,\n leading = false,\n maxing = false,\n maxWait,\n result,\n timerID,\n trailing = true\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT)\n }\n wait = wait || 0\n if (typeof options === 'object') {\n leading = !!options.leading\n maxing = 'maxWait' in options\n maxWait = maxing ? nativeMax(options.maxWait || 0, wait) : maxWait\n trailing = 'trailing' in options ? !!options.trailing : trailing\n }\n\n function invokeFunc(time) {\n const args = lastArgs,\n thisArg = lastThis\n\n lastArgs = lastThis = undefined\n lastInvokeTime = time\n result = func.apply(thisArg, args)\n return result\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time\n // Start the timer for the trailing edge.\n timerID = setTimeout(timerExpired, wait)\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result\n }\n\n function remainingWait(time) {\n const timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall\n\n return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting\n }\n\n function shouldInvoke(time) {\n const timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n lastCallTime === undefined ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n )\n }\n\n function timerExpired() {\n const time = Date.now()\n if (shouldInvoke(time)) {\n return trailingEdge(time)\n }\n // Restart the timer.\n timerID = setTimeout(timerExpired, remainingWait(time))\n }\n\n function trailingEdge(time) {\n timerID = undefined\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time)\n }\n lastArgs = lastThis = undefined\n return result\n }\n\n function cancel() {\n if (timerID !== undefined) {\n clearTimeout(timerID)\n }\n lastInvokeTime = 0\n lastArgs = lastCallTime = lastThis = timerID = undefined\n }\n\n function flush() {\n return timerID === undefined ? result : trailingEdge(Date.now())\n }\n\n function debounced() {\n const time = Date.now(),\n isInvoking = shouldInvoke(time)\n\n // eslint-disable-next-line prefer-rest-params\n lastArgs = arguments\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n lastThis = this\n lastCallTime = time\n\n if (isInvoking) {\n if (timerID === undefined) {\n return leadingEdge(lastCallTime)\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerID)\n timerID = setTimeout(timerExpired, wait)\n return invokeFunc(lastCallTime)\n }\n }\n if (timerID === undefined) {\n timerID = setTimeout(timerExpired, wait)\n }\n return result\n }\n debounced.cancel = cancel\n debounced.flush = flush\n return debounced\n}\n\n// eslint-disable-next-line no-restricted-exports\nexport default debounce\n"],"mappings":"AAAA;AACA;AACA;;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAA,CAoDA;AACA,MAAMA,eAAA,GAAkB;AAExB;AACA,MAAMC,SAAA,GAAYC,IAAA,CAAKC,GAAG;EACxBC,SAAA,GAAYF,IAAA,CAAKG,GAAG;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,SAASC,SAASC,IAAI,EAAEC,IAAI,EAAEC,OAAO;EACnC,IAAIC,QAAA;IACFC,YAAA;IACAC,cAAA,GAAiB;IACjBC,QAAA;IACAC,OAAA,GAAU;IACVC,MAAA,GAAS;IACTC,OAAA;IACAC,MAAA;IACAC,OAAA;IACAC,QAAA,GAAW;EAEb,IAAI,OAAOZ,IAAA,IAAQ,YAAY;IAC7B,MAAM,IAAIa,SAAA,CAAUpB,eAAA;EACtB;EACAQ,IAAA,GAAOA,IAAA,IA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O,SAAA,EAAW;MACzBP,OAAA,GAAUU,UAAA,CAAWC,YAAA,EAAcrB,IAAA;IACrC;IACA,OAAOS,MAAA;EACT;EACAwB,SAAA,CAAUH,MAAM,GAAGA,MAAA;EACnBG,SAAA,CAAUD,KAAK,GAAGA,KAAA;EAClB,OAAOC,SAAA;AACT;AAEA;AACA,eAAenC,QAAA","ignoreList":[]}
1
+ {"version":3,"file":"debounce.js","names":["FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastCallTime","lastInvokeTime","lastThis","leading","maxing","maxWait","result","timerID","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","Date","now","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments"],"sources":["../../../../../src/features/experimental_table/client/utils/debounce.ts"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck - not worth it migrate jsdoc to tsdoc\n'use client'\n// Copied & modified from https://github.com/lodash/lodash/blob/main/src/debounce.ts\n/*\nThe MIT License\n\nCopyright JS Foundation and other contributors <https://js.foundation/>\n\nBased on Underscore.js, copyright Jeremy Ashkenas,\nDocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>\n\nThis software consists of voluntary contributions made by many\nindividuals. For exact contribution history, see the revision history\navailable at https://github.com/lodash/lodash\n\nThe following license applies to all parts of this software except as\ndocumented below:\n\n====\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n====\n\nCopyright and related rights for sample code are waived via CC0. Sample\ncode is defined as all source code displayed within the prose of the\ndocumentation.\n\nCC0: http://creativecommons.org/publicdomain/zero/1.0/\n\n====\n\nFiles located in the node_modules and vendor directories are externally\nmaintained libraries used by this software which have their own\nlicenses; we recommend you read them, as their terms may differ from the\nterms above.\n */\n\n/** Error message constants. */\nconst FUNC_ERROR_TEXT = 'Expected a function'\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nconst nativeMax = Math.max,\n nativeMin = Math.min\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [sortOnOptions={}] The options object.\n * @param {boolean} [sortOnOptions.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [sortOnOptions.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [sortOnOptions.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n let lastArgs,\n lastCallTime,\n lastInvokeTime = 0,\n lastThis,\n leading = false,\n maxing = false,\n maxWait,\n result,\n timerID,\n trailing = true\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT)\n }\n wait = wait || 0\n if (typeof options === 'object') {\n leading = !!options.leading\n maxing = 'maxWait' in options\n maxWait = maxing ? nativeMax(options.maxWait || 0, wait) : maxWait\n trailing = 'trailing' in options ? !!options.trailing : trailing\n }\n\n function invokeFunc(time) {\n const args = lastArgs,\n thisArg = lastThis\n\n lastArgs = lastThis = undefined\n lastInvokeTime = time\n result = func.apply(thisArg, args)\n return result\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time\n // Start the timer for the trailing edge.\n timerID = setTimeout(timerExpired, wait)\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result\n }\n\n function remainingWait(time) {\n const timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall\n\n return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting\n }\n\n function shouldInvoke(time) {\n const timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n lastCallTime === undefined ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n )\n }\n\n function timerExpired() {\n const time = Date.now()\n if (shouldInvoke(time)) {\n return trailingEdge(time)\n }\n // Restart the timer.\n timerID = setTimeout(timerExpired, remainingWait(time))\n }\n\n function trailingEdge(time) {\n timerID = undefined\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time)\n }\n lastArgs = lastThis = undefined\n return result\n }\n\n function cancel() {\n if (timerID !== undefined) {\n clearTimeout(timerID)\n }\n lastInvokeTime = 0\n lastArgs = lastCallTime = lastThis = timerID = undefined\n }\n\n function flush() {\n return timerID === undefined ? result : trailingEdge(Date.now())\n }\n\n function debounced() {\n const time = Date.now(),\n isInvoking = shouldInvoke(time)\n\n // eslint-disable-next-line prefer-rest-params\n lastArgs = arguments\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n lastThis = this\n lastCallTime = time\n\n if (isInvoking) {\n if (timerID === undefined) {\n return leadingEdge(lastCallTime)\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerID)\n timerID = setTimeout(timerExpired, wait)\n return invokeFunc(lastCallTime)\n }\n }\n if (timerID === undefined) {\n timerID = setTimeout(timerExpired, wait)\n }\n return result\n }\n debounced.cancel = cancel\n debounced.flush = flush\n return debounced\n}\n\n// eslint-disable-next-line no-restricted-exports\nexport default debounce\n"],"mappings":"AAAA;AACA;AACA;;AACA;AACA;;;;;;;;;;;;;;;;;;;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OtB,OAAA,KAAYO,SAAA,GAAYR,MAAA,GAASoB,YAAA,CAAaF,IAAA,CAAKC,GAAG;EAC/D;EAEA,SAASK,UAAA;IACP,MAAMnB,IAAA,GAAOa,IAAA,CAAKC,GAAG;MACnBM,UAAA,GAAaR,YAAA,CAAaZ,IAAA;IAE5B;IACAZ,QAAA,GAAWiC,SAAA;IACX;IACA9B,QAAA,GAAW,IAAI;IACfF,YAAA,GAAeW,IAAA;IAEf,IAAIoB,UAAA,EAAY;MACd,IAAIxB,OAAA,KAAYO,SAAA,EAAW;QACzB,OAAOE,WAAA,CAAYhB,YAAA;MACrB;MACA,IAAII,MAAA,EAAQ;QACV;QACAwB,YAAA,CAAarB,OAAA;QACbA,OAAA,GAAUU,UAAA,CAAWC,YAAA,EAAcrB,IAAA;QACnC,OAAOa,UAAA,CAAWV,YAAA;MACpB;IACF;IACA,IAAIO,OAAA,KAAYO,SAAA,EAAW;MACzBP,OAAA,GAAUU,UAAA,CAAWC,YAAA,EAAcrB,IAAA;IACrC;IACA,OAAOS,MAAA;EACT;EACAwB,SAAA,CAAUH,MAAM,GAAGA,MAAA;EACnBG,SAAA,CAAUD,KAAK,GAAGA,KAAA;EAClB,OAAOC,SAAA;AACT;AAEA;AACA,eAAenC,QAAA","ignoreList":[]}
@@ -0,0 +1,91 @@
1
+ export declare const defaultColors: {
2
+ text: {
3
+ 'text-red': {
4
+ css: {
5
+ color: `light-dark(${string}, ${string})`;
6
+ };
7
+ label: string;
8
+ };
9
+ 'text-orange': {
10
+ css: {
11
+ color: `light-dark(${string}, ${string})`;
12
+ };
13
+ label: string;
14
+ };
15
+ 'text-yellow': {
16
+ css: {
17
+ color: `light-dark(${string}, ${string})`;
18
+ };
19
+ label: string;
20
+ };
21
+ 'text-green': {
22
+ css: {
23
+ color: `light-dark(${string}, ${string})`;
24
+ };
25
+ label: string;
26
+ };
27
+ 'text-blue': {
28
+ css: {
29
+ color: `light-dark(${string}, ${string})`;
30
+ };
31
+ label: string;
32
+ };
33
+ 'text-purple': {
34
+ css: {
35
+ color: `light-dark(${string}, ${string})`;
36
+ };
37
+ label: string;
38
+ };
39
+ 'text-pink': {
40
+ css: {
41
+ color: `light-dark(${string}, ${string})`;
42
+ };
43
+ label: string;
44
+ };
45
+ };
46
+ background: {
47
+ 'bg-red': {
48
+ css: {
49
+ 'background-color': `light-dark(${string}, ${string})`;
50
+ };
51
+ label: string;
52
+ };
53
+ 'bg-orange': {
54
+ css: {
55
+ 'background-color': `light-dark(${string}, ${string})`;
56
+ };
57
+ label: string;
58
+ };
59
+ 'bg-yellow': {
60
+ css: {
61
+ 'background-color': `light-dark(${string}, ${string})`;
62
+ };
63
+ label: string;
64
+ };
65
+ 'bg-green': {
66
+ css: {
67
+ 'background-color': `light-dark(${string}, ${string})`;
68
+ };
69
+ label: string;
70
+ };
71
+ 'bg-blue': {
72
+ css: {
73
+ 'background-color': `light-dark(${string}, ${string})`;
74
+ };
75
+ label: string;
76
+ };
77
+ 'bg-purple': {
78
+ css: {
79
+ 'background-color': `light-dark(${string}, ${string})`;
80
+ };
81
+ label: string;
82
+ };
83
+ 'bg-pink': {
84
+ css: {
85
+ 'background-color': `light-dark(${string}, ${string})`;
86
+ };
87
+ label: string;
88
+ };
89
+ };
90
+ };
91
+ //# sourceMappingURL=defaultColors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultColors.d.ts","sourceRoot":"","sources":["../../../src/features/textState/defaultColors.ts"],"names":[],"mappings":"AA0SA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBvB,CAAA"}
@@ -0,0 +1,386 @@
1
+ const tailwindColors = {
2
+ amber: {
3
+ '50': 'oklch(0.987 0.022 95.277)',
4
+ '100': 'oklch(0.962 0.059 95.617)',
5
+ '200': 'oklch(0.924 0.12 95.746)',
6
+ '300': 'oklch(0.879 0.169 91.605)',
7
+ '400': 'oklch(0.828 0.189 84.429)',
8
+ '500': 'oklch(0.769 0.188 70.08)',
9
+ '600': 'oklch(0.666 0.179 58.318)',
10
+ '700': 'oklch(0.555 0.163 48.998)',
11
+ '800': 'oklch(0.473 0.137 46.201)',
12
+ '900': 'oklch(0.414 0.112 45.904)',
13
+ '950': 'oklch(0.279 0.077 45.635)'
14
+ },
15
+ black: '#000',
16
+ blue: {
17
+ '50': 'oklch(0.97 0.014 254.604)',
18
+ '100': 'oklch(0.932 0.032 255.585)',
19
+ '200': 'oklch(0.882 0.059 254.128)',
20
+ '300': 'oklch(0.809 0.105 251.813)',
21
+ '400': 'oklch(0.707 0.165 254.624)',
22
+ '500': 'oklch(0.623 0.214 259.815)',
23
+ '600': 'oklch(0.546 0.245 262.881)',
24
+ '700': 'oklch(0.488 0.243 264.376)',
25
+ '800': 'oklch(0.424 0.199 265.638)',
26
+ '900': 'oklch(0.379 0.146 265.522)',
27
+ '950': 'oklch(0.282 0.091 267.935)'
28
+ },
29
+ current: 'currentColor',
30
+ cyan: {
31
+ '50': 'oklch(0.984 0.019 200.873)',
32
+ '100': 'oklch(0.956 0.045 203.388)',
33
+ '200': 'oklch(0.917 0.08 205.041)',
34
+ '300': 'oklch(0.865 0.127 207.078)',
35
+ '400': 'oklch(0.789 0.154 211.53)',
36
+ '500': 'oklch(0.715 0.143 215.221)',
37
+ '600': 'oklch(0.609 0.126 221.723)',
38
+ '700': 'oklch(0.52 0.105 223.128)',
39
+ '800': 'oklch(0.45 0.085 224.283)',
40
+ '900': 'oklch(0.398 0.07 227.392)',
41
+ '950': 'oklch(0.302 0.056 229.695)'
42
+ },
43
+ emerald: {
44
+ '50': 'oklch(0.979 0.021 166.113)',
45
+ '100': 'oklch(0.95 0.052 163.051)',
46
+ '200': 'oklch(0.905 0.093 164.15)',
47
+ '300': 'oklch(0.845 0.143 164.978)',
48
+ '400': 'oklch(0.765 0.177 163.223)',
49
+ '500': 'oklch(0.696 0.17 162.48)',
50
+ '600': 'oklch(0.596 0.145 163.225)',
51
+ '700': 'oklch(0.508 0.118 165.612)',
52
+ '800': 'oklch(0.432 0.095 166.913)',
53
+ '900': 'oklch(0.378 0.077 168.94)',
54
+ '950': 'oklch(0.262 0.051 172.552)'
55
+ },
56
+ fuchsia: {
57
+ '50': 'oklch(0.977 0.017 320.058)',
58
+ '100': 'oklch(0.952 0.037 318.852)',
59
+ '200': 'oklch(0.903 0.076 319.62)',
60
+ '300': 'oklch(0.833 0.145 321.434)',
61
+ '400': 'oklch(0.74 0.238 322.16)',
62
+ '500': 'oklch(0.667 0.295 322.15)',
63
+ '600': 'oklch(0.591 0.293 322.896)',
64
+ '700': 'oklch(0.518 0.253 323.949)',
65
+ '800': 'oklch(0.452 0.211 324.591)',
66
+ '900': 'oklch(0.401 0.17 325.612)',
67
+ '950': 'oklch(0.293 0.136 325.661)'
68
+ },
69
+ gray: {
70
+ '50': 'oklch(0.985 0.002 247.839)',
71
+ '100': 'oklch(0.967 0.003 264.542)',
72
+ '200': 'oklch(0.928 0.006 264.531)',
73
+ '300': 'oklch(0.872 0.01 258.338)',
74
+ '400': 'oklch(0.707 0.022 261.325)',
75
+ '500': 'oklch(0.551 0.027 264.364)',
76
+ '600': 'oklch(0.446 0.03 256.802)',
77
+ '700': 'oklch(0.373 0.034 259.733)',
78
+ '800': 'oklch(0.278 0.033 256.848)',
79
+ '900': 'oklch(0.21 0.034 264.665)',
80
+ '950': 'oklch(0.13 0.028 261.692)'
81
+ },
82
+ green: {
83
+ '50': 'oklch(0.982 0.018 155.826)',
84
+ '100': 'oklch(0.962 0.044 156.743)',
85
+ '200': 'oklch(0.925 0.084 155.995)',
86
+ '300': 'oklch(0.871 0.15 154.449)',
87
+ '400': 'oklch(0.792 0.209 151.711)',
88
+ '500': 'oklch(0.723 0.219 149.579)',
89
+ '600': 'oklch(0.627 0.194 149.214)',
90
+ '700': 'oklch(0.527 0.154 150.069)',
91
+ '800': 'oklch(0.448 0.119 151.328)',
92
+ '900': 'oklch(0.393 0.095 152.535)',
93
+ '950': 'oklch(0.266 0.065 152.934)'
94
+ },
95
+ indigo: {
96
+ '50': 'oklch(0.962 0.018 272.314)',
97
+ '100': 'oklch(0.93 0.034 272.788)',
98
+ '200': 'oklch(0.87 0.065 274.039)',
99
+ '300': 'oklch(0.785 0.115 274.713)',
100
+ '400': 'oklch(0.673 0.182 276.935)',
101
+ '500': 'oklch(0.585 0.233 277.117)',
102
+ '600': 'oklch(0.511 0.262 276.966)',
103
+ '700': 'oklch(0.457 0.24 277.023)',
104
+ '800': 'oklch(0.398 0.195 277.366)',
105
+ '900': 'oklch(0.359 0.144 278.697)',
106
+ '950': 'oklch(0.257 0.09 281.288)'
107
+ },
108
+ inherit: 'inherit',
109
+ lime: {
110
+ '50': 'oklch(0.986 0.031 120.757)',
111
+ '100': 'oklch(0.967 0.067 122.328)',
112
+ '200': 'oklch(0.938 0.127 124.321)',
113
+ '300': 'oklch(0.897 0.196 126.665)',
114
+ '400': 'oklch(0.841 0.238 128.85)',
115
+ '500': 'oklch(0.768 0.233 130.85)',
116
+ '600': 'oklch(0.648 0.2 131.684)',
117
+ '700': 'oklch(0.532 0.157 131.589)',
118
+ '800': 'oklch(0.453 0.124 130.933)',
119
+ '900': 'oklch(0.405 0.101 131.063)',
120
+ '950': 'oklch(0.274 0.072 132.109)'
121
+ },
122
+ neutral: {
123
+ '50': 'oklch(0.985 0 0)',
124
+ '100': 'oklch(0.97 0 0)',
125
+ '200': 'oklch(0.922 0 0)',
126
+ '300': 'oklch(0.87 0 0)',
127
+ '400': 'oklch(0.708 0 0)',
128
+ '500': 'oklch(0.556 0 0)',
129
+ '600': 'oklch(0.439 0 0)',
130
+ '700': 'oklch(0.371 0 0)',
131
+ '800': 'oklch(0.269 0 0)',
132
+ '900': 'oklch(0.205 0 0)',
133
+ '950': 'oklch(0.145 0 0)'
134
+ },
135
+ orange: {
136
+ '50': 'oklch(0.98 0.016 73.684)',
137
+ '100': 'oklch(0.954 0.038 75.164)',
138
+ '200': 'oklch(0.901 0.076 70.697)',
139
+ '300': 'oklch(0.837 0.128 66.29)',
140
+ '400': 'oklch(0.75 0.183 55.934)',
141
+ '500': 'oklch(0.705 0.213 47.604)',
142
+ '600': 'oklch(0.646 0.222 41.116)',
143
+ '700': 'oklch(0.553 0.195 38.402)',
144
+ '800': 'oklch(0.47 0.157 37.304)',
145
+ '900': 'oklch(0.408 0.123 38.172)',
146
+ '950': 'oklch(0.266 0.079 36.259)'
147
+ },
148
+ pink: {
149
+ '50': 'oklch(0.971 0.014 343.198)',
150
+ '100': 'oklch(0.948 0.028 342.258)',
151
+ '200': 'oklch(0.899 0.061 343.231)',
152
+ '300': 'oklch(0.823 0.12 346.018)',
153
+ '400': 'oklch(0.718 0.202 349.761)',
154
+ '500': 'oklch(0.656 0.241 354.308)',
155
+ '600': 'oklch(0.592 0.249 0.584)',
156
+ '700': 'oklch(0.525 0.223 3.958)',
157
+ '800': 'oklch(0.459 0.187 3.815)',
158
+ '900': 'oklch(0.408 0.153 2.432)',
159
+ '950': 'oklch(0.284 0.109 3.907)'
160
+ },
161
+ purple: {
162
+ '50': 'oklch(0.977 0.014 308.299)',
163
+ '100': 'oklch(0.946 0.033 307.174)',
164
+ '200': 'oklch(0.902 0.063 306.703)',
165
+ '300': 'oklch(0.827 0.119 306.383)',
166
+ '400': 'oklch(0.714 0.203 305.504)',
167
+ '500': 'oklch(0.627 0.265 303.9)',
168
+ '600': 'oklch(0.558 0.288 302.321)',
169
+ '700': 'oklch(0.496 0.265 301.924)',
170
+ '800': 'oklch(0.438 0.218 303.724)',
171
+ '900': 'oklch(0.381 0.176 304.987)',
172
+ '950': 'oklch(0.291 0.149 302.717)'
173
+ },
174
+ red: {
175
+ '50': 'oklch(0.971 0.013 17.38)',
176
+ '100': 'oklch(0.936 0.032 17.717)',
177
+ '200': 'oklch(0.885 0.062 18.334)',
178
+ '300': 'oklch(0.808 0.114 19.571)',
179
+ '400': 'oklch(0.704 0.191 22.216)',
180
+ '500': 'oklch(0.637 0.237 25.331)',
181
+ '600': 'oklch(0.577 0.245 27.325)',
182
+ '700': 'oklch(0.505 0.213 27.518)',
183
+ '800': 'oklch(0.444 0.177 26.899)',
184
+ '900': 'oklch(0.396 0.141 25.723)',
185
+ '950': 'oklch(0.258 0.092 26.042)'
186
+ },
187
+ rose: {
188
+ '50': 'oklch(0.969 0.015 12.422)',
189
+ '100': 'oklch(0.941 0.03 12.58)',
190
+ '200': 'oklch(0.892 0.058 10.001)',
191
+ '300': 'oklch(0.81 0.117 11.638)',
192
+ '400': 'oklch(0.712 0.194 13.428)',
193
+ '500': 'oklch(0.645 0.246 16.439)',
194
+ '600': 'oklch(0.586 0.253 17.585)',
195
+ '700': 'oklch(0.514 0.222 16.935)',
196
+ '800': 'oklch(0.455 0.188 13.697)',
197
+ '900': 'oklch(0.41 0.159 10.272)',
198
+ '950': 'oklch(0.271 0.105 12.094)'
199
+ },
200
+ sky: {
201
+ '50': 'oklch(0.977 0.013 236.62)',
202
+ '100': 'oklch(0.951 0.026 236.824)',
203
+ '200': 'oklch(0.901 0.058 230.902)',
204
+ '300': 'oklch(0.828 0.111 230.318)',
205
+ '400': 'oklch(0.746 0.16 232.661)',
206
+ '500': 'oklch(0.685 0.169 237.323)',
207
+ '600': 'oklch(0.588 0.158 241.966)',
208
+ '700': 'oklch(0.5 0.134 242.749)',
209
+ '800': 'oklch(0.443 0.11 240.79)',
210
+ '900': 'oklch(0.391 0.09 240.876)',
211
+ '950': 'oklch(0.293 0.066 243.157)'
212
+ },
213
+ slate: {
214
+ '50': 'oklch(0.984 0.003 247.858)',
215
+ '100': 'oklch(0.968 0.007 247.896)',
216
+ '200': 'oklch(0.929 0.013 255.508)',
217
+ '300': 'oklch(0.869 0.022 252.894)',
218
+ '400': 'oklch(0.704 0.04 256.788)',
219
+ '500': 'oklch(0.554 0.046 257.417)',
220
+ '600': 'oklch(0.446 0.043 257.281)',
221
+ '700': 'oklch(0.372 0.044 257.287)',
222
+ '800': 'oklch(0.279 0.041 260.031)',
223
+ '900': 'oklch(0.208 0.042 265.755)',
224
+ '950': 'oklch(0.129 0.042 264.695)'
225
+ },
226
+ stone: {
227
+ '50': 'oklch(0.985 0.001 106.423)',
228
+ '100': 'oklch(0.97 0.001 106.424)',
229
+ '200': 'oklch(0.923 0.003 48.717)',
230
+ '300': 'oklch(0.869 0.005 56.366)',
231
+ '400': 'oklch(0.709 0.01 56.259)',
232
+ '500': 'oklch(0.553 0.013 58.071)',
233
+ '600': 'oklch(0.444 0.011 73.639)',
234
+ '700': 'oklch(0.374 0.01 67.558)',
235
+ '800': 'oklch(0.268 0.007 34.298)',
236
+ '900': 'oklch(0.216 0.006 56.043)',
237
+ '950': 'oklch(0.147 0.004 49.25)'
238
+ },
239
+ teal: {
240
+ '50': 'oklch(0.984 0.014 180.72)',
241
+ '100': 'oklch(0.953 0.051 180.801)',
242
+ '200': 'oklch(0.91 0.096 180.426)',
243
+ '300': 'oklch(0.855 0.138 181.071)',
244
+ '400': 'oklch(0.777 0.152 181.912)',
245
+ '500': 'oklch(0.704 0.14 182.503)',
246
+ '600': 'oklch(0.6 0.118 184.704)',
247
+ '700': 'oklch(0.511 0.096 186.391)',
248
+ '800': 'oklch(0.437 0.078 188.216)',
249
+ '900': 'oklch(0.386 0.063 188.416)',
250
+ '950': 'oklch(0.277 0.046 192.524)'
251
+ },
252
+ transparent: 'transparent',
253
+ violet: {
254
+ '50': 'oklch(0.969 0.016 293.756)',
255
+ '100': 'oklch(0.943 0.029 294.588)',
256
+ '200': 'oklch(0.894 0.057 293.283)',
257
+ '300': 'oklch(0.811 0.111 293.571)',
258
+ '400': 'oklch(0.702 0.183 293.541)',
259
+ '500': 'oklch(0.606 0.25 292.717)',
260
+ '600': 'oklch(0.541 0.281 293.009)',
261
+ '700': 'oklch(0.491 0.27 292.581)',
262
+ '800': 'oklch(0.432 0.232 292.759)',
263
+ '900': 'oklch(0.38 0.189 293.745)',
264
+ '950': 'oklch(0.283 0.141 291.089)'
265
+ },
266
+ white: '#fff',
267
+ yellow: {
268
+ '50': 'oklch(0.987 0.026 102.212)',
269
+ '100': 'oklch(0.973 0.071 103.193)',
270
+ '200': 'oklch(0.945 0.129 101.54)',
271
+ '300': 'oklch(0.905 0.182 98.111)',
272
+ '400': 'oklch(0.852 0.199 91.936)',
273
+ '500': 'oklch(0.795 0.184 86.047)',
274
+ '600': 'oklch(0.681 0.162 75.834)',
275
+ '700': 'oklch(0.554 0.135 66.442)',
276
+ '800': 'oklch(0.476 0.114 61.907)',
277
+ '900': 'oklch(0.421 0.095 57.708)',
278
+ '950': 'oklch(0.286 0.066 53.813)'
279
+ },
280
+ zinc: {
281
+ '50': 'oklch(0.985 0 0)',
282
+ '100': 'oklch(0.967 0.001 286.375)',
283
+ '200': 'oklch(0.92 0.004 286.32)',
284
+ '300': 'oklch(0.871 0.006 286.286)',
285
+ '400': 'oklch(0.705 0.015 286.067)',
286
+ '500': 'oklch(0.552 0.016 285.938)',
287
+ '600': 'oklch(0.442 0.017 285.786)',
288
+ '700': 'oklch(0.37 0.013 285.805)',
289
+ '800': 'oklch(0.274 0.006 286.033)',
290
+ '900': 'oklch(0.21 0.006 285.885)',
291
+ '950': 'oklch(0.141 0.005 285.823)'
292
+ }
293
+ };
294
+ // prettier-ignore
295
+ /* eslint-disable perfectionist/sort-objects */
296
+ export const defaultColors = {
297
+ text: {
298
+ 'text-red': {
299
+ css: {
300
+ 'color': `light-dark(${tailwindColors.red[600]}, ${tailwindColors.red[400]})`
301
+ },
302
+ label: 'Red'
303
+ },
304
+ 'text-orange': {
305
+ css: {
306
+ 'color': `light-dark(${tailwindColors.orange[600]}, ${tailwindColors.orange[400]})`
307
+ },
308
+ label: 'Orange'
309
+ },
310
+ 'text-yellow': {
311
+ css: {
312
+ 'color': `light-dark(${tailwindColors.yellow[700]}, ${tailwindColors.yellow[300]})`
313
+ },
314
+ label: 'Yellow'
315
+ },
316
+ 'text-green': {
317
+ css: {
318
+ 'color': `light-dark(${tailwindColors.green[700]}, ${tailwindColors.green[400]})`
319
+ },
320
+ label: 'Green'
321
+ },
322
+ 'text-blue': {
323
+ css: {
324
+ 'color': `light-dark(${tailwindColors.blue[600]}, ${tailwindColors.blue[400]})`
325
+ },
326
+ label: 'Blue'
327
+ },
328
+ 'text-purple': {
329
+ css: {
330
+ 'color': `light-dark(${tailwindColors.purple[600]}, ${tailwindColors.purple[400]})`
331
+ },
332
+ label: 'Purple'
333
+ },
334
+ 'text-pink': {
335
+ css: {
336
+ 'color': `light-dark(${tailwindColors.pink[600]}, ${tailwindColors.pink[400]})`
337
+ },
338
+ label: 'Pink'
339
+ }
340
+ },
341
+ background: {
342
+ 'bg-red': {
343
+ css: {
344
+ 'background-color': `light-dark(${tailwindColors.red[400]}, ${tailwindColors.red[600]})`
345
+ },
346
+ label: 'Red'
347
+ },
348
+ 'bg-orange': {
349
+ css: {
350
+ 'background-color': `light-dark(${tailwindColors.orange[400]}, ${tailwindColors.orange[600]})`
351
+ },
352
+ label: 'Orange'
353
+ },
354
+ 'bg-yellow': {
355
+ css: {
356
+ 'background-color': `light-dark(${tailwindColors.yellow[300]}, ${tailwindColors.yellow[700]})`
357
+ },
358
+ label: 'Yellow'
359
+ },
360
+ 'bg-green': {
361
+ css: {
362
+ 'background-color': `light-dark(${tailwindColors.green[400]}, ${tailwindColors.green[700]})`
363
+ },
364
+ label: 'Green'
365
+ },
366
+ 'bg-blue': {
367
+ css: {
368
+ 'background-color': `light-dark(${tailwindColors.blue[400]}, ${tailwindColors.blue[600]})`
369
+ },
370
+ label: 'Blue'
371
+ },
372
+ 'bg-purple': {
373
+ css: {
374
+ 'background-color': `light-dark(${tailwindColors.purple[400]}, ${tailwindColors.purple[600]})`
375
+ },
376
+ label: 'Purple'
377
+ },
378
+ 'bg-pink': {
379
+ css: {
380
+ 'background-color': `light-dark(${tailwindColors.pink[400]}, ${tailwindColors.pink[600]})`
381
+ },
382
+ label: 'Pink'
383
+ }
384
+ }
385
+ };
386
+ //# sourceMappingURL=defaultColors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaultColors.js","names":["tailwindColors","amber","black","blue","current","cyan","emerald","fuchsia","gray","green","indigo","inherit","lime","neutral","orange","pink","purple","red","rose","sky","slate","stone","teal","transparent","violet","white","yellow","zinc","defaultColors","text","css","label","background"],"sources":["../../../src/features/textState/defaultColors.ts"],"sourcesContent":["import type { StateValues } from './feature.server.js'\n\nconst tailwindColors = {\n amber: {\n '50': 'oklch(0.987 0.022 95.277)',\n '100': 'oklch(0.962 0.059 95.617)',\n '200': 'oklch(0.924 0.12 95.746)',\n '300': 'oklch(0.879 0.169 91.605)',\n '400': 'oklch(0.828 0.189 84.429)',\n '500': 'oklch(0.769 0.188 70.08)',\n '600': 'oklch(0.666 0.179 58.318)',\n '700': 'oklch(0.555 0.163 48.998)',\n '800': 'oklch(0.473 0.137 46.201)',\n '900': 'oklch(0.414 0.112 45.904)',\n '950': 'oklch(0.279 0.077 45.635)',\n },\n black: '#000',\n blue: {\n '50': 'oklch(0.97 0.014 254.604)',\n '100': 'oklch(0.932 0.032 255.585)',\n '200': 'oklch(0.882 0.059 254.128)',\n '300': 'oklch(0.809 0.105 251.813)',\n '400': 'oklch(0.707 0.165 254.624)',\n '500': 'oklch(0.623 0.214 259.815)',\n '600': 'oklch(0.546 0.245 262.881)',\n '700': 'oklch(0.488 0.243 264.376)',\n '800': 'oklch(0.424 0.199 265.638)',\n '900': 'oklch(0.379 0.146 265.522)',\n '950': 'oklch(0.282 0.091 267.935)',\n },\n current: 'currentColor',\n cyan: {\n '50': 'oklch(0.984 0.019 200.873)',\n '100': 'oklch(0.956 0.045 203.388)',\n '200': 'oklch(0.917 0.08 205.041)',\n '300': 'oklch(0.865 0.127 207.078)',\n '400': 'oklch(0.789 0.154 211.53)',\n '500': 'oklch(0.715 0.143 215.221)',\n '600': 'oklch(0.609 0.126 221.723)',\n '700': 'oklch(0.52 0.105 223.128)',\n '800': 'oklch(0.45 0.085 224.283)',\n '900': 'oklch(0.398 0.07 227.392)',\n '950': 'oklch(0.302 0.056 229.695)',\n },\n emerald: {\n '50': 'oklch(0.979 0.021 166.113)',\n '100': 'oklch(0.95 0.052 163.051)',\n '200': 'oklch(0.905 0.093 164.15)',\n '300': 'oklch(0.845 0.143 164.978)',\n '400': 'oklch(0.765 0.177 163.223)',\n '500': 'oklch(0.696 0.17 162.48)',\n '600': 'oklch(0.596 0.145 163.225)',\n '700': 'oklch(0.508 0.118 165.612)',\n '800': 'oklch(0.432 0.095 166.913)',\n '900': 'oklch(0.378 0.077 168.94)',\n '950': 'oklch(0.262 0.051 172.552)',\n },\n fuchsia: {\n '50': 'oklch(0.977 0.017 320.058)',\n '100': 'oklch(0.952 0.037 318.852)',\n '200': 'oklch(0.903 0.076 319.62)',\n '300': 'oklch(0.833 0.145 321.434)',\n '400': 'oklch(0.74 0.238 322.16)',\n '500': 'oklch(0.667 0.295 322.15)',\n '600': 'oklch(0.591 0.293 322.896)',\n '700': 'oklch(0.518 0.253 323.949)',\n '800': 'oklch(0.452 0.211 324.591)',\n '900': 'oklch(0.401 0.17 325.612)',\n '950': 'oklch(0.293 0.136 325.661)',\n },\n gray: {\n '50': 'oklch(0.985 0.002 247.839)',\n '100': 'oklch(0.967 0.003 264.542)',\n '200': 'oklch(0.928 0.006 264.531)',\n '300': 'oklch(0.872 0.01 258.338)',\n '400': 'oklch(0.707 0.022 261.325)',\n '500': 'oklch(0.551 0.027 264.364)',\n '600': 'oklch(0.446 0.03 256.802)',\n '700': 'oklch(0.373 0.034 259.733)',\n '800': 'oklch(0.278 0.033 256.848)',\n '900': 'oklch(0.21 0.034 264.665)',\n '950': 'oklch(0.13 0.028 261.692)',\n },\n green: {\n '50': 'oklch(0.982 0.018 155.826)',\n '100': 'oklch(0.962 0.044 156.743)',\n '200': 'oklch(0.925 0.084 155.995)',\n '300': 'oklch(0.871 0.15 154.449)',\n '400': 'oklch(0.792 0.209 151.711)',\n '500': 'oklch(0.723 0.219 149.579)',\n '600': 'oklch(0.627 0.194 149.214)',\n '700': 'oklch(0.527 0.154 150.069)',\n '800': 'oklch(0.448 0.119 151.328)',\n '900': 'oklch(0.393 0.095 152.535)',\n '950': 'oklch(0.266 0.065 152.934)',\n },\n indigo: {\n '50': 'oklch(0.962 0.018 272.314)',\n '100': 'oklch(0.93 0.034 272.788)',\n '200': 'oklch(0.87 0.065 274.039)',\n '300': 'oklch(0.785 0.115 274.713)',\n '400': 'oklch(0.673 0.182 276.935)',\n '500': 'oklch(0.585 0.233 277.117)',\n '600': 'oklch(0.511 0.262 276.966)',\n '700': 'oklch(0.457 0.24 277.023)',\n '800': 'oklch(0.398 0.195 277.366)',\n '900': 'oklch(0.359 0.144 278.697)',\n '950': 'oklch(0.257 0.09 281.288)',\n },\n inherit: 'inherit',\n lime: {\n '50': 'oklch(0.986 0.031 120.757)',\n '100': 'oklch(0.967 0.067 122.328)',\n '200': 'oklch(0.938 0.127 124.321)',\n '300': 'oklch(0.897 0.196 126.665)',\n '400': 'oklch(0.841 0.238 128.85)',\n '500': 'oklch(0.768 0.233 130.85)',\n '600': 'oklch(0.648 0.2 131.684)',\n '700': 'oklch(0.532 0.157 131.589)',\n '800': 'oklch(0.453 0.124 130.933)',\n '900': 'oklch(0.405 0.101 131.063)',\n '950': 'oklch(0.274 0.072 132.109)',\n },\n neutral: {\n '50': 'oklch(0.985 0 0)',\n '100': 'oklch(0.97 0 0)',\n '200': 'oklch(0.922 0 0)',\n '300': 'oklch(0.87 0 0)',\n '400': 'oklch(0.708 0 0)',\n '500': 'oklch(0.556 0 0)',\n '600': 'oklch(0.439 0 0)',\n '700': 'oklch(0.371 0 0)',\n '800': 'oklch(0.269 0 0)',\n '900': 'oklch(0.205 0 0)',\n '950': 'oklch(0.145 0 0)',\n },\n orange: {\n '50': 'oklch(0.98 0.016 73.684)',\n '100': 'oklch(0.954 0.038 75.164)',\n '200': 'oklch(0.901 0.076 70.697)',\n '300': 'oklch(0.837 0.128 66.29)',\n '400': 'oklch(0.75 0.183 55.934)',\n '500': 'oklch(0.705 0.213 47.604)',\n '600': 'oklch(0.646 0.222 41.116)',\n '700': 'oklch(0.553 0.195 38.402)',\n '800': 'oklch(0.47 0.157 37.304)',\n '900': 'oklch(0.408 0.123 38.172)',\n '950': 'oklch(0.266 0.079 36.259)',\n },\n pink: {\n '50': 'oklch(0.971 0.014 343.198)',\n '100': 'oklch(0.948 0.028 342.258)',\n '200': 'oklch(0.899 0.061 343.231)',\n '300': 'oklch(0.823 0.12 346.018)',\n '400': 'oklch(0.718 0.202 349.761)',\n '500': 'oklch(0.656 0.241 354.308)',\n '600': 'oklch(0.592 0.249 0.584)',\n '700': 'oklch(0.525 0.223 3.958)',\n '800': 'oklch(0.459 0.187 3.815)',\n '900': 'oklch(0.408 0.153 2.432)',\n '950': 'oklch(0.284 0.109 3.907)',\n },\n purple: {\n '50': 'oklch(0.977 0.014 308.299)',\n '100': 'oklch(0.946 0.033 307.174)',\n '200': 'oklch(0.902 0.063 306.703)',\n '300': 'oklch(0.827 0.119 306.383)',\n '400': 'oklch(0.714 0.203 305.504)',\n '500': 'oklch(0.627 0.265 303.9)',\n '600': 'oklch(0.558 0.288 302.321)',\n '700': 'oklch(0.496 0.265 301.924)',\n '800': 'oklch(0.438 0.218 303.724)',\n '900': 'oklch(0.381 0.176 304.987)',\n '950': 'oklch(0.291 0.149 302.717)',\n },\n red: {\n '50': 'oklch(0.971 0.013 17.38)',\n '100': 'oklch(0.936 0.032 17.717)',\n '200': 'oklch(0.885 0.062 18.334)',\n '300': 'oklch(0.808 0.114 19.571)',\n '400': 'oklch(0.704 0.191 22.216)',\n '500': 'oklch(0.637 0.237 25.331)',\n '600': 'oklch(0.577 0.245 27.325)',\n '700': 'oklch(0.505 0.213 27.518)',\n '800': 'oklch(0.444 0.177 26.899)',\n '900': 'oklch(0.396 0.141 25.723)',\n '950': 'oklch(0.258 0.092 26.042)',\n },\n rose: {\n '50': 'oklch(0.969 0.015 12.422)',\n '100': 'oklch(0.941 0.03 12.58)',\n '200': 'oklch(0.892 0.058 10.001)',\n '300': 'oklch(0.81 0.117 11.638)',\n '400': 'oklch(0.712 0.194 13.428)',\n '500': 'oklch(0.645 0.246 16.439)',\n '600': 'oklch(0.586 0.253 17.585)',\n '700': 'oklch(0.514 0.222 16.935)',\n '800': 'oklch(0.455 0.188 13.697)',\n '900': 'oklch(0.41 0.159 10.272)',\n '950': 'oklch(0.271 0.105 12.094)',\n },\n sky: {\n '50': 'oklch(0.977 0.013 236.62)',\n '100': 'oklch(0.951 0.026 236.824)',\n '200': 'oklch(0.901 0.058 230.902)',\n '300': 'oklch(0.828 0.111 230.318)',\n '400': 'oklch(0.746 0.16 232.661)',\n '500': 'oklch(0.685 0.169 237.323)',\n '600': 'oklch(0.588 0.158 241.966)',\n '700': 'oklch(0.5 0.134 242.749)',\n '800': 'oklch(0.443 0.11 240.79)',\n '900': 'oklch(0.391 0.09 240.876)',\n '950': 'oklch(0.293 0.066 243.157)',\n },\n slate: {\n '50': 'oklch(0.984 0.003 247.858)',\n '100': 'oklch(0.968 0.007 247.896)',\n '200': 'oklch(0.929 0.013 255.508)',\n '300': 'oklch(0.869 0.022 252.894)',\n '400': 'oklch(0.704 0.04 256.788)',\n '500': 'oklch(0.554 0.046 257.417)',\n '600': 'oklch(0.446 0.043 257.281)',\n '700': 'oklch(0.372 0.044 257.287)',\n '800': 'oklch(0.279 0.041 260.031)',\n '900': 'oklch(0.208 0.042 265.755)',\n '950': 'oklch(0.129 0.042 264.695)',\n },\n stone: {\n '50': 'oklch(0.985 0.001 106.423)',\n '100': 'oklch(0.97 0.001 106.424)',\n '200': 'oklch(0.923 0.003 48.717)',\n '300': 'oklch(0.869 0.005 56.366)',\n '400': 'oklch(0.709 0.01 56.259)',\n '500': 'oklch(0.553 0.013 58.071)',\n '600': 'oklch(0.444 0.011 73.639)',\n '700': 'oklch(0.374 0.01 67.558)',\n '800': 'oklch(0.268 0.007 34.298)',\n '900': 'oklch(0.216 0.006 56.043)',\n '950': 'oklch(0.147 0.004 49.25)',\n },\n teal: {\n '50': 'oklch(0.984 0.014 180.72)',\n '100': 'oklch(0.953 0.051 180.801)',\n '200': 'oklch(0.91 0.096 180.426)',\n '300': 'oklch(0.855 0.138 181.071)',\n '400': 'oklch(0.777 0.152 181.912)',\n '500': 'oklch(0.704 0.14 182.503)',\n '600': 'oklch(0.6 0.118 184.704)',\n '700': 'oklch(0.511 0.096 186.391)',\n '800': 'oklch(0.437 0.078 188.216)',\n '900': 'oklch(0.386 0.063 188.416)',\n '950': 'oklch(0.277 0.046 192.524)',\n },\n transparent: 'transparent',\n violet: {\n '50': 'oklch(0.969 0.016 293.756)',\n '100': 'oklch(0.943 0.029 294.588)',\n '200': 'oklch(0.894 0.057 293.283)',\n '300': 'oklch(0.811 0.111 293.571)',\n '400': 'oklch(0.702 0.183 293.541)',\n '500': 'oklch(0.606 0.25 292.717)',\n '600': 'oklch(0.541 0.281 293.009)',\n '700': 'oklch(0.491 0.27 292.581)',\n '800': 'oklch(0.432 0.232 292.759)',\n '900': 'oklch(0.38 0.189 293.745)',\n '950': 'oklch(0.283 0.141 291.089)',\n },\n white: '#fff',\n yellow: {\n '50': 'oklch(0.987 0.026 102.212)',\n '100': 'oklch(0.973 0.071 103.193)',\n '200': 'oklch(0.945 0.129 101.54)',\n '300': 'oklch(0.905 0.182 98.111)',\n '400': 'oklch(0.852 0.199 91.936)',\n '500': 'oklch(0.795 0.184 86.047)',\n '600': 'oklch(0.681 0.162 75.834)',\n '700': 'oklch(0.554 0.135 66.442)',\n '800': 'oklch(0.476 0.114 61.907)',\n '900': 'oklch(0.421 0.095 57.708)',\n '950': 'oklch(0.286 0.066 53.813)',\n },\n zinc: {\n '50': 'oklch(0.985 0 0)',\n '100': 'oklch(0.967 0.001 286.375)',\n '200': 'oklch(0.92 0.004 286.32)',\n '300': 'oklch(0.871 0.006 286.286)',\n '400': 'oklch(0.705 0.015 286.067)',\n '500': 'oklch(0.552 0.016 285.938)',\n '600': 'oklch(0.442 0.017 285.786)',\n '700': 'oklch(0.37 0.013 285.805)',\n '800': 'oklch(0.274 0.006 286.033)',\n '900': 'oklch(0.21 0.006 285.885)',\n '950': 'oklch(0.141 0.005 285.823)',\n },\n}\n\n// prettier-ignore\n/* eslint-disable perfectionist/sort-objects */\nexport const defaultColors = {\n text: {\n 'text-red': { css: { 'color': `light-dark(${tailwindColors.red[600]}, ${tailwindColors.red[400]})`, }, label: 'Red' },\n 'text-orange': { css: { 'color': `light-dark(${tailwindColors.orange[600]}, ${tailwindColors.orange[400]})`, }, label: 'Orange' },\n 'text-yellow': { css: { 'color': `light-dark(${tailwindColors.yellow[700]}, ${tailwindColors.yellow[300]})`, }, label: 'Yellow' },\n 'text-green': { css: { 'color': `light-dark(${tailwindColors.green[700]}, ${tailwindColors.green[400]})`, }, label: 'Green' },\n 'text-blue': { css: { 'color': `light-dark(${tailwindColors.blue[600]}, ${tailwindColors.blue[400]})`, }, label: 'Blue' },\n 'text-purple': { css: { 'color': `light-dark(${tailwindColors.purple[600]}, ${tailwindColors.purple[400]})`, }, label: 'Purple' },\n 'text-pink': { css: { 'color': `light-dark(${tailwindColors.pink[600]}, ${tailwindColors.pink[400]})`, }, label: 'Pink' },\n } satisfies StateValues,\n background: {\n 'bg-red': { css: { 'background-color': `light-dark(${tailwindColors.red[400]}, ${tailwindColors.red[600]})`, }, label: 'Red' },\n 'bg-orange': { css: { 'background-color': `light-dark(${tailwindColors.orange[400]}, ${tailwindColors.orange[600]})`, }, label: 'Orange' },\n 'bg-yellow': { css: { 'background-color': `light-dark(${tailwindColors.yellow[300]}, ${tailwindColors.yellow[700]})`, }, label: 'Yellow' },\n 'bg-green': { css: { 'background-color': `light-dark(${tailwindColors.green[400]}, ${tailwindColors.green[700]})`, }, label: 'Green' },\n 'bg-blue': { css: { 'background-color': `light-dark(${tailwindColors.blue[400]}, ${tailwindColors.blue[600]})`, }, label: 'Blue' },\n 'bg-purple': { css: { 'background-color': `light-dark(${tailwindColors.purple[400]}, ${tailwindColors.purple[600]})`, }, label: 'Purple' },\n 'bg-pink': { css: { 'background-color': `light-dark(${tailwindColors.pink[400]}, ${tailwindColors.pink[600]})`, }, label: 'Pink' },\n } satisfies StateValues\n }\n"],"mappings":"AAEA,MAAMA,cAAA,GAAiB;EACrBC,KAAA,EAAO;IACL,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,KAAA,EAAO;EACPC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,OAAA,EAAS;EACTC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,OAAA,EAAS;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,OAAA,EAAS;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,KAAA,EAAO;IACL,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,MAAA,EAAQ;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,OAAA,EAAS;EACTC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,OAAA,EAAS;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,MAAA,EAAQ;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,MAAA,EAAQ;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,GAAA,EAAK;IACH,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,IAAA,EAAM;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;EACT;EACAC,GAAA,EAAK;IACH,MAAM;IACN,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;IACP,OAAO;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IAAI,KAAK1B,cAAA,CAAe0B,MAAM,CAAC,IAAI;MAAK;MAAGK,KAAA,EAAO;IAAS;IACzI,YAAY;MAAED,GAAA,EAAK;QAAE,oBAAoB,cAAc9B,cAAA,CAAeS,KAAK,CAAC,IAAI,KAAKT,cAAA,CAAeS,KAAK,CAAC,IAAI;MAAK;MAAGsB,KAAA,EAAO;IAAQ;IACrI,WAAW;MAAED,GAAA,EAAK;QAAE,oBAAoB,cAAc9B,cAAA,CAAeG,IAAI,CAAC,IAAI,KAAKH,cAAA,CAAeG,IAAI,CAAC,IAAI;MAAK;MAAG4B,KAAA,EAAO;IAAO;IACjI,aAAa;MAAED,GAAA,EAAK;QAAE,oBAAoB,cAAc9B,cAAA,CAAegB,MAAM,CAAC,IAAI,KAAKhB,cAAA,CAAegB,MAAM,CAAC,IAAI;MAAK;MAAGe,KAAA,EAAO;IAAS;IACzI,WAAW;MAAED,GAAA,EAAK;QAAE,oBAAoB,cAAc9B,cAAA,CAAee,IAAI,CAAC,IAAI,KAAKf,cAAA,CAAee,IAAI,CAAC,IAAI;MAAK;MAAGgB,KAAA,EAAO;IAAO;EACnI;AACF","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import type { TextStateFeatureProps } from './feature.server.js';
2
+ export declare const TextStateFeatureClient: import("../typesClient.js").FeatureProviderProviderClient<TextStateFeatureProps, TextStateFeatureProps>;
3
+ //# sourceMappingURL=feature.client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature.client.d.ts","sourceRoot":"","sources":["../../../src/features/textState/feature.client.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAiDhE,eAAO,MAAM,sBAAsB,yGAgBjC,CAAA"}