@aleph-alpha/ui-library 5.6.0 → 5.7.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.
- package/config.js +5 -0
- package/dist/system/components/UiField/types.d.ts +2 -1
- package/dist/system/lib.js +5 -4
- package/package.json +5 -5
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +1 -1
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +625 -74
- package/src/components/UiField/UiField.stories.ts +1 -1
- package/src/components/UiField/types.ts +2 -1
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +995 -0
- package/src/components/UiSelect/UiSelect.stories.ts +1 -1
- package/src/components/core/field/FieldDescription.vue +1 -1
- package/src/components/core/field/FieldLabel.vue +3 -2
- package/src/components/core/field/FieldTitle.vue +1 -1
- package/src/components/UiCheckbox/__tests__/UiCheckbox.test.ts +0 -14
- package/src/components/UiRadioGroup/__tests__/UiRadioGroup.test.ts +0 -412
package/config.js
CHANGED
|
@@ -928,6 +928,11 @@ export const presetUiLibraryThemeFromTokens = (options = {}) => {
|
|
|
928
928
|
:root, :host {
|
|
929
929
|
--font-sans: '${fontBody}', sans-serif;
|
|
930
930
|
--font-heading: '${fontHeading}', sans-serif;
|
|
931
|
+
}
|
|
932
|
+
*,
|
|
933
|
+
::before,
|
|
934
|
+
::after {
|
|
935
|
+
font-variant-ligatures: no-contextual;
|
|
931
936
|
}`.trim();
|
|
932
937
|
|
|
933
938
|
// Return preset with token-related config: CSS variables, token colors, semantic overrides, typography, fonts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Layout orientation supported by `UiField`.
|
|
3
3
|
* - `vertical`: stacked layout (label above input).
|
|
4
|
+
* - `horizontal`: side-by-side layout that never collapses.
|
|
4
5
|
* - `responsive`: horizontal by default, collapses to vertical on small screens.
|
|
5
6
|
*/
|
|
6
|
-
export type UiFieldOrientation = 'vertical' | 'responsive';
|
|
7
|
+
export type UiFieldOrientation = 'vertical' | 'horizontal' | 'responsive';
|
|
7
8
|
/**
|
|
8
9
|
* Error shape supported by `UiFieldError`.
|
|
9
10
|
*/
|
package/dist/system/lib.js
CHANGED
|
@@ -49097,7 +49097,7 @@ const NY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49097
49097
|
"data-slot": "field-description",
|
|
49098
49098
|
class: E(
|
|
49099
49099
|
r(D)(
|
|
49100
|
-
"text-content-on-surface-muted
|
|
49100
|
+
"text-content-on-surface-muted label-14-regular group-has-[[data-orientation=horizontal]]/field:text-balance",
|
|
49101
49101
|
"last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5",
|
|
49102
49102
|
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
49103
49103
|
t.class
|
|
@@ -49215,8 +49215,9 @@ const NY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49215
49215
|
class: E(
|
|
49216
49216
|
r(D)(
|
|
49217
49217
|
"group/field-label peer/field-label flex w-fit items-center gap-2 leading-snug text-content-on-surface-muted body-14-medium group-data-[disabled=true]/field:opacity-50",
|
|
49218
|
-
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-
|
|
49219
|
-
"has-data-[state=checked]:bg-
|
|
49218
|
+
"has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:border-border-input-default",
|
|
49219
|
+
"has-data-[state=checked]:bg-background-surface-selected has-data-[state=checked]:border-transparent",
|
|
49220
|
+
"[&>[data-slot=field]]:p-4",
|
|
49220
49221
|
t.class
|
|
49221
49222
|
)
|
|
49222
49223
|
)
|
|
@@ -49320,7 +49321,7 @@ const NY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
49320
49321
|
"data-slot": "field-label",
|
|
49321
49322
|
class: E(
|
|
49322
49323
|
r(D)(
|
|
49323
|
-
"
|
|
49324
|
+
"label-14-regular text-content-on-surface-primary flex w-fit items-center gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
|
|
49324
49325
|
t.class
|
|
49325
49326
|
)
|
|
49326
49327
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aleph-alpha/ui-library",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/system/lib.js",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"vue-router": "4.6.4",
|
|
83
83
|
"vue-tsc": "^2.2.12",
|
|
84
84
|
"wait-on": "9.0.3",
|
|
85
|
-
"@aleph-alpha/eslint-config-frontend": "0.7.
|
|
86
|
-
"@aleph-alpha/prettier-config-frontend": "2.1.
|
|
87
|
-
"@aleph-alpha/tsconfig-frontend": "0.7.
|
|
85
|
+
"@aleph-alpha/eslint-config-frontend": "0.7.1",
|
|
86
|
+
"@aleph-alpha/prettier-config-frontend": "2.1.1",
|
|
87
|
+
"@aleph-alpha/tsconfig-frontend": "0.7.2"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@unocss/preset-wind4": ">=66.0.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"shiki": "^3.0.0",
|
|
118
118
|
"tailwind-merge": "^3.4.0",
|
|
119
119
|
"vue-sonner": "^2.0.9",
|
|
120
|
-
"@aleph-alpha/config-unocss": "0.2.
|
|
120
|
+
"@aleph-alpha/config-unocss": "0.2.1"
|
|
121
121
|
},
|
|
122
122
|
"jest-junit": {
|
|
123
123
|
"outputDirectory": "reports/storybook",
|
|
@@ -617,7 +617,7 @@ export const FilterAndSelect: Story = {
|
|
|
617
617
|
await expect(selectionDisplay(canvasElement)).toHaveTextContent(
|
|
618
618
|
'Banana',
|
|
619
619
|
);
|
|
620
|
-
await
|
|
620
|
+
await findOpenListbox(body);
|
|
621
621
|
// Close again so the end-of-play axe audit sees the resting state.
|
|
622
622
|
await userEvent.keyboard('{Escape}');
|
|
623
623
|
await waitFor(async () => {
|