@ultraviolet/ui 1.88.0 → 1.89.0
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/components/Alert/index.cjs +6 -6
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AvatarV2/index.js +1 -1
- package/dist/components/Badge/index.cjs +4 -5
- package/dist/components/Badge/index.js +0 -1
- package/dist/components/Banner/index.cjs +7 -7
- package/dist/components/Banner/index.js +7 -7
- package/dist/components/Bullet/index.cjs +0 -1
- package/dist/components/Bullet/index.js +0 -1
- package/dist/components/Card/index.cjs +8 -8
- package/dist/components/Checkbox/index.cjs +11 -11
- package/dist/components/CheckboxGroup/index.cjs +12 -12
- package/dist/components/CheckboxGroup/index.js +1 -1
- package/dist/components/Chip/index.cjs +4 -4
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarContent.cjs +8 -8
- package/dist/components/DateInput/components/CalendarDaily.cjs +4 -4
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.cjs +4 -4
- package/dist/components/DateInput/index.cjs +9 -9
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/Dialog/{subComponents → components}/CancelButton.cjs +3 -2
- package/dist/components/Dialog/{subComponents → components}/CancelButton.d.ts +2 -1
- package/dist/components/Dialog/{subComponents → components}/CancelButton.js +3 -2
- package/dist/components/Dialog/index.cjs +13 -13
- package/dist/components/Dialog/index.d.ts +2 -1
- package/dist/components/Dialog/index.js +7 -7
- package/dist/components/Drawer/index.cjs +9 -9
- package/dist/components/EmptyState/index.cjs +11 -11
- package/dist/components/GlobalAlert/index.cjs +8 -8
- package/dist/components/Label/index.cjs +33 -7
- package/dist/components/Label/index.d.ts +9 -2
- package/dist/components/Label/index.js +31 -7
- package/dist/components/LineChart/CustomLegend.cjs +5 -5
- package/dist/components/LineChart/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/HeaderCell.js +1 -1
- package/dist/components/List/ListContext.cjs +71 -67
- package/dist/components/List/ListContext.d.ts +5 -4
- package/dist/components/List/ListContext.js +72 -68
- package/dist/components/List/Row.cjs +24 -36
- package/dist/components/List/Row.js +19 -31
- package/dist/components/List/index.cjs +19 -4
- package/dist/components/List/index.js +21 -6
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/MenuV2/MenuContent.cjs +4 -4
- package/dist/components/MenuV2/MenuProvider.js +1 -1
- package/dist/components/MenuV2/components/Item.cjs +0 -2
- package/dist/components/MenuV2/components/Item.js +0 -2
- package/dist/components/Notification/index.cjs +6 -10
- package/dist/components/Notification/index.js +8 -12
- package/dist/components/NumberInput/index.cjs +11 -11
- package/dist/components/NumberInputV2/index.cjs +12 -12
- package/dist/components/Pagination/PerPage.cjs +7 -7
- package/dist/components/PieChart/Legends.js +1 -1
- package/dist/components/Popup/index.cjs +21 -9
- package/dist/components/Popup/index.js +22 -10
- package/dist/components/ProgressBar/index.cjs +6 -6
- package/dist/components/Radio/index.cjs +22 -21
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +15 -14
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/SelectInput/index.cjs +17 -17
- package/dist/components/SelectInput/index.js +11 -11
- package/dist/components/SelectInputV2/Dropdown.cjs +34 -34
- package/dist/components/SelectInputV2/Dropdown.js +10 -10
- package/dist/components/SelectInputV2/DropdownOption.cjs +11 -11
- package/dist/components/SelectInputV2/SelectBar.cjs +25 -24
- package/dist/components/SelectInputV2/SelectBar.d.ts +25 -1
- package/dist/components/SelectInputV2/SelectBar.js +13 -12
- package/dist/components/SelectInputV2/SelectInputProvider.js +1 -1
- package/dist/components/SelectInputV2/index.cjs +9 -9
- package/dist/components/SelectInputV2/index.d.ts +1 -1
- package/dist/components/SelectInputV2/index.js +3 -3
- package/dist/components/SelectableCard/index.cjs +49 -36
- package/dist/components/SelectableCard/index.js +43 -30
- package/dist/components/SelectableCardGroup/index.js +1 -1
- package/dist/components/SelectableCardOptionGroup/Provider.cjs +24 -0
- package/dist/components/SelectableCardOptionGroup/Provider.d.ts +15 -0
- package/dist/components/SelectableCardOptionGroup/Provider.js +24 -0
- package/dist/components/SelectableCardOptionGroup/components/Image.cjs +39 -0
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts +9 -0
- package/dist/components/SelectableCardOptionGroup/components/Image.js +37 -0
- package/dist/components/SelectableCardOptionGroup/components/Option.cjs +117 -0
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +16 -0
- package/dist/components/SelectableCardOptionGroup/components/Option.js +115 -0
- package/dist/components/SelectableCardOptionGroup/index.cjs +67 -0
- package/dist/components/SelectableCardOptionGroup/index.d.ts +45 -0
- package/dist/components/SelectableCardOptionGroup/index.js +65 -0
- package/dist/components/SelectableCardOptionGroup/types.d.ts +1 -0
- package/dist/components/Slider/components/DoubleSlider.cjs +14 -14
- package/dist/components/Slider/components/DoubleSlider.js +9 -9
- package/dist/components/Slider/components/SingleSlider.cjs +24 -16
- package/dist/components/Slider/components/SingleSlider.js +20 -12
- package/dist/components/Snippet/index.cjs +9 -9
- package/dist/components/Stepper/Step.cjs +6 -6
- package/dist/components/Stepper/StepperProvider.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SwitchButton/index.cjs +4 -4
- package/dist/components/Table/HeaderCell.cjs +4 -4
- package/dist/components/Table/HeaderCell.js +1 -1
- package/dist/components/Table/Row.cjs +25 -37
- package/dist/components/Table/Row.js +20 -32
- package/dist/components/Table/TableContext.js +1 -1
- package/dist/components/Table/index.cjs +20 -4
- package/dist/components/Table/index.d.ts +6 -5
- package/dist/components/Table/index.js +22 -6
- package/dist/components/Tabs/Tab.cjs +4 -4
- package/dist/components/Tag/index.cjs +10 -10
- package/dist/components/Text/index.cjs +4 -3
- package/dist/components/Text/index.d.ts +2 -1
- package/dist/components/Text/index.js +4 -3
- package/dist/components/TextInput/index.cjs +14 -14
- package/dist/components/TimeInputV2/index.cjs +7 -7
- package/dist/components/TimeInputV2/index.js +2 -2
- package/dist/components/Toaster/index.cjs +10 -14
- package/dist/components/Toaster/index.js +7 -11
- package/dist/components/ToggleGroup/index.js +1 -1
- package/dist/components/UnitInput/index.cjs +6 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +61 -59
- package/dist/index.js +2 -0
- package/dist/types.d.ts +6 -0
- package/package.json +5 -5
- package/dist/components/Notification/react-toastify.css.cjs +0 -3
- package/dist/components/Notification/react-toastify.css.js +0 -4
- package/dist/components/Slider/components/Label.cjs +0 -17
- package/dist/components/Slider/components/Label.d.ts +0 -2
- package/dist/components/Slider/components/Label.js +0 -17
- package/dist/components/Toaster/react-toastify.css.cjs +0 -3
- package/dist/components/Toaster/react-toastify.css.js +0 -4
- /package/dist/components/Dialog/{subComponents → components}/Button.cjs +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Button.d.ts +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Button.js +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Buttons.cjs +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Buttons.d.ts +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Buttons.js +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Stack.cjs +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Stack.d.ts +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Stack.js +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Text.cjs +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Text.d.ts +0 -0
- /package/dist/components/Dialog/{subComponents → components}/Text.js +0 -0
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
4
4
|
const _styled = require("@emotion/styled/base");
|
|
5
5
|
const index$1 = require("../Stack/index.cjs");
|
|
6
|
-
const index = require("../Text/index.cjs");
|
|
7
|
-
const index
|
|
6
|
+
const index$2 = require("../Text/index.cjs");
|
|
7
|
+
const index = require("../Tooltip/index.cjs");
|
|
8
8
|
const _interopDefaultCompat = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
|
|
9
9
|
const _styled__default = /* @__PURE__ */ _interopDefaultCompat(_styled);
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
@@ -23,7 +23,7 @@ const StyledInfo = /* @__PURE__ */ _styled__default.default("div", process.env.N
|
|
|
23
23
|
styles: "align-content:center/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlbGVjdElucHV0VjIvRHJvcGRvd25PcHRpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU02QiIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy91aS9zcmMvY29tcG9uZW50cy9TZWxlY3RJbnB1dFYyL0Ryb3Bkb3duT3B0aW9uLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IHsgU3RhY2sgfSBmcm9tICcuLi9TdGFjaydcbmltcG9ydCB7IFRleHQgfSBmcm9tICcuLi9UZXh0J1xuaW1wb3J0IHsgVG9vbHRpcCB9IGZyb20gJy4uL1Rvb2x0aXAnXG5pbXBvcnQgdHlwZSB7IE9wdGlvblR5cGUgfSBmcm9tICcuL3R5cGVzJ1xuXG5jb25zdCBTdHlsZWRJbmZvID0gc3R5bGVkLmRpdmBcbiAgYWxpZ24tY29udGVudDogY2VudGVyO1xuYFxuY29uc3QgVGV4dEl0ZW0gPSBzdHlsZWQoVGV4dClgXG4gIG92ZXJmbG93OiBhdXRvO1xuICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgZmxleC1zaHJpbms6IDA7XG4gIGZsZXgtd3JhcDogd3JhcDtcbiAgbWF4LXdpZHRoOiAxMDAlO1xuYFxuY29uc3QgQ3VzdG9tU3RhY2sgPSBzdHlsZWQoU3RhY2spYFxub3ZlcmZsb3c6IGhpZGRlbjtcbmBcblxudHlwZSBEaXNwbGF5T3B0aW9uUHJvcHMgPSB7XG4gIG9wdGlvbjogT3B0aW9uVHlwZVxuICBkZXNjcmlwdGlvbkRpcmVjdGlvbjogJ3JvdycgfCAnY29sdW1uJ1xuICBvcHRpb25hbEluZm9QbGFjZW1lbnQ6ICdsZWZ0JyB8ICdyaWdodCdcbn1cblxuZXhwb3J0IGNvbnN0IERpc3BsYXlPcHRpb24gPSAoe1xuICBvcHRpb24sXG4gIG9wdGlvbmFsSW5mb1BsYWNlbWVudCxcbiAgZGVzY3JpcHRpb25EaXJlY3Rpb24sXG59OiBEaXNwbGF5T3B0aW9uUHJvcHMpID0+IHtcbiAgaWYgKGRlc2NyaXB0aW9uRGlyZWN0aW9uID09PSAncm93JyAmJiBvcHRpb25hbEluZm9QbGFjZW1lbnQgPT09ICdsZWZ0Jykge1xuICAgIHJldHVybiAoXG4gICAgICA8VG9vbHRpcCB0ZXh0PXtvcHRpb24udG9vbHRpcH0+XG4gICAgICAgIDxTdGFja1xuICAgICAgICAgIGdhcD17MC41fVxuICAgICAgICAgIGRpcmVjdGlvbj1cInJvd1wiXG4gICAgICAgICAganVzdGlmeUNvbnRlbnQ9XCJsZWZ0XCJcbiAgICAgICAgICBkYXRhLXRlc3RpZD17YG9wdGlvbi1zdGFjay0ke29wdGlvbi52YWx1ZX1gfVxuICAgICAgICA+XG4gICAgICAgICAgPEN1c3RvbVN0YWNrIGdhcD17MC41fSBkaXJlY3Rpb249XCJyb3dcIiBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICAgICAgICB7b3B0aW9uLm9wdGlvbmFsSW5mbyA/PyBudWxsfVxuICAgICAgICAgICAgPFRleHRJdGVtIGFzPVwic3BhblwiIHZhcmlhbnQ9XCJib2R5XCIgcGxhY2VtZW50PVwibGVmdFwiPlxuICAgICAgICAgICAgICB7b3B0aW9uLmxhYmVsfVxuICAgICAgICAgICAgPC9UZXh0SXRlbT5cbiAgICAgICAgICAgIHtvcHRpb24uZGVzY3JpcHRpb24gPyAoXG4gICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgYXM9XCJzcGFuXCJcbiAgICAgICAgICAgICAgICB2YXJpYW50PVwiYm9keVNtYWxsXCJcbiAgICAgICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgICAgICBwbGFjZW1lbnQ9XCJsZWZ0XCJcbiAgICAgICAgICAgICAgICBwcm9taW5lbmNlPVwid2Vha1wiXG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7b3B0aW9uLmRlc2NyaXB0aW9ufVxuICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICApIDogbnVsbH1cbiAgICAgICAgICA8L0N1c3RvbVN0YWNrPlxuICAgICAgICA8L1N0YWNrPlxuICAgICAgPC9Ub29sdGlwPlxuICAgIClcbiAgfVxuXG4gIGlmIChkZXNjcmlwdGlvbkRpcmVjdGlvbiA9PT0gJ3JvdycgJiYgb3B0aW9uYWxJbmZvUGxhY2VtZW50ID09PSAncmlnaHQnKSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxUb29sdGlwIHRleHQ9e29wdGlvbi50b29sdGlwfT5cbiAgICAgICAgPFN0YWNrXG4gICAgICAgICAgZ2FwPXswLjV9XG4gICAgICAgICAgZGlyZWN0aW9uPVwicm93XCJcbiAgICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgICAgIGFsaWduSXRlbXM9XCJiYXNlbGluZVwiXG4gICAgICAgICAgZGF0YS10ZXN0aWQ9e2BvcHRpb24tc3RhY2stJHtvcHRpb24udmFsdWV9YH1cbiAgICAgICAgPlxuICAgICAgICAgIDxDdXN0b21TdGFjayBnYXA9ezAuNX0gZGlyZWN0aW9uPVwicm93XCIgYWxpZ25JdGVtcz1cImJhc2VsaW5lXCI+XG4gICAgICAgICAgICA8VGV4dEl0ZW0gYXM9XCJzcGFuXCIgdmFyaWFudD1cImJvZHlcIiBwbGFjZW1lbnQ9XCJsZWZ0XCI+XG4gICAgICAgICAgICAgIHtvcHRpb24ubGFiZWx9XG4gICAgICAgICAgICA8L1RleHRJdGVtPlxuICAgICAgICAgICAge29wdGlvbi5kZXNjcmlwdGlvbiA/IChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJib2R5U21hbGxcIlxuICAgICAgICAgICAgICAgIHNlbnRpbWVudD1cIm5ldXRyYWxcIlxuICAgICAgICAgICAgICAgIHBsYWNlbWVudD1cImxlZnRcIlxuICAgICAgICAgICAgICAgIHByb21pbmVuY2U9XCJ3ZWFrXCJcbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtvcHRpb24uZGVzY3JpcHRpb259XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICAgIDwvQ3VzdG9tU3RhY2s+XG4gICAgICAgICAge29wdGlvbi5vcHRpb25hbEluZm8gPyAoXG4gICAgICAgICAgICA8U3R5bGVkSW5mbz57b3B0aW9uLm9wdGlvbmFsSW5mb308L1N0eWxlZEluZm8+XG4gICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgIDwvU3RhY2s+XG4gICAgICA8L1Rvb2x0aXA+XG4gICAgKVxuICB9XG5cbiAgaWYgKGRlc2NyaXB0aW9uRGlyZWN0aW9uID09PSAnY29sdW1uJyAmJiBvcHRpb25hbEluZm9QbGFjZW1lbnQgPT09ICdsZWZ0Jykge1xuICAgIHJldHVybiAoXG4gICAgICA8VG9vbHRpcCB0ZXh0PXtvcHRpb24udG9vbHRpcH0+XG4gICAgICAgIDxTdGFja1xuICAgICAgICAgIGdhcD17MC41fVxuICAgICAgICAgIGRpcmVjdGlvbj1cInJvd1wiXG4gICAgICAgICAganVzdGlmeUNvbnRlbnQ9e29wdGlvbi5vcHRpb25hbEluZm8gPyAnbGVmdCcgOiAnc3BhY2UtYmV0d2Vlbid9XG4gICAgICAgICAgYWxpZ25JdGVtcz1cIm5vcm1hbFwiXG4gICAgICAgID5cbiAgICAgICAgICB7b3B0aW9uLm9wdGlvbmFsSW5mbyA/PyBudWxsfVxuXG4gICAgICAgICAgPEN1c3RvbVN0YWNrXG4gICAgICAgICAgICBnYXA9ezAuNX1cbiAgICAgICAgICAgIGRpcmVjdGlvbj1cImNvbHVtblwiXG4gICAgICAgICAgICBkYXRhLXRlc3RpZD17YG9wdGlvbi1zdGFjay0ke29wdGlvbi52YWx1ZX1gfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxUZXh0SXRlbSBhcz1cInNwYW5cIiB2YXJpYW50PVwiYm9keVwiIHBsYWNlbWVudD1cImxlZnRcIj5cbiAgICAgICAgICAgICAge29wdGlvbi5sYWJlbH1cbiAgICAgICAgICAgIDwvVGV4dEl0ZW0+XG4gICAgICAgICAgICB7b3B0aW9uLmRlc2NyaXB0aW9uID8gKFxuICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgIGFzPVwic3BhblwiXG4gICAgICAgICAgICAgICAgdmFyaWFudD1cImJvZHlTbWFsbFwiXG4gICAgICAgICAgICAgICAgc2VudGltZW50PVwibmV1dHJhbFwiXG4gICAgICAgICAgICAgICAgcGxhY2VtZW50PVwibGVmdFwiXG4gICAgICAgICAgICAgICAgcHJvbWluZW5jZT1cIndlYWtcIlxuICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAge29wdGlvbi5kZXNjcmlwdGlvbn1cbiAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPC9DdXN0b21TdGFjaz5cbiAgICAgICAgPC9TdGFjaz5cbiAgICAgIDwvVG9vbHRpcD5cbiAgICApXG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxUb29sdGlwIHRleHQ9e29wdGlvbi50b29sdGlwfT5cbiAgICAgIDxTdGFja1xuICAgICAgICBnYXA9ezAuNX1cbiAgICAgICAgZGlyZWN0aW9uPVwiY29sdW1uXCJcbiAgICAgICAgYWxpZ25JdGVtcz1cIm5vcm1hbFwiXG4gICAgICAgIGRhdGEtdGVzdGlkPXtgb3B0aW9uLXN0YWNrLSR7b3B0aW9uLnZhbHVlfWB9XG4gICAgICA+XG4gICAgICAgIDxDdXN0b21TdGFjayBnYXA9ezAuNX0gZGlyZWN0aW9uPVwicm93XCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICAgICAgPFRleHRJdGVtIGFzPVwic3BhblwiIHZhcmlhbnQ9XCJib2R5XCIgcGxhY2VtZW50PVwibGVmdFwiPlxuICAgICAgICAgICAge29wdGlvbi5sYWJlbH1cbiAgICAgICAgICA8L1RleHRJdGVtPlxuICAgICAgICAgIHtvcHRpb24ub3B0aW9uYWxJbmZvID8gKFxuICAgICAgICAgICAgPFN0eWxlZEluZm8+e29wdGlvbi5vcHRpb25hbEluZm99PC9TdHlsZWRJbmZvPlxuICAgICAgICAgICkgOiBudWxsfVxuICAgICAgICA8L0N1c3RvbVN0YWNrPlxuICAgICAgICB7b3B0aW9uLmRlc2NyaXB0aW9uID8gKFxuICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICBhcz1cInNwYW5cIlxuICAgICAgICAgICAgdmFyaWFudD1cImJvZHlTbWFsbFwiXG4gICAgICAgICAgICBzZW50aW1lbnQ9XCJuZXV0cmFsXCJcbiAgICAgICAgICAgIHBsYWNlbWVudD1cImxlZnRcIlxuICAgICAgICAgICAgcHJvbWluZW5jZT1cIndlYWtcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtvcHRpb24uZGVzY3JpcHRpb259XG4gICAgICAgICAgPC9UZXh0PlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvU3RhY2s+XG4gICAgPC9Ub29sdGlwPlxuICApXG59XG4iXX0= */",
|
|
24
24
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
25
|
});
|
|
26
|
-
const TextItem = /* @__PURE__ */ _styled__default.default(index.Text, process.env.NODE_ENV === "production" ? {
|
|
26
|
+
const TextItem = /* @__PURE__ */ _styled__default.default(index$2.Text, process.env.NODE_ENV === "production" ? {
|
|
27
27
|
target: "e18yw4y81"
|
|
28
28
|
} : {
|
|
29
29
|
target: "e18yw4y81",
|
|
@@ -55,36 +55,36 @@ const DisplayOption = ({
|
|
|
55
55
|
descriptionDirection
|
|
56
56
|
}) => {
|
|
57
57
|
if (descriptionDirection === "row" && optionalInfoPlacement === "left") {
|
|
58
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index
|
|
58
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: option.tooltip, children: /* @__PURE__ */ jsxRuntime.jsx(index$1.Stack, { gap: 0.5, direction: "row", justifyContent: "left", "data-testid": `option-stack-${option.value}`, children: /* @__PURE__ */ jsxRuntime.jsxs(CustomStack, { gap: 0.5, direction: "row", alignItems: "center", children: [
|
|
59
59
|
option.optionalInfo ?? null,
|
|
60
60
|
/* @__PURE__ */ jsxRuntime.jsx(TextItem, { as: "span", variant: "body", placement: "left", children: option.label }),
|
|
61
|
-
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
61
|
+
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
62
62
|
] }) }) });
|
|
63
63
|
}
|
|
64
64
|
if (descriptionDirection === "row" && optionalInfoPlacement === "right") {
|
|
65
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index
|
|
65
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: option.tooltip, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { gap: 0.5, direction: "row", justifyContent: "space-between", alignItems: "baseline", "data-testid": `option-stack-${option.value}`, children: [
|
|
66
66
|
/* @__PURE__ */ jsxRuntime.jsxs(CustomStack, { gap: 0.5, direction: "row", alignItems: "baseline", children: [
|
|
67
67
|
/* @__PURE__ */ jsxRuntime.jsx(TextItem, { as: "span", variant: "body", placement: "left", children: option.label }),
|
|
68
|
-
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
68
|
+
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
69
69
|
] }),
|
|
70
70
|
option.optionalInfo ? /* @__PURE__ */ jsxRuntime.jsx(StyledInfo, { children: option.optionalInfo }) : null
|
|
71
71
|
] }) });
|
|
72
72
|
}
|
|
73
73
|
if (descriptionDirection === "column" && optionalInfoPlacement === "left") {
|
|
74
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index
|
|
74
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: option.tooltip, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { gap: 0.5, direction: "row", justifyContent: option.optionalInfo ? "left" : "space-between", alignItems: "normal", children: [
|
|
75
75
|
option.optionalInfo ?? null,
|
|
76
76
|
/* @__PURE__ */ jsxRuntime.jsxs(CustomStack, { gap: 0.5, direction: "column", "data-testid": `option-stack-${option.value}`, children: [
|
|
77
77
|
/* @__PURE__ */ jsxRuntime.jsx(TextItem, { as: "span", variant: "body", placement: "left", children: option.label }),
|
|
78
|
-
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
78
|
+
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
79
79
|
] })
|
|
80
80
|
] }) });
|
|
81
81
|
}
|
|
82
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsx(index.Tooltip, { text: option.tooltip, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Stack, { gap: 0.5, direction: "column", alignItems: "normal", "data-testid": `option-stack-${option.value}`, children: [
|
|
83
83
|
/* @__PURE__ */ jsxRuntime.jsxs(CustomStack, { gap: 0.5, direction: "row", justifyContent: "space-between", children: [
|
|
84
84
|
/* @__PURE__ */ jsxRuntime.jsx(TextItem, { as: "span", variant: "body", placement: "left", children: option.label }),
|
|
85
85
|
option.optionalInfo ? /* @__PURE__ */ jsxRuntime.jsx(StyledInfo, { children: option.optionalInfo }) : null
|
|
86
86
|
] }),
|
|
87
|
-
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
87
|
+
option.description ? /* @__PURE__ */ jsxRuntime.jsx(index$2.Text, { as: "span", variant: "bodySmall", sentiment: "neutral", placement: "left", prominence: "weak", children: option.description }) : null
|
|
88
88
|
] }) });
|
|
89
89
|
};
|
|
90
90
|
exports.DisplayOption = DisplayOption;
|