willba-component-library 0.0.35 → 0.0.37
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/lib/components/FilterBar/FilterBar.d.ts +7 -1
- package/lib/components/FilterBar/FilterBar.stories.d.ts +2 -2
- package/lib/i18n.d.ts +2 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.esm.js +2625 -29
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2624 -28
- package/lib/index.js.map +1 -1
- package/lib/index.umd.js +2624 -28
- package/lib/index.umd.js.map +1 -1
- package/lib/themes/useTheme.d.ts +5 -0
- package/package.json +5 -2
- package/rollup.config.mjs +24 -22
- package/src/components/FilterBar/FilterBar.css +2 -8
- package/src/components/FilterBar/FilterBar.stories.tsx +8 -9
- package/src/components/FilterBar/FilterBar.tsx +19 -5
- package/src/components/FilterBar/components/categories/Categories.tsx +5 -1
- package/src/components/FilterBar/components/guests/Guests.tsx +7 -4
- package/src/i18n.ts +26 -0
- package/src/index.ts +3 -3
- package/src/locales/en/filterBar.json +17 -0
- package/src/locales/fi/filterBar.json +17 -0
- package/src/themes/Default.css +13 -0
- package/src/themes/Kisakallio.css +3 -0
- package/src/themes/Pajulahti.css +3 -0
- package/src/themes/cssModules.d.ts +5 -0
- package/src/themes/useTheme.tsx +32 -0
- package/tsconfig.json +7 -1
- package/lib/components/FilterBar/components/Callendar.d.ts +0 -2
- package/lib/components/FilterBar/components/Divider.d.ts +0 -2
- package/lib/components/FilterBar/components/SelectButton.d.ts +0 -2
- package/lib/components/FilterBar/components/SubmitButton.d.ts +0 -2
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './FilterBar.css';
|
|
3
|
-
|
|
3
|
+
import '../../themes/Default.css';
|
|
4
|
+
import '../../i18n';
|
|
5
|
+
type FilterBarProps = {
|
|
6
|
+
vendor?: string;
|
|
7
|
+
};
|
|
8
|
+
export default function FilterBar({ vendor }: FilterBarProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from
|
|
2
|
-
import FilterBar from
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import FilterBar from './FilterBar';
|
|
3
3
|
declare const meta: Meta<typeof FilterBar>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FilterBar>;
|
package/lib/i18n.d.ts
ADDED
package/lib/index.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ interface ButtonProps {
|
|
|
27
27
|
*/
|
|
28
28
|
declare const Button: ({ type, textColor, size, onClick, label, }: ButtonProps) => React.JSX.Element;
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
type FilterBarProps = {
|
|
31
|
+
vendor?: string;
|
|
32
|
+
};
|
|
33
|
+
declare function FilterBar({ vendor }: FilterBarProps): React.JSX.Element;
|
|
31
34
|
|
|
32
35
|
export { Button, FilterBar };
|