Skip to content

Commit 510ff73

Browse files
committed
Rename all the stuff to popoff
1 parent 09c7f9f commit 510ff73

File tree

5 files changed

+21
-77
lines changed

5 files changed

+21
-77
lines changed

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Poppy is a base component for building any kind of popups: modal, tooltip, popup, dropdown, confirm, notifier, popover, lightbox, balloon etc. [Demo](http://dfcreative.github.io/poppy).
1+
Poppy is a base component for building any kind of popups: modal, tooltip, popup, dropdown, confirm, notifier, popover, lightbox, balloon etc. [Demo](http://dfcreative.github.io/popoff).
22

33

4-
[![npm install poppy](https://nodei.co/npm/poppy.png?mini=true)](https://npmjs.org/package/poppy/)
4+
[![npm install popoff](https://nodei.co/npm/popoff.png?mini=true)](https://npmjs.org/package/popoff/)
55

66

77
```js
8-
var Poppy = require('poppy');
8+
var Poppy = require('popoff');
99

1010
var popup = new Poppy({
1111
closable: true,

Diff for: TODO.md

+3-59
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,8 @@
1-
* Think how to implement hover on dropdown target after being showed
2-
3-
* BUG: dropdown fucks up on outer click
4-
5-
* Precisely-positioned element instant overlay, as lebedev makes. `position: [-10, -10]`, probably.
6-
7-
* Think of getting rid of overlay, animating it by css
8-
9-
* Form error/warning/success styles of balloons
10-
11-
* Test title along with balloon
12-
13-
* Make lightbox slider test page.
14-
* Make zoomer test page.
15-
* Make balloon with remote html-content test page (as for single post page)
16-
17-
* Bug: top offscreen doesn’t work. Fix clipping positions of tooltips.
18-
19-
* Make lightbox work. Connect some slider, make centrizing API method.
20-
21-
* Make .popupper return popupped object. To call API without difficulties in Zepto.
22-
23-
* Test href along with title on a
24-
25-
* Fix page auto-displacing on anchor link with popupper autolaunch (if element somewhere below in the content)
1+
* lightbox.
2+
* zoomer.
263

274
* Make order of popups to show, like tutorial
285

29-
* Notify if content passed is null, like 0-selector
30-
31-
* Make window popupper: assign popupper to the window as target
32-
33-
* Fix up tests
34-
* Fix up component.json, package.json and other meta-stuff
35-
36-
* Make external hrefs handling
37-
* Fonts
38-
* Images
39-
* Iframes
40-
* Documents
41-
42-
* Handle http as content
43-
44-
* Make default styles
45-
46-
* handle case when the container is outside the viewport
47-
486
* Zones to avoid when place
497

50-
* Animations throught anim-3d.less.
51-
* Event callbacks
52-
* Lightbox, dropdown, tooltip, balloon, dialog and popup in one.
53-
54-
* Handle out-of-screen, out-of-size
55-
56-
* Aside-menu-popup (like on phones)
57-
58-
* Test custom behaviour
59-
60-
* Test calling methods from outside, like $(thing).popupper("method");
61-
62-
* Test position:center when the position is absolute, not fixed
63-
64-
* Centrize when window resized
8+
* Event callbacks

Diff for: index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ const ANIM_END = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationen
1818

1919

2020
/**
21-
* @class Poppy
21+
* @class Popup
2222
*/
23-
class Poppy extends Emitter {
23+
class Popup extends Emitter {
2424
/**
2525
* @constructor
2626
*
2727
* @param {Element} el An element to take as a content
2828
* @param {Object} options Showing options
2929
*
30-
* @return {Poppy} A poppy controller
30+
* @return {Popup} A poppy controller
3131
*/
3232
constructor (el, options) {
3333
super();
@@ -151,7 +151,7 @@ class Poppy extends Emitter {
151151
}
152152

153153

154-
var proto = Poppy.prototype;
154+
var proto = Popup.prototype;
155155

156156

157157
/** Show overlay */
@@ -345,4 +345,4 @@ proto.state = {
345345
proto.effect = 'fade';
346346

347347

348-
module.exports = Poppy;
348+
module.exports = Popup;

Diff for: package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "poppy",
2+
"name": "popoff",
33
"version": "1.0.1",
44
"description": "Popups, tooltips and overlays",
55
"main": "index.js",
@@ -27,13 +27,13 @@
2727
"watchify": "^3.3.0"
2828
},
2929
"scripts": {
30-
"watch": "watchify -t babelify -r ./index.js:poppy -r lorem-ipsum -r draggy -r resizable -d -o test/bundle.js",
30+
"watch": "watchify -t babelify -r ./index.js:popoff -r lorem-ipsum -r draggy -r resizable -d -o test/bundle.js",
3131
"css": "postcss -u autoprefixer ./index.css > ./test/bundle.css"
3232
},
3333
"style": "index.css",
3434
"repository": {
3535
"type": "git",
36-
"url": "https://github.com/dfcreative/poppy"
36+
"url": "https://github.com/dfcreative/popoff"
3737
},
3838
"keywords": [
3939
"component",
@@ -48,7 +48,7 @@
4848
"author": "Deema Ywanow",
4949
"license": "MIT",
5050
"bugs": {
51-
"url": "https://github.com/dfcreative/poppy/issues"
51+
"url": "https://github.com/dfcreative/popoff/issues"
5252
},
53-
"homepage": "https://dfcreative.github.io/poppy"
53+
"homepage": "https://dfcreative.github.io/popoff"
5454
}

Diff for: test/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var Poppy = require('poppy');
1+
var Poppy = require('popoff');
22
var ipsum = require('lorem-ipsum');
33
var Draggable = require('draggy');
44
var Resizable = require('resizable');
@@ -17,7 +17,7 @@ describe('type', function(){
1717
target.className = 'target';
1818
p.appendChild(target);
1919

20-
var poppy = new Poppy(ipsum({count: 3, units: 'paragraph', format: 'html'}), {
20+
var popoff = new Poppy(ipsum({count: 3, units: 'paragraph', format: 'html'}), {
2121
target: target,
2222
type: 'dropdown'
2323
});
@@ -29,7 +29,7 @@ describe('type', function(){
2929
target.className = 'target';
3030
p.appendChild(target);
3131

32-
var poppy = new Poppy(ipsum({count: 3, units: 'paragraph', format: 'html'}), {
32+
var popoff = new Poppy(ipsum({count: 3, units: 'paragraph', format: 'html'}), {
3333
target: target,
3434
type: 'tooltip'
3535
});
@@ -44,13 +44,13 @@ describe('type', function(){
4444
var el = document.createElement('div');
4545
el.innerHTML = ipsum({count: 3, units: 'paragraph', format: 'html'});
4646

47-
var poppy = new Poppy(el, {
47+
var popoff = new Poppy(el, {
4848
closable: true,
4949
escapable: true
5050
});
5151

5252
target.onclick = function () {
53-
poppy.show();
53+
popoff.show();
5454
}
5555

5656
Draggable(el);

0 commit comments

Comments
 (0)