@leaflink/stash 43.5.1 → 44.0.0-beta.2

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.
Files changed (185) hide show
  1. package/dist/ActionsDropdown.js +9 -9
  2. package/dist/ActionsDropdown.js.map +1 -1
  3. package/dist/AddressSelect.js +12 -11
  4. package/dist/AddressSelect.js.map +1 -1
  5. package/dist/Alert.js +2 -2
  6. package/dist/Alert.js.map +1 -1
  7. package/dist/AppNavigationItem.js +15 -15
  8. package/dist/AppNavigationItem.js.map +1 -1
  9. package/dist/AppSidebar.js +17 -17
  10. package/dist/AppSidebar.js.map +1 -1
  11. package/dist/AppTopbar.js +12 -12
  12. package/dist/Avatar.js +12 -12
  13. package/dist/Avatar.js.map +1 -1
  14. package/dist/Backdrop.js +1 -1
  15. package/dist/Backdrop.js.map +1 -1
  16. package/dist/Badge.js +12 -12
  17. package/dist/Badge.js.map +1 -1
  18. package/dist/Button.js +1 -1
  19. package/dist/Button.js.map +1 -1
  20. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b2ee90e6.js +17 -0
  21. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b2ee90e6.js.map +1 -0
  22. package/dist/ButtonGroup.js +26 -26
  23. package/dist/ButtonGroup.js.map +1 -1
  24. package/dist/Card.js +3 -3
  25. package/dist/Card.js.map +1 -1
  26. package/dist/CardHeader.js +3 -3
  27. package/dist/CardMedia.js +1 -1
  28. package/dist/CardMedia.js.map +1 -1
  29. package/dist/Carousel.js +24 -24
  30. package/dist/Carousel.js.map +1 -1
  31. package/dist/Checkbox.js +27 -26
  32. package/dist/Checkbox.js.map +1 -1
  33. package/dist/{Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js → Checkbox.vue_vue_type_style_index_0_scoped_dbd26d7f_lang-4ed993c7.js} +1 -1
  34. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_dbd26d7f_lang-4ed993c7.js.map +1 -0
  35. package/dist/ChevronToggle.js +1 -1
  36. package/dist/Chip.js +1 -1
  37. package/dist/Chip.js.map +1 -1
  38. package/dist/ConfirmationCodeInput.js +21 -21
  39. package/dist/ConfirmationCodeInput.js.map +1 -1
  40. package/dist/ContextSwitcher.js +6 -5
  41. package/dist/ContextSwitcher.js.map +1 -1
  42. package/dist/Copy.js +1 -1
  43. package/dist/CurrencyInput.js +2 -2
  44. package/dist/DataView.js +1 -1
  45. package/dist/DataViewFilters.js +7 -7
  46. package/dist/DataViewFilters.js.map +1 -1
  47. package/dist/DataViewSortButton.js +5 -5
  48. package/dist/DataViewSortButton.js.map +1 -1
  49. package/dist/DataViewToolbar.js +4 -4
  50. package/dist/DataViewToolbar.js.map +1 -1
  51. package/dist/DatePicker.js +8 -8
  52. package/dist/DatePicker.js.map +1 -1
  53. package/dist/DescriptionListTerm.js +1 -1
  54. package/dist/DescriptionListTerm.js.map +1 -1
  55. package/dist/Dialog.js +34 -34
  56. package/dist/Dialog.js.map +1 -1
  57. package/dist/Dropdown.js +3 -3
  58. package/dist/Dropdown.js.map +1 -1
  59. package/dist/EmptyState.js +1 -1
  60. package/dist/EmptyState.js.map +1 -1
  61. package/dist/Field.js +2 -2
  62. package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js → Field.vue_vue_type_script_setup_true_lang-42cf79d4.js} +5 -5
  63. package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js.map → Field.vue_vue_type_script_setup_true_lang-42cf79d4.js.map} +1 -1
  64. package/dist/FileUpload.js +25 -25
  65. package/dist/FileUpload.js.map +1 -1
  66. package/dist/FilterChip.js +32 -32
  67. package/dist/FilterChip.js.map +1 -1
  68. package/dist/FilterDrawerItem.js +4 -4
  69. package/dist/FilterDrawerItem.js.map +1 -1
  70. package/dist/FilterDropdown.js +19 -19
  71. package/dist/FilterDropdown.js.map +1 -1
  72. package/dist/FilterSelect.js +2 -2
  73. package/dist/Filters.js +7 -6
  74. package/dist/Filters.js.map +1 -1
  75. package/dist/HttpError.js +30 -30
  76. package/dist/HttpError.js.map +1 -1
  77. package/dist/IconLabel.js +1 -1
  78. package/dist/IconLabel.js.map +1 -1
  79. package/dist/InlineEdit.js +3 -3
  80. package/dist/InlineEdit.js.map +1 -1
  81. package/dist/Input.js +37 -37
  82. package/dist/Input.js.map +1 -1
  83. package/dist/InputOptions.js +37 -36
  84. package/dist/InputOptions.js.map +1 -1
  85. package/dist/Label.js +1 -1
  86. package/dist/{Label.vue_vue_type_script_setup_true_lang-1d29d98a.js → Label.vue_vue_type_script_setup_true_lang-c5589919.js} +2 -2
  87. package/dist/{Label.vue_vue_type_script_setup_true_lang-1d29d98a.js.map → Label.vue_vue_type_script_setup_true_lang-c5589919.js.map} +1 -1
  88. package/dist/ListItem.js +6 -5
  89. package/dist/ListItem.js.map +1 -1
  90. package/dist/ListView.js +55 -54
  91. package/dist/ListView.js.map +1 -1
  92. package/dist/Menu.js +1 -1
  93. package/dist/Menu.js.map +1 -1
  94. package/dist/Metric.js +4 -4
  95. package/dist/Metric.js.map +1 -1
  96. package/dist/Modal.js +21 -21
  97. package/dist/Modal.js.map +1 -1
  98. package/dist/Module.js +2 -2
  99. package/dist/Module.js.map +1 -1
  100. package/dist/ModuleContent.js +2 -2
  101. package/dist/ModuleContent.js.map +1 -1
  102. package/dist/ModuleFooter.js +11 -11
  103. package/dist/ModuleFooter.js.map +1 -1
  104. package/dist/ModuleHeader.js +6 -6
  105. package/dist/ModuleHeader.js.map +1 -1
  106. package/dist/ObfuscateText.js +1 -1
  107. package/dist/PageHeader.js +3 -3
  108. package/dist/PageHeader.js.map +1 -1
  109. package/dist/PageNavigation.js +2 -2
  110. package/dist/Paginate.js +1 -1
  111. package/dist/Paginate.js.map +1 -1
  112. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-1a2084f9.js +11 -0
  113. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-1a2084f9.js.map +1 -0
  114. package/dist/QuickAction.js +11 -11
  115. package/dist/QuickAction.js.map +1 -1
  116. package/dist/Radio.js +2 -2
  117. package/dist/Radio.js.map +1 -1
  118. package/dist/RadioGroup.js +44 -44
  119. package/dist/RadioGroup.js.map +1 -1
  120. package/dist/RadioNew.js +14 -14
  121. package/dist/SearchBar.js +21 -21
  122. package/dist/SearchBar.js.map +1 -1
  123. package/dist/Select.js +187 -186
  124. package/dist/Select.js.map +1 -1
  125. package/dist/SelectStatus.js +22 -21
  126. package/dist/SelectStatus.js.map +1 -1
  127. package/dist/Step.js +37 -37
  128. package/dist/Step.js.map +1 -1
  129. package/dist/Switch.js +26 -25
  130. package/dist/Switch.js.map +1 -1
  131. package/dist/Tab.js +3 -2
  132. package/dist/Tab.js.map +1 -1
  133. package/dist/{Tab.vue_vue_type_script_setup_true_lang-b810bee8.js → Tab.vue_vue_type_script_setup_true_lang-4a40f015.js} +23 -22
  134. package/dist/Tab.vue_vue_type_script_setup_true_lang-4a40f015.js.map +1 -0
  135. package/dist/Table.js +20 -19
  136. package/dist/Table.js.map +1 -1
  137. package/dist/TableCell.js +22 -21
  138. package/dist/TableCell.js.map +1 -1
  139. package/dist/TableHeaderCell.js +7 -6
  140. package/dist/TableHeaderCell.js.map +1 -1
  141. package/dist/TableHeaderRow.js +6 -5
  142. package/dist/TableHeaderRow.js.map +1 -1
  143. package/dist/TableRow.js +24 -23
  144. package/dist/TableRow.js.map +1 -1
  145. package/dist/Tabs.js +2 -2
  146. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js → Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js} +3 -3
  147. package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js.map → Tabs.vue_used_vue_type_style_index_0_lang.module-0af1e1cf.js.map} +1 -1
  148. package/dist/Textarea.js +3 -3
  149. package/dist/Textarea.js.map +1 -1
  150. package/dist/components.css +1 -1
  151. package/dist/index.js +21 -20
  152. package/dist/index.js.map +1 -1
  153. package/dist/storage.js +3 -2
  154. package/dist/storage.js.map +1 -1
  155. package/dist/useGoogleMaps.js.map +1 -1
  156. package/dist/utils/storage.js +30 -29
  157. package/dist/utils/storage.js.map +1 -1
  158. package/package.json +2 -2
  159. package/styles/_base.scss +1 -1
  160. package/styles/_core.scss +49 -1
  161. package/styles/backwards-compat.css +1407 -2
  162. package/styles/base.css +388 -19
  163. package/styles/elements/_links.scss +1 -1
  164. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js +0 -17
  165. package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map +0 -1
  166. package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +0 -1
  167. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +0 -11
  168. package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +0 -1
  169. package/dist/Tab.vue_vue_type_script_setup_true_lang-b810bee8.js.map +0 -1
  170. package/styles/components/_all.scss +0 -14
  171. package/styles/components/_box.scss +0 -13
  172. package/styles/components/_item-list.scss +0 -78
  173. package/styles/components/_sidebar.scss +0 -404
  174. package/styles/components/_top-header.scss +0 -219
  175. package/styles/elements/_all.scss +0 -15
  176. package/styles/elements/_buttons.scss +0 -235
  177. package/styles/elements/_forms.scss +0 -300
  178. package/styles/elements/_tables.scss +0 -80
  179. package/styles/elements/_tooltips.scss +0 -110
  180. package/styles/utility/_all.scss +0 -12
  181. package/styles/utility/_animations.scss +0 -103
  182. package/styles/utility/_display.scss +0 -167
  183. package/styles/utility/_grid.scss +0 -200
  184. package/styles/utility/_icons.scss +0 -31
  185. package/styles/utility/_transitions.scss +0 -110
package/styles/base.css CHANGED
@@ -1,7 +1,14 @@
1
1
  @tailwind base;
2
-
3
2
  @tailwind components;
4
3
 
4
+ /*
5
+ NOTE: Commenting this out cause packaging tw classes inside of stash's build causes a
6
+ lot of duplication and order issues with downstream applications. You need to configure your
7
+ application downstream to analyze stash files to ensure they are included in your build.
8
+
9
+ @tailwind utilities;
10
+ */
11
+
5
12
  /**
6
13
  * This is a custom .container class that conflicts with tailwinds out of the box container class.
7
14
  * Placed here before tw utilities, and specifically not within @layer components, so that it is
@@ -15,19 +22,6 @@
15
22
  width: 100%;
16
23
  }
17
24
 
18
- /* helpful class to show an emdash when an element like a table cell is empty */
19
- .show-empty:empty::before {
20
- content: "—";
21
- }
22
-
23
- /*
24
- NOTE: Commenting this out cause packaging tw classes inside of stash's build causes a
25
- lot of duplication and order issues with downstream applications. You need to configure your
26
- application downstream to analyze stash files to ensure they are included in your build.
27
-
28
- @tailwind utilities;
29
- */
30
-
31
25
  /**
32
26
  * General styles and/or reset css could go here.
33
27
  */
@@ -35,6 +29,12 @@
35
29
  :root {
36
30
  --grid-gutter: 12px;
37
31
 
32
+ /* The tooltips position relative to the toggle element */
33
+ --tooltip-position: calc(100% + theme('spacing.3'));
34
+
35
+ /* Centers arrow horizontally or vertically along tooltip on arrow's center */
36
+ --arrow-position-centered: calc(50% - theme('spacing[1.5]'));
37
+
38
38
  @media screen(lg) {
39
39
  --grid-gutter: 24px;
40
40
  }
@@ -42,7 +42,7 @@
42
42
 
43
43
  @layer base {
44
44
  @font-face {
45
- font-family: 'Sofia';
45
+ font-family: Sofia;
46
46
  font-style: normal;
47
47
  font-weight: 400;
48
48
  src:
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  @font-face {
54
- font-family: 'Sofia';
54
+ font-family: Sofia;
55
55
  font-style: normal;
56
56
  font-weight: 500;
57
57
  src:
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  @font-face {
63
- font-family: 'Sofia';
63
+ font-family: Sofia;
64
64
  font-style: normal;
65
65
  font-weight: 600;
66
66
  src:
@@ -79,7 +79,7 @@
79
79
  body {
80
80
  @apply tw-leading-normal tw-text-ice-700 tw-bg-ice-100 tw-font-normal tw-text-sm;
81
81
 
82
- font-family: 'Sofia', sans-serif;
82
+ font-family: Sofia, sans-serif;
83
83
  min-height: 100vh;
84
84
  position: relative;
85
85
  }
@@ -128,7 +128,7 @@
128
128
 
129
129
  @media screen(md) {
130
130
  .heading-jumbo {
131
- font-size: theme(fontSize.5xl);
131
+ font-size: theme('fontSize.5xl');
132
132
  }
133
133
  }
134
134
 
@@ -142,6 +142,8 @@
142
142
 
143
143
  address {
144
144
  font-style: normal;
145
+ line-height: theme('spacing.6');
146
+ white-space: pre-line;
145
147
  }
146
148
 
147
149
  /**
@@ -258,6 +260,12 @@
258
260
  margin: 0; /* 2 */
259
261
  }
260
262
 
263
+ button {
264
+ display: inline-block;
265
+ font-size: 0.875rem;
266
+ vertical-align: middle;
267
+ }
268
+
261
269
  /**
262
270
  * Show the overflow in IE.
263
271
  * 1. Show the overflow in Edge.
@@ -395,4 +403,365 @@
395
403
  template {
396
404
  display: none;
397
405
  }
406
+
407
+ ul,
408
+ ol {
409
+ list-style-type: none;
410
+ margin: 0;
411
+ padding: 0;
412
+
413
+ &.bullets {
414
+ list-style-type: disc;
415
+ padding-left: theme('spacing.9');
416
+
417
+ li {
418
+ margin-bottom: theme('spacing.3');
419
+ }
420
+ }
421
+ }
422
+
423
+ table {
424
+ border-collapse: collapse;
425
+ border-spacing: 0;
426
+ max-width: 100%;
427
+ width: 100%;
428
+
429
+ td,
430
+ th {
431
+ border-top: 1px solid var(--color-ice-500);
432
+ padding: 0.766rem;
433
+ }
434
+
435
+ thead {
436
+ td,
437
+ th {
438
+ background-color: var(--color-ice-200);
439
+ border-bottom: 2px solid var(--color-ice-500);
440
+ border-top: none;
441
+ color: var(--color-ice-900);
442
+ font-weight: 500;
443
+ text-align: left;
444
+ user-select: none;
445
+ white-space: nowrap;
446
+ }
447
+ }
448
+
449
+ tbody {
450
+ td {
451
+ font-weight: 400;
452
+ }
453
+ }
454
+
455
+ tfoot {
456
+ tr {
457
+ td {
458
+ border: none;
459
+ }
460
+ }
461
+ }
462
+ }
463
+ }
464
+
465
+ /**
466
+ * Custom global classes.
467
+ *
468
+ * These are global classes that are not part of the tailwindcss framework. These should be created & used sparingly
469
+ * and only when using a global class is the best solution.
470
+ */
471
+
472
+ /* helpful class to show an emdash when an element like a table cell is empty */
473
+ .show-empty:empty::before {
474
+ content: "—";
475
+ }
476
+
477
+ /**
478
+ * Stash's v-tooltip styles.
479
+ */
480
+
481
+ .tooltip {
482
+ --offset: 0;
483
+
484
+ background: var(--color-ice-900);
485
+ border-radius: theme('borderRadius.DEFAULT');
486
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
487
+ color: var(--color-white);
488
+ font-size: 0.75rem;
489
+ line-height: calc(16 / 12);
490
+ opacity: 0;
491
+ padding: theme('spacing.3');
492
+ pointer-events: none; /* Tooltips should disappear once the user hovers away */
493
+ position: absolute;
494
+ text-align: center;
495
+ transition: opacity theme('transitionDuration.150') theme('transitionTimingFunction.swing'), visibility theme('transitionDuration.150') theme('transitionTimingFunction.swing');
496
+ visibility: hidden;
497
+ white-space: normal;
498
+ width: 148px;
499
+
500
+ &::after {
501
+ background-color: var(--color-ice-900);
502
+ border-radius: 0 2px 0 0;
503
+ clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
504
+ content: '';
505
+ display: inline-block;
506
+ height: 12px;
507
+ position: absolute;
508
+ top: calc(-1 * theme('spacing[1.5]'));
509
+ transform: rotate(135deg);
510
+ z-index: theme('zIndex.behind');
511
+ width: 12px;
512
+ }
513
+
514
+ &--bottom,
515
+ &--top {
516
+ left: calc(50% + calc(var(--offset) * 1px));
517
+ transform: translateX(-50%);
518
+
519
+ &::after {
520
+ left: calc(#{$arrow-position-centered} + calc(var(--offset) * -1px));
521
+ }
522
+ }
523
+
524
+ &--bottom {
525
+ top: var(--tooltip-position);
526
+
527
+ &::after {
528
+ transform: rotate(-45deg);
529
+ }
530
+ }
531
+
532
+ &--top {
533
+ bottom: var(--tooltip-position);
534
+
535
+ &::after {
536
+ top: calc(100% - theme('spacing[1.5]'));
537
+ }
538
+ }
539
+
540
+ &--left,
541
+ &--right {
542
+ top: 50%;
543
+ transform: translateY(-50%);
544
+
545
+ &::after {
546
+ top: var(--arrow-position-centered);
547
+ }
548
+ }
549
+
550
+ &--left {
551
+ right: var(--tooltip-position);
552
+
553
+ &::after {
554
+ left: calc(100% - theme('spacing[1.5]'));
555
+ transform: rotate(45deg);
556
+ }
557
+ }
558
+
559
+ &--right {
560
+ left: var(--tooltip-position);
561
+
562
+ &::after {
563
+ left: calc(-1 * theme('spacing[1.5]'));
564
+ transform: rotate(-135deg);
565
+ }
566
+ }
567
+ }
568
+
569
+ .tooltip-toggle {
570
+ display: inline-block;
571
+ position: relative;
572
+ z-index: 0;
573
+
574
+ &:hover {
575
+ outline: none;
576
+ z-index: theme('zIndex.modal');
577
+
578
+ .tooltip {
579
+ opacity: 1;
580
+ visibility: visible;
581
+ }
582
+ }
583
+ }
584
+
585
+ /**
586
+ * Animations
587
+ *
588
+ * Todo: These should be moved to tailwind as custom animations.
589
+ */
590
+
591
+ @keyframes shake {
592
+ from,
593
+ to {
594
+ transform: translate3d(0, 0, 0);
595
+ }
596
+
597
+ 10%,
598
+ 30%,
599
+ 50%,
600
+ 70%,
601
+ 90% {
602
+ transform: translate3d(-10px, 0, 0);
603
+ }
604
+
605
+ 20%,
606
+ 40%,
607
+ 60%,
608
+ 80% {
609
+ transform: translate3d(10px, 0, 0);
610
+ }
611
+ }
612
+
613
+ .fx-shake {
614
+ animation: 2s shake 1;
615
+ }
616
+
617
+
618
+ @keyframes pulse {
619
+ from {
620
+ transform: scale3d(1, 1, 1);
621
+ }
622
+
623
+ 50% {
624
+ transform: scale3d(1.25, 1.25, 1.25);
625
+ }
626
+
627
+ to {
628
+ transform: scale3d(1, 1, 1);
629
+ }
630
+ }
631
+
632
+ .fx-pulse {
633
+ animation: 1s pulse;
634
+ }
635
+
636
+ @keyframes spin-loading {
637
+ 0% {
638
+ transform: rotate(0deg);
639
+ }
640
+
641
+ 65% {
642
+ transform: rotate(720deg);
643
+ }
644
+
645
+ 100% {
646
+ transform: rotate(720deg);
647
+ }
648
+ }
649
+
650
+ .fx-spin {
651
+ animation-duration: 1.5s;
652
+ animation-iteration-count: infinite;
653
+ animation-name: spin-loading;
654
+ animation-timing-function: ease-in-out;
655
+ }
656
+
657
+ @keyframes flash {
658
+ from {
659
+ opacity: 1;
660
+ }
661
+
662
+ 50% {
663
+ opacity: 0;
664
+ }
665
+
666
+ to {
667
+ opacity: 1;
668
+ }
669
+ }
670
+
671
+ .fx-flash {
672
+ animation: 0.5s flash;
673
+ }
674
+
675
+ /**
676
+ * Transitions
677
+ *
678
+ * Todo: These should be moved to tailwind as custom transitions.
679
+ * See: https://tailwindcss.com/docs/transition-property
680
+ */
681
+
682
+ .scale {
683
+ &-enter-active,
684
+ &-leave-active {
685
+ transition: theme('transitionDuration.300') theme('transitionTimingFunction.ease-in-out');
686
+ }
687
+
688
+ &-enter-from,
689
+ &-leave-from,
690
+ &-leave-to {
691
+ opacity: 0;
692
+ transform: scale(0);
693
+ }
694
+ }
695
+
696
+ .slide-y {
697
+ &-enter-active,
698
+ &-leave-active {
699
+ transition: theme('transitionDuration.150') theme('transitionTimingFunction.swing');
700
+ }
701
+
702
+ &-enter-from,
703
+ &-leave-to {
704
+ opacity: 0;
705
+ transform: translateY(-0.875rem);
706
+ }
707
+ }
708
+
709
+ .slide-x {
710
+ &-enter-active,
711
+ &-leave-active {
712
+ transition: theme('transitionDuration.150') theme('transitionTimingFunction.swing');
713
+ }
714
+
715
+ &-enter-from,
716
+ &-leave-to {
717
+ opacity: 0;
718
+ transform: translateX(-0.875rem);
719
+ }
720
+ }
721
+
722
+ .fade {
723
+ &-enter-active,
724
+ &-leave-active {
725
+ transition: opacity theme('transitionDuration.150') theme('transitionTimingFunction.swing');
726
+ }
727
+
728
+ &-enter-from,
729
+ &-leave-to {
730
+ opacity: 0;
731
+ }
732
+
733
+ &-enter-to {
734
+ opacity: 1;
735
+ }
736
+ }
737
+
738
+ .expand {
739
+ &-enter-active,
740
+ &-leave-active {
741
+ transition:
742
+ height theme('transitionDuration.300') theme('transitionTimingFunction.ease-in-out'),
743
+ opacity theme('transitionDuration.500') theme('transitionDuration.150'),
744
+ transform theme('transitionDuration.500') theme('transitionDuration.150');
745
+ }
746
+
747
+ &-enter-from,
748
+ &-leave-to {
749
+ height: 0;
750
+ opacity: 0;
751
+ transform: translateY(-0.875rem);
752
+ transition-delay: 0s;
753
+ }
754
+
755
+ &-leave-from,
756
+ &-enter-to {
757
+ height: auto;
758
+ opacity: 1;
759
+ transform: translateY(0);
760
+ }
761
+ }
762
+
763
+ .move {
764
+ &-move {
765
+ transition: transform theme('transitionDuration.150') theme('transitionTimingFunction.swing');
766
+ }
398
767
  }
@@ -15,7 +15,7 @@
15
15
  ---------------------------------------- */
16
16
 
17
17
  a {
18
- color: var(--color-blue);
18
+ color: var(--color-blue-500);
19
19
  font-weight: font-weight('medium');
20
20
  text-decoration: none;
21
21
 
@@ -1,17 +0,0 @@
1
- const t = "_button_1ocn8_2", o = {
2
- button: t,
3
- "button--solid": "_button--solid_1ocn8_36",
4
- "button--ghost": "_button--ghost_1ocn8_58",
5
- "button--primary": "_button--primary_1ocn8_81 _button--solid_1ocn8_36",
6
- "button--secondary": "_button--secondary_1ocn8_88 _button--ghost_1ocn8_58",
7
- "button--tertiary": "_button--tertiary_1ocn8_95 _button--ghost_1ocn8_58",
8
- "button--icon": "_button--icon_1ocn8_102",
9
- "button--iconLabel": "_button--iconLabel_1ocn8_103",
10
- "button--inline": "_button--inline_1ocn8_143",
11
- "button--blue": "_button--blue_1ocn8_161",
12
- "button--red": "_button--red_1ocn8_175"
13
- };
14
- export {
15
- o as s
16
- };
17
- //# sourceMappingURL=Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- const _ = "_pagination_kh7yl_2", i = "_prev_kh7yl_20", t = "_next_kh7yl_25", n = {
2
- pagination: _,
3
- prev: i,
4
- next: t,
5
- "is-active": "_is-active_kh7yl_38",
6
- "is-disabled": "_is-disabled_kh7yl_51"
7
- };
8
- export {
9
- n as s
10
- };
11
- //# sourceMappingURL=Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tab.vue_vue_type_script_setup_true_lang-b810bee8.js","sources":["../src/components/Tab/Tab.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, inject, nextTick, onMounted, toRefs } from 'vue';\n import { type RouteLocationRaw, type RouterLinkProps } from 'vue-router';\n\n import Badge from '../Badge/Badge.vue';\n import { TABS_INJECTION } from '../Tabs/Tabs.vue';\n\n /**\n * Allowed attributes for the `<a>` element when the `href` prop is used.\n */\n type AnchorAttrs = HTMLAnchorElement['download'] | HTMLAnchorElement['hreflang'] | HTMLAnchorElement['ping'] | HTMLAnchorElement['referrerPolicy'] | HTMLAnchorElement['rel'] | HTMLAnchorElement['target'] | HTMLAnchorElement['type'];\n\n export interface TabProps {\n /**\n * The tab identifier\n */\n value: string;\n\n /**\n * Router link `to` prop\n */\n to?: RouteLocationRaw;\n\n /**\n * Anchor tag href. Used for navigating to non-vue pages, such as Django pages in marketplace.\n */\n href?: string;\n\n /**\n * The badge's content\n */\n badge?: string | number;\n\n /**\n * Will render a plain text item if true.\n */\n disabled?: boolean\n\n /**\n * Props for the `<a>` element when the `href` prop is used\n */\n anchorProps?: Record<AnchorAttrs, string>;\n\n /**\n * Props for the `<RouterLink>` element when the `to` prop is used\n */\n routerLinkProps?: Omit<RouterLinkProps, 'to'>;\n }\n\n const props = defineProps<TabProps>();\n\n const tabsInjection = inject(TABS_INJECTION.key);\n\n if (!tabsInjection) {\n throw Error('The Tab component must be a child of the Tabs component.');\n }\n\n const { setActiveTab, activeTab, variant } = tabsInjection;\n\n const isTabActive = computed(() => {\n return props.value === activeTab.value;\n });\n\n const is = computed(() => {\n if (props.to) {\n return 'router-link';\n }\n\n if (props.href) {\n return 'a';\n }\n\n return 'button';\n });\n\n /**\n * Note: this click handler gets ignored when the `href` prop is used; `preventDefault()` is intentionally omitted in order to enable the `href` prop to work correctly. The `href` prop is used for navigation to non-vue pages, such as Django pages in marketplace.\n */\n function onClick(tabValue: string) {\n if (props.disabled) {\n return;\n }\n\n setActiveTab(tabValue);\n }\n\n const panelId = computed(() => `tabpanel-${props.value}`);\n\n onMounted(async () => {\n await nextTick();\n\n if (process.env.NODE_ENV !== 'test' && isTabActive.value && !document.getElementById(panelId.value)) {\n // The following warning ensures optimal accessibility is maintained when using the Tabs component. See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role#example\n console.warn(`The <Tab> with value \"${props.value}\" is active, but its corresponding tab panel cannot be found. Please ensure that the corresponding tab panel has an \"id\" attribute with value \"${panelId.value}\" and a \"role\" attribute with value \"tabpanel\".`);\n }\n });\n\n const dynamicComponentAttrs = computed(() => {\n if (props.to && props.routerLinkProps) {\n return toRefs(props.routerLinkProps);\n }\n\n if (props.href && props.anchorProps) {\n return toRefs(props.anchorProps);\n }\n\n return {};\n });\n</script>\n\n<template>\n <li\n :id=\"`tab-${props.value}`\"\n role=\"tab\"\n :aria-selected=\"isTabActive\"\n :aria-controls=\"panelId\"\n :aria-disabled=\"props.disabled\"\n class=\"stash-tab\"\n :class=\"[\n {\n 'stash-tab--active is-active': isTabActive,\n 'stash-tab--disabled': props.disabled,\n 'stash-tab--variant-line': variant === 'line',\n 'stash-tab--variant-enclosed': variant === 'enclosed',\n },\n ]\"\n @click=\"onClick(props.value)\"\n @keypress.enter=\"onClick(props.value)\"\n >\n <component\n v-bind=\"dynamicComponentAttrs\"\n :is=\"is\"\n :to=\"props.to\"\n :href=\"props.href\"\n class=\"\n tw-font-medium tw-text-sm tw-border-solid tw-py-1.5 tw-flex tw-items-center tw-justify-center tw-cursor-pointer\n hover:tw-no-underline\n tw-whitespace-nowrap\n \"\n :class=\"[\n {\n 'tw-border-b-2': variant === 'line',\n 'tw-px-6 tw-border-t-4': variant === 'enclosed',\n 'tw-rounded-t tw-bg-white': isTabActive && variant === 'enclosed',\n 'focus:tw-no-underline': props.href,\n 'tw-pointer-events-none tw-text-ice-500': props.disabled,\n 'tw-text-ice-700': !props.disabled && !isTabActive,\n },\n [\n isTabActive\n ? 'tw-border-blue-500 tw-text-blue-500'\n : 'tw-border-transparent hover:tw-text-blue-500 focus:tw-text-blue-500',\n ],\n ]\"\n :tabindex=\"props.disabled ? -1 : 0\"\n >\n <!-- The margin-top on the <div> below is necessary to fix the vertical alignment of text in the default slot since our Sofia font has extra space under the baseline -->\n <div class=\"tw-mt-0.5\">\n <Badge :content=\"props.badge\" position=\"inline\" color=\"red\" :is-disabled=\"props.disabled\">\n <slot :is-active=\"isTabActive\" :is-disabled=\"props.disabled\" :variant=\"variant\"></slot>\n </Badge>\n </div>\n </component>\n </li>\n</template>\n"],"names":["tabsInjection","inject","TABS_INJECTION","setActiveTab","activeTab","variant","isTabActive","computed","props","is","onClick","tabValue","panelId","onMounted","nextTick","dynamicComponentAttrs","toRefs"],"mappings":";;;;;;;;;;;;;;;iBAmDQA,IAAgBC,EAAOC,EAAe,GAAG;AAE/C,QAAI,CAACF;AACH,YAAM,MAAM,0DAA0D;AAGxE,UAAM,EAAE,cAAAG,GAAc,WAAAC,GAAW,SAAAC,EAAA,IAAYL,GAEvCM,IAAcC,EAAS,MACpBC,EAAM,UAAUJ,EAAU,KAClC,GAEKK,IAAKF,EAAS,MACdC,EAAM,KACD,gBAGLA,EAAM,OACD,MAGF,QACR;AAKD,aAASE,EAAQC,GAAkB;AACjC,MAAIH,EAAM,YAIVL,EAAaQ,CAAQ;AAAA,IACvB;AAEA,UAAMC,IAAUL,EAAS,MAAM,YAAYC,EAAM,KAAK,EAAE;AAExD,IAAAK,EAAU,YAAY;AACpB,YAAMC,EAAS,GAEX,QAAQ,IAAI,aAAa,UAAUR,EAAY,SAAS,CAAC,SAAS,eAAeM,EAAQ,KAAK,KAEhG,QAAQ,KAAK,yBAAyBJ,EAAM,KAAK,kJAAkJI,EAAQ,KAAK,iDAAiD;AAAA,IACnQ,CACD;AAEK,UAAAG,IAAwBR,EAAS,MACjCC,EAAM,MAAMA,EAAM,kBACbQ,EAAOR,EAAM,eAAe,IAGjCA,EAAM,QAAQA,EAAM,cACfQ,EAAOR,EAAM,WAAW,IAG1B,EACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +0,0 @@
1
- /**
2
-
3
- Components: specific UI components. This is where majority
4
- of our work takes place.
5
-
6
- Note: ideally (ie. eventually) this layer should
7
- be auto-generated by code from each Vue component.
8
-
9
- */
10
-
11
- @import 'box';
12
- @import 'item-list';
13
- @import 'sidebar';
14
- @import 'top-header';
@@ -1,13 +0,0 @@
1
- /**
2
- * Box: Emulated "ibox" style, from olden days. DEPRECATED!
3
- *
4
- * @deprecated rather than using the global .box class, please use the Box` component instead.
5
- */
6
-
7
- .box {
8
- @include elevation('low');
9
-
10
- background: var(--color-white);
11
- border-radius: $border-radius;
12
- padding: space(3) var(--grid-gutter);
13
- }
@@ -1,78 +0,0 @@
1
- /**
2
-
3
- Item List. (Item List?? This name is temporary)
4
-
5
- Styles to support lists of "items". These are generic items, the
6
- only distinguishing feature -- what makes it distinct from <table> --
7
- is that these "lists" are not tabular data. Tables, by contrast, are
8
- more for displaying large amounts of _data_ (ie. what is more
9
- prevalent on Reports pages, etc).
10
-
11
-
12
- examples:
13
- * Products in the Inventory,
14
- * Customers List
15
- * Items in an Order
16
- * Service items (on Browse Services)
17
- * Clients in the Contact List
18
-
19
-
20
- ◡◠ ✥ ◠◡
21
-
22
- Table of Contents:
23
-
24
- • Item List
25
-
26
- */
27
-
28
- /* ---------------------------------------
29
- Item List
30
- ---------------------------------------- */
31
- $border: border(thin, var(--color-ice));
32
-
33
- .item-list {
34
- border-bottom: $border;
35
- border-top: $border;
36
- margin-left: calc(var(--grid-gutter) * -1);
37
- margin-right: calc(var(--grid-gutter) * -1);
38
- min-width: 100%;
39
-
40
- &__header {
41
- background: var(--color-ice-200);
42
- border-bottom: $border;
43
- border-top-left-radius: $border-radius;
44
- border-top-right-radius: $border-radius;
45
- color: var(--color-ice-900);
46
- font-weight: 500;
47
- overflow: hidden;
48
- padding: space(2);
49
- }
50
-
51
- &__content {
52
- border-bottom-left-radius: $border-radius;
53
- border-bottom-right-radius: $border-radius;
54
- }
55
-
56
- &__row {
57
- background: var(--color-white);
58
- border-bottom: $border;
59
- padding: space(2);
60
-
61
- &:last-child {
62
- border-bottom: 0;
63
- border-bottom-left-radius: $border-radius;
64
- border-bottom-right-radius: $border-radius;
65
- }
66
- }
67
-
68
- @include breakpoint('md') {
69
- border: $border;
70
- border-radius: $border-radius;
71
- margin: 0;
72
-
73
- &__header,
74
- &__row {
75
- padding: space(1) space(2);
76
- }
77
- }
78
- }