@xsolla/xui-b2b-accordion 0.147.1
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/native/index.d.mts +32 -0
- package/native/index.d.ts +32 -0
- package/native/index.js +274 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +251 -0
- package/native/index.mjs.map +1 -0
- package/package.json +58 -0
- package/web/index.d.mts +32 -0
- package/web/index.d.ts +32 -0
- package/web/index.js +356 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +319 -0
- package/web/index.mjs.map +1 -0
package/web/index.d.mts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ThemeOverrideProps } from '@xsolla/xui-core';
|
|
4
|
+
|
|
5
|
+
interface AccordionItem {
|
|
6
|
+
key: string;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
caption?: ReactNode;
|
|
9
|
+
/** Optional icon shown in a 32×32 slot at the left of the trigger. */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/** Optional content shown to the right of the text, before the chevron. */
|
|
12
|
+
trailing?: ReactNode;
|
|
13
|
+
content: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
interface AccordionProps extends ThemeOverrideProps {
|
|
16
|
+
items: AccordionItem[];
|
|
17
|
+
/**
|
|
18
|
+
* When true, multiple items can be open simultaneously.
|
|
19
|
+
* Defaults to false (only one item open at a time).
|
|
20
|
+
*/
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
/** Initial open keys for uncontrolled usage. */
|
|
23
|
+
defaultOpenKeys?: string[];
|
|
24
|
+
/** Controlled open keys. */
|
|
25
|
+
openKeys?: string[];
|
|
26
|
+
onOpenChange?: (keys: string[]) => void;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
|
|
32
|
+
export { Accordion, type AccordionItem, type AccordionProps };
|
package/web/index.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { ThemeOverrideProps } from '@xsolla/xui-core';
|
|
4
|
+
|
|
5
|
+
interface AccordionItem {
|
|
6
|
+
key: string;
|
|
7
|
+
title: ReactNode;
|
|
8
|
+
caption?: ReactNode;
|
|
9
|
+
/** Optional icon shown in a 32×32 slot at the left of the trigger. */
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
/** Optional content shown to the right of the text, before the chevron. */
|
|
12
|
+
trailing?: ReactNode;
|
|
13
|
+
content: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
interface AccordionProps extends ThemeOverrideProps {
|
|
16
|
+
items: AccordionItem[];
|
|
17
|
+
/**
|
|
18
|
+
* When true, multiple items can be open simultaneously.
|
|
19
|
+
* Defaults to false (only one item open at a time).
|
|
20
|
+
*/
|
|
21
|
+
multiple?: boolean;
|
|
22
|
+
/** Initial open keys for uncontrolled usage. */
|
|
23
|
+
defaultOpenKeys?: string[];
|
|
24
|
+
/** Controlled open keys. */
|
|
25
|
+
openKeys?: string[];
|
|
26
|
+
onOpenChange?: (keys: string[]) => void;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const Accordion: react.ForwardRefExoticComponent<AccordionProps & react.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
|
|
32
|
+
export { Accordion, type AccordionItem, type AccordionProps };
|
package/web/index.js
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.tsx
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
Accordion: () => Accordion
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
|
+
|
|
37
|
+
// src/Accordion.tsx
|
|
38
|
+
var import_react3 = require("react");
|
|
39
|
+
|
|
40
|
+
// ../../foundation/primitives-web/src/Box.tsx
|
|
41
|
+
var import_react2 = __toESM(require("react"));
|
|
42
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
43
|
+
|
|
44
|
+
// ../../foundation/primitives-web/src/filterDOMProps.ts
|
|
45
|
+
var import_react = __toESM(require("react"));
|
|
46
|
+
|
|
47
|
+
// ../../../node_modules/@emotion/memoize/dist/memoize.esm.js
|
|
48
|
+
function memoize(fn) {
|
|
49
|
+
var cache = {};
|
|
50
|
+
return function(arg) {
|
|
51
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
52
|
+
return cache[arg];
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
var memoize_esm_default = memoize;
|
|
56
|
+
|
|
57
|
+
// ../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js
|
|
58
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
59
|
+
var index = memoize_esm_default(
|
|
60
|
+
function(prop) {
|
|
61
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
62
|
+
}
|
|
63
|
+
/* Z+1 */
|
|
64
|
+
);
|
|
65
|
+
var is_prop_valid_esm_default = index;
|
|
66
|
+
|
|
67
|
+
// ../../foundation/primitives-web/src/filterDOMProps.ts
|
|
68
|
+
var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
69
|
+
// RN-only event handlers (pass isPropValid's on* pattern)
|
|
70
|
+
"onPress",
|
|
71
|
+
"onChangeText",
|
|
72
|
+
"onLayout",
|
|
73
|
+
"onMoveShouldSetResponder",
|
|
74
|
+
"onResponderGrant",
|
|
75
|
+
"onResponderMove",
|
|
76
|
+
"onResponderRelease",
|
|
77
|
+
"onResponderTerminate",
|
|
78
|
+
// SVG attributes that pass isPropValid
|
|
79
|
+
"strokeWidth",
|
|
80
|
+
// CSS properties that pass isPropValid but are used as component props
|
|
81
|
+
"overflow",
|
|
82
|
+
"cursor",
|
|
83
|
+
"fontSize",
|
|
84
|
+
"fontWeight",
|
|
85
|
+
"fontFamily",
|
|
86
|
+
"textDecoration"
|
|
87
|
+
]);
|
|
88
|
+
function shouldForwardProp(key) {
|
|
89
|
+
if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;
|
|
90
|
+
return is_prop_valid_esm_default(key);
|
|
91
|
+
}
|
|
92
|
+
function createFilteredElement(defaultTag) {
|
|
93
|
+
const Component = import_react.default.forwardRef(
|
|
94
|
+
({ children, elementType, ...props }, ref) => {
|
|
95
|
+
const Tag = elementType || defaultTag;
|
|
96
|
+
const htmlProps = {};
|
|
97
|
+
for (const key of Object.keys(props)) {
|
|
98
|
+
if (shouldForwardProp(key)) {
|
|
99
|
+
htmlProps[key] = props[key];
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return import_react.default.createElement(
|
|
103
|
+
Tag,
|
|
104
|
+
{ ref, ...htmlProps },
|
|
105
|
+
children
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
Component.displayName = `Filtered(${defaultTag})`;
|
|
110
|
+
return Component;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// ../../foundation/primitives-web/src/Box.tsx
|
|
114
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
115
|
+
var FilteredDiv = createFilteredElement("div");
|
|
116
|
+
var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
|
|
117
|
+
display: flex;
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
120
|
+
border-color: ${(props) => props.borderColor || "transparent"};
|
|
121
|
+
border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
|
|
122
|
+
|
|
123
|
+
${(props) => props.borderBottomWidth !== void 0 && `
|
|
124
|
+
border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
|
|
125
|
+
border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
|
|
126
|
+
border-bottom-style: solid;
|
|
127
|
+
`}
|
|
128
|
+
${(props) => props.borderTopWidth !== void 0 && `
|
|
129
|
+
border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
|
|
130
|
+
border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
|
|
131
|
+
border-top-style: solid;
|
|
132
|
+
`}
|
|
133
|
+
${(props) => props.borderLeftWidth !== void 0 && `
|
|
134
|
+
border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
|
|
135
|
+
border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
|
|
136
|
+
border-left-style: solid;
|
|
137
|
+
`}
|
|
138
|
+
${(props) => props.borderRightWidth !== void 0 && `
|
|
139
|
+
border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
|
|
140
|
+
border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
|
|
141
|
+
border-right-style: solid;
|
|
142
|
+
`}
|
|
143
|
+
|
|
144
|
+
border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
|
|
145
|
+
border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
|
|
146
|
+
height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
|
|
147
|
+
width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
|
|
148
|
+
min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
|
|
149
|
+
min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
|
|
150
|
+
max-width: ${(props) => typeof props.maxWidth === "number" ? `${props.maxWidth}px` : props.maxWidth || "none"};
|
|
151
|
+
max-height: ${(props) => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight || "none"};
|
|
152
|
+
|
|
153
|
+
padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
|
|
154
|
+
${(props) => props.paddingHorizontal && `
|
|
155
|
+
padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
|
|
156
|
+
padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
|
|
157
|
+
`}
|
|
158
|
+
${(props) => props.paddingVertical && `
|
|
159
|
+
padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
|
|
160
|
+
padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
|
|
161
|
+
`}
|
|
162
|
+
${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
|
|
163
|
+
${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
|
|
164
|
+
${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
|
|
165
|
+
${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
|
|
166
|
+
|
|
167
|
+
margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
|
|
168
|
+
${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
|
|
169
|
+
${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
|
|
170
|
+
${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
|
|
171
|
+
${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
|
|
172
|
+
|
|
173
|
+
flex-direction: ${(props) => props.flexDirection || "column"};
|
|
174
|
+
flex-wrap: ${(props) => props.flexWrap || "nowrap"};
|
|
175
|
+
align-items: ${(props) => props.alignItems || "stretch"};
|
|
176
|
+
justify-content: ${(props) => props.justifyContent || "flex-start"};
|
|
177
|
+
cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
|
|
178
|
+
position: ${(props) => props.position || "static"};
|
|
179
|
+
top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
|
|
180
|
+
bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
|
|
181
|
+
left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
|
|
182
|
+
right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
|
|
183
|
+
flex: ${(props) => props.flex};
|
|
184
|
+
flex-shrink: ${(props) => props.flexShrink ?? 1};
|
|
185
|
+
gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
|
|
186
|
+
align-self: ${(props) => props.alignSelf || "auto"};
|
|
187
|
+
overflow: ${(props) => props.overflow || "visible"};
|
|
188
|
+
overflow-x: ${(props) => props.overflowX || "visible"};
|
|
189
|
+
overflow-y: ${(props) => props.overflowY || "visible"};
|
|
190
|
+
z-index: ${(props) => props.zIndex};
|
|
191
|
+
opacity: ${(props) => props.disabled ? 0.5 : 1};
|
|
192
|
+
pointer-events: ${(props) => props.disabled ? "none" : "auto"};
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
|
|
196
|
+
${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:active {
|
|
200
|
+
${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
|
|
201
|
+
}
|
|
202
|
+
`;
|
|
203
|
+
var Box = import_react2.default.forwardRef(
|
|
204
|
+
({
|
|
205
|
+
children,
|
|
206
|
+
onPress,
|
|
207
|
+
onKeyDown,
|
|
208
|
+
onKeyUp,
|
|
209
|
+
role,
|
|
210
|
+
"aria-label": ariaLabel,
|
|
211
|
+
"aria-labelledby": ariaLabelledBy,
|
|
212
|
+
"aria-current": ariaCurrent,
|
|
213
|
+
"aria-disabled": ariaDisabled,
|
|
214
|
+
"aria-live": ariaLive,
|
|
215
|
+
"aria-busy": ariaBusy,
|
|
216
|
+
"aria-describedby": ariaDescribedBy,
|
|
217
|
+
"aria-expanded": ariaExpanded,
|
|
218
|
+
"aria-haspopup": ariaHasPopup,
|
|
219
|
+
"aria-pressed": ariaPressed,
|
|
220
|
+
"aria-controls": ariaControls,
|
|
221
|
+
tabIndex,
|
|
222
|
+
as,
|
|
223
|
+
src,
|
|
224
|
+
alt,
|
|
225
|
+
type,
|
|
226
|
+
disabled,
|
|
227
|
+
id,
|
|
228
|
+
testID,
|
|
229
|
+
"data-testid": dataTestId,
|
|
230
|
+
...props
|
|
231
|
+
}, ref) => {
|
|
232
|
+
if (as === "img" && src) {
|
|
233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
234
|
+
"img",
|
|
235
|
+
{
|
|
236
|
+
src,
|
|
237
|
+
alt: alt || "",
|
|
238
|
+
style: {
|
|
239
|
+
display: "block",
|
|
240
|
+
objectFit: "cover",
|
|
241
|
+
width: typeof props.width === "number" ? `${props.width}px` : props.width,
|
|
242
|
+
height: typeof props.height === "number" ? `${props.height}px` : props.height,
|
|
243
|
+
borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
|
|
244
|
+
position: props.position,
|
|
245
|
+
top: typeof props.top === "number" ? `${props.top}px` : props.top,
|
|
246
|
+
left: typeof props.left === "number" ? `${props.left}px` : props.left,
|
|
247
|
+
right: typeof props.right === "number" ? `${props.right}px` : props.right,
|
|
248
|
+
bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
254
|
+
StyledBox,
|
|
255
|
+
{
|
|
256
|
+
ref,
|
|
257
|
+
elementType: as,
|
|
258
|
+
id,
|
|
259
|
+
type: as === "button" ? type || "button" : void 0,
|
|
260
|
+
disabled: as === "button" ? disabled : void 0,
|
|
261
|
+
onClick: onPress,
|
|
262
|
+
onKeyDown,
|
|
263
|
+
onKeyUp,
|
|
264
|
+
role,
|
|
265
|
+
"aria-label": ariaLabel,
|
|
266
|
+
"aria-labelledby": ariaLabelledBy,
|
|
267
|
+
"aria-current": ariaCurrent,
|
|
268
|
+
"aria-disabled": ariaDisabled,
|
|
269
|
+
"aria-busy": ariaBusy,
|
|
270
|
+
"aria-describedby": ariaDescribedBy,
|
|
271
|
+
"aria-expanded": ariaExpanded,
|
|
272
|
+
"aria-haspopup": ariaHasPopup,
|
|
273
|
+
"aria-pressed": ariaPressed,
|
|
274
|
+
"aria-controls": ariaControls,
|
|
275
|
+
"aria-live": ariaLive,
|
|
276
|
+
tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
|
|
277
|
+
"data-testid": dataTestId || testID,
|
|
278
|
+
...props,
|
|
279
|
+
children
|
|
280
|
+
}
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
);
|
|
284
|
+
Box.displayName = "Box";
|
|
285
|
+
|
|
286
|
+
// src/Accordion.tsx
|
|
287
|
+
var import_xui_core = require("@xsolla/xui-core");
|
|
288
|
+
var import_xui_b2b_collapsible = require("@xsolla/xui-b2b-collapsible");
|
|
289
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
290
|
+
var Accordion = (0, import_react3.forwardRef)(
|
|
291
|
+
({
|
|
292
|
+
items,
|
|
293
|
+
multiple = false,
|
|
294
|
+
defaultOpenKeys = [],
|
|
295
|
+
openKeys: openKeysProp,
|
|
296
|
+
onOpenChange,
|
|
297
|
+
className,
|
|
298
|
+
themeMode,
|
|
299
|
+
themeProductContext,
|
|
300
|
+
...rest
|
|
301
|
+
}, ref) => {
|
|
302
|
+
const { theme } = (0, import_xui_core.useResolvedTheme)({ themeMode, themeProductContext });
|
|
303
|
+
const sizing = theme.sizing.collapsibleB2b();
|
|
304
|
+
const isControlled = openKeysProp !== void 0;
|
|
305
|
+
const [openState, setOpenState] = (0, import_react3.useState)(defaultOpenKeys);
|
|
306
|
+
const openKeys = isControlled ? openKeysProp : openState;
|
|
307
|
+
const handleOpenChange = (0, import_react3.useCallback)(
|
|
308
|
+
(key, open) => {
|
|
309
|
+
let next;
|
|
310
|
+
if (open) {
|
|
311
|
+
next = multiple ? [...openKeys, key] : [key];
|
|
312
|
+
} else {
|
|
313
|
+
next = openKeys.filter((k) => k !== key);
|
|
314
|
+
}
|
|
315
|
+
if (!isControlled) setOpenState(next);
|
|
316
|
+
onOpenChange?.(next);
|
|
317
|
+
},
|
|
318
|
+
[openKeys, multiple, isControlled, onOpenChange]
|
|
319
|
+
);
|
|
320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
321
|
+
Box,
|
|
322
|
+
{
|
|
323
|
+
ref,
|
|
324
|
+
"data-testid": "accordion",
|
|
325
|
+
className,
|
|
326
|
+
flexDirection: "column",
|
|
327
|
+
alignItems: "stretch",
|
|
328
|
+
width: "100%",
|
|
329
|
+
style: { gap: sizing.accordionItemGap },
|
|
330
|
+
...rest,
|
|
331
|
+
children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
332
|
+
import_xui_b2b_collapsible.Collapsible,
|
|
333
|
+
{
|
|
334
|
+
title: item.title,
|
|
335
|
+
caption: item.caption,
|
|
336
|
+
icon: item.icon,
|
|
337
|
+
trailing: item.trailing,
|
|
338
|
+
view: "white-surface",
|
|
339
|
+
open: openKeys.includes(item.key),
|
|
340
|
+
onOpenChange: (open) => handleOpenChange(item.key, open),
|
|
341
|
+
themeMode,
|
|
342
|
+
themeProductContext,
|
|
343
|
+
children: item.content
|
|
344
|
+
},
|
|
345
|
+
item.key
|
|
346
|
+
))
|
|
347
|
+
}
|
|
348
|
+
);
|
|
349
|
+
}
|
|
350
|
+
);
|
|
351
|
+
Accordion.displayName = "Accordion";
|
|
352
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
353
|
+
0 && (module.exports = {
|
|
354
|
+
Accordion
|
|
355
|
+
});
|
|
356
|
+
//# sourceMappingURL=index.js.map
|
package/web/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx","../../src/Accordion.tsx","../../../../foundation/primitives-web/src/Box.tsx","../../../../foundation/primitives-web/src/filterDOMProps.ts","../../../../../node_modules/@emotion/memoize/dist/memoize.esm.js","../../../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js"],"sourcesContent":["export { Accordion } from \"./Accordion\";\nexport type { AccordionProps, AccordionItem } from \"./types\";\n","import { forwardRef, useState, useCallback } from \"react\";\n// @ts-expect-error - this will be resolved at build time\nimport { Box } from \"@xsolla/xui-primitives\";\nimport { useResolvedTheme } from \"@xsolla/xui-core\";\nimport { Collapsible } from \"@xsolla/xui-b2b-collapsible\";\nimport type { AccordionProps } from \"./types\";\n\nexport const Accordion = forwardRef<HTMLDivElement, AccordionProps>(\n (\n {\n items,\n multiple = false,\n defaultOpenKeys = [],\n openKeys: openKeysProp,\n onOpenChange,\n className,\n themeMode,\n themeProductContext,\n ...rest\n },\n ref\n ) => {\n const { theme } = useResolvedTheme({ themeMode, themeProductContext });\n const sizing = theme.sizing.collapsibleB2b();\n\n const isControlled = openKeysProp !== undefined;\n const [openState, setOpenState] = useState<string[]>(defaultOpenKeys);\n const openKeys = isControlled ? openKeysProp! : openState;\n\n const handleOpenChange = useCallback(\n (key: string, open: boolean) => {\n let next: string[];\n if (open) {\n next = multiple ? [...openKeys, key] : [key];\n } else {\n next = openKeys.filter((k) => k !== key);\n }\n if (!isControlled) setOpenState(next);\n onOpenChange?.(next);\n },\n [openKeys, multiple, isControlled, onOpenChange]\n );\n\n return (\n <Box\n ref={ref}\n data-testid=\"accordion\"\n className={className}\n flexDirection=\"column\"\n alignItems=\"stretch\"\n width=\"100%\"\n style={{ gap: sizing.accordionItemGap }}\n {...rest}\n >\n {items.map((item) => (\n <Collapsible\n key={item.key}\n title={item.title}\n caption={item.caption}\n icon={item.icon}\n trailing={item.trailing}\n view=\"white-surface\"\n open={openKeys.includes(item.key)}\n onOpenChange={(open) => handleOpenChange(item.key, open)}\n themeMode={themeMode}\n themeProductContext={themeProductContext}\n >\n {item.content}\n </Collapsible>\n ))}\n </Box>\n );\n }\n);\n\nAccordion.displayName = \"Accordion\";\n","import React from \"react\";\nimport styled from \"styled-components\";\nimport type { BoxProps } from \"@xsolla/xui-primitives-core\";\nimport { createFilteredElement } from \"./filterDOMProps\";\n\nconst FilteredDiv = createFilteredElement(\"div\");\n\nconst StyledBox = styled(FilteredDiv)<BoxProps>`\n display: flex;\n box-sizing: border-box;\n background-color: ${(props) => props.backgroundColor || \"transparent\"};\n border-color: ${(props) => props.borderColor || \"transparent\"};\n border-width: ${(props) =>\n typeof props.borderWidth === \"number\"\n ? `${props.borderWidth}px`\n : props.borderWidth || 0};\n\n ${(props) =>\n props.borderBottomWidth !== undefined &&\n `\n border-bottom-width: ${typeof props.borderBottomWidth === \"number\" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};\n border-bottom-color: ${props.borderBottomColor || props.borderColor || \"transparent\"};\n border-bottom-style: solid;\n `}\n ${(props) =>\n props.borderTopWidth !== undefined &&\n `\n border-top-width: ${typeof props.borderTopWidth === \"number\" ? `${props.borderTopWidth}px` : props.borderTopWidth};\n border-top-color: ${props.borderTopColor || props.borderColor || \"transparent\"};\n border-top-style: solid;\n `}\n ${(props) =>\n props.borderLeftWidth !== undefined &&\n `\n border-left-width: ${typeof props.borderLeftWidth === \"number\" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};\n border-left-color: ${props.borderLeftColor || props.borderColor || \"transparent\"};\n border-left-style: solid;\n `}\n ${(props) =>\n props.borderRightWidth !== undefined &&\n `\n border-right-width: ${typeof props.borderRightWidth === \"number\" ? `${props.borderRightWidth}px` : props.borderRightWidth};\n border-right-color: ${props.borderRightColor || props.borderColor || \"transparent\"};\n border-right-style: solid;\n `}\n\n border-style: ${(props) =>\n props.borderStyle ||\n (props.borderWidth ||\n props.borderBottomWidth ||\n props.borderTopWidth ||\n props.borderLeftWidth ||\n props.borderRightWidth\n ? \"solid\"\n : \"none\")};\n border-radius: ${(props) =>\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius || 0};\n height: ${(props) =>\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height || \"auto\"};\n width: ${(props) =>\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width || \"auto\"};\n min-width: ${(props) =>\n typeof props.minWidth === \"number\"\n ? `${props.minWidth}px`\n : props.minWidth || \"auto\"};\n min-height: ${(props) =>\n typeof props.minHeight === \"number\"\n ? `${props.minHeight}px`\n : props.minHeight || \"auto\"};\n max-width: ${(props) =>\n typeof props.maxWidth === \"number\"\n ? `${props.maxWidth}px`\n : props.maxWidth || \"none\"};\n max-height: ${(props) =>\n typeof props.maxHeight === \"number\"\n ? `${props.maxHeight}px`\n : props.maxHeight || \"none\"};\n\n padding: ${(props) =>\n typeof props.padding === \"number\"\n ? `${props.padding}px`\n : props.padding || 0};\n ${(props) =>\n props.paddingHorizontal &&\n `\n padding-left: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n padding-right: ${typeof props.paddingHorizontal === \"number\" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};\n `}\n ${(props) =>\n props.paddingVertical &&\n `\n padding-top: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n padding-bottom: ${typeof props.paddingVertical === \"number\" ? `${props.paddingVertical}px` : props.paddingVertical};\n `}\n ${(props) =>\n props.paddingTop !== undefined &&\n `padding-top: ${typeof props.paddingTop === \"number\" ? `${props.paddingTop}px` : props.paddingTop};`}\n ${(props) =>\n props.paddingBottom !== undefined &&\n `padding-bottom: ${typeof props.paddingBottom === \"number\" ? `${props.paddingBottom}px` : props.paddingBottom};`}\n ${(props) =>\n props.paddingLeft !== undefined &&\n `padding-left: ${typeof props.paddingLeft === \"number\" ? `${props.paddingLeft}px` : props.paddingLeft};`}\n ${(props) =>\n props.paddingRight !== undefined &&\n `padding-right: ${typeof props.paddingRight === \"number\" ? `${props.paddingRight}px` : props.paddingRight};`}\n\n margin: ${(props) =>\n typeof props.margin === \"number\" ? `${props.margin}px` : props.margin || 0};\n ${(props) =>\n props.marginTop !== undefined &&\n `margin-top: ${typeof props.marginTop === \"number\" ? `${props.marginTop}px` : props.marginTop};`}\n ${(props) =>\n props.marginBottom !== undefined &&\n `margin-bottom: ${typeof props.marginBottom === \"number\" ? `${props.marginBottom}px` : props.marginBottom};`}\n ${(props) =>\n props.marginLeft !== undefined &&\n `margin-left: ${typeof props.marginLeft === \"number\" ? `${props.marginLeft}px` : props.marginLeft};`}\n ${(props) =>\n props.marginRight !== undefined &&\n `margin-right: ${typeof props.marginRight === \"number\" ? `${props.marginRight}px` : props.marginRight};`}\n\n flex-direction: ${(props) => props.flexDirection || \"column\"};\n flex-wrap: ${(props) => props.flexWrap || \"nowrap\"};\n align-items: ${(props) => props.alignItems || \"stretch\"};\n justify-content: ${(props) => props.justifyContent || \"flex-start\"};\n cursor: ${(props) =>\n props.cursor\n ? props.cursor\n : props.onClick || props.onPress\n ? \"pointer\"\n : \"inherit\"};\n position: ${(props) => props.position || \"static\"};\n top: ${(props) =>\n typeof props.top === \"number\" ? `${props.top}px` : props.top};\n bottom: ${(props) =>\n typeof props.bottom === \"number\" ? `${props.bottom}px` : props.bottom};\n left: ${(props) =>\n typeof props.left === \"number\" ? `${props.left}px` : props.left};\n right: ${(props) =>\n typeof props.right === \"number\" ? `${props.right}px` : props.right};\n flex: ${(props) => props.flex};\n flex-shrink: ${(props) => props.flexShrink ?? 1};\n gap: ${(props) =>\n typeof props.gap === \"number\" ? `${props.gap}px` : props.gap || 0};\n align-self: ${(props) => props.alignSelf || \"auto\"};\n overflow: ${(props) => props.overflow || \"visible\"};\n overflow-x: ${(props) => props.overflowX || \"visible\"};\n overflow-y: ${(props) => props.overflowY || \"visible\"};\n z-index: ${(props) => props.zIndex};\n opacity: ${(props) => (props.disabled ? 0.5 : 1)};\n pointer-events: ${(props) => (props.disabled ? \"none\" : \"auto\")};\n\n &:hover {\n ${(props) =>\n props.hoverStyle?.backgroundColor &&\n `background-color: ${props.hoverStyle.backgroundColor};`}\n ${(props) =>\n props.hoverStyle?.borderColor &&\n `border-color: ${props.hoverStyle.borderColor};`}\n }\n\n &:active {\n ${(props) =>\n props.pressStyle?.backgroundColor &&\n `background-color: ${props.pressStyle.backgroundColor};`}\n }\n`;\n\nexport const Box = React.forwardRef<\n HTMLDivElement | HTMLButtonElement,\n BoxProps\n>(\n (\n {\n children,\n onPress,\n onKeyDown,\n onKeyUp,\n role,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n \"aria-current\": ariaCurrent,\n \"aria-disabled\": ariaDisabled,\n \"aria-live\": ariaLive,\n \"aria-busy\": ariaBusy,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-expanded\": ariaExpanded,\n \"aria-haspopup\": ariaHasPopup,\n \"aria-pressed\": ariaPressed,\n \"aria-controls\": ariaControls,\n tabIndex,\n as,\n src,\n alt,\n type,\n disabled,\n id,\n testID,\n \"data-testid\": dataTestId,\n ...props\n },\n ref\n ) => {\n // Handle as=\"img\" for rendering images with proper border-radius\n if (as === \"img\" && src) {\n return (\n <img\n src={src}\n alt={alt || \"\"}\n style={{\n display: \"block\",\n objectFit: \"cover\",\n width:\n typeof props.width === \"number\"\n ? `${props.width}px`\n : props.width,\n height:\n typeof props.height === \"number\"\n ? `${props.height}px`\n : props.height,\n borderRadius:\n typeof props.borderRadius === \"number\"\n ? `${props.borderRadius}px`\n : props.borderRadius,\n position: props.position,\n top: typeof props.top === \"number\" ? `${props.top}px` : props.top,\n left:\n typeof props.left === \"number\" ? `${props.left}px` : props.left,\n right:\n typeof props.right === \"number\"\n ? `${props.right}px`\n : props.right,\n bottom:\n typeof props.bottom === \"number\"\n ? `${props.bottom}px`\n : props.bottom,\n }}\n />\n );\n }\n\n return (\n <StyledBox\n ref={ref}\n elementType={as}\n id={id}\n type={as === \"button\" ? type || \"button\" : undefined}\n disabled={as === \"button\" ? disabled : undefined}\n onClick={onPress}\n onKeyDown={onKeyDown}\n onKeyUp={onKeyUp}\n role={role}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-current={ariaCurrent}\n aria-disabled={ariaDisabled}\n aria-busy={ariaBusy}\n aria-describedby={ariaDescribedBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-pressed={ariaPressed}\n aria-controls={ariaControls}\n aria-live={ariaLive}\n tabIndex={tabIndex !== undefined ? tabIndex : undefined}\n data-testid={dataTestId || testID}\n {...props}\n >\n {children}\n </StyledBox>\n );\n }\n);\n\nBox.displayName = \"Box\";\n","import React from \"react\";\nimport isPropValid from \"@emotion/is-prop-valid\";\n\n// Props that @emotion/is-prop-valid incorrectly treats as valid HTML.\n// These are React Native or component-specific props that match\n// valid HTML patterns (on* event handlers, SVG attributes).\nexport const ADDITIONAL_BLOCKED_PROPS = new Set([\n // RN-only event handlers (pass isPropValid's on* pattern)\n \"onPress\",\n \"onChangeText\",\n \"onLayout\",\n \"onMoveShouldSetResponder\",\n \"onResponderGrant\",\n \"onResponderMove\",\n \"onResponderRelease\",\n \"onResponderTerminate\",\n // SVG attributes that pass isPropValid\n \"strokeWidth\",\n // CSS properties that pass isPropValid but are used as component props\n \"overflow\",\n \"cursor\",\n \"fontSize\",\n \"fontWeight\",\n \"fontFamily\",\n \"textDecoration\",\n]);\n\nfunction shouldForwardProp(key: string): boolean {\n if (ADDITIONAL_BLOCKED_PROPS.has(key)) return false;\n return isPropValid(key);\n}\n\n/**\n * Creates a React component that renders the given HTML tag\n * but filters out non-HTML props before they reach the DOM.\n *\n * Uses @emotion/is-prop-valid (same library styled-components v4\n * uses internally) to automatically block invalid HTML attributes,\n * plus a small blocklist for false positives (RN on* handlers, SVG attrs).\n *\n * Usage: `const FilteredDiv = createFilteredElement(\"div\");`\n * Then: `const StyledBox = styled(FilteredDiv)<BoxProps>\\`...\\`;`\n *\n * styled-components can still read ALL props for CSS interpolation,\n * but only valid HTML attributes are forwarded to the DOM element.\n */\nexport function createFilteredElement(defaultTag: string) {\n const Component = React.forwardRef<HTMLElement, Record<string, unknown>>(\n ({ children, elementType, ...props }, ref) => {\n const Tag = (elementType as string) || defaultTag;\n const htmlProps: Record<string, unknown> = {};\n for (const key of Object.keys(props)) {\n if (shouldForwardProp(key)) {\n htmlProps[key] = props[key];\n }\n }\n return React.createElement(\n Tag,\n { ref, ...htmlProps },\n children as React.ReactNode\n );\n }\n );\n Component.displayName = `Filtered(${defaultTag})`;\n return Component;\n}\n","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n","import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAAkD;;;ACAlD,IAAAC,gBAAkB;AAClB,+BAAmB;;;ACDnB,mBAAkB;;;ACAlB,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,CAAC;AACb,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,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