@cloudscape-design/components-themeable 3.0.1148 → 3.0.1150

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.
Files changed (64) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/input/styles.scss +8 -2
  3. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  4. package/lib/internal/scss/internal/styles/forms/mixins.scss +6 -6
  5. package/lib/internal/scss/prompt-input/styles.scss +16 -4
  6. package/lib/internal/scss/textarea/styles.scss +8 -2
  7. package/lib/internal/template/alert/interfaces.d.ts +12 -0
  8. package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
  9. package/lib/internal/template/alert/interfaces.js.map +1 -1
  10. package/lib/internal/template/alert/internal.d.ts.map +1 -1
  11. package/lib/internal/template/alert/internal.js +35 -3
  12. package/lib/internal/template/alert/internal.js.map +1 -1
  13. package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
  14. package/lib/internal/template/flashbar/collapsible-flashbar.js +14 -13
  15. package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
  16. package/lib/internal/template/flashbar/common.d.ts +2 -1
  17. package/lib/internal/template/flashbar/common.d.ts.map +1 -1
  18. package/lib/internal/template/flashbar/common.js +67 -1
  19. package/lib/internal/template/flashbar/common.js.map +1 -1
  20. package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
  21. package/lib/internal/template/flashbar/flash.js +4 -4
  22. package/lib/internal/template/flashbar/flash.js.map +1 -1
  23. package/lib/internal/template/flashbar/interfaces.d.ts +8 -0
  24. package/lib/internal/template/flashbar/interfaces.d.ts.map +1 -1
  25. package/lib/internal/template/flashbar/interfaces.js.map +1 -1
  26. package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  27. package/lib/internal/template/flashbar/non-collapsible-flashbar.js +7 -6
  28. package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
  29. package/lib/internal/template/input/styles.css.js +13 -13
  30. package/lib/internal/template/input/styles.d.ts.map +1 -1
  31. package/lib/internal/template/input/styles.js +26 -36
  32. package/lib/internal/template/input/styles.js.map +1 -1
  33. package/lib/internal/template/input/styles.scoped.css +33 -33
  34. package/lib/internal/template/input/styles.selectors.js +13 -13
  35. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  36. package/lib/internal/template/internal/environment.js +2 -2
  37. package/lib/internal/template/internal/environment.json +2 -2
  38. package/lib/internal/template/internal/persistence/index.d.ts +15 -0
  39. package/lib/internal/template/internal/persistence/index.d.ts.map +1 -0
  40. package/lib/internal/template/internal/persistence/index.js +42 -0
  41. package/lib/internal/template/internal/persistence/index.js.map +1 -0
  42. package/lib/internal/template/prompt-input/styles.css.js +17 -17
  43. package/lib/internal/template/prompt-input/styles.scoped.css +47 -47
  44. package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
  45. package/lib/internal/template/property-filter/token-editor.d.ts.map +1 -1
  46. package/lib/internal/template/property-filter/token-editor.js +3 -1
  47. package/lib/internal/template/property-filter/token-editor.js.map +1 -1
  48. package/lib/internal/template/radio-group/index.d.ts.map +1 -1
  49. package/lib/internal/template/radio-group/index.js +4 -5
  50. package/lib/internal/template/radio-group/index.js.map +1 -1
  51. package/lib/internal/template/text-filter/interfaces.d.ts +48 -0
  52. package/lib/internal/template/text-filter/interfaces.d.ts.map +1 -1
  53. package/lib/internal/template/text-filter/interfaces.js.map +1 -1
  54. package/lib/internal/template/text-filter/internal.d.ts.map +1 -1
  55. package/lib/internal/template/text-filter/internal.js +2 -2
  56. package/lib/internal/template/text-filter/internal.js.map +1 -1
  57. package/lib/internal/template/text-filter/styles.d.ts +3 -0
  58. package/lib/internal/template/text-filter/styles.d.ts.map +1 -0
  59. package/lib/internal/template/text-filter/styles.js +44 -0
  60. package/lib/internal/template/text-filter/styles.js.map +1 -0
  61. package/lib/internal/template/textarea/styles.css.js +5 -5
  62. package/lib/internal/template/textarea/styles.scoped.css +17 -17
  63. package/lib/internal/template/textarea/styles.selectors.js +5 -5
  64. package/package.json +1 -1
@@ -3,9 +3,9 @@
3
3
  import { SYSTEM } from '../internal/environment';
4
4
  import customCssProps from '../internal/generated/custom-css-properties';
5
5
  export function getInputStyles(style) {
6
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
6
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25;
7
7
  let properties = {};
8
- if ((style === null || style === void 0 ? void 0 : style.root) && SYSTEM === 'core') {
8
+ if (SYSTEM === 'core') {
9
9
  properties = {
10
10
  borderRadius: (_a = style === null || style === void 0 ? void 0 : style.root) === null || _a === void 0 ? void 0 : _a.borderRadius,
11
11
  borderWidth: (_b = style === null || style === void 0 ? void 0 : style.root) === null || _b === void 0 ? void 0 : _b.borderWidth,
@@ -13,40 +13,30 @@ export function getInputStyles(style) {
13
13
  fontWeight: (_d = style === null || style === void 0 ? void 0 : style.root) === null || _d === void 0 ? void 0 : _d.fontWeight,
14
14
  paddingBlock: (_e = style === null || style === void 0 ? void 0 : style.root) === null || _e === void 0 ? void 0 : _e.paddingBlock,
15
15
  paddingInline: (_f = style === null || style === void 0 ? void 0 : style.root) === null || _f === void 0 ? void 0 : _f.paddingInline,
16
- ...(((_g = style === null || style === void 0 ? void 0 : style.root) === null || _g === void 0 ? void 0 : _g.backgroundColor) && {
17
- [customCssProps.styleBackgroundDefault]: (_h = style.root.backgroundColor) === null || _h === void 0 ? void 0 : _h.default,
18
- [customCssProps.styleBackgroundDisabled]: (_j = style.root.backgroundColor) === null || _j === void 0 ? void 0 : _j.disabled,
19
- [customCssProps.styleBackgroundHover]: (_k = style.root.backgroundColor) === null || _k === void 0 ? void 0 : _k.hover,
20
- [customCssProps.styleBackgroundFocus]: (_l = style.root.backgroundColor) === null || _l === void 0 ? void 0 : _l.focus,
21
- [customCssProps.styleBackgroundReadonly]: (_m = style.root.backgroundColor) === null || _m === void 0 ? void 0 : _m.readonly,
22
- }),
23
- ...(((_o = style === null || style === void 0 ? void 0 : style.root) === null || _o === void 0 ? void 0 : _o.borderColor) && {
24
- [customCssProps.styleBorderColorDefault]: (_p = style.root.borderColor) === null || _p === void 0 ? void 0 : _p.default,
25
- [customCssProps.styleBorderColorDisabled]: (_q = style.root.borderColor) === null || _q === void 0 ? void 0 : _q.disabled,
26
- [customCssProps.styleBorderColorHover]: (_r = style.root.borderColor) === null || _r === void 0 ? void 0 : _r.hover,
27
- [customCssProps.styleBorderColorFocus]: (_s = style.root.borderColor) === null || _s === void 0 ? void 0 : _s.focus,
28
- [customCssProps.styleBorderColorReadonly]: (_t = style.root.borderColor) === null || _t === void 0 ? void 0 : _t.readonly,
29
- }),
30
- ...(((_u = style === null || style === void 0 ? void 0 : style.root) === null || _u === void 0 ? void 0 : _u.boxShadow) && {
31
- [customCssProps.styleBoxShadowDefault]: (_v = style.root.boxShadow) === null || _v === void 0 ? void 0 : _v.default,
32
- [customCssProps.styleBoxShadowDisabled]: (_w = style.root.boxShadow) === null || _w === void 0 ? void 0 : _w.disabled,
33
- [customCssProps.styleBoxShadowHover]: (_x = style.root.boxShadow) === null || _x === void 0 ? void 0 : _x.hover,
34
- [customCssProps.styleBoxShadowFocus]: (_y = style.root.boxShadow) === null || _y === void 0 ? void 0 : _y.focus,
35
- [customCssProps.styleBoxShadowReadonly]: (_z = style.root.boxShadow) === null || _z === void 0 ? void 0 : _z.readonly,
36
- }),
37
- ...(((_0 = style === null || style === void 0 ? void 0 : style.root) === null || _0 === void 0 ? void 0 : _0.color) && {
38
- [customCssProps.styleColorDefault]: (_1 = style.root.color) === null || _1 === void 0 ? void 0 : _1.default,
39
- [customCssProps.styleColorDisabled]: (_2 = style.root.color) === null || _2 === void 0 ? void 0 : _2.disabled,
40
- [customCssProps.styleColorHover]: (_3 = style.root.color) === null || _3 === void 0 ? void 0 : _3.hover,
41
- [customCssProps.styleColorFocus]: (_4 = style.root.color) === null || _4 === void 0 ? void 0 : _4.focus,
42
- [customCssProps.styleColorReadonly]: (_5 = style.root.color) === null || _5 === void 0 ? void 0 : _5.readonly,
43
- }),
44
- ...((style === null || style === void 0 ? void 0 : style.placeholder) && {
45
- [customCssProps.stylePlaceholderColor]: (_6 = style.placeholder) === null || _6 === void 0 ? void 0 : _6.color,
46
- [customCssProps.stylePlaceholderFontSize]: (_7 = style.placeholder) === null || _7 === void 0 ? void 0 : _7.fontSize,
47
- [customCssProps.stylePlaceholderFontWeight]: (_8 = style.placeholder) === null || _8 === void 0 ? void 0 : _8.fontWeight,
48
- [customCssProps.stylePlaceholderFontStyle]: (_9 = style.placeholder) === null || _9 === void 0 ? void 0 : _9.fontStyle,
49
- }),
16
+ [customCssProps.styleBackgroundDefault]: (_h = (_g = style === null || style === void 0 ? void 0 : style.root) === null || _g === void 0 ? void 0 : _g.backgroundColor) === null || _h === void 0 ? void 0 : _h.default,
17
+ [customCssProps.styleBackgroundDisabled]: (_k = (_j = style === null || style === void 0 ? void 0 : style.root) === null || _j === void 0 ? void 0 : _j.backgroundColor) === null || _k === void 0 ? void 0 : _k.disabled,
18
+ [customCssProps.styleBackgroundHover]: (_m = (_l = style === null || style === void 0 ? void 0 : style.root) === null || _l === void 0 ? void 0 : _l.backgroundColor) === null || _m === void 0 ? void 0 : _m.hover,
19
+ [customCssProps.styleBackgroundFocus]: (_p = (_o = style === null || style === void 0 ? void 0 : style.root) === null || _o === void 0 ? void 0 : _o.backgroundColor) === null || _p === void 0 ? void 0 : _p.focus,
20
+ [customCssProps.styleBackgroundReadonly]: (_r = (_q = style === null || style === void 0 ? void 0 : style.root) === null || _q === void 0 ? void 0 : _q.backgroundColor) === null || _r === void 0 ? void 0 : _r.readonly,
21
+ [customCssProps.styleBorderColorDefault]: (_t = (_s = style === null || style === void 0 ? void 0 : style.root) === null || _s === void 0 ? void 0 : _s.borderColor) === null || _t === void 0 ? void 0 : _t.default,
22
+ [customCssProps.styleBorderColorDisabled]: (_v = (_u = style === null || style === void 0 ? void 0 : style.root) === null || _u === void 0 ? void 0 : _u.borderColor) === null || _v === void 0 ? void 0 : _v.disabled,
23
+ [customCssProps.styleBorderColorHover]: (_x = (_w = style === null || style === void 0 ? void 0 : style.root) === null || _w === void 0 ? void 0 : _w.borderColor) === null || _x === void 0 ? void 0 : _x.hover,
24
+ [customCssProps.styleBorderColorFocus]: (_z = (_y = style === null || style === void 0 ? void 0 : style.root) === null || _y === void 0 ? void 0 : _y.borderColor) === null || _z === void 0 ? void 0 : _z.focus,
25
+ [customCssProps.styleBorderColorReadonly]: (_1 = (_0 = style === null || style === void 0 ? void 0 : style.root) === null || _0 === void 0 ? void 0 : _0.borderColor) === null || _1 === void 0 ? void 0 : _1.readonly,
26
+ [customCssProps.styleBoxShadowDefault]: (_3 = (_2 = style === null || style === void 0 ? void 0 : style.root) === null || _2 === void 0 ? void 0 : _2.boxShadow) === null || _3 === void 0 ? void 0 : _3.default,
27
+ [customCssProps.styleBoxShadowDisabled]: (_5 = (_4 = style === null || style === void 0 ? void 0 : style.root) === null || _4 === void 0 ? void 0 : _4.boxShadow) === null || _5 === void 0 ? void 0 : _5.disabled,
28
+ [customCssProps.styleBoxShadowHover]: (_7 = (_6 = style === null || style === void 0 ? void 0 : style.root) === null || _6 === void 0 ? void 0 : _6.boxShadow) === null || _7 === void 0 ? void 0 : _7.hover,
29
+ [customCssProps.styleBoxShadowFocus]: (_9 = (_8 = style === null || style === void 0 ? void 0 : style.root) === null || _8 === void 0 ? void 0 : _8.boxShadow) === null || _9 === void 0 ? void 0 : _9.focus,
30
+ [customCssProps.styleBoxShadowReadonly]: (_11 = (_10 = style === null || style === void 0 ? void 0 : style.root) === null || _10 === void 0 ? void 0 : _10.boxShadow) === null || _11 === void 0 ? void 0 : _11.readonly,
31
+ [customCssProps.styleColorDefault]: (_13 = (_12 = style === null || style === void 0 ? void 0 : style.root) === null || _12 === void 0 ? void 0 : _12.color) === null || _13 === void 0 ? void 0 : _13.default,
32
+ [customCssProps.styleColorDisabled]: (_15 = (_14 = style === null || style === void 0 ? void 0 : style.root) === null || _14 === void 0 ? void 0 : _14.color) === null || _15 === void 0 ? void 0 : _15.disabled,
33
+ [customCssProps.styleColorHover]: (_17 = (_16 = style === null || style === void 0 ? void 0 : style.root) === null || _16 === void 0 ? void 0 : _16.color) === null || _17 === void 0 ? void 0 : _17.hover,
34
+ [customCssProps.styleColorFocus]: (_19 = (_18 = style === null || style === void 0 ? void 0 : style.root) === null || _18 === void 0 ? void 0 : _18.color) === null || _19 === void 0 ? void 0 : _19.focus,
35
+ [customCssProps.styleColorReadonly]: (_21 = (_20 = style === null || style === void 0 ? void 0 : style.root) === null || _20 === void 0 ? void 0 : _20.color) === null || _21 === void 0 ? void 0 : _21.readonly,
36
+ [customCssProps.stylePlaceholderColor]: (_22 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _22 === void 0 ? void 0 : _22.color,
37
+ [customCssProps.stylePlaceholderFontSize]: (_23 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _23 === void 0 ? void 0 : _23.fontSize,
38
+ [customCssProps.stylePlaceholderFontWeight]: (_24 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _24 === void 0 ? void 0 : _24.fontWeight,
39
+ [customCssProps.stylePlaceholderFontStyle]: (_25 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _25 === void 0 ? void 0 : _25.fontStyle,
50
40
  };
51
41
  return properties;
52
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,cAAc,M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AC,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,KAAK,KAAI;gBACxB,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,0CAAE,OAAO;gBAC7D,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,0CAAE,QAAQ;gBAC/D,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,0CAAE,KAAK;gBACzD,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,0CAAE,KAAK;gBACzD,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,MAAA,KAAK,CAAC,IAAI,CAAC,KAAK,0CAAE,QAAQ;aAChE,CAAC;YACF,GAAG,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,KAAI;gBACxB,CAAC,cAAc,CAAC,qBAAqB,CAAC,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,KAAK;gBAChE,CAAC,cAAc,CAAC,wBAAwB,CAAC,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ;gBACtE,CAAC,cAAc,CAAC,0BAA0B,CAAC,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,UAAU;gBAC1E,CAAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,SAAS;aACzE,CAAC;SACH,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { SYSTEM } from '../internal/environment';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { InputProps } from './interfaces';\n\nexport function getInputStyles(style: InputProps['style']) {\n let properties = {};\n\n if (style?.root && SYSTEM === 'core') {\n properties = {\n borderRadius: style?.root?.borderRadius,\n borderWidth: style?.root?.borderWidth,\n fontSize: style?.root?.fontSize,\n fontWeight: style?.root?.fontWeight,\n paddingBlock: style?.root?.paddingBlock,\n paddingInline: style?.root?.paddingInline,\n ...(style?.root?.backgroundColor && {\n [customCssProps.styleBackgroundDefault]: style.root.backgroundColor?.default,\n [customCssProps.styleBackgroundDisabled]: style.root.backgroundColor?.disabled,\n [customCssProps.styleBackgroundHover]: style.root.backgroundColor?.hover,\n [customCssProps.styleBackgroundFocus]: style.root.backgroundColor?.focus,\n [customCssProps.styleBackgroundReadonly]: style.root.backgroundColor?.readonly,\n }),\n ...(style?.root?.borderColor && {\n [customCssProps.styleBorderColorDefault]: style.root.borderColor?.default,\n [customCssProps.styleBorderColorDisabled]: style.root.borderColor?.disabled,\n [customCssProps.styleBorderColorHover]: style.root.borderColor?.hover,\n [customCssProps.styleBorderColorFocus]: style.root.borderColor?.focus,\n [customCssProps.styleBorderColorReadonly]: style.root.borderColor?.readonly,\n }),\n ...(style?.root?.boxShadow && {\n [customCssProps.styleBoxShadowDefault]: style.root.boxShadow?.default,\n [customCssProps.styleBoxShadowDisabled]: style.root.boxShadow?.disabled,\n [customCssProps.styleBoxShadowHover]: style.root.boxShadow?.hover,\n [customCssProps.styleBoxShadowFocus]: style.root.boxShadow?.focus,\n [customCssProps.styleBoxShadowReadonly]: style.root.boxShadow?.readonly,\n }),\n ...(style?.root?.color && {\n [customCssProps.styleColorDefault]: style.root.color?.default,\n [customCssProps.styleColorDisabled]: style.root.color?.disabled,\n [customCssProps.styleColorHover]: style.root.color?.hover,\n [customCssProps.styleColorFocus]: style.root.color?.focus,\n [customCssProps.styleColorReadonly]: style.root.color?.readonly,\n }),\n ...(style?.placeholder && {\n [customCssProps.stylePlaceholderColor]: style.placeholder?.color,\n [customCssProps.stylePlaceholderFontSize]: style.placeholder?.fontSize,\n [customCssProps.stylePlaceholderFontWeight]: style.placeholder?.fontWeight,\n [customCssProps.stylePlaceholderFontStyle]: style.placeholder?.fontStyle,\n }),\n };\n\n return properties;\n }\n}\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAGzE,MAAM,UAAU,cAAc,CAAC,KAA0B;;IACvD,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,UAAU,GAAG;YACX,YAAY,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,YAAY;YACvC,WAAW,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,WAAW;YACrC,QAAQ,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,QAAQ;YAC/B,UAAU,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,UAAU;YACnC,YAAY,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,YAAY;YACvC,aAAa,EAAE,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,aAAa;YACzC,CAAC,cAAc,CAAC,sBAAsB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,eAAe,0CAAE,OAAO;YAC9E,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,0CAAE,eAAe,0CAAE,QAAQ;YAChF,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,MAAA,MAAA,KAAK,aAAL,KAAK,uBAA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AE,OAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,4CAAE,UAAU;YAC3E,CAAC,cAAc,CAAC,yBAAyB,CAAC,EAAE,OAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,4CAAE,SAAS;SAC1E,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { SYSTEM } from '../internal/environment';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { InputProps } from './interfaces';\n\nexport function getInputStyles(style: InputProps['style']) {\n let properties = {};\n\n if (SYSTEM === 'core') {\n properties = {\n borderRadius: style?.root?.borderRadius,\n borderWidth: style?.root?.borderWidth,\n fontSize: style?.root?.fontSize,\n fontWeight: style?.root?.fontWeight,\n paddingBlock: style?.root?.paddingBlock,\n paddingInline: style?.root?.paddingInline,\n [customCssProps.styleBackgroundDefault]: style?.root?.backgroundColor?.default,\n [customCssProps.styleBackgroundDisabled]: style?.root?.backgroundColor?.disabled,\n [customCssProps.styleBackgroundHover]: style?.root?.backgroundColor?.hover,\n [customCssProps.styleBackgroundFocus]: style?.root?.backgroundColor?.focus,\n [customCssProps.styleBackgroundReadonly]: style?.root?.backgroundColor?.readonly,\n [customCssProps.styleBorderColorDefault]: style?.root?.borderColor?.default,\n [customCssProps.styleBorderColorDisabled]: style?.root?.borderColor?.disabled,\n [customCssProps.styleBorderColorHover]: style?.root?.borderColor?.hover,\n [customCssProps.styleBorderColorFocus]: style?.root?.borderColor?.focus,\n [customCssProps.styleBorderColorReadonly]: style?.root?.borderColor?.readonly,\n [customCssProps.styleBoxShadowDefault]: style?.root?.boxShadow?.default,\n [customCssProps.styleBoxShadowDisabled]: style?.root?.boxShadow?.disabled,\n [customCssProps.styleBoxShadowHover]: style?.root?.boxShadow?.hover,\n [customCssProps.styleBoxShadowFocus]: style?.root?.boxShadow?.focus,\n [customCssProps.styleBoxShadowReadonly]: style?.root?.boxShadow?.readonly,\n [customCssProps.styleColorDefault]: style?.root?.color?.default,\n [customCssProps.styleColorDisabled]: style?.root?.color?.disabled,\n [customCssProps.styleColorHover]: style?.root?.color?.hover,\n [customCssProps.styleColorFocus]: style?.root?.color?.focus,\n [customCssProps.styleColorReadonly]: style?.root?.color?.readonly,\n [customCssProps.stylePlaceholderColor]: style?.placeholder?.color,\n [customCssProps.stylePlaceholderFontSize]: style?.placeholder?.fontSize,\n [customCssProps.stylePlaceholderFontWeight]: style?.placeholder?.fontWeight,\n [customCssProps.stylePlaceholderFontStyle]: style?.placeholder?.fontStyle,\n };\n\n return properties;\n }\n}\n"]}
@@ -142,11 +142,11 @@
142
142
  */
143
143
  /* Style used for links in slots/components that are text heavy, to help links stand out among
144
144
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
145
- .awsui_root_2rhyz_3vds6_145:not(#\9) {
145
+ .awsui_root_2rhyz_q1m0j_145:not(#\9) {
146
146
  /* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
147
147
  }
148
148
 
149
- .awsui_input_2rhyz_3vds6_149:not(#\9) {
149
+ .awsui_input_2rhyz_q1m0j_149:not(#\9) {
150
150
  border-collapse: separate;
151
151
  border-spacing: 0;
152
152
  box-sizing: border-box;
@@ -194,20 +194,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
194
194
  line-height: var(--line-height-body-m-bedeoh, 22px);
195
195
  block-size: var(--size-vertical-input-8gzd1t, 32px);
196
196
  }
197
- .awsui_input_2rhyz_3vds6_149:not(#\9):hover {
197
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):hover {
198
198
  border-color: var(--awsui-style-border-color-hover-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-default-txli8y, #687078)));
199
199
  color: var(--awsui-style-color-hover-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-text-body-default-5qid0u, #16191f)));
200
200
  background-color: var(--awsui-style-background-hover-d43v8n, var(--awsui-style-background-default-d43v8n, var(--color-background-input-default-1z2buq, #ffffff)));
201
201
  box-shadow: var(--awsui-style-box-shadow-hover-d43v8n, --awsui-style-box-shadow-default-d43v8n);
202
202
  }
203
- .awsui_input_2rhyz_3vds6_149.awsui_input-readonly_2rhyz_3vds6_203:not(#\9) {
203
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-readonly_2rhyz_q1m0j_203:not(#\9) {
204
204
  background-color: var(--awsui-style-background-readonly-d43v8n, var(--awsui-style-background-default-d43v8n, var(--color-background-input-default-1z2buq, #ffffff)));
205
205
  border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-readonly-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-disabled-tz38ro, #eaeded)));
206
206
  border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-readonly-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-disabled-tz38ro, #eaeded)));
207
207
  color: var(--awsui-style-color-readonly-d43v8n, var(--awsui-style-color-default-d43v8n, var(--color-text-body-default-5qid0u, #16191f)));
208
208
  box-shadow: var(--awsui-style-box-shadow-readonly-d43v8n);
209
209
  }
210
- .awsui_input_2rhyz_3vds6_149:not(#\9)::-webkit-input-placeholder {
210
+ .awsui_input_2rhyz_q1m0j_149:not(#\9)::-webkit-input-placeholder {
211
211
  color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-hvcry0, #687078));
212
212
  font-size: var(--awsui-style-placeholder-font-size-d43v8n);
213
213
  font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
@@ -215,21 +215,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
215
215
  -webkit-user-select: none;
216
216
  user-select: none;
217
217
  }
218
- .awsui_input_2rhyz_3vds6_149:not(#\9)::-moz-placeholder {
218
+ .awsui_input_2rhyz_q1m0j_149:not(#\9)::-moz-placeholder {
219
219
  color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-hvcry0, #687078));
220
220
  font-size: var(--awsui-style-placeholder-font-size-d43v8n);
221
221
  font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
222
222
  font-weight: var(--awsui-style-placeholder-font-weight-d43v8n);
223
223
  opacity: 1;
224
224
  }
225
- .awsui_input_2rhyz_3vds6_149:not(#\9):-moz-placeholder {
225
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):-moz-placeholder {
226
226
  color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-hvcry0, #687078));
227
227
  font-size: var(--awsui-style-placeholder-font-size-d43v8n);
228
228
  font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
229
229
  font-weight: var(--awsui-style-placeholder-font-weight-d43v8n);
230
230
  opacity: 1;
231
231
  }
232
- .awsui_input_2rhyz_3vds6_149:not(#\9):focus {
232
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):focus {
233
233
  outline: 2px dotted transparent;
234
234
  border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-focus-d43v8n, var(--color-border-input-focused-lslq4r, #0073bb));
235
235
  border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-focus-d43v8n, var(--color-border-input-focused-lslq4r, #0073bb));
@@ -241,7 +241,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
241
241
  color: var(--awsui-style-color-focus-d43v8n, var(--color-text-body-default-5qid0u, #16191f));
242
242
  background-color: var(--awsui-style-background-focus-d43v8n, var(--color-background-input-default-1z2buq, #ffffff));
243
243
  }
244
- .awsui_input_2rhyz_3vds6_149:not(#\9):disabled {
244
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):disabled {
245
245
  background-color: var(--awsui-style-background-disabled-d43v8n, var(--color-background-input-disabled-4vlau3, #eaeded));
246
246
  border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-disabled-d43v8n, var(--color-border-input-disabled-tz38ro, #eaeded));
247
247
  border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-disabled-d43v8n, var(--color-border-input-disabled-tz38ro, #eaeded));
@@ -249,87 +249,87 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
249
249
  cursor: default;
250
250
  box-shadow: var(--awsui-style-box-shadow-disabled-d43v8n);
251
251
  }
252
- .awsui_input_2rhyz_3vds6_149:not(#\9):disabled::-webkit-input-placeholder {
252
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):disabled::-webkit-input-placeholder {
253
253
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
254
254
  -webkit-user-select: none;
255
255
  user-select: none;
256
256
  }
257
- .awsui_input_2rhyz_3vds6_149:not(#\9):disabled::-moz-placeholder {
257
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):disabled::-moz-placeholder {
258
258
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
259
259
  opacity: 1;
260
260
  }
261
- .awsui_input_2rhyz_3vds6_149:not(#\9):disabled:-moz-placeholder {
261
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):disabled:-moz-placeholder {
262
262
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
263
263
  opacity: 1;
264
264
  }
265
- .awsui_input_2rhyz_3vds6_149:not(#\9):invalid {
265
+ .awsui_input_2rhyz_q1m0j_149:not(#\9):invalid {
266
266
  box-shadow: none;
267
267
  }
268
- .awsui_input_2rhyz_3vds6_149.awsui_input-invalid_2rhyz_3vds6_266:not(#\9) {
269
- color: var(--color-text-status-error-aknuvu, #d13212);
270
- border-color: var(--color-text-status-error-aknuvu, #d13212);
268
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-invalid_2rhyz_q1m0j_266:not(#\9) {
269
+ color: var(--awsui-style-color-default-d43v8n, var(--color-text-status-error-aknuvu, #d13212));
270
+ border-color: var(--awsui-style-border-color-default-d43v8n, var(--color-text-status-error-aknuvu, #d13212));
271
271
  padding-inline-start: calc(var(--space-field-horizontal-n5peob, 8px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
272
272
  border-inline-start-width: var(--border-invalid-width-z5cnpo, 4px);
273
273
  }
274
- .awsui_input_2rhyz_3vds6_149.awsui_input-invalid_2rhyz_3vds6_266:not(#\9):focus {
274
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-invalid_2rhyz_q1m0j_266:not(#\9):focus {
275
275
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-t0us6n, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
276
276
  }
277
- .awsui_input_2rhyz_3vds6_149.awsui_input-invalid_2rhyz_3vds6_266.awsui_input-has-icon-left_2rhyz_3vds6_275:not(#\9) {
277
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-invalid_2rhyz_q1m0j_266.awsui_input-has-icon-left_2rhyz_q1m0j_275:not(#\9) {
278
278
  padding-inline-start: calc(var(--space-field-icon-offset-ihoxql, 32px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
279
279
  }
280
- .awsui_input_2rhyz_3vds6_149.awsui_input-warning_2rhyz_3vds6_278:not(#\9) {
281
- color: var(--color-text-status-warning-9b45qh, #906806);
282
- border-color: var(--color-text-status-warning-9b45qh, #906806);
280
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-warning_2rhyz_q1m0j_278:not(#\9) {
281
+ color: var(--awsui-style-color-default-d43v8n, var(--color-text-status-warning-9b45qh, #906806));
282
+ border-color: var(--awsui-style-border-color-default-d43v8n, var(--color-text-status-warning-9b45qh, #906806));
283
283
  padding-inline-start: calc(var(--space-field-horizontal-n5peob, 8px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
284
284
  border-inline-start-width: var(--border-invalid-width-z5cnpo, 4px);
285
285
  }
286
- .awsui_input_2rhyz_3vds6_149.awsui_input-warning_2rhyz_3vds6_278:not(#\9):focus {
286
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-warning_2rhyz_q1m0j_278:not(#\9):focus {
287
287
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-t0us6n, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
288
288
  }
289
- .awsui_input_2rhyz_3vds6_149.awsui_input-warning_2rhyz_3vds6_278.awsui_input-has-icon-left_2rhyz_3vds6_275:not(#\9) {
289
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-warning_2rhyz_q1m0j_278.awsui_input-has-icon-left_2rhyz_q1m0j_275:not(#\9) {
290
290
  padding-inline-start: calc(var(--space-field-icon-offset-ihoxql, 32px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
291
291
  }
292
- .awsui_input_2rhyz_3vds6_149.awsui_input-type-search_2rhyz_3vds6_290:not(#\9) {
292
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-type-search_2rhyz_q1m0j_290:not(#\9) {
293
293
  box-sizing: border-box;
294
294
  -webkit-appearance: none;
295
295
  }
296
- .awsui_input_2rhyz_3vds6_149.awsui_input-type-search_2rhyz_3vds6_290:not(#\9)::-webkit-search-decoration {
296
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-type-search_2rhyz_q1m0j_290:not(#\9)::-webkit-search-decoration {
297
297
  -webkit-appearance: none;
298
298
  }
299
- .awsui_input_2rhyz_3vds6_149.awsui_input-type-search_2rhyz_3vds6_290:not(#\9)::-webkit-search-cancel-button {
299
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-type-search_2rhyz_q1m0j_290:not(#\9)::-webkit-search-cancel-button {
300
300
  display: none;
301
301
  }
302
- .awsui_input_2rhyz_3vds6_149.awsui_input-has-icon-left_2rhyz_3vds6_275:not(#\9) {
302
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-has-icon-left_2rhyz_q1m0j_275:not(#\9) {
303
303
  padding-inline-start: var(--space-field-icon-offset-ihoxql, 32px);
304
304
  }
305
- .awsui_input_2rhyz_3vds6_149.awsui_input-has-icon-right_2rhyz_3vds6_303:not(#\9) {
305
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-has-icon-right_2rhyz_q1m0j_303:not(#\9) {
306
306
  padding-inline-end: var(--space-field-icon-offset-ihoxql, 32px);
307
307
  }
308
- .awsui_input_2rhyz_3vds6_149.awsui_input-has-no-border-radius_2rhyz_3vds6_306:not(#\9) {
308
+ .awsui_input_2rhyz_q1m0j_149.awsui_input-has-no-border-radius_2rhyz_q1m0j_306:not(#\9) {
309
309
  border-start-start-radius: var(--border-radius-dropdown-oaxffg, 0px);
310
310
  border-start-end-radius: var(--border-radius-dropdown-oaxffg, 0px);
311
311
  border-end-start-radius: var(--border-radius-dropdown-oaxffg, 0px);
312
312
  border-end-end-radius: var(--border-radius-dropdown-oaxffg, 0px);
313
313
  }
314
314
 
315
- .awsui_input-container_2rhyz_3vds6_313:not(#\9) {
315
+ .awsui_input-container_2rhyz_q1m0j_313:not(#\9) {
316
316
  display: flex;
317
317
  position: relative;
318
318
  }
319
319
 
320
- .awsui_input-icon-left_2rhyz_3vds6_318:not(#\9) {
320
+ .awsui_input-icon-left_2rhyz_q1m0j_318:not(#\9) {
321
321
  position: absolute;
322
322
  pointer-events: none;
323
323
  inset-inline-start: var(--space-field-horizontal-n5peob, 8px);
324
324
  inset-block-start: calc(50% - var(--line-height-body-m-bedeoh, 22px) / 2);
325
325
  }
326
326
 
327
- .awsui_input-icon-right_2rhyz_3vds6_325:not(#\9) {
327
+ .awsui_input-icon-right_2rhyz_q1m0j_325:not(#\9) {
328
328
  position: absolute;
329
329
  inset-block-start: calc(calc(50% - var(--line-height-body-m-bedeoh, 22px) / 2) - var(--space-xxxs-3w1kr2, 2px));
330
330
  inset-inline-end: calc(var(--space-field-horizontal-n5peob, 8px) - var(--space-xxs-jnczic, 4px));
331
331
  }
332
332
 
333
- .awsui_input-button-right_2rhyz_3vds6_331:not(#\9) {
333
+ .awsui_input-button-right_2rhyz_q1m0j_331:not(#\9) {
334
334
  /* used in test-utils */
335
335
  }
@@ -2,18 +2,18 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_2rhyz_3vds6_145",
6
- "input": "awsui_input_2rhyz_3vds6_149",
7
- "input-readonly": "awsui_input-readonly_2rhyz_3vds6_203",
8
- "input-invalid": "awsui_input-invalid_2rhyz_3vds6_266",
9
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_3vds6_275",
10
- "input-warning": "awsui_input-warning_2rhyz_3vds6_278",
11
- "input-type-search": "awsui_input-type-search_2rhyz_3vds6_290",
12
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_3vds6_303",
13
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_3vds6_306",
14
- "input-container": "awsui_input-container_2rhyz_3vds6_313",
15
- "input-icon-left": "awsui_input-icon-left_2rhyz_3vds6_318",
16
- "input-icon-right": "awsui_input-icon-right_2rhyz_3vds6_325",
17
- "input-button-right": "awsui_input-button-right_2rhyz_3vds6_331"
5
+ "root": "awsui_root_2rhyz_q1m0j_145",
6
+ "input": "awsui_input_2rhyz_q1m0j_149",
7
+ "input-readonly": "awsui_input-readonly_2rhyz_q1m0j_203",
8
+ "input-invalid": "awsui_input-invalid_2rhyz_q1m0j_266",
9
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_q1m0j_275",
10
+ "input-warning": "awsui_input-warning_2rhyz_q1m0j_278",
11
+ "input-type-search": "awsui_input-type-search_2rhyz_q1m0j_290",
12
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_q1m0j_303",
13
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_q1m0j_306",
14
+ "input-container": "awsui_input-container_2rhyz_q1m0j_313",
15
+ "input-icon-left": "awsui_input-icon-left_2rhyz_q1m0j_318",
16
+ "input-icon-right": "awsui_input-icon-right_2rhyz_q1m0j_325",
17
+ "input-button-right": "awsui_input-button-right_2rhyz_q1m0j_331"
18
18
  };
19
19
 
@@ -3925,5 +3925,5 @@ body {
3925
3925
  }
3926
3926
  }
3927
3927
  :root {
3928
- --awsui-version-info-7db92ccf: true;
3928
+ --awsui-version-info-33e03331: true;
3929
3929
  }
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (7db92ccf)";
3
- export var GIT_SHA = "7db92ccf";
2
+ export var PACKAGE_VERSION = "3.0.0 (33e03331)";
3
+ export var GIT_SHA = "33e03331";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "console";
6
6
  export var ALWAYS_VISUAL_REFRESH = true;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "components",
3
- "PACKAGE_VERSION": "3.0.0 (7db92ccf)",
4
- "GIT_SHA": "7db92ccf",
3
+ "PACKAGE_VERSION": "3.0.0 (33e03331)",
4
+ "GIT_SHA": "33e03331",
5
5
  "THEME": "default",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": false
@@ -0,0 +1,15 @@
1
+ import { AlertProps } from '../../alert/interfaces';
2
+ import { FlashbarProps } from '../../flashbar/interfaces';
3
+ interface PersistenceFunction {
4
+ persistFlashbarDismiss?: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<void>;
5
+ retrieveFlashbarDismiss?: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<boolean>;
6
+ persistAlertDismiss?: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<void>;
7
+ retrieveAlertDismiss?: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<boolean>;
8
+ }
9
+ export declare function setPersistenceFunctionsForTesting(functions: PersistenceFunction): void;
10
+ export declare let persistFlashbarDismiss: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<void>;
11
+ export declare let retrieveFlashbarDismiss: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<boolean>;
12
+ export declare let persistAlertDismiss: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<void>;
13
+ export declare let retrieveAlertDismiss: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<boolean>;
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/internal/persistence/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,UAAU,mBAAmB;IAC3B,sBAAsB,CAAC,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/F,uBAAuB,CAAC,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACnG,mBAAmB,CAAC,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzF,oBAAoB,CAAC,EAAE,CAAC,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAC9F;AAED,wBAAgB,iCAAiC,CAAC,SAAS,EAAE,mBAAmB,QAa/E;AAGD,eAAO,IAAI,sBAAsB,GAE/B,mBAAmB,aAAa,CAAC,iBAAiB,KACjD,OAAO,CAAC,IAAI,CAEd,CAAC;AAGF,eAAO,IAAI,uBAAuB,GAEhC,mBAAmB,aAAa,CAAC,iBAAiB,KACjD,OAAO,CAAC,OAAO,CAEjB,CAAC;AAGF,eAAO,IAAI,mBAAmB,GAE5B,mBAAmB,UAAU,CAAC,iBAAiB,KAC9C,OAAO,CAAC,IAAI,CAEd,CAAC;AAGF,eAAO,IAAI,oBAAoB,GAE7B,mBAAmB,UAAU,CAAC,iBAAiB,KAC9C,OAAO,CAAC,OAAO,CAEjB,CAAC"}
@@ -0,0 +1,42 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ /* istanbul ignore file */
4
+ export function setPersistenceFunctionsForTesting(functions) {
5
+ if (functions.persistFlashbarDismiss) {
6
+ persistFlashbarDismiss = functions.persistFlashbarDismiss;
7
+ }
8
+ if (functions.retrieveFlashbarDismiss) {
9
+ retrieveFlashbarDismiss = functions.retrieveFlashbarDismiss;
10
+ }
11
+ if (functions.persistAlertDismiss) {
12
+ persistAlertDismiss = functions.persistAlertDismiss;
13
+ }
14
+ if (functions.retrieveAlertDismiss) {
15
+ retrieveAlertDismiss = functions.retrieveAlertDismiss;
16
+ }
17
+ }
18
+ // eslint-disable-next-line require-await
19
+ export let persistFlashbarDismiss = async function (
20
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
21
+ persistenceConfig) {
22
+ return Promise.resolve();
23
+ };
24
+ // eslint-disable-next-line require-await
25
+ export let retrieveFlashbarDismiss = async function (
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
+ persistenceConfig) {
28
+ return Promise.resolve(false);
29
+ };
30
+ // eslint-disable-next-line require-await
31
+ export let persistAlertDismiss = async function (
32
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
+ persistenceConfig) {
34
+ return Promise.resolve();
35
+ };
36
+ // eslint-disable-next-line require-await
37
+ export let retrieveAlertDismiss = async function (
38
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
39
+ persistenceConfig) {
40
+ return Promise.resolve(false);
41
+ };
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/internal/persistence/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,0BAA0B;AAY1B,MAAM,UAAU,iCAAiC,CAAC,SAA8B;IAC9E,IAAI,SAAS,CAAC,sBAAsB,EAAE,CAAC;QACrC,sBAAsB,GAAG,SAAS,CAAC,sBAAsB,CAAC;IAC5D,CAAC;IACD,IAAI,SAAS,CAAC,uBAAuB,EAAE,CAAC;QACtC,uBAAuB,GAAG,SAAS,CAAC,uBAAuB,CAAC;IAC9D,CAAC;IACD,IAAI,SAAS,CAAC,mBAAmB,EAAE,CAAC;QAClC,mBAAmB,GAAG,SAAS,CAAC,mBAAmB,CAAC;IACtD,CAAC;IACD,IAAI,SAAS,CAAC,oBAAoB,EAAE,CAAC;QACnC,oBAAoB,GAAG,SAAS,CAAC,oBAAoB,CAAC;IACxD,CAAC;AACH,CAAC;AAED,yCAAyC;AACzC,MAAM,CAAC,IAAI,sBAAsB,GAAG,KAAK;AACvC,6DAA6D;AAC7D,iBAAkD;IAElD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF,yCAAyC;AACzC,MAAM,CAAC,IAAI,uBAAuB,GAAG,KAAK;AACxC,6DAA6D;AAC7D,iBAAkD;IAElD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF,yCAAyC;AACzC,MAAM,CAAC,IAAI,mBAAmB,GAAG,KAAK;AACpC,6DAA6D;AAC7D,iBAA+C;IAE/C,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;AAC3B,CAAC,CAAC;AAEF,yCAAyC;AACzC,MAAM,CAAC,IAAI,oBAAoB,GAAG,KAAK;AACrC,6DAA6D;AAC7D,iBAA+C;IAE/C,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/* istanbul ignore file */\n\nimport { AlertProps } from '../../alert/interfaces';\nimport { FlashbarProps } from '../../flashbar/interfaces';\n\ninterface PersistenceFunction {\n persistFlashbarDismiss?: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<void>;\n retrieveFlashbarDismiss?: (persistenceConfig: FlashbarProps.PersistenceConfig) => Promise<boolean>;\n persistAlertDismiss?: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<void>;\n retrieveAlertDismiss?: (persistenceConfig: AlertProps.PersistenceConfig) => Promise<boolean>;\n}\n\nexport function setPersistenceFunctionsForTesting(functions: PersistenceFunction) {\n if (functions.persistFlashbarDismiss) {\n persistFlashbarDismiss = functions.persistFlashbarDismiss;\n }\n if (functions.retrieveFlashbarDismiss) {\n retrieveFlashbarDismiss = functions.retrieveFlashbarDismiss;\n }\n if (functions.persistAlertDismiss) {\n persistAlertDismiss = functions.persistAlertDismiss;\n }\n if (functions.retrieveAlertDismiss) {\n retrieveAlertDismiss = functions.retrieveAlertDismiss;\n }\n}\n\n// eslint-disable-next-line require-await\nexport let persistFlashbarDismiss = async function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n persistenceConfig: FlashbarProps.PersistenceConfig\n): Promise<void> {\n return Promise.resolve();\n};\n\n// eslint-disable-next-line require-await\nexport let retrieveFlashbarDismiss = async function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n persistenceConfig: FlashbarProps.PersistenceConfig\n): Promise<boolean> {\n return Promise.resolve(false);\n};\n\n// eslint-disable-next-line require-await\nexport let persistAlertDismiss = async function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n persistenceConfig: AlertProps.PersistenceConfig\n): Promise<void> {\n return Promise.resolve();\n};\n\n// eslint-disable-next-line require-await\nexport let retrieveAlertDismiss = async function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n persistenceConfig: AlertProps.PersistenceConfig\n): Promise<boolean> {\n return Promise.resolve(false);\n};\n"]}
@@ -1,22 +1,22 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_55fkh_2xe1t_146",
5
- "textarea-readonly": "awsui_textarea-readonly_55fkh_2xe1t_191",
6
- "disabled": "awsui_disabled_55fkh_2xe1t_197",
7
- "textarea-invalid": "awsui_textarea-invalid_55fkh_2xe1t_205",
8
- "textarea-warning": "awsui_textarea-warning_55fkh_2xe1t_230",
9
- "textarea": "awsui_textarea_55fkh_2xe1t_191",
10
- "invalid": "awsui_invalid_55fkh_2xe1t_333",
11
- "warning": "awsui_warning_55fkh_2xe1t_333",
12
- "textarea-wrapper": "awsui_textarea-wrapper_55fkh_2xe1t_347",
13
- "primary-action": "awsui_primary-action_55fkh_2xe1t_351",
14
- "action-button": "awsui_action-button_55fkh_2xe1t_359",
15
- "secondary-content": "awsui_secondary-content_55fkh_2xe1t_364",
16
- "with-paddings": "awsui_with-paddings_55fkh_2xe1t_399",
17
- "action-stripe": "awsui_action-stripe_55fkh_2xe1t_409",
18
- "secondary-actions": "awsui_secondary-actions_55fkh_2xe1t_448",
19
- "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_2xe1t_465",
20
- "buffer": "awsui_buffer_55fkh_2xe1t_469"
4
+ "root": "awsui_root_55fkh_1mfne_146",
5
+ "textarea-readonly": "awsui_textarea-readonly_55fkh_1mfne_191",
6
+ "disabled": "awsui_disabled_55fkh_1mfne_197",
7
+ "textarea-invalid": "awsui_textarea-invalid_55fkh_1mfne_205",
8
+ "textarea-warning": "awsui_textarea-warning_55fkh_1mfne_230",
9
+ "textarea": "awsui_textarea_55fkh_1mfne_191",
10
+ "invalid": "awsui_invalid_55fkh_1mfne_333",
11
+ "warning": "awsui_warning_55fkh_1mfne_333",
12
+ "textarea-wrapper": "awsui_textarea-wrapper_55fkh_1mfne_347",
13
+ "primary-action": "awsui_primary-action_55fkh_1mfne_351",
14
+ "action-button": "awsui_action-button_55fkh_1mfne_359",
15
+ "secondary-content": "awsui_secondary-content_55fkh_1mfne_364",
16
+ "with-paddings": "awsui_with-paddings_55fkh_1mfne_399",
17
+ "action-stripe": "awsui_action-stripe_55fkh_1mfne_409",
18
+ "secondary-actions": "awsui_secondary-actions_55fkh_1mfne_448",
19
+ "with-paddings-and-actions": "awsui_with-paddings-and-actions_55fkh_1mfne_465",
20
+ "buffer": "awsui_buffer_55fkh_1mfne_469"
21
21
  };
22
22