@kazee-ds/vue 0.0.0-stage → 0.5.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/dist/index.js +5703 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Alert.vue.d.ts +28 -0
- package/dist/types/Badge.vue.d.ts +19 -0
- package/dist/types/Breadcrumb.vue.d.ts +14 -0
- package/dist/types/Button.vue.d.ts +54 -0
- package/dist/types/ButtonGroup.d.ts +65 -0
- package/dist/types/ButtonGroupSeparator.d.ts +4 -0
- package/dist/types/Card.vue.d.ts +25 -0
- package/dist/types/Chart.vue.d.ts +27 -0
- package/dist/types/CheckIcon.vue.d.ts +3 -0
- package/dist/types/Checkbox.vue.d.ts +35 -0
- package/dist/types/ChevronIcon.vue.d.ts +3 -0
- package/dist/types/CloseIcon.vue.d.ts +3 -0
- package/dist/types/Combobox.vue.d.ts +39 -0
- package/dist/types/DataTable.vue.d.ts +44 -0
- package/dist/types/DateRangePanel.vue.d.ts +21 -0
- package/dist/types/DateRangePicker.vue.d.ts +47 -0
- package/dist/types/Dialog.vue.d.ts +58 -0
- package/dist/types/DropdownMenu.vue.d.ts +52 -0
- package/dist/types/DropdownMenuBranch.vue.d.ts +30 -0
- package/dist/types/Empty.vue.d.ts +25 -0
- package/dist/types/Field.vue.d.ts +34 -0
- package/dist/types/FieldFeedback.vue.d.ts +12 -0
- package/dist/types/Form.vue.d.ts +35 -0
- package/dist/types/Input.vue.d.ts +89 -0
- package/dist/types/Label.vue.d.ts +20 -0
- package/dist/types/Listbox.vue.d.ts +35 -0
- package/dist/types/MenuItemContent.vue.d.ts +19 -0
- package/dist/types/NumberField.vue.d.ts +47 -0
- package/dist/types/Pagination.vue.d.ts +33 -0
- package/dist/types/Popover.vue.d.ts +34 -0
- package/dist/types/RadioGroup.vue.d.ts +37 -0
- package/dist/types/Select.vue.d.ts +53 -0
- package/dist/types/SelectGroup.d.ts +56 -0
- package/dist/types/SelectionValidation.vue.d.ts +14 -0
- package/dist/types/Separator.vue.d.ts +10 -0
- package/dist/types/Sidebar.vue.d.ts +25 -0
- package/dist/types/Skeleton.vue.d.ts +10 -0
- package/dist/types/Spinner.vue.d.ts +15 -0
- package/dist/types/Switch.vue.d.ts +31 -0
- package/dist/types/Table.vue.d.ts +16 -0
- package/dist/types/Tabs.vue.d.ts +58 -0
- package/dist/types/TabsListView.vue.d.ts +22 -0
- package/dist/types/Textarea.vue.d.ts +47 -0
- package/dist/types/Toast.vue.d.ts +35 -0
- package/dist/types/ToastProvider.vue.d.ts +41 -0
- package/dist/types/ToggleButton.vue.d.ts +36 -0
- package/dist/types/ToggleButtonGroup.vue.d.ts +35 -0
- package/dist/types/ToggleGroup.vue.d.ts +39 -0
- package/dist/types/Tooltip.vue.d.ts +36 -0
- package/dist/types/button-family-context.d.ts +8 -0
- package/dist/types/chart-model.d.ts +12 -0
- package/dist/types/dashboard-types.d.ts +27 -0
- package/dist/types/data-table-types.d.ts +13 -0
- package/dist/types/date-range-model.d.ts +69 -0
- package/dist/types/form-context.d.ts +3 -0
- package/dist/types/index.d.ts +61 -0
- package/dist/types/listbox-selection.d.ts +8 -0
- package/dist/types/overlay-model.d.ts +14 -0
- package/dist/types/pagination-model.d.ts +5 -0
- package/dist/types/selection-options.d.ts +8 -0
- package/dist/types/tabs-indicator.d.ts +1 -0
- package/dist/types/toast-model.d.ts +64 -0
- package/dist/types/toggle-group-model.d.ts +9 -0
- package/dist/types/types.d.ts +43 -0
- package/dist/types/useDisclosure.d.ts +7 -0
- package/dist/types/useFeedback.d.ts +10 -0
- package/dist/types/useToast.d.ts +5 -0
- package/package.json +50 -3
- package/README.md +0 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'outline' | 'tertiary' | 'ghost' | 'danger-soft' | 'ai';
|
|
2
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type InputSize = 'sm' | 'md' | 'lg';
|
|
4
|
+
export type SelectSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export type SelectVariant = 'primary' | 'secondary' | 'outline';
|
|
6
|
+
export type InputType = 'text' | 'email' | 'password' | 'search' | 'tel' | 'url';
|
|
7
|
+
export type InputVariant = 'primary' | 'secondary';
|
|
8
|
+
export type InputMode = 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
9
|
+
export type InputEnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
10
|
+
export type { SelectOption } from './selection-options.js';
|
|
11
|
+
export interface RadioOption {
|
|
12
|
+
id: string;
|
|
13
|
+
label: string;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Application-owned errors, keyed by the Field name. Clear entries explicitly. */
|
|
17
|
+
export type ValidationErrors = Readonly<Record<string, string | undefined>>;
|
|
18
|
+
/** Bind these props to exactly one native input, textarea, or select. */
|
|
19
|
+
export interface FieldControlProps {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
class: string;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
readonly: boolean;
|
|
25
|
+
required: boolean;
|
|
26
|
+
'aria-required': true | undefined;
|
|
27
|
+
'aria-invalid': true | undefined;
|
|
28
|
+
'aria-describedby': string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface FieldSlotProps {
|
|
31
|
+
controlProps: FieldControlProps;
|
|
32
|
+
invalid: boolean;
|
|
33
|
+
errorMessage: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
export type BadgeTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
|
|
36
|
+
export interface TabItem {
|
|
37
|
+
id: string;
|
|
38
|
+
label: string;
|
|
39
|
+
isDisabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export type SpinnerSize = 'sm' | 'md' | 'lg';
|
|
42
|
+
export type SpinnerColor = 'current' | 'primary';
|
|
43
|
+
export type TabsVariant = 'primary' | 'secondary' | 'default' | 'pill';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useFeedback(props: {
|
|
2
|
+
id?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
}): {
|
|
7
|
+
controlId: import("vue").ComputedRef<string>;
|
|
8
|
+
showError: import("vue").ComputedRef<boolean>;
|
|
9
|
+
describedBy: import("vue").ComputedRef<string | undefined>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
import type { ToastManager } from './toast-model.js';
|
|
3
|
+
export declare const toastManagerKey: InjectionKey<ToastManager>;
|
|
4
|
+
/** Access the nearest provider's manager. Create imperative managers per application. */
|
|
5
|
+
export declare function useToast(): ToastManager;
|
package/package.json
CHANGED
|
@@ -1,6 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kazee-ds/vue",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/types/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"default": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@internationalized/date": "3.12.4",
|
|
15
|
+
"reka-ui": "^2.11.0"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@arethetypeswrong/cli": "^0.18.5",
|
|
19
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
20
|
+
"@vue/test-utils": "^2.5.1",
|
|
21
|
+
"jsdom": "^29.1.1",
|
|
22
|
+
"publint": "^0.3.25",
|
|
23
|
+
"vite": "^8.3.3",
|
|
24
|
+
"vue": "^3.5.43"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"vue": ">= 3.4.0"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"license": "UNLICENSED",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"main": "./dist/index.js",
|
|
35
|
+
"module": "./dist/index.js",
|
|
36
|
+
"types": "./dist/types/index.d.ts",
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"registry": "https://registry.npmjs.org/"
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://gitlab.com/kazee.indonesia/kazee-design-system.git",
|
|
44
|
+
"directory": "packages/vue"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://kazee-design-system-023417.gitlab.io",
|
|
47
|
+
"scripts": {
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"typecheck": "vue-tsc --noEmit",
|
|
50
|
+
"build": "vite build && vue-tsc -p tsconfig.build.json && node scripts/fix-dts.mjs",
|
|
51
|
+
"lint:package": "publint --strict && attw --pack . --profile esm-only"
|
|
52
|
+
}
|
|
6
53
|
}
|
package/README.md
DELETED