ember-primitives 0.0.3 → 0.0.5

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 (62) hide show
  1. package/dist/_app_/components/portal.js +1 -0
  2. package/dist/components/link.js +5 -4
  3. package/dist/components/link.js.map +1 -1
  4. package/dist/components/popover.js +108 -2
  5. package/dist/components/popover.js.map +1 -1
  6. package/dist/components/portal-targets.js +31 -3
  7. package/dist/components/portal-targets.js.map +1 -1
  8. package/dist/components/portal.js +32 -0
  9. package/dist/components/portal.js.map +1 -0
  10. package/dist/components/switch.js.map +1 -1
  11. package/dist/helpers/service.js.map +1 -1
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/proper-links.js +84 -17
  15. package/dist/proper-links.js.map +1 -1
  16. package/dist-types/color-scheme.d.ts +22 -0
  17. package/dist-types/color-scheme.d.ts.map +1 -0
  18. package/{dist → dist-types}/components/-private/typed-elements.d.ts +4 -4
  19. package/dist-types/components/-private/typed-elements.d.ts.map +1 -0
  20. package/dist-types/components/-private/utils.d.ts +6 -0
  21. package/dist-types/components/-private/utils.d.ts.map +1 -0
  22. package/dist-types/components/external-link.d.ts +9 -0
  23. package/dist-types/components/external-link.d.ts.map +1 -0
  24. package/{dist → dist-types}/components/link.d.ts +5 -4
  25. package/dist-types/components/link.d.ts.map +1 -0
  26. package/dist-types/components/popover.d.ts +103 -0
  27. package/dist-types/components/popover.d.ts.map +1 -0
  28. package/dist-types/components/portal-targets.d.ts +14 -0
  29. package/dist-types/components/portal-targets.d.ts.map +1 -0
  30. package/dist-types/components/portal.d.ts +21 -0
  31. package/dist-types/components/portal.d.ts.map +1 -0
  32. package/{dist → dist-types}/components/shadowed.d.ts +4 -3
  33. package/dist-types/components/shadowed.d.ts.map +1 -0
  34. package/{dist → dist-types}/components/switch.d.ts +8 -7
  35. package/dist-types/components/switch.d.ts.map +1 -0
  36. package/{dist → dist-types}/components/toggle.d.ts +5 -4
  37. package/dist-types/components/toggle.d.ts.map +1 -0
  38. package/dist-types/helpers/service.d.ts +14 -0
  39. package/dist-types/helpers/service.d.ts.map +1 -0
  40. package/dist-types/helpers.d.ts +2 -0
  41. package/dist-types/helpers.d.ts.map +1 -0
  42. package/dist-types/index.d.ts +11 -0
  43. package/dist-types/index.d.ts.map +1 -0
  44. package/dist-types/proper-links.d.ts +22 -0
  45. package/dist-types/proper-links.d.ts.map +1 -0
  46. package/dist-types/template-registry.d.ts +3 -0
  47. package/dist-types/template-registry.d.ts.map +1 -0
  48. package/dist-types/utils.d.ts +2 -0
  49. package/dist-types/utils.d.ts.map +1 -0
  50. package/package.json +46 -30
  51. package/dist/color-scheme.d.ts +0 -23
  52. package/dist/color-scheme.d.ts.map +0 -1
  53. package/dist/components/-private/utils.d.ts +0 -6
  54. package/dist/components/external-link.d.ts +0 -8
  55. package/dist/components/popover.d.ts +0 -2
  56. package/dist/components/portal-targets.d.ts +0 -2
  57. package/dist/helpers/service.d.ts +0 -14
  58. package/dist/helpers.d.ts +0 -1
  59. package/dist/index.d.ts +0 -7
  60. package/dist/proper-links.d.ts +0 -13
  61. package/dist/template-registry.d.ts +0 -3
  62. package/dist/utils.d.ts +0 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE;QACJ;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;KACrD,CAAC;IACF,MAAM,EAAE;QACN,OAAO,CAAC,EAAE;YACR;gBACE;;;;;;;;;;;;;;mBAcG;gBACH,OAAO,EAAE,aAAa,CAAC,OAAO,QAAQ,EAAE,SAAS,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC;gBACvE;;;;;;;;;;;;;mBAaG;gBACH,KAAK,EAAE,aAAa,CAAC,OAAO,KAAK,EAAE,KAAK,CAAC,CAAC;aAC3C;SACF,CAAC;KACH,CAAC;CACH;AAED,UAAU,gBAAgB;IACxB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;CAC/D;AAED,QAAA,MAAM,QAAQ,EAAE,GAAG,CAAC,gBAAgB,CAqBlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM,EAAE,GAAG,CAAC,SAAS,CAqBhC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
- import { TOC } from '@ember/component/template-only';
2
- interface Signature {
1
+ import type { TOC } from '@ember/component/template-only';
2
+ export interface Signature {
3
3
  Element: HTMLButtonElement;
4
4
  Args: {
5
5
  /**
@@ -26,5 +26,6 @@ interface Signature {
26
26
  ];
27
27
  };
28
28
  }
29
- declare const Toggle: TOC<Signature>;
30
- export { Toggle as default, Toggle, Signature };
29
+ export declare const Toggle: TOC<Signature>;
30
+ export default Toggle;
31
+ //# sourceMappingURL=toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/components/toggle.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE;QACJ;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE;YACP;;;;eAIG;YACH,OAAO,EAAE,OAAO;SACjB,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,MAAM,EAAE,GAAG,CAAC,SAAS,CAmBhC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ import Helper from '@ember/component/helper';
2
+ import type { Registry } from '@ember/service';
3
+ import type Service from '@ember/service';
4
+ export interface Signature<Key extends keyof Registry> {
5
+ Args: {
6
+ Positional: [Key];
7
+ };
8
+ Return: Registry[Key] & Service;
9
+ }
10
+ export default class GetService<Key extends keyof Registry> extends Helper<Signature<Key>> {
11
+ compute(positional: [Key]): Registry[Key] & Service;
12
+ }
13
+ export declare const service: typeof GetService;
14
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/helpers/service.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAI7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,MAAM,WAAW,SAAS,CAAC,GAAG,SAAS,MAAM,QAAQ;IACnD,IAAI,EAAE;QACJ,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IACF,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,OAAO,UAAU,CAAC,GAAG,SAAS,MAAM,QAAQ,CAAE,SAAQ,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACxF,OAAO,CAAC,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,OAAO;CAOpD;AAED,eAAO,MAAM,OAAO,mBAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { service } from './helpers/service';
2
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { ExternalLink } from './components/external-link';
2
+ export { Link } from './components/link';
3
+ export { Popover } from './components/popover';
4
+ export { Portal } from './components/portal';
5
+ export { PortalTargets } from './components/portal-targets';
6
+ export { TARGETS as PORTALS } from './components/portal-targets';
7
+ export { Shadowed } from './components/shadowed';
8
+ export { Switch } from './components/switch';
9
+ export { Toggle } from './components/toggle';
10
+ export * from './helpers';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,WAAW,CAAC"}
@@ -0,0 +1,22 @@
1
+ export interface Options {
2
+ ignore?: string[];
3
+ }
4
+ export declare function properLinks(options: Options): <Instance extends {}, Klass = {
5
+ new (...args: any[]): Instance;
6
+ }>(klass: Klass) => Klass;
7
+ export declare function properLinks<Instance extends {}, Klass = {
8
+ new (...args: any[]): Instance;
9
+ }>(klass: Klass): Klass;
10
+ /**
11
+ * @internal
12
+ */
13
+ export declare function properLinks<Instance extends {}, Klass = {
14
+ new (...args: any[]): Instance;
15
+ }>(options: Options, klass: Klass): Klass;
16
+ /**
17
+ * Setup proper links without a decorator.
18
+ * This function only requires that a framework object with an owner is passed.
19
+ */
20
+ export declare function setup(parent: object, ignore?: string[]): void;
21
+ export declare function isLink(event: Event): HTMLAnchorElement | undefined;
22
+ //# sourceMappingURL=proper-links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proper-links.d.ts","sourceRoot":"","sources":["../src/proper-links.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,wBAAgB,WAAW,CACzB,OAAO,EAAE,OAAO,GACf,CAAC,QAAQ,SAAS,EAAE,EAAE,KAAK,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAA;CAAE,EAAE,KAAK,EAAE,KAAK,KAAK,KAAK,CAAC;AAE5F,wBAAgB,WAAW,CAAC,QAAQ,SAAS,EAAE,EAAE,KAAK,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAA;CAAE,EACzF,KAAK,EAAE,KAAK,GACX,KAAK,CAAC;AACT;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,SAAS,EAAE,EAAE,KAAK,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,QAAQ,CAAA;CAAE,EACzF,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,GACX,KAAK,CAAC;AAoCT;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,QAwBtD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,iCAYlC"}
@@ -0,0 +1,3 @@
1
+ export default interface Registry {
2
+ }
3
+ //# sourceMappingURL=template-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,QAAQ;CAEhC"}
@@ -0,0 +1,2 @@
1
+ export declare function uniqueId(): any;
2
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,QAOvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-primitives",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Making apps easier to build",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -10,22 +10,25 @@
10
10
  "author": "nullvoxpopuli",
11
11
  "files": [
12
12
  "addon-main.cjs",
13
- "dist"
13
+ "dist",
14
+ "dist-types"
14
15
  ],
15
16
  "dependencies": {
16
- "@babel/runtime": "^7.22.3",
17
- "@embroider/addon-shim": "1.8.6-unstable.d120477",
18
- "@embroider/macros": "1.11.1"
17
+ "@babel/runtime": "^7.22.5",
18
+ "@embroider/addon-shim": "^1.8.5",
19
+ "@embroider/macros": "1.12.2",
20
+ "@floating-ui/dom": "^1.4.3",
21
+ "ember-velcro": "^2.1.0"
19
22
  },
20
23
  "devDependencies": {
21
- "@arethetypeswrong/cli": "^0.0.3",
22
- "@babel/core": "^7.17.0",
23
- "@babel/eslint-parser": "^7.21.8",
24
+ "@arethetypeswrong/cli": "^0.4.2",
25
+ "@babel/core": "^7.22.5",
26
+ "@babel/eslint-parser": "^7.22.5",
24
27
  "@babel/plugin-proposal-class-properties": "^7.18.6",
25
- "@babel/plugin-proposal-decorators": "^7.22.3",
28
+ "@babel/plugin-proposal-decorators": "^7.22.5",
26
29
  "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
27
- "@babel/plugin-syntax-decorators": "^7.22.3",
28
- "@babel/preset-typescript": "^7.21.5",
30
+ "@babel/plugin-syntax-decorators": "^7.22.5",
31
+ "@babel/preset-typescript": "^7.22.5",
29
32
  "@embroider/addon-dev": "3.1.1",
30
33
  "@glimmer/component": "^1.1.2",
31
34
  "@glimmer/tracking": "^1.1.2",
@@ -33,29 +36,31 @@
33
36
  "@glint/environment-ember-loose": "^1.0.2",
34
37
  "@glint/environment-ember-template-imports": "^1.0.2",
35
38
  "@glint/template": "^1.0.2",
36
- "@nullvoxpopuli/eslint-configs": "^3.1.3",
37
- "@tsconfig/ember": "^2.0.0",
38
- "@typescript-eslint/eslint-plugin": "^5.59.8",
39
- "@typescript-eslint/parser": "^5.59.8",
40
- "concurrently": "^8.1.0",
39
+ "@nullvoxpopuli/eslint-configs": "^3.1.4",
40
+ "@rollup/plugin-babel": "^6.0.3",
41
+ "@rollup/plugin-node-resolve": "^15.1.0",
42
+ "@rollup/plugin-typescript": "^11.1.2",
43
+ "@tsconfig/ember": "^3.0.0",
44
+ "@typescript-eslint/eslint-plugin": "^5.61.0",
45
+ "@typescript-eslint/parser": "^5.61.0",
46
+ "concurrently": "^8.2.0",
41
47
  "ember-modifier": "^4.1.0",
42
- "ember-resources": "^6.1.0",
43
- "ember-source": "~5.0.0",
48
+ "ember-resources": "^6.1.1",
49
+ "ember-source": "~5.1.2",
44
50
  "ember-template-imports": "^3.4.2",
45
- "ember-template-lint": "^5.10.0",
46
- "eslint": "^8.41.0",
51
+ "ember-template-lint": "^5.11.0",
52
+ "eslint": "^8.44.0",
47
53
  "eslint-config-prettier": "^8.3.0",
48
- "eslint-plugin-ember": "^11.8.0",
54
+ "eslint-plugin-ember": "^11.9.0",
49
55
  "eslint-plugin-node": "^11.1.0",
50
56
  "eslint-plugin-prettier": "^4.0.0",
51
57
  "prettier": "^2.8.8",
52
58
  "prettier-plugin-ember-template-tag": "^0.3.2",
53
- "publint": "^0.1.12",
54
- "rollup": "~3.21.0",
59
+ "publint": "^0.1.15",
60
+ "rollup": "~3.26.0",
55
61
  "rollup-plugin-copy": "^3.4.0",
56
62
  "rollup-plugin-glimmer-template-tag": "^0.4.1",
57
- "rollup-plugin-ts": "^3.2.0",
58
- "typescript": "^5.1.3"
63
+ "typescript": "^5.1.6"
59
64
  },
60
65
  "publishConfig": {
61
66
  "registry": "https://registry.npmjs.org"
@@ -72,6 +77,7 @@
72
77
  "./components/link.js": "./dist/_app_/components/link.js",
73
78
  "./components/popover.js": "./dist/_app_/components/popover.js",
74
79
  "./components/portal-targets.js": "./dist/_app_/components/portal-targets.js",
80
+ "./components/portal.js": "./dist/_app_/components/portal.js",
75
81
  "./components/shadowed.js": "./dist/_app_/components/shadowed.js",
76
82
  "./components/switch.js": "./dist/_app_/components/switch.js",
77
83
  "./components/toggle.js": "./dist/_app_/components/toggle.js",
@@ -79,9 +85,12 @@
79
85
  }
80
86
  },
81
87
  "exports": {
82
- ".": "./dist/index.js",
88
+ ".": {
89
+ "types": "./dist-types/index.d.ts",
90
+ "default": "./dist/index.js"
91
+ },
83
92
  "./*": {
84
- "types": "./dist/*.d.ts",
93
+ "types": "./dist-types/*.d.ts",
85
94
  "default": "./dist/*.js"
86
95
  },
87
96
  "./addon-main": "./addon-main.cjs"
@@ -89,10 +98,13 @@
89
98
  "typesVersions": {
90
99
  "*": {
91
100
  "*": [
92
- "dist/*"
101
+ "dist-types/*"
93
102
  ]
94
103
  }
95
104
  },
105
+ "volta": {
106
+ "extends": "../package.json"
107
+ },
96
108
  "peerDependencies": {
97
109
  "@glimmer/component": "^1.1.2",
98
110
  "@glimmer/tracking": "^1.1.2",
@@ -101,7 +113,9 @@
101
113
  "ember-source": "~4.12.0"
102
114
  },
103
115
  "scripts": {
104
- "build": "rollup --config ./rollup.config.mjs",
116
+ "build": "concurrently 'npm:build:*'",
117
+ "build:js": "rollup --config ./rollup.config.mjs",
118
+ "build:types": "glint --build",
105
119
  "lint": "pnpm -w exec lint",
106
120
  "lint:fix": "pnpm -w exec lint fix",
107
121
  "lint:js": "pnpm -w exec lint js",
@@ -114,7 +128,9 @@
114
128
  "lint:prettier": "pnpm -w exec lint prettier",
115
129
  "lint:types": "glint",
116
130
  "pack": "pnpm pack",
117
- "start": "rollup --config --watch",
131
+ "start": "concurrently 'npm:start:*'",
132
+ "start:js": "rollup --config --watch",
133
+ "start:types": "glint --build --watch",
118
134
  "test": "echo 'A v2 addon does not have tests, run tests in test-app'"
119
135
  }
120
136
  }
@@ -1,23 +0,0 @@
1
- declare const colorScheme: {
2
- update: (value: string) => string;
3
- current: string | undefined;
4
- };
5
- declare function sync(): void;
6
- declare const prefers: {
7
- dark: () => boolean;
8
- light: () => boolean;
9
- custom: (name: string) => boolean;
10
- none: () => boolean;
11
- };
12
- declare const localPreference: {
13
- isSet: () => boolean;
14
- read: () => string | null;
15
- update: (value: string) => void;
16
- delete: () => void;
17
- };
18
- declare function getColorScheme(element?: HTMLElement): string;
19
- declare function setColorScheme(element: HTMLElement, value: string): void;
20
- declare function setColorScheme(value: string): void;
21
- declare function removeColorScheme(element?: HTMLElement): void;
22
- export { colorScheme, sync, prefers, localPreference, getColorScheme, setColorScheme, removeColorScheme };
23
- //# sourceMappingURL=color-scheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color-scheme.d.ts","sourceRoot":"","sources":["../src/color-scheme.ts"],"names":[],"mappings":"AAIA,QAAO,MAAM,WAAW;oBACN,MAAM;;CAiBvB,CAAC;AAEF,iBAAgB,IAAI,SA4BnB;AAED,QAAO,MAAM,OAAO;;;mBAGH,MAAM;;CAEtB,CAAC;AAIF,QAAO,MAAM,eAAe;;;oBAGV,MAAM;;CAEvB,CAAC;AAEF,iBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE,WAAW,UAInD;AAED,iBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;AAC1E,iBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;AAgBpD,iBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE,WAAW,QAItD"}
@@ -1,6 +0,0 @@
1
- /**
2
- * If the user provides an onChange or similar function, use that,
3
- * otherwise fallback to the uncontrolled toggle
4
- */
5
- declare function toggleWithFallback(uncontrolledToggle: () => void, controlledToggle?: () => void): void;
6
- export { toggleWithFallback };
@@ -1,8 +0,0 @@
1
- import { TOC } from '@ember/component/template-only';
2
- declare const ExternalLink: TOC<{
3
- Element: HTMLAnchorElement;
4
- Blocks: {
5
- default: [];
6
- };
7
- }>;
8
- export { ExternalLink as default, ExternalLink };
@@ -1,2 +0,0 @@
1
- declare const Popover: any[];
2
- export { Popover as default, Popover };
@@ -1,2 +0,0 @@
1
- declare const PortalTargets: any[];
2
- export { PortalTargets as default, PortalTargets };
@@ -1,14 +0,0 @@
1
- import Helper from '@ember/component/helper';
2
- import Service from '@ember/service';
3
- import { Registry } from "@ember/service";
4
- interface Signature<Key extends keyof Registry> {
5
- Args: {
6
- Positional: [Key];
7
- };
8
- Return: Registry[Key] & Service;
9
- }
10
- declare class GetService<Key extends keyof Registry> extends Helper<Signature<Key>> {
11
- compute(positional: [Key]): Registry[Key] & Service;
12
- }
13
- declare const service: typeof GetService;
14
- export { Signature, GetService as default, service };
package/dist/helpers.d.ts DELETED
@@ -1 +0,0 @@
1
- export { service } from "./helpers/service.js";
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export { ExternalLink } from "./components/external-link.js";
2
- export { Link } from "./components/link.js";
3
- export { Popover } from "./components/popover.js";
4
- export { Shadowed } from "./components/shadowed.js";
5
- export { Switch } from "./components/switch.js";
6
- export { Toggle } from "./components/toggle.js";
7
- export * from "./helpers.js";
@@ -1,13 +0,0 @@
1
- import EmberRouter from '@ember/routing/router';
2
- type RouterType = typeof EmberRouter;
3
- interface Options {
4
- ignore?: string[];
5
- }
6
- declare function properLinks(options: Options): (klass: RouterType) => RouterType;
7
- declare function properLinks(klass: RouterType): RouterType;
8
- /**
9
- * @internal
10
- */
11
- declare function properLinks(options: Options, klass: RouterType): RouterType;
12
- declare function isLink(event: Event): HTMLAnchorElement | undefined;
13
- export { RouterType, Options, properLinks, isLink };
@@ -1,3 +0,0 @@
1
- interface Registry {
2
- }
3
- export { Registry as default };
package/dist/utils.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare function uniqueId(): any;
2
- export { uniqueId };