@uniformdev/design-system 19.56.1-alpha.9 → 19.58.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/dist/esm/index.js +57 -48
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +57 -48
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "./chunk-6NI3O2RY.js";
|
|
|
2
2
|
|
|
3
3
|
// src/styles/Theme.tsx
|
|
4
4
|
import { Fragment, jsx as jsx2, jsxs } from "@emotion/react/jsx-runtime";
|
|
5
|
-
var Theme = ({ disableReset = false }) => {
|
|
5
|
+
var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
6
6
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7
7
|
/* @__PURE__ */ jsx2(
|
|
8
8
|
"link",
|
|
@@ -193,64 +193,72 @@ var Theme = ({ disableReset = false }) => {
|
|
|
193
193
|
--duration-fast: 0.25s;
|
|
194
194
|
--duration-xfast: 0.15s;
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
html,
|
|
198
|
-
body {
|
|
199
|
-
color: var(--brand-secondary-1);
|
|
200
|
-
font-family: var(--ff-base);
|
|
201
|
-
scroll-behavior: smooth;
|
|
202
|
-
font-weight: var(--fw-regular);
|
|
203
|
-
line-height: 1.5;
|
|
196
|
+
`
|
|
204
197
|
}
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
disableGlobalReset ? null : /* @__PURE__ */ jsx2(
|
|
201
|
+
"style",
|
|
202
|
+
{
|
|
203
|
+
dangerouslySetInnerHTML: {
|
|
204
|
+
__html: `
|
|
205
|
+
html,
|
|
206
|
+
body {
|
|
207
|
+
color: var(--brand-secondary-1);
|
|
208
|
+
font-family: var(--ff-base);
|
|
209
|
+
scroll-behavior: smooth;
|
|
210
|
+
font-weight: var(--fw-regular);
|
|
211
|
+
line-height: 1.5;
|
|
212
|
+
}
|
|
205
213
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
214
|
+
li {
|
|
215
|
+
line-height: 1.5rem;
|
|
216
|
+
}
|
|
209
217
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
218
|
+
a, button {
|
|
219
|
+
cursor: pointer;
|
|
220
|
+
}
|
|
213
221
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
fieldset {
|
|
223
|
+
border: 0;
|
|
224
|
+
padding: 0;
|
|
225
|
+
margin: 0;
|
|
226
|
+
min-width: 0;
|
|
227
|
+
}
|
|
220
228
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
229
|
+
legend {
|
|
230
|
+
margin: 0;
|
|
231
|
+
padding: 0;
|
|
232
|
+
}
|
|
225
233
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
234
|
+
button, input, optgroup, select, textarea {
|
|
235
|
+
font-family: inherit;
|
|
236
|
+
font-size: inherit;
|
|
237
|
+
color: inherit;
|
|
238
|
+
line-height: 1.25rem;
|
|
239
|
+
}
|
|
232
240
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
[role=button], button {
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
}
|
|
236
244
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
245
|
+
audio, canvas, embed, iframe, img, object, svg, video {
|
|
246
|
+
display: block;
|
|
247
|
+
vertical-align: middle;
|
|
248
|
+
}
|
|
241
249
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
pre {
|
|
251
|
+
white-space: pre;
|
|
252
|
+
}
|
|
245
253
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
254
|
+
*:where(ul, ol) {
|
|
255
|
+
all: unset;
|
|
256
|
+
}
|
|
249
257
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
258
|
+
ul, ol {
|
|
259
|
+
list-style: none;
|
|
260
|
+
}
|
|
261
|
+
`
|
|
254
262
|
}
|
|
255
263
|
}
|
|
256
264
|
)
|
|
@@ -11654,6 +11662,7 @@ var Menu = ({
|
|
|
11654
11662
|
BaseMenu,
|
|
11655
11663
|
{
|
|
11656
11664
|
...menuState,
|
|
11665
|
+
"data-auto-resize-opt-in": true,
|
|
11657
11666
|
focusable: false,
|
|
11658
11667
|
"aria-label": menuLabel,
|
|
11659
11668
|
...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
|
package/dist/index.d.mts
CHANGED
|
@@ -27,15 +27,20 @@ export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/ric
|
|
|
27
27
|
|
|
28
28
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
29
29
|
type ThemeProps = {
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Sets whether to disable a provided "modern-normalizer" reset stylesheet
|
|
31
32
|
* @default false
|
|
32
33
|
*/
|
|
33
34
|
disableReset?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Sets whether to disable global Uniform reset styles
|
|
37
|
+
*/
|
|
38
|
+
disableGlobalReset?: boolean;
|
|
34
39
|
};
|
|
35
40
|
/**
|
|
36
41
|
* Uniform CSS Variables, font provider and optional reset stylesheet
|
|
37
42
|
* @example <Theme disableReset={true} /> */
|
|
38
|
-
declare const Theme: ({ disableReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
43
|
+
declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
39
44
|
|
|
40
45
|
/** Breakpoint label values */
|
|
41
46
|
type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
package/dist/index.d.ts
CHANGED
|
@@ -27,15 +27,20 @@ export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/ric
|
|
|
27
27
|
|
|
28
28
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
29
29
|
type ThemeProps = {
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Sets whether to disable a provided "modern-normalizer" reset stylesheet
|
|
31
32
|
* @default false
|
|
32
33
|
*/
|
|
33
34
|
disableReset?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Sets whether to disable global Uniform reset styles
|
|
37
|
+
*/
|
|
38
|
+
disableGlobalReset?: boolean;
|
|
34
39
|
};
|
|
35
40
|
/**
|
|
36
41
|
* Uniform CSS Variables, font provider and optional reset stylesheet
|
|
37
42
|
* @example <Theme disableReset={true} /> */
|
|
38
|
-
declare const Theme: ({ disableReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
43
|
+
declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
39
44
|
|
|
40
45
|
/** Breakpoint label values */
|
|
41
46
|
type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
package/dist/index.js
CHANGED
|
@@ -1570,7 +1570,7 @@ init_emotion_jsx_shim();
|
|
|
1570
1570
|
// src/styles/Theme.tsx
|
|
1571
1571
|
init_emotion_jsx_shim();
|
|
1572
1572
|
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
1573
|
-
var Theme = ({ disableReset = false }) => {
|
|
1573
|
+
var Theme = ({ disableReset = false, disableGlobalReset = false }) => {
|
|
1574
1574
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
1575
1575
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1576
1576
|
"link",
|
|
@@ -1761,64 +1761,72 @@ var Theme = ({ disableReset = false }) => {
|
|
|
1761
1761
|
--duration-fast: 0.25s;
|
|
1762
1762
|
--duration-xfast: 0.15s;
|
|
1763
1763
|
}
|
|
1764
|
-
|
|
1765
|
-
html,
|
|
1766
|
-
body {
|
|
1767
|
-
color: var(--brand-secondary-1);
|
|
1768
|
-
font-family: var(--ff-base);
|
|
1769
|
-
scroll-behavior: smooth;
|
|
1770
|
-
font-weight: var(--fw-regular);
|
|
1771
|
-
line-height: 1.5;
|
|
1764
|
+
`
|
|
1772
1765
|
}
|
|
1766
|
+
}
|
|
1767
|
+
),
|
|
1768
|
+
disableGlobalReset ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1769
|
+
"style",
|
|
1770
|
+
{
|
|
1771
|
+
dangerouslySetInnerHTML: {
|
|
1772
|
+
__html: `
|
|
1773
|
+
html,
|
|
1774
|
+
body {
|
|
1775
|
+
color: var(--brand-secondary-1);
|
|
1776
|
+
font-family: var(--ff-base);
|
|
1777
|
+
scroll-behavior: smooth;
|
|
1778
|
+
font-weight: var(--fw-regular);
|
|
1779
|
+
line-height: 1.5;
|
|
1780
|
+
}
|
|
1773
1781
|
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1782
|
+
li {
|
|
1783
|
+
line-height: 1.5rem;
|
|
1784
|
+
}
|
|
1777
1785
|
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1786
|
+
a, button {
|
|
1787
|
+
cursor: pointer;
|
|
1788
|
+
}
|
|
1781
1789
|
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1790
|
+
fieldset {
|
|
1791
|
+
border: 0;
|
|
1792
|
+
padding: 0;
|
|
1793
|
+
margin: 0;
|
|
1794
|
+
min-width: 0;
|
|
1795
|
+
}
|
|
1788
1796
|
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1797
|
+
legend {
|
|
1798
|
+
margin: 0;
|
|
1799
|
+
padding: 0;
|
|
1800
|
+
}
|
|
1793
1801
|
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1802
|
+
button, input, optgroup, select, textarea {
|
|
1803
|
+
font-family: inherit;
|
|
1804
|
+
font-size: inherit;
|
|
1805
|
+
color: inherit;
|
|
1806
|
+
line-height: 1.25rem;
|
|
1807
|
+
}
|
|
1800
1808
|
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1809
|
+
[role=button], button {
|
|
1810
|
+
cursor: pointer;
|
|
1811
|
+
}
|
|
1804
1812
|
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1813
|
+
audio, canvas, embed, iframe, img, object, svg, video {
|
|
1814
|
+
display: block;
|
|
1815
|
+
vertical-align: middle;
|
|
1816
|
+
}
|
|
1809
1817
|
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1818
|
+
pre {
|
|
1819
|
+
white-space: pre;
|
|
1820
|
+
}
|
|
1813
1821
|
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1822
|
+
*:where(ul, ol) {
|
|
1823
|
+
all: unset;
|
|
1824
|
+
}
|
|
1817
1825
|
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1826
|
+
ul, ol {
|
|
1827
|
+
list-style: none;
|
|
1828
|
+
}
|
|
1829
|
+
`
|
|
1822
1830
|
}
|
|
1823
1831
|
}
|
|
1824
1832
|
)
|
|
@@ -13293,6 +13301,7 @@ var Menu = ({
|
|
|
13293
13301
|
import_Menu.Menu,
|
|
13294
13302
|
{
|
|
13295
13303
|
...menuState,
|
|
13304
|
+
"data-auto-resize-opt-in": true,
|
|
13296
13305
|
focusable: false,
|
|
13297
13306
|
"aria-label": menuLabel,
|
|
13298
13307
|
...!isRendered ? { unstable_popoverStyles: { position: "absolute", opacity: "0" } } : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.58.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.21",
|
|
26
26
|
"@types/react-dom": "18.2.7",
|
|
27
|
-
"@uniformdev/canvas": "^19.
|
|
28
|
-
"@uniformdev/richtext": "^19.
|
|
27
|
+
"@uniformdev/canvas": "^19.58.0",
|
|
28
|
+
"@uniformdev/richtext": "^19.58.0",
|
|
29
29
|
"autoprefixer": "10.4.15",
|
|
30
30
|
"hygen": "6.2.11",
|
|
31
31
|
"postcss": "8.4.28",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@lexical/rich-text": "^0.12.0",
|
|
45
45
|
"@lexical/selection": "^0.12.0",
|
|
46
46
|
"@lexical/utils": "^0.12.0",
|
|
47
|
-
"@monaco-editor/react": "4.5.
|
|
47
|
+
"@monaco-editor/react": "4.5.2",
|
|
48
48
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
49
49
|
"fast-equals": "^5.0.1",
|
|
50
50
|
"lexical": "^0.12.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "1e355c1405dc744f333cbce45766965c160c535c"
|
|
71
71
|
}
|