@salla.sa/twilight 2.0.20 → 2.0.22

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 (61) hide show
  1. package/package.json +1 -1
  2. package/components/README.md +0 -55
  3. package/components/dist/cjs/index-9441fd8e.js +0 -1554
  4. package/components/dist/cjs/index.cjs.js +0 -2
  5. package/components/dist/cjs/loader.cjs.js +0 -21
  6. package/components/dist/cjs/salla-login_2.cjs.entry.js +0 -131
  7. package/components/dist/cjs/twilight-components.cjs.js +0 -19
  8. package/components/dist/collection/collection-manifest.json +0 -13
  9. package/components/dist/collection/components/generate-summary.js +0 -35
  10. package/components/dist/collection/components/salla-login/salla-login.css +0 -104
  11. package/components/dist/collection/components/salla-login/salla-login.js +0 -113
  12. package/components/dist/collection/components/search-modal/search-modal.css +0 -9
  13. package/components/dist/collection/components/search-modal/search-modal.js +0 -161
  14. package/components/dist/collection/index.js +0 -1
  15. package/components/dist/collection/interfaces/colors.js +0 -1
  16. package/components/dist/collection/interfaces/index.js +0 -2
  17. package/components/dist/collection/interfaces/ratio.js +0 -1
  18. package/components/dist/collection/plugins/tailwind-theme/index.js +0 -32
  19. package/components/dist/collection/plugins/tailwind-theme/scripts/generator.js +0 -51
  20. package/components/dist/collection/utils/utils.js +0 -16
  21. package/components/dist/esm/index-63e5409f.js +0 -1527
  22. package/components/dist/esm/index.js +0 -1
  23. package/components/dist/esm/loader.js +0 -17
  24. package/components/dist/esm/polyfills/core-js.js +0 -11
  25. package/components/dist/esm/polyfills/css-shim.js +0 -1
  26. package/components/dist/esm/polyfills/dom.js +0 -79
  27. package/components/dist/esm/polyfills/es5-html-element.js +0 -1
  28. package/components/dist/esm/polyfills/index.js +0 -34
  29. package/components/dist/esm/polyfills/system.js +0 -6
  30. package/components/dist/esm/salla-login_2.entry.js +0 -126
  31. package/components/dist/esm/twilight-components.js +0 -17
  32. package/components/dist/index.cjs.js +0 -1
  33. package/components/dist/index.js +0 -1
  34. package/components/dist/twilight-components/index.esm.js +0 -0
  35. package/components/dist/twilight-components/p-3d53781c.js +0 -1
  36. package/components/dist/twilight-components/p-fccb89fa.entry.js +0 -1
  37. package/components/dist/twilight-components/twilight-components.esm.js +0 -1
  38. package/components/dist/types/components/salla-login/salla-login.d.ts +0 -14
  39. package/components/dist/types/components/search-modal/search-modal.d.ts +0 -26
  40. package/components/dist/types/components.d.ts +0 -76
  41. package/components/dist/types/index.d.ts +0 -6
  42. package/components/dist/types/interfaces/colors.d.ts +0 -1
  43. package/components/dist/types/interfaces/index.d.ts +0 -2
  44. package/components/dist/types/interfaces/ratio.d.ts +0 -1
  45. package/components/dist/types/stencil-public-runtime.d.ts +0 -1563
  46. package/components/dist/types/utils/utils.d.ts +0 -6
  47. package/components/loader/cdn.js +0 -3
  48. package/components/loader/index.cjs.js +0 -3
  49. package/components/loader/index.d.ts +0 -13
  50. package/components/loader/index.es2017.js +0 -3
  51. package/components/loader/index.js +0 -4
  52. package/components/loader/package.json +0 -10
  53. package/components/package.json +0 -70
  54. package/components/src/plugins/tailwind-theme/index.js +0 -32
  55. package/components/src/plugins/tailwind-theme/package.json +0 -27
  56. package/components/src/plugins/tailwind-theme/readme.md +0 -47
  57. package/components/src/plugins/tailwind-theme/safe-list-css.txt +0 -19
  58. package/components/src/plugins/tailwind-theme/utilities.json +0 -1
  59. package/components.js +0 -1
  60. package/tailwind.js +0 -1
  61. package/tailwind_css_list.js +0 -1
@@ -1,6 +0,0 @@
1
- export declare function format(first: string, middle: string, last: string): string;
2
- export declare const toInteger: (value: string, defaultValue?: number) => number;
3
- export declare const validateInput: (event: any) => {
4
- isValid: boolean;
5
- errors: any[];
6
- };
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,3 +0,0 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -1,13 +0,0 @@
1
-
2
- export * from '../dist/types/components';
3
- export interface CustomElementsDefineOptions {
4
- exclude?: string[];
5
- resourcesUrl?: string;
6
- syncQueue?: boolean;
7
- jmp?: (c: Function) => any;
8
- raf?: (c: FrameRequestCallback) => number;
9
- ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
- rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
11
- }
12
- export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
13
- export declare function applyPolyfills(): Promise<void>;
@@ -1,3 +0,0 @@
1
-
2
- export * from '../dist/esm/polyfills/index.js';
3
- export * from '../dist/esm/loader.js';
@@ -1,4 +0,0 @@
1
-
2
- (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
- export * from '../dist/esm/polyfills/index.js';
4
- export * from '../dist/esm/loader.js';
@@ -1,10 +0,0 @@
1
- {
2
- "name": "twilight-components-loader",
3
- "typings": "./index.d.ts",
4
- "module": "./index.js",
5
- "main": "./index.cjs.js",
6
- "jsnext:main": "./index.es2017.js",
7
- "es2015": "./index.es2017.js",
8
- "es2017": "./index.es2017.js",
9
- "unpkg": "./cdn.js"
10
- }
@@ -1,70 +0,0 @@
1
- {
2
- "name": "@salla.sa/twilight-components",
3
- "version": "1.0.2",
4
- "license": "MIT",
5
- "keywords": [
6
- "twilight",
7
- "Salla",
8
- "Salla-web-component",
9
- "Salla app"
10
- ],
11
- "description": "Salla Web Component",
12
- "main": "dist/index.cjs.js",
13
- "module": "dist/index.js",
14
- "es2015": "dist/esm/index.mjs",
15
- "es2017": "dist/esm/index.mjs",
16
- "types": "dist/types/index.d.ts",
17
- "collection": "dist/collection/collection-manifest.json",
18
- "collection:main": "dist/collection/index.js",
19
- "unpkg": "dist/atoms/atoms.js",
20
- "files": [
21
- "dist/",
22
- "loader/",
23
- "src/plugins/tailwind-theme/index.js",
24
- "src/plugins/tailwind-theme/utilities.json",
25
- "src/plugins/tailwind-theme/safe-list-css.txt"
26
- ],
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/sallaapp/twilight-components.git"
30
- },
31
- "homepage": "https://salla.dev",
32
- "scripts": {
33
- "build": "stencil build",
34
- "docs": "stencil build --docs",
35
- "start": "stencil build --dev --watch --serve",
36
- "test": "stencil test --spec --e2e",
37
- "test.watch": "stencil test --spec --e2e --watchAll",
38
- "generate": "stencil generate",
39
- "lint": "eslint src/**/*{.ts,.tsx}",
40
- "doc": "node src/components/generate-summary.js && npx compodoc -p src/tsconfig.app.json",
41
- "doc:serve": "npm run doc && npx compodoc -s",
42
- "doc:wow": "stencil build --docs-readme",
43
- "ci:build": "stencil build --ci",
44
- "ci:test": "stencil test --spec",
45
- "prerender": "stencil build --prerender"
46
- },
47
- "devDependencies": {
48
- "lodash": "^4.17.21",
49
- "tailwindcss": "^2.2.19",
50
- "@compodoc/compodoc": "^1.1.14",
51
- "@stencil/core": "2.8.1",
52
- "@stencil/eslint-plugin": "^0.3.1",
53
- "@stencil/react-output-target": "^0.1.0",
54
- "@stencil/sass": "1.4.1",
55
- "@stencil/vue-output-target": "^0.5.1",
56
- "@types/jest": "26.0.15",
57
- "@types/puppeteer": "3.0.2",
58
- "@typescript-eslint/eslint-plugin": "^2.34.0",
59
- "@typescript-eslint/parser": "^2.34.0",
60
- "eslint": "^7.32.0",
61
- "eslint-config-prettier": "^8.3.0",
62
- "eslint-plugin-react": "^7.26.0",
63
- "jest": "26.6.1",
64
- "jest-cli": "26.6.1",
65
- "prettier": "^2.4.1",
66
- "puppeteer": "^5.4.1",
67
- "typescript": "^4.4.3",
68
- "promisify-child-process": "^3.1.4"
69
- }
70
- }
@@ -1,32 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
- const fs = require('fs');
3
- const path = require('path');
4
-
5
- module.exports = plugin.withOptions(() => {
6
-
7
-
8
- return function({addUtilities}) {
9
- addUtilities({
10
- // TODO :: find if there are used and defined them here if its.
11
- '.anime-item': {},
12
- '.text-md': {},
13
- '.items-top': {},
14
- '.error': {},
15
- '.search-box': {},
16
- '.spinner-loader-wrap': {}
17
- });
18
-
19
- // todo :: move it to global
20
- addUtilities({
21
- '.spinner-loader': {
22
- 'border-right-color': 'var(--main-color) !important',
23
- '&.reverse': {
24
- 'border-right-color': '#9f7171 !important',
25
- 'background-color': '#f98181'
26
- }
27
- }
28
- });
29
-
30
- addUtilities(JSON.parse(fs.readFileSync(path.resolve(__dirname, 'utilities.json'), 'UTF-8')));
31
- };
32
- });
@@ -1,27 +0,0 @@
1
- {
2
- "name": "@salla.sa/twilight-tailwind-theme",
3
- "version": "1.0.0",
4
- "license": "MIT",
5
- "keywords": [
6
- "Salla twilight",
7
- "tailwind",
8
- "tailwind-theme",
9
- "Salla",
10
- "web component"
11
- ],
12
- "description": "Tailwind theme for twilight (Salla Themes)",
13
- "homepage": "https://salla.dev",
14
- "scripts": {
15
- "generate": "node scripts/generator.js",
16
- "publish": "npm version patch && generate && npm publish --access private"
17
- },
18
- "files": [
19
- "index.js",
20
- "safe-list-css.txt",
21
- "utilities.json"
22
- ],
23
- "devDependencies": {
24
- "lodash": "^4.17.21",
25
- "tailwindcss": "^2.2.19"
26
- }
27
- }
@@ -1,47 +0,0 @@
1
- ## Usage
2
-
3
- 1. add the plugin to tailwaind plugins in `tailwind.config.js` file
4
- ```js
5
- plugins: [
6
- ...
7
- require('@salla.sa/twilight-tailwind-theme'),
8
- ....
9
- ]
10
- ```
11
- 2. (Optional) in case you are enabling the `purge` you should add the safe list css class to purge settings in `tailwind.config.js` file
12
-
13
- ### JIT Enabled
14
-
15
- because of https://tailwindcss.com/docs/just-in-time-mode#limitations
16
-
17
- ```js
18
- purge : {
19
- enabled: true,
20
- content: ["views/**/*.twig", "node_modules/@salla.sa/twilight-tailwind-theme/safe-list-css.txt"]
21
- }
22
- ```
23
-
24
- ### JIT Disabled
25
-
26
- You can easly add `/^s-.*/` to safelist
27
- ```js
28
- purge : {
29
- enabled: true,
30
- content: ["views/**/*.twig"],
31
- options: {
32
- safelist: [/^s-.*/]
33
- }
34
- },
35
- ```
36
-
37
- ## Add A new compnoent
38
-
39
- 1. create a new folder with the name of compnenet
40
- 2. create a `utilities.json` file with list of class as json
41
-
42
-
43
- ## Publish
44
-
45
- ```
46
- npm run publish
47
- ```
@@ -1,19 +0,0 @@
1
- s-search-modal-search-button-icon
2
- s-search-modal-container
3
- s-search-modal-wrapper
4
- s-search-modal-inner
5
- s-search-modal-search-box-container
6
- s-search-modal-search-box-inner
7
- s-search-modal-search-box-inner-open
8
- s-search-modal-input
9
- s-search-modal-search-icon
10
- s-search-modal-spinner
11
- s-search-modal-spinner-loader
12
- s-search-modal-search-results
13
- s-search-modal-no-results
14
- s-search-modal-product
15
- s-search-modal-product-image-container
16
- s-search-modal-product-image
17
- s-search-modal-product-details
18
- s-search-modal-product-title
19
- s-search-modal-product-price
@@ -1 +0,0 @@
1
- {".s-search-modal-search-button-icon":{"@apply bg-gray-bg2 hover:bg-gray-150 dark:hover:bg-opacity-10 transition duration-300 mx-3 text-sm rounded-full w-9 h-9":{}},".s-search-modal-container":{"@apply fixed inset-0 z-50 flex items-top justify-center overflow-auto items-top":{}},".s-search-modal-wrapper":{"@apply bg-transparent w-full":{}},".s-search-modal-inner":{"@apply mx-auto w-11/12 lg:w-6/12":{}},".s-search-modal-search-box-container":{"@apply mt-36 search-box anime-item":{}},".s-search-modal-search-box-inner":{"@apply relative bg-white rounded-tiny border border-border-color":{}},".s-search-modal-search-box-inner-open":{"@apply relative bg-white rounded-tiny border border-border-color rounded-b-none":{}},".s-search-modal-input":{"@apply anime-item bg-transparent border-0 form-input w-full ps-10 pt-6 pb-7 rounded-tiny text-gray-600":{}},".s-search-modal-search-icon":{"@apply anime-item flex justify-end items-center absolute top-4 start-4 text-md text-gray-text":{}},".s-search-modal-spinner":{"@apply spinner-loader-wrap absolute top-1/2 transform -translate-y-1/2 start-4 w-4 h-4":{}},".s-search-modal-spinner-loader":{"@apply block spinner-loader w-4 h-4 animate-spin border-2 border-gray-300 rounded-full":{}},".s-search-modal-search-results":{"@apply m-auto max-h-96 overflow-y-auto bg-white rounded-b-tiny":{}},".s-search-modal-no-results":{"@apply error p-4 text-sm text-gray-text":{}},".s-search-modal-product":{"@apply h-full transition duration-500 bg-transparent justify-around overflow-hidden flex transition-colors duration-300 hover:bg-gray-bg2 px-4 xs:px-5 py-5 border-t-0":{}},".s-search-modal-product-image-container":{"@apply relative overflow-hidden w-20 h-20 sm:w-28 sm:h-28 rounded-md":{}},".s-search-modal-product-image":{"@apply h-full w-full object-cover":{}},".s-search-modal-product-details":{"@apply flex-1 ps-4 xs:ps-5 pt-1":{}},".s-search-modal-product-title":{"@apply flex flex-col justify-start items-baseline text-sm font-bold text-title-color leading-6 mb-2.5":{}},".s-search-modal-product-price":{"@apply w-full flex justify-between items-center mb-5 text-primary font-bold text-sm":{}}}
package/components.js DELETED
@@ -1 +0,0 @@
1
- require('./components/dist/twilight-components/twilight-components.esm.js')
package/tailwind.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('./components/src/plugins/tailwind-theme/index.js');
@@ -1 +0,0 @@
1
- module.exports = require('path').resolve(__dirname, 'components/src/plugins/tailwind-theme/safe-list-css.txt');