@uniformdev/design-system 19.92.3-alpha.7 → 19.94.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
@@ -16527,7 +16527,7 @@ var input2 = css76`
16527
16527
  appearance: none;
16528
16528
  box-sizing: border-box;
16529
16529
  background: var(--white);
16530
- border: 1px solid var(--white);
16530
+ border: 1px solid var(--gray-200);
16531
16531
  border-radius: var(--rounded-sm);
16532
16532
  color: var(--gray-700);
16533
16533
  font-size: var(--fs-sm);
@@ -16548,11 +16548,15 @@ var input2 = css76`
16548
16548
  &:focus,
16549
16549
  &:focus-within {
16550
16550
  border-radius: var(--rounded-md);
16551
- box-shadow: none;
16552
- border: 1px solid var(--gray-300);
16551
+ box-shadow: var(--elevation-100);
16552
+ border: 1px solid var(--accent-dark-active);
16553
16553
  outline: none;
16554
16554
  }
16555
16555
 
16556
+ &:hover {
16557
+ border: 1px solid var(--accent-dark-hover);
16558
+ }
16559
+
16556
16560
  &:disabled,
16557
16561
  &:disabled::placeholder,
16558
16562
  &:disabled:hover {
@@ -16595,7 +16599,6 @@ var inputIcon2 = css76`
16595
16599
  `;
16596
16600
  var inputToggleLabel2 = css76`
16597
16601
  align-items: center;
16598
- background: var(--white);
16599
16602
  cursor: pointer;
16600
16603
  display: inline-flex;
16601
16604
  gap: var(--spacing-sm);
@@ -16606,10 +16609,10 @@ var inputToggleLabel2 = css76`
16606
16609
  `;
16607
16610
  var toggleInput2 = css76`
16608
16611
  appearance: none;
16609
- border: 1px solid var(--gray-300);
16612
+ border: 1px solid var(--gray-200);
16610
16613
  background: var(--white);
16611
- width: var(--spacing-md);
16612
- height: var(--spacing-md);
16614
+ width: var(--spacing-base);
16615
+ height: var(--spacing-base);
16613
16616
  transition: background var(--duration-fast) var(--timing-ease-out),
16614
16617
  border-color var(--duration-fast) var(--timing-ease-out),
16615
16618
  color var(--duration-fast) var(--timing-ease-out);
@@ -16624,19 +16627,23 @@ var toggleInput2 = css76`
16624
16627
  }
16625
16628
 
16626
16629
  &:where([type='checkbox']) {
16627
- border-radius: var(--rounded-md);
16630
+ border-radius: var(--rounded-sm);
16628
16631
  }
16629
16632
 
16630
16633
  &:checked,
16631
16634
  &:checked:hover,
16632
16635
  &: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")
16636
+ background: var(--accent-dark-active)
16637
+ 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
16638
  no-repeat center center;
16636
- border-color: var(--brand-secondary-3);
16639
+ border-color: var(--accent-dark-active);
16637
16640
  color: var(--white);
16638
16641
  }
16639
16642
 
16643
+ &:hover {
16644
+ border-color: var(--accent-dark-hover);
16645
+ }
16646
+
16640
16647
  &:disabled {
16641
16648
  cursor: not-allowed;
16642
16649
  color: var(--gray-400);
@@ -16644,7 +16651,7 @@ var toggleInput2 = css76`
16644
16651
  }
16645
16652
  `;
16646
16653
  var inlineLabel2 = css76`
16647
- padding-left: var(--spacing-lg);
16654
+ padding-left: var(--spacing-md);
16648
16655
  font-size: var(--fs-sm);
16649
16656
  font-weight: var(--fw-regular);
16650
16657
  translate: 0 1px; // brings the span into central alignment
@@ -16689,9 +16696,9 @@ var dataConnectButton = css76`
16689
16696
  appearance: none;
16690
16697
  box-sizing: border-box;
16691
16698
  background-color: var(--white);
16692
- border: 1px solid var(--brand-secondary-3);
16699
+ border: 1px solid var(--primary-action-default);
16693
16700
  border-radius: var(--rounded-md);
16694
- color: var(--brand-secondary-3);
16701
+ color: var(--primary-action-default);
16695
16702
  display: flex;
16696
16703
  padding: var(--spacing-sm);
16697
16704
  position: relative;
@@ -16983,9 +16990,7 @@ var ParameterMenuButton = forwardRef12(
16983
16990
  import { css as css80 } from "@emotion/react";
16984
16991
  var emptyParameterShell = css80`
16985
16992
  border-radius: var(--rounded-sm);
16986
- background: var(--white);
16987
16993
  flex-grow: 1;
16988
- padding: var(--spacing-xs);
16989
16994
  position: relative;
16990
16995
  max-width: 100%;
16991
16996
  `;
@@ -18769,20 +18774,20 @@ var editorPlaceholder = css85`
18769
18774
  `;
18770
18775
  var editorInput = css85`
18771
18776
  background: var(--white);
18772
- border: 1px solid var(--white);
18777
+ border: 1px solid var(--gray-200);
18773
18778
  border-radius: var(--rounded-sm);
18774
18779
  color: var(--gray-900);
18775
18780
  flex-grow: 1;
18776
18781
  font-size: var(--fs-base);
18777
18782
  line-height: 1.2;
18778
18783
  min-height: 2rem;
18779
- padding: var(--spacing-xs) var(--spacing-sm);
18784
+ padding: var(--spacing-sm);
18780
18785
 
18781
18786
  &:focus,
18782
18787
  &:focus-within {
18783
18788
  border-radius: var(--rounded-md);
18784
- box-shadow: none;
18785
- border: 1px solid var(--gray-300);
18789
+ box-shadow: var(--elevation-100);
18790
+ border: 1px solid var(--accent-dark-hover);
18786
18791
  outline: none;
18787
18792
  }
18788
18793
  `;
@@ -18908,6 +18913,9 @@ var RichText = ({
18908
18913
  removeUpdateListener();
18909
18914
  };
18910
18915
  }, [editor, onChange]);
18916
+ useEffect15(() => {
18917
+ editor.setEditable(!readOnly);
18918
+ }, [editor, readOnly]);
18911
18919
  return /* @__PURE__ */ jsxs71(Fragment18, { children: [
18912
18920
  readOnly ? null : /* @__PURE__ */ jsx106(RichTextToolbar_default, { config, customControls }),
18913
18921
  /* @__PURE__ */ jsxs71("div", { css: editorContainer, ref: editorContainerRef, "data-testid": "value-container", children: [
package/dist/index.js CHANGED
@@ -18332,7 +18332,7 @@ var input2 = import_react102.css`
18332
18332
  appearance: none;
18333
18333
  box-sizing: border-box;
18334
18334
  background: var(--white);
18335
- border: 1px solid var(--white);
18335
+ border: 1px solid var(--gray-200);
18336
18336
  border-radius: var(--rounded-sm);
18337
18337
  color: var(--gray-700);
18338
18338
  font-size: var(--fs-sm);
@@ -18353,11 +18353,15 @@ var input2 = import_react102.css`
18353
18353
  &:focus,
18354
18354
  &:focus-within {
18355
18355
  border-radius: var(--rounded-md);
18356
- box-shadow: none;
18357
- border: 1px solid var(--gray-300);
18356
+ box-shadow: var(--elevation-100);
18357
+ border: 1px solid var(--accent-dark-active);
18358
18358
  outline: none;
18359
18359
  }
18360
18360
 
18361
+ &:hover {
18362
+ border: 1px solid var(--accent-dark-hover);
18363
+ }
18364
+
18361
18365
  &:disabled,
18362
18366
  &:disabled::placeholder,
18363
18367
  &:disabled:hover {
@@ -18400,7 +18404,6 @@ var inputIcon2 = import_react102.css`
18400
18404
  `;
18401
18405
  var inputToggleLabel2 = import_react102.css`
18402
18406
  align-items: center;
18403
- background: var(--white);
18404
18407
  cursor: pointer;
18405
18408
  display: inline-flex;
18406
18409
  gap: var(--spacing-sm);
@@ -18411,10 +18414,10 @@ var inputToggleLabel2 = import_react102.css`
18411
18414
  `;
18412
18415
  var toggleInput2 = import_react102.css`
18413
18416
  appearance: none;
18414
- border: 1px solid var(--gray-300);
18417
+ border: 1px solid var(--gray-200);
18415
18418
  background: var(--white);
18416
- width: var(--spacing-md);
18417
- height: var(--spacing-md);
18419
+ width: var(--spacing-base);
18420
+ height: var(--spacing-base);
18418
18421
  transition: background var(--duration-fast) var(--timing-ease-out),
18419
18422
  border-color var(--duration-fast) var(--timing-ease-out),
18420
18423
  color var(--duration-fast) var(--timing-ease-out);
@@ -18429,19 +18432,23 @@ var toggleInput2 = import_react102.css`
18429
18432
  }
18430
18433
 
18431
18434
  &:where([type='checkbox']) {
18432
- border-radius: var(--rounded-md);
18435
+ border-radius: var(--rounded-sm);
18433
18436
  }
18434
18437
 
18435
18438
  &:checked,
18436
18439
  &:checked:hover,
18437
18440
  &: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")
18441
+ background: var(--accent-dark-active)
18442
+ 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
18443
  no-repeat center center;
18441
- border-color: var(--brand-secondary-3);
18444
+ border-color: var(--accent-dark-active);
18442
18445
  color: var(--white);
18443
18446
  }
18444
18447
 
18448
+ &:hover {
18449
+ border-color: var(--accent-dark-hover);
18450
+ }
18451
+
18445
18452
  &:disabled {
18446
18453
  cursor: not-allowed;
18447
18454
  color: var(--gray-400);
@@ -18449,7 +18456,7 @@ var toggleInput2 = import_react102.css`
18449
18456
  }
18450
18457
  `;
18451
18458
  var inlineLabel2 = import_react102.css`
18452
- padding-left: var(--spacing-lg);
18459
+ padding-left: var(--spacing-md);
18453
18460
  font-size: var(--fs-sm);
18454
18461
  font-weight: var(--fw-regular);
18455
18462
  translate: 0 1px; // brings the span into central alignment
@@ -18494,9 +18501,9 @@ var dataConnectButton = import_react102.css`
18494
18501
  appearance: none;
18495
18502
  box-sizing: border-box;
18496
18503
  background-color: var(--white);
18497
- border: 1px solid var(--brand-secondary-3);
18504
+ border: 1px solid var(--primary-action-default);
18498
18505
  border-radius: var(--rounded-md);
18499
- color: var(--brand-secondary-3);
18506
+ color: var(--primary-action-default);
18500
18507
  display: flex;
18501
18508
  padding: var(--spacing-sm);
18502
18509
  position: relative;
@@ -18801,9 +18808,7 @@ init_emotion_jsx_shim();
18801
18808
  var import_react109 = require("@emotion/react");
18802
18809
  var emptyParameterShell = import_react109.css`
18803
18810
  border-radius: var(--rounded-sm);
18804
- background: var(--white);
18805
18811
  flex-grow: 1;
18806
- padding: var(--spacing-xs);
18807
18812
  position: relative;
18808
18813
  max-width: 100%;
18809
18814
  `;
@@ -20562,20 +20567,20 @@ var editorPlaceholder = import_react121.css`
20562
20567
  `;
20563
20568
  var editorInput = import_react121.css`
20564
20569
  background: var(--white);
20565
- border: 1px solid var(--white);
20570
+ border: 1px solid var(--gray-200);
20566
20571
  border-radius: var(--rounded-sm);
20567
20572
  color: var(--gray-900);
20568
20573
  flex-grow: 1;
20569
20574
  font-size: var(--fs-base);
20570
20575
  line-height: 1.2;
20571
20576
  min-height: 2rem;
20572
- padding: var(--spacing-xs) var(--spacing-sm);
20577
+ padding: var(--spacing-sm);
20573
20578
 
20574
20579
  &:focus,
20575
20580
  &:focus-within {
20576
20581
  border-radius: var(--rounded-md);
20577
- box-shadow: none;
20578
- border: 1px solid var(--gray-300);
20582
+ box-shadow: var(--elevation-100);
20583
+ border: 1px solid var(--accent-dark-hover);
20579
20584
  outline: none;
20580
20585
  }
20581
20586
  `;
@@ -20701,6 +20706,9 @@ var RichText = ({
20701
20706
  removeUpdateListener();
20702
20707
  };
20703
20708
  }, [editor, onChange]);
20709
+ (0, import_react122.useEffect)(() => {
20710
+ editor.setEditable(!readOnly);
20711
+ }, [editor, readOnly]);
20704
20712
  return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
20705
20713
  readOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(RichTextToolbar_default, { config, customControls }),
20706
20714
  /* @__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-alpha.7+a4ee2d638",
3
+ "version": "19.94.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-alpha.7+a4ee2d638",
27
- "@uniformdev/richtext": "^19.92.3-alpha.7+a4ee2d638",
26
+ "@uniformdev/canvas": "^19.94.0",
27
+ "@uniformdev/richtext": "^19.94.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": "a4ee2d638902c3fb978d7c7344a1dbc52ec25912"
70
+ "gitHead": "83b33647cd09dafcd4ea23012c4e87a45b71c0af"
71
71
  }