@frontile/utilities 0.17.1 → 0.18.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.
|
@@ -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.1",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@ember/test-waiters": "^4.0.0",
|
|
56
56
|
"@embroider/addon-shim": "^1.9.0",
|
|
57
|
-
"@frontile/theme": "0.
|
|
57
|
+
"@frontile/theme": "0.18.0-alpha.1",
|
|
58
58
|
"ember-auto-import": "^2.7.2",
|
|
59
59
|
"ember-element-helper": "^0.8.5",
|
|
60
60
|
"ember-modifier": "^4.1.0",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"./modifiers/press.js": "./dist/_app_/modifiers/press.js"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "fd97ba4f441882b1dd5cb07e57a8a0314d9990f6"
|
|
112
112
|
}
|