aplance-ui 1.3.0 → 1.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/package.json +1 -1
- package/registry/components/primitives/icon/icon.tsx +4 -6
- package/registry/components/primitives/modal/modal.module.css +5 -0
- package/registry/components/primitives/modal/modal.tsx +32 -34
- package/registry/components/primitives/popover/popover-context.ts +33 -29
- package/registry/components/primitives/popover/popover.module.css +4 -2
- package/registry/components/primitives/popover/popover.tsx +150 -37
- package/registry/components/ui/accordion/accordion.module.css +52 -0
- package/registry/components/ui/accordion/accordion.tsx +97 -25
- package/registry/components/ui/avatar/avatar.tsx +2 -2
- package/registry/components/ui/breadcrumbs/breadcrumbs.module.css +9 -9
- package/registry/components/ui/button/button.module.css +43 -5
- package/registry/components/ui/button/button.tsx +2 -1
- package/registry/components/ui/copy-button/copy-button.module.css +2 -0
- package/registry/components/ui/copy-button/copy-button.tsx +5 -0
- package/registry/components/ui/data-table/data-table.module.css +786 -710
- package/registry/components/ui/data-table/data-table.tsx +1238 -1211
- package/registry/components/ui/data-table/filter-modal.tsx +86 -0
- package/registry/components/ui/data-table/filters.tsx +21 -0
- package/registry/components/ui/data-table/pagination-bar.tsx +31 -17
- package/registry/components/ui/data-table/types.ts +19 -1
- package/registry/components/ui/data-table/useDataTable.tsx +2 -2
- package/registry/components/ui/data-table/utils.ts +30 -4
- package/registry/components/ui/input-fields/common/input-field-common.module.css +8 -2
- package/registry/components/ui/input-fields/common/picker-popover-common.module.css +4 -0
- package/registry/components/ui/input-fields/custom-select/custom-select.module.css +118 -76
- package/registry/components/ui/input-fields/custom-select/custom-select.tsx +552 -484
- package/registry/components/ui/input-fields/date-picker/date-picker.tsx +936 -933
- package/registry/components/ui/input-fields/date-picker/types.ts +2 -0
- package/registry/components/ui/input-fields/emoji-picker/emoji-picker.tsx +8 -0
- package/registry/components/ui/input-fields/input/input.tsx +348 -348
- package/registry/components/ui/input-fields/media-input/media-input.tsx +3 -1
- package/registry/components/ui/input-fields/media-input/types.ts +8 -2
- package/registry/components/ui/input-fields/media-input/useMediaUpload.tsx +5 -5
- package/registry/components/ui/input-fields/media-input/utils.ts +18 -5
- package/registry/components/ui/scroll-rail/scroll-rail.module.css +104 -0
- package/registry/components/ui/scroll-rail/scroll-rail.tsx +159 -0
- package/registry/components/ui/tabs/tabs.module.css +8 -12
- package/registry/components/ui/tabs/tabs.tsx +94 -50
- package/registry/components/ui/tooltip/tooltip.module.css +8 -3
- package/registry/components/ui/tooltip/tooltip.tsx +16 -3
- package/registry/hooks/useMediaQuery.ts +38 -0
- package/registry/lib/string.ts +3 -3
- package/registry/registry.json +54 -4
|
@@ -51,6 +51,8 @@ export type CommonDatePickerProps = Omit<
|
|
|
51
51
|
timePickerPopover?: {
|
|
52
52
|
position?: Position;
|
|
53
53
|
align?: Align;
|
|
54
|
+
autoPosition?: boolean;
|
|
55
|
+
collisionPadding?: number;
|
|
54
56
|
};
|
|
55
57
|
/** Show popover footer actions (Clear/Done) in DatePicker. Default: true. */
|
|
56
58
|
showActionFooter?: boolean;
|
|
@@ -23,6 +23,10 @@ export type EmojiPickerProps = {
|
|
|
23
23
|
/** Popover placement. */
|
|
24
24
|
popoverPosition?: Position;
|
|
25
25
|
popoverAlign?: Align;
|
|
26
|
+
/** Auto-position the popover to stay within the viewport. Default: true. */
|
|
27
|
+
popoverAutoPosition?: boolean;
|
|
28
|
+
/** Viewport padding used by popover auto positioning. */
|
|
29
|
+
popoverCollisionPadding?: number;
|
|
26
30
|
/**
|
|
27
31
|
* Show the popover footer with a Done action so users can pick multiple
|
|
28
32
|
* emojis before dismissing. Default: true. Set to `false` to hide the
|
|
@@ -51,6 +55,8 @@ export const EmojiPicker = ({
|
|
|
51
55
|
columns = 9,
|
|
52
56
|
popoverPosition = "bottom",
|
|
53
57
|
popoverAlign = "end",
|
|
58
|
+
popoverAutoPosition,
|
|
59
|
+
popoverCollisionPadding,
|
|
54
60
|
showActionFooter = true,
|
|
55
61
|
disabled,
|
|
56
62
|
className,
|
|
@@ -62,6 +68,8 @@ export const EmojiPicker = ({
|
|
|
62
68
|
<Popover
|
|
63
69
|
position={popoverPosition}
|
|
64
70
|
align={popoverAlign}
|
|
71
|
+
autoPosition={popoverAutoPosition}
|
|
72
|
+
collisionPadding={popoverCollisionPadding}
|
|
65
73
|
isOpen={isOpen}
|
|
66
74
|
setIsOpen={setIsOpen}
|
|
67
75
|
closeOnClickOutside
|