@popsure/dirty-swan 0.33.4 → 0.33.5

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 (46) hide show
  1. package/dist/cjs/index.js +10 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/dateSelector/index.d.ts +11 -11
  4. package/dist/cjs/lib/components/dateSelector/index.stories.d.ts +65 -0
  5. package/dist/cjs/lib/components/multiDropzone/index.d.ts +4 -4
  6. package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +72 -0
  7. package/dist/cjs/lib/index.d.ts +2 -2
  8. package/dist/cjs/lib/util/images/index.d.ts +7 -0
  9. package/dist/esm/components/dateSelector/index.js +6 -2179
  10. package/dist/esm/components/dateSelector/index.js.map +1 -1
  11. package/dist/esm/components/dateSelector/index.stories.js +92 -0
  12. package/dist/esm/components/dateSelector/index.stories.js.map +1 -0
  13. package/dist/esm/components/dateSelector/index.test.js +1 -1
  14. package/dist/esm/components/dateSelector/index.test.js.map +1 -1
  15. package/dist/esm/components/input/checkbox/index.stories.js +1 -1
  16. package/dist/esm/components/multiDropzone/index.js +3 -3
  17. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  18. package/dist/esm/components/multiDropzone/index.stories.js +147 -0
  19. package/dist/esm/components/multiDropzone/index.stories.js.map +1 -0
  20. package/dist/esm/components/multiDropzone/index.test.js +2 -2
  21. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  22. package/dist/esm/{index-e81a1766.js → index-31224f74.js} +8 -1
  23. package/dist/esm/index-31224f74.js.map +1 -0
  24. package/dist/esm/index-639cf8b3.js +2179 -0
  25. package/dist/esm/index-639cf8b3.js.map +1 -0
  26. package/dist/esm/index.js +3 -3
  27. package/dist/esm/lib/components/dateSelector/index.d.ts +11 -11
  28. package/dist/esm/lib/components/dateSelector/index.stories.d.ts +65 -0
  29. package/dist/esm/lib/components/multiDropzone/index.d.ts +4 -4
  30. package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +72 -0
  31. package/dist/esm/lib/index.d.ts +2 -2
  32. package/dist/esm/lib/util/images/index.d.ts +7 -0
  33. package/dist/esm/util/images/index.stories.js +1 -1
  34. package/package.json +1 -1
  35. package/src/App.tsx +1 -1
  36. package/src/lib/components/dateSelector/index.stories.tsx +104 -0
  37. package/src/lib/components/dateSelector/index.test.tsx +2 -2
  38. package/src/lib/components/dateSelector/index.tsx +14 -14
  39. package/src/lib/components/multiDropzone/index.stories.tsx +228 -0
  40. package/src/lib/components/multiDropzone/index.test.tsx +1 -1
  41. package/src/lib/components/multiDropzone/index.tsx +6 -6
  42. package/src/lib/index.tsx +3 -2
  43. package/src/lib/util/images/index.ts +7 -0
  44. package/dist/esm/index-e81a1766.js.map +0 -1
  45. package/src/lib/components/dateSelector/index.stories.mdx +0 -106
  46. package/src/lib/components/multiDropzone/index.stories.mdx +0 -187
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.stories.js","sources":["../../../../node_modules/dayjs/locale/de.js","../../../../../src/lib/components/dateSelector/index.stories.tsx"],"sourcesContent":["!function(e,n){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=n(require(\"dayjs\")):\"function\"==typeof define&&define.amd?define([\"dayjs\"],n):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_locale_de=n(e.dayjs)}(this,(function(e){\"use strict\";function n(e){return e&&\"object\"==typeof e&&\"default\"in e?e:{default:e}}var t=n(e),a={s:\"ein paar Sekunden\",m:[\"eine Minute\",\"einer Minute\"],mm:\"%d Minuten\",h:[\"eine Stunde\",\"einer Stunde\"],hh:\"%d Stunden\",d:[\"ein Tag\",\"einem Tag\"],dd:[\"%d Tage\",\"%d Tagen\"],M:[\"ein Monat\",\"einem Monat\"],MM:[\"%d Monate\",\"%d Monaten\"],y:[\"ein Jahr\",\"einem Jahr\"],yy:[\"%d Jahre\",\"%d Jahren\"]};function i(e,n,t){var i=a[t];return Array.isArray(i)&&(i=i[n?0:1]),i.replace(\"%d\",e)}var r={name:\"de\",weekdays:\"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag\".split(\"_\"),weekdaysShort:\"So._Mo._Di._Mi._Do._Fr._Sa.\".split(\"_\"),weekdaysMin:\"So_Mo_Di_Mi_Do_Fr_Sa\".split(\"_\"),months:\"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember\".split(\"_\"),monthsShort:\"Jan_Feb_März_Apr_Mai_Juni_Juli_Aug_Sept_Okt_Nov_Dez\".split(\"_\"),ordinal:function(e){return e+\".\"},weekStart:1,yearStart:4,formats:{LTS:\"HH:mm:ss\",LT:\"HH:mm\",L:\"DD.MM.YYYY\",LL:\"D. MMMM YYYY\",LLL:\"D. MMMM YYYY HH:mm\",LLLL:\"dddd, D. MMMM YYYY HH:mm\"},relativeTime:{future:\"in %s\",past:\"vor %s\",s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return t.default.locale(r,null,!0),r}));","import { DateSelector, DateSelectorProps } from '.';\nimport de from 'dayjs/locale/de';\n\nconst story = {\n title: 'JSX/DateSelector',\n component: DateSelector,\n decorators: [\n (Story: any) => (\n <div style={{ minHeight: '320px', paddingTop: '80px' }}>\n <Story />\n </div>\n ),\n ],\n argTypes: {\n yearBoundaries: {\n description: 'Object containing the min and max year boundaries to show.',\n defaultValue: {\n min: 1920, \n max: 2001\n }\n },\n displayCalendar: {\n description: 'Whether the calendar icon/button trigger should show',\n defaultValue: false\n },\n onChange: {\n description: 'Called when the value is changed. Must be a valid date to be triggered',\n action: true,\n table: {\n category: 'Callbacks',\n type: { \n summary: '(date: YYYY-MM-DD) => void'\n },\n },\n },\n value: {\n defaultValue: '2000-12-12',\n description: 'Value of the input',\n table: {\n type: { \n summary: 'YYYY-MM-DD'\n },\n },\n },\n dayjsLocale: {\n description: `Property used to localize the calendar of the DateSelector. If no dayjsLocale is supplied, the default locale 'en' will be used. Additional locales can be imported from dayjs like import de from 'dayjs/locale/de'; and then passed on to the component.`\n },\n placeholders: {\n description: 'Properties used to localize the calendar of the DateSelector. `placeholders` object can be used to change the text of the different dropdowns.'\n },\n firstDayOfWeek: {\n description: `Index of the first day of the week (0 = Sunday, 1 = Monday, etc.)`\n }\n },\n parameters: {\n componentSubtitle: 'Date selector are user interface elements which allow user to select a date in the `YYYY-MM-DD` format.',\n design: {\n url: 'https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FMKs4cbojdVOBKUxv7okb93%2FDirty-Swan-Design-System%3Fnode-id%3D293%253A169',\n type: 'figma'\n },\n docs: {\n source: {\n excludeDecorators: true,\n },\n },\n },\n};\n\nexport const DateSelectorStory = ({\n displayCalendar,\n onChange,\n yearBoundaries,\n value\n}: DateSelectorProps) => (\n <DateSelector\n onChange={onChange}\n displayCalendar={displayCalendar}\n yearBoundaries={yearBoundaries}\n value={value}\n />\n);\n\nDateSelectorStory.storyName = \"DateSelector\";\n\nexport const DateSelectorLocalisation = ({ onChange, value, yearBoundaries }: DateSelectorProps) => (\n <>\n {/** import de from 'dayjs/locale/de'; */}\n <DateSelector\n value={value}\n yearBoundaries={yearBoundaries}\n onChange={onChange}\n displayCalendar={true}\n placeholders={{\n day: 'Tag',\n month: 'Monat',\n year: 'Jahr',\n }}\n dayjsLocale={de}\n firstDayOfWeek={2}\n />\n </>\n);\n\nexport default story;\n"],"names":["require$$0","this","_jsx"],"mappings":";;;;;;;;;;AAAA,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAsD,eAAe,CAAC,CAACA,iBAAgB,EAA4I,CAAC,CAACC,cAAI,EAAE,SAAS,CAAC,CAAC,CAAc,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC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as __awaiter, c as __generator } from '../../tslib.es6-5bc94358.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { c as customRender } from '../../customRender-4157fcff.js';
4
- import DateSelector from './index.js';
4
+ import { D as DateSelector } from '../../index-639cf8b3.js';
5
5
  import 'react';
6
6
  import 'react-dom';
7
7
  import '../../_commonjsHelpers-e7f67fd8.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.test.js","sources":["../../../../../src/lib/components/dateSelector/index.test.tsx"],"sourcesContent":["import { render, fireEvent } from '../../util/testUtils';\n\nimport DateSelector from '.';\n\nconst setup = (date: string, onChange: (date: string) => void = () => {}) => {\n return render(\n <DateSelector\n value={date}\n yearBoundaries={{ min: 2020, max: 2025 }}\n onChange={onChange}\n displayCalendar\n />\n );\n};\n\ndescribe('DateSelector component', () => {\n it('should return the selected date when clicking on the calendar', async () => {\n const callback = jest.fn();\n const date = '2024-01-01';\n const expectedDate = '2024-01-17';\n const { getByAltText, getByLabelText, user } = setup(date, callback);\n const button = getByAltText('calendar');\n\n await user.click(button);\n\n const calendarCell = getByLabelText(/17 2024/);\n\n await user.click(calendarCell);\n\n expect(callback).toHaveBeenCalledWith(expectedDate);\n\n expect(calendarCell).not.toBeVisible();\n });\n\n it('should close the calendar when clicking outside', async () => {\n const callback = jest.fn();\n const date = '2024-01-01';\n const { getByAltText, getByLabelText, user } = setup(date, callback);\n const button = getByAltText('calendar');\n\n await user.click(button);\n\n const calendarCell = getByLabelText(/17 2024/);\n expect(calendarCell).toBeVisible();\n\n // click outside the calendar\n await user.click(document.body);\n\n expect(callback).not.toHaveBeenCalled();\n\n expect(calendarCell).not.toBeVisible();\n });\n});\n"],"names":["render","_jsx"],"mappings":";;;;;;;;;;AAIA,IAAM,KAAK,GAAG,UAAC,IAAY,EAAE,QAA2C;IAA3C,yBAAA,EAAA,0BAA2C;IACtE,OAAOA,YAAM,CACXC,IAAC,YAAY,IACX,KAAK,EAAE,IAAI,EACX,cAAc,EAAE,EAAE,GAAG,E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c,CAAC,SAAS,CAAC,CAAC;oBAC/C,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;;oBAGnC,qBAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAA;;;oBAA/B,SAA+B,CAAC;oBAEhC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;oBAExC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;;;;SACxC,CAAC,CAAC;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"index.test.js","sources":["../../../../../src/lib/components/dateSelector/index.test.tsx"],"sourcesContent":["import { render } from '../../util/testUtils';\n\nimport { DateSelector } from '.';\n\nconst setup = (date: string, onChange: (date: string) => void = () => {}) => {\n return render(\n <DateSelector\n value={date}\n yearBoundaries={{ min: 2020, max: 2025 }}\n onChange={onChange}\n displayCalendar\n />\n );\n};\n\ndescribe('DateSelector component', () => {\n it('should return the selected date when clicking on the calendar', async () => {\n const callback = jest.fn();\n const date = '2024-01-01';\n const expectedDate = '2024-01-17';\n const { getByAltText, getByLabelText, user } = setup(date, callback);\n const button = getByAltText('calendar');\n\n await user.click(button);\n\n const calendarCell = getByLabelText(/17 2024/);\n\n await user.click(calendarCell);\n\n expect(callback).toHaveBeenCalledWith(expectedDate);\n\n expect(calendarCell).not.toBeVisible();\n });\n\n it('should close the calendar when clicking outside', async () => {\n const callback = jest.fn();\n const date = '2024-01-01';\n const { getByAltText, getByLabelText, user } = setup(date, callback);\n const button = getByAltText('calendar');\n\n await user.click(button);\n\n const calendarCell = getByLabelText(/17 2024/);\n expect(calendarCell).toBeVisible();\n\n // click outside the calendar\n await user.click(document.body);\n\n expect(callback).not.toHaveBeenCalled();\n\n expect(calendarCell).not.toBeVisible();\n });\n});\n"],"names":["render","_jsx"],"mappings":";;;;;;;;;;AAIA,IAAM,KAAK,GAAG,UAAC,IAAY,EAAE,QAA2C;IAA3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AAC,CAAC;oBAExC,qBAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAA;;oBAAxB,SAAwB,CAAC;oBAEnB,YAAY,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;oBAC/C,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;;oBAGnC,qBAAM,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAA;;;oBAA/B,SAA+B,CAAC;oBAEhC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;oBAExC,MAAM,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;;;;SACxC,CAAC,CAAC;AACL,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import { useState } from 'react';
3
3
  import { Checkbox } from './index.js';
4
- import { i as images } from '../../../index-e81a1766.js';
4
+ import { i as images } from '../../../index-31224f74.js';
5
5
  import '../../../tslib.es6-5bc94358.js';
6
6
  import '../../../index-e9e37a34.js';
7
7
  import '../../../style-inject.es-1f59c1d0.js';
@@ -2805,9 +2805,9 @@ var getErrorMessage = function (_a, _b, textOverrides) {
2805
2805
  }
2806
2806
  };
2807
2807
 
2808
- var MultiDropZone = function (_a) {
2808
+ var MultiDropzone = function (_a) {
2809
2809
  var _b;
2810
- var accept = _a.accept, uploadedFiles = _a.uploadedFiles, onFileSelect = _a.onFileSelect, uploading = _a.uploading, onRemoveFile = _a.onRemoveFile, _c = _a.isCondensed, isCondensed = _c === void 0 ? false : _c, _d = _a.maxFiles, maxFiles = _d === void 0 ? 0 : _d, maxSize = _a.maxSize, textOverrides = _a.textOverrides;
2810
+ var uploadedFiles = _a.uploadedFiles, onFileSelect = _a.onFileSelect, onRemoveFile = _a.onRemoveFile, uploading = _a.uploading, _c = _a.isCondensed, isCondensed = _c === void 0 ? false : _c, accept = _a.accept, _d = _a.maxFiles, maxFiles = _d === void 0 ? 0 : _d, maxSize = _a.maxSize, textOverrides = _a.textOverrides;
2811
2811
  var _e = useState([]), errors = _e[0], setErrors = _e[1];
2812
2812
  var formattedAccept = getFormattedAcceptObject(accept);
2813
2813
  var fileList = formatAcceptFileList(formattedAccept);
@@ -2858,5 +2858,5 @@ var MultiDropZone = function (_a) {
2858
2858
  jsx(AnimateHeight, __assign({ duration: 300, height: isOverMaxFiles ? 'auto' : 0 }, { children: jsx("p", __assign({ className: "tc-red-500 p-p--small" }, { children: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.tooManyFilesError) || "Too many files." }), void 0) }), void 0)] }), void 0));
2859
2859
  };
2860
2860
 
2861
- export default MultiDropZone;
2861
+ export { MultiDropzone };
2862
2862
  //# sourceMappingURL=index.js.map