@vygruppen/spor-react 12.10.1 → 12.10.3
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.
- package/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +21 -29
- package/dist/index.cjs +157 -132
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +157 -132
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/alert/ServiceAlert.tsx +2 -2
- package/src/datepicker/DateField.tsx +6 -2
- package/src/datepicker/TimeField.tsx +9 -6
- package/src/datepicker/TimePicker.tsx +3 -0
- package/src/dialog/Drawer.tsx +6 -4
- package/src/dialog/types.ts +1 -0
- package/src/input/ListBox.tsx +16 -3
- package/src/input/PhoneNumberInput.tsx +31 -40
- package/src/input/Switch.tsx +1 -1
- package/src/layout/RadioCard.tsx +2 -6
- package/src/link/TextLink.tsx +18 -2
- package/src/theme/slot-recipes/alert-service.ts +2 -2
- package/src/theme/slot-recipes/drawer.ts +6 -6
- package/src/theme/slot-recipes/select.ts +8 -17
- package/src/theme/slot-recipes/switch.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.10.
|
2
|
+
> @vygruppen/spor-react@12.10.3 build /home/runner/work/spor/spor/packages/spor-react
|
3
3
|
> tsup
|
4
4
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
@@ -11,18 +11,18 @@ CLI Cleaning output folder
|
|
11
11
|
ESM Build start
|
12
12
|
CJS Build start
|
13
13
|
DTS Build start
|
14
|
-
CJS dist/index.cjs
|
14
|
+
CJS dist/index.cjs 315.03 KB
|
15
15
|
CJS dist/icons/index.cjs 381.00 B
|
16
|
-
CJS dist/index.cjs.map 629.
|
16
|
+
CJS dist/index.cjs.map 629.44 KB
|
17
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
18
|
-
CJS ⚡️ Build success in
|
19
|
-
ESM dist/index.mjs 293.53 KB
|
18
|
+
CJS ⚡️ Build success in 2766ms
|
20
19
|
ESM dist/icons/index.mjs 110.00 B
|
20
|
+
ESM dist/index.mjs 293.63 KB
|
21
21
|
ESM dist/icons/index.mjs.map 157.00 B
|
22
|
-
ESM dist/index.mjs.map 629.
|
23
|
-
ESM ⚡️ Build success in
|
24
|
-
DTS ⚡️ Build success in
|
22
|
+
ESM dist/index.mjs.map 629.44 KB
|
23
|
+
ESM ⚡️ Build success in 2769ms
|
24
|
+
DTS ⚡️ Build success in 18537ms
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
26
|
-
DTS dist/index.d.ts
|
26
|
+
DTS dist/index.d.ts 156.04 KB
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
28
|
-
DTS dist/index.d.cts
|
28
|
+
DTS dist/index.d.cts 156.04 KB
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.10.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 3329fa1: TextLink: Open in a new tab when `external` is true
|
8
|
+
Drawer: Correct close button placement and mobile padding. Add prop to conditionally show closeTrigger on fullscreeen drawer.
|
9
|
+
- 2be55a9: TimePicker: Fix label overlapping buttons and center it
|
10
|
+
RadioCard: Fix value read by screen reader, not content of radio button.
|
11
|
+
|
12
|
+
## 12.10.2
|
13
|
+
|
14
|
+
### Patch Changes
|
15
|
+
|
16
|
+
- a35e94b: - ServiceAlert text is now left-aligned
|
17
|
+
- DateField displays required indicator correctly
|
18
|
+
- Combobox padding issues resolved
|
19
|
+
- PhoneNumberInput border rendering fixed
|
20
|
+
- Floating PhoneNumberInput shows correct invalid border
|
21
|
+
- Switch no longer has unwanted left padding
|
22
|
+
- TimePicker functionality improved
|
23
|
+
|
3
24
|
## 12.10.1
|
4
25
|
|
5
26
|
### Patch Changes
|
@@ -82,7 +103,6 @@
|
|
82
103
|
### Patch Changes
|
83
104
|
|
84
105
|
- 286dbdc: Improve type definitions for Field and CheckboxGroup components:
|
85
|
-
|
86
106
|
- CheckboxGroup: Make `direction` optional.
|
87
107
|
- Field: Ensure `onClick` is included in props.
|
88
108
|
|
@@ -288,7 +308,6 @@
|
|
288
308
|
|
289
309
|
- 94e9282: Nudge, WizardNudge and Toast does not work after updating chakra in a previous version of spor.
|
290
310
|
Fixed:
|
291
|
-
|
292
311
|
- Toast needed an id for each toast. Auto generated if not supplied from user.
|
293
312
|
- Nudge imported usePopoverContext from ark. Now imports from chakra and works.
|
294
313
|
|
@@ -320,12 +339,10 @@
|
|
320
339
|
### Minor Changes
|
321
340
|
|
322
341
|
- 404114d: **spor-icon-react**:
|
323
|
-
|
324
342
|
- Upgraded Chakra UI to the latest version
|
325
343
|
- Removed `ClientOnlyWrapper` from all icons
|
326
344
|
|
327
345
|
**spor-react**:
|
328
|
-
|
329
346
|
- Upgraded Chakra UI to the latest version
|
330
347
|
- Fixed minor styling issues in the `Select` component
|
331
348
|
|
@@ -476,12 +493,10 @@
|
|
476
493
|
### Major Changes
|
477
494
|
|
478
495
|
- fcd6f80: Checkbox:
|
479
|
-
|
480
496
|
- Updated props, `onChange` is now `onCheckedChange`
|
481
497
|
- "`is`" removed from props names. `invalid`, `disabled` and `checked`
|
482
498
|
|
483
499
|
CheckboxGroup:
|
484
|
-
|
485
500
|
- `defaultChecked` > `defaultValue`
|
486
501
|
|
487
502
|
- fcd6f80: Separator: Changed name from Divider to Separator. Fixed styling on separators to match Figma styling
|
@@ -491,7 +506,6 @@
|
|
491
506
|
- fcd6f80: Name update: "base" is now "core" on all platforms. Colors and variants.
|
492
507
|
- fcd6f80: Lists: UnorderedList is removed, use List with prop as="ul"; OrderedList is removed, use List with prop as="ol"
|
493
508
|
- fcd6f80: Table:
|
494
|
-
|
495
509
|
- Thead is now TableHeader,
|
496
510
|
- Tbody is now TableBody,
|
497
511
|
- Tr is now TableRow,
|
@@ -506,7 +520,6 @@
|
|
506
520
|
Pagination has changed and been converted to composition pattern. Please see docs for info.
|
507
521
|
|
508
522
|
Prop changes:
|
509
|
-
|
510
523
|
- `totalPages` > `count`
|
511
524
|
- `selectedPage` > `page`
|
512
525
|
|
@@ -519,11 +532,9 @@
|
|
519
532
|
Spor is getting a major update with Chakra 3.
|
520
533
|
|
521
534
|
## Updated variants
|
522
|
-
|
523
535
|
- `base` is now `core`
|
524
536
|
|
525
537
|
### Update props
|
526
|
-
|
527
538
|
- `isDisabled` is now `disabled`
|
528
539
|
- `isLoading` is now `loading`
|
529
540
|
- `sx` and `__css` is gone, use `css` or `style` instead
|
@@ -535,7 +546,6 @@
|
|
535
546
|
- `isAttached` is now `attached`
|
536
547
|
|
537
548
|
### Updated components
|
538
|
-
|
539
549
|
- `Dialog` replaces `Modal` - And all sizes and placements are now available from the same component
|
540
550
|
- `Accordion`, `Pagination`, `Tabs`, `RadioCard` and `RadioCardGroup` now have a different syntax. Please consult the documentation for name changes.
|
541
551
|
- `Table` components has many changes. Instead of the generic HTML names (Td, Tr etc.), it will now work with full names. Please see docs. Variant `simple` is now `line`.
|
@@ -578,7 +588,6 @@
|
|
578
588
|
- fcd6f80: Accordion: Update syntax and props.
|
579
589
|
|
580
590
|
Changes for component:
|
581
|
-
|
582
591
|
- `AccordionButton` > `AccordionItemTrigger`
|
583
592
|
- `AccordionPanel` > `AccordionItemContent`
|
584
593
|
- `AccordionIcon` is deprecated and used in all Accordions
|
@@ -588,7 +597,6 @@
|
|
588
597
|
- fcd6f80: Radio: can no longer be used without RadioGroup, for accessibility reasons.
|
589
598
|
- fcd6f80: Button Group: variant and size are no longer props of ButtonGroup, these props are passed from children. isAttached is now attached
|
590
599
|
- fcd6f80: RadioCardGroup and RadioCard:
|
591
|
-
|
592
600
|
- Updated props: `onChange` is now `onValueChange`
|
593
601
|
- Deleted props: `name`, `groupLabel` is replaced by `<RadioCardLabel />`
|
594
602
|
- `core` replaces the `base` variant
|
@@ -604,7 +612,6 @@
|
|
604
612
|
|
605
613
|
- fcd6f80: NativeSelect: isDisabled and isInvalid is now disabled and invalid. It is no longer necessary to define true or false.
|
606
614
|
- fcd6f80: Alert & ExpandableAlert
|
607
|
-
|
608
615
|
- `Alert`: `ClosableAlert` and `StaticAlert` are deprecated. Use component `Alert` and prop `closable` instead
|
609
616
|
- `ExpandableAlert`: New colorscheme and styling
|
610
617
|
- `Accordion`: Some styling updates
|
@@ -614,19 +621,16 @@
|
|
614
621
|
|
615
622
|
- fcd6f80: Switch: FormLabel is depricated, use label prop. isDisabled, isChecked and isInvalid is now disabled, checked and invalid.
|
616
623
|
- fcd6f80: **spor-design-tokens: major**
|
617
|
-
|
618
624
|
- teal has been removed from the palette. Use the green palette instead
|
619
625
|
- Some aliases are removed to make way for new ones
|
620
626
|
|
621
627
|
**spor-design-tokens: minor**
|
622
|
-
|
623
628
|
- The palette has been extended from 50-600 to 50-1100 with new values
|
624
629
|
- New aliases has been added to support the extended color palette
|
625
630
|
- New tokens has been added to themes; detail.color, surface.color and alert
|
626
631
|
- Some values for tokens has changed to support the new palette
|
627
632
|
|
628
633
|
**spor-react: patch**
|
629
|
-
|
630
634
|
- Updated darkGreen Badge with new alias
|
631
635
|
|
632
636
|
- fcd6f80: CardSelect: the variant are now: core, ghost and floating
|
@@ -647,12 +651,10 @@
|
|
647
651
|
- fcd6f80: remove support for elm
|
648
652
|
- fcd6f80: ProgressBar: You can now use showValueText to show the percentage done
|
649
653
|
- fcd6f80: ### Changed
|
650
|
-
|
651
654
|
- Changed the way the theme is switched to work with Chakra 3.
|
652
655
|
- Removed the `theme` prop and its value from `SporProvider`. Specifying brand should be sufficient.
|
653
656
|
|
654
657
|
- fcd6f80: ### Skeleton Component Updates
|
655
|
-
|
656
658
|
- **Skeleton**: Introduced new props. The `isLoaded` prop has been replaced with `loading`, which is its opposite.
|
657
659
|
- **SkeletonCircle**: The `boxSize` prop has been replaced with `size`.
|
658
660
|
|
@@ -968,7 +970,6 @@
|
|
968
970
|
### Minor Changes
|
969
971
|
|
970
972
|
- 8184ed1: ### New component
|
971
|
-
|
972
973
|
- ServiceAlert added to the bunch
|
973
974
|
- Alert: New variant "service"
|
974
975
|
|
@@ -1189,7 +1190,6 @@
|
|
1189
1190
|
### Minor Changes
|
1190
1191
|
|
1191
1192
|
- 37c8580: Card is deprecated
|
1192
|
-
|
1193
1193
|
- Update styling for PressableCard
|
1194
1194
|
- Update styling for StaticCard
|
1195
1195
|
- Make Card deprecated, is replaced by the above components
|
@@ -1199,7 +1199,6 @@
|
|
1199
1199
|
### Minor Changes
|
1200
1200
|
|
1201
1201
|
- a3d2ca4: New component: RadioCard & RadioCardGroup
|
1202
|
-
|
1203
1202
|
- Should be used togehter for optimal functionality
|
1204
1203
|
|
1205
1204
|
### Patch Changes
|
@@ -1353,14 +1352,12 @@
|
|
1353
1352
|
Sizes that used to be "sm, md, lg, xl" are now "xs, sm, md, lg".
|
1354
1353
|
|
1355
1354
|
To migrate, change size
|
1356
|
-
|
1357
1355
|
- "sm" to "xs",
|
1358
1356
|
- "md" to "sm",
|
1359
1357
|
- "lg" to "md",
|
1360
1358
|
- and "xl" to "lg".
|
1361
1359
|
|
1362
1360
|
Affected components are:
|
1363
|
-
|
1364
1361
|
- ChoiceChip
|
1365
1362
|
- Tabs
|
1366
1363
|
|
@@ -1428,7 +1425,6 @@
|
|
1428
1425
|
added text
|
1429
1426
|
|
1430
1427
|
choiceChip:
|
1431
|
-
|
1432
1428
|
- We have renamed the variant prop to chipType. This prop now accepts three values: choice, icon, and filter.
|
1433
1429
|
Please update your components to use chipType instead of variant.
|
1434
1430
|
- We have introduced a new variant prop. This prop accepts three values: base, accent, and floating.
|
@@ -1612,7 +1608,6 @@
|
|
1612
1608
|
### Minor Changes
|
1613
1609
|
|
1614
1610
|
- a16a9972: Expose new methods and components from Chakra:
|
1615
|
-
|
1616
1611
|
- defineStyleConfig
|
1617
1612
|
- Collapse
|
1618
1613
|
- useSize
|
@@ -1838,7 +1833,6 @@
|
|
1838
1833
|
|
1839
1834
|
- cfa3ebb1: ExpandableAlert: Fix double padding bug
|
1840
1835
|
Other:
|
1841
|
-
|
1842
1836
|
- Set the document-level line height to a valid value
|
1843
1837
|
- Fix a bug with icon generation
|
1844
1838
|
|
@@ -2124,7 +2118,6 @@
|
|
2124
2118
|
- 5bd65c9e: Export some new transition components from Chakra
|
2125
2119
|
|
2126
2120
|
This change adds the following components:
|
2127
|
-
|
2128
2121
|
- Fade
|
2129
2122
|
- ScaleFade
|
2130
2123
|
- Slide
|
@@ -2181,7 +2174,6 @@
|
|
2181
2174
|
The design tokens were previously also exported from `spor-react` - they should now be imported from `spor-design-tokens` directly instead.
|
2182
2175
|
|
2183
2176
|
Some deprecated components and props have also been removed or replaced:
|
2184
|
-
|
2185
2177
|
- `Link` is replaced by `TextLink`
|
2186
2178
|
- `Select` is replaced by `NativeSelect`
|
2187
2179
|
- `Spinner` is replaced by `ColorSpinner`
|