@rebasepro/ui 0.4.0 → 0.6.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/README.md +124 -66
- package/dist/components/Autocomplete.d.ts +2 -2
- package/dist/components/BooleanSwitchWithLabel.d.ts +1 -1
- package/dist/components/Checkbox.d.ts +1 -1
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/CircularProgress.d.ts +2 -1
- package/dist/components/CircularProgressCenter.d.ts +2 -1
- package/dist/components/Collapse.d.ts +1 -1
- package/dist/components/ColorPicker.d.ts +2 -1
- package/dist/components/DebouncedTextField.d.ts +2 -1
- package/dist/components/Dialog.d.ts +2 -1
- package/dist/components/DialogActions.d.ts +1 -1
- package/dist/components/DialogContent.d.ts +1 -1
- package/dist/components/DialogTitle.d.ts +1 -1
- package/dist/components/ErrorBoundary.d.ts +1 -1
- package/dist/components/ExpandablePanel.d.ts +1 -1
- package/dist/components/FileUpload.d.ts +1 -1
- package/dist/components/InfoLabel.d.ts +1 -1
- package/dist/components/LoadingButton.d.ts +1 -1
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menubar.d.ts +16 -16
- package/dist/components/MultiSelect.d.ts +1 -1
- package/dist/components/Paper.d.ts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/ResizablePanels.d.ts +1 -1
- package/dist/components/SearchBar.d.ts +1 -1
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Separator.d.ts +1 -1
- package/dist/components/Skeleton.d.ts +2 -1
- package/dist/components/Table.d.ts +5 -5
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/TextField.d.ts +2 -2
- package/dist/components/ToggleButtonGroup.d.ts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Typography.d.ts +1 -1
- package/dist/components/VirtualTable/VirtualTableHeaderRow.d.ts +2 -1
- package/dist/components/common/SelectInputLabel.d.ts +1 -1
- package/dist/hooks/PortalContainerContext.d.ts +1 -1
- package/dist/icons/GitHubIcon.d.ts +2 -1
- package/dist/icons/HandleIcon.d.ts +1 -1
- package/dist/icons/index.d.ts +1 -1
- package/dist/index.es.js +5678 -8795
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6796 -9398
- package/dist/index.umd.js.map +1 -1
- package/dist/src/index.css +126 -0
- package/package.json +35 -35
- package/src/components/BooleanSwitchWithLabel.tsx +4 -3
- package/src/components/DebouncedTextField.tsx +11 -9
- package/src/components/Dialog.tsx +6 -3
- package/src/components/ErrorBoundary.tsx +4 -2
- package/src/components/Table.tsx +21 -13
- package/src/components/TextField.tsx +3 -3
- package/src/components/Tooltip.tsx +2 -1
- package/src/components/VirtualTable/VirtualTable.performance.test.tsx +1 -1
- package/src/components/VirtualTable/VirtualTable.tsx +1 -2
- package/src/components/VirtualTable/VirtualTableHeader.tsx +34 -21
- package/src/hooks/useDebounceCallback.tsx +1 -1
- package/src/icons/Icon.tsx +1 -1
- package/src/icons/icon_keys.ts +1 -1
- package/src/icons/index.ts +1 -1
- package/src/scripts/fixIconSizes.cjs +7 -7
- package/src/scripts/fixIconSizesToConst.cjs +2 -2
- package/src/scripts/generateIconKeys.ts +7 -7
- package/src/scripts/saveIconFiles.ts +1 -1
- package/src/util/debounce.ts +2 -3
|
@@ -4,15 +4,15 @@ import { fileURLToPath } from "url";
|
|
|
4
4
|
import * as LucideIcons from "lucide-react";
|
|
5
5
|
|
|
6
6
|
export async function generateIconKeys() {
|
|
7
|
-
const keys = Object.keys(LucideIcons).filter(k =>
|
|
8
|
-
k !== "createLucideIcon" &&
|
|
9
|
-
k !== "default" &&
|
|
10
|
-
k !== "icons" &&
|
|
11
|
-
k !== "LucideIcon" &&
|
|
12
|
-
k !== "Icon" &&
|
|
7
|
+
const keys = Object.keys(LucideIcons).filter(k =>
|
|
8
|
+
k !== "createLucideIcon" &&
|
|
9
|
+
k !== "default" &&
|
|
10
|
+
k !== "icons" &&
|
|
11
|
+
k !== "LucideIcon" &&
|
|
12
|
+
k !== "Icon" &&
|
|
13
13
|
k !== "LucideProvider" &&
|
|
14
14
|
k !== "useLucideContext" &&
|
|
15
|
-
!k.endsWith("Node") &&
|
|
15
|
+
!k.endsWith("Node") &&
|
|
16
16
|
!k.endsWith("Props") &&
|
|
17
17
|
!k.endsWith("Icon") &&
|
|
18
18
|
// Filter out Lucide-prefixed duplicates (e.g. "LucideArrowDown" duplicates "ArrowDown")
|
|
@@ -22,7 +22,7 @@ export function saveIconFiles(iconKeys: string[]) {
|
|
|
22
22
|
|
|
23
23
|
// Ensure key works as component name
|
|
24
24
|
let componentName = `${key}Icon`;
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
// Handle names that might start with numbers like "10k" -> "_10k"
|
|
27
27
|
if (/^[0-9]/.test(componentName)) {
|
|
28
28
|
componentName = `_${componentName}`;
|
package/src/util/debounce.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @ignore
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
export function debounce<T extends (...args: any[]) => unknown>(func: T, wait = 166) {
|
|
6
6
|
let timeout: ReturnType<typeof setTimeout>;
|
|
7
7
|
|
|
8
|
-
function debounced(...args: Parameters<T>) {
|
|
8
|
+
function debounced(this: unknown, ...args: Parameters<T>) {
|
|
9
9
|
const later = () => {
|
|
10
|
-
// @ts-ignore
|
|
11
10
|
func.apply(this, args);
|
|
12
11
|
};
|
|
13
12
|
clearTimeout(timeout);
|