docthub-core-components 1.0.14 → 1.0.15
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/README.md +7 -1
- package/dist/src/index.d.ts +6 -6
- package/package.json +2 -2
- /package/dist/src/components/overrides/ui/{autocomplete.d.ts → auto-complete.d.ts} +0 -0
- /package/dist/src/components/overrides/ui/chips/{DoctChip.d.ts → doct-chip.d.ts} +0 -0
- /package/dist/src/components/overrides/ui/currencyInput/{currencyInput.d.ts → currency-input.d.ts} +0 -0
- /package/dist/src/components/overrides/ui/{DoctAnimationLoader.d.ts → doct-animation-loader.d.ts} +0 -0
- /package/dist/src/components/overrides/ui/search/{autocomplete.d.ts → auto-complete.d.ts} +0 -0
- /package/dist/src/components/ui/{radioGroup.d.ts → radio-group.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ A modern, reusable React component library built with TypeScript and Vite. Inclu
|
|
|
8
8
|
- Tree-shakable and lightweight
|
|
9
9
|
- Includes buttons, inputs, dialogs, pickers, and more
|
|
10
10
|
- Designed for easy theming and customization
|
|
11
|
+
- Comprehensive test suite using Vitest and Testing Library
|
|
11
12
|
|
|
12
13
|
## 📦 Installation
|
|
13
14
|
|
|
@@ -58,12 +59,17 @@ npm install
|
|
|
58
59
|
npm run dev
|
|
59
60
|
```
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
## 🧪 Testing
|
|
63
|
+
|
|
64
|
+
- All tests are run with [Vitest](https://vitest.dev/) and [@testing-library/react](https://testing-library.com/docs/react-testing-library/intro/).
|
|
65
|
+
- To run the test suite:
|
|
62
66
|
|
|
63
67
|
```bash
|
|
64
68
|
npm test
|
|
65
69
|
```
|
|
66
70
|
|
|
71
|
+
- **Note:** Some tests for components using Radix UI's Select are skipped due to [JSDOM limitations with pointer events](https://github.com/radix-ui/primitives/issues/1822). All other tests pass without workarounds.
|
|
72
|
+
|
|
67
73
|
## 📄 License
|
|
68
74
|
|
|
69
75
|
MIT
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
export { DoctButton, DoctButtonVariants, } from './components/overrides/ui/button';
|
|
2
2
|
export { DoctTypography } from './components/overrides/ui/typography';
|
|
3
|
-
export { DoctAnimationLoader } from './components/overrides/ui/
|
|
3
|
+
export { DoctAnimationLoader } from './components/overrides/ui/doct-animation-loader';
|
|
4
4
|
export { LabeledInput } from './components/overrides/ui/inputs/labeled-input';
|
|
5
5
|
export { OtpInput } from './components/overrides/ui/inputs/otp-input';
|
|
6
6
|
export { PasswordInput } from './components/overrides/ui/inputs/password-input';
|
|
7
7
|
export { TextareaField } from './components/overrides/ui/inputs/textarea-field';
|
|
8
8
|
export { DatePickerField } from './components/overrides/ui/pickers/date-picker-field';
|
|
9
9
|
export { SelectField } from './components/overrides/ui/pickers/select-field';
|
|
10
|
-
export { Chip as DoctChip } from './components/overrides/ui/chips/
|
|
10
|
+
export { Chip as DoctChip } from './components/overrides/ui/chips/doct-chip';
|
|
11
11
|
export { SearchFilterSection } from './components/overrides/ui/composed/search-filter-section';
|
|
12
12
|
export { UserRegistrationSection } from './components/overrides/ui/composed/user-registration-section';
|
|
13
13
|
export { AddressFormSection } from './components/overrides/ui/composed/address-form-section';
|
|
14
14
|
export { ContactFormSection } from './components/overrides/ui/composed/contact-form-section';
|
|
15
15
|
export { SearchInput } from './components/overrides/ui/search/search-input';
|
|
16
|
-
export { AutoComplete } from './components/overrides/ui/search/
|
|
16
|
+
export { AutoComplete } from './components/overrides/ui/search/auto-complete';
|
|
17
17
|
export { ComponentSection } from './components/overrides/ui/showcase/component-section';
|
|
18
|
-
export { CurrencyInput } from './components/overrides/ui/currencyInput/
|
|
19
|
-
export { DoctAutocomplete } from './components/overrides/ui/
|
|
18
|
+
export { CurrencyInput } from './components/overrides/ui/currencyInput/currency-input';
|
|
19
|
+
export { DoctAutocomplete } from './components/overrides/ui/auto-complete';
|
|
20
20
|
export { ExpandableCard } from './components/overrides/ui/expandable-card';
|
|
21
21
|
export { Alert } from './components/ui/alert';
|
|
22
22
|
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
|
|
@@ -25,7 +25,7 @@ export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, Dialog
|
|
|
25
25
|
export { Drawer, DrawerTrigger, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, DrawerClose, } from './components/ui/drawer';
|
|
26
26
|
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, } from './components/ui/dropdown-menu';
|
|
27
27
|
export { Popover, PopoverTrigger, PopoverContent, } from './components/ui/popover';
|
|
28
|
-
export { RadioGroup, RadioGroupItem } from './components/ui/
|
|
28
|
+
export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
|
|
29
29
|
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
30
30
|
export { Toaster, toast } from './components/ui/toast';
|
|
31
31
|
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from './components/ui/tooltip';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docthub-core-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"style": "dist/docthub-core-components.css",
|
|
8
7
|
"files": [
|
|
9
8
|
"dist"
|
|
10
9
|
],
|
|
10
|
+
"style": "dist/docthub-core-components.css",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
File without changes
|
|
File without changes
|
/package/dist/src/components/overrides/ui/currencyInput/{currencyInput.d.ts → currency-input.d.ts}
RENAMED
|
File without changes
|
/package/dist/src/components/overrides/ui/{DoctAnimationLoader.d.ts → doct-animation-loader.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|