@vygruppen/spor-react 12.1.2 → 12.2.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 (122) hide show
  1. package/.turbo/turbo-build.log +31 -12
  2. package/.turbo/turbo-typegen.log +19 -1
  3. package/CHANGELOG.md +14 -0
  4. package/dist/index.d.mts +189 -243
  5. package/dist/index.d.ts +189 -243
  6. package/dist/index.js +2485 -2072
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +2376 -1972
  9. package/dist/index.mjs.map +1 -1
  10. package/package.json +3 -3
  11. package/src/accordion/Accordion.tsx +2 -1
  12. package/src/accordion/Expandable.tsx +3 -1
  13. package/src/accordion/helpers.ts +2 -1
  14. package/src/alert/Alert.tsx +3 -1
  15. package/src/alert/AlertIcon.tsx +17 -10
  16. package/src/alert/ExpandableAlert.tsx +3 -2
  17. package/src/alert/ServiceAlert.tsx +2 -1
  18. package/src/breadcrumb/Breadcrumb.tsx +9 -8
  19. package/src/button/Button.tsx +2 -1
  20. package/src/button/ButtonGroup.tsx +2 -1
  21. package/src/button/Clipboard.tsx +3 -0
  22. package/src/button/CloseButton.tsx +8 -4
  23. package/src/button/FloatingActionButton.tsx +5 -5
  24. package/src/button/IconButton.tsx +1 -0
  25. package/src/color-mode/color-mode.tsx +2 -2
  26. package/src/datepicker/Calendar.tsx +0 -1
  27. package/src/datepicker/CalendarCell.tsx +5 -5
  28. package/src/datepicker/CalendarGrid.tsx +3 -2
  29. package/src/datepicker/CalendarHeader.tsx +1 -4
  30. package/src/datepicker/CalendarTriggerButton.tsx +3 -4
  31. package/src/datepicker/DateField.tsx +13 -6
  32. package/src/datepicker/DatePicker.tsx +2 -1
  33. package/src/datepicker/DateRangePicker.tsx +1 -1
  34. package/src/datepicker/DateTimeSegment.tsx +2 -1
  35. package/src/datepicker/RangeCalendar.tsx +1 -1
  36. package/src/datepicker/StyledField.tsx +1 -1
  37. package/src/datepicker/TimeField.tsx +3 -3
  38. package/src/datepicker/TimePicker.tsx +4 -2
  39. package/src/datepicker/utils.ts +10 -5
  40. package/src/dialog/Dialog.tsx +1 -0
  41. package/src/dialog/Drawer.tsx +28 -26
  42. package/src/i18n/index.tsx +1 -0
  43. package/src/input/AttachedInputs.tsx +6 -3
  44. package/src/input/CardSelect.tsx +3 -1
  45. package/src/input/Checkbox.tsx +1 -0
  46. package/src/input/CheckboxGroup.tsx +3 -1
  47. package/src/input/ChoiceChip.tsx +39 -66
  48. package/src/input/Combobox.tsx +6 -4
  49. package/src/input/CountryCodeSelect.tsx +10 -4
  50. package/src/input/Field.tsx +2 -0
  51. package/src/input/Input.tsx +2 -3
  52. package/src/input/InputGroup.tsx +1 -1
  53. package/src/input/ListBox.tsx +9 -8
  54. package/src/input/NativeSelect.tsx +1 -2
  55. package/src/input/NumericStepper.tsx +22 -23
  56. package/src/input/PasswordInput.tsx +2 -1
  57. package/src/input/PhoneNumberInput.tsx +6 -2
  58. package/src/input/Popover.tsx +2 -0
  59. package/src/input/Radio.tsx +2 -0
  60. package/src/input/SearchInput.tsx +2 -1
  61. package/src/input/Select.tsx +8 -2
  62. package/src/input/Switch.tsx +22 -34
  63. package/src/input/Textarea.tsx +6 -4
  64. package/src/input/index.ts +1 -1
  65. package/src/layout/PressableCard.tsx +5 -2
  66. package/src/layout/RadioCard.tsx +3 -1
  67. package/src/layout/Separator.tsx +2 -1
  68. package/src/layout/StaticCard.tsx +6 -3
  69. package/src/linjetag/InfoTag.tsx +3 -2
  70. package/src/linjetag/LineIcon.tsx +5 -4
  71. package/src/linjetag/TravelTag.tsx +12 -8
  72. package/src/link/TextLink.tsx +1 -1
  73. package/src/loader/ColorInlineLoader.tsx +0 -1
  74. package/src/loader/ColorSpinner.tsx +0 -1
  75. package/src/loader/ContentLoader.tsx +0 -1
  76. package/src/loader/DarkFullScreenLoader.tsx +0 -1
  77. package/src/loader/DarkInlineLoader.tsx +0 -1
  78. package/src/loader/DarkSpinner.tsx +0 -1
  79. package/src/loader/LightFullScreenLoader.tsx +0 -1
  80. package/src/loader/LightInlineLoader.tsx +0 -1
  81. package/src/loader/LightSpinner.tsx +0 -1
  82. package/src/loader/Lottie.tsx +1 -2
  83. package/src/loader/ProgressBar.tsx +1 -2
  84. package/src/loader/ProgressLoader.tsx +2 -7
  85. package/src/logo/CargonetLogo.tsx +2 -1
  86. package/src/logo/VyLogo.tsx +3 -4
  87. package/src/logo/VyLogoPride.tsx +4 -1
  88. package/src/media-controller/JumpButton.tsx +2 -1
  89. package/src/media-controller/PlayPauseButton.tsx +2 -1
  90. package/src/media-controller/SkipButton.tsx +2 -1
  91. package/src/nudge/Nudge.tsx +7 -14
  92. package/src/pagination/Pagination.tsx +5 -0
  93. package/src/popover/index.tsx +2 -0
  94. package/src/progress-indicator/ProgressDot.tsx +1 -1
  95. package/src/progress-indicator/ProgressIndicator.tsx +4 -2
  96. package/src/provider/SporProvider.tsx +0 -1
  97. package/src/stepper/Stepper.tsx +1 -1
  98. package/src/tab/Tabs.tsx +1 -1
  99. package/src/table/Table.tsx +2 -1
  100. package/src/theme/slot-recipes/alert-expandable.ts +0 -4
  101. package/src/theme/slot-recipes/anatomy.ts +10 -0
  102. package/src/theme/slot-recipes/choice-chip.ts +183 -0
  103. package/src/theme/slot-recipes/index.ts +2 -0
  104. package/src/theme/slot-recipes/info-tag.ts +0 -1
  105. package/src/theme/slot-recipes/popover.ts +0 -1
  106. package/src/theme/slot-recipes/radio-card.ts +0 -3
  107. package/src/theme/utils/accent-utils.ts +12 -6
  108. package/src/theme/utils/bg-utils.ts +6 -3
  109. package/src/theme/utils/brand-utils.ts +7 -7
  110. package/src/theme/utils/core-utils.ts +23 -13
  111. package/src/theme/utils/floating-utils.ts +16 -8
  112. package/src/theme/utils/ghost-utils.ts +8 -4
  113. package/src/theme/utils/input-utils.ts +7 -4
  114. package/src/theme/utils/outline-utils.ts +6 -3
  115. package/src/theme/utils/surface-utils.ts +8 -4
  116. package/src/toast/toast.tsx +0 -1
  117. package/src/typography/Badge.tsx +8 -5
  118. package/src/typography/Heading.tsx +1 -1
  119. package/src/typography/Text.tsx +1 -1
  120. package/src/util/slugify.tsx +8 -8
  121. package/tsconfig.json +1 -0
  122. package/src/theme/recipes/choice-chip.ts +0 -144
@@ -1,12 +1,30 @@
1
1
 
2
- > @vygruppen/spor-react@12.1.2 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.2.1 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > pnpm typegen && tsup
4
4
 
5
5
 
6
- > @vygruppen/spor-react@12.1.2 typegen /home/runner/work/spor/spor/packages/spor-react
6
+ > @vygruppen/spor-react@12.2.1 typegen /home/runner/work/spor/spor/packages/spor-react
7
7
  > npx @chakra-ui/cli typegen src/theme/index.ts
8
8
 
9
9
  ┌ Chakra CLI ⚡️
10
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
11
+
12
+ ../spor-design-tokens/package.json:15:6:
13
+ 15 │ "types": "./dist/tokens.d.ts"
14
+ ╵ ~~~~~~~
15
+
16
+ The "import" condition comes earlier and will be used for all "import" statements:
17
+
18
+ ../spor-design-tokens/package.json:13:6:
19
+ 13 │ "import": "./dist/tokens.mjs",
20
+ ╵ ~~~~~~~~
21
+
22
+ The "require" condition comes earlier and will be used for all "require" calls:
23
+
24
+ ../spor-design-tokens/package.json:14:6:
25
+ 14 │ "require": "./dist/tokens.js",
26
+ ╵ ~~~~~~~~~
27
+
10
28
  [?25l│
11
29
  ◒ Generating conditions types...
12
30
  ◇ ✅ Generated conditions typings
@@ -16,7 +34,8 @@
16
34
  [?25h[?25l│
17
35
  ◇ ✅ Generated utility typings
18
36
  [?25h[?25l│
19
- ◇ Generated token typings
37
+ ◒ Generating token types...
38
+ ◇ ✅ Generated token typings
20
39
  [?25h[?25l│
21
40
  ◒ Generating system types...
22
41
  ◇ ✅ Generated system types
@@ -31,12 +50,12 @@ CLI Target: node16
31
50
  CJS Build start
32
51
  ESM Build start
33
52
  DTS Build start
34
- CJS dist/index.js 313.99 KB
35
- CJS dist/index.js.map 622.57 KB
36
- CJS ⚡️ Build success in 1209ms
37
- ESM dist/index.mjs 294.38 KB
38
- ESM dist/index.mjs.map 622.57 KB
39
- ESM ⚡️ Build success in 1794ms
40
- DTS ⚡️ Build success in 20993ms
41
- DTS dist/index.d.ts 133.42 KB
42
- DTS dist/index.d.mts 133.42 KB
53
+ CJS dist/index.js 313.49 KB
54
+ CJS dist/index.js.map 630.43 KB
55
+ CJS ⚡️ Build success in 2275ms
56
+ ESM dist/index.mjs 292.98 KB
57
+ ESM dist/index.mjs.map 630.43 KB
58
+ ESM ⚡️ Build success in 2276ms
59
+ DTS ⚡️ Build success in 25335ms
60
+ DTS dist/index.d.ts 130.88 KB
61
+ DTS dist/index.d.mts 130.88 KB
@@ -1,8 +1,26 @@
1
1
 
2
- > @vygruppen/spor-react@12.1.2 typegen /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.2.1 typegen /home/runner/work/spor/spor/packages/spor-react
3
3
  > npx @chakra-ui/cli typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
6
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
7
+
8
+ ../spor-design-tokens/package.json:15:6:
9
+ 15 │ "types": "./dist/tokens.d.ts"
10
+ ╵ ~~~~~~~
11
+
12
+ The "import" condition comes earlier and will be used for all "import" statements:
13
+
14
+ ../spor-design-tokens/package.json:13:6:
15
+ 13 │ "import": "./dist/tokens.mjs",
16
+ ╵ ~~~~~~~~
17
+
18
+ The "require" condition comes earlier and will be used for all "require" calls:
19
+
20
+ ../spor-design-tokens/package.json:14:6:
21
+ 14 │ "require": "./dist/tokens.js",
22
+ ╵ ~~~~~~~~~
23
+
6
24
  [?25l│
7
25
  ◒ Generating conditions types...
8
26
  ◇ ✅ Generated conditions typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bc98dd: Rewrite choice-chip. Fixes error where it stalls applications. No breaking changes to props.
8
+ - Updated dependencies [04498c3]
9
+ - @vygruppen/spor-icon-react@4.0.4
10
+
11
+ ## 12.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - b1fe230: Add filter for available country codes for PhoneNumberInput
16
+
3
17
  ## 12.1.2
4
18
 
5
19
  ### Patch Changes