@happyvertical/smrt-ui 0.36.4 → 0.36.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.
@@ -5,11 +5,11 @@
5
5
  * it forwards native attributes, renders children, and (by default) prevents the
6
6
  * native submit so the consumer's `onsubmit` runs without a page navigation.
7
7
  */
8
- import { expectNoA11yViolations } from '../../../test-support/a11y';
9
8
  import { render, screen } from '@testing-library/svelte';
10
9
  import userEvent from '@testing-library/user-event';
11
10
  import { createRawSnippet } from 'svelte';
12
11
  import { describe, expect, it, vi } from 'vitest';
12
+ import { expectNoA11yViolations } from '../../../test-support/a11y';
13
13
  import Form from '../Form.svelte';
14
14
  const children = createRawSnippet(() => ({
15
15
  render: () => '<button type="submit">Save</button>',
@@ -5,9 +5,9 @@
5
5
  * extra wiring: a real <label> association, hint/error linked via
6
6
  * aria-describedby, and aria-invalid in the error state.
7
7
  */
8
- import { expectNoA11yViolations } from '../../../test-support/a11y';
9
8
  import { render, screen } from '@testing-library/svelte';
10
9
  import { describe, expect, it } from 'vitest';
10
+ import { expectNoA11yViolations } from '../../../test-support/a11y';
11
11
  import Fixture from './form-group-input.fixture.svelte';
12
12
  describe('FormGroup a11y wiring', () => {
13
13
  it('associates its label with the wrapped input', () => {
@@ -4,10 +4,10 @@
4
4
  * Select forwards aria attributes (so it can be labelled / error-associated)
5
5
  * and inherits id / describedby / invalid from a wrapping FormGroup via context.
6
6
  */
7
- import { expectNoA11yViolations } from '../../../test-support/a11y';
8
7
  import { render, screen } from '@testing-library/svelte';
9
8
  import { createRawSnippet } from 'svelte';
10
9
  import { describe, expect, it } from 'vitest';
10
+ import { expectNoA11yViolations } from '../../../test-support/a11y';
11
11
  import Select from '../Select.svelte';
12
12
  function options() {
13
13
  return createRawSnippet(() => ({
@@ -4,10 +4,10 @@
4
4
  * Textarea forwards aria attributes and inherits id / describedby / invalid from
5
5
  * a wrapping FormGroup via context.
6
6
  */
7
- import { expectNoA11yViolations } from '../../../test-support/a11y';
8
7
  import { render, screen } from '@testing-library/svelte';
9
8
  import userEvent from '@testing-library/user-event';
10
9
  import { describe, expect, it } from 'vitest';
10
+ import { expectNoA11yViolations } from '../../../test-support/a11y';
11
11
  import Textarea from '../Textarea.svelte';
12
12
  describe('Textarea', () => {
13
13
  it('forwards aria-label / aria-describedby / aria-invalid', () => {
@@ -5,10 +5,10 @@
5
5
  * render → assert role/name/state → drive with user-event → prove axe-clean.
6
6
  * Toggle renders native checkbox semantics, so it surfaces as a `checkbox` role.
7
7
  */
8
- import { expectNoA11yViolations } from '../../../test-support/a11y';
9
8
  import { render, screen } from '@testing-library/svelte';
10
9
  import userEvent from '@testing-library/user-event';
11
10
  import { describe, expect, it, vi } from 'vitest';
11
+ import { expectNoA11yViolations } from '../../../test-support/a11y';
12
12
  import Toggle from '../Toggle.svelte';
13
13
  describe('Toggle', () => {
14
14
  it('renders a checkbox with its label as the accessible name', () => {
@@ -13,9 +13,9 @@
13
13
  */
14
14
  export { default as Form } from './Form.svelte';
15
15
  export { default as FormGroup } from './FormGroup.svelte';
16
+ export { type FormGroupContextValue, nextFieldId, setFormGroupContext, tryGetFormGroupContext, } from './form-group-context.js';
16
17
  export { default as Input } from './Input.svelte';
17
18
  export { default as Select } from './Select.svelte';
18
19
  export { default as Textarea } from './Textarea.svelte';
19
20
  export { default as Toggle } from './Toggle.svelte';
20
- export { type FormGroupContextValue, nextFieldId, setFormGroupContext, tryGetFormGroupContext, } from './form-group-context.js';
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EACL,KAAK,qBAAqB,EAC1B,WAAW,EACX,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,KAAK,qBAAqB,EAC1B,WAAW,EACX,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
@@ -13,8 +13,8 @@
13
13
  */
14
14
  export { default as Form } from './Form.svelte';
15
15
  export { default as FormGroup } from './FormGroup.svelte';
16
+ export { nextFieldId, setFormGroupContext, tryGetFormGroupContext, } from './form-group-context.js';
16
17
  export { default as Input } from './Input.svelte';
17
18
  export { default as Select } from './Select.svelte';
18
19
  export { default as Textarea } from './Textarea.svelte';
19
20
  export { default as Toggle } from './Toggle.svelte';
20
- export { nextFieldId, setFormGroupContext, tryGetFormGroupContext, } from './form-group-context.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-ui",
3
- "version": "0.36.4",
3
+ "version": "0.36.5",
4
4
  "description": "Domain-agnostic Svelte 5 UI runtime for SMRT: primitives, i18n client, theme system, and module UI registry",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -114,7 +114,7 @@
114
114
  },
115
115
  "dependencies": {
116
116
  "esm-env": "^1.2.2",
117
- "@happyvertical/smrt-types": "0.36.4"
117
+ "@happyvertical/smrt-types": "0.36.5"
118
118
  },
119
119
  "peerDependencies": {
120
120
  "svelte": "^5.18.2"