@lostgradient/cinder 0.24.7 → 0.24.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @lostgradient/cinder
2
2
 
3
+ ## 0.24.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1378](https://github.com/stevekinney/cinder/pull/1378) [`c7c0961`](https://github.com/stevekinney/cinder/commit/c7c09610d574bf61c5c7a042d2eeffb1eff6702f) Thanks [@stevekinney](https://github.com/stevekinney)! - Enable npm provenance attestations on the trusted and emergency publish paths.
8
+
9
+ - Updated dependencies [[`c7c0961`](https://github.com/stevekinney/cinder/commit/c7c09610d574bf61c5c7a042d2eeffb1eff6702f)]:
10
+ - @lostgradient/markdown@0.3.1
11
+
3
12
  ## 0.24.7
4
13
 
5
14
  ### Patch Changes
package/components.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": 1,
4
4
  "package": {
5
5
  "name": "@lostgradient/cinder",
6
- "version": "0.24.7",
6
+ "version": "0.24.8",
7
7
  "framework": "svelte",
8
8
  "frameworkVersionRange": ">=5.56.0 <6",
9
9
  "classPrefix": "cinder-",
@@ -2838,7 +2838,7 @@
2838
2838
  "reason": "The dataset is bounded and benefits from discrete jumps — use `Pagination` instead."
2839
2839
  }
2840
2840
  ],
2841
- "related": ["pagination"],
2841
+ "related": ["pagination", "virtual-list"],
2842
2842
  "hasConstraints": false,
2843
2843
  "hasExamples": true,
2844
2844
  "artifacts": {
@@ -5478,7 +5478,7 @@
5478
5478
  "reason": "Rendering columns or two-dimensional grids — use data-grid for grid semantics and column virtualization."
5479
5479
  }
5480
5480
  ],
5481
- "related": ["data-list", "data-table", "data-grid"],
5481
+ "related": ["data-list", "data-table", "data-grid", "load-more"],
5482
5482
  "hasConstraints": false,
5483
5483
  "hasExamples": true,
5484
5484
  "artifacts": {
@@ -59,6 +59,10 @@ var schema = {
59
59
  minColumnWidth: {
60
60
  type: "string",
61
61
  description: 'Minimum width of each grid cell, expressed as a CSS `<length>` value\n(e.g. `"16rem"`, `"240px"`, `"min(20rem, 100%)"`). Used as the first\nargument to `minmax()` inside a `repeat(auto-fill, ...)` track.\nDefault: `"16rem"`. Empty string is treated as unset.'
62
+ },
63
+ class: {
64
+ type: "string",
65
+ description: "Extra class names merged with `cinder-grid-list`."
62
66
  }
63
67
  },
64
68
  additionalProperties: false,
@@ -69,11 +73,6 @@ var schema = {
69
73
  reason: "function-or-snippet",
70
74
  required: true,
71
75
  description: "Items — typically `GridListItem` instances."
72
- },
73
- {
74
- name: "class",
75
- reason: "unknown-shape",
76
- description: "Extra class names merged with `cinder-grid-list`."
77
76
  }
78
77
  ]
79
78
  }
@@ -83,4 +82,4 @@ export {
83
82
  grid_list_schema_default as default
84
83
  };
85
84
 
86
- //# debugId=0DA949B1DBC7A8DA64756E2164756E21
85
+ //# debugId=30462D02D03B555D64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- export type GridListProps = Omit<HTMLAttributes<HTMLElement>, 'role'> & {
3
+ export type GridListProps = Omit<HTMLAttributes<HTMLElement>, 'class' | 'role'> & {
4
4
  /**
5
5
  * Minimum width of each grid cell, expressed as a CSS `<length>` value
6
6
  * (e.g. `"16rem"`, `"240px"`, `"min(20rem, 100%)"`). Used as the first
@@ -7,7 +7,7 @@
7
7
  * @tag paging
8
8
  * @useWhen Streaming results into a long list and you want the next page to load as the user approaches the end.
9
9
  * @avoidWhen The dataset is bounded and benefits from discrete jumps — use `Pagination` instead.
10
- * @related pagination
10
+ * @related pagination, virtual-list
11
11
  */
12
12
  export type { LoadMoreProps } from './load-more.types.ts';
13
13
  import type { LoadMoreProps } from './load-more.types.ts';
@@ -10,7 +10,7 @@
10
10
  * @useWhen You need a reusable primitive that owns native vertical scrolling but leaves row markup to a snippet.
11
11
  * @avoidWhen Rows have substantially variable heights that must be measured dynamically — v1 requires a fixed itemHeight.
12
12
  * @avoidWhen Rendering columns or two-dimensional grids — use data-grid for grid semantics and column virtualization.
13
- * @related data-list, data-table, data-grid
13
+ * @related data-list, data-table, data-grid, load-more
14
14
  */
15
15
  export type { VirtualListProps, VirtualListRowContext } from './virtual-list.types.ts';
16
16
  export type { FixedVirtualWindow, FixedVirtualWindowItem, } from '../../utilities/fixed-virtual-window.ts';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lostgradient/cinder",
3
- "version": "0.24.7",
3
+ "version": "0.24.8",
4
4
  "description": "A Svelte 5 component library and design system focused on accessibility, theming, and per-component tree-shaking.",
5
5
  "keywords": [
6
6
  "svelte",
@@ -55,6 +55,10 @@
55
55
  "types": "./src/styles/utilities.css.d.ts",
56
56
  "default": "./src/styles/utilities.css"
57
57
  },
58
+ "./styles/json-highlight": {
59
+ "types": "./src/styles/json-highlight.css.d.ts",
60
+ "default": "./src/styles/json-highlight.css"
61
+ },
58
62
  "./styles/guard": {
59
63
  "types": "./dist/styles/base-guard.d.ts",
60
64
  "browser": "./src/styles/base-guard.ts",
@@ -5824,7 +5828,7 @@
5824
5828
  ],
5825
5829
  "dependencies": {
5826
5830
  "@floating-ui/dom": "1.7.6",
5827
- "@lostgradient/markdown": "^0.3.0",
5831
+ "@lostgradient/markdown": "^0.3.1",
5828
5832
  "@shikijs/engine-oniguruma": "^3.21.0",
5829
5833
  "@shikijs/types": "^3.21.0",
5830
5834
  "@tanstack/virtual-core": "^3.17.1",
@@ -5841,6 +5845,7 @@
5841
5845
  "@changesets/parse": "0.4.3",
5842
5846
  "@lostgradient/bun-plugin-svelte": "^0.0.1",
5843
5847
  "@playwright/test": "1.60.0",
5848
+ "@sveltejs/adapter-node": "5.5.4",
5844
5849
  "@testing-library/jest-dom": "^6.9.1",
5845
5850
  "@testing-library/svelte": "^5.2.7",
5846
5851
  "@types/bun": "^1.3.11",
@@ -5875,6 +5880,6 @@
5875
5880
  },
5876
5881
  "publishConfig": {
5877
5882
  "access": "public",
5878
- "provenance": false
5883
+ "provenance": true
5879
5884
  }
5880
5885
  }
@@ -5,6 +5,10 @@
5
5
  "minColumnWidth": {
6
6
  "type": "string",
7
7
  "description": "Minimum width of each grid cell, expressed as a CSS `<length>` value\n(e.g. `\"16rem\"`, `\"240px\"`, `\"min(20rem, 100%)\"`). Used as the first\nargument to `minmax()` inside a `repeat(auto-fill, ...)` track.\nDefault: `\"16rem\"`. Empty string is treated as unset."
8
+ },
9
+ "class": {
10
+ "type": "string",
11
+ "description": "Extra class names merged with `cinder-grid-list`."
8
12
  }
9
13
  },
10
14
  "additionalProperties": false,
@@ -15,11 +19,6 @@
15
19
  "reason": "function-or-snippet",
16
20
  "required": true,
17
21
  "description": "Items — typically `GridListItem` instances."
18
- },
19
- {
20
- "name": "class",
21
- "reason": "unknown-shape",
22
- "description": "Extra class names merged with `cinder-grid-list`."
23
22
  }
24
23
  ]
25
24
  }
@@ -9,6 +9,10 @@ const schema = {
9
9
  description:
10
10
  'Minimum width of each grid cell, expressed as a CSS `<length>` value\n(e.g. `"16rem"`, `"240px"`, `"min(20rem, 100%)"`). Used as the first\nargument to `minmax()` inside a `repeat(auto-fill, ...)` track.\nDefault: `"16rem"`. Empty string is treated as unset.',
11
11
  },
12
+ class: {
13
+ type: 'string',
14
+ description: 'Extra class names merged with `cinder-grid-list`.',
15
+ },
12
16
  },
13
17
  additionalProperties: false,
14
18
  metadata: {
@@ -19,11 +23,6 @@ const schema = {
19
23
  required: true,
20
24
  description: 'Items — typically `GridListItem` instances.',
21
25
  },
22
- {
23
- name: 'class',
24
- reason: 'unknown-shape',
25
- description: 'Extra class names merged with `cinder-grid-list`.',
26
- },
27
26
  ],
28
27
  },
29
28
  } satisfies ComponentSchema;
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAttributes } from 'svelte/elements';
3
- export type GridListProps = Omit<HTMLAttributes<HTMLElement>, 'role'> & {
3
+ export type GridListProps = Omit<HTMLAttributes<HTMLElement>, 'class' | 'role'> & {
4
4
  /**
5
5
  * Minimum width of each grid cell, expressed as a CSS `<length>` value
6
6
  * (e.g. `"16rem"`, `"240px"`, `"min(20rem, 100%)"`). Used as the first
@@ -19,7 +19,7 @@
19
19
  "id": "docs-sidebar",
20
20
  "title": "Docs sidebar",
21
21
  "description": "Documentation sidebar with grouped navigation sections. The active item receives aria-current=\"page\".",
22
- "code": "<script lang=\"ts\" module>\n export const title = 'Docs sidebar';\n export const description =\n 'Documentation sidebar with grouped navigation sections. The active item receives aria-current=\"page\".' +\n ' Composed inside Sidebar so the column collapses to a drawer below the ~767px viewport breakpoint —' +\n ' resize your browser window to see the mobile drawer behavior.';\n</script>\n\n<script lang=\"ts\">\n import { Button } from '@lostgradient/cinder/button';\n import { SideNavigation } from '@lostgradient/cinder/side-navigation';\n import { Sidebar } from '@lostgradient/cinder/sidebar';\n\n let collapsed = $state(false);\n</script>\n\n<div style=\"display: flex; flex-direction: column; gap: 1rem;\">\n <div>\n <Button\n label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n onclick={() => (collapsed = !collapsed)}\n />\n </div>\n\n <div\n style=\"display: flex; min-height: 28rem; border: 1px solid var(--cinder-border); border-radius: 0.5rem; overflow: hidden;\"\n >\n <Sidebar bind:collapsed label=\"Documentation\">\n {#snippet navigation()}\n <SideNavigation ariaLabel=\"Documentation sections\">\n <SideNavigation.Group label=\"Getting Started\">\n <SideNavigation.Item href=\"#introduction\" active>Introduction</SideNavigation.Item>\n <SideNavigation.Item href=\"#installation\">Installation</SideNavigation.Item>\n <SideNavigation.Item href=\"#quick-start\">Quick start</SideNavigation.Item>\n </SideNavigation.Group>\n <SideNavigation.Group label=\"Components\">\n <SideNavigation.Item href=\"#button\">Button</SideNavigation.Item>\n <SideNavigation.Item href=\"#form-section\">FormSection</SideNavigation.Item>\n <SideNavigation.Item href=\"#side-navigation\">SideNavigation</SideNavigation.Item>\n </SideNavigation.Group>\n <SideNavigation.Group label=\"API Reference\">\n <SideNavigation.Item href=\"#props\">Props</SideNavigation.Item>\n <SideNavigation.Item href=\"#types\">Types</SideNavigation.Item>\n <SideNavigation.Item href=\"#css-variables\">CSS variables</SideNavigation.Item>\n </SideNavigation.Group>\n </SideNavigation>\n {/snippet}\n </Sidebar>\n\n <main style=\"flex: 1; padding: 1.5rem;\">\n <p style=\"margin: 0; color: var(--cinder-text-muted); font-size: var(--cinder-text-sm);\">\n Main content area. Resize the browser viewport below ~767px to see the navigation collapse\n into a mobile drawer.\n </p>\n </main>\n </div>\n</div>\n"
22
+ "code": "<script lang=\"ts\" module>\n export const title = 'Docs sidebar';\n export const description =\n 'Documentation sidebar with grouped navigation sections. The active item receives aria-current=\"page\".' +\n ' Composed inside Sidebar so the column collapses to a drawer below the ~767px viewport breakpoint —' +\n ' resize your browser window to see the mobile drawer behavior.';\n</script>\n\n<script lang=\"ts\">\n import { Button } from '@lostgradient/cinder/button';\n import { SideNavigation } from '@lostgradient/cinder/side-navigation';\n import { SIDEBAR_MOBILE_MEDIA_QUERY, Sidebar } from '@lostgradient/cinder/sidebar';\n import { MediaQuery } from 'svelte/reactivity';\n\n const mobile = new MediaQuery(SIDEBAR_MOBILE_MEDIA_QUERY, false);\n let collapsed = $state(mobile.current);\n\n $effect(() => {\n if (mobile.current) collapsed = true;\n });\n</script>\n\n<div style=\"display: flex; flex-direction: column; gap: 1rem;\">\n <div>\n <Button\n label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n onclick={() => (collapsed = !collapsed)}\n />\n </div>\n\n <div\n style=\"display: flex; min-height: 28rem; border: 1px solid var(--cinder-border); border-radius: 0.5rem; overflow: hidden;\"\n >\n <Sidebar bind:collapsed label=\"Documentation\">\n {#snippet navigation()}\n <SideNavigation ariaLabel=\"Documentation sections\">\n <SideNavigation.Group label=\"Getting Started\">\n <SideNavigation.Item href=\"#introduction\" active>Introduction</SideNavigation.Item>\n <SideNavigation.Item href=\"#installation\">Installation</SideNavigation.Item>\n <SideNavigation.Item href=\"#quick-start\">Quick start</SideNavigation.Item>\n </SideNavigation.Group>\n <SideNavigation.Group label=\"Components\">\n <SideNavigation.Item href=\"#button\">Button</SideNavigation.Item>\n <SideNavigation.Item href=\"#form-section\">FormSection</SideNavigation.Item>\n <SideNavigation.Item href=\"#side-navigation\">SideNavigation</SideNavigation.Item>\n </SideNavigation.Group>\n <SideNavigation.Group label=\"API Reference\">\n <SideNavigation.Item href=\"#props\">Props</SideNavigation.Item>\n <SideNavigation.Item href=\"#types\">Types</SideNavigation.Item>\n <SideNavigation.Item href=\"#css-variables\">CSS variables</SideNavigation.Item>\n </SideNavigation.Group>\n </SideNavigation>\n {/snippet}\n </Sidebar>\n\n <main style=\"flex: 1; padding: 1.5rem;\">\n <p style=\"margin: 0; color: var(--cinder-text-muted); font-size: var(--cinder-text-sm);\">\n Main content area. Resize the browser viewport below ~767px to see the navigation collapse\n into a mobile drawer.\n </p>\n </main>\n </div>\n</div>\n"
23
23
  }
24
24
  ]
25
25
  }
@@ -7,7 +7,7 @@
7
7
  "id": "basic",
8
8
  "title": "Basic sidebar",
9
9
  "description": "Layout-level sidebar with navigation and footer regions. Collapse toggles icon-only mode on desktop and closes the drawer on mobile.",
10
- "code": "<script lang=\"ts\">\n import { Button } from '@lostgradient/cinder/button';\n import { NavigationItem } from '@lostgradient/cinder/navigation-item';\n import { SideNavigation } from '@lostgradient/cinder/side-navigation';\n import { SideNavigationGroup } from '@lostgradient/cinder/side-navigation-group';\n import { SideNavigationItem } from '@lostgradient/cinder/side-navigation-item';\n import { Sidebar } from '@lostgradient/cinder/sidebar';\n let collapsed = $state(false);\n</script>\n\n<div style=\"display: flex; flex-direction: column; gap: 1rem;\">\n <div>\n <Button\n label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n onclick={() => (collapsed = !collapsed)}\n />\n </div>\n\n <div\n style=\"display: flex; min-height: 24rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden;\"\n >\n <Sidebar bind:collapsed label=\"Workspace\">\n {#snippet navigation()}\n <SideNavigation ariaLabel=\"Workspace sections\">\n {#snippet children()}\n <SideNavigationItem href=\"#dashboard\">\n {#snippet children()}Dashboard{/snippet}\n </SideNavigationItem>\n <SideNavigationItem href=\"#projects\" active>\n {#snippet children()}Projects{/snippet}\n </SideNavigationItem>\n <SideNavigationGroup label=\"Settings\">\n {#snippet children()}\n <SideNavigationItem href=\"#general\">\n {#snippet children()}General{/snippet}\n </SideNavigationItem>\n <SideNavigationItem href=\"#billing\">\n {#snippet children()}Billing{/snippet}\n </SideNavigationItem>\n {/snippet}\n </SideNavigationGroup>\n {/snippet}\n </SideNavigation>\n {/snippet}\n\n {#snippet footer()}\n <NavigationItem variant=\"vertical\" href=\"#account\">\n {#snippet children()}Account{/snippet}\n </NavigationItem>\n {/snippet}\n </Sidebar>\n\n <main style=\"flex: 1; padding: 1rem;\">\n <p>Main content area.</p>\n <p>Resize the viewport below ~767px to see the mobile drawer behavior.</p>\n </main>\n </div>\n</div>\n"
10
+ "code": "<script lang=\"ts\">\n import { Button } from '@lostgradient/cinder/button';\n import { NavigationItem } from '@lostgradient/cinder/navigation-item';\n import { SideNavigation } from '@lostgradient/cinder/side-navigation';\n import { SideNavigationGroup } from '@lostgradient/cinder/side-navigation-group';\n import { SideNavigationItem } from '@lostgradient/cinder/side-navigation-item';\n import { SIDEBAR_MOBILE_MEDIA_QUERY, Sidebar } from '@lostgradient/cinder/sidebar';\n import { MediaQuery } from 'svelte/reactivity';\n\n const mobile = new MediaQuery(SIDEBAR_MOBILE_MEDIA_QUERY, false);\n let collapsed = $state(mobile.current);\n\n $effect(() => {\n if (mobile.current) collapsed = true;\n });\n</script>\n\n<div style=\"display: flex; flex-direction: column; gap: 1rem;\">\n <div>\n <Button\n label={collapsed ? 'Expand sidebar' : 'Collapse sidebar'}\n onclick={() => (collapsed = !collapsed)}\n />\n </div>\n\n <div\n style=\"display: flex; min-height: 24rem; border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden;\"\n >\n <Sidebar bind:collapsed label=\"Workspace\">\n {#snippet navigation()}\n <SideNavigation ariaLabel=\"Workspace sections\">\n {#snippet children()}\n <SideNavigationItem href=\"#dashboard\">\n {#snippet children()}Dashboard{/snippet}\n </SideNavigationItem>\n <SideNavigationItem href=\"#projects\" active>\n {#snippet children()}Projects{/snippet}\n </SideNavigationItem>\n <SideNavigationGroup label=\"Settings\">\n {#snippet children()}\n <SideNavigationItem href=\"#general\">\n {#snippet children()}General{/snippet}\n </SideNavigationItem>\n <SideNavigationItem href=\"#billing\">\n {#snippet children()}Billing{/snippet}\n </SideNavigationItem>\n {/snippet}\n </SideNavigationGroup>\n {/snippet}\n </SideNavigation>\n {/snippet}\n\n {#snippet footer()}\n <NavigationItem variant=\"vertical\" href=\"#account\">\n {#snippet children()}Account{/snippet}\n </NavigationItem>\n {/snippet}\n </Sidebar>\n\n <main style=\"flex: 1; padding: 1rem;\">\n <p>Main content area.</p>\n <p>Resize the viewport below ~767px to see the mobile drawer behavior.</p>\n </main>\n </div>\n</div>\n"
11
11
  },
12
12
  {
13
13
  "id": "mobile-trigger",
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Opt-in JSON syntax token styles — `cinder/styles/json-highlight`.
3
+ *
4
+ * Import after `cinder/styles` when rendering markup produced by
5
+ * `highlightJson()`. Keeping this separate preserves the slim base stylesheet
6
+ * for consumers that do not render JSON-highlighted values.
7
+ */
8
+
9
+ @import './components/json-highlight.css';
@@ -0,0 +1,2 @@
1
+ // Type stub for the CSS-only `@lostgradient/cinder/styles/json-highlight` subpath.
2
+ export {};