odaptos_design_system 1.4.79 → 1.4.81
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/RatingScale/RatingScale.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/odaptos_design_system.cjs.development.js +19 -4
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +19 -5
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Icons/Miscellaneous/TestIcon.tsx +1 -1
- package/src/RatingScale/RatingScale.module.scss +8 -0
- package/src/RatingScale/RatingScale.tsx +20 -0
- package/src/index.ts +1 -0
|
@@ -16,6 +16,8 @@ interface RatingScaleProps {
|
|
|
16
16
|
helperText?: string;
|
|
17
17
|
errorText?: string;
|
|
18
18
|
error?: boolean;
|
|
19
|
+
ratingStartText?: string;
|
|
20
|
+
ratingEndText?: string;
|
|
19
21
|
otherProps?: any;
|
|
20
22
|
}
|
|
21
23
|
export declare const RatingScale: (props: RatingScaleProps) => React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export * from './Textarea/Textarea';
|
|
|
43
43
|
export * from './TimePicker/TimePicker';
|
|
44
44
|
export * from './Tooltip/Tooltip';
|
|
45
45
|
export * from './Typography/Caption';
|
|
46
|
+
export * from './Typography/Link';
|
|
46
47
|
export * from './Typography/Text';
|
|
47
48
|
export * from './Typography/TextForButton';
|
|
48
49
|
export * from './Typography/TextForDropDownItem';
|
|
@@ -6352,7 +6352,7 @@ function TestIcon({
|
|
|
6352
6352
|
fill: "none",
|
|
6353
6353
|
fillRule: "evenodd"
|
|
6354
6354
|
}, /*#__PURE__*/React__default.createElement("g", {
|
|
6355
|
-
fill:
|
|
6355
|
+
fill: fill,
|
|
6356
6356
|
fillRule: "nonzero"
|
|
6357
6357
|
}, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("path", {
|
|
6358
6358
|
d: "M12 6c.552 0 1 .448 1 1v2.857l1.132 1.883.008.013 1.664 2.768c.169.31.162.686-.019.99-.18.303-.507.49-.86.489H7.926c-.353 0-.68-.186-.86-.49-.181-.303-.188-.68-.002-1.017L10 9.858V7c0-.552.448-1 1-1zm1.422 6.5H9.509L7.925 15h7l-1.503-2.5zM12 7h-1v2.859c0 .185-.052.366-.152.53l-.706 1.111h2.679l-.672-1.117c-.058-.095-.1-.198-.124-.305l-.019-.11-.006-.11V7zm.245-7c.655-.002 1.195.501 1.25 1.147l.005.098V3c0 .05-.007.097-.02.141-.012.04-.029.08-.05.115l-.002.003-.046.063c0 .002-.002.003-.003.004l-.018.02c-.034.035-.073.066-.115.09l-.045.022c-.01.004-.02.009-.031.012-.019.007-.039.013-.059.018l-.029.005-.014.002L13 3.5H1v6.75c.001.121.088.222.203.245l.051.005H7.5c.276 0 .5.224.5.5 0 .253-.188.462-.432.495L7.5 11.5H1.255c-.656.001-1.195-.502-1.25-1.148L0 10.254V1.237C.005.583.513.051 1.153.003L1.25 0h10.995zM7.5 4.5c.253 0 .462.188.495.432L8 5v.5h.5c.276 0 .5.224.5.5 0 .253-.188.462-.432.495L8.5 6.5H8V7c0 .276-.224.5-.5.5-.253 0-.462-.188-.495-.432L7 7v-.5h-.5c-.276 0-.5-.224-.5-.5 0-.253.188-.462.432-.495L6.5 5.5H7V5c0-.276.224-.5.5-.5zm7-1c.253 0 .462.188.495.432L15 4v.5h.5c.276 0 .5.224.5.5 0 .253-.188.462-.432.495L15.5 5.5H15V6c0 .276-.224.5-.5.5-.253 0-.462-.188-.495-.432L14 6v-.5h-.5c-.276 0-.5-.224-.5-.5 0-.253.188-.462.432-.495L13.5 4.5h.5V4c0-.276.224-.5.5-.5zM12.246 1H1.248c-.119 0-.219.083-.243.193L1 1.241V2.5h11.5V1.25c-.001-.121-.088-.222-.203-.245L12.246 1z",
|
|
@@ -8516,8 +8516,8 @@ const Radio = ({
|
|
|
8516
8516
|
}));
|
|
8517
8517
|
};
|
|
8518
8518
|
|
|
8519
|
-
var css_248z$s = ".RatingScale-module_ratingScale__U-ng1 .RatingScale-module_formControl__dRysB .RatingScale-module_radioGroup__3WsUB{display:flex;flex-direction:row;flex-wrap:wrap}.RatingScale-module_ratingScale__U-ng1 .RatingScale-module_formControl__dRysB .RatingScale-module_radioGroup__3WsUB .RatingScale-module_radioContainer__TPHX2{display:flex;gap:.25rem}";
|
|
8520
|
-
var styles$s = {"ratingScale":"RatingScale-module_ratingScale__U-ng1","formControl":"RatingScale-module_formControl__dRysB","radioGroup":"RatingScale-module_radioGroup__3WsUB","radioContainer":"RatingScale-module_radioContainer__TPHX2"};
|
|
8519
|
+
var css_248z$s = ".RatingScale-module_ratingScale__U-ng1 .RatingScale-module_formControl__dRysB{width:100%}.RatingScale-module_ratingScale__U-ng1 .RatingScale-module_formControl__dRysB .RatingScale-module_radioGroup__3WsUB{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.RatingScale-module_ratingScale__U-ng1 .RatingScale-module_formControl__dRysB .RatingScale-module_radioGroup__3WsUB .RatingScale-module_radioContainer__TPHX2{display:flex;gap:.25rem}.RatingScale-module_ratingScale__U-ng1 .RatingScale-module_ratingScaleText__bsEqe{display:flex;justify-content:space-between}";
|
|
8520
|
+
var styles$s = {"ratingScale":"RatingScale-module_ratingScale__U-ng1","formControl":"RatingScale-module_formControl__dRysB","radioGroup":"RatingScale-module_radioGroup__3WsUB","radioContainer":"RatingScale-module_radioContainer__TPHX2","ratingScaleText":"RatingScale-module_ratingScaleText__bsEqe"};
|
|
8521
8521
|
styleInject(css_248z$s);
|
|
8522
8522
|
|
|
8523
8523
|
const RatingScale = props => {
|
|
@@ -8535,6 +8535,8 @@ const RatingScale = props => {
|
|
|
8535
8535
|
onBlur,
|
|
8536
8536
|
disabled,
|
|
8537
8537
|
error,
|
|
8538
|
+
ratingStartText,
|
|
8539
|
+
ratingEndText,
|
|
8538
8540
|
otherProps
|
|
8539
8541
|
} = props;
|
|
8540
8542
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -8564,7 +8566,19 @@ const RatingScale = props => {
|
|
|
8564
8566
|
label: option,
|
|
8565
8567
|
checked: value === option,
|
|
8566
8568
|
disabled: disabled
|
|
8567
|
-
}))))
|
|
8569
|
+
})))), ratingStartText || ratingEndText ? /*#__PURE__*/React__default.createElement("div", {
|
|
8570
|
+
className: styles$s.ratingScaleText
|
|
8571
|
+
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
8572
|
+
text: `${ratingStartText ? ratingStartText : ''}`,
|
|
8573
|
+
weight: 'regular',
|
|
8574
|
+
size: 'sm',
|
|
8575
|
+
className: styles$s.ratingScaleStartText
|
|
8576
|
+
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
8577
|
+
text: `${ratingEndText ? ratingEndText : ''}`,
|
|
8578
|
+
weight: 'regular',
|
|
8579
|
+
size: 'sm',
|
|
8580
|
+
className: styles$s.ratingScaleEndText
|
|
8581
|
+
})) : null);
|
|
8568
8582
|
};
|
|
8569
8583
|
|
|
8570
8584
|
var css_248z$t = ".TextInput-modules_input__3djVU{font-family:var(--sdFontFamilyOpenSans);font-size:var(--sdTypoTextNoDecorationRegularBase);font-style:normal;font-weight:var(--sdFontWeightRegular);letter-spacing:var(--sdLetterSpacingButtons);line-height:var(--sdLineHeight130);margin:unset;text-align:left;width:100%}.TextInput-modules_input__3djVU svg{height:1rem;width:1rem}input{font-family:var(--sdFontFamilyOpenSans);font-size:var(--sdTypoTextNoDecorationRegularBase);font-style:normal;font-weight:var(--sdFontWeightRegular);letter-spacing:var(--sdLetterSpacingButtons);line-height:var(--sdLineHeight130);margin:unset;text-align:left}input.TextInput-modules_input__3djVU{height:1rem}.TextInput-modules_MuiInputBase-root-MuiOutlinedInput-root__RL51v{font-family:var(--sdFontFamilyOpenSans);font-size:var(--sdTypoTextNoDecorationRegularBase);font-style:normal;font-weight:var(--sdFontWeightRegular);letter-spacing:var(--sdLetterSpacingButtons);line-height:var(--sdLineHeight130);margin:unset;text-align:left}.TextInput-modules_input_top_label__JRakx{margin-bottom:.625rem}.TextInput-modules_input__3djVU .TextInput-modules_MuiInputBase-input__P8rMx{color:var(--gray-black);font-family:OpenSans;font-size:1rem;padding:.375rem .75rem}.TextInput-modules_text_below__lGHF-{margin:.25rem .5rem .25rem .75rem}";
|
|
@@ -9979,6 +9993,7 @@ exports.InterviewTranscript = InterviewTranscript;
|
|
|
9979
9993
|
exports.LanguageIcon = LanguageIcon;
|
|
9980
9994
|
exports.LaptopIcon = LaptopIcon;
|
|
9981
9995
|
exports.LateralMenu = LateralMenu;
|
|
9996
|
+
exports.Link = Link;
|
|
9982
9997
|
exports.LinkIcon = LinkIcon;
|
|
9983
9998
|
exports.ListToDoIcon = ListToDoIcon;
|
|
9984
9999
|
exports.LogoBeta = LogoBeta;
|