@banyan_cloud/roots 1.0.114 → 1.0.116
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/cjs/index.js +182 -144
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +182 -144
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +182 -144
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5403,6 +5403,8 @@ var CheckboxIcon = {
|
|
|
5403
5403
|
var className = props.className;
|
|
5404
5404
|
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
5405
5405
|
className: className,
|
|
5406
|
+
width: "1.5rem",
|
|
5407
|
+
height: "1.5rem",
|
|
5406
5408
|
viewBox: "0 0 20 20",
|
|
5407
5409
|
fill: "none",
|
|
5408
5410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5412,7 +5414,7 @@ var CheckboxIcon = {
|
|
|
5412
5414
|
width: "19",
|
|
5413
5415
|
height: "19",
|
|
5414
5416
|
rx: "5.5",
|
|
5415
|
-
fill: "
|
|
5417
|
+
fill: "#EDF5FF"
|
|
5416
5418
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
5417
5419
|
d: "M14.6668 6.5L8.25016 12.9167L5.3335 10",
|
|
5418
5420
|
stroke: "#0F62FE",
|
|
@@ -5433,6 +5435,8 @@ var CheckboxIcon = {
|
|
|
5433
5435
|
var className = props.className;
|
|
5434
5436
|
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
5435
5437
|
className: className,
|
|
5438
|
+
width: "1.5rem",
|
|
5439
|
+
height: "1.5rem",
|
|
5436
5440
|
viewBox: "0 0 20 20",
|
|
5437
5441
|
fill: "none",
|
|
5438
5442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5449,7 +5453,39 @@ var CheckboxIcon = {
|
|
|
5449
5453
|
width: "19",
|
|
5450
5454
|
height: "19",
|
|
5451
5455
|
rx: "5.5",
|
|
5452
|
-
stroke: "#
|
|
5456
|
+
stroke: "#333333"
|
|
5457
|
+
})]
|
|
5458
|
+
});
|
|
5459
|
+
},
|
|
5460
|
+
Intermediate: function Intermediate(_ref) {
|
|
5461
|
+
var className = _ref.className;
|
|
5462
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
5463
|
+
className: className,
|
|
5464
|
+
width: "1.5rem",
|
|
5465
|
+
height: "1.5rem",
|
|
5466
|
+
viewBox: "0 0 20 20",
|
|
5467
|
+
fill: "none",
|
|
5468
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5469
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
5470
|
+
x: "0.5",
|
|
5471
|
+
y: "0.5",
|
|
5472
|
+
width: "19",
|
|
5473
|
+
height: "19",
|
|
5474
|
+
rx: "5.5",
|
|
5475
|
+
fill: "#EDF5FF"
|
|
5476
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
5477
|
+
d: "M5.9165 10H14.0832",
|
|
5478
|
+
stroke: "#0F62FE",
|
|
5479
|
+
strokeWidth: "2",
|
|
5480
|
+
strokeLinecap: "round",
|
|
5481
|
+
strokeLinejoin: "round"
|
|
5482
|
+
}), /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
5483
|
+
x: "0.5",
|
|
5484
|
+
y: "0.5",
|
|
5485
|
+
width: "19",
|
|
5486
|
+
height: "19",
|
|
5487
|
+
rx: "5.5",
|
|
5488
|
+
stroke: "#0F62FE"
|
|
5453
5489
|
})]
|
|
5454
5490
|
});
|
|
5455
5491
|
}
|
|
@@ -20694,134 +20730,126 @@ function c(Prism) {
|
|
|
20694
20730
|
delete Prism.languages.c['boolean'];
|
|
20695
20731
|
}
|
|
20696
20732
|
|
|
20697
|
-
var
|
|
20698
|
-
var
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20719
|
-
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20748
|
-
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
|
|
20752
|
-
|
|
20753
|
-
|
|
20754
|
-
|
|
20755
|
-
|
|
20756
|
-
|
|
20757
|
-
|
|
20758
|
-
|
|
20759
|
-
|
|
20760
|
-
|
|
20761
|
-
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
-
|
|
20773
|
-
|
|
20774
|
-
|
|
20775
|
-
|
|
20776
|
-
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
|
|
20780
|
-
|
|
20781
|
-
|
|
20782
|
-
|
|
20783
|
-
|
|
20784
|
-
|
|
20785
|
-
|
|
20786
|
-
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
|
|
20793
|
-
|
|
20794
|
-
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20798
|
-
|
|
20799
|
-
|
|
20800
|
-
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20812
|
-
|
|
20813
|
-
|
|
20814
|
-
// All untokenized words that are not namespaces should be class names
|
|
20815
|
-
'class-name': /\b[a-z_]\w*\b(?!\s*::)/i
|
|
20816
|
-
},
|
|
20817
|
-
Prism.languages.cpp['base-clause']
|
|
20818
|
-
);
|
|
20819
|
-
})(Prism);
|
|
20820
|
-
}
|
|
20821
|
-
return cpp_1;
|
|
20733
|
+
var refractorC$1 = c_1;
|
|
20734
|
+
var cpp_1 = cpp;
|
|
20735
|
+
cpp.displayName = 'cpp';
|
|
20736
|
+
cpp.aliases = [];
|
|
20737
|
+
function cpp(Prism) {
|
|
20738
|
+
Prism.register(refractorC$1)
|
|
20739
|
+
;(function (Prism) {
|
|
20740
|
+
var keyword =
|
|
20741
|
+
/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;
|
|
20742
|
+
var modName = /\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(
|
|
20743
|
+
/<keyword>/g,
|
|
20744
|
+
function () {
|
|
20745
|
+
return keyword.source
|
|
20746
|
+
}
|
|
20747
|
+
);
|
|
20748
|
+
Prism.languages.cpp = Prism.languages.extend('c', {
|
|
20749
|
+
'class-name': [
|
|
20750
|
+
{
|
|
20751
|
+
pattern: RegExp(
|
|
20752
|
+
/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(
|
|
20753
|
+
/<keyword>/g,
|
|
20754
|
+
function () {
|
|
20755
|
+
return keyword.source
|
|
20756
|
+
}
|
|
20757
|
+
)
|
|
20758
|
+
),
|
|
20759
|
+
lookbehind: true
|
|
20760
|
+
}, // This is intended to capture the class name of method implementations like:
|
|
20761
|
+
// void foo::bar() const {}
|
|
20762
|
+
// However! The `foo` in the above example could also be a namespace, so we only capture the class name if
|
|
20763
|
+
// it starts with an uppercase letter. This approximation should give decent results.
|
|
20764
|
+
/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/, // This will capture the class name before destructors like:
|
|
20765
|
+
// Foo::~Foo() {}
|
|
20766
|
+
/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i, // This also intends to capture the class name of method implementations but here the class has template
|
|
20767
|
+
// parameters, so it can't be a namespace (until C++ adds generic namespaces).
|
|
20768
|
+
/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/
|
|
20769
|
+
],
|
|
20770
|
+
keyword: keyword,
|
|
20771
|
+
number: {
|
|
20772
|
+
pattern:
|
|
20773
|
+
/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,
|
|
20774
|
+
greedy: true
|
|
20775
|
+
},
|
|
20776
|
+
operator:
|
|
20777
|
+
/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,
|
|
20778
|
+
boolean: /\b(?:false|true)\b/
|
|
20779
|
+
});
|
|
20780
|
+
Prism.languages.insertBefore('cpp', 'string', {
|
|
20781
|
+
module: {
|
|
20782
|
+
// https://en.cppreference.com/w/cpp/language/modules
|
|
20783
|
+
pattern: RegExp(
|
|
20784
|
+
/(\b(?:import|module)\s+)/.source +
|
|
20785
|
+
'(?:' + // header-name
|
|
20786
|
+
/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source +
|
|
20787
|
+
'|' + // module name or partition or both
|
|
20788
|
+
/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(
|
|
20789
|
+
/<mod-name>/g,
|
|
20790
|
+
function () {
|
|
20791
|
+
return modName
|
|
20792
|
+
}
|
|
20793
|
+
) +
|
|
20794
|
+
')'
|
|
20795
|
+
),
|
|
20796
|
+
lookbehind: true,
|
|
20797
|
+
greedy: true,
|
|
20798
|
+
inside: {
|
|
20799
|
+
string: /^[<"][\s\S]+/,
|
|
20800
|
+
operator: /:/,
|
|
20801
|
+
punctuation: /\./
|
|
20802
|
+
}
|
|
20803
|
+
},
|
|
20804
|
+
'raw-string': {
|
|
20805
|
+
pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,
|
|
20806
|
+
alias: 'string',
|
|
20807
|
+
greedy: true
|
|
20808
|
+
}
|
|
20809
|
+
});
|
|
20810
|
+
Prism.languages.insertBefore('cpp', 'keyword', {
|
|
20811
|
+
'generic-function': {
|
|
20812
|
+
pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,
|
|
20813
|
+
inside: {
|
|
20814
|
+
function: /^\w+/,
|
|
20815
|
+
generic: {
|
|
20816
|
+
pattern: /<[\s\S]+/,
|
|
20817
|
+
alias: 'class-name',
|
|
20818
|
+
inside: Prism.languages.cpp
|
|
20819
|
+
}
|
|
20820
|
+
}
|
|
20821
|
+
}
|
|
20822
|
+
});
|
|
20823
|
+
Prism.languages.insertBefore('cpp', 'operator', {
|
|
20824
|
+
'double-colon': {
|
|
20825
|
+
pattern: /::/,
|
|
20826
|
+
alias: 'punctuation'
|
|
20827
|
+
}
|
|
20828
|
+
});
|
|
20829
|
+
Prism.languages.insertBefore('cpp', 'class-name', {
|
|
20830
|
+
// the base clause is an optional list of parent classes
|
|
20831
|
+
// https://en.cppreference.com/w/cpp/language/class
|
|
20832
|
+
'base-clause': {
|
|
20833
|
+
pattern:
|
|
20834
|
+
/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,
|
|
20835
|
+
lookbehind: true,
|
|
20836
|
+
greedy: true,
|
|
20837
|
+
inside: Prism.languages.extend('cpp', {})
|
|
20838
|
+
}
|
|
20839
|
+
});
|
|
20840
|
+
Prism.languages.insertBefore(
|
|
20841
|
+
'inside',
|
|
20842
|
+
'double-colon',
|
|
20843
|
+
{
|
|
20844
|
+
// All untokenized words that are not namespaces should be class names
|
|
20845
|
+
'class-name': /\b[a-z_]\w*\b(?!\s*::)/i
|
|
20846
|
+
},
|
|
20847
|
+
Prism.languages.cpp['base-clause']
|
|
20848
|
+
);
|
|
20849
|
+
})(Prism);
|
|
20822
20850
|
}
|
|
20823
20851
|
|
|
20824
|
-
var refractorCpp$1 =
|
|
20852
|
+
var refractorCpp$1 = cpp_1;
|
|
20825
20853
|
var arduino_1 = arduino;
|
|
20826
20854
|
arduino.displayName = 'arduino';
|
|
20827
20855
|
arduino.aliases = ['ino'];
|
|
@@ -22831,7 +22859,7 @@ function cfscript(Prism) {
|
|
|
22831
22859
|
Prism.languages.cfc = Prism.languages['cfscript'];
|
|
22832
22860
|
}
|
|
22833
22861
|
|
|
22834
|
-
var refractorCpp =
|
|
22862
|
+
var refractorCpp = cpp_1;
|
|
22835
22863
|
var chaiscript_1 = chaiscript;
|
|
22836
22864
|
chaiscript.displayName = 'chaiscript';
|
|
22837
22865
|
chaiscript.aliases = [];
|
|
@@ -43063,7 +43091,7 @@ refractor.register(requireCobol());
|
|
|
43063
43091
|
refractor.register(requireCoffeescript());
|
|
43064
43092
|
refractor.register(requireConcurnas());
|
|
43065
43093
|
refractor.register(requireCoq());
|
|
43066
|
-
refractor.register(
|
|
43094
|
+
refractor.register(cpp_1);
|
|
43067
43095
|
refractor.register(requireCrystal());
|
|
43068
43096
|
refractor.register(requireCsharp());
|
|
43069
43097
|
refractor.register(requireCshtml());
|
|
@@ -44584,10 +44612,19 @@ TextField.defaultProps = {
|
|
|
44584
44612
|
onKeyDown: function onKeyDown() {}
|
|
44585
44613
|
};
|
|
44586
44614
|
|
|
44587
|
-
var css$V = ".
|
|
44588
|
-
var modules_066398a2 = {"root":"
|
|
44615
|
+
var css$V = ".CheckBox_module_root__b2c202fd {\n cursor: pointer;\n gap: 10px;\n color: var(--grey1);\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_positionLeft__b2c202fd {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_positionRight__b2c202fd {\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n.CheckBox_module_root__b2c202fd input[type=checkbox] {\n opacity: 0;\n z-index: 1;\n position: absolute;\n width: 1px;\n height: 1px;\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_disabled__b2c202fd {\n cursor: default;\n color: var(--grey4);\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_disabled__b2c202fd .CheckBox_module_icon__b2c202fd rect:nth-of-type(1) {\n fill: var(--grey10);\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_disabled__b2c202fd .CheckBox_module_icon__b2c202fd rect:nth-of-type(2) {\n stroke: var(--grey5);\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_disabled__b2c202fd .CheckBox_module_icon__b2c202fd path {\n stroke: var(--grey5);\n}\n.CheckBox_module_root__b2c202fd.CheckBox_module_selected__b2c202fd {\n color: var(--dark-grey);\n}\n.CheckBox_module_root__b2c202fd:hover:not(.CheckBox_module_disabled__b2c202fd) {\n color: var(--dark-grey);\n}\n.CheckBox_module_root__b2c202fd:hover:not(.CheckBox_module_disabled__b2c202fd) .CheckBox_module_icon__b2c202fd rect:nth-of-type(1) {\n fill: var(--info-bg);\n}\n.CheckBox_module_root__b2c202fd:hover:not(.CheckBox_module_disabled__b2c202fd) .CheckBox_module_icon__b2c202fd rect:nth-of-type(2) {\n stroke: var(--highlight);\n}\n.CheckBox_module_root__b2c202fd:hover:not(.CheckBox_module_disabled__b2c202fd) .CheckBox_module_icon__b2c202fd path {\n stroke: var(--highlight);\n}\n.CheckBox_module_root__b2c202fd .CheckBox_module_icon__b2c202fd {\n display: inline-block;\n border-radius: 0.25rem;\n}\n.CheckBox_module_root__b2c202fd .CheckBox_module_icon__b2c202fd.CheckBox_module_iconSm__b2c202fd {\n width: 1rem;\n height: 1rem;\n}\n.CheckBox_module_root__b2c202fd .CheckBox_module_icon__b2c202fd.CheckBox_module_iconMd__b2c202fd {\n width: 1.25rem;\n height: 1.25rem;\n}\n.CheckBox_module_root__b2c202fd .CheckBox_module_icon__b2c202fd.CheckBox_module_iconLg__b2c202fd {\n width: 1.5rem;\n height: 1.5rem;\n}\n.CheckBox_module_root__b2c202fd input:focus + .CheckBox_module_icon__b2c202fd {\n box-shadow: 0px 0px 0px 0.25rem rgba(15, 98, 254, 0.125);\n}\n.CheckBox_module_root__b2c202fd [data-elem=label] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}";
|
|
44616
|
+
var modules_066398a2 = {"root":"CheckBox_module_root__b2c202fd","position-left":"CheckBox_module_positionLeft__b2c202fd","position-right":"CheckBox_module_positionRight__b2c202fd","disabled":"CheckBox_module_disabled__b2c202fd","icon":"CheckBox_module_icon__b2c202fd","selected":"CheckBox_module_selected__b2c202fd","icon-sm":"CheckBox_module_iconSm__b2c202fd","icon-md":"CheckBox_module_iconMd__b2c202fd","icon-lg":"CheckBox_module_iconLg__b2c202fd"};
|
|
44589
44617
|
n(css$V,{});
|
|
44590
44618
|
|
|
44619
|
+
var getIcon = function getIcon(checked, intermediate) {
|
|
44620
|
+
if (checked) {
|
|
44621
|
+
if (intermediate) {
|
|
44622
|
+
return CheckboxIcon.Intermediate;
|
|
44623
|
+
}
|
|
44624
|
+
return CheckboxIcon.Checked;
|
|
44625
|
+
}
|
|
44626
|
+
return CheckboxIcon.UnChecked;
|
|
44627
|
+
};
|
|
44591
44628
|
var Checkbox = function Checkbox(props) {
|
|
44592
44629
|
// eslint-disable-next-line object-curly-newline
|
|
44593
44630
|
var label = props.label,
|
|
@@ -44597,7 +44634,8 @@ var Checkbox = function Checkbox(props) {
|
|
|
44597
44634
|
position = props.position,
|
|
44598
44635
|
size = props.size,
|
|
44599
44636
|
className = props.className,
|
|
44600
|
-
disabled = props.disabled
|
|
44637
|
+
disabled = props.disabled,
|
|
44638
|
+
intermediate = props.intermediate;
|
|
44601
44639
|
var _useRef = React.useRef(checked !== undefined),
|
|
44602
44640
|
isControlled = _useRef.current;
|
|
44603
44641
|
|
|
@@ -44616,8 +44654,9 @@ var Checkbox = function Checkbox(props) {
|
|
|
44616
44654
|
}
|
|
44617
44655
|
};
|
|
44618
44656
|
var isChecked = isControlled ? checked : uncontrolledChecked;
|
|
44657
|
+
var Icon = getIcon(isChecked, intermediate);
|
|
44619
44658
|
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
44620
|
-
className: classes(modules_066398a2.root, modules_066398a2["position-".concat(position)], className, disabled ? modules_066398a2.disabled : ''),
|
|
44659
|
+
className: classes(modules_066398a2.root, modules_066398a2["position-".concat(position)], className, disabled ? modules_066398a2.disabled : '', isChecked ? modules_066398a2.selected : ''),
|
|
44621
44660
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", _objectSpread2(_objectSpread2({
|
|
44622
44661
|
disabled: disabled,
|
|
44623
44662
|
type: "checkbox",
|
|
@@ -44626,11 +44665,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
44626
44665
|
checked: checked
|
|
44627
44666
|
} : {}), {}, {
|
|
44628
44667
|
onChange: handleChange
|
|
44629
|
-
})),
|
|
44630
|
-
"data-elem": "icon",
|
|
44631
|
-
className: classes(modules_066398a2["icon-".concat(size)], modules_066398a2.icon)
|
|
44632
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(CheckboxIcon.UnChecked, {
|
|
44633
|
-
"data-elem": "icon",
|
|
44668
|
+
})), /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
44634
44669
|
className: classes(modules_066398a2["icon-".concat(size)], modules_066398a2.icon)
|
|
44635
44670
|
}), label && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
44636
44671
|
"data-elem": "label",
|
|
@@ -44657,8 +44692,8 @@ Checkbox.defaultProps = {
|
|
|
44657
44692
|
onChange: function onChange() {}
|
|
44658
44693
|
};
|
|
44659
44694
|
|
|
44660
|
-
var css$U = ".
|
|
44661
|
-
var modules_3705961f = {"root":"
|
|
44695
|
+
var css$U = ".Radio_module_root__8f69abe5 {\n cursor: pointer;\n gap: 10px;\n color: var(--grey1);\n}\n.Radio_module_root__8f69abe5.Radio_module_positionLeft__8f69abe5 {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n}\n.Radio_module_root__8f69abe5.Radio_module_positionRight__8f69abe5 {\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n align-items: center;\n}\n.Radio_module_root__8f69abe5.Radio_module_disabled__8f69abe5 {\n cursor: default;\n color: var(--grey4);\n}\n.Radio_module_root__8f69abe5.Radio_module_disabled__8f69abe5 .Radio_module_icon__8f69abe5 rect:nth-of-type(1) {\n stroke: var(--grey5);\n fill: var(--grey10);\n}\n.Radio_module_root__8f69abe5.Radio_module_disabled__8f69abe5 .Radio_module_icon__8f69abe5 rect:nth-of-type(2) {\n stroke: var(--grey5);\n}\n.Radio_module_root__8f69abe5.Radio_module_disabled__8f69abe5 .Radio_module_icon__8f69abe5 circle {\n fill: var(--grey5);\n}\n.Radio_module_root__8f69abe5.Radio_module_selected__8f69abe5 {\n color: var(--dark-grey);\n}\n.Radio_module_root__8f69abe5:hover:not(.Radio_module_disabled__8f69abe5) {\n color: var(--dark-grey);\n}\n.Radio_module_root__8f69abe5:hover:not(.Radio_module_disabled__8f69abe5) .Radio_module_icon__8f69abe5 rect:nth-of-type(1) {\n stroke: var(--highlight);\n fill: var(--info-bg);\n}\n.Radio_module_root__8f69abe5 input[type=radio] {\n opacity: 0;\n z-index: 1;\n position: absolute;\n width: 1px;\n height: 1px;\n}\n.Radio_module_root__8f69abe5 .Radio_module_icon__8f69abe5 {\n display: inline-block;\n border-radius: 50%;\n}\n.Radio_module_root__8f69abe5 .Radio_module_icon__8f69abe5.Radio_module_iconSm__8f69abe5 {\n width: 1rem;\n height: 1rem;\n}\n.Radio_module_root__8f69abe5 .Radio_module_icon__8f69abe5.Radio_module_iconMd__8f69abe5 {\n width: 1.25rem;\n height: 1.25rem;\n}\n.Radio_module_root__8f69abe5 .Radio_module_icon__8f69abe5.Radio_module_iconLg__8f69abe5 {\n width: 1.5rem;\n height: 2rem;\n}\n.Radio_module_root__8f69abe5 input:focus + .Radio_module_icon__8f69abe5 {\n box-shadow: 0px 0px 0px 0.25rem rgba(15, 98, 254, 0.125);\n}\n.Radio_module_root__8f69abe5 [data-elem=label] {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}";
|
|
44696
|
+
var modules_3705961f = {"root":"Radio_module_root__8f69abe5","position-left":"Radio_module_positionLeft__8f69abe5","position-right":"Radio_module_positionRight__8f69abe5","disabled":"Radio_module_disabled__8f69abe5","icon":"Radio_module_icon__8f69abe5","selected":"Radio_module_selected__8f69abe5","icon-sm":"Radio_module_iconSm__8f69abe5","icon-md":"Radio_module_iconMd__8f69abe5","icon-lg":"Radio_module_iconLg__8f69abe5"};
|
|
44662
44697
|
n(css$U,{});
|
|
44663
44698
|
|
|
44664
44699
|
var Radio = function Radio(props) {
|
|
@@ -44690,7 +44725,7 @@ var Radio = function Radio(props) {
|
|
|
44690
44725
|
};
|
|
44691
44726
|
var isChecked = isControlled ? checked : uncontrolledChecked;
|
|
44692
44727
|
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
44693
|
-
className: classes(modules_3705961f.root, modules_3705961f["position-".concat(position)], className, disabled ? modules_3705961f.disabled : ''),
|
|
44728
|
+
className: classes(modules_3705961f.root, modules_3705961f["position-".concat(position)], className, disabled ? modules_3705961f.disabled : '', isChecked ? modules_3705961f.selected : ''),
|
|
44694
44729
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
44695
44730
|
disabled: disabled,
|
|
44696
44731
|
type: "radio",
|
|
@@ -109422,6 +109457,7 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
109422
109457
|
var _seriesOption$length, _seriesData$metaData$, _seriesData$metaData, _seriesData$metaData$2, _seriesData$chartData, _seriesData$chartData13;
|
|
109423
109458
|
var loading = props.loading,
|
|
109424
109459
|
title = props.title,
|
|
109460
|
+
titleOptions = props.titleOptions,
|
|
109425
109461
|
gridContainLabel = props.gridContainLabel,
|
|
109426
109462
|
gridOptions = props.gridOptions,
|
|
109427
109463
|
inverse = props.inverse,
|
|
@@ -109513,9 +109549,9 @@ var BaseHorizontalBarChart = function BaseHorizontalBarChart(props) {
|
|
|
109513
109549
|
};
|
|
109514
109550
|
return /*#__PURE__*/jsxRuntime.jsx(_default, {
|
|
109515
109551
|
option: {
|
|
109516
|
-
title: {
|
|
109552
|
+
title: _objectSpread2({
|
|
109517
109553
|
text: title
|
|
109518
|
-
},
|
|
109554
|
+
}, titleOptions),
|
|
109519
109555
|
grid: _objectSpread2({
|
|
109520
109556
|
containLabel: gridContainLabel
|
|
109521
109557
|
}, gridOptions),
|
|
@@ -109557,6 +109593,7 @@ BaseHorizontalBarChart.propTypes = {
|
|
|
109557
109593
|
loading: propTypes$1.exports.bool,
|
|
109558
109594
|
fallback: propTypes$1.exports.bool,
|
|
109559
109595
|
title: propTypes$1.exports.string,
|
|
109596
|
+
titleOptions: propTypes$1.exports.object,
|
|
109560
109597
|
gridContainLabel: propTypes$1.exports.bool,
|
|
109561
109598
|
gridOptions: propTypes$1.exports.object,
|
|
109562
109599
|
tooltip: propTypes$1.exports.object,
|
|
@@ -109585,6 +109622,7 @@ BaseHorizontalBarChart.defaultProps = {
|
|
|
109585
109622
|
loading: false,
|
|
109586
109623
|
fallback: false,
|
|
109587
109624
|
title: '',
|
|
109625
|
+
titleOptions: {},
|
|
109588
109626
|
gridContainLabel: false,
|
|
109589
109627
|
gridOptions: {
|
|
109590
109628
|
left: 0,
|