@oprt/react 0.2.1 → 0.4.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/dist/index.d.cts CHANGED
@@ -892,12 +892,37 @@ declare const SidebarCompositionRules: {
892
892
  declare const barStyles: (props?: ({
893
893
  variant?: "text" | "block" | null | undefined;
894
894
  } & class_variance_authority_types.ClassProp) | undefined) => string;
895
- type SkeletonProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<typeof barStyles> & {
895
+ /**
896
+ * What a Skeleton used to be (a status with a name) and no longer is. The props are still accepted,
897
+ * so a caller that passes them keeps compiling and rendering, but none is applied: the placeholder
898
+ * is decorative, and the area that is loading says "Loading <what>" once.
899
+ */
900
+ declare const NOT_APPLIED: readonly ["aria-label", "aria-labelledby", "aria-describedby", "role", "aria-live", "aria-busy"];
901
+ type NotApplied = {
902
+ /** @deprecated Not applied: a Skeleton is decorative and has no name. Name the loading area instead. */
903
+ "aria-label"?: string | undefined;
904
+ /** @deprecated Not applied: a Skeleton is decorative and has no name. Name the loading area instead. */
905
+ "aria-labelledby"?: string | undefined;
906
+ /** @deprecated Not applied: a Skeleton is decorative and has no description. */
907
+ "aria-describedby"?: string | undefined;
908
+ /** @deprecated Not applied: a Skeleton is decorative and has no role. */
909
+ role?: HTMLAttributes<HTMLDivElement>["role"];
910
+ /** @deprecated Not applied: a Skeleton is not a live region. The loading area owns the status. */
911
+ "aria-live"?: HTMLAttributes<HTMLDivElement>["aria-live"];
912
+ /** @deprecated Not applied: mark the loading area `aria-busy`, not its placeholder. */
913
+ "aria-busy"?: HTMLAttributes<HTMLDivElement>["aria-busy"];
914
+ };
915
+ type SkeletonProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | (typeof NOT_APPLIED)[number]> & NotApplied & VariantProps<typeof barStyles> & {
896
916
  width?: string | number;
897
917
  height?: string | number;
898
918
  lines?: number;
899
919
  };
900
- declare const Skeleton: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<(props?: ({
920
+ /**
921
+ * A placeholder in the shape of content that is on its way. Purely visual: it is hidden from
922
+ * assistive technology (no role, no name, no text), because the area that is loading owns the
923
+ * announcement, and a screen of placeholders must not say "Loading" once for each.
924
+ */
925
+ declare const Skeleton: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children" | "role" | "aria-busy" | "aria-describedby" | "aria-label" | "aria-labelledby" | "aria-live"> & NotApplied & VariantProps<(props?: ({
901
926
  variant?: "text" | "block" | null | undefined;
902
927
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
903
928
  width?: string | number;
package/dist/index.d.ts CHANGED
@@ -892,12 +892,37 @@ declare const SidebarCompositionRules: {
892
892
  declare const barStyles: (props?: ({
893
893
  variant?: "text" | "block" | null | undefined;
894
894
  } & class_variance_authority_types.ClassProp) | undefined) => string;
895
- type SkeletonProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<typeof barStyles> & {
895
+ /**
896
+ * What a Skeleton used to be (a status with a name) and no longer is. The props are still accepted,
897
+ * so a caller that passes them keeps compiling and rendering, but none is applied: the placeholder
898
+ * is decorative, and the area that is loading says "Loading <what>" once.
899
+ */
900
+ declare const NOT_APPLIED: readonly ["aria-label", "aria-labelledby", "aria-describedby", "role", "aria-live", "aria-busy"];
901
+ type NotApplied = {
902
+ /** @deprecated Not applied: a Skeleton is decorative and has no name. Name the loading area instead. */
903
+ "aria-label"?: string | undefined;
904
+ /** @deprecated Not applied: a Skeleton is decorative and has no name. Name the loading area instead. */
905
+ "aria-labelledby"?: string | undefined;
906
+ /** @deprecated Not applied: a Skeleton is decorative and has no description. */
907
+ "aria-describedby"?: string | undefined;
908
+ /** @deprecated Not applied: a Skeleton is decorative and has no role. */
909
+ role?: HTMLAttributes<HTMLDivElement>["role"];
910
+ /** @deprecated Not applied: a Skeleton is not a live region. The loading area owns the status. */
911
+ "aria-live"?: HTMLAttributes<HTMLDivElement>["aria-live"];
912
+ /** @deprecated Not applied: mark the loading area `aria-busy`, not its placeholder. */
913
+ "aria-busy"?: HTMLAttributes<HTMLDivElement>["aria-busy"];
914
+ };
915
+ type SkeletonProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | (typeof NOT_APPLIED)[number]> & NotApplied & VariantProps<typeof barStyles> & {
896
916
  width?: string | number;
897
917
  height?: string | number;
898
918
  lines?: number;
899
919
  };
900
- declare const Skeleton: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & VariantProps<(props?: ({
920
+ /**
921
+ * A placeholder in the shape of content that is on its way. Purely visual: it is hidden from
922
+ * assistive technology (no role, no name, no text), because the area that is loading owns the
923
+ * announcement, and a screen of placeholders must not say "Loading" once for each.
924
+ */
925
+ declare const Skeleton: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children" | "role" | "aria-busy" | "aria-describedby" | "aria-label" | "aria-labelledby" | "aria-live"> & NotApplied & VariantProps<(props?: ({
901
926
  variant?: "text" | "block" | null | undefined;
902
927
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
903
928
  width?: string | number;
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.2.1";
2
+ var version = "0.4.0";
3
3
 
4
4
  // src/version.ts
5
5
  var VERSION = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oprt/react",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "React components for operational interfaces: command, control and industrial software. 75 component families with interactive behavior from React Aria, styled with Tailwind CSS 4.",
5
5
  "keywords": [
6
6
  "design-system",
@@ -49,15 +49,17 @@
49
49
  "clsx": "^2.1.1",
50
50
  "react-aria": "^3.51.0",
51
51
  "react-aria-components": "^1.20.0",
52
- "@oprt/icons": "0.1.0",
53
- "@oprt/tokens": "0.2.0"
52
+ "@oprt/tokens": "0.3.0",
53
+ "@oprt/icons": "0.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@testing-library/jest-dom": "^6.6.3",
57
57
  "@testing-library/react": "^16.0.1",
58
58
  "@testing-library/user-event": "^14.5.2",
59
59
  "@types/react": "^18.3.12",
60
+ "@types/react-19": "npm:@types/react@19.3.0",
60
61
  "@types/react-dom": "^18.3.1",
62
+ "@types/react-dom-19": "npm:@types/react-dom@19.3.0",
61
63
  "@vitest/coverage-v8": "^2.1.3",
62
64
  "jsdom": "^25.0.1",
63
65
  "react": "^18.3.1",
@@ -66,7 +68,7 @@
66
68
  "typescript": "^5.6.3",
67
69
  "vitest": "^2.1.3",
68
70
  "vitest-axe": "^0.1.0",
69
- "@oprt/manifest": "0.1.0"
71
+ "@oprt/manifest": "0.4.0"
70
72
  },
71
73
  "license": "MIT",
72
74
  "publishConfig": {