@malloydata/render 0.0.116-dev240104225124 → 0.0.116-dev240105162843

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.
@@ -11,7 +11,10 @@ function getAbsolutePath(value) {
11
11
  }
12
12
 
13
13
  const config: StorybookConfig = {
14
- 'stories': ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
14
+ 'stories': [
15
+ '../src/stories/*.mdx',
16
+ '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)',
17
+ ],
15
18
  staticDirs: ['../src/stories/static'],
16
19
  'addons': [
17
20
  getAbsolutePath('@storybook/addon-links'),
@@ -0,0 +1,16 @@
1
+ <link rel="preconnect" href="https://rsms.me/" />
2
+ <link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
3
+ <link rel="icon" href="./favicon.ico" />
4
+ <style>
5
+ :root {
6
+ font-family: Inter, sans-serif;
7
+ font-feature-settings:
8
+ 'liga' 1,
9
+ 'calt' 1; /* fix for Chrome */
10
+ }
11
+ @supports (font-variation-settings: normal) {
12
+ :root {
13
+ font-family: InterVariable, sans-serif;
14
+ }
15
+ }
16
+ </style>
@@ -0,0 +1,16 @@
1
+ import {addons} from '@storybook/manager-api';
2
+ import theme from './theme';
3
+
4
+ addons.setConfig({
5
+ theme,
6
+ isFullscreen: false,
7
+ showNav: true,
8
+ showPanel: false,
9
+ panelPosition: 'bottom',
10
+ enableShortcuts: true,
11
+ showToolbar: false,
12
+ selectedPanel: undefined,
13
+ initialActive: 'sidebar',
14
+ sidebar: {},
15
+ toolbar: {},
16
+ });
@@ -1,2 +1,15 @@
1
1
  <link rel="preconnect" href="https://rsms.me/" />
2
2
  <link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
3
+ <style>
4
+ :root {
5
+ font-family: Inter, sans-serif;
6
+ font-feature-settings:
7
+ 'liga' 1,
8
+ 'calt' 1; /* fix for Chrome */
9
+ }
10
+ @supports (font-variation-settings: normal) {
11
+ :root {
12
+ font-family: InterVariable, sans-serif;
13
+ }
14
+ }
15
+ </style>
@@ -1,6 +1,7 @@
1
1
  import {DuckDBWASMConnection} from '@malloydata/db-duckdb/wasm';
2
2
  import {Preview} from '@storybook/html';
3
3
  import registeredData from './registered_data.json';
4
+ import theme from './theme';
4
5
 
5
6
  async function createConnection() {
6
7
  const connection = new DuckDBWASMConnection('duckdb', null, undefined, {
@@ -26,6 +27,9 @@ const preview: Preview = {
26
27
  date: /Date$/i,
27
28
  },
28
29
  },
30
+ docs: {
31
+ theme,
32
+ },
29
33
  },
30
34
  globals: {
31
35
  connection: createConnection(),
@@ -0,0 +1,12 @@
1
+ import {create} from '@storybook/theming/create';
2
+
3
+ export default create({
4
+ base: 'light',
5
+ brandTitle:
6
+ '<div style="display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500;"><img src="https://docs.malloydata.dev/img/logo.png" style="height: 24px"/><div>Renderer</div></div>',
7
+ brandUrl: 'https://malloydata.github.io',
8
+ fontBase: '"Inter", "Open Sans", sans-serif',
9
+ fontCode: 'monospace',
10
+ colorSecondary: '#477DEC',
11
+ appBg: '#ECF1FB',
12
+ });
@@ -21,3 +21,9 @@ export declare const Sparks: {
21
21
  view: string;
22
22
  };
23
23
  };
24
+ export declare const SparksNested: {
25
+ args: {
26
+ source: string;
27
+ view: string;
28
+ };
29
+ };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Sparks = exports.Nested = exports.Products2Column = void 0;
6
+ exports.SparksNested = exports.Sparks = exports.Nested = exports.Products2Column = void 0;
7
7
  const bars_malloy_raw_1 = __importDefault(require("./static/bars.malloy?raw"));
8
8
  const util_1 = require("./util");
9
9
  require("./themes.css");
@@ -43,4 +43,10 @@ exports.Sparks = {
43
43
  view: 'sparks',
44
44
  },
45
45
  };
46
+ exports.SparksNested = {
47
+ args: {
48
+ source: 'products',
49
+ view: 'sparks_nested',
50
+ },
51
+ };
46
52
  //# sourceMappingURL=bars.stories.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/render",
3
- "version": "0.0.116-dev240104225124",
3
+ "version": "0.0.116-dev240105162843",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@lit/context": "^1.1.0",
27
- "@malloydata/malloy": "^0.0.116-dev240104225124",
27
+ "@malloydata/malloy": "^0.0.116-dev240105162843",
28
28
  "@types/luxon": "^2.4.0",
29
29
  "lit": "^3.0.2",
30
30
  "lodash": "^4.17.20",