@datalayer/primer-addons 1.0.52 → 1.0.54
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 +32 -32
- package/lib/components/appearance/AppearanceControls.js +1 -1
- package/lib/components/appearance/AppearanceMenu.stories.d.ts +1 -1
- package/lib/components/appearance/AppearanceMenu.stories.js +2 -2
- package/lib/components/appearance/CollaboratorPalette.stories.d.ts +1 -1
- package/lib/components/appearance/CollaboratorPalette.stories.js +2 -2
- package/lib/components/appearance/ColorModeCircle.js +1 -1
- package/lib/components/appearance/ThemeCircle.stories.js +1 -1
- package/lib/components/appearance/ThemePalettePreview.d.ts +1 -1
- package/lib/components/appearance/ThemePreviewCard.js +1 -1
- package/lib/components/appearance/ThemePreviewCard.stories.d.ts +1 -1
- package/lib/components/appearance/ThemePreviewCard.stories.js +1 -1
- package/lib/components/box/Box.d.ts +3 -3
- package/lib/components/box/Box.js +3 -3
- package/lib/components/box/Box.stories.d.ts +1 -1
- package/lib/components/box/Box.stories.js +1 -1
- package/lib/components/box/boxTokens.d.ts +2 -2
- package/lib/components/box/boxTokens.js +2 -2
- package/lib/components/calendar-picker/CalendarPicker.js +1 -1
- package/lib/components/card/Card.js +1 -1
- package/lib/components/color/ColorSwatch.js +1 -1
- package/lib/components/entity-avatar/EntityAvatar.d.ts +1 -1
- package/lib/components/entity-avatar/EntityAvatar.js +1 -1
- package/lib/components/hover-card/HoverCard.d.ts +1 -1
- package/lib/components/logo/DatalayerLogo.js +12 -12
- package/lib/components/logo/DatalayerLogo.stories.js +1 -1
- package/lib/components/sheet/Sheet.d.ts +1 -1
- package/lib/components/sheet/Sheet.js +1 -1
- package/lib/components/toolbar/ToolbarButton.js +1 -1
- package/lib/reactor/ThemePlugin.js +1 -1
- package/lib/reactor/index.d.ts +1 -1
- package/lib/reactor/index.js +1 -1
- package/lib/reactor/page-layout/PageLayout.d.ts +2 -2
- package/lib/reactor/page-layout/PageLayout.js +3 -3
- package/lib/reactor/page-layout/PageLayoutPlugin.js +2 -2
- package/lib/theme/DatalayerThemeProvider.js +1 -1
- package/lib/theme/{loopEyes.d.ts → agentEyes.d.ts} +3 -3
- package/lib/theme/{loopEyes.js → agentEyes.js} +3 -3
- package/lib/theme/colorMode.d.ts +6 -0
- package/lib/theme/{themes-brand/index.js → colorMode.js} +1 -1
- package/lib/theme/colors/{loopColors.d.ts → agentColors.d.ts} +15 -15
- package/lib/theme/colors/{loopColors.js → agentColors.js} +16 -16
- package/lib/theme/colors/hueColors.d.ts +1 -1
- package/lib/theme/colors/hueColors.js +2 -2
- package/lib/theme/colors/index.d.ts +1 -1
- package/lib/theme/colors/index.js +3 -3
- package/lib/theme/colors/metalColors.d.ts +12 -12
- package/lib/theme/colors/metalColors.js +6 -6
- package/lib/theme/colors/themeAccents.d.ts +5 -6
- package/lib/theme/colors/themeAccents.js +4 -5
- package/lib/theme/css/createThemeCSSVars.d.ts +5 -5
- package/lib/theme/css/primerBaseVars.js +1 -1
- package/lib/theme/index.d.ts +4 -4
- package/lib/theme/index.js +4 -4
- package/lib/theme/palettes/ColorPalette.js +18 -18
- package/lib/theme/portable.d.ts +1 -1
- package/lib/theme/portable.js +1 -1
- package/lib/theme/portableTheme.d.ts +1 -1
- package/lib/theme/themeRegistry.js +2 -2
- package/lib/theme/themeTokens.d.ts +2 -2
- package/lib/theme/themeTokens.js +38 -38
- package/lib/theme/themes/{loopTheme.d.ts → agentTheme.d.ts} +5 -5
- package/lib/theme/themes/{loopTheme.js → agentTheme.js} +11 -11
- package/lib/theme/themes/{loopThemeStyles.d.ts → agentThemeStyles.d.ts} +21 -21
- package/lib/theme/themes/{loopThemeStyles.js → agentThemeStyles.js} +179 -189
- package/lib/theme/themes/ivoryThemeStyles.d.ts +4 -1
- package/lib/theme/themes/ivoryThemeStyles.js +7 -1
- package/lib/theme/themes/metalThemeStyles.d.ts +1 -1
- package/lib/theme/themes/metalThemeStyles.js +27 -31
- package/lib/theme/themes/roundedShape.d.ts +18 -0
- package/lib/theme/themes/roundedShape.js +24 -0
- package/lib/theme/themes/sandThemeStyles.d.ts +4 -1
- package/lib/theme/themes/sandThemeStyles.js +7 -1
- package/lib/theme/themes/sunThemeStyles.d.ts +4 -1
- package/lib/theme/themes/sunThemeStyles.js +7 -1
- package/lib/theme/useThemeStore.d.ts +7 -1
- package/lib/theme/useThemeStore.js +29 -6
- package/lib/utils/Helper.d.ts +1 -16
- package/lib/utils/Helper.js +4 -20
- package/lib/utils/Portals.d.ts +1 -1
- package/lib/utils/Portals.js +1 -1
- package/package.json +1 -2
- package/style/{loop-face.css → agent-face.css} +2 -2
- package/lib/theme/DatalayerBrandThemeProvider.d.ts +0 -41
- package/lib/theme/DatalayerBrandThemeProvider.js +0 -32
- package/lib/theme/themes-brand/index.d.ts +0 -1
- package/lib/theme/themes-brand/spatialBrandTheme.d.ts +0 -16
- package/lib/theme/themes-brand/spatialBrandTheme.js +0 -157
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2023-2025 Datalayer, Inc.
|
|
3
|
-
* Distributed under the terms of the Modified BSD License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Spatial Brand Theme — Cosmic & Space-Inspired
|
|
7
|
-
*
|
|
8
|
-
* Overrides Primer Brand (`@primer/react-brand`) CSS custom properties
|
|
9
|
-
* to produce an indigo / deep-blue aesthetic. The tokens listed here
|
|
10
|
-
* mirror the `--brand-color-*` and `--brand-button-*` variables defined
|
|
11
|
-
* in `@primer/react-brand/lib/css/main.css`.
|
|
12
|
-
*
|
|
13
|
-
* Primer Brand components resolve their colours exclusively through
|
|
14
|
-
* CSS custom properties scoped under `[data-color-mode]` selectors.
|
|
15
|
-
* By providing higher-specificity inline style overrides through the
|
|
16
|
-
* `DatalayerBrandThemeProvider`, we swap the entire palette without
|
|
17
|
-
* touching the Brand stylesheet itself — the same technique the
|
|
18
|
-
* VS Code extension uses to re-skin Primer for its webviews.
|
|
19
|
-
*/
|
|
20
|
-
import { spatialColors } from '../colors';
|
|
21
|
-
/* ── Light mode ─────────────────────────────────────────────────────── */
|
|
22
|
-
export const spatialBrandLight = {
|
|
23
|
-
// Canvas
|
|
24
|
-
'--brand-color-canvas-default': spatialColors.white,
|
|
25
|
-
'--brand-color-canvas-overlay': spatialColors.white,
|
|
26
|
-
'--brand-color-canvas-inset': spatialColors.indigoTint,
|
|
27
|
-
'--brand-color-canvas-subtle': spatialColors.indigoTint,
|
|
28
|
-
// Text
|
|
29
|
-
'--brand-color-text-default': '#1E1E3F',
|
|
30
|
-
'--brand-color-text-muted': spatialColors.gray,
|
|
31
|
-
'--brand-color-text-subtle': '#A0AEC0',
|
|
32
|
-
'--brand-color-text-onEmphasis': spatialColors.white,
|
|
33
|
-
// Accent
|
|
34
|
-
'--brand-color-accent-primary': spatialColors.indigoBrand,
|
|
35
|
-
'--brand-color-accent-secondary': spatialColors.indigoAccent,
|
|
36
|
-
// Borders
|
|
37
|
-
'--brand-color-border-default': '#C7D2FE',
|
|
38
|
-
'--brand-color-border-muted': '#DDD6FE',
|
|
39
|
-
'--brand-color-border-subtle': spatialColors.indigoTint,
|
|
40
|
-
// Focus
|
|
41
|
-
'--brand-color-focus': spatialColors.indigoBrand,
|
|
42
|
-
// Neutral
|
|
43
|
-
'--brand-color-neutral-emphasisPlus': '#1E1E3F',
|
|
44
|
-
'--brand-color-neutral-emphasis': spatialColors.gray,
|
|
45
|
-
'--brand-color-neutral-muted': 'rgba(99, 102, 241, 0.20)',
|
|
46
|
-
'--brand-color-neutral-subtle': 'rgba(99, 102, 241, 0.08)',
|
|
47
|
-
// Success / Error (keep semantic)
|
|
48
|
-
'--brand-color-success-fg': '#1a7f37',
|
|
49
|
-
'--brand-color-success-emphasis': '#2da44e',
|
|
50
|
-
'--brand-color-success-muted': 'rgba(75, 195, 107, 0.6)',
|
|
51
|
-
'--brand-color-success-subtle': '#dafbe1',
|
|
52
|
-
'--brand-color-error-fg': '#d32f2f',
|
|
53
|
-
'--brand-color-error-emphasis': '#d32f2f',
|
|
54
|
-
'--brand-color-error-muted': 'rgba(255, 135, 133, 0.6)',
|
|
55
|
-
'--brand-color-error-subtle': '#ffdcd7',
|
|
56
|
-
// Buttons — primary
|
|
57
|
-
'--brand-button-primary-bgColor-rest': spatialColors.indigoText,
|
|
58
|
-
'--brand-button-primary-bgColor-hover': spatialColors.indigoHover,
|
|
59
|
-
'--brand-button-primary-bgColor-active': spatialColors.indigoHover,
|
|
60
|
-
'--brand-button-primary-bgColor-disabled': '#B4B0D8',
|
|
61
|
-
'--brand-button-primary-borderColor-rest': spatialColors.indigoText,
|
|
62
|
-
'--brand-button-primary-borderColor-hover': spatialColors.indigoHover,
|
|
63
|
-
'--brand-button-primary-borderColor-active': spatialColors.indigoHover,
|
|
64
|
-
'--brand-button-primary-borderColor-disabled': '#B4B0D8',
|
|
65
|
-
'--brand-button-primary-fgColor-rest': spatialColors.white,
|
|
66
|
-
'--brand-button-primary-fgColor-disabled': 'rgba(255, 255, 255, 0.5)',
|
|
67
|
-
// Buttons — accent
|
|
68
|
-
'--brand-button-accent-bgColor-rest': spatialColors.indigoBrand,
|
|
69
|
-
'--brand-button-accent-bgColor-hover': spatialColors.indigoAccent,
|
|
70
|
-
'--brand-button-accent-bgColor-active': spatialColors.indigoBrand,
|
|
71
|
-
'--brand-button-accent-bgColor-disabled': '#B4B0D8',
|
|
72
|
-
'--brand-button-accent-fgColor-rest': spatialColors.white,
|
|
73
|
-
'--brand-button-accent-fgColor-disabled': 'rgba(255, 255, 255, 0.5)',
|
|
74
|
-
// Buttons — secondary
|
|
75
|
-
'--brand-button-secondary-bgColor-rest': 'transparent',
|
|
76
|
-
'--brand-button-secondary-borderColor-rest': 'rgba(79, 70, 229, 0.25)',
|
|
77
|
-
'--brand-button-secondary-borderColor-hover': 'rgba(79, 70, 229, 0.5)',
|
|
78
|
-
'--brand-button-secondary-borderColor-active': 'rgba(79, 70, 229, 0.5)',
|
|
79
|
-
'--brand-button-secondary-fgColor-rest': spatialColors.indigoText,
|
|
80
|
-
'--brand-button-secondary-fgColor-disabled': '#B4B0D8',
|
|
81
|
-
// Applied styles
|
|
82
|
-
backgroundColor: spatialColors.white,
|
|
83
|
-
color: '#1E1E3F',
|
|
84
|
-
};
|
|
85
|
-
/* ── Dark mode ──────────────────────────────────────────────────────── */
|
|
86
|
-
export const spatialBrandDark = {
|
|
87
|
-
// Canvas
|
|
88
|
-
'--brand-color-canvas-default': spatialColors.black,
|
|
89
|
-
'--brand-color-canvas-overlay': '#111827',
|
|
90
|
-
'--brand-color-canvas-inset': spatialColors.black,
|
|
91
|
-
'--brand-color-canvas-subtle': '#111827',
|
|
92
|
-
// Text
|
|
93
|
-
'--brand-color-text-default': '#E0E7FF',
|
|
94
|
-
'--brand-color-text-muted': '#94A3B8',
|
|
95
|
-
'--brand-color-text-subtle': '#64748B',
|
|
96
|
-
'--brand-color-text-onEmphasis': spatialColors.white,
|
|
97
|
-
// Accent
|
|
98
|
-
'--brand-color-accent-primary': spatialColors.indigoAccent,
|
|
99
|
-
'--brand-color-accent-secondary': spatialColors.indigoBright,
|
|
100
|
-
// Borders
|
|
101
|
-
'--brand-color-border-default': 'rgba(199, 210, 254, 0.15)',
|
|
102
|
-
'--brand-color-border-muted': 'rgba(199, 210, 254, 0.10)',
|
|
103
|
-
'--brand-color-border-subtle': 'rgba(199, 210, 254, 0.06)',
|
|
104
|
-
// Focus
|
|
105
|
-
'--brand-color-focus': spatialColors.indigoAccent,
|
|
106
|
-
// Neutral
|
|
107
|
-
'--brand-color-neutral-emphasisPlus': '#94A3B8',
|
|
108
|
-
'--brand-color-neutral-emphasis': '#64748B',
|
|
109
|
-
'--brand-color-neutral-muted': 'rgba(99, 102, 241, 0.25)',
|
|
110
|
-
'--brand-color-neutral-subtle': 'rgba(99, 102, 241, 0.12)',
|
|
111
|
-
// Success / Error
|
|
112
|
-
'--brand-color-success-fg': '#3fb950',
|
|
113
|
-
'--brand-color-success-emphasis': '#238636',
|
|
114
|
-
'--brand-color-success-muted': 'rgba(46, 158, 66, 0.6)',
|
|
115
|
-
'--brand-color-success-subtle': 'rgba(46, 158, 66, 0.85)',
|
|
116
|
-
'--brand-color-error-fg': '#f85149',
|
|
117
|
-
'--brand-color-error-emphasis': '#da3633',
|
|
118
|
-
'--brand-color-error-muted': 'rgba(248, 82, 73, 0.6)',
|
|
119
|
-
'--brand-color-error-subtle': 'rgba(248, 82, 73, 0.85)',
|
|
120
|
-
// Buttons — primary
|
|
121
|
-
'--brand-button-primary-bgColor-rest': spatialColors.indigoAccent,
|
|
122
|
-
'--brand-button-primary-bgColor-hover': spatialColors.indigoBright,
|
|
123
|
-
'--brand-button-primary-bgColor-active': spatialColors.indigoBright,
|
|
124
|
-
'--brand-button-primary-bgColor-disabled': 'rgba(79, 70, 229, 0.35)',
|
|
125
|
-
'--brand-button-primary-borderColor-rest': 'rgba(199, 210, 254, 0.15)',
|
|
126
|
-
'--brand-button-primary-borderColor-hover': 'rgba(199, 210, 254, 0.15)',
|
|
127
|
-
'--brand-button-primary-borderColor-active': 'rgba(199, 210, 254, 0.15)',
|
|
128
|
-
'--brand-button-primary-borderColor-disabled': 'rgba(79, 70, 229, 0.2)',
|
|
129
|
-
'--brand-button-primary-fgColor-rest': spatialColors.white,
|
|
130
|
-
'--brand-button-primary-fgColor-disabled': 'rgba(255, 255, 255, 0.5)',
|
|
131
|
-
// Buttons — accent
|
|
132
|
-
'--brand-button-accent-bgColor-rest': spatialColors.indigoBrand,
|
|
133
|
-
'--brand-button-accent-bgColor-hover': spatialColors.indigoAccent,
|
|
134
|
-
'--brand-button-accent-bgColor-active': spatialColors.indigoBrand,
|
|
135
|
-
'--brand-button-accent-bgColor-disabled': 'rgba(79, 70, 229, 0.35)',
|
|
136
|
-
'--brand-button-accent-fgColor-rest': spatialColors.white,
|
|
137
|
-
'--brand-button-accent-fgColor-disabled': 'rgba(255, 255, 255, 0.5)',
|
|
138
|
-
// Buttons — secondary
|
|
139
|
-
'--brand-button-secondary-bgColor-rest': 'transparent',
|
|
140
|
-
'--brand-button-secondary-borderColor-rest': 'rgba(199, 210, 254, 0.15)',
|
|
141
|
-
'--brand-button-secondary-borderColor-hover': 'rgba(199, 210, 254, 0.3)',
|
|
142
|
-
'--brand-button-secondary-borderColor-active': 'rgba(199, 210, 254, 0.3)',
|
|
143
|
-
'--brand-button-secondary-fgColor-rest': '#E0E7FF',
|
|
144
|
-
'--brand-button-secondary-fgColor-disabled': 'rgba(99, 102, 241, 0.5)',
|
|
145
|
-
// Applied styles
|
|
146
|
-
backgroundColor: spatialColors.black,
|
|
147
|
-
color: '#E0E7FF',
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* Spatial Brand Theme — combined light + dark overrides.
|
|
151
|
-
*
|
|
152
|
-
* Pass to `DatalayerBrandThemeProvider`'s `brandTheme` prop.
|
|
153
|
-
*/
|
|
154
|
-
export const spatialBrandTheme = {
|
|
155
|
-
light: spatialBrandLight,
|
|
156
|
-
dark: spatialBrandDark,
|
|
157
|
-
};
|