@narmi/design_system 3.58.1 → 3.60.0-beta.1
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.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +2 -2
- package/dist/style.css.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.js +140 -140
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/DisabledShim/index.d.ts +23 -0
- package/dist/types/DisabledShim/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
interface DisabledShimProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Disables any area of a page with a white overlay shim and the
|
|
9
|
+
* applicable `aria-disabled` value.
|
|
10
|
+
*/
|
|
11
|
+
declare const DisabledShim: {
|
|
12
|
+
({ isDisabled, children }: DisabledShimProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
propTypes: {
|
|
14
|
+
/**
|
|
15
|
+
* Sets disabled state over all `children` passed in.
|
|
16
|
+
*/
|
|
17
|
+
isDisabled: PropTypes.Requireable<boolean>;
|
|
18
|
+
/** Content that can be disabled */
|
|
19
|
+
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default DisabledShim;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DisabledShim/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,UAAU,iBAAiB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,QAAA,MAAM,YAAY;+BAAsC,iBAAiB;;QAcvE;;WAEG;;QAEH,mCAAmC;;;CAPpC,CAAC;AAcF,eAAe,YAAY,CAAC"}
|