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.
Files changed (113) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/blocks/Arbitrary/Arbitrary.d.ts +1 -1
  3. package/blocks/Arbitrary/index.js +232 -78
  4. package/blocks/Arbitrary/samples/basic.d.ts +1 -1
  5. package/blocks/Arbitrary/styles.css +166 -6
  6. package/blocks/Code/Code.d.ts +0 -6
  7. package/blocks/Code/docs/index.mdx +0 -11
  8. package/blocks/Code/index.js +213 -112
  9. package/blocks/Code/samples/basic.d.ts +1 -1
  10. package/blocks/Code/samples/toggle.d.ts +1 -2
  11. package/blocks/Code/styles.css +100 -15
  12. package/blocks/ColorBar/docs/index.mdx +8 -2
  13. package/blocks/ColorBar/index.js +223 -68
  14. package/blocks/ColorBar/samples/basic.d.ts +1 -2
  15. package/blocks/ColorBar/styles.css +103 -4
  16. package/blocks/ColorBook/docs/index.mdx +1 -1
  17. package/blocks/ColorBook/index.js +222 -60
  18. package/blocks/ColorBook/samples/basic.d.ts +1 -2
  19. package/blocks/ColorBook/styles.css +166 -6
  20. package/blocks/Cover/index.js +177 -48
  21. package/blocks/Cover/samples/basic.d.ts +1 -2
  22. package/blocks/Cover/styles.css +18 -0
  23. package/blocks/Exhibit/index.js +205 -50
  24. package/blocks/Exhibit/samples/basic.d.ts +1 -2
  25. package/blocks/Exhibit/samples/bleed.d.ts +1 -1
  26. package/blocks/Exhibit/samples/usage.d.ts +1 -2
  27. package/blocks/Exhibit/styles.css +66 -3
  28. package/blocks/Font/index.js +239 -98
  29. package/blocks/Font/samples/basic.d.ts +1 -1
  30. package/blocks/Font/samples/timvir/body1.d.ts +1 -1
  31. package/blocks/Font/samples/timvir/caption.d.ts +1 -1
  32. package/blocks/Font/samples/timvir/h1.d.ts +1 -1
  33. package/blocks/Font/samples/timvir/h2.d.ts +1 -1
  34. package/blocks/Font/samples/timvir/h3.d.ts +1 -1
  35. package/blocks/Font/samples/timvir/h4.d.ts +1 -1
  36. package/blocks/Font/styles.css +82 -8
  37. package/blocks/Grid/docs/index.mdx +4 -4
  38. package/blocks/Grid/index.js +181 -36
  39. package/blocks/Grid/samples/basic.d.ts +1 -2
  40. package/blocks/Grid/styles.css +20 -1
  41. package/blocks/Icon/docs/index.mdx +13 -13
  42. package/blocks/Icon/index.js +93 -100
  43. package/blocks/Icon/internal/Canvas.d.ts +1 -1
  44. package/blocks/Icon/samples/basic.d.ts +1 -2
  45. package/blocks/Icon/styles.css +117 -5
  46. package/blocks/Icon/types.d.ts +3 -2
  47. package/blocks/Message/docs/index.mdx +5 -8
  48. package/blocks/Message/index.js +238 -55
  49. package/blocks/Message/samples/basic.d.ts +1 -1
  50. package/blocks/Message/styles.css +94 -6
  51. package/blocks/Swatch/docs/index.mdx +16 -16
  52. package/blocks/Swatch/index.js +199 -45
  53. package/blocks/Swatch/samples/basic.d.ts +1 -2
  54. package/blocks/Swatch/styles.css +82 -4
  55. package/blocks/Viewport/index.js +360 -237
  56. package/blocks/Viewport/internal/Caption.d.ts +1 -1
  57. package/blocks/Viewport/internal/Handle.d.ts +1 -1
  58. package/blocks/Viewport/internal/Ruler.d.ts +1 -2
  59. package/blocks/Viewport/samples/basic.d.ts +1 -2
  60. package/blocks/Viewport/styles.css +259 -14
  61. package/blocks/WebLink/index.js +217 -62
  62. package/blocks/WebLink/samples/basic.d.ts +1 -1
  63. package/blocks/WebLink/styles.css +170 -8
  64. package/blocks/styles.css +1460 -97
  65. package/builtins/components.d.ts +2 -2
  66. package/builtins/index.js +306 -239
  67. package/builtins/styles.css +267 -14
  68. package/context/index.d.ts +6 -1
  69. package/core/components/Commands/Commands.d.ts +2 -0
  70. package/core/components/Commands/internal/Action.d.ts +1 -1
  71. package/core/components/Commands/internal/Dialog.d.ts +1 -2
  72. package/core/components/Commands/internal/index.d.ts +0 -1
  73. package/core/components/Footer/samples/basic.d.ts +1 -1
  74. package/core/components/NavigationFooter/NavigationFooter.d.ts +4 -2
  75. package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
  76. package/core/components/Page/Page.d.ts +12 -3
  77. package/core/components/Page/docs/index.mdx +44 -11
  78. package/core/components/Page/internal/Section.d.ts +1 -2
  79. package/core/components/Page/internal/Sidebar.d.ts +1 -1
  80. package/core/components/Page/internal/SidebarItem.d.ts +1 -2
  81. package/core/components/Page/internal/index.d.ts +0 -1
  82. package/core/components/Page/samples/basic.d.ts +1 -2
  83. package/core/components/Page/samples/layout.d.ts +1 -2
  84. package/core/index.d.ts +191 -2
  85. package/core/index.js +674 -449
  86. package/core/layout.d.ts +40 -0
  87. package/core/styles.css +857 -88
  88. package/core/theme/detector.js +1 -1
  89. package/global.css +79 -0
  90. package/internal/cx.d.ts +1 -0
  91. package/knip.config.d.ts +5 -0
  92. package/package.json +1 -2
  93. package/search/Search/samples/basic.d.ts +1 -2
  94. package/search/index.js +2 -208
  95. package/styles.css +2670 -222
  96. package/blocks/Code/theme.d.ts +0 -2
  97. package/bus/styles.css +0 -1
  98. package/context/styles.css +0 -1
  99. package/core/theme/index.d.ts +0 -1
  100. package/hooks/styles.css +0 -1
  101. package/search/Search/internal/Dialog.d.ts +0 -20
  102. package/search/Search/internal/index.d.ts +0 -1
  103. package/search/SearchBoxInput/SearchBoxInput.d.ts +0 -11
  104. package/search/SearchBoxInput/docs/api.mdx +0 -76
  105. package/search/SearchBoxInput/docs/index.mdx +0 -6
  106. package/search/SearchBoxInput/index.d.ts +0 -1
  107. package/search/SearchBoxInput/samples/basic.d.ts +0 -2
  108. package/search/SearchBoxListItem/SearchBoxListItem.d.ts +0 -13
  109. package/search/SearchBoxListItem/docs/api.mdx +0 -76
  110. package/search/SearchBoxListItem/docs/index.mdx +0 -30
  111. package/search/SearchBoxListItem/index.d.ts +0 -1
  112. package/search/SearchBoxListItem/samples/basic.d.ts +0 -2
  113. package/search/styles.css +0 -16
@@ -1,64 +1,193 @@
1
1
  import * as React from 'react';
2
- import { fullWidth } from 'timvir/core';
2
+ import { layoutStyles } from 'timvir/core';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
4
 
4
- // 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
+ }
5
15
 
6
- // src/cx.ts
7
- var cx = function cx2() {
8
- const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
9
- const atomicClasses = {};
10
- const nonAtomicClasses = [];
11
- presentClassNames.forEach((arg) => {
12
- const individualClassNames = arg ? arg.split(" ") : [];
13
- individualClassNames.forEach((className) => {
14
- if (className.startsWith("atm_")) {
15
- const [, keyHash] = className.split("_");
16
- atomicClasses[keyHash] = className;
17
- } else {
18
- nonAtomicClasses.push(className);
19
- }
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
20
23
  });
21
- });
22
- const result = [];
23
- for (const keyHash in atomicClasses) {
24
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
25
- 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
+ };
26
146
  }
27
- }
28
- result.push(...nonAtomicClasses);
29
- return result.join(" ");
30
- };
31
- 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
+ }
32
166
 
33
- /**
34
- * The underlying DOM element which is rendered by this component.
35
- */
36
167
  const Root = "div";
37
- function Cover(props, ref) {
168
+ function Cover(props$1, ref) {
38
169
  const {
39
170
  metadata,
40
171
  img,
41
172
  sources,
42
- className,
43
173
  ...rest
44
- } = props;
45
- return /*#__PURE__*/React.createElement(Root, {
174
+ } = props$1;
175
+ const rootStyleProps = props(layoutStyles.block, layoutStyles.fullWidth);
176
+ return /*#__PURE__*/jsx(Root, {
46
177
  ref: ref,
47
- className: cx_default(className, fullWidth),
48
- ...rest
49
- }, /*#__PURE__*/React.createElement("picture", null, sources.map((p, i) => /*#__PURE__*/React.createElement("source", {
50
- key: i,
51
- ...p
52
- })), /*#__PURE__*/React.createElement("img", {
53
- ...metadata,
54
- ...img,
55
- style: {
56
- display: "block",
57
- maxWidth: "100%",
58
- height: "35vh",
59
- objectFit: "cover"
60
- }
61
- })));
178
+ ...rest,
179
+ ...rootStyleProps,
180
+ className: cx(rest.className, rootStyleProps.className),
181
+ children: /*#__PURE__*/jsxs("picture", {
182
+ children: [sources.map((p, i) => /*#__PURE__*/jsx("source", {
183
+ ...p
184
+ }, i)), /*#__PURE__*/jsx("img", {
185
+ ...metadata,
186
+ ...img,
187
+ className: "timvir-s-1lliihq timvir-s-193iq5w timvir-s-5i6pxz timvir-s-l1xv1r"
188
+ })]
189
+ })
190
+ });
62
191
  }
63
192
  var Cover$1 = /*#__PURE__*/React.forwardRef(Cover);
64
193
 
@@ -1,2 +1 @@
1
- import * as React from "react";
2
- export default function Sample(): React.JSX.Element;
1
+ export default function Sample(): import("react/jsx-runtime").JSX.Element;
@@ -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,42 +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
+ import { jsxs, jsx } from 'react/jsx-runtime';
4
5
 
5
- // 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
+ }
6
16
 
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
- }
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
21
24
  });
22
- });
23
- const result = [];
24
- for (const keyHash in atomicClasses) {
25
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
26
- 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
+ };
27
147
  }
28
- }
29
- result.push(...nonAtomicClasses);
30
- return result.join(" ");
31
- };
32
- 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
+ }
33
167
 
34
- /**
35
- * The underlying DOM element which is rendered by this component.
36
- */
37
168
  const Root = "div";
38
- function Exhibit(props, ref) {
39
- const block = useBlock(props);
169
+ function Exhibit(props$1, ref) {
170
+ const block = useBlock(props$1);
40
171
  const {
41
172
  caption,
42
173
  bleed,
@@ -46,33 +177,57 @@ function Exhibit(props, ref) {
46
177
  style,
47
178
  ...rest
48
179
  } = block.props;
49
- return /*#__PURE__*/React.createElement(Root, {
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
+ };
192
+ return /*#__PURE__*/jsxs(Root, {
50
193
  ref: ref,
51
- className: cx_default("timvir-b-Exhibit", className, classes.root),
194
+ ...rest,
195
+ ...rootStyleProps,
196
+ className: cx("timvir-b-Exhibit", className, rootStyleProps.className),
52
197
  style: {
198
+ ...rootStyleProps.style,
53
199
  ...style,
54
- [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)"
55
203
  },
56
- ...rest
57
- }, /*#__PURE__*/React.createElement("div", {
58
- className: cx_default("timvir-b-Exhibit-container", classes.container),
59
- ...BackdropProps,
60
- style: {
61
- border: bleed === 0 ? "none" : `1px solid var(${cssVariables.borderColor})`,
62
- ...BackdropProps?.style
63
- }
64
- }, children), caption && /*#__PURE__*/React.createElement("div", {
65
- className: cx_default("timvir-b-Exhibit-caption", classes.caption)
66
- }, caption));
204
+ children: [/*#__PURE__*/jsx("div", {
205
+ ...BackdropProps,
206
+ ...containerStyleProps,
207
+ className: cx("timvir-b-Exhibit-container", containerStyleProps.className, BackdropProps?.className),
208
+ style: {
209
+ ...containerStyleProps.style,
210
+ border: bleed === 0 ? "none" : `1px solid var(${cssVariables.borderColor})`,
211
+ ...BackdropProps?.style
212
+ },
213
+ children: children
214
+ }), caption && /*#__PURE__*/jsx("div", {
215
+ ...captionStyleProps,
216
+ className: cx("timvir-b-Exhibit-caption", captionStyleProps.className),
217
+ children: caption
218
+ })]
219
+ });
67
220
  }
68
221
  var Exhibit$1 = /*#__PURE__*/React.forwardRef(Exhibit);
69
222
  const cssVariables = {
70
223
  bleed: "--timvir-b-Exhibit-bleed",
71
- borderColor: "--timvir-b-Exhibit-borderColor"};
72
- const classes = {
73
- root: "r1nql2f9",
74
- container: "c4ji594",
75
- caption: "cf43jjx"
224
+ borderColor: "--timvir-b-Exhibit-borderColor",
225
+ background: "--timvir-b-Exhibit-background"
226
+ };
227
+ const styles = {
228
+ root: {
229
+ $$css: true
230
+ }
76
231
  };
77
232
 
78
233
  export { Exhibit$1 as Exhibit };
@@ -1,2 +1 @@
1
- import * as React from "react";
2
- export default function Sample(): React.JSX.Element;
1
+ export default function Sample(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { Exhibit } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Exhibit>>;
4
- export default function Sample(props: Props): React.JSX.Element;
4
+ export default function Sample(props: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -1,2 +1 @@
1
- import * as React from "react";
2
- export default function Sample(): React.JSX.Element;
1
+ export default function Sample(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,67 @@
1
- .r1nql2f9{--timvir-b-Exhibit-bleed:calc(var(--timvir-margin, 0px) * 0.6666);--timvir-b-Exhibit-borderColor:var(--timvir-border-color);--timvir-b-Exhibit-background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAAHElEQVR4AWP4/u07Mvr75y8yGlBpND6a6oGUBgAxMSSkDKa/pQAAAABJRU5ErkJggg==);}:root[data-timvir-theme="dark"] {--timvir-b-Exhibit-background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAAAAACoWZBhAAAAFklEQVQI12NQBQF2EGAghQkmwXxSmADZJQiZ2ZZ46gAAAABJRU5ErkJggg==);}
2
- .c4ji594{display:flow-root;background:var(--timvir-b-Exhibit-background);margin:0 calc(-1 * var(--timvir-b-Exhibit-bleed));padding:var(--timvir-b-Exhibit-bleed);border-radius:5px;}
3
- .cf43jjx{font-size:0.8125rem;line-height:1.1875;color:var(--timvir-secondary-text-color);margin-top:0.3em;}
1
+ @layer priority1 {
2
+ .timvir-s-1717udv {
3
+ padding: 0;
4
+ }
4
5
 
6
+ .timvir-s-1htuw1x {
7
+ padding: var(--timvir-b-Exhibit-bleed);
8
+ }
9
+ }
10
+
11
+ @layer priority2 {
12
+ .timvir-s-1tffoc1 {
13
+ border-color: var(--timvir-b-Exhibit-borderColor);
14
+ }
15
+
16
+ .timvir-s-1sxf85j {
17
+ border-radius: 5px;
18
+ }
19
+
20
+ .timvir-s-ng3xce {
21
+ border-style: none;
22
+ }
23
+
24
+ .timvir-s-1y0btm7 {
25
+ border-style: solid;
26
+ }
27
+
28
+ .timvir-s-mkeg23 {
29
+ border-width: 1px;
30
+ }
31
+
32
+ .timvir-s-rxpjvj {
33
+ margin-inline: 0;
34
+ }
35
+
36
+ .timvir-s-zqqpyx {
37
+ margin-inline: calc(-1 * var(--timvir-b-Exhibit-bleed));
38
+ }
39
+ }
40
+
41
+ @layer priority3 {
42
+ .timvir-s-7zdco {
43
+ background-image: var(--timvir-b-Exhibit-background);
44
+ }
45
+
46
+ .timvir-s-vgvpxu {
47
+ color: var(--timvir-secondary-text-color);
48
+ }
49
+
50
+ .timvir-s-ufnvkl {
51
+ display: flow-root;
52
+ }
53
+
54
+ .timvir-s-1dcheo9 {
55
+ font-size: .8125rem;
56
+ }
57
+
58
+ .timvir-s-jkpybl {
59
+ line-height: 1.1875;
60
+ }
61
+ }
62
+
63
+ @layer priority4 {
64
+ .timvir-s-lwy1ot {
65
+ margin-top: .3em;
66
+ }
67
+ }