@qoretechnologies/reqore 0.70.17 → 0.70.19
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/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +7 -1
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/ControlGroup/index.d.ts.map +1 -1
- package/dist/components/ControlGroup/index.js +2 -16
- package/dist/components/ControlGroup/index.js.map +1 -1
- package/dist/components/Drawer/backdrop.d.ts.map +1 -1
- package/dist/components/Drawer/backdrop.js +2 -4
- package/dist/components/Drawer/backdrop.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js +2 -18
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +5 -1
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Table/cell.d.ts.map +1 -1
- package/dist/components/Table/cell.js +5 -1
- package/dist/components/Table/cell.js.map +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +38 -42
- package/dist/components/Table/index.js.map +1 -1
- package/dist/components/Table/row.d.ts.map +1 -1
- package/dist/components/Table/row.js +5 -1
- package/dist/components/Table/row.js.map +1 -1
- package/dist/helpers/styled.d.ts +22 -0
- package/dist/helpers/styled.d.ts.map +1 -0
- package/dist/helpers/styled.js +30 -0
- package/dist/helpers/styled.js.map +1 -0
- package/package.json +2 -2
- package/tests.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The default prop validator styled-components hands to `shouldForwardProp`. It answers
|
|
3
|
+
* "is this a real HTML attribute for the rendered element?".
|
|
4
|
+
*/
|
|
5
|
+
export type TReqoreStyledPropValidator = (prop: string | number | symbol) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Builds a `shouldForwardProp` predicate for `styled(...).withConfig({ ... })` that keeps the
|
|
8
|
+
* named props out of the DOM while leaving every other prop to styled-components' own
|
|
9
|
+
* validator.
|
|
10
|
+
*
|
|
11
|
+
* Reqore layout flags (`fill`, `wrap`, ...) are meaningful to a parent — a `ReqoreControlGroup`
|
|
12
|
+
* propagates `fill` through polymorphic children, a `ReqoreTable` threads `wrap` into rows and
|
|
13
|
+
* cells — but they are not valid HTML attributes. Without this filter React renders them as
|
|
14
|
+
* boolean attributes and logs a "received `true` for a non-boolean attribute" warning.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const StyledPanel = styled(StyledEffect).withConfig({
|
|
18
|
+
* shouldForwardProp: omitStyleProps('fill'),
|
|
19
|
+
* })<IStyledPanel>`...`;
|
|
20
|
+
*/
|
|
21
|
+
export declare const omitStyleProps: (...propsToOmit: string[]) => (prop: string | number | symbol, defaultValidatorFn: TReqoreStyledPropValidator) => boolean;
|
|
22
|
+
//# sourceMappingURL=styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../src/helpers/styled.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,KAAK,OAAO,CAAC;AAErF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,GAAI,GAAG,aAAa,MAAM,EAAE,MAG7C,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,oBAAoB,0BAA0B,KAAG,OAE1F,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.omitStyleProps = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Builds a `shouldForwardProp` predicate for `styled(...).withConfig({ ... })` that keeps the
|
|
6
|
+
* named props out of the DOM while leaving every other prop to styled-components' own
|
|
7
|
+
* validator.
|
|
8
|
+
*
|
|
9
|
+
* Reqore layout flags (`fill`, `wrap`, ...) are meaningful to a parent — a `ReqoreControlGroup`
|
|
10
|
+
* propagates `fill` through polymorphic children, a `ReqoreTable` threads `wrap` into rows and
|
|
11
|
+
* cells — but they are not valid HTML attributes. Without this filter React renders them as
|
|
12
|
+
* boolean attributes and logs a "received `true` for a non-boolean attribute" warning.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* const StyledPanel = styled(StyledEffect).withConfig({
|
|
16
|
+
* shouldForwardProp: omitStyleProps('fill'),
|
|
17
|
+
* })<IStyledPanel>`...`;
|
|
18
|
+
*/
|
|
19
|
+
var omitStyleProps = function () {
|
|
20
|
+
var propsToOmit = [];
|
|
21
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
22
|
+
propsToOmit[_i] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
var omitted = new Set(propsToOmit);
|
|
25
|
+
return function (prop, defaultValidatorFn) {
|
|
26
|
+
return !omitted.has(prop) && defaultValidatorFn(prop);
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.omitStyleProps = omitStyleProps;
|
|
30
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../src/helpers/styled.ts"],"names":[],"mappings":";;;AAMA;;;;;;;;;;;;;;GAcG;AACI,IAAM,cAAc,GAAG;IAAC,qBAAwB;SAAxB,UAAwB,EAAxB,qBAAwB,EAAxB,IAAwB;QAAxB,gCAAwB;;IACrD,IAAM,OAAO,GAAG,IAAI,GAAG,CAA2B,WAAW,CAAC,CAAC;IAE/D,OAAO,UAAC,IAA8B,EAAE,kBAA8C;QACpF,OAAA,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,kBAAkB,CAAC,IAAI,CAAC;IAA9C,CAA8C,CAAC;AACnD,CAAC,CAAC;AALW,QAAA,cAAc,kBAKzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoretechnologies/reqore",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.19",
|
|
4
4
|
"description": "ReQore is a highly theme-able and modular UI library for React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@docusaurus/core": "^3.6.0",
|
|
49
49
|
"@docusaurus/preset-classic": "^3.6.0",
|
|
50
|
-
"@qoretechnologies/qlip": "^0.1.3-beta.
|
|
50
|
+
"@qoretechnologies/qlip": "^0.1.3-beta.20260724071501",
|
|
51
51
|
"@storybook/addon-docs": "^10.4.3",
|
|
52
52
|
"@storybook/addon-links": "^10.4.3",
|
|
53
53
|
"@storybook/addon-vitest": "^10.4.3",
|