se-design 1.0.61-dev → 1.0.62-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/colors.css +22 -9
- package/dist/assets/icons/command.svg +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/components/BreadCrumbs/index.d.ts +2 -0
- package/dist/components/Button/index.d.ts +5 -1
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +2 -2
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +2 -2
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -2
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +2 -2
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +2 -2
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +2 -2
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -2
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +1 -1
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -2
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +2 -2
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +1 -1
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +2 -2
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +2 -2
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +1 -1
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +1 -1
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +2 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +2 -2
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +1 -1
- package/dist/index170.js +2 -2
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -2
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.js +2 -2
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +2 -2
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +2 -149
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +149 -9
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +8 -5
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +5 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +8 -0
- package/dist/index186.js.map +1 -0
- package/dist/index189.js +20 -58
- package/dist/index189.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index212.js +1 -1
- package/dist/index22.js +3 -3
- package/dist/index224.js +1 -1
- package/dist/index225.js +1 -1
- package/dist/index226.js +9 -21
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +9 -18
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +4 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +170 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +11 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +22 -170
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +19 -11
- package/dist/index232.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index24.js.map +1 -1
- package/dist/index27.js +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.js +23 -21
- package/dist/index3.js.map +1 -1
- package/dist/index31.js +10 -11
- package/dist/index34.js +1 -1
- package/dist/index36.js +35 -38
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +4 -5
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +3 -3
- package/dist/index41.js +7 -8
- package/dist/index42.js +6 -7
- package/dist/index43.js +16 -16
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +2 -2
- package/dist/index45.js +2 -2
- package/dist/index48.js +1 -1
- package/dist/index49.js +48 -30
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +113 -113
- package/dist/index50.js +2 -2
- package/dist/index50.js.map +1 -1
- package/dist/index54.js +21 -22
- package/dist/index56.js +2 -2
- package/dist/index56.js.map +1 -1
- package/dist/index6.js +2 -3
- package/dist/index63.js +1 -1
- package/dist/index64.js +2 -3
- package/dist/index66.js +19 -17
- package/dist/index66.js.map +1 -1
- package/dist/index68.js +55 -5
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +5 -9
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +12 -0
- package/dist/index70.js.map +1 -0
- package/dist/index72.js +2 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +1 -1
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +1 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -1
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +5 -5
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +1 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -1
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +2 -2
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +2 -2
- package/dist/index99.js.map +1 -1
- package/package.json +2 -3
- package/dist/index188.js +0 -27
- package/dist/index188.js.map +0 -1
- package/dist/index71.js +0 -5
- package/dist/index71.js.map +0 -1
package/dist/index183.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index183.js","sources":["../src/utils/a11y/elementVisibility.ts"],"sourcesContent":["/**\n * Checks if an element is visible in the DOM.\n * \n * An element is considered visible if:\n * - It exists in the DOM\n * - It's not hidden via CSS (display: none, visibility: hidden)\n * - It has actual dimensions (width > 0 and height > 0)\n * \n * @param element - The element to check, or null\n * @returns true if the element is visible, false otherwise\n * \n * @example\n * const element = document.getElementById('my-element');\n * if (isElementVisible(element)) {\n * // Element is visible\n * }\n */\nexport function isElementVisible(element: HTMLElement | null): boolean {\n if (!element) return false;\n\n // Check computed style for display/visibility\n const style = window.getComputedStyle(element);\n if (style.display === 'none' || style.visibility === 'hidden') {\n return false;\n }\n\n // Check if element has dimensions\n const rect = element.getBoundingClientRect();\n return rect.width > 0 && rect.height > 0;\n}\n"],"names":["isElementVisible","element","style","window","getComputedStyle","display","visibility","rect","getBoundingClientRect","width","height"],"mappings":"AAiBO,SAASA,EAAiBC,GAAsC;AACrE,MAAI,CAACA,EAAS,QAAO;AAGrB,QAAMC,IAAQC,OAAOC,iBAAiBH,CAAO;AAC7C,MAAIC,EAAMG,YAAY,UAAUH,EAAMI,eAAe;AACnD,WAAO;AAIT,QAAMC,IAAON,EAAQO,sBAAAA;AACrB,SAAOD,EAAKE,QAAQ,KAAKF,EAAKG,SAAS;AACzC;"}
|
|
1
|
+
{"version":3,"file":"index183.js","sources":["../node_modules/react-svg/dist/react-svg.esm.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/objectWithoutPropertiesLoose';\nimport _extends from '@babel/runtime/helpers/extends';\nimport _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';\nimport { SVGInjector } from '@tanem/svg-injector';\nimport * as PropTypes from 'prop-types';\nimport * as React from 'react';\n\n// Hat-tip: https://github.com/mui/material-ui/tree/master/packages/mui-utils/src.\nvar ownerWindow = function ownerWindow(node) {\n var doc = (node == null ? void 0 : node.ownerDocument) || document;\n return doc.defaultView || window;\n};\n\n// Hat-tip: https://github.com/developit/preact-compat/blob/master/src/index.js#L402.\nvar shallowDiffers = function shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) {\n return true;\n }\n }\n for (var _i in b) {\n if (a[_i] !== b[_i]) {\n return true;\n }\n }\n return false;\n};\n\nvar _excluded = [\"afterInjection\", \"beforeInjection\", \"desc\", \"evalScripts\", \"fallback\", \"httpRequestWithCredentials\", \"loading\", \"renumerateIRIElements\", \"src\", \"title\", \"useRequestCache\", \"wrapper\"];\nvar svgNamespace = 'http://www.w3.org/2000/svg';\nvar xlinkNamespace = 'http://www.w3.org/1999/xlink';\nvar ReactSVG = /*#__PURE__*/function (_React$Component) {\n function ReactSVG() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.initialState = {\n hasError: false,\n isLoading: true\n };\n _this.state = _this.initialState;\n _this._isMounted = false;\n _this.reactWrapper = void 0;\n _this.nonReactWrapper = void 0;\n _this.refCallback = function (reactWrapper) {\n _this.reactWrapper = reactWrapper;\n };\n return _this;\n }\n _inheritsLoose(ReactSVG, _React$Component);\n var _proto = ReactSVG.prototype;\n _proto.renderSVG = function renderSVG() {\n var _this2 = this;\n /* istanbul ignore else */\n if (this.reactWrapper instanceof ownerWindow(this.reactWrapper).Node) {\n var _this$props = this.props,\n desc = _this$props.desc,\n evalScripts = _this$props.evalScripts,\n httpRequestWithCredentials = _this$props.httpRequestWithCredentials,\n renumerateIRIElements = _this$props.renumerateIRIElements,\n src = _this$props.src,\n title = _this$props.title,\n useRequestCache = _this$props.useRequestCache;\n /* eslint-disable @typescript-eslint/no-non-null-assertion */\n var onError = this.props.onError;\n var beforeInjection = this.props.beforeInjection;\n var afterInjection = this.props.afterInjection;\n var wrapper = this.props.wrapper;\n var nonReactWrapper;\n var nonReactTarget;\n if (wrapper === 'svg') {\n nonReactWrapper = document.createElementNS(svgNamespace, wrapper);\n nonReactWrapper.setAttribute('xmlns', svgNamespace);\n nonReactWrapper.setAttribute('xmlns:xlink', xlinkNamespace);\n nonReactTarget = document.createElementNS(svgNamespace, wrapper);\n } else {\n nonReactWrapper = document.createElement(wrapper);\n nonReactTarget = document.createElement(wrapper);\n }\n nonReactWrapper.appendChild(nonReactTarget);\n nonReactTarget.dataset.src = src;\n this.nonReactWrapper = this.reactWrapper.appendChild(nonReactWrapper);\n var handleError = function handleError(error) {\n _this2.removeSVG();\n if (!_this2._isMounted) {\n onError(error);\n return;\n }\n _this2.setState(function () {\n return {\n hasError: true,\n isLoading: false\n };\n }, function () {\n onError(error);\n });\n };\n var afterEach = function afterEach(error, svg) {\n if (error) {\n handleError(error);\n return;\n }\n // TODO (Tane): It'd be better to cleanly unsubscribe from SVGInjector\n // callbacks instead of tracking a property like this.\n if (_this2._isMounted) {\n _this2.setState(function () {\n return {\n isLoading: false\n };\n }, function () {\n try {\n afterInjection(svg);\n } catch (afterInjectionError) {\n handleError(afterInjectionError);\n }\n });\n }\n };\n var beforeEach = function beforeEach(svg) {\n svg.setAttribute('role', 'img');\n if (desc) {\n var originalDesc = svg.querySelector(':scope > desc');\n if (originalDesc) {\n svg.removeChild(originalDesc);\n }\n var newDesc = document.createElement('desc');\n newDesc.innerHTML = desc;\n svg.prepend(newDesc);\n }\n if (title) {\n var originalTitle = svg.querySelector(':scope > title');\n if (originalTitle) {\n svg.removeChild(originalTitle);\n }\n var newTitle = document.createElement('title');\n newTitle.innerHTML = title;\n svg.prepend(newTitle);\n }\n try {\n beforeInjection(svg);\n } catch (error) {\n handleError(error);\n }\n };\n SVGInjector(nonReactTarget, {\n afterEach: afterEach,\n beforeEach: beforeEach,\n cacheRequests: useRequestCache,\n evalScripts: evalScripts,\n httpRequestWithCredentials: httpRequestWithCredentials,\n renumerateIRIElements: renumerateIRIElements\n });\n }\n };\n _proto.removeSVG = function removeSVG() {\n var _this$nonReactWrapper;\n if ((_this$nonReactWrapper = this.nonReactWrapper) != null && _this$nonReactWrapper.parentNode) {\n this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper);\n this.nonReactWrapper = null;\n }\n };\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n this.renderSVG();\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this3 = this;\n if (shallowDiffers(_extends({}, prevProps), this.props)) {\n this.setState(function () {\n return _this3.initialState;\n }, function () {\n _this3.removeSVG();\n _this3.renderSVG();\n });\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n this._isMounted = false;\n this.removeSVG();\n };\n _proto.render = function render() {\n /* eslint-disable @typescript-eslint/no-unused-vars */\n var _this$props2 = this.props;\n _this$props2.afterInjection;\n _this$props2.beforeInjection;\n _this$props2.desc;\n _this$props2.evalScripts;\n var Fallback = _this$props2.fallback;\n _this$props2.httpRequestWithCredentials;\n var Loading = _this$props2.loading;\n _this$props2.renumerateIRIElements;\n _this$props2.src;\n _this$props2.title;\n _this$props2.useRequestCache;\n var wrapper = _this$props2.wrapper,\n rest = _objectWithoutPropertiesLoose(_this$props2, _excluded);\n /* eslint-enable @typescript-eslint/no-unused-vars */\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n var Wrapper = wrapper;\n return /*#__PURE__*/React.createElement(Wrapper, _extends({}, rest, {\n ref: this.refCallback\n }, wrapper === 'svg' ? {\n xmlns: svgNamespace,\n xmlnsXlink: xlinkNamespace\n } : {}), this.state.isLoading && Loading && /*#__PURE__*/React.createElement(Loading, null), this.state.hasError && Fallback && /*#__PURE__*/React.createElement(Fallback, null));\n };\n return ReactSVG;\n}(React.Component);\nReactSVG.defaultProps = {\n afterInjection: function afterInjection() {\n return undefined;\n },\n beforeInjection: function beforeInjection() {\n return undefined;\n },\n desc: '',\n evalScripts: 'never',\n fallback: null,\n httpRequestWithCredentials: false,\n loading: null,\n onError: function onError() {\n return undefined;\n },\n renumerateIRIElements: true,\n title: '',\n useRequestCache: true,\n wrapper: 'div'\n};\nReactSVG.propTypes = {\n afterInjection: PropTypes.func,\n beforeInjection: PropTypes.func,\n desc: PropTypes.string,\n evalScripts: PropTypes.oneOf(['always', 'once', 'never']),\n fallback: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string]),\n httpRequestWithCredentials: PropTypes.bool,\n loading: PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.string]),\n onError: PropTypes.func,\n renumerateIRIElements: PropTypes.bool,\n src: PropTypes.string.isRequired,\n title: PropTypes.string,\n useRequestCache: PropTypes.bool,\n wrapper: PropTypes.oneOf(['div', 'span', 'svg'])\n} ;\n\nexport { ReactSVG };\n//# sourceMappingURL=react-svg.esm.js.map\n"],"names":["_objectWithoutPropertiesLoose","_extends","_inheritsLoose","SVGInjector","propTypesExports","React","ownerWindow","node","doc","shallowDiffers","a","b","i","_i","_excluded","svgNamespace","xlinkNamespace","ReactSVG","_React$Component","_this","_len","args","_key","reactWrapper","_proto","_this2","_this$props","desc","evalScripts","httpRequestWithCredentials","renumerateIRIElements","src","title","useRequestCache","onError","beforeInjection","afterInjection","wrapper","nonReactWrapper","nonReactTarget","handleError","error","afterEach","svg","afterInjectionError","beforeEach","originalDesc","newDesc","originalTitle","newTitle","_this$nonReactWrapper","prevProps","_this3","_this$props2","Fallback","Loading","rest","Wrapper","PropTypes.func","PropTypes.string","PropTypes.oneOf","PropTypes.oneOfType","PropTypes.object","PropTypes.bool"],"mappings":"AAOA,OAAAA,OAAA;AAAA,OAAAC,OAAA;AAAA,OAAAC,OAAA;AAAA,SAAA,eAAAC,SAAA;AA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AAC;AAAA,EAClF,4BAA4BI,EAAAA;AAAAA,EAC5B,SAASF,EAAAA,UAAoB,CAACH,EAAAA,MAAgBI,EAAAA,QAAkBH,EAAAA,MAAgB,CAAC;AAAA,EACjF,SAASD,EAAAA;AAAAA,EACT,uBAAuBK,EAAAA;AAAAA,EACvB,KAAKJ,EAAAA,OAAiB;AAAA,EACtB,OAAOA,EAAAA;AAAAA,EACP,iBAAiBI,EAAAA;AAAAA,EACjB,SAASH,EAAAA,MAAgB,CAAC,OAAO,QAAQ,KAAK,CAAC;AACjD;","x_google_ignoreList":[0]}
|
package/dist/index184.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
function n(i) {
|
|
2
|
+
if (!i) return !1;
|
|
3
|
+
const t = window.getComputedStyle(i);
|
|
4
|
+
if (t.display === "none" || t.visibility === "hidden")
|
|
5
|
+
return !1;
|
|
6
|
+
const e = i.getBoundingClientRect();
|
|
7
|
+
return e.width > 0 && e.height > 0;
|
|
5
8
|
}
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
n as isElementVisible
|
|
8
11
|
};
|
|
9
12
|
//# sourceMappingURL=index184.js.map
|
package/dist/index184.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index184.js","sources":["../src/utils/
|
|
1
|
+
{"version":3,"file":"index184.js","sources":["../src/utils/a11y/elementVisibility.ts"],"sourcesContent":["/**\n * Checks if an element is visible in the DOM.\n * \n * An element is considered visible if:\n * - It exists in the DOM\n * - It's not hidden via CSS (display: none, visibility: hidden)\n * - It has actual dimensions (width > 0 and height > 0)\n * \n * @param element - The element to check, or null\n * @returns true if the element is visible, false otherwise\n * \n * @example\n * const element = document.getElementById('my-element');\n * if (isElementVisible(element)) {\n * // Element is visible\n * }\n */\nexport function isElementVisible(element: HTMLElement | null): boolean {\n if (!element) return false;\n\n // Check computed style for display/visibility\n const style = window.getComputedStyle(element);\n if (style.display === 'none' || style.visibility === 'hidden') {\n return false;\n }\n\n // Check if element has dimensions\n const rect = element.getBoundingClientRect();\n return rect.width > 0 && rect.height > 0;\n}\n"],"names":["isElementVisible","element","style","window","getComputedStyle","display","visibility","rect","getBoundingClientRect","width","height"],"mappings":"AAiBO,SAASA,EAAiBC,GAAsC;AACrE,MAAI,CAACA,EAAS,QAAO;AAGrB,QAAMC,IAAQC,OAAOC,iBAAiBH,CAAO;AAC7C,MAAIC,EAAMG,YAAY,UAAUH,EAAMI,eAAe;AACnD,WAAO;AAIT,QAAMC,IAAON,EAAQO,sBAAAA;AACrB,SAAOD,EAAKE,QAAQ,KAAKF,EAAKG,SAAS;AACzC;"}
|
package/dist/index185.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { useRef as n } from "react";
|
|
2
|
+
function u(e, t = "se-id") {
|
|
3
|
+
const r = n("");
|
|
4
|
+
return r.current || (r.current = `${t}-${crypto.randomUUID()}`), e || r.current;
|
|
4
5
|
}
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
u as useStableId
|
|
7
8
|
};
|
|
8
9
|
//# sourceMappingURL=index185.js.map
|
package/dist/index185.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index185.js","sources":["../src/utils/
|
|
1
|
+
{"version":3,"file":"index185.js","sources":["../src/utils/useStableId.ts"],"sourcesContent":["import { useRef } from 'react';\n\n/**\n * Generates a stable unique ID for component instances (React 16 compatible).\n * Returns the provided id if given, otherwise generates a stable per-mount id.\n * \n * @param id - Optional explicit id\n * @param prefix - Prefix for auto-generated ids (default: 'se-id')\n * @returns Stable id string\n */\nexport function useStableId(id?: string, prefix: string = 'se-id'): string {\n const autoIdRef = useRef<string>('');\n \n if (!autoIdRef.current) {\n autoIdRef.current = `${prefix}-${crypto.randomUUID()}`;\n }\n \n return id || autoIdRef.current;\n}\n\n\n\n\n\n\n\n"],"names":["useRef","useStableId","id","prefix","autoIdRef","current","crypto","randomUUID"],"mappings":"AAUO,SAAA,UAAAA,SAAA;AAAA,SAASC,EAAYC,GAAaC,IAAiB,SAAiB;AACzE,QAAMC,IAAYJ,EAAe,EAAE;AAEnC,SAAKI,EAAUC,YACbD,EAAUC,UAAU,GAAGF,CAAM,IAAIG,OAAOC,YAAY,KAG/CL,KAAME,EAAUC;AACzB;"}
|
package/dist/index186.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index186.js","sources":["../src/utils/mergeIds.ts"],"sourcesContent":["/**\n * Merges multiple ID strings into a single space-separated string.\n * Filters out falsy values and deduplicates IDs while preserving order.\n * \n * Useful for ARIA attributes (aria-describedby, aria-labelledby) and class names.\n * \n * @param ids - Array of id strings (or undefined/null)\n * @returns Merged space-separated id string, or undefined if no valid ids\n * \n * @example\n * mergeIds('error-1', undefined, 'helper-1', 'error-1')\n * // Returns: 'error-1 helper-1'\n */\nexport function mergeIds(...ids: (string | undefined | null)[]): string | undefined {\n const uniqueIds = [\n ...new Set(\n ids\n .filter((id): id is string => Boolean(id))\n .flatMap(id => id.trim().split(/\\s+/))\n .filter(Boolean)\n )\n ];\n \n return uniqueIds.length > 0 ? uniqueIds.join(' ') : undefined;\n}\n"],"names":["mergeIds","ids","uniqueIds","Set","filter","id","Boolean","flatMap","trim","split","length","join","undefined"],"mappings":"AAaO,SAASA,KAAYC,GAAwD;AAClF,QAAMC,IAAY,CAChB,GAAG,IAAIC,IACLF,EACGG,OAAO,CAACC,MAAqBC,EAAQD,CAAG,EACxCE,QAAQF,CAAAA,MAAMA,EAAGG,OAAOC,MAAM,KAAK,CAAC,EACpCL,OAAOE,OAAO,CACnB,CAAC;AAGH,SAAOJ,EAAUQ,SAAS,IAAIR,EAAUS,KAAK,GAAG,IAAIC;AACtD;"}
|
package/dist/index189.js
CHANGED
|
@@ -1,65 +1,27 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
onFocusChange: h
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
function p({
|
|
3
|
+
disabled: t = !1,
|
|
4
|
+
onFocusIn: u,
|
|
5
|
+
onFocusOut: n,
|
|
6
|
+
onEscape: a,
|
|
7
|
+
closeOnEscape: c = !0
|
|
9
8
|
}) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}, [t,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [h]), s = o.useCallback((e) => {
|
|
20
|
-
if (t.length === 0) return;
|
|
21
|
-
const c = t.indexOf(a), n = Math.max(0, c);
|
|
22
|
-
let r = n;
|
|
23
|
-
switch (e) {
|
|
24
|
-
case "first":
|
|
25
|
-
r = 0;
|
|
26
|
-
break;
|
|
27
|
-
case "last":
|
|
28
|
-
r = t.length - 1;
|
|
29
|
-
break;
|
|
30
|
-
case "prev":
|
|
31
|
-
u ? r = (n - 1 + t.length) % t.length : r = Math.max(0, n - 1);
|
|
32
|
-
break;
|
|
33
|
-
case "next":
|
|
34
|
-
u ? r = (n + 1) % t.length : r = Math.min(t.length - 1, n + 1);
|
|
35
|
-
break;
|
|
36
|
-
}
|
|
37
|
-
const x = t[r];
|
|
38
|
-
x && k.current[x]?.focus();
|
|
39
|
-
}, [t, a, u]), i = o.useCallback((e) => ({
|
|
40
|
-
ref: (c) => {
|
|
41
|
-
k.current[e] = c;
|
|
42
|
-
},
|
|
43
|
-
tabIndex: a === e ? p : -1
|
|
44
|
-
}), [a, p]), b = o.useCallback((e) => {
|
|
45
|
-
if (e.key === "Home") {
|
|
46
|
-
e.preventDefault(), e.stopPropagation(), s("first");
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (e.key === "End") {
|
|
50
|
-
e.preventDefault(), e.stopPropagation(), s("last");
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const c = f === "horizontal" ? "ArrowLeft" : "ArrowUp", n = f === "horizontal" ? "ArrowRight" : "ArrowDown";
|
|
54
|
-
e.key === c ? (e.preventDefault(), e.stopPropagation(), s("prev")) : e.key === n && (e.preventDefault(), e.stopPropagation(), s("next"));
|
|
55
|
-
}, [f, s]);
|
|
9
|
+
const f = e.useCallback((r) => {
|
|
10
|
+
t || u?.();
|
|
11
|
+
}, [t, u]), s = e.useCallback((r) => {
|
|
12
|
+
if (t) return;
|
|
13
|
+
const o = r.relatedTarget;
|
|
14
|
+
o && r.currentTarget.contains(o) || n?.();
|
|
15
|
+
}, [t, n]), C = e.useCallback((r) => {
|
|
16
|
+
t || !c || r.key !== "Escape" || (r.preventDefault(), a?.());
|
|
17
|
+
}, [t, c, a]);
|
|
56
18
|
return {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
19
|
+
onFocusCapture: f,
|
|
20
|
+
onBlurCapture: s,
|
|
21
|
+
onKeyDownCapture: C
|
|
60
22
|
};
|
|
61
23
|
}
|
|
62
24
|
export {
|
|
63
|
-
|
|
25
|
+
p as useDismissOnFocusOut
|
|
64
26
|
};
|
|
65
27
|
//# sourceMappingURL=index189.js.map
|
package/dist/index189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index189.js","sources":["../src/utils/a11y/
|
|
1
|
+
{"version":3,"file":"index189.js","sources":["../src/utils/a11y/useDismissOnFocusOut.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type UseDismissOnFocusOutOptions = {\n /**\n * Disable all handlers (no-ops). Useful when a component provides alternate\n * focus/keyboard behavior (e.g., disabled-trigger tooltip wrapper).\n */\n disabled?: boolean;\n /**\n * Called when focus enters anywhere within the target.\n */\n onFocusIn?: () => void;\n /**\n * Called when focus leaves the target (i.e., focus moves to an element\n * outside the currentTarget).\n */\n onFocusOut?: () => void;\n /**\n * Called when Escape is pressed while focus is within the target.\n */\n onEscape?: () => void;\n /**\n * Whether Escape should trigger dismissal. Default: true.\n */\n closeOnEscape?: boolean;\n};\n\nexport type UseDismissOnFocusOutReturn<T extends HTMLElement = HTMLElement> = {\n onFocusCapture: (e: React.FocusEvent<T>) => void;\n onBlurCapture: (e: React.FocusEvent<T>) => void;\n onKeyDownCapture: (e: React.KeyboardEvent<T>) => void;\n};\n\n/**\n * Returns capture-phase handlers to \"show on focus within\" and \"dismiss on focus out\",\n * with optional Escape-to-dismiss.\n *\n * Intended for non-interactive surfaces like tooltips where content should remain\n * visible while focus stays within the wrapper.\n */\nexport function useDismissOnFocusOut<T extends HTMLElement = HTMLElement>({\n disabled = false,\n onFocusIn,\n onFocusOut,\n onEscape,\n closeOnEscape = true\n}: UseDismissOnFocusOutOptions): UseDismissOnFocusOutReturn<T> {\n const onFocusCapture = React.useCallback(\n (_e: React.FocusEvent<T>) => {\n if (disabled) return;\n onFocusIn?.();\n },\n [disabled, onFocusIn]\n );\n\n const onBlurCapture = React.useCallback(\n (e: React.FocusEvent<T>) => {\n if (disabled) return;\n\n const nextFocused = e.relatedTarget as Node | null;\n if (nextFocused && e.currentTarget.contains(nextFocused)) return;\n\n onFocusOut?.();\n },\n [disabled, onFocusOut]\n );\n\n const onKeyDownCapture = React.useCallback(\n (e: React.KeyboardEvent<T>) => {\n if (disabled || !closeOnEscape || e.key !== 'Escape') return;\n\n e.preventDefault();\n onEscape?.();\n },\n [disabled, closeOnEscape, onEscape]\n );\n\n return { onFocusCapture, onBlurCapture, onKeyDownCapture };\n}\n\n"],"names":["React","useDismissOnFocusOut","disabled","onFocusIn","onFocusOut","onEscape","closeOnEscape","onFocusCapture","useCallback","_e","onBlurCapture","e","nextFocused","relatedTarget","currentTarget","contains","onKeyDownCapture","key","preventDefault"],"mappings":"AAwCO,YAAAA,OAAA;AAAA,SAASC,EAA0D;AAAA,EACxEC,UAAAA,IAAW;AAAA,EACXC,WAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,eAAAA,IAAgB;AACW,GAAkC;AAC7D,QAAMC,IAAiBP,EAAMQ,YAC3B,CAACC,MAA4B;AAC3B,IAAIP,KACJC,IAAAA;AAAAA,EACF,GACA,CAACD,GAAUC,CAAS,CACtB,GAEMO,IAAgBV,EAAMQ,YAC1B,CAACG,MAA2B;AAC1B,QAAIT,EAAU;AAEd,UAAMU,IAAcD,EAAEE;AACtB,IAAID,KAAeD,EAAEG,cAAcC,SAASH,CAAW,KAEvDR,IAAAA;AAAAA,EACF,GACA,CAACF,GAAUE,CAAU,CACvB,GAEMY,IAAmBhB,EAAMQ,YAC7B,CAACG,MAA8B;AAC7B,IAAIT,KAAY,CAACI,KAAiBK,EAAEM,QAAQ,aAE5CN,EAAEO,eAAAA,GACFb,IAAAA;AAAAA,EACF,GACA,CAACH,GAAUI,GAAeD,CAAQ,CACpC;AAEA,SAAO;AAAA,IAAEE,gBAAAA;AAAAA,IAAgBG,eAAAA;AAAAA,IAAeM,kBAAAA;AAAAA,EAAAA;AAC1C;"}
|
package/dist/index191.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as u, useCallback as f, useEffect as P } from "react";
|
|
2
2
|
import { useComboboxNavigation as y } from "./index225.js";
|
|
3
|
-
import { useDismissOnFocusOut as R } from "./
|
|
3
|
+
import { useDismissOnFocusOut as R } from "./index189.js";
|
|
4
4
|
function M({
|
|
5
5
|
items: l,
|
|
6
6
|
isOpen: t,
|
package/dist/index212.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback as d } from "react";
|
|
2
|
-
import { useRovingFocus as g } from "./
|
|
2
|
+
import { useRovingFocus as g } from "./index68.js";
|
|
3
3
|
const u = (e, t) => `tab${t ? `-${t}` : ""}-${e}`, c = (e, t) => `panel${t ? `-${t}` : ""}-${e}`;
|
|
4
4
|
function P({
|
|
5
5
|
itemIds: e,
|
package/dist/index22.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i, { useState as D, useEffect as O } from "react";
|
|
2
|
-
import { useStableId as S } from "./
|
|
3
|
-
import { getA11yNameAttributes as _ } from "./
|
|
4
|
-
import { mergeIds as $ } from "./
|
|
2
|
+
import { useStableId as S } from "./index185.js";
|
|
3
|
+
import { getA11yNameAttributes as _ } from "./index70.js";
|
|
4
|
+
import { mergeIds as $ } from "./index186.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
function b() {
|
|
7
7
|
return b = Object.assign ? Object.assign.bind() : function(s) {
|
package/dist/index224.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef as E, useLayoutEffect as f } from "react";
|
|
2
|
-
import { getFirstFocusableElement as d, getFocusableElements as g } from "./
|
|
2
|
+
import { getFirstFocusableElement as d, getFocusableElements as g } from "./index231.js";
|
|
3
3
|
function y(e, t) {
|
|
4
4
|
return t === "first" ? d({
|
|
5
5
|
container: e
|
package/dist/index225.js
CHANGED
package/dist/index226.js
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const d = [t ? a : l, ...r].filter(Boolean).join(", "), i = Array.from(e.querySelectorAll(d));
|
|
10
|
-
return s ? i.filter((n) => {
|
|
11
|
-
const o = window.getComputedStyle(n);
|
|
12
|
-
return o.display !== "none" && o.visibility !== "hidden" && o.opacity !== "0" && !n.hasAttribute("hidden") && n.offsetWidth > 0 && n.offsetHeight > 0;
|
|
13
|
-
}) : i;
|
|
14
|
-
}
|
|
15
|
-
function c(e) {
|
|
16
|
-
const t = u(e);
|
|
17
|
-
return t.length > 0 ? t[0] : null;
|
|
1
|
+
function r(t, i) {
|
|
2
|
+
if (t == null) return {};
|
|
3
|
+
var o = {};
|
|
4
|
+
for (var e in t) if ({}.hasOwnProperty.call(t, e)) {
|
|
5
|
+
if (i.indexOf(e) !== -1) continue;
|
|
6
|
+
o[e] = t[e];
|
|
7
|
+
}
|
|
8
|
+
return o;
|
|
18
9
|
}
|
|
19
10
|
export {
|
|
20
|
-
|
|
21
|
-
a as FOCUSABLE_WITH_ROLES_SELECTOR,
|
|
22
|
-
c as getFirstFocusableElement,
|
|
23
|
-
u as getFocusableElements
|
|
11
|
+
r as default
|
|
24
12
|
};
|
|
25
13
|
//# sourceMappingURL=index226.js.map
|
package/dist/index226.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index226.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index226.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };"],"names":["_objectWithoutPropertiesLoose","r","e","t","n"],"mappings":"AAAA,SAASA,EAA8BC,GAAGC,GAAG;AAC3C,MAAYD,KAAR,KAAW,QAAO,CAAA;AACtB,MAAIE,IAAI,CAAA;AACR,WAASC,KAAKH,EAAG,KAAI,CAAA,EAAG,eAAe,KAAKA,GAAGG,CAAC,GAAG;AACjD,QAAWF,EAAE,QAAQE,CAAC,MAAlB,GAAqB;AACzB,IAAAD,EAAEC,CAAC,IAAIH,EAAEG,CAAC;AAAA,EACZ;AACA,SAAOD;AACT;","x_google_ignoreList":[0]}
|
package/dist/index227.js
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enabled: c = !0,
|
|
10
|
-
scrollOptions: e = u
|
|
11
|
-
}) {
|
|
12
|
-
s(() => {
|
|
13
|
-
if (!c || o < 0 || !t?.current)
|
|
14
|
-
return;
|
|
15
|
-
const n = t.current.querySelectorAll(r)[o];
|
|
16
|
-
n && n.scrollIntoView(e);
|
|
17
|
-
}, [o, t, r, c, e]);
|
|
1
|
+
function e() {
|
|
2
|
+
return e = Object.assign ? Object.assign.bind() : function(t) {
|
|
3
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
4
|
+
var a = arguments[n];
|
|
5
|
+
for (var r in a) ({}).hasOwnProperty.call(a, r) && (t[r] = a[r]);
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
}, e.apply(null, arguments);
|
|
18
9
|
}
|
|
19
10
|
export {
|
|
20
|
-
|
|
11
|
+
e as default
|
|
21
12
|
};
|
|
22
13
|
//# sourceMappingURL=index227.js.map
|
package/dist/index227.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index227.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index227.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };"],"names":["_extends","n","e","t"],"mappings":"AAAA,SAASA,IAAW;AAClB,SAAOA,IAAW,OAAO,SAAS,OAAO,OAAO,KAAI,IAAK,SAAUC,GAAG;AACpE,aAASC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AACzC,UAAIC,IAAI,UAAUD,CAAC;AACnB,eAAS,KAAKC,EAAG,EAAC,CAAA,GAAI,eAAe,KAAKA,GAAG,CAAC,MAAMF,EAAE,CAAC,IAAIE,EAAE,CAAC;AAAA,IAChE;AACA,WAAOF;AAAA,EACT,GAAGD,EAAS,MAAM,MAAM,SAAS;AACnC;","x_google_ignoreList":[0]}
|
package/dist/index228.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
for (var e in t) if ({}.hasOwnProperty.call(t, e)) {
|
|
5
|
-
if (i.indexOf(e) !== -1) continue;
|
|
6
|
-
o[e] = t[e];
|
|
7
|
-
}
|
|
8
|
-
return o;
|
|
1
|
+
import e from "./index233.js";
|
|
2
|
+
function p(o, t) {
|
|
3
|
+
o.prototype = Object.create(t.prototype), o.prototype.constructor = o, e(o, t);
|
|
9
4
|
}
|
|
10
5
|
export {
|
|
11
|
-
|
|
6
|
+
p as default
|
|
12
7
|
};
|
|
13
8
|
//# sourceMappingURL=index228.js.map
|
package/dist/index228.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index228.js","sources":["../node_modules/@babel/runtime/helpers/esm/
|
|
1
|
+
{"version":3,"file":"index228.js","sources":["../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"],"sourcesContent":["import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inheritsLoose(t, o) {\n t.prototype = Object.create(o.prototype), t.prototype.constructor = t, setPrototypeOf(t, o);\n}\nexport { _inheritsLoose as default };"],"names":["_setPrototypeOf","_inheritsLoose","t","o","setPrototypeOf"],"mappings":"AACA,OAAAA,OAAA;AAAA,SAASC,EAAeC,GAAGC,GAAG;AAC5B,EAAAD,EAAE,YAAY,OAAO,OAAOC,EAAE,SAAS,GAAGD,EAAE,UAAU,cAAcA,GAAGE,EAAeF,GAAGC,CAAC;AAC5F;","x_google_ignoreList":[0]}
|
package/dist/index229.js
CHANGED
|
@@ -1,13 +1,173 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { __spreadArray as D } from "./index234.js";
|
|
2
|
+
import { parse as ut } from "./index235.js";
|
|
3
|
+
var g = /* @__PURE__ */ new Map(), Y = function(t) {
|
|
4
|
+
return t.cloneNode(!0);
|
|
5
|
+
}, z = function() {
|
|
6
|
+
return window.location.protocol === "file:";
|
|
7
|
+
}, Z = function(t, o, n) {
|
|
8
|
+
var e = new XMLHttpRequest();
|
|
9
|
+
e.onreadystatechange = function() {
|
|
10
|
+
try {
|
|
11
|
+
if (!/\.svg/i.test(t) && e.readyState === 2) {
|
|
12
|
+
var s = e.getResponseHeader("Content-Type");
|
|
13
|
+
if (!s)
|
|
14
|
+
throw new Error("Content type not found");
|
|
15
|
+
var i = ut(s).type;
|
|
16
|
+
if (!(i === "image/svg+xml" || i === "text/plain"))
|
|
17
|
+
throw new Error("Invalid content type: ".concat(i));
|
|
18
|
+
}
|
|
19
|
+
if (e.readyState === 4) {
|
|
20
|
+
if (e.status === 404 || e.responseXML === null)
|
|
21
|
+
throw new Error(z() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + t);
|
|
22
|
+
if (e.status === 200 || z() && e.status === 0)
|
|
23
|
+
n(null, e);
|
|
24
|
+
else
|
|
25
|
+
throw new Error("There was a problem injecting the SVG: " + e.status + " " + e.statusText);
|
|
26
|
+
}
|
|
27
|
+
} catch (a) {
|
|
28
|
+
if (e.abort(), a instanceof Error)
|
|
29
|
+
n(a, e);
|
|
30
|
+
else
|
|
31
|
+
throw a;
|
|
32
|
+
}
|
|
33
|
+
}, e.open("GET", t), e.withCredentials = o, e.overrideMimeType && e.overrideMimeType("text/xml"), e.send();
|
|
34
|
+
}, v = {}, B = function(t, o) {
|
|
35
|
+
v[t] = v[t] || [], v[t].push(o);
|
|
36
|
+
}, ft = function(t) {
|
|
37
|
+
for (var o = function(i, a) {
|
|
38
|
+
setTimeout(function() {
|
|
39
|
+
if (Array.isArray(v[t])) {
|
|
40
|
+
var u = g.get(t), p = v[t][i];
|
|
41
|
+
u instanceof SVGSVGElement && p(null, Y(u)), u instanceof Error && p(u), i === v[t].length - 1 && delete v[t];
|
|
42
|
+
}
|
|
43
|
+
}, 0);
|
|
44
|
+
}, n = 0, e = v[t].length; n < e; n++)
|
|
45
|
+
o(n);
|
|
46
|
+
}, lt = function(t, o, n) {
|
|
47
|
+
if (g.has(t)) {
|
|
48
|
+
var e = g.get(t);
|
|
49
|
+
if (e === void 0) {
|
|
50
|
+
B(t, n);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (e instanceof SVGSVGElement) {
|
|
54
|
+
n(null, Y(e));
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
g.set(t, void 0), B(t, n), Z(t, o, function(s, i) {
|
|
59
|
+
var a;
|
|
60
|
+
s ? g.set(t, s) : ((a = i.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && g.set(t, i.responseXML.documentElement), ft(t);
|
|
61
|
+
});
|
|
62
|
+
}, ct = function(t, o, n) {
|
|
63
|
+
Z(t, o, function(e, s) {
|
|
64
|
+
var i;
|
|
65
|
+
e ? n(e) : ((i = s.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, s.responseXML.documentElement);
|
|
66
|
+
});
|
|
67
|
+
}, dt = 0, vt = function() {
|
|
68
|
+
return ++dt;
|
|
69
|
+
}, l = [], J = {}, pt = "http://www.w3.org/2000/svg", F = "http://www.w3.org/1999/xlink", K = function(t, o, n, e, s, i, a) {
|
|
70
|
+
var u = t.getAttribute("data-src") || t.getAttribute("src");
|
|
71
|
+
if (!u) {
|
|
72
|
+
a(new Error("Invalid data-src or src attribute"));
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (l.indexOf(t) !== -1) {
|
|
76
|
+
l.splice(l.indexOf(t), 1), t = null;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
l.push(t), t.setAttribute("src", "");
|
|
80
|
+
var p = e ? lt : ct;
|
|
81
|
+
p(u, s, function(j, r) {
|
|
82
|
+
if (!r) {
|
|
83
|
+
l.splice(l.indexOf(t), 1), t = null, a(j);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
var w = t.getAttribute("id");
|
|
87
|
+
w && r.setAttribute("id", w);
|
|
88
|
+
var S = t.getAttribute("title");
|
|
89
|
+
S && r.setAttribute("title", S);
|
|
90
|
+
var E = t.getAttribute("width");
|
|
91
|
+
E && r.setAttribute("width", E);
|
|
92
|
+
var y = t.getAttribute("height");
|
|
93
|
+
y && r.setAttribute("height", y);
|
|
94
|
+
var G = Array.from(new Set(D(D(D([], (r.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (t.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
95
|
+
r.setAttribute("class", G);
|
|
96
|
+
var b = t.getAttribute("style");
|
|
97
|
+
b && r.setAttribute("style", b), r.setAttribute("data-src", u);
|
|
98
|
+
var R = [].filter.call(t.attributes, function(f) {
|
|
99
|
+
return /^data-\w[\w-]*$/.test(f.name);
|
|
100
|
+
});
|
|
101
|
+
if (Array.prototype.forEach.call(R, function(f) {
|
|
102
|
+
f.name && f.value && r.setAttribute(f.name, f.value);
|
|
103
|
+
}), n) {
|
|
104
|
+
var h = {
|
|
105
|
+
clipPath: ["clip-path"],
|
|
106
|
+
"color-profile": ["color-profile"],
|
|
107
|
+
cursor: ["cursor"],
|
|
108
|
+
filter: ["filter"],
|
|
109
|
+
linearGradient: ["fill", "stroke"],
|
|
110
|
+
marker: ["marker", "marker-start", "marker-mid", "marker-end"],
|
|
111
|
+
mask: ["mask"],
|
|
112
|
+
path: [],
|
|
113
|
+
pattern: ["fill", "stroke"],
|
|
114
|
+
radialGradient: ["fill", "stroke"]
|
|
115
|
+
}, C, d, m, T, k;
|
|
116
|
+
Object.keys(h).forEach(function(f) {
|
|
117
|
+
C = f, m = h[f], d = r.querySelectorAll(C + "[id]");
|
|
118
|
+
for (var nt = function(I, mt) {
|
|
119
|
+
T = d[I].id, k = T + "-" + vt();
|
|
120
|
+
var M;
|
|
121
|
+
Array.prototype.forEach.call(m, function(W) {
|
|
122
|
+
M = r.querySelectorAll("[" + W + '*="' + T + '"]');
|
|
123
|
+
for (var O = 0, st = M.length; O < st; O++) {
|
|
124
|
+
var $ = M[O].getAttribute(W);
|
|
125
|
+
$ && !$.match(new RegExp('url\\("?#' + T + '"?\\)')) || M[O].setAttribute(W, "url(#" + k + ")");
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
for (var U = r.querySelectorAll("[*|href]"), H = [], N = 0, at = U.length; N < at; N++) {
|
|
129
|
+
var P = U[N].getAttributeNS(F, "href");
|
|
130
|
+
P && P.toString() === "#" + d[I].id && H.push(U[N]);
|
|
131
|
+
}
|
|
132
|
+
for (var Q = 0, ot = H.length; Q < ot; Q++)
|
|
133
|
+
H[Q].setAttributeNS(F, "href", "#" + k);
|
|
134
|
+
d[I].id = k;
|
|
135
|
+
}, _ = 0, it = d.length; _ < it; _++)
|
|
136
|
+
nt(_);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
r.removeAttribute("xmlns:a");
|
|
140
|
+
for (var x = r.querySelectorAll("script"), L = [], V, q, A = 0, tt = x.length; A < tt; A++)
|
|
141
|
+
q = x[A].getAttribute("type"), (!q || q === "application/ecmascript" || q === "application/javascript" || q === "text/javascript") && (V = x[A].innerText || x[A].textContent, V && L.push(V), r.removeChild(x[A]));
|
|
142
|
+
if (L.length > 0 && (o === "always" || o === "once" && !J[u])) {
|
|
143
|
+
for (var X = 0, et = L.length; X < et; X++)
|
|
144
|
+
new Function(L[X])(window);
|
|
145
|
+
J[u] = !0;
|
|
146
|
+
}
|
|
147
|
+
var rt = r.querySelectorAll("style");
|
|
148
|
+
if (Array.prototype.forEach.call(rt, function(f) {
|
|
149
|
+
f.textContent += "";
|
|
150
|
+
}), r.setAttribute("xmlns", pt), r.setAttribute("xmlns:xlink", F), i(r), !t.parentNode) {
|
|
151
|
+
l.splice(l.indexOf(t), 1), t = null, a(new Error("Parent node is null"));
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
t.parentNode.replaceChild(r, t), l.splice(l.indexOf(t), 1), t = null, a(null, r);
|
|
155
|
+
});
|
|
156
|
+
}, wt = function(t, o) {
|
|
157
|
+
var n = o === void 0 ? {} : o, e = n.afterAll, s = e === void 0 ? function() {
|
|
158
|
+
} : e, i = n.afterEach, a = i === void 0 ? function() {
|
|
159
|
+
} : i, u = n.beforeEach, p = u === void 0 ? function() {
|
|
160
|
+
} : u, j = n.cacheRequests, r = j === void 0 ? !0 : j, w = n.evalScripts, S = w === void 0 ? "never" : w, E = n.httpRequestWithCredentials, y = E === void 0 ? !1 : E, G = n.renumerateIRIElements, b = G === void 0 ? !0 : G;
|
|
161
|
+
if (t && "length" in t)
|
|
162
|
+
for (var R = 0, h = 0, C = t.length; h < C; h++)
|
|
163
|
+
K(t[h], S, b, r, y, p, function(d, m) {
|
|
164
|
+
a(d, m), t && "length" in t && t.length === ++R && s(R);
|
|
165
|
+
});
|
|
166
|
+
else t ? K(t, S, b, r, y, p, function(d, m) {
|
|
167
|
+
a(d, m), s(1), t = null;
|
|
168
|
+
}) : s(0);
|
|
169
|
+
};
|
|
10
170
|
export {
|
|
11
|
-
|
|
171
|
+
wt as SVGInjector
|
|
12
172
|
};
|
|
13
173
|
//# sourceMappingURL=index229.js.map
|