@vygruppen/spor-react 8.3.0 → 9.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.
Files changed (67) hide show
  1. package/.turbo/turbo-build.log +10 -12
  2. package/CHANGELOG.md +34 -0
  3. package/dist/{CountryCodeSelect-DYAFPSID.mjs → CountryCodeSelect-OVMXGXPY.mjs} +1 -1
  4. package/dist/{chunk-42ZK3WXN.mjs → chunk-W7IAYOJH.mjs} +1252 -1784
  5. package/dist/index.d.mts +1657 -812
  6. package/dist/index.d.ts +1657 -812
  7. package/dist/index.js +1603 -2073
  8. package/dist/index.mjs +1 -1
  9. package/package.json +1 -1
  10. package/src/breadcrumb/Breadcrumb.tsx +4 -2
  11. package/src/card/Card.tsx +5 -4
  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 +66 -68
  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.3.0 build
2
+ > @vygruppen/spor-react@9.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,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-42ZK3WXN.mjs".
14
- CJS dist/index.js 504.82 KB
15
- CJS ⚡️ Build success in 2190ms
16
- ESM dist/index.mjs 2.01 KB
17
- ESM dist/CountryCodeSelect-DYAFPSID.mjs 1.19 KB
18
- ESM dist/chunk-42ZK3WXN.mjs 396.72 KB
19
- ESM ⚡️ Build success in 2192ms
20
- DTS ⚡️ Build success in 10757ms
21
- DTS dist/index.d.ts 271.82 KB
22
- DTS dist/index.d.mts 271.82 KB
12
+ CJS dist/index.js 487.82 KB
13
+ CJS ⚡️ Build success in 2091ms
14
+ ESM dist/index.mjs 2.02 KB
15
+ ESM dist/CountryCodeSelect-OVMXGXPY.mjs 1.19 KB
16
+ ESM dist/chunk-W7IAYOJH.mjs 381.88 KB
17
+ ESM ⚡️ Build success in 2092ms
18
+ DTS ⚡️ Build success in 11319ms
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.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ce90ed5: Use the newest version of our design tokens
8
+ - Updated dependencies [d2cc084]
9
+ - @vygruppen/spor-design-tokens@3.4.0
10
+
11
+ ## 9.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - e4945e6: ### Major Changes
16
+
17
+ There was a need to change some sizing props to be consistent through the designsystem.
18
+
19
+ Sizes that used to be "sm, md, lg, xl" are now "xs, sm, md, lg".
20
+
21
+ To migrate, change size
22
+
23
+ - "sm" to "xs",
24
+ - "md" to "sm",
25
+ - "lg" to "md",
26
+ - and "xl" to "lg".
27
+
28
+ Affected components are:
29
+
30
+ - ChoiceChip
31
+ - Tabs
32
+
33
+ - 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`.
34
+
35
+ Switch: The `variant` prop is removed. To migrate, remove the `variant` prop.
36
+
3
37
  ## 8.3.0
4
38
 
5
39
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-42ZK3WXN.mjs';
1
+ import { createTexts, useTranslation, InfoSelect, Item } from './chunk-W7IAYOJH.mjs';
2
2
  import React from 'react';
3
3
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
4
4