timvir 0.2.38 → 0.2.42
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/CHANGELOG.md +29 -0
- package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
- package/blocks/Arbitrary/index.js +232 -78
- package/blocks/Arbitrary/samples/basic.d.ts +1 -1
- package/blocks/Arbitrary/styles.css +166 -6
- package/blocks/Code/Code.d.ts +0 -6
- package/blocks/Code/docs/index.mdx +0 -11
- package/blocks/Code/index.js +213 -112
- package/blocks/Code/samples/basic.d.ts +1 -1
- package/blocks/Code/samples/toggle.d.ts +1 -2
- package/blocks/Code/styles.css +100 -15
- package/blocks/ColorBar/docs/index.mdx +8 -2
- package/blocks/ColorBar/index.js +223 -68
- package/blocks/ColorBar/samples/basic.d.ts +1 -2
- package/blocks/ColorBar/styles.css +103 -4
- package/blocks/ColorBook/docs/index.mdx +1 -1
- package/blocks/ColorBook/index.js +222 -60
- package/blocks/ColorBook/samples/basic.d.ts +1 -2
- package/blocks/ColorBook/styles.css +166 -6
- package/blocks/Cover/index.js +177 -48
- package/blocks/Cover/samples/basic.d.ts +1 -2
- package/blocks/Cover/styles.css +18 -0
- package/blocks/Exhibit/index.js +205 -50
- package/blocks/Exhibit/samples/basic.d.ts +1 -2
- package/blocks/Exhibit/samples/bleed.d.ts +1 -1
- package/blocks/Exhibit/samples/usage.d.ts +1 -2
- package/blocks/Exhibit/styles.css +66 -3
- package/blocks/Font/index.js +239 -98
- package/blocks/Font/samples/basic.d.ts +1 -1
- package/blocks/Font/samples/timvir/body1.d.ts +1 -1
- package/blocks/Font/samples/timvir/caption.d.ts +1 -1
- package/blocks/Font/samples/timvir/h1.d.ts +1 -1
- package/blocks/Font/samples/timvir/h2.d.ts +1 -1
- package/blocks/Font/samples/timvir/h3.d.ts +1 -1
- package/blocks/Font/samples/timvir/h4.d.ts +1 -1
- package/blocks/Font/styles.css +82 -8
- package/blocks/Grid/docs/index.mdx +4 -4
- package/blocks/Grid/index.js +181 -36
- package/blocks/Grid/samples/basic.d.ts +1 -2
- package/blocks/Grid/styles.css +20 -1
- package/blocks/Icon/docs/index.mdx +13 -13
- package/blocks/Icon/index.js +93 -100
- package/blocks/Icon/internal/Canvas.d.ts +1 -1
- package/blocks/Icon/samples/basic.d.ts +1 -2
- package/blocks/Icon/styles.css +117 -5
- package/blocks/Icon/types.d.ts +3 -2
- package/blocks/Message/docs/index.mdx +5 -8
- package/blocks/Message/index.js +238 -55
- package/blocks/Message/samples/basic.d.ts +1 -1
- package/blocks/Message/styles.css +94 -6
- package/blocks/Swatch/docs/index.mdx +16 -16
- package/blocks/Swatch/index.js +199 -45
- package/blocks/Swatch/samples/basic.d.ts +1 -2
- package/blocks/Swatch/styles.css +82 -4
- package/blocks/Viewport/index.js +360 -237
- package/blocks/Viewport/internal/Caption.d.ts +1 -1
- package/blocks/Viewport/internal/Handle.d.ts +1 -1
- package/blocks/Viewport/internal/Ruler.d.ts +1 -2
- package/blocks/Viewport/samples/basic.d.ts +1 -2
- package/blocks/Viewport/styles.css +259 -14
- package/blocks/WebLink/index.js +217 -62
- package/blocks/WebLink/samples/basic.d.ts +1 -1
- package/blocks/WebLink/styles.css +170 -8
- package/blocks/styles.css +1460 -97
- package/builtins/components.d.ts +2 -2
- package/builtins/index.js +306 -239
- package/builtins/styles.css +267 -14
- package/context/index.d.ts +6 -1
- package/core/components/Commands/Commands.d.ts +2 -0
- package/core/components/Commands/internal/Action.d.ts +1 -1
- package/core/components/Commands/internal/Dialog.d.ts +1 -2
- package/core/components/Commands/internal/index.d.ts +0 -1
- package/core/components/Footer/samples/basic.d.ts +1 -1
- package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
- package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
- package/core/components/Page/Page.d.ts +12 -3
- package/core/components/Page/docs/index.mdx +44 -11
- package/core/components/Page/internal/Section.d.ts +1 -2
- package/core/components/Page/internal/Sidebar.d.ts +1 -1
- package/core/components/Page/internal/SidebarItem.d.ts +1 -2
- package/core/components/Page/internal/index.d.ts +0 -1
- package/core/components/Page/samples/basic.d.ts +1 -2
- package/core/components/Page/samples/layout.d.ts +1 -2
- package/core/index.d.ts +191 -2
- package/core/index.js +674 -449
- package/core/layout.d.ts +40 -0
- package/core/styles.css +857 -88
- package/core/theme/detector.js +1 -1
- package/global.css +79 -0
- package/internal/cx.d.ts +1 -0
- package/knip.config.d.ts +5 -0
- package/package.json +1 -2
- package/search/Search/samples/basic.d.ts +1 -2
- package/search/index.js +2 -208
- package/styles.css +2670 -222
- package/blocks/Code/theme.d.ts +0 -2
- package/bus/styles.css +0 -1
- package/context/styles.css +0 -1
- package/core/theme/index.d.ts +0 -1
- package/hooks/styles.css +0 -1
- package/search/Search/internal/Dialog.d.ts +0 -20
- package/search/Search/internal/index.d.ts +0 -1
- package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
- package/search/SearchBoxInput/docs/api.mdx +0 -76
- package/search/SearchBoxInput/docs/index.mdx +0 -6
- package/search/SearchBoxInput/index.d.ts +0 -1
- package/search/SearchBoxInput/samples/basic.d.ts +0 -2
- package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
- package/search/SearchBoxListItem/docs/api.mdx +0 -76
- package/search/SearchBoxListItem/docs/index.mdx +0 -30
- package/search/SearchBoxListItem/index.d.ts +0 -1
- package/search/SearchBoxListItem/samples/basic.d.ts +0 -2
- package/search/styles.css +0 -16
package/blocks/Font/index.js
CHANGED
|
@@ -1,57 +1,181 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
'use client';
|
|
2
|
+
import { useArticleComponents, layoutStyles } from 'timvir/core';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import * as Icons from 'react-feather';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
function cx(...args) {
|
|
8
|
+
let str = "";
|
|
9
|
+
for (let i = 0; i < args.length; i++) {
|
|
10
|
+
const arg = args[i];
|
|
11
|
+
if (typeof arg === "string") {
|
|
12
|
+
str += (str && " ") + arg;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return str;
|
|
16
|
+
}
|
|
7
17
|
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
individualClassNames.forEach((className) => {
|
|
16
|
-
if (className.startsWith("atm_")) {
|
|
17
|
-
const [, keyHash] = className.split("_");
|
|
18
|
-
atomicClasses[keyHash] = className;
|
|
19
|
-
} else {
|
|
20
|
-
nonAtomicClasses.push(className);
|
|
21
|
-
}
|
|
18
|
+
var styleq = {};
|
|
19
|
+
var hasRequiredStyleq;
|
|
20
|
+
function requireStyleq() {
|
|
21
|
+
if (hasRequiredStyleq) return styleq;
|
|
22
|
+
hasRequiredStyleq = 1;
|
|
23
|
+
Object.defineProperty(styleq, "__esModule", {
|
|
24
|
+
value: true
|
|
22
25
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
styleq.styleq = void 0;
|
|
27
|
+
var cache = new WeakMap();
|
|
28
|
+
var compiledKey = '$$css';
|
|
29
|
+
function createStyleq(options) {
|
|
30
|
+
var disableCache;
|
|
31
|
+
var disableMix;
|
|
32
|
+
var transform;
|
|
33
|
+
if (options != null) {
|
|
34
|
+
disableCache = options.disableCache === true;
|
|
35
|
+
disableMix = options.disableMix === true;
|
|
36
|
+
transform = options.transform;
|
|
37
|
+
}
|
|
38
|
+
return function styleq() {
|
|
39
|
+
var definedProperties = [];
|
|
40
|
+
var className = '';
|
|
41
|
+
var inlineStyle = null;
|
|
42
|
+
var debugString = '';
|
|
43
|
+
var nextCache = disableCache ? null : cache;
|
|
44
|
+
var styles = new Array(arguments.length);
|
|
45
|
+
for(var i = 0; i < arguments.length; i++){
|
|
46
|
+
styles[i] = arguments[i];
|
|
47
|
+
}
|
|
48
|
+
while(styles.length > 0){
|
|
49
|
+
var possibleStyle = styles.pop();
|
|
50
|
+
if (possibleStyle == null || possibleStyle === false) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (Array.isArray(possibleStyle)) {
|
|
54
|
+
for(var _i = 0; _i < possibleStyle.length; _i++){
|
|
55
|
+
styles.push(possibleStyle[_i]);
|
|
56
|
+
}
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
var style = transform != null ? transform(possibleStyle) : possibleStyle;
|
|
60
|
+
if (style.$$css != null) {
|
|
61
|
+
var classNameChunk = '';
|
|
62
|
+
if (nextCache != null && nextCache.has(style)) {
|
|
63
|
+
var cacheEntry = nextCache.get(style);
|
|
64
|
+
if (cacheEntry != null) {
|
|
65
|
+
classNameChunk = cacheEntry[0];
|
|
66
|
+
debugString = cacheEntry[2];
|
|
67
|
+
definedProperties.push.apply(definedProperties, cacheEntry[1]);
|
|
68
|
+
nextCache = cacheEntry[3];
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
var definedPropertiesChunk = [];
|
|
72
|
+
for(var prop in style){
|
|
73
|
+
var value = style[prop];
|
|
74
|
+
if (prop === compiledKey) {
|
|
75
|
+
var compiledKeyValue = style[prop];
|
|
76
|
+
if (compiledKeyValue !== true) {
|
|
77
|
+
debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
|
|
78
|
+
}
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
if (typeof value === 'string' || value === null) {
|
|
82
|
+
if (!definedProperties.includes(prop)) {
|
|
83
|
+
definedProperties.push(prop);
|
|
84
|
+
if (nextCache != null) {
|
|
85
|
+
definedPropertiesChunk.push(prop);
|
|
86
|
+
}
|
|
87
|
+
if (typeof value === 'string') {
|
|
88
|
+
classNameChunk += classNameChunk ? ' ' + value : value;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
} else {
|
|
92
|
+
console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if (nextCache != null) {
|
|
96
|
+
var weakMap = new WeakMap();
|
|
97
|
+
nextCache.set(style, [
|
|
98
|
+
classNameChunk,
|
|
99
|
+
definedPropertiesChunk,
|
|
100
|
+
debugString,
|
|
101
|
+
weakMap
|
|
102
|
+
]);
|
|
103
|
+
nextCache = weakMap;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
if (classNameChunk) {
|
|
107
|
+
className = className ? classNameChunk + ' ' + className : classNameChunk;
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
if (disableMix) {
|
|
111
|
+
if (inlineStyle == null) {
|
|
112
|
+
inlineStyle = {};
|
|
113
|
+
}
|
|
114
|
+
inlineStyle = Object.assign({}, style, inlineStyle);
|
|
115
|
+
} else {
|
|
116
|
+
var subStyle = null;
|
|
117
|
+
for(var _prop in style){
|
|
118
|
+
var _value = style[_prop];
|
|
119
|
+
if (_value !== undefined) {
|
|
120
|
+
if (!definedProperties.includes(_prop)) {
|
|
121
|
+
if (_value != null) {
|
|
122
|
+
if (inlineStyle == null) {
|
|
123
|
+
inlineStyle = {};
|
|
124
|
+
}
|
|
125
|
+
if (subStyle == null) {
|
|
126
|
+
subStyle = {};
|
|
127
|
+
}
|
|
128
|
+
subStyle[_prop] = _value;
|
|
129
|
+
}
|
|
130
|
+
definedProperties.push(_prop);
|
|
131
|
+
nextCache = null;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (subStyle != null) {
|
|
136
|
+
inlineStyle = Object.assign(subStyle, inlineStyle);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
var styleProps = [
|
|
142
|
+
className,
|
|
143
|
+
inlineStyle,
|
|
144
|
+
debugString
|
|
145
|
+
];
|
|
146
|
+
return styleProps;
|
|
147
|
+
};
|
|
28
148
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
var
|
|
149
|
+
var styleq$1 = styleq.styleq = createStyleq();
|
|
150
|
+
styleq$1.factory = createStyleq;
|
|
151
|
+
return styleq;
|
|
152
|
+
}
|
|
153
|
+
var styleqExports = requireStyleq();
|
|
154
|
+
function props(...styles) {
|
|
155
|
+
const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
|
|
156
|
+
const result = {};
|
|
157
|
+
if (className != null && className !== '') {
|
|
158
|
+
result.className = className;
|
|
159
|
+
}
|
|
160
|
+
if (style != null && Object.keys(style).length > 0) {
|
|
161
|
+
result.style = style;
|
|
162
|
+
}
|
|
163
|
+
if (dataStyleSrc != null && dataStyleSrc !== '') {
|
|
164
|
+
result['data-style-src'] = dataStyleSrc;
|
|
165
|
+
}
|
|
166
|
+
return result;
|
|
167
|
+
}
|
|
34
168
|
|
|
35
|
-
/**
|
|
36
|
-
* The underlying DOM element which is rendered by this component.
|
|
37
|
-
*/
|
|
38
169
|
const Root = "div";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
function Font(props, ref) {
|
|
43
|
-
const components = {
|
|
44
|
-
...builtins,
|
|
45
|
-
...useMDXComponents()
|
|
46
|
-
};
|
|
170
|
+
function Font(props$1, ref) {
|
|
171
|
+
const components = useArticleComponents();
|
|
47
172
|
const {
|
|
48
173
|
name,
|
|
49
174
|
font,
|
|
50
175
|
info,
|
|
51
|
-
className,
|
|
52
176
|
children,
|
|
53
177
|
...rest
|
|
54
|
-
} = props;
|
|
178
|
+
} = props$1;
|
|
55
179
|
const [contentRef, setContentRef] = React.useState(null);
|
|
56
180
|
const [fontSizeRef, setFontSizeRef] = React.useState(null);
|
|
57
181
|
const [infoRef, setInfoRef] = React.useState(null);
|
|
@@ -60,8 +184,8 @@ function Font(props, ref) {
|
|
|
60
184
|
const computedStyle = window.getComputedStyle(contentRef);
|
|
61
185
|
const intervalId = setInterval(() => {
|
|
62
186
|
if (fontSizeRef) {
|
|
63
|
-
const fontSize = parseInt(computedStyle.fontSize, 10);
|
|
64
|
-
const lineHeight = parseInt(computedStyle.lineHeight, 10);
|
|
187
|
+
const fontSize = Number.parseInt(computedStyle.fontSize, 10);
|
|
188
|
+
const lineHeight = Number.parseInt(computedStyle.lineHeight, 10);
|
|
65
189
|
const innerText = `${name} – ${Math.round(fontSize)}px / ${Math.round(lineHeight / fontSize * 1000) / 1000}`;
|
|
66
190
|
if (fontSizeRef.innerText !== innerText) {
|
|
67
191
|
fontSizeRef.innerText = innerText;
|
|
@@ -72,64 +196,81 @@ function Font(props, ref) {
|
|
|
72
196
|
clearInterval(intervalId);
|
|
73
197
|
};
|
|
74
198
|
}
|
|
75
|
-
}, [name, contentRef]);
|
|
76
|
-
|
|
199
|
+
}, [name, contentRef, fontSizeRef]);
|
|
200
|
+
const rootStyleProps = props(layoutStyles.block);
|
|
201
|
+
const fontStyleProps = {
|
|
202
|
+
className: "timvir-s-1a2a7pz timvir-s-1hx0egp timvir-s-126k92a timvir-s-1mzt3pk"
|
|
203
|
+
};
|
|
204
|
+
return /*#__PURE__*/jsxs(Root, {
|
|
77
205
|
ref: ref,
|
|
78
|
-
|
|
79
|
-
...
|
|
80
|
-
|
|
81
|
-
className: classes.meta
|
|
82
|
-
}, /*#__PURE__*/React.createElement(components.h3, {
|
|
83
|
-
className: "fc7ivp5"
|
|
84
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
85
|
-
ref: setFontSizeRef
|
|
86
|
-
}, name)), info && /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: "de58upx",
|
|
88
|
-
onClick: () => {
|
|
89
|
-
if (infoRef && contentRef) {
|
|
90
|
-
// const contentParent = contentRef.parentElement;
|
|
91
|
-
const infoParent = infoRef.parentElement;
|
|
92
|
-
if (infoParent.style.height === "0px") {
|
|
93
|
-
infoParent.style.height = `${infoRef.getBoundingClientRect().height}px`;
|
|
94
|
-
infoParent.style.opacity = "1";
|
|
95
|
-
|
|
96
|
-
// contentParent.style.height = "0px";
|
|
97
|
-
// contentParent.style.opacity = "0";
|
|
98
|
-
} else {
|
|
99
|
-
infoParent.style.height = "0px";
|
|
100
|
-
infoParent.style.opacity = "0";
|
|
101
|
-
|
|
102
|
-
// contentParent.style.height = window.getComputedStyle(contentRef).height;
|
|
103
|
-
// contentParent.style.opacity = "1";
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}, /*#__PURE__*/React.createElement(Icons.Info, {
|
|
108
|
-
size: "1.1em"
|
|
109
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
110
|
-
className: "d10949ho"
|
|
111
|
-
}, info && /*#__PURE__*/React.createElement("div", {
|
|
112
|
-
className: "d1o2du3z",
|
|
206
|
+
...rest,
|
|
207
|
+
...rootStyleProps,
|
|
208
|
+
className: cx(rest.className, rootStyleProps.className),
|
|
113
209
|
style: {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
210
|
+
...rootStyleProps.style,
|
|
211
|
+
...rest.style
|
|
212
|
+
},
|
|
213
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
214
|
+
className: "timvir-s-78zum5 timvir-s-1pha0wt timvir-s-1nrrp6k timvir-s-117nqv4 timvir-s-1bsk9n",
|
|
215
|
+
children: [/*#__PURE__*/jsx(components.h3, {
|
|
216
|
+
className: "timvir-s-a519c1",
|
|
217
|
+
children: /*#__PURE__*/jsx("span", {
|
|
218
|
+
ref: setFontSizeRef,
|
|
219
|
+
children: name
|
|
220
|
+
})
|
|
221
|
+
}), info && /*#__PURE__*/jsx("div", {
|
|
222
|
+
className: "timvir-s-1ypdohk timvir-s-gmrl4 timvir-s-1o7uuvo",
|
|
223
|
+
onClick: () => {
|
|
224
|
+
if (infoRef && contentRef) {
|
|
225
|
+
const infoParent = infoRef.parentElement;
|
|
226
|
+
if (infoParent.style.height === "0px") {
|
|
227
|
+
infoParent.style.height = `${infoRef.getBoundingClientRect().height}px`;
|
|
228
|
+
infoParent.style.opacity = "1";
|
|
229
|
+
} else {
|
|
230
|
+
infoParent.style.height = "0px";
|
|
231
|
+
infoParent.style.opacity = "0";
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
children: /*#__PURE__*/jsx(Icons.Info, {
|
|
236
|
+
size: "1.1em",
|
|
237
|
+
className: "timvir-s-1n2onr6 timvir-s-s7f9wi"
|
|
238
|
+
})
|
|
239
|
+
})]
|
|
240
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
241
|
+
className: "timvir-s-78zum5 timvir-s-dt5ytf",
|
|
242
|
+
children: [info && /*#__PURE__*/jsx("div", {
|
|
243
|
+
className: "timvir-s-b3r6kr timvir-s-104cjix",
|
|
244
|
+
style: {
|
|
245
|
+
height: 0,
|
|
246
|
+
opacity: 0
|
|
247
|
+
},
|
|
248
|
+
children: /*#__PURE__*/jsx("div", {
|
|
249
|
+
ref: setInfoRef,
|
|
250
|
+
className: "timvir-s-1k5rvim",
|
|
251
|
+
children: info
|
|
252
|
+
})
|
|
253
|
+
}), /*#__PURE__*/jsx("div", {
|
|
254
|
+
className: "timvir-s-b3r6kr timvir-s-104cjix",
|
|
255
|
+
style: {
|
|
256
|
+
height: "auto",
|
|
257
|
+
opacity: 1
|
|
258
|
+
},
|
|
259
|
+
children: /*#__PURE__*/jsx("div", {
|
|
260
|
+
ref: setContentRef,
|
|
261
|
+
contentEditable: true,
|
|
262
|
+
spellCheck: "false",
|
|
263
|
+
...fontStyleProps,
|
|
264
|
+
className: cx(fontStyleProps.className, font.className),
|
|
265
|
+
style: {
|
|
266
|
+
...fontStyleProps.style,
|
|
267
|
+
...font.style
|
|
268
|
+
},
|
|
269
|
+
children: children || "The quick brown fox jumps over the lazy dog"
|
|
270
|
+
})
|
|
271
|
+
})]
|
|
272
|
+
})]
|
|
273
|
+
});
|
|
133
274
|
}
|
|
134
275
|
var Font$1 = /*#__PURE__*/React.forwardRef(Font);
|
|
135
276
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "../..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props):
|
|
4
|
+
export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
package/blocks/Font/styles.css
CHANGED
|
@@ -1,9 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.d1o2du3z{overflow:hidden;-webkit-transition:height 0.2s,opacity 0.2s 0.1s;transition:height 0.2s,opacity 0.2s 0.1s;}
|
|
6
|
-
.d1o9zhgl{padding:0 0 16px;}
|
|
7
|
-
.ddlplux{overflow:hidden;-webkit-transition:height 0.2s,opacity 0.2s 0.1s;transition:height 0.2s,opacity 0.2s 0.1s;}
|
|
8
|
-
.dw285p4{outline:none;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;white-space:pre-wrap;overflow-wrap:break-word;}
|
|
1
|
+
@layer priority1 {
|
|
2
|
+
.timvir-s-a519c1 {
|
|
3
|
+
margin: 0 auto 0 0;
|
|
4
|
+
}
|
|
9
5
|
|
|
6
|
+
.timvir-s-1k5rvim {
|
|
7
|
+
padding: 0 0 16px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@layer priority2 {
|
|
12
|
+
.timvir-s-1a2a7pz {
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.timvir-s-b3r6kr {
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.timvir-s-1bsk9n {
|
|
21
|
+
transition: all .2s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.timvir-s-104cjix {
|
|
25
|
+
transition: height .2s, opacity .2s .1s;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@layer priority3 {
|
|
30
|
+
.timvir-s-1pha0wt {
|
|
31
|
+
align-items: baseline;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.timvir-s-1ypdohk {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.timvir-s-78zum5 {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.timvir-s-dt5ytf {
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.timvir-s-1nrrp6k {
|
|
47
|
+
font-size: .9rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.timvir-s-117nqv4 {
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.timvir-s-1mzt3pk {
|
|
55
|
+
overflow-wrap: break-word;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.timvir-s-1n2onr6 {
|
|
59
|
+
position: relative;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.timvir-s-1hx0egp {
|
|
63
|
+
user-select: text;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.timvir-s-126k92a {
|
|
67
|
+
white-space: pre-wrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.timvir-s-gmrl4:hover {
|
|
71
|
+
color: var(--c-p-4);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.timvir-s-1o7uuvo:hover {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@layer priority4 {
|
|
80
|
+
.timvir-s-s7f9wi {
|
|
81
|
+
top: 2px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -46,16 +46,16 @@ import { fullWidth } from "timvir/core";
|
|
|
46
46
|
Combine `<Grid>` with the `<Exhibit>` component.
|
|
47
47
|
|
|
48
48
|
<Grid>
|
|
49
|
-
<Exhibit>
|
|
49
|
+
<Exhibit style={{ margin: 0, gridColumn: "initial" }}>
|
|
50
50
|
<div style={{ height: 100, background: "rgba(0,0,0,.2)", display: "flex", alignItems: "center", justifyContent: "center" }}>ITEM</div>
|
|
51
51
|
</Exhibit>
|
|
52
|
-
<Exhibit>
|
|
52
|
+
<Exhibit style={{ margin: 0, gridColumn: "initial" }}>
|
|
53
53
|
<div style={{ height: 100, background: "rgba(0,0,0,.2)", display: "flex", alignItems: "center", justifyContent: "center" }}>ITEM</div>
|
|
54
54
|
</Exhibit>
|
|
55
|
-
<Exhibit>
|
|
55
|
+
<Exhibit style={{ margin: 0, gridColumn: "initial" }}>
|
|
56
56
|
<div style={{ height: 100, background: "rgba(0,0,0,.2)", display: "flex", alignItems: "center", justifyContent: "center" }}>ITEM</div>
|
|
57
57
|
</Exhibit>
|
|
58
|
-
<Exhibit>
|
|
58
|
+
<Exhibit style={{ margin: 0, gridColumn: "initial" }}>
|
|
59
59
|
<div style={{ height: 100, background: "rgba(0,0,0,.2)", display: "flex", alignItems: "center", justifyContent: "center" }}>ITEM</div>
|
|
60
60
|
</Exhibit>
|
|
61
61
|
</Grid>
|