@trycourier/react-designer 0.0.0-canary-20251210164636 → 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.
- package/dist/cjs/index.js +40 -40
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/styles.css +109 -20
- package/dist/components/ui/VariableEditor/VariableChipBase.d.ts +1 -1
- package/dist/esm/index.js +42 -42
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/styles.css +109 -20
- package/dist/styles.css +109 -20
- package/package.json +1 -1
package/dist/cjs/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
|
}
|
|
@@ -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,8 +2220,8 @@ body {
|
|
|
2214
2220
|
.courier-uppercase {
|
|
2215
2221
|
text-transform: uppercase;
|
|
2216
2222
|
}
|
|
2217
|
-
.courier-leading-\[
|
|
2218
|
-
line-height:
|
|
2223
|
+
.courier-leading-\[28px\] {
|
|
2224
|
+
line-height: 28px;
|
|
2219
2225
|
}
|
|
2220
2226
|
.courier-leading-none {
|
|
2221
2227
|
line-height: 1;
|
|
@@ -3040,10 +3046,15 @@ body {
|
|
|
3040
3046
|
.ProseMirror > .react-renderer.node-divider {
|
|
3041
3047
|
justify-content: center;
|
|
3042
3048
|
}
|
|
3043
|
-
.ProseMirror > .react-renderer.node-variable {
|
|
3044
|
-
margin: 0px;
|
|
3049
|
+
.ProseMirror > .react-renderer .node-variable {
|
|
3050
|
+
margin-top: 0px;
|
|
3051
|
+
margin-bottom: 0px;
|
|
3045
3052
|
}
|
|
3046
|
-
.ProseMirror > .react-renderer.node-variable {
|
|
3053
|
+
.ProseMirror > .react-renderer .node-variable {
|
|
3054
|
+
margin-left: 0.25rem !important;
|
|
3055
|
+
margin-right: 0.25rem !important;
|
|
3056
|
+
}
|
|
3057
|
+
.ProseMirror > .react-renderer .node-variable {
|
|
3047
3058
|
display: inline-block;
|
|
3048
3059
|
}
|
|
3049
3060
|
.ProseMirror > .react-renderer.node-dragPlaceholder {
|
|
@@ -4450,6 +4461,90 @@ body {
|
|
|
4450
4461
|
font-size: 0.8rem;
|
|
4451
4462
|
padding: 0;
|
|
4452
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
|
+
}
|
|
4453
4548
|
/* Variable Textarea placeholder styles */
|
|
4454
4549
|
.variable-textarea-placeholder .ProseMirror p.is-editor-empty:first-child::before,
|
|
4455
4550
|
.variable-textarea-placeholder .ProseMirror p.is-empty:first-child::before {
|
|
@@ -4470,7 +4565,7 @@ body {
|
|
|
4470
4565
|
margin: 0px;
|
|
4471
4566
|
}
|
|
4472
4567
|
.variable-input-placeholder .ProseMirror p {
|
|
4473
|
-
height:
|
|
4568
|
+
height: 28px;
|
|
4474
4569
|
}
|
|
4475
4570
|
.variable-input-placeholder .ProseMirror p {
|
|
4476
4571
|
width: 100%;
|
|
@@ -4485,7 +4580,7 @@ body {
|
|
|
4485
4580
|
padding: 0px;
|
|
4486
4581
|
}
|
|
4487
4582
|
.variable-input-placeholder .ProseMirror p {
|
|
4488
|
-
line-height:
|
|
4583
|
+
line-height: 28px;
|
|
4489
4584
|
}
|
|
4490
4585
|
.variable-input-placeholder .ProseMirror p {
|
|
4491
4586
|
outline: 2px solid transparent;
|
|
@@ -5005,15 +5100,9 @@ body {
|
|
|
5005
5100
|
.\[\&\>svg\]\:courier-shrink-0>svg {
|
|
5006
5101
|
flex-shrink: 0;
|
|
5007
5102
|
}
|
|
5008
|
-
.\[\&_\.ProseMirror\]\:courier-h-\[25px\] .ProseMirror {
|
|
5009
|
-
height: 25px;
|
|
5010
|
-
}
|
|
5011
5103
|
.\[\&_\.ProseMirror\]\:courier-min-h-\[20px\] .ProseMirror {
|
|
5012
5104
|
min-height: 20px;
|
|
5013
5105
|
}
|
|
5014
|
-
.\[\&_\.ProseMirror\]\:courier-flex-1 .ProseMirror {
|
|
5015
|
-
flex: 1 1 0%;
|
|
5016
|
-
}
|
|
5017
5106
|
.\[\&_\.ProseMirror\]\:courier-border-none .ProseMirror {
|
|
5018
5107
|
border-style: none;
|
|
5019
5108
|
}
|
|
@@ -29,7 +29,7 @@ export interface VariableChipBaseProps {
|
|
|
29
29
|
className?: string;
|
|
30
30
|
/** Override text color (e.g., for button context) */
|
|
31
31
|
textColorOverride?: string;
|
|
32
|
-
/** Custom color getter function */
|
|
32
|
+
/** Custom color getter function (kept for API compatibility, colors handled by CSS) */
|
|
33
33
|
getColors?: (isInvalid: boolean, hasValue: boolean) => VariableColors;
|
|
34
34
|
}
|
|
35
35
|
export declare const VariableChipBase: React.FC<VariableChipBaseProps>;
|