@salutejs/plasma-new-hope 0.321.1-canary.1945.14661970912.0 → 0.321.1-canary.1946.14663041744.0
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/cjs/index.css +0 -7
- package/cjs/index.js +0 -7
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/index.js +0 -11
- package/emotion/es/index.js +1 -2
- package/es/index.css +0 -7
- package/es/index.js +0 -3
- package/es/index.js.map +1 -1
- package/package.json +4 -4
- package/styled-components/cjs/index.js +0 -11
- package/styled-components/es/index.js +1 -2
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/Carousel/Carousel.css +0 -4
- package/cjs/components/Carousel/Carousel.js +0 -80
- package/cjs/components/Carousel/Carousel.js.map +0 -1
- package/cjs/components/Carousel/Carousel.styles.js +0 -67
- package/cjs/components/Carousel/Carousel.styles.js.map +0 -1
- package/cjs/components/Carousel/Carousel.styles_1lyqijv.css +0 -4
- package/cjs/components/Carousel/CarouselItem.js +0 -53
- package/cjs/components/Carousel/CarouselItem.js.map +0 -1
- package/cjs/components/Carousel/CarouselItem_cqjszm.css +0 -1
- package/cjs/components/Carousel/useCarousel.js +0 -487
- package/cjs/components/Carousel/useCarousel.js.map +0 -1
- package/cjs/components/Carousel/useDragScroll.js +0 -62
- package/cjs/components/Carousel/useDragScroll.js.map +0 -1
- package/emotion/cjs/components/Carousel/Carousel.js +0 -77
- package/emotion/cjs/components/Carousel/Carousel.styles.js +0 -49
- package/emotion/cjs/components/Carousel/Carousel.types.js +0 -5
- package/emotion/cjs/components/Carousel/CarouselItem.js +0 -38
- package/emotion/cjs/components/Carousel/index.js +0 -32
- package/emotion/cjs/components/Carousel/useCarousel.js +0 -478
- package/emotion/cjs/components/Carousel/useDragScroll.js +0 -65
- package/emotion/cjs/examples/plasma_b2c/components/Carousel/Carousel.config.js +0 -10
- package/emotion/cjs/examples/plasma_b2c/components/Carousel/Carousel.js +0 -18
- package/emotion/cjs/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +0 -80
- package/emotion/cjs/examples/plasma_web/components/Carousel/Carousel.config.js +0 -10
- package/emotion/cjs/examples/plasma_web/components/Carousel/Carousel.js +0 -18
- package/emotion/cjs/examples/plasma_web/components/Carousel/Carousel.stories.tsx +0 -80
- package/emotion/es/components/Carousel/Carousel.js +0 -69
- package/emotion/es/components/Carousel/Carousel.styles.js +0 -42
- package/emotion/es/components/Carousel/Carousel.types.js +0 -1
- package/emotion/es/components/Carousel/CarouselItem.js +0 -31
- package/emotion/es/components/Carousel/index.js +0 -3
- package/emotion/es/components/Carousel/useCarousel.js +0 -468
- package/emotion/es/components/Carousel/useDragScroll.js +0 -59
- package/emotion/es/examples/plasma_b2c/components/Carousel/Carousel.config.js +0 -4
- package/emotion/es/examples/plasma_b2c/components/Carousel/Carousel.js +0 -6
- package/emotion/es/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +0 -80
- package/emotion/es/examples/plasma_web/components/Carousel/Carousel.config.js +0 -4
- package/emotion/es/examples/plasma_web/components/Carousel/Carousel.js +0 -6
- package/emotion/es/examples/plasma_web/components/Carousel/Carousel.stories.tsx +0 -80
- package/es/components/Carousel/Carousel.css +0 -4
- package/es/components/Carousel/Carousel.js +0 -71
- package/es/components/Carousel/Carousel.js.map +0 -1
- package/es/components/Carousel/Carousel.styles.js +0 -60
- package/es/components/Carousel/Carousel.styles.js.map +0 -1
- package/es/components/Carousel/Carousel.styles_1lyqijv.css +0 -4
- package/es/components/Carousel/CarouselItem.js +0 -45
- package/es/components/Carousel/CarouselItem.js.map +0 -1
- package/es/components/Carousel/CarouselItem_cqjszm.css +0 -1
- package/es/components/Carousel/useCarousel.js +0 -472
- package/es/components/Carousel/useCarousel.js.map +0 -1
- package/es/components/Carousel/useDragScroll.js +0 -58
- package/es/components/Carousel/useDragScroll.js.map +0 -1
- package/styled-components/cjs/components/Carousel/Carousel.js +0 -77
- package/styled-components/cjs/components/Carousel/Carousel.styles.js +0 -38
- package/styled-components/cjs/components/Carousel/Carousel.types.js +0 -5
- package/styled-components/cjs/components/Carousel/CarouselItem.js +0 -37
- package/styled-components/cjs/components/Carousel/index.js +0 -32
- package/styled-components/cjs/components/Carousel/useCarousel.js +0 -478
- package/styled-components/cjs/components/Carousel/useDragScroll.js +0 -65
- package/styled-components/cjs/examples/plasma_b2c/components/Carousel/Carousel.config.js +0 -10
- package/styled-components/cjs/examples/plasma_b2c/components/Carousel/Carousel.js +0 -18
- package/styled-components/cjs/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +0 -80
- package/styled-components/cjs/examples/plasma_web/components/Carousel/Carousel.config.js +0 -10
- package/styled-components/cjs/examples/plasma_web/components/Carousel/Carousel.js +0 -18
- package/styled-components/cjs/examples/plasma_web/components/Carousel/Carousel.stories.tsx +0 -80
- package/styled-components/es/components/Carousel/Carousel.js +0 -69
- package/styled-components/es/components/Carousel/Carousel.styles.js +0 -30
- package/styled-components/es/components/Carousel/Carousel.types.js +0 -1
- package/styled-components/es/components/Carousel/CarouselItem.js +0 -30
- package/styled-components/es/components/Carousel/index.js +0 -3
- package/styled-components/es/components/Carousel/useCarousel.js +0 -468
- package/styled-components/es/components/Carousel/useDragScroll.js +0 -59
- package/styled-components/es/examples/plasma_b2c/components/Carousel/Carousel.config.js +0 -4
- package/styled-components/es/examples/plasma_b2c/components/Carousel/Carousel.js +0 -6
- package/styled-components/es/examples/plasma_b2c/components/Carousel/Carousel.stories.tsx +0 -80
- package/styled-components/es/examples/plasma_web/components/Carousel/Carousel.config.js +0 -4
- package/styled-components/es/examples/plasma_web/components/Carousel/Carousel.js +0 -6
- package/styled-components/es/examples/plasma_web/components/Carousel/Carousel.stories.tsx +0 -80
- package/types/components/Carousel/Carousel.d.ts +0 -22
- package/types/components/Carousel/Carousel.d.ts.map +0 -1
- package/types/components/Carousel/Carousel.styles.d.ts +0 -16
- package/types/components/Carousel/Carousel.styles.d.ts.map +0 -1
- package/types/components/Carousel/Carousel.types.d.ts +0 -111
- package/types/components/Carousel/Carousel.types.d.ts.map +0 -1
- package/types/components/Carousel/CarouselItem.d.ts +0 -4
- package/types/components/Carousel/CarouselItem.d.ts.map +0 -1
- package/types/components/Carousel/index.d.ts +0 -5
- package/types/components/Carousel/index.d.ts.map +0 -1
- package/types/components/Carousel/useCarousel.d.ts +0 -63
- package/types/components/Carousel/useCarousel.d.ts.map +0 -1
- package/types/components/Carousel/useDragScroll.d.ts +0 -3
- package/types/components/Carousel/useDragScroll.d.ts.map +0 -1
package/cjs/index.css
CHANGED
@@ -962,10 +962,3 @@
|
|
962
962
|
.ToastNew_styles_4c92hd_tvfkfgf__2b80d961{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--plasma-toast-background);color:var(--tvfkfgf-0);padding:var(--plasma-toast-padding);border-radius:var(--plasma-toast-border-radius);max-width:var(--plasma-toast-max-width);width:var(--tvfkfgf-1);font-family:var(--plasma-toast-font-family);font-size:var(--plasma-toast-font-size);font-style:var(--plasma-toast-font-style);font-weight:var(--plasma-toast-font-weight);-webkit-letter-spacing:var(--plasma-toast-letter-spacing);-moz-letter-spacing:var(--plasma-toast-letter-spacing);-ms-letter-spacing:var(--plasma-toast-letter-spacing);letter-spacing:var(--plasma-toast-letter-spacing);line-height:var(--plasma-toast-line-height);}
|
963
963
|
.ToastNew_styles_4c92hd_cbp8rlf__2b80d961{height:var(--plasma-toast-close-icon-button-size);margin:var(--plasma-toast-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.ToastNew_styles_4c92hd_cbp8rlf__2b80d961:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
|
964
964
|
.ToastNew_styles_4c92hd_s1hkhzn7__2b80d961{margin:var(--plasma-toast-content-left-margin);color:var(--plasma-toast-content-left-color);line-height:0;}
|
965
|
-
|
966
|
-
|
967
|
-
.Carousel_styles_1lyqijv_cmeqer1__74917e06{overflow:hidden;margin-left:calc(var(--plasma-grid-margin) * -1);margin-right:calc(var(--plasma-grid-margin) * -1);}
|
968
|
-
.Carousel_styles_1lyqijv_c14h2fl__74917e06{position:relative;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;-webkit-scroll-snap-type:var(--c14h2fl-0);-moz-scroll-snap-type:var(--c14h2fl-0);-ms-scroll-snap-type:var(--c14h2fl-0);scroll-snap-type:var(--c14h2fl-0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);}.Carousel_styles_1lyqijv_c14h2fl__74917e06::-webkit-scrollbar{display:none;}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c14h2fl__74917e06{-webkit-scroll-padding:0 var(--plasma-grid-margin);-moz-scroll-padding:0 var(--plasma-grid-margin);-ms-scroll-padding:0 var(--plasma-grid-margin);scroll-padding:0 var(--plasma-grid-margin);padding-left:var(--plasma-grid-margin);}
|
969
|
-
.Carousel_styles_1lyqijv_c1c6iuz8__74917e06{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:var(--c1c6iuz8-0);padding-right:var(--c1c6iuz8-1);}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c1c6iuz8__74917e06{padding-right:var(--c1c6iuz8-2);}
|
970
|
-
|
971
|
-
.CarouselItem_cqjszm_s13at6mi__7ff91d05{-webkit-scroll-snap-align:var(--s13at6mi-0);-moz-scroll-snap-align:var(--s13at6mi-0);-ms-scroll-snap-align:var(--s13at6mi-0);scroll-snap-align:var(--s13at6mi-0);-webkit-scroll-snap-stop:var(--s13at6mi-1);-moz-scroll-snap-stop:var(--s13at6mi-1);-ms-scroll-snap-stop:var(--s13at6mi-1);scroll-snap-stop:var(--s13at6mi-1);}
|
package/cjs/index.js
CHANGED
@@ -232,9 +232,6 @@ var LinkButton_tokens = require('./components/LinkButton/LinkButton.tokens.js');
|
|
232
232
|
var NumberFormat = require('./components/NumberFormat/NumberFormat.js');
|
233
233
|
var ToastNew = require('./components/Toast/ToastNew/ToastNew.js');
|
234
234
|
var ToastNew_tokens = require('./components/Toast/ToastNew/ToastNew.tokens.js');
|
235
|
-
var Carousel = require('./components/Carousel/Carousel.js');
|
236
|
-
var Carousel_styles = require('./components/Carousel/Carousel.styles.js');
|
237
|
-
var CarouselItem = require('./components/Carousel/CarouselItem.js');
|
238
235
|
|
239
236
|
|
240
237
|
|
@@ -670,8 +667,4 @@ exports.showToast = ToastNew.showToast;
|
|
670
667
|
exports.toastContainerConfig = ToastNew.toastContainerConfig;
|
671
668
|
exports.toastContainerRoot = ToastNew.toastContainerRoot;
|
672
669
|
exports.toastNewTokens = ToastNew_tokens.tokens;
|
673
|
-
exports.carouselConfig = Carousel.carouselConfig;
|
674
|
-
exports.carouselRoot = Carousel.carouselRoot;
|
675
|
-
exports.CarouselGridWrapper = Carousel_styles.CarouselGridWrapper;
|
676
|
-
exports.CarouselItem = CarouselItem.CarouselItem;
|
677
670
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/emotion/cjs/index.js
CHANGED
@@ -816,15 +816,4 @@ Object.keys(_ToastNew).forEach(function (key) {
|
|
816
816
|
return _ToastNew[key];
|
817
817
|
}
|
818
818
|
});
|
819
|
-
});
|
820
|
-
var _Carousel = /*#__PURE__*/require("./components/Carousel");
|
821
|
-
Object.keys(_Carousel).forEach(function (key) {
|
822
|
-
if (key === "default" || key === "__esModule") return;
|
823
|
-
if (key in exports && exports[key] === _Carousel[key]) return;
|
824
|
-
Object.defineProperty(exports, key, {
|
825
|
-
enumerable: true,
|
826
|
-
get: function get() {
|
827
|
-
return _Carousel[key];
|
828
|
-
}
|
829
|
-
});
|
830
819
|
});
|
package/emotion/es/index.js
CHANGED
@@ -74,5 +74,4 @@ export * from "./components/Note";
|
|
74
74
|
export * from "./components/Table";
|
75
75
|
export * from "./components/LinkButton";
|
76
76
|
export * from "./components/NumberFormat";
|
77
|
-
export * from "./components/Toast/ToastNew";
|
78
|
-
export * from "./components/Carousel";
|
77
|
+
export * from "./components/Toast/ToastNew";
|
package/es/index.css
CHANGED
@@ -962,10 +962,3 @@
|
|
962
962
|
.ToastNew_styles_4c92hd_tvfkfgf__2b80d961{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--plasma-toast-background);color:var(--tvfkfgf-0);padding:var(--plasma-toast-padding);border-radius:var(--plasma-toast-border-radius);max-width:var(--plasma-toast-max-width);width:var(--tvfkfgf-1);font-family:var(--plasma-toast-font-family);font-size:var(--plasma-toast-font-size);font-style:var(--plasma-toast-font-style);font-weight:var(--plasma-toast-font-weight);-webkit-letter-spacing:var(--plasma-toast-letter-spacing);-moz-letter-spacing:var(--plasma-toast-letter-spacing);-ms-letter-spacing:var(--plasma-toast-letter-spacing);letter-spacing:var(--plasma-toast-letter-spacing);line-height:var(--plasma-toast-line-height);}
|
963
963
|
.ToastNew_styles_4c92hd_cbp8rlf__2b80d961{height:var(--plasma-toast-close-icon-button-size);margin:var(--plasma-toast-close-icon-margin);color:var(--plasma-toast-close-icon-color);}.ToastNew_styles_4c92hd_cbp8rlf__2b80d961:hover{color:var(--plasma-toast-close-icon-color-on-hover);}
|
964
964
|
.ToastNew_styles_4c92hd_s1hkhzn7__2b80d961{margin:var(--plasma-toast-content-left-margin);color:var(--plasma-toast-content-left-color);line-height:0;}
|
965
|
-
|
966
|
-
|
967
|
-
.Carousel_styles_1lyqijv_cmeqer1__74917e06{overflow:hidden;margin-left:calc(var(--plasma-grid-margin) * -1);margin-right:calc(var(--plasma-grid-margin) * -1);}
|
968
|
-
.Carousel_styles_1lyqijv_c14h2fl__74917e06{position:relative;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;-webkit-scroll-snap-type:var(--c14h2fl-0);-moz-scroll-snap-type:var(--c14h2fl-0);-ms-scroll-snap-type:var(--c14h2fl-0);scroll-snap-type:var(--c14h2fl-0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);}.Carousel_styles_1lyqijv_c14h2fl__74917e06::-webkit-scrollbar{display:none;}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c14h2fl__74917e06{-webkit-scroll-padding:0 var(--plasma-grid-margin);-moz-scroll-padding:0 var(--plasma-grid-margin);-ms-scroll-padding:0 var(--plasma-grid-margin);scroll-padding:0 var(--plasma-grid-margin);padding-left:var(--plasma-grid-margin);}
|
969
|
-
.Carousel_styles_1lyqijv_c1c6iuz8__74917e06{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:var(--c1c6iuz8-0);padding-right:var(--c1c6iuz8-1);}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c1c6iuz8__74917e06{padding-right:var(--c1c6iuz8-2);}
|
970
|
-
|
971
|
-
.CarouselItem_cqjszm_s13at6mi__7ff91d05{-webkit-scroll-snap-align:var(--s13at6mi-0);-moz-scroll-snap-align:var(--s13at6mi-0);-ms-scroll-snap-align:var(--s13at6mi-0);scroll-snap-align:var(--s13at6mi-0);-webkit-scroll-snap-stop:var(--s13at6mi-1);-moz-scroll-snap-stop:var(--s13at6mi-1);-ms-scroll-snap-stop:var(--s13at6mi-1);scroll-snap-stop:var(--s13at6mi-1);}
|
package/es/index.js
CHANGED
@@ -229,7 +229,4 @@ export { tokens as linkButtonTokens } from './components/LinkButton/LinkButton.t
|
|
229
229
|
export { composeNumberFormat } from './components/NumberFormat/NumberFormat.js';
|
230
230
|
export { showToast, toastContainerConfig, toastContainerRoot } from './components/Toast/ToastNew/ToastNew.js';
|
231
231
|
export { tokens as toastNewTokens } from './components/Toast/ToastNew/ToastNew.tokens.js';
|
232
|
-
export { carouselConfig, carouselRoot } from './components/Carousel/Carousel.js';
|
233
|
-
export { CarouselGridWrapper } from './components/Carousel/Carousel.styles.js';
|
234
|
-
export { CarouselItem } from './components/Carousel/CarouselItem.js';
|
235
232
|
//# sourceMappingURL=index.js.map
|
package/es/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.321.1-canary.
|
3
|
+
"version": "0.321.1-canary.1946.14663041744.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -80,8 +80,8 @@
|
|
80
80
|
"@rollup/plugin-babel": "^6.0.4",
|
81
81
|
"@rollup/plugin-commonjs": "^25.0.4",
|
82
82
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
83
|
-
"@salutejs/plasma-sb-utils": "0.196.1-canary.
|
84
|
-
"@salutejs/plasma-themes": "0.32.1-canary.
|
83
|
+
"@salutejs/plasma-sb-utils": "0.196.1-canary.1946.14663041744.0",
|
84
|
+
"@salutejs/plasma-themes": "0.32.1-canary.1946.14663041744.0",
|
85
85
|
"@storybook/addon-docs": "8.6.12",
|
86
86
|
"@storybook/addon-essentials": "8.6.12",
|
87
87
|
"@storybook/manager-api": "8.6.12",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "914bf248093b4dd5db4c6d422cd663942234d9f1"
|
141
141
|
}
|
@@ -816,15 +816,4 @@ Object.keys(_ToastNew).forEach(function (key) {
|
|
816
816
|
return _ToastNew[key];
|
817
817
|
}
|
818
818
|
});
|
819
|
-
});
|
820
|
-
var _Carousel = /*#__PURE__*/require("./components/Carousel");
|
821
|
-
Object.keys(_Carousel).forEach(function (key) {
|
822
|
-
if (key === "default" || key === "__esModule") return;
|
823
|
-
if (key in exports && exports[key] === _Carousel[key]) return;
|
824
|
-
Object.defineProperty(exports, key, {
|
825
|
-
enumerable: true,
|
826
|
-
get: function get() {
|
827
|
-
return _Carousel[key];
|
828
|
-
}
|
829
|
-
});
|
830
819
|
});
|
@@ -74,5 +74,4 @@ export * from "./components/Note";
|
|
74
74
|
export * from "./components/Table";
|
75
75
|
export * from "./components/LinkButton";
|
76
76
|
export * from "./components/NumberFormat";
|
77
|
-
export * from "./components/Toast/ToastNew";
|
78
|
-
export * from "./components/Carousel";
|
77
|
+
export * from "./components/Toast/ToastNew";
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AAC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grid-margin) * -1);margin-right:calc(var(--plasma-grid-margin) * -1);}
|
3
|
-
.Carousel_styles_1lyqijv_c14h2fl__74917e06{position:relative;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;-webkit-scroll-snap-type:var(--c14h2fl-0);-moz-scroll-snap-type:var(--c14h2fl-0);-ms-scroll-snap-type:var(--c14h2fl-0);scroll-snap-type:var(--c14h2fl-0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);}.Carousel_styles_1lyqijv_c14h2fl__74917e06::-webkit-scrollbar{display:none;}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c14h2fl__74917e06{-webkit-scroll-padding:0 var(--plasma-grid-margin);-moz-scroll-padding:0 var(--plasma-grid-margin);-ms-scroll-padding:0 var(--plasma-grid-margin);scroll-padding:0 var(--plasma-grid-margin);padding-left:var(--plasma-grid-margin);}
|
4
|
-
.Carousel_styles_1lyqijv_c1c6iuz8__74917e06{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:var(--c1c6iuz8-0);padding-right:var(--c1c6iuz8-1);}.Carousel_styles_1lyqijv_cmeqer1__74917e06 .Carousel_styles_1lyqijv_c1c6iuz8__74917e06{padding-right:var(--c1c6iuz8-2);}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
6
|
-
var React = require('react');
|
7
|
-
var plasmaCore = require('@salutejs/plasma-core');
|
8
|
-
var Carousel_styles = require('./Carousel.styles.js');
|
9
|
-
var useCarousel = require('./useCarousel.js');
|
10
|
-
var useDragScroll = require('./useDragScroll.js');
|
11
|
-
|
12
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
13
|
-
|
14
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
15
|
-
|
16
|
-
var _excluded = ["index", "scrollSnapType", "scrollAlign", "detectActive", "detectThreshold", "scaleCallback", "scaleResetCallback", "onIndexChange", "paddingStart", "paddingEnd", "children", "ariaLive", "isDragScrollDisabled"];
|
17
|
-
|
18
|
-
/**
|
19
|
-
* Компонент для создания списков с прокруткой.
|
20
|
-
*/
|
21
|
-
var carouselRoot = function carouselRoot(Root) {
|
22
|
-
return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
23
|
-
var _ref$index = _ref.index,
|
24
|
-
index = _ref$index === void 0 ? 0 : _ref$index,
|
25
|
-
_ref$scrollSnapType = _ref.scrollSnapType,
|
26
|
-
scrollSnapType = _ref$scrollSnapType === void 0 ? 'mandatory' : _ref$scrollSnapType,
|
27
|
-
scrollAlign = _ref.scrollAlign,
|
28
|
-
detectActive = _ref.detectActive,
|
29
|
-
detectThreshold = _ref.detectThreshold,
|
30
|
-
scaleCallback = _ref.scaleCallback,
|
31
|
-
scaleResetCallback = _ref.scaleResetCallback,
|
32
|
-
onIndexChange = _ref.onIndexChange,
|
33
|
-
paddingStart = _ref.paddingStart,
|
34
|
-
paddingEnd = _ref.paddingEnd,
|
35
|
-
children = _ref.children,
|
36
|
-
_ref$ariaLive = _ref.ariaLive,
|
37
|
-
ariaLive = _ref$ariaLive === void 0 ? 'off' : _ref$ariaLive,
|
38
|
-
_ref$isDragScrollDisa = _ref.isDragScrollDisabled,
|
39
|
-
isDragScrollDisabled = _ref$isDragScrollDisa === void 0 ? false : _ref$isDragScrollDisa,
|
40
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
41
|
-
var axis = 'x';
|
42
|
-
var _useCarousel = useCarousel.useCarousel({
|
43
|
-
index: index,
|
44
|
-
axis: axis,
|
45
|
-
scrollAlign: scrollAlign,
|
46
|
-
detectActive: detectActive,
|
47
|
-
detectThreshold: detectThreshold,
|
48
|
-
scaleCallback: scaleCallback,
|
49
|
-
scaleResetCallback: scaleResetCallback,
|
50
|
-
onIndexChange: onIndexChange
|
51
|
-
}),
|
52
|
-
scrollRef = _useCarousel.scrollRef,
|
53
|
-
trackRef = _useCarousel.trackRef;
|
54
|
-
var handleRef = plasmaCore.useForkRef(scrollRef, ref);
|
55
|
-
useDragScroll.useDragScroll(scrollRef, isDragScrollDisabled);
|
56
|
-
return /*#__PURE__*/React__default.default.createElement(Root, {
|
57
|
-
index: index
|
58
|
-
}, /*#__PURE__*/React__default.default.createElement(Carousel_styles.CarouselWrapper, _rollupPluginBabelHelpers.extends({
|
59
|
-
ref: handleRef,
|
60
|
-
scrollSnapType: scrollSnapType
|
61
|
-
}, rest), /*#__PURE__*/React__default.default.createElement(Carousel_styles.CarouselTrack, {
|
62
|
-
ref: trackRef,
|
63
|
-
paddingStart: paddingStart,
|
64
|
-
paddingEnd: paddingEnd,
|
65
|
-
"aria-live": ariaLive
|
66
|
-
}, children)));
|
67
|
-
});
|
68
|
-
};
|
69
|
-
var carouselConfig = {
|
70
|
-
name: 'Carousel',
|
71
|
-
tag: 'div',
|
72
|
-
layout: carouselRoot,
|
73
|
-
base: Carousel_styles.base,
|
74
|
-
variations: {},
|
75
|
-
defaults: {}
|
76
|
-
};
|
77
|
-
|
78
|
-
exports.carouselConfig = carouselConfig;
|
79
|
-
exports.carouselRoot = carouselRoot;
|
80
|
-
//# sourceMappingURL=Carousel.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Carousel.js","sources":["../../../src/components/Carousel/Carousel.tsx"],"sourcesContent":["import { RootProps } from 'src/engines';\nimport React, { forwardRef } from 'react';\nimport { useForkRef } from '@salutejs/plasma-core';\n\nimport { base, CarouselWrapper, CarouselTrack } from './Carousel.styles';\nimport { CarouselProps } from './Carousel.types';\nimport { useCarousel } from './useCarousel';\nimport { useDragScroll } from './useDragScroll';\n\n/**\n * Компонент для создания списков с прокруткой.\n */\nexport const carouselRoot = (Root: RootProps<HTMLDivElement, CarouselProps>) =>\n forwardRef<HTMLDivElement, CarouselProps>(\n (\n {\n index = 0,\n scrollSnapType = 'mandatory',\n scrollAlign,\n detectActive,\n detectThreshold,\n scaleCallback,\n scaleResetCallback,\n onIndexChange,\n paddingStart,\n paddingEnd,\n children,\n ariaLive = 'off',\n isDragScrollDisabled = false,\n ...rest\n },\n ref,\n ) => {\n const axis = 'x';\n\n const { scrollRef, trackRef } = useCarousel({\n index,\n axis,\n scrollAlign,\n detectActive,\n detectThreshold,\n scaleCallback,\n scaleResetCallback,\n onIndexChange,\n });\n\n const handleRef = useForkRef(scrollRef, ref);\n\n useDragScroll(scrollRef, isDragScrollDisabled);\n\n return (\n <Root index={index}>\n {/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}\n {/* @ts-ignore */}\n <CarouselWrapper ref={handleRef} scrollSnapType={scrollSnapType} {...rest}>\n <CarouselTrack\n ref={trackRef as React.MutableRefObject<HTMLDivElement | null>}\n paddingStart={paddingStart}\n paddingEnd={paddingEnd}\n aria-live={ariaLive}\n >\n {children}\n </CarouselTrack>\n </CarouselWrapper>\n </Root>\n );\n },\n );\n\nexport const carouselConfig = {\n name: 'Carousel',\n tag: 'div',\n layout: carouselRoot,\n base,\n variations: {},\n defaults: {},\n};\n"],"names":["carouselRoot","Root","forwardRef","_ref","ref","_ref$index","index","_ref$scrollSnapType","scrollSnapType","scrollAlign","detectActive","detectThreshold","scaleCallback","scaleResetCallback","onIndexChange","paddingStart","paddingEnd","children","_ref$ariaLive","ariaLive","_ref$isDragScrollDisa","isDragScrollDisabled","rest","_objectWithoutProperties","_excluded","axis","_useCarousel","useCarousel","scrollRef","trackRef","handleRef","useForkRef","useDragScroll","React","createElement","CarouselWrapper","_extends","CarouselTrack","carouselConfig","name","tag","layout","base","variations","defaults"],"mappings":";;;;;;;;;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('./Carousel.styles_1lyqijv.css');
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
5
|
-
|
6
|
-
var react = require('@linaria/react');
|
7
|
-
|
8
|
-
var base = "bhp1h9p";
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Компонент применяется, если требуется компенсировать отступы контейнера в сетке.
|
12
|
-
* При обертывании вокруг ``Carousel``, добавляет карусели и ее прокрутке дополнительные отступы.
|
13
|
-
* Стилизованный компонент, обладающий всеми свойствами ``div``.
|
14
|
-
*/
|
15
|
-
var CarouselGridWrapper = /*#__PURE__*/react.styled('div')({
|
16
|
-
name: "CarouselGridWrapper",
|
17
|
-
"class": "cmeqer1",
|
18
|
-
propsAsIs: false
|
19
|
-
});
|
20
|
-
var _exp = function _exp() {
|
21
|
-
return function (_ref) {
|
22
|
-
var scrollSnapType = _ref.scrollSnapType;
|
23
|
-
return "x ".concat(scrollSnapType);
|
24
|
-
};
|
25
|
-
};
|
26
|
-
var CarouselWrapper = /*#__PURE__*/react.styled('div')({
|
27
|
-
name: "CarouselWrapper",
|
28
|
-
"class": "c14h2fl",
|
29
|
-
propsAsIs: false,
|
30
|
-
vars: {
|
31
|
-
"c14h2fl-0": [/*#__PURE__*/_exp()]
|
32
|
-
}
|
33
|
-
});
|
34
|
-
var _exp3 = function _exp3() {
|
35
|
-
return function (_ref2) {
|
36
|
-
var paddingStart = _ref2.paddingStart;
|
37
|
-
return paddingStart || 0;
|
38
|
-
};
|
39
|
-
};
|
40
|
-
var _exp4 = function _exp4() {
|
41
|
-
return function (_ref3) {
|
42
|
-
var paddingEnd = _ref3.paddingEnd;
|
43
|
-
return paddingEnd || 0;
|
44
|
-
};
|
45
|
-
};
|
46
|
-
var _exp6 = function _exp6() {
|
47
|
-
return function (_ref4) {
|
48
|
-
var paddingEnd = _ref4.paddingEnd;
|
49
|
-
return paddingEnd || 'var(--plasma-grid-margin)';
|
50
|
-
};
|
51
|
-
};
|
52
|
-
var CarouselTrack = /*#__PURE__*/react.styled('div')({
|
53
|
-
name: "CarouselTrack",
|
54
|
-
"class": "c1c6iuz8",
|
55
|
-
propsAsIs: false,
|
56
|
-
vars: {
|
57
|
-
"c1c6iuz8-0": [/*#__PURE__*/_exp3()],
|
58
|
-
"c1c6iuz8-1": [/*#__PURE__*/_exp4()],
|
59
|
-
"c1c6iuz8-2": [/*#__PURE__*/_exp6()]
|
60
|
-
}
|
61
|
-
});
|
62
|
-
|
63
|
-
exports.CarouselGridWrapper = CarouselGridWrapper;
|
64
|
-
exports.CarouselTrack = CarouselTrack;
|
65
|
-
exports.CarouselWrapper = CarouselWrapper;
|
66
|
-
exports.base = base;
|
67
|
-
//# sourceMappingURL=Carousel.styles.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Carousel.styles.js","sources":["../../../src/components/Carousel/Carousel.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { css } from '@linaria/core';\n\nexport const base = css``;\n\n/**\n * Компонент применяется, если требуется компенсировать отступы контейнера в сетке.\n * При обертывании вокруг ``Carousel``, добавляет карусели и ее прокрутке дополнительные отступы.\n * Стилизованный компонент, обладающий всеми свойствами ``div``.\n */\nexport const CarouselGridWrapper = styled.div`\n overflow: hidden;\n margin-left: calc(var(--plasma-grid-margin) * -1);\n margin-right: calc(var(--plasma-grid-margin) * -1);\n`;\n\nexport const CarouselWrapper = styled.div<{ scrollSnapType?: 'mandatory' | 'proximity' | 'none' }>`\n position: relative;\n margin: 0;\n padding: 0;\n list-style: none;\n\n ::-webkit-scrollbar {\n display: none;\n }\n\n overflow-x: auto;\n overflow-y: hidden;\n\n scroll-behavior: smooth;\n scroll-snap-type: ${({ scrollSnapType }) => `x ${scrollSnapType}`};\n\n ${CarouselGridWrapper} & {\n scroll-padding: 0 var(--plasma-grid-margin);\n padding-left: var(--plasma-grid-margin);\n }\n\n user-select: none;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n`;\n\nexport const CarouselTrack = styled.div<{ paddingStart?: string; paddingEnd?: string }>`\n display: inline-flex;\n flex-direction: row;\n padding-left: ${({ paddingStart }) => paddingStart || 0};\n padding-right: ${({ paddingEnd }) => paddingEnd || 0};\n\n ${CarouselGridWrapper} & {\n padding-right: ${({ paddingEnd }) => paddingEnd || 'var(--plasma-grid-margin)'};\n }\n`;\n"],"names":["base","CarouselGridWrapper","styled","name","class","propsAsIs","_exp","_ref","scrollSnapType","CarouselWrapper","vars","_exp3","_ref2","paddingStart","_exp4","_ref3","paddingEnd","_exp6","_ref4","CarouselTrack"],"mappings":";;;;;;AAGO,IAAMA,IAAI,GAAQ,UAAA;;AAEzB;AACA;AACA;AACA;AACA;AACO,IAAMC,mBAAmB,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,qBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIxC,EAAA;AAAC,IAAAC,IAAA,GAbgBA,SAahBA,IAAAA,GAAA;AAAA,EAAA,OAgBsB,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,cAAAA,GAAAA,IAAAA,CAAAA,cAAAA,CAAAA;IAAAA,OAAAA,IAAAA,CAAAA,MAAAA,CAA0BA,cAAc,CAAA,CAAA;GAAE,CAAA;AAAA,CAAA,CAAA;AAd9D,IAAMC,eAAe,gBAAGP,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAK,EAAAA,IAAA,EAAA;AAAA,IAAA,WAAA,EAAA,cAcbJ,IAA6C,EAAA,CAAA;AAAA,GAAA;AAAA,CASpE,EAAA;AAAC,IAAAK,KAAA,GAtCgBA,SAsChBA,KAAAA,GAAA;AAAA,EAAA,OAKkB,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGC,YAAAA,GAAAA,KAAAA,CAAAA,YAAAA,CAAAA;IAAAA,OAAmBA,YAAY,IAAI,CAAC,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GA3CzCA,SA2CyCA,KAAAA,GAAA;AAAA,EAAA,OACtC,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGC,UAAAA,GAAAA,KAAAA,CAAAA,UAAAA,CAAAA;IAAAA,OAAiBA,UAAU,IAAI,CAAC,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GA5CtCA,SA4CsCA,KAAAA,GAAA;AAAA,EAAA,OAG/B,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGF,UAAAA,GAAAA,KAAAA,CAAAA,UAAAA,CAAAA;IAAAA,OAAiBA,UAAU,IAAI,2BAA2B,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAP/E,IAAMG,aAAa,gBAAGjB,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAK,EAAAA,IAAA,EAAA;AAAA,IAAA,YAAA,EAAA,cAGfC,KAAuC,EAAA,CAAA;AAAA,IAAA,YAAA,EAAA,cACtCG,KAAmC,EAAA,CAAA;AAAA,IAAA,YAAA,EAAA,cAG/BG,KAA6D,EAAA,CAAA;AAAA,GAAA;AAAA,CAErF;;;;;;;"}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
|
2
|
-
.cmeqer1{overflow:hidden;margin-left:calc(var(--plasma-grid-margin) * -1);margin-right:calc(var(--plasma-grid-margin) * -1);}
|
3
|
-
.c14h2fl{position:relative;margin:0;padding:0;list-style:none;overflow-x:auto;overflow-y:hidden;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;-webkit-scroll-snap-type:var(--c14h2fl-0);-moz-scroll-snap-type:var(--c14h2fl-0);-ms-scroll-snap-type:var(--c14h2fl-0);scroll-snap-type:var(--c14h2fl-0);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);}.c14h2fl::-webkit-scrollbar{display:none;}.cmeqer1 .c14h2fl{-webkit-scroll-padding:0 var(--plasma-grid-margin);-moz-scroll-padding:0 var(--plasma-grid-margin);-ms-scroll-padding:0 var(--plasma-grid-margin);scroll-padding:0 var(--plasma-grid-margin);padding-left:var(--plasma-grid-margin);}
|
4
|
-
.c1c6iuz8{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;padding-left:var(--c1c6iuz8-0);padding-right:var(--c1c6iuz8-1);}.cmeqer1 .c1c6iuz8{padding-right:var(--c1c6iuz8-2);}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
require('./CarouselItem_cqjszm.css');
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
5
|
-
|
6
|
-
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
7
|
-
var React = require('react');
|
8
|
-
var react = require('@linaria/react');
|
9
|
-
|
10
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
|
12
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
13
|
-
|
14
|
-
var _excluded = ["scrollSnapAlign", "scrollSnapStop", "children"];
|
15
|
-
var _exp = function _exp() {
|
16
|
-
return function (_ref) {
|
17
|
-
var scrollSnapAlign = _ref.scrollSnapAlign;
|
18
|
-
return scrollSnapAlign || 'none';
|
19
|
-
};
|
20
|
-
};
|
21
|
-
var _exp2 = function _exp2() {
|
22
|
-
return function (_ref2) {
|
23
|
-
var scrollSnapAlign = _ref2.scrollSnapAlign,
|
24
|
-
scrollSnapStop = _ref2.scrollSnapStop;
|
25
|
-
return scrollSnapAlign ? scrollSnapStop : 'normal';
|
26
|
-
};
|
27
|
-
};
|
28
|
-
var StyledItem = /*#__PURE__*/react.styled('div')({
|
29
|
-
name: "StyledItem",
|
30
|
-
"class": "s13at6mi",
|
31
|
-
propsAsIs: false,
|
32
|
-
vars: {
|
33
|
-
"s13at6mi-0": [/*#__PURE__*/_exp()],
|
34
|
-
"s13at6mi-1": [/*#__PURE__*/_exp2()]
|
35
|
-
}
|
36
|
-
});
|
37
|
-
var CarouselItem = function CarouselItem(_ref3) {
|
38
|
-
var _ref3$scrollSnapAlign = _ref3.scrollSnapAlign,
|
39
|
-
scrollSnapAlign = _ref3$scrollSnapAlign === void 0 ? 'center' : _ref3$scrollSnapAlign,
|
40
|
-
_ref3$scrollSnapStop = _ref3.scrollSnapStop,
|
41
|
-
scrollSnapStop = _ref3$scrollSnapStop === void 0 ? 'always' : _ref3$scrollSnapStop,
|
42
|
-
children = _ref3.children,
|
43
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref3, _excluded);
|
44
|
-
return /*#__PURE__*/React__default.default.createElement(StyledItem, _rollupPluginBabelHelpers.extends({
|
45
|
-
scrollSnapAlign: scrollSnapAlign,
|
46
|
-
scrollSnapStop: scrollSnapStop,
|
47
|
-
role: "group",
|
48
|
-
"aria-roledescription": "slide"
|
49
|
-
}, rest), children);
|
50
|
-
};
|
51
|
-
|
52
|
-
exports.CarouselItem = CarouselItem;
|
53
|
-
//# sourceMappingURL=CarouselItem.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CarouselItem.js","sources":["../../../src/components/Carousel/CarouselItem.tsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@linaria/react';\n\nimport { SnapAlign, SnapStop, CarouselItemProps } from './Carousel.types';\n\nconst StyledItem = styled.div<{ scrollSnapAlign: SnapAlign; scrollSnapStop: SnapStop }>`\n scroll-snap-align: ${({ scrollSnapAlign }) => scrollSnapAlign || 'none'};\n scroll-snap-stop: ${({ scrollSnapAlign, scrollSnapStop }) => (scrollSnapAlign ? scrollSnapStop : 'normal')};\n`;\n\nexport const CarouselItem: React.FC<CarouselItemProps> = ({\n scrollSnapAlign = 'center',\n scrollSnapStop = 'always',\n children,\n ...rest\n}) => {\n return (\n <StyledItem\n scrollSnapAlign={scrollSnapAlign}\n scrollSnapStop={scrollSnapStop}\n role=\"group\"\n aria-roledescription=\"slide\"\n {...rest}\n >\n {children}\n </StyledItem>\n );\n};\n"],"names":["_exp","_ref","scrollSnapAlign","_exp2","_ref2","scrollSnapStop","StyledItem","styled","name","class","propsAsIs","vars","CarouselItem","_ref3","_ref3$scrollSnapAlign","_ref3$scrollSnapStop","children","rest","React","createElement","_extends","role"],"mappings":";;;;;;;;;;;;;AAG0E,IAAAA,IAAA,GAFxDA,SAEwDA,IAAAA,GAAA;AAAA,EAAA,OAGjD,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,eAAAA,GAAAA,IAAAA,CAAAA,eAAAA,CAAAA;IAAAA,OAAsBA,eAAe,IAAI,MAAM,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GALzDA,SAKyDA,KAAAA,GAAA;AAAA,EAAA,OACnD,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGF,eAAe,GAAAE,KAAA,CAAfF,eAAe;MAAEG,cAAAA,GAAAA,KAAAA,CAAAA,cAAAA,CAAAA;AAAAA,IAAAA,OAAsBH,eAAe,GAAGG,cAAc,GAAG,QAAS,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAF9G,IAAMC,UAAU,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAC,EAAAA,IAAA,EAAA;AAAA,IAAA,YAAA,EAAA,cACAX,IAAkD,EAAA,CAAA;AAAA,IAAA,YAAA,EAAA,cACnDG,KAAsF,EAAA,CAAA;AAAA,GAAA;AAAA,CAC7G,CAAA,CAAA;IAEYS,YAAyC,GAAGA,SAA5CA,YAAyCA,CAAAC,KAAA,EAKhD;AAAA,EAAA,IAAAC,qBAAA,GAAAD,KAAA,CAJFX,eAAe;AAAfA,IAAAA,eAAe,GAAAY,qBAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,qBAAA;IAAAC,oBAAA,GAAAF,KAAA,CAC1BR,cAAc;AAAdA,IAAAA,cAAc,GAAAU,oBAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,oBAAA;IACzBC,QAAQ,GAAAH,KAAA,CAARG,QAAQ;AACLC,IAAAA,IAAAA,GAAAA,iDAAAA,CAAAA,KAAAA,EAAAA,SAAAA,CAAAA,CAAAA;AAEH,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACb,UAAU,EAAAc,iCAAA,CAAA;AACPlB,IAAAA,eAAe,EAAEA,eAAgB;AACjCG,IAAAA,cAAc,EAAEA,cAAe;AAC/BgB,IAAAA,IAAI,EAAC,OAAO;IACZ,sBAAqB,EAAA,OAAA;GACjBJ,EAAAA,IAAI,CAEPD,EAAAA,QACO,CAAC,CAAA;AAErB;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.s13at6mi{-webkit-scroll-snap-align:var(--s13at6mi-0);-moz-scroll-snap-align:var(--s13at6mi-0);-ms-scroll-snap-align:var(--s13at6mi-0);scroll-snap-align:var(--s13at6mi-0);-webkit-scroll-snap-stop:var(--s13at6mi-1);-moz-scroll-snap-stop:var(--s13at6mi-1);-ms-scroll-snap-stop:var(--s13at6mi-1);scroll-snap-stop:var(--s13at6mi-1);}
|