@cloudscape-design/components 3.0.1187 → 3.0.1188

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.
@@ -2034,5 +2034,5 @@ body {
2034
2034
  }
2035
2035
  }
2036
2036
  :root {
2037
- --awsui-version-info-4129df49: true;
2037
+ --awsui-version-info-170fdf8c: true;
2038
2038
  }
@@ -1,6 +1,6 @@
1
1
  export var PACKAGE_SOURCE = "components";
2
- export var PACKAGE_VERSION = "3.0.0 (4129df49)";
3
- export var GIT_SHA = "4129df49";
2
+ export var PACKAGE_VERSION = "3.0.0 (170fdf8c)";
3
+ export var GIT_SHA = "170fdf8c";
4
4
  export var THEME = "open-source-visual-refresh";
5
5
  export var SYSTEM = "core";
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 (4129df49)",
4
- "GIT_SHA": "4129df49",
3
+ "PACKAGE_VERSION": "3.0.0 (170fdf8c)",
4
+ "GIT_SHA": "170fdf8c",
5
5
  "THEME": "open-source-visual-refresh",
6
6
  "SYSTEM": "core",
7
7
  "ALWAYS_VISUAL_REFRESH": true
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "4129df490064066892e575676a5f37fe7e9b96a0"
2
+ "commit": "170fdf8ca50e7f3aaaabdad5ca27261f8b530131"
3
3
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pad-left-zeros.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/strings/pad-left-zeros.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAKjE"}
1
+ {"version":3,"file":"pad-left-zeros.d.ts","sourceRoot":"","sources":["../../../../../src/internal/utils/strings/pad-left-zeros.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEjE"}
@@ -4,9 +4,6 @@
4
4
  * Prefixes given text with zeros until it reaches the target length.
5
5
  */
6
6
  export function padLeftZeros(text, length) {
7
- while (text.length < length) {
8
- text = `0${text}`;
9
- }
10
- return text;
7
+ return text.padStart(length, '0');
11
8
  }
12
9
  //# sourceMappingURL=pad-left-zeros.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pad-left-zeros.js","sourceRoot":"","sources":["../../../../../src/internal/utils/strings/pad-left-zeros.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc;IACvD,OAAO,IAAI,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC;QAC5B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Prefixes given text with zeros until it reaches the target length.\n */\nexport function padLeftZeros(text: string, length: number): string {\n while (text.length < length) {\n text = `0${text}`;\n }\n return text;\n}\n"]}
1
+ {"version":3,"file":"pad-left-zeros.js","sourceRoot":"","sources":["../../../../../src/internal/utils/strings/pad-left-zeros.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY,EAAE,MAAc;IACvD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACpC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * Prefixes given text with zeros until it reaches the target length.\n */\nexport function padLeftZeros(text: string, length: number): string {\n return text.padStart(length, '0');\n}\n"]}
package/package.json CHANGED
@@ -159,7 +159,7 @@
159
159
  "./internal/base-component/index.js",
160
160
  "./internal/base-component/styles.css.js"
161
161
  ],
162
- "version": "3.0.1187",
162
+ "version": "3.0.1188",
163
163
  "repository": {
164
164
  "type": "git",
165
165
  "url": "https://github.com/cloudscape-design/components.git"