@datarobot/design-system 30.5.0 → 30.6.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.
@@ -3326,6 +3326,7 @@ export const VALIDATION_RULE_TYPES: {
3326
3326
  readonly IN_PROGRESS: "in-progress";
3327
3327
  readonly EXPIRED: "expired";
3328
3328
  readonly DISABLED: "disabled";
3329
+ readonly THINKING: "thinking";
3329
3330
  };
3330
3331
  export type ValidationRuleTypes = ValueOf<typeof VALIDATION_RULE_TYPES>;
3331
3332
  export const MESSAGE_DISPLAY_LOCATION: {
@@ -3348,6 +3349,7 @@ export type VALIDATION_VALUES = {
3348
3349
  [VALIDATION_RULE_TYPES.IN_PROGRESS]?: string;
3349
3350
  [VALIDATION_RULE_TYPES.EXPIRED]?: string;
3350
3351
  [VALIDATION_RULE_TYPES.DISABLED]?: string;
3352
+ [VALIDATION_RULE_TYPES.THINKING]?: string;
3351
3353
  };
3352
3354
  export const useDefaultValidationValues: () => VALIDATION_VALUES;
3353
3355
  export const INPUT_TYPES: {
@@ -3939,6 +3941,7 @@ export const MESSAGE_TYPES: {
3939
3941
  readonly SUCCESS_INFO: "success-info";
3940
3942
  readonly IN_PROGRESS: "in-progress";
3941
3943
  readonly EXPIRED: "expired";
3944
+ readonly THINKING: "thinking";
3942
3945
  };
3943
3946
  export const MESSAGE_ICON_PLACEMENT: {
3944
3947
  readonly LEFT: "left";
@@ -3965,7 +3968,7 @@ type Icons = {
3965
3968
  [key: string]: IconLookup;
3966
3969
  };
3967
3970
  export type MessageProps = {
3968
- children: ReactNode;
3971
+ children?: ReactNode;
3969
3972
  className?: string;
3970
3973
  testId?: string;
3971
3974
  /** Identifies the type of the message */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/design-system",
3
- "version": "30.5.0",
3
+ "version": "30.6.0",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",
package/styles/index.css CHANGED
@@ -522,6 +522,7 @@
522
522
  --message-color-in-progress: var(--text-secondary);
523
523
  --message-color-expired: var(--text-secondary);
524
524
  --message-color-disabled: var(--text-secondary);
525
+ --message-color-thinking: var(--text-secondary);
525
526
  /*#endregion */
526
527
  /*#region Modal */
527
528
  --modal-backdrop-bg: rgba(0, 0, 0, 0.8);
@@ -3043,6 +3044,56 @@ popout[data-popper-placement^='right']::after,
3043
3044
  margin-left: 0.25rem;
3044
3045
  }
3045
3046
 
3047
+ /*!**************************************************************************************************************************************************************************************************************************************************!*\
3048
+ !*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/message/thinking-icon.less ***!
3049
+ \**************************************************************************************************************************************************************************************************************************************************/
3050
+ .thinking-icon {
3051
+ display: inline-block;
3052
+ flex-shrink: 0;
3053
+ vertical-align: middle;
3054
+ }
3055
+ .thinking-icon.md {
3056
+ height: 1.25rem;
3057
+ width: 1.25rem;
3058
+ }
3059
+ .thinking-icon.sm {
3060
+ height: 1rem;
3061
+ width: 1rem;
3062
+ }
3063
+ .thinking-icon .bar {
3064
+ fill: currentColor;
3065
+ transform-box: fill-box;
3066
+ transform-origin: left center;
3067
+ animation-name: thinking-wipe;
3068
+ animation-duration: 2.4s;
3069
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3070
+ animation-iteration-count: infinite;
3071
+ animation-fill-mode: backwards;
3072
+ }
3073
+ @media (prefers-reduced-motion: reduce) {
3074
+ .thinking-icon .bar {
3075
+ animation: none;
3076
+ transform: scaleX(1);
3077
+ }
3078
+ }
3079
+ @keyframes thinking-wipe {
3080
+ 0% {
3081
+ transform: translateX(0) scaleX(0);
3082
+ }
3083
+ 20% {
3084
+ transform: translateX(0) scaleX(1);
3085
+ }
3086
+ 65% {
3087
+ transform: translateX(0) scaleX(1);
3088
+ }
3089
+ 83% {
3090
+ transform: translateX(100%) scaleX(0);
3091
+ }
3092
+ 100% {
3093
+ transform: translateX(100%) scaleX(0);
3094
+ }
3095
+ }
3096
+
3046
3097
  /*!********************************************************************************************************************************************************************************************************************************************!*\
3047
3098
  !*** css ../../node_modules/css-loader/dist/cjs.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[3].use[2]!../../node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[3].use[3]!./src/components/message/message.less ***!
3048
3099
  \********************************************************************************************************************************************************************************************************************************************/
@@ -3052,7 +3103,7 @@ popout[data-popper-placement^='right']::after,
3052
3103
  font-weight: var(--message-font-weight);
3053
3104
  line-height: 1.25rem;
3054
3105
  }
3055
- .message-component * + * {
3106
+ .message-component > * + * {
3056
3107
  margin-left: 0.5rem;
3057
3108
  }
3058
3109
  .message-component.with-right-icon {
@@ -3083,6 +3134,9 @@ popout[data-popper-placement^='right']::after,
3083
3134
  .message-component.disabled {
3084
3135
  color: var(--message-color-disabled);
3085
3136
  }
3137
+ .message-component.thinking {
3138
+ color: var(--message-color-thinking);
3139
+ }
3086
3140
  .message-component.status span {
3087
3141
  color: var(--message-text-color);
3088
3142
  }