@duro-app/ui 5.33.0 → 5.34.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/dist/{Table-ypIvytAS.js → Table-IuD0tooi.js} +56 -49
- package/dist/Table-IuD0tooi.js.map +1 -0
- package/dist/{compiler-runtime-BuugS4D0.js → compiler-runtime-CV6vsf8h.js} +80 -73
- package/dist/{compiler-runtime-BuugS4D0.js.map → compiler-runtime-CV6vsf8h.js.map} +1 -1
- package/dist/components/Avatar/Avatar.d.ts +8 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.meta.d.ts +3 -0
- package/dist/components/Avatar/Avatar.meta.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +15 -0
- package/dist/components/Avatar/Avatar.stories.d.ts.map +1 -0
- package/dist/components/Avatar/styles.css.d.ts +41 -0
- package/dist/components/Avatar/styles.css.d.ts.map +1 -0
- package/dist/components/Avatar/types.d.ts +21 -0
- package/dist/components/Avatar/types.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/geometry.d.ts +4 -0
- package/dist/components/Icon/geometry.d.ts.map +1 -1
- package/dist/components/Icon/phosphor-glyphs.d.ts +1028 -0
- package/dist/components/Icon/phosphor-glyphs.d.ts.map +1 -0
- package/dist/components/Icon/types.d.ts +3 -1
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/List/ItemLink.d.ts +32 -0
- package/dist/components/List/ItemLink.d.ts.map +1 -0
- package/dist/components/List/List.d.ts +36 -4
- package/dist/components/List/List.d.ts.map +1 -1
- package/dist/components/List/List.stories.d.ts +9 -0
- package/dist/components/List/List.stories.d.ts.map +1 -1
- package/dist/components/List/styles.css.d.ts +39 -0
- package/dist/components/List/styles.css.d.ts.map +1 -1
- package/dist/form.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5921 -4688
- package/dist/index.js.map +1 -1
- package/dist/table.js +2 -2
- package/package.json +3 -2
- package/src/components/Avatar/Avatar.meta.ts +32 -0
- package/src/components/Avatar/Avatar.native.tsx +37 -0
- package/src/components/Avatar/Avatar.stories.tsx +92 -0
- package/src/components/Avatar/Avatar.tsx +40 -0
- package/src/components/Avatar/styles.css.ts +32 -0
- package/src/components/Avatar/types.ts +21 -0
- package/src/components/Icon/Icon.meta.ts +1 -1
- package/src/components/Icon/Icon.native.tsx +2 -2
- package/src/components/Icon/Icon.tsx +4 -3
- package/src/components/Icon/geometry.ts +7 -0
- package/src/components/Icon/phosphor-glyphs.ts +1285 -0
- package/src/components/Icon/phosphor-names.json +130 -0
- package/src/components/Icon/types.ts +4 -0
- package/src/components/List/ItemLink.native.tsx +60 -0
- package/src/components/List/ItemLink.tsx +80 -0
- package/src/components/List/List.meta.ts +3 -3
- package/src/components/List/List.stories.tsx +91 -1
- package/src/components/List/List.tsx +130 -22
- package/src/components/List/styles.css.ts +45 -0
- package/src/index.native.ts +6 -0
- package/src/index.ts +6 -0
- package/dist/Table-ypIvytAS.js.map +0 -1
|
@@ -10,12 +10,12 @@ var q = {};
|
|
|
10
10
|
Object.defineProperty(q, "__esModule", {
|
|
11
11
|
value: !0
|
|
12
12
|
});
|
|
13
|
-
var D = q.styleq = void 0, C = /* @__PURE__ */ new WeakMap(),
|
|
14
|
-
function E(
|
|
15
|
-
var i,
|
|
16
|
-
return
|
|
17
|
-
for (var
|
|
18
|
-
u[
|
|
13
|
+
var D = q.styleq = void 0, C = /* @__PURE__ */ new WeakMap(), P = "$$css";
|
|
14
|
+
function E(r) {
|
|
15
|
+
var i, s, d;
|
|
16
|
+
return r != null && (i = r.disableCache === !0, s = r.disableMix === !0, d = r.transform), function() {
|
|
17
|
+
for (var l = [], o = "", n = null, c = "", t = i ? null : C, u = new Array(arguments.length), k = 0; k < arguments.length; k++)
|
|
18
|
+
u[k] = arguments[k];
|
|
19
19
|
for (; u.length > 0; ) {
|
|
20
20
|
var m = u.pop();
|
|
21
21
|
if (!(m == null || m === !1)) {
|
|
@@ -27,35 +27,35 @@ function E(t) {
|
|
|
27
27
|
var a = d != null ? d(m) : m;
|
|
28
28
|
if (a.$$css != null) {
|
|
29
29
|
var f = "";
|
|
30
|
-
if (
|
|
31
|
-
var
|
|
32
|
-
|
|
30
|
+
if (t != null && t.has(a)) {
|
|
31
|
+
var b = t.get(a);
|
|
32
|
+
b != null && (f = b[0], c = b[2], l.push.apply(l, b[1]), t = b[3]);
|
|
33
33
|
} else {
|
|
34
|
-
var
|
|
34
|
+
var W = [];
|
|
35
35
|
for (var p in a) {
|
|
36
|
-
var
|
|
37
|
-
if (p ===
|
|
36
|
+
var h = a[p];
|
|
37
|
+
if (p === P) {
|
|
38
38
|
var y = a[p];
|
|
39
39
|
y !== !0 && (c = c ? y + "; " + c : y);
|
|
40
40
|
continue;
|
|
41
41
|
}
|
|
42
|
-
typeof
|
|
42
|
+
typeof h == "string" || h === null ? l.includes(p) || (l.push(p), t != null && W.push(p), typeof h == "string" && (f += f ? " " + h : h)) : console.error("styleq: ".concat(p, " typeof ").concat(String(h), ' is not "string" or "null".'));
|
|
43
43
|
}
|
|
44
|
-
if (
|
|
45
|
-
var
|
|
46
|
-
|
|
44
|
+
if (t != null) {
|
|
45
|
+
var O = /* @__PURE__ */ new WeakMap();
|
|
46
|
+
t.set(a, [f, W, c, O]), t = O;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
f && (o = o ? f + " " + o : f);
|
|
50
|
-
} else if (
|
|
50
|
+
} else if (s)
|
|
51
51
|
n == null && (n = {}), n = Object.assign({}, a, n);
|
|
52
52
|
else {
|
|
53
|
-
var
|
|
53
|
+
var x = null;
|
|
54
54
|
for (var R in a) {
|
|
55
|
-
var
|
|
56
|
-
|
|
55
|
+
var w = a[R];
|
|
56
|
+
w !== void 0 && (l.includes(R) || (w != null && (n == null && (n = {}), x == null && (x = {}), x[R] = w), l.push(R), t = null));
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
x != null && (n = Object.assign(x, n));
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -63,22 +63,22 @@ function E(t) {
|
|
|
63
63
|
return T;
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
|
|
66
|
+
var H = D = q.styleq = E();
|
|
67
|
+
H.factory = E;
|
|
68
68
|
const U = D.factory({
|
|
69
69
|
disableMix: !0
|
|
70
70
|
});
|
|
71
|
-
function
|
|
72
|
-
const [i,
|
|
73
|
-
if (i != null && i !== "" && (
|
|
74
|
-
const
|
|
75
|
-
for (const n of
|
|
76
|
-
const c = n.trim(), [
|
|
77
|
-
u != null && (o[
|
|
71
|
+
function ce(...r) {
|
|
72
|
+
const [i, s, d] = U(r), g = {};
|
|
73
|
+
if (i != null && i !== "" && (g.className = i), s != null && (g.style = s), d != null && d !== "") {
|
|
74
|
+
const l = d.split(";"), o = {};
|
|
75
|
+
for (const n of l) {
|
|
76
|
+
const c = n.trim(), [t, u] = c.split(":");
|
|
77
|
+
u != null && (o[t] = o[t] != null ? `${o[t]},${u}` : u);
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
g["data-style-src"] = Object.keys(o).map((n) => `${n}:${o[n]}`).join("; ");
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return g;
|
|
82
82
|
}
|
|
83
83
|
const e = {
|
|
84
84
|
block: {
|
|
@@ -115,6 +115,12 @@ const e = {
|
|
|
115
115
|
"wordWrap-kD5eJx": "wordWrap-x1vvkbs",
|
|
116
116
|
$$css: ".pnpm:web/runtime.js:186"
|
|
117
117
|
},
|
|
118
|
+
img: {
|
|
119
|
+
"aspectRatio-kOBAk4": "aspectRatio-xuw900x",
|
|
120
|
+
"height-kZKoxP": "height-xt7dq6l",
|
|
121
|
+
"maxWidth-ks0D6T": "maxWidth-x193iq5w",
|
|
122
|
+
$$css: ".pnpm:web/runtime.js:197"
|
|
123
|
+
},
|
|
118
124
|
input: {
|
|
119
125
|
"borderWidth-kMzoRj": "borderWidth-xmkeg23",
|
|
120
126
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
@@ -130,31 +136,32 @@ const e = {
|
|
|
130
136
|
"resize-kHenm0": "resize-x288g5",
|
|
131
137
|
$$css: ".pnpm:web/runtime.js:212"
|
|
132
138
|
}
|
|
133
|
-
}, I = e.inline, Y = e.block, G = [e.inlineblock, e.button], L = e.block, V = e.block,
|
|
139
|
+
}, I = e.inline, Y = e.block, G = [e.inlineblock, e.button], L = e.block, V = e.block, v = [e.block, e.heading], J = e.block, X = e.img, B = [e.inlineblock, e.input], F = e.inline, Q = e.block, Z = e.block, K = e.block, ee = e.block, ne = [e.block, e.codePre], te = e.inline, re = [e.inlineblock, e.textarea], ie = [e.list, e.block], ue = {
|
|
134
140
|
a: I,
|
|
135
141
|
aside: Y,
|
|
136
142
|
button: G,
|
|
137
143
|
div: L,
|
|
138
144
|
form: V,
|
|
139
|
-
h1:
|
|
140
|
-
h2:
|
|
141
|
-
h3:
|
|
142
|
-
h4:
|
|
143
|
-
h5:
|
|
144
|
-
h6:
|
|
145
|
+
h1: v,
|
|
146
|
+
h2: v,
|
|
147
|
+
h3: v,
|
|
148
|
+
h4: v,
|
|
149
|
+
h5: v,
|
|
150
|
+
h6: v,
|
|
145
151
|
header: J,
|
|
146
|
-
|
|
152
|
+
img: X,
|
|
153
|
+
input: B,
|
|
147
154
|
label: F,
|
|
148
|
-
li:
|
|
149
|
-
main:
|
|
150
|
-
nav:
|
|
151
|
-
p:
|
|
152
|
-
pre:
|
|
153
|
-
span:
|
|
155
|
+
li: Q,
|
|
156
|
+
main: Z,
|
|
157
|
+
nav: K,
|
|
158
|
+
p: ee,
|
|
159
|
+
pre: ne,
|
|
160
|
+
span: te,
|
|
154
161
|
textarea: re,
|
|
155
|
-
ul:
|
|
162
|
+
ul: ie
|
|
156
163
|
};
|
|
157
|
-
var $ = { exports: {} },
|
|
164
|
+
var $ = { exports: {} }, j = {};
|
|
158
165
|
/**
|
|
159
166
|
* @license React
|
|
160
167
|
* react-compiler-runtime.production.js
|
|
@@ -164,16 +171,16 @@ var $ = { exports: {} }, S = {};
|
|
|
164
171
|
* This source code is licensed under the MIT license found in the
|
|
165
172
|
* LICENSE file in the root directory of this source tree.
|
|
166
173
|
*/
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
170
|
-
|
|
171
|
-
var
|
|
172
|
-
return
|
|
173
|
-
return
|
|
174
|
-
},
|
|
174
|
+
var M;
|
|
175
|
+
function oe() {
|
|
176
|
+
if (M) return j;
|
|
177
|
+
M = 1;
|
|
178
|
+
var r = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
179
|
+
return j.c = function(i) {
|
|
180
|
+
return r.H.useMemoCache(i);
|
|
181
|
+
}, j;
|
|
175
182
|
}
|
|
176
|
-
var
|
|
183
|
+
var S = {};
|
|
177
184
|
/**
|
|
178
185
|
* @license React
|
|
179
186
|
* react-compiler-runtime.development.js
|
|
@@ -183,28 +190,28 @@ var w = {};
|
|
|
183
190
|
* This source code is licensed under the MIT license found in the
|
|
184
191
|
* LICENSE file in the root directory of this source tree.
|
|
185
192
|
*/
|
|
186
|
-
var
|
|
187
|
-
function
|
|
188
|
-
return
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
var
|
|
192
|
-
return
|
|
193
|
+
var N;
|
|
194
|
+
function ae() {
|
|
195
|
+
return N || (N = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
196
|
+
var r = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
197
|
+
S.c = function(i) {
|
|
198
|
+
var s = r.H;
|
|
199
|
+
return s === null && console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
193
200
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
194
201
|
2. You might be breaking the Rules of Hooks
|
|
195
202
|
3. You might have more than one copy of React in the same app
|
|
196
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),
|
|
203
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`), s.useMemoCache(i);
|
|
197
204
|
};
|
|
198
|
-
})()),
|
|
205
|
+
})()), S;
|
|
199
206
|
}
|
|
200
207
|
var z;
|
|
201
|
-
function
|
|
202
|
-
return z || (z = 1, process.env.NODE_ENV === "production" ? $.exports =
|
|
208
|
+
function se() {
|
|
209
|
+
return z || (z = 1, process.env.NODE_ENV === "production" ? $.exports = oe() : $.exports = ae()), $.exports;
|
|
203
210
|
}
|
|
204
|
-
var
|
|
211
|
+
var de = se();
|
|
205
212
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
213
|
+
de as c,
|
|
214
|
+
ue as d,
|
|
215
|
+
ce as m
|
|
209
216
|
};
|
|
210
|
-
//# sourceMappingURL=compiler-runtime-
|
|
217
|
+
//# sourceMappingURL=compiler-runtime-CV6vsf8h.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler-runtime-BuugS4D0.js","sources":["../../../node_modules/.pnpm/react-strict-dom@0.0.55_postcss@8.5.28_react-dom@19.2.4_react@19.2.4__react-native@0.81_9de9da099054af78a885f1e91eccbcf1/node_modules/react-strict-dom/dist/web/runtime.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-compiler-runtime.production.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-compiler-runtime.development.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license react-strict-dom\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';\nimport * as stylex from '@stylexjs/stylex';\n\nvar styleq$1 = {};\n\nObject.defineProperty(styleq$1, \"__esModule\", {\n value: true\n});\nvar styleq_2 = styleq$1.styleq = void 0;\nvar cache = new WeakMap();\nvar compiledKey = '$$css';\nfunction createStyleq(options) {\n var disableCache;\n var disableMix;\n var transform;\n if (options != null) {\n disableCache = options.disableCache === true;\n disableMix = options.disableMix === true;\n transform = options.transform;\n }\n return function styleq() {\n var definedProperties = [];\n var className = '';\n var inlineStyle = null;\n var debugString = '';\n var nextCache = disableCache ? null : cache;\n var styles = new Array(arguments.length);\n for (var i = 0; i < arguments.length; i++) {\n styles[i] = arguments[i];\n }\n while (styles.length > 0) {\n var possibleStyle = styles.pop();\n if (possibleStyle == null || possibleStyle === false) {\n continue;\n }\n if (Array.isArray(possibleStyle)) {\n for (var _i = 0; _i < possibleStyle.length; _i++) {\n styles.push(possibleStyle[_i]);\n }\n continue;\n }\n var style = transform != null ? transform(possibleStyle) : possibleStyle;\n if (style.$$css != null) {\n var classNameChunk = '';\n if (nextCache != null && nextCache.has(style)) {\n var cacheEntry = nextCache.get(style);\n if (cacheEntry != null) {\n classNameChunk = cacheEntry[0];\n debugString = cacheEntry[2];\n definedProperties.push.apply(definedProperties, cacheEntry[1]);\n nextCache = cacheEntry[3];\n }\n } else {\n var definedPropertiesChunk = [];\n for (var prop in style) {\n var value = style[prop];\n if (prop === compiledKey) {\n var compiledKeyValue = style[prop];\n if (compiledKeyValue !== true) {\n debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;\n }\n continue;\n }\n if (typeof value === 'string' || value === null) {\n if (!definedProperties.includes(prop)) {\n definedProperties.push(prop);\n if (nextCache != null) {\n definedPropertiesChunk.push(prop);\n }\n if (typeof value === 'string') {\n classNameChunk += classNameChunk ? ' ' + value : value;\n }\n }\n } else {\n console.error(\"styleq: \".concat(prop, \" typeof \").concat(String(value), \" is not \\\"string\\\" or \\\"null\\\".\"));\n }\n }\n if (nextCache != null) {\n var weakMap = new WeakMap();\n nextCache.set(style, [classNameChunk, definedPropertiesChunk, debugString, weakMap]);\n nextCache = weakMap;\n }\n }\n if (classNameChunk) {\n className = className ? classNameChunk + ' ' + className : classNameChunk;\n }\n } else {\n if (disableMix) {\n if (inlineStyle == null) {\n inlineStyle = {};\n }\n inlineStyle = Object.assign({}, style, inlineStyle);\n } else {\n var subStyle = null;\n for (var _prop in style) {\n var _value = style[_prop];\n if (_value !== undefined) {\n if (!definedProperties.includes(_prop)) {\n if (_value != null) {\n if (inlineStyle == null) {\n inlineStyle = {};\n }\n if (subStyle == null) {\n subStyle = {};\n }\n subStyle[_prop] = _value;\n }\n definedProperties.push(_prop);\n nextCache = null;\n }\n }\n }\n if (subStyle != null) {\n inlineStyle = Object.assign(subStyle, inlineStyle);\n }\n }\n }\n }\n var styleProps = [className, inlineStyle, debugString];\n return styleProps;\n };\n}\nvar styleq = styleq_2 = styleq$1.styleq = createStyleq();\nstyleq.factory = createStyleq;\n\nconst optimizedStyleq = styleq_2.factory({\n disableMix: true\n});\nfunction merge(...styles) {\n const [className, style, dataStyleSrc] = optimizedStyleq(styles);\n const result = {};\n if (className != null && className !== '') {\n result.className = className;\n }\n if (style != null) {\n result.style = style;\n }\n if (dataStyleSrc != null && dataStyleSrc !== '') {\n const chunks = dataStyleSrc.split(';');\n const pathsMap = {};\n for (const chunk of chunks) {\n const trimmed = chunk.trim();\n const [path, line] = trimmed.split(':');\n if (line != null) {\n pathsMap[path] = pathsMap[path] != null ? `${pathsMap[path]},${line}` : line;\n }\n }\n result['data-style-src'] = Object.keys(pathsMap).map(path => `${path}:${pathsMap[path]}`).join('; ');\n }\n return result;\n}\n\nconst styles = stylex.create({\n block: {\n margin: 0,\n padding: 0\n },\n inline: {\n margin: 0,\n padding: 0,\n textDecoration: 'none',\n textAlign: 'inherit',\n wordWrap: 'break-word'\n },\n inlineblock: {\n borderStyle: 'solid',\n margin: 0,\n padding: 0\n },\n button: {\n borderWidth: 1\n },\n codePre: {\n fontFamily: 'monospace, \"monospace\"',\n fontSize: '1em',\n overflow: 'auto'\n },\n heading: {\n fontSize: '1.5rem',\n wordWrap: 'break-word'\n },\n hr: {\n backgroundColor: 'black',\n borderStyle: 'none',\n borderWidth: 0,\n boxSizing: 'border-box',\n height: 1\n },\n img: {\n aspectRatio: 'attr(width) / attr(height)',\n height: 'auto',\n maxWidth: '100%'\n },\n input: {\n borderWidth: 1,\n borderStyle: 'solid'\n },\n list: {\n listStyle: 'none'\n },\n strong: {\n fontWeight: 'bold'\n },\n textarea: {\n borderWidth: 1,\n borderStyle: 'solid',\n resize: 'vertical'\n }\n});\nconst a = styles.inline;\nconst article = styles.block;\nconst aside = styles.block;\nconst b = styles.inline;\nconst bdi = styles.inline;\nconst bdo = styles.inline;\nconst blockquote = styles.block;\nconst br = null;\nconst button = [styles.inlineblock, styles.button];\nconst code = [styles.inline, styles.codePre];\nconst del = null;\nconst div = styles.block;\nconst em = styles.inline;\nconst fieldset = styles.block;\nconst footer = styles.block;\nconst form = styles.block;\nconst heading = [styles.block, styles.heading];\nconst header = styles.block;\nconst hr = [styles.block, styles.hr];\nconst i = styles.inline;\nconst img = styles.img;\nconst input = [styles.inlineblock, styles.input];\nconst ins = null;\nconst kbd = null;\nconst label = styles.inline;\nconst li = styles.block;\nconst main = styles.block;\nconst mark = styles.inline;\nconst nav = styles.block;\nconst ol = [styles.list, styles.block];\nconst optgroup = null;\nconst option = null;\nconst p = styles.block;\nconst pre = [styles.block, styles.codePre];\nconst s = null;\nconst section = styles.block;\nconst select = styles.inlineblock;\nconst span = styles.inline;\nconst strong = [styles.inline, styles.strong];\nconst sub = styles.inline;\nconst sup = styles.inline;\nconst textarea = [styles.inlineblock, styles.textarea];\nconst u = null;\nconst ul = [styles.list, styles.block];\nconst defaultStyles = {\n a: a,\n article: article,\n aside: aside,\n b: b,\n bdi: bdi,\n bdo: bdo,\n blockquote: blockquote,\n br: br,\n button: button,\n code: code,\n del: del,\n div: div,\n em: em,\n fieldset: fieldset,\n footer: footer,\n form: form,\n h1: heading,\n h2: heading,\n h3: heading,\n h4: heading,\n h5: heading,\n h6: heading,\n header: header,\n hr: hr,\n i: i,\n img: img,\n input: input,\n ins: ins,\n kbd: kbd,\n label: label,\n li: li,\n main: main,\n mark: mark,\n nav: nav,\n ol: ol,\n optgroup: optgroup,\n option: option,\n p: p,\n pre: pre,\n s: s,\n section: section,\n select: select,\n span: span,\n strong: strong,\n sub: sub,\n sup: sup,\n textarea: textarea,\n u: u,\n ul: ul\n};\n\nexport { defaultStyles, merge };\n","/**\n * @license React\n * react-compiler-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 ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-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 var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\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\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"names":["styleq$1","styleq_2","cache","compiledKey","createStyleq","options","disableCache","disableMix","transform","definedProperties","className","inlineStyle","debugString","nextCache","styles","i","possibleStyle","_i","style","classNameChunk","cacheEntry","definedPropertiesChunk","prop","value","compiledKeyValue","weakMap","subStyle","_prop","_value","styleProps","styleq","optimizedStyleq","merge","dataStyleSrc","result","chunks","pathsMap","chunk","trimmed","path","line","a","aside","button","div","form","heading","header","input","label","li","main","nav","p","pre","span","textarea","ul","defaultStyles","ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,IAAIA,IAAW,CAAA;AACf,OAAO,eAAeA,GAAU,cAAc;AAAA,EAC5C,OAAO;AACT,CAAC;AACD,IAAIC,IAAWD,EAAS,SAAS,QAC7BE,IAAQ,oBAAI,QAAO,GACnBC,IAAc;AAClB,SAASC,EAAaC,GAAS;AAC7B,MAAIC,GACAC,GACAC;AACJ,SAAIH,KAAW,SACbC,IAAeD,EAAQ,iBAAiB,IACxCE,IAAaF,EAAQ,eAAe,IACpCG,IAAYH,EAAQ,YAEf,WAAkB;AAOvB,aANII,IAAoB,CAAA,GACpBC,IAAY,IACZC,IAAc,MACdC,IAAc,IACdC,IAAYP,IAAe,OAAOJ,GAClCY,IAAS,IAAI,MAAM,UAAU,MAAM,GAC9BC,IAAI,GAAGA,IAAI,UAAU,QAAQA;AACpC,MAAAD,EAAOC,CAAC,IAAI,UAAUA,CAAC;AAEzB,WAAOD,EAAO,SAAS,KAAG;AACxB,UAAIE,IAAgBF,EAAO,IAAG;AAC9B,UAAI,EAAAE,KAAiB,QAAQA,MAAkB,KAG/C;AAAA,YAAI,MAAM,QAAQA,CAAa,GAAG;AAChC,mBAASC,IAAK,GAAGA,IAAKD,EAAc,QAAQC;A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AAI,aAAa,eAC3BG,EAAA,UAAiBL,GAAA,IAEjBK,EAAA,UAAiBC,GAAA;;;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"compiler-runtime-CV6vsf8h.js","sources":["../../../node_modules/.pnpm/react-strict-dom@0.0.55_postcss@8.5.28_react-dom@19.2.4_react@19.2.4__react-native@0.81_9de9da099054af78a885f1e91eccbcf1/node_modules/react-strict-dom/dist/web/runtime.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-compiler-runtime.production.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-compiler-runtime.development.js","../../../node_modules/.pnpm/react@19.2.4/node_modules/react/compiler-runtime.js"],"sourcesContent":["/**\n * @license react-strict-dom\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';\nimport * as stylex from '@stylexjs/stylex';\n\nvar styleq$1 = {};\n\nObject.defineProperty(styleq$1, \"__esModule\", {\n value: true\n});\nvar styleq_2 = styleq$1.styleq = void 0;\nvar cache = new WeakMap();\nvar compiledKey = '$$css';\nfunction createStyleq(options) {\n var disableCache;\n var disableMix;\n var transform;\n if (options != null) {\n disableCache = options.disableCache === true;\n disableMix = options.disableMix === true;\n transform = options.transform;\n }\n return function styleq() {\n var definedProperties = [];\n var className = '';\n var inlineStyle = null;\n var debugString = '';\n var nextCache = disableCache ? null : cache;\n var styles = new Array(arguments.length);\n for (var i = 0; i < arguments.length; i++) {\n styles[i] = arguments[i];\n }\n while (styles.length > 0) {\n var possibleStyle = styles.pop();\n if (possibleStyle == null || possibleStyle === false) {\n continue;\n }\n if (Array.isArray(possibleStyle)) {\n for (var _i = 0; _i < possibleStyle.length; _i++) {\n styles.push(possibleStyle[_i]);\n }\n continue;\n }\n var style = transform != null ? transform(possibleStyle) : possibleStyle;\n if (style.$$css != null) {\n var classNameChunk = '';\n if (nextCache != null && nextCache.has(style)) {\n var cacheEntry = nextCache.get(style);\n if (cacheEntry != null) {\n classNameChunk = cacheEntry[0];\n debugString = cacheEntry[2];\n definedProperties.push.apply(definedProperties, cacheEntry[1]);\n nextCache = cacheEntry[3];\n }\n } else {\n var definedPropertiesChunk = [];\n for (var prop in style) {\n var value = style[prop];\n if (prop === compiledKey) {\n var compiledKeyValue = style[prop];\n if (compiledKeyValue !== true) {\n debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;\n }\n continue;\n }\n if (typeof value === 'string' || value === null) {\n if (!definedProperties.includes(prop)) {\n definedProperties.push(prop);\n if (nextCache != null) {\n definedPropertiesChunk.push(prop);\n }\n if (typeof value === 'string') {\n classNameChunk += classNameChunk ? ' ' + value : value;\n }\n }\n } else {\n console.error(\"styleq: \".concat(prop, \" typeof \").concat(String(value), \" is not \\\"string\\\" or \\\"null\\\".\"));\n }\n }\n if (nextCache != null) {\n var weakMap = new WeakMap();\n nextCache.set(style, [classNameChunk, definedPropertiesChunk, debugString, weakMap]);\n nextCache = weakMap;\n }\n }\n if (classNameChunk) {\n className = className ? classNameChunk + ' ' + className : classNameChunk;\n }\n } else {\n if (disableMix) {\n if (inlineStyle == null) {\n inlineStyle = {};\n }\n inlineStyle = Object.assign({}, style, inlineStyle);\n } else {\n var subStyle = null;\n for (var _prop in style) {\n var _value = style[_prop];\n if (_value !== undefined) {\n if (!definedProperties.includes(_prop)) {\n if (_value != null) {\n if (inlineStyle == null) {\n inlineStyle = {};\n }\n if (subStyle == null) {\n subStyle = {};\n }\n subStyle[_prop] = _value;\n }\n definedProperties.push(_prop);\n nextCache = null;\n }\n }\n }\n if (subStyle != null) {\n inlineStyle = Object.assign(subStyle, inlineStyle);\n }\n }\n }\n }\n var styleProps = [className, inlineStyle, debugString];\n return styleProps;\n };\n}\nvar styleq = styleq_2 = styleq$1.styleq = createStyleq();\nstyleq.factory = createStyleq;\n\nconst optimizedStyleq = styleq_2.factory({\n disableMix: true\n});\nfunction merge(...styles) {\n const [className, style, dataStyleSrc] = optimizedStyleq(styles);\n const result = {};\n if (className != null && className !== '') {\n result.className = className;\n }\n if (style != null) {\n result.style = style;\n }\n if (dataStyleSrc != null && dataStyleSrc !== '') {\n const chunks = dataStyleSrc.split(';');\n const pathsMap = {};\n for (const chunk of chunks) {\n const trimmed = chunk.trim();\n const [path, line] = trimmed.split(':');\n if (line != null) {\n pathsMap[path] = pathsMap[path] != null ? `${pathsMap[path]},${line}` : line;\n }\n }\n result['data-style-src'] = Object.keys(pathsMap).map(path => `${path}:${pathsMap[path]}`).join('; ');\n }\n return result;\n}\n\nconst styles = stylex.create({\n block: {\n margin: 0,\n padding: 0\n },\n inline: {\n margin: 0,\n padding: 0,\n textDecoration: 'none',\n textAlign: 'inherit',\n wordWrap: 'break-word'\n },\n inlineblock: {\n borderStyle: 'solid',\n margin: 0,\n padding: 0\n },\n button: {\n borderWidth: 1\n },\n codePre: {\n fontFamily: 'monospace, \"monospace\"',\n fontSize: '1em',\n overflow: 'auto'\n },\n heading: {\n fontSize: '1.5rem',\n wordWrap: 'break-word'\n },\n hr: {\n backgroundColor: 'black',\n borderStyle: 'none',\n borderWidth: 0,\n boxSizing: 'border-box',\n height: 1\n },\n img: {\n aspectRatio: 'attr(width) / attr(height)',\n height: 'auto',\n maxWidth: '100%'\n },\n input: {\n borderWidth: 1,\n borderStyle: 'solid'\n },\n list: {\n listStyle: 'none'\n },\n strong: {\n fontWeight: 'bold'\n },\n textarea: {\n borderWidth: 1,\n borderStyle: 'solid',\n resize: 'vertical'\n }\n});\nconst a = styles.inline;\nconst article = styles.block;\nconst aside = styles.block;\nconst b = styles.inline;\nconst bdi = styles.inline;\nconst bdo = styles.inline;\nconst blockquote = styles.block;\nconst br = null;\nconst button = [styles.inlineblock, styles.button];\nconst code = [styles.inline, styles.codePre];\nconst del = null;\nconst div = styles.block;\nconst em = styles.inline;\nconst fieldset = styles.block;\nconst footer = styles.block;\nconst form = styles.block;\nconst heading = [styles.block, styles.heading];\nconst header = styles.block;\nconst hr = [styles.block, styles.hr];\nconst i = styles.inline;\nconst img = styles.img;\nconst input = [styles.inlineblock, styles.input];\nconst ins = null;\nconst kbd = null;\nconst label = styles.inline;\nconst li = styles.block;\nconst main = styles.block;\nconst mark = styles.inline;\nconst nav = styles.block;\nconst ol = [styles.list, styles.block];\nconst optgroup = null;\nconst option = null;\nconst p = styles.block;\nconst pre = [styles.block, styles.codePre];\nconst s = null;\nconst section = styles.block;\nconst select = styles.inlineblock;\nconst span = styles.inline;\nconst strong = [styles.inline, styles.strong];\nconst sub = styles.inline;\nconst sup = styles.inline;\nconst textarea = [styles.inlineblock, styles.textarea];\nconst u = null;\nconst ul = [styles.list, styles.block];\nconst defaultStyles = {\n a: a,\n article: article,\n aside: aside,\n b: b,\n bdi: bdi,\n bdo: bdo,\n blockquote: blockquote,\n br: br,\n button: button,\n code: code,\n del: del,\n div: div,\n em: em,\n fieldset: fieldset,\n footer: footer,\n form: form,\n h1: heading,\n h2: heading,\n h3: heading,\n h4: heading,\n h5: heading,\n h6: heading,\n header: header,\n hr: hr,\n i: i,\n img: img,\n input: input,\n ins: ins,\n kbd: kbd,\n label: label,\n li: li,\n main: main,\n mark: mark,\n nav: nav,\n ol: ol,\n optgroup: optgroup,\n option: option,\n p: p,\n pre: pre,\n s: s,\n section: section,\n select: select,\n span: span,\n strong: strong,\n sub: sub,\n sup: sup,\n textarea: textarea,\n u: u,\n ul: ul\n};\n\nexport { defaultStyles, merge };\n","/**\n * @license React\n * react-compiler-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 ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-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 var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\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\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n"],"names":["styleq$1","styleq_2","cache","compiledKey","createStyleq","options","disableCache","disableMix","transform","definedProperties","className","inlineStyle","debugString","nextCache","styles","i","possibleStyle","_i","style","classNameChunk","cacheEntry","definedPropertiesChunk","prop","value","compiledKeyValue","weakMap","subStyle","_prop","_value","styleProps","styleq","optimizedStyleq","merge","dataStyleSrc","result","chunks","pathsMap","chunk","trimmed","path","line","a","aside","button","div","form","heading","header","img","input","label","li","main","nav","p","pre","span","textarea","ul","defaultStyles","ReactSharedInternals","require$$0","reactCompilerRuntime_production","size","reactCompilerRuntime_development","dispatcher","compilerRuntimeModule","require$$1"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,IAAIA,IAAW,CAAA;AACf,OAAO,eAAeA,GAAU,cAAc;AAAA,EAC5C,OAAO;AACT,CAAC;AACD,IAAIC,IAAWD,EAAS,SAAS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ACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,QAAQC;AAAA,EAGR,KAAKC;AAAA,EACL,OAAOC;AAAA,EAGP,OAAOC;AAAA,EACP,IAAIC;AAAA,EACJ,MAAMC;AAAA,EAEN,KAAKC;AAAA,EAIL,GAAGC;AAAA,EACH,KAAKC;AAAA,EAIL,MAAMC;AAAA,EAIN,UAAUC;AAAA,EAEV,IAAIC;AACN;;;;;;;;;;;;;;;ACpTA,MAAIE,IAAuBC,EAAiB;AAC5C,SAAAC,EAAA,IAAY,SAAUC,GAAM;AAC1B,WAAOH,EAAqB,EAAE,aAAaG,CAAI;AAAA,EACjD;;;;;;;;;;;;;;sBCHiB,QAAQ,IAAI,aAA7B,iBAAyC,WAAY;AACnD,QAAIH,IAAuBC,EAAiB;AAC5C,IAAAG,EAAA,IAAY,SAAUD,GAAM;AAC1B,UAAIE,IAAaL,EAAqB;AACtC,aAASK,MAAT,QAAuB,QAAQ,MAAM;AAAA;AAAA;AAAA;AAAA,+FAA+a,GAC7cA,EAAW,aAAaF,CAAI;AAAA,IACvC;AAAA,EACA,GAAC;;;;sBCVG,QAAQ,IAAI,aAAa,eAC3BG,EAAA,UAAiBL,GAAA,IAEjBK,EAAA,UAAiBC,GAAA;;;","x_google_ignoreList":[0,1,2,3]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AvatarProps } from './types';
|
|
2
|
+
export type { AvatarProps, AvatarShape, AvatarSize } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* A person or entity as a picture, else an app-generated SVG, else their initials, else a neutral
|
|
5
|
+
* blank. Each carries `alt` as the accessible name.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Avatar({ src, svg, alt, initials, size, shape }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;AAExC,YAAY,EAAC,WAAW,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,SAAS,CAAA;AAEjE;;;GAGG;AACH,wBAAgB,MAAM,CAAC,EAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAW,EAAE,KAAgB,EAAC,EAAE,WAAW,2CA4B3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.meta.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,IAAI,EAAE,aA6BlB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Avatar } from './Avatar';
|
|
3
|
+
declare const meta: Meta<typeof Avatar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Avatar>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
/** The image when there is a src; else the initials; else a neutral placeholder. */
|
|
8
|
+
export declare const ImageInitialsPlaceholder: Story;
|
|
9
|
+
export declare const Sizes: Story;
|
|
10
|
+
export declare const Shapes: Story;
|
|
11
|
+
/** An image that cannot load falls back to the initials. */
|
|
12
|
+
export declare const BrokenImage: Story;
|
|
13
|
+
/** An app-generated SVG document fills the frame when there is no loadable src. */
|
|
14
|
+
export declare const GeneratedSvg: Story;
|
|
15
|
+
//# sourceMappingURL=Avatar.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAA;AAI/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAQ7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAKpC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,wBAAwB,EAAE,KAoBtC,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAQnB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAA;AAED,4DAA4D;AAC5D,eAAO,MAAM,WAAW,EAAE,KASzB,CAAA;AAKD,mFAAmF;AACnF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { css } from 'react-strict-dom';
|
|
2
|
+
export declare const styles: Readonly<{
|
|
3
|
+
readonly base: Readonly<{
|
|
4
|
+
readonly display: css.StyleXClassNameFor<"display", "flex">;
|
|
5
|
+
readonly alignItems: css.StyleXClassNameFor<"alignItems", "center">;
|
|
6
|
+
readonly justifyContent: css.StyleXClassNameFor<"justifyContent", "center">;
|
|
7
|
+
readonly flexShrink: css.StyleXClassNameFor<"flexShrink", 0>;
|
|
8
|
+
readonly overflow: css.StyleXClassNameFor<"overflow", "hidden">;
|
|
9
|
+
readonly backgroundColor: css.StyleXClassNameFor<"backgroundColor", string>;
|
|
10
|
+
readonly color: css.StyleXClassNameFor<"color", string>;
|
|
11
|
+
readonly fontWeight: css.StyleXClassNameFor<"fontWeight", string>;
|
|
12
|
+
readonly lineHeight: css.StyleXClassNameFor<"lineHeight", 1>;
|
|
13
|
+
}>;
|
|
14
|
+
readonly sm: Readonly<{
|
|
15
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
16
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
17
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
18
|
+
}>;
|
|
19
|
+
readonly md: Readonly<{
|
|
20
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
21
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
22
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
23
|
+
}>;
|
|
24
|
+
readonly lg: Readonly<{
|
|
25
|
+
readonly width: css.StyleXClassNameFor<"width", string>;
|
|
26
|
+
readonly height: css.StyleXClassNameFor<"height", string>;
|
|
27
|
+
readonly fontSize: css.StyleXClassNameFor<"fontSize", string>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly circle: Readonly<{
|
|
30
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
31
|
+
}>;
|
|
32
|
+
readonly square: Readonly<{
|
|
33
|
+
readonly borderRadius: css.StyleXClassNameFor<"borderRadius", string>;
|
|
34
|
+
}>;
|
|
35
|
+
readonly image: Readonly<{
|
|
36
|
+
readonly width: css.StyleXClassNameFor<"width", "100%">;
|
|
37
|
+
readonly height: css.StyleXClassNameFor<"height", "100%">;
|
|
38
|
+
readonly objectFit: css.StyleXClassNameFor<"objectFit", "cover">;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
41
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/styles.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAMpC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type AvatarSize = 'sm' | 'md' | 'lg';
|
|
2
|
+
export type AvatarShape = 'circle' | 'square';
|
|
3
|
+
export interface AvatarProps {
|
|
4
|
+
/** Image URL. Without it, or when it fails to load, the svg, else the initials, show. */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** The accessible name: who or what this avatar stands for. Never empty. */
|
|
7
|
+
alt: string;
|
|
8
|
+
/**
|
|
9
|
+
* A complete SVG document string generated by the app (for example id-seeded art), drawn as the
|
|
10
|
+
* picture, filling the frame. Never user-supplied markup. Used when there is no `src`, or `src`
|
|
11
|
+
* failed to load; it wins over the initials.
|
|
12
|
+
*/
|
|
13
|
+
svg?: string;
|
|
14
|
+
/** Shown when there is no image or svg; one or two characters. */
|
|
15
|
+
initials?: string;
|
|
16
|
+
/** sm 28, md 40, lg 48 (the controlSm, thumbSm and iconXxl size tokens). Default md. */
|
|
17
|
+
size?: AvatarSize;
|
|
18
|
+
/** Default circle. */
|
|
19
|
+
shape?: AvatarShape;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC3C,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAE7C,MAAM,WAAW,WAAW;IAC1B,yFAAyF;IACzF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,4EAA4E;IAC5E,GAAG,EAAE,MAAM,CAAA;IACX;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wFAAwF;IACxF,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,sBAAsB;IACtB,KAAK,CAAC,EAAE,WAAW,CAAA;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,YAAY,EAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AAQ1D,wBAAgB,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,EAAE,SAAgB,EAAE,KAAK,EAAC,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,YAAY,EAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAA;AAQ1D,wBAAgB,IAAI,CAAC,EAAC,IAAI,EAAE,IAAI,EAAE,SAAgB,EAAE,KAAK,EAAC,EAAE,SAAS,2CA6BpE"}
|
|
@@ -54,7 +54,11 @@ export type Shape = {
|
|
|
54
54
|
};
|
|
55
55
|
export interface Glyph {
|
|
56
56
|
readonly style: 'stroke' | 'fill';
|
|
57
|
+
/** The glyph's own coordinate space; the 24-unit grid when absent. */
|
|
58
|
+
readonly viewBox?: string;
|
|
57
59
|
readonly shapes: readonly Shape[];
|
|
58
60
|
}
|
|
61
|
+
/** The grid Duro's own glyphs are drawn on. */
|
|
62
|
+
export declare const DEFAULT_VIEW_BOX = "0 0 24 24";
|
|
59
63
|
export declare const GLYPHS: Record<IconName, Glyph>;
|
|
60
64
|
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/geometry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/geometry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EA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