@gridui/steps 1.0.0 → 1.0.3

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 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 Controls, Data, Grid, or Layout dependency.
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">
package/dist/index.d.ts CHANGED
@@ -4,5 +4,5 @@
4
4
  * @namespace Root
5
5
  * @description Index
6
6
  */
7
- export type { StepsProps } from "./steps";
8
- export { Steps } from "./steps";
7
+ export type { StepsProps } from "./steps/steps";
8
+ export { Steps } from "./steps/steps";
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";
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 Root\n * @description Steps\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport type { Responsive } from \"@gridui/style-utils/responsive\";\nimport { resolveResponsive } 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 grid gap-gridui-16 m-0 p-0 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;AAEnB,SAAS,yBAAyB;AAatB;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,sDAAsD,SAAS;AAAA,MAC7E,oBAAkB,WAAW;AAAA,MAC7B,uBAAqB,WAAW;AAAA,MAChC,uBAAqB,WAAW;AAAA,MAChC,eAAa,WAAW,OAAO,WAAW;AAAA,MAC1C,kBAAgB;AAAA;AAAA,EACpB;AACJ;",
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 grid gap-gridui-16 m-0 p-0 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,sDAAsD,SAAS;AAAA,MAC7E,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 Root
4
+ * @namespace Steps
5
5
  * @description Steps
6
6
  */
7
- import type { Responsive } from "@gridui/style-utils/responsive";
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
@@ -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.0",
3
+ "version": "1.0.3",
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.1",
31
- "@gridui/theme": "^2.1.1"
25
+ "@gridui/style-utils": "^2.1.3",
26
+ "@gridui/theme": "^2.2.1"
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
- "@storybook/react-vite": "10.6.3",
31
+ "@storybook/react-vite": "10.6.5",
37
32
  "@types/jest": "30.0.0",
38
- "@types/node": "26.6.5",
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",