@gridui/steps 1.0.1 → 1.0.4
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/{steps.d.ts → steps/steps.d.ts} +2 -2
- package/dist/styles.css +6 -6
- package/package.json +5 -10
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`@gridui/steps` renders a passive semantic ordered list. Import `Steps` and
|
|
4
4
|
`StepsProps` from the package root and load `@gridui/steps/styles.css` after the
|
|
5
|
-
shared theme. The package has no
|
|
5
|
+
shared theme. The package has no dependency on Layout, Landing, or Dashboard families.
|
|
6
6
|
|
|
7
7
|
```tsx
|
|
8
8
|
<Steps orientation={{ base: "vertical", md: "horizontal" }} connector="line">
|
|
@@ -31,4 +31,4 @@ step, completion state, click handler, or navigation model added by Steps.
|
|
|
31
31
|
|
|
32
32
|
## Release history
|
|
33
33
|
|
|
34
|
-
Package-owned records live in [.changeset/history](.changeset/history
|
|
34
|
+
Package-owned records live in [.changeset/history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/steps/.changeset/history).
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/steps.tsx
|
|
1
|
+
// src/steps/steps.tsx
|
|
2
2
|
import { cn } from "@gridui/style-utils";
|
|
3
3
|
import { resolveResponsive } from "@gridui/style-utils/responsive";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -19,7 +19,7 @@ var Steps = (props) => {
|
|
|
19
19
|
...restProps,
|
|
20
20
|
role,
|
|
21
21
|
type,
|
|
22
|
-
className: cn("gridui-steps grid gap-gridui-16 m-0 p-0 text-muted", className),
|
|
22
|
+
className: cn("gridui-steps gridui-u-grid gridui-u-gap-gridui-16 gridui-u-m-0 gridui-u-p-0 gridui-u-text-muted", className),
|
|
23
23
|
"data-orientation": directions.base,
|
|
24
24
|
"data-orientation-md": directions.md,
|
|
25
25
|
"data-orientation-lg": directions.lg,
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/steps.tsx"],
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Steps\n * @namespace
|
|
5
|
-
"mappings": ";AAOA,SAAS,UAAU;
|
|
3
|
+
"sources": ["../src/steps/steps.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Steps\n * @namespace Steps\n * @description Steps\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { resolveResponsive, type Responsive } from \"@gridui/style-utils/responsive\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type StepsProps = ComponentPropsWithRef<\"ol\"> & {\n readonly orientation?: Responsive<\"vertical\" | \"horizontal\">;\n readonly marker?: \"decimal-leading-zero\" | \"decimal\" | \"none\";\n readonly connector?: \"none\" | \"line\";\n};\n\nexport const Steps: FC<StepsProps> = (props: StepsProps) => {\n const { orientation = \"vertical\", marker, connector = \"none\", type,\n className, role = \"list\", ...restProps } = props;\n const directions = resolveResponsive(orientation);\n return (<ol\n {...restProps}\n role={role}\n type={type}\n className={cn(\"gridui-steps gridui-u-grid gridui-u-gap-gridui-16 gridui-u-m-0 gridui-u-p-0 gridui-u-text-muted\", className)}\n data-orientation={directions.base}\n data-orientation-md={directions.md}\n data-orientation-lg={directions.lg}\n data-marker={marker ?? (type ? \"native\" : \"decimal-leading-zero\")}\n data-connector={connector}\n />);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,UAAU;AACnB,SAAS,yBAA0C;AAavC;AAJL,IAAM,QAAwB,CAAC,UAAsB;AACxD,QAAM;AAAA,IAAE,cAAc;AAAA,IAAY;AAAA,IAAQ,YAAY;AAAA,IAAQ;AAAA,IAC1D;AAAA,IAAW,OAAO;AAAA,IAAQ,GAAG;AAAA,EAAU,IAAI;AAC/C,QAAM,aAAa,kBAAkB,WAAW;AAChD,SAAQ;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ;AAAA,MACA;AAAA,MACA,WAAW,GAAG,mGAAmG,SAAS;AAAA,MAC1H,oBAAkB,WAAW;AAAA,MAC7B,uBAAqB,WAAW;AAAA,MAChC,uBAAqB,WAAW;AAAA,MAChC,eAAa,WAAW,OAAO,WAAW;AAAA,MAC1C,kBAAgB;AAAA;AAAA,EACpB;AACJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @package Steps
|
|
4
|
-
* @namespace
|
|
4
|
+
* @namespace Steps
|
|
5
5
|
* @description Steps
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
7
|
+
import { type Responsive } from "@gridui/style-utils/responsive";
|
|
8
8
|
import type { ComponentPropsWithRef, FC } from "react";
|
|
9
9
|
export type StepsProps = ComponentPropsWithRef<"ol"> & {
|
|
10
10
|
readonly orientation?: Responsive<"vertical" | "horizontal">;
|
package/dist/styles.css
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer theme, base, components, utilities;
|
|
3
3
|
@layer utilities {
|
|
4
|
-
.m-0 {
|
|
4
|
+
.gridui-u-m-0 {
|
|
5
5
|
margin: 0px;
|
|
6
6
|
}
|
|
7
|
-
.grid {
|
|
7
|
+
.gridui-u-grid {
|
|
8
8
|
display: grid;
|
|
9
9
|
}
|
|
10
|
-
.gap-gridui-16 {
|
|
10
|
+
.gridui-u-gap-gridui-16 {
|
|
11
11
|
gap: var(--gridui-space-16);
|
|
12
12
|
}
|
|
13
|
-
.p-0 {
|
|
13
|
+
.gridui-u-p-0 {
|
|
14
14
|
padding: 0px;
|
|
15
15
|
}
|
|
16
|
-
.text-muted {
|
|
16
|
+
.gridui-u-text-muted {
|
|
17
17
|
color: var(--gridui-muted);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
inset-inline-start: 0;
|
|
39
39
|
inset-block-start: 0;
|
|
40
40
|
color: var(--gridui-foreground);
|
|
41
|
-
font-family: var(--font-mono);
|
|
41
|
+
font-family: var(--gridui-font-mono);
|
|
42
42
|
font-variant-numeric: tabular-nums;
|
|
43
43
|
content: counter(list-item, decimal-leading-zero);
|
|
44
44
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/steps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Semantic ordered process lists",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/sudo-ui/GridUI-React-Monorepo.git",
|
|
10
|
-
"directory": "packages/steps"
|
|
11
|
-
},
|
|
12
7
|
"files": [
|
|
13
8
|
"dist",
|
|
14
9
|
"README.md"
|
|
@@ -27,15 +22,15 @@
|
|
|
27
22
|
"access": "public"
|
|
28
23
|
},
|
|
29
24
|
"dependencies": {
|
|
30
|
-
"@gridui/style-utils": "^2.1.
|
|
31
|
-
"@gridui/theme": "^2.
|
|
25
|
+
"@gridui/style-utils": "^2.1.4",
|
|
26
|
+
"@gridui/theme": "^2.3.2"
|
|
32
27
|
},
|
|
33
28
|
"devDependencies": {
|
|
34
|
-
"@gridui-internal/configuration": "0.0.0",
|
|
29
|
+
"@gridui-internal/configuration": "0.0.0-internal",
|
|
35
30
|
"@jest/globals": "30.5.2",
|
|
36
31
|
"@storybook/react-vite": "10.6.5",
|
|
37
32
|
"@types/jest": "30.0.0",
|
|
38
|
-
"@types/node": "26.6.
|
|
33
|
+
"@types/node": "26.6.6",
|
|
39
34
|
"@types/react": "19.3.0",
|
|
40
35
|
"@types/react-dom": "19.3.0",
|
|
41
36
|
"jest": "30.5.2",
|