@ddtcorex/dsh-maestro-config 0.1.2 → 0.2.1
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/lib/client.js +737 -592
- package/lib/types/client/MaestroSettings.d.ts +25 -0
- package/lib/types/client/MaestroSettings.d.ts.map +1 -0
- package/lib/types/client/components/BrandMark.d.ts +9 -0
- package/lib/types/client/components/BrandMark.d.ts.map +1 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/client/MaestroSettings.tsx +1463 -0
- package/src/client/components/BrandMark.tsx +22 -0
- package/src/client/index.tsx +9 -7
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElement as h } from 'react'
|
|
2
|
+
|
|
3
|
+
export function MaestroMark(props: { size?: number }) {
|
|
4
|
+
const s = props.size ?? 16
|
|
5
|
+
return h('svg', { width: s, height: s, viewBox: '0 0 16 16', fill: 'none', 'aria-hidden': 'true' } as any,
|
|
6
|
+
h('path', { d: 'M2 11 L5 4 L8 9 L11 4 L14 11', stroke: 'currentColor', strokeWidth: 1.6, strokeLinecap: 'round', strokeLinejoin: 'round' } as any)
|
|
7
|
+
)
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function BrandBadge(props: { size?: number; outer?: number; radius?: number }) {
|
|
11
|
+
const outer = props.outer ?? 28
|
|
12
|
+
const size = props.size ?? 16
|
|
13
|
+
const radius = props.radius ?? 8
|
|
14
|
+
return h('span', {
|
|
15
|
+
'data-maestro-logo': '',
|
|
16
|
+
style: {
|
|
17
|
+
width: outer, height: outer, borderRadius: radius, display: 'inline-flex', alignItems: 'center', justifyContent: 'center',
|
|
18
|
+
background: 'var(--dsw-alias-brand-primary, #0A84FF)', backgroundColor: '#0A84FF', color: '#fff', flex: 'none',
|
|
19
|
+
border: '1px solid rgba(0,0,0,0.08)', boxShadow: '0 0 0 1px var(--dsw-alias-border-l1)', boxSizing: 'border-box' as any,
|
|
20
|
+
},
|
|
21
|
+
} as any, h(MaestroMark as any, { size }))
|
|
22
|
+
}
|
package/src/client/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
2
|
-
import { MaestroSettingsTab } from './
|
|
1
|
+
// DSH-native redesign — reuses DSH tokens & primitive geometry maximally (see MaestroSettings.tsx).
|
|
2
|
+
import { MaestroSettingsTab } from './MaestroSettings.js'
|
|
3
3
|
import { MAESTRO_RPC_CHANNEL } from './api.js'
|
|
4
4
|
import { registerSettingsNavIcon, SETTINGS_NAV_MARKER } from './settings-nav-icon.js'
|
|
5
5
|
|
|
@@ -13,9 +13,10 @@ import { registerSettingsNavIcon, SETTINGS_NAV_MARKER } from './settings-nav-ico
|
|
|
13
13
|
*/
|
|
14
14
|
const SETTINGS_NAV_CSS = `
|
|
15
15
|
|
|
16
|
-
/* maestro: replace the settings-nav fallback gear with the Maestro M-logo glyph */
|
|
17
|
-
[${SETTINGS_NAV_MARKER}] > svg:first-child
|
|
18
|
-
|
|
16
|
+
/* maestro: replace the settings-nav fallback gear with the Maestro M-logo glyph — same mark as sidebar/popup BrandMark */
|
|
17
|
+
[${SETTINGS_NAV_MARKER}] > svg:first-child,
|
|
18
|
+
[${SETTINGS_NAV_MARKER}] > svg.zWKi1a_navIcon {
|
|
19
|
+
display: none !important;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
[${SETTINGS_NAV_MARKER}]::before {
|
|
@@ -23,9 +24,10 @@ const SETTINGS_NAV_CSS = `
|
|
|
23
24
|
flex: none;
|
|
24
25
|
width: 16px;
|
|
25
26
|
height: 16px;
|
|
27
|
+
display: inline-block;
|
|
26
28
|
background: currentColor;
|
|
27
|
-
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.
|
|
28
|
-
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.
|
|
29
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11 L5 4 L8 9 L11 4 L14 11'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
30
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 11 L5 4 L8 9 L11 4 L14 11'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
29
31
|
}
|
|
30
32
|
`
|
|
31
33
|
|