Skip to content

Commit

Permalink
Release 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-rr committed Feb 19, 2021
1 parent 173c651 commit ab84681
Show file tree
Hide file tree
Showing 17 changed files with 184 additions and 166 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,34 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.2.5] - 2021-02-20

### BREAKING CHANGES
- Added `cssClass` property to settings. Pass custom class for `.cupertino-pane-wrapper` here to style later, instead of picking custom class from your element.
- Removed `darkmode` property and `setDarkmode()` method. Proper way you can style darkmode with variables:
```css
body.dark {
--cupertino-pane-icon-close-color: #a8a7ae;
--cupertino-pane-background: #1c1c1d;
--cupertino-pane-color: #ffffff;
--cupertino-pane-shadow: 0 4px 16px rgb(0 0 0 / 12%);
--cupertino-pane-border-radius: 20px;
--cupertino-pane-move-background: #424246;
--cupertino-pane-destroy-button-background: #424246;
}
```

### Extra
- 3 Panes live environment [demo available](https://jsbin.com/xavifaf)

### Features
- CSS variables available [Readme](https://github.com/roman-rr/cupertino-pane/blob/master/CHANGELOG.md#css-variables)

### Bug Fixed
- Fixed styles for few panes in single DOM [#133](https://github.com/roman-rr/cupertino-pane/issues/133)
- Fixed with internal styles injector in DOM. Minified styles now injected once inside `<head>` tag.
- Fixed backdrop with `{ animate:false }`

## [1.2.4] - 2021-01-28

### Enhancements
Expand Down
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Cupertino Panes is multi-functional panes & boards with touch technologies. <br>
* [Settings](#settings)
* [Public Methods](#public-methods)
* [Attributes](#attributes)
* [CSS Variables](#css-variables)
* [Keyboard issues](#keyboard-issues)
* [Future Goals](#future-goals)
* [Contributors](#contributors)
Expand Down Expand Up @@ -64,6 +65,7 @@ Support this project with your organization. Your logo will show up here with a

## Demonstration
- [Base live](https://output.jsbin.com/fuhisey)
- [3 Panes live](https://jsbin.com/xavifaf)
- [Z-Stack live](https://output.jsbin.com/wedegox)
- [Draggable over live](https://jsbin.com/hamedec)
- [Prevent dismiss live](https://output.jsbin.com/keravam)
Expand Down Expand Up @@ -186,14 +188,14 @@ new CupertinoPane(element); // HTMLElement
| **inverse** | `boolean` | false | On `true` will change pane direction from `bottom-to-top` to `top-to-bottom` |
| **parentElement** | `string` | Parent element selector | Element selector where pane will rendered |
| **followerElement** | `string` | Follower element selector | Element with selector will following pane transitions |
| **cssClass** | `string` | null | Additional classes to apply for wrapper to stylize different panes |
| **fitHeight** | `boolean` | 'false' | Automatically calc and define content height as top breakpoint. Middle and bottom breakpoint will be disabled |
| **maxFitHeight** | `number` | 'null' | Define a maximum possible automatically calculated height with `fitHeight` property |
| **fitScreenHeight** | `boolean` | 'true' | On `true` will automatically adjust pane maximum height to screen height |
| **pushElement** | `string` | Push element selector | DOM Element will be pushed and scaled |
| **pushMinHeight** | `number` | Most bottom available point | Height from which 3d push effect will be started |
| **pushYOffset** | `number` | Negative margin value to place pushed element upper |
| **initialBreak** | `'top' \| 'middle' \| 'bottom'` | 'middle' | Initial pane position |
| **darkMode** | `boolean` | false | Initial pane styles |
| **backdrop** | `boolean` | false | Dimmed overlay will rendered with pane if `true` |
| **backdropOpacity** | `number` | 0.4 | Dimmed overlay opacity value |
| **animationType** | `string` | 'ease' | Base transition timing function |
Expand Down Expand Up @@ -311,11 +313,6 @@ Show/Hide backdrop method
myPane.backdrop({show: true}); // show
myPane.backdrop({show: false}); // hide
```
### setDarkMode({enable: **boolean = false**})
Enable dark scheme color for some elements
```javascript
myPane.setDarkMode({enable: true}); // enable darkmode
```
### setBreakpoints(breakpoints: **PaneBreaks**)
Method updates breakpoints configuration for rendered Pane
```javascript
Expand Down Expand Up @@ -371,6 +368,17 @@ By default using for full pane area, but in some cases good useful with header.
</div>
```

## CSS Variables
| Variable | Default |
| - | - |
| **--cupertino-pane-background** | `#ffffff` |
| **--cupertino-pane-color** | `#333333` |
| **--cupertino-pane-shadow** | `#0 4px 16px rgba(0,0,0,.12)` |
| **--cupertino-pane-border-radius** | `#20px` |
| **--cupertino-pane-move-background** | `#c0c0c0` |
| **--cupertino-pane-destroy-button-background** | `#ebebeb` |
| **--cupertino-pane-icon-close-color** | `#7a7a7e` |

## Keyboard issues
Inputs and textareas in pane may push mobile keyboard on devices, and close pane visibility. Next cases describe how to proper handle this issues.
### Browser/WebView
Expand All @@ -391,13 +399,12 @@ By default, we are now handle keyboard in hybrid mobile applications and push pa
If you would like handle this part by yourself, set option `handleKeyboard: false`.

## Future Goals
- [Bugs] Pane configuration classes + variables [#133](https://github.com/roman-rr/cupertino-pane/issues/133)
- [Enhancement] Z-stack with N cards
- [Enhancement] Z-stack with N cards and proper transitions
- [Feature] Chevron-up draggable
- [Platforms] RN - bridge to existed swift panes
- [Platforms] Expo wrapper + Example + Twitter
- [Accurance] Draw experiment application (Normal/TimeStamp/Native) - Native Touch Plugin
- [Feature] R-Pane (Rectangular pane - safari video frame example)
- [Platforms] RN - bridge to existed swift panes
- [Platforms] Expo wrapper + Example + Twitter
- [Docs] (Traffic + Carbon ads) -> Docs engine <!-- Ask Vladimir first + check https://github.com/denoland/doc_website https://github.com/ionic-team/ionic-docs (Swiper, F7, Netlify, Gatsby, DO, GH pages) -->
- [Showcase] No background - glow for view + (collaboration with arwes)
- [Showcase] Materials (glass/metal/blur) <!-- https://codepen.io/TurkAysenur/full/ZEpxeYm + glass + metal three -->
Expand Down
4 changes: 0 additions & 4 deletions dist/cupertino-pane.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export declare class CupertinoPane {
screenHeightOffset: number;
preventDismissEvent: boolean;
preventedDismiss: boolean;
private iconCloseColor;
rendered: boolean;
wrapperEl: HTMLDivElement;
paneEl: HTMLDivElement;
Expand Down Expand Up @@ -71,9 +70,6 @@ export declare class CupertinoPane {
* Enable pane drag events
*/
enableDrag(): void;
setDarkMode(conf?: {
enable: boolean;
}): void;
/**
* Public user method to reset breakpoints
* @param conf
Expand Down
76 changes: 32 additions & 44 deletions dist/cupertino-pane.esm.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cupertino-pane.esm.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ab84681

Please sign in to comment.