@tui-cruises/mein-schiff-web-react-component-library 2.2.6 → 2.2.8
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.2.7](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.2.6...v2.2.7) (2025-08-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **Accordion:** Always enforce multiple type ([a387d1d](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/commit/a387d1db9513c34d1f62114da3a8db3a3a81c9bf))
|
|
11
|
+
|
|
5
12
|
### [2.2.6](https://bitbucket.org/yours_truly/tuic-mein-schiff-web-react-component-library/compare/v2.2.5...v2.2.6) (2025-08-05)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -89,6 +89,9 @@ const Accordion: Root = propsArg => {
|
|
|
89
89
|
const renderAccordion = (props: AccordionProps) => {
|
|
90
90
|
let { fallback, children: childrenArg, items, headlineAs, ...attrs } = props;
|
|
91
91
|
|
|
92
|
+
// Always enforce multiple type
|
|
93
|
+
attrs.type = 'multiple';
|
|
94
|
+
|
|
92
95
|
let { children, type } = getChildren(
|
|
93
96
|
items,
|
|
94
97
|
childrenArg,
|
|
@@ -96,10 +99,6 @@ const renderAccordion = (props: AccordionProps) => {
|
|
|
96
99
|
headlineAs,
|
|
97
100
|
);
|
|
98
101
|
|
|
99
|
-
if (attrs.type === 'single' && typeof attrs.collapsible === 'undefined') {
|
|
100
|
-
attrs.collapsible = true;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
102
|
if (type !== 'tabs') {
|
|
104
103
|
return (
|
|
105
104
|
<Radix.Root {...attrs} asChild data-track-module="accordion">
|
|
@@ -16,7 +16,7 @@ import { twJoin } from 'tailwind-merge';
|
|
|
16
16
|
import { Icon } from '../Icon';
|
|
17
17
|
import { Locale as I18nLocale } from '@tuic/i18n';
|
|
18
18
|
import { TextButton } from '../TextButton';
|
|
19
|
-
import { differenceInMonths } from 'date-fns';
|
|
19
|
+
import { differenceInMonths, type Locale } from 'date-fns';
|
|
20
20
|
|
|
21
21
|
type BaseProps = Omit<DayPickerBase, 'locale' | 'fromDate'> & {
|
|
22
22
|
localeCode?: I18nLocale;
|
|
@@ -59,7 +59,7 @@ function Calendar({
|
|
|
59
59
|
toMonth,
|
|
60
60
|
...props
|
|
61
61
|
}: CalendarProps) {
|
|
62
|
-
const [usedLocale, setUsedLocale] = useState<
|
|
62
|
+
const [usedLocale, setUsedLocale] = useState<I18nLocale | undefined>(undefined);
|
|
63
63
|
const [currentMonth, setCurrentMonth] = useState<Date | undefined>(
|
|
64
64
|
useShowMoreButtonOnMobile ? (month ?? defaultMonth) : undefined,
|
|
65
65
|
);
|
|
Binary file
|