@trycourier/react-designer 0.0.0-canary-20251210153829 → 0.0.0-canary-20251211163746

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.
@@ -985,6 +985,9 @@ body {
985
985
  .courier-top-\[50\%\] {
986
986
  top: 50%;
987
987
  }
988
+ .courier-top-px {
989
+ top: 1px;
990
+ }
988
991
  .-courier-z-10 {
989
992
  z-index: -10;
990
993
  }
@@ -1027,10 +1030,6 @@ body {
1027
1030
  margin-left: -1rem;
1028
1031
  margin-right: -1rem;
1029
1032
  }
1030
- .courier-mx-0\.5 {
1031
- margin-left: 0.125rem;
1032
- margin-right: 0.125rem;
1033
- }
1034
1033
  .courier-mx-1 {
1035
1034
  margin-left: 0.25rem;
1036
1035
  margin-right: 0.25rem;
@@ -1047,6 +1046,10 @@ body {
1047
1046
  margin-left: auto;
1048
1047
  margin-right: auto;
1049
1048
  }
1049
+ .courier-my-0 {
1050
+ margin-top: 0px;
1051
+ margin-bottom: 0px;
1052
+ }
1050
1053
  .courier-my-1 {
1051
1054
  margin-top: 0.25rem;
1052
1055
  margin-bottom: 0.25rem;
@@ -1246,6 +1249,9 @@ body {
1246
1249
  .courier-h-\[25px\] {
1247
1250
  height: 25px;
1248
1251
  }
1252
+ .courier-h-\[28px\] {
1253
+ height: 28px;
1254
+ }
1249
1255
  .courier-h-\[300px\] {
1250
1256
  height: 300px;
1251
1257
  }
@@ -2075,6 +2081,9 @@ body {
2075
2081
  .courier-pb-0 {
2076
2082
  padding-bottom: 0px;
2077
2083
  }
2084
+ .courier-pb-0\.5 {
2085
+ padding-bottom: 0.125rem;
2086
+ }
2078
2087
  .courier-pb-1 {
2079
2088
  padding-bottom: 0.25rem;
2080
2089
  }
@@ -2090,9 +2099,6 @@ body {
2090
2099
  .courier-pb-6 {
2091
2100
  padding-bottom: 1.5rem;
2092
2101
  }
2093
- .courier-pb-px {
2094
- padding-bottom: 1px;
2095
- }
2096
2102
  .courier-pl-0 {
2097
2103
  padding-left: 0px;
2098
2104
  }
@@ -2132,6 +2138,9 @@ body {
2132
2138
  .courier-pt-0 {
2133
2139
  padding-top: 0px;
2134
2140
  }
2141
+ .courier-pt-0\.5 {
2142
+ padding-top: 0.125rem;
2143
+ }
2135
2144
  .courier-pt-2 {
2136
2145
  padding-top: 0.5rem;
2137
2146
  }
@@ -2150,9 +2159,6 @@ body {
2150
2159
  .courier-text-center {
2151
2160
  text-align: center;
2152
2161
  }
2153
- .courier-align-middle {
2154
- vertical-align: middle;
2155
- }
2156
2162
  .courier-font-mono {
2157
2163
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
2158
2164
  }
@@ -2214,6 +2220,9 @@ body {
2214
2220
  .courier-uppercase {
2215
2221
  text-transform: uppercase;
2216
2222
  }
2223
+ .courier-leading-\[28px\] {
2224
+ line-height: 28px;
2225
+ }
2217
2226
  .courier-leading-none {
2218
2227
  line-height: 1;
2219
2228
  }
@@ -3037,10 +3046,15 @@ body {
3037
3046
  .ProseMirror > .react-renderer.node-divider {
3038
3047
  justify-content: center;
3039
3048
  }
3040
- .ProseMirror > .react-renderer.node-variable {
3041
- margin: 0px;
3049
+ .ProseMirror > .react-renderer .node-variable {
3050
+ margin-top: 0px;
3051
+ margin-bottom: 0px;
3052
+ }
3053
+ .ProseMirror > .react-renderer .node-variable {
3054
+ margin-left: 0.25rem !important;
3055
+ margin-right: 0.25rem !important;
3042
3056
  }
3043
- .ProseMirror > .react-renderer.node-variable {
3057
+ .ProseMirror > .react-renderer .node-variable {
3044
3058
  display: inline-block;
3045
3059
  }
3046
3060
  .ProseMirror > .react-renderer.node-dragPlaceholder {
@@ -4447,6 +4461,90 @@ body {
4447
4461
  font-size: 0.8rem;
4448
4462
  padding: 0;
4449
4463
  }
4464
+ .courier-variable-chip {
4465
+ position: relative;
4466
+ display: inline-flex;
4467
+ max-width: 100%;
4468
+ align-items: center;
4469
+ padding-right: 0.375rem;
4470
+ padding-left: 1.5rem;
4471
+
4472
+ font-size: inherit;
4473
+ font-family: inherit;
4474
+ font-weight: inherit;
4475
+ }
4476
+ /* Default state - yellow/warning (no value) */
4477
+ .courier-variable-chip:before {
4478
+ content: "";
4479
+ }
4480
+ .courier-variable-chip:before {
4481
+ position: absolute;
4482
+ }
4483
+ .courier-variable-chip:before {
4484
+ left: 0px;
4485
+ }
4486
+ .courier-variable-chip:before {
4487
+ top: 1px;
4488
+ }
4489
+ .courier-variable-chip:before {
4490
+ height: 100%;
4491
+ }
4492
+ .courier-variable-chip:before {
4493
+ width: 100%;
4494
+ }
4495
+ .courier-variable-chip:before {
4496
+ border-radius: 0.25rem;
4497
+ }
4498
+ .courier-variable-chip:before {
4499
+ border-width: 1px;
4500
+ }
4501
+ .courier-variable-chip:before {
4502
+ background-color: #fffbeb;
4503
+ border-color: #fde68a;
4504
+ }
4505
+ /* Icon container - absolutely positioned */
4506
+ .courier-variable-chip > span:first-child {
4507
+ position: absolute;
4508
+ }
4509
+ .courier-variable-chip > span:first-child {
4510
+ left: 0.25rem;
4511
+ }
4512
+ .courier-variable-chip > span:first-child {
4513
+ top: 50%;
4514
+ }
4515
+ .courier-variable-chip > span:first-child {
4516
+ z-index: 10;
4517
+ }
4518
+ .courier-variable-chip > span:first-child {
4519
+ --tw-translate-y: -50%;
4520
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
4521
+ }
4522
+ /* Text span */
4523
+ .courier-variable-chip > span:last-child {
4524
+ position: relative;
4525
+ }
4526
+ .courier-variable-chip > span:last-child {
4527
+ z-index: 10;
4528
+ }
4529
+ .courier-variable-chip > span:last-child {
4530
+ color: #92400e;
4531
+ }
4532
+ /* Has value state - blue */
4533
+ .courier-variable-chip.courier-variable-chip-has-value:before {
4534
+ background-color: #eff6ff;
4535
+ border-color: #bfdbfe;
4536
+ }
4537
+ .courier-variable-chip.courier-variable-chip-has-value > span:last-child {
4538
+ color: #1e40af;
4539
+ }
4540
+ /* Invalid state - reddish */
4541
+ .courier-variable-chip.courier-variable-chip-invalid:before {
4542
+ background-color: #fef2f2;
4543
+ border-color: #fecaca;
4544
+ }
4545
+ .courier-variable-chip.courier-variable-chip-invalid > span:last-child {
4546
+ color: #991b1b;
4547
+ }
4450
4548
  /* Variable Textarea placeholder styles */
4451
4549
  .variable-textarea-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4452
4550
  .variable-textarea-placeholder .ProseMirror p.is-empty:first-child::before {
@@ -4457,14 +4555,45 @@ body {
4457
4555
  height: 0;
4458
4556
  }
4459
4557
  /* Variable Input placeholder styles */
4460
- .variable-input-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4461
- .variable-input-placeholder .ProseMirror p.is-empty:first-child::before {
4462
- content: attr(data-placeholder);
4463
- float: left;
4464
- color: var(--muted-foreground);
4465
- pointer-events: none;
4466
- height: 0;
4558
+ .variable-input-placeholder .ProseMirror {
4559
+ width: 100%;
4467
4560
  }
4561
+ .variable-input-placeholder .ProseMirror {
4562
+ padding: 0px;
4563
+ }
4564
+ .variable-input-placeholder .ProseMirror p {
4565
+ margin: 0px;
4566
+ }
4567
+ .variable-input-placeholder .ProseMirror p {
4568
+ height: 28px;
4569
+ }
4570
+ .variable-input-placeholder .ProseMirror p {
4571
+ width: 100%;
4572
+ }
4573
+ .variable-input-placeholder .ProseMirror p {
4574
+ cursor: text;
4575
+ }
4576
+ .variable-input-placeholder .ProseMirror p {
4577
+ border-style: none;
4578
+ }
4579
+ .variable-input-placeholder .ProseMirror p {
4580
+ padding: 0px;
4581
+ }
4582
+ .variable-input-placeholder .ProseMirror p {
4583
+ line-height: 28px;
4584
+ }
4585
+ .variable-input-placeholder .ProseMirror p {
4586
+ outline: 2px solid transparent;
4587
+ outline-offset: 2px;
4588
+ }
4589
+ .variable-input-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4590
+ .variable-input-placeholder .ProseMirror p.is-empty:first-child::before {
4591
+ content: attr(data-placeholder);
4592
+ float: left;
4593
+ color: var(--muted-foreground);
4594
+ pointer-events: none;
4595
+ height: 0;
4596
+ }
4468
4597
  .file\:courier-border-0::file-selector-button {
4469
4598
  border-width: 0px;
4470
4599
  }
@@ -4971,15 +5100,9 @@ body {
4971
5100
  .\[\&\>svg\]\:courier-shrink-0>svg {
4972
5101
  flex-shrink: 0;
4973
5102
  }
4974
- .\[\&_\.ProseMirror\]\:courier-h-\[25px\] .ProseMirror {
4975
- height: 25px;
4976
- }
4977
5103
  .\[\&_\.ProseMirror\]\:courier-min-h-\[20px\] .ProseMirror {
4978
5104
  min-height: 20px;
4979
5105
  }
4980
- .\[\&_\.ProseMirror\]\:courier-flex-1 .ProseMirror {
4981
- flex: 1 1 0%;
4982
- }
4983
5106
  .\[\&_\.ProseMirror\]\:courier-border-none .ProseMirror {
4984
5107
  border-style: none;
4985
5108
  }
package/dist/styles.css CHANGED
@@ -985,6 +985,9 @@ body {
985
985
  .courier-top-\[50\%\] {
986
986
  top: 50%;
987
987
  }
988
+ .courier-top-px {
989
+ top: 1px;
990
+ }
988
991
  .-courier-z-10 {
989
992
  z-index: -10;
990
993
  }
@@ -1027,10 +1030,6 @@ body {
1027
1030
  margin-left: -1rem;
1028
1031
  margin-right: -1rem;
1029
1032
  }
1030
- .courier-mx-0\.5 {
1031
- margin-left: 0.125rem;
1032
- margin-right: 0.125rem;
1033
- }
1034
1033
  .courier-mx-1 {
1035
1034
  margin-left: 0.25rem;
1036
1035
  margin-right: 0.25rem;
@@ -1047,6 +1046,10 @@ body {
1047
1046
  margin-left: auto;
1048
1047
  margin-right: auto;
1049
1048
  }
1049
+ .courier-my-0 {
1050
+ margin-top: 0px;
1051
+ margin-bottom: 0px;
1052
+ }
1050
1053
  .courier-my-1 {
1051
1054
  margin-top: 0.25rem;
1052
1055
  margin-bottom: 0.25rem;
@@ -1246,6 +1249,9 @@ body {
1246
1249
  .courier-h-\[25px\] {
1247
1250
  height: 25px;
1248
1251
  }
1252
+ .courier-h-\[28px\] {
1253
+ height: 28px;
1254
+ }
1249
1255
  .courier-h-\[300px\] {
1250
1256
  height: 300px;
1251
1257
  }
@@ -2075,6 +2081,9 @@ body {
2075
2081
  .courier-pb-0 {
2076
2082
  padding-bottom: 0px;
2077
2083
  }
2084
+ .courier-pb-0\.5 {
2085
+ padding-bottom: 0.125rem;
2086
+ }
2078
2087
  .courier-pb-1 {
2079
2088
  padding-bottom: 0.25rem;
2080
2089
  }
@@ -2090,9 +2099,6 @@ body {
2090
2099
  .courier-pb-6 {
2091
2100
  padding-bottom: 1.5rem;
2092
2101
  }
2093
- .courier-pb-px {
2094
- padding-bottom: 1px;
2095
- }
2096
2102
  .courier-pl-0 {
2097
2103
  padding-left: 0px;
2098
2104
  }
@@ -2132,6 +2138,9 @@ body {
2132
2138
  .courier-pt-0 {
2133
2139
  padding-top: 0px;
2134
2140
  }
2141
+ .courier-pt-0\.5 {
2142
+ padding-top: 0.125rem;
2143
+ }
2135
2144
  .courier-pt-2 {
2136
2145
  padding-top: 0.5rem;
2137
2146
  }
@@ -2150,9 +2159,6 @@ body {
2150
2159
  .courier-text-center {
2151
2160
  text-align: center;
2152
2161
  }
2153
- .courier-align-middle {
2154
- vertical-align: middle;
2155
- }
2156
2162
  .courier-font-mono {
2157
2163
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
2158
2164
  }
@@ -2214,6 +2220,9 @@ body {
2214
2220
  .courier-uppercase {
2215
2221
  text-transform: uppercase;
2216
2222
  }
2223
+ .courier-leading-\[28px\] {
2224
+ line-height: 28px;
2225
+ }
2217
2226
  .courier-leading-none {
2218
2227
  line-height: 1;
2219
2228
  }
@@ -3037,10 +3046,15 @@ body {
3037
3046
  .ProseMirror > .react-renderer.node-divider {
3038
3047
  justify-content: center;
3039
3048
  }
3040
- .ProseMirror > .react-renderer.node-variable {
3041
- margin: 0px;
3049
+ .ProseMirror > .react-renderer .node-variable {
3050
+ margin-top: 0px;
3051
+ margin-bottom: 0px;
3052
+ }
3053
+ .ProseMirror > .react-renderer .node-variable {
3054
+ margin-left: 0.25rem !important;
3055
+ margin-right: 0.25rem !important;
3042
3056
  }
3043
- .ProseMirror > .react-renderer.node-variable {
3057
+ .ProseMirror > .react-renderer .node-variable {
3044
3058
  display: inline-block;
3045
3059
  }
3046
3060
  .ProseMirror > .react-renderer.node-dragPlaceholder {
@@ -4447,6 +4461,90 @@ body {
4447
4461
  font-size: 0.8rem;
4448
4462
  padding: 0;
4449
4463
  }
4464
+ .courier-variable-chip {
4465
+ position: relative;
4466
+ display: inline-flex;
4467
+ max-width: 100%;
4468
+ align-items: center;
4469
+ padding-right: 0.375rem;
4470
+ padding-left: 1.5rem;
4471
+
4472
+ font-size: inherit;
4473
+ font-family: inherit;
4474
+ font-weight: inherit;
4475
+ }
4476
+ /* Default state - yellow/warning (no value) */
4477
+ .courier-variable-chip:before {
4478
+ content: "";
4479
+ }
4480
+ .courier-variable-chip:before {
4481
+ position: absolute;
4482
+ }
4483
+ .courier-variable-chip:before {
4484
+ left: 0px;
4485
+ }
4486
+ .courier-variable-chip:before {
4487
+ top: 1px;
4488
+ }
4489
+ .courier-variable-chip:before {
4490
+ height: 100%;
4491
+ }
4492
+ .courier-variable-chip:before {
4493
+ width: 100%;
4494
+ }
4495
+ .courier-variable-chip:before {
4496
+ border-radius: 0.25rem;
4497
+ }
4498
+ .courier-variable-chip:before {
4499
+ border-width: 1px;
4500
+ }
4501
+ .courier-variable-chip:before {
4502
+ background-color: #fffbeb;
4503
+ border-color: #fde68a;
4504
+ }
4505
+ /* Icon container - absolutely positioned */
4506
+ .courier-variable-chip > span:first-child {
4507
+ position: absolute;
4508
+ }
4509
+ .courier-variable-chip > span:first-child {
4510
+ left: 0.25rem;
4511
+ }
4512
+ .courier-variable-chip > span:first-child {
4513
+ top: 50%;
4514
+ }
4515
+ .courier-variable-chip > span:first-child {
4516
+ z-index: 10;
4517
+ }
4518
+ .courier-variable-chip > span:first-child {
4519
+ --tw-translate-y: -50%;
4520
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
4521
+ }
4522
+ /* Text span */
4523
+ .courier-variable-chip > span:last-child {
4524
+ position: relative;
4525
+ }
4526
+ .courier-variable-chip > span:last-child {
4527
+ z-index: 10;
4528
+ }
4529
+ .courier-variable-chip > span:last-child {
4530
+ color: #92400e;
4531
+ }
4532
+ /* Has value state - blue */
4533
+ .courier-variable-chip.courier-variable-chip-has-value:before {
4534
+ background-color: #eff6ff;
4535
+ border-color: #bfdbfe;
4536
+ }
4537
+ .courier-variable-chip.courier-variable-chip-has-value > span:last-child {
4538
+ color: #1e40af;
4539
+ }
4540
+ /* Invalid state - reddish */
4541
+ .courier-variable-chip.courier-variable-chip-invalid:before {
4542
+ background-color: #fef2f2;
4543
+ border-color: #fecaca;
4544
+ }
4545
+ .courier-variable-chip.courier-variable-chip-invalid > span:last-child {
4546
+ color: #991b1b;
4547
+ }
4450
4548
  /* Variable Textarea placeholder styles */
4451
4549
  .variable-textarea-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4452
4550
  .variable-textarea-placeholder .ProseMirror p.is-empty:first-child::before {
@@ -4457,14 +4555,45 @@ body {
4457
4555
  height: 0;
4458
4556
  }
4459
4557
  /* Variable Input placeholder styles */
4460
- .variable-input-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4461
- .variable-input-placeholder .ProseMirror p.is-empty:first-child::before {
4462
- content: attr(data-placeholder);
4463
- float: left;
4464
- color: var(--muted-foreground);
4465
- pointer-events: none;
4466
- height: 0;
4558
+ .variable-input-placeholder .ProseMirror {
4559
+ width: 100%;
4467
4560
  }
4561
+ .variable-input-placeholder .ProseMirror {
4562
+ padding: 0px;
4563
+ }
4564
+ .variable-input-placeholder .ProseMirror p {
4565
+ margin: 0px;
4566
+ }
4567
+ .variable-input-placeholder .ProseMirror p {
4568
+ height: 28px;
4569
+ }
4570
+ .variable-input-placeholder .ProseMirror p {
4571
+ width: 100%;
4572
+ }
4573
+ .variable-input-placeholder .ProseMirror p {
4574
+ cursor: text;
4575
+ }
4576
+ .variable-input-placeholder .ProseMirror p {
4577
+ border-style: none;
4578
+ }
4579
+ .variable-input-placeholder .ProseMirror p {
4580
+ padding: 0px;
4581
+ }
4582
+ .variable-input-placeholder .ProseMirror p {
4583
+ line-height: 28px;
4584
+ }
4585
+ .variable-input-placeholder .ProseMirror p {
4586
+ outline: 2px solid transparent;
4587
+ outline-offset: 2px;
4588
+ }
4589
+ .variable-input-placeholder .ProseMirror p.is-editor-empty:first-child::before,
4590
+ .variable-input-placeholder .ProseMirror p.is-empty:first-child::before {
4591
+ content: attr(data-placeholder);
4592
+ float: left;
4593
+ color: var(--muted-foreground);
4594
+ pointer-events: none;
4595
+ height: 0;
4596
+ }
4468
4597
  .file\:courier-border-0::file-selector-button {
4469
4598
  border-width: 0px;
4470
4599
  }
@@ -4971,15 +5100,9 @@ body {
4971
5100
  .\[\&\>svg\]\:courier-shrink-0>svg {
4972
5101
  flex-shrink: 0;
4973
5102
  }
4974
- .\[\&_\.ProseMirror\]\:courier-h-\[25px\] .ProseMirror {
4975
- height: 25px;
4976
- }
4977
5103
  .\[\&_\.ProseMirror\]\:courier-min-h-\[20px\] .ProseMirror {
4978
5104
  min-height: 20px;
4979
5105
  }
4980
- .\[\&_\.ProseMirror\]\:courier-flex-1 .ProseMirror {
4981
- flex: 1 1 0%;
4982
- }
4983
5106
  .\[\&_\.ProseMirror\]\:courier-border-none .ProseMirror {
4984
5107
  border-style: none;
4985
5108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/react-designer",
3
- "version": "0.0.0-canary-20251210153829",
3
+ "version": "0.0.0-canary-20251211163746",
4
4
  "description": "React-based rich text designer component",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",