@depict-ai/react-ui 0.0.79 → 0.0.80

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 (42) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/main.js +1 -1
  3. package/dist/module.js +1 -1
  4. package/dist/styles/components/PLP/Buttons.scss +152 -0
  5. package/dist/styles/components/PLP/MorphingSign.scss +32 -0
  6. package/dist/styles/components/PLP/PLPResults.scss +27 -0
  7. package/dist/styles/components/PLP/ProductListingPage.scss +165 -0
  8. package/dist/styles/components/PLP/ScrollStatus.scss +28 -0
  9. package/dist/styles/components/PLP/SelectedFilters.scss +81 -0
  10. package/dist/styles/components/PLP/SlidableItems.scss +118 -0
  11. package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +76 -0
  12. package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +816 -0
  13. package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +157 -0
  14. package/dist/styles/components/PLP/Toast.scss +61 -0
  15. package/dist/styles/components/PLP/index.scss +15 -0
  16. package/dist/styles/components/category/BreadCrumbs.scss +25 -0
  17. package/dist/styles/components/category/CategoryTitle.scss +33 -0
  18. package/dist/styles/components/category/QuickLinks.scss +57 -0
  19. package/dist/styles/components/category/index.scss +7 -0
  20. package/dist/styles/components/search/Autocomplete.scss +182 -0
  21. package/dist/styles/components/search/CategorySuggestions.scss +53 -0
  22. package/dist/styles/components/search/InstantCard.scss +119 -0
  23. package/dist/styles/components/search/InstantResults.scss +12 -0
  24. package/dist/styles/components/search/PreviousSearches.scss +83 -0
  25. package/dist/styles/components/search/SearchField.scss +160 -0
  26. package/dist/styles/components/search/SearchModal.scss +86 -0
  27. package/dist/styles/components/search/SearchRecommendations.scss +28 -0
  28. package/dist/styles/components/search/ShowingResultsFor.scss +7 -0
  29. package/dist/styles/components/search/index.scss +12 -0
  30. package/dist/styles/{plain-css-fallback-styling.css → default.css} +1 -1
  31. package/dist/styles/helpers/color_inference.scss +112 -0
  32. package/dist/styles/helpers/custom_input.scss +194 -0
  33. package/dist/styles/helpers/supports-hover.scss +7 -0
  34. package/dist/styles/helpers/utils.scss +110 -0
  35. package/dist/styles/index.scss +57 -1
  36. package/dist/styles/package.json +31 -0
  37. package/dist/styles/variables.scss +312 -0
  38. package/dist-server/index.d.ts +1 -1
  39. package/dist-server/main.js +1 -1
  40. package/dist-server/module.js +1 -1
  41. package/package.json +11 -18
  42. package/README.md +0 -3
@@ -0,0 +1,76 @@
1
+ @use "../../../variables";
2
+ @use "../../../helpers/supports-hover";
3
+
4
+ /// Styles the FloatingButtons. FloatingButtons are three buttons, one button to open sorting, one button to open filters and one button to scroll to the top that show up when scrolling upwards for a while on a mobile device not really close to the top of the page.
5
+
6
+ @mixin FloatingButtons() {
7
+ .floating-buttons {
8
+ position: sticky;
9
+ bottom: variables.get-merged(variables.$floating-buttons-defaults, variables.$floating-buttons, "bottom-distance");
10
+ display: flex;
11
+ z-index: calc(#{variables.$base-z-index} + 4);
12
+ align-items: center;
13
+ opacity: 0;
14
+ transition-timing-function: ease-in-out;
15
+ transition-duration: 300ms;
16
+ $position: variables.get-merged(variables.$floating-buttons-defaults, variables.$floating-buttons, "position");
17
+ $side-distance: variables.get-merged(
18
+ variables.$floating-buttons-defaults,
19
+ variables.$floating-buttons,
20
+ "side-distance"
21
+ );
22
+
23
+ @if $position == "left" {
24
+ padding-left: $side-distance;
25
+ justify-content: flex-start;
26
+ } @else if $position == "right" {
27
+ padding-right: $side-distance;
28
+ justify-content: flex-end;
29
+ }
30
+ &:not(.show-them) {
31
+ pointer-events: none;
32
+ }
33
+ &.show-them {
34
+ opacity: 1;
35
+ }
36
+ .filter {
37
+ margin-right: 5px;
38
+ }
39
+
40
+ .sort {
41
+ margin-left: 5px;
42
+ margin-right: 5px;
43
+ }
44
+
45
+ .up {
46
+ margin-left: 5px;
47
+ }
48
+
49
+ .sort,
50
+ .filter,
51
+ .up {
52
+ background: variables.get-background-color("subtle", "default");
53
+ filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1)) drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.3));
54
+ border: 1px solid variables.get-border-color("base", "default");
55
+ border-radius: 20px;
56
+ padding: 10px;
57
+ @include supports-hover.supports-hover() {
58
+ &:hover {
59
+ background: variables.get-background-color("subtle", "hover");
60
+ }
61
+ }
62
+ &:focus {
63
+ outline: none;
64
+ }
65
+ &:focus-visible {
66
+ background: variables.get-background-color("subtle", "hover");
67
+ }
68
+ div {
69
+ display: flex;
70
+ }
71
+ svg path {
72
+ fill: variables.get-text-icon-color("neutral", "default");
73
+ }
74
+ }
75
+ }
76
+ }