@frontile/utilities 0.17.0-alpha.13 → 0.17.0-alpha.14
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.
- package/declarations/components/spinner.d.ts +20 -0
- package/declarations/components/spinner.d.ts.map +1 -0
- package/declarations/index.d.ts +1 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +2 -0
- package/declarations/template-registry.d.ts.map +1 -1
- package/dist/_app_/components/spinner.js +1 -0
- package/dist/components/spinner.js +14 -0
- package/dist/components/spinner.js.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +10 -9
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="ember-source/types/stable/@ember/component/template-only" />
|
|
2
|
+
import type { TOC } from '@ember/component/template-only';
|
|
3
|
+
import { type SpinnerVariants } from '@frontile/theme';
|
|
4
|
+
declare const Spinner: TOC<{
|
|
5
|
+
Args: {
|
|
6
|
+
class?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @defaultValue 'md'
|
|
9
|
+
*/
|
|
10
|
+
size?: SpinnerVariants['size'];
|
|
11
|
+
/**
|
|
12
|
+
* @defaultValue 'default'
|
|
13
|
+
*/
|
|
14
|
+
intent?: SpinnerVariants['intent'];
|
|
15
|
+
};
|
|
16
|
+
Element: SVGElement;
|
|
17
|
+
}>;
|
|
18
|
+
export { Spinner };
|
|
19
|
+
export default Spinner;
|
|
20
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/components/spinner.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElE,QAAA,MAAM,OAAO,EAAE,GAAG,CAAC;IACjB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;QAC/B;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;KACpC,CAAC;IACF,OAAO,EAAE,UAAU,CAAC;CACrB,CAmCC,CAAC;AAEH,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
|
package/declarations/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ import 'focus-visible/dist/focus-visible.js';
|
|
|
2
2
|
export { default as VisuallyHidden } from './components/visually-hidden';
|
|
3
3
|
export { default as Collapsible } from './components/collapsible';
|
|
4
4
|
export { default as Divider } from './components/divider';
|
|
5
|
+
export { default as Spinner } from './components/spinner';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type VisuallyHidden from './components/visually-hidden';
|
|
2
2
|
import type Collapsible from './components/collapsible';
|
|
3
|
+
import type Spinner from './components/spinner';
|
|
3
4
|
export default interface Registry {
|
|
4
5
|
VisuallyHidden: typeof VisuallyHidden;
|
|
5
6
|
Collapsible: typeof Collapsible;
|
|
7
|
+
Spinner: typeof Spinner;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=template-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,QAAQ;IAC/B,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,OAAO,EAAE,OAAO,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/utilities/components/spinner";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useStyles } from '@frontile/theme';
|
|
2
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
3
|
+
import { setComponentTemplate } from '@ember/component';
|
|
4
|
+
import templateOnly from '@ember/component/template-only';
|
|
5
|
+
|
|
6
|
+
const Spinner = setComponentTemplate(precompileTemplate("\n {{#let (useStyles) as |styles|}}\n <svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\" class={{styles.spinner class=@class size=@size intent=@intent}}>\n <path d=\"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z\" fill=\"currentColor\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" />\n\n <path d=\"M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z\" fill=\"currentFill\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" />\n </svg>\n {{/let}}\n", {
|
|
7
|
+
scope: () => ({
|
|
8
|
+
useStyles
|
|
9
|
+
}),
|
|
10
|
+
strictMode: true
|
|
11
|
+
}), templateOnly());
|
|
12
|
+
|
|
13
|
+
export { Spinner, Spinner as default };
|
|
14
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sources":["../../src/components/spinner.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport type { TOC } from '@ember/component/template-only';\nimport { useStyles, type SpinnerVariants } from '@frontile/theme';\nconst Spinner: TOC<{\n Args: {\n class?: string;\n /**\n * @defaultValue 'md'\n */ size?: SpinnerVariants['size'];\n /**\n * @defaultValue 'default'\n */ intent?: SpinnerVariants['intent'];\n };\n Element: SVGElement;\n}> = template(`\n {{#let (useStyles) as |styles|}}\n <svg\n viewBox=\"0 0 16 16\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class={{styles.spinner class=@class size=@size intent=@intent}}\n >\n <path\n d=\"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z\"\n fill=\"currentColor\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n />\n\n <path\n d=\"M7.25.75A.75.75 0 018 0a8 8 0 018 8 .75.75 0 01-1.5 0A6.5 6.5 0 008 1.5a.75.75 0 01-.75-.75z\"\n fill=\"currentFill\"\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n />\n </svg>\n {{/let}}\n`, {\n eval () {\n return eval(arguments[0]);\n }\n});\nexport { Spinner };\nexport default Spinner;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qbHVlZGtlL2NvZGUvb3NzL2Zyb250aWxlL3BhY2thZ2VzL3V0aWxpdGllcy9zcmMvY29tcG9uZW50cy9zcGlubmVyLmd0cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdHlwZSB7IFRPQyB9IGZyb20gJ0BlbWJlci9jb21wb25lbnQvdGVtcGxhdGUtb25seSc7XG5pbXBvcnQgeyB1c2VTdHlsZXMsIHR5cGUgU3Bpbm5lclZhcmlhbnRzIH0gZnJvbSAnQGZyb250aWxlL3RoZW1lJztcblxuY29uc3QgU3Bpbm5lcjogVE9DPHtcbiAgQXJnczoge1xuICAgIGNsYXNzPzogc3RyaW5nO1xuICAgIC8qKlxuICAgICAqIEBkZWZhdWx0VmFsdWUgJ21kJ1xuICAgICAqL1xuICAgIHNpemU_OiBTcGlubmVyVmFyaWFudHNbJ3NpemUnXTtcbiAgICAvKipcbiAgICAgKiBAZGVmYXVsdFZhbHVlICdkZWZhdWx0J1xuICAgICAqL1xuICAgIGludGVudD86IFNwaW5uZXJWYXJpYW50c1snaW50ZW50J107XG4gIH07XG4gIEVsZW1lbnQ6IFNWR0VsZW1lbnQ7XG59PiA9IDx0ZW1wbGF0ZT5cbiAge3sjbGV0ICh1c2VTdHlsZXMpIGFzIHxzdHlsZXN8fX1cbiAgICA8c3ZnXG4gICAgICB2aWV3Qm94PVwiMCAwIDE2IDE2XCJcbiAgICAgIHhtbG5zPVwiaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmdcIlxuICAgICAgY2xhc3M9e3tzdHlsZXMuc3Bpbm5lciBjbGFzcz1AY2xhc3Mgc2l6ZT1Ac2l6ZSBpbnRlbnQ9QGludGVudH19XG4gICAgPlxuICAgICAgPHBhdGhcbiAgICAgICA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FVixTQUFTLE9BQU8sR0FBRztBQUNuQixlQUFlLFFBQVEifQ"],"names":["Spinner","precompileTemplate","scope","useStyles","strictMode","templateOnly"],"mappings":";;;;;AAGMA,MAAAA,UAaDC,oBAAAA,CAAAA,kBAAA,CAsBL,4hBAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,SAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -2,4 +2,5 @@ import 'focus-visible/dist/focus-visible.js';
|
|
|
2
2
|
export { default as VisuallyHidden } from './components/visually-hidden.js';
|
|
3
3
|
export { default as Collapsible } from './components/collapsible/index.js';
|
|
4
4
|
export { default as Divider } from './components/divider.js';
|
|
5
|
+
export { Spinner } from './components/spinner.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/utilities",
|
|
3
|
-
"version": "0.17.0-alpha.
|
|
3
|
+
"version": "0.17.0-alpha.14",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"@ember/render-modifiers": "^2.1.0",
|
|
44
44
|
"@ember/test-waiters": "^3.0.2",
|
|
45
45
|
"@embroider/addon-shim": "^1.8.7",
|
|
46
|
-
"@frontile/theme": "0.17.0-alpha.
|
|
46
|
+
"@frontile/theme": "0.17.0-alpha.14",
|
|
47
47
|
"ember-auto-import": "^2.7.2",
|
|
48
48
|
"ember-element-helper": "^0.8.5",
|
|
49
49
|
"focus-visible": "^5.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@babel/core": "7.
|
|
52
|
+
"@babel/core": "7.24.0",
|
|
53
53
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
54
|
-
"@babel/plugin-proposal-decorators": "7.
|
|
54
|
+
"@babel/plugin-proposal-decorators": "7.24.0",
|
|
55
55
|
"@babel/plugin-transform-class-static-block": "^7.23.4",
|
|
56
56
|
"@babel/preset-typescript": "7.23.3",
|
|
57
57
|
"@embroider/addon-dev": "4.2.1",
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"@glint/environment-ember-template-imports": "1.3.0",
|
|
63
63
|
"@glint/template": "1.3.0",
|
|
64
64
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
65
|
-
"@tsconfig/ember": "^3.0.
|
|
65
|
+
"@tsconfig/ember": "^3.0.5",
|
|
66
66
|
"babel-plugin-ember-template-compilation": "^2.2.1",
|
|
67
67
|
"concurrently": "^8.2.2",
|
|
68
|
-
"ember-source": "^5.
|
|
69
|
-
"rollup": "^4.
|
|
68
|
+
"ember-source": "^5.7.0",
|
|
69
|
+
"rollup": "^4.12.1",
|
|
70
70
|
"rollup-plugin-ts": "^3.4.5",
|
|
71
71
|
"tailwindcss": "^3.4.1",
|
|
72
|
-
"typescript": "^5.
|
|
72
|
+
"typescript": "^5.4.2"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">= 10.*"
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
"app-js": {
|
|
88
88
|
"./components/collapsible/index.js": "./dist/_app_/components/collapsible/index.js",
|
|
89
89
|
"./components/divider.js": "./dist/_app_/components/divider.js",
|
|
90
|
+
"./components/spinner.js": "./dist/_app_/components/spinner.js",
|
|
90
91
|
"./components/visually-hidden.js": "./dist/_app_/components/visually-hidden.js"
|
|
91
92
|
}
|
|
92
93
|
},
|
|
@@ -108,5 +109,5 @@
|
|
|
108
109
|
]
|
|
109
110
|
}
|
|
110
111
|
},
|
|
111
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "869ef26819867861d6d102050b657a5908701663"
|
|
112
113
|
}
|