@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/README.md +2 -1
- package/dist/ComboBox/ComboBox.js +9 -1
- package/dist/DataGrid/DataGrid.js +12 -2
- package/dist/DataGrid/DataGrid.manifest.js +2 -2
- package/dist/Popover/Popover.js +6 -5
- package/dist/Skeleton/Skeleton.js +36 -25
- package/dist/Skeleton/Skeleton.manifest.js +10 -2
- package/dist/Tabs/useTabsIndicator.js +1 -1
- package/dist/_internal/hydration.js +2 -2
- package/dist/_internal/loadingStatus.js +30 -0
- package/dist/_internal/motion.js +2 -2
- package/dist/index.cjs +389 -327
- package/dist/index.d.cts +27 -2
- package/dist/index.d.ts +27 -2
- package/dist/version.js +1 -1
- package/package.json +6 -4
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oprt/react",
|
|
3
|
-
"version": "0.
|
|
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/
|
|
53
|
-
"@oprt/
|
|
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.
|
|
71
|
+
"@oprt/manifest": "0.4.0"
|
|
70
72
|
},
|
|
71
73
|
"license": "MIT",
|
|
72
74
|
"publishConfig": {
|