@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.js
CHANGED
|
@@ -31,9 +31,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/index.ts
|
|
32
32
|
var src_exports = {};
|
|
33
33
|
__export(src_exports, {
|
|
34
|
-
AddListButton: () =>
|
|
35
|
-
Button: () =>
|
|
36
|
-
Callout: () =>
|
|
34
|
+
AddListButton: () => import_design_system25.AddListButton,
|
|
35
|
+
Button: () => import_design_system25.Button,
|
|
36
|
+
Callout: () => import_design_system25.Callout,
|
|
37
37
|
DamSelectedItem: () => DamSelectedItem,
|
|
38
38
|
DataResourceVariablesList: () => DataResourceVariablesList,
|
|
39
39
|
DataSourceEditor: () => DataSourceEditor,
|
|
@@ -41,21 +41,36 @@ __export(src_exports, {
|
|
|
41
41
|
DefaultSearchRow: () => DefaultSearchRow,
|
|
42
42
|
DefaultSelectedItem: () => DefaultSelectedItem,
|
|
43
43
|
EntrySearch: () => EntrySearch,
|
|
44
|
-
Heading: () =>
|
|
44
|
+
Heading: () => import_design_system25.Heading,
|
|
45
45
|
Icons: () => icons_exports,
|
|
46
|
-
Input: () =>
|
|
47
|
-
InputComboBox: () =>
|
|
48
|
-
InputKeywordSearch: () =>
|
|
49
|
-
InputSelect: () =>
|
|
50
|
-
InputToggle: () =>
|
|
46
|
+
Input: () => import_design_system25.Input,
|
|
47
|
+
InputComboBox: () => import_design_system25.InputComboBox,
|
|
48
|
+
InputKeywordSearch: () => import_design_system25.InputKeywordSearch,
|
|
49
|
+
InputSelect: () => import_design_system25.InputSelect,
|
|
50
|
+
InputToggle: () => import_design_system25.InputToggle,
|
|
51
51
|
InputVariables: () => InputVariables,
|
|
52
|
-
KeywordSearchInput: () =>
|
|
53
|
-
Label: () =>
|
|
54
|
-
LoadingIndicator: () =>
|
|
55
|
-
LoadingOverlay: () =>
|
|
56
|
-
Menu: () =>
|
|
57
|
-
MenuItem: () =>
|
|
52
|
+
KeywordSearchInput: () => import_design_system25.InputKeywordSearch,
|
|
53
|
+
Label: () => import_design_system25.Label,
|
|
54
|
+
LoadingIndicator: () => import_design_system25.LoadingIndicator,
|
|
55
|
+
LoadingOverlay: () => import_design_system25.LoadingOverlay,
|
|
56
|
+
Menu: () => import_design_system25.Menu,
|
|
57
|
+
MenuItem: () => import_design_system25.MenuItem,
|
|
58
58
|
MeshApp: () => MeshApp,
|
|
59
|
+
ParameterGroup: () => import_design_system25.ParameterGroup,
|
|
60
|
+
ParameterImage: () => import_design_system25.ParameterImage,
|
|
61
|
+
ParameterImageInner: () => import_design_system25.ParameterImageInner,
|
|
62
|
+
ParameterInput: () => import_design_system25.ParameterInput,
|
|
63
|
+
ParameterInputInner: () => import_design_system25.ParameterInputInner,
|
|
64
|
+
ParameterLabel: () => import_design_system25.ParameterLabel,
|
|
65
|
+
ParameterMenuButton: () => import_design_system25.ParameterMenuButton,
|
|
66
|
+
ParameterSelect: () => import_design_system25.ParameterSelect,
|
|
67
|
+
ParameterSelectInner: () => import_design_system25.ParameterSelectInner,
|
|
68
|
+
ParameterShell: () => import_design_system25.ParameterShell,
|
|
69
|
+
ParameterShellContext: () => import_design_system24.ParameterShellContext,
|
|
70
|
+
ParameterTextarea: () => import_design_system25.ParameterTextarea,
|
|
71
|
+
ParameterTextareaInner: () => import_design_system25.ParameterTextareaInner,
|
|
72
|
+
ParameterToggle: () => import_design_system25.ParameterToggle,
|
|
73
|
+
ParameterToggleInner: () => import_design_system25.ParameterToggleInner,
|
|
59
74
|
ProductPreviewList: () => ProductPreviewList,
|
|
60
75
|
ProductQuery: () => ProductQuery,
|
|
61
76
|
ProductQueryContext: () => ProductQueryContext,
|
|
@@ -72,13 +87,13 @@ __export(src_exports, {
|
|
|
72
87
|
RequestUrl: () => RequestUrl,
|
|
73
88
|
RequestUrlInput: () => RequestUrlInput,
|
|
74
89
|
ResolvableLoadingValue: () => ResolvableLoadingValue,
|
|
75
|
-
ScrollableList: () =>
|
|
76
|
-
ScrollableListItem: () =>
|
|
90
|
+
ScrollableList: () => import_design_system25.ScrollableList,
|
|
91
|
+
ScrollableListItem: () => import_design_system25.ScrollableListItem,
|
|
77
92
|
SelectionField: () => SelectionField,
|
|
78
|
-
Switch: () =>
|
|
93
|
+
Switch: () => import_design_system25.Switch,
|
|
79
94
|
TextVariableRenderer: () => TextVariableRenderer,
|
|
80
|
-
Textarea: () =>
|
|
81
|
-
Theme: () =>
|
|
95
|
+
Textarea: () => import_design_system25.Textarea,
|
|
96
|
+
Theme: () => import_design_system25.Theme,
|
|
82
97
|
UniformMeshLocationContext: () => UniformMeshLocationContext,
|
|
83
98
|
UniformMeshLocationContextProvider: () => UniformMeshLocationContextProvider,
|
|
84
99
|
UniformMeshSdkContext: () => UniformMeshSdkContext,
|
|
@@ -153,6 +168,7 @@ __export(src_exports, {
|
|
|
153
168
|
urlEncodeRequestUrl: () => urlEncodeRequestUrl,
|
|
154
169
|
useInitializeUniformMeshSdk: () => useInitializeUniformMeshSdk,
|
|
155
170
|
useMeshLocation: () => useMeshLocation,
|
|
171
|
+
useParameterShell: () => import_design_system24.useParameterShell,
|
|
156
172
|
useProductQueryContext: () => useProductQueryContext,
|
|
157
173
|
useProductSearchContext: () => useProductSearchContext,
|
|
158
174
|
useRequest: () => useRequest,
|
|
@@ -2926,6 +2942,11 @@ var menuItemTextGroup = import_react28.css`
|
|
|
2926
2942
|
var smallText = import_react28.css`
|
|
2927
2943
|
font-size: var(--fs-xs);
|
|
2928
2944
|
`;
|
|
2945
|
+
var variablesTipText = import_react28.css`
|
|
2946
|
+
${smallText}
|
|
2947
|
+
color: var(--gray-500);
|
|
2948
|
+
padding: 0 var(--spacing-sm);
|
|
2949
|
+
`;
|
|
2929
2950
|
|
|
2930
2951
|
// src/components/Variables/VariablesProvider.tsx
|
|
2931
2952
|
var React10 = __toESM(require("react"));
|
|
@@ -2945,504 +2966,6 @@ var variablesFormBtnGroup = import_react29.css`
|
|
|
2945
2966
|
display: flex;
|
|
2946
2967
|
gap: var(--spacing-sm);
|
|
2947
2968
|
`;
|
|
2948
|
-
var tagifyStyles = import_react29.css`
|
|
2949
|
-
:root {
|
|
2950
|
-
--tagify-dd-color-primary: rgb(53, 149, 246);
|
|
2951
|
-
--tagify-dd-bg-color: var(--white);
|
|
2952
|
-
--tagify-dd-item-pad: var(--spacing-xs) var(--spacing-sm);
|
|
2953
|
-
}
|
|
2954
|
-
|
|
2955
|
-
.tagify {
|
|
2956
|
-
--tags-disabled-bg: #f1f1f1;
|
|
2957
|
-
--tags-border-color: var(--gray-400);
|
|
2958
|
-
--tags-hover-border-color: var(--gray-300);
|
|
2959
|
-
--tags-focus-border-color: var(--brand-secondary-1);
|
|
2960
|
-
--tag-border-radius: var(--rounded-md);
|
|
2961
|
-
--tag-bg: var(--gray-100);
|
|
2962
|
-
--tag-hover: var(--gray-200);
|
|
2963
|
-
--tag-text-color: var(--brand-secondary-1);
|
|
2964
|
-
--tag-text-color--edit: var(--brand-secondary-1);
|
|
2965
|
-
--tag-pad: var(--spacing-2xs) var(--spacing-sm);
|
|
2966
|
-
--tag-inset-shadow-size: 1rem;
|
|
2967
|
-
--tag-invalid-color: #d39494;
|
|
2968
|
-
--tag-invalid-bg: rgba(211, 148, 148, 0.5);
|
|
2969
|
-
--tag-remove-bg: rgba(211, 148, 148, 0.3);
|
|
2970
|
-
--tag-remove-btn-color: black;
|
|
2971
|
-
--tag-remove-btn-bg: none;
|
|
2972
|
-
--tag-remove-btn-bg--hover: #c77777;
|
|
2973
|
-
--input-color: inherit;
|
|
2974
|
-
--tag--min-width: 1ch;
|
|
2975
|
-
--tag--max-width: auto;
|
|
2976
|
-
--tag-hide-transition: 0.3s;
|
|
2977
|
-
--placeholder-color: rgba(0, 0, 0, 0.4);
|
|
2978
|
-
--placeholder-color-focus: rgba(0, 0, 0, 0.25);
|
|
2979
|
-
--loader-size: 0.8em;
|
|
2980
|
-
--readonly-striped: 1;
|
|
2981
|
-
|
|
2982
|
-
background: var(--white);
|
|
2983
|
-
display: inline-flex;
|
|
2984
|
-
align-items: flex-start;
|
|
2985
|
-
flex-wrap: wrap;
|
|
2986
|
-
border-radius: var(--rounded-md);
|
|
2987
|
-
outline: 1px solid var(--gray-400);
|
|
2988
|
-
padding: 0;
|
|
2989
|
-
line-height: 0;
|
|
2990
|
-
cursor: text;
|
|
2991
|
-
position: relative;
|
|
2992
|
-
box-sizing: border-box;
|
|
2993
|
-
transition: 0.1s;
|
|
2994
|
-
word-break: break-word;
|
|
2995
|
-
}
|
|
2996
|
-
.tagify:hover:not(.tagify--focus):not(.tagify--invalid) {
|
|
2997
|
-
--tags-border-color: var(--tags-hover-border-color);
|
|
2998
|
-
}
|
|
2999
|
-
.tagify[disabled] {
|
|
3000
|
-
background: var(--tags-disabled-bg);
|
|
3001
|
-
filter: saturate(0);
|
|
3002
|
-
opacity: 0.5;
|
|
3003
|
-
pointer-events: none;
|
|
3004
|
-
}
|
|
3005
|
-
.tagify[disabled].tagify--select,
|
|
3006
|
-
.tagify[readonly].tagify--select {
|
|
3007
|
-
pointer-events: none;
|
|
3008
|
-
}
|
|
3009
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select),
|
|
3010
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) {
|
|
3011
|
-
cursor: default;
|
|
3012
|
-
}
|
|
3013
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) > .tagify__input,
|
|
3014
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) > .tagify__input {
|
|
3015
|
-
visibility: hidden;
|
|
3016
|
-
width: 0;
|
|
3017
|
-
margin: 5px 0;
|
|
3018
|
-
}
|
|
3019
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div,
|
|
3020
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div {
|
|
3021
|
-
padding: var(--tag-pad);
|
|
3022
|
-
}
|
|
3023
|
-
.tagify[disabled]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div::before,
|
|
3024
|
-
.tagify[readonly]:not(.tagify--mix):not(.tagify--select) .tagify__tag > div::before {
|
|
3025
|
-
animation: readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused;
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
.tagify[disabled] .tagify__tag__removeBtn,
|
|
3029
|
-
.tagify[readonly] .tagify__tag__removeBtn {
|
|
3030
|
-
display: none;
|
|
3031
|
-
}
|
|
3032
|
-
.tagify--loading .tagify__input > br:last-child {
|
|
3033
|
-
display: none;
|
|
3034
|
-
}
|
|
3035
|
-
.tagify--loading .tagify__input::before {
|
|
3036
|
-
content: none;
|
|
3037
|
-
}
|
|
3038
|
-
.tagify--loading .tagify__input::after {
|
|
3039
|
-
content: '';
|
|
3040
|
-
vertical-align: middle;
|
|
3041
|
-
opacity: 1;
|
|
3042
|
-
width: 0.7em;
|
|
3043
|
-
height: 0.7em;
|
|
3044
|
-
width: var(--loader-size);
|
|
3045
|
-
height: var(--loader-size);
|
|
3046
|
-
min-width: 0;
|
|
3047
|
-
border: 3px solid;
|
|
3048
|
-
border-color: #eee #bbb #888 transparent;
|
|
3049
|
-
border-radius: 50%;
|
|
3050
|
-
animation: rotateLoader 0.4s infinite linear;
|
|
3051
|
-
content: '' !important;
|
|
3052
|
-
margin: -2px 0 -2px 0.5em;
|
|
3053
|
-
}
|
|
3054
|
-
.tagify--loading .tagify__input:empty::after {
|
|
3055
|
-
margin-left: 0;
|
|
3056
|
-
}
|
|
3057
|
-
.tagify + input,
|
|
3058
|
-
.tagify + textarea {
|
|
3059
|
-
position: absolute !important;
|
|
3060
|
-
left: -9999em !important;
|
|
3061
|
-
transform: scale(0) !important;
|
|
3062
|
-
}
|
|
3063
|
-
.tagify__tag {
|
|
3064
|
-
display: inline-flex;
|
|
3065
|
-
align-items: center;
|
|
3066
|
-
margin: 5px 0 5px 5px;
|
|
3067
|
-
position: relative;
|
|
3068
|
-
z-index: 1;
|
|
3069
|
-
outline: 0;
|
|
3070
|
-
line-height: normal;
|
|
3071
|
-
cursor: default;
|
|
3072
|
-
transition: 0.13s ease-out;
|
|
3073
|
-
}
|
|
3074
|
-
.tagify__tag > div {
|
|
3075
|
-
vertical-align: top;
|
|
3076
|
-
box-sizing: border-box;
|
|
3077
|
-
max-width: 100%;
|
|
3078
|
-
padding: var(--tag-pad);
|
|
3079
|
-
color: var(--tag-text-color);
|
|
3080
|
-
line-height: inherit;
|
|
3081
|
-
border-radius: var(--tag-border-radius);
|
|
3082
|
-
white-space: nowrap;
|
|
3083
|
-
transition: 0.13s ease-out;
|
|
3084
|
-
}
|
|
3085
|
-
.tagify__tag > div > * {
|
|
3086
|
-
white-space: pre-wrap;
|
|
3087
|
-
overflow: hidden;
|
|
3088
|
-
text-overflow: ellipsis;
|
|
3089
|
-
display: inline-block;
|
|
3090
|
-
vertical-align: top;
|
|
3091
|
-
min-width: var(--tag--min-width);
|
|
3092
|
-
max-width: var(--tag--max-width);
|
|
3093
|
-
transition: 0.8s ease, 0.1s color;
|
|
3094
|
-
}
|
|
3095
|
-
.tagify__tag > div > [contenteditable] {
|
|
3096
|
-
outline: 0;
|
|
3097
|
-
-webkit-user-select: text;
|
|
3098
|
-
user-select: text;
|
|
3099
|
-
cursor: text;
|
|
3100
|
-
margin: -2px;
|
|
3101
|
-
padding: 2px;
|
|
3102
|
-
max-width: 350px;
|
|
3103
|
-
}
|
|
3104
|
-
.tagify__tag > div::before {
|
|
3105
|
-
content: '';
|
|
3106
|
-
position: absolute;
|
|
3107
|
-
border-radius: inherit;
|
|
3108
|
-
inset: var(--tag-bg-inset, 0);
|
|
3109
|
-
z-index: -1;
|
|
3110
|
-
pointer-events: none;
|
|
3111
|
-
transition: 120ms ease;
|
|
3112
|
-
animation: tags--bump 0.3s ease-out 1;
|
|
3113
|
-
background: var(--tag-bg);
|
|
3114
|
-
}
|
|
3115
|
-
.tagify__tag:focus div::before,
|
|
3116
|
-
.tagify__tag:hover:not([readonly]) div::before {
|
|
3117
|
-
--tag-bg-inset: -2.5px;
|
|
3118
|
-
--tag-bg: var(--tag-hover);
|
|
3119
|
-
}
|
|
3120
|
-
.tagify__tag--loading {
|
|
3121
|
-
pointer-events: none;
|
|
3122
|
-
}
|
|
3123
|
-
.tagify__tag--loading .tagify__tag__removeBtn {
|
|
3124
|
-
display: none;
|
|
3125
|
-
}
|
|
3126
|
-
.tagify__tag--loading::after {
|
|
3127
|
-
--loader-size: 0.4em;
|
|
3128
|
-
content: '';
|
|
3129
|
-
vertical-align: middle;
|
|
3130
|
-
opacity: 1;
|
|
3131
|
-
width: 0.7em;
|
|
3132
|
-
height: 0.7em;
|
|
3133
|
-
width: var(--loader-size);
|
|
3134
|
-
height: var(--loader-size);
|
|
3135
|
-
min-width: 0;
|
|
3136
|
-
border: 3px solid;
|
|
3137
|
-
border-color: #eee #bbb #888 transparent;
|
|
3138
|
-
border-radius: 50%;
|
|
3139
|
-
animation: rotateLoader 0.4s infinite linear;
|
|
3140
|
-
margin: 0 0.5em 0 -0.1em;
|
|
3141
|
-
}
|
|
3142
|
-
.tagify__tag--flash div::before {
|
|
3143
|
-
animation: none;
|
|
3144
|
-
}
|
|
3145
|
-
.tagify__tag--hide {
|
|
3146
|
-
width: 0 !important;
|
|
3147
|
-
padding-left: 0;
|
|
3148
|
-
padding-right: 0;
|
|
3149
|
-
margin-left: 0;
|
|
3150
|
-
margin-right: 0;
|
|
3151
|
-
opacity: 0;
|
|
3152
|
-
transform: scale(0);
|
|
3153
|
-
transition: var(--tag-hide-transition);
|
|
3154
|
-
pointer-events: none;
|
|
3155
|
-
}
|
|
3156
|
-
.tagify__tag--hide > div > * {
|
|
3157
|
-
white-space: nowrap;
|
|
3158
|
-
}
|
|
3159
|
-
.tagify__tag.tagify--noAnim > div::before {
|
|
3160
|
-
animation: none;
|
|
3161
|
-
}
|
|
3162
|
-
.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div > span {
|
|
3163
|
-
opacity: 0.5;
|
|
3164
|
-
}
|
|
3165
|
-
.tagify__tag.tagify--notAllowed:not(.tagify__tag--editable) div::before {
|
|
3166
|
-
--tag-bg: var(--tag-invalid-bg);
|
|
3167
|
-
transition: 0.2s;
|
|
3168
|
-
}
|
|
3169
|
-
.tagify__tag[readonly] .tagify__tag__removeBtn {
|
|
3170
|
-
display: none;
|
|
3171
|
-
}
|
|
3172
|
-
.tagify__tag[readonly] > div::before {
|
|
3173
|
-
animation: readonlyStyles 1s calc(-1s * (var(--readonly-striped) - 1)) paused;
|
|
3174
|
-
}
|
|
3175
|
-
|
|
3176
|
-
.tagify__tag--editable > div {
|
|
3177
|
-
color: var(--tag-text-color--edit);
|
|
3178
|
-
}
|
|
3179
|
-
.tagify__tag--editable > div::before {
|
|
3180
|
-
background-color: var(--tag-hover) !important;
|
|
3181
|
-
}
|
|
3182
|
-
.tagify__tag--editable > .tagify__tag__removeBtn {
|
|
3183
|
-
pointer-events: none;
|
|
3184
|
-
}
|
|
3185
|
-
.tagify__tag--editable > .tagify__tag__removeBtn::after {
|
|
3186
|
-
opacity: 0;
|
|
3187
|
-
transform: translateX(100%) translateX(5px);
|
|
3188
|
-
}
|
|
3189
|
-
.tagify__tag--editable.tagify--invalid > div::before {
|
|
3190
|
-
background-color: var(--tag-invalid-color) !important;
|
|
3191
|
-
}
|
|
3192
|
-
.tagify__tag__removeBtn {
|
|
3193
|
-
order: 5;
|
|
3194
|
-
display: inline-flex;
|
|
3195
|
-
align-items: center;
|
|
3196
|
-
justify-content: center;
|
|
3197
|
-
border-radius: 50px;
|
|
3198
|
-
cursor: pointer;
|
|
3199
|
-
font: 14px/1 Arial;
|
|
3200
|
-
background: var(--tag-remove-btn-bg);
|
|
3201
|
-
color: var(--tag-remove-btn-color);
|
|
3202
|
-
width: 14px;
|
|
3203
|
-
height: 14px;
|
|
3204
|
-
margin-right: 4.6666666667px;
|
|
3205
|
-
margin-left: auto;
|
|
3206
|
-
overflow: hidden;
|
|
3207
|
-
transition: 0.2s ease-out;
|
|
3208
|
-
}
|
|
3209
|
-
.tagify__tag__removeBtn::after {
|
|
3210
|
-
content: '×';
|
|
3211
|
-
transition: 0.3s, color 0s;
|
|
3212
|
-
}
|
|
3213
|
-
.tagify__tag__removeBtn:hover {
|
|
3214
|
-
color: var(--white);
|
|
3215
|
-
background: var(--tag-remove-btn-bg--hover);
|
|
3216
|
-
}
|
|
3217
|
-
.tagify__tag__removeBtn:hover + div > span {
|
|
3218
|
-
opacity: 0.5;
|
|
3219
|
-
}
|
|
3220
|
-
.tagify__tag__removeBtn:hover + div::before {
|
|
3221
|
-
background: var(--tag-remove-bg);
|
|
3222
|
-
transition: background-color 0.2s;
|
|
3223
|
-
}
|
|
3224
|
-
.tagify:not(.tagify--mix) .tagify__input br {
|
|
3225
|
-
display: none;
|
|
3226
|
-
}
|
|
3227
|
-
.tagify:not(.tagify--mix) .tagify__input * {
|
|
3228
|
-
display: inline;
|
|
3229
|
-
white-space: nowrap;
|
|
3230
|
-
}
|
|
3231
|
-
.tagify__input {
|
|
3232
|
-
border-radius: var(--rounded-md);
|
|
3233
|
-
flex-grow: 1;
|
|
3234
|
-
display: inline-block;
|
|
3235
|
-
min-width: 110px;
|
|
3236
|
-
margin: 5px;
|
|
3237
|
-
padding: var(--spacing-base) var(--spacing-md) var(--spacing-base) var(--spacing-base);
|
|
3238
|
-
line-height: normal;
|
|
3239
|
-
position: relative;
|
|
3240
|
-
white-space: pre-wrap;
|
|
3241
|
-
color: var(--input-color);
|
|
3242
|
-
box-sizing: inherit;
|
|
3243
|
-
}
|
|
3244
|
-
.tagify__input:empty::before {
|
|
3245
|
-
position: static;
|
|
3246
|
-
}
|
|
3247
|
-
.tagify__input:focus {
|
|
3248
|
-
outline: 0;
|
|
3249
|
-
}
|
|
3250
|
-
.tagify__input:focus::before {
|
|
3251
|
-
transition: 0.2s ease-out;
|
|
3252
|
-
opacity: 0;
|
|
3253
|
-
transform: translatex(6px);
|
|
3254
|
-
}
|
|
3255
|
-
.tagify__input:focus:empty::before {
|
|
3256
|
-
transition: 0.2s ease-out;
|
|
3257
|
-
opacity: 1;
|
|
3258
|
-
transform: none;
|
|
3259
|
-
color: rgba(0, 0, 0, 0.25);
|
|
3260
|
-
color: var(--placeholder-color-focus);
|
|
3261
|
-
}
|
|
3262
|
-
.tagify__input::before {
|
|
3263
|
-
content: attr(data-placeholder);
|
|
3264
|
-
height: 1em;
|
|
3265
|
-
line-height: 1em;
|
|
3266
|
-
margin: auto 0;
|
|
3267
|
-
z-index: 1;
|
|
3268
|
-
color: var(--placeholder-color);
|
|
3269
|
-
white-space: nowrap;
|
|
3270
|
-
pointer-events: none;
|
|
3271
|
-
opacity: 0;
|
|
3272
|
-
position: absolute;
|
|
3273
|
-
}
|
|
3274
|
-
.tagify__input::after {
|
|
3275
|
-
content: attr(data-suggest);
|
|
3276
|
-
display: inline-block;
|
|
3277
|
-
vertical-align: middle;
|
|
3278
|
-
position: absolute;
|
|
3279
|
-
min-width: calc(100% - 1.5em);
|
|
3280
|
-
text-overflow: ellipsis;
|
|
3281
|
-
overflow: hidden;
|
|
3282
|
-
white-space: pre;
|
|
3283
|
-
color: var(--tag-text-color);
|
|
3284
|
-
opacity: 0.3;
|
|
3285
|
-
pointer-events: none;
|
|
3286
|
-
max-width: 100px;
|
|
3287
|
-
}
|
|
3288
|
-
.tagify__input .tagify__tag {
|
|
3289
|
-
margin: 0 1px;
|
|
3290
|
-
}
|
|
3291
|
-
.tagify--mix {
|
|
3292
|
-
display: block;
|
|
3293
|
-
}
|
|
3294
|
-
.tagify--mix .tagify__input {
|
|
3295
|
-
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");
|
|
3296
|
-
background-repeat: no-repeat;
|
|
3297
|
-
background-position: right var(--spacing-sm) center;
|
|
3298
|
-
padding: var(--spacing-base) var(--spacing-xl) var(--spacing-base) var(--spacing-base);
|
|
3299
|
-
margin: 0;
|
|
3300
|
-
width: 100%;
|
|
3301
|
-
height: 100%;
|
|
3302
|
-
display: block;
|
|
3303
|
-
min-height: 54px;
|
|
3304
|
-
}
|
|
3305
|
-
.tagify--mix .tagify__input::before {
|
|
3306
|
-
height: auto;
|
|
3307
|
-
display: none;
|
|
3308
|
-
line-height: inherit;
|
|
3309
|
-
}
|
|
3310
|
-
.tagify--mix .tagify__input::after {
|
|
3311
|
-
content: none;
|
|
3312
|
-
}
|
|
3313
|
-
.tagify--select::after {
|
|
3314
|
-
content: '>';
|
|
3315
|
-
opacity: 0.5;
|
|
3316
|
-
position: absolute;
|
|
3317
|
-
top: 50%;
|
|
3318
|
-
right: 0;
|
|
3319
|
-
bottom: 0;
|
|
3320
|
-
font: 16px monospace;
|
|
3321
|
-
line-height: 8px;
|
|
3322
|
-
height: 8px;
|
|
3323
|
-
pointer-events: none;
|
|
3324
|
-
transform: translate(-150%, -50%) scaleX(1.2) rotate(90deg);
|
|
3325
|
-
transition: 0.2s ease-in-out;
|
|
3326
|
-
}
|
|
3327
|
-
.tagify--select[aria-expanded='true']::after {
|
|
3328
|
-
transform: translate(-150%, -50%) rotate(270deg) scaleY(1.2);
|
|
3329
|
-
}
|
|
3330
|
-
.tagify--select .tagify__tag {
|
|
3331
|
-
position: absolute;
|
|
3332
|
-
top: 0;
|
|
3333
|
-
right: 1.8em;
|
|
3334
|
-
bottom: 0;
|
|
3335
|
-
}
|
|
3336
|
-
.tagify--select .tagify__tag div {
|
|
3337
|
-
display: none;
|
|
3338
|
-
}
|
|
3339
|
-
.tagify--select .tagify__input {
|
|
3340
|
-
width: 100%;
|
|
3341
|
-
}
|
|
3342
|
-
.tagify--empty .tagify__input::before {
|
|
3343
|
-
transition: 0.2s ease-out;
|
|
3344
|
-
opacity: 1;
|
|
3345
|
-
transform: none;
|
|
3346
|
-
display: inline-block;
|
|
3347
|
-
width: auto;
|
|
3348
|
-
}
|
|
3349
|
-
.tagify--mix .tagify--empty .tagify__input::before {
|
|
3350
|
-
display: inline-block;
|
|
3351
|
-
}
|
|
3352
|
-
.tagify--focus {
|
|
3353
|
-
--tags-border-color: var(--tags-focus-border-color);
|
|
3354
|
-
transition: 0s;
|
|
3355
|
-
}
|
|
3356
|
-
.tagify--invalid {
|
|
3357
|
-
--tags-border-color: #d39494;
|
|
3358
|
-
}
|
|
3359
|
-
.tagify__dropdown {
|
|
3360
|
-
position: absolute;
|
|
3361
|
-
z-index: 9999;
|
|
3362
|
-
transform: translateY(1px);
|
|
3363
|
-
overflow: hidden;
|
|
3364
|
-
}
|
|
3365
|
-
.tagify__dropdown[placement='top'] {
|
|
3366
|
-
margin-top: 0;
|
|
3367
|
-
transform: translateY(-100%);
|
|
3368
|
-
}
|
|
3369
|
-
.tagify__dropdown[placement='top'] .tagify__dropdown__wrapper {
|
|
3370
|
-
border-top-width: 1.1px;
|
|
3371
|
-
border-bottom-width: 0;
|
|
3372
|
-
}
|
|
3373
|
-
.tagify__dropdown[position='text'] {
|
|
3374
|
-
box-shadow: 0 0 0 3px rgba(var(--tagify-dd-color-primary), 0.1);
|
|
3375
|
-
font-size: 0.9em;
|
|
3376
|
-
}
|
|
3377
|
-
.tagify__dropdown[position='text'] .tagify__dropdown__wrapper {
|
|
3378
|
-
border-width: 1px;
|
|
3379
|
-
}
|
|
3380
|
-
.tagify__dropdown__wrapper {
|
|
3381
|
-
max-height: 300px;
|
|
3382
|
-
overflow: auto;
|
|
3383
|
-
overflow-x: hidden;
|
|
3384
|
-
background: var(--tagify-dd-bg-color);
|
|
3385
|
-
border: 1px solid;
|
|
3386
|
-
border-color: var(--tagify-dd-color-primary);
|
|
3387
|
-
border-bottom-width: 1.5px;
|
|
3388
|
-
border-top-width: 0;
|
|
3389
|
-
box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
3390
|
-
transition: 0.25s cubic-bezier(0, 1, 0.5, 1);
|
|
3391
|
-
}
|
|
3392
|
-
.tagify__dropdown__header:empty {
|
|
3393
|
-
display: none;
|
|
3394
|
-
}
|
|
3395
|
-
.tagify__dropdown__footer {
|
|
3396
|
-
display: inline-block;
|
|
3397
|
-
margin-top: 0.5em;
|
|
3398
|
-
padding: var(--tagify-dd-item-pad);
|
|
3399
|
-
font-size: 0.7em;
|
|
3400
|
-
font-style: italic;
|
|
3401
|
-
opacity: 0.5;
|
|
3402
|
-
}
|
|
3403
|
-
.tagify__dropdown__footer:empty {
|
|
3404
|
-
display: none;
|
|
3405
|
-
}
|
|
3406
|
-
.tagify__dropdown--initial .tagify__dropdown__wrapper {
|
|
3407
|
-
max-height: 20px;
|
|
3408
|
-
transform: translateY(-1em);
|
|
3409
|
-
}
|
|
3410
|
-
.tagify__dropdown--initial[placement='top'] .tagify__dropdown__wrapper {
|
|
3411
|
-
transform: translateY(2em);
|
|
3412
|
-
}
|
|
3413
|
-
.tagify__dropdown__item {
|
|
3414
|
-
box-sizing: border-box;
|
|
3415
|
-
padding: var(--tagify-dd-item-pad);
|
|
3416
|
-
margin: 1px;
|
|
3417
|
-
cursor: pointer;
|
|
3418
|
-
border-radius: 2px;
|
|
3419
|
-
position: relative;
|
|
3420
|
-
outline: 0;
|
|
3421
|
-
max-height: 60px;
|
|
3422
|
-
max-width: 100%;
|
|
3423
|
-
}
|
|
3424
|
-
.tagify__dropdown__item--active {
|
|
3425
|
-
background: var(--tagify-dd-color-primary);
|
|
3426
|
-
color: #fff;
|
|
3427
|
-
}
|
|
3428
|
-
.tagify__dropdown__item:active {
|
|
3429
|
-
filter: brightness(105%);
|
|
3430
|
-
}
|
|
3431
|
-
.tagify__dropdown__item--hidden {
|
|
3432
|
-
padding-top: 0;
|
|
3433
|
-
padding-bottom: 0;
|
|
3434
|
-
margin: 0 1px;
|
|
3435
|
-
pointer-events: none;
|
|
3436
|
-
overflow: hidden;
|
|
3437
|
-
max-height: 0;
|
|
3438
|
-
transition: var(--tagify-dd-item--hidden-duration, 0.3s) !important;
|
|
3439
|
-
}
|
|
3440
|
-
.tagify__dropdown__item--hidden > * {
|
|
3441
|
-
transform: translateY(-100%);
|
|
3442
|
-
opacity: 0;
|
|
3443
|
-
transition: inherit;
|
|
3444
|
-
}
|
|
3445
|
-
`;
|
|
3446
2969
|
|
|
3447
2970
|
// src/components/Variables/VariableEditor.tsx
|
|
3448
2971
|
var import_jsx_runtime28 = require("@emotion/react/jsx-runtime");
|
|
@@ -3568,7 +3091,7 @@ var InsertVariableMenu = ({
|
|
|
3568
3091
|
}) => {
|
|
3569
3092
|
const { variables, dispatch } = useVariables();
|
|
3570
3093
|
const btnRef = (0, import_react30.useRef)(null);
|
|
3571
|
-
const
|
|
3094
|
+
const tip = "Tip: access this list by typing ${";
|
|
3572
3095
|
(0, import_react30.useEffect)(() => {
|
|
3573
3096
|
if (textValue === trigger && btnRef.current && btnRef.current.getAttribute("aria-expanded") === "false") {
|
|
3574
3097
|
btnRef.current.click();
|
|
@@ -3576,7 +3099,7 @@ var InsertVariableMenu = ({
|
|
|
3576
3099
|
}, [textValue, btnRef, trigger]);
|
|
3577
3100
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { css: menuContainer, children: [
|
|
3578
3101
|
children,
|
|
3579
|
-
|
|
3102
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3580
3103
|
import_design_system15.Menu,
|
|
3581
3104
|
{
|
|
3582
3105
|
placement: "bottom-start",
|
|
@@ -3602,10 +3125,12 @@ var InsertVariableMenu = ({
|
|
|
3602
3125
|
showAddVariableMenuOption ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
|
|
3603
3126
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItemSeparator, {}),
|
|
3604
3127
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItem, { onClick: () => dispatch({ type: "edit", variable: "" }), children: "Add Variable" })
|
|
3605
|
-
] }) : null
|
|
3128
|
+
] }) : null,
|
|
3129
|
+
Object.entries(variables).length || showAddVariableMenuOption ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_design_system15.MenuItemSeparator, {}) : null,
|
|
3130
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("i", { css: variablesTipText, children: tip })
|
|
3606
3131
|
]
|
|
3607
3132
|
}
|
|
3608
|
-
)
|
|
3133
|
+
)
|
|
3609
3134
|
] });
|
|
3610
3135
|
};
|
|
3611
3136
|
|
|
@@ -4586,6 +4111,9 @@ function useUniformMeshLocation() {
|
|
|
4586
4111
|
return location;
|
|
4587
4112
|
}
|
|
4588
4113
|
|
|
4114
|
+
// src/hooks/index.ts
|
|
4115
|
+
var import_design_system24 = require("@uniformdev/design-system");
|
|
4116
|
+
|
|
4589
4117
|
// src/utils/createLocationValidator.ts
|
|
4590
4118
|
function createLocationValidator(setValue, validate) {
|
|
4591
4119
|
return (dispatch) => setValue((previous) => {
|
|
@@ -4595,7 +4123,7 @@ function createLocationValidator(setValue, validate) {
|
|
|
4595
4123
|
}
|
|
4596
4124
|
|
|
4597
4125
|
// src/index.ts
|
|
4598
|
-
var
|
|
4126
|
+
var import_design_system25 = require("@uniformdev/design-system");
|
|
4599
4127
|
__reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
4600
4128
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4601
4129
|
0 && (module.exports = {
|
|
@@ -4624,6 +4152,21 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
4624
4152
|
Menu,
|
|
4625
4153
|
MenuItem,
|
|
4626
4154
|
MeshApp,
|
|
4155
|
+
ParameterGroup,
|
|
4156
|
+
ParameterImage,
|
|
4157
|
+
ParameterImageInner,
|
|
4158
|
+
ParameterInput,
|
|
4159
|
+
ParameterInputInner,
|
|
4160
|
+
ParameterLabel,
|
|
4161
|
+
ParameterMenuButton,
|
|
4162
|
+
ParameterSelect,
|
|
4163
|
+
ParameterSelectInner,
|
|
4164
|
+
ParameterShell,
|
|
4165
|
+
ParameterShellContext,
|
|
4166
|
+
ParameterTextarea,
|
|
4167
|
+
ParameterTextareaInner,
|
|
4168
|
+
ParameterToggle,
|
|
4169
|
+
ParameterToggleInner,
|
|
4627
4170
|
ProductPreviewList,
|
|
4628
4171
|
ProductQuery,
|
|
4629
4172
|
ProductQueryContext,
|
|
@@ -4721,6 +4264,7 @@ __reExport(src_exports, require("@uniformdev/mesh-sdk"), module.exports);
|
|
|
4721
4264
|
urlEncodeRequestUrl,
|
|
4722
4265
|
useInitializeUniformMeshSdk,
|
|
4723
4266
|
useMeshLocation,
|
|
4267
|
+
useParameterShell,
|
|
4724
4268
|
useProductQueryContext,
|
|
4725
4269
|
useProductSearchContext,
|
|
4726
4270
|
useRequest,
|