sit-onyx 0.1.0-alpha.8 → 0.1.0-alpha.9

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,35 @@
1
+ import type { Meta } from "@storybook/vue3";
2
+ import OnyxCheckbox from "./OnyxCheckbox.vue";
3
+ /**
4
+ * Checkboxes are a fundamental UI element, that allows users to make a binary selection.
5
+ * They are commonly used for tasks such as selecting multiple items, opting into services or confirming and agreeing.
6
+ */
7
+ declare const meta: Meta<typeof OnyxCheckbox>;
8
+ export default meta;
9
+ /**
10
+ * A default checkbox.
11
+ */
12
+ export declare const Default: {
13
+ args: {
14
+ label: string;
15
+ };
16
+ };
17
+ /**
18
+ * An indeterminate checkbox.
19
+ */
20
+ export declare const Indeterminate: {
21
+ args: {
22
+ indeterminate: true;
23
+ label: string;
24
+ };
25
+ };
26
+ /**
27
+ * A disabled checkbox that can not be interacted with.
28
+ */
29
+ export declare const Disabled: {
30
+ args: {
31
+ modelValue: true;
32
+ disabled: true;
33
+ label: string;
34
+ };
35
+ };
@@ -0,0 +1,18 @@
1
+ export type OnyxCheckboxProps = {
2
+ /**
3
+ * Whether the checkbox is checked.
4
+ */
5
+ modelValue?: boolean;
6
+ /**
7
+ * Label to show.
8
+ */
9
+ label?: string;
10
+ /**
11
+ * If `true`, an indeterminate indicator is shown.
12
+ */
13
+ indeterminate?: boolean;
14
+ /**
15
+ * Whether to disable the checkbox and prevent user interaction.
16
+ */
17
+ disabled?: boolean;
18
+ };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './components/OnyxCheckbox/types';
1
2
  export { default as OnyxHeadline } from './components/OnyxHeadline/OnyxHeadline.vue';
2
3
  export * from './components/OnyxHeadline/types';
3
4
  export { default as OnyxIcon } from './components/OnyxIcon/OnyxIcon.vue';
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.8",
4
+ "version": "0.1.0-alpha.9",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "files": [
@@ -35,7 +35,7 @@
35
35
  "@sit-onyx/icons": "^0.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@axe-core/playwright": "^4.8.4",
38
+ "@axe-core/playwright": "^4.8.5",
39
39
  "@storybook/addon-essentials": "^7.6.14",
40
40
  "@storybook/blocks": "^7.6.14",
41
41
  "@storybook/vue3": "^7.6.14",
@@ -44,7 +44,7 @@
44
44
  "react": "^18.2.0",
45
45
  "storybook": "^7.6.14",
46
46
  "@sit-onyx/headless": "^0.1.0-alpha.1",
47
- "@sit-onyx/storybook-utils": "^1.0.0-alpha.9"
47
+ "@sit-onyx/storybook-utils": "^1.0.0-alpha.10"
48
48
  },
49
49
  "scripts": {
50
50
  "start": "pnpm run dev",