@shoper/phoenix_design_system 1.4.3-2 → 1.4.3-4

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.
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
6
+ var lit = require('lit');
6
7
  var decorators = require('lit/decorators');
7
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
8
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
@@ -11,7 +12,6 @@ var context_consumer_controller = require('../../../core/context/context_consume
11
12
  var behavior_subject = require('../../../core/classes/behavior_subject/behavior_subject.js');
12
13
  var context_provider_controller = require('../../../core/context/context_provider_controller.js');
13
14
  var search_constants = require('./search_constants.js');
14
- var development = require('lit/development');
15
15
  var when = require('../../../../../../external/lit/external/lit-html/directives/when.js');
16
16
 
17
17
  exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -153,11 +153,11 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
153
153
  this._shouldShowResults = false;
154
154
  }
155
155
  render() {
156
- return development.html `
156
+ return lit.html `
157
157
  ${when.when(this._shouldShowHistory, () => {
158
- return development.html `<h-search-history .history="${this._historyLimitedContent}"></h-search-history>`;
158
+ return lit.html `<h-search-history .history="${this._historyLimitedContent}"></h-search-history>`;
159
159
  })}
160
- ${when.when(this._shouldShowResults, () => development.html `<h-search-results .results="${this._searchResults}"></h-search-results>`)}
160
+ ${when.when(this._shouldShowResults, () => lit.html `<h-search-results .results="${this._searchResults}"></h-search-results>`)}
161
161
  `;
162
162
  }
163
163
  };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
6
+ var lit = require('lit');
6
7
  var decorators = require('lit/decorators');
7
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
8
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
@@ -10,7 +11,6 @@ var observer = require('../../../core/classes/observer/observer.js');
10
11
  var context_consumer_controller = require('../../../core/context/context_consumer_controller.js');
11
12
  var ref_js = require('lit-html/directives/ref.js');
12
13
  var search_constants = require('./search_constants.js');
13
- var development = require('lit/development');
14
14
  var repeat = require('lit/directives/repeat');
15
15
 
16
16
  exports.HSearchHistory = class HSearchHistory extends phoenix_light_lit_element.PhoenixLightLitElement {
@@ -36,11 +36,11 @@ exports.HSearchHistory = class HSearchHistory extends phoenix_light_lit_element.
36
36
  }
37
37
  }
38
38
  render() {
39
- return development.html `<div class="${search_constants.SEARCH_CLASS_NAMES.historyContainer}">
39
+ return lit.html `<div class="${search_constants.SEARCH_CLASS_NAMES.historyContainer}">
40
40
  <h-portal to="${search_constants.SEARCH_PORTAL_DESTINATIONS.historyContent}" hidden>
41
41
  <h3 class="${search_constants.SEARCH_CLASS_NAMES.historyContainerHeadline}">Historia</h3>
42
42
  <ul class="${search_constants.SEARCH_CLASS_NAMES.historyContainerList}">
43
- ${repeat.repeat(this.history, (historyElement) => development.html `<li class="${search_constants.SEARCH_CLASS_NAMES.historyContainerItem}">
43
+ ${repeat.repeat(this.history, (historyElement) => lit.html `<li class="${search_constants.SEARCH_CLASS_NAMES.historyContainerItem}">
44
44
  <h-search-history-select item-label="${historyElement.label}">
45
45
  <span class="search__icon_main-color search__list-icon icon icon-reload"></span>
46
46
  <span class="search__history-item-value">${historyElement.label}</span>
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
6
+ var lit = require('lit');
6
7
  var decorators = require('lit/decorators');
7
8
  var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
8
9
  var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
9
10
  var search_constants = require('./search_constants.js');
10
- var development = require('lit/development');
11
11
 
12
12
  exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.PhoenixLightLitElement {
13
13
  constructor() {
@@ -21,7 +21,7 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
21
21
  }
22
22
  render() {
23
23
  if (this.results)
24
- return development.html `<div class="${search_constants.SEARCH_CLASS_NAMES.resultsListContainer}">
24
+ return lit.html `<div class="${search_constants.SEARCH_CLASS_NAMES.resultsListContainer}">
25
25
  <h-portal to="${search_constants.SEARCH_PORTAL_DESTINATIONS.resultsContent}">
26
26
  <div>
27
27
  <h3 class="search__section-head search__section-head_sticky search__section-head_line">Results</h3>
@@ -41,7 +41,7 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
41
41
  style="position: absolute; right: 0; bottom: 0"
42
42
  ></h-portal-target>
43
43
  </div> `;
44
- return development.nothing;
44
+ return lit.nothing;
45
45
  }
46
46
  };
47
47
  tslib_es6.__decorate([
@@ -1,4 +1,5 @@
1
1
  import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { html } from 'lit';
2
3
  import { state } from 'lit/decorators';
3
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
4
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
@@ -7,7 +8,6 @@ import { ContextConsumerController } from '../../../core/context/context_consume
7
8
  import { BehaviorSubject } from '../../../core/classes/behavior_subject/behavior_subject.js';
8
9
  import { ContextProviderController } from '../../../core/context/context_provider_controller.js';
9
10
  import { SEARCH_CONFIGURATION, SEARCH_CUSTOM_EVENT_NAMES, SEARCH_COMPONENT_NAMES } from './search_constants.js';
10
- import { html } from 'lit/development';
11
11
  import { when as n } from '../../../../../../external/lit/external/lit-html/directives/when.js';
12
12
 
13
13
  let HSearch = class HSearch extends PhoenixLightLitElement {
@@ -1,4 +1,5 @@
1
1
  import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { html } from 'lit';
2
3
  import { property } from 'lit/decorators';
3
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
4
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
@@ -6,7 +7,6 @@ import { Observer } from '../../../core/classes/observer/observer.js';
6
7
  import { ContextConsumerController } from '../../../core/context/context_consumer_controller.js';
7
8
  import { createRef, ref } from 'lit-html/directives/ref.js';
8
9
  import { SEARCH_CLASS_NAMES, SEARCH_PORTAL_DESTINATIONS, SEARCH_COMPONENT_NAMES } from './search_constants.js';
9
- import { html } from 'lit/development';
10
10
  import { repeat } from 'lit/directives/repeat';
11
11
 
12
12
  let HSearchHistory = class HSearchHistory extends PhoenixLightLitElement {
@@ -1,6 +1,6 @@
1
1
  import type { TSearchResults } from "./search_types";
2
2
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
3
- import { nothing } from 'lit/development';
3
+ import { nothing } from 'lit';
4
4
  export declare class HSearchResults extends PhoenixLightLitElement {
5
5
  results: TSearchResults;
6
6
  render(): import("lit-html").TemplateResult<1> | typeof nothing;
@@ -1,9 +1,9 @@
1
1
  import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { html, nothing } from 'lit';
2
3
  import { property } from 'lit/decorators';
3
4
  import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
4
5
  import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
5
6
  import { SEARCH_CLASS_NAMES, SEARCH_PORTAL_DESTINATIONS, SEARCH_COMPONENT_NAMES } from './search_constants.js';
6
- import { html, nothing } from 'lit/development';
7
7
 
8
8
  let HSearchResults = class HSearchResults extends PhoenixLightLitElement {
9
9
  constructor() {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "1.4.3-2",
5
+ "version": "1.4.3-4",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",