@universe-platform/ui 0.1.0-beta.12 → 0.1.0-beta.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/dist/globals.css +11 -2
- package/dist/index.d.mts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +245 -202
- package/dist/index.mjs +244 -202
- package/package.json +1 -1
package/dist/globals.css
CHANGED
|
@@ -298,6 +298,9 @@
|
|
|
298
298
|
.relative {
|
|
299
299
|
position: relative;
|
|
300
300
|
}
|
|
301
|
+
.static {
|
|
302
|
+
position: static;
|
|
303
|
+
}
|
|
301
304
|
.sticky {
|
|
302
305
|
position: sticky;
|
|
303
306
|
}
|
|
@@ -568,6 +571,9 @@
|
|
|
568
571
|
.w-6 {
|
|
569
572
|
width: calc(var(--spacing) * 6);
|
|
570
573
|
}
|
|
574
|
+
.w-7 {
|
|
575
|
+
width: calc(var(--spacing) * 7);
|
|
576
|
+
}
|
|
571
577
|
.w-8 {
|
|
572
578
|
width: calc(var(--spacing) * 8);
|
|
573
579
|
}
|
|
@@ -613,8 +619,8 @@
|
|
|
613
619
|
.max-w-\[160px\] {
|
|
614
620
|
max-width: 160px;
|
|
615
621
|
}
|
|
616
|
-
.max-w-\[calc\(100\%-
|
|
617
|
-
max-width: calc(100% -
|
|
622
|
+
.max-w-\[calc\(100\%-28px\)\] {
|
|
623
|
+
max-width: calc(100% - 28px);
|
|
618
624
|
}
|
|
619
625
|
.max-w-full {
|
|
620
626
|
max-width: 100%;
|
|
@@ -1454,6 +1460,9 @@
|
|
|
1454
1460
|
.opacity-60 {
|
|
1455
1461
|
opacity: 60%;
|
|
1456
1462
|
}
|
|
1463
|
+
.opacity-70 {
|
|
1464
|
+
opacity: 70%;
|
|
1465
|
+
}
|
|
1457
1466
|
.opacity-75 {
|
|
1458
1467
|
opacity: 75%;
|
|
1459
1468
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -73,11 +73,21 @@ interface BaseComponentProps<TData = any, TConfig = Record<string, any>> extends
|
|
|
73
73
|
"data-testid"?: string;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
type OrgRole = "OWNER" | "EDITOR" | "VIEWER";
|
|
77
|
+
interface RolePermissions {
|
|
78
|
+
permissions: ComponentPermissions;
|
|
79
|
+
readOnly: boolean;
|
|
80
|
+
}
|
|
81
|
+
declare function getRolePermissions(role?: OrgRole | string | null): RolePermissions;
|
|
82
|
+
|
|
76
83
|
interface TableConfig extends SchemaDef {
|
|
77
84
|
}
|
|
78
85
|
type TableData = RecordData[];
|
|
79
|
-
interface TableBlockProps extends BaseComponentProps<TableData, TableConfig
|
|
86
|
+
interface TableBlockProps extends Partial<BaseComponentProps<TableData, TableConfig>> {
|
|
80
87
|
exportAction?: (payload: any) => Promise<any>;
|
|
88
|
+
role?: OrgRole | string;
|
|
89
|
+
permissions?: ComponentPermissions;
|
|
90
|
+
readOnly?: boolean;
|
|
81
91
|
}
|
|
82
92
|
interface CreateRecordPayload {
|
|
83
93
|
records: RecordData[];
|
|
@@ -285,4 +295,4 @@ declare function ToastProvider({ children }: {
|
|
|
285
295
|
|
|
286
296
|
declare function useToast(): ToastContextType;
|
|
287
297
|
|
|
288
|
-
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, DatePickerCell, type DeleteRecordPayload, LinkPickerCell, PASTEL_PALETTES, type PastelPalette, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type SplitTitleResult, TableBlock, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, UNIVERSE_COMPONENTS, type UniverseComponentType, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, calculateMinColumnWidth, cn, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, getDeterministicPastelBadge, measureTextWidth, normalizeRelationValue, openWhatsAppChat, parseLinkValue, parseTimeParts, resolveProtocol, splitHeaderTitle, useColumnReorder, useColumnResize, useToast };
|
|
298
|
+
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, DatePickerCell, type DeleteRecordPayload, LinkPickerCell, type OrgRole, PASTEL_PALETTES, type PastelPalette, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type SplitTitleResult, TableBlock, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, UNIVERSE_COMPONENTS, type UniverseComponentType, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, calculateMinColumnWidth, cn, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, getDeterministicPastelBadge, getRolePermissions, measureTextWidth, normalizeRelationValue, openWhatsAppChat, parseLinkValue, parseTimeParts, resolveProtocol, splitHeaderTitle, useColumnReorder, useColumnResize, useToast };
|
package/dist/index.d.ts
CHANGED
|
@@ -73,11 +73,21 @@ interface BaseComponentProps<TData = any, TConfig = Record<string, any>> extends
|
|
|
73
73
|
"data-testid"?: string;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
type OrgRole = "OWNER" | "EDITOR" | "VIEWER";
|
|
77
|
+
interface RolePermissions {
|
|
78
|
+
permissions: ComponentPermissions;
|
|
79
|
+
readOnly: boolean;
|
|
80
|
+
}
|
|
81
|
+
declare function getRolePermissions(role?: OrgRole | string | null): RolePermissions;
|
|
82
|
+
|
|
76
83
|
interface TableConfig extends SchemaDef {
|
|
77
84
|
}
|
|
78
85
|
type TableData = RecordData[];
|
|
79
|
-
interface TableBlockProps extends BaseComponentProps<TableData, TableConfig
|
|
86
|
+
interface TableBlockProps extends Partial<BaseComponentProps<TableData, TableConfig>> {
|
|
80
87
|
exportAction?: (payload: any) => Promise<any>;
|
|
88
|
+
role?: OrgRole | string;
|
|
89
|
+
permissions?: ComponentPermissions;
|
|
90
|
+
readOnly?: boolean;
|
|
81
91
|
}
|
|
82
92
|
interface CreateRecordPayload {
|
|
83
93
|
records: RecordData[];
|
|
@@ -285,4 +295,4 @@ declare function ToastProvider({ children }: {
|
|
|
285
295
|
|
|
286
296
|
declare function useToast(): ToastContextType;
|
|
287
297
|
|
|
288
|
-
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, DatePickerCell, type DeleteRecordPayload, LinkPickerCell, PASTEL_PALETTES, type PastelPalette, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type SplitTitleResult, TableBlock, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, UNIVERSE_COMPONENTS, type UniverseComponentType, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, calculateMinColumnWidth, cn, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, getDeterministicPastelBadge, measureTextWidth, normalizeRelationValue, openWhatsAppChat, parseLinkValue, parseTimeParts, resolveProtocol, splitHeaderTitle, useColumnReorder, useColumnResize, useToast };
|
|
298
|
+
export { type BaseComponentProps, ColumnHeaderTitle, type ColumnHeaderTitleProps, type ComponentCommunication, type ComponentConfig, type ComponentData, type ComponentPermissions, type ComponentRegistry, type ComponentState, type CreateRecordPayload, DatePickerCell, type DeleteRecordPayload, LinkPickerCell, type OrgRole, PASTEL_PALETTES, type PastelPalette, type RelationFilterOption, type RelationFilterPayload, RelationFilterPopover, type RelationFilterPopoverProps, RelationPickerCell, type RolePermissions, type SplitTitleResult, TableBlock, type TableBlockProps, type TableConfig, type TableData, TimePickerCell, ToastContext, type ToastContextType, type ToastItem, ToastProvider, UNIVERSE_COMPONENTS, type UniverseComponentType, type UpdateRecordPayload, type UseColumnReorderOptions, type UseColumnResizeOptions, calculateMinColumnWidth, cn, formatConflictCellValue, formatPhoneDisplay, formatTimeInput, formatTimeIso, getDeterministicPastelBadge, getRolePermissions, measureTextWidth, normalizeRelationValue, openWhatsAppChat, parseLinkValue, parseTimeParts, resolveProtocol, splitHeaderTitle, useColumnReorder, useColumnResize, useToast };
|