@vygruppen/spor-react 3.4.4 → 3.5.1
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/.turbo/turbo-build.log +13 -12
- package/CHANGELOG.md +16 -0
- package/dist/CountryCodeSelect-IS3VUSPZ.mjs +40 -0
- package/dist/{chunk-QBIZVUPL.mjs → chunk-HZ6V7HFA.mjs} +427 -287
- package/dist/index.d.mts +7092 -0
- package/dist/index.d.ts +72 -49
- package/dist/index.js +552 -6918
- package/dist/index.mjs +1 -1
- package/package.json +7 -6
- package/src/breadcrumb/Breadcrumb.tsx +37 -0
- package/src/breadcrumb/index.tsx +1 -0
- package/src/button/Button.tsx +1 -1
- package/src/button/FloatingActionButton.tsx +1 -1
- package/src/button/IconButton.tsx +1 -1
- package/src/datepicker/DateRangePicker.tsx +2 -2
- package/src/index.tsx +1 -0
- package/src/input/ChoiceChip.tsx +1 -1
- package/src/input/PasswordInput.tsx +1 -1
- package/src/input/SearchInput.tsx +3 -3
- package/src/layout/Divider.tsx +1 -1
- package/src/loader/ColorSpinner.tsx +1 -1
- package/src/loader/ContentLoader.tsx +1 -1
- package/src/loader/LightSpinner.tsx +4 -2
- package/src/stepper/StepperStep.tsx +1 -1
- package/src/theme/components/breadcrumb.ts +47 -0
- package/src/theme/components/index.ts +1 -0
- package/dist/CountryCodeSelect-7GGNROZW.mjs +0 -6522
package/.turbo/turbo-build.log
CHANGED
@@ -1,21 +1,22 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@3.
|
2
|
+
> @vygruppen/spor-react@3.5.1 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
7
|
-
[34mCLI[39m tsup
|
8
|
-
[34mCLI[39m Target:
|
7
|
+
[34mCLI[39m tsup v7.2.0
|
8
|
+
[34mCLI[39m Target: node16
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
[34mDTS[39m Build start
|
12
|
+
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/chunk-HZ6V7HFA.mjs".
|
12
13
|
"toZoned" and "toTime" are imported from external module "@internationalized/date" but never used in "dist/index.js".
|
13
|
-
|
14
|
-
[
|
15
|
-
[
|
16
|
-
[32mESM[39m
|
17
|
-
[
|
18
|
-
[
|
19
|
-
[
|
20
|
-
[32mDTS[39m
|
21
|
-
[32mDTS[39m [1mdist/index.d.
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m2.06 KB[39m
|
15
|
+
[32mESM[39m [1mdist/CountryCodeSelect-IS3VUSPZ.mjs [22m[32m1.19 KB[39m
|
16
|
+
[32mESM[39m [1mdist/chunk-HZ6V7HFA.mjs [22m[32m425.35 KB[39m
|
17
|
+
[32mESM[39m ⚡️ Build success in 5965ms
|
18
|
+
[32mCJS[39m [1mdist/index.js [22m[32m531.62 KB[39m
|
19
|
+
[32mCJS[39m ⚡️ Build success in 5966ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 23687ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m253.60 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m253.60 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 3.5.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 6ca2f865: Update internal dependencies"
|
8
|
+
- 01f4a68c: FloatingActionButton: Enable server rendering
|
9
|
+
- Updated dependencies [6ca2f865]
|
10
|
+
- @vygruppen/spor-icon-react@3.2.1
|
11
|
+
- @vygruppen/spor-loader@0.3.2
|
12
|
+
|
13
|
+
## 3.5.0
|
14
|
+
|
15
|
+
### Minor Changes
|
16
|
+
|
17
|
+
- e05d6093: New components: Breadcrumb, BreadcrumbItem and BreadcrumbLink
|
18
|
+
|
3
19
|
## 3.4.4
|
4
20
|
|
5
21
|
### Patch Changes
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { createTexts, useTranslation, InfoSelect, Item } from './chunk-HZ6V7HFA.mjs';
|
2
|
+
import React from 'react';
|
3
|
+
import { getSupportedCallingCodes } from 'awesome-phonenumber';
|
4
|
+
|
5
|
+
var prioritizedCountryCodes = [
|
6
|
+
{ key: "+47", value: "+47" },
|
7
|
+
{ key: "+46", value: "+46" },
|
8
|
+
{ key: "+45", value: "+45" }
|
9
|
+
];
|
10
|
+
var sortedCallingCodes = getSupportedCallingCodes().sort((a, b) => Number(a) - Number(b)).map((code) => ({
|
11
|
+
key: `+${code}`,
|
12
|
+
value: `+${code}`
|
13
|
+
})).filter(
|
14
|
+
(code) => !prioritizedCountryCodes.some((pCode) => pCode.key === code.key)
|
15
|
+
);
|
16
|
+
var callingCodes = [...prioritizedCountryCodes, ...sortedCallingCodes];
|
17
|
+
var CountryCodeSelect = (props) => {
|
18
|
+
const { t } = useTranslation();
|
19
|
+
return /* @__PURE__ */ React.createElement(
|
20
|
+
InfoSelect,
|
21
|
+
{
|
22
|
+
label: t(texts.countryCode),
|
23
|
+
isLabelSrOnly: true,
|
24
|
+
items: callingCodes,
|
25
|
+
...props
|
26
|
+
},
|
27
|
+
(item) => /* @__PURE__ */ React.createElement(Item, { key: item.key }, item.key)
|
28
|
+
);
|
29
|
+
};
|
30
|
+
var CountryCodeSelect_default = CountryCodeSelect;
|
31
|
+
var texts = createTexts({
|
32
|
+
countryCode: {
|
33
|
+
nb: "Landkode",
|
34
|
+
nn: "Landskode",
|
35
|
+
en: "Country code",
|
36
|
+
sv: "Landskod"
|
37
|
+
}
|
38
|
+
});
|
39
|
+
|
40
|
+
export { CountryCodeSelect, CountryCodeSelect_default as default };
|