react-semaphor 0.1.301 → 0.1.303

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.
Files changed (66) hide show
  1. package/dist/appearance/index.cjs +1 -0
  2. package/dist/appearance/index.js +9 -0
  3. package/dist/brand-studio/index.cjs +21 -0
  4. package/dist/brand-studio/index.js +1461 -0
  5. package/dist/chunks/dashboard-controls-BCJZOzrL.js +2226 -0
  6. package/dist/chunks/dashboard-controls-CVFoOPti.js +47 -0
  7. package/dist/chunks/dashboard-filter-controls-button-C-e7230k.js +11 -0
  8. package/dist/chunks/{dashboard-filter-controls-button-DjALRkvg.js → dashboard-filter-controls-button-Cfbac4Jw.js} +205 -216
  9. package/dist/chunks/dashboard-json-BM5ywMgp.js +1 -0
  10. package/dist/chunks/{dashboard-json-D-zIG46N.js → dashboard-json-BzvLPhGM.js} +14 -12
  11. package/dist/chunks/dashboard-summary-settings-dialog-BdxKl1UF.js +1 -0
  12. package/dist/chunks/{dashboard-summary-settings-dialog-D-F1eEJI.js → dashboard-summary-settings-dialog-ChK3344r.js} +64 -63
  13. package/dist/chunks/date-formatter-D9Bvw5Qk.js +1 -0
  14. package/dist/chunks/date-formatter-DyIOb6uC.js +333 -0
  15. package/dist/chunks/{edit-dashboard-visual-BjflrL8w.js → edit-dashboard-visual-D725CWD5.js} +6690 -6679
  16. package/dist/chunks/edit-dashboard-visual-nNaZ2IK1.js +183 -0
  17. package/dist/chunks/index-BWjB_9uz.js +1356 -0
  18. package/dist/chunks/index-CJdxSyQq.js +2578 -0
  19. package/dist/chunks/{index-DDA12yqV.js → index-CYWgnME0.js} +48994 -66425
  20. package/dist/chunks/index-D7KJindZ.js +1 -0
  21. package/dist/chunks/index-DFOb_6HB.js +1657 -0
  22. package/dist/chunks/index-DRlMUglg.js +4 -0
  23. package/dist/chunks/palette-B9DJXMGo.js +11 -0
  24. package/dist/chunks/palette-DGOzbtsn.js +43 -0
  25. package/dist/chunks/{resource-management-panel-B2558XA1.js → resource-management-panel-CE0-NcLL.js} +116 -115
  26. package/dist/chunks/resource-management-panel-mJmc5dMT.js +6 -0
  27. package/dist/chunks/rotate-ccw-Bs7YJn10.js +6 -0
  28. package/dist/chunks/rotate-ccw-YsjQwpKm.js +14 -0
  29. package/dist/chunks/save-Bj1y1rug.js +6 -0
  30. package/dist/chunks/save-CUrexoNl.js +21 -0
  31. package/dist/chunks/switch-CiEX68py.js +163 -0
  32. package/dist/chunks/switch-oojO-gal.js +19730 -0
  33. package/dist/chunks/{use-create-flow-overlay-state-BUw_JtLs.js → use-create-flow-overlay-state-BHDKxe7I.js} +396 -412
  34. package/dist/chunks/use-create-flow-overlay-state-D2I2wNey.js +16 -0
  35. package/dist/chunks/{use-visual-utils-C45OxsOf.js → use-visual-utils-CjFzlR0P.js} +54 -53
  36. package/dist/chunks/use-visual-utils-DYDXMl5v.js +1 -0
  37. package/dist/dashboard/index.cjs +1 -1
  38. package/dist/dashboard/index.js +1 -1
  39. package/dist/format-utils/index.cjs +1 -1
  40. package/dist/format-utils/index.js +2 -2
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +210 -207
  43. package/dist/style.css +1 -1
  44. package/dist/surfboard/index.cjs +1 -1
  45. package/dist/surfboard/index.js +2 -2
  46. package/dist/types/appearance.d.ts +176 -0
  47. package/dist/types/brand-studio.d.ts +245 -0
  48. package/dist/types/dashboard.d.ts +134 -0
  49. package/dist/types/main.d.ts +142 -1
  50. package/dist/types/surfboard.d.ts +134 -0
  51. package/dist/types/types.d.ts +139 -0
  52. package/package.json +13 -1
  53. package/dist/chunks/braces-Bhqo4iW1.js +0 -23
  54. package/dist/chunks/braces-BwK7fWd_.js +0 -6
  55. package/dist/chunks/dashboard-controls-BIRiWCUK.js +0 -47
  56. package/dist/chunks/dashboard-controls-DIlnYo96.js +0 -2219
  57. package/dist/chunks/dashboard-filter-controls-button-CK1-mKQh.js +0 -11
  58. package/dist/chunks/dashboard-json-DK4mQ1gS.js +0 -1
  59. package/dist/chunks/dashboard-summary-settings-dialog-DSxNqxFI.js +0 -1
  60. package/dist/chunks/date-formatter-CqXdM6JO.js +0 -1
  61. package/dist/chunks/date-formatter-vkCj9Ct-.js +0 -1982
  62. package/dist/chunks/edit-dashboard-visual-DCsrtJr_.js +0 -193
  63. package/dist/chunks/index-8GnvL1_L.js +0 -1523
  64. package/dist/chunks/resource-management-panel-CKp4_aem.js +0 -6
  65. package/dist/chunks/use-create-flow-overlay-state-CWcCdPbC.js +0 -21
  66. package/dist/chunks/use-visual-utils-DyaThRzf.js +0 -1
@@ -644,6 +644,69 @@ declare interface AlertWizardDialogProps {
644
644
  cardSnapshot: CardSnapshot | null;
645
645
  }
646
646
 
647
+ declare const APPEARANCE_SPEC_VERSION: 1;
648
+
649
+ declare type AppearanceColorToken = 'background' | 'foreground' | 'muted' | 'mutedForeground' | 'border' | 'input' | 'primary' | 'primaryForeground' | 'accent' | 'accentForeground' | 'card' | 'cardForeground' | 'positive' | 'negative' | 'warning' | 'info' | 'destructive' | 'destructiveForeground';
650
+
651
+ declare type AppearanceColorTokens = Partial<Record<AppearanceColorToken, string>>;
652
+
653
+ declare type AppearanceDensity = 'compact' | 'comfortable' | 'spacious';
654
+
655
+ declare type AppearanceMode = 'light' | 'dark' | 'system';
656
+
657
+ declare type AppearanceScheme = {
658
+ tokens?: AppearanceTokens;
659
+ components?: {
660
+ dashboard?: BaseSurfaceAppearance;
661
+ card?: BaseSurfaceAppearance;
662
+ interactive?: InteractiveSurfaceAppearance;
663
+ chart?: ChartAppearance;
664
+ table?: TableAppearance;
665
+ pivotTable?: TableAppearance;
666
+ aggregateTable?: TableAppearance;
667
+ pagination?: BaseSurfaceAppearance;
668
+ };
669
+ };
670
+
671
+ export declare type AppearanceSpec = {
672
+ version: typeof APPEARANCE_SPEC_VERSION;
673
+ mode?: AppearanceMode;
674
+ schemes?: {
675
+ light?: AppearanceScheme;
676
+ dark?: AppearanceScheme;
677
+ };
678
+ };
679
+
680
+ declare type AppearanceTokens = {
681
+ color?: AppearanceColorTokens;
682
+ typography?: {
683
+ fontFamily?: string;
684
+ headingFontFamily?: string;
685
+ monoFontFamily?: string;
686
+ baseFontSize?: number;
687
+ density?: AppearanceDensity;
688
+ };
689
+ radius?: {
690
+ control?: number;
691
+ card?: number;
692
+ table?: number;
693
+ badge?: number;
694
+ };
695
+ spacing?: {
696
+ dashboardPadding?: number;
697
+ gridGap?: number;
698
+ cardPadding?: number;
699
+ controlGap?: number;
700
+ tableCellX?: number;
701
+ tableCellY?: number;
702
+ };
703
+ shadow?: {
704
+ card?: string;
705
+ popover?: string;
706
+ focusRing?: string;
707
+ };
708
+ };
709
+
647
710
  export declare type AssistantId = 'dashboard-assistant' | 'editor-assistant';
648
711
 
649
712
  export declare type AuthToken = {
@@ -722,6 +785,15 @@ export declare interface BaseInteractionEvent {
722
785
  metric?: ClickedMetricValue;
723
786
  }
724
787
 
788
+ declare type BaseSurfaceAppearance = {
789
+ background?: string;
790
+ foreground?: string;
791
+ borderColor?: string;
792
+ borderRadius?: number;
793
+ shadow?: string;
794
+ padding?: number;
795
+ };
796
+
725
797
  export declare type Breakpoint = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
726
798
 
727
799
  declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -729,7 +801,7 @@ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonEle
729
801
  }
730
802
 
731
803
  declare const buttonVariants: (props?: ({
732
- variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
804
+ variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
733
805
  size?: "default" | "lg" | "sm" | "xs" | "icon" | null | undefined;
734
806
  } & ClassProp) | undefined) => string;
735
807
 
@@ -989,6 +1061,14 @@ declare type ChannelFormatConfig_2 = {
989
1061
  };
990
1062
  };
991
1063
 
1064
+ declare type ChartAppearance = {
1065
+ palette?: string[];
1066
+ background?: string;
1067
+ foreground?: string;
1068
+ gridColor?: string;
1069
+ axisColor?: string;
1070
+ };
1071
+
992
1072
  export declare interface ClickedMetricValue {
993
1073
  field: Field;
994
1074
  value: number;
@@ -1472,6 +1552,7 @@ export declare type DashboardProps = {
1472
1552
  */
1473
1553
  renderMode?: 'dashboard' | 'document';
1474
1554
  customStyle?: TStyle;
1555
+ appearance?: AppearanceSpec;
1475
1556
  currentTheme?: Theme;
1476
1557
  version?: string;
1477
1558
  showAssistant?: boolean;
@@ -2844,6 +2925,7 @@ export declare type GetDashboardResponse = {
2844
2925
  defaultLensId?: string;
2845
2926
  assistantProfileId?: string;
2846
2927
  semanticExecutionPayload: SemanticExecutionPayload;
2928
+ organizationAppearance?: AppearanceSpec | null;
2847
2929
  };
2848
2930
 
2849
2931
  /**
@@ -3063,6 +3145,10 @@ export declare interface InteractionTrigger {
3063
3145
  field: Field;
3064
3146
  }
3065
3147
 
3148
+ declare type InteractiveSurfaceAppearance = BaseSurfaceAppearance & {
3149
+ toolbarBackground?: string;
3150
+ };
3151
+
3066
3152
  export declare function invalidateToken(apiServiceUrl: string): Promise<any>;
3067
3153
 
3068
3154
  export declare function isBooleanDataType(dataType: string): boolean;
@@ -3844,6 +3930,54 @@ declare interface TableActions {
3844
3930
  updateAllColumnVisibility: (visibility: Record<string, boolean>) => void;
3845
3931
  }
3846
3932
 
3933
+ declare type TableAppearance = {
3934
+ density?: AppearanceDensity;
3935
+ container?: {
3936
+ background?: string;
3937
+ borderColor?: string;
3938
+ borderRadius?: number;
3939
+ shadow?: string;
3940
+ };
3941
+ header?: {
3942
+ background?: string;
3943
+ foreground?: string;
3944
+ dividerColor?: string;
3945
+ fontWeight?: number;
3946
+ uppercase?: boolean;
3947
+ sticky?: boolean;
3948
+ };
3949
+ row?: {
3950
+ height?: number;
3951
+ dividerColor?: string;
3952
+ zebra?: boolean;
3953
+ zebraBackground?: string;
3954
+ hoverBackground?: string;
3955
+ selectedBackground?: string;
3956
+ };
3957
+ cell?: {
3958
+ paddingX?: number;
3959
+ paddingY?: number;
3960
+ verticalAlign?: 'top' | 'middle' | 'bottom';
3961
+ wrap?: 'wrap' | 'nowrap';
3962
+ };
3963
+ subtotal?: {
3964
+ background?: string;
3965
+ foreground?: string;
3966
+ fontWeight?: number;
3967
+ };
3968
+ grandTotal?: {
3969
+ background?: string;
3970
+ foreground?: string;
3971
+ fontWeight?: number;
3972
+ borderColor?: string;
3973
+ };
3974
+ pagination?: {
3975
+ background?: string;
3976
+ foreground?: string;
3977
+ borderColor?: string;
3978
+ };
3979
+ };
3980
+
3847
3981
  export declare type TableConfig = {
3848
3982
  databaseName: string;
3849
3983
  schemaName: string;
@@ -4932,6 +5066,11 @@ export declare type UIConfig = {
4932
5066
  * Defaults to true unless explicitly disabled.
4933
5067
  */
4934
5068
  showQueryDebugTools?: boolean;
5069
+ /**
5070
+ * Optional signed inline appearance override for advanced embed cases.
5071
+ * Organization appearance remains the default branding path.
5072
+ */
5073
+ appearance?: AppearanceSpec;
4935
5074
  };
4936
5075
 
4937
5076
  export declare function UnsavedChangesAlert({ open, onOpenChange, onSave, onDiscard, isSaving, title, description, cancelLabel, discardLabel, saveLabel, }: UnsavedChangesAlertProps): JSX.Element;
@@ -5522,6 +5661,7 @@ export declare function useDashboardQuery(): {
5522
5661
  isFetching: boolean;
5523
5662
  isError: boolean;
5524
5663
  refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<GetDashboardResponse | null, Error>>;
5664
+ dashboardIdToFetch: string | null;
5525
5665
  };
5526
5666
 
5527
5667
  export declare const useDashboardStore: UseBoundStore<Omit<StoreApi<DashboardStore>, "setState"> & {
@@ -5711,6 +5851,7 @@ export declare function usePristineSnapshotInitializer(isDashboardEditing: boole
5711
5851
 
5712
5852
  export declare function useResourceManagement(resourceType: ResourceType, onDeleteSuccess?: () => void, onCreateSuccess?: (data?: any) => void): {
5713
5853
  resources: any;
5854
+ organizationAppearance: AppearanceSpec | null;
5714
5855
  isLoading: boolean;
5715
5856
  isError: boolean;
5716
5857
  isFetching: boolean;
@@ -22,6 +22,69 @@ export declare type AIScopeTable = {
22
22
  datamodelName: string;
23
23
  };
24
24
 
25
+ declare const APPEARANCE_SPEC_VERSION: 1;
26
+
27
+ declare type AppearanceColorToken = 'background' | 'foreground' | 'muted' | 'mutedForeground' | 'border' | 'input' | 'primary' | 'primaryForeground' | 'accent' | 'accentForeground' | 'card' | 'cardForeground' | 'positive' | 'negative' | 'warning' | 'info' | 'destructive' | 'destructiveForeground';
28
+
29
+ declare type AppearanceColorTokens = Partial<Record<AppearanceColorToken, string>>;
30
+
31
+ declare type AppearanceDensity = 'compact' | 'comfortable' | 'spacious';
32
+
33
+ declare type AppearanceMode = 'light' | 'dark' | 'system';
34
+
35
+ declare type AppearanceScheme = {
36
+ tokens?: AppearanceTokens;
37
+ components?: {
38
+ dashboard?: BaseSurfaceAppearance;
39
+ card?: BaseSurfaceAppearance;
40
+ interactive?: InteractiveSurfaceAppearance;
41
+ chart?: ChartAppearance;
42
+ table?: TableAppearance;
43
+ pivotTable?: TableAppearance;
44
+ aggregateTable?: TableAppearance;
45
+ pagination?: BaseSurfaceAppearance;
46
+ };
47
+ };
48
+
49
+ declare type AppearanceSpec = {
50
+ version: typeof APPEARANCE_SPEC_VERSION;
51
+ mode?: AppearanceMode;
52
+ schemes?: {
53
+ light?: AppearanceScheme;
54
+ dark?: AppearanceScheme;
55
+ };
56
+ };
57
+
58
+ declare type AppearanceTokens = {
59
+ color?: AppearanceColorTokens;
60
+ typography?: {
61
+ fontFamily?: string;
62
+ headingFontFamily?: string;
63
+ monoFontFamily?: string;
64
+ baseFontSize?: number;
65
+ density?: AppearanceDensity;
66
+ };
67
+ radius?: {
68
+ control?: number;
69
+ card?: number;
70
+ table?: number;
71
+ badge?: number;
72
+ };
73
+ spacing?: {
74
+ dashboardPadding?: number;
75
+ gridGap?: number;
76
+ cardPadding?: number;
77
+ controlGap?: number;
78
+ tableCellX?: number;
79
+ tableCellY?: number;
80
+ };
81
+ shadow?: {
82
+ card?: string;
83
+ popover?: string;
84
+ focusRing?: string;
85
+ };
86
+ };
87
+
25
88
  export declare type AssistantId = 'dashboard-assistant' | 'editor-assistant';
26
89
 
27
90
  export declare type AuthToken = {
@@ -77,6 +140,15 @@ declare type BaseFilter = {
77
140
  semanticContext?: FilterSemanticContext;
78
141
  };
79
142
 
143
+ declare type BaseSurfaceAppearance = {
144
+ background?: string;
145
+ foreground?: string;
146
+ borderColor?: string;
147
+ borderRadius?: number;
148
+ shadow?: string;
149
+ padding?: number;
150
+ };
151
+
80
152
  export declare type Breakpoint = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
81
153
 
82
154
  export declare type CacheConfig = {
@@ -218,6 +290,14 @@ declare type CardWithFooter = BaseCustomCard & {
218
290
  }>;
219
291
  };
220
292
 
293
+ declare type ChartAppearance = {
294
+ palette?: string[];
295
+ background?: string;
296
+ foreground?: string;
297
+ gridColor?: string;
298
+ axisColor?: string;
299
+ };
300
+
221
301
  declare interface ClickFilterInteraction {
222
302
  mode: 'clickFilter';
223
303
  /**
@@ -483,6 +563,7 @@ export declare type DashboardProps = {
483
563
  */
484
564
  renderMode?: 'dashboard' | 'document';
485
565
  customStyle?: TStyle;
566
+ appearance?: AppearanceSpec;
486
567
  currentTheme?: Theme;
487
568
  version?: string;
488
569
  showAssistant?: boolean;
@@ -1232,6 +1313,7 @@ export declare type GetDashboardResponse = {
1232
1313
  defaultLensId?: string;
1233
1314
  assistantProfileId?: string;
1234
1315
  semanticExecutionPayload: SemanticExecutionPayload;
1316
+ organizationAppearance?: AppearanceSpec | null;
1235
1317
  };
1236
1318
 
1237
1319
  export declare type GetPluginsResponse = {
@@ -1339,6 +1421,10 @@ declare interface InteractionTrigger {
1339
1421
  field: Field;
1340
1422
  }
1341
1423
 
1424
+ declare type InteractiveSurfaceAppearance = BaseSurfaceAppearance & {
1425
+ toolbarBackground?: string;
1426
+ };
1427
+
1342
1428
  declare interface Join {
1343
1429
  id: string;
1344
1430
  source: DatabaseEntityReference;
@@ -1664,6 +1750,54 @@ export declare type StyleProps = {
1664
1750
 
1665
1751
  export declare function Surfboard({ showControls, showFooter, ...rest }: DashboardPlusProps): JSX.Element;
1666
1752
 
1753
+ declare type TableAppearance = {
1754
+ density?: AppearanceDensity;
1755
+ container?: {
1756
+ background?: string;
1757
+ borderColor?: string;
1758
+ borderRadius?: number;
1759
+ shadow?: string;
1760
+ };
1761
+ header?: {
1762
+ background?: string;
1763
+ foreground?: string;
1764
+ dividerColor?: string;
1765
+ fontWeight?: number;
1766
+ uppercase?: boolean;
1767
+ sticky?: boolean;
1768
+ };
1769
+ row?: {
1770
+ height?: number;
1771
+ dividerColor?: string;
1772
+ zebra?: boolean;
1773
+ zebraBackground?: string;
1774
+ hoverBackground?: string;
1775
+ selectedBackground?: string;
1776
+ };
1777
+ cell?: {
1778
+ paddingX?: number;
1779
+ paddingY?: number;
1780
+ verticalAlign?: 'top' | 'middle' | 'bottom';
1781
+ wrap?: 'wrap' | 'nowrap';
1782
+ };
1783
+ subtotal?: {
1784
+ background?: string;
1785
+ foreground?: string;
1786
+ fontWeight?: number;
1787
+ };
1788
+ grandTotal?: {
1789
+ background?: string;
1790
+ foreground?: string;
1791
+ fontWeight?: number;
1792
+ borderColor?: string;
1793
+ };
1794
+ pagination?: {
1795
+ background?: string;
1796
+ foreground?: string;
1797
+ borderColor?: string;
1798
+ };
1799
+ };
1800
+
1667
1801
  /**
1668
1802
  * Row rhythm for the whole table. Authors pick one per card; undefined
1669
1803
  * falls back to 'compact' (the canonical default — dense scanning, matches
@@ -213,6 +213,69 @@ export declare type AlertStateValue = 'OK' | 'FIRING';
213
213
 
214
214
  export declare type AlertStatus = 'ACTIVE' | 'PAUSED' | 'DISABLED';
215
215
 
216
+ declare const APPEARANCE_SPEC_VERSION: 1;
217
+
218
+ declare type AppearanceColorToken = 'background' | 'foreground' | 'muted' | 'mutedForeground' | 'border' | 'input' | 'primary' | 'primaryForeground' | 'accent' | 'accentForeground' | 'card' | 'cardForeground' | 'positive' | 'negative' | 'warning' | 'info' | 'destructive' | 'destructiveForeground';
219
+
220
+ declare type AppearanceColorTokens = Partial<Record<AppearanceColorToken, string>>;
221
+
222
+ declare type AppearanceDensity = 'compact' | 'comfortable' | 'spacious';
223
+
224
+ declare type AppearanceMode = 'light' | 'dark' | 'system';
225
+
226
+ declare type AppearanceScheme = {
227
+ tokens?: AppearanceTokens;
228
+ components?: {
229
+ dashboard?: BaseSurfaceAppearance;
230
+ card?: BaseSurfaceAppearance;
231
+ interactive?: InteractiveSurfaceAppearance;
232
+ chart?: ChartAppearance;
233
+ table?: TableAppearance;
234
+ pivotTable?: TableAppearance;
235
+ aggregateTable?: TableAppearance;
236
+ pagination?: BaseSurfaceAppearance;
237
+ };
238
+ };
239
+
240
+ export declare type AppearanceSpec = {
241
+ version: typeof APPEARANCE_SPEC_VERSION;
242
+ mode?: AppearanceMode;
243
+ schemes?: {
244
+ light?: AppearanceScheme;
245
+ dark?: AppearanceScheme;
246
+ };
247
+ };
248
+
249
+ declare type AppearanceTokens = {
250
+ color?: AppearanceColorTokens;
251
+ typography?: {
252
+ fontFamily?: string;
253
+ headingFontFamily?: string;
254
+ monoFontFamily?: string;
255
+ baseFontSize?: number;
256
+ density?: AppearanceDensity;
257
+ };
258
+ radius?: {
259
+ control?: number;
260
+ card?: number;
261
+ table?: number;
262
+ badge?: number;
263
+ };
264
+ spacing?: {
265
+ dashboardPadding?: number;
266
+ gridGap?: number;
267
+ cardPadding?: number;
268
+ controlGap?: number;
269
+ tableCellX?: number;
270
+ tableCellY?: number;
271
+ };
272
+ shadow?: {
273
+ card?: string;
274
+ popover?: string;
275
+ focusRing?: string;
276
+ };
277
+ };
278
+
216
279
  export declare type AssistantId = 'dashboard-assistant' | 'editor-assistant';
217
280
 
218
281
  export declare type AuthToken = {
@@ -268,6 +331,15 @@ declare type BaseFilter = {
268
331
  semanticContext?: FilterSemanticContext;
269
332
  };
270
333
 
334
+ declare type BaseSurfaceAppearance = {
335
+ background?: string;
336
+ foreground?: string;
337
+ borderColor?: string;
338
+ borderRadius?: number;
339
+ shadow?: string;
340
+ padding?: number;
341
+ };
342
+
271
343
  export declare type Breakpoint = 'lg' | 'md' | 'sm' | 'xs' | 'xxs';
272
344
 
273
345
  export declare type CacheConfig = {
@@ -449,6 +521,14 @@ export declare type ChannelFormatConfig = {
449
521
  };
450
522
  };
451
523
 
524
+ declare type ChartAppearance = {
525
+ palette?: string[];
526
+ background?: string;
527
+ foreground?: string;
528
+ gridColor?: string;
529
+ axisColor?: string;
530
+ };
531
+
452
532
  declare interface ClickFilterInteraction {
453
533
  mode: 'clickFilter';
454
534
  /**
@@ -735,6 +815,7 @@ export declare type DashboardProps = {
735
815
  */
736
816
  renderMode?: 'dashboard' | 'document';
737
817
  customStyle?: TStyle;
818
+ appearance?: AppearanceSpec;
738
819
  currentTheme?: Theme;
739
820
  version?: string;
740
821
  showAssistant?: boolean;
@@ -1503,6 +1584,7 @@ export declare type GetDashboardResponse = {
1503
1584
  defaultLensId?: string;
1504
1585
  assistantProfileId?: string;
1505
1586
  semanticExecutionPayload: SemanticExecutionPayload;
1587
+ organizationAppearance?: AppearanceSpec | null;
1506
1588
  };
1507
1589
 
1508
1590
  export declare type GetPluginsResponse = {
@@ -1610,6 +1692,10 @@ declare interface InteractionTrigger {
1610
1692
  field: Field;
1611
1693
  }
1612
1694
 
1695
+ declare type InteractiveSurfaceAppearance = BaseSurfaceAppearance & {
1696
+ toolbarBackground?: string;
1697
+ };
1698
+
1613
1699
  declare interface Join {
1614
1700
  id: string;
1615
1701
  source: DatabaseEntityReference;
@@ -1992,6 +2078,54 @@ export declare type StyleProps = {
1992
2078
  };
1993
2079
  };
1994
2080
 
2081
+ declare type TableAppearance = {
2082
+ density?: AppearanceDensity;
2083
+ container?: {
2084
+ background?: string;
2085
+ borderColor?: string;
2086
+ borderRadius?: number;
2087
+ shadow?: string;
2088
+ };
2089
+ header?: {
2090
+ background?: string;
2091
+ foreground?: string;
2092
+ dividerColor?: string;
2093
+ fontWeight?: number;
2094
+ uppercase?: boolean;
2095
+ sticky?: boolean;
2096
+ };
2097
+ row?: {
2098
+ height?: number;
2099
+ dividerColor?: string;
2100
+ zebra?: boolean;
2101
+ zebraBackground?: string;
2102
+ hoverBackground?: string;
2103
+ selectedBackground?: string;
2104
+ };
2105
+ cell?: {
2106
+ paddingX?: number;
2107
+ paddingY?: number;
2108
+ verticalAlign?: 'top' | 'middle' | 'bottom';
2109
+ wrap?: 'wrap' | 'nowrap';
2110
+ };
2111
+ subtotal?: {
2112
+ background?: string;
2113
+ foreground?: string;
2114
+ fontWeight?: number;
2115
+ };
2116
+ grandTotal?: {
2117
+ background?: string;
2118
+ foreground?: string;
2119
+ fontWeight?: number;
2120
+ borderColor?: string;
2121
+ };
2122
+ pagination?: {
2123
+ background?: string;
2124
+ foreground?: string;
2125
+ borderColor?: string;
2126
+ };
2127
+ };
2128
+
1995
2129
  /**
1996
2130
  * Row rhythm for the whole table. Authors pick one per card; undefined
1997
2131
  * falls back to 'compact' (the canonical default — dense scanning, matches
@@ -3044,6 +3178,11 @@ export declare type UIConfig = {
3044
3178
  * Defaults to true unless explicitly disabled.
3045
3179
  */
3046
3180
  showQueryDebugTools?: boolean;
3181
+ /**
3182
+ * Optional signed inline appearance override for advanced embed cases.
3183
+ * Organization appearance remains the default branding path.
3184
+ */
3185
+ appearance?: AppearanceSpec;
3047
3186
  };
3048
3187
 
3049
3188
  export declare interface UpdateAlertRequest {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.301",
8
+ "version": "0.1.303",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -47,6 +47,16 @@
47
47
  "import": "./dist/layouts/index.js",
48
48
  "require": "./dist/layouts/index.cjs"
49
49
  },
50
+ "./appearance": {
51
+ "types": "./dist/types/appearance.d.ts",
52
+ "import": "./dist/appearance/index.js",
53
+ "require": "./dist/appearance/index.cjs"
54
+ },
55
+ "./brand-studio": {
56
+ "types": "./dist/types/brand-studio.d.ts",
57
+ "import": "./dist/brand-studio/index.js",
58
+ "require": "./dist/brand-studio/index.cjs"
59
+ },
50
60
  "./format-utils": {
51
61
  "types": "./dist/types/format-utils.d.ts",
52
62
  "import": "./dist/format-utils/index.js",
@@ -127,6 +137,7 @@
127
137
  "class-variance-authority": "^0.7.0",
128
138
  "clsx": "^2.0.0",
129
139
  "cmdk": "^1.1.1",
140
+ "culori": "^4.0.2",
130
141
  "date-fns": "^3.6.0",
131
142
  "date-fns-tz": "^3.2.0",
132
143
  "dompurify": "^3.3.1",
@@ -178,6 +189,7 @@
178
189
  "@testing-library/react": "^16.3.0",
179
190
  "@testing-library/user-event": "^14.6.1",
180
191
  "@types/chart.js": "^2.9.41",
192
+ "@types/culori": "^4.0.1",
181
193
  "@types/dompurify": "^3.0.5",
182
194
  "@types/jsoneditor": "^9.9.5",
183
195
  "@types/lodash.merge": "^4.6.9",
@@ -1,23 +0,0 @@
1
- import { c as a } from "./index-DDA12yqV.js";
2
- /**
3
- * @license lucide-react v0.453.0 - ISC
4
- *
5
- * This source code is licensed under the ISC license.
6
- * See the LICENSE file in the root directory of this source tree.
7
- */
8
- const c = a("Braces", [
9
- [
10
- "path",
11
- { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
12
- ],
13
- [
14
- "path",
15
- {
16
- d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
17
- key: "e1hn23"
18
- }
19
- ]
20
- ]);
21
- export {
22
- c as B
23
- };
@@ -1,6 +0,0 @@
1
- "use strict";const e=require("./index-8GnvL1_L.js");/**
2
- * @license lucide-react v0.453.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const a=e.createLucideIcon("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);exports.Braces=a;