titon-toolkit 1.5.3 → 2.0.0.pre.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +180 -61
- data/license.md +1 -1
- data/readme.md +7 -7
- data/roadmap.md +4 -20
- data/scss/toolkit/_common.scss +426 -73
- data/scss/toolkit/{layout/base.scss → base.scss} +13 -25
- data/scss/toolkit/components/accordion.scss +6 -6
- data/scss/toolkit/components/blackout.scss +13 -11
- data/scss/toolkit/components/breadcrumb.scss +2 -2
- data/scss/toolkit/components/button-group.scss +130 -51
- data/scss/toolkit/components/button.scss +110 -9
- data/scss/toolkit/components/carousel.scss +20 -46
- data/scss/toolkit/{layout → components}/code.scss +1 -1
- data/scss/toolkit/components/divider.scss +24 -23
- data/scss/toolkit/components/drop.scss +35 -26
- data/scss/toolkit/components/flyout.scss +5 -10
- data/scss/toolkit/{layout → components}/form.scss +72 -65
- data/scss/toolkit/components/grid.scss +21 -116
- data/scss/toolkit/components/icon.scss +27 -13
- data/scss/toolkit/components/input-group.scss +4 -6
- data/scss/toolkit/components/input.scss +21 -21
- data/scss/toolkit/components/label.scss +76 -66
- data/scss/toolkit/components/lazy-load.scss +2 -2
- data/scss/toolkit/components/loader.scss +8 -8
- data/scss/toolkit/components/mask.scss +5 -9
- data/scss/toolkit/components/matrix.scss +4 -4
- data/scss/toolkit/components/modal.scss +33 -40
- data/scss/toolkit/components/notice.scss +5 -9
- data/scss/toolkit/components/off-canvas.scss +80 -60
- data/scss/toolkit/components/pagination.scss +75 -34
- data/scss/toolkit/components/pin.scss +7 -3
- data/scss/toolkit/components/popover.scss +14 -14
- data/scss/toolkit/components/progress.scss +25 -14
- data/scss/toolkit/{layout → components}/responsive.scss +31 -37
- data/scss/toolkit/components/showcase.scss +10 -36
- data/scss/toolkit/components/step.scss +7 -7
- data/scss/toolkit/components/switch.scss +47 -33
- data/scss/toolkit/components/tab.scss +42 -0
- data/scss/toolkit/components/table.scss +27 -25
- data/scss/toolkit/components/toast.scss +13 -9
- data/scss/toolkit/components/tooltip.scss +15 -16
- data/scss/toolkit/components/type-ahead.scss +6 -6
- data/scss/toolkit/{layout → components}/typography.scss +2 -2
- data/scss/toolkit/mixins/_components.scss +12 -6
- data/scss/toolkit/mixins/_grid.scss +5 -1
- data/scss/toolkit/mixins/_helper.scss +42 -3
- data/scss/toolkit/mixins/_layout.scss +22 -13
- data/scss/toolkit/mixins/_responsive.scss +39 -39
- data/scss/toolkit.scss +12 -18
- data/version.md +1 -1
- metadata +16 -22
- data/scss/toolkit/components/tabs.scss +0 -43
- data/scss/toolkit/effects/oval.scss +0 -37
- data/scss/toolkit/effects/pill.scss +0 -94
- data/scss/toolkit/effects/skew.scss +0 -85
- data/scss/toolkit/effects/visual.scss +0 -64
- data/scss/toolkit/mixins/_state.scss +0 -36
- data/scss/toolkit/themes/demo.scss +0 -569
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45212dc7c2e4c712241c179a71040b88879a55d2
|
4
|
+
data.tar.gz: 1cf11bbd68b151cffc4eccfab446608d14719e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b2201b5614a5e555743061a1d9c73a5bfec6719b6edf89de5aef5188aa0137a18ba1cc31bc20fd5f214d67ec62fc346d45d5065d3c1a3b8811f52209f970ae2
|
7
|
+
data.tar.gz: a64f2c94da6ca15f2e9d64a5a1d29385ab46cf93fbbaaadf199af14595945cacd864e891777f091db8dd325d8f719c4f881b51de217e4c5e6caa0b5e3829202a
|
data/changelog.md
CHANGED
@@ -2,65 +2,184 @@
|
|
2
2
|
|
3
3
|
Older versions can be found in the documentation changelogs.
|
4
4
|
|
5
|
-
##
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
## 2.0.0 ##
|
6
|
+
This major release includes a rewritten class, event, hooks, and component layer.
|
7
|
+
It improves overall tooling, drops out dated technologies, introduces new concepts, and more.
|
8
|
+
Check out the release update for more information.
|
9
9
|
|
10
|
-
|
11
|
-
*
|
12
|
-
|
13
|
-
*
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
*
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
* Added
|
30
|
-
|
31
|
-
* Added
|
32
|
-
*
|
33
|
-
*
|
34
|
-
* Fixed a bug
|
35
|
-
*
|
36
|
-
*
|
37
|
-
*
|
38
|
-
*
|
39
|
-
*
|
40
|
-
*
|
41
|
-
|
42
|
-
*
|
43
|
-
*
|
44
|
-
*
|
45
|
-
*
|
46
|
-
*
|
47
|
-
|
48
|
-
*
|
49
|
-
*
|
50
|
-
* Added
|
51
|
-
*
|
52
|
-
*
|
53
|
-
*
|
54
|
-
*
|
55
|
-
*
|
56
|
-
*
|
57
|
-
*
|
58
|
-
*
|
59
|
-
|
60
|
-
*
|
61
|
-
|
62
|
-
*
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
10
|
+
* Dropped MooTools support
|
11
|
+
* Dropped IE8 support
|
12
|
+
* Upgraded to jQuery 2
|
13
|
+
* Upgraded to Gulp from Grunt
|
14
|
+
* Upgraded to Sass 3.4 and Compass 1.0
|
15
|
+
* Upgraded to RequireJS for JS dependency management and compilation
|
16
|
+
* Added a robust namespacing system which allows components to be nested within each other
|
17
|
+
* Added unit tests for all components through Mocha, Chai, and PhantomJS
|
18
|
+
* Decoupled the CSS and JS layers so that CSS classes (excluding states) are no longer hardcoded
|
19
|
+
* Refactored components to make more use of templates for DOM building
|
20
|
+
* Renamed most instances of the word "component" to "plugin" to differentiate between components and behaviors,
|
21
|
+
with plugins being a top-level grouping of everything
|
22
|
+
* Renamed `--components` to `--plugins` in the Gulp command line
|
23
|
+
* Removed themes
|
24
|
+
* Sass
|
25
|
+
* Added `$enable-small-size` and `$enable-large-size` to toggle size classes in CSS output
|
26
|
+
* Added `$enable-all-effects`, `$enable-all-modifiers`, and `$enable-all-animations` for easier styling
|
27
|
+
* Added `$breakpoint-range-xsmall`, `$breakpoint-range-small`, `$breakpoint-range-medium`, `$breakpoint-range-large`,
|
28
|
+
and `$breakpoint-range-xlarge` for responsive range breakpoints
|
29
|
+
* Added `$bem-element-separator` and `$bem-modifier-separator` to control the BEM class conventions
|
30
|
+
* Added `class-name()` and `bem()` for building CSS class names
|
31
|
+
* Added `full-screen()` mixin for full screen fixed positioning
|
32
|
+
* Added `in-range($range)` mixin that will accept a range of breakpoints and output the correct min/max width media query
|
33
|
+
* Added `in-xsmall()`, `in-xlarge()`, `if-xsmall()`, and `if-xlarge()` responsive mixins
|
34
|
+
* Fixed a bug in `join-classes()` when a class name doesn't start with a period
|
35
|
+
* Moved `.span-*` classes from the Grid component into the shared base file
|
36
|
+
* Updated all component CSS class names to use Sass variables for more configuration control
|
37
|
+
* Updated all modifiers to not use `@extend` to reduce CSS output (requires full class declarations now)
|
38
|
+
* Updated all modifiers to be toggleable through Sass variables
|
39
|
+
* Updated `:before` and `:after` pseudo elements to use double colon `::` syntax
|
40
|
+
* Updated `$size-*` and `$shape-*` variables to be prefixed by default with a `.`
|
41
|
+
* Refactored effects into their respective components that can be toggled through Sass variables
|
42
|
+
* Refactored the visual effects into modifiers for the Button component
|
43
|
+
* Removed `is-active()`, `is-disabled()`, and `is-*()` state mixins
|
44
|
+
* Removed `in-mobile()`, `in-tablet()`, `in-desktop()`, `if-mobile()`, `if-tablet()`, and `if-desktop()` responsive mixins
|
45
|
+
* Removed `.arrow-*` classes
|
46
|
+
* Removed `$breakpoint-*` variables and replaced with with range list variables
|
47
|
+
* JavaScript
|
48
|
+
* Added a `Base` class layer that both `Component` and `Behavior` extend
|
49
|
+
* Added a new hook layer to `Base` that replaces the instance event layer
|
50
|
+
* Added `$.fn.toString()` which returns the elements markup as a string
|
51
|
+
* Improved the prototype inheritance layer by initializing a new class instead of extending objects
|
52
|
+
* Refactored the class layer so that constructors are passed as a property instead of an argument
|
53
|
+
* Refactored so that class properties are passed through an object instead of set through the constructor
|
54
|
+
* Removed `$.cookie()` and `$.removeCookie()` methods (use a third-party instead)
|
55
|
+
* Renamed `$.fn.addData()` to `$.fn.cache()`
|
56
|
+
* Updated `$.fn.conceal()` to set the element to display none when the transitions is complete
|
57
|
+
* Updated `$.fn.reveal()` to set the element to display block (or similar) before transitions occur
|
58
|
+
* Component
|
59
|
+
* Added `hiding`, `showing`, and `destroying` events
|
60
|
+
* Added option groups
|
61
|
+
* Added `namespace` property
|
62
|
+
* Added `ns()` method for generating namespace selectors
|
63
|
+
* Refactored the `requestData()` method
|
64
|
+
* Added `url`, `cache` (whether to cache in the class), and `settings` (AJAX settings) to the XHR object used by jQuery
|
65
|
+
* Removed the `before`, `done`, and `fail` arguments
|
66
|
+
* Moved the callbacks into `onRequestBefore`, `onRequestDone`, and `onRequestFail` methods
|
67
|
+
* Renamed the `hide` event to `hidden`
|
68
|
+
* Renamed the `show` event to `shown`
|
69
|
+
* Renamed the `destroy` event to `destroyed`
|
70
|
+
* Renamed the `component` property to `name`
|
71
|
+
* Renamed the `doDestroy` method to `destructor`
|
72
|
+
* Components
|
73
|
+
* Accordion
|
74
|
+
* The active class is now applied to the header instead of the parent `li`
|
75
|
+
* Added `calculate()` method for determining section heights
|
76
|
+
* Removed the `jump` event
|
77
|
+
* Renamed selectors `.accordion-header`, `.accordion-section` to `[data-accordion-header]`, `[data-accordion-section]`
|
78
|
+
* Blackout
|
79
|
+
* Added `loaderTemplate` and `showLoading` options for generating loader markup
|
80
|
+
* Removed `hideLoader` and `showLoader` events
|
81
|
+
* Removed `loader` and `waveCount` options in favor of `loaderTemplate`
|
82
|
+
* Renamed `Toolkit.Blackout.factory()` to `Toolkit.Blackout.instance()`
|
83
|
+
* Carousel
|
84
|
+
* Added a `calculate()` method that triggers on load/resize to determine carousel dimensions
|
85
|
+
* Added a `swipe` option
|
86
|
+
* Added `cycling`, `cycled`, `jumping` and `jumped` events
|
87
|
+
* Removed `cycle` and `jump` events
|
88
|
+
* Renamed selectors `.carousel-items ul`, `.carousel-tabs`, `.carousel-next`, `.carousel-prev`, `.carousel-start`, `.carousel-stop` to
|
89
|
+
`[data-carousel-items]`, `[data-carousel-tabs]`, `[data-carousel-next]`, `[data-carousel-prev]`, `[data-carousel-start]`, `[data-carousel-stop]`
|
90
|
+
* Removed `.carousel-prev`, `.carousel-next`, and `.carousel-tabs` styles
|
91
|
+
* Divider
|
92
|
+
* Improved the divider to support longer strings of text and multiline text
|
93
|
+
* Drop
|
94
|
+
* All drop menus will now require a `data-drop-menu` attribute
|
95
|
+
* Flyout
|
96
|
+
* Added `headingTemplate` option
|
97
|
+
* Renamed selectors `.flyout` to `[data-flyout-menu]`
|
98
|
+
* Form
|
99
|
+
* Improved disabled state across inputs
|
100
|
+
* Normalized `fieldset` and `legend` when used in an inline form
|
101
|
+
* Grid
|
102
|
+
* Added new `xsmall` and `xlarge` (disabled by default) column sizes
|
103
|
+
* Added `$grid-sizes` map for associating sizes to breakpoints and column counts
|
104
|
+
* Added `$grid-columns-xsmall` and `$grid-columns-xlarge` for new column counts
|
105
|
+
* Added `$grid-class-end` to change the `.end` class
|
106
|
+
* Changed `$grid-columns-small` from `6` to `12`
|
107
|
+
* Fixed a bug where `.push-*` and `.pull-*` classes were being generated if `$grid-push-pull` was disabled
|
108
|
+
* Removed the `mobile`, `tablet`, and `desktop` column sizes
|
109
|
+
* Removed `$grid-columns-mobile`, `$grid-columns-tablet`, and `$grid-columns-desktop`
|
110
|
+
* Icon
|
111
|
+
* Added a `$icon-sizes` list variable to control the CSS output
|
112
|
+
* Input
|
113
|
+
* Added a `filterClasses` option which can be used in conjunction with `copyClasses`
|
114
|
+
* Added `template`, `checkboxTemplate`, `radioTemplate`, `selectTemplate`, `optionsTemplate`, `headingTemplate`, and `descTemplate`
|
115
|
+
* Renamed `arrowContent` to `arrowTemplate`
|
116
|
+
* Renamed selectors `.select-options`, `.select-label`, `.select-arrow` to
|
117
|
+
`[data-select-options]`, `[data-select-label]`, `[data-select-arrow]`
|
118
|
+
* Lazy Load
|
119
|
+
* Added `loading` and `loaded` events
|
120
|
+
* Added a `lazyClass` option that defaults to `.lazy-load`
|
121
|
+
* Added a `timer` property
|
122
|
+
* Fixed a bug where `shutdown` event was being called twice
|
123
|
+
* Removed `load` event
|
124
|
+
* Mask
|
125
|
+
* Added `template` and `messageTemplate` options
|
126
|
+
* Renamed `.mask-target` to `.is-maskable`
|
127
|
+
* Renamed selectors `.mask`, `.mask-message` to `[data-mask]`, `[data-mask-message]`
|
128
|
+
* Matrix
|
129
|
+
* Added `appending`, `prepending`, `removing`, `rendering`, and `rendered` events
|
130
|
+
* Improved the deferred image rendering process and item fade in animation
|
131
|
+
* Removed `render` event
|
132
|
+
* Updated to no longer automatically set `.matrix` on the container
|
133
|
+
* Modal
|
134
|
+
* IDs can now be passed as the 2nd argument to `show()`
|
135
|
+
* Renamed selectors `.modal-inner`, `.modal-hide`, `.modal-submit` to
|
136
|
+
`[data-modal-content]`, `[data-modal-close]`, `[data-modal-submit]`
|
137
|
+
* Off Canvas
|
138
|
+
* Added a `swipe` option
|
139
|
+
* Renamed selectors `.on-canvas`, `.off-canvas` to `[data-offcanvas-content]`, `[data-offcanvas-sidebar]`
|
140
|
+
* Updated so that `[data-offcanvas-sidebar]` defines the default side orientation
|
141
|
+
* Updated to no longer automatically set `.off-canvas` on the sidebar
|
142
|
+
* Pagination
|
143
|
+
* Updated to only support `ol` lists
|
144
|
+
* Pin
|
145
|
+
* Updated to have position absolute by default for `.pin`
|
146
|
+
* Updated to no longer automatically set `.pin` on the element
|
147
|
+
* Popover
|
148
|
+
* Updated so that an `.is-active` class is toggled on the target node
|
149
|
+
* Updated the `follow` attribute to `false` always
|
150
|
+
* Removed the `delay` option
|
151
|
+
* Renamed selectors `.popover-head`, `.popover-body` to `[data-popover-header]`, `[data-popover-content]`
|
152
|
+
* Responsive
|
153
|
+
* Added `.show-xsmall`, `.show-xlarge`, `.hide-xsmall`, and `.hide-xlarge` classes
|
154
|
+
* Removed `.show-mobile`, `.show-tablet`, `.show-desktop`, `.hide-mobile`, `.hide-tablet`, and `.hide-desktop` classes
|
155
|
+
* Removed `$responsive-size` variable
|
156
|
+
* Showcase
|
157
|
+
* Added a `swipe` option
|
158
|
+
* Added `jumping` and `jumped` events
|
159
|
+
* Removed `jump` event
|
160
|
+
* Removed `.showcase-prev`, `.showcase-next`, and `.showcase-tabs` styles
|
161
|
+
* Renamed selectors `.showcase-items`, `.showcase-tabs`, `.showcase-next`, `.showcase-prev`, `.showcase-hide`, `.showcase-caption` to
|
162
|
+
`[data-showcase-items]`, `[data-showcase-tabs]`, `[data-showcase-next]`, `[data-showcase-prev]`, `[data-showcase-close]`, `[data-showcase-caption]`
|
163
|
+
* Stalker
|
164
|
+
* Added `activating`, `activated`, `deactivating`, and `deactivated` events
|
165
|
+
* Removed the `applyToParent` option
|
166
|
+
* Removed `activate` and `deactivate` events
|
167
|
+
* Updated to no longer automatically set `.stalker`, `.stalker-target`, and `.stalker-marker`
|
168
|
+
* Switch
|
169
|
+
* The `.pill` and `.round` classes have moved to `.switch-bar` from `.switch`
|
170
|
+
* Tabs
|
171
|
+
* Has been renamed to `Tab` and all files and references have been changed
|
172
|
+
* Option `preventDefault` now applies to both cookie and fragment persistence
|
173
|
+
* Option `ajax` has changed to `false` by default
|
174
|
+
* Fixed a bug trying to determine the index to show on load
|
175
|
+
* Renamed selectors `.tab-nav`, `.tab-section` to `[data-tab-nav]`, `[data-tab-section]`
|
176
|
+
* Updated the `is-active` state to be set on the tab, instead of the parent `li`
|
177
|
+
* Toast
|
178
|
+
* Added a `toastTemplate` property
|
179
|
+
* Added a `reset()` method to reset the tooltip state
|
180
|
+
* Tooltip
|
181
|
+
* Removed the `delay` option
|
182
|
+
* Renamed selectors `.tooltip-head`, `.tooltip-body` to `[data-tooltip-header]`, `[data-tooltip-content]`
|
183
|
+
* Type Ahead
|
184
|
+
* Added `shadowTemplate`, `titleTemplate`, `descTemplate`, `highlightTemplate`, and `headingTemplate` options
|
185
|
+
* The `matcher` function now accepts the item object as the 1st argument
|
data/license.md
CHANGED
data/readme.md
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
```
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
______ ______ ______ __ __ __ __ ______
|
3
|
+
/\__ _\/\ __ \/\ __ \/\ \ /\ \/ /_ /\ \/\__ _\
|
4
|
+
\/_/\ \/\ \ \/\ \ \ \/\ \ \ \___\ \ _ \\ \ \/_/\ \/
|
5
|
+
\ \_\ \ \_____\ \_____\ \_____\ \_\ \_\\ \_\ \ \_\
|
6
|
+
\/_/ \/_____/\/_____/\/_____/\/_/\/_/ \/_/ \/_/
|
7
7
|
```
|
8
8
|
|
9
|
-
# Toolkit
|
9
|
+
# Toolkit v2.0.0 RC1 #
|
10
10
|
|
11
11
|
Titon Toolkit is a collection of very powerful user interface components and utility classes
|
12
12
|
for the responsive, mobile, and modern web. Each component represents encapsulated HTML, CSS,
|
13
13
|
and JavaScript functionality for role specific page elements.
|
14
14
|
|
15
15
|
Toolkit makes use of the latest and greatest technology. This includes HTML5 for semantics,
|
16
|
-
CSS3 for animations and styles, Sass for CSS pre-processing,
|
16
|
+
CSS3 for animations and styles, Sass for CSS pre-processing, Gulp for task and package management,
|
17
17
|
and powerful new browser APIs for the JavaScript layer.
|
18
18
|
|
19
19
|
* [Official Website](http://titon.io/toolkit)
|
data/roadmap.md
CHANGED
@@ -2,26 +2,11 @@
|
|
2
2
|
|
3
3
|
All releases will contain bug fixing and polishing for current features.
|
4
4
|
|
5
|
-
### 2.
|
6
|
-
* Remove the MooTools port.
|
7
|
-
* Remove CSS dependencies from the JS layer, use the DOM (classes vs attributes, semantic tags).
|
8
|
-
* Make CSS class names customizable.
|
9
|
-
* Move CSS component styles into mixins, that are inherited into classes.
|
10
|
-
* Use :: pseudo element syntax.
|
11
|
-
* Drop IE8 support and upgrade to jQuery 2.
|
12
|
-
* Replace examples with unit tests.
|
13
|
-
* Update to use AMD/requirejs.
|
14
|
-
* Switch to Gulp.
|
15
|
-
* Updated to Sass 3.3 (maps for settings).
|
16
|
-
* Refactor events for before/after conditions.
|
5
|
+
### 2.x ###
|
17
6
|
* RTL support.
|
18
|
-
* Add debug option.
|
19
|
-
* Rename Tabs to Tab.
|
20
|
-
* Remove cookie dependency.
|
21
7
|
* Take Google fundamentals into consideration - https://developers.google.com/web/fundamentals/
|
22
|
-
* Gracefully handle situations where components are nested within the same component. How to handle event delegation?
|
23
8
|
|
24
|
-
### 3.
|
9
|
+
### 3.x ###
|
25
10
|
* Remove jQuery dependency and go straight vanilla?
|
26
11
|
* Switch to Less (removes sass/compass/ruby dependencies).
|
27
12
|
* Implement custom elements / components - http://w3c.github.io/webcomponents/explainer/
|
@@ -32,9 +17,8 @@ All releases will contain bug fixing and polishing for current features.
|
|
32
17
|
* Dialog - A component that prompts the user for an action. Sister to the modal component.
|
33
18
|
* Guide - A component that displays introduction guides (popovers) in a sequential order. Useful for show casing new features and functionality.
|
34
19
|
* Flex - A grid component that uses flex box instead of floats.
|
20
|
+
* Drag & Drop - Provides a drag and drop system.
|
35
21
|
|
36
22
|
### Behaviors ###
|
37
23
|
* Form Validator - Provides form validation.
|
38
|
-
* Data Binding - Provides 2 way data binding.
|
39
|
-
* Drag & Drop - Provides a drag and drop system.
|
40
|
-
* Move Lazy Load to behaviors.
|
24
|
+
* Data Binding - Provides 2 way data binding.
|