@helpdice/theme 1.0.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.
Files changed (134) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +37 -0
  3. package/dist/css-baseline/css-baseline.d.ts +9 -0
  4. package/dist/css-baseline/index.d.ts +1 -0
  5. package/dist/css-baseline/index.js +868 -0
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.js +1516 -0
  8. package/dist/shared/css-transition.d.ts +13 -0
  9. package/dist/styled-jsx.cjs.js +748 -0
  10. package/dist/themes/index.d.ts +4 -0
  11. package/dist/themes/index.js +299 -0
  12. package/dist/themes/presets/dark.d.ts +8 -0
  13. package/dist/themes/presets/default.d.ts +8 -0
  14. package/dist/themes/presets/index.d.ts +90 -0
  15. package/dist/themes/presets/shared.d.ts +4 -0
  16. package/dist/themes/themes.d.ts +18 -0
  17. package/dist/ui-provider/index.d.ts +3 -0
  18. package/dist/ui-provider/index.js +1425 -0
  19. package/dist/ui-provider/theme-provider.d.ts +8 -0
  20. package/dist/ui-provider/ui-provider.d.ts +8 -0
  21. package/dist/use-all-themes/all-themes-context.d.ts +7 -0
  22. package/dist/use-all-themes/index.d.ts +3 -0
  23. package/dist/use-all-themes/index.js +311 -0
  24. package/dist/use-classes/index.d.ts +2 -0
  25. package/dist/use-classes/index.js +48 -0
  26. package/dist/use-classes/use-classes.d.ts +4 -0
  27. package/dist/use-current-state/index.d.ts +2 -0
  28. package/dist/use-current-state/index.js +72 -0
  29. package/dist/use-current-state/use-current-state.d.ts +4 -0
  30. package/dist/use-media-query/index.js +444 -0
  31. package/dist/use-theme/index.d.ts +2 -0
  32. package/dist/use-theme/index.js +309 -0
  33. package/dist/use-theme/theme-context.d.ts +4 -0
  34. package/dist/use-toasts/helpers.d.ts +18 -0
  35. package/dist/use-toasts/index.js +204 -0
  36. package/dist/use-toasts/toast-container.d.ts +3 -0
  37. package/dist/use-toasts/toast-item.d.ts +8 -0
  38. package/dist/use-toasts/use-toast.d.ts +40 -0
  39. package/dist/utils/collections.d.ts +15 -0
  40. package/dist/utils/layouts.d.ts +20 -0
  41. package/dist/utils/prop-types.d.ts +19 -0
  42. package/dist/utils/types.d.ts +3 -0
  43. package/dist/utils/use-current-state.d.ts +2 -0
  44. package/dist/utils/use-hd-ui-context.d.ts +16 -0
  45. package/dist/utils/use-portal.d.ts +2 -0
  46. package/dist/utils/use-ssr.d.ts +6 -0
  47. package/esm/css-baseline/css-baseline.d.ts +9 -0
  48. package/esm/css-baseline/css-baseline.js +23 -0
  49. package/esm/css-baseline/index.d.ts +1 -0
  50. package/esm/css-baseline/index.js +2 -0
  51. package/esm/index.d.ts +12 -0
  52. package/esm/index.js +11 -0
  53. package/esm/shared/backdrop.js +66 -0
  54. package/esm/shared/css-transition.d.ts +13 -0
  55. package/esm/shared/css-transition.js +65 -0
  56. package/esm/shared/dropdown.js +99 -0
  57. package/esm/shared/ellipsis.js +13 -0
  58. package/esm/shared/expand.js +86 -0
  59. package/esm/shared/highlight.js +46 -0
  60. package/esm/styled-jsx-server.es.js +5 -0
  61. package/esm/styled-jsx.es.js +737 -0
  62. package/esm/themes/index.d.ts +4 -0
  63. package/esm/themes/index.js +2 -0
  64. package/esm/themes/presets/dark.d.ts +8 -0
  65. package/esm/themes/presets/dark.js +64 -0
  66. package/esm/themes/presets/default.d.ts +8 -0
  67. package/esm/themes/presets/default.js +64 -0
  68. package/esm/themes/presets/index.d.ts +90 -0
  69. package/esm/themes/presets/index.js +1 -0
  70. package/esm/themes/presets/shared.d.ts +4 -0
  71. package/esm/themes/presets/shared.js +42 -0
  72. package/esm/themes/themes.d.ts +18 -0
  73. package/esm/themes/themes.js +77 -0
  74. package/esm/ui-provider/index.d.ts +3 -0
  75. package/esm/ui-provider/index.js +4 -0
  76. package/esm/ui-provider/theme-provider.d.ts +8 -0
  77. package/esm/ui-provider/theme-provider.js +45 -0
  78. package/esm/ui-provider/ui-provider.d.ts +8 -0
  79. package/esm/ui-provider/ui-provider.js +55 -0
  80. package/esm/use-all-themes/all-themes-context.d.ts +7 -0
  81. package/esm/use-all-themes/all-themes-context.js +11 -0
  82. package/esm/use-all-themes/index.d.ts +3 -0
  83. package/esm/use-all-themes/index.js +2 -0
  84. package/esm/use-classes/index.d.ts +2 -0
  85. package/esm/use-classes/index.js +2 -0
  86. package/esm/use-classes/use-classes.d.ts +4 -0
  87. package/esm/use-classes/use-classes.js +34 -0
  88. package/esm/use-current-state/index.d.ts +2 -0
  89. package/esm/use-current-state/index.js +2 -0
  90. package/esm/use-current-state/use-current-state.d.ts +4 -0
  91. package/esm/use-current-state/use-current-state.js +23 -0
  92. package/esm/use-media-query/index.js +2 -0
  93. package/esm/use-media-query/use-media-query.js +81 -0
  94. package/esm/use-theme/index.d.ts +2 -0
  95. package/esm/use-theme/index.js +2 -0
  96. package/esm/use-theme/theme-context.d.ts +4 -0
  97. package/esm/use-theme/theme-context.js +9 -0
  98. package/esm/use-toasts/helpers.d.ts +18 -0
  99. package/esm/use-toasts/helpers.js +66 -0
  100. package/esm/use-toasts/index.js +2 -0
  101. package/esm/use-toasts/toast-container.d.ts +3 -0
  102. package/esm/use-toasts/toast-container.js +120 -0
  103. package/esm/use-toasts/toast-item.d.ts +8 -0
  104. package/esm/use-toasts/toast-item.js +45 -0
  105. package/esm/use-toasts/use-toast.d.ts +40 -0
  106. package/esm/use-toasts/use-toast.js +103 -0
  107. package/esm/utils/calculations.js +29 -0
  108. package/esm/utils/collections.d.ts +15 -0
  109. package/esm/utils/collections.js +128 -0
  110. package/esm/utils/color.js +35 -0
  111. package/esm/utils/layouts.d.ts +20 -0
  112. package/esm/utils/layouts.js +73 -0
  113. package/esm/utils/prop-types.d.ts +19 -0
  114. package/esm/utils/prop-types.js +20 -0
  115. package/esm/utils/types.d.ts +3 -0
  116. package/esm/utils/types.js +1 -0
  117. package/esm/utils/use-click-anywhere.js +15 -0
  118. package/esm/utils/use-context-state/create-ui-context.js +50 -0
  119. package/esm/utils/use-context-state/use-context-state.js +40 -0
  120. package/esm/utils/use-current-state.d.ts +2 -0
  121. package/esm/utils/use-current-state.js +2 -0
  122. package/esm/utils/use-default-props.js +17 -0
  123. package/esm/utils/use-dom-observer.js +26 -0
  124. package/esm/utils/use-hd-ui-context.d.ts +16 -0
  125. package/esm/utils/use-hd-ui-context.js +27 -0
  126. package/esm/utils/use-portal.d.ts +2 -0
  127. package/esm/utils/use-portal.js +34 -0
  128. package/esm/utils/use-previous.js +11 -0
  129. package/esm/utils/use-real-shape.js +47 -0
  130. package/esm/utils/use-resize.js +19 -0
  131. package/esm/utils/use-ssr.d.ts +6 -0
  132. package/esm/utils/use-ssr.js +19 -0
  133. package/esm/utils/use-warning.js +13 -0
  134. package/package.json +111 -0
@@ -0,0 +1,4 @@
1
+ import Themes from './themes';
2
+ export type { HUserTheme } from './themes';
3
+ export type { HUIThemes, HUIThemesBreakpoints, BreakpointsItem, HUIThemesExpressiveness, HUIThemesFont, HUIThemesLayout, HUIThemesPalette, } from './presets';
4
+ export default Themes;
@@ -0,0 +1,299 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ function _defineProperty(e, r, t) {
6
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
7
+ value: t,
8
+ enumerable: true,
9
+ configurable: true,
10
+ writable: true
11
+ }) : e[r] = t, e;
12
+ }
13
+ function ownKeys(e, r) {
14
+ var t = Object.keys(e);
15
+ if (Object.getOwnPropertySymbols) {
16
+ var o = Object.getOwnPropertySymbols(e);
17
+ r && (o = o.filter(function (r) {
18
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
19
+ })), t.push.apply(t, o);
20
+ }
21
+ return t;
22
+ }
23
+ function _objectSpread2(e) {
24
+ for (var r = 1; r < arguments.length; r++) {
25
+ var t = null != arguments[r] ? arguments[r] : {};
26
+ r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
27
+ _defineProperty(e, r, t[r]);
28
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
29
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
30
+ });
31
+ }
32
+ return e;
33
+ }
34
+ function _toPrimitive(t, r) {
35
+ if ("object" != typeof t || !t) return t;
36
+ var e = t[Symbol.toPrimitive];
37
+ if (void 0 !== e) {
38
+ var i = e.call(t, r);
39
+ if ("object" != typeof i) return i;
40
+ throw new TypeError("@@toPrimitive must return a primitive value.");
41
+ }
42
+ return ("string" === r ? String : Number)(t);
43
+ }
44
+ function _toPropertyKey(t) {
45
+ var i = _toPrimitive(t, "string");
46
+ return "symbol" == typeof i ? i : i + "";
47
+ }
48
+ function _typeof(o) {
49
+ "@babel/helpers - typeof";
50
+
51
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
52
+ return typeof o;
53
+ } : function (o) {
54
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
55
+ }, _typeof(o);
56
+ }
57
+
58
+ var defaultFont = {
59
+ sans: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',
60
+ mono: 'Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace',
61
+ prism: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace'
62
+ };
63
+ var defaultBreakpoints = {
64
+ xs: {
65
+ min: '0',
66
+ max: '650px'
67
+ },
68
+ sm: {
69
+ min: '650px',
70
+ max: '900px'
71
+ },
72
+ md: {
73
+ min: '900px',
74
+ max: '1280px'
75
+ },
76
+ lg: {
77
+ min: '1280px',
78
+ max: '1920px'
79
+ },
80
+ xl: {
81
+ min: '1920px',
82
+ max: '10000px'
83
+ }
84
+ };
85
+ var defaultLayout = {
86
+ gap: '16pt',
87
+ gapNegative: '-16pt',
88
+ gapHalf: '8pt',
89
+ gapHalfNegative: '-8pt',
90
+ gapQuarter: '4pt',
91
+ gapQuarterNegative: '-4pt',
92
+ pageMargin: '16pt',
93
+ pageWidth: '750pt',
94
+ pageWidthWithMargin: '782pt',
95
+ breakpointMobile: defaultBreakpoints.xs.max,
96
+ breakpointTablet: defaultBreakpoints.sm.max,
97
+ radius: '6px',
98
+ unit: '16px'
99
+ };
100
+
101
+ var palette$1 = {
102
+ accents_1: '#fafafa',
103
+ accents_2: '#eaeaea',
104
+ accents_3: '#999',
105
+ accents_4: '#888',
106
+ accents_5: '#666',
107
+ accents_6: '#444',
108
+ accents_7: '#333',
109
+ accents_8: '#111',
110
+ background: '#fff',
111
+ foreground: '#000',
112
+ selection: '#79ffe1',
113
+ secondary: '#666',
114
+ code: '#f81ce5',
115
+ border: '#eaeaea',
116
+ error: '#e00',
117
+ errorLight: '#ff1a1a',
118
+ errorLighter: '#f7d4d6',
119
+ errorDark: '#c50000',
120
+ success: '#0070f3',
121
+ successLight: '#3291ff',
122
+ successLighter: '#d3e5ff',
123
+ successDark: '#0761d1',
124
+ warning: '#f5a623',
125
+ warningLight: '#f7b955',
126
+ warningLighter: '#ffefcf',
127
+ warningDark: '#ab570a',
128
+ cyan: '#50e3c2',
129
+ cyanLighter: '#aaffec',
130
+ cyanLight: '#79ffe1',
131
+ cyanDark: '#29bc9b',
132
+ violet: '#7928ca',
133
+ violetLighter: '#e3d7fc',
134
+ violetLight: '#8a63d2',
135
+ violetDark: '#4c2889',
136
+ purple: '#f81ce5',
137
+ alert: '#ff0080',
138
+ magenta: '#eb367f',
139
+ link: '#0070f3'
140
+ };
141
+ var expressiveness$1 = {
142
+ linkStyle: 'none',
143
+ linkHoverStyle: 'none',
144
+ dropdownBoxShadow: '0 4px 4px 0 rgba(0, 0, 0, 0.02)',
145
+ scrollerStart: 'rgba(255, 255, 255, 1)',
146
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
147
+ shadowSmall: '0 5px 10px rgba(0, 0, 0, 0.12)',
148
+ shadowMedium: '0 8px 30px rgba(0, 0, 0, 0.12)',
149
+ shadowLarge: '0 30px 60px rgba(0, 0, 0, 0.12)',
150
+ portalOpacity: 0.25
151
+ };
152
+ var font$1 = defaultFont;
153
+ var breakpoints$1 = defaultBreakpoints;
154
+ var layout$1 = defaultLayout;
155
+ var themes$1 = {
156
+ type: 'light',
157
+ font: font$1,
158
+ layout: layout$1,
159
+ palette: palette$1,
160
+ breakpoints: breakpoints$1,
161
+ expressiveness: expressiveness$1
162
+ };
163
+
164
+ var palette = {
165
+ accents_1: '#111',
166
+ accents_2: '#333',
167
+ accents_3: '#444',
168
+ accents_4: '#666',
169
+ accents_5: '#888',
170
+ accents_6: '#999',
171
+ accents_7: '#eaeaea',
172
+ accents_8: '#fafafa',
173
+ background: '#000',
174
+ foreground: '#fff',
175
+ selection: '#f81ce5',
176
+ secondary: '#888',
177
+ code: '#79ffe1',
178
+ border: '#333',
179
+ error: '#e00',
180
+ errorLighter: '#f7d4d6',
181
+ errorLight: '#ff1a1a',
182
+ errorDark: '#c50000',
183
+ success: '#0070f3',
184
+ successLighter: '#d3e5ff',
185
+ successLight: '#3291ff',
186
+ successDark: '#0761d1',
187
+ warning: '#f5a623',
188
+ warningLighter: '#ffefcf',
189
+ warningLight: '#f7b955',
190
+ warningDark: '#ab570a',
191
+ cyan: '#50e3c2',
192
+ cyanLighter: '#aaffec',
193
+ cyanLight: '#79ffe1',
194
+ cyanDark: '#29bc9b',
195
+ violet: '#7928ca',
196
+ violetLighter: '#e3d7fc',
197
+ violetLight: '#8a63d2',
198
+ violetDark: '#4c2889',
199
+ purple: '#f81ce5',
200
+ alert: '#ff0080',
201
+ magenta: '#eb367f',
202
+ link: '#3291ff'
203
+ };
204
+ var expressiveness = {
205
+ linkStyle: 'none',
206
+ linkHoverStyle: 'none',
207
+ dropdownBoxShadow: '0 0 0 1px #333',
208
+ scrollerStart: 'rgba(255, 255, 255, 1)',
209
+ scrollerEnd: 'rgba(255, 255, 255, 0)',
210
+ shadowSmall: '0 0 0 1px #333',
211
+ shadowMedium: '0 0 0 1px #333',
212
+ shadowLarge: '0 0 0 1px #333',
213
+ portalOpacity: 0.75
214
+ };
215
+ var font = defaultFont;
216
+ var breakpoints = defaultBreakpoints;
217
+ var layout = defaultLayout;
218
+ var themes = {
219
+ type: 'dark',
220
+ font: font,
221
+ layout: layout,
222
+ palette: palette,
223
+ breakpoints: breakpoints,
224
+ expressiveness: expressiveness
225
+ };
226
+
227
+ var isObject = function isObject(target) {
228
+ return target && _typeof(target) === 'object';
229
+ };
230
+ var _deepDuplicable = function deepDuplicable(source, target) {
231
+ if (!isObject(target) || !isObject(source)) return source;
232
+ var sourceKeys = Object.keys(source);
233
+ var result = {};
234
+ for (var _i = 0, _sourceKeys = sourceKeys; _i < _sourceKeys.length; _i++) {
235
+ var key = _sourceKeys[_i];
236
+ var sourceValue = source[key];
237
+ var targetValue = target[key];
238
+ if (Array.isArray(sourceValue) && Array.isArray(targetValue)) {
239
+ result[key] = targetValue.concat(sourceValue);
240
+ } else if (isObject(sourceValue) && isObject(targetValue)) {
241
+ result[key] = _deepDuplicable(sourceValue, _objectSpread2({}, targetValue));
242
+ } else if (targetValue) {
243
+ result[key] = targetValue;
244
+ } else {
245
+ result[key] = sourceValue;
246
+ }
247
+ }
248
+ return result;
249
+ };
250
+ var getPresets = function getPresets() {
251
+ return [themes$1, themes];
252
+ };
253
+ var getPresetStaticTheme = function getPresetStaticTheme() {
254
+ return themes$1;
255
+ };
256
+ var isAvailableThemeType = function isAvailableThemeType(type) {
257
+ if (!type) return false;
258
+ var presetThemes = getPresets();
259
+ var hasType = presetThemes.find(function (theme) {
260
+ return theme.type === type;
261
+ });
262
+ return !hasType;
263
+ };
264
+ var isPresetTheme = function isPresetTheme(themeOrType) {
265
+ if (!themeOrType) return false;
266
+ var isType = typeof themeOrType === 'string';
267
+ var type = isType ? themeOrType : themeOrType.type;
268
+ return !isAvailableThemeType(type);
269
+ };
270
+ var hasUserCustomTheme = function hasUserCustomTheme() {
271
+ var themes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
272
+ return !!themes.find(function (item) {
273
+ return isAvailableThemeType(item.type);
274
+ });
275
+ };
276
+ var create = function create(base, custom) {
277
+ if (!isAvailableThemeType(custom.type)) {
278
+ throw new Error('Duplicate or unavailable theme type');
279
+ }
280
+ return _deepDuplicable(base, custom);
281
+ };
282
+ var createFromDark = function createFromDark(custom) {
283
+ return create(themes, custom);
284
+ };
285
+ var createFromLight = function createFromLight(custom) {
286
+ return create(themes$1, custom);
287
+ };
288
+ var Themes = {
289
+ isPresetTheme: isPresetTheme,
290
+ isAvailableThemeType: isAvailableThemeType,
291
+ hasUserCustomTheme: hasUserCustomTheme,
292
+ getPresets: getPresets,
293
+ getPresetStaticTheme: getPresetStaticTheme,
294
+ create: create,
295
+ createFromDark: createFromDark,
296
+ createFromLight: createFromLight
297
+ };
298
+
299
+ exports.default = Themes;
@@ -0,0 +1,8 @@
1
+ import { HUIThemes, HUIThemesPalette, HUIThemesExpressiveness } from './index';
2
+ export declare const palette: HUIThemesPalette;
3
+ export declare const expressiveness: HUIThemesExpressiveness;
4
+ export declare const font: import("./index").HUIThemesFont;
5
+ export declare const breakpoints: import("./index").HUIThemesBreakpoints;
6
+ export declare const layout: import("./index").HUIThemesLayout;
7
+ export declare const themes: HUIThemes;
8
+ export default themes;
@@ -0,0 +1,8 @@
1
+ import { HUIThemes, HUIThemesPalette, HUIThemesExpressiveness } from './index';
2
+ export declare const palette: HUIThemesPalette;
3
+ export declare const expressiveness: HUIThemesExpressiveness;
4
+ export declare const font: import("./index").HUIThemesFont;
5
+ export declare const breakpoints: import("./index").HUIThemesBreakpoints;
6
+ export declare const layout: import("./index").HUIThemesLayout;
7
+ export declare const themes: HUIThemes;
8
+ export default themes;
@@ -0,0 +1,90 @@
1
+ export interface HUIThemesPalette {
2
+ accents_1: string;
3
+ accents_2: string;
4
+ accents_3: string;
5
+ accents_4: string;
6
+ accents_5: string;
7
+ accents_6: string;
8
+ accents_7: string;
9
+ accents_8: string;
10
+ background: string;
11
+ foreground: string;
12
+ selection: string;
13
+ secondary: string;
14
+ code: string;
15
+ border: string;
16
+ success: string;
17
+ successLighter: string;
18
+ successLight: string;
19
+ successDark: string;
20
+ error: string;
21
+ errorLighter: string;
22
+ errorLight: string;
23
+ errorDark: string;
24
+ warning: string;
25
+ warningLighter: string;
26
+ warningLight: string;
27
+ warningDark: string;
28
+ cyan: string;
29
+ cyanLighter: string;
30
+ cyanLight: string;
31
+ cyanDark: string;
32
+ violet: string;
33
+ violetLighter: string;
34
+ violetLight: string;
35
+ violetDark: string;
36
+ link: string;
37
+ purple: string;
38
+ magenta: string;
39
+ alert: string;
40
+ }
41
+ export interface HUIThemesExpressiveness {
42
+ linkStyle: string;
43
+ linkHoverStyle: string;
44
+ dropdownBoxShadow: string;
45
+ scrollerStart: string;
46
+ scrollerEnd: string;
47
+ shadowSmall: string;
48
+ shadowMedium: string;
49
+ shadowLarge: string;
50
+ portalOpacity: number;
51
+ }
52
+ export interface HUIThemesLayout {
53
+ gap: string;
54
+ gapNegative: string;
55
+ gapHalf: string;
56
+ gapHalfNegative: string;
57
+ gapQuarter: string;
58
+ gapQuarterNegative: string;
59
+ pageMargin: string;
60
+ pageWidth: string;
61
+ pageWidthWithMargin: string;
62
+ breakpointMobile: string;
63
+ breakpointTablet: string;
64
+ radius: string;
65
+ unit: string;
66
+ }
67
+ export interface HUIThemesFont {
68
+ sans: string;
69
+ mono: string;
70
+ prism: string;
71
+ }
72
+ export interface BreakpointsItem {
73
+ min: string;
74
+ max: string;
75
+ }
76
+ export interface HUIThemesBreakpoints {
77
+ xs: BreakpointsItem;
78
+ sm: BreakpointsItem;
79
+ md: BreakpointsItem;
80
+ lg: BreakpointsItem;
81
+ xl: BreakpointsItem;
82
+ }
83
+ export interface HUIThemes {
84
+ type: string;
85
+ font: HUIThemesFont;
86
+ layout: HUIThemesLayout;
87
+ palette: HUIThemesPalette;
88
+ breakpoints: HUIThemesBreakpoints;
89
+ expressiveness: HUIThemesExpressiveness;
90
+ }
@@ -0,0 +1,4 @@
1
+ import { HUIThemesBreakpoints, HUIThemesFont, HUIThemesLayout } from './index';
2
+ export declare const defaultFont: HUIThemesFont;
3
+ export declare const defaultBreakpoints: HUIThemesBreakpoints;
4
+ export declare const defaultLayout: HUIThemesLayout;
@@ -0,0 +1,18 @@
1
+ import { HUIThemes } from './presets/index';
2
+ import type { DeepPartial } from '../utils/types';
3
+ export type HUserTheme = DeepPartial<HUIThemes> & {
4
+ type: string;
5
+ };
6
+ export declare const isObject: (target: unknown) => unknown;
7
+ export declare const deepDuplicable: <T extends Record<string, unknown>>(source: T, target: T) => T;
8
+ declare const Themes: {
9
+ isPresetTheme: (themeOrType?: HUserTheme | HUIThemes | string) => boolean;
10
+ isAvailableThemeType: (type?: string) => boolean;
11
+ hasUserCustomTheme: (themes?: Array<HUIThemes>) => boolean;
12
+ getPresets: () => Array<HUIThemes>;
13
+ getPresetStaticTheme: () => HUIThemes;
14
+ create: (base: HUIThemes, custom: HUserTheme) => HUIThemes;
15
+ createFromDark: (custom: HUserTheme) => HUIThemes;
16
+ createFromLight: (custom: HUserTheme) => HUIThemes;
17
+ };
18
+ export default Themes;
@@ -0,0 +1,3 @@
1
+ import HuiProvider from './ui-provider';
2
+ export type { UiProviderProps } from './ui-provider';
3
+ export default HuiProvider;