@oliasoft-open-source/react-ui-library 4.2.4 → 4.2.5-beta-1
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/assets/{index-0d78a198.css → index-2d24bc5e.css} +41 -55
- package/dist/assets/{index-26f804a8.js → index-916a574f.js} +64 -68
- package/dist/global.css +41 -55
- package/dist/index.html +1 -1
- package/dist/index.js +94 -88
- package/dist/index.js.map +1 -1
- package/dist/storybook/assets/{Color-6VNJS4EI-163220a2.js → Color-6VNJS4EI-13835166.js} +1 -1
- package/dist/storybook/assets/{DocsRenderer-NNNQARDV-05aa1dec.js → DocsRenderer-NNNQARDV-4f588b61.js} +1 -1
- package/dist/storybook/assets/{WithTooltip-4HIR6TLV-324450a3.js → WithTooltip-4HIR6TLV-b42c6128.js} +1 -1
- package/dist/storybook/assets/buttons-and-links-efbcacad.js +14 -0
- package/dist/storybook/assets/{chunk-HLWAVYOI-e8fc2b58.js → chunk-HLWAVYOI-a6703799.js} +1 -1
- package/dist/storybook/assets/color-d5f5459d.js +25 -0
- package/dist/storybook/assets/file-input.stories-34630c12.js +66 -0
- package/dist/storybook/assets/{formatter-SWP5E3XI-72c21db3.js → formatter-SWP5E3XI-a96d02d8.js} +1 -1
- package/dist/storybook/assets/iframe-45fdf8ff.js +1 -0
- package/dist/storybook/assets/{index-e7458aee.js → index-a92f5849.js} +4 -4
- package/dist/storybook/assets/{input-validation-3c2e0c83.js → input-validation-c8eebd02.js} +1 -1
- package/dist/storybook/assets/{inputs-2ac34317.js → inputs-2b586db3.js} +2 -2
- package/dist/storybook/assets/{layout-forms-25900038.js → layout-forms-3b068d31.js} +1 -1
- package/dist/storybook/assets/{layout-general-4a70e2af.js → layout-general-1a8222ee.js} +1 -1
- package/dist/storybook/assets/message-a2b9aa31.css +1 -0
- package/dist/storybook/assets/message-d6c6821b.js +1 -0
- package/dist/storybook/assets/{message.stories-f41a0c22.js → message.stories-11003e53.js} +28 -28
- package/dist/storybook/assets/{padding-and-spacing-fd0bb136.js → padding-and-spacing-747e4160.js} +1 -1
- package/dist/storybook/assets/pop-confirm.stories-ea90fa3e.js +7 -0
- package/dist/storybook/assets/preview-64515bf5.js +1 -0
- package/dist/storybook/assets/{preview-7e324763.js → preview-989e50b7.js} +3 -3
- package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-cda70340.js → syntaxhighlighter-NMPM6SWI-91e5651b.js} +1 -1
- package/dist/storybook/assets/text-link-f4589768.js +1 -0
- package/dist/storybook/assets/text-link.stories-6b7c8329.js +1 -0
- package/dist/storybook/assets/{toaster-541ce85b.js → toaster-2d3c8666.js} +1 -1
- package/dist/storybook/assets/{toaster.stories-5e4d95b1.js → toaster.stories-d95451f5.js} +2 -2
- package/dist/storybook/assets/unit-input.stories-80d24aba.js +273 -0
- package/dist/storybook/iframe.html +1 -1
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/stories.json +1 -1
- package/package.json +1 -1
- package/dist/404.html +0 -1
- package/dist/storybook/assets/buttons-and-links-9bbcee77.js +0 -14
- package/dist/storybook/assets/color-abfd0eb6.js +0 -25
- package/dist/storybook/assets/file-input.stories-1c6ce0ea.js +0 -55
- package/dist/storybook/assets/iframe-eb834e80.js +0 -1
- package/dist/storybook/assets/message-7e627e60.js +0 -1
- package/dist/storybook/assets/message-b56c617e.css +0 -1
- package/dist/storybook/assets/pop-confirm.stories-81b30901.js +0 -7
- package/dist/storybook/assets/preview-fdf00da6.js +0 -1
- package/dist/storybook/assets/text-link.stories-c1227c6f.js +0 -1
- package/dist/storybook/assets/unit-input.stories-65984064.js +0 -273
|
@@ -3094,80 +3094,80 @@ html[data-theme='dark'] {
|
|
|
3094
3094
|
._details_477i5_53 {
|
|
3095
3095
|
margin-top: var(--padding-xs);
|
|
3096
3096
|
}
|
|
3097
|
-
.
|
|
3097
|
+
._inputInTable_1w5ra_1 {
|
|
3098
3098
|
background-color: transparent;
|
|
3099
3099
|
border-radius: inherit !important;
|
|
3100
3100
|
height: var(--size);
|
|
3101
3101
|
min-height: 100%;
|
|
3102
3102
|
}
|
|
3103
|
-
.
|
|
3103
|
+
._inputInTable_1w5ra_1:not(:hover) {
|
|
3104
3104
|
border-color: transparent;
|
|
3105
3105
|
}
|
|
3106
|
-
.
|
|
3106
|
+
._inputInTable_1w5ra_1:not(:focus) {
|
|
3107
3107
|
box-shadow: none;
|
|
3108
3108
|
}
|
|
3109
|
-
.
|
|
3109
|
+
._inputHover_1w5ra_13 {
|
|
3110
3110
|
position: relative;
|
|
3111
3111
|
border-color: var(--color-border-hover);
|
|
3112
3112
|
z-index: 2;
|
|
3113
3113
|
}
|
|
3114
|
-
.
|
|
3114
|
+
._inputFocus_1w5ra_18 {
|
|
3115
3115
|
position: relative;
|
|
3116
3116
|
outline: none !important;
|
|
3117
3117
|
border-color: var(--color-border-focus) !important;
|
|
3118
3118
|
box-shadow: var(--shadow-focus);
|
|
3119
3119
|
z-index: 3;
|
|
3120
3120
|
}
|
|
3121
|
-
.
|
|
3122
|
-
.
|
|
3121
|
+
._inputError_1w5ra_25,
|
|
3122
|
+
._inputWarning_1w5ra_26 {
|
|
3123
3123
|
position: relative;
|
|
3124
3124
|
}
|
|
3125
|
-
.
|
|
3125
|
+
._inputError_1w5ra_25 {
|
|
3126
3126
|
z-index: 2;
|
|
3127
3127
|
border-color: var(--color-border-error);
|
|
3128
3128
|
color: var(--color-text-error) !important;
|
|
3129
3129
|
background-color: var(--color-background-error-muted);
|
|
3130
3130
|
}
|
|
3131
|
-
.
|
|
3131
|
+
._inputError_1w5ra_25:hover {
|
|
3132
3132
|
border-color: var(--color-border-error-hover) !important;
|
|
3133
3133
|
}
|
|
3134
|
-
.
|
|
3134
|
+
._inputError_1w5ra_25:focus {
|
|
3135
3135
|
position: relative;
|
|
3136
3136
|
outline: none !important;
|
|
3137
3137
|
border-color: var(--color-border-focus) !important;
|
|
3138
3138
|
box-shadow: var(--shadow-focus);
|
|
3139
3139
|
z-index: 3;
|
|
3140
3140
|
}
|
|
3141
|
-
.
|
|
3141
|
+
._inputWarning_1w5ra_26 {
|
|
3142
3142
|
z-index: 1;
|
|
3143
3143
|
border-color: var(--color-border-warning);
|
|
3144
3144
|
color: var(--color-text-warning) !important;
|
|
3145
3145
|
background-color: var(--color-background-warning-muted);
|
|
3146
3146
|
}
|
|
3147
|
-
.
|
|
3147
|
+
._inputWarning_1w5ra_26:hover {
|
|
3148
3148
|
border-color: var(--color-border-warning-hover) !important;
|
|
3149
3149
|
}
|
|
3150
|
-
.
|
|
3150
|
+
._inputWarning_1w5ra_26:focus {
|
|
3151
3151
|
position: relative;
|
|
3152
3152
|
outline: none !important;
|
|
3153
3153
|
border-color: var(--color-border-focus) !important;
|
|
3154
3154
|
box-shadow: var(--shadow-focus);
|
|
3155
3155
|
z-index: 3;
|
|
3156
3156
|
}
|
|
3157
|
-
.
|
|
3157
|
+
._inputDisabled_1w5ra_61 {
|
|
3158
3158
|
pointer-events: none;
|
|
3159
3159
|
background-color: var(--color-background-disabled);
|
|
3160
3160
|
color: var(--color-text-muted);
|
|
3161
3161
|
box-shadow: none;
|
|
3162
3162
|
}
|
|
3163
|
-
.
|
|
3163
|
+
._hideScrollbars_1w5ra_67 {
|
|
3164
3164
|
/* Firefox */
|
|
3165
3165
|
scrollbar-width: none;
|
|
3166
3166
|
/* IE 10+ */
|
|
3167
3167
|
-ms-overflow-style: none;
|
|
3168
3168
|
/* Chrome, Safari and Opera */
|
|
3169
3169
|
}
|
|
3170
|
-
.
|
|
3170
|
+
._hideScrollbars_1w5ra_67::-webkit-scrollbar {
|
|
3171
3171
|
display: none;
|
|
3172
3172
|
}
|
|
3173
3173
|
:root {
|
|
@@ -3176,8 +3176,8 @@ html[data-theme='dark'] {
|
|
|
3176
3176
|
html[data-theme='dark'] {
|
|
3177
3177
|
--color-border-message: rgba(255, 255, 255, 0.1);
|
|
3178
3178
|
}
|
|
3179
|
-
.
|
|
3180
|
-
padding: var(--padding-
|
|
3179
|
+
._container_1w5ra_83 {
|
|
3180
|
+
padding: var(--padding-input);
|
|
3181
3181
|
border-radius: var(--border-radius);
|
|
3182
3182
|
display: inline-flex;
|
|
3183
3183
|
align-items: flex-start;
|
|
@@ -3190,41 +3190,39 @@ html[data-theme='dark'] {
|
|
|
3190
3190
|
/* IE 10+ */
|
|
3191
3191
|
-ms-overflow-style: none;
|
|
3192
3192
|
/* Chrome, Safari and Opera */
|
|
3193
|
+
color: var(--color-text-muted);
|
|
3194
|
+
background-color: var(--color-neutral-100);
|
|
3193
3195
|
}
|
|
3194
|
-
.
|
|
3196
|
+
._container_1w5ra_83::-webkit-scrollbar {
|
|
3195
3197
|
display: none;
|
|
3196
3198
|
}
|
|
3197
|
-
.
|
|
3199
|
+
._container_1w5ra_83._block_1w5ra_103 {
|
|
3198
3200
|
display: flex;
|
|
3199
3201
|
}
|
|
3200
|
-
.
|
|
3201
|
-
color: var(--color-text-info);
|
|
3202
|
-
background-color: var(--color-background-info-muted);
|
|
3203
|
-
}
|
|
3204
|
-
._container_s49vk_83._success_s49vk_108 {
|
|
3202
|
+
._container_1w5ra_83._success_1w5ra_106 {
|
|
3205
3203
|
color: var(--color-text-success);
|
|
3206
3204
|
background-color: var(--color-background-success-muted);
|
|
3207
3205
|
}
|
|
3208
|
-
.
|
|
3206
|
+
._container_1w5ra_83._warning_1w5ra_110 {
|
|
3209
3207
|
color: var(--color-text-warning);
|
|
3210
3208
|
background-color: var(--color-background-warning-muted);
|
|
3211
3209
|
}
|
|
3212
|
-
.
|
|
3210
|
+
._container_1w5ra_83._error_1w5ra_114 {
|
|
3213
3211
|
color: var(--color-text-error);
|
|
3214
3212
|
background-color: var(--color-background-error-muted);
|
|
3215
3213
|
}
|
|
3216
|
-
.
|
|
3214
|
+
._content_1w5ra_118 {
|
|
3217
3215
|
flex: 1;
|
|
3218
3216
|
min-width: 0;
|
|
3219
3217
|
}
|
|
3220
|
-
.
|
|
3218
|
+
._heading_1w5ra_122 {
|
|
3221
3219
|
font-weight: bold;
|
|
3222
3220
|
letter-spacing: var(--letter-spacing-wide);
|
|
3223
3221
|
text-transform: uppercase;
|
|
3224
3222
|
font-size: var(--font-size-sm);
|
|
3225
3223
|
line-height: var(--line-height);
|
|
3226
3224
|
}
|
|
3227
|
-
.
|
|
3225
|
+
._icon_1w5ra_129 {
|
|
3228
3226
|
display: flex;
|
|
3229
3227
|
justify-content: center;
|
|
3230
3228
|
align-items: center;
|
|
@@ -3232,41 +3230,29 @@ html[data-theme='dark'] {
|
|
|
3232
3230
|
margin-right: var(--padding-xs);
|
|
3233
3231
|
font-size: var(--size-xs);
|
|
3234
3232
|
}
|
|
3235
|
-
.
|
|
3236
|
-
|
|
3237
|
-
|
|
3233
|
+
._dismiss_1w5ra_137 {
|
|
3234
|
+
--offset-message-dismiss-x: calc(-1 * var(--padding-input-x) + var(--padding-xxs));
|
|
3235
|
+
--offset-message-dismiss-y: calc((var(--line-height) - var(--size-sm)) / 2);
|
|
3236
|
+
display: flex;
|
|
3237
|
+
margin-top: var(--offset-message-dismiss-y);
|
|
3238
|
+
margin-bottom: var(--offset-message-dismiss-y);
|
|
3239
|
+
margin-left: var(--padding-sm);
|
|
3240
|
+
margin-right: var(--offset-message-dismiss-x);
|
|
3238
3241
|
}
|
|
3239
|
-
.
|
|
3242
|
+
._dismiss_1w5ra_137._absolute_1w5ra_146 {
|
|
3240
3243
|
position: absolute;
|
|
3241
3244
|
top: var(--padding-sm);
|
|
3242
3245
|
right: var(--padding-sm);
|
|
3243
3246
|
}
|
|
3244
|
-
.
|
|
3245
|
-
--offset-message-dismiss: calc((var(--line-height) - var(--size-sm)) / 2);
|
|
3246
|
-
display: flex;
|
|
3247
|
-
margin-top: var(--offset-message-dismiss);
|
|
3248
|
-
margin-bottom: var(--offset-message-dismiss);
|
|
3249
|
-
margin-right: var(--offset-message-dismiss);
|
|
3250
|
-
}
|
|
3251
|
-
._legendToggle_s49vk_155 {
|
|
3252
|
-
opacity: 0.6;
|
|
3253
|
-
}
|
|
3254
|
-
._legendToggle_s49vk_155:hover {
|
|
3255
|
-
opacity: 0.8;
|
|
3256
|
-
cursor: pointer;
|
|
3257
|
-
}
|
|
3258
|
-
._legendToggle_s49vk_155:active {
|
|
3259
|
-
opacity: 1;
|
|
3260
|
-
}
|
|
3261
|
-
._detailsText_s49vk_165 {
|
|
3262
|
-
margin-top: var(--padding-xxs);
|
|
3247
|
+
._detailsText_1w5ra_151 {
|
|
3263
3248
|
word-break: break-word;
|
|
3264
3249
|
}
|
|
3265
|
-
.
|
|
3250
|
+
._footer_1w5ra_154 {
|
|
3266
3251
|
display: flex;
|
|
3267
3252
|
flex-wrap: wrap;
|
|
3268
|
-
gap: var(--padding-
|
|
3253
|
+
gap: var(--padding-xs);
|
|
3269
3254
|
margin-top: var(--padding-xxs);
|
|
3255
|
+
padding-bottom: var(--padding-xxs);
|
|
3270
3256
|
}
|
|
3271
3257
|
._wrapper_sb0hc_1 {
|
|
3272
3258
|
z-index: var(--zindex-modal);
|
|
@@ -26265,27 +26265,25 @@ const styles$v = {
|
|
|
26265
26265
|
text: text$1,
|
|
26266
26266
|
details: details$1
|
|
26267
26267
|
};
|
|
26268
|
-
const inputInTable$7 = "
|
|
26269
|
-
const inputHover$7 = "
|
|
26270
|
-
const inputFocus$7 = "
|
|
26271
|
-
const inputError$7 = "
|
|
26272
|
-
const inputWarning$7 = "
|
|
26273
|
-
const inputDisabled$7 = "
|
|
26274
|
-
const hideScrollbars$7 = "
|
|
26275
|
-
const container$2 = "
|
|
26276
|
-
const block$1 = "
|
|
26277
|
-
const
|
|
26278
|
-
const
|
|
26279
|
-
const
|
|
26280
|
-
const
|
|
26281
|
-
const
|
|
26282
|
-
const
|
|
26283
|
-
const
|
|
26284
|
-
const
|
|
26285
|
-
const
|
|
26286
|
-
const
|
|
26287
|
-
const detailsText = "_detailsText_s49vk_165";
|
|
26288
|
-
const footer$1 = "_footer_s49vk_169";
|
|
26268
|
+
const inputInTable$7 = "_inputInTable_1w5ra_1";
|
|
26269
|
+
const inputHover$7 = "_inputHover_1w5ra_13";
|
|
26270
|
+
const inputFocus$7 = "_inputFocus_1w5ra_18";
|
|
26271
|
+
const inputError$7 = "_inputError_1w5ra_25";
|
|
26272
|
+
const inputWarning$7 = "_inputWarning_1w5ra_26";
|
|
26273
|
+
const inputDisabled$7 = "_inputDisabled_1w5ra_61";
|
|
26274
|
+
const hideScrollbars$7 = "_hideScrollbars_1w5ra_67";
|
|
26275
|
+
const container$2 = "_container_1w5ra_83";
|
|
26276
|
+
const block$1 = "_block_1w5ra_103";
|
|
26277
|
+
const success = "_success_1w5ra_106";
|
|
26278
|
+
const warning$5 = "_warning_1w5ra_110";
|
|
26279
|
+
const error$n = "_error_1w5ra_114";
|
|
26280
|
+
const content$1 = "_content_1w5ra_118";
|
|
26281
|
+
const heading$2 = "_heading_1w5ra_122";
|
|
26282
|
+
const icon$3 = "_icon_1w5ra_129";
|
|
26283
|
+
const dismiss$1 = "_dismiss_1w5ra_137";
|
|
26284
|
+
const absolute = "_absolute_1w5ra_146";
|
|
26285
|
+
const detailsText = "_detailsText_1w5ra_151";
|
|
26286
|
+
const footer$1 = "_footer_1w5ra_154";
|
|
26289
26287
|
const styles$u = {
|
|
26290
26288
|
inputInTable: inputInTable$7,
|
|
26291
26289
|
inputHover: inputHover$7,
|
|
@@ -26296,7 +26294,6 @@ const styles$u = {
|
|
|
26296
26294
|
hideScrollbars: hideScrollbars$7,
|
|
26297
26295
|
container: container$2,
|
|
26298
26296
|
block: block$1,
|
|
26299
|
-
info,
|
|
26300
26297
|
success,
|
|
26301
26298
|
warning: warning$5,
|
|
26302
26299
|
error: error$n,
|
|
@@ -26305,10 +26302,18 @@ const styles$u = {
|
|
|
26305
26302
|
icon: icon$3,
|
|
26306
26303
|
dismiss: dismiss$1,
|
|
26307
26304
|
absolute,
|
|
26308
|
-
legendToggle,
|
|
26309
26305
|
detailsText,
|
|
26310
26306
|
footer: footer$1
|
|
26311
26307
|
};
|
|
26308
|
+
const TextLink = ({
|
|
26309
|
+
children,
|
|
26310
|
+
href = void 0,
|
|
26311
|
+
target = void 0,
|
|
26312
|
+
testId,
|
|
26313
|
+
onClick
|
|
26314
|
+
}) => {
|
|
26315
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href, target, onClick, "data-testid": testId, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { link: true, children }) });
|
|
26316
|
+
};
|
|
26312
26317
|
const wrapper$2 = "_wrapper_sb0hc_1";
|
|
26313
26318
|
const contentContainer = "_contentContainer_sb0hc_15";
|
|
26314
26319
|
const centered = "_centered_sb0hc_24";
|
|
@@ -68338,15 +68343,6 @@ const styles$8 = {
|
|
|
68338
68343
|
left: left$1,
|
|
68339
68344
|
right: right$1
|
|
68340
68345
|
};
|
|
68341
|
-
const TextLink = ({
|
|
68342
|
-
children,
|
|
68343
|
-
href = void 0,
|
|
68344
|
-
target = void 0,
|
|
68345
|
-
testId,
|
|
68346
|
-
onClick
|
|
68347
|
-
}) => {
|
|
68348
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href, target, onClick, "data-testid": testId, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { link: true, children }) });
|
|
68349
|
-
};
|
|
68350
68346
|
const inputInTable = "_inputInTable_66zck_1";
|
|
68351
68347
|
const inputHover = "_inputHover_66zck_13";
|
|
68352
68348
|
const inputFocus = "_inputFocus_66zck_18";
|
|
@@ -71612,12 +71608,12 @@ function isDragActive() {
|
|
|
71612
71608
|
return false;
|
|
71613
71609
|
}
|
|
71614
71610
|
function createHoverEvent(visualElement2, isActive, callback) {
|
|
71615
|
-
return function(event,
|
|
71611
|
+
return function(event, info) {
|
|
71616
71612
|
var _a;
|
|
71617
71613
|
if (!isMouseEvent(event) || isDragActive())
|
|
71618
71614
|
return;
|
|
71619
71615
|
(_a = visualElement2.animationState) === null || _a === void 0 ? void 0 : _a.setActive(AnimationType.Hover, isActive);
|
|
71620
|
-
callback === null || callback === void 0 ? void 0 : callback(event,
|
|
71616
|
+
callback === null || callback === void 0 ? void 0 : callback(event, info);
|
|
71621
71617
|
};
|
|
71622
71618
|
}
|
|
71623
71619
|
function useHoverGesture(_a) {
|
|
@@ -72461,17 +72457,17 @@ function useTapGesture(_a) {
|
|
|
72461
72457
|
(_a2 = visualElement2.animationState) === null || _a2 === void 0 ? void 0 : _a2.setActive(AnimationType.Tap, false);
|
|
72462
72458
|
return !isDragActive();
|
|
72463
72459
|
}
|
|
72464
|
-
function onPointerUp(event,
|
|
72460
|
+
function onPointerUp(event, info) {
|
|
72465
72461
|
if (!checkPointerEnd())
|
|
72466
72462
|
return;
|
|
72467
|
-
!isNodeOrChild(visualElement2.getInstance(), event.target) ? onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event,
|
|
72463
|
+
!isNodeOrChild(visualElement2.getInstance(), event.target) ? onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info) : onTap === null || onTap === void 0 ? void 0 : onTap(event, info);
|
|
72468
72464
|
}
|
|
72469
|
-
function onPointerCancel(event,
|
|
72465
|
+
function onPointerCancel(event, info) {
|
|
72470
72466
|
if (!checkPointerEnd())
|
|
72471
72467
|
return;
|
|
72472
|
-
onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event,
|
|
72468
|
+
onTapCancel === null || onTapCancel === void 0 ? void 0 : onTapCancel(event, info);
|
|
72473
72469
|
}
|
|
72474
|
-
function onPointerDown(event,
|
|
72470
|
+
function onPointerDown(event, info) {
|
|
72475
72471
|
var _a2;
|
|
72476
72472
|
removePointerEndListener();
|
|
72477
72473
|
if (isPressing.current)
|
|
@@ -72479,7 +72475,7 @@ function useTapGesture(_a) {
|
|
|
72479
72475
|
isPressing.current = true;
|
|
72480
72476
|
cancelPointerEndListeners.current = pipe(addPointerEvent(window, "pointerup", onPointerUp, eventOptions), addPointerEvent(window, "pointercancel", onPointerCancel, eventOptions));
|
|
72481
72477
|
(_a2 = visualElement2.animationState) === null || _a2 === void 0 ? void 0 : _a2.setActive(AnimationType.Tap, true);
|
|
72482
|
-
onTapStart === null || onTapStart === void 0 ? void 0 : onTapStart(event,
|
|
72478
|
+
onTapStart === null || onTapStart === void 0 ? void 0 : onTapStart(event, info);
|
|
72483
72479
|
}
|
|
72484
72480
|
usePointerEvent(visualElement2, "pointerdown", hasPressListeners ? onPointerDown : void 0, eventOptions);
|
|
72485
72481
|
useUnmountEffect(removePointerEndListener);
|
|
@@ -73491,34 +73487,34 @@ var PanSession = (
|
|
|
73491
73487
|
this.updatePoint = function() {
|
|
73492
73488
|
if (!(_this.lastMoveEvent && _this.lastMoveEventInfo))
|
|
73493
73489
|
return;
|
|
73494
|
-
var
|
|
73490
|
+
var info2 = getPanInfo(_this.lastMoveEventInfo, _this.history);
|
|
73495
73491
|
var isPanStarted = _this.startEvent !== null;
|
|
73496
|
-
var isDistancePastThreshold = distance(
|
|
73492
|
+
var isDistancePastThreshold = distance(info2.offset, { x: 0, y: 0 }) >= 3;
|
|
73497
73493
|
if (!isPanStarted && !isDistancePastThreshold)
|
|
73498
73494
|
return;
|
|
73499
|
-
var point2 =
|
|
73495
|
+
var point2 = info2.point;
|
|
73500
73496
|
var timestamp2 = getFrameData().timestamp;
|
|
73501
73497
|
_this.history.push(__assign$2(__assign$2({}, point2), { timestamp: timestamp2 }));
|
|
73502
73498
|
var _a2 = _this.handlers, onStart = _a2.onStart, onMove = _a2.onMove;
|
|
73503
73499
|
if (!isPanStarted) {
|
|
73504
|
-
onStart && onStart(_this.lastMoveEvent,
|
|
73500
|
+
onStart && onStart(_this.lastMoveEvent, info2);
|
|
73505
73501
|
_this.startEvent = _this.lastMoveEvent;
|
|
73506
73502
|
}
|
|
73507
|
-
onMove && onMove(_this.lastMoveEvent,
|
|
73503
|
+
onMove && onMove(_this.lastMoveEvent, info2);
|
|
73508
73504
|
};
|
|
73509
|
-
this.handlePointerMove = function(event2,
|
|
73505
|
+
this.handlePointerMove = function(event2, info2) {
|
|
73510
73506
|
_this.lastMoveEvent = event2;
|
|
73511
|
-
_this.lastMoveEventInfo = transformPoint(
|
|
73507
|
+
_this.lastMoveEventInfo = transformPoint(info2, _this.transformPagePoint);
|
|
73512
73508
|
if (isMouseEvent(event2) && event2.buttons === 0) {
|
|
73513
|
-
_this.handlePointerUp(event2,
|
|
73509
|
+
_this.handlePointerUp(event2, info2);
|
|
73514
73510
|
return;
|
|
73515
73511
|
}
|
|
73516
73512
|
sync.update(_this.updatePoint, true);
|
|
73517
73513
|
};
|
|
73518
|
-
this.handlePointerUp = function(event2,
|
|
73514
|
+
this.handlePointerUp = function(event2, info2) {
|
|
73519
73515
|
_this.end();
|
|
73520
73516
|
var _a2 = _this.handlers, onEnd = _a2.onEnd, onSessionEnd = _a2.onSessionEnd;
|
|
73521
|
-
var panInfo = getPanInfo(transformPoint(
|
|
73517
|
+
var panInfo = getPanInfo(transformPoint(info2, _this.transformPagePoint), _this.history);
|
|
73522
73518
|
if (_this.startEvent && onEnd) {
|
|
73523
73519
|
onEnd(event2, panInfo);
|
|
73524
73520
|
}
|
|
@@ -73528,8 +73524,8 @@ var PanSession = (
|
|
|
73528
73524
|
return;
|
|
73529
73525
|
this.handlers = handlers2;
|
|
73530
73526
|
this.transformPagePoint = transformPagePoint;
|
|
73531
|
-
var
|
|
73532
|
-
var initialInfo = transformPoint(
|
|
73527
|
+
var info = extractEventInfo(event);
|
|
73528
|
+
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
73533
73529
|
var point = initialInfo.point;
|
|
73534
73530
|
var timestamp = getFrameData().timestamp;
|
|
73535
73531
|
this.history = [__assign$2(__assign$2({}, point), { timestamp })];
|
|
@@ -73547,8 +73543,8 @@ var PanSession = (
|
|
|
73547
73543
|
return PanSession2;
|
|
73548
73544
|
}()
|
|
73549
73545
|
);
|
|
73550
|
-
function transformPoint(
|
|
73551
|
-
return transformPagePoint ? { point: transformPagePoint(
|
|
73546
|
+
function transformPoint(info, transformPagePoint) {
|
|
73547
|
+
return transformPagePoint ? { point: transformPagePoint(info.point) } : info;
|
|
73552
73548
|
}
|
|
73553
73549
|
function subtractPoint(a2, b2) {
|
|
73554
73550
|
return { x: a2.x - b2.x, y: a2.y - b2.y };
|
|
@@ -73899,7 +73895,7 @@ var VisualElementDragControls = (
|
|
|
73899
73895
|
_this.snapToCursor(extractEventInfo(event, "page").point);
|
|
73900
73896
|
}
|
|
73901
73897
|
};
|
|
73902
|
-
var onStart = function(event,
|
|
73898
|
+
var onStart = function(event, info) {
|
|
73903
73899
|
var _a2;
|
|
73904
73900
|
var _b2 = _this.getProps(), drag2 = _b2.drag, dragPropagation = _b2.dragPropagation, onDragStart = _b2.onDragStart;
|
|
73905
73901
|
if (drag2 && !dragPropagation) {
|
|
@@ -73928,14 +73924,14 @@ var VisualElementDragControls = (
|
|
|
73928
73924
|
}
|
|
73929
73925
|
_this.originPoint[axis] = current;
|
|
73930
73926
|
});
|
|
73931
|
-
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(event,
|
|
73927
|
+
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart(event, info);
|
|
73932
73928
|
(_a2 = _this.visualElement.animationState) === null || _a2 === void 0 ? void 0 : _a2.setActive(AnimationType.Drag, true);
|
|
73933
73929
|
};
|
|
73934
|
-
var onMove = function(event,
|
|
73930
|
+
var onMove = function(event, info) {
|
|
73935
73931
|
var _a2 = _this.getProps(), dragPropagation = _a2.dragPropagation, dragDirectionLock = _a2.dragDirectionLock, onDirectionLock = _a2.onDirectionLock, onDrag = _a2.onDrag;
|
|
73936
73932
|
if (!dragPropagation && !_this.openGlobalLock)
|
|
73937
73933
|
return;
|
|
73938
|
-
var offset3 =
|
|
73934
|
+
var offset3 = info.offset;
|
|
73939
73935
|
if (dragDirectionLock && _this.currentDirection === null) {
|
|
73940
73936
|
_this.currentDirection = getCurrentDirection(offset3);
|
|
73941
73937
|
if (_this.currentDirection !== null) {
|
|
@@ -73943,13 +73939,13 @@ var VisualElementDragControls = (
|
|
|
73943
73939
|
}
|
|
73944
73940
|
return;
|
|
73945
73941
|
}
|
|
73946
|
-
_this.updateAxis("x",
|
|
73947
|
-
_this.updateAxis("y",
|
|
73942
|
+
_this.updateAxis("x", info.point, offset3);
|
|
73943
|
+
_this.updateAxis("y", info.point, offset3);
|
|
73948
73944
|
_this.visualElement.syncRender();
|
|
73949
|
-
onDrag === null || onDrag === void 0 ? void 0 : onDrag(event,
|
|
73945
|
+
onDrag === null || onDrag === void 0 ? void 0 : onDrag(event, info);
|
|
73950
73946
|
};
|
|
73951
|
-
var onSessionEnd = function(event,
|
|
73952
|
-
return _this.stop(event,
|
|
73947
|
+
var onSessionEnd = function(event, info) {
|
|
73948
|
+
return _this.stop(event, info);
|
|
73953
73949
|
};
|
|
73954
73950
|
this.panSession = new PanSession(originEvent, {
|
|
73955
73951
|
onSessionStart,
|
|
@@ -73958,15 +73954,15 @@ var VisualElementDragControls = (
|
|
|
73958
73954
|
onSessionEnd
|
|
73959
73955
|
}, { transformPagePoint: this.visualElement.getTransformPagePoint() });
|
|
73960
73956
|
};
|
|
73961
|
-
VisualElementDragControls2.prototype.stop = function(event,
|
|
73957
|
+
VisualElementDragControls2.prototype.stop = function(event, info) {
|
|
73962
73958
|
var isDragging = this.isDragging;
|
|
73963
73959
|
this.cancel();
|
|
73964
73960
|
if (!isDragging)
|
|
73965
73961
|
return;
|
|
73966
|
-
var velocity =
|
|
73962
|
+
var velocity = info.velocity;
|
|
73967
73963
|
this.startAnimation(velocity);
|
|
73968
73964
|
var onDragEnd = this.getProps().onDragEnd;
|
|
73969
|
-
onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(event,
|
|
73965
|
+
onDragEnd === null || onDragEnd === void 0 ? void 0 : onDragEnd(event, info);
|
|
73970
73966
|
};
|
|
73971
73967
|
VisualElementDragControls2.prototype.cancel = function() {
|
|
73972
73968
|
var _a, _b;
|
|
@@ -74204,9 +74200,9 @@ function usePanGesture(_a) {
|
|
|
74204
74200
|
onSessionStart: onPanSessionStart,
|
|
74205
74201
|
onStart: onPanStart,
|
|
74206
74202
|
onMove: onPan,
|
|
74207
|
-
onEnd: function(event,
|
|
74203
|
+
onEnd: function(event, info) {
|
|
74208
74204
|
panSession.current = null;
|
|
74209
|
-
onPanEnd && onPanEnd(event,
|
|
74205
|
+
onPanEnd && onPanEnd(event, info);
|
|
74210
74206
|
}
|
|
74211
74207
|
};
|
|
74212
74208
|
reactExports.useEffect(function() {
|