@fluentui/react-switch 0.0.0-nightly-20230223-0420.1 → 0.0.0-nightly-20230223-2115.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/.swcrc +33 -0
- package/CHANGELOG.json +15 -15
- package/CHANGELOG.md +10 -10
- package/lib/Switch.js.map +1 -1
- package/lib/SwitchField.js.map +1 -1
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/Switch/Switch.types.js +1 -1
- package/lib/components/Switch/Switch.types.js.map +1 -1
- package/lib/components/Switch/index.js.map +1 -1
- package/lib/components/Switch/renderSwitch.js +2 -11
- package/lib/components/Switch/renderSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitch.js +5 -3
- package/lib/components/Switch/useSwitch.js.map +1 -1
- package/lib/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib/components/SwitchField/SwitchField.js +1 -2
- package/lib/components/SwitchField/SwitchField.js.map +1 -1
- package/lib/components/SwitchField/index.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Switch.js +5 -4
- package/lib-commonjs/Switch.js.map +1 -1
- package/lib-commonjs/SwitchField.js +5 -4
- package/lib-commonjs/SwitchField.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.js +16 -15
- package/lib-commonjs/components/Switch/Switch.js.map +1 -1
- package/lib-commonjs/components/Switch/Switch.types.js +5 -2
- package/lib-commonjs/components/Switch/Switch.types.js.map +1 -1
- package/lib-commonjs/components/Switch/index.js +9 -8
- package/lib-commonjs/components/Switch/index.js.map +1 -1
- package/lib-commonjs/components/Switch/renderSwitch.js +16 -29
- package/lib-commonjs/components/Switch/renderSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitch.js +78 -85
- package/lib-commonjs/components/Switch/useSwitch.js.map +1 -1
- package/lib-commonjs/components/Switch/useSwitchStyles.js +176 -89
- package/lib-commonjs/components/Switch/useSwitchStyles.js.map +1 -1
- package/lib-commonjs/components/SwitchField/SwitchField.js +17 -11
- package/lib-commonjs/components/SwitchField/SwitchField.js.map +1 -1
- package/lib-commonjs/components/SwitchField/index.js +5 -4
- package/lib-commonjs/components/SwitchField/index.js.map +1 -1
- package/lib-commonjs/index.js +23 -56
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +9 -9
@@ -1,8 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
3
|
+
value: true
|
5
4
|
});
|
6
|
-
const
|
7
|
-
|
5
|
+
const _exportStar = require("@swc/helpers/lib/_export_star.js").default;
|
6
|
+
_exportStar(require("./SwitchField"), exports);
|
7
|
+
//# sourceMappingURL=index.js.map
|
8
|
+
|
8
9
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../../../lib/components/SwitchField/index.js"],"sourcesContent":["export * from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;oBAAc;CACd,iCAAiC"}
|
package/lib-commonjs/index.js
CHANGED
@@ -1,59 +1,26 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
2
|
Object.defineProperty(exports, "__esModule", {
|
4
|
-
|
5
|
-
});
|
6
|
-
|
7
|
-
var
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
Object.defineProperty(exports, "switchClassNames", {
|
28
|
-
enumerable: true,
|
29
|
-
get: function () {
|
30
|
-
return Switch_1.switchClassNames;
|
31
|
-
}
|
32
|
-
});
|
33
|
-
Object.defineProperty(exports, "useSwitchStyles_unstable", {
|
34
|
-
enumerable: true,
|
35
|
-
get: function () {
|
36
|
-
return Switch_1.useSwitchStyles_unstable;
|
37
|
-
}
|
38
|
-
});
|
39
|
-
Object.defineProperty(exports, "useSwitch_unstable", {
|
40
|
-
enumerable: true,
|
41
|
-
get: function () {
|
42
|
-
return Switch_1.useSwitch_unstable;
|
43
|
-
}
|
44
|
-
});
|
45
|
-
// eslint-disable-next-line deprecation/deprecation
|
46
|
-
var SwitchField_1 = /*#__PURE__*/require("./SwitchField");
|
47
|
-
Object.defineProperty(exports, "SwitchField_unstable", {
|
48
|
-
enumerable: true,
|
49
|
-
get: function () {
|
50
|
-
return SwitchField_1.SwitchField;
|
51
|
-
}
|
52
|
-
});
|
53
|
-
Object.defineProperty(exports, "switchFieldClassNames", {
|
54
|
-
enumerable: true,
|
55
|
-
get: function () {
|
56
|
-
return SwitchField_1.switchFieldClassNames;
|
57
|
-
}
|
58
|
-
});
|
3
|
+
value: true
|
4
|
+
});
|
5
|
+
function _export(target, all) {
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
7
|
+
enumerable: true,
|
8
|
+
get: all[name]
|
9
|
+
});
|
10
|
+
}
|
11
|
+
_export(exports, {
|
12
|
+
Switch: ()=>_switch.Switch,
|
13
|
+
renderSwitch_unstable: ()=>_switch.renderSwitch_unstable,
|
14
|
+
// eslint-disable-next-line deprecation/deprecation
|
15
|
+
switchClassName: ()=>_switch.switchClassName,
|
16
|
+
switchClassNames: ()=>_switch.switchClassNames,
|
17
|
+
useSwitchStyles_unstable: ()=>_switch.useSwitchStyles_unstable,
|
18
|
+
useSwitch_unstable: ()=>_switch.useSwitch_unstable,
|
19
|
+
SwitchField_unstable: ()=>_switchField.SwitchField,
|
20
|
+
switchFieldClassNames: ()=>_switchField.switchFieldClassNames
|
21
|
+
});
|
22
|
+
const _switch = require("./Switch");
|
23
|
+
const _switchField = require("./SwitchField");
|
24
|
+
//# sourceMappingURL=index.js.map
|
25
|
+
|
59
26
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"
|
1
|
+
{"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Switch, renderSwitch_unstable,\n// eslint-disable-next-line deprecation/deprecation\nswitchClassName, switchClassNames, useSwitchStyles_unstable, useSwitch_unstable } from './Switch';\n// eslint-disable-next-line deprecation/deprecation\nexport { SwitchField as SwitchField_unstable, switchFieldClassNames } from './SwitchField';\n//# sourceMappingURL=index.js.map"],"names":["Switch","renderSwitch_unstable","switchClassName","switchClassNames","useSwitchStyles_unstable","useSwitch_unstable","SwitchField_unstable","SwitchField","switchFieldClassNames"],"mappings":";;;;;;;;;;;IAASA,MAAM,MAANA,cAAM;IAAEC,qBAAqB,MAArBA,6BAAqB;IACtC,mDAAmD;IACnDC,eAAe,MAAfA,uBAAe;IAAEC,gBAAgB,MAAhBA,wBAAgB;IAAEC,wBAAwB,MAAxBA,gCAAwB;IAAEC,kBAAkB,MAAlBA,0BAAkB;IAEvDC,oBAAoB,MAAnCC,wBAAW;IAA0BC,qBAAqB,MAArBA,kCAAqB;;wBAFoB;6BAEZ;CAC3E,iCAAiC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fluentui/react-switch",
|
3
|
-
"version": "0.0.0-nightly-20230223-
|
3
|
+
"version": "0.0.0-nightly-20230223-2115.1",
|
4
4
|
"description": "Fluent UI React Switch component.",
|
5
5
|
"main": "lib-commonjs/index.js",
|
6
6
|
"module": "lib/index.js",
|
@@ -22,24 +22,24 @@
|
|
22
22
|
"test": "jest --passWithNoTests",
|
23
23
|
"storybook": "start-storybook",
|
24
24
|
"type-check": "tsc -b tsconfig.json",
|
25
|
-
"generate-api": "
|
25
|
+
"generate-api": "just-scripts generate-api"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"@fluentui/eslint-plugin": "*",
|
29
29
|
"@fluentui/react-conformance": "*",
|
30
|
-
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230223-
|
30
|
+
"@fluentui/react-conformance-griffel": "0.0.0-nightly-20230223-2115.1",
|
31
31
|
"@fluentui/scripts-api-extractor": "*",
|
32
32
|
"@fluentui/scripts-tasks": "*"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@fluentui/react-field": "0.0.0-nightly-20230223-
|
35
|
+
"@fluentui/react-field": "0.0.0-nightly-20230223-2115.1",
|
36
36
|
"@fluentui/react-icons": "^2.0.175",
|
37
|
-
"@fluentui/react-label": "0.0.0-nightly-20230223-
|
38
|
-
"@fluentui/react-tabster": "0.0.0-nightly-20230223-
|
39
|
-
"@fluentui/react-theme": "0.0.0-nightly-20230223-
|
40
|
-
"@fluentui/react-utilities": "0.0.0-nightly-20230223-
|
37
|
+
"@fluentui/react-label": "0.0.0-nightly-20230223-2115.1",
|
38
|
+
"@fluentui/react-tabster": "0.0.0-nightly-20230223-2115.1",
|
39
|
+
"@fluentui/react-theme": "0.0.0-nightly-20230223-2115.1",
|
40
|
+
"@fluentui/react-utilities": "0.0.0-nightly-20230223-2115.1",
|
41
41
|
"@griffel/react": "^1.5.2",
|
42
|
-
"
|
42
|
+
"@swc/helpers": "^0.4.14"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
45
|
"@types/react": ">=16.8.0 <19.0.0",
|