@rnine/nineos 0.0.0-stage → 0.1.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/README.md +95 -2
- package/dist/_variables.scss +199 -0
- package/dist/components/Chrome/Chrome.d.ts +27 -0
- package/dist/components/Chrome/Chrome.js +45 -0
- package/dist/components/Chrome/Chrome.js.map +1 -0
- package/dist/components/Chrome/Chrome.module.js +14 -0
- package/dist/components/Chrome/Chrome.module.js.map +1 -0
- package/dist/components/CommandLine/ChipBar.d.ts +20 -0
- package/dist/components/CommandLine/ChipBar.js +25 -0
- package/dist/components/CommandLine/ChipBar.js.map +1 -0
- package/dist/components/CommandLine/ChipBar.module.js +9 -0
- package/dist/components/CommandLine/ChipBar.module.js.map +1 -0
- package/dist/components/CommandLine/CommandLine.d.ts +38 -0
- package/dist/components/CommandLine/CommandLine.js +121 -0
- package/dist/components/CommandLine/CommandLine.js.map +1 -0
- package/dist/components/CommandLine/CommandLine.module.js +13 -0
- package/dist/components/CommandLine/CommandLine.module.js.map +1 -0
- package/dist/components/Hint/Hint.d.ts +22 -0
- package/dist/components/Hint/Hint.js +52 -0
- package/dist/components/Hint/Hint.js.map +1 -0
- package/dist/components/Hint/Hint.module.js +11 -0
- package/dist/components/Hint/Hint.module.js.map +1 -0
- package/dist/components/Panel/PanelStage.d.ts +19 -0
- package/dist/components/Panel/PanelStage.js +67 -0
- package/dist/components/Panel/PanelStage.js.map +1 -0
- package/dist/components/Panel/PanelStage.module.js +10 -0
- package/dist/components/Panel/PanelStage.module.js.map +1 -0
- package/dist/components.css +2 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -0
- package/dist/motion/DecryptText.d.ts +9 -0
- package/dist/motion/DecryptText.js +87 -0
- package/dist/motion/DecryptText.js.map +1 -0
- package/dist/motion/DecryptText.module.js +12 -0
- package/dist/motion/DecryptText.module.js.map +1 -0
- package/dist/motion/DotField.d.ts +8 -0
- package/dist/motion/DotField.js +116 -0
- package/dist/motion/DotField.js.map +1 -0
- package/dist/motion/DotField.module.js +8 -0
- package/dist/motion/DotField.module.js.map +1 -0
- package/dist/motion/Monogram.d.ts +7 -0
- package/dist/motion/Monogram.js +40 -0
- package/dist/motion/Monogram.js.map +1 -0
- package/dist/motion/Monogram.module.js +10 -0
- package/dist/motion/Monogram.module.js.map +1 -0
- package/dist/motion/PageEffects.d.ts +2 -0
- package/dist/motion/PageEffects.js +45 -0
- package/dist/motion/PageEffects.js.map +1 -0
- package/dist/motion/PageEffects.module.js +8 -0
- package/dist/motion/PageEffects.module.js.map +1 -0
- package/dist/motion/Terminal.d.ts +12 -0
- package/dist/motion/Terminal.js +57 -0
- package/dist/motion/Terminal.js.map +1 -0
- package/dist/motion/Terminal.module.js +12 -0
- package/dist/motion/Terminal.module.js.map +1 -0
- package/dist/motion/VelocityStrip.d.ts +7 -0
- package/dist/motion/VelocityStrip.js +46 -0
- package/dist/motion/VelocityStrip.js.map +1 -0
- package/dist/motion/VelocityStrip.module.js +9 -0
- package/dist/motion/VelocityStrip.module.js.map +1 -0
- package/dist/motion/signal.d.ts +15 -0
- package/dist/motion/signal.js +78 -0
- package/dist/motion/signal.js.map +1 -0
- package/dist/motion/useDecrypt.d.ts +21 -0
- package/dist/motion/useDecrypt.js +45 -0
- package/dist/motion/useDecrypt.js.map +1 -0
- package/dist/motion.d.ts +10 -0
- package/dist/motion.js +10 -0
- package/dist/nineos-base.css +54 -0
- package/dist/provider/ThemeProvider.d.ts +25 -0
- package/dist/provider/ThemeProvider.js +44 -0
- package/dist/provider/ThemeProvider.js.map +1 -0
- package/dist/styles.css +637 -0
- package/dist/tokens.css +470 -0
- package/dist/tokens.d.ts +2446 -0
- package/dist/tokens.js +2446 -0
- package/fonts.css +9 -0
- package/package.json +114 -4
- package/scss/_glitch.scss +23 -0
- package/scss/_index.scss +6 -0
- package/scss/base.scss +24 -0
- package/theme.json +9 -0
- package/tokens/color.json +46 -0
- package/tokens/layout.json +29 -0
- package/tokens/motion.json +18 -0
- package/tokens/palettes/acid.json +65 -0
- package/tokens/palettes/volt.json +65 -0
- package/tokens/shape.json +26 -0
- package/tokens/space.json +19 -0
- package/tokens/themes/dark.json +81 -0
- package/tokens/themes/light.json +106 -0
- package/tokens/typography.json +58 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TextReveal as e } from "../motion/DecryptText.js";
|
|
2
|
+
import { PageEffects as t } from "../motion/PageEffects.js";
|
|
3
|
+
import { moodBootScript as n } from "@rnine/core";
|
|
4
|
+
import { ThemeRoot as r } from "@rnine/core/kit";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
//#region src/provider/ThemeProvider.tsx
|
|
7
|
+
var a = {
|
|
8
|
+
name: "NineOS",
|
|
9
|
+
moods: {
|
|
10
|
+
light: {
|
|
11
|
+
id: "clear",
|
|
12
|
+
label: "Clear",
|
|
13
|
+
description: "The light mood: white, ink, magenta."
|
|
14
|
+
},
|
|
15
|
+
dark: {
|
|
16
|
+
id: "cipher",
|
|
17
|
+
label: "Cipher",
|
|
18
|
+
description: "The dark mood: near-black, neon magenta, scanlines."
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
auto: "night",
|
|
22
|
+
slots: {
|
|
23
|
+
TextReveal: e,
|
|
24
|
+
PageEffects: t
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function o(e) {
|
|
28
|
+
return /* @__PURE__ */ i(r, {
|
|
29
|
+
config: a,
|
|
30
|
+
...e
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function s(e = {}) {
|
|
34
|
+
return n({
|
|
35
|
+
auto: a.auto,
|
|
36
|
+
names: a.moods,
|
|
37
|
+
...e
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
var c = s();
|
|
41
|
+
//#endregion
|
|
42
|
+
export { c as MOOD_BOOT_SCRIPT, a as NINEOS_THEME, o as ThemeProvider, s as moodBootScript };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.js","names":[],"sources":["../../src/provider/ThemeProvider.tsx"],"sourcesContent":["import { ThemeRoot, type ThemeConfig, type ThemeProviderProps } from '@rnine/core/kit';\nimport { moodBootScript as coreBootScript, type BootScriptOptions } from '@rnine/core';\nimport { TextReveal } from '../motion/DecryptText';\nimport { PageEffects } from '../motion/PageEffects';\n\n/** NineOS: its moods (Clear and Cipher), Auto rule and effects. Matches theme.json (a test checks). */\nexport const NINEOS_THEME: ThemeConfig = {\n name: 'NineOS',\n moods: {\n light: { id: 'clear', label: 'Clear', description: 'The light mood: white, ink, magenta.' },\n dark: { id: 'cipher', label: 'Cipher', description: 'The dark mood: near-black, neon magenta, scanlines.' },\n },\n auto: 'night',\n slots: { TextReveal, PageEffects },\n};\n\n/**\n * Wrap the app once. It keeps the mood on <html data-scheme=\"light|dark\">\n * (Clear and Cipher): the viewer's saved choice, or Clear by day and, at\n * night, Cipher for a dark system setting (flipping at dusk, dawn, and when\n * the system switches). See useMood. It also applies the viewer's saved\n * motion setting (MotionToggle), mounts the page effects (Cipher scanlines,\n * magenta click sparks) and gives every Mark the app's artwork.\n *\n * <ThemeProvider mark={{ full: markSvg }} mood={{ cookieDomain: 'example.com' }}>\n * <App />\n * </ThemeProvider>\n */\nexport function ThemeProvider(props: ThemeProviderProps) {\n return <ThemeRoot config={NINEOS_THEME} {...props} />;\n}\n\n/**\n * The script to paste into each app's index.html <head> as an inline\n * <script>, so the first paint already has the right mood. NineOS's Auto rule\n * (the night rule) is the default; pass the same storageKey as configureMood.\n */\nexport function moodBootScript(options: BootScriptOptions = {}): string {\n return coreBootScript({ auto: NINEOS_THEME.auto, names: NINEOS_THEME.moods, ...options });\n}\n\n/** moodBootScript() with the default storage key. (Apps' tests check their copy matches.) */\nexport const MOOD_BOOT_SCRIPT = moodBootScript();\n"],"mappings":";;;;;;AAMA,IAAa,IAA4B;CACvC,MAAM;CACN,OAAO;EACL,OAAO;GAAE,IAAI;GAAS,OAAO;GAAS,aAAa;EAAuC;EAC1F,MAAM;GAAE,IAAI;GAAU,OAAO;GAAU,aAAa;EAAsD;CAC5G;CACA,MAAM;CACN,OAAO;EAAE;EAAY;CAAY;AACnC;AAcA,SAAgB,EAAc,GAA2B;CACvD,OAAO,kBAAC,GAAD;EAAW,QAAQ;EAAc,GAAI;CAAQ,CAAA;AACtD;AAOA,SAAgB,EAAe,IAA6B,CAAC,GAAW;CACtE,OAAO,EAAe;EAAE,MAAM,EAAa;EAAM,OAAO,EAAa;EAAO,GAAG;CAAQ,CAAC;AAC1F;AAGA,IAAa,IAAmB,EAAe"}
|