@appbaseio/reactivesearch-vue 2.0.0-alpha.4 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +9 -9
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js +21316 -29369
  3. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -19
  5. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  6. package/dist/cjs/Button-ad042719.js +59 -0
  7. package/dist/cjs/Card-f5ab024a.js +27 -0
  8. package/dist/cjs/{ComponentWrapper-ad3dad02.js → ComponentWrapper-611cf7f9.js} +44 -58
  9. package/dist/cjs/Container-29f049b2.js +12 -0
  10. package/dist/cjs/DropDown-dc184468.js +700 -0
  11. package/dist/cjs/DynamicRangeSlider.js +106 -157
  12. package/dist/cjs/Flex-d5675ea6.js +48 -0
  13. package/dist/cjs/FormControlList-fadd792f.js +42 -0
  14. package/dist/cjs/Input-088dfcb4.js +74 -0
  15. package/dist/cjs/ListItem-d57d648d.js +42 -0
  16. package/dist/cjs/MultiDropdownList.js +124 -240
  17. package/dist/cjs/MultiList.js +124 -262
  18. package/dist/cjs/MultiRange.js +87 -133
  19. package/dist/cjs/{Pagination-71e85fa9.js → Pagination-b5ddc906.js} +70 -83
  20. package/dist/cjs/PreferencesConsumer-22d1b49f.js +73 -0
  21. package/dist/cjs/RangeInput.js +163 -171
  22. package/dist/cjs/RangeSlider.js +81 -109
  23. package/dist/cjs/ReactiveBase.js +139 -156
  24. package/dist/cjs/ReactiveComponent-a6108189.js +2184 -0
  25. package/dist/cjs/ReactiveComponent.js +46 -340
  26. package/dist/cjs/ReactiveGoogleMap.js +451 -660
  27. package/dist/cjs/ReactiveList.js +180 -305
  28. package/dist/cjs/ResultCard.js +36 -36
  29. package/dist/cjs/ResultList.js +48 -56
  30. package/dist/cjs/SelectedFilters.js +62 -69
  31. package/dist/cjs/SingleDropdownList.js +117 -177
  32. package/dist/cjs/SingleList.js +122 -206
  33. package/dist/cjs/SingleRange.js +78 -105
  34. package/dist/cjs/StateProvider.js +35 -38
  35. package/dist/cjs/Title-8802a218.js +12 -0
  36. package/dist/cjs/ToggleButton.js +72 -119
  37. package/dist/cjs/{_rollupPluginBabelHelpers-c705cbe6.js → _rollupPluginBabelHelpers-f8b843f8.js} +0 -15
  38. package/dist/cjs/{index-6a167fe0.js → index-d8d8f291.js} +38 -108
  39. package/dist/cjs/index.js +44 -41
  40. package/dist/cjs/initReactivesearch.js +63 -150
  41. package/dist/cjs/install.js +47 -43
  42. package/dist/cjs/ssr-6c8a72e1.js +66 -0
  43. package/dist/cjs/{utils-d6a52588.js → utils-83fd01e9.js} +7 -16
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/cjs/{vueTypes-727b7c63.js → vueTypes-1bf00978.js} +8 -19
  46. package/dist/es/Button-474510e3.js +53 -0
  47. package/dist/es/{Card-450683f1.js → Card-38cbe652.js} +3 -3
  48. package/dist/es/{ComponentWrapper-424e86fd.js → ComponentWrapper-3dfe6931.js} +44 -58
  49. package/dist/es/{Container-ba826e96.js → Container-d00219f7.js} +2 -2
  50. package/dist/es/DropDown-029ffd42.js +690 -0
  51. package/dist/es/DynamicRangeSlider.js +106 -157
  52. package/dist/es/Flex-a08e22d7.js +46 -0
  53. package/dist/es/FormControlList-fe6eaee4.js +38 -0
  54. package/dist/es/Input-ad474a55.js +69 -0
  55. package/dist/es/{ListItem-cad14c5e.js → ListItem-16756c02.js} +7 -8
  56. package/dist/es/MultiDropdownList.js +124 -240
  57. package/dist/es/MultiList.js +124 -262
  58. package/dist/es/MultiRange.js +87 -133
  59. package/dist/es/{Pagination-784bf143.js → Pagination-72bd1d9e.js} +70 -83
  60. package/dist/es/PreferencesConsumer-24e88f3b.js +71 -0
  61. package/dist/es/RangeInput.js +163 -170
  62. package/dist/es/RangeSlider.js +81 -109
  63. package/dist/es/ReactiveBase.js +138 -154
  64. package/dist/es/ReactiveComponent-0a97eb1e.js +2178 -0
  65. package/dist/es/ReactiveComponent.js +42 -337
  66. package/dist/es/ReactiveGoogleMap.js +446 -654
  67. package/dist/es/ReactiveList.js +178 -302
  68. package/dist/es/ResultCard.js +36 -36
  69. package/dist/es/ResultList.js +48 -56
  70. package/dist/es/SelectedFilters.js +62 -69
  71. package/dist/es/SingleDropdownList.js +117 -177
  72. package/dist/es/SingleList.js +122 -206
  73. package/dist/es/SingleRange.js +78 -105
  74. package/dist/es/StateProvider.js +36 -39
  75. package/dist/es/{Title-3342664a.js → Title-863dfa42.js} +2 -2
  76. package/dist/es/ToggleButton.js +72 -119
  77. package/dist/es/{_rollupPluginBabelHelpers-76660dab.js → _rollupPluginBabelHelpers-ded08042.js} +0 -15
  78. package/dist/es/{index-7788a843.js → index-4520a598.js} +39 -107
  79. package/dist/es/index.js +30 -32
  80. package/dist/es/initReactivesearch.js +63 -150
  81. package/dist/es/install.js +49 -41
  82. package/dist/es/{ssr-b2c0b401.js → ssr-584c278d.js} +37 -8
  83. package/dist/es/{utils-9e68acee.js → utils-9e5a16a1.js} +7 -16
  84. package/dist/es/version.js +1 -1
  85. package/dist/es/{vueTypes-b8146772.js → vueTypes-f1923c72.js} +8 -19
  86. package/package.json +10 -9
  87. package/dist/cjs/Button-446f819e.js +0 -68
  88. package/dist/cjs/CancelSvg-9f258f4f.js +0 -449
  89. package/dist/cjs/Card-642547a8.js +0 -30
  90. package/dist/cjs/Container-daf30918.js +0 -15
  91. package/dist/cjs/DataSearch-aa04dc6e.js +0 -2352
  92. package/dist/cjs/DataSearch.js +0 -30
  93. package/dist/cjs/DropDown-c479bbb0.js +0 -328
  94. package/dist/cjs/Flex-aa517a13.js +0 -52
  95. package/dist/cjs/FormControlList-c195a592.js +0 -47
  96. package/dist/cjs/Input-e6603a7e.js +0 -79
  97. package/dist/cjs/ListItem-8c9e0d68.js +0 -46
  98. package/dist/cjs/Title-1de7d0f4.js +0 -15
  99. package/dist/cjs/install-b97dbac4.js +0 -1409
  100. package/dist/cjs/ssr-3027b848.js +0 -39
  101. package/dist/es/Button-d8bc15ea.js +0 -59
  102. package/dist/es/CancelSvg-4cfae5fd.js +0 -440
  103. package/dist/es/DataSearch-b86a6675.js +0 -2337
  104. package/dist/es/DataSearch.js +0 -22
  105. package/dist/es/DropDown-05a644a5.js +0 -322
  106. package/dist/es/Flex-1f0795c3.js +0 -47
  107. package/dist/es/FormControlList-c22d64f6.js +0 -40
  108. package/dist/es/Input-7a2a9fac.js +0 -71
  109. package/dist/es/install-ac8a1edb.js +0 -1402
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('@appbaseio/reactivecore');
6
- require('./_rollupPluginBabelHelpers-c705cbe6.js');
7
- require('vue-types');
8
- require('@appbaseio/reactivecore/lib/utils/constants');
9
- require('@appbaseio/reactivecore/lib/utils/helper');
10
- require('emotion');
11
- require('@appbaseio/vue-emotion');
12
- require('polished');
13
- require('./vueTypes-727b7c63.js');
14
- require('@appbaseio/reactivecore/lib/utils/transform');
15
- require('redux');
16
- require('./index-6a167fe0.js');
17
- require('./ComponentWrapper-ad3dad02.js');
18
- require('./Title-1de7d0f4.js');
19
- require('./Flex-aa517a13.js');
20
- require('hotkeys-js');
21
- var DataSearch = require('./DataSearch-aa04dc6e.js');
22
- require('./CancelSvg-9f258f4f.js');
23
- require('./Input-e6603a7e.js');
24
- require('compute-scroll-into-view');
25
- require('./Container-daf30918.js');
26
- require('vue-highlight-words');
27
-
28
-
29
-
30
- exports.default = DataSearch.DataSearch;
@@ -1,328 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var configureStore = require('@appbaseio/reactivecore');
6
- var configureStore__default = _interopDefault(configureStore);
7
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
8
- var VueTypes = _interopDefault(require('vue-types'));
9
- var emotion = require('emotion');
10
- var styled = require('@appbaseio/vue-emotion');
11
- var styled__default = _interopDefault(styled);
12
- var vueTypes = require('./vueTypes-727b7c63.js');
13
- var index = require('./index-6a167fe0.js');
14
- var _mergeJSXProps = _interopDefault(require('@vue/babel-helper-vue-jsx-merge-props'));
15
- var CancelSvg = require('./CancelSvg-9f258f4f.js');
16
- var Input = require('./Input-e6603a7e.js');
17
- var suggestions = require('@appbaseio/reactivecore/lib/utils/suggestions');
18
-
19
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
20
- var small = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"])));
21
-
22
- var dark = function dark(_ref) {
23
- var theme = _ref.theme;
24
- return emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tbackground-color: ", ";\n\tborder-color: ", ";\n\tcolor: ", ";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n"])), theme.colors.backgroundColor, theme.colors.borderColor, theme.colors.textColor, theme.colors.backgroundColor);
25
- };
26
-
27
- var Select = styled__default('button')(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t", ";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t", ";\n"])), function (props) {
28
- return props.small ? small : null;
29
- }, function (_ref2) {
30
- var themePreset = _ref2.themePreset;
31
- return themePreset === 'dark' && dark;
32
- });
33
- var Tick = styled__default('span')(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ", ";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])), function (_ref3) {
34
- var theme = _ref3.theme;
35
- return theme.colors.primaryColor;
36
- });
37
-
38
- var _templateObject$1, _templateObject2$1;
39
- var open = emotion.css(_templateObject$1 || (_templateObject$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"])));
40
- var Chevron = styled__default('span')(_templateObject2$1 || (_templateObject2$1 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t", ";\n\t}\n"])), function (props) {
41
- return props.open ? open : null;
42
- });
43
-
44
- var getClassName = configureStore.helper.getClassName;
45
- var Dropdown = {
46
- data: function data() {
47
- this.__state = {
48
- isOpen: false,
49
- searchTerm: ''
50
- };
51
- return this.__state;
52
- },
53
- inject: {
54
- theme: {
55
- from: 'theme_reactivesearch'
56
- }
57
- },
58
- props: {
59
- innerClass: vueTypes.types.style,
60
- items: vueTypes.types.data,
61
- keyField: VueTypes.string.def('key'),
62
- labelField: VueTypes.string.def('label'),
63
- multi: VueTypes.bool,
64
- // change event
65
- placeholder: vueTypes.types.string,
66
- returnsObject: VueTypes.bool,
67
- customLabelRenderer: vueTypes.types.func,
68
- hasCustomRenderer: VueTypes.bool,
69
- customRenderer: vueTypes.types.func,
70
- renderItem: vueTypes.types.func,
71
- renderNoResults: VueTypes.any,
72
- handleChange: vueTypes.types.func,
73
- transformData: vueTypes.types.func,
74
- selectedItem: vueTypes.types.selectedValue,
75
- showCount: VueTypes.bool,
76
- single: VueTypes.bool,
77
- small: VueTypes.bool.def(false),
78
- themePreset: vueTypes.types.themePreset,
79
- showSearch: VueTypes.bool,
80
- showClear: VueTypes.bool,
81
- searchPlaceholder: VueTypes.string.def('Type here to search...')
82
- },
83
- render: function render() {
84
- var _this = this;
85
-
86
- var h = arguments[0];
87
- var _this$$props = this.$props,
88
- items = _this$$props.items,
89
- selectedItem = _this$$props.selectedItem,
90
- placeholder = _this$$props.placeholder,
91
- labelField = _this$$props.labelField,
92
- keyField = _this$$props.keyField,
93
- themePreset = _this$$props.themePreset,
94
- renderItem = _this$$props.renderItem,
95
- transformData = _this$$props.transformData,
96
- footer = _this$$props.footer,
97
- customLabelRenderer = _this$$props.customLabelRenderer,
98
- hasCustomRenderer = _this$$props.hasCustomRenderer,
99
- customRenderer = _this$$props.customRenderer;
100
- var itemsToRender = items;
101
-
102
- if (transformData) {
103
- itemsToRender = transformData(itemsToRender);
104
- }
105
-
106
- var filteredItemsToRender = itemsToRender.filter(function (item) {
107
- if (String(item[labelField]).length) {
108
- if (_this.$props.showSearch && _this.$data.searchTerm) {
109
- return suggestions.replaceDiacritics(String(item[labelField])).toLowerCase().includes(suggestions.replaceDiacritics(_this.$data.searchTerm.toLowerCase()));
110
- }
111
-
112
- return true;
113
- }
114
-
115
- return false;
116
- });
117
- return h(CancelSvg.Downshift, {
118
- "attrs": {
119
- "isOpen": this.$data.isOpen,
120
- "selectedItem": selectedItem,
121
- "handleChange": this.onChange,
122
- "handleMouseup": this.handleStateChange
123
- },
124
- "scopedSlots": {
125
- "default": function _default(_ref) {
126
- var getItemProps = _ref.getItemProps,
127
- isOpen = _ref.isOpen,
128
- highlightedIndex = _ref.highlightedIndex,
129
- getButtonProps = _ref.getButtonProps,
130
- getItemEvents = _ref.getItemEvents,
131
- getInputEvents = _ref.getInputEvents;
132
- return h("div", {
133
- "class": Input.suggestionsContainer
134
- }, [h(Select, {
135
- "on": _rollupPluginBabelHelpers._extends({}, _rollupPluginBabelHelpers._extends({}, getButtonProps({
136
- onClick: _this.toggle
137
- }))),
138
- "class": getClassName(_this.$props.innerClass, 'select') || '',
139
- "attrs": {
140
- "title": selectedItem ? _this.renderToString(selectedItem) : placeholder,
141
- "small": _this.$props.small,
142
- "themePreset": _this.$props.themePreset
143
- }
144
- }, [customLabelRenderer ? customLabelRenderer(selectedItem) : h("div", [selectedItem ? _this.renderToString(selectedItem) : placeholder]), h(Chevron, {
145
- "attrs": {
146
- "open": isOpen
147
- }
148
- })]), hasCustomRenderer ? customRenderer(itemsToRender, {
149
- getItemProps: getItemProps,
150
- isOpen: isOpen,
151
- highlightedIndex: highlightedIndex,
152
- getButtonProps: getButtonProps,
153
- getItemEvents: getItemEvents
154
- }) : isOpen && itemsToRender.length ? h("ul", {
155
- "class": Input.suggestions(themePreset, _this.theme) + " " + (_this.$props.small ? 'small' : '') + " " + getClassName(_this.$props.innerClass, 'list')
156
- }, [_this.$props.showSearch ? _this.renderSearchbox({
157
- on: {
158
- input: getInputEvents({
159
- onInput: _this.handleInputChange
160
- }).input
161
- }
162
- }) : null, !hasCustomRenderer && filteredItemsToRender.length === 0 ? _this.renderNoResult() : filteredItemsToRender.map(function (item, index) {
163
- var selected = _this.$props.multi // MultiDropdownList
164
- && (selectedItem && !!selectedItem[item[keyField]] // MultiDropdownRange
165
- || Array.isArray(selectedItem) && selectedItem.find(function (value) {
166
- return value[labelField] === item[labelField];
167
- }));
168
- if (!_this.$props.multi) selected = item.key === selectedItem;
169
- return h("li", {
170
- "domProps": _rollupPluginBabelHelpers._extends({}, getItemProps({
171
- item: item
172
- })),
173
- "on": _rollupPluginBabelHelpers._extends({}, getItemEvents({
174
- item: item
175
- })),
176
- "key": item[keyField],
177
- "class": "" + (selected ? 'active' : ''),
178
- "style": {
179
- backgroundColor: _this.getBackgroundColor(highlightedIndex === index, selected)
180
- }
181
- }, [renderItem ? renderItem({
182
- label: item[labelField],
183
- count: item.doc_count,
184
- isChecked: selected && _this.$props.multi
185
- }) : h("div", [typeof item[labelField] === 'string' ? h("span", {
186
- "domProps": {
187
- "innerHTML": item[labelField]
188
- }
189
- }) : item[labelField], _this.$props.showCount && item.doc_count && h("span", {
190
- "class": getClassName(_this.$props.innerClass, 'count') || ''
191
- }, ["\xA0(", item.doc_count, ")"])]), selected && _this.$props.multi ? h(Tick, {
192
- "class": getClassName(_this.$props.innerClass, 'icon') || ''
193
- }) : null]);
194
- }), footer]) : null]);
195
- }
196
- }
197
- });
198
- },
199
- methods: {
200
- toggle: function toggle() {
201
- this.isOpen = !this.$data.isOpen;
202
- },
203
- close: function close() {
204
- this.isOpen = false;
205
- },
206
- onChange: function onChange(item) {
207
- if (this.$props.returnsObject) {
208
- this.$props.handleChange(item);
209
- } else {
210
- this.$props.handleChange(item[this.$props.keyField]);
211
- }
212
-
213
- if (!this.$props.multi) {
214
- this.isOpen = false;
215
- this.searchTerm = '';
216
- }
217
- },
218
- handleStateChange: function handleStateChange(_ref2) {
219
- var isOpen = _ref2.isOpen;
220
- this.isOpen = isOpen;
221
- },
222
- getBackgroundColor: function getBackgroundColor(highlighted, selected) {
223
- var isDark = this.$props.themePreset === 'dark';
224
-
225
- if (highlighted) {
226
- return isDark ? '#555' : '#eee';
227
- }
228
-
229
- if (selected) {
230
- return isDark ? '#686868' : '#fafafa';
231
- }
232
-
233
- return isDark ? '#424242' : '#fff';
234
- },
235
- handleInputChange: function handleInputChange(e) {
236
- var value = e.target.value;
237
- this.searchTerm = value;
238
- },
239
- clearSearchTerm: function clearSearchTerm() {
240
- this.searchTerm = '';
241
- },
242
- renderToString: function renderToString(value) {
243
- var _this2 = this;
244
-
245
- var customLabelRenderer = this.$props.customLabelRenderer;
246
-
247
- if (customLabelRenderer) {
248
- var customLabel = customLabelRenderer(value);
249
-
250
- if (typeof customLabel === 'string') {
251
- return customLabel;
252
- }
253
- }
254
-
255
- if (Array.isArray(value) && value.length) {
256
- var arrayToRender = value.map(function (item) {
257
- return _this2.renderToString(item);
258
- });
259
- return arrayToRender.join(', ');
260
- }
261
-
262
- if (value && typeof value === 'object') {
263
- if (value[this.$props.labelField]) {
264
- return value[this.$props.labelField];
265
- }
266
-
267
- if (Object.keys(value).length) {
268
- return this.renderToString(Object.keys(value));
269
- }
270
-
271
- return this.$props.placeholder;
272
- }
273
-
274
- return value;
275
- },
276
- renderNoResult: function renderNoResult() {
277
- var h = this.$createElement;
278
- var renderNoResults = this.$scopedSlots.renderNoResults || this.$props.renderNoResults;
279
- return h("p", {
280
- "class": getClassName(this.$props.innerClass, 'noResults') || null
281
- }, [index.isFunction(renderNoResults) ? renderNoResults() : renderNoResults]);
282
- },
283
- renderSearchbox: function renderSearchbox(eventObject) {
284
- var h = this.$createElement;
285
- var _this$$props2 = this.$props,
286
- componentId = _this$$props2.componentId,
287
- searchPlaceholder = _this$$props2.searchPlaceholder,
288
- showClear = _this$$props2.showClear,
289
- themePreset = _this$$props2.themePreset,
290
- innerClass = _this$$props2.innerClass;
291
- var InputComponent = h(Input.Input, _mergeJSXProps([{
292
- "attrs": {
293
- "id": componentId + "-input",
294
- "showIcon": false,
295
- "showClear": showClear,
296
- "placeholder": searchPlaceholder,
297
- "value": this.$data.searchTerm,
298
- "themePreset": themePreset
299
- },
300
- "style": {
301
- border: 0,
302
- borderBottom: '1px solid #ddd'
303
- },
304
- "class": getClassName(innerClass, 'input')
305
- }, eventObject]));
306
-
307
- if (showClear) {
308
- return h(CancelSvg.InputWrapper, [InputComponent, this.searchTerm && h(CancelSvg.IconGroup, {
309
- "attrs": {
310
- "groupPosition": "right",
311
- "positionType": "absolute"
312
- }
313
- }, [h(CancelSvg.IconWrapper, {
314
- "on": {
315
- "click": this.clearSearchTerm
316
- },
317
- "attrs": {
318
- "isClearIcon": true
319
- }
320
- }, [h(CancelSvg.CancelSvg)])])]);
321
- }
322
-
323
- return InputComponent;
324
- }
325
- }
326
- };
327
-
328
- exports.Dropdown = Dropdown;
@@ -1,52 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
-
11
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
12
- var leftLabel = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: row;\n\talign-items: center;\n"])));
13
- var rightLabel = emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"])));
14
- var topLabel = emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: column;\n"])));
15
- var bottomLabel = emotion.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tflex-direction: column-reverse;\n"])));
16
-
17
- var border = function border(_ref) {
18
- var colors = _ref.theme.colors;
19
- return emotion.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tborder: 1px solid ", ";\n"])), colors.borderColor || '#ccc');
20
- };
21
-
22
- var Flex = styled__default('div')(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: ", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ", ";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ", ";\n\t\t}\n\t}\n"])), function (props) {
23
- return props.inline ? 'inline-flex' : 'flex';
24
- }, function (props) {
25
- return (props.labelPosition === 'left' || props.iconPosition === 'right') && leftLabel;
26
- }, function (props) {
27
- return (props.labelPosition === 'right' || props.iconPosition === 'left') && rightLabel;
28
- }, function (props) {
29
- return props.labelPosition === 'top' && topLabel;
30
- }, function (props) {
31
- return props.labelPosition === 'bottom' && bottomLabel;
32
- }, function (props) {
33
- return props.showBorder && border;
34
- }, function (props) {
35
- return props.justifyContent && emotion.css(_templateObject7 || (_templateObject7 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tjustify-content: ", ";\n\t\t"])), props.justifyContent);
36
- }, function (props) {
37
- return props.alignItems && emotion.css(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\talign-items: ", ";\n\t\t"])), props.alignItems);
38
- }, function (props) {
39
- return props.flex && emotion.css(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex: ", ";\n\t\t"])), props.flex);
40
- }, function (props) {
41
- return props.direction && emotion.css(_templateObject10 || (_templateObject10 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex-direction: ", ";\n\t\t"])), props.direction);
42
- }, function (props) {
43
- return props.basis && emotion.css(_templateObject11 || (_templateObject11 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tflex-basis: ", ";\n\t\t"])), props.basis);
44
- }, function (_ref2) {
45
- var colors = _ref2.theme.colors;
46
- return colors.borderColor || polished.lighten(0.3, colors.textColor);
47
- }, function (_ref3) {
48
- var theme = _ref3.theme;
49
- return theme.colors.textColor;
50
- });
51
-
52
- exports.Flex = Flex;
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
-
11
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
12
- var item = {
13
- width: '15px',
14
- height: '15px',
15
- scale: '4px'
16
- };
17
- var vh = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"])));
18
- var hideInputControl = emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"])));
19
-
20
- var formItem = function formItem(_ref) {
21
- var theme = _ref.theme;
22
- return emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ", ";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ", ";\n\t\t\tmargin-right: calc(", " * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ", ";\n\t\t\theight: ", ";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ", ";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + ", " / 2);\n\t\t\twidth: calc(", " - ", ");\n\t\t\theight: calc(", " - ", ");\n\t\t\tmargin-top: calc(", " / -2 - ", " / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])), vh, polished.lighten(0.4, theme.colors.primaryColor), theme.colors.primaryColor, theme.colors.borderColor || polished.lighten(0.1, theme.colors.textColor), theme.colors.primaryColor, item.width, item.width, item.height, theme.colors.primaryColor, item.scale, item.width, item.scale, item.height, item.scale, item.height, item.scale);
23
- };
24
-
25
- var Radio = styled__default('input')(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ", ";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ", ";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])), formItem, function (props) {
26
- return props.show ? null : hideInputControl;
27
- }, function (_ref2) {
28
- var theme = _ref2.theme;
29
- return theme.colors.primaryColor;
30
- }, function (_ref3) {
31
- var theme = _ref3.theme;
32
- return theme.colors.primaryColor;
33
- });
34
- var Checkbox = styled__default('input')(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + ", " / 5);\n\t\t\twidth: calc(", " / 2);\n\t\t\theight: calc(", " / 5);\n\t\t\tmargin-top: calc(", " / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ", ";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ", ";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])), formItem, function (props) {
35
- return props.show ? null : hideInputControl;
36
- }, item.width, item.width, item.width, item.height, function (_ref4) {
37
- var theme = _ref4.theme;
38
- return theme.colors.primaryColor;
39
- }, function (_ref5) {
40
- var theme = _ref5.theme;
41
- return theme.colors.primaryColor;
42
- });
43
- var UL = styled__default('ul')(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"])));
44
-
45
- exports.Checkbox = Checkbox;
46
- exports.Radio = Radio;
47
- exports.UL = UL;
@@ -1,79 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
-
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
11
-
12
- var alertBorder = function alertBorder(_ref) {
13
- var theme = _ref.theme;
14
- return emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tborder: 1px solid ", ";\n"])), theme.colors.alertColor);
15
- };
16
-
17
- var input = emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\tline-height: 1.5;\n\tmin-height: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\theight: 100%;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n"])));
18
-
19
- var dark = function dark(theme) {
20
- return emotion.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tborder-color: ", ";\n"])), theme.colors.borderColor);
21
- };
22
-
23
- var darkInput = function darkInput(_ref2) {
24
- var theme = _ref2.theme;
25
- return emotion.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tbackground-color: ", ";\n\tcolor: ", ";\n\t", ";\n\n\t&:focus {\n\t\tbackground-color: ", ";\n\t}\n"])), theme.colors.backgroundColor, theme.colors.textColor, dark(theme), theme.colors.backgroundColor);
26
- };
27
-
28
- var Input = styled__default('input')(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n"])), input, function (_ref3) {
29
- var themePreset = _ref3.themePreset,
30
- theme = _ref3.theme;
31
- return themePreset === 'dark' && darkInput({
32
- theme: theme
33
- });
34
- }, function (props) {
35
- return props.showIcon && props.iconPosition === 'left' && emotion.css(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-left: 36px;\n\t\t"])));
36
- }, function (props) {
37
- return props.showIcon && props.iconPosition === 'right' && emotion.css(_templateObject7 || (_templateObject7 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])));
38
- }, function (props) {
39
- return (// for clear icon
40
- props.showClear && emotion.css(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))
41
- );
42
- }, function (props) {
43
- return (// for voice search icon
44
- props.showVoiceSearch && emotion.css(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 36px;\n\t\t"])))
45
- );
46
- }, function (props) {
47
- return (// for clear icon with search icon
48
- props.showClear && props.showIcon && props.iconPosition === 'right' && emotion.css(_templateObject10 || (_templateObject10 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))
49
- );
50
- }, function (props) {
51
- return (// for voice search icon with search icon
52
- props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && emotion.css(_templateObject11 || (_templateObject11 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))
53
- );
54
- }, function (props) {
55
- return (// for voice search icon with clear icon
56
- props.showVoiceSearch && props.showIcon && emotion.css(_templateObject12 || (_templateObject12 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 66px;\n\t\t"])))
57
- );
58
- }, function (props) {
59
- return (// for clear icon with search icon and voice search
60
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && emotion.css(_templateObject13 || (_templateObject13 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tpadding-right: 90px;\n\t\t"])))
61
- );
62
- }, function (props) {
63
- return props.alert && alertBorder;
64
- });
65
-
66
- var suggestions = function suggestions(themePreset, theme) {
67
- return emotion.css(_templateObject14 || (_templateObject14 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t", ";\n"])), themePreset === 'dark' && theme && dark(theme));
68
- };
69
-
70
- var suggestionsContainer = emotion.css(_templateObject15 || (_templateObject15 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
71
-
72
- var noSuggestions = function noSuggestions(themePreset, theme) {
73
- return emotion.css(_templateObject16 || (_templateObject16 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t", "\n"])), themePreset === 'dark' && theme && dark(theme));
74
- };
75
-
76
- exports.Input = Input;
77
- exports.noSuggestions = noSuggestions;
78
- exports.suggestions = suggestions;
79
- exports.suggestionsContainer = suggestionsContainer;
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
- var emotion = require('emotion');
7
- var styled = require('@appbaseio/vue-emotion');
8
- var styled__default = _interopDefault(styled);
9
- var polished = require('polished');
10
- require('./Title-1de7d0f4.js');
11
-
12
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
13
- var container = emotion.css(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"])));
14
- var smallImage = emotion.css(_templateObject2 || (_templateObject2 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100px;\n\theight: 100px;\n"])));
15
- var Image = styled__default('div')(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 160px;\n\theight: 160px;\n\t", ";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ", ";\n"])), function (props) {
16
- return props.small ? smallImage : null;
17
- }, function (props) {
18
- return "url(" + props.src + ")";
19
- });
20
- var ListItem = styled__default('a')(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ", ";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ", ";\n\tcolor: ", ";\n\t", "; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ", ";\n\t\tpadding-left: ", ";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])), function (_ref) {
21
- var theme = _ref.theme;
22
- return theme.colors.backgroundColor ? polished.lighten(0.1, theme.colors.backgroundColor) : '#fff';
23
- }, function (_ref2) {
24
- var theme = _ref2.theme;
25
- return theme.colors.backgroundColor ? polished.lighten(0.3, theme.colors.backgroundColor) : polished.lighten(0.68, theme.colors.textColor);
26
- }, function (_ref3) {
27
- var theme = _ref3.theme;
28
- return theme.colors.textColor;
29
- }, function (props) {
30
- return props.href ? 'cursor: pointer' : null;
31
- }, function (_ref4) {
32
- var theme = _ref4.theme;
33
- return theme.colors.backgroundColor ? polished.lighten(0.2, theme.colors.backgroundColor) : '#fdfefd';
34
- }, function (props) {
35
- if (props.image) {
36
- return props.small ? 'calc(100% - 100px)' : 'calc(100% - 160px)';
37
- }
38
-
39
- return '100%';
40
- }, function (props) {
41
- return props.image ? '10px' : 0;
42
- });
43
-
44
- exports.Image = Image;
45
- exports.ListItem = ListItem;
46
- exports.container = container;
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
4
-
5
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-c705cbe6.js');
6
- var styled = require('@appbaseio/vue-emotion');
7
- var styled__default = _interopDefault(styled);
8
-
9
- var _templateObject;
10
- var Title = styled__default('h2')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ", ";\n"])), function (_ref) {
11
- var theme = _ref.theme;
12
- return theme.colors.titleColor;
13
- });
14
-
15
- exports.Title = Title;