@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.
Files changed (71) hide show
  1. package/dist/index.js +5703 -0
  2. package/dist/index.js.map +1 -0
  3. package/dist/types/Alert.vue.d.ts +28 -0
  4. package/dist/types/Badge.vue.d.ts +19 -0
  5. package/dist/types/Breadcrumb.vue.d.ts +14 -0
  6. package/dist/types/Button.vue.d.ts +54 -0
  7. package/dist/types/ButtonGroup.d.ts +65 -0
  8. package/dist/types/ButtonGroupSeparator.d.ts +4 -0
  9. package/dist/types/Card.vue.d.ts +25 -0
  10. package/dist/types/Chart.vue.d.ts +27 -0
  11. package/dist/types/CheckIcon.vue.d.ts +3 -0
  12. package/dist/types/Checkbox.vue.d.ts +35 -0
  13. package/dist/types/ChevronIcon.vue.d.ts +3 -0
  14. package/dist/types/CloseIcon.vue.d.ts +3 -0
  15. package/dist/types/Combobox.vue.d.ts +39 -0
  16. package/dist/types/DataTable.vue.d.ts +44 -0
  17. package/dist/types/DateRangePanel.vue.d.ts +21 -0
  18. package/dist/types/DateRangePicker.vue.d.ts +47 -0
  19. package/dist/types/Dialog.vue.d.ts +58 -0
  20. package/dist/types/DropdownMenu.vue.d.ts +52 -0
  21. package/dist/types/DropdownMenuBranch.vue.d.ts +30 -0
  22. package/dist/types/Empty.vue.d.ts +25 -0
  23. package/dist/types/Field.vue.d.ts +34 -0
  24. package/dist/types/FieldFeedback.vue.d.ts +12 -0
  25. package/dist/types/Form.vue.d.ts +35 -0
  26. package/dist/types/Input.vue.d.ts +89 -0
  27. package/dist/types/Label.vue.d.ts +20 -0
  28. package/dist/types/Listbox.vue.d.ts +35 -0
  29. package/dist/types/MenuItemContent.vue.d.ts +19 -0
  30. package/dist/types/NumberField.vue.d.ts +47 -0
  31. package/dist/types/Pagination.vue.d.ts +33 -0
  32. package/dist/types/Popover.vue.d.ts +34 -0
  33. package/dist/types/RadioGroup.vue.d.ts +37 -0
  34. package/dist/types/Select.vue.d.ts +53 -0
  35. package/dist/types/SelectGroup.d.ts +56 -0
  36. package/dist/types/SelectionValidation.vue.d.ts +14 -0
  37. package/dist/types/Separator.vue.d.ts +10 -0
  38. package/dist/types/Sidebar.vue.d.ts +25 -0
  39. package/dist/types/Skeleton.vue.d.ts +10 -0
  40. package/dist/types/Spinner.vue.d.ts +15 -0
  41. package/dist/types/Switch.vue.d.ts +31 -0
  42. package/dist/types/Table.vue.d.ts +16 -0
  43. package/dist/types/Tabs.vue.d.ts +58 -0
  44. package/dist/types/TabsListView.vue.d.ts +22 -0
  45. package/dist/types/Textarea.vue.d.ts +47 -0
  46. package/dist/types/Toast.vue.d.ts +35 -0
  47. package/dist/types/ToastProvider.vue.d.ts +41 -0
  48. package/dist/types/ToggleButton.vue.d.ts +36 -0
  49. package/dist/types/ToggleButtonGroup.vue.d.ts +35 -0
  50. package/dist/types/ToggleGroup.vue.d.ts +39 -0
  51. package/dist/types/Tooltip.vue.d.ts +36 -0
  52. package/dist/types/button-family-context.d.ts +8 -0
  53. package/dist/types/chart-model.d.ts +12 -0
  54. package/dist/types/dashboard-types.d.ts +27 -0
  55. package/dist/types/data-table-types.d.ts +13 -0
  56. package/dist/types/date-range-model.d.ts +69 -0
  57. package/dist/types/form-context.d.ts +3 -0
  58. package/dist/types/index.d.ts +61 -0
  59. package/dist/types/listbox-selection.d.ts +8 -0
  60. package/dist/types/overlay-model.d.ts +14 -0
  61. package/dist/types/pagination-model.d.ts +5 -0
  62. package/dist/types/selection-options.d.ts +8 -0
  63. package/dist/types/tabs-indicator.d.ts +1 -0
  64. package/dist/types/toast-model.d.ts +64 -0
  65. package/dist/types/toggle-group-model.d.ts +9 -0
  66. package/dist/types/types.d.ts +43 -0
  67. package/dist/types/useDisclosure.d.ts +7 -0
  68. package/dist/types/useFeedback.d.ts +10 -0
  69. package/dist/types/useToast.d.ts +5 -0
  70. package/package.json +50 -3
  71. 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,7 @@
1
+ export declare function useDisclosure(props: {
2
+ open?: boolean;
3
+ defaultOpen?: boolean;
4
+ }, emit: (open: boolean) => void): {
5
+ visible: import("vue").ComputedRef<boolean>;
6
+ change: (next: boolean) => void;
7
+ };
@@ -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.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.