timvir 0.2.39 → 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.
Files changed (73) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +193 -48
  4. package/blocks/Arbitrary/styles.css +166 -6
  5. package/blocks/Code/Code.d.ts +0 -6
  6. package/blocks/Code/docs/index.mdx +0 -11
  7. package/blocks/Code/index.js +205 -112
  8. package/blocks/Code/styles.css +100 -15
  9. package/blocks/ColorBar/docs/index.mdx +8 -2
  10. package/blocks/ColorBar/index.js +198 -47
  11. package/blocks/ColorBar/styles.css +103 -4
  12. package/blocks/ColorBook/docs/index.mdx +1 -1
  13. package/blocks/ColorBook/index.js +198 -39
  14. package/blocks/ColorBook/styles.css +166 -6
  15. package/blocks/Cover/index.js +165 -36
  16. package/blocks/Cover/styles.css +18 -0
  17. package/blocks/Exhibit/index.js +192 -41
  18. package/blocks/Exhibit/styles.css +66 -3
  19. package/blocks/Font/index.js +188 -58
  20. package/blocks/Font/styles.css +82 -8
  21. package/blocks/Grid/docs/index.mdx +4 -4
  22. package/blocks/Grid/index.js +176 -33
  23. package/blocks/Grid/styles.css +20 -1
  24. package/blocks/Icon/docs/index.mdx +13 -13
  25. package/blocks/Icon/index.js +25 -43
  26. package/blocks/Icon/styles.css +117 -5
  27. package/blocks/Message/docs/index.mdx +5 -8
  28. package/blocks/Message/index.js +233 -54
  29. package/blocks/Message/styles.css +94 -6
  30. package/blocks/Swatch/docs/index.mdx +16 -16
  31. package/blocks/Swatch/index.js +180 -35
  32. package/blocks/Swatch/styles.css +82 -4
  33. package/blocks/Viewport/index.js +198 -91
  34. package/blocks/Viewport/styles.css +259 -14
  35. package/blocks/WebLink/index.js +192 -48
  36. package/blocks/WebLink/styles.css +170 -8
  37. package/blocks/styles.css +1460 -97
  38. package/builtins/components.d.ts +2 -2
  39. package/builtins/index.d.ts +0 -1
  40. package/builtins/index.js +300 -243
  41. package/builtins/styles.css +265 -25
  42. package/context/index.d.ts +6 -1
  43. package/core/components/Commands/Commands.d.ts +5 -1
  44. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  45. package/core/components/Page/Page.d.ts +12 -3
  46. package/core/components/Page/docs/index.mdx +44 -11
  47. package/core/index.d.ts +191 -2
  48. package/core/index.js +415 -256
  49. package/core/layout.d.ts +41 -0
  50. package/core/styles.css +857 -88
  51. package/global.css +79 -0
  52. package/internal/cx.d.ts +1 -0
  53. package/package.json +1 -2
  54. package/search/index.js +2 -223
  55. package/styles.css +2670 -235
  56. package/blocks/Code/theme.d.ts +0 -2
  57. package/bus/styles.css +0 -1
  58. package/context/styles.css +0 -1
  59. package/core/theme/index.d.ts +0 -1
  60. package/hooks/styles.css +0 -1
  61. package/search/Search/internal/Dialog.d.ts +0 -20
  62. package/search/Search/internal/index.d.ts +0 -1
  63. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  64. package/search/SearchBoxInput/docs/api.mdx +0 -76
  65. package/search/SearchBoxInput/docs/index.mdx +0 -6
  66. package/search/SearchBoxInput/index.d.ts +0 -1
  67. package/search/SearchBoxInput/samples/basic.d.ts +0 -1
  68. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  69. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  70. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  71. package/search/SearchBoxListItem/index.d.ts +0 -1
  72. package/search/SearchBoxListItem/samples/basic.d.ts +0 -1
  73. package/search/styles.css +0 -16
@@ -1,7 +1,167 @@
1
- .rmv2wrl{display:-ms-grid;display:grid;-ms-grid-gap:16px;grid-gap:16px;-ms-grid-auto-columns:1fr;grid-auto-columns:1fr;-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;width:100%;}
2
- .d1l94wnr{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}.d1l94wnr:first-child{border-radius:3px 3px 0 0;}.d1l94wnr:last-child{border-radius:0 0 3px 3px;}
3
- .d1uopbb{text-align:center;font-size:0.75rem;color:var(--timvir-secondary-text-color);margin-top:0.8em;line-height:1;}
4
- .d1vwzhoa{color:var(--timvir-text-color);}
5
- .c1xqhu04{position:relative;cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:200px;}.c1xqhu04::before{position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;border-radius:4px;box-shadow:0 0 0 0 rgba(19, 124, 189, 0);content:"";-webkit-transition:all 0.16s cubic-bezier(0.4, 1, 0.75, 0.9);transition:all 0.16s cubic-bezier(0.4, 1, 0.75, 0.9);}.c1xqhu04:hover::before{box-shadow:0 0 0 2px #00000040;opacity:1;}
6
- .a1y0tcvx:hover::before,.a1y0tcvx::before{box-shadow:0 0 0 2px var(--c-p-5);opacity:1;}
1
+ @layer priority1 {
2
+ .timvir-s-1p3d3bo {
3
+ grid-gap: 16px;
4
+ }
5
+ }
7
6
 
7
+ @layer priority2 {
8
+ .timvir-s-7a106z {
9
+ align-items: start;
10
+ }
11
+
12
+ .timvir-s-vgvpxu {
13
+ color: var(--timvir-secondary-text-color);
14
+ }
15
+
16
+ .timvir-s-1cdhzux {
17
+ color: var(--timvir-text-color);
18
+ }
19
+
20
+ .timvir-s-1ypdohk {
21
+ cursor: pointer;
22
+ }
23
+
24
+ .timvir-s-78zum5 {
25
+ display: flex;
26
+ }
27
+
28
+ .timvir-s-rvj5dj {
29
+ display: grid;
30
+ }
31
+
32
+ .timvir-s-dt5ytf {
33
+ flex-direction: column;
34
+ }
35
+
36
+ .timvir-s-1iyjqo2 {
37
+ flex-grow: 1;
38
+ }
39
+
40
+ .timvir-s-boafo0 {
41
+ font-size: .75rem;
42
+ }
43
+
44
+ .timvir-s-u6a5m6 {
45
+ grid-auto-columns: 1fr;
46
+ }
47
+
48
+ .timvir-s-o5v014 {
49
+ line-height: 1;
50
+ }
51
+
52
+ .timvir-s-1n2onr6 {
53
+ position: relative;
54
+ }
55
+
56
+ .timvir-s-2b8uid {
57
+ text-align: center;
58
+ }
59
+
60
+ .timvir-s-115iamj:hover:before {
61
+ box-shadow: 0 0 0 2px #00000040;
62
+ }
63
+
64
+ .timvir-s-ach7vw:hover:before {
65
+ box-shadow: 0 0 0 2px var(--c-p-5);
66
+ }
67
+
68
+ .timvir-s-s2hnm7:hover:before {
69
+ opacity: 1;
70
+ }
71
+ }
72
+
73
+ @layer priority3 {
74
+ .timvir-s-frllxf {
75
+ border-bottom-left-radius: 0;
76
+ }
77
+
78
+ .timvir-s-1v8xtx2 {
79
+ border-bottom-left-radius: 3px;
80
+ }
81
+
82
+ .timvir-s-jppbhk {
83
+ border-bottom-right-radius: 0;
84
+ }
85
+
86
+ .timvir-s-uvn51i {
87
+ border-bottom-right-radius: 3px;
88
+ }
89
+
90
+ .timvir-s-1ia1hqs {
91
+ border-top-left-radius: 0;
92
+ }
93
+
94
+ .timvir-s-1nrfd8m {
95
+ border-top-left-radius: 3px;
96
+ }
97
+
98
+ .timvir-s-1a2w583 {
99
+ border-top-right-radius: 0;
100
+ }
101
+
102
+ .timvir-s-16gx4na {
103
+ border-top-right-radius: 3px;
104
+ }
105
+
106
+ .timvir-s-1m3v4wt {
107
+ height: 200px;
108
+ }
109
+
110
+ .timvir-s-1nmq0fv {
111
+ margin-top: .8em;
112
+ }
113
+
114
+ .timvir-s-h8yej3 {
115
+ width: 100%;
116
+ }
117
+ }
118
+
119
+ @layer priority4 {
120
+ .timvir-s-b52w3a:before {
121
+ border-radius: 4px;
122
+ }
123
+
124
+ .timvir-s-k53niv:before {
125
+ transition: all .16s cubic-bezier(.4, 1, .75, .9);
126
+ }
127
+ }
128
+
129
+ @layer priority5 {
130
+ .timvir-s-ktd1bz:before {
131
+ box-shadow: 0 0 #137cbd00;
132
+ }
133
+
134
+ .timvir-s-su9jc6:before {
135
+ box-shadow: 0 0 0 2px var(--c-p-5);
136
+ }
137
+
138
+ .timvir-s-1cpjm7i:before {
139
+ content: "";
140
+ }
141
+
142
+ .timvir-s-fbg1o9:before {
143
+ opacity: 1;
144
+ }
145
+
146
+ .timvir-s-1hmns74:before {
147
+ position: absolute;
148
+ }
149
+ }
150
+
151
+ @layer priority6 {
152
+ .timvir-s-e80sof:before {
153
+ bottom: -2px;
154
+ }
155
+
156
+ .timvir-s-abwq6t:before {
157
+ left: -2px;
158
+ }
159
+
160
+ .timvir-s-1ydowbf:before {
161
+ right: -2px;
162
+ }
163
+
164
+ .timvir-s-51xajf:before {
165
+ top: -2px;
166
+ }
167
+ }
@@ -1,61 +1,190 @@
1
1
  import * as React from 'react';
2
- import { fullWidth } from 'timvir/core';
2
+ import { layoutStyles } from 'timvir/core';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
 
5
- // src/css.ts
5
+ function cx(...args) {
6
+ let str = "";
7
+ for (let i = 0; i < args.length; i++) {
8
+ const arg = args[i];
9
+ if (typeof arg === "string") {
10
+ str += (str && " ") + arg;
11
+ }
12
+ }
13
+ return str;
14
+ }
6
15
 
7
- // src/cx.ts
8
- var cx = function cx2() {
9
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
10
- const atomicClasses = {};
11
- const nonAtomicClasses = [];
12
- presentClassNames.forEach((arg) => {
13
- const individualClassNames = arg ? arg.split(" ") : [];
14
- individualClassNames.forEach((className) => {
15
- if (className.startsWith("atm_")) {
16
- const [, keyHash] = className.split("_");
17
- atomicClasses[keyHash] = className;
18
- } else {
19
- nonAtomicClasses.push(className);
20
- }
16
+ var styleq = {};
17
+ var hasRequiredStyleq;
18
+ function requireStyleq() {
19
+ if (hasRequiredStyleq) return styleq;
20
+ hasRequiredStyleq = 1;
21
+ Object.defineProperty(styleq, "__esModule", {
22
+ value: true
21
23
  });
22
- });
23
- const result = [];
24
- for (const keyHash in atomicClasses) {
25
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
26
- result.push(atomicClasses[keyHash]);
24
+ styleq.styleq = void 0;
25
+ var cache = new WeakMap();
26
+ var compiledKey = '$$css';
27
+ function createStyleq(options) {
28
+ var disableCache;
29
+ var disableMix;
30
+ var transform;
31
+ if (options != null) {
32
+ disableCache = options.disableCache === true;
33
+ disableMix = options.disableMix === true;
34
+ transform = options.transform;
35
+ }
36
+ return function styleq() {
37
+ var definedProperties = [];
38
+ var className = '';
39
+ var inlineStyle = null;
40
+ var debugString = '';
41
+ var nextCache = disableCache ? null : cache;
42
+ var styles = new Array(arguments.length);
43
+ for(var i = 0; i < arguments.length; i++){
44
+ styles[i] = arguments[i];
45
+ }
46
+ while(styles.length > 0){
47
+ var possibleStyle = styles.pop();
48
+ if (possibleStyle == null || possibleStyle === false) {
49
+ continue;
50
+ }
51
+ if (Array.isArray(possibleStyle)) {
52
+ for(var _i = 0; _i < possibleStyle.length; _i++){
53
+ styles.push(possibleStyle[_i]);
54
+ }
55
+ continue;
56
+ }
57
+ var style = transform != null ? transform(possibleStyle) : possibleStyle;
58
+ if (style.$$css != null) {
59
+ var classNameChunk = '';
60
+ if (nextCache != null && nextCache.has(style)) {
61
+ var cacheEntry = nextCache.get(style);
62
+ if (cacheEntry != null) {
63
+ classNameChunk = cacheEntry[0];
64
+ debugString = cacheEntry[2];
65
+ definedProperties.push.apply(definedProperties, cacheEntry[1]);
66
+ nextCache = cacheEntry[3];
67
+ }
68
+ } else {
69
+ var definedPropertiesChunk = [];
70
+ for(var prop in style){
71
+ var value = style[prop];
72
+ if (prop === compiledKey) {
73
+ var compiledKeyValue = style[prop];
74
+ if (compiledKeyValue !== true) {
75
+ debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
76
+ }
77
+ continue;
78
+ }
79
+ if (typeof value === 'string' || value === null) {
80
+ if (!definedProperties.includes(prop)) {
81
+ definedProperties.push(prop);
82
+ if (nextCache != null) {
83
+ definedPropertiesChunk.push(prop);
84
+ }
85
+ if (typeof value === 'string') {
86
+ classNameChunk += classNameChunk ? ' ' + value : value;
87
+ }
88
+ }
89
+ } else {
90
+ console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
91
+ }
92
+ }
93
+ if (nextCache != null) {
94
+ var weakMap = new WeakMap();
95
+ nextCache.set(style, [
96
+ classNameChunk,
97
+ definedPropertiesChunk,
98
+ debugString,
99
+ weakMap
100
+ ]);
101
+ nextCache = weakMap;
102
+ }
103
+ }
104
+ if (classNameChunk) {
105
+ className = className ? classNameChunk + ' ' + className : classNameChunk;
106
+ }
107
+ } else {
108
+ if (disableMix) {
109
+ if (inlineStyle == null) {
110
+ inlineStyle = {};
111
+ }
112
+ inlineStyle = Object.assign({}, style, inlineStyle);
113
+ } else {
114
+ var subStyle = null;
115
+ for(var _prop in style){
116
+ var _value = style[_prop];
117
+ if (_value !== undefined) {
118
+ if (!definedProperties.includes(_prop)) {
119
+ if (_value != null) {
120
+ if (inlineStyle == null) {
121
+ inlineStyle = {};
122
+ }
123
+ if (subStyle == null) {
124
+ subStyle = {};
125
+ }
126
+ subStyle[_prop] = _value;
127
+ }
128
+ definedProperties.push(_prop);
129
+ nextCache = null;
130
+ }
131
+ }
132
+ }
133
+ if (subStyle != null) {
134
+ inlineStyle = Object.assign(subStyle, inlineStyle);
135
+ }
136
+ }
137
+ }
138
+ }
139
+ var styleProps = [
140
+ className,
141
+ inlineStyle,
142
+ debugString
143
+ ];
144
+ return styleProps;
145
+ };
27
146
  }
28
- }
29
- result.push(...nonAtomicClasses);
30
- return result.join(" ");
31
- };
32
- var cx_default = cx;
147
+ var styleq$1 = styleq.styleq = createStyleq();
148
+ styleq$1.factory = createStyleq;
149
+ return styleq;
150
+ }
151
+ var styleqExports = requireStyleq();
152
+ function props(...styles) {
153
+ const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
154
+ const result = {};
155
+ if (className != null && className !== '') {
156
+ result.className = className;
157
+ }
158
+ if (style != null && Object.keys(style).length > 0) {
159
+ result.style = style;
160
+ }
161
+ if (dataStyleSrc != null && dataStyleSrc !== '') {
162
+ result['data-style-src'] = dataStyleSrc;
163
+ }
164
+ return result;
165
+ }
33
166
 
34
167
  const Root = "div";
35
- function Cover(props, ref) {
168
+ function Cover(props$1, ref) {
36
169
  const {
37
170
  metadata,
38
171
  img,
39
172
  sources,
40
- className,
41
173
  ...rest
42
- } = props;
174
+ } = props$1;
175
+ const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth);
43
176
  return /*#__PURE__*/jsx(Root, {
44
177
  ref: ref,
45
- className: cx_default(className, fullWidth),
46
178
  ...rest,
179
+ ...rootStyleProps,
180
+ className: cx(rest.className, rootStyleProps.className),
47
181
  children: /*#__PURE__*/jsxs("picture", {
48
182
  children: [sources.map((p, i) => /*#__PURE__*/jsx("source", {
49
183
  ...p
50
184
  }, i)), /*#__PURE__*/jsx("img", {
51
185
  ...metadata,
52
186
  ...img,
53
- style: {
54
- display: "block",
55
- maxWidth: "100%",
56
- height: "35vh",
57
- objectFit: "cover"
58
- }
187
+ className: "timvir-s-1lliihq timvir-s-193iq5w timvir-s-5i6pxz timvir-s-l1xv1r"
59
188
  })]
60
189
  })
61
190
  });
@@ -1 +1,19 @@
1
+ @layer priority1 {
2
+ .timvir-s-1lliihq {
3
+ display: block;
4
+ }
1
5
 
6
+ .timvir-s-l1xv1r {
7
+ object-fit: cover;
8
+ }
9
+ }
10
+
11
+ @layer priority2 {
12
+ .timvir-s-5i6pxz {
13
+ height: 35vh;
14
+ }
15
+
16
+ .timvir-s-193iq5w {
17
+ max-width: 100%;
18
+ }
19
+ }
@@ -1,43 +1,173 @@
1
1
  'use client';
2
- import { useBlock } from 'timvir/core';
2
+ import { useBlock, layoutStyles } from 'timvir/core';
3
3
  import * as React from 'react';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
 
6
- // src/css.ts
6
+ function cx(...args) {
7
+ let str = "";
8
+ for (let i = 0; i < args.length; i++) {
9
+ const arg = args[i];
10
+ if (typeof arg === "string") {
11
+ str += (str && " ") + arg;
12
+ }
13
+ }
14
+ return str;
15
+ }
7
16
 
8
- // src/cx.ts
9
- var cx = function cx2() {
10
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
11
- const atomicClasses = {};
12
- const nonAtomicClasses = [];
13
- presentClassNames.forEach((arg) => {
14
- const individualClassNames = arg ? arg.split(" ") : [];
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
- }
17
+ var styleq = {};
18
+ var hasRequiredStyleq;
19
+ function requireStyleq() {
20
+ if (hasRequiredStyleq) return styleq;
21
+ hasRequiredStyleq = 1;
22
+ Object.defineProperty(styleq, "__esModule", {
23
+ value: true
22
24
  });
23
- });
24
- const result = [];
25
- for (const keyHash in atomicClasses) {
26
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
27
- result.push(atomicClasses[keyHash]);
25
+ styleq.styleq = void 0;
26
+ var cache = new WeakMap();
27
+ var compiledKey = '$$css';
28
+ function createStyleq(options) {
29
+ var disableCache;
30
+ var disableMix;
31
+ var transform;
32
+ if (options != null) {
33
+ disableCache = options.disableCache === true;
34
+ disableMix = options.disableMix === true;
35
+ transform = options.transform;
36
+ }
37
+ return function styleq() {
38
+ var definedProperties = [];
39
+ var className = '';
40
+ var inlineStyle = null;
41
+ var debugString = '';
42
+ var nextCache = disableCache ? null : cache;
43
+ var styles = new Array(arguments.length);
44
+ for(var i = 0; i < arguments.length; i++){
45
+ styles[i] = arguments[i];
46
+ }
47
+ while(styles.length > 0){
48
+ var possibleStyle = styles.pop();
49
+ if (possibleStyle == null || possibleStyle === false) {
50
+ continue;
51
+ }
52
+ if (Array.isArray(possibleStyle)) {
53
+ for(var _i = 0; _i < possibleStyle.length; _i++){
54
+ styles.push(possibleStyle[_i]);
55
+ }
56
+ continue;
57
+ }
58
+ var style = transform != null ? transform(possibleStyle) : possibleStyle;
59
+ if (style.$$css != null) {
60
+ var classNameChunk = '';
61
+ if (nextCache != null && nextCache.has(style)) {
62
+ var cacheEntry = nextCache.get(style);
63
+ if (cacheEntry != null) {
64
+ classNameChunk = cacheEntry[0];
65
+ debugString = cacheEntry[2];
66
+ definedProperties.push.apply(definedProperties, cacheEntry[1]);
67
+ nextCache = cacheEntry[3];
68
+ }
69
+ } else {
70
+ var definedPropertiesChunk = [];
71
+ for(var prop in style){
72
+ var value = style[prop];
73
+ if (prop === compiledKey) {
74
+ var compiledKeyValue = style[prop];
75
+ if (compiledKeyValue !== true) {
76
+ debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
77
+ }
78
+ continue;
79
+ }
80
+ if (typeof value === 'string' || value === null) {
81
+ if (!definedProperties.includes(prop)) {
82
+ definedProperties.push(prop);
83
+ if (nextCache != null) {
84
+ definedPropertiesChunk.push(prop);
85
+ }
86
+ if (typeof value === 'string') {
87
+ classNameChunk += classNameChunk ? ' ' + value : value;
88
+ }
89
+ }
90
+ } else {
91
+ console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
92
+ }
93
+ }
94
+ if (nextCache != null) {
95
+ var weakMap = new WeakMap();
96
+ nextCache.set(style, [
97
+ classNameChunk,
98
+ definedPropertiesChunk,
99
+ debugString,
100
+ weakMap
101
+ ]);
102
+ nextCache = weakMap;
103
+ }
104
+ }
105
+ if (classNameChunk) {
106
+ className = className ? classNameChunk + ' ' + className : classNameChunk;
107
+ }
108
+ } else {
109
+ if (disableMix) {
110
+ if (inlineStyle == null) {
111
+ inlineStyle = {};
112
+ }
113
+ inlineStyle = Object.assign({}, style, inlineStyle);
114
+ } else {
115
+ var subStyle = null;
116
+ for(var _prop in style){
117
+ var _value = style[_prop];
118
+ if (_value !== undefined) {
119
+ if (!definedProperties.includes(_prop)) {
120
+ if (_value != null) {
121
+ if (inlineStyle == null) {
122
+ inlineStyle = {};
123
+ }
124
+ if (subStyle == null) {
125
+ subStyle = {};
126
+ }
127
+ subStyle[_prop] = _value;
128
+ }
129
+ definedProperties.push(_prop);
130
+ nextCache = null;
131
+ }
132
+ }
133
+ }
134
+ if (subStyle != null) {
135
+ inlineStyle = Object.assign(subStyle, inlineStyle);
136
+ }
137
+ }
138
+ }
139
+ }
140
+ var styleProps = [
141
+ className,
142
+ inlineStyle,
143
+ debugString
144
+ ];
145
+ return styleProps;
146
+ };
28
147
  }
29
- }
30
- result.push(...nonAtomicClasses);
31
- return result.join(" ");
32
- };
33
- var cx_default = cx;
148
+ var styleq$1 = styleq.styleq = createStyleq();
149
+ styleq$1.factory = createStyleq;
150
+ return styleq;
151
+ }
152
+ var styleqExports = requireStyleq();
153
+ function props(...styles) {
154
+ const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
155
+ const result = {};
156
+ if (className != null && className !== '') {
157
+ result.className = className;
158
+ }
159
+ if (style != null && Object.keys(style).length > 0) {
160
+ result.style = style;
161
+ }
162
+ if (dataStyleSrc != null && dataStyleSrc !== '') {
163
+ result['data-style-src'] = dataStyleSrc;
164
+ }
165
+ return result;
166
+ }
34
167
 
35
- /**
36
- * The underlying DOM element which is rendered by this component.
37
- */
38
168
  const Root = "div";
39
- function Exhibit(props, ref) {
40
- const block = useBlock(props);
169
+ function Exhibit(props$1, ref) {
170
+ const block = useBlock(props$1);
41
171
  const {
42
172
  caption,
43
173
  bleed,
@@ -47,24 +177,43 @@ function Exhibit(props, ref) {
47
177
  style,
48
178
  ...rest
49
179
  } = block.props;
180
+ const rootStyleProps = props(layoutStyles.block, styles.root);
181
+ const containerStyleProps = {
182
+ 0: {
183
+ className: "timvir-s-ufnvkl timvir-s-7zdco timvir-s-zqqpyx timvir-s-1htuw1x timvir-s-1sxf85j timvir-s-mkeg23 timvir-s-1y0btm7 timvir-s-1tffoc1"
184
+ },
185
+ 1: {
186
+ className: "timvir-s-ufnvkl timvir-s-7zdco timvir-s-1sxf85j timvir-s-mkeg23 timvir-s-1tffoc1 timvir-s-ng3xce timvir-s-rxpjvj timvir-s-1717udv"
187
+ }
188
+ }[!!(bleed === 0) << 0];
189
+ const captionStyleProps = {
190
+ className: "timvir-s-1dcheo9 timvir-s-jkpybl timvir-s-vgvpxu timvir-s-lwy1ot"
191
+ };
50
192
  return /*#__PURE__*/jsxs(Root, {
51
193
  ref: ref,
52
- className: cx_default("timvir-b-Exhibit", className, classes.root),
194
+ ...rest,
195
+ ...rootStyleProps,
196
+ className: cx("timvir-b-Exhibit", className, rootStyleProps.className),
53
197
  style: {
198
+ ...rootStyleProps.style,
54
199
  ...style,
55
- [cssVariables.bleed]: typeof bleed === "number" ? `${bleed}px` : undefined
200
+ [cssVariables.bleed]: typeof bleed === "number" ? `${bleed}px` : "calc(var(--timvir-margin, 0px) * 0.6666)",
201
+ [cssVariables.borderColor]: "var(--timvir-border-color)",
202
+ [cssVariables.background]: "var(--timvir-background-pattern)"
56
203
  },
57
- ...rest,
58
204
  children: [/*#__PURE__*/jsx("div", {
59
- className: cx_default("timvir-b-Exhibit-container", classes.container),
60
205
  ...BackdropProps,
206
+ ...containerStyleProps,
207
+ className: cx("timvir-b-Exhibit-container", containerStyleProps.className, BackdropProps?.className),
61
208
  style: {
209
+ ...containerStyleProps.style,
62
210
  border: bleed === 0 ? "none" : `1px solid var(${cssVariables.borderColor})`,
63
211
  ...BackdropProps?.style
64
212
  },
65
213
  children: children
66
214
  }), caption && /*#__PURE__*/jsx("div", {
67
- className: cx_default("timvir-b-Exhibit-caption", classes.caption),
215
+ ...captionStyleProps,
216
+ className: cx("timvir-b-Exhibit-caption", captionStyleProps.className),
68
217
  children: caption
69
218
  })]
70
219
  });
@@ -72,11 +221,13 @@ function Exhibit(props, ref) {
72
221
  var Exhibit$1 = /*#__PURE__*/React.forwardRef(Exhibit);
73
222
  const cssVariables = {
74
223
  bleed: "--timvir-b-Exhibit-bleed",
75
- borderColor: "--timvir-b-Exhibit-borderColor"};
76
- const classes = {
77
- root: "r1nql2f9",
78
- container: "c4ji594",
79
- caption: "cf43jjx"
224
+ borderColor: "--timvir-b-Exhibit-borderColor",
225
+ background: "--timvir-b-Exhibit-background"
226
+ };
227
+ const styles = {
228
+ root: {
229
+ $$css: true
230
+ }
80
231
  };
81
232
 
82
233
  export { Exhibit$1 as Exhibit };