@depict-ai/react-ui 0.0.10 → 0.0.12

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 (35) hide show
  1. package/dist/main.js +19 -20
  2. package/dist/module.js +19 -20
  3. package/dist/styles/components/PLP/Buttons.scss +124 -0
  4. package/dist/styles/components/PLP/MorphingSign.scss +31 -0
  5. package/dist/styles/components/PLP/PLPResults.scss +20 -0
  6. package/dist/styles/components/PLP/ProductListingPage.scss +142 -0
  7. package/dist/styles/components/PLP/ScrollStatus.scss +24 -0
  8. package/dist/styles/components/PLP/SelectedFilters.scss +74 -0
  9. package/dist/styles/components/PLP/SlidableItems.scss +99 -0
  10. package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +75 -0
  11. package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +728 -0
  12. package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +160 -0
  13. package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +148 -0
  14. package/dist/styles/components/PLP/Toast.scss +54 -0
  15. package/dist/styles/components/PLP/index.scss +45 -0
  16. package/dist/styles/components/category/BreadCrumbs.scss +23 -0
  17. package/dist/styles/components/category/CategoryTitle.scss +28 -0
  18. package/dist/styles/components/category/QuickLinks.scss +71 -0
  19. package/dist/styles/components/category/index.scss +23 -0
  20. package/dist/styles/components/search/Autocomplete.scss +117 -0
  21. package/dist/styles/components/search/CategorySuggestions.scss +74 -0
  22. package/dist/styles/components/search/InstantCard.scss +94 -0
  23. package/dist/styles/components/search/InstantResults.scss +10 -0
  24. package/dist/styles/components/search/PreviousSearches.scss +77 -0
  25. package/dist/styles/components/search/QueryInput.scss +167 -0
  26. package/dist/styles/components/search/SearchModal.scss +90 -0
  27. package/dist/styles/components/search/SearchRecommendations.scss +25 -0
  28. package/dist/styles/components/search/ShowingResultsFor.scss +10 -0
  29. package/dist/styles/components/search/index.scss +40 -0
  30. package/dist/{styling → styles}/default.css +0 -0
  31. package/dist/styles/helpers/custom_input.scss +162 -0
  32. package/dist/styles/helpers/supports-hover.scss +5 -0
  33. package/dist/styles/helpers/utils.scss +82 -0
  34. package/dist/styles/variables.scss +10 -0
  35. package/package.json +8 -8
@@ -0,0 +1,75 @@
1
+ @use "../../../variables";
2
+ @use "../../../helpers/supports-hover";
3
+
4
+ @mixin FloatingButtons(
5
+ $button-background: variables.$brand-lighter-grey,
6
+ $hovered-button-background: variables.$brand-lightest-grey,
7
+ $button-border-color: variables.$brand-black,
8
+ $icon-color: variables.$brand-dark-grey,
9
+ $bottom-distance: 12px,
10
+ $side-distance: 12px,
11
+ $position: "left" // "left" or "right"
12
+ ) {
13
+ .floating_buttons {
14
+ position: sticky;
15
+ bottom: $bottom-distance;
16
+ display: flex;
17
+ z-index: calc(#{variables.$base-z-index} + 4);
18
+ align-items: center;
19
+ opacity: 0;
20
+ transition-timing-function: ease-in-out;
21
+ transition-duration: 300ms;
22
+ @if $position== "left" {
23
+ padding-left: $side-distance;
24
+ justify-content: flex-start;
25
+ } @else if $position== "right" {
26
+ padding-right: $side-distance;
27
+ justify-content: flex-end;
28
+ }
29
+ &:not(.show_them) {
30
+ pointer-events: none;
31
+ }
32
+ &.show_them {
33
+ opacity: 1;
34
+ }
35
+ .filter {
36
+ margin-right: 5px;
37
+ }
38
+
39
+ .sort {
40
+ margin-left: 5px;
41
+ margin-right: 5px;
42
+ }
43
+
44
+ .up {
45
+ margin-left: 5px;
46
+ }
47
+
48
+ .sort,
49
+ .filter,
50
+ .up {
51
+ background: $button-background;
52
+ filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1)) drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.3));
53
+ border: 1px solid $button-border-color;
54
+ border-radius: 20px;
55
+ padding: 10px;
56
+ @include supports-hover.supports-hover() {
57
+ &:hover {
58
+ background: $hovered-button-background;
59
+ }
60
+ }
61
+ &:focus {
62
+ outline: none;
63
+ }
64
+ &:focus-visible {
65
+ background: $hovered-button-background;
66
+ }
67
+ div {
68
+ display: flex;
69
+ }
70
+ svg path {
71
+ fill: $icon-color;
72
+ }
73
+ }
74
+ }
75
+ }