@vygruppen/spor-react 7.2.2 → 8.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@7.2.2 build
2
+ > @vygruppen/spor-react@8.0.1 build
3
3
  > tsup src/index.tsx --dts --treeshake --format cjs,esm
4
4
 
5
5
  CLI Building entry: src/index.tsx
@@ -8,15 +8,15 @@
8
8
  CLI Target: node16
9
9
  CJS Build start
10
10
  ESM Build start
11
- "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-PPXTF3R3.mjs".
12
- DTS Build start
11
+ "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-5VZ5S46A.mjs".
13
12
  "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/index.js".
14
- ESM dist/index.mjs 2.16 KB
15
- ESM dist/CountryCodeSelect-K45HQCJC.mjs 1.19 KB
16
- ESM dist/chunk-PPXTF3R3.mjs 387.65 KB
17
- ESM ⚡️ Build success in 2188ms
18
- CJS dist/index.js 495.05 KB
19
- CJS ⚡️ Build success in 2188ms
20
- DTS ⚡️ Build success in 11009ms
21
- DTS dist/index.d.ts 265.46 KB
22
- DTS dist/index.d.mts 265.46 KB
13
+ DTS Build start
14
+ ESM dist/index.mjs 2.01 KB
15
+ ESM dist/CountryCodeSelect-SCMCRKY4.mjs 1.19 KB
16
+ ESM dist/chunk-5VZ5S46A.mjs 393.00 KB
17
+ ESM ⚡️ Build success in 2110ms
18
+ CJS dist/index.js 500.11 KB
19
+ CJS ⚡️ Build success in 2110ms
20
+ DTS ⚡️ Build success in 10383ms
21
+ DTS dist/index.d.ts 268.53 KB
22
+ DTS dist/index.d.mts 268.53 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0488e4a: Tooltip, Nudge: Fix some bugs
8
+
9
+ ## 8.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 28af053: background.utils: updated active background for ghost
14
+
15
+ Accordion: The variation prop has been updated. It now accepts three values: ghost, base, and floating.
16
+ old list is now ghost,
17
+ old outline is now base,
18
+ old card is now floating.
19
+ bug fixes
20
+
21
+ - e97614b: utils:
22
+ added (accent og brand) to background, border,
23
+ added text
24
+
25
+ choiceChip:
26
+
27
+ - We have renamed the variant prop to chipType. This prop now accepts three values: choice, icon, and filter.
28
+ Please update your components to use chipType instead of variant.
29
+ - We have introduced a new variant prop. This prop accepts three values: base, accent, and floating.
30
+ You can use this prop to change the appearance of the ChoiceChip.
31
+ - 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.
32
+ 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.
33
+
34
+ - fdd37ac: Tooltip: Change how the API works, so that it's more aligned with Nudges.
35
+
36
+ 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:
37
+
38
+ ```tsx
39
+ <Tooltip content="This is my tooltip">
40
+ <IconButton
41
+ icon={<QuestionMark24FillIcon />}
42
+ variant="secondary"
43
+ aria-label="What's this?"
44
+ />
45
+ </Tooltip>
46
+ ```
47
+
48
+ - a31e788: Popover, PopoverWizard:
49
+
50
+ The Popover component is now known as Nudge.
51
+ The PopoverWizard component is now known as WizardNudge.
52
+
53
+ 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.
54
+
55
+ ### Patch Changes
56
+
57
+ - 037412f: Accordion: bugfix, forgot to change to the new names
58
+
3
59
  ## 7.2.2
4
60
 
5
61
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-PPXTF3R3.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-5VZ5S46A.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4