pollination-react-io 0.0.32 → 0.0.33
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/build/atoms/Dropdown/Dropdown.d.ts +1 -0
- package/build/index.esm.js +30 -27
- package/build/index.esm.js.map +1 -1
- package/build/index.js +30 -27
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -4698,6 +4698,36 @@ var ConditionalWrapper = function (_a) {
|
|
|
4698
4698
|
return condition ? wrapper(children) : children;
|
|
4699
4699
|
};
|
|
4700
4700
|
|
|
4701
|
+
function styleInject(css, ref) {
|
|
4702
|
+
if ( ref === void 0 ) ref = {};
|
|
4703
|
+
var insertAt = ref.insertAt;
|
|
4704
|
+
|
|
4705
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
4706
|
+
|
|
4707
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4708
|
+
var style = document.createElement('style');
|
|
4709
|
+
style.type = 'text/css';
|
|
4710
|
+
|
|
4711
|
+
if (insertAt === 'top') {
|
|
4712
|
+
if (head.firstChild) {
|
|
4713
|
+
head.insertBefore(style, head.firstChild);
|
|
4714
|
+
} else {
|
|
4715
|
+
head.appendChild(style);
|
|
4716
|
+
}
|
|
4717
|
+
} else {
|
|
4718
|
+
head.appendChild(style);
|
|
4719
|
+
}
|
|
4720
|
+
|
|
4721
|
+
if (style.styleSheet) {
|
|
4722
|
+
style.styleSheet.cssText = css;
|
|
4723
|
+
} else {
|
|
4724
|
+
style.appendChild(document.createTextNode(css));
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4728
|
+
var css_248z$5 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary0: #e6f7ff;\n --grey5: #8c8c8c;\n --grey3: #d0d7de;\n --secondary: #fff566;\n --font-color: #494949;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --background: #3c3c3c;\n --font-color: #fafafa;\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\nspan.label {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n font-size: clamp(0.75rem, 8vw - 0.85rem, 0.95rem);\n color: #11181C;\n}\n\nspan.label-secondary {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n color: #687075;\n}\n\n.poll-select-content {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n display: flex;\n flex-direction: column;\n width: fit-content;\n background-color: white;\n border: 1px solid var(--grey3);\n border-radius: 4px;\n padding: 6px 4px;\n box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 4px;\n gap: 2px;\n}\n\n.poll-select-item {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n border-radius: 2px;\n padding: 2px 8px 2px 24px;\n transition: background-color 0.15s linear, color 0.15s linear;\n}\n\n.poll-select-item[data-state=checked] {\n background-color: var(--primary2);\n color: white;\n}\n\n.poll-select-item:focus-visible {\n outline: none;\n}\n\n.poll-select-item:hover {\n background-color: var(--primary0);\n cursor: pointer;\n color: unset;\n}\n\n.poll-separator {\n background-color: #d0d7de;\n height: 1px;\n width: 100%;\n margin: 4px 0;\n}";
|
|
4729
|
+
styleInject(css_248z$5);
|
|
4730
|
+
|
|
4701
4731
|
var Dropdown = function (_a) {
|
|
4702
4732
|
var optionGroups = _a.optionGroups, trigger = _a.trigger, contentProps = _a.contentProps, itemProps = _a.itemProps, _b = _a.arrow, arrow = _b === void 0 ? true : _b, _c = _a.disabled, disabled = _c === void 0 ? false : _c;
|
|
4703
4733
|
var renderItem = useCallback(function (o) {
|
|
@@ -4756,33 +4786,6 @@ var Dropdown = function (_a) {
|
|
|
4756
4786
|
}, offset: 12 }))));
|
|
4757
4787
|
};
|
|
4758
4788
|
|
|
4759
|
-
function styleInject(css, ref) {
|
|
4760
|
-
if ( ref === void 0 ) ref = {};
|
|
4761
|
-
var insertAt = ref.insertAt;
|
|
4762
|
-
|
|
4763
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
4764
|
-
|
|
4765
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4766
|
-
var style = document.createElement('style');
|
|
4767
|
-
style.type = 'text/css';
|
|
4768
|
-
|
|
4769
|
-
if (insertAt === 'top') {
|
|
4770
|
-
if (head.firstChild) {
|
|
4771
|
-
head.insertBefore(style, head.firstChild);
|
|
4772
|
-
} else {
|
|
4773
|
-
head.appendChild(style);
|
|
4774
|
-
}
|
|
4775
|
-
} else {
|
|
4776
|
-
head.appendChild(style);
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
|
-
if (style.styleSheet) {
|
|
4780
|
-
style.styleSheet.cssText = css;
|
|
4781
|
-
} else {
|
|
4782
|
-
style.appendChild(document.createTextNode(css));
|
|
4783
|
-
}
|
|
4784
|
-
}
|
|
4785
|
-
|
|
4786
4789
|
var css_248z$4 = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary0: #e6f7ff;\n --grey5: #8c8c8c;\n --grey3: #d0d7de;\n --secondary: #fff566;\n --font-color: #494949;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --background: #3c3c3c;\n --font-color: #fafafa;\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\nspan.label {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n font-size: clamp(0.75rem, 8vw - 0.85rem, 0.95rem);\n color: #11181C;\n}\n\nspan.label-secondary {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n color: #687075;\n}\n\n.btn-group {\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", Segoe UI Symbol, \"Noto Color Emoji\";\n width: fit-content;\n display: flex;\n border-radius: 4px;\n}\n\n.btn-group:hover {\n box-shadow: 0 1px 2px 0 rgba(26, 115, 232, 0.45), 0 1px 3px 1px rgba(26, 115, 232, 0.3);\n}\n\n.btn-group-disabled:hover {\n box-shadow: none;\n}\n\n.btn-group button {\n max-width: 260px;\n display: flex;\n background-color: var(--primary);\n border: 1px solid var(--primary);\n color: white;\n padding: 6px 10px;\n cursor: pointer;\n float: left;\n transition: background-color 0.125s ease-in-out;\n z-index: 10;\n align-items: center;\n gap: 8px;\n}\n\n.btn-group-disabled button {\n background-color: var(--grey3);\n color: var(--grey5);\n cursor: default;\n border-color: var(--grey5);\n}\n\n.btn-group button:first-child {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n\n.btn-group button:last-child {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n border-left-color: #096dd9;\n}\n\n.btn-group button:last-child:disabled {\n border-left-color: var(--grey5);\n}\n\n.btn-group button:not(:last-child) {\n border-right: none;\n}\n\n.btn-group button:focus-visible {\n outline: none;\n}\n\n.btn-group button:focus {\n outline: none;\n}\n\n/* Clear floats (clearfix hack) */\n.btn-group:after {\n content: \"\";\n clear: both;\n display: table;\n}\n\n.btn-group button:hover {\n background-color: var(--primary2);\n z-index: 11;\n}\n\n.btn-group-disabled:hover button:hover {\n background-color: var(--grey3);\n}\n\n.options-content {\n font-size: clamp(0.65rem, 8vw - 0.75rem, 0.85rem);\n}";
|
|
4787
4790
|
styleInject(css_248z$4);
|
|
4788
4791
|
|