@appbaseio/reactivesearch-vue 3.0.0-rc.8 → 3.1.0-rc.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 (67) hide show
  1. package/dist/@appbaseio/reactivesearch-vue.umd.js +23301 -41871
  2. package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
  3. package/dist/@appbaseio/reactivesearch-vue.umd.min.js +32 -32
  4. package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
  5. package/dist/cjs/{Button-f96a0570.js → Button-d4da7470.js} +7 -14
  6. package/dist/cjs/{ComponentWrapper-0b9ffb1a.js → ComponentWrapper-b5c78446.js} +1 -4
  7. package/dist/cjs/{DropDown-82d92f8b.js → DropDown-ec31bd3f.js} +8 -19
  8. package/dist/cjs/DynamicRangeSlider.js +3 -3
  9. package/dist/cjs/Input-497be42a.js +74 -0
  10. package/dist/cjs/MultiDropdownList.js +7 -8
  11. package/dist/cjs/MultiList.js +5 -5
  12. package/dist/cjs/MultiRange.js +4 -4
  13. package/dist/cjs/{Pagination-bcf8af5f.js → Pagination-b953a80a.js} +2 -2
  14. package/dist/cjs/{PreferencesConsumer-85dee673.js → PreferencesConsumer-7bee3c57.js} +1 -1
  15. package/dist/cjs/RangeInput.js +5 -5
  16. package/dist/cjs/RangeSlider.js +4 -4
  17. package/dist/cjs/ReactiveBase.js +23 -21
  18. package/dist/cjs/ReactiveComponent.js +4 -4
  19. package/dist/cjs/ReactiveGoogleMap.js +6 -7
  20. package/dist/cjs/ReactiveList.js +6 -6
  21. package/dist/cjs/ResultCard.js +1 -1
  22. package/dist/cjs/ResultList.js +1 -1
  23. package/dist/cjs/SelectedFilters.js +3 -4
  24. package/dist/cjs/SingleDropdownList.js +7 -8
  25. package/dist/cjs/SingleList.js +5 -5
  26. package/dist/cjs/SingleRange.js +4 -4
  27. package/dist/cjs/StateProvider.js +1 -1
  28. package/dist/cjs/ToggleButton.js +5 -6
  29. package/dist/cjs/{index-779ed366.js → index-1f41363f.js} +7 -3
  30. package/dist/cjs/index.js +9 -13
  31. package/dist/cjs/{install-2a1c953d.js → install-fd2155c7.js} +221 -1599
  32. package/dist/cjs/install.js +9 -12
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/cjs/{vueTypes-a5f1745e.js → vueTypes-1bf00978.js} +0 -18
  35. package/dist/es/{Button-5c2cf399.js → Button-fd869491.js} +7 -14
  36. package/dist/es/{ComponentWrapper-a2635cfc.js → ComponentWrapper-e91c9d43.js} +1 -4
  37. package/dist/es/{DropDown-8075451b.js → DropDown-74c20431.js} +9 -19
  38. package/dist/es/DynamicRangeSlider.js +3 -3
  39. package/dist/es/Input-f7499ef8.js +69 -0
  40. package/dist/es/MultiDropdownList.js +7 -8
  41. package/dist/es/MultiList.js +5 -5
  42. package/dist/es/MultiRange.js +4 -4
  43. package/dist/es/{Pagination-50fc3ef5.js → Pagination-c2745bec.js} +2 -2
  44. package/dist/es/{PreferencesConsumer-b058d14e.js → PreferencesConsumer-0856ed43.js} +1 -1
  45. package/dist/es/RangeInput.js +5 -5
  46. package/dist/es/RangeSlider.js +4 -4
  47. package/dist/es/ReactiveBase.js +23 -21
  48. package/dist/es/ReactiveComponent.js +4 -4
  49. package/dist/es/ReactiveGoogleMap.js +6 -7
  50. package/dist/es/ReactiveList.js +6 -6
  51. package/dist/es/ResultCard.js +1 -1
  52. package/dist/es/ResultList.js +1 -1
  53. package/dist/es/SelectedFilters.js +3 -4
  54. package/dist/es/SingleDropdownList.js +7 -8
  55. package/dist/es/SingleList.js +5 -5
  56. package/dist/es/SingleRange.js +4 -4
  57. package/dist/es/StateProvider.js +1 -1
  58. package/dist/es/ToggleButton.js +5 -6
  59. package/dist/es/{index-882489e1.js → index-104f1dfb.js} +7 -3
  60. package/dist/es/index.js +10 -13
  61. package/dist/es/{install-f4f2557b.js → install-db7d6387.js} +227 -1604
  62. package/dist/es/install.js +9 -12
  63. package/dist/es/version.js +1 -1
  64. package/dist/es/{vueTypes-09cab4d3.js → vueTypes-f1923c72.js} +0 -18
  65. package/package.json +5 -7
  66. package/dist/cjs/Input-fcd780de.js +0 -156
  67. package/dist/es/Input-4cd74b38.js +0 -148
@@ -8,15 +8,15 @@ import '@appbaseio/reactivecore/lib/utils/helper';
8
8
  import '@appbaseio/vue-emotion';
9
9
  import '@emotion/css';
10
10
  import 'polished';
11
- import './Button-5c2cf399.js';
12
- import './vueTypes-09cab4d3.js';
13
- import './Pagination-50fc3ef5.js';
11
+ import './Button-fd869491.js';
12
+ import './vueTypes-f1923c72.js';
13
+ import './Pagination-c2745bec.js';
14
14
  import './ReactiveList.js';
15
15
  import '@appbaseio/reactivecore/lib/utils/transform';
16
16
  import 'redux';
17
- import './index-882489e1.js';
18
- import './ComponentWrapper-a2635cfc.js';
19
- import './PreferencesConsumer-b058d14e.js';
17
+ import './index-104f1dfb.js';
18
+ import './ComponentWrapper-e91c9d43.js';
19
+ import './PreferencesConsumer-0856ed43.js';
20
20
  import './Title-863dfa42.js';
21
21
  import './ListItem-e3c6acf4.js';
22
22
  import './Card-54b9e7a0.js';
@@ -28,15 +28,12 @@ import '@appbaseio/analytics';
28
28
  import 'url-search-params-polyfill';
29
29
  import './ReactiveBase.js';
30
30
  import 'hotkeys-js';
31
- import 'remarkable';
32
- import 'xss';
33
- export { i as default } from './install-f4f2557b.js';
34
- import './DropDown-8075451b.js';
35
- import './Input-4cd74b38.js';
31
+ export { i as default } from './install-db7d6387.js';
32
+ import './DropDown-74c20431.js';
33
+ import './Input-f7499ef8.js';
36
34
  import 'compute-scroll-into-view';
37
35
  import './Container-d00219f7.js';
38
36
  import 'vue-highlight-words';
39
- import '@appbaseio/reactivecore/lib/actions/query';
40
37
  import '@appbaseio/reactivecore/lib/utils/suggestions';
41
38
  import './FormControlList-fe6eaee4.js';
42
39
  import './utils-d7dd4f4e.js';
@@ -1,3 +1,3 @@
1
- var version = "3.0.0-rc.8";
1
+ var version = "3.1.0-rc.1";
2
2
 
3
3
  export default version;
@@ -120,24 +120,6 @@ var types = {
120
120
  method: VueTypes.string,
121
121
  headers: VueTypes.object,
122
122
  body: VueTypes.object
123
- }),
124
- AIConfig: VueTypes.shape({
125
- systemPrompt: VueTypes.string,
126
- topDocsForContext: VueTypes.number,
127
- maxTokens: VueTypes.number,
128
- docTemplate: VueTypes.string,
129
- queryTemplate: VueTypes.string,
130
- temperature: VueTypes.number
131
- }),
132
- AIUIConfig: VueTypes.shape({
133
- loaderMessage: VueTypes.string,
134
- // slot #loaderMessage should also be supported
135
- showSourceDocuments: VueTypes.bool,
136
- sourceDocumentLabel: VueTypes.string,
137
- onSourceClick: VueTypes.func,
138
- // renderAskButton: VueTypes.func,has to be a slot
139
- askButton: VueTypes.bool,
140
- showFeedback: VueTypes.bool
141
123
  })
142
124
  };
143
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appbaseio/reactivesearch-vue",
3
- "version": "3.0.0-rc.8",
3
+ "version": "3.1.0-rc.1",
4
4
  "private": false,
5
5
  "main": "dist/cjs/index.js",
6
6
  "jsnext:main": "dist/es/index.js",
@@ -34,26 +34,24 @@
34
34
  ],
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@appbaseio/analytics": "^1.2.0-alpha.1",
38
- "@appbaseio/reactivecore": "10.0.0-alpha.26",
37
+ "@appbaseio/analytics": "^1.1.1",
38
+ "@appbaseio/reactivecore": "10.0.0-alpha.4",
39
39
  "@appbaseio/vue-emotion": "0.6.0-alpha.6",
40
40
  "@emotion/css": "^11.10.5",
41
41
  "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0",
42
- "appbase-js": "^5.2.0",
42
+ "appbase-js": "^5.3.3",
43
43
  "compute-scroll-into-view": "^1.0.11",
44
44
  "emotion": "11.0.0",
45
45
  "hotkeys-js": "^3.8.7",
46
46
  "ngeohash": "^0.6.3",
47
47
  "polished": "^2.2.0",
48
48
  "redux": "^4.0.0",
49
- "remarkable": "^2.0.1",
50
49
  "url-search-params-polyfill": "^7.0.0",
51
50
  "vue-google-maps-community-fork": "^0.1.7",
52
51
  "vue-highlight-words": "^1.2.0",
53
52
  "vue-no-ssr": "^1.1.0",
54
53
  "vue-slider-component": "next",
55
- "vue-types": "^5.0.2",
56
- "xss": "^1.0.11"
54
+ "vue-types": "^5.0.2"
57
55
  },
58
56
  "peerDependencies": {
59
57
  "vue": "^3.1.0"
@@ -1,156 +0,0 @@
1
- 'use strict';
2
-
3
- var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-f8b843f8.js');
4
- var vueEmotion = require('@appbaseio/vue-emotion');
5
- var css = require('@emotion/css');
6
-
7
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
8
- var alertBorder = function alertBorder(_ref) {
9
- var theme = _ref.theme;
10
- return "\n\tborder: 1px solid " + theme.colors.alertColor + ";\n";
11
- };
12
- var input = function input(searchBox) {
13
- return "\nwidth: 100%;\nline-height: 1.5;\nmin-height: 42px;\npadding: 8px 12px;\nborder: 1px solid #ccc;\nbackground-color: #fafafa;\nfont-size: 0.9rem;\noutline: none;\n&:focus {\n\tbackground-color: #fff;\n}\n" + (searchBox && "\n\tpadding: 8px 12px 9px;\n\tborder: 1px solid transparent;\n\tborder-radius: 6px;\n") + ";\n";
14
- };
15
- var dark = function dark(theme) {
16
- return "\n\tborder-color: " + theme.colors.borderColor + ";\n";
17
- };
18
- var darkInput = function darkInput(_ref2) {
19
- var theme = _ref2.theme;
20
- return "\n\tbackground-color: " + theme.colors.backgroundColor + ";\n\tcolor: " + theme.colors.textColor + ";\n\t" + dark(theme) + ";\n\n\t&:focus {\n\t\tbackground-color: " + theme.colors.backgroundColor + ";\n\t}\n";
21
- };
22
- var Input = vueEmotion.styled('input')(_templateObject || (_templateObject = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t&[type='search']::-webkit-search-decoration,\n\t&[type='search']::-webkit-search-cancel-button,\n\t&[type='search']::-webkit-search-results-button,\n\t&[type='search']::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n"])), function (props) {
23
- return input(props.searchBox);
24
- }, function (_ref3) {
25
- var themePreset = _ref3.themePreset;
26
- return themePreset === 'dark' && darkInput;
27
- }, function (props) {
28
- return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
29
- }, function (props) {
30
- return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
31
- }, function (props) {
32
- return (
33
- // for clear icon
34
- props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
35
- );
36
- }, function (props) {
37
- return (
38
- // for voice search icon
39
- props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
40
- );
41
- }, function (props) {
42
- return (
43
- // for clear icon with search icon
44
- props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
45
- );
46
- }, function (props) {
47
- return (
48
- // for voice search icon with clear icon
49
- props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
50
- );
51
- }, function (props) {
52
- return (
53
- // for voice search icon with search icon
54
- props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
55
- );
56
- }, function (props) {
57
- return (
58
- // for clear icon with search icon and voice search
59
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
60
- );
61
- }, function (props) {
62
- return props.alert && alertBorder;
63
- }, function (props) {
64
- return props.isOpen && "\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t";
65
- });
66
- var suggestions = function suggestions(themePreset, theme) {
67
- return css.css(_templateObject2 || (_templateObject2 = _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: flex;\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
- var searchboxSuggestions = function searchboxSuggestions(themePreset, theme) {
70
- return css.css(_templateObject3 || (_templateObject3 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\n\tmax-height: min(100vh, 401px);\n\tborder: none;\n\tborder-radius: 6px;\n\tborder-top-left-radius: 0;\n\tborder-top-right-radius: 0;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 10px 15px;\n\tborder-top: 1px solid #f2f0f0;\n\tli {\n\t\ttransition: all 0.3s ease-in;\n\t\tposition: relative;\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: unset;\n\t\t}\n\t\t.trim {\n\t\t\tline-height: 20px;\n\t\t}\n\t\t&.li-item {\n\t\t\tbackground-color: ", ";\n\n\t\t\t", "\n\t\t}\n\t\t&.active-li-item {\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: #fff;\n\t\t\tsvg {\n\t\t\t\ttransition: fill 0.3s ease-in;\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.section-container {\n\t\tpadding-bottom: 5px;\n\t\tborder-bottom: 1px solid #f2f0f0;\n\t\t", ";\n\t\t.section-header {\n\t\t\tpadding: 10px;\n\t\t\tfont-size: 12px;\n\t\t\tcolor: #7f7c7c;\n\t\t\tbackground: #f9f9f9;\n\t\t\t", ";\n\t\t}\n\n\t\t.section-list {\n\t\t\tpadding-left: 0;\n\t\t}\n\t\t.section-list-item {\n\t\t\t&__label,\n\t\t\t&__description {\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\twhite-space: nowrap;\n\n\t\t\t\t* {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tpadding: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&__label {\n\t\t\t}\n\t\t\t&__description {\n\t\t\t\tmargin-top: 5px;\n\t\t\t\topacity: 0.7;\n\t\t\t\tfont-size: 12px;\n\t\t\t}\n\t\t}\n\t}\n"])), suggestions(themePreset, theme), themePreset === 'dark' ? '#424242' : '#fff', themePreset && theme && "svg {\n\t\t\t\tfill: " + (theme.colors ? theme.colors.primaryColor : '#707070') + ";\n\t\t\t}", themePreset === 'dark' ? '#555' : '#2d84f6', themePreset === 'dark' && css.css(_templateObject4 || (_templateObject4 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tbackground: #161616;\n\t\t"]))), themePreset === 'dark' && css.css(_templateObject5 || (_templateObject5 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\t\tcolor: #218fe7;\n\t\t\t\tbackground: #161616;\n\t\t\t"]))));
71
- };
72
- var suggestionsContainer = css.css(_templateObject6 || (_templateObject6 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
73
- var noSuggestions = function noSuggestions(themePreset, theme) {
74
- return css.css(_templateObject7 || (_templateObject7 = _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));
75
- };
76
- var TextArea = vueEmotion.styled('textarea')(_templateObject8 || (_templateObject8 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\t", "\n"])), input, function (_ref4) {
77
- var themePreset = _ref4.themePreset,
78
- theme = _ref4.theme;
79
- return themePreset === 'dark' && darkInput({
80
- theme: theme
81
- });
82
- }, function (props) {
83
- return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
84
- }, function (props) {
85
- return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
86
- }, function (props) {
87
- return (
88
- // for clear icon
89
- props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
90
- );
91
- }, function (props) {
92
- return (
93
- // for voice search icon
94
- props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
95
- );
96
- }, function (props) {
97
- return props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 20px;\n\t\t";
98
- }, function (props) {
99
- return props.showIcon && props.showFocusShortcutsIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t";
100
- }, function (props) {
101
- return (
102
- // for voice search icon with focusshortcut icon
103
- props.showVoiceSearch && props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 50px;\n\t\t"
104
- );
105
- }, function (props) {
106
- return (
107
- // for clear icon with search icon
108
- props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
109
- );
110
- }, function (props) {
111
- return (
112
- // for voice search icon with clear icon
113
- props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
114
- );
115
- }, function (props) {
116
- return (
117
- // for voice search icon with search icon
118
- props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
119
- );
120
- }, function (props) {
121
- return (
122
- // for voice search icon with focusshortcut icon and clear icon
123
- props.showVoiceSearch && props.showFocusShortcutsIcon && props.showClear && "\n\t\t\tpadding-right: 80px;\n\t\t"
124
- );
125
- }, function (props) {
126
- return (
127
- // for search icon with focusshortcut icon
128
- props.showIcon && props.showFocusShortcutsIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
129
- );
130
- }, function (props) {
131
- return (
132
- // for clear icon with search icon and voice search
133
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
134
- );
135
- }, function (props) {
136
- return (
137
- // for clear icon with search icon, focusshortcut icon and voice search
138
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 106px;\n\t\t"
139
- );
140
- }, function (props) {
141
- return props.alert && alertBorder;
142
- }, function (props) {
143
- return props.isOpen && css.css(_templateObject9 || (_templateObject9 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t"])));
144
- }, function (_ref5) {
145
- var searchBox = _ref5.searchBox;
146
- return searchBox && "\n\t\tbackground: none;\n\t\tpadding:0px;\n\t\tpadding-top: 12px;\n\t\tborder: none;\n\t\tline-height: inherit;\n\t\twhite-space: nowrap;\n\t\t&:focus {\n\t\t\tbackground: none;\n\t\t}\n\t";
147
- });
148
- var Actions = vueEmotion.styled('div')(_templateObject10 || (_templateObject10 = _rollupPluginBabelHelpers._taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n"])));
149
-
150
- exports.Actions = Actions;
151
- exports.Input = Input;
152
- exports.TextArea = TextArea;
153
- exports.noSuggestions = noSuggestions;
154
- exports.searchboxSuggestions = searchboxSuggestions;
155
- exports.suggestions = suggestions;
156
- exports.suggestionsContainer = suggestionsContainer;
@@ -1,148 +0,0 @@
1
- import { _ as _taggedTemplateLiteralLoose } from './_rollupPluginBabelHelpers-ded08042.js';
2
- import { styled } from '@appbaseio/vue-emotion';
3
- import { css } from '@emotion/css';
4
-
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
6
- var alertBorder = function alertBorder(_ref) {
7
- var theme = _ref.theme;
8
- return "\n\tborder: 1px solid " + theme.colors.alertColor + ";\n";
9
- };
10
- var input = function input(searchBox) {
11
- return "\nwidth: 100%;\nline-height: 1.5;\nmin-height: 42px;\npadding: 8px 12px;\nborder: 1px solid #ccc;\nbackground-color: #fafafa;\nfont-size: 0.9rem;\noutline: none;\n&:focus {\n\tbackground-color: #fff;\n}\n" + (searchBox && "\n\tpadding: 8px 12px 9px;\n\tborder: 1px solid transparent;\n\tborder-radius: 6px;\n") + ";\n";
12
- };
13
- var dark = function dark(theme) {
14
- return "\n\tborder-color: " + theme.colors.borderColor + ";\n";
15
- };
16
- var darkInput = function darkInput(_ref2) {
17
- var theme = _ref2.theme;
18
- return "\n\tbackground-color: " + theme.colors.backgroundColor + ";\n\tcolor: " + theme.colors.textColor + ";\n\t" + dark(theme) + ";\n\n\t&:focus {\n\t\tbackground-color: " + theme.colors.backgroundColor + ";\n\t}\n";
19
- };
20
- var Input = styled('input')(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t&[type='search']::-webkit-search-decoration,\n\t&[type='search']::-webkit-search-cancel-button,\n\t&[type='search']::-webkit-search-results-button,\n\t&[type='search']::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n"])), function (props) {
21
- return input(props.searchBox);
22
- }, function (_ref3) {
23
- var themePreset = _ref3.themePreset;
24
- return themePreset === 'dark' && darkInput;
25
- }, function (props) {
26
- return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
27
- }, function (props) {
28
- return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
29
- }, function (props) {
30
- return (
31
- // for clear icon
32
- props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
33
- );
34
- }, function (props) {
35
- return (
36
- // for voice search icon
37
- props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
38
- );
39
- }, function (props) {
40
- return (
41
- // for clear icon with search icon
42
- props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
43
- );
44
- }, function (props) {
45
- return (
46
- // for voice search icon with clear icon
47
- props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
48
- );
49
- }, function (props) {
50
- return (
51
- // for voice search icon with search icon
52
- props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
53
- );
54
- }, function (props) {
55
- return (
56
- // for clear icon with search icon and voice search
57
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
58
- );
59
- }, function (props) {
60
- return props.alert && alertBorder;
61
- }, function (props) {
62
- return props.isOpen && "\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t";
63
- });
64
- var suggestions = function suggestions(themePreset, theme) {
65
- return css(_templateObject2 || (_templateObject2 = _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: flex;\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));
66
- };
67
- var searchboxSuggestions = function searchboxSuggestions(themePreset, theme) {
68
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n\t", ";\n\n\tmax-height: min(100vh, 401px);\n\tborder: none;\n\tborder-radius: 6px;\n\tborder-top-left-radius: 0;\n\tborder-top-right-radius: 0;\n\tbox-shadow: rgb(0 0 0 / 20%) 0px 10px 15px;\n\tborder-top: 1px solid #f2f0f0;\n\tli {\n\t\ttransition: all 0.3s ease-in;\n\t\tposition: relative;\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: unset;\n\t\t}\n\t\t.trim {\n\t\t\tline-height: 20px;\n\t\t}\n\t\t&.li-item {\n\t\t\tbackground-color: ", ";\n\n\t\t\t", "\n\t\t}\n\t\t&.active-li-item {\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: #fff;\n\t\t\tsvg {\n\t\t\t\ttransition: fill 0.3s ease-in;\n\t\t\t\tfill: #fff !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.section-container {\n\t\tpadding-bottom: 5px;\n\t\tborder-bottom: 1px solid #f2f0f0;\n\t\t", ";\n\t\t.section-header {\n\t\t\tpadding: 10px;\n\t\t\tfont-size: 12px;\n\t\t\tcolor: #7f7c7c;\n\t\t\tbackground: #f9f9f9;\n\t\t\t", ";\n\t\t}\n\n\t\t.section-list {\n\t\t\tpadding-left: 0;\n\t\t}\n\t\t.section-list-item {\n\t\t\t&__label,\n\t\t\t&__description {\n\t\t\t\toverflow: hidden;\n\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\twhite-space: nowrap;\n\n\t\t\t\t* {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tpadding: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&__label {\n\t\t\t}\n\t\t\t&__description {\n\t\t\t\tmargin-top: 5px;\n\t\t\t\topacity: 0.7;\n\t\t\t\tfont-size: 12px;\n\t\t\t}\n\t\t}\n\t}\n"])), suggestions(themePreset, theme), themePreset === 'dark' ? '#424242' : '#fff', themePreset && theme && "svg {\n\t\t\t\tfill: " + (theme.colors ? theme.colors.primaryColor : '#707070') + ";\n\t\t\t}", themePreset === 'dark' ? '#555' : '#2d84f6', themePreset === 'dark' && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n\t\t\tbackground: #161616;\n\t\t"]))), themePreset === 'dark' && css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n\t\t\t\tcolor: #218fe7;\n\t\t\t\tbackground: #161616;\n\t\t\t"]))));
69
- };
70
- var suggestionsContainer = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"])));
71
- var noSuggestions = function noSuggestions(themePreset, theme) {
72
- return css(_templateObject7 || (_templateObject7 = _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));
73
- };
74
- var TextArea = styled('textarea')(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n\t", ";\n\t", ";\n\n\t", ";\n\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t", ";\n\t&::-webkit-search-decoration,\n\t&::-webkit-search-cancel-button,\n\t&::-webkit-search-results-button,\n\t&::-webkit-search-results-decoration {\n\t\tdisplay: none;\n\t}\n\tresize: none;\n\toverflow: hidden;\n\theight: 42px;\n\t", "\n"])), input, function (_ref4) {
75
- var themePreset = _ref4.themePreset,
76
- theme = _ref4.theme;
77
- return themePreset === 'dark' && darkInput({
78
- theme: theme
79
- });
80
- }, function (props) {
81
- return props.showIcon && props.iconPosition === 'left' && "\n\t\t\tpadding-left: 36px;\n\t\t";
82
- }, function (props) {
83
- return props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 36px;\n\t\t";
84
- }, function (props) {
85
- return (
86
- // for clear icon
87
- props.showClear && "\n\t\t\tpadding-right: 36px;\n\t\t"
88
- );
89
- }, function (props) {
90
- return (
91
- // for voice search icon
92
- props.showVoiceSearch && "\n\t\t\tpadding-right: 36px;\n\t\t"
93
- );
94
- }, function (props) {
95
- return props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 20px;\n\t\t";
96
- }, function (props) {
97
- return props.showIcon && props.showFocusShortcutsIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t";
98
- }, function (props) {
99
- return (
100
- // for voice search icon with focusshortcut icon
101
- props.showVoiceSearch && props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 50px;\n\t\t"
102
- );
103
- }, function (props) {
104
- return (
105
- // for clear icon with search icon
106
- props.showClear && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
107
- );
108
- }, function (props) {
109
- return (
110
- // for voice search icon with clear icon
111
- props.showVoiceSearch && props.showIcon && "\n\t\t\tpadding-right: 66px;\n\t\t"
112
- );
113
- }, function (props) {
114
- return (
115
- // for voice search icon with search icon
116
- props.showVoiceSearch && props.showIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
117
- );
118
- }, function (props) {
119
- return (
120
- // for voice search icon with focusshortcut icon and clear icon
121
- props.showVoiceSearch && props.showFocusShortcutsIcon && props.showClear && "\n\t\t\tpadding-right: 80px;\n\t\t"
122
- );
123
- }, function (props) {
124
- return (
125
- // for search icon with focusshortcut icon
126
- props.showIcon && props.showFocusShortcutsIcon && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 66px;\n\t\t"
127
- );
128
- }, function (props) {
129
- return (
130
- // for clear icon with search icon and voice search
131
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && "\n\t\t\tpadding-right: 90px;\n\t\t"
132
- );
133
- }, function (props) {
134
- return (
135
- // for clear icon with search icon, focusshortcut icon and voice search
136
- props.showClear && props.showIcon && props.showVoiceSearch && props.iconPosition === 'right' && props.showFocusShortcutsIcon && "\n\t\t\tpadding-right: 106px;\n\t\t"
137
- );
138
- }, function (props) {
139
- return props.alert && alertBorder;
140
- }, function (props) {
141
- return props.isOpen && css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t"])));
142
- }, function (_ref5) {
143
- var searchBox = _ref5.searchBox;
144
- return searchBox && "\n\t\tbackground: none;\n\t\tpadding:0px;\n\t\tpadding-top: 12px;\n\t\tborder: none;\n\t\tline-height: inherit;\n\t\twhite-space: nowrap;\n\t\t&:focus {\n\t\t\tbackground: none;\n\t\t}\n\t";
145
- });
146
- var Actions = styled('div')(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n\tdisplay: flex;\n"])));
147
-
148
- export { Actions as A, Input as I, TextArea as T, suggestions as a, searchboxSuggestions as b, noSuggestions as n, suggestionsContainer as s };