@vygruppen/spor-react 7.2.2 → 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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@7.2.2 build
2
+ > @vygruppen/spor-react@8.0.0 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
13
11
  "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
12
+ DTS Build start
13
+ "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-EGC6XZHT.mjs".
14
+ CJS dist/index.js 500.06 KB
15
+ CJS ⚡️ Build success in 2156ms
16
+ ESM dist/index.mjs 2.01 KB
17
+ ESM dist/CountryCodeSelect-NCM6JIBM.mjs 1.19 KB
18
+ ESM dist/chunk-EGC6XZHT.mjs 392.96 KB
19
+ ESM ⚡️ Build success in 2158ms
20
+ DTS ⚡️ Build success in 10577ms
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,55 @@
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
+
3
53
  ## 7.2.2
4
54
 
5
55
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-PPXTF3R3.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-EGC6XZHT.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4