ember-primitives 0.28.1 → 0.29.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.
@@ -0,0 +1,12 @@
1
+ import "./visually-hidden.css";
2
+ import type { TOC } from "@ember/component/template-only";
3
+ export declare const VisuallyHidden: TOC<{
4
+ Element: HTMLSpanElement;
5
+ Blocks: {
6
+ /**
7
+ * Content to hide visually
8
+ */
9
+ default: [];
10
+ };
11
+ }>;
12
+ //# sourceMappingURL=visually-hidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../src/components/visually-hidden.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC;IAC/B,OAAO,EAAE,eAAe,CAAC;IACzB,MAAM,EAAE;QACN;;WAEG;QACH,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH,CAUC,CAAC"}
@@ -19,6 +19,7 @@ export { Shadowed } from './components/shadowed';
19
19
  export { Switch } from './components/switch';
20
20
  export { Toggle } from './components/toggle';
21
21
  export { ToggleGroup } from './components/toggle-group';
22
+ export { VisuallyHidden } from './components/visually-hidden';
22
23
  export { Zoetrope } from './components/zoetrope.ts';
23
24
  export * from './helpers.ts';
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,YAAY,EACV,iCAAiC,EACjC,gCAAgC,EAChC,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,IAA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*/
5
+ import './components/visually-hidden.css';
6
+ //# sourceMappingURL=styles.css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../src/styles.css.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,kCAAkC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /* See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss */
2
+ .ember-primitives__visually-hidden,
3
+ [visually-hidden] {
4
+ position: absolute;
5
+ border: 0;
6
+ width: 1px;
7
+ height: 1px;
8
+ padding: 0;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ clip: rect(0, 0, 0, 0);
12
+ white-space: nowrap;
13
+ word-wrap: normal;
14
+ }
@@ -0,0 +1,11 @@
1
+ import './visually-hidden.css';
2
+ import { precompileTemplate } from '@ember/template-compilation';
3
+ import { setComponentTemplate } from '@ember/component';
4
+ import templateOnly from '@ember/component/template-only';
5
+
6
+ const VisuallyHidden = setComponentTemplate(precompileTemplate("\n <span class=\"ember-primitives__visually-hidden\" ...attributes>{{yield}}</span>\n", {
7
+ strictMode: true
8
+ }), templateOnly());
9
+
10
+ export { VisuallyHidden };
11
+ //# sourceMappingURL=visually-hidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visually-hidden.js","sources":["../../src/components/visually-hidden.gts"],"sourcesContent":["import \"./visually-hidden.css\";\n\nimport type { TOC } from \"@ember/component/template-only\";\n\nexport const VisuallyHidden: TOC<{\n Element: HTMLSpanElement;\n Blocks: {\n /**\n * Content to hide visually\n */\n default: [];\n };\n}> = <template>\n <span class=\"ember-primitives__visually-hidden\" ...attributes>{{yield}}</span>\n</template>;\n"],"names":["VisuallyHidden","setComponentTemplate","precompileTemplate","strictMode","templateOnly"],"mappings":";;;;;MAIaA,cAQR,GAAAC,oBAAA,CAAAC,kBAAA,CAEL,wFAAA,EAAA;EAAAC,UAAA,EAAA;AAAU,CAAE,CAAA,EAAAC,YAAA,EAAA;;;;"}
package/dist/index.js CHANGED
@@ -19,6 +19,7 @@ export { Shadowed } from './components/shadowed.js';
19
19
  export { Switch } from './components/switch.js';
20
20
  export { Toggle } from './components/toggle.js';
21
21
  export { ToggleGroup } from './components/toggle-group.js';
22
+ export { VisuallyHidden } from './components/visually-hidden.js';
22
23
  export { Zoetrope } from './components/zoetrope/index.js';
23
24
  export { link } from './helpers/link.js';
24
25
  export { service } from './helpers/service.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * DANGER: this is a *barrel file*\n *\n * It forces the whole library to be loaded and all dependencies.\n *\n * If you have a small app, you probably don't want to import from here -- instead import from each sub-path.\n */\nimport { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';\n\nif (macroCondition(isDevelopingApp())) {\n importSync('./components/violations.css');\n}\n\nexport { Accordion } from './components/accordion.gts';\nexport type {\n AccordionContentExternalSignature,\n AccordionHeaderExternalSignature,\n AccordionItemExternalSignature,\n AccordionTriggerExternalSignature,\n} from './components/accordion/public.ts';\nexport { Avatar } from './components/avatar.gts';\nexport { Dialog, Dialog as Modal } from './components/dialog.gts';\nexport { ExternalLink } from './components/external-link.gts';\nexport { Form } from './components/form.gts';\nexport { Key, KeyCombo } from './components/keys.gts';\nexport { StickyFooter } from './components/layout/sticky-footer.gts';\nexport { Link } from './components/link.gts';\nexport { Menu } from './components/menu.gts';\nexport { OTP, OTPInput } from './components/one-time-password/index.gts';\nexport { Popover } from './components/popover.gts';\nexport { Portal } from './components/portal.gts';\nexport { PortalTargets } from './components/portal-targets.gts';\nexport { TARGETS as PORTALS } from './components/portal-targets.gts';\nexport { Progress } from './components/progress.gts';\nexport { Scroller } from './components/scroller.gts';\nexport { Shadowed } from './components/shadowed.gts';\nexport { Switch } from './components/switch.gts';\nexport { Toggle } from './components/toggle.gts';\nexport { ToggleGroup } from './components/toggle-group.gts';\nexport { Zoetrope } from './components/zoetrope.ts';\nexport * from './helpers.ts';\n"],"names":["macroCondition","isDevelopingApp","importSync"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,IAAIA,cAAc,CAACC,eAAe,EAAE,CAAC,EAAE;EACrCC,UAAU,CAAC,6BAA6B,CAAC;AAC3C"}
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["/**\n * DANGER: this is a *barrel file*\n *\n * It forces the whole library to be loaded and all dependencies.\n *\n * If you have a small app, you probably don't want to import from here -- instead import from each sub-path.\n */\nimport { importSync, isDevelopingApp, macroCondition } from '@embroider/macros';\n\nif (macroCondition(isDevelopingApp())) {\n importSync('./components/violations.css');\n}\n\nexport { Accordion } from './components/accordion.gts';\nexport type {\n AccordionContentExternalSignature,\n AccordionHeaderExternalSignature,\n AccordionItemExternalSignature,\n AccordionTriggerExternalSignature,\n} from './components/accordion/public.ts';\nexport { Avatar } from './components/avatar.gts';\nexport { Dialog, Dialog as Modal } from './components/dialog.gts';\nexport { ExternalLink } from './components/external-link.gts';\nexport { Form } from './components/form.gts';\nexport { Key, KeyCombo } from './components/keys.gts';\nexport { StickyFooter } from './components/layout/sticky-footer.gts';\nexport { Link } from './components/link.gts';\nexport { Menu } from './components/menu.gts';\nexport { OTP, OTPInput } from './components/one-time-password/index.gts';\nexport { Popover } from './components/popover.gts';\nexport { Portal } from './components/portal.gts';\nexport { PortalTargets } from './components/portal-targets.gts';\nexport { TARGETS as PORTALS } from './components/portal-targets.gts';\nexport { Progress } from './components/progress.gts';\nexport { Scroller } from './components/scroller.gts';\nexport { Shadowed } from './components/shadowed.gts';\nexport { Switch } from './components/switch.gts';\nexport { Toggle } from './components/toggle.gts';\nexport { ToggleGroup } from './components/toggle-group.gts';\nexport { VisuallyHidden } from './components/visually-hidden.gts';\nexport { Zoetrope } from './components/zoetrope.ts';\nexport * from './helpers.ts';\n"],"names":["macroCondition","isDevelopingApp","importSync"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,IAAIA,cAAc,CAACC,eAAe,EAAE,CAAC,EAAE;EACrCC,UAAU,CAAC,6BAA6B,CAAC;AAC3C"}
@@ -0,0 +1,2 @@
1
+ import './components/visually-hidden.css';
2
+ //# sourceMappingURL=styles.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-primitives",
3
- "version": "0.28.1",
3
+ "version": "0.29.0",
4
4
  "description": "Making apps easier to build",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@babel/runtime": "^7.24.1",
21
21
  "@embroider/addon-shim": "^1.9.0",
22
- "@embroider/macros": "1.16.11",
22
+ "@embroider/macros": "^1.16.11",
23
23
  "@floating-ui/dom": "^1.5.3",
24
24
  "decorator-transforms": "^2.3.0",
25
25
  "ember-element-helper": ">= 0.8.6",
@@ -45,10 +45,10 @@
45
45
  "@embroider/addon-dev": "7.1.3",
46
46
  "@glimmer/component": "^2.0.0",
47
47
  "@glimmer/tracking": "^1.1.2",
48
- "@glint/core": "unstable",
49
- "@glint/environment-ember-loose": "unstable",
50
- "@glint/environment-ember-template-imports": "unstable",
51
- "@glint/template": "unstable",
48
+ "@glint/core": "^1.5.2",
49
+ "@glint/environment-ember-loose": "^1.5.2",
50
+ "@glint/environment-ember-template-imports": "^1.5.2",
51
+ "@glint/template": "^1.5.2",
52
52
  "@nullvoxpopuli/eslint-configs": "^5.1.1",
53
53
  "@rollup/plugin-babel": "^6.0.4",
54
54
  "@tsconfig/ember": "^3.0.5",
@@ -95,6 +95,9 @@
95
95
  "types": "./declarations/*.d.ts",
96
96
  "default": "./dist/*.js"
97
97
  },
98
+ "./*.css": {
99
+ "default": "./dist/*.css"
100
+ },
98
101
  "./test-support": {
99
102
  "types": "./declarations/test-support/index.d.ts",
100
103
  "default": "./dist/test-support/index.js"
@@ -119,7 +122,7 @@
119
122
  "@ember/test-waiters": ">= 3.0.2",
120
123
  "@glimmer/component": ">= 1.1.2",
121
124
  "@glimmer/tracking": ">= 1.1.2",
122
- "@glint/template": ">= 1.3.0",
125
+ "@glint/template": ">= 1.0.0",
123
126
  "ember-modifier": ">= 4.1.0",
124
127
  "ember-resources": ">= 6.1.0",
125
128
  "ember-source": ">= 4.12.0"