@gridui/source-list 1.0.6 → 1.1.0
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 +13 -3
- package/dist/styled.js +2 -0
- package/dist/styles.css +1 -0
- package/dist/styles.local.css +66 -0
- package/docs/catalog.json +6 -4
- package/docs/reference/source-list.md +2 -2
- package/package.json +10 -5
package/README.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# @gridui/source-list
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Data family. Public API: `SourceItem`, `SourceList`, `SourceListProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/source-list` and load `@gridui/source-list/styles.css` after Theme.
|
|
6
|
-
|
|
6
|
+
Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Styles
|
|
9
|
+
|
|
10
|
+
Load Theme once. Use `@gridui/source-list/styled` for automatic component CSS in
|
|
11
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/source-list/styles.css`.
|
|
12
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
13
|
+
dependency styles; Theme/reset remain separate. See the
|
|
14
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
15
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-data/source-list/.changeset/history).
|
|
9
19
|
|
|
10
20
|
[Component reference](docs/reference/README.md) contains focused API pages for each public component.
|
package/dist/styled.js
ADDED
package/dist/styles.css
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.gridui-u-source-list--m-0 {
|
|
6
|
+
margin: 0px;
|
|
7
|
+
}
|
|
8
|
+
.gridui-u-source-list--min-w-0 {
|
|
9
|
+
min-width: 0px;
|
|
10
|
+
}
|
|
11
|
+
.gridui-u-source-list--list-decimal {
|
|
12
|
+
list-style-type: decimal;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-source-list--border-b {
|
|
15
|
+
border-bottom-style: var(--tw-border-style);
|
|
16
|
+
border-bottom-width: 1px;
|
|
17
|
+
}
|
|
18
|
+
.gridui-u-source-list--border-border {
|
|
19
|
+
border-color: var(--gridui-border);
|
|
20
|
+
}
|
|
21
|
+
.gridui-u-source-list--py-gridui-8 {
|
|
22
|
+
padding-block: var(--gridui-space-8);
|
|
23
|
+
}
|
|
24
|
+
.gridui-u-source-list--ps-gridui-32 {
|
|
25
|
+
padding-inline-start: var(--gridui-space-32);
|
|
26
|
+
}
|
|
27
|
+
.gridui-u-source-list--type-caption {
|
|
28
|
+
font: var(--gridui-type-caption);
|
|
29
|
+
font-family: var(--gridui-font-body);
|
|
30
|
+
letter-spacing: normal;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-source-list--wrap-anywhere {
|
|
33
|
+
overflow-wrap: anywhere;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-source-list--text-muted {
|
|
36
|
+
color: var(--gridui-muted);
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-source-list--\[\&_a\]\:text-link a {
|
|
39
|
+
color: var(--gridui-link);
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-source-list--\[\&_blockquote\]\:mx-0 blockquote {
|
|
42
|
+
margin-inline: 0px;
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-source-list--\[\&_blockquote\]\:border-s-2 blockquote {
|
|
45
|
+
border-inline-start-style: var(--tw-border-style);
|
|
46
|
+
border-inline-start-width: 2px;
|
|
47
|
+
}
|
|
48
|
+
.gridui-u-source-list--\[\&_blockquote\]\:border-border blockquote {
|
|
49
|
+
border-color: var(--gridui-border);
|
|
50
|
+
}
|
|
51
|
+
.gridui-u-source-list--\[\&_blockquote\]\:ps-gridui-16 blockquote {
|
|
52
|
+
padding-inline-start: var(--gridui-space-16);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
@property --tw-border-style {
|
|
56
|
+
syntax: "*";
|
|
57
|
+
inherits: false;
|
|
58
|
+
initial-value: solid;
|
|
59
|
+
}
|
|
60
|
+
@layer properties {
|
|
61
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
62
|
+
*, ::before, ::after, ::backdrop {
|
|
63
|
+
--tw-border-style: solid;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/source-list",
|
|
4
|
-
"version": "1.0
|
|
5
|
-
"category": "
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"category": "data",
|
|
6
6
|
"description": "GridUI React source list",
|
|
7
7
|
"usage": "Component reference contains focused API pages for each public component.",
|
|
8
8
|
"documentation": [
|
|
@@ -31,8 +31,10 @@
|
|
|
31
31
|
"@gridui/theme/styles.css",
|
|
32
32
|
"@gridui/source-list/styles.css"
|
|
33
33
|
],
|
|
34
|
+
"styledImport": "@gridui/source-list/styled",
|
|
34
35
|
"examples": [
|
|
35
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
36
|
-
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
36
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/source-list/stories/getting-started.mdx",
|
|
37
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/source-list/stories/references.mdx",
|
|
38
|
+
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/source-list/stories/source-list.stories.tsx"
|
|
37
39
|
]
|
|
38
40
|
}
|
|
@@ -11,9 +11,9 @@ import "@gridui/theme/styles.css";
|
|
|
11
11
|
import "@gridui/source-list/styles.css";
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
14
|
+
Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/source-list/README.md) for shared behavior and stylesheet dependencies.
|
|
15
15
|
|
|
16
|
-
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-
|
|
16
|
+
The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-data/source-list/stories/source-list.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
|
|
17
17
|
|
|
18
18
|
## API
|
|
19
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/source-list",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "GridUI React source list",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -28,13 +33,13 @@
|
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
35
|
"@gridui/style-utils": "^4.0.0",
|
|
31
|
-
"@gridui/theme": "^
|
|
36
|
+
"@gridui/theme": "^4.0.0",
|
|
32
37
|
"class-variance-authority": "0.7.1"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|
|
35
40
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
36
41
|
"@jest/globals": "30.5.2",
|
|
37
|
-
"@storybook/react-vite": "10.6.
|
|
42
|
+
"@storybook/react-vite": "10.6.7",
|
|
38
43
|
"@types/jest": "30.0.0",
|
|
39
44
|
"@types/node": "26.6.6",
|
|
40
45
|
"@types/react": "19.3.0",
|