@depict-ai/react-ui 2.1.10 → 2.1.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 (48) hide show
  1. package/ES10/index.cjs +9 -3
  2. package/ES10/index.d.ts +9 -3
  3. package/ES10/index.js +9 -3
  4. package/dist/styles/plain-css-fallback-styling.css +1 -1
  5. package/latest/index.cjs +9 -3
  6. package/latest/index.d.ts +9 -3
  7. package/latest/index.js +9 -3
  8. package/package.json +6 -6
  9. package/server/ES10/index.cjs +18 -15
  10. package/server/ES10/index.d.ts +9 -3
  11. package/server/ES10/index.js +18 -15
  12. package/server/latest/index.cjs +17 -14
  13. package/server/latest/index.d.ts +9 -3
  14. package/server/latest/index.js +17 -14
  15. package/dist/main.js +0 -527
  16. package/dist/module.js +0 -510
  17. package/dist/styles/components/PLP/Buttons.scss +0 -181
  18. package/dist/styles/components/PLP/MorphingSign.scss +0 -30
  19. package/dist/styles/components/PLP/PLPResults.scss +0 -26
  20. package/dist/styles/components/PLP/ProductListingPage.scss +0 -168
  21. package/dist/styles/components/PLP/ScrollStatus.scss +0 -31
  22. package/dist/styles/components/PLP/SelectedFilters.scss +0 -82
  23. package/dist/styles/components/PLP/SlidableItems.scss +0 -121
  24. package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +0 -84
  25. package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +0 -800
  26. package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +0 -158
  27. package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +0 -152
  28. package/dist/styles/components/PLP/Toast.scss +0 -59
  29. package/dist/styles/components/PLP/index.scss +0 -51
  30. package/dist/styles/components/category/BreadCrumbs.scss +0 -32
  31. package/dist/styles/components/category/CategoryTitle.scss +0 -40
  32. package/dist/styles/components/category/QuickLinks.scss +0 -80
  33. package/dist/styles/components/category/index.scss +0 -23
  34. package/dist/styles/components/search/Autocomplete.scss +0 -197
  35. package/dist/styles/components/search/CategorySuggestions.scss +0 -82
  36. package/dist/styles/components/search/InstantCard.scss +0 -122
  37. package/dist/styles/components/search/InstantResults.scss +0 -12
  38. package/dist/styles/components/search/PreviousSearches.scss +0 -90
  39. package/dist/styles/components/search/QueryInput.scss +0 -189
  40. package/dist/styles/components/search/SearchModal.scss +0 -101
  41. package/dist/styles/components/search/SearchRecommendations.scss +0 -28
  42. package/dist/styles/components/search/ShowingResultsFor.scss +0 -13
  43. package/dist/styles/components/search/index.scss +0 -40
  44. package/dist/styles/default.css +0 -1
  45. package/dist/styles/helpers/custom_input.scss +0 -194
  46. package/dist/styles/helpers/supports-hover.scss +0 -7
  47. package/dist/styles/helpers/utils.scss +0 -90
  48. package/dist/styles/variables.scss +0 -61
@@ -1,84 +0,0 @@
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
- /// @param {Color} $button-background [variables.$brand-lighter-grey] - The background color of the buttons.
6
- /// @param {Color} $hovered-button-background [variables.$brand-lightest-grey] - The background color of the buttons when hovered.
7
- /// @param {Color} $button-border-color [variables.$brand-black] - The border color of the buttons.
8
- /// @param {Color} $icon-color [variables.$brand-dark-grey] - The color of the icons.
9
- /// @param {Number with unit} $bottom-distance [12px] - The distance from the bottom of the buttons to the bottom of the screen.
10
- /// @param {Number with unit} $side-distance [12px] - The distance from the `$position`-side of the buttons to the `$position`-side of the screen.
11
- /// @param {"left" | "right"} $position [left] - The side of the screen the buttons should be aligned to.
12
-
13
- @mixin FloatingButtons(
14
- $button-background: variables.$brand-lighter-grey,
15
- $hovered-button-background: variables.$brand-lightest-grey,
16
- $button-border-color: variables.$brand-black,
17
- $icon-color: variables.$brand-dark-grey,
18
- $bottom-distance: 12px,
19
- $side-distance: 12px,
20
- $position: "left" // "left" or "right"
21
- ) {
22
- .floating-buttons {
23
- position: sticky;
24
- bottom: $bottom-distance;
25
- display: flex;
26
- z-index: calc(#{variables.$base-z-index} + 4);
27
- align-items: center;
28
- opacity: 0;
29
- transition-timing-function: ease-in-out;
30
- transition-duration: 300ms;
31
- @if $position== "left" {
32
- padding-left: $side-distance;
33
- justify-content: flex-start;
34
- } @else if $position== "right" {
35
- padding-right: $side-distance;
36
- justify-content: flex-end;
37
- }
38
- &:not(.show-them) {
39
- pointer-events: none;
40
- }
41
- &.show-them {
42
- opacity: 1;
43
- }
44
- .filter {
45
- margin-right: 5px;
46
- }
47
-
48
- .sort {
49
- margin-left: 5px;
50
- margin-right: 5px;
51
- }
52
-
53
- .up {
54
- margin-left: 5px;
55
- }
56
-
57
- .sort,
58
- .filter,
59
- .up {
60
- background: $button-background;
61
- filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1)) drop-shadow(-2px -2px 4px rgba(255, 255, 255, 0.3));
62
- border: 1px solid $button-border-color;
63
- border-radius: 20px;
64
- padding: 10px;
65
- @include supports-hover.supports-hover() {
66
- &:hover {
67
- background: $hovered-button-background;
68
- }
69
- }
70
- &:focus {
71
- outline: none;
72
- }
73
- &:focus-visible {
74
- background: $hovered-button-background;
75
- }
76
- div {
77
- display: flex;
78
- }
79
- svg path {
80
- fill: $icon-color;
81
- }
82
- }
83
- }
84
- }