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,7 +1,119 @@
1
- .b1a0xzv7{background:white;place-self:stretch;border-radius:2px;-webkit-transition:all 0.2s;transition:all 0.2s;box-shadow:0 0 0 0 rgba(0, 0, 0, 0.1);}
2
- .g10obtzp{opacity:0;-webkit-transition:all 0.2s;transition:all 0.2s;pointer-events:none;}
3
- .r1bcczis{display:-ms-grid;display:grid;place-items:center;cursor:pointer;}.r1bcczis>*{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;}.r1bcczis:hover .b1a0xzv7{box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.2),0 2px 4px rgba(16, 22, 26, 0.1),0 8px 24px rgba(16, 22, 26, 0.2);}.r1bcczis:active .b1a0xzv7{margin:1px;box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.2),0 1px 1px rgba(16, 22, 26, 0.2);}.r1bcczis:hover .g10obtzp{opacity:1;}
1
+ @layer priority1 {
2
+ .timvir-s-dtfvks {
3
+ --timvir-b-Icon-hover: 0;
4
+ }
4
5
 
5
- .n1xsexuc{margin-top:6px;white-space:nowrap;font-size:0.75rem;opacity:0;-webkit-transition:all 0.16s;transition:all 0.16s;z-index:-1;color:var(--timvir-secondary-text-color);text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;position:absolute;left:50%;bottom:-20px;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}
6
- .r1k0w618{position:relative;z-index:1;}.r1k0w618 svg{display:block;}.r1k0w618:hover .n1xsexuc{opacity:1;bottom:-26px;color:var(--timvir-text-color);}.r1k0w618:active .n1xsexuc{bottom:-24px;}
6
+ .timvir-s-d2wi23:hover {
7
+ --timvir-b-Icon-hover: 1;
8
+ }
9
+ }
7
10
 
11
+ @layer priority2 {
12
+ .timvir-s-1cum3z5 {
13
+ border-radius: 2px;
14
+ }
15
+
16
+ .timvir-s-gkxs2y {
17
+ grid-column: 1;
18
+ }
19
+
20
+ .timvir-s-1ms6mhf {
21
+ grid-row: 1;
22
+ }
23
+
24
+ .timvir-s-1ku5rj1 {
25
+ place-items: center;
26
+ }
27
+
28
+ .timvir-s-1lhehjl {
29
+ place-self: stretch stretch;
30
+ }
31
+
32
+ .timvir-s-zhuw26 {
33
+ transition: all .16s;
34
+ }
35
+ }
36
+
37
+ @layer priority3 {
38
+ .timvir-s-12peec7 {
39
+ background-color: #fff;
40
+ }
41
+
42
+ .timvir-s-1ww5jgt {
43
+ box-shadow: 0 0 #0000001a;
44
+ }
45
+
46
+ .timvir-s-1cdhzux {
47
+ color: var(--timvir-text-color);
48
+ }
49
+
50
+ .timvir-s-1ypdohk {
51
+ cursor: pointer;
52
+ }
53
+
54
+ .timvir-s-1lliihq {
55
+ display: block;
56
+ }
57
+
58
+ .timvir-s-rvj5dj {
59
+ display: grid;
60
+ }
61
+
62
+ .timvir-s-boafo0 {
63
+ font-size: .75rem;
64
+ }
65
+
66
+ .timvir-s-1j5ulbg {
67
+ opacity: var(--timvir-b-Icon-hover);
68
+ }
69
+
70
+ .timvir-s-47corl {
71
+ pointer-events: none;
72
+ }
73
+
74
+ .timvir-s-10l6tqk {
75
+ position: absolute;
76
+ }
77
+
78
+ .timvir-s-1n2onr6 {
79
+ position: relative;
80
+ }
81
+
82
+ .timvir-s-2b8uid {
83
+ text-align: center;
84
+ }
85
+
86
+ .timvir-s-1nc5ocm {
87
+ transform: translate(-50%);
88
+ }
89
+
90
+ .timvir-s-87ps6o {
91
+ user-select: none;
92
+ }
93
+
94
+ .timvir-s-uxw1ft {
95
+ white-space: nowrap;
96
+ }
97
+
98
+ .timvir-s-8knxv4 {
99
+ z-index: -1;
100
+ }
101
+
102
+ .timvir-s-1vjfegm {
103
+ z-index: 1;
104
+ }
105
+ }
106
+
107
+ @layer priority4 {
108
+ .timvir-s-1kuhel0 {
109
+ bottom: -20px;
110
+ }
111
+
112
+ .timvir-s-1nrll8i {
113
+ left: 50%;
114
+ }
115
+
116
+ .timvir-s-dj266r {
117
+ margin-top: 0;
118
+ }
119
+ }
@@ -1,5 +1,5 @@
1
- export type Size = "responsive" | number;
2
- export interface Instance {
1
+ type Size = "responsive" | number;
2
+ interface Instance {
3
3
  size: Size;
4
4
  Component: React.ElementType;
5
5
  }
@@ -7,3 +7,4 @@ export interface Descriptor {
7
7
  name: string;
8
8
  instances: Instance[];
9
9
  }
10
+ export {};
@@ -16,13 +16,13 @@ import { Code } from "../../Code";
16
16
  ## Variants
17
17
 
18
18
  <Grid>
19
- <Exhibit caption="info">
19
+ <Exhibit caption="info" style={{ margin: 0, gridColumn: "initial" }}>
20
20
  <Sample variant="basic" props={{ variant: "info" }} />
21
21
  </Exhibit>
22
- <Exhibit caption="warning">
22
+ <Exhibit caption="warning" style={{ margin: 0, gridColumn: "initial" }}>
23
23
  <Sample variant="basic" props={{ variant: "warning" }} />
24
24
  </Exhibit>
25
- <Exhibit caption="alert">
25
+ <Exhibit caption="alert" style={{ margin: 0, gridColumn: "initial" }}>
26
26
  <Sample variant="basic" props={{ variant: "alert" }} />
27
27
  </Exhibit>
28
28
  </Grid>
@@ -32,20 +32,17 @@ import { Code } from "../../Code";
32
32
  Make the title bold and place it before the message, or use a level 3 heading. You can use arbitrary markdown inside the message.
33
33
 
34
34
  <Grid>
35
- <Exhibit caption="Inline title">
35
+ <Exhibit caption="Inline title" style={{ margin: 0, gridColumn: "initial" }}>
36
36
  <Sample variant="basic">
37
37
 
38
-
39
38
  **Short Messages** should place the title in front of the message and make it stand out.
40
39
 
41
40
  </Sample>
42
41
  </Exhibit>
43
42
 
44
-
45
- <Exhibit caption="Title as a separate block elment">
43
+ <Exhibit caption="Title as a separate block elment" style={{ margin: 0, gridColumn: "initial" }}>
46
44
  <Sample variant="basic">
47
45
 
48
-
49
46
  ### Longer Messages
50
47
 
51
48
  Longer messages should make the title a separate block element. This body uses [links](#) and _italic_ text.
@@ -1,72 +1,255 @@
1
1
  import * as React from 'react';
2
2
  import * as Icons from 'react-feather';
3
+ import { layoutStyles } from 'timvir/core';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
5
 
4
- // src/css.ts
5
-
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
- }
6
+ var styleq = {};
7
+ var hasRequiredStyleq;
8
+ function requireStyleq() {
9
+ if (hasRequiredStyleq) return styleq;
10
+ hasRequiredStyleq = 1;
11
+ Object.defineProperty(styleq, "__esModule", {
12
+ value: true
20
13
  });
21
- });
22
- const result = [];
23
- for (const keyHash in atomicClasses) {
24
- if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
25
- result.push(atomicClasses[keyHash]);
14
+ styleq.styleq = void 0;
15
+ var cache = new WeakMap();
16
+ var compiledKey = '$$css';
17
+ function createStyleq(options) {
18
+ var disableCache;
19
+ var disableMix;
20
+ var transform;
21
+ if (options != null) {
22
+ disableCache = options.disableCache === true;
23
+ disableMix = options.disableMix === true;
24
+ transform = options.transform;
25
+ }
26
+ return function styleq() {
27
+ var definedProperties = [];
28
+ var className = '';
29
+ var inlineStyle = null;
30
+ var debugString = '';
31
+ var nextCache = disableCache ? null : cache;
32
+ var styles = new Array(arguments.length);
33
+ for(var i = 0; i < arguments.length; i++){
34
+ styles[i] = arguments[i];
35
+ }
36
+ while(styles.length > 0){
37
+ var possibleStyle = styles.pop();
38
+ if (possibleStyle == null || possibleStyle === false) {
39
+ continue;
40
+ }
41
+ if (Array.isArray(possibleStyle)) {
42
+ for(var _i = 0; _i < possibleStyle.length; _i++){
43
+ styles.push(possibleStyle[_i]);
44
+ }
45
+ continue;
46
+ }
47
+ var style = transform != null ? transform(possibleStyle) : possibleStyle;
48
+ if (style.$$css != null) {
49
+ var classNameChunk = '';
50
+ if (nextCache != null && nextCache.has(style)) {
51
+ var cacheEntry = nextCache.get(style);
52
+ if (cacheEntry != null) {
53
+ classNameChunk = cacheEntry[0];
54
+ debugString = cacheEntry[2];
55
+ definedProperties.push.apply(definedProperties, cacheEntry[1]);
56
+ nextCache = cacheEntry[3];
57
+ }
58
+ } else {
59
+ var definedPropertiesChunk = [];
60
+ for(var prop in style){
61
+ var value = style[prop];
62
+ if (prop === compiledKey) {
63
+ var compiledKeyValue = style[prop];
64
+ if (compiledKeyValue !== true) {
65
+ debugString = debugString ? compiledKeyValue + '; ' + debugString : compiledKeyValue;
66
+ }
67
+ continue;
68
+ }
69
+ if (typeof value === 'string' || value === null) {
70
+ if (!definedProperties.includes(prop)) {
71
+ definedProperties.push(prop);
72
+ if (nextCache != null) {
73
+ definedPropertiesChunk.push(prop);
74
+ }
75
+ if (typeof value === 'string') {
76
+ classNameChunk += classNameChunk ? ' ' + value : value;
77
+ }
78
+ }
79
+ } else {
80
+ console.error("styleq: ".concat(prop, " typeof ").concat(String(value), " is not \"string\" or \"null\"."));
81
+ }
82
+ }
83
+ if (nextCache != null) {
84
+ var weakMap = new WeakMap();
85
+ nextCache.set(style, [
86
+ classNameChunk,
87
+ definedPropertiesChunk,
88
+ debugString,
89
+ weakMap
90
+ ]);
91
+ nextCache = weakMap;
92
+ }
93
+ }
94
+ if (classNameChunk) {
95
+ className = className ? classNameChunk + ' ' + className : classNameChunk;
96
+ }
97
+ } else {
98
+ if (disableMix) {
99
+ if (inlineStyle == null) {
100
+ inlineStyle = {};
101
+ }
102
+ inlineStyle = Object.assign({}, style, inlineStyle);
103
+ } else {
104
+ var subStyle = null;
105
+ for(var _prop in style){
106
+ var _value = style[_prop];
107
+ if (_value !== undefined) {
108
+ if (!definedProperties.includes(_prop)) {
109
+ if (_value != null) {
110
+ if (inlineStyle == null) {
111
+ inlineStyle = {};
112
+ }
113
+ if (subStyle == null) {
114
+ subStyle = {};
115
+ }
116
+ subStyle[_prop] = _value;
117
+ }
118
+ definedProperties.push(_prop);
119
+ nextCache = null;
120
+ }
121
+ }
122
+ }
123
+ if (subStyle != null) {
124
+ inlineStyle = Object.assign(subStyle, inlineStyle);
125
+ }
126
+ }
127
+ }
128
+ }
129
+ var styleProps = [
130
+ className,
131
+ inlineStyle,
132
+ debugString
133
+ ];
134
+ return styleProps;
135
+ };
26
136
  }
27
- }
28
- result.push(...nonAtomicClasses);
29
- return result.join(" ");
30
- };
31
- var cx_default = cx;
137
+ var styleq$1 = styleq.styleq = createStyleq();
138
+ styleq$1.factory = createStyleq;
139
+ return styleq;
140
+ }
141
+ var styleqExports = requireStyleq();
142
+ function props(...styles) {
143
+ const [className, style, dataStyleSrc] = styleqExports.styleq(styles);
144
+ const result = {};
145
+ if (className != null && className !== '') {
146
+ result.className = className;
147
+ }
148
+ if (style != null && Object.keys(style).length > 0) {
149
+ result.style = style;
150
+ }
151
+ if (dataStyleSrc != null && dataStyleSrc !== '') {
152
+ result['data-style-src'] = dataStyleSrc;
153
+ }
154
+ return result;
155
+ }
32
156
 
33
- /**
34
- * The underlying DOM element which is rendered by this component.
35
- */
36
157
  const Root = "div";
37
- function Message(props, ref) {
158
+ function Message(props$1, ref) {
38
159
  const {
39
160
  variant,
40
- className,
41
161
  children,
42
162
  ...rest
43
- } = props;
44
- return /*#__PURE__*/React.createElement(Root, {
163
+ } = props$1;
164
+ return /*#__PURE__*/jsxs(Root, {
45
165
  ref: ref,
46
- className: cx_default(className, "r1ssql2z", variant !== undefined && variantStyles[variant]),
47
- ...rest
48
- }, variant && /*#__PURE__*/React.createElement("div", {
49
- className: icon
50
- }, {
51
- info: /*#__PURE__*/React.createElement(Icons.ChevronsRight, {
52
- size: "1.5em"
53
- }),
54
- warning: /*#__PURE__*/React.createElement(Icons.AlertCircle, {
55
- size: "1.5em"
56
- }),
57
- alert: /*#__PURE__*/React.createElement(Icons.XOctagon, {
58
- size: "1.5em"
59
- })
60
- }[variant]), /*#__PURE__*/React.createElement("div", {
61
- className: "dhvu07f"
62
- }, children));
166
+ ...props(layoutStyles.block, styles.root, variant && styles[variant]),
167
+ ...rest,
168
+ children: [variant && {
169
+ info: /*#__PURE__*/jsx(Icons.ChevronsRight, {
170
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1h1xus1"
171
+ }),
172
+ warning: /*#__PURE__*/jsx(Icons.AlertCircle, {
173
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-4u77bm"
174
+ }),
175
+ alert: /*#__PURE__*/jsx(Icons.XOctagon, {
176
+ className: "timvir-s-3psx0u timvir-s-1lliihq timvir-s-1n2onr6 timvir-s-xk6nc9 timvir-s-jvto2c timvir-s-dpf0h8 timvir-s-ozkzq6 timvir-s-1mz1spe"
177
+ })
178
+ }[variant], /*#__PURE__*/jsx("div", {
179
+ children: React.Children.toArray(children).map((child, index, array) => {
180
+ if (/*#__PURE__*/React.isValidElement(child)) {
181
+ const style = {
182
+ marginTop: index === 0 ? "0" : undefined,
183
+ marginBottom: index === array.length - 1 ? "0" : undefined
184
+ };
185
+ if (Object.keys(style).length > 0) {
186
+ const props = child.props;
187
+ return /*#__PURE__*/React.cloneElement(child, {
188
+ style: {
189
+ ...props?.style,
190
+ ...style
191
+ }
192
+ });
193
+ }
194
+ return child;
195
+ }
196
+ return child;
197
+ })
198
+ })]
199
+ });
63
200
  }
64
201
  var Message$1 = /*#__PURE__*/React.forwardRef(Message);
65
- const icon = "i1dz18jz";
66
- const variantStyles = {
67
- info: "i41wipx",
68
- warning: "wi7iy6",
69
- alert: "a1d5oxsn"
202
+ const styles = {
203
+ root: {
204
+ kVAEAm: "timvir-s-1n2onr6",
205
+ kWkggS: "timvir-s-m75j3u",
206
+ kMwMTN: "timvir-s-1mqxbix",
207
+ kaIpWk: "timvir-s-18zih8k",
208
+ kmVPX3: "timvir-s-qb5aye",
209
+ kGVxlE: "timvir-s-1w911z",
210
+ k1xSpc: "timvir-s-78zum5",
211
+ kGNEyG: "timvir-s-1cy8zhl",
212
+ kGuDYH: "timvir-s-kpwil5",
213
+ kLWn49: "timvir-s-1evy7pa",
214
+ $$css: true
215
+ },
216
+ icon: {
217
+ kUk6DE: "timvir-s-3psx0u",
218
+ k1xSpc: "timvir-s-1lliihq",
219
+ kVAEAm: "timvir-s-1n2onr6",
220
+ k87sOh: "timvir-s-xk6nc9",
221
+ kogj98: "timvir-s-jvto2c",
222
+ kzqmXN: "timvir-s-dpf0h8",
223
+ kZKoxP: "timvir-s-ozkzq6",
224
+ $$css: true
225
+ },
226
+ info: {
227
+ kWkggS: "timvir-s-1a1mm2c",
228
+ kMwMTN: "timvir-s-1mqxbix",
229
+ $$css: true
230
+ },
231
+ warning: {
232
+ kWkggS: "timvir-s-1nd4xj2",
233
+ kMwMTN: "timvir-s-1mqxbix",
234
+ $$css: true
235
+ },
236
+ alert: {
237
+ kWkggS: "timvir-s-18vcsbs",
238
+ kMwMTN: "timvir-s-1mqxbix",
239
+ $$css: true
240
+ },
241
+ iconInfo: {
242
+ kMwMTN: "timvir-s-1h1xus1",
243
+ $$css: true
244
+ },
245
+ iconWarning: {
246
+ kMwMTN: "timvir-s-4u77bm",
247
+ $$css: true
248
+ },
249
+ iconAlert: {
250
+ kMwMTN: "timvir-s-1mz1spe",
251
+ $$css: true
252
+ }
70
253
  };
71
254
 
72
255
  export { Message$1 as Message };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { Message } from "..";
3
3
  type Props = Partial<React.ComponentPropsWithoutRef<typeof Message>>;
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,7 +1,95 @@
1
- .r1ssql2z{position:relative;background:var(--c-p-0);color:black;border-radius:3px;padding:16px 24px 16px 24px;box-shadow:inset 0 0 0 1px rgba(16, 22, 26, 0.2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;font-size:0.875rem;line-height:1.5;}
2
- .dhvu07f>*:first-child{margin-top:0;}.dhvu07f>*:last-child{margin-bottom:0;}.dhvu07f>h3:before{display:none;}
3
- .i1dz18jz{position:relative;top:3px;margin:-2px 12px 0 -4px;}.i1dz18jz>svg{display:block;}
4
- .i41wipx{background:#f0f2fc;color:black;}.i41wipx .i1dz18jz{color:#2a47d5;}
5
- .wi7iy6{background:#fcf9f0;color:black;}.wi7iy6 .i1dz18jz{color:#a68521;}
6
- .a1d5oxsn{background:#fcf0f0;color:black;}.a1d5oxsn .i1dz18jz{color:#da4444;}
1
+ @layer priority1 {
2
+ .timvir-s-jvto2c {
3
+ margin: -2px 12px 0 -4px;
4
+ }
7
5
 
6
+ .timvir-s-qb5aye {
7
+ padding: 16px 24px;
8
+ }
9
+ }
10
+
11
+ @layer priority2 {
12
+ .timvir-s-18zih8k {
13
+ border-radius: 3px;
14
+ }
15
+
16
+ .timvir-s-3psx0u {
17
+ flex: none;
18
+ }
19
+ }
20
+
21
+ @layer priority3 {
22
+ .timvir-s-1cy8zhl {
23
+ align-items: flex-start;
24
+ }
25
+
26
+ .timvir-s-1a1mm2c {
27
+ background-color: #f0f2fc;
28
+ }
29
+
30
+ .timvir-s-18vcsbs {
31
+ background-color: #fcf0f0;
32
+ }
33
+
34
+ .timvir-s-1nd4xj2 {
35
+ background-color: #fcf9f0;
36
+ }
37
+
38
+ .timvir-s-m75j3u {
39
+ background-color: var(--c-p-0);
40
+ }
41
+
42
+ .timvir-s-1w911z {
43
+ box-shadow: inset 0 0 0 1px #10161a33;
44
+ }
45
+
46
+ .timvir-s-1h1xus1 {
47
+ color: #2a47d5;
48
+ }
49
+
50
+ .timvir-s-4u77bm {
51
+ color: #a68521;
52
+ }
53
+
54
+ .timvir-s-1mz1spe {
55
+ color: #da4444;
56
+ }
57
+
58
+ .timvir-s-1mqxbix {
59
+ color: #000;
60
+ }
61
+
62
+ .timvir-s-1lliihq {
63
+ display: block;
64
+ }
65
+
66
+ .timvir-s-78zum5 {
67
+ display: flex;
68
+ }
69
+
70
+ .timvir-s-kpwil5 {
71
+ font-size: .875rem;
72
+ }
73
+
74
+ .timvir-s-1evy7pa {
75
+ line-height: 1.5;
76
+ }
77
+
78
+ .timvir-s-1n2onr6 {
79
+ position: relative;
80
+ }
81
+ }
82
+
83
+ @layer priority4 {
84
+ .timvir-s-ozkzq6 {
85
+ height: 1.5em;
86
+ }
87
+
88
+ .timvir-s-xk6nc9 {
89
+ top: 3px;
90
+ }
91
+
92
+ .timvir-s-dpf0h8 {
93
+ width: 1.5em;
94
+ }
95
+ }
@@ -5,35 +5,35 @@ import { Grid } from "../../Grid";
5
5
  # Swatch
6
6
 
7
7
  <Exhibit caption="Plain color" style={{ marginBottom: 24 }}>
8
- <Swatch value="#FF00FF" />
8
+ <Swatch value="#FF00FF" style={{ margin: 0 }} />
9
9
  </Exhibit>
10
10
 
11
11
  <Exhibit caption="Give the color a meaningful name" style={{ marginBottom: 24 }}>
12
- <Swatch value="#FF00FF" name="Primary" />
12
+ <Swatch value="#FF00FF" name="Primary" style={{ margin: 0 }} />
13
13
  </Exhibit>
14
14
 
15
15
  <Exhibit caption="Add a note about its ancenstry (how or where from it was derived)" style={{ marginBottom: 24 }}>
16
- <Swatch value="#FF00FF" name="Primary" ancestry="Red 700" />
16
+ <Swatch value="#FF00FF" name="Primary" ancestry="Red 700" style={{ margin: 0 }} />
17
17
  </Exhibit>
18
18
 
19
19
  ## In a Grid
20
20
 
21
21
  <Grid style={{ gridGap: 6 }}>
22
- <Swatch value="#0E5A8A" contrastValue="#FFFFFF" name="@blue1" />
23
- <Swatch value="#106BA3" contrastValue="#FFFFFF" name="@blue2" />
24
- <Swatch value="#137CBD" contrastValue="#FFFFFF" name="@blue3" />
25
- <Swatch value="#2B95D6" contrastValue="#000000" name="@blue4" />
26
- <Swatch value="#48AFF0" contrastValue="#000000" name="@blue5" />
22
+ <Swatch value="#0E5A8A" contrastValue="#FFFFFF" name="@blue1" style={{ margin: 0, gridColumn: "initial" }} />
23
+ <Swatch value="#106BA3" contrastValue="#FFFFFF" name="@blue2" style={{ margin: 0, gridColumn: "initial" }} />
24
+ <Swatch value="#137CBD" contrastValue="#FFFFFF" name="@blue3" style={{ margin: 0, gridColumn: "initial" }} />
25
+ <Swatch value="#2B95D6" contrastValue="#000000" name="@blue4" style={{ margin: 0, gridColumn: "initial" }} />
26
+ <Swatch value="#48AFF0" contrastValue="#000000" name="@blue5" style={{ margin: 0, gridColumn: "initial" }} />
27
27
  </Grid>
28
28
 
29
29
  ## Another example
30
30
 
31
- <div style={{display: "grid", gridGap: 6 }}>
32
- <Swatch value="#F58221" name="Access" ancestry="Orange 300" />
33
- <Swatch value="#D9418D" name="Use" ancestry="Red 500" />
34
- <Swatch value="#B87AF2" name="Innovation" ancestry="Violett 500" />
35
- <Swatch value="#4188D9" name="Jobs" ancestry="Blue 500" />
36
- <Swatch value="#4AE6CC" name="Society" ancestry="…" />
37
- <Swatch value="#1FD35B" name="Trust" ancestry="Green 400" />
38
- <Swatch value="#C4D534" name="Market Openness" ancestry="…" />
31
+ <div style={{ gridColumn: "lc / rc", display: "grid", gridGap: 6 }}>
32
+ <Swatch value="#F58221" name="Access" ancestry="Orange 300" style={{ margin: 0, gridColumn: "initial" }} />
33
+ <Swatch value="#D9418D" name="Use" ancestry="Red 500" style={{ margin: 0, gridColumn: "initial" }} />
34
+ <Swatch value="#B87AF2" name="Innovation" ancestry="Violett 500" style={{ margin: 0, gridColumn: "initial" }} />
35
+ <Swatch value="#4188D9" name="Jobs" ancestry="Blue 500" style={{ margin: 0, gridColumn: "initial" }} />
36
+ <Swatch value="#4AE6CC" name="Society" ancestry="…" style={{ margin: 0, gridColumn: "initial" }} />
37
+ <Swatch value="#1FD35B" name="Trust" ancestry="Green 400" style={{ margin: 0, gridColumn: "initial" }} />
38
+ <Swatch value="#C4D534" name="Market Openness" ancestry="…" style={{ margin: 0, gridColumn: "initial" }} />
39
39
  </div>