@frontile/utilities 0.17.0 → 0.18.0-alpha.0
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.
|
@@ -17,7 +17,7 @@ function getTag(orientation, as) {
|
|
|
17
17
|
const {
|
|
18
18
|
divider
|
|
19
19
|
} = useStyles();
|
|
20
|
-
const Divider = setComponentTemplate(precompileTemplate("\n {{#let (element (getTag @orientation @as)) as |Tag|}}\n <Tag class={{
|
|
20
|
+
const Divider = setComponentTemplate(precompileTemplate("\n {{#let (element (getTag @orientation @as)) as |Tag|}}\n <Tag class={{divider (hash class=@class)}} role=\"separator\" data-test-id=\"divider\" ...attributes />\n {{/let}}\n", {
|
|
21
21
|
strictMode: true,
|
|
22
22
|
scope: () => ({
|
|
23
23
|
element,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../../src/components/divider.gts"],"sourcesContent":["import { hash } from '@ember/helper';\nimport { useStyles } from '@frontile/theme';\nimport { element } from 'ember-element-helper';\nimport type { TOC } from '@ember/component/template-only';\n\nfunction getTag(\n orientation: string | undefined,\n as?: string | undefined\n): string {\n if (as) {\n return as;\n }\n\n if (orientation === 'vertical') {\n return 'div';\n }\n return 'hr';\n}\n\nconst { divider } = useStyles();\n\nconst Divider: TOC<{\n Args: {\n orientation?: 'horizontal' | 'vertical';\n as?: string;\n class?: string;\n };\n Element: Element;\n}> = <template>\n {{#let (element (getTag @orientation @as)) as |Tag|}}\n <Tag\n class={{
|
|
1
|
+
{"version":3,"file":"divider.js","sources":["../../src/components/divider.gts"],"sourcesContent":["import { hash } from '@ember/helper';\nimport { useStyles } from '@frontile/theme';\nimport { element } from 'ember-element-helper';\nimport type { TOC } from '@ember/component/template-only';\n\nfunction getTag(\n orientation: string | undefined,\n as?: string | undefined\n): string {\n if (as) {\n return as;\n }\n\n if (orientation === 'vertical') {\n return 'div';\n }\n return 'hr';\n}\n\nconst { divider } = useStyles();\n\nconst Divider: TOC<{\n Args: {\n orientation?: 'horizontal' | 'vertical';\n as?: string;\n class?: string;\n };\n Element: Element;\n}> = <template>\n {{#let (element (getTag @orientation @as)) as |Tag|}}\n <Tag\n class={{divider (hash class=@class)}}\n role=\"separator\"\n data-test-id=\"divider\"\n ...attributes\n />\n {{/let}}\n</template>;\n\nexport { Divider };\nexport default Divider;\n"],"names":["getTag","orientation","as","divider","useStyles","Divider","setComponentTemplate","precompileTemplate","strictMode","scope","element","hash","templateOnly"],"mappings":";;;;;;;AAKA,SAASA,MAAAA,CACPC,WAA+B,EAC/BC,EAAuB,EAChB;AACP,EAAA,IAAIA,EAAA,EAAI;AACN,IAAA,OAAOA,EAAA;AACT,EAAA;EAEA,IAAID,gBAAgB,UAAA,EAAY;AAC9B,IAAA,OAAO,KAAA;AACT,EAAA;AACA,EAAA,OAAO,IAAA;AACT;AAEA,MAAM;AAAEE,EAAAA;AAAO,CAAE,GAAGC,SAAA,EAAA;AAEpB,MAAMC,OAOD,GAAAC,oBAAA,CAAAC,kBAAA,CAAA,sLAAA,EASL;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,OAAA;IAAAV,MAAA;IAAAG,OAAA;AAAAQ,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/utilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0-alpha.0",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -36,25 +36,10 @@
|
|
|
36
36
|
"declarations",
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "rollup --config",
|
|
41
|
-
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
42
|
-
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
43
|
-
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
44
|
-
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
45
|
-
"lint:js": "eslint . --cache",
|
|
46
|
-
"lint:js:fix": "eslint . --fix",
|
|
47
|
-
"lint:types": "glint",
|
|
48
|
-
"prepack": "concurrently 'npm:build'",
|
|
49
|
-
"start": "concurrently 'npm:start:*'",
|
|
50
|
-
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
51
|
-
"start:types": "glint -d --watch",
|
|
52
|
-
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
53
|
-
},
|
|
54
39
|
"dependencies": {
|
|
55
40
|
"@ember/test-waiters": "^4.0.0",
|
|
56
41
|
"@embroider/addon-shim": "^1.9.0",
|
|
57
|
-
"@frontile/theme": "0.
|
|
42
|
+
"@frontile/theme": "0.18.0-alpha.0",
|
|
58
43
|
"ember-auto-import": "^2.7.2",
|
|
59
44
|
"ember-element-helper": "^0.8.5",
|
|
60
45
|
"ember-modifier": "^4.1.0",
|
|
@@ -108,5 +93,18 @@
|
|
|
108
93
|
"./modifiers/press.js": "./dist/_app_/modifiers/press.js"
|
|
109
94
|
}
|
|
110
95
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
96
|
+
"scripts": {
|
|
97
|
+
"build": "rollup --config",
|
|
98
|
+
"lint": "concurrently 'npm:lint:*(!fix)' --names 'lint:'",
|
|
99
|
+
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
|
|
100
|
+
"lint:hbs": "ember-template-lint . --no-error-on-unmatched-pattern",
|
|
101
|
+
"lint:hbs:fix": "ember-template-lint . --fix --no-error-on-unmatched-pattern",
|
|
102
|
+
"lint:js": "eslint . --cache",
|
|
103
|
+
"lint:js:fix": "eslint . --fix",
|
|
104
|
+
"lint:types": "glint",
|
|
105
|
+
"start": "concurrently 'npm:start:*'",
|
|
106
|
+
"start:js": "rollup --config --watch --no-watch.clearScreen",
|
|
107
|
+
"start:types": "glint -d --watch",
|
|
108
|
+
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
|
|
109
|
+
}
|
|
110
|
+
}
|