@prijsvrijtechsupport/ui 0.0.29 → 0.0.31
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/dist/components/button/styles.css +3 -0
- package/dist/components/counterIcon/index.d.ts +4 -1
- package/dist/components/rangeSlider/RangeSlider.stories.d.ts +17 -0
- package/dist/components/rangeSlider/index.d.ts +16 -0
- package/dist/components/rangeSlider/rangeSlider.test.d.ts +1 -0
- package/dist/components/topHeaderMenu/index.d.ts +2 -1
- package/dist/components/weather/Weather.stories.d.ts +1 -0
- package/dist/components/weather/icons/cloud_01.d.ts +2 -0
- package/dist/components/weather/icons/cloud_02.d.ts +2 -0
- package/dist/components/weather/icons/cloud_03.d.ts +2 -0
- package/dist/components/weather/icons/cloud_lightning.d.ts +2 -0
- package/dist/components/weather/icons/cloud_moon.d.ts +2 -0
- package/dist/components/weather/icons/cloud_off.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_01.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_02.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_03.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_04.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_05.d.ts +2 -0
- package/dist/components/weather/icons/cloud_raining_06.d.ts +2 -0
- package/dist/components/weather/icons/cloud_snowing_01.d.ts +2 -0
- package/dist/components/weather/icons/cloud_snowing_02.d.ts +2 -0
- package/dist/components/weather/icons/cloud_sun_01.d.ts +2 -0
- package/dist/components/weather/icons/cloud_sun_02.d.ts +2 -0
- package/dist/components/weather/icons/cloud_sun_03.d.ts +2 -0
- package/dist/components/weather/icons/droplets_01.d.ts +2 -0
- package/dist/components/weather/icons/droplets_02.d.ts +2 -0
- package/dist/components/weather/icons/droplets_03.d.ts +2 -0
- package/dist/components/weather/icons/hurricane_01.d.ts +2 -0
- package/dist/components/weather/icons/hurricane_02.d.ts +2 -0
- package/dist/components/weather/icons/hurricane_03.d.ts +2 -0
- package/dist/components/weather/icons/lightning_01.d.ts +2 -0
- package/dist/components/weather/icons/lightning_02.d.ts +2 -0
- package/dist/components/weather/icons/moon_01.d.ts +2 -0
- package/dist/components/weather/icons/moon_02.d.ts +2 -0
- package/dist/components/weather/icons/moon_eclipse.d.ts +2 -0
- package/dist/components/weather/icons/moon_star.d.ts +2 -0
- package/dist/components/weather/icons/snowflake_01.d.ts +2 -0
- package/dist/components/weather/icons/snowflake_02.d.ts +2 -0
- package/dist/components/weather/icons/stars_01.d.ts +2 -0
- package/dist/components/weather/icons/stars_02.d.ts +2 -0
- package/dist/components/weather/icons/stars_03.d.ts +2 -0
- package/dist/components/weather/icons/sun.d.ts +2 -0
- package/dist/components/weather/icons/sun_setting_01.d.ts +2 -0
- package/dist/components/weather/icons/sun_setting_02.d.ts +2 -0
- package/dist/components/weather/icons/sun_setting_03.d.ts +2 -0
- package/dist/components/weather/icons/sunrise.d.ts +2 -0
- package/dist/components/weather/icons/sunset.d.ts +2 -0
- package/dist/components/weather/icons/thermometer_01.d.ts +2 -0
- package/dist/components/weather/icons/thermometer_02.d.ts +2 -0
- package/dist/components/weather/icons/thermometer_03.d.ts +2 -0
- package/dist/components/weather/icons/thermometer_cold.d.ts +2 -0
- package/dist/components/weather/icons/thermometer_warm.d.ts +2 -0
- package/dist/components/weather/icons/umbrella_01.d.ts +2 -0
- package/dist/components/weather/icons/umbrella_02.d.ts +2 -0
- package/dist/components/weather/icons/umbrella_03.d.ts +2 -0
- package/dist/components/weather/icons/waves.d.ts +2 -0
- package/dist/components/weather/icons/wind_01.d.ts +2 -0
- package/dist/components/weather/icons/wind_02.d.ts +2 -0
- package/dist/components/weather/icons/wind_03.d.ts +2 -0
- package/dist/components/weather/index.d.ts +10 -1
- package/dist/components/weather/weather.test.d.ts +1 -0
- package/dist/dist/index.css +185 -0
- package/dist/dist/index.css.map +1 -1
- package/dist/globals.css +182 -0
- package/dist/index.cjs +267 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +267 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -45,6 +45,9 @@ button.btn-secondary:hover:active {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* Button primary variant with CSS custom properties */
|
|
48
|
+
.btn-glow:hover {
|
|
49
|
+
background-color: var(--primary-btn-hover-color);
|
|
50
|
+
}
|
|
48
51
|
.btn-primary {
|
|
49
52
|
background-color: var(--primary-btn-color);
|
|
50
53
|
border-color: transparent;
|
|
@@ -5,6 +5,9 @@ interface DividerProps {
|
|
|
5
5
|
count: number;
|
|
6
6
|
allowZero?: boolean;
|
|
7
7
|
onClick?: () => void;
|
|
8
|
+
id?: string;
|
|
9
|
+
isPop?: boolean;
|
|
10
|
+
isFilled?: boolean;
|
|
8
11
|
}
|
|
9
|
-
export declare const CounterIcon: ({ className, icon, count, allowZero, onClick, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const CounterIcon: ({ className, icon, id, count, allowZero, onClick, isPop, isFilled, ...props }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { RangeSlider } from "./index";
|
|
3
|
+
declare const meta: Meta<typeof RangeSlider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RangeSlider>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithValue: Story;
|
|
8
|
+
export declare const PrimaryVariant: Story;
|
|
9
|
+
export declare const SecondaryVariant: Story;
|
|
10
|
+
export declare const SmallSize: Story;
|
|
11
|
+
export declare const LargeSize: Story;
|
|
12
|
+
export declare const Disabled: Story;
|
|
13
|
+
export declare const CustomRange: Story;
|
|
14
|
+
export declare const PriceRange: Story;
|
|
15
|
+
export declare const Interactive: Story;
|
|
16
|
+
export declare const AllVariants: Story;
|
|
17
|
+
export declare const AllSizes: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface RangeSliderProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "className" | "onChange" | "size"> {
|
|
2
|
+
"data-testid"?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
value?: number;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
step?: number;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onChange?: (value: number) => void;
|
|
11
|
+
variant?: "default" | "primary" | "secondary";
|
|
12
|
+
size?: "sm" | "md" | "lg";
|
|
13
|
+
showValue?: boolean;
|
|
14
|
+
valueFormatter?: (value: number) => string;
|
|
15
|
+
}
|
|
16
|
+
export declare const RangeSlider: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,7 @@ interface TopHeaderMenuProps {
|
|
|
3
3
|
"data-testid"?: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
menuItems?: React.ReactNode[];
|
|
6
|
+
onHeartClick?: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare const TopHeaderMenu: ({ className, menuItems, ...props }: TopHeaderMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const TopHeaderMenu: ({ className, menuItems, onHeartClick, ...props }: TopHeaderMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
interface WeatherItem {
|
|
2
|
+
icon: React.ReactNode;
|
|
3
|
+
temperature: string;
|
|
4
|
+
temperature_percent: number;
|
|
5
|
+
month: number;
|
|
6
|
+
}
|
|
1
7
|
interface WeatherProps {
|
|
2
8
|
"data-testid"?: string;
|
|
3
9
|
className?: string;
|
|
10
|
+
weatherItems: WeatherItem[];
|
|
11
|
+
title: string;
|
|
12
|
+
direction?: 'horizontal' | 'vertical';
|
|
4
13
|
}
|
|
5
|
-
export declare const Weather: ({ className, ...props }: WeatherProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const Weather: ({ className, weatherItems, title, direction, ...props }: WeatherProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/dist/index.css
CHANGED
|
@@ -378,6 +378,9 @@ button.btn-secondary:hover:active {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
/* Button primary variant with CSS custom properties */
|
|
381
|
+
.btn-glow:hover {
|
|
382
|
+
background-color: var(--primary-btn-hover-color);
|
|
383
|
+
}
|
|
381
384
|
.btn-primary {
|
|
382
385
|
background-color: var(--primary-btn-color);
|
|
383
386
|
border-color: transparent;
|
|
@@ -1424,6 +1427,44 @@ button.btn-secondary:hover:active {
|
|
|
1424
1427
|
}
|
|
1425
1428
|
}
|
|
1426
1429
|
|
|
1430
|
+
@keyframes flyToTarget {
|
|
1431
|
+
0% {
|
|
1432
|
+
transform: translate(0, 0) scale(1);
|
|
1433
|
+
opacity: 1;
|
|
1434
|
+
}
|
|
1435
|
+
20% {
|
|
1436
|
+
transform: translate(0, 0) scale(1.2);
|
|
1437
|
+
opacity: 1;
|
|
1438
|
+
}
|
|
1439
|
+
100% {
|
|
1440
|
+
transform: translate(
|
|
1441
|
+
calc(var(--end-x) - var(--start-x)),
|
|
1442
|
+
calc(var(--end-y) - var(--start-y))
|
|
1443
|
+
) scale(0.9);
|
|
1444
|
+
opacity: 1;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
@keyframes popEffect {
|
|
1449
|
+
0% {
|
|
1450
|
+
transform: scale(1);
|
|
1451
|
+
}
|
|
1452
|
+
50% {
|
|
1453
|
+
transform: scale(1.3);
|
|
1454
|
+
}
|
|
1455
|
+
100% {
|
|
1456
|
+
transform: scale(1);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
.flying-heart-icon {
|
|
1461
|
+
animation: flyToTarget 1s cubic-bezier(0.25, -0.3, 0.75, 1.1) forwards;
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
.counter-icon-pop {
|
|
1465
|
+
animation: popEffect 0.3s ease-out;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1427
1468
|
.tiptap {
|
|
1428
1469
|
:first-child {
|
|
1429
1470
|
margin-top: 0;
|
|
@@ -2003,5 +2044,149 @@ button.btn-secondary:hover:active {
|
|
|
2003
2044
|
--popup-title-font-family: var(--font-lato), sans-serif;
|
|
2004
2045
|
}
|
|
2005
2046
|
|
|
2047
|
+
/* Custom Range Slider Styles */
|
|
2048
|
+
.range-slider {
|
|
2049
|
+
-webkit-appearance: none;
|
|
2050
|
+
appearance: none;
|
|
2051
|
+
background: transparent;
|
|
2052
|
+
cursor: pointer;
|
|
2053
|
+
position: relative;
|
|
2054
|
+
z-index: 10;
|
|
2055
|
+
height: 16px; /* Match thumb height for proper alignment */
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
/* Track styles - Webkit browsers - DEFAULT (md) */
|
|
2059
|
+
.range-slider::-webkit-slider-track {
|
|
2060
|
+
background: transparent;
|
|
2061
|
+
height: 8px;
|
|
2062
|
+
border-radius: 9999px;
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
/* Track styles - Firefox - DEFAULT (md) */
|
|
2066
|
+
.range-slider::-moz-range-track {
|
|
2067
|
+
background: transparent;
|
|
2068
|
+
height: 8px;
|
|
2069
|
+
border-radius: 9999px;
|
|
2070
|
+
border: none;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
/* Thumb styles - Webkit browsers - DEFAULT (md) */
|
|
2074
|
+
.range-slider::-webkit-slider-thumb {
|
|
2075
|
+
-webkit-appearance: none;
|
|
2076
|
+
appearance: none;
|
|
2077
|
+
background: white;
|
|
2078
|
+
border: 2px solid #3b82f6;
|
|
2079
|
+
height: 16px;
|
|
2080
|
+
width: 16px;
|
|
2081
|
+
border-radius: 50%;
|
|
2082
|
+
cursor: pointer;
|
|
2083
|
+
margin-top: 0;
|
|
2084
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2085
|
+
transition: all 0.15s ease-in-out;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
.range-slider::-webkit-slider-thumb:hover {
|
|
2089
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
2090
|
+
transform: scale(1.1);
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
.range-slider::-webkit-slider-thumb:active {
|
|
2094
|
+
transform: scale(0.95);
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/* Thumb styles - Firefox - DEFAULT (md) */
|
|
2098
|
+
.range-slider::-moz-range-thumb {
|
|
2099
|
+
background: white;
|
|
2100
|
+
border: 2px solid #3b82f6;
|
|
2101
|
+
height: 16px;
|
|
2102
|
+
width: 16px;
|
|
2103
|
+
border-radius: 50%;
|
|
2104
|
+
cursor: pointer;
|
|
2105
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2106
|
+
transition: all 0.15s ease-in-out;
|
|
2107
|
+
border: none;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
.range-slider::-moz-range-thumb:hover {
|
|
2111
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
2112
|
+
transform: scale(1.1);
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
.range-slider::-moz-range-thumb:active {
|
|
2116
|
+
transform: scale(0.95);
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
/* SMALL SIZE VARIANT */
|
|
2120
|
+
.range-slider[data-size="sm"] {
|
|
2121
|
+
height: 12px !important;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
.range-slider[data-size="sm"]::-webkit-slider-track {
|
|
2125
|
+
height: 4px !important;
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
.range-slider[data-size="sm"]::-webkit-slider-thumb {
|
|
2129
|
+
height: 12px !important;
|
|
2130
|
+
width: 12px !important;
|
|
2131
|
+
margin-top: 0 !important;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
.range-slider[data-size="sm"]::-moz-range-track {
|
|
2135
|
+
height: 4px !important;
|
|
2136
|
+
}
|
|
2137
|
+
|
|
2138
|
+
.range-slider[data-size="sm"]::-moz-range-thumb {
|
|
2139
|
+
height: 12px !important;
|
|
2140
|
+
width: 12px !important;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
/* LARGE SIZE VARIANT */
|
|
2144
|
+
.range-slider[data-size="lg"] {
|
|
2145
|
+
height: 20px !important;
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
.range-slider[data-size="lg"]::-webkit-slider-track {
|
|
2149
|
+
height: 12px !important;
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
.range-slider[data-size="lg"]::-webkit-slider-thumb {
|
|
2153
|
+
height: 20px !important;
|
|
2154
|
+
width: 20px !important;
|
|
2155
|
+
margin-top: 0 !important;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
.range-slider[data-size="lg"]::-moz-range-track {
|
|
2159
|
+
height: 12px !important;
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
.range-slider[data-size="lg"]::-moz-range-thumb {
|
|
2163
|
+
height: 20px !important;
|
|
2164
|
+
width: 20px !important;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/* Disabled state */
|
|
2168
|
+
.range-slider:disabled::-webkit-slider-thumb {
|
|
2169
|
+
cursor: not-allowed;
|
|
2170
|
+
opacity: 0.5;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
.range-slider:disabled::-moz-range-thumb {
|
|
2174
|
+
cursor: not-allowed;
|
|
2175
|
+
opacity: 0.5;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
/* Focus styles */
|
|
2179
|
+
.range-slider:focus {
|
|
2180
|
+
outline: none;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
.range-slider:focus::-webkit-slider-thumb {
|
|
2184
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2187
|
+
.range-slider:focus::-moz-range-thumb {
|
|
2188
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2006
2191
|
|
|
2007
2192
|
/*# sourceMappingURL=index.css.map*/
|