polotno 3.0.0-beta.36 → 3.0.0-beta.38
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/blueprint.polotno.css +73 -74
- package/canvas/context-menu/context-menu.d.ts +1 -2
- package/canvas/context-menu/context-menu.js +1 -1
- package/canvas/drawing-layer.d.ts +1 -2
- package/canvas/drawing-layer.js +1 -1
- package/canvas/element.d.ts +1 -2
- package/canvas/element.js +1 -1
- package/canvas/figure-element.d.ts +1 -2
- package/canvas/figure-element.js +1 -1
- package/canvas/gif-element.d.ts +1 -2
- package/canvas/gif-element.js +1 -1
- package/canvas/highlighter.d.ts +1 -2
- package/canvas/highlighter.js +1 -1
- package/canvas/hotkeys.js +1 -1
- package/canvas/html-element.d.ts +1 -2
- package/canvas/html-element.js +3 -3
- package/canvas/image-element.d.ts +1 -2
- package/canvas/image-element.js +1 -1
- package/canvas/line-element.d.ts +1 -2
- package/canvas/line-element.js +1 -1
- package/canvas/page-controls.d.ts +1 -2
- package/canvas/page-controls.js +1 -1
- package/canvas/page.d.ts +3 -1
- package/canvas/page.js +1 -1
- package/canvas/rules.d.ts +1 -2
- package/canvas/rules.js +6 -6
- package/canvas/table-element.d.ts +1 -2
- package/canvas/table-element.js +1 -1
- package/canvas/text-element.d.ts +1 -2
- package/canvas/text-element.js +1 -1
- package/canvas/tooltip.d.ts +1 -2
- package/canvas/tooltip.js +1 -1
- package/canvas/video-element.d.ts +1 -2
- package/canvas/video-element.js +1 -1
- package/canvas/workspace-canvas.d.ts +3 -2
- package/canvas/workspace-canvas.js +1 -1
- package/canvas/workspace.d.ts +1 -2
- package/canvas/workspace.js +1 -1
- package/icons/meronex.d.ts +24 -25
- package/icons/meronex.js +1 -1
- package/model/group-model.d.ts +28 -12
- package/model/group-model.js +1 -1
- package/model/node-model.js +1 -1
- package/model/page-model.d.ts +15 -17
- package/model/page-model.js +1 -1
- package/model/store.d.ts +140 -153
- package/model/store.js +1 -1
- package/model/table-model.d.ts +27 -0
- package/model/table-model.js +1 -1
- package/model/text-model.d.ts +1 -12
- package/package.json +16 -17
- package/pages-timeline/audio-track.d.ts +1 -2
- package/pages-timeline/audio-track.js +1 -1
- package/pages-timeline/audios.d.ts +1 -2
- package/pages-timeline/audios.js +1 -1
- package/pages-timeline/current-time.d.ts +1 -1
- package/pages-timeline/current-time.js +1 -1
- package/pages-timeline/element-track.d.ts +1 -2
- package/pages-timeline/element-track.js +1 -1
- package/pages-timeline/elements.d.ts +1 -2
- package/pages-timeline/elements.js +1 -1
- package/pages-timeline/page-preview.d.ts +5 -1
- package/pages-timeline/page-preview.js +3 -3
- package/pages-timeline/pages-timeline.d.ts +1 -2
- package/pages-timeline/pages-timeline.js +4 -4
- package/pages-timeline/pages.d.ts +1 -2
- package/pages-timeline/pages.js +1 -1
- package/pages-timeline/play-button.d.ts +1 -2
- package/pages-timeline/play-button.js +6 -6
- package/pages-timeline/time-ruler.d.ts +1 -2
- package/pages-timeline/time-ruler.js +3 -3
- package/paths.52076178.js +2 -0
- package/paths.fb1df685.js +2 -0
- package/polotno-app.d.ts +1 -1
- package/polotno-app.js +6 -6
- package/polotno.bundle.js +252 -252
- package/side-panel/ai-images-panel.d.ts +1 -2
- package/side-panel/ai-images-panel.js +1 -1
- package/side-panel/animations-panel.d.ts +2 -3
- package/side-panel/animations-panel.js +2 -2
- package/side-panel/background-panel.d.ts +1 -2
- package/side-panel/background-panel.js +2 -2
- package/side-panel/draw-panel.d.ts +1 -2
- package/side-panel/draw-panel.js +5 -5
- package/side-panel/effect-card.js +12 -12
- package/side-panel/effects-panel.d.ts +2 -3
- package/side-panel/effects-panel.js +1 -1
- package/side-panel/elements-panel.d.ts +3 -4
- package/side-panel/elements-panel.js +11 -11
- package/side-panel/image-clip-panel.d.ts +1 -2
- package/side-panel/image-clip-panel.js +2 -2
- package/side-panel/images-grid.d.ts +1 -2
- package/side-panel/images-grid.js +8 -8
- package/side-panel/layers-panel.d.ts +1 -2
- package/side-panel/layers-panel.js +1 -1
- package/side-panel/pages-panel.d.ts +1 -2
- package/side-panel/pages-panel.js +1 -1
- package/side-panel/photos-panel.d.ts +1 -2
- package/side-panel/photos-panel.js +1 -1
- package/side-panel/side-panel.d.ts +1 -1
- package/side-panel/side-panel.js +13 -13
- package/side-panel/size-panel.d.ts +1 -2
- package/side-panel/size-panel.js +1 -1
- package/side-panel/tab-button.d.ts +1 -2
- package/side-panel/tab-button.js +3 -3
- package/side-panel/templates-panel.d.ts +1 -2
- package/side-panel/templates-panel.js +1 -1
- package/side-panel/text-panel.d.ts +1 -2
- package/side-panel/text-panel.js +3 -3
- package/side-panel/upload-panel.d.ts +1 -2
- package/side-panel/upload-panel.js +1 -1
- package/side-panel/videos-grid.d.ts +1 -2
- package/side-panel/videos-grid.js +10 -10
- package/side-panel/videos-panel.d.ts +1 -2
- package/side-panel/videos-panel.js +1 -1
- package/toolbar/admin-button.d.ts +1 -2
- package/toolbar/admin-button.js +1 -1
- package/toolbar/animations-picker.d.ts +3 -4
- package/toolbar/animations-picker.js +1 -1
- package/toolbar/color-picker.d.ts +1 -2
- package/toolbar/color-picker.js +2 -2
- package/toolbar/copy-style.d.ts +2 -3
- package/toolbar/copy-style.js +1 -1
- package/toolbar/download-button.d.ts +1 -2
- package/toolbar/download-button.js +1 -1
- package/toolbar/duplicate-button.d.ts +1 -2
- package/toolbar/duplicate-button.js +1 -1
- package/toolbar/element-container.d.ts +1 -2
- package/toolbar/element-container.js +3 -3
- package/toolbar/figure-toolbar.d.ts +4 -5
- package/toolbar/figure-toolbar.js +1 -1
- package/toolbar/filters-picker.d.ts +4 -5
- package/toolbar/filters-picker.js +1 -1
- package/toolbar/flip-button.d.ts +1 -2
- package/toolbar/flip-button.js +1 -1
- package/toolbar/gif-toolbar.d.ts +1 -2
- package/toolbar/gif-toolbar.js +1 -1
- package/toolbar/group-button.d.ts +1 -2
- package/toolbar/group-button.js +1 -1
- package/toolbar/history-buttons.d.ts +1 -2
- package/toolbar/history-buttons.js +1 -1
- package/toolbar/html-toolbar.d.ts +5 -6
- package/toolbar/html-toolbar.js +1 -1
- package/toolbar/image-remove-background-button.d.ts +2 -3
- package/toolbar/image-remove-background-button.js +1 -1
- package/toolbar/image-toolbar.d.ts +5 -6
- package/toolbar/image-toolbar.js +1 -1
- package/toolbar/line-toolbar.d.ts +5 -6
- package/toolbar/line-toolbar.js +1 -1
- package/toolbar/lock-button.d.ts +1 -2
- package/toolbar/lock-button.js +1 -1
- package/toolbar/many-toolbar.d.ts +1 -2
- package/toolbar/many-toolbar.js +1 -1
- package/toolbar/opacity-picker.d.ts +1 -2
- package/toolbar/opacity-picker.js +1 -1
- package/toolbar/page-toolbar.d.ts +2 -3
- package/toolbar/page-toolbar.js +1 -1
- package/toolbar/position-picker.d.ts +1 -2
- package/toolbar/position-picker.js +1 -1
- package/toolbar/remove-button.d.ts +1 -2
- package/toolbar/remove-button.js +1 -1
- package/toolbar/sketch.d.ts +1 -1
- package/toolbar/sketch.js +1 -1
- package/toolbar/svg-toolbar.d.ts +1 -2
- package/toolbar/svg-toolbar.js +1 -1
- package/toolbar/table-toolbar.d.ts +7 -8
- package/toolbar/table-toolbar.js +1 -1
- package/toolbar/text-ai-write.d.ts +1 -2
- package/toolbar/text-ai-write.js +1 -1
- package/toolbar/text-toolbar.d.ts +12 -13
- package/toolbar/text-toolbar.js +2 -2
- package/toolbar/toolbar.d.ts +1 -1
- package/toolbar/toolbar.js +5 -5
- package/toolbar/video-toolbar.d.ts +3 -4
- package/toolbar/video-toolbar.js +1 -1
- package/toolbar/zoom-buttons.d.ts +2 -3
- package/toolbar/zoom-buttons.js +4 -4
- package/utils/html-to-svg/xhtml.js +1 -1
- package/utils/l10n.d.ts +11 -6
- package/utils/l10n.js +1 -1
- package/utils/text-html.js +1 -1
- package/utils/to-html.js +1 -1
- package/utils/to-svg.js +1 -1
- package/utils/validate-key.js +1 -1
- package/utils/xml.d.ts +1 -0
- package/utils/xml.js +7 -0
- package/paths.0e3df170.js +0 -2
- package/paths.83e1ddca.js +0 -2
package/blueprint.polotno.css
CHANGED
|
@@ -3668,7 +3668,7 @@ a > .bp6-dark .bp6-running-text code{
|
|
|
3668
3668
|
display:flex;
|
|
3669
3669
|
}
|
|
3670
3670
|
.bp6-breadcrumbs > li::after{
|
|
3671
|
-
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='
|
|
3671
|
+
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%235f6b7c' d='m10.71 7.29-4-4a1.003 1.003 0 0 0-1.42 1.42L8.59 8 5.3 11.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71l4-4c.18-.18.29-.43.29-.71s-.11-.53-.29-.71'/%3e%3c/svg%3e");
|
|
3672
3672
|
content:"";
|
|
3673
3673
|
display:block;
|
|
3674
3674
|
height:16px;
|
|
@@ -3723,7 +3723,7 @@ a > .bp6-dark .bp6-running-text code{
|
|
|
3723
3723
|
vertical-align:text-bottom;
|
|
3724
3724
|
}
|
|
3725
3725
|
.bp6-breadcrumbs-collapsed::before{
|
|
3726
|
-
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M2 6a2 2 0
|
|
3726
|
+
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%235f6b7c' d='M2 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4m6 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4m6 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4'/%3e%3c/svg%3e") center no-repeat;
|
|
3727
3727
|
content:"";
|
|
3728
3728
|
display:block;
|
|
3729
3729
|
height:16px;
|
|
@@ -3740,7 +3740,7 @@ a > .bp6-dark .bp6-running-text code{
|
|
|
3740
3740
|
color:#abb3bf;
|
|
3741
3741
|
}
|
|
3742
3742
|
.bp6-dark .bp6-breadcrumbs > li::after{
|
|
3743
|
-
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='
|
|
3743
|
+
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23abb3bf' d='m10.71 7.29-4-4a1.003 1.003 0 0 0-1.42 1.42L8.59 8 5.3 11.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71l4-4c.18-.18.29-.43.29-.71s-.11-.53-.29-.71'/%3e%3c/svg%3e");
|
|
3744
3744
|
color:#abb3bf;
|
|
3745
3745
|
}
|
|
3746
3746
|
.bp6-dark .bp6-breadcrumb.bp6-disabled{
|
|
@@ -3753,7 +3753,7 @@ a > .bp6-dark .bp6-running-text code{
|
|
|
3753
3753
|
background:rgba(143, 153, 168, 0.2);
|
|
3754
3754
|
}
|
|
3755
3755
|
.bp6-dark .bp6-breadcrumbs-collapsed::before{
|
|
3756
|
-
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M2 6a2 2 0
|
|
3756
|
+
background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23abb3bf' d='M2 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4m6 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4m6 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4'/%3e%3c/svg%3e") center no-repeat;
|
|
3757
3757
|
}
|
|
3758
3758
|
.bp6-dark .bp6-breadcrumbs-collapsed:hover{
|
|
3759
3759
|
background:rgba(143, 153, 168, 0.3);
|
|
@@ -4081,8 +4081,8 @@ a > .bp6-dark .bp6-running-text code{
|
|
|
4081
4081
|
.bp6-button .bp6-icon:not([class*=bp6-intent-]){
|
|
4082
4082
|
color:var(--bp-typography-color-muted);
|
|
4083
4083
|
}
|
|
4084
|
-
.bp6-button .bp6-icon:first-child:last-child,
|
|
4085
|
-
.bp6-button .bp6-spinner + .bp6-icon:last-child{
|
|
4084
|
+
.bp6-button > .bp6-icon:first-child:last-child,
|
|
4085
|
+
.bp6-button > .bp6-spinner + .bp6-icon:last-child{
|
|
4086
4086
|
margin:0 calc(-1 * (var(--bp-surface-spacing) * 7.5 - var(--bp-surface-spacing) * 4) * 0.5);
|
|
4087
4087
|
}
|
|
4088
4088
|
.bp6-dark .bp6-button:not([class*=bp6-intent-]), [data-bp-color-scheme=dark] .bp6-button:not([class*=bp6-intent-]){
|
|
@@ -4863,20 +4863,25 @@ a.bp6-button.bp6-disabled{
|
|
|
4863
4863
|
z-index:8;
|
|
4864
4864
|
}
|
|
4865
4865
|
.bp6-button-group:not(.bp6-minimal) > .bp6-popover-wrapper:not(:first-child) .bp6-button,
|
|
4866
|
+
.bp6-button-group:not(.bp6-minimal) > .bp6-popover-target:not(:first-child) > .bp6-button,
|
|
4866
4867
|
.bp6-button-group:not(.bp6-minimal) > .bp6-button:not(:first-child),
|
|
4867
4868
|
.bp6-button-group.bp6-outlined > .bp6-popover-wrapper:not(:first-child) .bp6-button,
|
|
4869
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target:not(:first-child) > .bp6-button,
|
|
4868
4870
|
.bp6-button-group.bp6-outlined > .bp6-button:not(:first-child){
|
|
4869
4871
|
border-bottom-left-radius:0;
|
|
4870
4872
|
border-top-left-radius:0;
|
|
4871
4873
|
}
|
|
4872
4874
|
.bp6-button-group:not(.bp6-minimal) > .bp6-popover-wrapper:not(:last-child) .bp6-button,
|
|
4875
|
+
.bp6-button-group:not(.bp6-minimal) > .bp6-popover-target:not(:last-child) > .bp6-button,
|
|
4873
4876
|
.bp6-button-group:not(.bp6-minimal) > .bp6-button:not(:last-child),
|
|
4874
4877
|
.bp6-button-group.bp6-outlined > .bp6-popover-wrapper:not(:last-child) .bp6-button,
|
|
4878
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target:not(:last-child) > .bp6-button,
|
|
4875
4879
|
.bp6-button-group.bp6-outlined > .bp6-button:not(:last-child){
|
|
4876
4880
|
border-bottom-right-radius:0;
|
|
4877
4881
|
border-top-right-radius:0;
|
|
4878
4882
|
}
|
|
4879
4883
|
.bp6-button-group:not(.bp6-minimal):not(.bp6-outlined) > .bp6-popover-wrapper:not(:last-child) .bp6-button,
|
|
4884
|
+
.bp6-button-group:not(.bp6-minimal):not(.bp6-outlined) > .bp6-popover-target:not(:last-child) > .bp6-button,
|
|
4880
4885
|
.bp6-button-group:not(.bp6-minimal):not(.bp6-outlined) > .bp6-button:not(:last-child){
|
|
4881
4886
|
margin-right:calc(-1 * var(--bp-surface-border-width));
|
|
4882
4887
|
}
|
|
@@ -5159,80 +5164,87 @@ a.bp6-button.bp6-disabled{
|
|
|
5159
5164
|
margin-right:calc(-1 * var(--bp-surface-border-width));
|
|
5160
5165
|
}
|
|
5161
5166
|
}
|
|
5162
|
-
.bp6-button-group.bp6-outlined > .bp6-button
|
|
5167
|
+
.bp6-button-group.bp6-outlined > .bp6-button,
|
|
5168
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button{
|
|
5163
5169
|
border:var(--bp-surface-border-width) solid var(--bp-surface-border-color-strong);
|
|
5164
5170
|
box-sizing:border-box;
|
|
5165
5171
|
}
|
|
5166
|
-
.bp6-button-group.bp6-outlined > .bp6-button:disabled, .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover{
|
|
5172
|
+
.bp6-button-group.bp6-outlined > .bp6-button:disabled, .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled:hover, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled:hover{
|
|
5167
5173
|
border-color:var(--bp-surface-border-color-default);
|
|
5168
5174
|
}
|
|
5169
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button{
|
|
5175
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button{
|
|
5170
5176
|
border-color:var(--bp-surface-border-color-strong);
|
|
5171
5177
|
}
|
|
5172
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover{
|
|
5178
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button:disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-disabled:hover, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled:hover, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button:disabled:hover, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-disabled:hover{
|
|
5173
5179
|
border-color:var(--bp-surface-border-color-default);
|
|
5174
5180
|
}
|
|
5175
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary
|
|
5181
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary,
|
|
5182
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary{
|
|
5176
5183
|
border-color:color-mix(in oklch, var(--bp-intent-primary-hover) 60%, transparent);
|
|
5177
5184
|
}
|
|
5178
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled{
|
|
5185
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary.bp6-disabled{
|
|
5179
5186
|
border-color:color-mix(in oklch, var(--bp-intent-primary-hover) 20%, transparent);
|
|
5180
5187
|
}
|
|
5181
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary{
|
|
5188
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary{
|
|
5182
5189
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-primary-rest) 51%, var(--bp-palette-white)) 60%, transparent);
|
|
5183
5190
|
}
|
|
5184
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled{
|
|
5191
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-primary.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-primary.bp6-disabled{
|
|
5185
5192
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-primary-rest) 51%, var(--bp-palette-white)) 20%, transparent);
|
|
5186
5193
|
}
|
|
5187
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success
|
|
5194
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success,
|
|
5195
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success{
|
|
5188
5196
|
border-color:color-mix(in oklch, var(--bp-intent-success-hover) 60%, transparent);
|
|
5189
5197
|
}
|
|
5190
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled{
|
|
5198
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success.bp6-disabled{
|
|
5191
5199
|
border-color:color-mix(in oklch, var(--bp-intent-success-hover) 20%, transparent);
|
|
5192
5200
|
}
|
|
5193
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success{
|
|
5201
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success{
|
|
5194
5202
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-success-rest) 54%, var(--bp-palette-white)) 60%, transparent);
|
|
5195
5203
|
}
|
|
5196
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled{
|
|
5204
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-success.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-success.bp6-disabled{
|
|
5197
5205
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-success-rest) 54%, var(--bp-palette-white)) 20%, transparent);
|
|
5198
5206
|
}
|
|
5199
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning
|
|
5207
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning,
|
|
5208
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning{
|
|
5200
5209
|
border-color:color-mix(in oklch, var(--bp-intent-warning-hover) 60%, transparent);
|
|
5201
5210
|
}
|
|
5202
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled{
|
|
5211
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning.bp6-disabled{
|
|
5203
5212
|
border-color:color-mix(in oklch, var(--bp-intent-warning-hover) 20%, transparent);
|
|
5204
5213
|
}
|
|
5205
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning{
|
|
5214
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning{
|
|
5206
5215
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-warning-rest) 53%, var(--bp-palette-white)) 60%, transparent);
|
|
5207
5216
|
}
|
|
5208
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled{
|
|
5217
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-warning.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-warning.bp6-disabled{
|
|
5209
5218
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-warning-rest) 53%, var(--bp-palette-white)) 20%, transparent);
|
|
5210
5219
|
}
|
|
5211
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger
|
|
5220
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger,
|
|
5221
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger{
|
|
5212
5222
|
border-color:color-mix(in oklch, var(--bp-intent-danger-hover) 60%, transparent);
|
|
5213
5223
|
}
|
|
5214
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled{
|
|
5224
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger.bp6-disabled{
|
|
5215
5225
|
border-color:color-mix(in oklch, var(--bp-intent-danger-hover) 20%, transparent);
|
|
5216
5226
|
}
|
|
5217
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger{
|
|
5227
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger{
|
|
5218
5228
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-danger-rest) 53%, var(--bp-palette-white)) 60%, transparent);
|
|
5219
5229
|
}
|
|
5220
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled{
|
|
5230
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-danger.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-danger.bp6-disabled{
|
|
5221
5231
|
border-color:color-mix(in oklch, color-mix(in oklch, var(--bp-intent-danger-rest) 53%, var(--bp-palette-white)) 20%, transparent);
|
|
5222
5232
|
}
|
|
5223
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default
|
|
5233
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default,
|
|
5234
|
+
.bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default{
|
|
5224
5235
|
border-color:color-mix(in oklch, var(--bp-intent-default-hover) 60%, transparent);
|
|
5225
5236
|
}
|
|
5226
|
-
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled{
|
|
5237
|
+
.bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default:disabled, .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default.bp6-disabled{
|
|
5227
5238
|
border-color:color-mix(in oklch, var(--bp-intent-default-hover) 20%, transparent);
|
|
5228
5239
|
}
|
|
5229
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default{
|
|
5240
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default{
|
|
5230
5241
|
border-color:color-mix(in oklch, color-mix(in srgb, var(--bp-intent-default-rest) 46%, var(--bp-palette-white)) 60%, transparent);
|
|
5231
5242
|
}
|
|
5232
|
-
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled{
|
|
5243
|
+
.bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-button.bp6-intent-default.bp6-disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default:disabled, .bp6-dark .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default.bp6-disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default:disabled, [data-bp-color-scheme=dark] .bp6-button-group.bp6-outlined > .bp6-popover-target > .bp6-button.bp6-intent-default.bp6-disabled{
|
|
5233
5244
|
border-color:color-mix(in oklch, color-mix(in srgb, var(--bp-intent-default-rest) 46%, var(--bp-palette-white)) 20%, transparent);
|
|
5234
5245
|
}
|
|
5235
|
-
.bp6-button-group.bp6-outlined:not(.bp6-vertical) > .bp6-button:not(:last-child)
|
|
5246
|
+
.bp6-button-group.bp6-outlined:not(.bp6-vertical) > .bp6-button:not(:last-child),
|
|
5247
|
+
.bp6-button-group.bp6-outlined:not(.bp6-vertical) > .bp6-popover-target:not(:last-child) > .bp6-button{
|
|
5236
5248
|
border-right:none;
|
|
5237
5249
|
}
|
|
5238
5250
|
.bp6-button-group .bp6-popover-wrapper,
|
|
@@ -5261,22 +5273,28 @@ a.bp6-button.bp6-disabled{
|
|
|
5261
5273
|
width:100%;
|
|
5262
5274
|
}
|
|
5263
5275
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-popover-wrapper:first-child .bp6-button,
|
|
5276
|
+
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-popover-target:first-child > .bp6-button,
|
|
5264
5277
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-button:first-child,
|
|
5265
5278
|
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-popover-wrapper:first-child .bp6-button,
|
|
5279
|
+
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-popover-target:first-child > .bp6-button,
|
|
5266
5280
|
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-button:first-child{
|
|
5267
5281
|
border-radius:var(--bp-surface-border-radius) var(--bp-surface-border-radius) 0 0;
|
|
5268
5282
|
}
|
|
5269
5283
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-popover-wrapper:last-child .bp6-button,
|
|
5284
|
+
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-popover-target:last-child > .bp6-button,
|
|
5270
5285
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal) > .bp6-button:last-child,
|
|
5271
5286
|
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-popover-wrapper:last-child .bp6-button,
|
|
5287
|
+
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-popover-target:last-child > .bp6-button,
|
|
5272
5288
|
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-button:last-child{
|
|
5273
5289
|
border-radius:0 0 var(--bp-surface-border-radius) var(--bp-surface-border-radius);
|
|
5274
5290
|
}
|
|
5275
5291
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal):not(.bp6-outlined) > .bp6-popover-wrapper:not(:last-child) .bp6-button,
|
|
5292
|
+
.bp6-button-group.bp6-vertical:not(.bp6-minimal):not(.bp6-outlined) > .bp6-popover-target:not(:last-child) > .bp6-button,
|
|
5276
5293
|
.bp6-button-group.bp6-vertical:not(.bp6-minimal):not(.bp6-outlined) > .bp6-button:not(:last-child){
|
|
5277
5294
|
margin-bottom:calc(-1 * var(--bp-surface-border-width));
|
|
5278
5295
|
}
|
|
5279
|
-
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-button:not(:last-child)
|
|
5296
|
+
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-button:not(:last-child),
|
|
5297
|
+
.bp6-button-group.bp6-vertical.bp6-outlined > .bp6-popover-target:not(:last-child) > .bp6-button{
|
|
5280
5298
|
border-bottom:none;
|
|
5281
5299
|
}
|
|
5282
5300
|
.bp6-button-group.bp6-align-left .bp6-button{
|
|
@@ -6793,12 +6811,10 @@ a.bp6-button.bp6-disabled{
|
|
|
6793
6811
|
color:rgba(255, 255, 255, 0.6);
|
|
6794
6812
|
}
|
|
6795
6813
|
.bp6-control:not(.bp6-align-right){
|
|
6796
|
-
-
|
|
6797
|
-
padding-inline-start:24px;
|
|
6814
|
+
padding-inline-start:24px;
|
|
6798
6815
|
}
|
|
6799
6816
|
.bp6-control:not(.bp6-align-right) .bp6-control-indicator{
|
|
6800
|
-
-
|
|
6801
|
-
margin-inline-start:-24px;
|
|
6817
|
+
margin-inline-start:-24px;
|
|
6802
6818
|
}
|
|
6803
6819
|
.bp6-control.bp6-align-right{
|
|
6804
6820
|
padding-right:24px;
|
|
@@ -6807,8 +6823,7 @@ a.bp6-button.bp6-disabled{
|
|
|
6807
6823
|
margin-right:-24px;
|
|
6808
6824
|
}
|
|
6809
6825
|
[dir=rtl] .bp6-control.bp6-align-left{
|
|
6810
|
-
-
|
|
6811
|
-
padding-inline-start:0;
|
|
6826
|
+
padding-inline-start:0;
|
|
6812
6827
|
padding-left:24px;
|
|
6813
6828
|
}
|
|
6814
6829
|
[dir=rtl] .bp6-control.bp6-align-left .bp6-control-indicator{
|
|
@@ -6827,8 +6842,7 @@ a.bp6-button.bp6-disabled{
|
|
|
6827
6842
|
}
|
|
6828
6843
|
.bp6-control.bp6-inline{
|
|
6829
6844
|
display:inline-block;
|
|
6830
|
-
-
|
|
6831
|
-
margin-inline-end:20px;
|
|
6845
|
+
margin-inline-end:20px;
|
|
6832
6846
|
}
|
|
6833
6847
|
.bp6-control .bp6-control-input{
|
|
6834
6848
|
left:0;
|
|
@@ -6846,8 +6860,7 @@ a.bp6-button.bp6-disabled{
|
|
|
6846
6860
|
display:inline-block;
|
|
6847
6861
|
font-size:16px;
|
|
6848
6862
|
height:1em;
|
|
6849
|
-
-
|
|
6850
|
-
margin-inline-end:8px;
|
|
6863
|
+
margin-inline-end:8px;
|
|
6851
6864
|
margin-top:-3px;
|
|
6852
6865
|
position:relative;
|
|
6853
6866
|
-webkit-user-select:none;
|
|
@@ -6902,12 +6915,10 @@ a.bp6-button.bp6-disabled{
|
|
|
6902
6915
|
margin-top:1px;
|
|
6903
6916
|
}
|
|
6904
6917
|
.bp6-control.bp6-large:not(.bp6-align-right){
|
|
6905
|
-
-
|
|
6906
|
-
padding-inline-start:28px;
|
|
6918
|
+
padding-inline-start:28px;
|
|
6907
6919
|
}
|
|
6908
6920
|
.bp6-control.bp6-large:not(.bp6-align-right) .bp6-control-indicator{
|
|
6909
|
-
-
|
|
6910
|
-
margin-inline-start:-28px;
|
|
6921
|
+
margin-inline-start:-28px;
|
|
6911
6922
|
}
|
|
6912
6923
|
.bp6-control.bp6-large.bp6-align-right{
|
|
6913
6924
|
padding-right:28px;
|
|
@@ -6916,8 +6927,7 @@ a.bp6-button.bp6-disabled{
|
|
|
6916
6927
|
margin-right:-28px;
|
|
6917
6928
|
}
|
|
6918
6929
|
[dir=rtl] .bp6-control.bp6-large.bp6-align-left{
|
|
6919
|
-
-
|
|
6920
|
-
padding-inline-start:0;
|
|
6930
|
+
padding-inline-start:0;
|
|
6921
6931
|
padding-left:28px;
|
|
6922
6932
|
}
|
|
6923
6933
|
[dir=rtl] .bp6-control.bp6-large.bp6-align-left .bp6-control-indicator{
|
|
@@ -6993,20 +7003,20 @@ a.bp6-button.bp6-disabled{
|
|
|
6993
7003
|
border-radius:4px;
|
|
6994
7004
|
}
|
|
6995
7005
|
.bp6-control.bp6-checkbox input:checked ~ .bp6-control-indicator::before{
|
|
6996
|
-
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0
|
|
7006
|
+
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0 0 12 5'/%3e%3c/svg%3e");
|
|
6997
7007
|
}
|
|
6998
7008
|
.bp6-control.bp6-checkbox input:indeterminate ~ .bp6-control-indicator::before{
|
|
6999
|
-
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11 7H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1'
|
|
7009
|
+
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M11 7H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1'/%3e%3c/svg%3e");
|
|
7000
7010
|
}
|
|
7001
7011
|
.bp6-control.bp6-checkbox input:disabled ~ .bp6-control-indicator::before{
|
|
7002
7012
|
opacity:0.5;
|
|
7003
7013
|
}
|
|
7004
7014
|
@media (forced-colors: active) and (prefers-color-scheme: dark){
|
|
7005
7015
|
.bp6-control.bp6-checkbox input:checked:not(:disabled) ~ .bp6-control-indicator::before{
|
|
7006
|
-
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0
|
|
7016
|
+
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23111418' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0 0 12 5'/%3e%3c/svg%3e");
|
|
7007
7017
|
}
|
|
7008
7018
|
.bp6-control.bp6-checkbox input:indeterminate:not(:disabled) ~ .bp6-control-indicator::before{
|
|
7009
|
-
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M11 7H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1'
|
|
7019
|
+
background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23111418' d='M11 7H5c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1'/%3e%3c/svg%3e");
|
|
7010
7020
|
}
|
|
7011
7021
|
.bp6-control.bp6-checkbox input:disabled ~ .bp6-control-indicator{
|
|
7012
7022
|
border-color:graytext;
|
|
@@ -7082,12 +7092,10 @@ a.bp6-button.bp6-disabled{
|
|
|
7082
7092
|
box-shadow:none;
|
|
7083
7093
|
}
|
|
7084
7094
|
.bp6-control.bp6-switch:not(.bp6-align-right){
|
|
7085
|
-
-
|
|
7086
|
-
padding-inline-start:36px;
|
|
7095
|
+
padding-inline-start:36px;
|
|
7087
7096
|
}
|
|
7088
7097
|
.bp6-control.bp6-switch:not(.bp6-align-right) .bp6-control-indicator{
|
|
7089
|
-
-
|
|
7090
|
-
margin-inline-start:-36px;
|
|
7098
|
+
margin-inline-start:-36px;
|
|
7091
7099
|
}
|
|
7092
7100
|
.bp6-control.bp6-switch.bp6-align-right{
|
|
7093
7101
|
padding-right:36px;
|
|
@@ -7096,8 +7104,7 @@ a.bp6-button.bp6-disabled{
|
|
|
7096
7104
|
margin-right:-36px;
|
|
7097
7105
|
}
|
|
7098
7106
|
[dir=rtl] .bp6-control.bp6-switch.bp6-align-left{
|
|
7099
|
-
-
|
|
7100
|
-
padding-inline-start:0;
|
|
7107
|
+
padding-inline-start:0;
|
|
7101
7108
|
padding-left:36px;
|
|
7102
7109
|
}
|
|
7103
7110
|
[dir=rtl] .bp6-control.bp6-switch.bp6-align-left .bp6-control-indicator{
|
|
@@ -7156,12 +7163,10 @@ a.bp6-button.bp6-disabled{
|
|
|
7156
7163
|
left:calc(2px + 100% - 1em);
|
|
7157
7164
|
}
|
|
7158
7165
|
.bp6-control.bp6-switch.bp6-large:not(.bp6-align-right){
|
|
7159
|
-
-
|
|
7160
|
-
padding-inline-start:43px;
|
|
7166
|
+
padding-inline-start:43px;
|
|
7161
7167
|
}
|
|
7162
7168
|
.bp6-control.bp6-switch.bp6-large:not(.bp6-align-right) .bp6-control-indicator{
|
|
7163
|
-
-
|
|
7164
|
-
margin-inline-start:-43px;
|
|
7169
|
+
margin-inline-start:-43px;
|
|
7165
7170
|
}
|
|
7166
7171
|
.bp6-control.bp6-switch.bp6-large.bp6-align-right{
|
|
7167
7172
|
padding-right:43px;
|
|
@@ -7170,8 +7175,7 @@ a.bp6-button.bp6-disabled{
|
|
|
7170
7175
|
margin-right:-43px;
|
|
7171
7176
|
}
|
|
7172
7177
|
[dir=rtl] .bp6-control.bp6-switch.bp6-large.bp6-align-left{
|
|
7173
|
-
-
|
|
7174
|
-
padding-inline-start:0;
|
|
7178
|
+
padding-inline-start:0;
|
|
7175
7179
|
padding-left:43px;
|
|
7176
7180
|
}
|
|
7177
7181
|
[dir=rtl] .bp6-control.bp6-switch.bp6-large.bp6-align-left .bp6-control-indicator{
|
|
@@ -11985,24 +11989,19 @@ span.bp6-icon:empty.bp6-icon-large{
|
|
|
11985
11989
|
text-underline-position:from-font;
|
|
11986
11990
|
}
|
|
11987
11991
|
.bp6-link.bp6-link-underline-always{
|
|
11988
|
-
|
|
11989
|
-
text-decoration-line:underline;
|
|
11992
|
+
text-decoration-line:underline;
|
|
11990
11993
|
}
|
|
11991
11994
|
.bp6-link.bp6-link-underline-hover{
|
|
11992
|
-
|
|
11993
|
-
text-decoration-line:none;
|
|
11995
|
+
text-decoration-line:none;
|
|
11994
11996
|
}
|
|
11995
11997
|
.bp6-link.bp6-link-underline-hover:hover{
|
|
11996
|
-
|
|
11997
|
-
text-decoration-line:underline;
|
|
11998
|
+
text-decoration-line:underline;
|
|
11998
11999
|
}
|
|
11999
12000
|
.bp6-link.bp6-link-underline-none{
|
|
12000
|
-
|
|
12001
|
-
text-decoration-line:none;
|
|
12001
|
+
text-decoration-line:none;
|
|
12002
12002
|
}
|
|
12003
12003
|
.bp6-link.bp6-link-underline-none:hover{
|
|
12004
|
-
|
|
12005
|
-
text-decoration-line:none;
|
|
12004
|
+
text-decoration-line:none;
|
|
12006
12005
|
}
|
|
12007
12006
|
.bp6-link.bp6-link-color-inherit{
|
|
12008
12007
|
color:inherit;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StoreType } from '../../model/store.js';
|
|
2
2
|
import { ShapeType } from '../../model/shape-model.js';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
type ContextMenuProps = {
|
|
5
4
|
store: StoreType;
|
|
6
5
|
element: ShapeType;
|
|
@@ -11,7 +10,7 @@ type ContextMenuProps = {
|
|
|
11
10
|
isOpen: boolean;
|
|
12
11
|
setIsOpen: (b: boolean) => void;
|
|
13
12
|
};
|
|
14
|
-
export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) =>
|
|
13
|
+
export declare const ContextMenu: (({ store, isOpen, offset, setIsOpen }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
15
14
|
displayName: string;
|
|
16
15
|
};
|
|
17
16
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as o,jsxs as e,Fragment as t}from"react/jsx-runtime";import{observer as l}from"mobx-react-lite";import{ContextMenuPopover as n,Menu as s,MenuDivider as i,MenuItem as r}from"@blueprintjs/core";import{t as a}from"../../utils/l10n.js";import{useDuplicateElement as d}from"../../toolbar/use-duplicate-element.js";import{ChevronDown as m,ChevronUp as c,DoubleChevronDown as u,DoubleChevronUp as b,Duplicate as v,Layers as p,Lock as C,Trash as x,Unlock as E}from"@blueprintjs/icons";import{useRemoveElement as h}from"../../toolbar/use-remove-element.js";import{useCopyStyle as w}from"../../toolbar/use-copy-style.js";import{useLock as f}from"../../toolbar/use-lock.js";export const ContextMenu=l(({store:l,isOpen:k,offset:R,setIsOpen:y})=>{var j;const{disabled:g,duplicate:M}=d({store:l}),{disabled:D,remove:P}=h({store:l}),{setElementToCopy:B}=w(l),{disabled:O,lock:F,locked:T}=f({store:l}),U=o(T?C:E,{});return 0===l.selectedElements.length?null:o(n,{isOpen:k,onClose:()=>{y(!1)},content:e(s,{children:[o(r,{shouldDismissPopover:!1,icon:U,text:a(T?"contextMenu.unlock":"contextMenu.lock"),onClick:F,disabled:O}),o(r,{icon:o(v,{}),text:a("contextMenu.duplicate"),onClick:M,disabled:g}),o(r,{icon:o(x,{}),text:a("contextMenu.remove"),onClick:P,disabled:D}),o(i,{}),e(r,{icon:o(p,{}),text:a("toolbar.layering"),children:[o(r,{shouldDismissPopover:!1,icon:o(b,{}),text:a("toolbar.toForward"),disabled:!l.selectedElements.some(o=>{var e;return null===(e=o.parent)||void 0===e?void 0:e.canMoveElementsTop([o.id])}),onClick:()=>l.selectedElements.forEach(o=>o.moveTop())}),o(r,{shouldDismissPopover:!1,icon:o(c,{}),text:a("toolbar.up"),disabled:!l.selectedElements.some(o=>{var e;return null===(e=o.parent)||void 0===e?void 0:e.canMoveElementsUp([o.id])}),onClick:()=>l.selectedElements.forEach(o=>o.moveUp())}),o(r,{shouldDismissPopover:!1,icon:o(m,{}),text:a("toolbar.down"),disabled:!l.selectedElements.some(o=>{var e;return null===(e=o.parent)||void 0===e?void 0:e.canMoveElementsDown([o.id])}),onClick:()=>l.selectedElements.forEach(o=>o.moveDown())}),o(r,{shouldDismissPopover:!1,icon:o(u,{}),text:a("toolbar.toBottom"),disabled:!l.selectedElements.some(o=>{var e;return null===(e=o.parent)||void 0===e?void 0:e.canMoveElementsBottom([o.id])}),onClick:()=>l.selectedElements.forEach(o=>o.moveBottom())})]}),"table"===(null===(j=l.selectedElements[0])||void 0===j?void 0:j.type)&&(()=>{var n;const s=l.selectedElements[0],d=s.focusedCells[0],m=null!=d,c=null!==(n=s.getFocusedCellRange())&&void 0!==n?n:d?{minRow:d.row,maxRow:d.row,minCol:d.col,maxCol:d.col}:{minRow:0,maxRow:0,minCol:0,maxCol:0},{minRow:u,maxRow:b,minCol:v,maxCol:p}=c,C=b>u,x=p>v;return e(t,{children:[m&&e(t,{children:[o(i,{}),o(r,{text:a("toolbar.insertRowAbove"),onClick:()=>{l.history.transaction(()=>{s.addRow(u)})}}),o(r,{text:a("toolbar.insertRowBelow"),onClick:()=>{l.history.transaction(()=>{s.addRow(b+1)})}}),o(r,{text:a(C?"toolbar.deleteRows":"toolbar.deleteRow"),disabled:s.rows<=b-u+1,onClick:()=>{l.history.transaction(()=>{s.removeRowRange(u,b)})}}),o(i,{}),o(r,{text:a("toolbar.insertColumnLeft"),onClick:()=>{l.history.transaction(()=>{s.addColumn(v)})}}),o(r,{text:a("toolbar.insertColumnRight"),onClick:()=>{l.history.transaction(()=>{s.addColumn(p+1)})}}),o(r,{text:a(x?"toolbar.deleteColumns":"toolbar.deleteColumn"),disabled:s.cols<=p-v+1,onClick:()=>{l.history.transaction(()=>{s.removeColumnRange(v,p)})}})]}),o(i,{}),o(r,{text:a("toolbar.distributeRowsEvenly"),onClick:()=>{l.history.transaction(()=>{s.distributeRowsEvenly()})}}),o(r,{text:a("toolbar.distributeColumnsEvenly"),onClick:()=>{l.history.transaction(()=>{s.distributeColumnsEvenly()})}})]})})()]}),targetOffset:{top:R.y,left:R.x}})});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoreType } from '../model/store.js';
|
|
3
2
|
import { PageType } from '../model/page-model.js';
|
|
4
3
|
type DrawingLayerProps = {
|
|
@@ -11,7 +10,7 @@ type DrawingLayerProps = {
|
|
|
11
10
|
yPadding: number;
|
|
12
11
|
bleed: number;
|
|
13
12
|
};
|
|
14
|
-
export declare const DrawingLayer: (({ store, page, width, height, scale, xPadding, yPadding, bleed, }: DrawingLayerProps) =>
|
|
13
|
+
export declare const DrawingLayer: (({ store, page, width, height, scale, xPadding, yPadding, bleed, }: DrawingLayerProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
15
14
|
displayName: string;
|
|
16
15
|
};
|
|
17
16
|
export {};
|
package/canvas/drawing-layer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{observer as
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import r from"react";import{observer as o}from"mobx-react-lite";import{Group as n,Line as s,Rect as i}from"react-konva";import{pathToSVG as c}from"../utils/path-to-svg.js";export const DrawingLayer=o(({store:o,page:a,width:l,height:u,scale:h,xPadding:d,yPadding:g,bleed:p})=>{const[y,f]=r.useState(!1),[m,w]=r.useState([]),x=r.useRef(null),v="draw"===o.tool,{strokeWidth:k,stroke:$,opacity:b,brushType:E}=o.toolOptions,S=r.useCallback(e=>{if(!v){return}if(f(!0),e.cancelBubble=!0,!e.target.getStage()){return}const t=x.current.getRelativePointerPosition();t&&w([{x:t.x,y:t.y}])},[v,h,d,g,p]),M=r.useCallback(e=>{if(!v||!y){return}if(e.cancelBubble=!0,!e.target.getStage()){return}const t=x.current.getRelativePointerPosition();t&&w(e=>[...e,{x:t.x,y:t.y}])},[v,y,h,d,g,p]),P=r.useCallback(()=>{if(v&&y){if(f(!1),m.length>=1){try{const e=c(m,{stroke:$,strokeWidth:k,smooth:!0}),t=o.selectedElementsIds.slice();o.history.transaction(()=>{a.addElement({type:"svg",x:e.x,y:e.y,width:e.width,height:e.height,src:e.src,opacity:b},{skipSelect:!0})}),o.selectElements(t)}catch(e){console.error("Error creating path SVG:",e)}}w([])}},[v,y,m,$,k,b,a,o.history,o]);r.useEffect(()=>{if(!y){return}const e=()=>P();return window.addEventListener("mouseup",e),window.addEventListener("touchend",e),()=>{window.removeEventListener("mouseup",e),window.removeEventListener("touchend",e)}},[y,P]);const L=r.useMemo(()=>m.flatMap(e=>[e.x,e.y]),[m]);return r.useEffect(()=>{if(v&&x.current){const e=x.current.getStage();if(!e){return}const t=k*h;if(t>100||t<4){e.container().style.cursor="crosshair"}else{const r=t/2,o=t/2,n=`data:image/svg+xml;base64,${btoa(`<svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}">\n <circle cx="${o}" cy="${o}" r="${r-1}" fill="${$}" opacity="${b}" stroke="white" stroke-width="1"/>\n <circle cx="${o}" cy="${o}" r="${r-1}" fill="none" stroke="black" stroke-width="1" opacity="0.3"/>\n </svg>`)}`;e.container().style.cursor=`url("${n}") ${o} ${o}, crosshair`}return()=>{e.container()&&(e.container().style.cursor="")}}},[v,$,k,b,h]),v?t(n,{ref:x,listening:v,x:d+p*h,y:g+p*h,scaleX:h,scaleY:h,children:[e(i,{x:-(d+p*h)/h,y:-(g+p*h)/h,width:l/h,height:u/h,fill:"transparent",onMouseDown:S,onMouseMove:M,onMouseUp:P,onTouchStart:S,onTouchMove:M,onTouchEnd:P}),m.length>0&&e(s,{points:L,stroke:$,strokeWidth:k,lineCap:"round",lineJoin:"round",opacity:b,tension:.5,listening:!1})]}):null});
|
package/canvas/element.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoreType } from '../model/store.js';
|
|
3
2
|
import { ShapeType } from '../model/shape-model.js';
|
|
4
3
|
type ShapeProps = {
|
|
@@ -7,7 +6,7 @@ type ShapeProps = {
|
|
|
7
6
|
onClick: Function;
|
|
8
7
|
};
|
|
9
8
|
export declare function registerShapeComponent(type: string, component: JSX.Element): void;
|
|
10
|
-
declare const Element: ((props: ShapeProps) =>
|
|
9
|
+
declare const Element: ((props: ShapeProps) => import("react/jsx-runtime").JSX.Element | null) & {
|
|
11
10
|
displayName: string;
|
|
12
11
|
};
|
|
13
12
|
export default Element;
|
package/canvas/element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{observer as
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{createElement as o}from"react";import r from"react";import{observer as n}from"mobx-react-lite";import{ROLES as i}from"../model/store.js";import s from"konva";import{TextElement as m}from"./text-element.js";import{ImageElement as a}from"./image-element.js";import{HTMLElement as l}from"./html-element.js";import{LineElement as f}from"./line-element.js";import{VideoElement as d}from"./video-element.js";import{FigureElement as c}from"./figure-element.js";import{GifElement as p}from"./gif-element.js";import{TableElement as u}from"./table-element.js";import{Group as g}from"react-konva";import{Highlighter as h}from"./highlighter.js";import{forEveryChild as x}from"../model/group-model.js";import{flags as y}from"../utils/flags.js";const v={text:m,image:a,svg:a,line:f,video:d,figure:c,group:n(t=>{const{element:r,store:n}=t,{children:s}=r,m=r.selectable||n.role===i.ADMIN;return e(g,{opacity:r.opacity,listening:m,hideInExport:!r.showInExport,id:r.id,children:s.map(e=>o(E,Object.assign({},t,{key:e.id,store:n,element:e})))})}),gif:p,table:u};export function registerShapeComponent(e,t){v[e]=t}const j=(e,t)=>{const o=[];x(e,e=>{"group"!==e.type&&o.push(e.a)});const r=[];o.forEach(e=>{const t=[{x:0,y:0},{x:0+e.width,y:0},{x:0+e.width,y:0+e.height},{x:0,y:0+e.height}],o=new s.Transform;o.translate(e.x,e.y),o.rotate(s.Util.degToRad(e.rotation)),t.forEach(e=>{const t=o.point(e);r.push(t)})});const n=new s.Transform;n.rotate(-s.Util.degToRad(t));let i=1/0,m=1/0,a=-1/0,l=-1/0;r.forEach(e=>{const t=n.point(e);i=Math.min(i,t.x),m=Math.min(m,t.y),a=Math.max(a,t.x),l=Math.max(l,t.y)}),n.invert();const f=n.point({x:i,y:m});return{x:f.x,y:f.y,width:a-i,height:l-m,rotation:t}},E=n(o=>{var n,i;const{element:m,store:a}=o,[f,d]=r.useState(!1),c=m.isSelectedDirectly,p="group"===(null===(n=m.parent)||void 0===n?void 0:n.type),u="group"!==m.type||p?null:a.selectedElements,x=!!u&&1===u.length&&u[0]!==m&&u[0].top===m,[E,b]=r.useState(!1),T=(e=>{const[t,o]=r.useState();return r.useEffect(()=>{const t=setTimeout(()=>{const t=e.page.id,r=s.stages.find(e=>e.getAttr("pageId")===t);r||console.error("No stage is found for element",e.id),o(r)});return()=>clearTimeout(t)},[e.id]),t})(m),w=r.useRef(),I=()=>(w.current||(w.current=null==T?void 0:T.findOne("Transformer")),w.current);r.useEffect(()=>{if(T){const e=e=>{const t=e.target.findAncestor(".element",!0),o=a.getElementById(null==t?void 0:t.id()),r=null==o?void 0:o.top,n=null==r?void 0:r.id;d(n===m.id)};T.on("mouseover",e);const t=()=>{d(!1)};return T.on("mouseleave",t),()=>{T.off("mouseover",e),T.off("mouseleave",t)}}},[T]),r.useEffect(()=>{if(!x){return}const e=I();if(!T||!e){return}b(!1);const t=()=>b(!0),o=()=>b(!1);return T.on("dragstart",t),T.on("dragend",o),e.on("transformstart",t),e.on("transformend",o),()=>{T.off("dragstart",t),T.off("dragend",o),e.off("transformstart",t),e.off("transformend",o)}},[T,x]);let M=v[o.element.type];return"text"===o.element.type&&y.htmlRenderEnabled&&(M=l),o.element.visible?M?t(g,{name:"element-container",children:[e(M,Object.assign({},o)),(f||x)&&!c&&!p&&!E&&e(h,{element:"group"===m.type?{a:j(m,x?"rotation"in u[0]?u[0].rotation:0:(null===(i=I())||void 0===i?void 0:i.rotation())||0)}:m})]}):(console.error("Can not find component for "+o.element.type),null):null});export default E;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoreType } from '../model/store.js';
|
|
3
2
|
import { FigureElementType } from '../model/figure-model.js';
|
|
4
3
|
type FigureProps = {
|
|
5
4
|
store: StoreType;
|
|
6
5
|
element: FigureElementType;
|
|
7
6
|
};
|
|
8
|
-
export declare const FigureElement: (({ element, store }: FigureProps) =>
|
|
7
|
+
export declare const FigureElement: (({ element, store }: FigureProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
8
|
displayName: string;
|
|
10
9
|
};
|
|
11
10
|
export {};
|
package/canvas/figure-element.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{observer as
|
|
1
|
+
import{jsx as t,Fragment as e,jsxs as a}from"react/jsx-runtime";import r from"react";import{observer as s}from"mobx-react-lite";import{Group as i,Rect as o,Path as h}from"react-konva";import{ROLES as n}from"../model/store.js";import{subTypeToPathDataFunc as l}from"../utils/figure-to-svg.js";import{isTouchDevice as d}from"../utils/screen.js";import{useColor as c}from"./use-color.js";const g={};export const FigureElement=s(({element:m,store:f})=>{const p=r.useRef(null),w=m.selectable||f.role===n.ADMIN,u=d(),x=m.isSelected,b=Math.min(m.strokeWidth,m.width/2,m.height/2),y=Math.max(0,Math.min(m.width/2,m.height/2,m.cornerRadius)),k=c(m,m.a.fill,"fill"),j=Object.assign(Object.assign({width:m.a.width,height:m.a.height},k),{cornerRadius:y,shadowEnabled:m.shadowEnabled,shadowBlur:m.shadowBlur,shadowOffsetX:m.shadowOffsetX,shadowOffsetY:m.shadowOffsetY,shadowColor:m.shadowColor,shadowOpacity:m.shadowOpacity,preventDefault:!u||x,hideInExport:!m.showInExport}),v=c(m,m.stroke,"stroke"),O=Object.assign(Object.assign({visible:b>0,x:b/2,y:b/2,width:m.a.width-b,height:m.a.height-b},v),{strokeWidth:b,cornerRadius:Math.max(0,y-b),dash:m.dash.map(t=>t*b),hideInExport:!m.showInExport,listening:!1}),M=Math.max(0,10-Math.min(m.a.width,m.a.height)),E=(R=m.subType,g[R]||(g[R]=(W=l(R),s(({element:s,fillProps:n,strokeProps:l,hitStrokeWidth:d})=>{let c=W({width:s.a.width,height:s.a.height,cornerRadius:s.cornerRadius}),g=1,m=1;"string"!=typeof c&&(g=c.scaleX,m=c.scaleY,c=c.path);const f=r.useRef(null);return a(e,{children:[t(o,{width:s.a.width,height:s.a.height,fill:"transparent",hitStrokeWidth:d}),t(h,Object.assign({},n,{ref:f,data:c,scaleX:g,scaleY:m})),t(i,{clipFunc:t=>{const e=f.current;if(e){var a=e.dataArray;t.beginPath();for(var r=0;r<a.length;r++){var s=a[r].command,i=a[r].points;switch(s){case"L":t.lineTo(i[0],i[1]);break;case"M":t.moveTo(i[0],i[1]);break;case"C":t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":var o=i[0],h=i[1],n=i[2],l=i[3],d=i[4],c=i[5],g=i[6],m=i[7],p=n>l?n:l,w=n>l?1:n/l,u=n>l?l/n:1;t.translate(o,h),t.rotate(g),t.scale(w,u),t.arc(0,0,p,d,d+c,!m),t.scale(1/w,1/u),t.rotate(-g),t.translate(-o,-h);break;case"z":t.closePath()}}}},scaleX:g,scaleY:m,children:t(h,Object.assign({},l,{x:0,y:0,data:c,strokeWidth:2*l.strokeWidth,dash:l.dash.map(t=>t)}))})]})}))),g[R]||i);var R,W;return t(e,{children:t(i,{ref:p,id:m.id,x:m.a.x,y:m.a.y,rotation:m.a.rotation,opacity:m.a.opacity,listening:w,draggable:u?m.draggable&&x:m.draggable,name:"element",onDragMove:t=>{m.set({x:t.target.x(),y:t.target.y()})},onDragEnd:t=>{m.set({x:t.target.x(),y:t.target.y()})},onTransform:t=>{const e=t.target.scale();t.target.scaleX(1),t.target.scaleY(1),m.set({width:m.width*e.x,height:m.height*e.y,x:t.target.x(),y:t.target.y(),rotation:t.target.rotation()})},children:t(E,{element:m,fillProps:j,strokeProps:O,hitStrokeWidth:M})})})});
|
package/canvas/gif-element.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoreType } from '../model/store.js';
|
|
3
2
|
import { VideoElementType } from '../model/video-model.js';
|
|
4
3
|
type Props = {
|
|
5
4
|
store: StoreType;
|
|
6
5
|
element: VideoElementType;
|
|
7
6
|
};
|
|
8
|
-
export declare const GifElement: (({ element, store }: Props) =>
|
|
7
|
+
export declare const GifElement: (({ element, store }: Props) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
8
|
displayName: string;
|
|
10
9
|
};
|
|
11
10
|
export {};
|