@popsure/dirty-swan 0.28.11 → 0.29.1

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 (36) hide show
  1. package/dist/cjs/index.js +26 -7
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/button/index.d.ts +1 -1
  4. package/dist/cjs/lib/components/modal/index.d.ts +1 -1
  5. package/dist/esm/components/autocompleteAddress/index.js +1 -1
  6. package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
  7. package/dist/esm/components/button/index.js +1 -0
  8. package/dist/esm/components/button/index.js.map +1 -1
  9. package/dist/esm/components/input/currency/index.js +15 -3
  10. package/dist/esm/components/input/currency/index.js.map +1 -1
  11. package/dist/esm/components/input/currency/index.test.js +90 -0
  12. package/dist/esm/components/input/currency/index.test.js.map +1 -1
  13. package/dist/esm/components/modal/bottomModal/index.js +6 -2
  14. package/dist/esm/components/modal/bottomModal/index.js.map +1 -1
  15. package/dist/esm/components/modal/bottomOrRegularModal/index.js +1 -0
  16. package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -1
  17. package/dist/esm/components/modal/regularModal/index.js +6 -2
  18. package/dist/esm/components/modal/regularModal/index.js.map +1 -1
  19. package/dist/esm/lib/components/button/index.d.ts +1 -1
  20. package/dist/esm/lib/components/modal/index.d.ts +1 -1
  21. package/dist/index.css +11 -8
  22. package/dist/index.css.map +1 -1
  23. package/dist/lib/scss/private/components/_buttons.scss +5 -0
  24. package/package.json +1 -1
  25. package/src/lib/components/autocompleteAddress/index.tsx +1 -1
  26. package/src/lib/components/button/index.stories.mdx +21 -0
  27. package/src/lib/components/button/index.tsx +7 -1
  28. package/src/lib/components/input/currency/index.test.tsx +52 -0
  29. package/src/lib/components/input/currency/index.tsx +17 -1
  30. package/src/lib/components/modal/bottomModal/index.tsx +5 -1
  31. package/src/lib/components/modal/bottomModal/style.module.scss +0 -1
  32. package/src/lib/components/modal/index.ts +1 -1
  33. package/src/lib/components/modal/regularModal/index.tsx +6 -2
  34. package/src/lib/components/modal/regularModal/style.module.scss +0 -1
  35. package/src/lib/scss/private/components/_buttons.scss +5 -0
  36. package/src/lib/scss/private/components/button.stories.mdx +16 -0
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type ButtonType = 'primary' | 'secondary' | 'outline' | 'outlineGrey';
2
+ declare type ButtonType = 'primary' | 'secondary' | 'secondaryGrey' | 'outline' | 'outlineGrey';
3
3
  interface Icon {
4
4
  src: string;
5
5
  alt: string;
@@ -3,7 +3,7 @@ import BottomModal from './bottomModal';
3
3
  import RegularModal from './regularModal';
4
4
  import BottomOrRegularModal from './bottomOrRegularModal';
5
5
  export interface Props {
6
- title: string;
6
+ title?: string;
7
7
  isOpen: boolean;
8
8
  children: React.ReactNode;
9
9
  onClose: () => void;
@@ -2029,7 +2029,7 @@ var AutoCompleteAddress = function (_a) {
2029
2029
  _b)) }, { children: [jsx("div", { className: styles.map, id: "map" }, void 0),
2030
2030
  isLoading && (jsx("div", __assign({ className: styles['loading-spinner'] }, { children: jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
2031
2031
  jsx("div", __assign({ className: "wmx8" }, { children: manualAddressEntry === false ? (jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsx(Input, { className: "w100", id: "autocomplete", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.manualAddressEntry) || 'Search for address', ref: autocompleteElement }, "autocomplete-search"),
2032
- hasLoadedGoogleAPI === false && (jsx("div", __assign({ className: styles['loading-spinner'] }, { children: jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxs(Fragment, { children: [jsxs("div", __assign({ className: "d-flex c-gap16 " + styles['input-line'] }, { children: [jsx(Input, { className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: function (e) {
2032
+ hasLoadedGoogleAPI === false && (jsx("div", __assign({ "data-cy": "google-api-loader", className: styles['loading-spinner'] }, { children: jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxs(Fragment, { children: [jsxs("div", __assign({ className: "d-flex c-gap16 " + styles['input-line'] }, { children: [jsx(Input, { className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: function (e) {
2033
2033
  var newAddress = __assign(__assign({}, address), { street: e.target.value, country: GERMANY_ALPHA_CODE });
2034
2034
  setAddress(newAddress);
2035
2035
  debouncedSetPlace(newAddress);