@thunderid/browser 0.10.1 → 0.11.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.
- package/dist/cjs/index.cjs +32 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/normalizeBorderRadius.d.ts +39 -0
- package/dist/theme/normalizeBorderRadius.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
|
|
3
|
+
*
|
|
4
|
+
* WSO2 LLC. licenses this file to you under the Apache License,
|
|
5
|
+
* Version 2.0 (the "License"); you may not use this file except
|
|
6
|
+
* in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { FlowMetaThemeShape } from '@thunderid/javascript';
|
|
19
|
+
/**
|
|
20
|
+
* Size configuration in the v2 theme.
|
|
21
|
+
*
|
|
22
|
+
* @experimental This API may change in future versions
|
|
23
|
+
*/
|
|
24
|
+
interface FlowMetaThemeSize {
|
|
25
|
+
small?: string;
|
|
26
|
+
medium?: string;
|
|
27
|
+
large?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Normalizes a raw `shape.borderRadius` value into per-size tokens suitable
|
|
31
|
+
* for `ThemeConfig.borderRadius`.
|
|
32
|
+
*
|
|
33
|
+
* - Object with `small`/`medium`/`large` → used directly.
|
|
34
|
+
* - Bare number or numeric string (e.g. `8` or `"8"`) → appended with `px` and applied uniformly.
|
|
35
|
+
* - Pixel string (e.g. `"8px"`) → used as-is and applied uniformly.
|
|
36
|
+
*/
|
|
37
|
+
declare const normalizeBorderRadius: (raw: FlowMetaThemeShape["borderRadius"]) => FlowMetaThemeSize | undefined;
|
|
38
|
+
export default normalizeBorderRadius;
|
|
39
|
+
//# sourceMappingURL=normalizeBorderRadius.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeBorderRadius.d.ts","sourceRoot":"","sources":["../../src/theme/normalizeBorderRadius.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,kBAAkB,EAAC,MAAM,uBAAuB,CAAC;AAEzD;;;;GAIG;AACH,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD;;;;;;;GAOG;AACH,QAAA,MAAM,qBAAqB,GAAI,KAAK,kBAAkB,CAAC,cAAc,CAAC,KAAG,iBAAiB,GAAG,SAiB5F,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thunderid/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Browser runtime SDK for ThunderID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"thunderid",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"randombytes": "2.1.0",
|
|
56
56
|
"stream-browserify": "3.0.0",
|
|
57
57
|
"tslib": "2.8.1",
|
|
58
|
-
"@thunderid/javascript": "^0.
|
|
58
|
+
"@thunderid/javascript": "^0.11.0"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|