@knapsack/renderer-react-components 4.93.0--canary.7278.0f64f7e.0 → 4.93.0--canary.7735.5465742.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/test-fixtures/dom-inherited-button.d.ts +23 -0
- package/dist/test-fixtures/dom-inherited-button.d.ts.map +1 -0
- package/dist/test-fixtures/dom-inherited-button.js +3 -0
- package/dist/test-fixtures/dom-inherited-button.js.map +1 -0
- package/dist/test-fixtures/index.d.ts +1 -0
- package/dist/test-fixtures/index.d.ts.map +1 -1
- package/dist/test-fixtures/index.js +1 -0
- package/dist/test-fixtures/index.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, DetailedHTMLProps, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Author-defined props. `className` is intentionally redeclared here to verify
|
|
4
|
+
* that the inheritance-based filter keeps user-declared props even when the
|
|
5
|
+
* name collides with one on `HTMLAttributes`.
|
|
6
|
+
*/
|
|
7
|
+
export interface DomInheritedButtonAuthorProps {
|
|
8
|
+
/** Size variant declared on the author's interface, NOT inherited. */
|
|
9
|
+
size?: 'sm' | 'md' | 'lg';
|
|
10
|
+
/** Custom semantic prop. */
|
|
11
|
+
iconLeading?: ReactNode;
|
|
12
|
+
/** Override of the inherited className — should survive `removeHtmlAttributes`. */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Inherits from ButtonHTMLAttributes (which transitively pulls in
|
|
17
|
+
* HTMLAttributes / AriaAttributes / DOMAttributes), simulating the prop-deluge
|
|
18
|
+
* scenario the workspace infer-spec filters were designed to address.
|
|
19
|
+
*/
|
|
20
|
+
export interface DomInheritedButtonProps extends DomInheritedButtonAuthorProps, DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
21
|
+
}
|
|
22
|
+
export declare const DomInheritedButton: ({ size, iconLeading, className, ...rest }: DomInheritedButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=dom-inherited-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-inherited-button.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/dom-inherited-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhF;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,sEAAsE;IACtE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,4BAA4B;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mFAAmF;IACnF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,uBACf,SACE,6BAA6B,EAC7B,iBAAiB,CACf,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,iBAAiB,CAClB;CAAG;AAER,eAAO,MAAM,kBAAkB,GAAI,2CAKhC,uBAAuB,4CAIzB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const DomInheritedButton = ({ size = 'md', iconLeading, className, ...rest }) => (_jsx("button", { type: "button", className: className, "data-size": size, ...rest, children: iconLeading }));
|
|
3
|
+
//# sourceMappingURL=dom-inherited-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-inherited-button.js","sourceRoot":"","sources":["../../src/test-fixtures/dom-inherited-button.tsx"],"names":[],"mappings":";AA6BA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,IAAI,GAAG,IAAI,EACX,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACiB,EAAE,EAAE,CAAC,CAC7B,iBAAQ,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAE,SAAS,eAAa,IAAI,KAAM,IAAI,YAClE,WAAW,GACL,CACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test-fixtures/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knapsack/renderer-react-components",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "4.93.0--canary.
|
|
4
|
+
"version": "4.93.0--canary.7735.5465742.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./demo-wrapper": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"lint": "eslint ./"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@knapsack/eslint-config-starter": "4.93.0--canary.
|
|
39
|
-
"@knapsack/prettier-config": "4.93.0--canary.
|
|
40
|
-
"@knapsack/types": "4.93.0--canary.
|
|
41
|
-
"@knapsack/typescript-config-starter": "4.93.0--canary.
|
|
38
|
+
"@knapsack/eslint-config-starter": "4.93.0--canary.7735.5465742.0",
|
|
39
|
+
"@knapsack/prettier-config": "4.93.0--canary.7735.5465742.0",
|
|
40
|
+
"@knapsack/types": "4.93.0--canary.7735.5465742.0",
|
|
41
|
+
"@knapsack/typescript-config-starter": "4.93.0--canary.7735.5465742.0",
|
|
42
42
|
"@types/node": "^22.19.11",
|
|
43
43
|
"@types/prop-types": "^15.7.15",
|
|
44
44
|
"@types/react": "^19.2.3",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"directory": "apps/client/libs/renderer-react-components",
|
|
57
57
|
"type": "git"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "5465742ad77c08fd928c4d77b4cb7e7786ec1419"
|
|
60
60
|
}
|