@depict-ai/react-ui 2.1.7 → 2.1.9
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.
- package/ES10/index.cjs +1 -1
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +1 -1
- package/dist/main.js +527 -0
- package/dist/module.js +510 -0
- package/dist/styles/components/PLP/Buttons.scss +181 -0
- package/dist/styles/components/PLP/MorphingSign.scss +30 -0
- package/dist/styles/components/PLP/PLPResults.scss +26 -0
- package/dist/styles/components/PLP/ProductListingPage.scss +168 -0
- package/dist/styles/components/PLP/ScrollStatus.scss +31 -0
- package/dist/styles/components/PLP/SelectedFilters.scss +82 -0
- package/dist/styles/components/PLP/SlidableItems.scss +121 -0
- package/dist/styles/components/PLP/SortAndFilter/FloatingButtons.scss +84 -0
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilter.scss +800 -0
- package/dist/styles/components/PLP/SortAndFilter/SortAndFilterModal.scss +158 -0
- package/dist/styles/components/PLP/SortAndFilter/WhiteSortAndFilter.scss +152 -0
- package/dist/styles/components/PLP/Toast.scss +59 -0
- package/dist/styles/components/PLP/index.scss +51 -0
- package/dist/styles/components/category/BreadCrumbs.scss +32 -0
- package/dist/styles/components/category/CategoryTitle.scss +40 -0
- package/dist/styles/components/category/QuickLinks.scss +80 -0
- package/dist/styles/components/category/index.scss +23 -0
- package/dist/styles/components/search/Autocomplete.scss +197 -0
- package/dist/styles/components/search/CategorySuggestions.scss +82 -0
- package/dist/styles/components/search/InstantCard.scss +122 -0
- package/dist/styles/components/search/InstantResults.scss +12 -0
- package/dist/styles/components/search/PreviousSearches.scss +90 -0
- package/dist/styles/components/search/QueryInput.scss +189 -0
- package/dist/styles/components/search/SearchModal.scss +101 -0
- package/dist/styles/components/search/SearchRecommendations.scss +28 -0
- package/dist/styles/components/search/ShowingResultsFor.scss +13 -0
- package/dist/styles/components/search/index.scss +40 -0
- package/dist/styles/default.css +1 -0
- package/dist/styles/helpers/custom_input.scss +194 -0
- package/dist/styles/helpers/supports-hover.scss +7 -0
- package/dist/styles/helpers/utils.scss +90 -0
- package/dist/styles/plain-css-fallback-styling.css +1 -1
- package/dist/styles/variables.scss +61 -0
- package/latest/index.cjs +1 -1
- package/latest/index.d.ts +1 -1
- package/latest/index.js +1 -1
- package/package.json +4 -4
- package/server/ES10/index.cjs +1 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +1 -1
- package/server/latest/index.cjs +1 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
}
|