@tecsinapse/cortex-react 1.3.0-beta.3 → 1.3.0-beta.31
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/cjs/components/Badge.js +22 -3
- package/dist/cjs/components/{Breadcrumbs.js → Breadcrumbs/Breadcrumbs.js} +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/{Calendar.js → Calendar/Calendar.js} +1 -1
- package/dist/cjs/components/{CalendarCell.js → Calendar/CalendarCell.js} +5 -5
- package/dist/cjs/components/{CalendarGrid.js → Calendar/CalendarGrid.js} +1 -1
- package/dist/cjs/components/{CalendarGridHeaderRow.js → Calendar/CalendarGridHeaderRow.js} +1 -1
- package/dist/cjs/components/{CalendarHeader.js → Calendar/CalendarHeader.js} +1 -1
- package/dist/cjs/components/{RangeCalendar.js → Calendar/RangeCalendar.js} +1 -1
- package/dist/cjs/components/DatePicker/Content.js +21 -0
- package/dist/cjs/components/DatePicker/DatePickerInput.js +52 -0
- package/dist/cjs/components/{DatePickerInputBase.js → DatePicker/DatePickerInputBase.js} +3 -5
- package/dist/cjs/components/{DateRangePickerInput.js → DatePicker/DateRangePickerInput.js} +14 -12
- package/dist/cjs/components/Divider.js +10 -0
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Hint.js +5 -15
- package/dist/cjs/components/Input/Mask.js +33 -0
- package/dist/cjs/components/Input/Search.js +7 -1
- package/dist/cjs/components/Input/index.js +3 -1
- package/dist/cjs/components/Input/masks.js +43 -0
- package/dist/cjs/components/Masonry.js +49 -0
- package/dist/cjs/components/Menubar/Categories.js +10 -0
- package/dist/cjs/components/Menubar/Category.js +11 -0
- package/dist/cjs/components/Menubar/Dropdown.js +23 -0
- package/dist/cjs/components/Menubar/DropdownRoot.js +38 -0
- package/dist/cjs/components/Menubar/Header.js +25 -0
- package/dist/cjs/components/Menubar/IconControlSubItem.js +19 -0
- package/dist/cjs/components/Menubar/Item.js +22 -0
- package/dist/cjs/components/Menubar/ItemLink.js +18 -0
- package/dist/cjs/components/Menubar/Left.js +11 -0
- package/dist/cjs/components/Menubar/MostUsed.js +11 -0
- package/dist/cjs/components/Menubar/MostUsedItem.js +31 -0
- package/dist/cjs/components/Menubar/MostUsedList.js +67 -0
- package/dist/cjs/components/Menubar/Right.js +11 -0
- package/dist/cjs/components/Menubar/Root.js +11 -0
- package/dist/cjs/components/Menubar/Search.js +21 -0
- package/dist/cjs/components/Menubar/SubItem.js +20 -0
- package/dist/cjs/components/Menubar/index.js +33 -0
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Popover/{PopoverContent.js → Content.js} +9 -6
- package/dist/cjs/components/Popover/Context.js +15 -0
- package/dist/cjs/components/Popover/Provider.js +19 -0
- package/dist/cjs/components/Popover/Root.js +14 -0
- package/dist/cjs/components/Popover/Trigger.js +11 -0
- package/dist/cjs/components/Popover/index.js +15 -0
- package/dist/cjs/components/RadioButton.js +22 -0
- package/dist/cjs/components/Select/Content.js +21 -0
- package/dist/cjs/components/Select/GroupedOptions.js +14 -4
- package/dist/cjs/components/Select/MultiCheckAllOptions.js +47 -0
- package/dist/cjs/components/Select/MultiGroupedOptions.js +51 -0
- package/dist/cjs/components/Select/MultiOption.js +43 -0
- package/dist/cjs/components/Select/MultiOptions.js +33 -0
- package/dist/cjs/components/Select/Option.js +4 -2
- package/dist/cjs/components/Select/Options.js +14 -3
- package/dist/cjs/components/Select/Popover.js +2 -5
- package/dist/cjs/components/Select/Root.js +3 -18
- package/dist/cjs/components/Select/SkeletonOptions.js +11 -0
- package/dist/cjs/components/Select/Trigger.js +16 -10
- package/dist/cjs/components/Select/context.js +4 -0
- package/dist/cjs/components/Select/index.js +9 -1
- package/dist/cjs/components/Select/utils.js +16 -0
- package/dist/cjs/components/Skeleton.js +1 -5
- package/dist/cjs/components/Tag.js +2 -9
- package/dist/cjs/components/TextArea/Box.js +47 -0
- package/dist/cjs/components/TextArea/Face.js +27 -0
- package/dist/cjs/components/TextArea/Left.js +10 -0
- package/dist/cjs/components/TextArea/Right.js +10 -0
- package/dist/cjs/components/TextArea/Root.js +11 -0
- package/dist/cjs/components/TextArea/index.js +17 -0
- package/dist/cjs/components/TextArea/utils.js +11 -0
- package/dist/cjs/components/{TimeField.js → TimeField/TimeField.js} +3 -3
- package/dist/cjs/components/{TimeFieldInput.js → TimeField/TimeFieldInput.js} +3 -3
- package/dist/cjs/components/Tooltip.js +47 -39
- package/dist/cjs/components/utils.js +5 -0
- package/dist/cjs/hooks/useSelectGroupedOptions.js +35 -0
- package/dist/cjs/hooks/useSelectOptions.js +35 -0
- package/dist/cjs/index.js +52 -20
- package/dist/cjs/provider/MenubarProvider.js +22 -0
- package/dist/cjs/provider/SnackbarProvider.js +21 -0
- package/dist/cjs/service/SnackbarSonner.js +25 -6
- package/dist/cjs/styles/menubar.js +70 -0
- package/dist/esm/components/Avatar.js +6 -6
- package/dist/esm/components/Badge.js +2 -1
- package/dist/esm/components/{BreadcrumbItem.js → Breadcrumbs/BreadcrumbItem.js} +4 -4
- package/dist/esm/components/{Breadcrumbs.js → Breadcrumbs/Breadcrumbs.js} +4 -4
- package/dist/esm/components/Button.js +2 -2
- package/dist/esm/components/{Calendar.js → Calendar/Calendar.js} +4 -4
- package/dist/esm/components/{CalendarCell.js → Calendar/CalendarCell.js} +8 -8
- package/dist/esm/components/Calendar/CalendarGrid.js +22 -0
- package/dist/esm/components/Calendar/CalendarGridBodyRows.js +10 -0
- package/dist/esm/components/Calendar/CalendarGridHeaderRow.js +10 -0
- package/dist/esm/components/{CalendarHeader.js → Calendar/CalendarHeader.js} +8 -8
- package/dist/esm/components/{RangeCalendar.js → Calendar/RangeCalendar.js} +5 -5
- package/dist/esm/components/Card.js +2 -2
- package/dist/esm/components/DatePicker/Content.js +19 -0
- package/dist/esm/components/{DateField.js → DatePicker/DateField.js} +3 -3
- package/dist/esm/components/DatePicker/DatePickerInput.js +50 -0
- package/dist/esm/components/DatePicker/DatePickerInputBase.js +20 -0
- package/dist/esm/components/DatePicker/DateRangePickerInput.js +63 -0
- package/dist/esm/components/{DateSegment.js → DatePicker/DateSegment.js} +3 -3
- package/dist/esm/components/Divider.js +8 -0
- package/dist/esm/components/Drawer.js +3 -3
- package/dist/esm/components/GroupButton.js +3 -3
- package/dist/esm/components/Hint.js +5 -15
- package/dist/esm/components/Input/Box.js +4 -4
- package/dist/esm/components/Input/Face.js +6 -6
- package/dist/esm/components/Input/Left.js +3 -3
- package/dist/esm/components/Input/Mask.js +31 -0
- package/dist/esm/components/Input/Right.js +3 -3
- package/dist/esm/components/Input/Root.js +3 -3
- package/dist/esm/components/Input/Search.js +10 -4
- package/dist/esm/components/Input/index.js +3 -1
- package/dist/esm/components/Input/masks.js +38 -0
- package/dist/esm/components/Masonry.js +47 -0
- package/dist/esm/components/Menubar/Categories.js +8 -0
- package/dist/esm/components/Menubar/Category.js +9 -0
- package/dist/esm/components/Menubar/Dropdown.js +21 -0
- package/dist/esm/components/Menubar/DropdownRoot.js +36 -0
- package/dist/esm/components/Menubar/Header.js +23 -0
- package/dist/esm/components/Menubar/IconControlSubItem.js +17 -0
- package/dist/esm/components/Menubar/Item.js +20 -0
- package/dist/esm/components/Menubar/ItemLink.js +16 -0
- package/dist/esm/components/Menubar/Left.js +9 -0
- package/dist/esm/components/Menubar/MostUsed.js +9 -0
- package/dist/esm/components/Menubar/MostUsedItem.js +29 -0
- package/dist/esm/components/Menubar/MostUsedList.js +65 -0
- package/dist/esm/components/Menubar/Right.js +9 -0
- package/dist/esm/components/Menubar/Root.js +9 -0
- package/dist/esm/components/Menubar/Search.js +19 -0
- package/dist/esm/components/Menubar/SubItem.js +18 -0
- package/dist/esm/components/Menubar/index.js +31 -0
- package/dist/esm/components/Modal.js +3 -3
- package/dist/esm/components/Popover/Content.js +29 -0
- package/dist/esm/components/Popover/Context.js +12 -0
- package/dist/esm/components/Popover/Provider.js +17 -0
- package/dist/esm/components/Popover/Root.js +12 -0
- package/dist/esm/components/Popover/Trigger.js +9 -0
- package/dist/esm/components/Popover/index.js +13 -0
- package/dist/esm/components/ProgressBar.js +4 -4
- package/dist/esm/components/RadioButton.js +20 -0
- package/dist/esm/components/Select/Content.js +19 -0
- package/dist/esm/components/Select/GroupedOptions.js +15 -5
- package/dist/esm/components/Select/MultiCheckAllOptions.js +45 -0
- package/dist/esm/components/Select/MultiGroupedOptions.js +49 -0
- package/dist/esm/components/Select/MultiOption.js +41 -0
- package/dist/esm/components/Select/MultiOptions.js +31 -0
- package/dist/esm/components/Select/Option.js +6 -4
- package/dist/esm/components/Select/Options.js +15 -4
- package/dist/esm/components/Select/Popover.js +3 -6
- package/dist/esm/components/Select/Root.js +4 -19
- package/dist/esm/components/Select/SkeletonOptions.js +9 -0
- package/dist/esm/components/Select/Trigger.js +18 -12
- package/dist/esm/components/Select/context.js +4 -1
- package/dist/esm/components/Select/index.js +9 -1
- package/dist/esm/components/Select/utils.js +14 -0
- package/dist/esm/components/Skeleton.js +3 -7
- package/dist/esm/components/Snackbar/BaseSnackbar.js +11 -0
- package/dist/esm/components/{DefaultSnack.js → Snackbar/DefaultSnack.js} +4 -4
- package/dist/esm/components/Table.js +9 -9
- package/dist/esm/components/Tag.js +2 -9
- package/dist/esm/components/TextArea/Box.js +45 -0
- package/dist/esm/components/TextArea/Face.js +25 -0
- package/dist/esm/components/TextArea/Left.js +8 -0
- package/dist/esm/components/TextArea/Right.js +8 -0
- package/dist/esm/components/TextArea/Root.js +9 -0
- package/dist/esm/components/TextArea/index.js +15 -0
- package/dist/esm/components/TextArea/utils.js +9 -0
- package/dist/esm/components/TimeField/TimeField.js +10 -0
- package/dist/esm/components/TimeField/TimeFieldInput.js +20 -0
- package/dist/esm/components/Toggle.js +4 -4
- package/dist/esm/components/Tooltip.js +44 -39
- package/dist/esm/components/utils.js +5 -1
- package/dist/esm/hooks/useSelectGroupedOptions.js +33 -0
- package/dist/esm/hooks/useSelectOptions.js +33 -0
- package/dist/esm/hooks/useTimeField.js +2 -2
- package/dist/esm/index.js +25 -12
- package/dist/esm/provider/MenubarProvider.js +19 -0
- package/dist/esm/provider/SnackbarProvider.js +18 -0
- package/dist/esm/service/SnackbarSonner.js +27 -8
- package/dist/esm/styles/menubar.js +62 -0
- package/dist/types/components/Avatar.d.ts +1 -2
- package/dist/types/components/Badge.d.ts +4 -5
- package/dist/types/components/{BreadcrumbItem.d.ts → Breadcrumbs/BreadcrumbItem.d.ts} +6 -1
- package/dist/types/components/{Breadcrumbs.d.ts → Breadcrumbs/Breadcrumbs.d.ts} +2 -6
- package/dist/types/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/types/components/Button.d.ts +2 -3
- package/dist/types/components/{RangeCalendar.d.ts → Calendar/RangeCalendar.d.ts} +1 -2
- package/dist/types/components/Calendar/index.d.ts +2 -0
- package/dist/types/components/Card.d.ts +3 -4
- package/dist/types/components/DatePicker/Content.d.ts +5 -0
- package/dist/types/components/{DatePickerInput.d.ts → DatePicker/DatePickerInput.d.ts} +1 -1
- package/dist/types/components/{DatePickerInputBase.d.ts → DatePicker/DatePickerInputBase.d.ts} +2 -3
- package/dist/types/components/{DateRangePickerInput.d.ts → DatePicker/DateRangePickerInput.d.ts} +2 -2
- package/dist/types/components/DatePicker/index.d.ts +5 -0
- package/dist/types/components/Divider.d.ts +5 -0
- package/dist/types/components/Drawer.d.ts +1 -2
- package/dist/types/components/Hint.d.ts +4 -11
- package/dist/types/components/Input/Mask.d.ts +3 -0
- package/dist/types/components/Input/index.d.ts +2 -0
- package/dist/types/components/Input/masks.d.ts +39 -0
- package/dist/types/components/Input/types.d.ts +11 -0
- package/dist/types/components/Masonry.d.ts +7 -0
- package/dist/types/components/Menubar/Categories.d.ts +3 -0
- package/dist/types/components/Menubar/Category.d.ts +8 -0
- package/dist/types/components/Menubar/Dropdown.d.ts +3 -0
- package/dist/types/components/Menubar/DropdownRoot.d.ts +17 -0
- package/dist/types/components/Menubar/Header.d.ts +6 -0
- package/dist/types/components/Menubar/IconControlSubItem.d.ts +6 -0
- package/dist/types/components/Menubar/Item.d.ts +10 -0
- package/dist/types/components/Menubar/ItemLink.d.ts +8 -0
- package/dist/types/components/Menubar/Left.d.ts +3 -0
- package/dist/types/components/Menubar/MostUsed.d.ts +8 -0
- package/dist/types/components/Menubar/MostUsedItem.d.ts +8 -0
- package/dist/types/components/Menubar/MostUsedList.d.ts +3 -0
- package/dist/types/components/Menubar/Right.d.ts +3 -0
- package/dist/types/components/Menubar/Root.d.ts +6 -0
- package/dist/types/components/Menubar/Search.d.ts +3 -0
- package/dist/types/components/Menubar/SubItem.d.ts +6 -0
- package/dist/types/components/Menubar/index.d.ts +15 -0
- package/dist/types/components/Menubar/interface.d.ts +4 -0
- package/dist/types/components/Popover/Content.d.ts +6 -0
- package/dist/types/components/Popover/{PopoverContext.d.ts → Context.d.ts} +5 -9
- package/dist/types/components/Popover/Provider.d.ts +8 -0
- package/dist/types/components/Popover/{PopoverRoot.d.ts → Root.d.ts} +1 -2
- package/dist/types/components/Popover/Trigger.d.ts +5 -0
- package/dist/types/components/Popover/index.d.ts +6 -3
- package/dist/types/components/RadioButton.d.ts +6 -0
- package/dist/types/components/Select/Content.d.ts +2 -0
- package/dist/types/components/Select/GroupedOptions.d.ts +1 -5
- package/dist/types/components/Select/MultiCheckAllOptions.d.ts +2 -0
- package/dist/types/components/Select/MultiGroupedOptions.d.ts +2 -0
- package/dist/types/components/Select/MultiOption.d.ts +2 -0
- package/dist/types/components/Select/MultiOptions.d.ts +2 -0
- package/dist/types/components/Select/Option.d.ts +2 -5
- package/dist/types/components/Select/Options.d.ts +1 -4
- package/dist/types/components/Select/Popover.d.ts +1 -4
- package/dist/types/components/Select/Root.d.ts +1 -7
- package/dist/types/components/Select/SkeletonOptions.d.ts +1 -0
- package/dist/types/components/Select/Trigger.d.ts +2 -5
- package/dist/types/components/Select/context.d.ts +6 -4
- package/dist/types/components/Select/index.d.ts +11 -6
- package/dist/types/components/Select/types.d.ts +51 -0
- package/dist/types/components/Select/utils.d.ts +1 -0
- package/dist/types/components/Skeleton.d.ts +6 -4
- package/dist/types/components/Snackbar/index.d.ts +2 -0
- package/dist/types/components/Tag.d.ts +1 -1
- package/dist/types/components/TextArea/Box.d.ts +3 -0
- package/dist/types/components/TextArea/Face.d.ts +3 -0
- package/dist/types/components/TextArea/Left.d.ts +3 -0
- package/dist/types/components/TextArea/Right.d.ts +3 -0
- package/dist/types/components/TextArea/Root.d.ts +3 -0
- package/dist/types/components/TextArea/index.d.ts +8 -0
- package/dist/types/components/TextArea/types.d.ts +15 -0
- package/dist/types/components/TextArea/utils.d.ts +2 -0
- package/dist/types/components/{TimeField.d.ts → TimeField/TimeField.d.ts} +1 -2
- package/dist/types/components/{TimeFieldInput.d.ts → TimeField/TimeFieldInput.d.ts} +1 -1
- package/dist/types/components/TimeField/index.d.ts +2 -0
- package/dist/types/components/Tooltip.d.ts +2 -2
- package/dist/types/components/index.d.ts +7 -14
- package/dist/types/components/utils.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +3 -1
- package/dist/types/hooks/useSelectGroupedOptions.d.ts +9 -0
- package/dist/types/hooks/useSelectOptions.d.ts +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/provider/MenubarProvider.d.ts +8 -0
- package/dist/types/provider/index.d.ts +2 -0
- package/dist/types/styles/menubar.d.ts +350 -0
- package/dist/types/tests/Divider.test.d.ts +1 -0
- package/dist/types/tests/Input/Mask.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Categories.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Category.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Dropdown.test.d.ts +1 -0
- package/dist/types/tests/Menubar/DropdownRoot.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Header.test.d.ts +1 -0
- package/dist/types/tests/Menubar/HeaderLeft.test.d.ts +1 -0
- package/dist/types/tests/Menubar/HeaderRigth.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Item.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsed.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsedItem.test.d.ts +1 -0
- package/dist/types/tests/Menubar/MostUsedList.test.d.ts +1 -0
- package/dist/types/tests/Menubar/Root.test.d.ts +1 -0
- package/dist/types/tests/Menubar/SubItem.test.d.ts +1 -0
- package/dist/types/tests/RadioButton.test.d.ts +1 -0
- package/package.json +4 -3
- package/dist/cjs/components/DatePickerInput.js +0 -49
- package/dist/cjs/components/Popover/Popover.js +0 -13
- package/dist/cjs/components/Popover/PopoverContext.js +0 -29
- package/dist/cjs/components/Popover/PopoverRoot.js +0 -10
- package/dist/cjs/components/Popover/PopoverTrigger.js +0 -11
- package/dist/cjs/components/TextArea.js +0 -83
- package/dist/esm/components/BaseSnackbar.js +0 -11
- package/dist/esm/components/CalendarGrid.js +0 -22
- package/dist/esm/components/CalendarGridBodyRows.js +0 -10
- package/dist/esm/components/CalendarGridHeaderRow.js +0 -10
- package/dist/esm/components/DatePickerInput.js +0 -47
- package/dist/esm/components/DatePickerInputBase.js +0 -22
- package/dist/esm/components/DateRangePickerInput.js +0 -61
- package/dist/esm/components/Popover/Popover.js +0 -11
- package/dist/esm/components/Popover/PopoverContent.js +0 -26
- package/dist/esm/components/Popover/PopoverContext.js +0 -26
- package/dist/esm/components/Popover/PopoverRoot.js +0 -8
- package/dist/esm/components/Popover/PopoverTrigger.js +0 -9
- package/dist/esm/components/TextArea.js +0 -81
- package/dist/esm/components/TimeField.js +0 -10
- package/dist/esm/components/TimeFieldInput.js +0 -20
- package/dist/types/components/Popover/Popover.d.ts +0 -5
- package/dist/types/components/Popover/PopoverContent.d.ts +0 -7
- package/dist/types/components/Popover/PopoverTrigger.d.ts +0 -6
- package/dist/types/components/TextArea.d.ts +0 -24
- package/dist/cjs/components/{BreadcrumbItem.js → Breadcrumbs/BreadcrumbItem.js} +0 -0
- package/dist/cjs/components/{CalendarGridBodyRows.js → Calendar/CalendarGridBodyRows.js} +0 -0
- package/dist/cjs/components/{DateField.js → DatePicker/DateField.js} +0 -0
- package/dist/cjs/components/{DateSegment.js → DatePicker/DateSegment.js} +0 -0
- package/dist/cjs/components/{BaseSnackbar.js → Snackbar/BaseSnackbar.js} +1 -1
- package/dist/cjs/components/{DefaultSnack.js → Snackbar/DefaultSnack.js} +1 -1
- package/dist/types/components/{Calendar.d.ts → Calendar/Calendar.d.ts} +0 -0
- package/dist/types/components/{CalendarCell.d.ts → Calendar/CalendarCell.d.ts} +0 -0
- package/dist/types/components/{CalendarGrid.d.ts → Calendar/CalendarGrid.d.ts} +0 -0
- package/dist/types/components/{CalendarGridBodyRows.d.ts → Calendar/CalendarGridBodyRows.d.ts} +0 -0
- package/dist/types/components/{CalendarGridHeaderRow.d.ts → Calendar/CalendarGridHeaderRow.d.ts} +0 -0
- package/dist/types/components/{CalendarHeader.d.ts → Calendar/CalendarHeader.d.ts} +0 -0
- package/dist/types/components/{DateField.d.ts → DatePicker/DateField.d.ts} +0 -0
- package/dist/types/components/{DateSegment.d.ts → DatePicker/DateSegment.d.ts} +0 -0
- package/dist/types/components/{BaseSnackbar.d.ts → Snackbar/BaseSnackbar.d.ts} +1 -1
- /package/dist/types/components/{DefaultSnack.d.ts → Snackbar/DefaultSnack.d.ts} +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
export declare const menubar: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
show: {
|
|
3
|
+
true: {
|
|
4
|
+
dropdown: string;
|
|
5
|
+
false: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
header: string;
|
|
10
|
+
left: string;
|
|
11
|
+
right: string;
|
|
12
|
+
dropdown: string;
|
|
13
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
14
|
+
show: {
|
|
15
|
+
true: {
|
|
16
|
+
dropdown: string;
|
|
17
|
+
false: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
show: {
|
|
22
|
+
true: {
|
|
23
|
+
dropdown: string;
|
|
24
|
+
false: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}>, {
|
|
28
|
+
show: {
|
|
29
|
+
true: {
|
|
30
|
+
dropdown: string;
|
|
31
|
+
false: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
header: string;
|
|
36
|
+
left: string;
|
|
37
|
+
right: string;
|
|
38
|
+
dropdown: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
40
|
+
show: {
|
|
41
|
+
true: {
|
|
42
|
+
dropdown: string;
|
|
43
|
+
false: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
header: string;
|
|
48
|
+
left: string;
|
|
49
|
+
right: string;
|
|
50
|
+
dropdown: string;
|
|
51
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<{
|
|
52
|
+
show: {
|
|
53
|
+
true: {
|
|
54
|
+
dropdown: string;
|
|
55
|
+
false: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}, {
|
|
59
|
+
show: {
|
|
60
|
+
true: {
|
|
61
|
+
dropdown: string;
|
|
62
|
+
false: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}>, unknown, unknown, undefined>>;
|
|
66
|
+
export declare const mostUsed: import("tailwind-variants").TVReturnType<{
|
|
67
|
+
[key: string]: {
|
|
68
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
69
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
70
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
71
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
} | {
|
|
75
|
+
[x: string]: {
|
|
76
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
77
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
78
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
79
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
} | {}, {
|
|
83
|
+
container: string;
|
|
84
|
+
label: string;
|
|
85
|
+
containerList: string;
|
|
86
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
87
|
+
[key: string]: {
|
|
88
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
89
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
90
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
91
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
} | {}>, {
|
|
95
|
+
[key: string]: {
|
|
96
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
97
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
98
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
99
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
} | {}, {
|
|
103
|
+
container: string;
|
|
104
|
+
label: string;
|
|
105
|
+
containerList: string;
|
|
106
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
107
|
+
container: string;
|
|
108
|
+
label: string;
|
|
109
|
+
containerList: string;
|
|
110
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
111
|
+
[key: string]: {
|
|
112
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
113
|
+
label?: import("tailwind-merge").ClassNameValue;
|
|
114
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
115
|
+
containerList?: import("tailwind-merge").ClassNameValue;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
119
|
+
export declare const mostUsedItem: import("tailwind-variants").TVReturnType<{
|
|
120
|
+
[key: string]: {
|
|
121
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
122
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
123
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
124
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
} | {
|
|
128
|
+
[x: string]: {
|
|
129
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
130
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
131
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
132
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
} | {}, {
|
|
136
|
+
container: string;
|
|
137
|
+
title: string;
|
|
138
|
+
category: string;
|
|
139
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
140
|
+
[key: string]: {
|
|
141
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
142
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
143
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
144
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
} | {}>, {
|
|
148
|
+
[key: string]: {
|
|
149
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
150
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
151
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
152
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
} | {}, {
|
|
156
|
+
container: string;
|
|
157
|
+
title: string;
|
|
158
|
+
category: string;
|
|
159
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
160
|
+
container: string;
|
|
161
|
+
title: string;
|
|
162
|
+
category: string;
|
|
163
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
164
|
+
[key: string]: {
|
|
165
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
166
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
167
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
168
|
+
category?: import("tailwind-merge").ClassNameValue;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
172
|
+
export declare const item: import("tailwind-variants").TVReturnType<{
|
|
173
|
+
[key: string]: {
|
|
174
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
175
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
176
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
177
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
} | {
|
|
181
|
+
[x: string]: {
|
|
182
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
183
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
184
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
185
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
} | {}, {
|
|
189
|
+
container: string;
|
|
190
|
+
text: string;
|
|
191
|
+
icon: string;
|
|
192
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
193
|
+
[key: string]: {
|
|
194
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
195
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
196
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
197
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
} | {}>, {
|
|
201
|
+
[key: string]: {
|
|
202
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
203
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
204
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
205
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
} | {}, {
|
|
209
|
+
container: string;
|
|
210
|
+
text: string;
|
|
211
|
+
icon: string;
|
|
212
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
213
|
+
container: string;
|
|
214
|
+
text: string;
|
|
215
|
+
icon: string;
|
|
216
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
217
|
+
[key: string]: {
|
|
218
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
219
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
220
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
221
|
+
icon?: import("tailwind-merge").ClassNameValue;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
225
|
+
export declare const category: import("tailwind-variants").TVReturnType<{
|
|
226
|
+
[key: string]: {
|
|
227
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
228
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
229
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
230
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
} | {
|
|
234
|
+
[x: string]: {
|
|
235
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
236
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
237
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
238
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
} | {}, {
|
|
242
|
+
text: string;
|
|
243
|
+
hr: string;
|
|
244
|
+
container: string;
|
|
245
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
246
|
+
[key: string]: {
|
|
247
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
248
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
249
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
250
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
} | {}>, {
|
|
254
|
+
[key: string]: {
|
|
255
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
256
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
257
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
258
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
} | {}, {
|
|
262
|
+
text: string;
|
|
263
|
+
hr: string;
|
|
264
|
+
container: string;
|
|
265
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
266
|
+
text: string;
|
|
267
|
+
hr: string;
|
|
268
|
+
container: string;
|
|
269
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
270
|
+
[key: string]: {
|
|
271
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
272
|
+
hr?: import("tailwind-merge").ClassNameValue;
|
|
273
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
274
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
278
|
+
export declare const subItem: import("tailwind-variants").TVReturnType<{
|
|
279
|
+
[key: string]: {
|
|
280
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
281
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
} | {
|
|
285
|
+
[x: string]: {
|
|
286
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
287
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
} | {}, {
|
|
291
|
+
container: string;
|
|
292
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
293
|
+
[key: string]: {
|
|
294
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
295
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
} | {}>, {
|
|
299
|
+
[key: string]: {
|
|
300
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
301
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
} | {}, {
|
|
305
|
+
container: string;
|
|
306
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
307
|
+
container: string;
|
|
308
|
+
}, undefined, import("tailwind-variants/dist/config").TVConfig<unknown, {
|
|
309
|
+
[key: string]: {
|
|
310
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
311
|
+
container?: import("tailwind-merge").ClassNameValue;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
315
|
+
export declare const animate: import("tailwind-variants").TVReturnType<{
|
|
316
|
+
show: {
|
|
317
|
+
true: string;
|
|
318
|
+
false: string;
|
|
319
|
+
};
|
|
320
|
+
}, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
|
|
321
|
+
show: {
|
|
322
|
+
true: string;
|
|
323
|
+
false: string;
|
|
324
|
+
};
|
|
325
|
+
}, {
|
|
326
|
+
show: {
|
|
327
|
+
true: string;
|
|
328
|
+
false: string;
|
|
329
|
+
};
|
|
330
|
+
}>, {
|
|
331
|
+
show: {
|
|
332
|
+
true: string;
|
|
333
|
+
false: string;
|
|
334
|
+
};
|
|
335
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
336
|
+
show: {
|
|
337
|
+
true: string;
|
|
338
|
+
false: string;
|
|
339
|
+
};
|
|
340
|
+
}, undefined, "transition-all ease-in-out duration-250", import("tailwind-variants/dist/config").TVConfig<{
|
|
341
|
+
show: {
|
|
342
|
+
true: string;
|
|
343
|
+
false: string;
|
|
344
|
+
};
|
|
345
|
+
}, {
|
|
346
|
+
show: {
|
|
347
|
+
true: string;
|
|
348
|
+
false: string;
|
|
349
|
+
};
|
|
350
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.31",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -20,10 +20,11 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@floating-ui/react": "^0.26.18",
|
|
22
22
|
"@internationalized/date": "*",
|
|
23
|
-
"@tecsinapse/cortex-core": "0.3.0-beta.
|
|
23
|
+
"@tecsinapse/cortex-core": "0.3.0-beta.14",
|
|
24
24
|
"clsx": "*",
|
|
25
25
|
"react-aria": "^3.33.1",
|
|
26
26
|
"react-icons": "^5.2.1",
|
|
27
|
+
"react-imask": "7.6.1",
|
|
27
28
|
"react-stately": "^3.31.1",
|
|
28
29
|
"sonner": "^1.5.0",
|
|
29
30
|
"tailwind-merge": "*"
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"react-dom": ">=18.0.0",
|
|
43
44
|
"tailwind": ">=3.3.0"
|
|
44
45
|
},
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "cac77d615452fa145511f48fe32c76d4e10f79b1"
|
|
46
47
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
require('@internationalized/date');
|
|
5
|
-
require('react-aria');
|
|
6
|
-
require('react-stately');
|
|
7
|
-
var utils = require('./utils.js');
|
|
8
|
-
var useDatePickerInput = require('../hooks/useDatePickerInput.js');
|
|
9
|
-
require('@floating-ui/react');
|
|
10
|
-
var Calendar = require('./Calendar.js');
|
|
11
|
-
var DateField = require('./DateField.js');
|
|
12
|
-
var DatePickerInputBase = require('./DatePickerInputBase.js');
|
|
13
|
-
|
|
14
|
-
const DatePickerInput = (props) => {
|
|
15
|
-
const { onChange, value, label, variants } = props;
|
|
16
|
-
const { fieldProps, state, ref } = useDatePickerInput.useDatePickerInput({ value, onChange });
|
|
17
|
-
return /* @__PURE__ */ React.createElement("div", { "data-testid": "date-picker-input" }, /* @__PURE__ */ React.createElement(
|
|
18
|
-
DatePickerInputBase.DatePickerInputBase,
|
|
19
|
-
{
|
|
20
|
-
onClickCalendar: () => state.isOpen ? state.close() : state.open(),
|
|
21
|
-
variants: {
|
|
22
|
-
...variants,
|
|
23
|
-
intent: state.isInvalid ? "error" : variants?.intent
|
|
24
|
-
},
|
|
25
|
-
label
|
|
26
|
-
},
|
|
27
|
-
/* @__PURE__ */ React.createElement("div", { ref }, /* @__PURE__ */ React.createElement(
|
|
28
|
-
DateField.DateField,
|
|
29
|
-
{
|
|
30
|
-
...fieldProps,
|
|
31
|
-
onChange: (value2) => {
|
|
32
|
-
state.setDateValue(value2);
|
|
33
|
-
state.close();
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
))
|
|
37
|
-
), state.isOpen ? /* @__PURE__ */ React.createElement("div", { className: "absolute" }, /* @__PURE__ */ React.createElement(
|
|
38
|
-
Calendar.Calendar,
|
|
39
|
-
{
|
|
40
|
-
value,
|
|
41
|
-
onChange: (value2) => {
|
|
42
|
-
state.setDateValue(utils.dateToCalendarDate(value2));
|
|
43
|
-
state.close();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
)) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
exports.DatePickerInput = DatePickerInput;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var PopoverRoot = require('./PopoverRoot.js');
|
|
4
|
-
var PopoverTrigger = require('./PopoverTrigger.js');
|
|
5
|
-
var PopoverContent = require('./PopoverContent.js');
|
|
6
|
-
|
|
7
|
-
const Popover = {
|
|
8
|
-
Root: PopoverRoot,
|
|
9
|
-
Trigger: PopoverTrigger,
|
|
10
|
-
Content: PopoverContent
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
exports.Popover = Popover;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
require('@internationalized/date');
|
|
5
|
-
require('react-aria');
|
|
6
|
-
require('react-stately');
|
|
7
|
-
var useFloatingLogic = require('../../hooks/useFloatingLogic.js');
|
|
8
|
-
|
|
9
|
-
const PopoverContext = React.createContext(
|
|
10
|
-
void 0
|
|
11
|
-
);
|
|
12
|
-
const usePopoverContext = () => {
|
|
13
|
-
const context = React.useContext(PopoverContext);
|
|
14
|
-
if (!context) {
|
|
15
|
-
throw new Error("usePopoverContext must be used within a PopoverProvider");
|
|
16
|
-
}
|
|
17
|
-
return context;
|
|
18
|
-
};
|
|
19
|
-
const PopoverProvider = ({
|
|
20
|
-
children,
|
|
21
|
-
placement,
|
|
22
|
-
trigger
|
|
23
|
-
}) => {
|
|
24
|
-
const floatingLogic = useFloatingLogic.useFloatingLogic({ placement, trigger });
|
|
25
|
-
return /* @__PURE__ */ React.createElement(PopoverContext.Provider, { value: { ...floatingLogic } }, children);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
exports.PopoverProvider = PopoverProvider;
|
|
29
|
-
exports.usePopoverContext = usePopoverContext;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var PopoverContext = require('./PopoverContext.js');
|
|
5
|
-
|
|
6
|
-
const PopoverRoot = ({ children, placement, trigger }) => {
|
|
7
|
-
return /* @__PURE__ */ React.createElement(PopoverContext.PopoverProvider, { placement, trigger }, children);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
module.exports = PopoverRoot;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var PopoverContext = require('./PopoverContext.js');
|
|
5
|
-
|
|
6
|
-
const PopoverTrigger = ({ children }) => {
|
|
7
|
-
const { triggerProps } = PopoverContext.usePopoverContext();
|
|
8
|
-
return React.cloneElement(children, triggerProps);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
module.exports = PopoverTrigger;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var cortexCore = require('@tecsinapse/cortex-core');
|
|
5
|
-
var clsx = require('clsx');
|
|
6
|
-
|
|
7
|
-
const getValidChildren = (children) => {
|
|
8
|
-
return React.Children.toArray(children).filter(
|
|
9
|
-
(el) => React.isValidElement(el)
|
|
10
|
-
);
|
|
11
|
-
};
|
|
12
|
-
const Box = React.forwardRef(
|
|
13
|
-
({ id, name, variants, label, placeholder, rows, className, ...rest }, ref) => {
|
|
14
|
-
return /* @__PURE__ */ React.createElement("div", { className: "flex w-full flex-col" }, /* @__PURE__ */ React.createElement(
|
|
15
|
-
"textarea",
|
|
16
|
-
{
|
|
17
|
-
"data-testid": "textarea-box",
|
|
18
|
-
ref,
|
|
19
|
-
id: id ?? name,
|
|
20
|
-
name,
|
|
21
|
-
placeholder: placeholder ?? " ",
|
|
22
|
-
className: clsx.clsx(
|
|
23
|
-
cortexCore.inputBox(placeholder, label, className),
|
|
24
|
-
"resize-none mt-mili"
|
|
25
|
-
),
|
|
26
|
-
rows,
|
|
27
|
-
...rest
|
|
28
|
-
}
|
|
29
|
-
), /* @__PURE__ */ React.createElement(
|
|
30
|
-
"label",
|
|
31
|
-
{
|
|
32
|
-
htmlFor: id ?? name,
|
|
33
|
-
className: cortexCore.labelStyle({
|
|
34
|
-
intent: variants?.intent,
|
|
35
|
-
placeholder
|
|
36
|
-
})
|
|
37
|
-
},
|
|
38
|
-
label
|
|
39
|
-
));
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
const Face = React.forwardRef(
|
|
43
|
-
({ children, variants, className, ...rest }, ref) => {
|
|
44
|
-
const clones = getValidChildren(children).map((el) => {
|
|
45
|
-
return React.cloneElement(el, { ...el.props, variants });
|
|
46
|
-
});
|
|
47
|
-
return /* @__PURE__ */ React.createElement(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
ref,
|
|
51
|
-
className: clsx.clsx(cortexCore.input(variants), className),
|
|
52
|
-
"data-testid": "textarea-face",
|
|
53
|
-
id: "textarea-face",
|
|
54
|
-
...rest
|
|
55
|
-
},
|
|
56
|
-
clones
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const Root = React.forwardRef(
|
|
61
|
-
({ variants, className, ...rest }, ref) => {
|
|
62
|
-
return /* @__PURE__ */ React.createElement(Face, { variants, className }, /* @__PURE__ */ React.createElement(Box, { ref, ...rest }));
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
const Left = React.forwardRef(
|
|
66
|
-
({ children, className, ...rest }, ref) => {
|
|
67
|
-
return /* @__PURE__ */ React.createElement("div", { className: clsx.clsx(className, "mr-2.5"), ...rest, ref }, children);
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
const Right = React.forwardRef(
|
|
71
|
-
({ children, className, ...rest }, ref) => {
|
|
72
|
-
return /* @__PURE__ */ React.createElement("div", { className: clsx.clsx(className, "ml-2.5"), ...rest, ref }, children);
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
const TextArea = {
|
|
76
|
-
Root,
|
|
77
|
-
Face,
|
|
78
|
-
Box,
|
|
79
|
-
Left,
|
|
80
|
-
Right
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
exports.TextArea = TextArea;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { snackbar } from '@tecsinapse/cortex-core';
|
|
3
|
-
|
|
4
|
-
const BaseSnackbar = forwardRef(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
const { children, show, variants } = props;
|
|
7
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, show ? /* @__PURE__ */ React.createElement("div", { className: snackbar(variants), ref, "data-testid": "snackbar" }, children) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
|
|
11
|
-
export { BaseSnackbar };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import '@internationalized/date';
|
|
3
|
-
import 'react-aria';
|
|
4
|
-
import 'react-stately';
|
|
5
|
-
import { useCalendarGrid } from '../hooks/useCalendarGrid.js';
|
|
6
|
-
import '@floating-ui/react';
|
|
7
|
-
import { CalendarGridBodyRows } from './CalendarGridBodyRows.js';
|
|
8
|
-
import { CalendarGridHeaderRow } from './CalendarGridHeaderRow.js';
|
|
9
|
-
|
|
10
|
-
const CalendarGrid = ({ state }) => {
|
|
11
|
-
const { gridProps, headerProps, weekDays } = useCalendarGrid({ state });
|
|
12
|
-
return /* @__PURE__ */ React.createElement(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: "bg-white rounded-micro px-deca py-mili",
|
|
16
|
-
"data-testid": "calendar-grid"
|
|
17
|
-
},
|
|
18
|
-
/* @__PURE__ */ React.createElement("table", { ...gridProps, className: "border-separate border-spacing-y-nano" }, /* @__PURE__ */ React.createElement("thead", { ...headerProps }, /* @__PURE__ */ React.createElement(CalendarGridHeaderRow, { weekDays })), /* @__PURE__ */ React.createElement("tbody", null, /* @__PURE__ */ React.createElement(CalendarGridBodyRows, { state })))
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { CalendarGrid };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CalendarCell } from './CalendarCell.js';
|
|
3
|
-
|
|
4
|
-
const CalendarGridBodyRows = ({ state }) => {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, [...new Array(6).keys()].map((weekIndex) => /* @__PURE__ */ React.createElement("tr", { key: weekIndex, className: "shadow-0 px-deca" }, state.getDatesInWeek(weekIndex).map((date, i) => {
|
|
6
|
-
return date ? /* @__PURE__ */ React.createElement(CalendarCell, { key: i, state, date }) : /* @__PURE__ */ React.createElement("td", { key: i });
|
|
7
|
-
}))));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { CalendarGridBodyRows };
|