lizaui 8.0.7 → 8.0.8
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/button/index.cjs.js +1 -1
- package/dist/button/index.es.js +1 -1
- package/dist/calendar/index.cjs.js +10 -10
- package/dist/calendar/index.cjs.js.map +1 -1
- package/dist/calendar/index.es.js +1842 -1309
- package/dist/calendar/index.es.js.map +1 -1
- package/dist/checkbox/index.cjs.js +1 -1
- package/dist/checkbox/index.es.js +1 -1
- package/dist/chip/index.cjs.js +1 -1
- package/dist/chip/index.es.js +1 -1
- package/dist/chunks/{button-COC4E-Qv.js → button-CSuKvE1x.js} +4 -4
- package/dist/chunks/{button-COC4E-Qv.js.map → button-CSuKvE1x.js.map} +1 -1
- package/dist/chunks/{button-CGIs6rx_.js → button-OdZ6El_t.js} +2 -2
- package/dist/chunks/{button-CGIs6rx_.js.map → button-OdZ6El_t.js.map} +1 -1
- package/dist/chunks/{checkbox-C4O1CC2o.js → checkbox-BhW9i0pm.js} +3 -3
- package/dist/chunks/{checkbox-C4O1CC2o.js.map → checkbox-BhW9i0pm.js.map} +1 -1
- package/dist/chunks/{checkbox-C7iPXnsq.js → checkbox-CWDPVAn2.js} +2 -2
- package/dist/chunks/{checkbox-C7iPXnsq.js.map → checkbox-CWDPVAn2.js.map} +1 -1
- package/dist/chunks/{index-B_lLnyI9.js → index-6ER8bShj.js} +2 -2
- package/dist/chunks/{index-B_lLnyI9.js.map → index-6ER8bShj.js.map} +1 -1
- package/dist/chunks/{index-F6lXbxSB.js → index-BydcKEwP.js} +2 -2
- package/dist/chunks/{index-F6lXbxSB.js.map → index-BydcKEwP.js.map} +1 -1
- package/dist/chunks/{index-6UmdGTUS.js → index-Do-g2tEs.js} +2 -2
- package/dist/chunks/{index-6UmdGTUS.js.map → index-Do-g2tEs.js.map} +1 -1
- package/dist/chunks/{index-BJ7LndVf.js → index-VJ2Qvmen.js} +2 -2
- package/dist/chunks/{index-BJ7LndVf.js.map → index-VJ2Qvmen.js.map} +1 -1
- package/dist/chunks/jsx-runtime-BjzqJBtL.js +2 -0
- package/dist/chunks/{jsx-runtime-DZW6kfQG.js.map → jsx-runtime-BjzqJBtL.js.map} +1 -1
- package/dist/chunks/{jsx-runtime-Dk9ExdSX.js → jsx-runtime-Cl_4eDuT.js} +3 -2
- package/dist/chunks/{jsx-runtime-Dk9ExdSX.js.map → jsx-runtime-Cl_4eDuT.js.map} +1 -1
- package/dist/chunks/{label-error-wbavGDVw.js → label-error-Ax74Uy3M.js} +2 -2
- package/dist/chunks/{label-error-wbavGDVw.js.map → label-error-Ax74Uy3M.js.map} +1 -1
- package/dist/chunks/{label-error-Dg6_L7YY.js → label-error-DGQqDKTV.js} +2 -2
- package/dist/chunks/{label-error-Dg6_L7YY.js.map → label-error-DGQqDKTV.js.map} +1 -1
- package/dist/chunks/{ripple-DkVNrwwK.js → ripple-DMI95LHg.js} +2 -2
- package/dist/chunks/{ripple-DkVNrwwK.js.map → ripple-DMI95LHg.js.map} +1 -1
- package/dist/chunks/{ripple-S5nRL6TJ.js → ripple-DieNd7XQ.js} +2 -2
- package/dist/chunks/{ripple-S5nRL6TJ.js.map → ripple-DieNd7XQ.js.map} +1 -1
- package/dist/chunks/{scroll-area-DQDhB5AF.js → scroll-area-C8l3z7wv.js} +2 -2
- package/dist/chunks/{scroll-area-DQDhB5AF.js.map → scroll-area-C8l3z7wv.js.map} +1 -1
- package/dist/chunks/{scroll-area-DraFsZQz.js → scroll-area-zt_z9PRo.js} +5 -5
- package/dist/chunks/{scroll-area-DraFsZQz.js.map → scroll-area-zt_z9PRo.js.map} +1 -1
- package/dist/chunks/{select-oS2dnCk6.js → select-CC7ump6t.js} +2 -2
- package/dist/chunks/{select-oS2dnCk6.js.map → select-CC7ump6t.js.map} +1 -1
- package/dist/chunks/{select-BSKY8D4Z.js → select-qaP_vaF3.js} +5 -5
- package/dist/chunks/{select-BSKY8D4Z.js.map → select-qaP_vaF3.js.map} +1 -1
- package/dist/chunks/{styled-components.browser.esm-CxZkQVdi.js → styled-components.browser.esm-CAEXERbT.js} +2 -2
- package/dist/chunks/{styled-components.browser.esm-CxZkQVdi.js.map → styled-components.browser.esm-CAEXERbT.js.map} +1 -1
- package/dist/chunks/{styled-components.browser.esm-M-8MrVJR.js → styled-components.browser.esm-DwaG9BxE.js} +2 -2
- package/dist/chunks/{styled-components.browser.esm-M-8MrVJR.js.map → styled-components.browser.esm-DwaG9BxE.js.map} +1 -1
- package/dist/chunks/{textarea-COi5ngTN.js → textarea-BIy5pTb5.js} +5 -5
- package/dist/chunks/{textarea-COi5ngTN.js.map → textarea-BIy5pTb5.js.map} +1 -1
- package/dist/chunks/{textarea-99dejq_o.js → textarea-Cklud2kp.js} +2 -2
- package/dist/chunks/{textarea-99dejq_o.js.map → textarea-Cklud2kp.js.map} +1 -1
- package/dist/chunks/{tooltip-Bxodcuiq.js → tooltip-B-5G3VVC.js} +2 -2
- package/dist/chunks/{tooltip-Bxodcuiq.js.map → tooltip-B-5G3VVC.js.map} +1 -1
- package/dist/chunks/{tooltip-DWnKIv1c.js → tooltip-DGFz59KW.js} +2 -2
- package/dist/chunks/{tooltip-DWnKIv1c.js.map → tooltip-DGFz59KW.js.map} +1 -1
- package/dist/divider/index.cjs.js +1 -1
- package/dist/divider/index.es.js +2 -2
- package/dist/modal/index.cjs.js +1 -1
- package/dist/modal/index.es.js +2 -2
- package/dist/pagination/index.cjs.js +1 -1
- package/dist/pagination/index.es.js +4 -4
- package/dist/phone-input/index.cjs.js +1 -1
- package/dist/phone-input/index.es.js +6 -6
- package/dist/ripple/index.cjs.js +1 -1
- package/dist/ripple/index.es.js +1 -1
- package/dist/select-input/index.cjs.js +1 -1
- package/dist/select-input/index.es.js +3 -3
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +3 -3
- package/dist/time-input/index.cjs.js +1 -1
- package/dist/time-input/index.es.js +5 -5
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +11 -11
- package/package.json +1 -1
- package/dist/chunks/jsx-runtime-DZW6kfQG.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime-Dk9ExdSX.js","sources":["../../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.production.js","../../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js","../../node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1"],"mappings":";;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;AACA,SAAAG,EAAA,WAAmBP,GACnBO,EAAA,MAAcN,GACdM,EAAA,OAAeN;;;;;sBCtBE,QAAQ,IAAI,aAA7B,iBACG,WAAY;AACX,aAASO,EAAyBN,GAAM;AACtC,UAAYA,KAAR,KAAc,QAAO;AACzB,UAAmB,OAAOA,KAAtB;AACF,eAAOA,EAAK,aAAaO,IACrB,OACAP,EAAK,eAAeA,E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AAQD,GAAM;AAC7D,UAAIqB,IACF,MAAMnC,EAAqB;AAC7B,aAAOmB;AAAA,QACLjD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACA2C;AAAA,QACAD;AAAA,QACAqB,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,IAAI+D;AAAA;IAE3D;AAAA,EACA,GAAG;;;;sBCnWC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBP,GAAA,IAEjBO,EAAA,UAAiBC,GAAA;;;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"jsx-runtime-Cl_4eDuT.js","sources":["../../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.production.js","../../node_modules/.pnpm/react@19.1.1/node_modules/react/cjs/react-jsx-runtime.development.js","../../node_modules/.pnpm/react@19.1.1/node_modules/react/jsx-runtime.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\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\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","self","source","owner","debugStack","debugTask","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1"],"mappings":";;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,4BAA4B,GAC9DC,IAAsB,OAAO,IAAI,gBAAgB;AACnD,WAASC,EAAQC,GAAMC,GAAQC,GAAU;AACvC,QAAIC,IAAM;AAGV,QAFWD,MAAX,WAAwBC,IAAM,KAAKD,IACxBD,EAAO,QAAlB,WAA0BE,IAAM,KAAKF,EAAO,MACxC,SAASA,GAAQ;AACnB,MAAAC,IAAW,CAAA;AACX,eAASE,KAAYH;AACnB,QAAUG,MAAV,UAAuBF,EAASE,CAAQ,IAAIH,EAAOG,CAAQ;AAAA,IACjE,MAAS,CAAAF,IAAWD;AAClB,WAAAA,IAASC,EAAS,KACX;AAAA,MACL,UAAUL;AAAA,MACV,MAAMG;AAAA,MACN,KAAKG;AAAA,MACL,KAAgBF,MAAX,SAAoBA,IAAS;AAAA,MAClC,OAAOC;AAAA;EAEX;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7B,aAAOmB;AAAA,QACLjD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACA2C;AAAA,QACAD;AAAA,QACAqB,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,IAAI+D;AAAA;IAE3D,GACIC,EAAA,OAAe,SAAUhE,GAAMC,GAAQC,GAAU2C,GAAQD,GAAM;AAC7D,UAAIqB,IACF,MAAMnC,EAAqB;AAC7B,aAAOmB;AAAA,QACLjD;AAAA,QACAC;AAAA,QACAC;AAAA,QACA;AAAA,QACA2C;AAAA,QACAD;AAAA,QACAqB,IACI,MAAM,uBAAuB,IAC7BH;AAAA,QACJG,IAAmBL,EAAWlC,EAAY1B,CAAI,CAAC,IAAI+D;AAAA;IAE3D;AAAA,EACA,GAAG;;;;sBCnWC,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBP,GAAA,IAEjBO,EAAA,UAAiBC,GAAA;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const n=require("./jsx-runtime-
|
|
2
|
-
//# sourceMappingURL=label-error-
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BjzqJBtL.js"),s=require("tailwind-merge"),a=({text:e,className:r})=>{const t=s.twMerge("text-danger font-normal text-xs mt-1 leading-none",r);return n.jsxRuntimeExports.jsx("span",{className:t,children:e})};exports.LabelError=a;
|
|
2
|
+
//# sourceMappingURL=label-error-Ax74Uy3M.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-error-
|
|
1
|
+
{"version":3,"file":"label-error-Ax74Uy3M.js","sources":["../../src/components/ui/label-error.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\nexport type LabelErrorType = {\n\t/**\n\t * @description\n\t * Propiedad para colocar el texto.\n\t * @type\n\t * Puede recibir **string**\n\t */\n\ttext: string;\n\t/**\n\t * @description\n\t * Propiedad para brindar clases personalizadas al componente, este se situa en el container del label.\n\t */\n\tclassName?: string;\n};\n\nexport const LabelError = ({ text, className }: LabelErrorType) => {\n\tconst classLabel = twMerge(\"text-danger font-normal text-xs mt-1 leading-none\", className);\n\n\treturn <span className={classLabel}>{text}</span>;\n};\n"],"names":["LabelError","text","className","classLabel","twMerge","jsx"],"mappings":"sFAgBaA,EAAa,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAAgC,CAClE,MAAMC,EAAaC,EAAAA,QAAQ,oDAAqDF,CAAS,EAEzF,OAAOG,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAWF,EAAa,SAAAF,EAAK,CAC3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
1
|
+
import { j as s } from "./jsx-runtime-Cl_4eDuT.js";
|
|
2
2
|
import { twMerge as n } from "tailwind-merge";
|
|
3
3
|
const m = ({ text: r, className: t }) => {
|
|
4
4
|
const e = n("text-danger font-normal text-xs mt-1 leading-none", t);
|
|
@@ -7,4 +7,4 @@ const m = ({ text: r, className: t }) => {
|
|
|
7
7
|
export {
|
|
8
8
|
m as L
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=label-error-
|
|
10
|
+
//# sourceMappingURL=label-error-DGQqDKTV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-error-
|
|
1
|
+
{"version":3,"file":"label-error-DGQqDKTV.js","sources":["../../src/components/ui/label-error.tsx"],"sourcesContent":["import { twMerge } from \"tailwind-merge\";\nexport type LabelErrorType = {\n\t/**\n\t * @description\n\t * Propiedad para colocar el texto.\n\t * @type\n\t * Puede recibir **string**\n\t */\n\ttext: string;\n\t/**\n\t * @description\n\t * Propiedad para brindar clases personalizadas al componente, este se situa en el container del label.\n\t */\n\tclassName?: string;\n};\n\nexport const LabelError = ({ text, className }: LabelErrorType) => {\n\tconst classLabel = twMerge(\"text-danger font-normal text-xs mt-1 leading-none\", className);\n\n\treturn <span className={classLabel}>{text}</span>;\n};\n"],"names":["LabelError","text","className","classLabel","twMerge","jsx"],"mappings":";;AAgBO,MAAMA,IAAa,CAAC,EAAE,MAAAC,GAAM,WAAAC,QAAgC;AAClE,QAAMC,IAAaC,EAAQ,qDAAqDF,CAAS;AAEzF,SAAOG,gBAAAA,EAAAA,IAAC,QAAA,EAAK,WAAWF,GAAa,UAAAF,GAAK;AAC3C;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./assertion-CrT8p68K.js";
|
|
2
2
|
import { useState as u, useCallback as l } from "react";
|
|
3
|
-
import { j as s } from "./jsx-runtime-
|
|
3
|
+
import { j as s } from "./jsx-runtime-Cl_4eDuT.js";
|
|
4
4
|
import { LazyMotion as p, domAnimation as d, AnimatePresence as x, m as h } from "framer-motion";
|
|
5
5
|
function y(e, r, i) {
|
|
6
6
|
return Math.min(Math.max(e, r), i);
|
|
@@ -65,4 +65,4 @@ export {
|
|
|
65
65
|
g as R,
|
|
66
66
|
M as u
|
|
67
67
|
};
|
|
68
|
-
//# sourceMappingURL=ripple-
|
|
68
|
+
//# sourceMappingURL=ripple-DMI95LHg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple-
|
|
1
|
+
{"version":3,"file":"ripple-DMI95LHg.js","sources":["../../src/functions/numbers.ts","../../src/components/ripple/use-ripple.ts","../../src/components/ripple/ripple.tsx"],"sourcesContent":["/**\n * Clamps a value between a minimum and maximum range.\n *\n * @param value - The value to be clamped.\n * @param min - The minimum value of the range.\n * @param max - The maximum value of the range.\n * @returns The clamped value.\n */\nexport function clamp(value: number, min: number, max: number) {\n\treturn Math.min(Math.max(value, min), max);\n}\n\n/**\n * Generates a unique identifier using a specified prefix and a random number.\n *\n * @param prefix - The prefix to prepend to the unique identifier.\n * @returns A string that combines the prefix and a random number.\n *\n * @example\n * getUniqueID('btn'); // returns 'btn-123456'\n */\nexport function getUniqueID(prefix: string) {\n\treturn `${prefix}-${Math.floor(Math.random() * 1000000)}`;\n}\n","import { getUniqueID } from \"@/functions\";\nimport React, { useCallback, useState } from \"react\";\n\nexport type RippleType = {\n\tkey: React.Key;\n\tx: number;\n\ty: number;\n\tsize: number;\n};\n\nexport function useRipple(props: any = {}) {\n\tconst [ripples, setRipples] = useState<RippleType[]>([]);\n\n\tconst onPress = useCallback((event: any) => {\n\t\tconst trigger = event.target;\n\n\t\tconst size = Math.max(trigger.clientWidth, trigger.clientHeight);\n\n\t\tsetRipples((prevRipples) => [\n\t\t\t...prevRipples,\n\t\t\t{\n\t\t\t\tkey: getUniqueID(prevRipples.length.toString()),\n\t\t\t\tsize,\n\t\t\t\tx: event.x - size / 2,\n\t\t\t\ty: event.y - size / 2,\n\t\t\t},\n\t\t]);\n\t}, []);\n\n\tconst onClear = useCallback((key: React.Key) => {\n\t\tsetRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));\n\t}, []);\n\n\treturn { ripples, onClear, onPress, ...props };\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>;\n","import type { RippleType } from \"./use-ripple\";\nimport type { FC } from \"react\";\nimport type { HTMLMotionProps } from \"framer-motion\";\nimport { domAnimation } from \"framer-motion\";\n\nimport { AnimatePresence, m, LazyMotion } from \"framer-motion\";\nimport { clamp } from \"@/functions\";\n\n\nexport type As<Props = any> = React.ElementType<Props>;\nexport type PropsOf<T extends As> = React.ComponentPropsWithoutRef<T> & {\n as?: As;\n};\nexport type HTMLProps<T extends As = \"div\", OmitKeys extends keyof any = never> = Omit<\n PropsOf<T>,\n \"ref\" | \"color\" | \"slot\" | \"size\" | \"defaultChecked\" | \"defaultValue\" | OmitKeys\n> & {\n as?: As;\n};\nexport interface RippleProps extends HTMLProps<\"span\"> {\n\tripples: RippleType[];\n\tcolor?: string;\n\tmotionProps?: HTMLMotionProps<\"span\">;\n\tstyle?: React.CSSProperties;\n\tonClear: (key: React.Key) => void;\n}\n\n\nconst Ripple: FC<RippleProps> = (props) => {\n const {ripples = [], motionProps, color = \"currentColor\", style, onClear} = props;\n\n return (\n <>\n {ripples.map((ripple) => {\n const duration = clamp(0.01 * ripple.size, 0.2, ripple.size > 100 ? 0.75 : 0.5);\n\n return (\n <LazyMotion key={ripple.key} features={domAnimation}>\n <AnimatePresence mode=\"popLayout\">\n <m.span\n animate={{transform: \"scale(2)\", opacity: 0}}\n className=\"ripple-item-span\"\n exit={{opacity: 0}}\n initial={{transform: \"scale(0)\", opacity: 0.35}}\n style={{\n position: \"absolute\",\n backgroundColor: color,\n borderRadius: \"100%\",\n transformOrigin: \"center\",\n pointerEvents: \"none\",\n overflow: \"hidden\",\n inset: 0,\n zIndex: 0,\n top: ripple.y,\n left: ripple.x,\n width: `${ripple.size}px`,\n height: `${ripple.size}px`,\n ...style,\n }}\n transition={{duration}}\n onAnimationComplete={() => {\n onClear(ripple.key);\n }}\n {...motionProps}\n />\n </AnimatePresence>\n </LazyMotion>\n );\n })}\n </>\n );\n};\nRipple.displayName = \"LizaUI.Ripple\";\n\nexport default Ripple;\n"],"names":["clamp","value","min","max","getUniqueID","prefix","useRipple","props","ripples","setRipples","useState","onPress","useCallback","event","trigger","size","prevRipples","onClear","key","prevState","ripple","Ripple","motionProps","color","style","jsx","Fragment","duration","LazyMotion","domAnimation","AnimatePresence","m"],"mappings":";;;;AAQO,SAASA,EAAMC,GAAeC,GAAaC,GAAa;AAC9D,SAAO,KAAK,IAAI,KAAK,IAAIF,GAAOC,CAAG,GAAGC,CAAG;AAC1C;AAWO,SAASC,EAAYC,GAAgB;AAC3C,SAAO,GAAGA,CAAM,IAAI,KAAK,MAAM,KAAK,OAAA,IAAW,GAAO,CAAC;AACxD;ACbO,SAASC,EAAUC,IAAa,IAAI;AAC1C,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAuB,CAAA,CAAE,GAEjDC,IAAUC,EAAY,CAACC,MAAe;AAC3C,UAAMC,IAAUD,EAAM,QAEhBE,IAAO,KAAK,IAAID,EAAQ,aAAaA,EAAQ,YAAY;AAE/D,IAAAL,EAAW,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AO;AAAA,UACP,QAAQ;AAAA,UACR,KAAKH,EAAO;AAAA,UACZ,MAAMA,EAAO;AAAA,UACb,OAAO,GAAGA,EAAO,IAAI;AAAA,UACrB,QAAQ,GAAGA,EAAO,IAAI;AAAA,UACtB,GAAGI;AAAA,QAAA;AAAA,QAEL,YAAY,EAAC,UAAAG,EAAA;AAAA,QACb,qBAAqB,MAAM;AACzB,UAAAV,EAAQG,EAAO,GAAG;AAAA,QACpB;AAAA,QACC,GAAGE;AAAA,MAAA;AAAA,IAAA,GAER,EAAA,GA5BeF,EAAO,GA6BxB;AAAA,EAEJ,CAAC,EAAA,CACH;AAEJ;AACAC,EAAO,cAAc;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require("./assertion-C7nbUE-q.js");const l=require("react"),r=require("./jsx-runtime-
|
|
2
|
-
//# sourceMappingURL=ripple-
|
|
1
|
+
"use strict";require("./assertion-C7nbUE-q.js");const l=require("react"),r=require("./jsx-runtime-BjzqJBtL.js"),a=require("framer-motion");function p(e,s,i){return Math.min(Math.max(e,s),i)}function d(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function h(e={}){const[s,i]=l.useState([]),c=l.useCallback(n=>{const t=n.target,o=Math.max(t.clientWidth,t.clientHeight);i(m=>[...m,{key:d(m.length.toString()),size:o,x:n.x-o/2,y:n.y-o/2}])},[]),u=l.useCallback(n=>{i(t=>t.filter(o=>o.key!==n))},[]);return{ripples:s,onClear:u,onPress:c,...e}}const x=e=>{const{ripples:s=[],motionProps:i,color:c="currentColor",style:u,onClear:n}=e;return r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:s.map(t=>{const o=p(.01*t.size,.2,t.size>100?.75:.5);return r.jsxRuntimeExports.jsx(a.LazyMotion,{features:a.domAnimation,children:r.jsxRuntimeExports.jsx(a.AnimatePresence,{mode:"popLayout",children:r.jsxRuntimeExports.jsx(a.m.span,{animate:{transform:"scale(2)",opacity:0},className:"ripple-item-span",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:c,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:t.y,left:t.x,width:`${t.size}px`,height:`${t.size}px`,...u},transition:{duration:o},onAnimationComplete:()=>{n(t.key)},...i})})},t.key)})})};x.displayName="LizaUI.Ripple";exports.Ripple=x;exports.useRipple=h;
|
|
2
|
+
//# sourceMappingURL=ripple-DieNd7XQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ripple-
|
|
1
|
+
{"version":3,"file":"ripple-DieNd7XQ.js","sources":["../../src/functions/numbers.ts","../../src/components/ripple/use-ripple.ts","../../src/components/ripple/ripple.tsx"],"sourcesContent":["/**\n * Clamps a value between a minimum and maximum range.\n *\n * @param value - The value to be clamped.\n * @param min - The minimum value of the range.\n * @param max - The maximum value of the range.\n * @returns The clamped value.\n */\nexport function clamp(value: number, min: number, max: number) {\n\treturn Math.min(Math.max(value, min), max);\n}\n\n/**\n * Generates a unique identifier using a specified prefix and a random number.\n *\n * @param prefix - The prefix to prepend to the unique identifier.\n * @returns A string that combines the prefix and a random number.\n *\n * @example\n * getUniqueID('btn'); // returns 'btn-123456'\n */\nexport function getUniqueID(prefix: string) {\n\treturn `${prefix}-${Math.floor(Math.random() * 1000000)}`;\n}\n","import { getUniqueID } from \"@/functions\";\nimport React, { useCallback, useState } from \"react\";\n\nexport type RippleType = {\n\tkey: React.Key;\n\tx: number;\n\ty: number;\n\tsize: number;\n};\n\nexport function useRipple(props: any = {}) {\n\tconst [ripples, setRipples] = useState<RippleType[]>([]);\n\n\tconst onPress = useCallback((event: any) => {\n\t\tconst trigger = event.target;\n\n\t\tconst size = Math.max(trigger.clientWidth, trigger.clientHeight);\n\n\t\tsetRipples((prevRipples) => [\n\t\t\t...prevRipples,\n\t\t\t{\n\t\t\t\tkey: getUniqueID(prevRipples.length.toString()),\n\t\t\t\tsize,\n\t\t\t\tx: event.x - size / 2,\n\t\t\t\ty: event.y - size / 2,\n\t\t\t},\n\t\t]);\n\t}, []);\n\n\tconst onClear = useCallback((key: React.Key) => {\n\t\tsetRipples((prevState) => prevState.filter((ripple) => ripple.key !== key));\n\t}, []);\n\n\treturn { ripples, onClear, onPress, ...props };\n}\n\nexport type UseRippleReturn = ReturnType<typeof useRipple>;\n","import type { RippleType } from \"./use-ripple\";\nimport type { FC } from \"react\";\nimport type { HTMLMotionProps } from \"framer-motion\";\nimport { domAnimation } from \"framer-motion\";\n\nimport { AnimatePresence, m, LazyMotion } from \"framer-motion\";\nimport { clamp } from \"@/functions\";\n\n\nexport type As<Props = any> = React.ElementType<Props>;\nexport type PropsOf<T extends As> = React.ComponentPropsWithoutRef<T> & {\n as?: As;\n};\nexport type HTMLProps<T extends As = \"div\", OmitKeys extends keyof any = never> = Omit<\n PropsOf<T>,\n \"ref\" | \"color\" | \"slot\" | \"size\" | \"defaultChecked\" | \"defaultValue\" | OmitKeys\n> & {\n as?: As;\n};\nexport interface RippleProps extends HTMLProps<\"span\"> {\n\tripples: RippleType[];\n\tcolor?: string;\n\tmotionProps?: HTMLMotionProps<\"span\">;\n\tstyle?: React.CSSProperties;\n\tonClear: (key: React.Key) => void;\n}\n\n\nconst Ripple: FC<RippleProps> = (props) => {\n const {ripples = [], motionProps, color = \"currentColor\", style, onClear} = props;\n\n return (\n <>\n {ripples.map((ripple) => {\n const duration = clamp(0.01 * ripple.size, 0.2, ripple.size > 100 ? 0.75 : 0.5);\n\n return (\n <LazyMotion key={ripple.key} features={domAnimation}>\n <AnimatePresence mode=\"popLayout\">\n <m.span\n animate={{transform: \"scale(2)\", opacity: 0}}\n className=\"ripple-item-span\"\n exit={{opacity: 0}}\n initial={{transform: \"scale(0)\", opacity: 0.35}}\n style={{\n position: \"absolute\",\n backgroundColor: color,\n borderRadius: \"100%\",\n transformOrigin: \"center\",\n pointerEvents: \"none\",\n overflow: \"hidden\",\n inset: 0,\n zIndex: 0,\n top: ripple.y,\n left: ripple.x,\n width: `${ripple.size}px`,\n height: `${ripple.size}px`,\n ...style,\n }}\n transition={{duration}}\n onAnimationComplete={() => {\n onClear(ripple.key);\n }}\n {...motionProps}\n />\n </AnimatePresence>\n </LazyMotion>\n );\n })}\n </>\n );\n};\nRipple.displayName = \"LizaUI.Ripple\";\n\nexport default Ripple;\n"],"names":["clamp","value","min","max","getUniqueID","prefix","useRipple","props","ripples","setRipples","useState","onPress","useCallback","event","trigger","size","prevRipples","onClear","key","prevState","ripple","Ripple","motionProps","color","style","jsx","Fragment","duration","LazyMotion","domAnimation","AnimatePresence","m"],"mappings":"2IAQO,SAASA,EAAMC,EAAeC,EAAaC,EAAa,CAC9D,OAAO,KAAK,IAAI,KAAK,IAAIF,EAAOC,CAAG,EAAGC,CAAG,CAC1C,CAWO,SAASC,EAAYC,EAAgB,CAC3C,MAAO,GAAGA,CAAM,IAAI,KAAK,MAAM,KAAK,OAAA,EAAW,GAAO,CAAC,EACxD,CCbO,SAASC,EAAUC,EAAa,GAAI,CAC1C,KAAM,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAuB,CAAA,CAAE,EAEjDC,EAAUC,cAAaC,GAAe,CAC3C,MAAMC,EAAUD,EAAM,OAEhBE,EAAO,KAAK,IAAID,EAAQ,YAAaA,EAAQ,YAAY,EAE/DL,EAAYO,GAAgB,CAC3B,GAAGA,EACH,CACC,IAAKZ,EAAYY,EAAY,OAAO,UAAU,EAC9C,KAAAD,EACA,EAAGF,EAAM,EAAIE,EAAO,EACpB,EAAGF,EAAM,EAAIE,EAAO,CAAA,CACrB,CACA,CACF,EAAG,CAAA,CAAE,EAECE,EAAUL,cAAaM,GAAmB,CAC/CT,EAAYU,GAAcA,EAAU,OAAQC,GAAWA,EAAO,MAAQF,CAAG,CAAC,CAC3E,EAAG,CAAA,CAAE,EAEL,MAAO,CAAE,QAAAV,EAAS,QAAAS,EAAS,QAAAN,EAAS,GAAGJ,CAAA,CACxC,CCNA,MAAMc,EAA2Bd,GAAU,CACzC,KAAM,CAAC,QAAAC,EAAU,CAAA,EAAI,YAAAc,EAAa,MAAAC,EAAQ,eAAgB,MAAAC,EAAO,QAAAP,CAAA,EAAWV,EAE5E,OACEkB,EAAAA,kBAAAA,IAAAC,EAAAA,kBAAAA,SAAA,CACG,SAAAlB,EAAQ,IAAKY,GAAW,CACvB,MAAMO,EAAW3B,EAAM,IAAOoB,EAAO,KAAM,GAAKA,EAAO,KAAO,IAAM,IAAO,EAAG,EAE9E,+BACGQ,EAAAA,WAAA,CAA4B,SAAUC,EAAAA,aACrC,SAAAJ,EAAAA,kBAAAA,IAACK,EAAAA,gBAAA,CAAgB,KAAK,YACpB,SAAAL,EAAAA,kBAAAA,IAACM,EAAAA,EAAE,KAAF,CACC,QAAS,CAAC,UAAW,WAAY,QAAS,CAAA,EAC1C,UAAU,mBACV,KAAM,CAAC,QAAS,CAAA,EAChB,QAAS,CAAC,UAAW,WAAY,QAAS,GAAA,EAC1C,MAAO,CACL,SAAU,WACV,gBAAiBR,EACjB,aAAc,OACd,gBAAiB,SACjB,cAAe,OACf,SAAU,SACV,MAAO,EACP,OAAQ,EACR,IAAKH,EAAO,EACZ,KAAMA,EAAO,EACb,MAAO,GAAGA,EAAO,IAAI,KACrB,OAAQ,GAAGA,EAAO,IAAI,KACtB,GAAGI,CAAA,EAEL,WAAY,CAAC,SAAAG,CAAA,EACb,oBAAqB,IAAM,CACzBV,EAAQG,EAAO,GAAG,CACpB,EACC,GAAGE,CAAA,CAAA,EAER,CAAA,EA5BeF,EAAO,GA6BxB,CAEJ,CAAC,CAAA,CACH,CAEJ,EACAC,EAAO,YAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const I=require("./index-F6lXbxSB.js"),h=require("./jsx-runtime-DZW6kfQG.js"),le=require("react"),p=require("./textarea-99dejq_o.js"),C=require("./index-B_lLnyI9.js"),B=require("./utils-IjLH3w2e.js");function se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=se(le);const ce=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ie=I.createLucideIcon("search",ce);function ae(e,t){return s.useReducer((r,n)=>t[r][n]??r,e)}var M="ScrollArea",[V,Ce]=p.createContextScope(M),[ue,v]=V(M),F=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:l=600,...c}=e,[i,a]=s.useState(null),[f,u]=s.useState(null),[m,d]=s.useState(null),[b,w]=s.useState(null),[j,z]=s.useState(null),[g,T]=s.useState(0),[k,y]=s.useState(0),[_,A]=s.useState(!1),[L,D]=s.useState(!1),S=C.useComposedRefs(t,E=>a(E)),x=I.useDirection(o);return h.jsxRuntimeExports.jsx(ue,{scope:r,type:n,dir:x,scrollHideDelay:l,scrollArea:i,viewport:f,onViewportChange:u,content:m,onContentChange:d,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:_,onScrollbarXEnabledChange:A,scrollbarY:j,onScrollbarYChange:z,scrollbarYEnabled:L,onScrollbarYEnabledChange:D,onCornerWidthChange:T,onCornerHeightChange:y,children:h.jsxRuntimeExports.jsx(p.Primitive.div,{dir:x,...c,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});F.displayName=M;var q="ScrollAreaViewport",$=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...l}=e,c=v(q,r),i=s.useRef(null),a=C.useComposedRefs(t,i,c.onViewportChange);return h.jsxRuntimeExports.jsxs(h.jsxRuntimeExports.Fragment,{children:[h.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),h.jsxRuntimeExports.jsx(p.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.jsxRuntimeExports.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});$.displayName=q;var R="ScrollAreaScrollbar",G=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=o,i=e.orientation==="horizontal";return s.useEffect(()=>(i?l(!0):c(!0),()=>{i?l(!1):c(!1)}),[i,l,c]),o.type==="hover"?h.jsxRuntimeExports.jsx(de,{...n,ref:t,forceMount:r}):o.type==="scroll"?h.jsxRuntimeExports.jsx(fe,{...n,ref:t,forceMount:r}):o.type==="auto"?h.jsxRuntimeExports.jsx(J,{...n,ref:t,forceMount:r}):o.type==="always"?h.jsxRuntimeExports.jsx(X,{...n,ref:t}):null});G.displayName=R;var de=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),[l,c]=s.useState(!1);return s.useEffect(()=>{const i=o.scrollArea;let a=0;if(i){const f=()=>{window.clearTimeout(a),c(!0)},u=()=>{a=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",f),i.addEventListener("pointerleave",u),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",f),i.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),h.jsxRuntimeExports.jsx(p.Presence,{present:r||l,children:h.jsxRuntimeExports.jsx(J,{"data-state":l?"visible":"hidden",...n,ref:t})})}),fe=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),l=e.orientation==="horizontal",c=W(()=>a("SCROLL_END"),100),[i,a]=ae("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(i==="idle"){const f=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(f)}},[i,o.scrollHideDelay,a]),s.useEffect(()=>{const f=o.viewport,u=l?"scrollLeft":"scrollTop";if(f){let m=f[u];const d=()=>{const b=f[u];m!==b&&(a("SCROLL"),c()),m=b};return f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[o.viewport,l,a,c]),h.jsxRuntimeExports.jsx(p.Presence,{present:r||i!=="hidden",children:h.jsxRuntimeExports.jsx(X,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:p.composeEventHandlers(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:p.composeEventHandlers(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),J=s.forwardRef((e,t)=>{const r=v(R,e.__scopeScrollArea),{forceMount:n,...o}=e,[l,c]=s.useState(!1),i=e.orientation==="horizontal",a=W(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;c(i?f:u)}},10);return P(r.viewport,a),P(r.content,a),h.jsxRuntimeExports.jsx(p.Presence,{present:n||l,children:h.jsxRuntimeExports.jsx(X,{"data-state":l?"visible":"hidden",...o,ref:t})})}),X=s.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=v(R,e.__scopeScrollArea),l=s.useRef(null),c=s.useRef(0),[i,a]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=re(i.viewport,i.content),u={...n,sizes:i,onSizesChange:a,hasThumb:f>0&&f<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:d=>c.current=d};function m(d,b){return ve(d,c.current,i,b)}return r==="horizontal"?h.jsxRuntimeExports.jsx(he,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollLeft,b=U(d,i,o.dir);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=m(d,o.dir))}}):r==="vertical"?h.jsxRuntimeExports.jsx(me,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollTop,b=U(d,i);l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=m(d))}}):null}),he=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=v(R,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=C.useComposedRefs(t,a,l.onScrollbarXChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),h.jsxRuntimeExports.jsx(Q,{"data-orientation":"horizontal",...o,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,m)=>{if(l.viewport){const d=l.viewport.scrollLeft+u.deltaX;e.onWheelScroll(d),oe(d,m)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:N(c.paddingLeft),paddingEnd:N(c.paddingRight)}})}})}),me=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=v(R,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=C.useComposedRefs(t,a,l.onScrollbarYChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),h.jsxRuntimeExports.jsx(Q,{"data-orientation":"vertical",...o,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,m)=>{if(l.viewport){const d=l.viewport.scrollTop+u.deltaY;e.onWheelScroll(d),oe(d,m)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:N(c.paddingTop),paddingEnd:N(c.paddingBottom)}})}})}),[pe,K]=V(R),Q=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:f,onWheelScroll:u,onResize:m,...d}=e,b=v(R,r),[w,j]=s.useState(null),z=C.useComposedRefs(t,S=>j(S)),g=s.useRef(null),T=s.useRef(""),k=b.viewport,y=n.content-n.viewport,_=p.useCallbackRef(u),A=p.useCallbackRef(a),L=W(m,10);function D(S){if(g.current){const x=S.clientX-g.current.left,E=S.clientY-g.current.top;f({x,y:E})}}return s.useEffect(()=>{const S=x=>{const E=x.target;w?.contains(E)&&_(x,y)};return document.addEventListener("wheel",S,{passive:!1}),()=>document.removeEventListener("wheel",S,{passive:!1})},[k,w,y,_]),s.useEffect(A,[n,A]),P(w,L),P(b.content,L),h.jsxRuntimeExports.jsx(pe,{scope:r,scrollbar:w,hasThumb:o,onThumbChange:p.useCallbackRef(l),onThumbPointerUp:p.useCallbackRef(c),onThumbPositionChange:A,onThumbPointerDown:p.useCallbackRef(i),children:h.jsxRuntimeExports.jsx(p.Primitive.div,{...d,ref:z,style:{position:"absolute",...d.style},onPointerDown:p.composeEventHandlers(e.onPointerDown,S=>{S.button===0&&(S.target.setPointerCapture(S.pointerId),g.current=w.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),D(S))}),onPointerMove:p.composeEventHandlers(e.onPointerMove,D),onPointerUp:p.composeEventHandlers(e.onPointerUp,S=>{const x=S.target;x.hasPointerCapture(S.pointerId)&&x.releasePointerCapture(S.pointerId),document.body.style.webkitUserSelect=T.current,b.viewport&&(b.viewport.style.scrollBehavior=""),g.current=null})})})}),H="ScrollAreaThumb",Z=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=K(H,e.__scopeScrollArea);return h.jsxRuntimeExports.jsx(p.Presence,{present:r||o.hasThumb,children:h.jsxRuntimeExports.jsx(be,{ref:t,...n})})}),be=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,l=v(H,r),c=K(H,r),{onThumbPositionChange:i}=c,a=C.useComposedRefs(t,m=>c.onThumbChange(m)),f=s.useRef(void 0),u=W(()=>{f.current&&(f.current(),f.current=void 0)},100);return s.useEffect(()=>{const m=l.viewport;if(m){const d=()=>{if(u(),!f.current){const b=xe(m,i);f.current=b,i()}};return i(),m.addEventListener("scroll",d),()=>m.removeEventListener("scroll",d)}},[l.viewport,u,i]),h.jsxRuntimeExports.jsx(p.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:p.composeEventHandlers(e.onPointerDownCapture,m=>{const b=m.target.getBoundingClientRect(),w=m.clientX-b.left,j=m.clientY-b.top;c.onThumbPointerDown({x:w,y:j})}),onPointerUp:p.composeEventHandlers(e.onPointerUp,c.onThumbPointerUp)})});Z.displayName=H;var Y="ScrollAreaCorner",ee=s.forwardRef((e,t)=>{const r=v(Y,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?h.jsxRuntimeExports.jsx(Se,{...e,ref:t}):null});ee.displayName=Y;var Se=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=v(Y,r),[l,c]=s.useState(0),[i,a]=s.useState(0),f=!!(l&&i);return P(o.scrollbarX,()=>{const u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),a(u)}),P(o.scrollbarY,()=>{const u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),c(u)}),f?h.jsxRuntimeExports.jsx(p.Primitive.div,{...n,ref:t,style:{width:l,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function N(e){return e?parseInt(e,10):0}function re(e,t){const r=e/t;return isNaN(r)?0:r}function O(e){const t=re(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function ve(e,t,r,n="ltr"){const o=O(r),l=o/2,c=t||l,i=o-c,a=r.scrollbar.paddingStart+c,f=r.scrollbar.size-r.scrollbar.paddingEnd-i,u=r.content-r.viewport,m=n==="ltr"?[0,u]:[u*-1,0];return te([a,f],m)(e)}function U(e,t,r="ltr"){const n=O(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,c=t.content-t.viewport,i=l-n,a=r==="ltr"?[0,c]:[c*-1,0],f=I.clamp(e,a);return te([0,c],[0,i])(f)}function te(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function oe(e,t){return e>0&&e<t}var xe=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,i=r.top!==l.top;(c||i)&&t(),r=l,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function W(e,t){const r=p.useCallbackRef(e),n=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),s.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function P(e,t){const r=p.useCallbackRef(t);p.useLayoutEffect2(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var we=F,Re=$,ge=ee;function Ee({className:e,children:t,...r}){return h.jsxRuntimeExports.jsxs(we,{"data-slot":"scroll-area",className:B.cn("relative",e),...r,children:[h.jsxRuntimeExports.jsx(Re,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),h.jsxRuntimeExports.jsx(ne,{}),h.jsxRuntimeExports.jsx(ge,{})]})}function ne({className:e,orientation:t="vertical",...r}){return h.jsxRuntimeExports.jsx(G,{"data-slot":"scroll-area-scrollbar",orientation:t,className:B.cn("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:h.jsxRuntimeExports.jsx(Z,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=Ee;exports.ScrollBar=ne;exports.Search=ie;
|
|
2
|
-
//# sourceMappingURL=scroll-area-
|
|
1
|
+
"use strict";const I=require("./index-BydcKEwP.js"),h=require("./jsx-runtime-BjzqJBtL.js"),le=require("react"),p=require("./textarea-Cklud2kp.js"),C=require("./index-6ER8bShj.js"),B=require("./utils-IjLH3w2e.js");function se(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=se(le);const ce=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ie=I.createLucideIcon("search",ce);function ae(e,t){return s.useReducer((r,n)=>t[r][n]??r,e)}var M="ScrollArea",[V,Ce]=p.createContextScope(M),[ue,v]=V(M),F=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:l=600,...c}=e,[i,a]=s.useState(null),[f,u]=s.useState(null),[m,d]=s.useState(null),[b,w]=s.useState(null),[j,z]=s.useState(null),[g,T]=s.useState(0),[k,y]=s.useState(0),[_,A]=s.useState(!1),[L,D]=s.useState(!1),S=C.useComposedRefs(t,E=>a(E)),x=I.useDirection(o);return h.jsxRuntimeExports.jsx(ue,{scope:r,type:n,dir:x,scrollHideDelay:l,scrollArea:i,viewport:f,onViewportChange:u,content:m,onContentChange:d,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:_,onScrollbarXEnabledChange:A,scrollbarY:j,onScrollbarYChange:z,scrollbarYEnabled:L,onScrollbarYEnabledChange:D,onCornerWidthChange:T,onCornerHeightChange:y,children:h.jsxRuntimeExports.jsx(p.Primitive.div,{dir:x,...c,ref:S,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});F.displayName=M;var q="ScrollAreaViewport",$=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:n,nonce:o,...l}=e,c=v(q,r),i=s.useRef(null),a=C.useComposedRefs(t,i,c.onViewportChange);return h.jsxRuntimeExports.jsxs(h.jsxRuntimeExports.Fragment,{children:[h.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),h.jsxRuntimeExports.jsx(p.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:h.jsxRuntimeExports.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});$.displayName=q;var R="ScrollAreaScrollbar",G=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=o,i=e.orientation==="horizontal";return s.useEffect(()=>(i?l(!0):c(!0),()=>{i?l(!1):c(!1)}),[i,l,c]),o.type==="hover"?h.jsxRuntimeExports.jsx(de,{...n,ref:t,forceMount:r}):o.type==="scroll"?h.jsxRuntimeExports.jsx(fe,{...n,ref:t,forceMount:r}):o.type==="auto"?h.jsxRuntimeExports.jsx(J,{...n,ref:t,forceMount:r}):o.type==="always"?h.jsxRuntimeExports.jsx(X,{...n,ref:t}):null});G.displayName=R;var de=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),[l,c]=s.useState(!1);return s.useEffect(()=>{const i=o.scrollArea;let a=0;if(i){const f=()=>{window.clearTimeout(a),c(!0)},u=()=>{a=window.setTimeout(()=>c(!1),o.scrollHideDelay)};return i.addEventListener("pointerenter",f),i.addEventListener("pointerleave",u),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",f),i.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),h.jsxRuntimeExports.jsx(p.Presence,{present:r||l,children:h.jsxRuntimeExports.jsx(J,{"data-state":l?"visible":"hidden",...n,ref:t})})}),fe=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(R,e.__scopeScrollArea),l=e.orientation==="horizontal",c=W(()=>a("SCROLL_END"),100),[i,a]=ae("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(i==="idle"){const f=window.setTimeout(()=>a("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(f)}},[i,o.scrollHideDelay,a]),s.useEffect(()=>{const f=o.viewport,u=l?"scrollLeft":"scrollTop";if(f){let m=f[u];const d=()=>{const b=f[u];m!==b&&(a("SCROLL"),c()),m=b};return f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[o.viewport,l,a,c]),h.jsxRuntimeExports.jsx(p.Presence,{present:r||i!=="hidden",children:h.jsxRuntimeExports.jsx(X,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:p.composeEventHandlers(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:p.composeEventHandlers(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),J=s.forwardRef((e,t)=>{const r=v(R,e.__scopeScrollArea),{forceMount:n,...o}=e,[l,c]=s.useState(!1),i=e.orientation==="horizontal",a=W(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;c(i?f:u)}},10);return P(r.viewport,a),P(r.content,a),h.jsxRuntimeExports.jsx(p.Presence,{present:n||l,children:h.jsxRuntimeExports.jsx(X,{"data-state":l?"visible":"hidden",...o,ref:t})})}),X=s.forwardRef((e,t)=>{const{orientation:r="vertical",...n}=e,o=v(R,e.__scopeScrollArea),l=s.useRef(null),c=s.useRef(0),[i,a]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=re(i.viewport,i.content),u={...n,sizes:i,onSizesChange:a,hasThumb:f>0&&f<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:d=>c.current=d};function m(d,b){return ve(d,c.current,i,b)}return r==="horizontal"?h.jsxRuntimeExports.jsx(he,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollLeft,b=U(d,i,o.dir);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollLeft=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollLeft=m(d,o.dir))}}):r==="vertical"?h.jsxRuntimeExports.jsx(me,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&l.current){const d=o.viewport.scrollTop,b=U(d,i);l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:d=>{o.viewport&&(o.viewport.scrollTop=d)},onDragScroll:d=>{o.viewport&&(o.viewport.scrollTop=m(d))}}):null}),he=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=v(R,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=C.useComposedRefs(t,a,l.onScrollbarXChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),h.jsxRuntimeExports.jsx(Q,{"data-orientation":"horizontal",...o,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":O(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,m)=>{if(l.viewport){const d=l.viewport.scrollLeft+u.deltaX;e.onWheelScroll(d),oe(d,m)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:N(c.paddingLeft),paddingEnd:N(c.paddingRight)}})}})}),me=s.forwardRef((e,t)=>{const{sizes:r,onSizesChange:n,...o}=e,l=v(R,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=C.useComposedRefs(t,a,l.onScrollbarYChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),h.jsxRuntimeExports.jsx(Q,{"data-orientation":"vertical",...o,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":O(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,m)=>{if(l.viewport){const d=l.viewport.scrollTop+u.deltaY;e.onWheelScroll(d),oe(d,m)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:N(c.paddingTop),paddingEnd:N(c.paddingBottom)}})}})}),[pe,K]=V(R),Q=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:f,onWheelScroll:u,onResize:m,...d}=e,b=v(R,r),[w,j]=s.useState(null),z=C.useComposedRefs(t,S=>j(S)),g=s.useRef(null),T=s.useRef(""),k=b.viewport,y=n.content-n.viewport,_=p.useCallbackRef(u),A=p.useCallbackRef(a),L=W(m,10);function D(S){if(g.current){const x=S.clientX-g.current.left,E=S.clientY-g.current.top;f({x,y:E})}}return s.useEffect(()=>{const S=x=>{const E=x.target;w?.contains(E)&&_(x,y)};return document.addEventListener("wheel",S,{passive:!1}),()=>document.removeEventListener("wheel",S,{passive:!1})},[k,w,y,_]),s.useEffect(A,[n,A]),P(w,L),P(b.content,L),h.jsxRuntimeExports.jsx(pe,{scope:r,scrollbar:w,hasThumb:o,onThumbChange:p.useCallbackRef(l),onThumbPointerUp:p.useCallbackRef(c),onThumbPositionChange:A,onThumbPointerDown:p.useCallbackRef(i),children:h.jsxRuntimeExports.jsx(p.Primitive.div,{...d,ref:z,style:{position:"absolute",...d.style},onPointerDown:p.composeEventHandlers(e.onPointerDown,S=>{S.button===0&&(S.target.setPointerCapture(S.pointerId),g.current=w.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),D(S))}),onPointerMove:p.composeEventHandlers(e.onPointerMove,D),onPointerUp:p.composeEventHandlers(e.onPointerUp,S=>{const x=S.target;x.hasPointerCapture(S.pointerId)&&x.releasePointerCapture(S.pointerId),document.body.style.webkitUserSelect=T.current,b.viewport&&(b.viewport.style.scrollBehavior=""),g.current=null})})})}),H="ScrollAreaThumb",Z=s.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=K(H,e.__scopeScrollArea);return h.jsxRuntimeExports.jsx(p.Presence,{present:r||o.hasThumb,children:h.jsxRuntimeExports.jsx(be,{ref:t,...n})})}),be=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:n,...o}=e,l=v(H,r),c=K(H,r),{onThumbPositionChange:i}=c,a=C.useComposedRefs(t,m=>c.onThumbChange(m)),f=s.useRef(void 0),u=W(()=>{f.current&&(f.current(),f.current=void 0)},100);return s.useEffect(()=>{const m=l.viewport;if(m){const d=()=>{if(u(),!f.current){const b=xe(m,i);f.current=b,i()}};return i(),m.addEventListener("scroll",d),()=>m.removeEventListener("scroll",d)}},[l.viewport,u,i]),h.jsxRuntimeExports.jsx(p.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:p.composeEventHandlers(e.onPointerDownCapture,m=>{const b=m.target.getBoundingClientRect(),w=m.clientX-b.left,j=m.clientY-b.top;c.onThumbPointerDown({x:w,y:j})}),onPointerUp:p.composeEventHandlers(e.onPointerUp,c.onThumbPointerUp)})});Z.displayName=H;var Y="ScrollAreaCorner",ee=s.forwardRef((e,t)=>{const r=v(Y,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?h.jsxRuntimeExports.jsx(Se,{...e,ref:t}):null});ee.displayName=Y;var Se=s.forwardRef((e,t)=>{const{__scopeScrollArea:r,...n}=e,o=v(Y,r),[l,c]=s.useState(0),[i,a]=s.useState(0),f=!!(l&&i);return P(o.scrollbarX,()=>{const u=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(u),a(u)}),P(o.scrollbarY,()=>{const u=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(u),c(u)}),f?h.jsxRuntimeExports.jsx(p.Primitive.div,{...n,ref:t,style:{width:l,height:i,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function N(e){return e?parseInt(e,10):0}function re(e,t){const r=e/t;return isNaN(r)?0:r}function O(e){const t=re(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function ve(e,t,r,n="ltr"){const o=O(r),l=o/2,c=t||l,i=o-c,a=r.scrollbar.paddingStart+c,f=r.scrollbar.size-r.scrollbar.paddingEnd-i,u=r.content-r.viewport,m=n==="ltr"?[0,u]:[u*-1,0];return te([a,f],m)(e)}function U(e,t,r="ltr"){const n=O(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=t.scrollbar.size-o,c=t.content-t.viewport,i=l-n,a=r==="ltr"?[0,c]:[c*-1,0],f=I.clamp(e,a);return te([0,c],[0,i])(f)}function te(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function oe(e,t){return e>0&&e<t}var xe=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function o(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,i=r.top!==l.top;(c||i)&&t(),r=l,n=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(n)};function W(e,t){const r=p.useCallbackRef(e),n=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),s.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function P(e,t){const r=p.useCallbackRef(t);p.useLayoutEffect2(()=>{let n=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}var we=F,Re=$,ge=ee;function Ee({className:e,children:t,...r}){return h.jsxRuntimeExports.jsxs(we,{"data-slot":"scroll-area",className:B.cn("relative",e),...r,children:[h.jsxRuntimeExports.jsx(Re,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),h.jsxRuntimeExports.jsx(ne,{}),h.jsxRuntimeExports.jsx(ge,{})]})}function ne({className:e,orientation:t="vertical",...r}){return h.jsxRuntimeExports.jsx(G,{"data-slot":"scroll-area-scrollbar",orientation:t,className:B.cn("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:h.jsxRuntimeExports.jsx(Z,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=Ee;exports.ScrollBar=ne;exports.Search=ie;
|
|
2
|
+
//# sourceMappingURL=scroll-area-C8l3z7wv.js.map
|