@onereach/ui-components 20.4.0 → 20.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,19 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, resolveComponent, normalizeStyle, Fragment, createBlock, watch, createElementVNode, createVNode, mergeProps, withCtx, createSlots, normalizeProps, guardReactiveProps, renderList, createTextVNode, toDisplayString } from 'vue';
2
- import { OrCheckboxV3 as script$g } from '../or-checkbox-v3/index.js';
3
- import { OrDatePickerV3 as script$h } from '../or-date-picker-v3/index.js';
4
- import { s as script$i } from '../OrDateTimePickerV3-3c2fd488.js';
5
- import { OrInputV3 as script$j } from '../or-input-v3/index.js';
6
- import { OrRatingV3 as script$k } from '../or-rating-v3/index.js';
7
- import { OrSelectV3 as script$l } from '../or-select-v3/index.js';
8
- import { OrSwitchV3 as script$m } from '../or-switch-v3/index.js';
9
- import { OrTagInputV3 as script$n } from '../or-tag-input-v3/index.js';
10
- import { OrTimePickerV3 as script$o } from '../or-time-picker-v3/index.js';
2
+ import { OrCheckboxV3 as script$h } from '../or-checkbox-v3/index.js';
3
+ import { OrDatePickerV3 as script$i } from '../or-date-picker-v3/index.js';
4
+ import { s as script$j } from '../OrDateTimePickerV3-3c2fd488.js';
5
+ import { OrInputV3 as script$k } from '../or-input-v3/index.js';
6
+ import { OrRatingV3 as script$l } from '../or-rating-v3/index.js';
7
+ import { OrSelectV3 as script$m } from '../or-select-v3/index.js';
8
+ import { OrSwitchV3 as script$n } from '../or-switch-v3/index.js';
9
+ import { OrTagInputV3 as script$o } from '../or-tag-input-v3/index.js';
10
+ import { OrTimePickerV3 as script$p } from '../or-time-picker-v3/index.js';
11
11
  import { useElementSize } from '@vueuse/core';
12
- import { OrIconV3 as script$p } from '../or-icon-v3/index.js';
13
- import { OrNotificationV3 as script$q } from '../or-notification-v3/index.js';
14
- import { OrPaginationV3 as script$r } from '../or-pagination-v3/index.js';
15
- import { OrSearchV3 as script$s } from '../or-search-v3/index.js';
16
- import { OrSkeletonTextV3 as script$t } from '../or-skeleton-v3/index.js';
12
+ import { OrIconV3 as script$q } from '../or-icon-v3/index.js';
13
+ import { OrNotificationV3 as script$r } from '../or-notification-v3/index.js';
14
+ import { OrPaginationV3 as script$s } from '../or-pagination-v3/index.js';
15
+ import { OrSearchV3 as script$t } from '../or-search-v3/index.js';
16
+ import { OrSkeletonTextV3 as script$u } from '../or-skeleton-v3/index.js';
17
17
  import '../OrAutocompleteV3-fd7065f1.js';
18
18
  import '@onereach/styles/screens.json';
19
19
  import '@onereach/styles/tailwind.config.json';
@@ -59,7 +59,7 @@ const DataGridFooterStatus = [
59
59
  // Typography
60
60
  'typography-body-2-semibold'];
61
61
 
62
- var script$f = defineComponent({
62
+ var script$g = defineComponent({
63
63
  name: 'OrDataGridFooter',
64
64
  expose: ['root'],
65
65
  setup() {
@@ -75,22 +75,22 @@ var script$f = defineComponent({
75
75
  }
76
76
  });
77
77
 
78
- const _hoisted_1$4 = {
78
+ const _hoisted_1$5 = {
79
79
  key: 1,
80
80
  class: /*#__PURE__*/normalizeClass(['grow'])
81
81
  };
82
- function render$f(_ctx, _cache, $props, $setup, $data, $options) {
82
+ function render$g(_ctx, _cache, $props, $setup, $data, $options) {
83
83
  return openBlock(), createElementBlock("div", {
84
84
  ref: 'root',
85
85
  class: normalizeClass(_ctx.rootStyles)
86
86
  }, [_ctx.$slots['status'] ? (openBlock(), createElementBlock("div", {
87
87
  key: 0,
88
88
  class: normalizeClass(_ctx.statusStyles)
89
- }, [renderSlot(_ctx.$slots, 'status')], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'actions'), _ctx.$slots['paging'] ? (openBlock(), createElementBlock("div", _hoisted_1$4)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'paging')], 2 /* CLASS */);
89
+ }, [renderSlot(_ctx.$slots, 'status')], 2 /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'actions'), _ctx.$slots['paging'] ? (openBlock(), createElementBlock("div", _hoisted_1$5)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'paging')], 2 /* CLASS */);
90
90
  }
91
91
 
92
- script$f.render = render$f;
93
- script$f.__file = "src/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue";
92
+ script$g.render = render$g;
93
+ script$g.__file = "src/components/or-data-grid-v3/partials/or-data-grid-footer/OrDataGridFooter.vue";
94
94
 
95
95
  const DataGridHeader = [
96
96
  // Layout
@@ -103,7 +103,7 @@ const DataGridHeaderTitle = [
103
103
  // Typography
104
104
  'typography-headline-2'];
105
105
 
106
- var script$e = defineComponent({
106
+ var script$f = defineComponent({
107
107
  name: 'OrDataGridHeader',
108
108
  expose: ['root'],
109
109
  setup() {
@@ -119,22 +119,22 @@ var script$e = defineComponent({
119
119
  }
120
120
  });
121
121
 
122
- const _hoisted_1$3 = {
122
+ const _hoisted_1$4 = {
123
123
  key: 1,
124
124
  class: /*#__PURE__*/normalizeClass(['grow'])
125
125
  };
126
- function render$e(_ctx, _cache, $props, $setup, $data, $options) {
126
+ function render$f(_ctx, _cache, $props, $setup, $data, $options) {
127
127
  return openBlock(), createElementBlock("div", {
128
128
  ref: 'root',
129
129
  class: normalizeClass(_ctx.rootStyles)
130
130
  }, [_ctx.$slots['title'] ? (openBlock(), createElementBlock("div", {
131
131
  key: 0,
132
132
  class: normalizeClass(_ctx.titleStyles)
133
- }, [renderSlot(_ctx.$slots, 'title')], 2 /* CLASS */)) : createCommentVNode("v-if", true), _ctx.$slots['searching'] ? (openBlock(), createElementBlock("div", _hoisted_1$3)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'searching')], 2 /* CLASS */);
133
+ }, [renderSlot(_ctx.$slots, 'title')], 2 /* CLASS */)) : createCommentVNode("v-if", true), _ctx.$slots['searching'] ? (openBlock(), createElementBlock("div", _hoisted_1$4)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, 'searching')], 2 /* CLASS */);
134
134
  }
135
135
 
136
- script$e.render = render$e;
137
- script$e.__file = "src/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue";
136
+ script$f.render = render$f;
137
+ script$f.__file = "src/components/or-data-grid-v3/partials/or-data-grid-header/OrDataGridHeader.vue";
138
138
 
139
139
  const DataGridTableContentCell = [
140
140
  // Layout
@@ -150,18 +150,18 @@ const DataGridTableContentCell = [
150
150
  // Theme (.sticky-end)
151
151
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
152
152
 
153
- var script$d = defineComponent({
153
+ var script$e = defineComponent({
154
154
  name: 'OrDataGridTableContentCell',
155
155
  components: {
156
- OrCheckbox: script$g,
157
- OrDatePicker: script$h,
158
- OrDateTimePicker: script$i,
159
- OrInput: script$j,
160
- OrRating: script$k,
161
- OrSelect: script$l,
162
- OrSwitch: script$m,
163
- OrTagInput: script$n,
164
- OrTimePicker: script$o
156
+ OrCheckbox: script$h,
157
+ OrDatePicker: script$i,
158
+ OrDateTimePicker: script$j,
159
+ OrInput: script$k,
160
+ OrRating: script$l,
161
+ OrSelect: script$m,
162
+ OrSwitch: script$n,
163
+ OrTagInput: script$o,
164
+ OrTimePicker: script$p
165
165
  },
166
166
  model: {
167
167
  prop: 'modelValue',
@@ -243,11 +243,11 @@ var script$d = defineComponent({
243
243
  }
244
244
  });
245
245
 
246
- const _hoisted_1$2 = {
246
+ const _hoisted_1$3 = {
247
247
  key: 2,
248
248
  class: /*#__PURE__*/normalizeClass(['truncate'])
249
249
  };
250
- function render$d(_ctx, _cache, $props, $setup, $data, $options) {
250
+ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
251
251
  const _component_OrInput = resolveComponent("OrInput");
252
252
  const _component_OrRating = resolveComponent("OrRating");
253
253
  const _component_OrSelect = resolveComponent("OrSelect");
@@ -319,11 +319,11 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
319
319
  modelValue: _ctx.model,
320
320
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => _ctx.model = $event),
321
321
  variant: 'embedded'
322
- }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$2, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
322
+ }, null, 8 /* PROPS */, ["modelValue"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "default")]))], 6 /* CLASS, STYLE */);
323
323
  }
324
324
 
325
- script$d.render = render$d;
326
- script$d.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue";
325
+ script$e.render = render$e;
326
+ script$e.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue";
327
327
 
328
328
  var DataGridVariant;
329
329
  (function (DataGridVariant) {
@@ -359,7 +359,7 @@ const DataGridTableContentRowVariants = {
359
359
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
360
360
  };
361
361
 
362
- var script$c = defineComponent({
362
+ var script$d = defineComponent({
363
363
  name: 'OrDataGridTableContentRow',
364
364
  props: {
365
365
  variant: {
@@ -387,23 +387,23 @@ var script$c = defineComponent({
387
387
  }
388
388
  });
389
389
 
390
- const _hoisted_1$1 = ["selected"];
391
- function render$c(_ctx, _cache, $props, $setup, $data, $options) {
390
+ const _hoisted_1$2 = ["selected"];
391
+ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
392
392
  return openBlock(), createElementBlock("div", {
393
393
  ref: 'root',
394
394
  class: normalizeClass(_ctx.rootStyles),
395
395
  selected: _ctx.selected
396
- }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$1);
396
+ }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_1$2);
397
397
  }
398
398
 
399
- script$c.render = render$c;
400
- script$c.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue";
399
+ script$d.render = render$d;
400
+ script$d.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content-row/OrDataGridTableContentRow.vue";
401
401
 
402
402
  const DataGridTableContent = [
403
403
  // Layout
404
404
  'contents'];
405
405
 
406
- var script$b = defineComponent({
406
+ var script$c = defineComponent({
407
407
  name: 'OrDataGridTableContent',
408
408
  expose: ['root'],
409
409
  setup() {
@@ -417,15 +417,15 @@ var script$b = defineComponent({
417
417
  }
418
418
  });
419
419
 
420
- function render$b(_ctx, _cache, $props, $setup, $data, $options) {
420
+ function render$c(_ctx, _cache, $props, $setup, $data, $options) {
421
421
  return openBlock(), createElementBlock("div", {
422
422
  ref: 'root',
423
423
  class: normalizeClass(_ctx.rootStyles)
424
424
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
425
425
  }
426
426
 
427
- script$b.render = render$b;
428
- script$b.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue";
427
+ script$c.render = render$c;
428
+ script$c.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-content/OrDataGridTableContent.vue";
429
429
 
430
430
  const DataGridTableFooterCell = [
431
431
  // Layout
@@ -435,7 +435,7 @@ const DataGridTableFooterCell = [
435
435
  // Theme
436
436
  'theme-border-transparent border-1', 'dark:theme-border-transparent-dark'];
437
437
 
438
- var script$a = defineComponent({
438
+ var script$b = defineComponent({
439
439
  name: 'OrDataGridTableFooterCell',
440
440
  expose: ['root'],
441
441
  setup() {
@@ -449,15 +449,15 @@ var script$a = defineComponent({
449
449
  }
450
450
  });
451
451
 
452
- function render$a(_ctx, _cache, $props, $setup, $data, $options) {
452
+ function render$b(_ctx, _cache, $props, $setup, $data, $options) {
453
453
  return openBlock(), createElementBlock("div", {
454
454
  ref: 'root',
455
455
  class: normalizeClass(_ctx.rootStyles)
456
456
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
457
457
  }
458
458
 
459
- script$a.render = render$a;
460
- script$a.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
459
+ script$b.render = render$b;
460
+ script$b.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-cell/OrDataGridTableFooterCell.vue";
461
461
 
462
462
  const DataGridTableFooterRow = [
463
463
  // Layout
@@ -480,7 +480,7 @@ const DataGridTableFooterRowVariants = {
480
480
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
481
481
  };
482
482
 
483
- var script$9 = defineComponent({
483
+ var script$a = defineComponent({
484
484
  name: 'OrDataGridTableFooterRow',
485
485
  props: {
486
486
  variant: {
@@ -500,21 +500,21 @@ var script$9 = defineComponent({
500
500
  }
501
501
  });
502
502
 
503
- function render$9(_ctx, _cache, $props, $setup, $data, $options) {
503
+ function render$a(_ctx, _cache, $props, $setup, $data, $options) {
504
504
  return openBlock(), createElementBlock("div", {
505
505
  ref: 'root',
506
506
  class: normalizeClass(_ctx.rootStyles)
507
507
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
508
508
  }
509
509
 
510
- script$9.render = render$9;
511
- script$9.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue";
510
+ script$a.render = render$a;
511
+ script$a.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer-row/OrDataGridTableFooterRow.vue";
512
512
 
513
513
  const DataGridTableFooter = [
514
514
  // Layout
515
515
  'contents'];
516
516
 
517
- var script$8 = defineComponent({
517
+ var script$9 = defineComponent({
518
518
  name: 'OrDataGridTableFooter',
519
519
  expose: ['root'],
520
520
  setup() {
@@ -528,15 +528,15 @@ var script$8 = defineComponent({
528
528
  }
529
529
  });
530
530
 
531
- function render$8(_ctx, _cache, $props, $setup, $data, $options) {
531
+ function render$9(_ctx, _cache, $props, $setup, $data, $options) {
532
532
  return openBlock(), createElementBlock("div", {
533
533
  ref: 'root',
534
534
  class: normalizeClass(_ctx.rootStyles)
535
535
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
536
536
  }
537
537
 
538
- script$8.render = render$8;
539
- script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue";
538
+ script$9.render = render$9;
539
+ script$9.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-footer/OrDataGridTableFooter.vue";
540
540
 
541
541
  const DataGridTableHeaderCell = [
542
542
  // Layout
@@ -550,10 +550,10 @@ const DataGridTableHeaderCell = [
550
550
  // Theme (.sticky-end)
551
551
  '[&.sticky-end]:border-s-disabled', 'dark:[&.sticky-end]:border-s-disabled-dark'];
552
552
 
553
- var script$7 = defineComponent({
553
+ var script$8 = defineComponent({
554
554
  name: 'OrDataGridTableHeaderCell',
555
555
  components: {
556
- OrIcon: script$p
556
+ OrIcon: script$q
557
557
  },
558
558
  model: {
559
559
  prop: 'modelValue',
@@ -669,24 +669,24 @@ var script$7 = defineComponent({
669
669
  }
670
670
  });
671
671
 
672
- const _hoisted_1 = {
672
+ const _hoisted_1$1 = {
673
673
  class: /*#__PURE__*/normalizeClass(['truncate'])
674
674
  };
675
- function render$7(_ctx, _cache, $props, $setup, $data, $options) {
675
+ function render$8(_ctx, _cache, $props, $setup, $data, $options) {
676
676
  const _component_OrIcon = resolveComponent("OrIcon");
677
677
  return openBlock(), createElementBlock("div", {
678
678
  ref: 'root',
679
679
  class: normalizeClass(_ctx.rootStyles),
680
680
  style: normalizeStyle(_ctx.rootInlineStyles),
681
681
  onClick: _cache[0] || (_cache[0] = $event => _ctx.toggleSorting())
682
- }, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
682
+ }, [createElementVNode("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "default")]), _ctx.model ? (openBlock(), createBlock(_component_OrIcon, {
683
683
  key: 0,
684
684
  icon: _ctx.model.direction === 'asc' ? 'arrow_upward' : 'arrow_downward'
685
685
  }, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)], 6 /* CLASS, STYLE */);
686
686
  }
687
687
 
688
- script$7.render = render$7;
689
- script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue";
688
+ script$8.render = render$8;
689
+ script$8.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue";
690
690
 
691
691
  const DataGridTableHeaderRow = [
692
692
  // Position
@@ -709,7 +709,7 @@ const DataGridTableHeaderRowVariants = {
709
709
  'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
710
710
  };
711
711
 
712
- var script$6 = defineComponent({
712
+ var script$7 = defineComponent({
713
713
  name: 'OrDataGridTableHeaderRow',
714
714
  props: {
715
715
  variant: {
@@ -729,21 +729,21 @@ var script$6 = defineComponent({
729
729
  }
730
730
  });
731
731
 
732
- function render$6(_ctx, _cache, $props, $setup, $data, $options) {
732
+ function render$7(_ctx, _cache, $props, $setup, $data, $options) {
733
733
  return openBlock(), createElementBlock("div", {
734
734
  ref: 'root',
735
735
  class: normalizeClass(_ctx.rootStyles)
736
736
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
737
737
  }
738
738
 
739
- script$6.render = render$6;
740
- script$6.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue";
739
+ script$7.render = render$7;
740
+ script$7.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header-row/OrDataGridTableHeaderRow.vue";
741
741
 
742
742
  const DataGridTableHeader = [
743
743
  // Layout
744
744
  'contents'];
745
745
 
746
- var script$5 = defineComponent({
746
+ var script$6 = defineComponent({
747
747
  name: 'OrDataGridTableHeader',
748
748
  expose: ['root'],
749
749
  setup() {
@@ -757,15 +757,15 @@ var script$5 = defineComponent({
757
757
  }
758
758
  });
759
759
 
760
- function render$5(_ctx, _cache, $props, $setup, $data, $options) {
760
+ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
761
761
  return openBlock(), createElementBlock("div", {
762
762
  ref: 'root',
763
763
  class: normalizeClass(_ctx.rootStyles)
764
764
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
765
765
  }
766
766
 
767
- script$5.render = render$5;
768
- script$5.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue";
767
+ script$6.render = render$6;
768
+ script$6.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-header/OrDataGridTableHeader.vue";
769
769
 
770
770
  const DataGridTablePlaceholder = [
771
771
  // Layout
@@ -788,7 +788,7 @@ const DataGridTablePlaceholderVariants = {
788
788
  'min-h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
789
789
  };
790
790
 
791
- var script$4 = defineComponent({
791
+ var script$5 = defineComponent({
792
792
  name: 'OrDataGridTablePlaceholder',
793
793
  props: {
794
794
  variant: {
@@ -808,15 +808,15 @@ var script$4 = defineComponent({
808
808
  }
809
809
  });
810
810
 
811
- function render$4(_ctx, _cache, $props, $setup, $data, $options) {
811
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
812
812
  return openBlock(), createElementBlock("div", {
813
813
  ref: 'root',
814
814
  class: normalizeClass(_ctx.rootStyles)
815
815
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
816
816
  }
817
817
 
818
- script$4.render = render$4;
819
- script$4.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue";
818
+ script$5.render = render$5;
819
+ script$5.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-placeholder/OrDataGridTablePlaceholder.vue";
820
820
 
821
821
  const DataGridTable = [
822
822
  // Layout
@@ -826,7 +826,7 @@ const DataGridTable = [
826
826
  // Interactivity
827
827
  'interactivity-default'];
828
828
 
829
- var script$3 = defineComponent({
829
+ var script$4 = defineComponent({
830
830
  name: 'OrDataGridTable',
831
831
  props: {
832
832
  columns: {
@@ -865,7 +865,7 @@ var script$3 = defineComponent({
865
865
  }
866
866
  });
867
867
 
868
- function render$3(_ctx, _cache, $props, $setup, $data, $options) {
868
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
869
869
  return openBlock(), createElementBlock("div", {
870
870
  ref: 'root',
871
871
  class: normalizeClass(_ctx.rootStyles),
@@ -873,8 +873,8 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
873
873
  }, [renderSlot(_ctx.$slots, "default")], 6 /* CLASS, STYLE */);
874
874
  }
875
875
 
876
- script$3.render = render$3;
877
- script$3.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue";
876
+ script$4.render = render$4;
877
+ script$4.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table/OrDataGridTable.vue";
878
878
 
879
879
  const DataGridToolbar = [
880
880
  // Layout
@@ -884,7 +884,7 @@ const DataGridToolbar = [
884
884
  // Spacing
885
885
  'gap-xl'];
886
886
 
887
- var script$2 = defineComponent({
887
+ var script$3 = defineComponent({
888
888
  name: 'OrDataGridToolbar',
889
889
  expose: ['root'],
890
890
  setup() {
@@ -898,15 +898,15 @@ var script$2 = defineComponent({
898
898
  }
899
899
  });
900
900
 
901
- function render$2(_ctx, _cache, $props, $setup, $data, $options) {
901
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
902
902
  return openBlock(), createElementBlock("div", {
903
903
  ref: 'root',
904
904
  class: normalizeClass(_ctx.rootStyles)
905
905
  }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
906
906
  }
907
907
 
908
- script$2.render = render$2;
909
- script$2.__file = "src/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue";
908
+ script$3.render = render$3;
909
+ script$3.__file = "src/components/or-data-grid-v3/partials/or-data-grid-toolbar/OrDataGridToolbar.vue";
910
910
 
911
911
  const DataGridNotification = [
912
912
  // Position
@@ -925,9 +925,9 @@ const DataGridNotificationPositionVariants = {
925
925
  'top-[calc(theme(spacing.xl)+theme(spacing.xs))]']
926
926
  };
927
927
 
928
- var script$1 = defineComponent({
928
+ var script$2 = defineComponent({
929
929
  components: {
930
- OrNotification: script$q
930
+ OrNotification: script$r
931
931
  },
932
932
  props: {
933
933
  notification: {
@@ -948,7 +948,7 @@ var script$1 = defineComponent({
948
948
  }
949
949
  });
950
950
 
951
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
951
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
952
952
  const _component_OrNotification = resolveComponent("OrNotification");
953
953
  return openBlock(), createElementBlock("div", {
954
954
  class: normalizeClass(_ctx.rootStyles)
@@ -963,8 +963,59 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
963
963
  }, 16 /* FULL_PROPS */)], 2 /* CLASS */);
964
964
  }
965
965
 
966
+ script$2.render = render$2;
967
+ script$2.__file = "src/components/or-data-grid-v3/partials/or-data-grid-notification/OrDataGridNotification.vue";
968
+
969
+ const DataGridTableExtraRow = [
970
+ // Layout
971
+ 'grid px-sm+',
972
+ // Typography
973
+ 'typography-body-2-regular',
974
+ // Theme
975
+ 'theme-border-disabled', 'dark:theme-border-disabled-dark',
976
+ // Theme (children)
977
+ 'children:theme-foreground-default', 'dark:children:theme-foreground-default-dark', 'children:theme-background-default', 'dark:children:theme-background-default-dark'];
978
+ const DataGridTableExtraRowVariants = {
979
+ [DataGridVariant.Standard]: [
980
+ // Box
981
+ 'h-[calc(theme(spacing.2xl)+theme(spacing.xs))]'],
982
+ [DataGridVariant.Comfortable]: [
983
+ // Box
984
+ 'h-[calc(theme(spacing.3xl)+theme(spacing.xs))]'],
985
+ [DataGridVariant.Compact]: [
986
+ // Box
987
+ 'h-[calc(theme(spacing.xl)+theme(spacing.xs))]']
988
+ };
989
+
990
+ var script$1 = defineComponent({
991
+ name: 'OrDataGridTableExtraRow',
992
+ props: {
993
+ variant: {
994
+ type: String,
995
+ required: true
996
+ }
997
+ },
998
+ expose: ['root'],
999
+ setup(props) {
1000
+ // Refs & Styles
1001
+ const root = ref();
1002
+ const rootStyles = computed(() => ['or-data-grid-table-footer-row-v3', ...DataGridTableExtraRow, ...DataGridTableExtraRowVariants[props.variant]]);
1003
+ return {
1004
+ root,
1005
+ rootStyles
1006
+ };
1007
+ }
1008
+ });
1009
+
1010
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
1011
+ return openBlock(), createElementBlock("div", {
1012
+ ref: 'root',
1013
+ class: normalizeClass(_ctx.rootStyles)
1014
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
1015
+ }
1016
+
966
1017
  script$1.render = render$1;
967
- script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-notification/OrDataGridNotification.vue";
1018
+ script$1.__file = "src/components/or-data-grid-v3/partials/or-data-grid-table-extra-row/OrDataGridTableExtraRow.vue";
968
1019
 
969
1020
  const DataGrid = [
970
1021
  // Layout
@@ -973,25 +1024,26 @@ const DataGrid = [
973
1024
  var script = defineComponent({
974
1025
  name: 'OrDataGrid',
975
1026
  components: {
976
- OrCheckbox: script$g,
977
- OrDataGridFooter: script$f,
978
- OrDataGridHeader: script$e,
979
- OrDataGridTable: script$3,
980
- OrDataGridTableContent: script$b,
981
- OrDataGridTableContentCell: script$d,
982
- OrDataGridTableContentRow: script$c,
983
- OrDataGridTableFooter: script$8,
984
- OrDataGridTableFooterCell: script$a,
985
- OrDataGridTableFooterRow: script$9,
986
- OrDataGridTableHeader: script$5,
987
- OrDataGridTableHeaderCell: script$7,
988
- OrDataGridTableHeaderRow: script$6,
989
- OrDataGridTablePlaceholder: script$4,
990
- OrDataGridToolbar: script$2,
991
- OrDataGridNotification: script$1,
992
- OrPagination: script$r,
993
- OrSearch: script$s,
994
- OrSkeletonText: script$t
1027
+ OrCheckbox: script$h,
1028
+ OrDataGridFooter: script$g,
1029
+ OrDataGridHeader: script$f,
1030
+ OrDataGridTable: script$4,
1031
+ OrDataGridTableContent: script$c,
1032
+ OrDataGridTableContentCell: script$e,
1033
+ OrDataGridTableContentRow: script$d,
1034
+ OrDataGridTableFooter: script$9,
1035
+ OrDataGridTableFooterCell: script$b,
1036
+ OrDataGridTableFooterRow: script$a,
1037
+ OrDataGridTableExtraRow: script$1,
1038
+ OrDataGridTableHeader: script$6,
1039
+ OrDataGridTableHeaderCell: script$8,
1040
+ OrDataGridTableHeaderRow: script$7,
1041
+ OrDataGridTablePlaceholder: script$5,
1042
+ OrDataGridToolbar: script$3,
1043
+ OrDataGridNotification: script$2,
1044
+ OrPagination: script$s,
1045
+ OrSearch: script$t,
1046
+ OrSkeletonText: script$u
995
1047
  },
996
1048
  model: {
997
1049
  prop: 'modelValue',
@@ -1238,6 +1290,12 @@ var script = defineComponent({
1238
1290
  }
1239
1291
  });
1240
1292
 
1293
+ const _hoisted_1 = {
1294
+ class: "col-span-full self-center"
1295
+ };
1296
+ const _hoisted_2 = {
1297
+ class: "col-span-full self-center"
1298
+ };
1241
1299
  function render(_ctx, _cache, $props, $setup, $data, $options) {
1242
1300
  const _component_OrSearch = resolveComponent("OrSearch");
1243
1301
  const _component_OrDataGridHeader = resolveComponent("OrDataGridHeader");
@@ -1247,6 +1305,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1247
1305
  const _component_OrDataGridTableHeaderRow = resolveComponent("OrDataGridTableHeaderRow");
1248
1306
  const _component_OrDataGridTableHeader = resolveComponent("OrDataGridTableHeader");
1249
1307
  const _component_OrDataGridNotification = resolveComponent("OrDataGridNotification");
1308
+ const _component_OrDataGridTableExtraRow = resolveComponent("OrDataGridTableExtraRow");
1250
1309
  const _component_OrSkeletonText = resolveComponent("OrSkeletonText");
1251
1310
  const _component_OrDataGridTableContentCell = resolveComponent("OrDataGridTableContentCell");
1252
1311
  const _component_OrDataGridTableContentRow = resolveComponent("OrDataGridTableContentRow");
@@ -1343,8 +1402,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1343
1402
  fn: withCtx(() => [renderSlot(_ctx.$slots, 'notification')]),
1344
1403
  key: "0"
1345
1404
  } : undefined]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["notification", "variant"])) : createCommentVNode("v-if", true), createVNode(_component_OrDataGridTableContent, null, {
1346
- default: withCtx(() => [_ctx.loading ? (openBlock(), createElementBlock(Fragment, {
1347
- key: 0
1405
+ default: withCtx(() => [_ctx.$slots['before-rows'] ? (openBlock(), createBlock(_component_OrDataGridTableExtraRow, {
1406
+ key: 0,
1407
+ class: normalizeClass(['col-span-full border-b-1']),
1408
+ variant: _ctx.variant
1409
+ }, {
1410
+ default: withCtx(() => [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, 'before-rows')])]),
1411
+ _: 3 /* FORWARDED */
1412
+ }, 8 /* PROPS */, ["variant"])) : createCommentVNode("v-if", true), _ctx.loading ? (openBlock(), createElementBlock(Fragment, {
1413
+ key: 1
1348
1414
  }, renderList(10, n => {
1349
1415
  return createVNode(_component_OrDataGridTableContentRow, {
1350
1416
  key: n,
@@ -1374,7 +1440,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1374
1440
  _: 2 /* DYNAMIC */
1375
1441
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "interactive"]);
1376
1442
  }), 64 /* STABLE_FRAGMENT */)) : _ctx.items.length > 0 ? (openBlock(true), createElementBlock(Fragment, {
1377
- key: 1
1443
+ key: 2
1378
1444
  }, renderList(_ctx.items, item => {
1379
1445
  return openBlock(), createBlock(_component_OrDataGridTableContentRow, {
1380
1446
  key: item.id,
@@ -1426,7 +1492,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1426
1492
  _: 2 /* DYNAMIC */
1427
1493
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "selected", "interactive", "onMouseenter", "onMouseleave", "onClick"]);
1428
1494
  }), 128 /* KEYED_FRAGMENT */)) : _ctx.$slots['noSearchResults'] && (_ctx.features.filtering && _ctx.filteringModel || _ctx.features.searching && _ctx.searchingModel) ? (openBlock(), createBlock(_component_OrDataGridTablePlaceholder, {
1429
- key: 2,
1495
+ key: 3,
1430
1496
  class: normalizeClass(['col-span-full']),
1431
1497
  variant: _ctx.variant
1432
1498
  }, {
@@ -1436,12 +1502,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1436
1502
  })]),
1437
1503
  _: 3 /* FORWARDED */
1438
1504
  }, 8 /* PROPS */, ["variant"])) : _ctx.$slots['empty'] ? (openBlock(), createBlock(_component_OrDataGridTablePlaceholder, {
1439
- key: 3,
1505
+ key: 4,
1440
1506
  class: normalizeClass(['col-span-full']),
1441
1507
  variant: _ctx.variant
1442
1508
  }, {
1443
1509
  default: withCtx(() => [renderSlot(_ctx.$slots, 'empty')]),
1444
1510
  _: 3 /* FORWARDED */
1511
+ }, 8 /* PROPS */, ["variant"])) : createCommentVNode("v-if", true), _ctx.$slots['after-rows'] ? (openBlock(), createBlock(_component_OrDataGridTableExtraRow, {
1512
+ key: 5,
1513
+ class: normalizeClass(['col-span-full']),
1514
+ variant: _ctx.variant
1515
+ }, {
1516
+ default: withCtx(() => [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, 'after-rows')])]),
1517
+ _: 3 /* FORWARDED */
1445
1518
  }, 8 /* PROPS */, ["variant"])) : createCommentVNode("v-if", true)]),
1446
1519
  _: 3 /* FORWARDED */
1447
1520
  })]),
@@ -13,3 +13,4 @@ export { default as OrDataGridTablePlaceholder } from './or-data-grid-table-plac
13
13
  export { default as OrDataGridTable } from './or-data-grid-table/OrDataGridTable.vue';
14
14
  export { default as OrDataGridToolbar } from './or-data-grid-toolbar/OrDataGridToolbar.vue';
15
15
  export { default as OrDataGridNotification } from './or-data-grid-notification/OrDataGridNotification.vue';
16
+ export { default as OrDataGridTableExtraRow } from './or-data-grid-table-extra-row/OrDataGridTableExtraRow.vue';
@@ -0,0 +1,17 @@
1
+ import { PropType } from 'vue';
2
+ import { DataGridVariant } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ variant: {
5
+ type: PropType<DataGridVariant>;
6
+ required: true;
7
+ };
8
+ }, {
9
+ root: import("vue").Ref<HTMLElement | undefined>;
10
+ rootStyles: import("vue").ComputedRef<string[]>;
11
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
+ variant: {
13
+ type: PropType<DataGridVariant>;
14
+ required: true;
15
+ };
16
+ }>>, {}, {}>;
17
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { DataGridVariant } from '../../types';
2
+ export declare const DataGridTableExtraRow: string[];
3
+ export declare const DataGridTableExtraRowVariants: Record<DataGridVariant, string[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "20.4.0",
3
+ "version": "20.5.0",
4
4
  "description": "Vue components library for v3",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -44,8 +44,8 @@
44
44
  "@codemirror/view": "^6",
45
45
  "@floating-ui/dom": "1.5.3",
46
46
  "@lezer/highlight": "*",
47
- "@onereach/styles": "^20.4.0",
48
- "@onereach/ui-components-common": "^20.4.0",
47
+ "@onereach/styles": "^20.5.0",
48
+ "@onereach/ui-components-common": "^20.5.0",
49
49
  "@splidejs/splide": "4.0.6",
50
50
  "@tiptap/core": "2.0.3",
51
51
  "@tiptap/extension-blockquote": "2.0.3",
@@ -105,5 +105,5 @@
105
105
  "access": "public"
106
106
  },
107
107
  "npmUnpacked": "4.15.2",
108
- "gitHead": "4739e1eb32ed19459b84bf21e1c5b7bfe548332e"
108
+ "gitHead": "133b4d56fdf3542c0eca19ffff605f0a0fc41986"
109
109
  }