@fctc/sme-widget-ui 2.3.7 → 2.3.9

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/index.js CHANGED
@@ -17145,14 +17145,24 @@ var typeStyles = {
17145
17145
  border: "1px solid #F6B51E"
17146
17146
  },
17147
17147
  default: {
17148
- backgroundColor: "#dee2e6",
17149
- color: "#000",
17150
- border: "1px solid #000"
17148
+ backgroundColor: "#FFFFFF",
17149
+ color: "#666",
17150
+ border: "1px solid #AEAEAE"
17151
17151
  },
17152
17152
  light: {
17153
17153
  backgroundColor: "#fff",
17154
17154
  color: "#1f2937",
17155
17155
  border: "1px solid #1f2937"
17156
+ },
17157
+ purpled: {
17158
+ backgroundColor: "#DCD5FF",
17159
+ color: "#5946F9",
17160
+ border: "1px solid #5946F9"
17161
+ },
17162
+ blue_light: {
17163
+ backgroundColor: "#EEFEFF",
17164
+ color: "#23A9AE",
17165
+ border: "1px solid #23A9AE"
17156
17166
  }
17157
17167
  };
17158
17168
  var baseStyle = {
@@ -17167,16 +17177,29 @@ var baseStyle = {
17167
17177
  height: "fit-content"
17168
17178
  };
17169
17179
  var ButtonBadgeField = (props) => {
17170
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
17180
+ const {
17181
+ defaultValue,
17182
+ selection,
17183
+ value,
17184
+ formValues,
17185
+ domainHelper,
17186
+ type,
17187
+ class: classField
17188
+ } = props;
17171
17189
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
17172
17190
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
17173
17191
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
17174
17192
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
17193
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
17194
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
17195
+ const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
17175
17196
  const getType = () => {
17176
17197
  if (decorationInfo) return typeStyles["info"];
17177
17198
  if (decorationSuccess) return typeStyles["success"];
17178
17199
  if (decorationDanger) return typeStyles["danger"];
17179
- if (decorationWarning) return typeStyles["warning"];
17200
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
17201
+ if (decorationPurpled) return typeStyles["purpled"];
17202
+ if (decorationInforLight) return typeStyles["blue_light"];
17180
17203
  return typeStyles["default"];
17181
17204
  };
17182
17205
  const getLabel = (value2) => {
package/dist/index.mjs CHANGED
@@ -17018,14 +17018,24 @@ var typeStyles = {
17018
17018
  border: "1px solid #F6B51E"
17019
17019
  },
17020
17020
  default: {
17021
- backgroundColor: "#dee2e6",
17022
- color: "#000",
17023
- border: "1px solid #000"
17021
+ backgroundColor: "#FFFFFF",
17022
+ color: "#666",
17023
+ border: "1px solid #AEAEAE"
17024
17024
  },
17025
17025
  light: {
17026
17026
  backgroundColor: "#fff",
17027
17027
  color: "#1f2937",
17028
17028
  border: "1px solid #1f2937"
17029
+ },
17030
+ purpled: {
17031
+ backgroundColor: "#DCD5FF",
17032
+ color: "#5946F9",
17033
+ border: "1px solid #5946F9"
17034
+ },
17035
+ blue_light: {
17036
+ backgroundColor: "#EEFEFF",
17037
+ color: "#23A9AE",
17038
+ border: "1px solid #23A9AE"
17029
17039
  }
17030
17040
  };
17031
17041
  var baseStyle = {
@@ -17040,16 +17050,29 @@ var baseStyle = {
17040
17050
  height: "fit-content"
17041
17051
  };
17042
17052
  var ButtonBadgeField = (props) => {
17043
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
17053
+ const {
17054
+ defaultValue,
17055
+ selection,
17056
+ value,
17057
+ formValues,
17058
+ domainHelper,
17059
+ type,
17060
+ class: classField
17061
+ } = props;
17044
17062
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
17045
17063
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
17046
17064
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
17047
17065
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
17066
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
17067
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
17068
+ const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
17048
17069
  const getType = () => {
17049
17070
  if (decorationInfo) return typeStyles["info"];
17050
17071
  if (decorationSuccess) return typeStyles["success"];
17051
17072
  if (decorationDanger) return typeStyles["danger"];
17052
- if (decorationWarning) return typeStyles["warning"];
17073
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
17074
+ if (decorationPurpled) return typeStyles["purpled"];
17075
+ if (decorationInforLight) return typeStyles["blue_light"];
17053
17076
  return typeStyles["default"];
17054
17077
  };
17055
17078
  const getLabel = (value2) => {
@@ -177,7 +177,11 @@ interface IButtonBadgeProps extends IInputFieldProps {
177
177
  'decoration-info'?: any;
178
178
  'decoration-danger'?: any;
179
179
  'decoration-warning'?: any;
180
+ 'decoration-purpled'?: any;
181
+ 'decoration-oranged'?: any;
182
+ 'decoration-info-light'?: any;
180
183
  domainHelper?: any;
184
+ class?: string;
181
185
  }
182
186
 
183
187
  declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
package/dist/widgets.d.ts CHANGED
@@ -177,7 +177,11 @@ interface IButtonBadgeProps extends IInputFieldProps {
177
177
  'decoration-info'?: any;
178
178
  'decoration-danger'?: any;
179
179
  'decoration-warning'?: any;
180
+ 'decoration-purpled'?: any;
181
+ 'decoration-oranged'?: any;
182
+ 'decoration-info-light'?: any;
180
183
  domainHelper?: any;
184
+ class?: string;
181
185
  }
182
186
 
183
187
  declare const ButtonBadgeField: (props: IButtonBadgeProps) => JSX.Element | null;
package/dist/widgets.js CHANGED
@@ -16394,14 +16394,24 @@ var typeStyles = {
16394
16394
  border: "1px solid #F6B51E"
16395
16395
  },
16396
16396
  default: {
16397
- backgroundColor: "#dee2e6",
16398
- color: "#000",
16399
- border: "1px solid #000"
16397
+ backgroundColor: "#FFFFFF",
16398
+ color: "#666",
16399
+ border: "1px solid #AEAEAE"
16400
16400
  },
16401
16401
  light: {
16402
16402
  backgroundColor: "#fff",
16403
16403
  color: "#1f2937",
16404
16404
  border: "1px solid #1f2937"
16405
+ },
16406
+ purpled: {
16407
+ backgroundColor: "#DCD5FF",
16408
+ color: "#5946F9",
16409
+ border: "1px solid #5946F9"
16410
+ },
16411
+ blue_light: {
16412
+ backgroundColor: "#EEFEFF",
16413
+ color: "#23A9AE",
16414
+ border: "1px solid #23A9AE"
16405
16415
  }
16406
16416
  };
16407
16417
  var baseStyle = {
@@ -16416,16 +16426,29 @@ var baseStyle = {
16416
16426
  height: "fit-content"
16417
16427
  };
16418
16428
  var ButtonBadgeField = (props) => {
16419
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
16429
+ const {
16430
+ defaultValue,
16431
+ selection,
16432
+ value,
16433
+ formValues,
16434
+ domainHelper,
16435
+ type,
16436
+ class: classField
16437
+ } = props;
16420
16438
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
16421
16439
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
16422
16440
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
16423
16441
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
16442
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
16443
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
16444
+ const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
16424
16445
  const getType = () => {
16425
16446
  if (decorationInfo) return typeStyles["info"];
16426
16447
  if (decorationSuccess) return typeStyles["success"];
16427
16448
  if (decorationDanger) return typeStyles["danger"];
16428
- if (decorationWarning) return typeStyles["warning"];
16449
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
16450
+ if (decorationPurpled) return typeStyles["purpled"];
16451
+ if (decorationInforLight) return typeStyles["blue_light"];
16429
16452
  return typeStyles["default"];
16430
16453
  };
16431
16454
  const getLabel = (value2) => {
package/dist/widgets.mjs CHANGED
@@ -16331,14 +16331,24 @@ var typeStyles = {
16331
16331
  border: "1px solid #F6B51E"
16332
16332
  },
16333
16333
  default: {
16334
- backgroundColor: "#dee2e6",
16335
- color: "#000",
16336
- border: "1px solid #000"
16334
+ backgroundColor: "#FFFFFF",
16335
+ color: "#666",
16336
+ border: "1px solid #AEAEAE"
16337
16337
  },
16338
16338
  light: {
16339
16339
  backgroundColor: "#fff",
16340
16340
  color: "#1f2937",
16341
16341
  border: "1px solid #1f2937"
16342
+ },
16343
+ purpled: {
16344
+ backgroundColor: "#DCD5FF",
16345
+ color: "#5946F9",
16346
+ border: "1px solid #5946F9"
16347
+ },
16348
+ blue_light: {
16349
+ backgroundColor: "#EEFEFF",
16350
+ color: "#23A9AE",
16351
+ border: "1px solid #23A9AE"
16342
16352
  }
16343
16353
  };
16344
16354
  var baseStyle = {
@@ -16353,16 +16363,29 @@ var baseStyle = {
16353
16363
  height: "fit-content"
16354
16364
  };
16355
16365
  var ButtonBadgeField = (props) => {
16356
- const { defaultValue, selection, value, formValues, domainHelper, type } = props;
16366
+ const {
16367
+ defaultValue,
16368
+ selection,
16369
+ value,
16370
+ formValues,
16371
+ domainHelper,
16372
+ type,
16373
+ class: classField
16374
+ } = props;
16357
16375
  const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
16358
16376
  const decorationInfo = props["decoration-info"] && domainHelper.checkDomain(formValues, props["decoration-info"]);
16359
16377
  const decorationDanger = props["decoration-danger"] && domainHelper.checkDomain(formValues, props["decoration-danger"]);
16360
16378
  const decorationWarning = props["decoration-warning"] && domainHelper.checkDomain(formValues, props["decoration-warning"]);
16379
+ const decorationPurpled = props["decoration-purpled"] && domainHelper.checkDomain(formValues, props["decoration-purpled"]);
16380
+ const decorationOrange = props["decoration-oranged"] && domainHelper.checkDomain(formValues, props["decoration-oranged"]);
16381
+ const decorationInforLight = props["decoration-info-light"] && domainHelper.checkDomain(formValues, props["decoration-info-light"]);
16361
16382
  const getType = () => {
16362
16383
  if (decorationInfo) return typeStyles["info"];
16363
16384
  if (decorationSuccess) return typeStyles["success"];
16364
16385
  if (decorationDanger) return typeStyles["danger"];
16365
- if (decorationWarning) return typeStyles["warning"];
16386
+ if (decorationWarning || decorationOrange) return typeStyles["warning"];
16387
+ if (decorationPurpled) return typeStyles["purpled"];
16388
+ if (decorationInforLight) return typeStyles["blue_light"];
16366
16389
  return typeStyles["default"];
16367
16390
  };
16368
16391
  const getLabel = (value2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.3.7",
3
+ "version": "2.3.9",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",