@vygruppen/spor-react 7.2.1 → 8.0.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/.turbo/turbo-build.log +11 -11
- package/CHANGELOG.md +56 -0
- package/dist/{CountryCodeSelect-GE32ZZIY.mjs → CountryCodeSelect-NCM6JIBM.mjs} +1 -1
- package/dist/{chunk-LD6S2MKC.mjs → chunk-EGC6XZHT.mjs} +760 -504
- package/dist/index.d.mts +299 -188
- package/dist/index.d.ts +299 -188
- package/dist/index.js +714 -475
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/accordion/Accordion.tsx +6 -6
- package/src/accordion/Expandable.tsx +2 -2
- package/src/datepicker/DatePicker.tsx +1 -0
- package/src/index.tsx +2 -1
- package/src/input/ChoiceChip.tsx +23 -12
- package/src/input/FormErrorMessage.tsx +1 -1
- package/src/nudge/Nudge.tsx +146 -0
- package/src/nudge/WizardNudge.tsx +107 -0
- package/src/nudge/index.tsx +2 -0
- package/src/progress-indicator/ProgressIndicator.tsx +5 -1
- package/src/theme/components/accordion.ts +24 -40
- package/src/theme/components/button.ts +1 -1
- package/src/theme/components/choice-chip.ts +125 -27
- package/src/theme/components/datepicker.ts +0 -4
- package/src/theme/components/popover.ts +5 -6
- package/src/theme/utils/background-utils.ts +68 -2
- package/src/theme/utils/border-utils.ts +86 -0
- package/src/theme/utils/text-utils.ts +40 -0
- package/src/{popover/SimplePopover.tsx → tooltip/Tooltip.tsx} +17 -19
- package/src/tooltip/index.tsx +1 -0
- package/src/popover/PopoverWizardBody.tsx +0 -91
- package/src/popover/WizardPopover.tsx +0 -61
- package/src/popover/index.tsx +0 -23
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@
|
2
|
+
> @vygruppen/spor-react@8.0.0 build
|
3
3
|
> tsup src/index.tsx --dts --treeshake --format cjs,esm
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: src/index.tsx
|
@@ -9,14 +9,14 @@
|
|
9
9
|
[34mCJS[39m Build start
|
10
10
|
[34mESM[39m Build start
|
11
11
|
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
|
12
|
-
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-LD6S2MKC.mjs".
|
13
12
|
[34mDTS[39m Build start
|
14
|
-
|
15
|
-
[32mCJS[39m
|
16
|
-
[
|
17
|
-
[32mESM[39m [1mdist/
|
18
|
-
[32mESM[39m [1mdist/
|
19
|
-
[32mESM[39m
|
20
|
-
[
|
21
|
-
[32mDTS[39m
|
22
|
-
[32mDTS[39m [1mdist/index.d.
|
13
|
+
"Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-EGC6XZHT.mjs".
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m500.06 KB[39m
|
15
|
+
[32mCJS[39m ⚡️ Build success in 2156ms
|
16
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m2.01 KB[39m
|
17
|
+
[32mESM[39m [1mdist/CountryCodeSelect-NCM6JIBM.mjs [22m[32m1.19 KB[39m
|
18
|
+
[32mESM[39m [1mdist/chunk-EGC6XZHT.mjs [22m[32m392.96 KB[39m
|
19
|
+
[32mESM[39m ⚡️ Build success in 2158ms
|
20
|
+
[32mDTS[39m ⚡️ Build success in 10577ms
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m268.53 KB[39m
|
22
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m268.53 KB[39m
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,61 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 8.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 28af053: background.utils: updated active background for ghost
|
8
|
+
|
9
|
+
Accordion: The variation prop has been updated. It now accepts three values: ghost, base, and floating.
|
10
|
+
old list is now ghost,
|
11
|
+
old outline is now base,
|
12
|
+
old card is now floating.
|
13
|
+
bug fixes
|
14
|
+
|
15
|
+
- e97614b: utils:
|
16
|
+
added (accent og brand) to background, border,
|
17
|
+
added text
|
18
|
+
|
19
|
+
choiceChip:
|
20
|
+
|
21
|
+
- We have renamed the variant prop to chipType. This prop now accepts three values: choice, icon, and filter.
|
22
|
+
Please update your components to use chipType instead of variant.
|
23
|
+
- We have introduced a new variant prop. This prop accepts three values: base, accent, and floating.
|
24
|
+
You can use this prop to change the appearance of the ChoiceChip.
|
25
|
+
- We have added a new disabled prop. You can use this prop to disable the ChoiceChip. When disabled is true, the ChoiceChip will be grayed out and won't respond to user interactions.
|
26
|
+
Please update your components to use these new props and options. If you have any questions or run into any issues, feel free to reach out to us.
|
27
|
+
|
28
|
+
- fdd37ac: Tooltip: Change how the API works, so that it's more aligned with Nudges.
|
29
|
+
|
30
|
+
To migrate, you need to put the content of the tooltip in the `content` prop. The `triggerElement` prop is now renamed to `children`, so you can wrap whatever should trigger your tooltip in the `Tooltip` component:
|
31
|
+
|
32
|
+
```tsx
|
33
|
+
<Tooltip content="This is my tooltip">
|
34
|
+
<IconButton
|
35
|
+
icon={<QuestionMark24FillIcon />}
|
36
|
+
variant="secondary"
|
37
|
+
aria-label="What's this?"
|
38
|
+
/>
|
39
|
+
</Tooltip>
|
40
|
+
```
|
41
|
+
|
42
|
+
- a31e788: Popover, PopoverWizard:
|
43
|
+
|
44
|
+
The Popover component is now known as Nudge.
|
45
|
+
The PopoverWizard component is now known as WizardNudge.
|
46
|
+
|
47
|
+
The APIs have changed dramatically. Migrating shouldn't be too terrible though. Please refer to the new docs for the new ways to use it.
|
48
|
+
|
49
|
+
### Patch Changes
|
50
|
+
|
51
|
+
- 037412f: Accordion: bugfix, forgot to change to the new names
|
52
|
+
|
53
|
+
## 7.2.2
|
54
|
+
|
55
|
+
### Patch Changes
|
56
|
+
|
57
|
+
- a36e39c: Lower the zIndex of form error messages
|
58
|
+
|
3
59
|
## 7.2.1
|
4
60
|
|
5
61
|
### Patch Changes
|