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.js
CHANGED
|
@@ -4725,6 +4725,36 @@ var ConditionalWrapper = function (_a) {
|
|
|
4725
4725
|
return condition ? wrapper(children) : children;
|
|
4726
4726
|
};
|
|
4727
4727
|
|
|
4728
|
+
function styleInject(css, ref) {
|
|
4729
|
+
if ( ref === void 0 ) ref = {};
|
|
4730
|
+
var insertAt = ref.insertAt;
|
|
4731
|
+
|
|
4732
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
4733
|
+
|
|
4734
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4735
|
+
var style = document.createElement('style');
|
|
4736
|
+
style.type = 'text/css';
|
|
4737
|
+
|
|
4738
|
+
if (insertAt === 'top') {
|
|
4739
|
+
if (head.firstChild) {
|
|
4740
|
+
head.insertBefore(style, head.firstChild);
|
|
4741
|
+
} else {
|
|
4742
|
+
head.appendChild(style);
|
|
4743
|
+
}
|
|
4744
|
+
} else {
|
|
4745
|
+
head.appendChild(style);
|
|
4746
|
+
}
|
|
4747
|
+
|
|
4748
|
+
if (style.styleSheet) {
|
|
4749
|
+
style.styleSheet.cssText = css;
|
|
4750
|
+
} else {
|
|
4751
|
+
style.appendChild(document.createTextNode(css));
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4754
|
+
|
|
4755
|
+
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}";
|
|
4756
|
+
styleInject(css_248z$5);
|
|
4757
|
+
|
|
4728
4758
|
var Dropdown = function (_a) {
|
|
4729
4759
|
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;
|
|
4730
4760
|
var renderItem = React.useCallback(function (o) {
|
|
@@ -4783,33 +4813,6 @@ var Dropdown = function (_a) {
|
|
|
4783
4813
|
}, offset: 12 }))));
|
|
4784
4814
|
};
|
|
4785
4815
|
|
|
4786
|
-
function styleInject(css, ref) {
|
|
4787
|
-
if ( ref === void 0 ) ref = {};
|
|
4788
|
-
var insertAt = ref.insertAt;
|
|
4789
|
-
|
|
4790
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
4791
|
-
|
|
4792
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
4793
|
-
var style = document.createElement('style');
|
|
4794
|
-
style.type = 'text/css';
|
|
4795
|
-
|
|
4796
|
-
if (insertAt === 'top') {
|
|
4797
|
-
if (head.firstChild) {
|
|
4798
|
-
head.insertBefore(style, head.firstChild);
|
|
4799
|
-
} else {
|
|
4800
|
-
head.appendChild(style);
|
|
4801
|
-
}
|
|
4802
|
-
} else {
|
|
4803
|
-
head.appendChild(style);
|
|
4804
|
-
}
|
|
4805
|
-
|
|
4806
|
-
if (style.styleSheet) {
|
|
4807
|
-
style.styleSheet.cssText = css;
|
|
4808
|
-
} else {
|
|
4809
|
-
style.appendChild(document.createTextNode(css));
|
|
4810
|
-
}
|
|
4811
|
-
}
|
|
4812
|
-
|
|
4813
4816
|
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}";
|
|
4814
4817
|
styleInject(css_248z$4);
|
|
4815
4818
|
|