playbook_ui 13.11.0 → 13.11.1.pre.alpha.play900startratingasinput1530
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +3 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.html.erb +22 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.md +3 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.html.erb +40 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.md +1 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md +7 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default_swift.md +7 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_flip_swift.md +11 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_props_swift.md +8 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate_swift.md +11 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes_swift.md +46 -0
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_image/docs/_image_props_swift.md +7 -0
- data/app/pb_kits/playbook/pb_image/docs/_rounded_image_swift.md +47 -0
- data/app/pb_kits/playbook/pb_image/docs/_size_image_swift.md +47 -0
- data/app/pb_kits/playbook/pb_image/docs/_size_none_image_swift.md +15 -0
- data/app/pb_kits/playbook/pb_image/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default_swift.md +11 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_swift.md +72 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_swift.md +41 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_label_value_props_swift.md +11 -0
- data/app/pb_kits/playbook/pb_label_value/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_message/docs/_message_default_swift.md +57 -0
- data/app/pb_kits/playbook/pb_message/docs/_message_props_swift.md +12 -0
- data/app/pb_kits/playbook/pb_message/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +61 -49
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.tsx +151 -54
- data/app/pb_kits/playbook/pb_star_rating/custom-icons.js +356 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.html.erb +7 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_color_options.jsx +40 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.html.erb +11 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx +17 -2
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb +6 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx +22 -5
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb +12 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx +57 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb +23 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.jsx +59 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +10 -5
- data/app/pb_kits/playbook/pb_star_rating/docs/index.js +6 -0
- data/app/pb_kits/playbook/pb_star_rating/star.svg +3 -0
- data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +56 -15
- data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +49 -6
- data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +33 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +4 -4
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +26 -2
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +1 -17
- data/app/pb_kits/playbook/pb_table/table_header.html.erb +4 -3
- data/app/pb_kits/playbook/pb_table/table_header.rb +28 -5
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +25 -9
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -2
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb +1 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.html.erb +39 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.md +5 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +45 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.md +3 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_tooltip/index.js +6 -0
- data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -1
- data/app/pb_kits/playbook/pb_tooltip/tooltip.test.jsx +34 -0
- data/app/pb_kits/playbook/playbook-doc.js +1 -1
- data/dist/playbook-rails.js +5 -5
- data/lib/playbook/pb_doc_helper.rb +2 -21
- data/lib/playbook/version.rb +2 -2
- metadata +39 -8
- data/app/pb_kits/playbook/pb_dawg/docs/example.yml +0 -9
@@ -0,0 +1,356 @@
|
|
1
|
+
/* eslint-disable */
|
2
|
+
(function () {
|
3
|
+
'use strict';
|
4
|
+
|
5
|
+
function ownKeys(object, enumerableOnly) {
|
6
|
+
var keys = Object.keys(object);
|
7
|
+
|
8
|
+
if (Object.getOwnPropertySymbols) {
|
9
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
10
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
11
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
12
|
+
})), keys.push.apply(keys, symbols);
|
13
|
+
}
|
14
|
+
|
15
|
+
return keys;
|
16
|
+
}
|
17
|
+
|
18
|
+
function _objectSpread2(target) {
|
19
|
+
for (var i = 1; i < arguments.length; i++) {
|
20
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
21
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
22
|
+
_defineProperty(target, key, source[key]);
|
23
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
24
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
25
|
+
});
|
26
|
+
}
|
27
|
+
|
28
|
+
return target;
|
29
|
+
}
|
30
|
+
|
31
|
+
function _defineProperty(obj, key, value) {
|
32
|
+
if (key in obj) {
|
33
|
+
Object.defineProperty(obj, key, {
|
34
|
+
value: value,
|
35
|
+
enumerable: true,
|
36
|
+
configurable: true,
|
37
|
+
writable: true
|
38
|
+
});
|
39
|
+
} else {
|
40
|
+
obj[key] = value;
|
41
|
+
}
|
42
|
+
|
43
|
+
return obj;
|
44
|
+
}
|
45
|
+
|
46
|
+
function _toConsumableArray(arr) {
|
47
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
48
|
+
}
|
49
|
+
|
50
|
+
function _arrayWithoutHoles(arr) {
|
51
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
52
|
+
}
|
53
|
+
|
54
|
+
function _iterableToArray(iter) {
|
55
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
56
|
+
}
|
57
|
+
|
58
|
+
function _unsupportedIterableToArray(o, minLen) {
|
59
|
+
if (!o) return;
|
60
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
61
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
62
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
63
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
64
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
65
|
+
}
|
66
|
+
|
67
|
+
function _arrayLikeToArray(arr, len) {
|
68
|
+
if (len == null || len > arr.length) len = arr.length;
|
69
|
+
|
70
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
71
|
+
|
72
|
+
return arr2;
|
73
|
+
}
|
74
|
+
|
75
|
+
function _nonIterableSpread() {
|
76
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
77
|
+
}
|
78
|
+
|
79
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
80
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
81
|
+
|
82
|
+
if (!it) {
|
83
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
84
|
+
if (it) o = it;
|
85
|
+
var i = 0;
|
86
|
+
|
87
|
+
var F = function () {};
|
88
|
+
|
89
|
+
return {
|
90
|
+
s: F,
|
91
|
+
n: function () {
|
92
|
+
if (i >= o.length) return {
|
93
|
+
done: true
|
94
|
+
};
|
95
|
+
return {
|
96
|
+
done: false,
|
97
|
+
value: o[i++]
|
98
|
+
};
|
99
|
+
},
|
100
|
+
e: function (e) {
|
101
|
+
throw e;
|
102
|
+
},
|
103
|
+
f: F
|
104
|
+
};
|
105
|
+
}
|
106
|
+
|
107
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
108
|
+
}
|
109
|
+
|
110
|
+
var normalCompletion = true,
|
111
|
+
didErr = false,
|
112
|
+
err;
|
113
|
+
return {
|
114
|
+
s: function () {
|
115
|
+
it = it.call(o);
|
116
|
+
},
|
117
|
+
n: function () {
|
118
|
+
var step = it.next();
|
119
|
+
normalCompletion = step.done;
|
120
|
+
return step;
|
121
|
+
},
|
122
|
+
e: function (e) {
|
123
|
+
didErr = true;
|
124
|
+
err = e;
|
125
|
+
},
|
126
|
+
f: function () {
|
127
|
+
try {
|
128
|
+
if (!normalCompletion && it.return != null) it.return();
|
129
|
+
} finally {
|
130
|
+
if (didErr) throw err;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
};
|
134
|
+
}
|
135
|
+
|
136
|
+
var _WINDOW = {};
|
137
|
+
var _DOCUMENT = {};
|
138
|
+
|
139
|
+
try {
|
140
|
+
if (typeof window !== 'undefined') _WINDOW = window;
|
141
|
+
if (typeof document !== 'undefined') _DOCUMENT = document;
|
142
|
+
} catch (e) {}
|
143
|
+
|
144
|
+
var _ref = _WINDOW.navigator || {},
|
145
|
+
_ref$userAgent = _ref.userAgent,
|
146
|
+
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
|
147
|
+
var WINDOW = _WINDOW;
|
148
|
+
var DOCUMENT = _DOCUMENT;
|
149
|
+
var IS_BROWSER = !!WINDOW.document;
|
150
|
+
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
|
151
|
+
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
|
152
|
+
|
153
|
+
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
|
154
|
+
|
155
|
+
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
|
156
|
+
var PRODUCTION = function () {
|
157
|
+
try {
|
158
|
+
return "production" === 'production';
|
159
|
+
} catch (e) {
|
160
|
+
return false;
|
161
|
+
}
|
162
|
+
}();
|
163
|
+
var FAMILY_CLASSIC = 'classic';
|
164
|
+
var FAMILY_SHARP = 'sharp';
|
165
|
+
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
|
166
|
+
|
167
|
+
function familyProxy(obj) {
|
168
|
+
// Defaults to the classic family if family is not available
|
169
|
+
return new Proxy(obj, {
|
170
|
+
get: function get(target, prop) {
|
171
|
+
return prop in target ? target[prop] : target[FAMILY_CLASSIC];
|
172
|
+
}
|
173
|
+
});
|
174
|
+
}
|
175
|
+
var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty(_familyProxy, FAMILY_CLASSIC, {
|
176
|
+
'fa': 'solid',
|
177
|
+
'fas': 'solid',
|
178
|
+
'fa-solid': 'solid',
|
179
|
+
'far': 'regular',
|
180
|
+
'fa-regular': 'regular',
|
181
|
+
'fal': 'light',
|
182
|
+
'fa-light': 'light',
|
183
|
+
'fat': 'thin',
|
184
|
+
'fa-thin': 'thin',
|
185
|
+
'fad': 'duotone',
|
186
|
+
'fa-duotone': 'duotone',
|
187
|
+
'fab': 'brands',
|
188
|
+
'fa-brands': 'brands',
|
189
|
+
'fak': 'kit',
|
190
|
+
'fa-kit': 'kit'
|
191
|
+
}), _defineProperty(_familyProxy, FAMILY_SHARP, {
|
192
|
+
'fa': 'solid',
|
193
|
+
'fass': 'solid',
|
194
|
+
'fa-solid': 'solid',
|
195
|
+
'fasr': 'regular',
|
196
|
+
'fa-regular': 'regular',
|
197
|
+
'fasl': 'light',
|
198
|
+
'fa-light': 'light'
|
199
|
+
}), _familyProxy));
|
200
|
+
var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty(_familyProxy2, FAMILY_CLASSIC, {
|
201
|
+
'solid': 'fas',
|
202
|
+
'regular': 'far',
|
203
|
+
'light': 'fal',
|
204
|
+
'thin': 'fat',
|
205
|
+
'duotone': 'fad',
|
206
|
+
'brands': 'fab',
|
207
|
+
'kit': 'fak'
|
208
|
+
}), _defineProperty(_familyProxy2, FAMILY_SHARP, {
|
209
|
+
'solid': 'fass',
|
210
|
+
'regular': 'fasr',
|
211
|
+
'light': 'fasl'
|
212
|
+
}), _familyProxy2));
|
213
|
+
var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty(_familyProxy3, FAMILY_CLASSIC, {
|
214
|
+
'fab': 'fa-brands',
|
215
|
+
'fad': 'fa-duotone',
|
216
|
+
'fak': 'fa-kit',
|
217
|
+
'fal': 'fa-light',
|
218
|
+
'far': 'fa-regular',
|
219
|
+
'fas': 'fa-solid',
|
220
|
+
'fat': 'fa-thin'
|
221
|
+
}), _defineProperty(_familyProxy3, FAMILY_SHARP, {
|
222
|
+
'fass': 'fa-solid',
|
223
|
+
'fasr': 'fa-regular',
|
224
|
+
'fasl': 'fa-light'
|
225
|
+
}), _familyProxy3));
|
226
|
+
var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty(_familyProxy4, FAMILY_CLASSIC, {
|
227
|
+
'fa-brands': 'fab',
|
228
|
+
'fa-duotone': 'fad',
|
229
|
+
'fa-kit': 'fak',
|
230
|
+
'fa-light': 'fal',
|
231
|
+
'fa-regular': 'far',
|
232
|
+
'fa-solid': 'fas',
|
233
|
+
'fa-thin': 'fat'
|
234
|
+
}), _defineProperty(_familyProxy4, FAMILY_SHARP, {
|
235
|
+
'fa-solid': 'fass',
|
236
|
+
'fa-regular': 'fasr',
|
237
|
+
'fa-light': 'fasl'
|
238
|
+
}), _familyProxy4));
|
239
|
+
var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty(_familyProxy5, FAMILY_CLASSIC, {
|
240
|
+
'900': 'fas',
|
241
|
+
'400': 'far',
|
242
|
+
'normal': 'far',
|
243
|
+
'300': 'fal',
|
244
|
+
'100': 'fat'
|
245
|
+
}), _defineProperty(_familyProxy5, FAMILY_SHARP, {
|
246
|
+
'900': 'fass',
|
247
|
+
'400': 'fasr',
|
248
|
+
'300': 'fasl'
|
249
|
+
}), _familyProxy5));
|
250
|
+
var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
251
|
+
var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
|
252
|
+
var DUOTONE_CLASSES = {
|
253
|
+
GROUP: 'duotone-group',
|
254
|
+
SWAP_OPACITY: 'swap-opacity',
|
255
|
+
PRIMARY: 'primary',
|
256
|
+
SECONDARY: 'secondary'
|
257
|
+
};
|
258
|
+
var prefixes = new Set();
|
259
|
+
Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
|
260
|
+
Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
|
261
|
+
var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray(prefixes), ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', 'beat', 'border', 'fade', 'beat-fade', 'bounce', 'flip-both', 'flip-horizontal', 'flip-vertical', 'flip', 'fw', 'inverse', 'layers-counter', 'layers-text', 'layers', 'li', 'pull-left', 'pull-right', 'pulse', 'rotate-180', 'rotate-270', 'rotate-90', 'rotate-by', 'shake', 'spin-pulse', 'spin-reverse', 'spin', 'stack-1x', 'stack-2x', 'stack', 'ul', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function (n) {
|
262
|
+
return "".concat(n, "x");
|
263
|
+
})).concat(oneToTwenty.map(function (n) {
|
264
|
+
return "w-".concat(n);
|
265
|
+
}));
|
266
|
+
|
267
|
+
function bunker(fn) {
|
268
|
+
try {
|
269
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
270
|
+
args[_key - 1] = arguments[_key];
|
271
|
+
}
|
272
|
+
|
273
|
+
fn.apply(void 0, args);
|
274
|
+
} catch (e) {
|
275
|
+
if (!PRODUCTION) {
|
276
|
+
throw e;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
var w = WINDOW || {};
|
282
|
+
if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
|
283
|
+
if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
|
284
|
+
if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
|
285
|
+
if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
|
286
|
+
var namespace = w[NAMESPACE_IDENTIFIER];
|
287
|
+
|
288
|
+
function normalizeIcons(icons) {
|
289
|
+
return Object.keys(icons).reduce(function (acc, iconName) {
|
290
|
+
var icon = icons[iconName];
|
291
|
+
var expanded = !!icon.icon;
|
292
|
+
|
293
|
+
if (expanded) {
|
294
|
+
acc[icon.iconName] = icon.icon;
|
295
|
+
} else {
|
296
|
+
acc[iconName] = icon;
|
297
|
+
}
|
298
|
+
|
299
|
+
return acc;
|
300
|
+
}, {});
|
301
|
+
}
|
302
|
+
|
303
|
+
function defineIcons(prefix, icons) {
|
304
|
+
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
305
|
+
var _params$skipHooks = params.skipHooks,
|
306
|
+
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
|
307
|
+
var normalized = normalizeIcons(icons);
|
308
|
+
|
309
|
+
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
|
310
|
+
namespace.hooks.addPack(prefix, normalizeIcons(icons));
|
311
|
+
} else {
|
312
|
+
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
|
313
|
+
}
|
314
|
+
/**
|
315
|
+
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
|
316
|
+
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
|
317
|
+
* for `fas` so we'll ease the upgrade process for our users by automatically defining
|
318
|
+
* this as well.
|
319
|
+
*/
|
320
|
+
|
321
|
+
|
322
|
+
if (prefix === 'fas') {
|
323
|
+
defineIcons('fa', icons);
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
var icons = {
|
328
|
+
|
329
|
+
"greensky": [1707,512,[],"e002","M0 232.703v-.719c0-72.107 58.553-131.159 138.634-131.159 47.6 0 76.313 12.313 103.89 34.778l-36.643 42.394c-20.401-16.306-38.534-25.721-69.133-25.721-42.306 0-75.927 35.859-75.927 78.98v.728c0 46.377 33.239 80.428 80.085 80.428 21.155 0 40.038-5.074 54.772-15.221v-36.226H140.11l7.641-48.186h104.217v110.137c-27.205 22.094-64.602 40.214-112.952 40.214C56.662 363.13 0 307.7 0 232.703zm271.752-65.118l57.42-3v39.137c11.466-33.202 38.623-44.202 72.622-42.751l-8.024 57.605h-3.022c-38.157 0-61.575 22.099-61.575 68.476v71.736h-57.421V167.585zm540.92.916l57.422-3.916v27.538c13.22-16.297 30.222-31.156 59.308-31.156 43.446 0 68.755 27.534 68.755 72.102v125.715h-57.426V250.456c0-26.082-12.833-39.49-34.748-39.49-21.91 0-35.889 13.408-35.889 39.49v108.328h-57.421V168.501zm197.248 155.42l34.194-39.875c23.679 19.026 48.48 31.09 78.544 31.09 23.67 0 37.947-9.143 37.947-24.14v-.729c0-14.265-9.02-21.58-52.988-32.554-52.975-13.166-87.173-27.431-87.173-78.266v-.728c0-46.453 38.329-77.171 92.062-77.171 38.324 0 71.019 11.706 97.697 32.554l-30.054 42.415c-23.307-15.72-46.227-25.23-68.397-25.23-22.166 0-33.822 9.876-33.822 22.31v.732c0 16.824 11.274 22.309 56.746 33.648 53.361 13.533 83.425 32.184 83.425 76.801v.733c0 50.839-39.833 79.364-96.575 79.364-39.838 0-80.039-13.528-111.606-40.955zm557.438-159.336h59.68l-77.818 198.912c-15.488 39.499-33.533 67.48-67.913 67.48-20.778 0-36.261-5.074-50.995-13.404l17.397-40.196c7.232 5.847 17.435 8.817 26.422 7.946 13.677-1.327 16.536-16.025 21.444-25.81l-77.198-189.685-71.783 71.205 79.704 117.752h-65.729l-52.89-79.342-20.024 20.29v59.052h-57.417V106.1l57.417-4.551V235.24l67.247-70.655h122.168l46.082 132.244 44.206-132.244zM596.879 266.4c0 4.35-.377 9.42-.75 14.489H468.676l5.51-34.417h66.785c-3.394-24.64-18.51-41.303-42.687-41.303-23.28 0-38.58 15.627-43.48 39.713h-.032s-4.508 19.776.447 36.007c5.662 25.001 23.8 38.047 49.49 38.047 19.265 0 33.24-5.797 49.105-19.928l32.872 27.896c-18.897 22.47-46.092 36.225-82.735 36.225-60.816 0-105.772-40.937-105.772-100.355v-.72c0-55.434 41.18-101.083 100.105-101.083 67.619 0 98.595 50.352 98.595 105.43zm203.984 0c0 4.35-.382 9.42-.764 14.489H672.656l5.509-34.417h66.786c-3.404-24.64-18.51-41.303-42.688-41.303-23.279 0-38.58 15.627-43.48 39.713h-.032s-4.508 19.776.447 36.007c5.662 25.001 23.8 38.047 49.491 38.047 19.26 0 33.24-5.797 49.105-19.928l32.871 27.896c-18.892 22.47-46.096 36.225-82.735 36.225-60.82 0-105.772-40.937-105.772-100.355v-.72c0-55.434 41.175-101.083 100.105-101.083 67.62 0 98.6 50.352 98.6 105.43zm826.175-136.022h-271.88C1355.158 58.368 1416.025 0 1491.1 0c75.084 0 135.938 58.369 135.938 130.378zm50.059 64.334c3.725 0 5.714-1.911 5.714-4.569v-.174c0-3.073-2.254-4.65-5.896-4.65h-7.194v9.393h7.376zm-14.753-15.857h14.837c4.507 0 7.972 1.25 10.31 3.493 1.82 1.746 2.775 4.158 2.775 6.994v.165c0 5.15-2.938 8.397-7.19 9.893l8.15 11.482h-8.588l-7.106-10.321h-5.811v10.321h-7.377v-32.027zm40.676 16.738v-.171c0-15.262-11.879-27.589-27.67-27.589-15.865 0-27.832 12.498-27.832 27.76v.166c0 15.267 11.879 27.584 27.66 27.584 15.875 0 27.842-12.498 27.842-27.75zm-27.67-31.083a31.16 31.16 0 0131.317 31.203c0 17.25-13.882 31.548-31.489 31.548a31.148 31.148 0 01-31.297-31.208c0-17.244 13.877-31.543 31.47-31.543z"],
|
330
|
+
"nitro": [640,512,[],"e001","M480.162 0L383.87 222.074 373.495 0H213.982L113.475 232.183c42.797 22.5 87.538 42.393 133.577 59.024h.324l9.402-21.849.324 25.436c73.273 25.762 150.112 44.35 229.869 57.393h.324L640 .327H480.162V0zM237.65 309.794c-47.66-19.892-91.752-42.067-129.361-65.546L0 493.714h159.514l79.432-183.268c-.648-.326-.972-.652-1.297-.652zm236.353 71.416c-73.597-14.348-148.49-36.523-216.9-63.59l1.297 175.768h166.97l48.633-112.178z"],
|
331
|
+
"newstar": [410,512,[],"e000","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"],
|
332
|
+
"hallowstar": [410,512,[],"e000","M5.91323 5.33377L6.17269 5.29477L6.28801 5.0591L8.44116 0.659187C8.49971 0.543364 8.59517 0.5 8.64884 0.5C8.74499 0.5 8.83506 0.555009 8.88775 0.659235L11.0409 5.0591L11.1562 5.29477L11.4157 5.33377L16.1925 6.05186L16.2021 6.0533L16.2117 6.05436C16.2359 6.05706 16.2671 6.06847 16.3024 6.09973C16.3374 6.13062 16.3686 6.17476 16.3886 6.22412C16.4186 6.32162 16.401 6.40181 16.3198 6.48332C16.3196 6.48353 16.3194 6.48374 16.3192 6.48394L12.8552 9.91671L12.6712 10.0991L12.7141 10.3546L13.5258 15.1939L13.528 15.2068L13.5308 15.2196C13.5488 15.3004 13.5074 15.402 13.4567 15.4462C13.3391 15.5132 13.2227 15.5096 13.1546 15.4781L8.88646 13.1726L8.64884 13.0443L8.41121 13.1726L4.14274 15.4782C4.07877 15.5083 3.99031 15.5147 3.87267 15.4466C3.82302 15.4033 3.76655 15.2914 3.77463 15.1781L4.61431 10.3577L4.65911 10.1005L4.47368 9.91671L1.0097 6.48394C1.00947 6.48372 1.00925 6.4835 1.00903 6.48327C0.927878 6.40178 0.910311 6.3216 0.94026 6.22412C0.960274 6.17476 0.99154 6.13062 1.02646 6.09973C1.0618 6.06847 1.09296 6.05706 1.11724 6.05436L1.12682 6.0533L1.13635 6.05186L5.91323 5.33377Z"]
|
333
|
+
|
334
|
+
};
|
335
|
+
var prefixes$1 = [null ,'fak',
|
336
|
+
,'fa-kit'
|
337
|
+
|
338
|
+
];
|
339
|
+
bunker(function () {
|
340
|
+
var _iterator = _createForOfIteratorHelper(prefixes$1),
|
341
|
+
_step;
|
342
|
+
|
343
|
+
try {
|
344
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
345
|
+
var prefix = _step.value;
|
346
|
+
if (!prefix) continue;
|
347
|
+
defineIcons(prefix, icons);
|
348
|
+
}
|
349
|
+
} catch (err) {
|
350
|
+
_iterator.e(err);
|
351
|
+
} finally {
|
352
|
+
_iterator.f();
|
353
|
+
}
|
354
|
+
});
|
355
|
+
|
356
|
+
}());
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= pb_rails("star_rating", props: { rating: 3 }) %>
|
2
|
+
</br>
|
3
|
+
<%= pb_rails("star_rating", props: { rating: 3, color_option: "outline" }) %>
|
4
|
+
</br>
|
5
|
+
<%= pb_rails("star_rating", props: { rating: 3, color_option: "primary" }) %>
|
6
|
+
</br>
|
7
|
+
<%= pb_rails("star_rating", props: { rating: 3, color_option: "subtle" }) %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import StarRating from '../_star_rating'
|
4
|
+
|
5
|
+
const StarRatingColorOptions = (props) => (
|
6
|
+
<>
|
7
|
+
|
8
|
+
<StarRating
|
9
|
+
rating={3}
|
10
|
+
{...props}
|
11
|
+
/>
|
12
|
+
|
13
|
+
<br />
|
14
|
+
|
15
|
+
<StarRating
|
16
|
+
colorOption='outline'
|
17
|
+
rating={3}
|
18
|
+
{...props}
|
19
|
+
/>
|
20
|
+
|
21
|
+
<br />
|
22
|
+
|
23
|
+
<StarRating
|
24
|
+
colorOption='primary'
|
25
|
+
rating={3}
|
26
|
+
{...props}
|
27
|
+
/>
|
28
|
+
|
29
|
+
<br />
|
30
|
+
|
31
|
+
<StarRating
|
32
|
+
colorOption='subtle'
|
33
|
+
rating={3}
|
34
|
+
{...props}
|
35
|
+
/>
|
36
|
+
|
37
|
+
</>
|
38
|
+
)
|
39
|
+
|
40
|
+
export default StarRatingColorOptions
|
@@ -2,12 +2,22 @@
|
|
2
2
|
|
3
3
|
<br>
|
4
4
|
|
5
|
+
<%= pb_rails("star_rating", props: { rating: 1 }) %>
|
6
|
+
|
7
|
+
<br>
|
8
|
+
|
9
|
+
<%= pb_rails("star_rating", props: { rating: 2}) %>
|
10
|
+
|
11
|
+
<br>
|
12
|
+
|
5
13
|
<%= pb_rails("star_rating", props: { rating: 3 }) %>
|
6
14
|
|
7
15
|
<br>
|
8
16
|
|
9
|
-
<%= pb_rails("star_rating", props: { rating:
|
17
|
+
<%= pb_rails("star_rating", props: { rating: 4 }) %>
|
10
18
|
|
11
19
|
<br>
|
12
20
|
|
13
21
|
<%= pb_rails("star_rating", props: { rating: 5 }) %>
|
22
|
+
|
23
|
+
<br>
|
@@ -4,12 +4,12 @@ import StarRating from '../_star_rating'
|
|
4
4
|
|
5
5
|
const StarRatingDefault = (props) => (
|
6
6
|
<>
|
7
|
-
<StarRating />
|
7
|
+
<StarRating {...props} />
|
8
8
|
|
9
9
|
<br />
|
10
10
|
|
11
11
|
<StarRating
|
12
|
-
rating={
|
12
|
+
rating={0.9}
|
13
13
|
{...props}
|
14
14
|
/>
|
15
15
|
|
@@ -20,6 +20,21 @@ const StarRatingDefault = (props) => (
|
|
20
20
|
{...props}
|
21
21
|
/>
|
22
22
|
|
23
|
+
<br />
|
24
|
+
|
25
|
+
<StarRating
|
26
|
+
rating={3}
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
|
30
|
+
<br />
|
31
|
+
|
32
|
+
<StarRating
|
33
|
+
rating={4.2}
|
34
|
+
{...props}
|
35
|
+
/>
|
36
|
+
|
37
|
+
|
23
38
|
<br />
|
24
39
|
|
25
40
|
<StarRating
|
@@ -1 +1,6 @@
|
|
1
|
-
<%= pb_rails("star_rating", props: { rating: 3
|
1
|
+
<%= pb_rails("star_rating", props: { rating: 3 }) %>
|
2
|
+
</br>
|
3
|
+
<%= pb_rails("star_rating", props: { rating: 3, layout_option: "number" }) %>
|
4
|
+
</br>
|
5
|
+
<%= pb_rails("star_rating", props: { rating: 3, layout_option: "onestar" }) %>
|
6
|
+
</br>
|
@@ -3,13 +3,30 @@ import React from 'react'
|
|
3
3
|
import StarRating from '../_star_rating'
|
4
4
|
|
5
5
|
const StarRatingHide = (props) => (
|
6
|
+
<>
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
/>
|
8
|
+
<StarRating
|
9
|
+
rating={3}
|
10
|
+
{...props}
|
11
|
+
/>
|
12
12
|
|
13
|
+
<br />
|
14
|
+
|
15
|
+
<StarRating
|
16
|
+
layoutOption={"number"}
|
17
|
+
rating={3}
|
18
|
+
{...props}
|
19
|
+
/>
|
20
|
+
|
21
|
+
<br />
|
22
|
+
|
23
|
+
<StarRating
|
24
|
+
layoutOption={"onestar"}
|
25
|
+
rating={3}
|
26
|
+
{...props}
|
27
|
+
/>
|
28
|
+
|
29
|
+
</>
|
13
30
|
)
|
14
31
|
|
15
32
|
export default StarRatingHide
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<%= pb_rails("star_rating", props: { rating: 3, denominator: 3 }) %>
|
2
|
+
</br>
|
3
|
+
<%= pb_rails("star_rating", props: { rating: 3, denominator: 4 }) %>
|
4
|
+
</br>
|
5
|
+
<%= pb_rails("star_rating", props: { rating: 3 }) %>
|
6
|
+
</br>
|
7
|
+
<%= pb_rails("star_rating", props: { rating: 3, denominator: 6 }) %>
|
8
|
+
</br>
|
9
|
+
<%= pb_rails("star_rating", props: { rating: 3, denominator: 7 }) %>
|
10
|
+
</br>
|
11
|
+
<%= pb_rails("star_rating", props: { rating: 3, denominator: 8 }) %>
|
12
|
+
</br>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import StarRating from '../_star_rating'
|
4
|
+
|
5
|
+
const StarRatingNumberConfig = (props) => (
|
6
|
+
<>
|
7
|
+
|
8
|
+
<StarRating
|
9
|
+
denominator={3}
|
10
|
+
rating={3}
|
11
|
+
{...props}
|
12
|
+
/>
|
13
|
+
|
14
|
+
<br />
|
15
|
+
|
16
|
+
<StarRating
|
17
|
+
denominator={4}
|
18
|
+
rating={3}
|
19
|
+
{...props}
|
20
|
+
/>
|
21
|
+
|
22
|
+
<br />
|
23
|
+
|
24
|
+
<StarRating
|
25
|
+
denominator={5}
|
26
|
+
rating={3}
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
|
30
|
+
<br />
|
31
|
+
|
32
|
+
<StarRating
|
33
|
+
denominator={6}
|
34
|
+
rating={3}
|
35
|
+
{...props}
|
36
|
+
/>
|
37
|
+
|
38
|
+
<br />
|
39
|
+
|
40
|
+
<StarRating
|
41
|
+
denominator={7}
|
42
|
+
rating={3}
|
43
|
+
{...props}
|
44
|
+
/>
|
45
|
+
|
46
|
+
<br />
|
47
|
+
|
48
|
+
<StarRating
|
49
|
+
denominator={8}
|
50
|
+
rating={3}
|
51
|
+
{...props}
|
52
|
+
/>
|
53
|
+
|
54
|
+
</>
|
55
|
+
)
|
56
|
+
|
57
|
+
export default StarRatingNumberConfig
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "xs" }) %>
|
2
|
+
|
3
|
+
<br>
|
4
|
+
|
5
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "sm" }) %>
|
6
|
+
|
7
|
+
<br>
|
8
|
+
|
9
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "md" }) %>
|
10
|
+
|
11
|
+
<br>
|
12
|
+
|
13
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "lg" }) %>
|
14
|
+
|
15
|
+
<br>
|
16
|
+
|
17
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "lg", layout_option: "number" }) %>
|
18
|
+
|
19
|
+
<br>
|
20
|
+
|
21
|
+
<%= pb_rails("star_rating", props: { rating: 3, size: "lg", layout_option: "onestar" }) %>
|
22
|
+
|
23
|
+
<br>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import StarRating from '../_star_rating'
|
4
|
+
|
5
|
+
const StarRatingSizeOptions = (props) => (
|
6
|
+
<>
|
7
|
+
|
8
|
+
<StarRating
|
9
|
+
rating={3}
|
10
|
+
size="xs"
|
11
|
+
{...props}
|
12
|
+
/>
|
13
|
+
|
14
|
+
<br />
|
15
|
+
|
16
|
+
<StarRating
|
17
|
+
rating={3}
|
18
|
+
size="sm"
|
19
|
+
{...props}
|
20
|
+
/>
|
21
|
+
|
22
|
+
<br />
|
23
|
+
|
24
|
+
<StarRating
|
25
|
+
rating={3}
|
26
|
+
size="md"
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
|
30
|
+
<br />
|
31
|
+
|
32
|
+
<StarRating
|
33
|
+
rating={3}
|
34
|
+
size="lg"
|
35
|
+
{...props}
|
36
|
+
/>
|
37
|
+
|
38
|
+
<br />
|
39
|
+
|
40
|
+
<StarRating
|
41
|
+
layoutOption="number"
|
42
|
+
rating={3}
|
43
|
+
size="lg"
|
44
|
+
{...props}
|
45
|
+
/>
|
46
|
+
|
47
|
+
<br />
|
48
|
+
|
49
|
+
<StarRating
|
50
|
+
layoutOption="onestar"
|
51
|
+
rating={3}
|
52
|
+
size="lg"
|
53
|
+
{...props}
|
54
|
+
/>
|
55
|
+
|
56
|
+
</>
|
57
|
+
)
|
58
|
+
|
59
|
+
export default StarRatingSizeOptions
|
@@ -1,9 +1,14 @@
|
|
1
1
|
examples:
|
2
|
-
|
3
2
|
rails:
|
4
|
-
|
5
|
-
|
3
|
+
- star_rating_default: Default
|
4
|
+
- star_rating_color_options: Color Options
|
5
|
+
- star_rating_hide: Layout Options
|
6
|
+
- star_rating_number_config: Number Config
|
7
|
+
- star_rating_size_options: Size Options
|
6
8
|
|
7
9
|
react:
|
8
|
-
|
9
|
-
|
10
|
+
- star_rating_default: Default
|
11
|
+
- star_rating_color_options: Color Options
|
12
|
+
- star_rating_hide: Layout Options
|
13
|
+
- star_rating_number_config: Number Config
|
14
|
+
- star_rating_size_options: Size Options
|