@kopexa/theme 17.22.7 → 17.22.9

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.
@@ -1,13 +1,4 @@
1
- import "../chunk-T3C4PJPS.mjs";
2
- import {
3
- tabs
4
- } from "../chunk-I6M4S2KZ.mjs";
5
- import {
6
- textarea
7
- } from "../chunk-ARLLAC5V.mjs";
8
- import {
9
- toc
10
- } from "../chunk-ODC3GJTR.mjs";
1
+ import "../chunk-EWID76V7.mjs";
11
2
  import {
12
3
  toggleRow
13
4
  } from "../chunk-F7MJHRZX.mjs";
@@ -20,15 +11,6 @@ import {
20
11
  import {
21
12
  variableNode
22
13
  } from "../chunk-EKOZ2ZVU.mjs";
23
- import {
24
- slashDropdownMenu
25
- } from "../chunk-U4BRPFG2.mjs";
26
- import {
27
- spinner
28
- } from "../chunk-4UDOCFU5.mjs";
29
- import {
30
- splitPageLayout
31
- } from "../chunk-B5JVXVSG.mjs";
32
14
  import {
33
15
  standardChip
34
16
  } from "../chunk-XQZL7LCP.mjs";
@@ -45,14 +27,14 @@ import {
45
27
  table
46
28
  } from "../chunk-YC2FQDBV.mjs";
47
29
  import {
48
- riskRating
49
- } from "../chunk-CNYKIUVC.mjs";
30
+ tabs
31
+ } from "../chunk-I6M4S2KZ.mjs";
50
32
  import {
51
- scrollArea
52
- } from "../chunk-SPQE7K66.mjs";
33
+ textarea
34
+ } from "../chunk-ARLLAC5V.mjs";
53
35
  import {
54
- sectionRow
55
- } from "../chunk-CC225WUG.mjs";
36
+ toc
37
+ } from "../chunk-ODC3GJTR.mjs";
56
38
  import {
57
39
  select
58
40
  } from "../chunk-KPVLNOO5.mjs";
@@ -66,19 +48,19 @@ import {
66
48
  } from "../chunk-2Z4QAY6O.mjs";
67
49
  import {
68
50
  skeletonAvatar
69
- } from "../chunk-7Q2RNHL5.mjs";
51
+ } from "../chunk-RGZCKQNI.mjs";
70
52
  import {
71
53
  skeleton
72
54
  } from "../chunk-VNQEJU4P.mjs";
73
55
  import {
74
- pageLayout
75
- } from "../chunk-OULAICSC.mjs";
56
+ slashDropdownMenu
57
+ } from "../chunk-U4BRPFG2.mjs";
76
58
  import {
77
- popover
78
- } from "../chunk-TQVRNEIH.mjs";
59
+ spinner
60
+ } from "../chunk-4UDOCFU5.mjs";
79
61
  import {
80
- previewCard
81
- } from "../chunk-GWRIERN6.mjs";
62
+ splitPageLayout
63
+ } from "../chunk-B5JVXVSG.mjs";
82
64
  import {
83
65
  promptInput
84
66
  } from "../chunk-UCVBVFHQ.mjs";
@@ -95,11 +77,14 @@ import {
95
77
  riskIndicator
96
78
  } from "../chunk-CZMZHA7U.mjs";
97
79
  import {
98
- inputWrapper
99
- } from "../chunk-VSVGOX3P.mjs";
80
+ riskRating
81
+ } from "../chunk-CNYKIUVC.mjs";
100
82
  import {
101
- integrationCard
102
- } from "../chunk-QOW6FLZ6.mjs";
83
+ scrollArea
84
+ } from "../chunk-SPQE7K66.mjs";
85
+ import {
86
+ sectionRow
87
+ } from "../chunk-CC225WUG.mjs";
103
88
  import {
104
89
  kbd
105
90
  } from "../chunk-BETLBSSF.mjs";
@@ -116,14 +101,14 @@ import {
116
101
  pageHeader
117
102
  } from "../chunk-HAVJ6EQ6.mjs";
118
103
  import {
119
- frameworkRow
120
- } from "../chunk-TPFAZH22.mjs";
104
+ pageLayout
105
+ } from "../chunk-OULAICSC.mjs";
121
106
  import {
122
- heading
123
- } from "../chunk-NWKBPO37.mjs";
107
+ popover
108
+ } from "../chunk-TQVRNEIH.mjs";
124
109
  import {
125
- hoverCard
126
- } from "../chunk-UTCVHVWF.mjs";
110
+ previewCard
111
+ } from "../chunk-GWRIERN6.mjs";
127
112
  import {
128
113
  imageCrop
129
114
  } from "../chunk-GMFZLUU4.mjs";
@@ -137,23 +122,21 @@ import {
137
122
  inputGroup
138
123
  } from "../chunk-HWEYNK3O.mjs";
139
124
  import {
140
- drawer
141
- } from "../chunk-7V3NMVQH.mjs";
142
- import {
143
- dialog
144
- } from "../chunk-OJDCD74N.mjs";
145
- import {
146
- dropdownMenu
147
- } from "../chunk-3PCDCW7G.mjs";
125
+ inputWrapper
126
+ } from "../chunk-VSVGOX3P.mjs";
148
127
  import {
149
- editableText
150
- } from "../chunk-GZJAA5RZ.mjs";
128
+ integrationCard
129
+ } from "../chunk-QOW6FLZ6.mjs";
151
130
  import {
152
131
  editorBasic
153
132
  } from "../chunk-LPNA4ATD.mjs";
154
133
  import {
155
134
  editorSpinner
156
135
  } from "../chunk-TVC4THD6.mjs";
136
+ import {
137
+ extensionTableHandleMenuContent,
138
+ tableCellHandleMenu
139
+ } from "../chunk-WQLVUMHF.mjs";
157
140
  import {
158
141
  avatarUpload
159
142
  } from "../chunk-QGL2OK4B.mjs";
@@ -161,17 +144,14 @@ import {
161
144
  filter
162
145
  } from "../chunk-GT463S76.mjs";
163
146
  import {
164
- colorHighlightButton
165
- } from "../chunk-CPERWXKN.mjs";
166
- import {
167
- combobox
168
- } from "../chunk-3T7EOMXR.mjs";
147
+ frameworkRow
148
+ } from "../chunk-TPFAZH22.mjs";
169
149
  import {
170
- command
171
- } from "../chunk-YPHFKGNI.mjs";
150
+ heading
151
+ } from "../chunk-NWKBPO37.mjs";
172
152
  import {
173
- complianceBadge
174
- } from "../chunk-RZ45NVOH.mjs";
153
+ hoverCard
154
+ } from "../chunk-UTCVHVWF.mjs";
175
155
  import {
176
156
  controlExtension
177
157
  } from "../chunk-M4TXKRUU.mjs";
@@ -185,17 +165,17 @@ import {
185
165
  dataTable
186
166
  } from "../chunk-GNYTZGE5.mjs";
187
167
  import {
188
- breadcrumb
189
- } from "../chunk-W6TZSSAU.mjs";
168
+ drawer
169
+ } from "../chunk-7V3NMVQH.mjs";
190
170
  import {
191
- button
192
- } from "../chunk-OTETLRUE.mjs";
171
+ dialog
172
+ } from "../chunk-OJDCD74N.mjs";
193
173
  import {
194
- calendar
195
- } from "../chunk-JWF5ABNP.mjs";
174
+ dropdownMenu
175
+ } from "../chunk-BWUVMOSV.mjs";
196
176
  import {
197
- callout
198
- } from "../chunk-A3F4CV54.mjs";
177
+ editableText
178
+ } from "../chunk-GZJAA5RZ.mjs";
199
179
  import {
200
180
  card
201
181
  } from "../chunk-5YHTCPJL.mjs";
@@ -209,14 +189,17 @@ import {
209
189
  code
210
190
  } from "../chunk-VQ2OAHGP.mjs";
211
191
  import {
212
- accordion
213
- } from "../chunk-AEWKHJEI.mjs";
192
+ colorHighlightButton
193
+ } from "../chunk-CPERWXKN.mjs";
214
194
  import {
215
- alertDialog
216
- } from "../chunk-XGUDXC5P.mjs";
195
+ combobox
196
+ } from "../chunk-3T7EOMXR.mjs";
217
197
  import {
218
- auditInfo
219
- } from "../chunk-CPAF7VNM.mjs";
198
+ command
199
+ } from "../chunk-YPHFKGNI.mjs";
200
+ import {
201
+ complianceBadge
202
+ } from "../chunk-RZ45NVOH.mjs";
220
203
  import {
221
204
  autocomplete
222
205
  } from "../chunk-OHZBQRA4.mjs";
@@ -229,12 +212,33 @@ import {
229
212
  } from "../chunk-XCLEKBCJ.mjs";
230
213
  import {
231
214
  avatar
232
- } from "../chunk-D5FKEY7B.mjs";
233
- import "../chunk-7T563RF7.mjs";
234
- import "../chunk-6IZPAS4O.mjs";
215
+ } from "../chunk-VPA2TZYQ.mjs";
235
216
  import {
236
217
  blankstate
237
218
  } from "../chunk-DICHD74Q.mjs";
219
+ import {
220
+ breadcrumb
221
+ } from "../chunk-W6TZSSAU.mjs";
222
+ import {
223
+ button
224
+ } from "../chunk-GNJCCXFJ.mjs";
225
+ import {
226
+ calendar
227
+ } from "../chunk-JWF5ABNP.mjs";
228
+ import {
229
+ callout
230
+ } from "../chunk-A3F4CV54.mjs";
231
+ import "../chunk-6IZPAS4O.mjs";
232
+ import "../chunk-7T563RF7.mjs";
233
+ import {
234
+ accordion
235
+ } from "../chunk-AEWKHJEI.mjs";
236
+ import {
237
+ alertDialog
238
+ } from "../chunk-XGUDXC5P.mjs";
239
+ import {
240
+ auditInfo
241
+ } from "../chunk-CPAF7VNM.mjs";
238
242
  export {
239
243
  accordion,
240
244
  alertDialog,
@@ -266,6 +270,7 @@ export {
266
270
  editableText,
267
271
  editorBasic,
268
272
  editorSpinner,
273
+ extensionTableHandleMenuContent,
269
274
  filter,
270
275
  frameworkRow,
271
276
  heading,
@@ -309,6 +314,7 @@ export {
309
314
  switchVariants,
310
315
  tabNav,
311
316
  table,
317
+ tableCellHandleMenu,
312
318
  tabs,
313
319
  textarea,
314
320
  toc,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  skeletonAvatar
3
- } from "../chunk-7Q2RNHL5.mjs";
4
- import "../chunk-D5FKEY7B.mjs";
5
- import "../chunk-7T563RF7.mjs";
3
+ } from "../chunk-RGZCKQNI.mjs";
4
+ import "../chunk-VPA2TZYQ.mjs";
6
5
  import "../chunk-6IZPAS4O.mjs";
6
+ import "../chunk-7T563RF7.mjs";
7
7
  export {
8
8
  skeletonAvatar
9
9
  };
package/dist/editor.css CHANGED
@@ -585,156 +585,176 @@
585
585
  /* =====================
586
586
  TABLE
587
587
  ===================== */
588
- .tiptap.ProseMirror {
589
- .table-node-view {
590
- position: relative;
591
- width: fit-content;
592
- max-width: 100%;
593
- margin-top: 0.5rem;
594
- margin-bottom: 1rem;
595
- padding-top: 20px;
596
- padding-left: 20px;
597
- }
598
588
 
599
- .table-wrapper {
600
- overflow-x: auto;
601
- }
589
+ .ProseMirror .tableWrapper {
590
+ overflow-x: auto;
591
+ }
602
592
 
603
- table {
604
- border-collapse: collapse;
605
- border-style: solid;
606
- border-width: 1px;
607
- border-color: var(--color-border);
608
- width: 100%;
609
- table-layout: fixed;
610
- }
611
593
 
612
- td,
613
- th {
614
- border-style: solid;
615
- border-width: 1px;
616
- border-color: var(--color-border);
617
- min-width: 100px;
618
- padding: 0.5rem;
619
- text-align: left;
620
- vertical-align: top;
621
- box-sizing: border-box;
622
- position: relative;
623
- transition: background-color 0.3s ease;
594
+ .ProseMirror table {
595
+ border-collapse: collapse;
596
+ table-layout: fixed;
597
+ width: 100%;
598
+ overflow: hidden;
599
+ }
624
600
 
625
- &:first-of-type:not(a) {
626
- margin-top: 0;
627
- }
601
+ .ProseMirror td,
602
+ .ProseMirror th {
603
+ vertical-align: top;
604
+ box-sizing: border-box;
605
+ position: relative;
606
+ }
628
607
 
629
- p {
630
- margin: 0 !important;
631
608
 
632
- &+p {
633
- margin-top: 0.75rem !important;
634
- }
635
- }
609
+ .ProseMirror td:not([data-colwidth]):not(.column-resize-dragging),
610
+ .ProseMirror th:not([data-colwidth]):not(.column-resize-dragging) {
611
+ /* if there's no explicit width set and the column is not being resized, set a default width */
612
+ min-width: var(--default-cell-min-width);
613
+ }
636
614
 
637
- >* {
638
- margin-bottom: 0;
639
- }
640
- }
615
+ .ProseMirror.resize-cursor {
616
+ cursor: ew-resize;
617
+ cursor: col-resize;
618
+ }
619
+ /* Give selected cells a blue overlay */
620
+ .ProseMirror .selectedCell:after {
621
+ z-index: 2;
622
+ position: absolute;
623
+ content: "";
624
+ left: 0;
625
+ right: 0;
626
+ top: 0;
627
+ bottom: 0;
628
+ background: rgba(40, 137, 207, 0.4);
629
+ pointer-events: none;
630
+ }
641
631
 
642
- th {
643
- font-weight: 500;
644
- text-align: start;
645
- background-color: var(--color-muted);
646
- }
632
+ :root {
633
+ --tt-table-cell-padding: 0.5rem;
634
+ --tt-table-margin-block: 1.25rem;
647
635
 
648
- td[data-align="center"],
649
- th[data-align="center"] {
650
- text-align: center;
651
- }
636
+ --tt-table-pad-block-start: 1rem; /* 8px */
637
+ --tt-table-pad-block-end: 1.5rem; /* 24px */
638
+ --tt-table-pad-inline-start: 1rem; /* 8px */
639
+ --tt-table-pad-inline-end: 1.5rem; /* 24px */
652
640
 
653
- td[data-align="right"],
654
- th[data-align="right"] {
655
- text-align: right;
656
- }
641
+ --tt-table-column-resize-handle-bg: var(--color-primary-400);
642
+ }
657
643
 
658
- .column-resize-handle {
659
- background-color: var(--tt-resize-handle-color);
660
- position: absolute;
661
- right: 0;
662
- top: 0;
663
- width: 2px;
664
- height: 100%;
665
- z-index: 5;
666
- pointer-events: none;
667
- }
644
+ .tiptap [data-content-type="table"] {
645
+ margin-block: var(--tt-table-margin-block);
646
+ }
668
647
 
669
- .selectedCell {
670
- border-style: double;
671
- border-color: var(--tt-selection-color-border);
672
- background-color: var(--tt-selection-color);
673
- }
674
648
 
675
- .table-controls {
676
- position: absolute;
677
- top: 0;
678
- left: 0;
679
- z-index: 10;
680
- }
649
+ .tiptap [data-content-type="table"] .tableWrapper {
650
+ padding-block-start: var(--tt-table-pad-block-start);
651
+ padding-inline-start: var(--tt-table-pad-inline-start);
652
+ padding-inline-end: var(--tt-table-pad-inline-end);
653
+ padding-block-end: var(--tt-table-pad-block-end);
654
+ margin-left: -1rem;
655
+ overflow-y: hidden;
656
+ position: relative;
657
+ width: 100%;
658
+ }
681
659
 
682
- .table-node-view .table-controls .columns-control,
683
- .table-node-view .table-controls .rows-control {
684
- transition: opacity ease-in 100ms;
685
- position: absolute;
686
- z-index: 5;
687
- display: flex;
688
- justify-content: center;
689
- align-items: center;
690
- }
691
660
 
692
- .table-node-view .table-controls .columns-control {
693
- height: 20px;
694
- top: 0;
695
- }
661
+ .tiptap table {
662
+ width: auto !important;
663
+ word-break: break-word;
664
+ }
696
665
 
697
- .table-node-view .table-controls .columns-control .columns-control-div {
698
- color: white;
699
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='%238F95B2' d='M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5zm15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5zm-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5-.675-1.5-1.5-1.5z'/%3E%3C/svg%3E");
700
- width: 30px;
701
- height: 15px;
702
- }
666
+ .tiptap th,
667
+ .tiptap td {
668
+ border: 1px solid var(--color-border);
669
+ padding: var(--tt-table-cell-padding);
670
+ }
703
671
 
704
- .table-node-view .table-controls .rows-control {
705
- width: 20px;
706
- left: 0;
707
- top: 20px;
708
- }
709
672
 
710
- .table-node-view .table-controls .rows-control .rows-control-div {
711
- color: white;
712
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath fill='%238F95B2' d='M12 3c-.825 0-1.5.675-1.5 1.5S11.175 6 12 6s1.5-.675 1.5-1.5S12.825 3 12 3zm0 15c-.825 0-1.5.675-1.5 1.5S11.175 21 12 21s1.5-.675 1.5-1.5S12.825 18 12 18zm0-7.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5 1.5-.675 1.5-1.5-.675-1.5-1.5-1.5z'/%3E%3C/svg%3E");
713
- height: 30px;
714
- width: 15px;
715
- }
673
+ .tiptap table th {
674
+ background-color: var(--color-muted);
675
+ font-weight: 600;
676
+ text-align: left;
677
+ }
716
678
 
717
- .table-node-view .table-controls .rows-control-div,
718
- .table-node-view .table-controls .columns-control-div {
719
- border: 1px solid var(--color-border);
720
- background-color: var(--color-muted);
721
- box-shadow: var(--shadow-sm);
722
- border-radius: 4px;
723
- background-size: 1.25rem;
724
- background-repeat: no-repeat;
725
- background-position: center;
726
- transition:
727
- transform ease-out 100ms,
728
- background-color ease-out 100ms;
729
- outline: none;
730
- cursor: pointer;
731
- }
679
+ .ProseMirror .column-resize-handle {
680
+ position: absolute;
681
+ top: 0;
682
+ right: 0;
683
+ width: 2px;
684
+ margin-inline-start: -1px;
685
+ margin-top: -1px;
686
+ height: calc(100% + 2px);
687
+ background: var(--tt-table-column-resize-handle-bg);
688
+ cursor: col-resize;
689
+ transition: background 150ms 50ms;
690
+ z-index: 1;
691
+ pointer-events: auto;
692
+ }
732
693
 
733
- .resize-cursor .table-node-view .table-controls .rows-control,
734
- .table-node-view.controls--disabled .table-controls .rows-control,
735
- .resize-cursor .table-node-view .table-controls .columns-control,
736
- .table-node-view.controls--disabled .table-controls .columns-control {
737
- opacity: 0;
738
- pointer-events: none;
739
- }
694
+ /* ================================================================================================
695
+ * TABLE CELL ALIGNMENT STYLES
696
+ * ================================================================================================ */
697
+
698
+ .tiptap [data-content-type="table"] td[data-text-align="left"],
699
+ .tiptap [data-content-type="table"] th[data-text-align="left"] {
700
+ text-align: left;
701
+ }
702
+
703
+ .tiptap [data-content-type="table"] td[data-text-align="center"],
704
+ .tiptap [data-content-type="table"] th[data-text-align="center"] {
705
+ text-align: center;
706
+ }
707
+
708
+ .tiptap [data-content-type="table"] td[data-text-align="right"],
709
+ .tiptap [data-content-type="table"] th[data-text-align="right"] {
710
+ text-align: right;
711
+ }
712
+
713
+ .tiptap [data-content-type="table"] td[data-text-align="justify"],
714
+ .tiptap [data-content-type="table"] th[data-text-align="justify"] {
715
+ text-align: justify;
716
+ }
717
+
718
+ .tiptap [data-content-type="table"] td[data-vertical-align="top"],
719
+ .tiptap [data-content-type="table"] th[data-vertical-align="top"] {
720
+ vertical-align: top;
721
+ }
722
+
723
+ .tiptap [data-content-type="table"] td[data-vertical-align="middle"],
724
+ .tiptap [data-content-type="table"] th[data-vertical-align="middle"] {
725
+ vertical-align: middle;
726
+ }
727
+
728
+ .tiptap [data-content-type="table"] td[data-vertical-align="bottom"],
729
+ .tiptap [data-content-type="table"] th[data-vertical-align="bottom"] {
730
+ vertical-align: bottom;
731
+ }
732
+
733
+ /* tiptap uses colwidth instead of data-colwidth, se we need to adjust this style from prosemirror-tables */
734
+ .ProseMirror td,
735
+ .ProseMirror th {
736
+ min-width: auto !important;
737
+ }
738
+ .ProseMirror td:not([colwidth]):not(.column-resize-dragging),
739
+ .ProseMirror th:not([colwidth]):not(.column-resize-dragging) {
740
+ /* if there's no explicit width set and the column is not being resized, set a default width */
741
+ min-width: var(--default-cell-min-width) !important;
742
+ }
743
+
744
+ .tiptap-table-dropcursor {
745
+ position: absolute;
746
+ z-index: 20;
747
+ background-color: var(--tt-table-column-resize-handle-bg);
748
+ pointer-events: none;
749
+ }
750
+
751
+ .table-cell-dragging-source {
752
+ z-index: 2;
753
+ position: absolute;
754
+ content: "";
755
+ left: 0;
756
+ right: 0;
757
+ top: 0;
758
+ bottom: 0;
759
+ background: rgba(40, 137, 207, 0.4);
740
760
  }
package/dist/index.d.mts CHANGED
@@ -76,5 +76,6 @@ export { ToggleRowSlots, ToggleRowVariantProps, toggleRow } from './components/t
76
76
  export { ToolbarVariantProps, toolbar } from './components/toolbar.mjs';
77
77
  export { TooltipVariants, tooltip } from './components/tooltip.mjs';
78
78
  export { VariableNodeVariants, variableNode } from './components/variable-node.mjs';
79
+ export { extensionTableHandleMenuContent, tableCellHandleMenu } from './components/extension-table.mjs';
79
80
  export { SlotsToClasses } from './utils/types.mjs';
80
81
  import 'tailwind-merge';
package/dist/index.d.ts CHANGED
@@ -76,5 +76,6 @@ export { ToggleRowSlots, ToggleRowVariantProps, toggleRow } from './components/t
76
76
  export { ToolbarVariantProps, toolbar } from './components/toolbar.js';
77
77
  export { TooltipVariants, tooltip } from './components/tooltip.js';
78
78
  export { VariableNodeVariants, variableNode } from './components/variable-node.js';
79
+ export { extensionTableHandleMenuContent, tableCellHandleMenu } from './components/extension-table.js';
79
80
  export { SlotsToClasses } from './utils/types.js';
80
81
  import 'tailwind-merge';