sit-onyx 0.1.0-alpha.6 → 0.1.0-alpha.7

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,13 @@
1
+ import type { Meta } from "@storybook/vue3";
2
+ import Grid from "./GridPlayground.vue";
3
+ /**
4
+ * The GridPlayground allows to test and play around with the Onyx grid system
5
+ */
6
+ declare const meta: Meta<typeof Grid>;
7
+ export default meta;
8
+ /**
9
+ * Please open in Fullscreen mode for playground to behave correctly!
10
+ */
11
+ export declare const Default: {
12
+ args: {};
13
+ };
@@ -0,0 +1,18 @@
1
+ import type { Meta } from "@storybook/vue3";
2
+ import OnyxRadioButton from "./OnyxRadioButton.vue";
3
+ /**
4
+ * The input component can be used to...
5
+ */
6
+ declare const meta: Meta<typeof OnyxRadioButton>;
7
+ export default meta;
8
+ /**
9
+ * This example shows a standalone radio button.
10
+ */
11
+ export declare const Default: {
12
+ args: {
13
+ id: string;
14
+ label: string;
15
+ name: string;
16
+ value: string;
17
+ };
18
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * TODO: move to dedicated file
3
+ */
4
+ export type SelectionOption<T> = {
5
+ id: string;
6
+ label: string;
7
+ /**
8
+ * An optional value.
9
+ * It's not actually used by the selection controls, but can be used to associate data with this option.
10
+ */
11
+ value?: T;
12
+ isDisabled?: boolean;
13
+ isReadonly?: boolean;
14
+ isLoading?: boolean;
15
+ };
16
+ export type SelectionProps<T> = SelectionOption<T> & {
17
+ selected?: boolean;
18
+ };
@@ -0,0 +1,27 @@
1
+ import type { Meta } from "@storybook/vue3";
2
+ import OnyxRadioButtonGroup from "./OnyxRadioButtonGroup.vue";
3
+ import type { SelectionOption } from "../OnyxRadioButton/types";
4
+ /**
5
+ * The input component can be used to...
6
+ */
7
+ declare const meta: Meta<typeof OnyxRadioButtonGroup>;
8
+ export default meta;
9
+ /**
10
+ * This example shows a radio button group.
11
+ */
12
+ export declare const Default: {
13
+ args: {
14
+ name: string;
15
+ options: SelectionOption<string>[];
16
+ };
17
+ };
18
+ /**
19
+ * This example shows a preselected radio button.
20
+ */
21
+ export declare const Preselected: {
22
+ args: {
23
+ name: string;
24
+ options: SelectionOption<string>[];
25
+ modelValue: SelectionOption<string>;
26
+ };
27
+ };
@@ -52,13 +52,13 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
52
52
  label: string;
53
53
  type: string;
54
54
  }>>> & {
55
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
56
55
  onChange?: ((value: string) => any) | undefined;
56
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
57
57
  onValidityChange?: ((state: ValidityState) => any) | undefined;
58
58
  }, {
59
- type: "number" | "search" | "email" | "tel" | "url" | "password" | "text";
60
- modelValue: string | number;
59
+ type: "number" | "text" | "email" | "password" | "search" | "tel" | "url";
61
60
  label: string;
61
+ modelValue: string | number;
62
62
  }, {}>;
63
63
  export default _default;
64
64
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Allows to define a DOM event with a typed and non-null target.
3
+ * This is useful as the native events are not generic.
4
+ * E.g.:
5
+ * @type {Event}
6
+ * @type {InputEvent}
7
+ */
8
+ export type TargetEvent<T extends HTMLElement, E extends Event = Event> = E & {
9
+ target: T;
10
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sit-onyx",
3
3
  "description": "A design system and Vue.js component library created by Schwarz IT",
4
- "version": "0.1.0-alpha.6",
4
+ "version": "0.1.0-alpha.7",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
@@ -36,15 +36,15 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@axe-core/playwright": "^4.8.4",
39
- "@storybook/addon-essentials": "^7.6.12",
40
- "@storybook/blocks": "^7.6.12",
41
- "@storybook/vue3": "^7.6.12",
42
- "@storybook/vue3-vite": "^7.6.12",
39
+ "@storybook/addon-essentials": "^7.6.13",
40
+ "@storybook/blocks": "^7.6.13",
41
+ "@storybook/vue3": "^7.6.13",
42
+ "@storybook/vue3-vite": "^7.6.13",
43
43
  "eslint-plugin-vue-scoped-css": "^2.7.2",
44
44
  "react": "^18.2.0",
45
- "storybook": "^7.6.12",
45
+ "storybook": "^7.6.13",
46
46
  "@sit-onyx/headless": "^0.1.0-alpha.1",
47
- "@sit-onyx/storybook-utils": "^1.0.0-alpha.7"
47
+ "@sit-onyx/storybook-utils": "^1.0.0-alpha.8"
48
48
  },
49
49
  "scripts": {
50
50
  "start": "pnpm run dev",