@pronto-tools-and-more/components 10.19.0 → 10.20.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.
package/dist/main.js CHANGED
@@ -351,6 +351,11 @@ var ContentTitle = () => {
351
351
  return /* @__PURE__ */ React.createElement(JsonComponent, { json });
352
352
  };
353
353
 
354
+ // src/parts/DateHelper/DateHelper.ts
355
+ var dateHelper = (date, format, language = "de") => {
356
+ return `$functions.dateHelper(${date}).locale('${language}').format('${format}')`;
357
+ };
358
+
354
359
  // src/parts/DossierList/DossierList.tsx
355
360
  var DossierList = () => {
356
361
  const json = {
@@ -612,7 +617,9 @@ var PublicationToggle = () => {
612
617
  };
613
618
 
614
619
  // src/parts/SearchField/SearchField.tsx
615
- var SearchField = () => {
620
+ var SearchField = ({
621
+ placeholder
622
+ } = {}) => {
616
623
  const json = {
617
624
  type: "search-field",
618
625
  class: "searchfield"
@@ -917,5 +924,6 @@ export {
917
924
  SearchLink,
918
925
  SearchResults,
919
926
  SubscriptionLink,
920
- TagList
927
+ TagList,
928
+ dateHelper
921
929
  };
@@ -7,6 +7,7 @@ export * from "../Collection/Collection.tsx";
7
7
  export * from "../Container/Container.tsx";
8
8
  export * from "../ContentBody/ContentBody.tsx";
9
9
  export * from "../ContentTitle/ContentTitle.tsx";
10
+ export * from "../DateHelper/DateHelper.ts";
10
11
  export * from "../DossierList/DossierList.tsx";
11
12
  export * from "../DossierSwiper/DossierSwiper.tsx";
12
13
  export * from "../EPaperLink/EPaperLink.tsx";
@@ -0,0 +1 @@
1
+ export declare const dateHelper: (date: string, format: string, language?: string) => string;
@@ -1,2 +1,4 @@
1
1
  import type React from "react";
2
- export declare const SearchField: () => React.ReactElement;
2
+ export declare const SearchField: ({ placeholder, }?: {
3
+ placeholder?: string;
4
+ }) => React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "10.19.0",
3
+ "version": "10.20.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",