Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q-203: Add BoxCarousel component #175

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
4d17609
add BoxCarousel
Maks1mS Jan 30, 2023
9a8adcf
add ChildPlaceholder to Slide
Maks1mS Jan 30, 2023
50e36df
Add swiper@8.4.7 with CJS
Maks1mS Mar 30, 2023
6715d5d
Fix lint errors
Maks1mS Mar 31, 2023
a3811d1
Update @quarkly/components.
Maks1mS Mar 31, 2023
a3b7c3a
Update swiper css version
Maks1mS Mar 31, 2023
ab4a961
Fix styles
Maks1mS Apr 6, 2023
200ce79
Fix Slide unique override
Maks1mS Apr 6, 2023
fa6f860
Fix fade effect
Maks1mS Apr 6, 2023
99231a7
Set dotsin or dotsout when breakpoint = sm
Maks1mS Apr 6, 2023
6988061
update snapshot
Maks1mS Apr 6, 2023
5e3ed8f
feat and refactor: add new props and refactor
Maks1mS Apr 25, 2023
0e85090
fix overrides and key for swiper
Maks1mS Apr 26, 2023
43f20d7
Refactor navigation
Maks1mS May 10, 2023
8c453ea
fix navigation
Maks1mS May 16, 2023
e85082f
Add docs/ru
Maks1mS May 16, 2023
86a16d7
Add docs
Maks1mS May 16, 2023
2b08442
Fix boolean values in the docs
Maks1mS May 16, 2023
1a24790
Add preview
Maks1mS May 16, 2023
5fe7469
add BoxCarousel to package.json & index.js
Maks1mS May 16, 2023
70da4b4
Merge branch 'master' into add-boxcarousel
Maks1mS May 17, 2023
4cde34e
Bump @quarkly/widgets version
Maks1mS May 24, 2023
2039e5b
Update snapshot after version bump
Maks1mS May 24, 2023
2a38442
Add bundled version of swiper
Maks1mS May 24, 2023
17d7609
Add theme and matchMedia mock
Maks1mS May 24, 2023
1031ec0
Fix lint
Maks1mS May 24, 2023
80c439c
Replace QButton with @quarkly/widgets Button
Maks1mS May 25, 2023
2fd9ef7
Bundle types
Maks1mS May 25, 2023
e8b4994
Remove unused packages and bump version
Maks1mS May 25, 2023
8370805
Add source-map-loader for storybook
Maks1mS May 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
{"presets":["@babel/preset-env","@babel/preset-react"]}
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"ignore": [
"dist/**"
],
"plugins": [
[
"module-resolver",
{
"alias": {
"swiper": "./dist/swiper"
}
}
]
]
}
5 changes: 5 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ module.exports = {
'consistent-return': 0,
'react/jsx-props-no-spreading': 0,
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
};
16 changes: 16 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const path = require("path");
const webpack = require('webpack');

module.exports = {
stories: [
'../src/**/*.stories.js',
Expand All @@ -8,4 +11,17 @@ module.exports = {
'@storybook/addon-knobs',
'@storybook/addon-storyshots',
],

webpackFinal: async (config) => {
config.resolve.alias['swiper'] = path.resolve(__dirname, '../dist/swiper');

config.module.rules.unshift({
test: /\.js$/,
enforce: "pre",
use: ["source-map-loader"],
include: [path.resolve(__dirname, '../dist/swiper')]
})

return config;
}
};
20 changes: 20 additions & 0 deletions dist/swiper/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2019 Vladimir Kharlampidi

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 11 additions & 0 deletions dist/swiper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Swiper
==========

Swiper - is the free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior. It is intended to be used in mobile websites, mobile web apps, and mobile native/hybrid apps.

Swiper is not compatible with all platforms, it is a modern touch slider which is focused only on modern apps/platforms to bring the best experience and simplicity.

# Getting Started
* [Getting Started Guide](https://swiperjs.com/get-started/)
* [API](https://swiperjs.com/swiper-api/)
* [Demos](https://swiperjs.com/demos/)
59 changes: 59 additions & 0 deletions dist/swiper/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "swiper",
"version": "8.4.7",
"description": "Most modern mobile touch slider and framework with hardware accelerated transitions",
"main": "swiper-bundle-quarkly.min.js",
"typings": "swiper-types-quarkly.d.ts",
"scripts": {
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
},
"repository": {
"type": "git",
"url": "https://github.com/nolimits4web/Swiper.git"
},
"keywords": [
"swiper",
"swipe",
"slider",
"touch",
"ios",
"mobile",
"cordova",
"phonegap",
"app",
"framework",
"framework7",
"carousel",
"gallery",
"plugin",
"react",
"solid-js",
"vue",
"angular",
"svelte",
"slideshow"
],
"author": "Vladimir Kharlampidi",
"license": "MIT",
"bugs": {
"url": "https://github.com/nolimits4web/swiper/issues"
},
"homepage": "https://swiperjs.com",
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/swiperjs"
},
{
"type": "open_collective",
"url": "http://opencollective.com/swiper"
}
],
"engines": {
"node": ">= 4.7.0"
},
"dependencies": {
"dom7": "^4.0.4",
"ssr-window": "^4.0.2"
}
}
36 changes: 36 additions & 0 deletions dist/swiper/postinstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/* eslint-disable max-len -- for better formatting */
var env = process.env;

var ADBLOCK = is(env.ADBLOCK);
var COLOR = is(env.npm_config_color);
var DISABLE_OPENCOLLECTIVE = is(env.DISABLE_OPENCOLLECTIVE);
var SILENT = ['silent', 'error', 'warn'].indexOf(env.npm_config_loglevel) !== -1;
var OPEN_SOURCE_CONTRIBUTOR = is(env.OPEN_SOURCE_CONTRIBUTOR);

// you could add a PR with an env variable for your CI detection
var CI = [
'BUILD_NUMBER',
'CI',
'CONTINUOUS_INTEGRATION',
'DRONE',
'RUN_ID'
].some(function (it) { return is(env[it]); });

var BANNER = '\u001b[35m\u001b[1mLove Swiper? Support Vladimir\'s work by donating or pledging: \u001B[0m\n' +
'\u001b[22m\u001b[39m\u001b[32m> On Patreon https://patreon.com/swiperjs \u001B[0m\n' +
'\u001b[22m\u001b[39m\u001b[32m> On Open Collective https://opencollective.com/swiper';

function is(it) {
return !!it && it !== '0' && it !== 'false';
}

function isBannerRequired() {
return !(ADBLOCK || CI || DISABLE_OPENCOLLECTIVE || SILENT || OPEN_SOURCE_CONTRIBUTOR);
}

function showBanner() {
// eslint-disable-next-line no-console,no-control-regex -- output
console.log(COLOR ? BANNER : BANNER.replace(/\u001B\[\d+m/g, ''));
}

if (isBannerRequired()) showBanner();
1 change: 1 addition & 0 deletions dist/swiper/react/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './swiper-react';
7 changes: 7 additions & 0 deletions dist/swiper/react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "swiper/react",
"private": true,
"main": "../swiper-react-quarkly.min.js",
"typings": "./swiper-react.d.ts",
"sideEffects": false
}
Loading