@vygruppen/spor-react 8.3.0 → 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 (66) hide show
  1. package/.turbo/turbo-build.log +10 -12
  2. package/CHANGELOG.md +26 -0
  3. package/dist/{CountryCodeSelect-DYAFPSID.mjs → CountryCodeSelect-LFDBAHV7.mjs} +1 -1
  4. package/dist/{chunk-42ZK3WXN.mjs → chunk-BWLVKMWU.mjs} +1240 -1778
  5. package/dist/index.d.mts +1657 -812
  6. package/dist/index.d.ts +1657 -812
  7. package/dist/index.js +1593 -2068
  8. package/dist/index.mjs +1 -1
  9. package/package.json +1 -1
  10. package/src/breadcrumb/Breadcrumb.tsx +4 -2
  11. package/src/datepicker/DateRangePicker.tsx +1 -0
  12. package/src/input/ChoiceChip.tsx +3 -3
  13. package/src/input/NumericStepper.tsx +7 -49
  14. package/src/input/PasswordInput.tsx +2 -0
  15. package/src/input/PhoneNumberInput.tsx +1 -1
  16. package/src/input/Switch.tsx +4 -7
  17. package/src/loader/ProgressBar.tsx +7 -24
  18. package/src/tab/Tabs.tsx +4 -5
  19. package/src/theme/components/accordion.ts +12 -16
  20. package/src/theme/components/alert-expandable.ts +10 -21
  21. package/src/theme/components/breadcrumb.ts +60 -5
  22. package/src/theme/components/button.ts +40 -75
  23. package/src/theme/components/card-select.ts +14 -56
  24. package/src/theme/components/card.ts +56 -63
  25. package/src/theme/components/checkbox.ts +20 -20
  26. package/src/theme/components/choice-chip.ts +28 -43
  27. package/src/theme/components/close-button.ts +1 -1
  28. package/src/theme/components/datepicker.ts +48 -166
  29. package/src/theme/components/drawer.ts +6 -4
  30. package/src/theme/components/fab.ts +35 -62
  31. package/src/theme/components/index.ts +3 -1
  32. package/src/theme/components/info-select.ts +5 -9
  33. package/src/theme/components/input.ts +17 -32
  34. package/src/theme/components/link.ts +8 -8
  35. package/src/theme/components/listbox.ts +5 -7
  36. package/src/theme/components/media-controller-button.ts +20 -25
  37. package/src/theme/components/modal.ts +8 -6
  38. package/src/theme/components/numeric-stepper.ts +65 -0
  39. package/src/theme/components/popover.ts +7 -8
  40. package/src/theme/components/progress-bar.ts +43 -0
  41. package/src/theme/components/progress-indicator.ts +5 -2
  42. package/src/theme/components/radio.ts +15 -12
  43. package/src/theme/components/select.ts +2 -2
  44. package/src/theme/components/stepper.ts +10 -7
  45. package/src/theme/components/switch.ts +35 -82
  46. package/src/theme/components/table.ts +10 -12
  47. package/src/theme/components/tabs.ts +55 -261
  48. package/src/theme/components/travel-tag.ts +3 -6
  49. package/src/theme/foundations/colors.ts +3 -1
  50. package/src/theme/foundations/fonts.ts +2 -2
  51. package/src/theme/index.ts +9 -6
  52. package/src/theme/utils/accent-utils.ts +54 -0
  53. package/src/theme/utils/base-utils.ts +94 -0
  54. package/src/theme/utils/bg-utils.ts +19 -0
  55. package/src/theme/utils/brand-utils.ts +42 -0
  56. package/src/theme/utils/floating-utils.ts +64 -0
  57. package/src/theme/utils/{focus-util.ts → focus-utils.ts} +1 -1
  58. package/src/theme/utils/ghost-utils.ts +40 -0
  59. package/src/theme/utils/surface-utils.ts +35 -0
  60. package/src/tooltip/Tooltip.tsx +17 -20
  61. package/src/typography/Heading.tsx +7 -2
  62. package/src/util/externals.tsx +0 -1
  63. package/src/theme/utils/background-utils.ts +0 -179
  64. package/src/theme/utils/border-utils.ts +0 -176
  65. package/src/theme/utils/box-shadow-utils.ts +0 -44
  66. 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.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-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.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,31 @@
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
+
3
29
  ## 8.3.0
4
30
 
5
31
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { createTexts, useTranslation, InfoSelect, Item } from './chunk-42ZK3WXN.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