@digigov/react-core 1.2.0-mobile → 1.2.0-mobile-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/Base/compat/Input/CheckboxInput/index.js +2 -17
- package/Base/compat/Input/CheckboxInput.js.map +2 -2
- package/Base/compat/Input/RadioInput/index.js +5 -21
- package/Base/compat/Input/RadioInput.js.map +2 -2
- package/Base/compat/Input/StringInput/index.js +3 -2
- package/Base/compat/Input/StringInput.js.map +2 -2
- package/Base/compat/button/index.js +25 -0
- package/Base/compat/button/package.json +6 -0
- package/Base/compat/button.js.map +7 -0
- package/Base/index.native/index.js +6 -40
- package/Base/index.native.js.map +3 -3
- package/Base/mapping/index.js +4 -16
- package/Base/mapping.js.map +2 -2
- package/Base/utils/index.js +52 -1
- package/Base/utils.d.ts +2 -0
- package/Base/utils.js.map +3 -3
- package/CheckboxItem/index.js +2 -15
- package/CheckboxItem/index.js.map +2 -2
- package/CheckboxItemInput/index.d.ts +2 -0
- package/CheckboxItemInput/index.js +6 -0
- package/CheckboxItemInput/index.js.map +7 -0
- package/CheckboxItemInput/index.native/index.js +15 -0
- package/CheckboxItemInput/index.native/package.json +6 -0
- package/CheckboxItemInput/index.native.d.ts +5 -0
- package/CheckboxItemInput/index.native.js.map +7 -0
- package/CheckboxItemInput/index.web/index.js +26 -0
- package/CheckboxItemInput/index.web/package.json +6 -0
- package/CheckboxItemInput/index.web.d.ts +10 -0
- package/CheckboxItemInput/index.web.js.map +7 -0
- package/CheckboxItemInput/package.json +6 -0
- package/CopyToClipboardContainer/index.d.ts +2 -31
- package/CopyToClipboardContainer/index.js +3 -40
- package/CopyToClipboardContainer/index.js.map +3 -3
- package/CopyToClipboardContainer/index.web/index.js +44 -0
- package/CopyToClipboardContainer/index.web/package.json +6 -0
- package/CopyToClipboardContainer/index.web.d.ts +31 -0
- package/CopyToClipboardContainer/index.web.js.map +7 -0
- package/CopyToClipboardMessage/index.d.ts +2 -18
- package/CopyToClipboardMessage/index.js +3 -21
- package/CopyToClipboardMessage/index.js.map +3 -3
- package/CopyToClipboardMessage/index.native/index.js +21 -0
- package/CopyToClipboardMessage/index.native/package.json +6 -0
- package/CopyToClipboardMessage/index.native.d.ts +7 -0
- package/CopyToClipboardMessage/index.native.js.map +7 -0
- package/CopyToClipboardMessage/index.web/index.js +24 -0
- package/CopyToClipboardMessage/index.web/package.json +6 -0
- package/CopyToClipboardMessage/index.web.d.ts +18 -0
- package/CopyToClipboardMessage/index.web.js.map +7 -0
- package/TextInput/index.d.ts +2 -46
- package/TextInput/index.js +3 -40
- package/TextInput/index.js.map +3 -3
- package/TextInput/index.native/index.js +15 -0
- package/TextInput/index.native/package.json +6 -0
- package/TextInput/index.native.d.ts +5 -0
- package/TextInput/index.native.js.map +7 -0
- package/TextInput/index.web/index.js +43 -0
- package/TextInput/index.web/package.json +6 -0
- package/TextInput/index.web.d.ts +46 -0
- package/TextInput/index.web.js.map +7 -0
- package/cjs/Base/compat/Input/CheckboxInput/index.js +1 -16
- package/cjs/Base/compat/Input/CheckboxInput.js.map +2 -2
- package/cjs/Base/compat/Input/RadioInput/index.js +4 -20
- package/cjs/Base/compat/Input/RadioInput.js.map +2 -2
- package/cjs/Base/compat/Input/StringInput/index.js +3 -2
- package/cjs/Base/compat/Input/StringInput.js.map +2 -2
- package/cjs/Base/compat/button/index.js +60 -0
- package/cjs/Base/compat/button.js.map +7 -0
- package/cjs/Base/index.native/index.js +5 -39
- package/cjs/Base/index.native.js.map +3 -3
- package/cjs/Base/mapping/index.js +2 -14
- package/cjs/Base/mapping.js.map +3 -3
- package/cjs/Base/utils/index.js +54 -2
- package/cjs/Base/utils.js.map +4 -4
- package/cjs/CheckboxItem/index.js +2 -15
- package/cjs/CheckboxItem/index.js.map +3 -3
- package/cjs/CheckboxItemInput/index.js +40 -0
- package/cjs/CheckboxItemInput/index.js.map +7 -0
- package/cjs/CheckboxItemInput/index.native/index.js +48 -0
- package/cjs/CheckboxItemInput/index.native.js.map +7 -0
- package/cjs/CheckboxItemInput/index.web/index.js +59 -0
- package/cjs/CheckboxItemInput/index.web.js.map +7 -0
- package/cjs/CopyToClipboardContainer/index.js +5 -41
- package/cjs/CopyToClipboardContainer/index.js.map +3 -3
- package/cjs/CopyToClipboardContainer/index.web/index.js +77 -0
- package/cjs/CopyToClipboardContainer/index.web.js.map +7 -0
- package/cjs/CopyToClipboardMessage/index.js +5 -22
- package/cjs/CopyToClipboardMessage/index.js.map +3 -3
- package/cjs/CopyToClipboardMessage/index.native/index.js +54 -0
- package/cjs/CopyToClipboardMessage/index.native.js.map +7 -0
- package/cjs/CopyToClipboardMessage/index.web/index.js +57 -0
- package/cjs/CopyToClipboardMessage/index.web.js.map +7 -0
- package/cjs/TextInput/index.js +5 -41
- package/cjs/TextInput/index.js.map +3 -3
- package/cjs/TextInput/index.native/index.js +48 -0
- package/cjs/TextInput/index.native.js.map +7 -0
- package/cjs/TextInput/index.web/index.js +76 -0
- package/cjs/TextInput/index.web.js.map +7 -0
- package/package.json +4 -2
- package/src/Base/compat/Input/CheckboxInput.tsx +6 -22
- package/src/Base/compat/Input/RadioInput.tsx +6 -25
- package/src/Base/compat/Input/StringInput.tsx +12 -5
- package/src/Base/compat/button.tsx +21 -0
- package/src/Base/index.native.tsx +132 -155
- package/src/Base/mapping.tsx +3 -14
- package/src/Base/{utils.ts → utils.tsx} +63 -1
- package/src/CheckboxItem/index.tsx +2 -12
- package/src/CheckboxItemInput/index.native.tsx +10 -0
- package/src/CheckboxItemInput/index.tsx +2 -0
- package/src/CheckboxItemInput/index.web.tsx +34 -0
- package/src/CopyToClipboardContainer/index.tsx +2 -74
- package/src/CopyToClipboardContainer/index.web.tsx +75 -0
- package/src/CopyToClipboardMessage/index.native.tsx +24 -0
- package/src/CopyToClipboardMessage/index.tsx +2 -41
- package/src/CopyToClipboardMessage/index.web.tsx +41 -0
- package/src/TextInput/index.native.tsx +10 -0
- package/src/TextInput/index.tsx +2 -87
- package/src/TextInput/index.web.tsx +87 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var CheckboxItemInput_exports = {};
|
|
30
|
+
__export(CheckboxItemInput_exports, {
|
|
31
|
+
default: () => import_CheckboxItemInput.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(CheckboxItemInput_exports);
|
|
34
|
+
__reExport(CheckboxItemInput_exports, require("@digigov/react-core/CheckboxItemInput/index.web"), module.exports);
|
|
35
|
+
var import_CheckboxItemInput = __toESM(require("@digigov/react-core/CheckboxItemInput/index.web"));
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
...require("@digigov/react-core/CheckboxItemInput/index.web")
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CheckboxItemInput/index.tsx"],
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/CheckboxItemInput/index.web';\nexport { default as default } from '@digigov/react-core/CheckboxItemInput/index.web';"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sCAAc,4DAAd;AACA,+BAAmC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_native_exports = {};
|
|
29
|
+
__export(index_native_exports, {
|
|
30
|
+
CheckboxItemInput: () => CheckboxItemInput,
|
|
31
|
+
default: () => index_native_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
34
|
+
var import_extend = __toESM(require("@digigov/react-core/utils/extend"));
|
|
35
|
+
var import_CheckboxItemInput = __toESM(require("@digigov/react-core/CheckboxItemInput/index.web"));
|
|
36
|
+
var import_clsx = __toESM(require("clsx"));
|
|
37
|
+
const CheckboxItemInput = (0, import_extend.default)(import_CheckboxItemInput.default, ({ className, ...props }) => ({
|
|
38
|
+
...props,
|
|
39
|
+
className: (0, import_clsx.default)(className, {
|
|
40
|
+
"ds-checkboxes__input__wrapper": true
|
|
41
|
+
})
|
|
42
|
+
}));
|
|
43
|
+
var index_native_default = CheckboxItemInput;
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
CheckboxItemInput
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CheckboxItemInput/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import extend from '@digigov/react-core/utils/extend';\nimport CoreCheckboxItemInput from '@digigov/react-core/CheckboxItemInput/index.web';\nimport clsx from 'clsx';\nexport const CheckboxItemInput = extend(CoreCheckboxItemInput, ({ className, ...props }) => ({\n ...props,\n className: clsx(className, {\n 'ds-checkboxes__input__wrapper': true\n })\n}))\nexport default CheckboxItemInput;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAmB;AACnB,+BAAkC;AAClC,kBAAiB;AACV,MAAM,wBAAoB,cAAAA,SAAO,yBAAAC,SAAuB,CAAC,EAAE,WAAW,GAAG,MAAM,OAAO;AAAA,EACzF,GAAG;AAAA,EACH,eAAW,YAAAC,SAAK,WAAW;AAAA,IACvB,iCAAiC;AAAA,EACrC,CAAC;AACL,EAAE;AACF,IAAO,uBAAQ;",
|
|
6
|
+
"names": ["extend", "CoreCheckboxItemInput", "clsx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_web_exports = {};
|
|
29
|
+
__export(index_web_exports, {
|
|
30
|
+
CheckboxItemInput: () => CheckboxItemInput,
|
|
31
|
+
default: () => index_web_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_web_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_clsx = __toESM(require("clsx"));
|
|
36
|
+
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
+
const CheckboxItemInput = import_react.default.forwardRef(function CheckboxItemInput2({ name, value, className, disabled, children, ...props }, ref) {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
+
import_Base.default,
|
|
40
|
+
{
|
|
41
|
+
as: "input",
|
|
42
|
+
ref,
|
|
43
|
+
type: "checkbox",
|
|
44
|
+
name,
|
|
45
|
+
value,
|
|
46
|
+
className: (0, import_clsx.default)({
|
|
47
|
+
"ds-checkboxes__input": true
|
|
48
|
+
}),
|
|
49
|
+
disabled,
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
var index_web_default = CheckboxItemInput;
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
CheckboxItemInput
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CheckboxItemInput/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CheckboxItemInputProps extends BaseProps<'input'> { }\n/**\n * Details for the CheckboxItem.\n * CheckboxItemInput component is the input component for CheckboxItem.\n */\nexport const CheckboxItemInput = React.forwardRef<\n HTMLInputElement,\n CheckboxItemInputProps\n>(function CheckboxItemInput(\n { name, value, className, disabled, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"input\"\n ref={ref}\n type=\"checkbox\"\n name={name}\n value={value}\n className={clsx({\n 'ds-checkboxes__input': true,\n })}\n disabled={disabled}\n {...props}\n />\n\n );\n});\n\nexport default CheckboxItemInput;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAOzB,MAAM,oBAAoB,aAAAA,QAAM,WAGrC,SAASC,mBACT,EAAE,MAAM,OAAO,WAAW,UAAU,UAAU,GAAG,MAAM,GACvD,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,eAAW,YAAAC,SAAK;AAAA,QACd,wBAAwB;AAAA,MAC1B,CAAC;AAAA,MACD;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAGJ,CAAC;AAED,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["React", "CheckboxItemInput", "Base", "clsx"]
|
|
7
|
+
}
|
|
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -27,50 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
29
|
var CopyToClipboardContainer_exports = {};
|
|
29
30
|
__export(CopyToClipboardContainer_exports, {
|
|
30
|
-
|
|
31
|
-
default: () => CopyToClipboardContainer_default
|
|
31
|
+
default: () => import_CopyToClipboardContainer.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(CopyToClipboardContainer_exports);
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
-
const CopyToClipboardContainer = import_react.default.forwardRef(function CopyToClipboardContainer2({
|
|
38
|
-
variant = "tooltip",
|
|
39
|
-
tooltipAlign = "right",
|
|
40
|
-
className,
|
|
41
|
-
dense,
|
|
42
|
-
children,
|
|
43
|
-
...props
|
|
44
|
-
}, ref) {
|
|
45
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
-
import_Base.default,
|
|
47
|
-
{
|
|
48
|
-
as: "div",
|
|
49
|
-
ref,
|
|
50
|
-
...props,
|
|
51
|
-
className: (0, import_clsx.default)(className, {
|
|
52
|
-
"ds-copy-to-clipboard": true
|
|
53
|
-
}),
|
|
54
|
-
...props
|
|
55
|
-
},
|
|
56
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
57
|
-
"div",
|
|
58
|
-
{
|
|
59
|
-
className: (0, import_clsx.default)(className, {
|
|
60
|
-
"ds-copy-to-clipboard__tooltip": variant === "tooltip",
|
|
61
|
-
"ds-copy-to-clipboard__tooltip--dense": variant === "tooltip" && dense,
|
|
62
|
-
"ds-copy-to-clipboard__tooltip--left": variant === "tooltip" && tooltipAlign === "left",
|
|
63
|
-
"ds-copy-to-clipboard__tooltip--right": variant === "tooltip" && tooltipAlign === "right",
|
|
64
|
-
"ds-copy-to-clipboard__banner": variant === "banner"
|
|
65
|
-
})
|
|
66
|
-
},
|
|
67
|
-
children
|
|
68
|
-
)
|
|
69
|
-
);
|
|
70
|
-
});
|
|
71
|
-
var CopyToClipboardContainer_default = CopyToClipboardContainer;
|
|
34
|
+
__reExport(CopyToClipboardContainer_exports, require("@digigov/react-core/CopyToClipboardContainer/index.web"), module.exports);
|
|
35
|
+
var import_CopyToClipboardContainer = __toESM(require("@digigov/react-core/CopyToClipboardContainer/index.web"));
|
|
72
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
37
|
0 && (module.exports = {
|
|
74
|
-
CopyToClipboardContainer
|
|
38
|
+
...require("@digigov/react-core/CopyToClipboardContainer/index.web")
|
|
75
39
|
});
|
|
76
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/CopyToClipboardContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/CopyToClipboardContainer/index.web';\nexport { default as default } from '@digigov/react-core/CopyToClipboardContainer/index.web';"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6CAAc,mEAAd;AACA,sCAAmC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_web_exports = {};
|
|
29
|
+
__export(index_web_exports, {
|
|
30
|
+
CopyToClipboardContainer: () => CopyToClipboardContainer,
|
|
31
|
+
default: () => index_web_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_web_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_clsx = __toESM(require("clsx"));
|
|
36
|
+
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
+
const CopyToClipboardContainer = import_react.default.forwardRef(function CopyToClipboardContainer2({
|
|
38
|
+
variant = "tooltip",
|
|
39
|
+
tooltipAlign = "right",
|
|
40
|
+
className,
|
|
41
|
+
dense,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) {
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
+
import_Base.default,
|
|
47
|
+
{
|
|
48
|
+
as: "div",
|
|
49
|
+
ref,
|
|
50
|
+
...props,
|
|
51
|
+
className: (0, import_clsx.default)(className, {
|
|
52
|
+
"ds-copy-to-clipboard": true
|
|
53
|
+
}),
|
|
54
|
+
...props
|
|
55
|
+
},
|
|
56
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
import_Base.default,
|
|
58
|
+
{
|
|
59
|
+
as: "div",
|
|
60
|
+
className: (0, import_clsx.default)(className, {
|
|
61
|
+
"ds-copy-to-clipboard__tooltip": variant === "tooltip",
|
|
62
|
+
"ds-copy-to-clipboard__tooltip--dense": variant === "tooltip" && dense,
|
|
63
|
+
"ds-copy-to-clipboard__tooltip--left": variant === "tooltip" && tooltipAlign === "left",
|
|
64
|
+
"ds-copy-to-clipboard__tooltip--right": variant === "tooltip" && tooltipAlign === "right",
|
|
65
|
+
"ds-copy-to-clipboard__banner": variant === "banner"
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
children
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
var index_web_default = CopyToClipboardContainer;
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
CopyToClipboardContainer
|
|
76
|
+
});
|
|
77
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CopyToClipboardContainer/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CopyToClipboardContainerProps extends BaseProps<'div'> {\n /**\n * @value 'tooltip' is used when you want to show the message inside a tooltip.\n * @value 'banner' is used when you want to show the message inside a banner.\n * @default 'tooltip'\n */\n variant?: 'tooltip' | 'banner';\n /**\n * tooltipAlign is optional.\n * tooltipAlign prop adds tooltip right or left and is used only if variant is tooltip.\n * @value 'right'\n * @value 'left'\n * @default 'right'\n */\n tooltipAlign?: 'right' | 'left';\n /**\n * dense is optional.\n * affects only the density of the tooltip.\n * @value true tooltip will be dense.\n * @value false\n * @default false\n * */\n dense?: boolean;\n}\n/**\n * CopyToClipboardContainer is a wrapper component for CopyToClipboardMessage\n */\nexport const CopyToClipboardContainer = React.forwardRef<\n HTMLDivElement,\n CopyToClipboardContainerProps\n>(function CopyToClipboardContainer(\n {\n variant = 'tooltip',\n tooltipAlign = 'right',\n className,\n dense,\n children,\n ...props\n },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n {...props}\n className={clsx(className, {\n 'ds-copy-to-clipboard': true,\n })}\n {...props}\n >\n <Base\n as=\"div\"\n className={clsx(className, {\n 'ds-copy-to-clipboard__tooltip': variant === 'tooltip',\n 'ds-copy-to-clipboard__tooltip--dense':\n variant === 'tooltip' && dense,\n 'ds-copy-to-clipboard__tooltip--left':\n variant === 'tooltip' && tooltipAlign === 'left',\n 'ds-copy-to-clipboard__tooltip--right':\n variant === 'tooltip' && tooltipAlign === 'right',\n 'ds-copy-to-clipboard__banner': variant === 'banner',\n })}\n >\n {children}\n </Base>\n </Base>\n );\n});\n\nexport default CopyToClipboardContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AA6BzB,MAAM,2BAA2B,aAAAA,QAAM,WAG5C,SAASC,0BACT;AAAA,EACE,UAAU;AAAA,EACV,eAAe;AAAA,EACf;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACC,GAAG;AAAA,MACJ,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEJ,6BAAAH,QAAA;AAAA,MAAC,YAAAE;AAAA,MAAA;AAAA,QACC,IAAG;AAAA,QACH,eAAW,YAAAC,SAAK,WAAW;AAAA,UACzB,iCAAiC,YAAY;AAAA,UAC7C,wCACE,YAAY,aAAa;AAAA,UAC3B,uCACE,YAAY,aAAa,iBAAiB;AAAA,UAC5C,wCACE,YAAY,aAAa,iBAAiB;AAAA,UAC5C,gCAAgC,YAAY;AAAA,QAC9C,CAAC;AAAA;AAAA,MAEA;AAAA,IACH;AAAA,EACF;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["React", "CopyToClipboardContainer", "Base", "clsx"]
|
|
7
|
+
}
|
|
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -27,31 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
29
|
var CopyToClipboardMessage_exports = {};
|
|
29
30
|
__export(CopyToClipboardMessage_exports, {
|
|
30
|
-
|
|
31
|
-
default: () => CopyToClipboardMessage_default
|
|
31
|
+
default: () => import_CopyToClipboardMessage.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(CopyToClipboardMessage_exports);
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
-
const CopyToClipboardMessage = import_react.default.forwardRef(function CopyToClipboardMessage2({ enabled, className, children, ...props }, ref) {
|
|
38
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
-
import_Base.default,
|
|
40
|
-
{
|
|
41
|
-
as: "div",
|
|
42
|
-
ref,
|
|
43
|
-
className: (0, import_clsx.default)(className, {
|
|
44
|
-
"ds-copy-to-clipboard__message": true,
|
|
45
|
-
"ds-copy-to-clipboard--hidden": !enabled
|
|
46
|
-
}),
|
|
47
|
-
...props
|
|
48
|
-
},
|
|
49
|
-
children
|
|
50
|
-
);
|
|
51
|
-
});
|
|
52
|
-
var CopyToClipboardMessage_default = CopyToClipboardMessage;
|
|
34
|
+
__reExport(CopyToClipboardMessage_exports, require("@digigov/react-core/CopyToClipboardMessage/index.web"), module.exports);
|
|
35
|
+
var import_CopyToClipboardMessage = __toESM(require("@digigov/react-core/CopyToClipboardMessage/index.web"));
|
|
53
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
54
37
|
0 && (module.exports = {
|
|
55
|
-
CopyToClipboardMessage
|
|
38
|
+
...require("@digigov/react-core/CopyToClipboardMessage/index.web")
|
|
56
39
|
});
|
|
57
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/CopyToClipboardMessage/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/CopyToClipboardMessage/index.web';\nexport { default as default } from '@digigov/react-core/CopyToClipboardMessage/index.web';"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2CAAc,iEAAd;AACA,oCAAmC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_native_exports = {};
|
|
29
|
+
__export(index_native_exports, {
|
|
30
|
+
CopyToClipboardMessage: () => CopyToClipboardMessage,
|
|
31
|
+
default: () => index_native_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
34
|
+
var import_CopyToClipboardMessage = __toESM(require("@digigov/react-core/CopyToClipboardMessage/index.web"));
|
|
35
|
+
var import_extend = require("@digigov/react-core/utils/extend");
|
|
36
|
+
var import_clsx = __toESM(require("clsx"));
|
|
37
|
+
const CopyToClipboardMessage = (0, import_extend.extend)(
|
|
38
|
+
import_CopyToClipboardMessage.default,
|
|
39
|
+
({ dense, className, ...props }) => {
|
|
40
|
+
return {
|
|
41
|
+
className: (0, import_clsx.default)(className, {
|
|
42
|
+
"ds-copy-to-clipboard__before": true,
|
|
43
|
+
"ds-copy-to-clipboard__message--dense": dense
|
|
44
|
+
}),
|
|
45
|
+
...props
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
var index_native_default = CopyToClipboardMessage;
|
|
50
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
+
0 && (module.exports = {
|
|
52
|
+
CopyToClipboardMessage
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CopyToClipboardMessage/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import CoreCopyToClipboardMessage, {\n CopyToClipboardMessageProps,\n} from '@digigov/react-core/CopyToClipboardMessage/index.web';\nimport { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboardContainer';\nimport { extend } from '@digigov/react-core/utils/extend';\nimport clsx from 'clsx';\n\nexport const CopyToClipboardMessage = extend<\n CopyToClipboardMessageProps,\n CopyToClipboardContainerProps\n>(\n CoreCopyToClipboardMessage,\n ({ dense, className, ...props }) => {\n return {\n className: clsx(className, {\n 'ds-copy-to-clipboard__before': true,\n 'ds-copy-to-clipboard__message--dense': dense,\n }),\n ...props,\n };\n }\n);\n\nexport default CopyToClipboardMessage;"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oCAEO;AAEP,oBAAuB;AACvB,kBAAiB;AAEV,MAAM,6BAAyB;AAAA,EAIpC,8BAAAA;AAAA,EACA,CAAC,EAAE,OAAO,WAAW,GAAG,MAAM,MAAM;AAClC,WAAO;AAAA,MACL,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,gCAAgC;AAAA,QAChC,wCAAwC;AAAA,MAC1C,CAAC;AAAA,MACD,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
|
|
6
|
+
"names": ["CoreCopyToClipboardMessage", "clsx"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_web_exports = {};
|
|
29
|
+
__export(index_web_exports, {
|
|
30
|
+
CopyToClipboardMessage: () => CopyToClipboardMessage,
|
|
31
|
+
default: () => index_web_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_web_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_clsx = __toESM(require("clsx"));
|
|
36
|
+
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
+
const CopyToClipboardMessage = import_react.default.forwardRef(function CopyToClipboardMessage2({ enabled, className, children, ...props }, ref) {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
39
|
+
import_Base.default,
|
|
40
|
+
{
|
|
41
|
+
as: "div",
|
|
42
|
+
ref,
|
|
43
|
+
className: (0, import_clsx.default)(className, {
|
|
44
|
+
"ds-copy-to-clipboard__message": true,
|
|
45
|
+
"ds-copy-to-clipboard--hidden": !enabled
|
|
46
|
+
}),
|
|
47
|
+
...props
|
|
48
|
+
},
|
|
49
|
+
children
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
var index_web_default = CopyToClipboardMessage;
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
CopyToClipboardMessage
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/CopyToClipboardMessage/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface CopyToClipboardMessageProps extends BaseProps<'div'> {\n /**\n * enabled is a boolean prop passed from the CopyToClipboard component.\n * When it's true it shows the CopyToClipboardMessage component and it activates the animation that hides the component after 3s.\n * When it's false it resets the animations of the CopyToClipboardMessage.\n * @value true\n * @value false\n */\n enabled?: boolean;\n}\n/**\n * CopyToClipboardMessage is used to show a message that a text is being copied.\n * This component is used inside the CopyToClipboard component that lies inside the digigov/ui library\n */\nexport const CopyToClipboardMessage = React.forwardRef<\n HTMLDivElement,\n CopyToClipboardMessageProps\n>(function CopyToClipboardMessage(\n { enabled, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-copy-to-clipboard__message': true,\n 'ds-copy-to-clipboard--hidden': !enabled,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default CopyToClipboardMessage;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAgBzB,MAAM,yBAAyB,aAAAA,QAAM,WAG1C,SAASC,wBACT,EAAE,SAAS,WAAW,UAAU,GAAG,MAAM,GACzC,KACA;AACA,SACE,6BAAAD,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,iCAAiC;AAAA,QACjC,gCAAgC,CAAC;AAAA,MACnC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["React", "CopyToClipboardMessage", "Base", "clsx"]
|
|
7
|
+
}
|
package/cjs/TextInput/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -27,50 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
29
|
var TextInput_exports = {};
|
|
29
30
|
__export(TextInput_exports, {
|
|
30
|
-
|
|
31
|
-
default: () => TextInput_default
|
|
31
|
+
default: () => import_TextInput.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(TextInput_exports);
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
var import_Base = __toESM(require("@digigov/react-core/Base"));
|
|
37
|
-
const TextInput = import_react.default.forwardRef(
|
|
38
|
-
function TextInput2({
|
|
39
|
-
type = "text",
|
|
40
|
-
maxWidth,
|
|
41
|
-
width,
|
|
42
|
-
error,
|
|
43
|
-
dense,
|
|
44
|
-
className,
|
|
45
|
-
children,
|
|
46
|
-
...props
|
|
47
|
-
}, ref) {
|
|
48
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
49
|
-
import_Base.default,
|
|
50
|
-
{
|
|
51
|
-
as: "input",
|
|
52
|
-
type,
|
|
53
|
-
ref,
|
|
54
|
-
className: (0, import_clsx.default)(className, {
|
|
55
|
-
"ds-input": true,
|
|
56
|
-
"ds-input--error": error,
|
|
57
|
-
"ds-input--dense": dense,
|
|
58
|
-
[`ds-input--width-${maxWidth}`]: maxWidth !== void 0,
|
|
59
|
-
"ds-!-width-one-quarter": width === "25%",
|
|
60
|
-
"ds-!-width-one-third": width === "33.3%",
|
|
61
|
-
"ds-!-width-one-half": width === "50%",
|
|
62
|
-
"ds-!-width-two-thirds": width === "66.6%",
|
|
63
|
-
"ds-!-width-three-quarters": width === "75%"
|
|
64
|
-
}),
|
|
65
|
-
...props
|
|
66
|
-
},
|
|
67
|
-
children
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
var TextInput_default = TextInput;
|
|
34
|
+
__reExport(TextInput_exports, require("@digigov/react-core/TextInput/index.web"), module.exports);
|
|
35
|
+
var import_TextInput = __toESM(require("@digigov/react-core/TextInput/index.web"));
|
|
72
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
73
37
|
0 && (module.exports = {
|
|
74
|
-
TextInput
|
|
38
|
+
...require("@digigov/react-core/TextInput/index.web")
|
|
75
39
|
});
|
|
76
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/TextInput/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/TextInput/index.web';\nexport { default as default } from '@digigov/react-core/TextInput/index.web';"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAc,oDAAd;AACA,uBAAmC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|