@uniformdev/design-system 19.92.3 → 19.95.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 CHANGED
@@ -16202,14 +16202,6 @@ import React19, { useEffect as useEffect10, useRef as useRef6 } from "react";
16202
16202
 
16203
16203
  // src/components/Modal/Modal.styles.ts
16204
16204
  import { css as css73 } from "@emotion/react";
16205
- var modalWrapperStyles = css73`
16206
- position: fixed;
16207
- inset: 0;
16208
- display: flex;
16209
- align-items: center;
16210
- justify-content: center;
16211
- z-index: var(--z-drawer);
16212
- `;
16213
16205
  var modalStyles = css73`
16214
16206
  position: relative;
16215
16207
  max-width: calc(100% - var(--spacing-base) * 2);
@@ -16226,7 +16218,6 @@ var modalStyles = css73`
16226
16218
  var modalInnerStyles = css73`
16227
16219
  position: relative;
16228
16220
  width: 100%;
16229
- height: 100%;
16230
16221
  display: flex;
16231
16222
  flex-direction: column;
16232
16223
  justify-content: stretch;
@@ -16320,25 +16311,32 @@ var Modal = React19.forwardRef(
16320
16311
  e.preventDefault();
16321
16312
  },
16322
16313
  ...modalProps,
16323
- children: /* @__PURE__ */ jsxs59("div", { css: modalInnerStyles, onClick: (e) => e.stopPropagation(), children: [
16324
- /* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
16325
- /* @__PURE__ */ jsx89("div", { css: modalHeaderHeaderStyles, children: header }),
16326
- /* @__PURE__ */ jsx89(
16327
- Button,
16328
- {
16329
- type: "button",
16330
- onClick: onRequestClose,
16331
- css: modalCloseButtonStyles,
16332
- title: "Close dialog",
16333
- buttonType: "ghost",
16334
- "data-testid": "close-dialog",
16335
- children: /* @__PURE__ */ jsx89(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
16336
- }
16337
- )
16338
- ] }),
16339
- /* @__PURE__ */ jsx89("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
16340
- buttonGroup ? /* @__PURE__ */ jsx89(HorizontalRhythm, { children: buttonGroup }) : null
16341
- ] })
16314
+ children: /* @__PURE__ */ jsxs59(
16315
+ "div",
16316
+ {
16317
+ css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
16318
+ onClick: (e) => e.stopPropagation(),
16319
+ children: [
16320
+ /* @__PURE__ */ jsxs59("div", { css: modalHeaderStyles, children: [
16321
+ /* @__PURE__ */ jsx89("div", { css: modalHeaderHeaderStyles, children: header }),
16322
+ /* @__PURE__ */ jsx89(
16323
+ Button,
16324
+ {
16325
+ type: "button",
16326
+ onClick: onRequestClose,
16327
+ css: modalCloseButtonStyles,
16328
+ title: "Close dialog",
16329
+ buttonType: "ghost",
16330
+ "data-testid": "close-dialog",
16331
+ children: /* @__PURE__ */ jsx89(Icon, { icon: CgClose5, iconColor: "gray", size: 24 })
16332
+ }
16333
+ )
16334
+ ] }),
16335
+ /* @__PURE__ */ jsx89("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
16336
+ buttonGroup ? /* @__PURE__ */ jsx89(HorizontalRhythm, { children: buttonGroup }) : null
16337
+ ]
16338
+ }
16339
+ )
16342
16340
  }
16343
16341
  );
16344
16342
  }
@@ -16527,7 +16525,7 @@ var input2 = css76`
16527
16525
  appearance: none;
16528
16526
  box-sizing: border-box;
16529
16527
  background: var(--white);
16530
- border: 1px solid var(--white);
16528
+ border: 1px solid var(--gray-200);
16531
16529
  border-radius: var(--rounded-sm);
16532
16530
  color: var(--gray-700);
16533
16531
  font-size: var(--fs-sm);
@@ -16548,11 +16546,15 @@ var input2 = css76`
16548
16546
  &:focus,
16549
16547
  &:focus-within {
16550
16548
  border-radius: var(--rounded-md);
16551
- box-shadow: none;
16552
- border: 1px solid var(--gray-300);
16549
+ box-shadow: var(--elevation-100);
16550
+ border: 1px solid var(--accent-dark-active);
16553
16551
  outline: none;
16554
16552
  }
16555
16553
 
16554
+ &:hover {
16555
+ border: 1px solid var(--accent-dark-hover);
16556
+ }
16557
+
16556
16558
  &:disabled,
16557
16559
  &:disabled::placeholder,
16558
16560
  &:disabled:hover {
@@ -16595,7 +16597,6 @@ var inputIcon2 = css76`
16595
16597
  `;
16596
16598
  var inputToggleLabel2 = css76`
16597
16599
  align-items: center;
16598
- background: var(--white);
16599
16600
  cursor: pointer;
16600
16601
  display: inline-flex;
16601
16602
  gap: var(--spacing-sm);
@@ -16606,10 +16607,10 @@ var inputToggleLabel2 = css76`
16606
16607
  `;
16607
16608
  var toggleInput2 = css76`
16608
16609
  appearance: none;
16609
- border: 1px solid var(--gray-300);
16610
+ border: 1px solid var(--gray-200);
16610
16611
  background: var(--white);
16611
- width: var(--spacing-md);
16612
- height: var(--spacing-md);
16612
+ width: var(--spacing-base);
16613
+ height: var(--spacing-base);
16613
16614
  transition: background var(--duration-fast) var(--timing-ease-out),
16614
16615
  border-color var(--duration-fast) var(--timing-ease-out),
16615
16616
  color var(--duration-fast) var(--timing-ease-out);
@@ -16624,19 +16625,23 @@ var toggleInput2 = css76`
16624
16625
  }
16625
16626
 
16626
16627
  &:where([type='checkbox']) {
16627
- border-radius: var(--rounded-md);
16628
+ border-radius: var(--rounded-sm);
16628
16629
  }
16629
16630
 
16630
16631
  &:checked,
16631
16632
  &:checked:hover,
16632
16633
  &:checked:focus {
16633
- background: var(--brand-secondary-3)
16634
- url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E")
16634
+ background: var(--accent-dark-active)
16635
+ url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E")
16635
16636
  no-repeat center center;
16636
- border-color: var(--brand-secondary-3);
16637
+ border-color: var(--accent-dark-active);
16637
16638
  color: var(--white);
16638
16639
  }
16639
16640
 
16641
+ &:hover {
16642
+ border-color: var(--accent-dark-hover);
16643
+ }
16644
+
16640
16645
  &:disabled {
16641
16646
  cursor: not-allowed;
16642
16647
  color: var(--gray-400);
@@ -16644,7 +16649,7 @@ var toggleInput2 = css76`
16644
16649
  }
16645
16650
  `;
16646
16651
  var inlineLabel2 = css76`
16647
- padding-left: var(--spacing-lg);
16652
+ padding-left: var(--spacing-md);
16648
16653
  font-size: var(--fs-sm);
16649
16654
  font-weight: var(--fw-regular);
16650
16655
  translate: 0 1px; // brings the span into central alignment
@@ -16689,9 +16694,9 @@ var dataConnectButton = css76`
16689
16694
  appearance: none;
16690
16695
  box-sizing: border-box;
16691
16696
  background-color: var(--white);
16692
- border: 1px solid var(--brand-secondary-3);
16697
+ border: 1px solid var(--primary-action-default);
16693
16698
  border-radius: var(--rounded-md);
16694
- color: var(--brand-secondary-3);
16699
+ color: var(--primary-action-default);
16695
16700
  display: flex;
16696
16701
  padding: var(--spacing-sm);
16697
16702
  position: relative;
@@ -16983,9 +16988,7 @@ var ParameterMenuButton = forwardRef12(
16983
16988
  import { css as css80 } from "@emotion/react";
16984
16989
  var emptyParameterShell = css80`
16985
16990
  border-radius: var(--rounded-sm);
16986
- background: var(--white);
16987
16991
  flex-grow: 1;
16988
- padding: var(--spacing-xs);
16989
16992
  position: relative;
16990
16993
  max-width: 100%;
16991
16994
  `;
@@ -18769,20 +18772,20 @@ var editorPlaceholder = css85`
18769
18772
  `;
18770
18773
  var editorInput = css85`
18771
18774
  background: var(--white);
18772
- border: 1px solid var(--white);
18775
+ border: 1px solid var(--gray-200);
18773
18776
  border-radius: var(--rounded-sm);
18774
18777
  color: var(--gray-900);
18775
18778
  flex-grow: 1;
18776
18779
  font-size: var(--fs-base);
18777
18780
  line-height: 1.2;
18778
18781
  min-height: 2rem;
18779
- padding: var(--spacing-xs) var(--spacing-sm);
18782
+ padding: var(--spacing-sm);
18780
18783
 
18781
18784
  &:focus,
18782
18785
  &:focus-within {
18783
18786
  border-radius: var(--rounded-md);
18784
- box-shadow: none;
18785
- border: 1px solid var(--gray-300);
18787
+ box-shadow: var(--elevation-100);
18788
+ border: 1px solid var(--accent-dark-hover);
18786
18789
  outline: none;
18787
18790
  }
18788
18791
  `;
@@ -18908,6 +18911,9 @@ var RichText = ({
18908
18911
  removeUpdateListener();
18909
18912
  };
18910
18913
  }, [editor, onChange]);
18914
+ useEffect15(() => {
18915
+ editor.setEditable(!readOnly);
18916
+ }, [editor, readOnly]);
18911
18917
  return /* @__PURE__ */ jsxs71(Fragment18, { children: [
18912
18918
  readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
18913
18919
  /* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
package/dist/index.js CHANGED
@@ -17996,14 +17996,6 @@ var import_react99 = __toESM(require("react"));
17996
17996
  // src/components/Modal/Modal.styles.ts
17997
17997
  init_emotion_jsx_shim();
17998
17998
  var import_react98 = require("@emotion/react");
17999
- var modalWrapperStyles = import_react98.css`
18000
- position: fixed;
18001
- inset: 0;
18002
- display: flex;
18003
- align-items: center;
18004
- justify-content: center;
18005
- z-index: var(--z-drawer);
18006
- `;
18007
17999
  var modalStyles = import_react98.css`
18008
18000
  position: relative;
18009
18001
  max-width: calc(100% - var(--spacing-base) * 2);
@@ -18020,7 +18012,6 @@ var modalStyles = import_react98.css`
18020
18012
  var modalInnerStyles = import_react98.css`
18021
18013
  position: relative;
18022
18014
  width: 100%;
18023
- height: 100%;
18024
18015
  display: flex;
18025
18016
  flex-direction: column;
18026
18017
  justify-content: stretch;
@@ -18114,25 +18105,32 @@ var Modal = import_react99.default.forwardRef(
18114
18105
  e.preventDefault();
18115
18106
  },
18116
18107
  ...modalProps,
18117
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: modalInnerStyles, onClick: (e) => e.stopPropagation(), children: [
18118
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: modalHeaderStyles, children: [
18119
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: modalHeaderHeaderStyles, children: header }),
18120
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
18121
- Button,
18122
- {
18123
- type: "button",
18124
- onClick: onRequestClose,
18125
- css: modalCloseButtonStyles,
18126
- title: "Close dialog",
18127
- buttonType: "ghost",
18128
- "data-testid": "close-dialog",
18129
- children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: import_CgClose6.CgClose, iconColor: "gray", size: 24 })
18130
- }
18131
- )
18132
- ] }),
18133
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
18134
- buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
18135
- ] })
18108
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
18109
+ "div",
18110
+ {
18111
+ css: [modalInnerStyles, { height: height === "auto" ? "auto" : "100%" }],
18112
+ onClick: (e) => e.stopPropagation(),
18113
+ children: [
18114
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { css: modalHeaderStyles, children: [
18115
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: modalHeaderHeaderStyles, children: header }),
18116
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
18117
+ Button,
18118
+ {
18119
+ type: "button",
18120
+ onClick: onRequestClose,
18121
+ css: modalCloseButtonStyles,
18122
+ title: "Close dialog",
18123
+ buttonType: "ghost",
18124
+ "data-testid": "close-dialog",
18125
+ children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Icon, { icon: import_CgClose6.CgClose, iconColor: "gray", size: 24 })
18126
+ }
18127
+ )
18128
+ ] }),
18129
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { css: [modalContentStyles, !withoutContentPadding ? null : { padding: 0 }], children }),
18130
+ buttonGroup ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(HorizontalRhythm, { children: buttonGroup }) : null
18131
+ ]
18132
+ }
18133
+ )
18136
18134
  }
18137
18135
  );
18138
18136
  }
@@ -18332,7 +18330,7 @@ var input2 = import_react102.css`
18332
18330
  appearance: none;
18333
18331
  box-sizing: border-box;
18334
18332
  background: var(--white);
18335
- border: 1px solid var(--white);
18333
+ border: 1px solid var(--gray-200);
18336
18334
  border-radius: var(--rounded-sm);
18337
18335
  color: var(--gray-700);
18338
18336
  font-size: var(--fs-sm);
@@ -18353,11 +18351,15 @@ var input2 = import_react102.css`
18353
18351
  &:focus,
18354
18352
  &:focus-within {
18355
18353
  border-radius: var(--rounded-md);
18356
- box-shadow: none;
18357
- border: 1px solid var(--gray-300);
18354
+ box-shadow: var(--elevation-100);
18355
+ border: 1px solid var(--accent-dark-active);
18358
18356
  outline: none;
18359
18357
  }
18360
18358
 
18359
+ &:hover {
18360
+ border: 1px solid var(--accent-dark-hover);
18361
+ }
18362
+
18361
18363
  &:disabled,
18362
18364
  &:disabled::placeholder,
18363
18365
  &:disabled:hover {
@@ -18400,7 +18402,6 @@ var inputIcon2 = import_react102.css`
18400
18402
  `;
18401
18403
  var inputToggleLabel2 = import_react102.css`
18402
18404
  align-items: center;
18403
- background: var(--white);
18404
18405
  cursor: pointer;
18405
18406
  display: inline-flex;
18406
18407
  gap: var(--spacing-sm);
@@ -18411,10 +18412,10 @@ var inputToggleLabel2 = import_react102.css`
18411
18412
  `;
18412
18413
  var toggleInput2 = import_react102.css`
18413
18414
  appearance: none;
18414
- border: 1px solid var(--gray-300);
18415
+ border: 1px solid var(--gray-200);
18415
18416
  background: var(--white);
18416
- width: var(--spacing-md);
18417
- height: var(--spacing-md);
18417
+ width: var(--spacing-base);
18418
+ height: var(--spacing-base);
18418
18419
  transition: background var(--duration-fast) var(--timing-ease-out),
18419
18420
  border-color var(--duration-fast) var(--timing-ease-out),
18420
18421
  color var(--duration-fast) var(--timing-ease-out);
@@ -18429,19 +18430,23 @@ var toggleInput2 = import_react102.css`
18429
18430
  }
18430
18431
 
18431
18432
  &:where([type='checkbox']) {
18432
- border-radius: var(--rounded-md);
18433
+ border-radius: var(--rounded-sm);
18433
18434
  }
18434
18435
 
18435
18436
  &:checked,
18436
18437
  &:checked:hover,
18437
18438
  &:checked:focus {
18438
- background: var(--brand-secondary-3)
18439
- url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E")
18439
+ background: var(--accent-dark-active)
18440
+ url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='%23fff' /%3E%3C/svg%3E")
18440
18441
  no-repeat center center;
18441
- border-color: var(--brand-secondary-3);
18442
+ border-color: var(--accent-dark-active);
18442
18443
  color: var(--white);
18443
18444
  }
18444
18445
 
18446
+ &:hover {
18447
+ border-color: var(--accent-dark-hover);
18448
+ }
18449
+
18445
18450
  &:disabled {
18446
18451
  cursor: not-allowed;
18447
18452
  color: var(--gray-400);
@@ -18449,7 +18454,7 @@ var toggleInput2 = import_react102.css`
18449
18454
  }
18450
18455
  `;
18451
18456
  var inlineLabel2 = import_react102.css`
18452
- padding-left: var(--spacing-lg);
18457
+ padding-left: var(--spacing-md);
18453
18458
  font-size: var(--fs-sm);
18454
18459
  font-weight: var(--fw-regular);
18455
18460
  translate: 0 1px; // brings the span into central alignment
@@ -18494,9 +18499,9 @@ var dataConnectButton = import_react102.css`
18494
18499
  appearance: none;
18495
18500
  box-sizing: border-box;
18496
18501
  background-color: var(--white);
18497
- border: 1px solid var(--brand-secondary-3);
18502
+ border: 1px solid var(--primary-action-default);
18498
18503
  border-radius: var(--rounded-md);
18499
- color: var(--brand-secondary-3);
18504
+ color: var(--primary-action-default);
18500
18505
  display: flex;
18501
18506
  padding: var(--spacing-sm);
18502
18507
  position: relative;
@@ -18801,9 +18806,7 @@ init_emotion_jsx_shim();
18801
18806
  var import_react109 = require("@emotion/react");
18802
18807
  var emptyParameterShell = import_react109.css`
18803
18808
  border-radius: var(--rounded-sm);
18804
- background: var(--white);
18805
18809
  flex-grow: 1;
18806
- padding: var(--spacing-xs);
18807
18810
  position: relative;
18808
18811
  max-width: 100%;
18809
18812
  `;
@@ -20562,20 +20565,20 @@ var editorPlaceholder = import_react121.css`
20562
20565
  `;
20563
20566
  var editorInput = import_react121.css`
20564
20567
  background: var(--white);
20565
- border: 1px solid var(--white);
20568
+ border: 1px solid var(--gray-200);
20566
20569
  border-radius: var(--rounded-sm);
20567
20570
  color: var(--gray-900);
20568
20571
  flex-grow: 1;
20569
20572
  font-size: var(--fs-base);
20570
20573
  line-height: 1.2;
20571
20574
  min-height: 2rem;
20572
- padding: var(--spacing-xs) var(--spacing-sm);
20575
+ padding: var(--spacing-sm);
20573
20576
 
20574
20577
  &:focus,
20575
20578
  &:focus-within {
20576
20579
  border-radius: var(--rounded-md);
20577
- box-shadow: none;
20578
- border: 1px solid var(--gray-300);
20580
+ box-shadow: var(--elevation-100);
20581
+ border: 1px solid var(--accent-dark-hover);
20579
20582
  outline: none;
20580
20583
  }
20581
20584
  `;
@@ -20701,6 +20704,9 @@ var RichText = ({
20701
20704
  removeUpdateListener();
20702
20705
  };
20703
20706
  }, [editor, onChange]);
20707
+ (0, import_react122.useEffect)(() => {
20708
+ editor.setEditable(!readOnly);
20709
+ }, [editor, readOnly]);
20704
20710
  return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
20705
20711
  readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbar_default, { config, customControls }),
20706
20712
  /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "19.92.3",
3
+ "version": "19.95.0",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "@storybook/react": "6.5.16",
24
24
  "@types/react": "18.2.40",
25
25
  "@types/react-dom": "18.2.17",
26
- "@uniformdev/canvas": "^19.92.3",
27
- "@uniformdev/richtext": "^19.92.3",
26
+ "@uniformdev/canvas": "^19.95.0",
27
+ "@uniformdev/richtext": "^19.95.0",
28
28
  "autoprefixer": "10.4.16",
29
29
  "hygen": "6.2.11",
30
30
  "postcss": "8.4.32",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "7eeadbc2ffc4a2808ddbe8ef9258ae46504cec91"
70
+ "gitHead": "3e3fb19655bb28c5452cb98418d8c87bef0f853a"
71
71
  }