@uniformdev/mesh-sdk-react 18.19.0 → 18.20.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/index.d.ts +1 -1
- package/dist/index.esm.js +44 -502
- package/dist/index.js +67 -523
- package/dist/index.mjs +44 -502
- package/package.json +5 -6
package/dist/index.mjs
CHANGED
|
@@ -2773,6 +2773,11 @@ var menuItemTextGroup = css18`
|
|
|
2773
2773
|
var smallText = css18`
|
|
2774
2774
|
font-size: var(--fs-xs);
|
|
2775
2775
|
`;
|
|
2776
|
+
var variablesTipText = css18`
|
|
2777
|
+
${smallText}
|
|
2778
|
+
color: var(--gray-500);
|
|
2779
|
+
padding: 0 var(--spacing-sm);
|
|
2780
|
+
`;
|
|
2776
2781
|
|
|
2777
2782
|
// src/components/Variables/VariablesProvider.tsx
|
|
2778
2783
|
import * as React10 from "react";
|
|
@@ -2792,504 +2797,6 @@ var variablesFormBtnGroup = css19`
|
|
|
2792
2797
|
display: flex;
|
|
2793
2798
|
gap: var(--spacing-sm);
|
|
2794
2799
|
`;
|
|
2795
|
-
var tagifyStyles = css19`
|
|
2796
|
-
:root {
|
|
2797
|
-
--tagify-dd-color-primary: rgb(53, 149, 246);
|
|
2798
|
-
--tagify-dd-bg-color: var(--white);
|
|
2799
|
-
--tagify-dd-item-pad: var(--spacing-xs) var(--spacing-sm);
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
.tagify {
|
|
2803
|
-
--tags-disabled-bg: #f1f1f1;
|
|
2804
|
-
--tags-border-color: var(--gray-400);
|
|
2805
|
-
--tags-hover-border-color: var(--gray-300);
|
|
2806
|
-
--tags-focus-border-color: var(--brand-secondary-1);
|
|
2807
|
-
--tag-border-radius: var(--rounded-md);
|
|
2808
|
-
--tag-bg: var(--gray-100);
|
|
2809
|
-
--tag-hover: var(--gray-200);
|
|
2810
|
-
--tag-text-color: var(--brand-secondary-1);
|
|
2811
|
-
--tag-text-color--edit: var(--brand-secondary-1);
|
|
2812
|
-
--tag-pad: var(--spacing-2xs) var(--spacing-sm);
|
|
2813
|
-
--tag-inset-shadow-size: 1rem;
|
|
2814
|
-
--tag-invalid-color: #d39494;
|
|
2815
|
-
--tag-invalid-bg: rgba(211, 148, 148, 0.5);
|
|
2816
|
-
--tag-remove-bg: rgba(211, 148, 148, 0.3);
|
|
2817
|
-
--tag-remove-btn-color: black;
|
|
2818
|
-
--tag-remove-btn-bg: none;
|
|
2819
|
-
--tag-remove-btn-bg--hover: #c77777;
|
|
2820
|
-
--input-color: inherit;
|
|
2821
|
-
--tag--min-width: 1ch;
|
|
2822
|
-
--tag--max-width: auto;
|
|
2823
|
-
--tag-hide-transition: 0.3s;
|
|
2824
|
-
--placeholder-color: rgba(0, 0, 0, 0.4);
|
|
2825
|
-
--placeholder-color-focus: rgba(0, 0, 0, 0.25);
|
|
2826
|
-
--loader-size: 0.8em;
|
|
2827
|
-
--readonly-striped: 1;
|
|
2828
|
-
|
|
2829
|
-
background: var(--white);
|
|
2830
|
-
display: inline-flex;
|
|
2831
|
-
align-items: flex-start;
|
|
2832
|
-
flex-wrap: wrap;
|
|
2833
|
-
border-radius: var(--rounded-md);
|
|
2834
|
-
outline: 1px solid var(--gray-400);
|
|
2835
|
-
padding: 0;
|
|
2836
|
-
line-height: 0;
|
|
2837
|
-
cursor: text;
|
|
2838
|
-
position: relative;
|
|
2839
|
-
box-sizing: border-box;
|
|
2840
|
-
transition: 0.1s;
|
|
2841
|
-
word-break: break-word;
|
|
2842
|
-
}
|
|
2843
|
-
.tagify:hover:not(.tagify--focus):not(.tagify--invalid) {
|
|
2844
|
-
--tags-border-color: var(--tags-hover-border-color);
|
|
2845
|
-
}
|
|
2846
|
-
.tagify[disabled] {
|
|
2847
|
-
background: var(--tags-disabled-bg);
|
|
2848
|
-
filter: saturate(0);
|
|
2849
|
-
opacity: 0.5;
|
|
2850
|
-
pointer-events: none;
|
|
2851
|
-
}
|
|
2852
|
-
.tagify[disabled].tagify--select,
|
|
2853
|
-
.tagify[readonly].tagify--select {
|
|
2854
|
-
pointer-events: none;
|
|
2855
|
-
}
|
|
2856
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select),
|
|
2857
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) {
|
|
2858
|
-
cursor: default;
|
|
2859
|
-
}
|
|
2860
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) > .tagify__input,
|
|
2861
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) > .tagify__input {
|
|
2862
|
-
visibility: hidden;
|
|
2863
|
-
width: 0;
|
|
2864
|
-
margin: 5px 0;
|
|
2865
|
-
}
|
|
2866
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div,
|
|
2867
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div {
|
|
2868
|
-
padding: var(--tag-pad);
|
|
2869
|
-
}
|
|
2870
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div::before,
|
|
2871
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div::before {
|
|
2872
|
-
animation: readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused;
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
|
-
.tagify[disabled] .tagify__tag__removeBtn,
|
|
2876
|
-
.tagify[readonly] .tagify__tag__removeBtn {
|
|
2877
|
-
display: none;
|
|
2878
|
-
}
|
|
2879
|
-
.tagify--loading .tagify__input > br:last-child {
|
|
2880
|
-
display: none;
|
|
2881
|
-
}
|
|
2882
|
-
.tagify--loading .tagify__input::before {
|
|
2883
|
-
content: none;
|
|
2884
|
-
}
|
|
2885
|
-
.tagify--loading .tagify__input::after {
|
|
2886
|
-
content: '';
|
|
2887
|
-
vertical-align: middle;
|
|
2888
|
-
opacity: 1;
|
|
2889
|
-
width: 0.7em;
|
|
2890
|
-
height: 0.7em;
|
|
2891
|
-
width: var(--loader-size);
|
|
2892
|
-
height: var(--loader-size);
|
|
2893
|
-
min-width: 0;
|
|
2894
|
-
border: 3px solid;
|
|
2895
|
-
border-color: #eee #bbb #888 transparent;
|
|
2896
|
-
border-radius: 50%;
|
|
2897
|
-
animation: rotateLoader 0.4s infinite linear;
|
|
2898
|
-
content: '' !important;
|
|
2899
|
-
margin: -2px 0 -2px 0.5em;
|
|
2900
|
-
}
|
|
2901
|
-
.tagify--loading .tagify__input:empty::after {
|
|
2902
|
-
margin-left: 0;
|
|
2903
|
-
}
|
|
2904
|
-
.tagify + input,
|
|
2905
|
-
.tagify + textarea {
|
|
2906
|
-
position: absolute !important;
|
|
2907
|
-
left: -9999em !important;
|
|
2908
|
-
transform: scale(0) !important;
|
|
2909
|
-
}
|
|
2910
|
-
.tagify__tag {
|
|
2911
|
-
display: inline-flex;
|
|
2912
|
-
align-items: center;
|
|
2913
|
-
margin: 5px 0 5px 5px;
|
|
2914
|
-
position: relative;
|
|
2915
|
-
z-index: 1;
|
|
2916
|
-
outline: 0;
|
|
2917
|
-
line-height: normal;
|
|
2918
|
-
cursor: default;
|
|
2919
|
-
transition: 0.13s ease-out;
|
|
2920
|
-
}
|
|
2921
|
-
.tagify__tag > div {
|
|
2922
|
-
vertical-align: top;
|
|
2923
|
-
box-sizing: border-box;
|
|
2924
|
-
max-width: 100%;
|
|
2925
|
-
padding: var(--tag-pad);
|
|
2926
|
-
color: var(--tag-text-color);
|
|
2927
|
-
line-height: inherit;
|
|
2928
|
-
border-radius: var(--tag-border-radius);
|
|
2929
|
-
white-space: nowrap;
|
|
2930
|
-
transition: 0.13s ease-out;
|
|
2931
|
-
}
|
|
2932
|
-
.tagify__tag > div > * {
|
|
2933
|
-
white-space: pre-wrap;
|
|
2934
|
-
overflow: hidden;
|
|
2935
|
-
text-overflow: ellipsis;
|
|
2936
|
-
display: inline-block;
|
|
2937
|
-
vertical-align: top;
|
|
2938
|
-
min-width: var(--tag--min-width);
|
|
2939
|
-
max-width: var(--tag--max-width);
|
|
2940
|
-
transition: 0.8s ease, 0.1s color;
|
|
2941
|
-
}
|
|
2942
|
-
.tagify__tag > div > [contenteditable] {
|
|
2943
|
-
outline: 0;
|
|
2944
|
-
-webkit-user-select: text;
|
|
2945
|
-
user-select: text;
|
|
2946
|
-
cursor: text;
|
|
2947
|
-
margin: -2px;
|
|
2948
|
-
padding: 2px;
|
|
2949
|
-
max-width: 350px;
|
|
2950
|
-
}
|
|
2951
|
-
.tagify__tag > div::before {
|
|
2952
|
-
content: '';
|
|
2953
|
-
position: absolute;
|
|
2954
|
-
border-radius: inherit;
|
|
2955
|
-
inset: var(--tag-bg-inset, 0);
|
|
2956
|
-
z-index: -1;
|
|
2957
|
-
pointer-events: none;
|
|
2958
|
-
transition: 120ms ease;
|
|
2959
|
-
animation: tags--bump 0.3s ease-out 1;
|
|
2960
|
-
background: var(--tag-bg);
|
|
2961
|
-
}
|
|
2962
|
-
.tagify__tag:focus div::before,
|
|
2963
|
-
.tagify__tag:hover:not([readonly]) div::before {
|
|
2964
|
-
--tag-bg-inset: -2.5px;
|
|
2965
|
-
--tag-bg: var(--tag-hover);
|
|
2966
|
-
}
|
|
2967
|
-
.tagify__tag--loading {
|
|
2968
|
-
pointer-events: none;
|
|
2969
|
-
}
|
|
2970
|
-
.tagify__tag--loading .tagify__tag__removeBtn {
|
|
2971
|
-
display: none;
|
|
2972
|
-
}
|
|
2973
|
-
.tagify__tag--loading::after {
|
|
2974
|
-
--loader-size: 0.4em;
|
|
2975
|
-
content: '';
|
|
2976
|
-
vertical-align: middle;
|
|
2977
|
-
opacity: 1;
|
|
2978
|
-
width: 0.7em;
|
|
2979
|
-
height: 0.7em;
|
|
2980
|
-
width: var(--loader-size);
|
|
2981
|
-
height: var(--loader-size);
|
|
2982
|
-
min-width: 0;
|
|
2983
|
-
border: 3px solid;
|
|
2984
|
-
border-color: #eee #bbb #888 transparent;
|
|
2985
|
-
border-radius: 50%;
|
|
2986
|
-
animation: rotateLoader 0.4s infinite linear;
|
|
2987
|
-
margin: 0 0.5em 0 -0.1em;
|
|
2988
|
-
}
|
|
2989
|
-
.tagify__tag--flash div::before {
|
|
2990
|
-
animation: none;
|
|
2991
|
-
}
|
|
2992
|
-
.tagify__tag--hide {
|
|
2993
|
-
width: 0 !important;
|
|
2994
|
-
padding-left: 0;
|
|
2995
|
-
padding-right: 0;
|
|
2996
|
-
margin-left: 0;
|
|
2997
|
-
margin-right: 0;
|
|
2998
|
-
opacity: 0;
|
|
2999
|
-
transform: scale(0);
|
|
3000
|
-
transition: var(--tag-hide-transition);
|
|
3001
|
-
pointer-events: none;
|
|
3002
|
-
}
|
|
3003
|
-
.tagify__tag--hide > div > * {
|
|
3004
|
-
white-space: nowrap;
|
|
3005
|
-
}
|
|
3006
|
-
.tagify__tag.tagify--noAnim > div::before {
|
|
3007
|
-
animation: none;
|
|
3008
|
-
}
|
|
3009
|
-
.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div > span {
|
|
3010
|
-
opacity: 0.5;
|
|
3011
|
-
}
|
|
3012
|
-
.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div::before {
|
|
3013
|
-
--tag-bg: var(--tag-invalid-bg);
|
|
3014
|
-
transition: 0.2s;
|
|
3015
|
-
}
|
|
3016
|
-
.tagify__tag[readonly] .tagify__tag__removeBtn {
|
|
3017
|
-
display: none;
|
|
3018
|
-
}
|
|
3019
|
-
.tagify__tag[readonly] > div::before {
|
|
3020
|
-
animation: readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused;
|
|
3021
|
-
}
|
|
3022
|
-
|
|
3023
|
-
.tagify__tag--editable > div {
|
|
3024
|
-
color: var(--tag-text-color--edit);
|
|
3025
|
-
}
|
|
3026
|
-
.tagify__tag--editable > div::before {
|
|
3027
|
-
background-color: var(--tag-hover) !important;
|
|
3028
|
-
}
|
|
3029
|
-
.tagify__tag--editable > .tagify__tag__removeBtn {
|
|
3030
|
-
pointer-events: none;
|
|
3031
|
-
}
|
|
3032
|
-
.tagify__tag--editable > .tagify__tag__removeBtn::after {
|
|
3033
|
-
opacity: 0;
|
|
3034
|
-
transform: translateX(100%) translateX(5px);
|
|
3035
|
-
}
|
|
3036
|
-
.tagify__tag--editable.tagify--invalid > div::before {
|
|
3037
|
-
background-color: var(--tag-invalid-color) !important;
|
|
3038
|
-
}
|
|
3039
|
-
.tagify__tag__removeBtn {
|
|
3040
|
-
order: 5;
|
|
3041
|
-
display: inline-flex;
|
|
3042
|
-
align-items: center;
|
|
3043
|
-
justify-content: center;
|
|
3044
|
-
border-radius: 50px;
|
|
3045
|
-
cursor: pointer;
|
|
3046
|
-
font: 14px/1 Arial;
|
|
3047
|
-
background: var(--tag-remove-btn-bg);
|
|
3048
|
-
color: var(--tag-remove-btn-color);
|
|
3049
|
-
width: 14px;
|
|
3050
|
-
height: 14px;
|
|
3051
|
-
margin-right: 4.6666666667px;
|
|
3052
|
-
margin-left: auto;
|
|
3053
|
-
overflow: hidden;
|
|
3054
|
-
transition: 0.2s ease-out;
|
|
3055
|
-
}
|
|
3056
|
-
.tagify__tag__removeBtn::after {
|
|
3057
|
-
content: '×';
|
|
3058
|
-
transition: 0.3s, color 0s;
|
|
3059
|
-
}
|
|
3060
|
-
.tagify__tag__removeBtn:hover {
|
|
3061
|
-
color: var(--white);
|
|
3062
|
-
background: var(--tag-remove-btn-bg--hover);
|
|
3063
|
-
}
|
|
3064
|
-
.tagify__tag__removeBtn:hover + div > span {
|
|
3065
|
-
opacity: 0.5;
|
|
3066
|
-
}
|
|
3067
|
-
.tagify__tag__removeBtn:hover + div::before {
|
|
3068
|
-
background: var(--tag-remove-bg);
|
|
3069
|
-
transition: background-color 0.2s;
|
|
3070
|
-
}
|
|
3071
|
-
.tagify:not(.tagify--mix) .tagify__input br {
|
|
3072
|
-
display: none;
|
|
3073
|
-
}
|
|
3074
|
-
.tagify:not(.tagify--mix) .tagify__input * {
|
|
3075
|
-
display: inline;
|
|
3076
|
-
white-space: nowrap;
|
|
3077
|
-
}
|
|
3078
|
-
.tagify__input {
|
|
3079
|
-
border-radius: var(--rounded-md);
|
|
3080
|
-
flex-grow: 1;
|
|
3081
|
-
display: inline-block;
|
|
3082
|
-
min-width: 110px;
|
|
3083
|
-
margin: 5px;
|
|
3084
|
-
padding: var(--spacing-base) var(--spacing-md) var(--spacing-base) var(--spacing-base);
|
|
3085
|
-
line-height: normal;
|
|
3086
|
-
position: relative;
|
|
3087
|
-
white-space: pre-wrap;
|
|
3088
|
-
color: var(--input-color);
|
|
3089
|
-
box-sizing: inherit;
|
|
3090
|
-
}
|
|
3091
|
-
.tagify__input:empty::before {
|
|
3092
|
-
position: static;
|
|
3093
|
-
}
|
|
3094
|
-
.tagify__input:focus {
|
|
3095
|
-
outline: 0;
|
|
3096
|
-
}
|
|
3097
|
-
.tagify__input:focus::before {
|
|
3098
|
-
transition: 0.2s ease-out;
|
|
3099
|
-
opacity: 0;
|
|
3100
|
-
transform: translatex(6px);
|
|
3101
|
-
}
|
|
3102
|
-
.tagify__input:focus:empty::before {
|
|
3103
|
-
transition: 0.2s ease-out;
|
|
3104
|
-
opacity: 1;
|
|
3105
|
-
transform: none;
|
|
3106
|
-
color: rgba(0, 0, 0, 0.25);
|
|
3107
|
-
color: var(--placeholder-color-focus);
|
|
3108
|
-
}
|
|
3109
|
-
.tagify__input::before {
|
|
3110
|
-
content: attr(data-placeholder);
|
|
3111
|
-
height: 1em;
|
|
3112
|
-
line-height: 1em;
|
|
3113
|
-
margin: auto 0;
|
|
3114
|
-
z-index: 1;
|
|
3115
|
-
color: var(--placeholder-color);
|
|
3116
|
-
white-space: nowrap;
|
|
3117
|
-
pointer-events: none;
|
|
3118
|
-
opacity: 0;
|
|
3119
|
-
position: absolute;
|
|
3120
|
-
}
|
|
3121
|
-
.tagify__input::after {
|
|
3122
|
-
content: attr(data-suggest);
|
|
3123
|
-
display: inline-block;
|
|
3124
|
-
vertical-align: middle;
|
|
3125
|
-
position: absolute;
|
|
3126
|
-
min-width: calc(100% - 1.5em);
|
|
3127
|
-
text-overflow: ellipsis;
|
|
3128
|
-
overflow: hidden;
|
|
3129
|
-
white-space: pre;
|
|
3130
|
-
color: var(--tag-text-color);
|
|
3131
|
-
opacity: 0.3;
|
|
3132
|
-
pointer-events: none;
|
|
3133
|
-
max-width: 100px;
|
|
3134
|
-
}
|
|
3135
|
-
.tagify__input .tagify__tag {
|
|
3136
|
-
margin: 0 1px;
|
|
3137
|
-
}
|
|
3138
|
-
.tagify--mix {
|
|
3139
|
-
display: block;
|
|
3140
|
-
}
|
|
3141
|
-
.tagify--mix .tagify__input {
|
|
3142
|
-
background-image: url("data:image/svg+xml,%3Csvg width='18' height='10' viewBox='0 0 18 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13 6C13.5523 6 14 5.55228 14 5C14 4.44772 13.5523 4 13 4L5 4C4.44771 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6L13 6Z' fill='%23D1D5DB'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18 5C18 7.76142 15.7614 10 13 10L5 10C2.23858 10 0 7.76142 0 5C0 2.23858 2.23858 0 5 0L13 0C15.7614 0 18 2.23858 18 5ZM13 8L5 8C3.34315 8 2 6.65685 2 5C2 3.34315 3.34315 2 5 2L13 2C14.6569 2 16 3.34315 16 5C16 6.65685 14.6569 8 13 8Z' fill='%23D1D5DB'/%3E%3C/svg%3E%0A");
|
|
3143
|
-
background-repeat: no-repeat;
|
|
3144
|
-
background-position: right var(--spacing-sm) center;
|
|
3145
|
-
padding: var(--spacing-base) var(--spacing-xl) var(--spacing-base) var(--spacing-base);
|
|
3146
|
-
margin: 0;
|
|
3147
|
-
width: 100%;
|
|
3148
|
-
height: 100%;
|
|
3149
|
-
display: block;
|
|
3150
|
-
min-height: 54px;
|
|
3151
|
-
}
|
|
3152
|
-
.tagify--mix .tagify__input::before {
|
|
3153
|
-
height: auto;
|
|
3154
|
-
display: none;
|
|
3155
|
-
line-height: inherit;
|
|
3156
|
-
}
|
|
3157
|
-
.tagify--mix .tagify__input::after {
|
|
3158
|
-
content: none;
|
|
3159
|
-
}
|
|
3160
|
-
.tagify--select::after {
|
|
3161
|
-
content: '>';
|
|
3162
|
-
opacity: 0.5;
|
|
3163
|
-
position: absolute;
|
|
3164
|
-
top: 50%;
|
|
3165
|
-
right: 0;
|
|
3166
|
-
bottom: 0;
|
|
3167
|
-
font: 16px monospace;
|
|
3168
|
-
line-height: 8px;
|
|
3169
|
-
height: 8px;
|
|
3170
|
-
pointer-events: none;
|
|
3171
|
-
transform: translate(-150%, -50%) scaleX(1.2) rotate(90deg);
|
|
3172
|
-
transition: 0.2s ease-in-out;
|
|
3173
|
-
}
|
|
3174
|
-
.tagify--select[aria-expanded='true']::after {
|
|
3175
|
-
transform: translate(-150%, -50%) rotate(270deg) scaleY(1.2);
|
|
3176
|
-
}
|
|
3177
|
-
.tagify--select .tagify__tag {
|
|
3178
|
-
position: absolute;
|
|
3179
|
-
top: 0;
|
|
3180
|
-
right: 1.8em;
|
|
3181
|
-
bottom: 0;
|
|
3182
|
-
}
|
|
3183
|
-
.tagify--select .tagify__tag div {
|
|
3184
|
-
display: none;
|
|
3185
|
-
}
|
|
3186
|
-
.tagify--select .tagify__input {
|
|
3187
|
-
width: 100%;
|
|
3188
|
-
}
|
|
3189
|
-
.tagify--empty .tagify__input::before {
|
|
3190
|
-
transition: 0.2s ease-out;
|
|
3191
|
-
opacity: 1;
|
|
3192
|
-
transform: none;
|
|
3193
|
-
display: inline-block;
|
|
3194
|
-
width: auto;
|
|
3195
|
-
}
|
|
3196
|
-
.tagify--mix .tagify--empty .tagify__input::before {
|
|
3197
|
-
display: inline-block;
|
|
3198
|
-
}
|
|
3199
|
-
.tagify--focus {
|
|
3200
|
-
--tags-border-color: var(--tags-focus-border-color);
|
|
3201
|
-
transition: 0s;
|
|
3202
|
-
}
|
|
3203
|
-
.tagify--invalid {
|
|
3204
|
-
--tags-border-color: #d39494;
|
|
3205
|
-
}
|
|
3206
|
-
.tagify__dropdown {
|
|
3207
|
-
position: absolute;
|
|
3208
|
-
z-index: 9999;
|
|
3209
|
-
transform: translateY(1px);
|
|
3210
|
-
overflow: hidden;
|
|
3211
|
-
}
|
|
3212
|
-
.tagify__dropdown[placement='top'] {
|
|
3213
|
-
margin-top: 0;
|
|
3214
|
-
transform: translateY(-100%);
|
|
3215
|
-
}
|
|
3216
|
-
.tagify__dropdown[placement='top'] .tagify__dropdown__wrapper {
|
|
3217
|
-
border-top-width: 1.1px;
|
|
3218
|
-
border-bottom-width: 0;
|
|
3219
|
-
}
|
|
3220
|
-
.tagify__dropdown[position='text'] {
|
|
3221
|
-
box-shadow: 0 0 0 3px rgba(var(--tagify-dd-color-primary), 0.1);
|
|
3222
|
-
font-size: 0.9em;
|
|
3223
|
-
}
|
|
3224
|
-
.tagify__dropdown[position='text'] .tagify__dropdown__wrapper {
|
|
3225
|
-
border-width: 1px;
|
|
3226
|
-
}
|
|
3227
|
-
.tagify__dropdown__wrapper {
|
|
3228
|
-
max-height: 300px;
|
|
3229
|
-
overflow: auto;
|
|
3230
|
-
overflow-x: hidden;
|
|
3231
|
-
background: var(--tagify-dd-bg-color);
|
|
3232
|
-
border: 1px solid;
|
|
3233
|
-
border-color: var(--tagify-dd-color-primary);
|
|
3234
|
-
border-bottom-width: 1.5px;
|
|
3235
|
-
border-top-width: 0;
|
|
3236
|
-
box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
3237
|
-
transition: 0.25s cubic-bezier(0, 1, 0.5, 1);
|
|
3238
|
-
}
|
|
3239
|
-
.tagify__dropdown__header:empty {
|
|
3240
|
-
display: none;
|
|
3241
|
-
}
|
|
3242
|
-
.tagify__dropdown__footer {
|
|
3243
|
-
display: inline-block;
|
|
3244
|
-
margin-top: 0.5em;
|
|
3245
|
-
padding: var(--tagify-dd-item-pad);
|
|
3246
|
-
font-size: 0.7em;
|
|
3247
|
-
font-style: italic;
|
|
3248
|
-
opacity: 0.5;
|
|
3249
|
-
}
|
|
3250
|
-
.tagify__dropdown__footer:empty {
|
|
3251
|
-
display: none;
|
|
3252
|
-
}
|
|
3253
|
-
.tagify__dropdown--initial .tagify__dropdown__wrapper {
|
|
3254
|
-
max-height: 20px;
|
|
3255
|
-
transform: translateY(-1em);
|
|
3256
|
-
}
|
|
3257
|
-
.tagify__dropdown--initial[placement='top'] .tagify__dropdown__wrapper {
|
|
3258
|
-
transform: translateY(2em);
|
|
3259
|
-
}
|
|
3260
|
-
.tagify__dropdown__item {
|
|
3261
|
-
box-sizing: border-box;
|
|
3262
|
-
padding: var(--tagify-dd-item-pad);
|
|
3263
|
-
margin: 1px;
|
|
3264
|
-
cursor: pointer;
|
|
3265
|
-
border-radius: 2px;
|
|
3266
|
-
position: relative;
|
|
3267
|
-
outline: 0;
|
|
3268
|
-
max-height: 60px;
|
|
3269
|
-
max-width: 100%;
|
|
3270
|
-
}
|
|
3271
|
-
.tagify__dropdown__item--active {
|
|
3272
|
-
background: var(--tagify-dd-color-primary);
|
|
3273
|
-
color: #fff;
|
|
3274
|
-
}
|
|
3275
|
-
.tagify__dropdown__item:active {
|
|
3276
|
-
filter: brightness(105%);
|
|
3277
|
-
}
|
|
3278
|
-
.tagify__dropdown__item--hidden {
|
|
3279
|
-
padding-top: 0;
|
|
3280
|
-
padding-bottom: 0;
|
|
3281
|
-
margin: 0 1px;
|
|
3282
|
-
pointer-events: none;
|
|
3283
|
-
overflow: hidden;
|
|
3284
|
-
max-height: 0;
|
|
3285
|
-
transition: var(--tagify-dd-item--hidden-duration, 0.3s) !important;
|
|
3286
|
-
}
|
|
3287
|
-
.tagify__dropdown__item--hidden > * {
|
|
3288
|
-
transform: translateY(-100%);
|
|
3289
|
-
opacity: 0;
|
|
3290
|
-
transition: inherit;
|
|
3291
|
-
}
|
|
3292
|
-
`;
|
|
3293
2800
|
|
|
3294
2801
|
// src/components/Variables/VariableEditor.tsx
|
|
3295
2802
|
import { jsx as jsx28, jsxs as jsxs16 } from "@emotion/react/jsx-runtime";
|
|
@@ -3415,7 +2922,7 @@ var InsertVariableMenu = ({
|
|
|
3415
2922
|
}) => {
|
|
3416
2923
|
const { variables, dispatch } = useVariables();
|
|
3417
2924
|
const btnRef = useRef8(null);
|
|
3418
|
-
const
|
|
2925
|
+
const tip = "Tip: access this list by typing ${";
|
|
3419
2926
|
useEffect5(() => {
|
|
3420
2927
|
if (textValue === trigger && btnRef.current && btnRef.current.getAttribute("aria-expanded") === "false") {
|
|
3421
2928
|
btnRef.current.click();
|
|
@@ -3423,7 +2930,7 @@ var InsertVariableMenu = ({
|
|
|
3423
2930
|
}, [textValue, btnRef, trigger]);
|
|
3424
2931
|
return /* @__PURE__ */ jsxs18("div", { css: menuContainer, children: [
|
|
3425
2932
|
children,
|
|
3426
|
-
|
|
2933
|
+
/* @__PURE__ */ jsxs18(
|
|
3427
2934
|
Menu2,
|
|
3428
2935
|
{
|
|
3429
2936
|
placement: "bottom-start",
|
|
@@ -3449,10 +2956,12 @@ var InsertVariableMenu = ({
|
|
|
3449
2956
|
showAddVariableMenuOption ? /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
3450
2957
|
/* @__PURE__ */ jsx30(MenuItemSeparator, {}),
|
|
3451
2958
|
/* @__PURE__ */ jsx30(MenuItem2, { onClick: () => dispatch({ type: "edit", variable: "" }), children: "Add Variable" })
|
|
3452
|
-
] }) : null
|
|
2959
|
+
] }) : null,
|
|
2960
|
+
Object.entries(variables).length || showAddVariableMenuOption ? /* @__PURE__ */ jsx30(MenuItemSeparator, {}) : null,
|
|
2961
|
+
/* @__PURE__ */ jsx30("i", { css: variablesTipText, children: tip })
|
|
3453
2962
|
]
|
|
3454
2963
|
}
|
|
3455
|
-
)
|
|
2964
|
+
)
|
|
3456
2965
|
] });
|
|
3457
2966
|
};
|
|
3458
2967
|
|
|
@@ -4461,6 +3970,9 @@ function useUniformMeshLocation() {
|
|
|
4461
3970
|
return location;
|
|
4462
3971
|
}
|
|
4463
3972
|
|
|
3973
|
+
// src/hooks/index.ts
|
|
3974
|
+
import { ParameterShellContext, useParameterShell } from "@uniformdev/design-system";
|
|
3975
|
+
|
|
4464
3976
|
// src/utils/createLocationValidator.ts
|
|
4465
3977
|
function createLocationValidator(setValue, validate) {
|
|
4466
3978
|
return (dispatch) => setValue((previous) => {
|
|
@@ -4486,6 +3998,20 @@ import {
|
|
|
4486
3998
|
LoadingOverlay as LoadingOverlay2,
|
|
4487
3999
|
Menu as Menu3,
|
|
4488
4000
|
MenuItem as MenuItem3,
|
|
4001
|
+
ParameterGroup,
|
|
4002
|
+
ParameterImage,
|
|
4003
|
+
ParameterImageInner,
|
|
4004
|
+
ParameterInput,
|
|
4005
|
+
ParameterInputInner,
|
|
4006
|
+
ParameterLabel,
|
|
4007
|
+
ParameterMenuButton,
|
|
4008
|
+
ParameterSelect,
|
|
4009
|
+
ParameterSelectInner,
|
|
4010
|
+
ParameterShell,
|
|
4011
|
+
ParameterTextarea,
|
|
4012
|
+
ParameterTextareaInner,
|
|
4013
|
+
ParameterToggle,
|
|
4014
|
+
ParameterToggleInner,
|
|
4489
4015
|
ScrollableList,
|
|
4490
4016
|
ScrollableListItem,
|
|
4491
4017
|
Switch,
|
|
@@ -4519,6 +4045,21 @@ export {
|
|
|
4519
4045
|
Menu3 as Menu,
|
|
4520
4046
|
MenuItem3 as MenuItem,
|
|
4521
4047
|
MeshApp,
|
|
4048
|
+
ParameterGroup,
|
|
4049
|
+
ParameterImage,
|
|
4050
|
+
ParameterImageInner,
|
|
4051
|
+
ParameterInput,
|
|
4052
|
+
ParameterInputInner,
|
|
4053
|
+
ParameterLabel,
|
|
4054
|
+
ParameterMenuButton,
|
|
4055
|
+
ParameterSelect,
|
|
4056
|
+
ParameterSelectInner,
|
|
4057
|
+
ParameterShell,
|
|
4058
|
+
ParameterShellContext,
|
|
4059
|
+
ParameterTextarea,
|
|
4060
|
+
ParameterTextareaInner,
|
|
4061
|
+
ParameterToggle,
|
|
4062
|
+
ParameterToggleInner,
|
|
4522
4063
|
ProductPreviewList,
|
|
4523
4064
|
ProductQuery,
|
|
4524
4065
|
ProductQueryContext,
|
|
@@ -4616,6 +4157,7 @@ export {
|
|
|
4616
4157
|
urlEncodeRequestUrl,
|
|
4617
4158
|
useInitializeUniformMeshSdk,
|
|
4618
4159
|
useMeshLocation,
|
|
4160
|
+
useParameterShell,
|
|
4619
4161
|
useProductQueryContext,
|
|
4620
4162
|
useProductSearchContext,
|
|
4621
4163
|
useRequest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.20.0",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@monaco-editor/react": "4.4.6",
|
|
47
|
-
"@uniformdev/design-system": "18.
|
|
48
|
-
"@uniformdev/mesh-sdk": "18.
|
|
47
|
+
"@uniformdev/design-system": "18.20.0",
|
|
48
|
+
"@uniformdev/mesh-sdk": "18.20.0",
|
|
49
49
|
"formik": "^2.2.9",
|
|
50
|
-
"monaco-editor": "0.
|
|
50
|
+
"monaco-editor": "0.36.1",
|
|
51
51
|
"react-beautiful-dnd": "13.1.1",
|
|
52
52
|
"react-icons": "4.7.1",
|
|
53
53
|
"react-use": "17.4.0",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"@types/react": "18.0.28",
|
|
67
67
|
"@types/react-beautiful-dnd": "13.1.3",
|
|
68
68
|
"@types/uuid": "9.0.1",
|
|
69
|
-
"@types/yaireo__tagify": "4.16.1",
|
|
70
69
|
"react": "18.2.0",
|
|
71
70
|
"react-dom": "18.2.0"
|
|
72
71
|
},
|
|
@@ -76,5 +75,5 @@
|
|
|
76
75
|
"publishConfig": {
|
|
77
76
|
"access": "public"
|
|
78
77
|
},
|
|
79
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "a16271ccfcd23212b325176c726f52b7fe9fa890"
|
|
80
79
|
}
|