@vygruppen/spor-react 8.2.1 → 9.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.
Files changed (67) hide show
  1. package/.turbo/turbo-build.log +10 -12
  2. package/CHANGELOG.md +34 -0
  3. package/dist/{CountryCodeSelect-NEASN3EC.mjs → CountryCodeSelect-LFDBAHV7.mjs} +1 -1
  4. package/dist/{chunk-AKOJGLTQ.mjs → chunk-BWLVKMWU.mjs} +1262 -1785
  5. package/dist/index.d.mts +1664 -813
  6. package/dist/index.d.ts +1664 -813
  7. package/dist/index.js +1551 -2011
  8. package/dist/index.mjs +1 -1
  9. package/package.json +1 -1
  10. package/src/accordion/Expandable.tsx +22 -2
  11. package/src/breadcrumb/Breadcrumb.tsx +4 -2
  12. package/src/datepicker/DateRangePicker.tsx +1 -0
  13. package/src/input/ChoiceChip.tsx +3 -3
  14. package/src/input/NumericStepper.tsx +7 -49
  15. package/src/input/PasswordInput.tsx +2 -0
  16. package/src/input/PhoneNumberInput.tsx +1 -1
  17. package/src/input/Switch.tsx +4 -7
  18. package/src/loader/ProgressBar.tsx +7 -24
  19. package/src/tab/Tabs.tsx +4 -5
  20. package/src/theme/components/accordion.ts +12 -16
  21. package/src/theme/components/alert-expandable.ts +10 -21
  22. package/src/theme/components/breadcrumb.ts +60 -5
  23. package/src/theme/components/button.ts +40 -75
  24. package/src/theme/components/card-select.ts +14 -56
  25. package/src/theme/components/card.ts +56 -63
  26. package/src/theme/components/checkbox.ts +20 -20
  27. package/src/theme/components/choice-chip.ts +28 -43
  28. package/src/theme/components/close-button.ts +1 -1
  29. package/src/theme/components/datepicker.ts +48 -166
  30. package/src/theme/components/drawer.ts +6 -4
  31. package/src/theme/components/fab.ts +35 -62
  32. package/src/theme/components/index.ts +3 -1
  33. package/src/theme/components/info-select.ts +5 -9
  34. package/src/theme/components/input.ts +17 -32
  35. package/src/theme/components/link.ts +8 -8
  36. package/src/theme/components/listbox.ts +5 -7
  37. package/src/theme/components/media-controller-button.ts +20 -25
  38. package/src/theme/components/modal.ts +8 -6
  39. package/src/theme/components/numeric-stepper.ts +65 -0
  40. package/src/theme/components/popover.ts +7 -8
  41. package/src/theme/components/progress-bar.ts +43 -0
  42. package/src/theme/components/progress-indicator.ts +5 -2
  43. package/src/theme/components/radio.ts +15 -12
  44. package/src/theme/components/select.ts +2 -2
  45. package/src/theme/components/stepper.ts +10 -7
  46. package/src/theme/components/switch.ts +35 -82
  47. package/src/theme/components/table.ts +10 -12
  48. package/src/theme/components/tabs.ts +55 -261
  49. package/src/theme/components/travel-tag.ts +3 -6
  50. package/src/theme/foundations/colors.ts +3 -1
  51. package/src/theme/foundations/fonts.ts +2 -2
  52. package/src/theme/index.ts +9 -6
  53. package/src/theme/utils/accent-utils.ts +54 -0
  54. package/src/theme/utils/base-utils.ts +94 -0
  55. package/src/theme/utils/bg-utils.ts +19 -0
  56. package/src/theme/utils/brand-utils.ts +42 -0
  57. package/src/theme/utils/floating-utils.ts +64 -0
  58. package/src/theme/utils/{focus-util.ts → focus-utils.ts} +1 -1
  59. package/src/theme/utils/ghost-utils.ts +40 -0
  60. package/src/theme/utils/surface-utils.ts +35 -0
  61. package/src/tooltip/Tooltip.tsx +17 -20
  62. package/src/typography/Heading.tsx +7 -2
  63. package/src/util/externals.tsx +0 -1
  64. package/src/theme/utils/background-utils.ts +0 -179
  65. package/src/theme/utils/border-utils.ts +0 -176
  66. package/src/theme/utils/box-shadow-utils.ts +0 -44
  67. package/src/theme/utils/text-utils.ts +0 -60
@@ -1,5 +1,5 @@
1
1
 
2
- > @vygruppen/spor-react@8.2.1 build
2
+ > @vygruppen/spor-react@9.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,13 @@
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/index.js".
12
11
  DTS Build start
13
- "Collapse" is imported from external module "@chakra-ui/react" but never used in "dist/chunk-AKOJGLTQ.mjs".
14
- CJS dist/index.js 504.49 KB
15
- CJS ⚡️ Build success in 2019ms
16
- ESM dist/index.mjs 2.01 KB
17
- ESM dist/CountryCodeSelect-NEASN3EC.mjs 1.19 KB
18
- ESM dist/chunk-AKOJGLTQ.mjs 396.46 KB
19
- ESM ⚡️ Build success in 2021ms
20
- DTS ⚡️ Build success in 10225ms
21
- DTS dist/index.d.ts 271.48 KB
22
- DTS dist/index.d.mts 271.48 KB
12
+ CJS dist/index.js 487.65 KB
13
+ CJS ⚡️ Build success in 2158ms
14
+ ESM dist/index.mjs 2.02 KB
15
+ ESM dist/CountryCodeSelect-LFDBAHV7.mjs 1.19 KB
16
+ ESM dist/chunk-BWLVKMWU.mjs 381.71 KB
17
+ ESM ⚡️ Build success in 2159ms
18
+ DTS ⚡️ Build success in 11050ms
19
+ DTS dist/index.d.ts 307.91 KB
20
+ DTS dist/index.d.mts 307.91 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - e4945e6: ### Major Changes
8
+
9
+ There was a need to change some sizing props to be consistent through the designsystem.
10
+
11
+ Sizes that used to be "sm, md, lg, xl" are now "xs, sm, md, lg".
12
+
13
+ To migrate, change size
14
+
15
+ - "sm" to "xs",
16
+ - "md" to "sm",
17
+ - "lg" to "md",
18
+ - and "xl" to "lg".
19
+
20
+ Affected components are:
21
+
22
+ - ChoiceChip
23
+ - Tabs
24
+
25
+ - f5194ff: Tabs: The `colorScheme` prop is removed. The `variant` prop is now either `base` or `accent`. To migrate, remove the `colorScheme` prop, and set the `variant` prop to either `base` (the default) or `accent`.
26
+
27
+ Switch: The `variant` prop is removed. To migrate, remove the `variant` prop.
28
+
29
+ ## 8.3.0
30
+
31
+ ### Minor Changes
32
+
33
+ - f984752: Expandable: Add defaultOpen, isOpen and onChange props, and remove undocumented defaultIndex and index props.
34
+
35
+ This might be breaking if you were using these props, so make sure to double check while updating.
36
+
3
37
  ## 8.2.1
4
38
 
5
39
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-AKOJGLTQ.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-BWLVKMWU.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4