@ttoss/ui 1.16.5 → 1.18.0

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/README.md CHANGED
@@ -45,7 +45,6 @@ You can pass fonts URLs to `ThemeProvider` component thought `fonts` prop.
45
45
  <ThemeProvider
46
46
  fonts={[
47
47
  "https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap",
48
- ,
49
48
  "https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap",
50
49
  ]}
51
50
  >
package/dist/esm/index.js CHANGED
@@ -1,150 +1,17 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
23
2
 
24
3
  // tsup.inject.js
25
4
  import * as React from "react";
26
- var init_tsup_inject = __esm({
27
- "tsup.inject.js"() {
28
- "use strict";
29
- }
30
- });
31
-
32
- // ../../node_modules/deepmerge/dist/cjs.js
33
- var require_cjs = __commonJS({
34
- "../../node_modules/deepmerge/dist/cjs.js"(exports, module) {
35
- "use strict";
36
- init_tsup_inject();
37
- var isMergeableObject = function isMergeableObject2(value) {
38
- return isNonNullObject(value) && !isSpecial(value);
39
- };
40
- function isNonNullObject(value) {
41
- return !!value && typeof value === "object";
42
- }
43
- function isSpecial(value) {
44
- var stringValue = Object.prototype.toString.call(value);
45
- return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
46
- }
47
- var canUseSymbol2 = typeof Symbol === "function" && Symbol.for;
48
- var REACT_ELEMENT_TYPE = canUseSymbol2 ? Symbol.for("react.element") : 60103;
49
- function isReactElement(value) {
50
- return value.$$typeof === REACT_ELEMENT_TYPE;
51
- }
52
- function emptyTarget(val) {
53
- return Array.isArray(val) ? [] : {};
54
- }
55
- function cloneUnlessOtherwiseSpecified(value, options) {
56
- return options.clone !== false && options.isMergeableObject(value) ? deepmerge2(emptyTarget(value), value, options) : value;
57
- }
58
- function defaultArrayMerge(target, source, options) {
59
- return target.concat(source).map(function(element) {
60
- return cloneUnlessOtherwiseSpecified(element, options);
61
- });
62
- }
63
- function getMergeFunction(key, options) {
64
- if (!options.customMerge) {
65
- return deepmerge2;
66
- }
67
- var customMerge = options.customMerge(key);
68
- return typeof customMerge === "function" ? customMerge : deepmerge2;
69
- }
70
- function getEnumerableOwnPropertySymbols(target) {
71
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
72
- return target.propertyIsEnumerable(symbol);
73
- }) : [];
74
- }
75
- function getKeys(target) {
76
- return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
77
- }
78
- function propertyIsOnObject(object, property) {
79
- try {
80
- return property in object;
81
- } catch (_) {
82
- return false;
83
- }
84
- }
85
- function propertyIsUnsafe(target, key) {
86
- return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
87
- }
88
- function mergeObject(target, source, options) {
89
- var destination = {};
90
- if (options.isMergeableObject(target)) {
91
- getKeys(target).forEach(function(key) {
92
- destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
93
- });
94
- }
95
- getKeys(source).forEach(function(key) {
96
- if (propertyIsUnsafe(target, key)) {
97
- return;
98
- }
99
- if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
100
- destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
101
- } else {
102
- destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
103
- }
104
- });
105
- return destination;
106
- }
107
- function deepmerge2(target, source, options) {
108
- options = options || {};
109
- options.arrayMerge = options.arrayMerge || defaultArrayMerge;
110
- options.isMergeableObject = options.isMergeableObject || isMergeableObject;
111
- options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
112
- var sourceIsArray = Array.isArray(source);
113
- var targetIsArray = Array.isArray(target);
114
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
115
- if (!sourceAndTargetTypesMatch) {
116
- return cloneUnlessOtherwiseSpecified(source, options);
117
- } else if (sourceIsArray) {
118
- return options.arrayMerge(target, source, options);
119
- } else {
120
- return mergeObject(target, source, options);
121
- }
122
- }
123
- deepmerge2.all = function deepmergeAll(array, options) {
124
- if (!Array.isArray(array)) {
125
- throw new Error("first argument should be an array");
126
- }
127
- return array.reduce(function(prev, next) {
128
- return deepmerge2(prev, next, options);
129
- }, {});
130
- };
131
- var deepmerge_1 = deepmerge2;
132
- module.exports = deepmerge_1;
133
- }
134
- });
135
5
 
136
6
  // src/index.ts
137
- init_tsup_inject();
138
7
  import { useResponsiveValue, useBreakpointIndex } from "@theme-ui/match-media";
139
8
 
140
9
  // src/theme/ThemeProvider.tsx
141
- init_tsup_inject();
142
10
  import * as React2 from "react";
143
11
  import { Global, css } from "@emotion/react";
144
12
  import { ThemeProvider as ThemeUiProvider, merge } from "theme-ui";
145
13
 
146
14
  // src/theme/defaultFonts.ts
147
- init_tsup_inject();
148
15
  var defaultFonts = [
149
16
  "https://fonts.googleapis.com/css?family=Asap",
150
17
  "https://fonts.googleapis.com/css?family=Overpass",
@@ -153,7 +20,6 @@ var defaultFonts = [
153
20
  ];
154
21
 
155
22
  // src/theme/defaultTheme.ts
156
- init_tsup_inject();
157
23
  var defaultTheme = {
158
24
  colors: {
159
25
  text: "#000",
@@ -253,45 +119,13 @@ var ThemeProvider = ({
253
119
  var ThemeProvider_default = ThemeProvider;
254
120
 
255
121
  // src/theme/useTheme.ts
256
- init_tsup_inject();
257
-
258
- // ../../node_modules/@theme-ui/core/dist/theme-ui-core.esm.js
259
- init_tsup_inject();
260
- var import_deepmerge = __toESM(require_cjs());
261
- import { jsx as jsx$1, ThemeContext } from "@emotion/react";
262
- import { createContext, useContext } from "react";
263
- import packageInfo from "@emotion/react/package.json";
264
- var __EMOTION_VERSION__ = packageInfo.version;
265
- var __themeUiDefaultContextValue = {
266
- __EMOTION_VERSION__,
267
- theme: {}
268
- };
269
- var __ThemeUIContext = /* @__PURE__ */ createContext(__themeUiDefaultContextValue);
270
- var useThemeUI = () => useContext(__ThemeUIContext);
271
- var canUseSymbol = typeof Symbol === "function" && Symbol.for;
272
- var REACT_ELEMENT = canUseSymbol ? Symbol.for("react.element") : 60103;
273
- var FORWARD_REF = canUseSymbol ? Symbol.for("react.forward_ref") : 60103;
274
- var deepmergeOptions = {
275
- isMergeableObject: (n) => {
276
- return !!n && typeof n === "object" && n.$$typeof !== REACT_ELEMENT && n.$$typeof !== FORWARD_REF;
277
- },
278
- arrayMerge: (_leftArray, rightArray) => rightArray
279
- };
280
- var merge2 = (a, b) => (0, import_deepmerge.default)(a, b, deepmergeOptions);
281
- function mergeAll(...args) {
282
- return import_deepmerge.default.all(args, deepmergeOptions);
283
- }
284
- merge2.all = mergeAll;
285
-
286
- // src/theme/useTheme.ts
122
+ import { useThemeUI } from "theme-ui";
287
123
  var useTheme = useThemeUI;
288
124
 
289
125
  // src/components/Box/Box.tsx
290
- init_tsup_inject();
291
126
  import { Box } from "theme-ui";
292
127
 
293
128
  // src/components/Button/Button.tsx
294
- init_tsup_inject();
295
129
  import { Button as ButtonUi } from "theme-ui";
296
130
  var Button = (props) => {
297
131
  return /* @__PURE__ */ React.createElement(ButtonUi, {
@@ -301,49 +135,38 @@ var Button = (props) => {
301
135
  };
302
136
 
303
137
  // src/components/Card/Card.tsx
304
- init_tsup_inject();
305
138
  import { Card } from "theme-ui";
306
139
 
307
140
  // src/components/Divider/Divider.tsx
308
- init_tsup_inject();
309
141
  import { Divider } from "theme-ui";
310
142
 
311
143
  // src/components/Flex/Flex.tsx
312
- init_tsup_inject();
313
144
  import { Flex } from "theme-ui";
314
145
 
315
146
  // src/components/Grid/Grid.tsx
316
- init_tsup_inject();
317
147
  import { Grid } from "theme-ui";
318
148
 
319
149
  // src/components/Heading/Heading.tsx
320
- init_tsup_inject();
321
150
  import { Heading } from "theme-ui";
322
151
 
323
152
  // src/components/Image/Image.tsx
324
- init_tsup_inject();
325
153
  import { Image } from "theme-ui";
326
154
 
327
155
  // src/components/Input/Input.tsx
328
- init_tsup_inject();
329
156
  import { Input } from "theme-ui";
330
157
 
331
158
  // src/components/Link/Link.tsx
332
- init_tsup_inject();
333
159
  import { Link } from "theme-ui";
334
160
 
335
161
  // src/components/LinearProgress/LinearProgress.tsx
336
- init_tsup_inject();
337
162
  import {
338
163
  Progress
339
164
  } from "theme-ui";
340
165
 
341
166
  // src/components/Text/Text.tsx
342
- init_tsup_inject();
343
167
  import { Text } from "theme-ui";
344
168
 
345
169
  // src/components/Select/Select.tsx
346
- init_tsup_inject();
347
170
  import { Select } from "theme-ui";
348
171
  export {
349
172
  Box,
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import * as theme_ui from 'theme-ui';
1
2
  import { Theme, ButtonProps } from 'theme-ui';
2
3
  export { Box, BoxProps, ButtonProps, Card, CardProps, Divider, DividerProps, Flex, FlexProps, Grid, GridProps, Heading, HeadingProps, Image, ImageProps, Input, InputProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Link, LinkProps, Select, SelectProps, Text, TextProps, Theme } from 'theme-ui';
3
4
  export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
4
5
  import * as React from 'react';
5
- import * as _theme_ui_core from '@theme-ui/core';
6
6
 
7
7
  declare type ThemeProviderProps = {
8
8
  children?: React.ReactNode;
@@ -14,7 +14,7 @@ declare type ThemeProviderProps = {
14
14
  };
15
15
  declare const ThemeProvider: ({ children, theme, fonts, }: ThemeProviderProps) => JSX.Element;
16
16
 
17
- declare const useTheme: () => _theme_ui_core.ThemeUIContextValue;
17
+ declare const useTheme: () => theme_ui.ThemeUIContextValue;
18
18
 
19
19
  declare const Button: (props: ButtonProps) => JSX.Element;
20
20
 
package/dist/index.js CHANGED
@@ -5,12 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __esm = (fn, res) => function __init() {
9
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
- };
11
- var __commonJS = (cb, mod) => function __require() {
12
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
- };
14
8
  var __export = (target, all) => {
15
9
  for (var name in all)
16
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -26,152 +20,41 @@ var __copyProps = (to, from, except, desc) => {
26
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
27
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
22
 
29
- // tsup.inject.js
30
- var React;
31
- var init_tsup_inject = __esm({
32
- "tsup.inject.js"() {
33
- "use strict";
34
- React = __toESM(require("react"));
35
- }
36
- });
37
-
38
- // ../../node_modules/deepmerge/dist/cjs.js
39
- var require_cjs = __commonJS({
40
- "../../node_modules/deepmerge/dist/cjs.js"(exports, module2) {
41
- "use strict";
42
- init_tsup_inject();
43
- var isMergeableObject = function isMergeableObject2(value) {
44
- return isNonNullObject(value) && !isSpecial(value);
45
- };
46
- function isNonNullObject(value) {
47
- return !!value && typeof value === "object";
48
- }
49
- function isSpecial(value) {
50
- var stringValue = Object.prototype.toString.call(value);
51
- return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
52
- }
53
- var canUseSymbol2 = typeof Symbol === "function" && Symbol.for;
54
- var REACT_ELEMENT_TYPE = canUseSymbol2 ? Symbol.for("react.element") : 60103;
55
- function isReactElement(value) {
56
- return value.$$typeof === REACT_ELEMENT_TYPE;
57
- }
58
- function emptyTarget(val) {
59
- return Array.isArray(val) ? [] : {};
60
- }
61
- function cloneUnlessOtherwiseSpecified(value, options) {
62
- return options.clone !== false && options.isMergeableObject(value) ? deepmerge2(emptyTarget(value), value, options) : value;
63
- }
64
- function defaultArrayMerge(target, source, options) {
65
- return target.concat(source).map(function(element) {
66
- return cloneUnlessOtherwiseSpecified(element, options);
67
- });
68
- }
69
- function getMergeFunction(key, options) {
70
- if (!options.customMerge) {
71
- return deepmerge2;
72
- }
73
- var customMerge = options.customMerge(key);
74
- return typeof customMerge === "function" ? customMerge : deepmerge2;
75
- }
76
- function getEnumerableOwnPropertySymbols(target) {
77
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
78
- return target.propertyIsEnumerable(symbol);
79
- }) : [];
80
- }
81
- function getKeys(target) {
82
- return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));
83
- }
84
- function propertyIsOnObject(object, property) {
85
- try {
86
- return property in object;
87
- } catch (_) {
88
- return false;
89
- }
90
- }
91
- function propertyIsUnsafe(target, key) {
92
- return propertyIsOnObject(target, key) && !(Object.hasOwnProperty.call(target, key) && Object.propertyIsEnumerable.call(target, key));
93
- }
94
- function mergeObject(target, source, options) {
95
- var destination = {};
96
- if (options.isMergeableObject(target)) {
97
- getKeys(target).forEach(function(key) {
98
- destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
99
- });
100
- }
101
- getKeys(source).forEach(function(key) {
102
- if (propertyIsUnsafe(target, key)) {
103
- return;
104
- }
105
- if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
106
- destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
107
- } else {
108
- destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
109
- }
110
- });
111
- return destination;
112
- }
113
- function deepmerge2(target, source, options) {
114
- options = options || {};
115
- options.arrayMerge = options.arrayMerge || defaultArrayMerge;
116
- options.isMergeableObject = options.isMergeableObject || isMergeableObject;
117
- options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
118
- var sourceIsArray = Array.isArray(source);
119
- var targetIsArray = Array.isArray(target);
120
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
121
- if (!sourceAndTargetTypesMatch) {
122
- return cloneUnlessOtherwiseSpecified(source, options);
123
- } else if (sourceIsArray) {
124
- return options.arrayMerge(target, source, options);
125
- } else {
126
- return mergeObject(target, source, options);
127
- }
128
- }
129
- deepmerge2.all = function deepmergeAll(array, options) {
130
- if (!Array.isArray(array)) {
131
- throw new Error("first argument should be an array");
132
- }
133
- return array.reduce(function(prev, next) {
134
- return deepmerge2(prev, next, options);
135
- }, {});
136
- };
137
- var deepmerge_1 = deepmerge2;
138
- module2.exports = deepmerge_1;
139
- }
140
- });
141
-
142
23
  // src/index.ts
143
24
  var src_exports = {};
144
25
  __export(src_exports, {
145
- Box: () => import_theme_ui2.Box,
26
+ Box: () => import_theme_ui3.Box,
146
27
  Button: () => Button,
147
- Card: () => import_theme_ui4.Card,
148
- Divider: () => import_theme_ui5.Divider,
149
- Flex: () => import_theme_ui6.Flex,
150
- Grid: () => import_theme_ui7.Grid,
151
- Heading: () => import_theme_ui8.Heading,
152
- Image: () => import_theme_ui9.Image,
153
- Input: () => import_theme_ui10.Input,
154
- LinearProgress: () => import_theme_ui12.Progress,
155
- Link: () => import_theme_ui11.Link,
156
- Select: () => import_theme_ui14.Select,
157
- Text: () => import_theme_ui13.Text,
28
+ Card: () => import_theme_ui5.Card,
29
+ Divider: () => import_theme_ui6.Divider,
30
+ Flex: () => import_theme_ui7.Flex,
31
+ Grid: () => import_theme_ui8.Grid,
32
+ Heading: () => import_theme_ui9.Heading,
33
+ Image: () => import_theme_ui10.Image,
34
+ Input: () => import_theme_ui11.Input,
35
+ LinearProgress: () => import_theme_ui13.Progress,
36
+ Link: () => import_theme_ui12.Link,
37
+ Select: () => import_theme_ui15.Select,
38
+ Text: () => import_theme_ui14.Text,
158
39
  ThemeProvider: () => ThemeProvider_default,
159
40
  useBreakpointIndex: () => import_match_media.useBreakpointIndex,
160
41
  useResponsiveValue: () => import_match_media.useResponsiveValue,
161
42
  useTheme: () => useTheme
162
43
  });
163
44
  module.exports = __toCommonJS(src_exports);
164
- init_tsup_inject();
45
+
46
+ // tsup.inject.js
47
+ var React = __toESM(require("react"));
48
+
49
+ // src/index.ts
165
50
  var import_match_media = require("@theme-ui/match-media");
166
51
 
167
52
  // src/theme/ThemeProvider.tsx
168
- init_tsup_inject();
169
53
  var React2 = __toESM(require("react"));
170
54
  var import_react = require("@emotion/react");
171
55
  var import_theme_ui = require("theme-ui");
172
56
 
173
57
  // src/theme/defaultFonts.ts
174
- init_tsup_inject();
175
58
  var defaultFonts = [
176
59
  "https://fonts.googleapis.com/css?family=Asap",
177
60
  "https://fonts.googleapis.com/css?family=Overpass",
@@ -180,7 +63,6 @@ var defaultFonts = [
180
63
  ];
181
64
 
182
65
  // src/theme/defaultTheme.ts
183
- init_tsup_inject();
184
66
  var defaultTheme = {
185
67
  colors: {
186
68
  text: "#000",
@@ -280,96 +162,53 @@ var ThemeProvider = ({
280
162
  var ThemeProvider_default = ThemeProvider;
281
163
 
282
164
  // src/theme/useTheme.ts
283
- init_tsup_inject();
284
-
285
- // ../../node_modules/@theme-ui/core/dist/theme-ui-core.esm.js
286
- init_tsup_inject();
287
- var import_react2 = require("@emotion/react");
288
- var import_react3 = require("react");
289
- var import_deepmerge = __toESM(require_cjs());
290
- var import_package = __toESM(require("@emotion/react/package.json"));
291
- var __EMOTION_VERSION__ = import_package.default.version;
292
- var __themeUiDefaultContextValue = {
293
- __EMOTION_VERSION__,
294
- theme: {}
295
- };
296
- var __ThemeUIContext = /* @__PURE__ */ (0, import_react3.createContext)(__themeUiDefaultContextValue);
297
- var useThemeUI = () => (0, import_react3.useContext)(__ThemeUIContext);
298
- var canUseSymbol = typeof Symbol === "function" && Symbol.for;
299
- var REACT_ELEMENT = canUseSymbol ? Symbol.for("react.element") : 60103;
300
- var FORWARD_REF = canUseSymbol ? Symbol.for("react.forward_ref") : 60103;
301
- var deepmergeOptions = {
302
- isMergeableObject: (n) => {
303
- return !!n && typeof n === "object" && n.$$typeof !== REACT_ELEMENT && n.$$typeof !== FORWARD_REF;
304
- },
305
- arrayMerge: (_leftArray, rightArray) => rightArray
306
- };
307
- var merge2 = (a, b) => (0, import_deepmerge.default)(a, b, deepmergeOptions);
308
- function mergeAll(...args) {
309
- return import_deepmerge.default.all(args, deepmergeOptions);
310
- }
311
- merge2.all = mergeAll;
312
-
313
- // src/theme/useTheme.ts
314
- var useTheme = useThemeUI;
165
+ var import_theme_ui2 = require("theme-ui");
166
+ var useTheme = import_theme_ui2.useThemeUI;
315
167
 
316
168
  // src/components/Box/Box.tsx
317
- init_tsup_inject();
318
- var import_theme_ui2 = require("theme-ui");
169
+ var import_theme_ui3 = require("theme-ui");
319
170
 
320
171
  // src/components/Button/Button.tsx
321
- init_tsup_inject();
322
- var import_theme_ui3 = require("theme-ui");
172
+ var import_theme_ui4 = require("theme-ui");
323
173
  var Button = (props) => {
324
- return /* @__PURE__ */ React.createElement(import_theme_ui3.Button, {
174
+ return /* @__PURE__ */ React.createElement(import_theme_ui4.Button, {
325
175
  ...props,
326
176
  sx: { cursor: "pointer", fontFamily: "body", ...props.sx }
327
177
  });
328
178
  };
329
179
 
330
180
  // src/components/Card/Card.tsx
331
- init_tsup_inject();
332
- var import_theme_ui4 = require("theme-ui");
181
+ var import_theme_ui5 = require("theme-ui");
333
182
 
334
183
  // src/components/Divider/Divider.tsx
335
- init_tsup_inject();
336
- var import_theme_ui5 = require("theme-ui");
184
+ var import_theme_ui6 = require("theme-ui");
337
185
 
338
186
  // src/components/Flex/Flex.tsx
339
- init_tsup_inject();
340
- var import_theme_ui6 = require("theme-ui");
187
+ var import_theme_ui7 = require("theme-ui");
341
188
 
342
189
  // src/components/Grid/Grid.tsx
343
- init_tsup_inject();
344
- var import_theme_ui7 = require("theme-ui");
190
+ var import_theme_ui8 = require("theme-ui");
345
191
 
346
192
  // src/components/Heading/Heading.tsx
347
- init_tsup_inject();
348
- var import_theme_ui8 = require("theme-ui");
193
+ var import_theme_ui9 = require("theme-ui");
349
194
 
350
195
  // src/components/Image/Image.tsx
351
- init_tsup_inject();
352
- var import_theme_ui9 = require("theme-ui");
196
+ var import_theme_ui10 = require("theme-ui");
353
197
 
354
198
  // src/components/Input/Input.tsx
355
- init_tsup_inject();
356
- var import_theme_ui10 = require("theme-ui");
199
+ var import_theme_ui11 = require("theme-ui");
357
200
 
358
201
  // src/components/Link/Link.tsx
359
- init_tsup_inject();
360
- var import_theme_ui11 = require("theme-ui");
202
+ var import_theme_ui12 = require("theme-ui");
361
203
 
362
204
  // src/components/LinearProgress/LinearProgress.tsx
363
- init_tsup_inject();
364
- var import_theme_ui12 = require("theme-ui");
205
+ var import_theme_ui13 = require("theme-ui");
365
206
 
366
207
  // src/components/Text/Text.tsx
367
- init_tsup_inject();
368
- var import_theme_ui13 = require("theme-ui");
208
+ var import_theme_ui14 = require("theme-ui");
369
209
 
370
210
  // src/components/Select/Select.tsx
371
- init_tsup_inject();
372
- var import_theme_ui14 = require("theme-ui");
211
+ var import_theme_ui15 = require("theme-ui");
373
212
  // Annotate the CommonJS export names for ESM import in node:
374
213
  0 && (module.exports = {
375
214
  Box,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "1.16.5",
3
+ "version": "1.18.0",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
@@ -47,5 +47,5 @@
47
47
  "jest": "^28.1.1",
48
48
  "tsup": "^6.1.2"
49
49
  },
50
- "gitHead": "84559f07bf60bfccb886db9cea042da09e99bcdb"
50
+ "gitHead": "38d76661c6302b6447804375cd0193be9056b446"
51
51
  }
@@ -1,3 +1,3 @@
1
- import { useThemeUI } from '@theme-ui/core';
1
+ import { useThemeUI } from 'theme-ui';
2
2
 
3
3
  export const useTheme = useThemeUI;