@layers-app/shared 0.2.8-test → 0.3.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.
Files changed (121) hide show
  1. package/dist/api/giphy/slice.d.ts +1 -1
  2. package/dist/api/giphy/slice.d.ts.map +1 -1
  3. package/dist/api/unsplash/slice.d.ts +1 -1
  4. package/dist/api/unsplash/slice.d.ts.map +1 -1
  5. package/dist/assets/layers-logo-icon.svg2.js +4 -0
  6. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  7. package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
  8. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  9. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +123 -114
  11. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  12. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  13. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  14. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
  15. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  16. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  17. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  18. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  19. package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
  20. package/dist/components/CommunitiesDialog/index.js +47 -46
  21. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  22. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  23. package/dist/components/Copyright/index.d.ts.map +1 -1
  24. package/dist/components/Copyright/index.js +8 -7
  25. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  26. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  27. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  28. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  29. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  30. package/dist/components/FilePicker/FilePicker.d.ts +2 -4
  31. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  32. package/dist/components/FilePicker/FilePicker.js +236 -247
  33. package/dist/components/FilePicker/FilePicker.module.css.js +10 -12
  34. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  35. package/dist/components/FilePicker/FilePickerGallery.js +33 -59
  36. package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
  37. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  38. package/dist/components/FilePicker/FilePickerGiphy.js +51 -52
  39. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  40. package/dist/components/FilePicker/FilePickerLink.js +19 -22
  41. package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
  42. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  43. package/dist/components/FilePicker/FilePickerUnsplash.js +64 -65
  44. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  45. package/dist/components/FilePicker/FilePickerUpload.js +35 -51
  46. package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
  47. package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
  48. package/dist/components/FilePicker/api/giphyApi.js +11 -14
  49. package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
  50. package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
  51. package/dist/components/FilePicker/api/unsplashApi.js +14 -19
  52. package/dist/components/FilePicker/index.d.ts +0 -1
  53. package/dist/components/FilePicker/index.d.ts.map +1 -1
  54. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  55. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  56. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  57. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  58. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
  59. package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
  60. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  61. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  62. package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
  63. package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
  64. package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
  65. package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
  66. package/dist/components/FormViewer/helpers/steps.js +22 -21
  67. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
  68. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
  69. package/dist/components/FormViewer/store/formStore.d.ts +357 -357
  70. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  71. package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
  72. package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
  73. package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
  74. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  75. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  76. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  77. package/dist/components/Loaders/styles.module.css.js +6 -6
  78. package/dist/components/Logotype.d.ts +4 -3
  79. package/dist/components/Logotype.d.ts.map +1 -1
  80. package/dist/components/Logotype.js +56 -33
  81. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  82. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  83. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  84. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  85. package/dist/components/Notification/Notification.module.css.js +1 -1
  86. package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
  87. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  88. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  89. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  90. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  91. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  92. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  93. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +10 -10
  94. package/dist/components/table/FrontTable.d.ts.map +1 -1
  95. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  96. package/dist/config/brand.d.ts +48 -0
  97. package/dist/config/brand.d.ts.map +1 -0
  98. package/dist/config/brand.js +69 -0
  99. package/dist/config/envConfig.d.ts +70 -0
  100. package/dist/config/envConfig.d.ts.map +1 -0
  101. package/dist/config/envConfig.js +29 -0
  102. package/dist/constants.d.ts +1 -1
  103. package/dist/constants.d.ts.map +1 -1
  104. package/dist/constants.js +7 -6
  105. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  106. package/dist/helpers/showNotifications.module.css.js +1 -1
  107. package/dist/hooks/useDisableWindowScroll.js +3 -3
  108. package/dist/index.css +1 -1
  109. package/dist/index.d.ts +2 -0
  110. package/dist/index.d.ts.map +1 -1
  111. package/dist/index.js +429 -423
  112. package/dist/lang/locales/ui_en.json.js +15 -15
  113. package/dist/lang/locales/ui_es.json.js +13 -13
  114. package/dist/lang/locales/ui_ru.json.js +12 -12
  115. package/docs/README.md +499 -499
  116. package/package.json +75 -75
  117. package/dist/assets/svg/default_icon.svg.js +0 -4
  118. package/dist/components/FilePicker/coverCollections.d.ts +0 -4
  119. package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
  120. package/dist/components/FilePicker/coverCollections.js +0 -164
  121. /package/dist/assets/{svg/layers-logo-full.svg.js → layers-logo-full.svg2.js} +0 -0
@@ -1,29 +1,24 @@
1
1
  import { useQuery as i } from "@tanstack/react-query";
2
- import p from "query-string";
3
- const u = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", c = async (t, e, o) => {
4
- const h = t.query ? "/search/photos" : "/photos", n = await fetch(
5
- `https://api.unsplash.com${h}?${p.stringify(t)}`,
6
- {
7
- headers: {
8
- Authorization: `Client-ID ${e || u}`
9
- }
10
- }
2
+ import c from "query-string";
3
+ const l = async (t, a, e) => {
4
+ const h = t.query ? "/search/photos" : "/photos", o = await fetch(
5
+ `/v1/media/unsplash${h}?${c.stringify(t)}`
11
6
  );
12
- if (!n.ok)
7
+ if (!o.ok)
13
8
  throw new Error("Failed to fetch Unsplash photos");
14
- const s = await n.json(), r = s && "results" in s ? s.results : s, a = s && "total_pages" in s ? s.total_pages : 999;
9
+ const s = await o.json(), n = s && "results" in s ? s.results : s, r = s && "total_pages" in s ? s.total_pages : 999;
15
10
  return {
16
- items: o ? [...o.items, ...r] : r,
11
+ items: e ? [...e.items, ...n] : n,
17
12
  page: t.page || 1,
18
- totalPages: a,
19
- hasMore: a > (t.page || 1)
13
+ totalPages: r,
14
+ hasMore: r > (t.page || 1)
20
15
  };
21
- }, f = (t, e, o) => i({
16
+ }, y = (t, a, e) => i({
22
17
  queryKey: ["unsplashPhotos", t],
23
- queryFn: () => c(t, e),
24
- ...o
18
+ queryFn: () => l(t),
19
+ ...e
25
20
  });
26
21
  export {
27
- c as fetchUnsplashPhotos,
28
- f as useUnsplashPhotos
22
+ l as fetchUnsplashPhotos,
23
+ y as useUnsplashPhotos
29
24
  };
@@ -1,3 +1,2 @@
1
- export * from './coverCollections';
2
1
  export * from './FilePicker';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilePicker/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- const t = "_themeProvider_1fk4v_1", o = "_root_1fk4v_13", e = "_container_1fk4v_71", n = "_media_1fk4v_83", _ = "_background_1fk4v_91", s = "_stepRoot_1fk4v_117", c = "_content_1fk4v_207", i = "_mediaInner_1fk4v_337", a = "_stepTitle_1fk4v_663", r = "_stepDescription_1fk4v_709", d = "_stepIndicator_1fk4v_737", p = "_stepIndicatorIcon_1fk4v_771", l = "_focusBox_1fk4v_809", f = "_dropzone_1fk4v_827", k = "_allSlidesLayout_1fk4v_863", v = "_allSlidesLayoutStep_1fk4v_875", u = {
1
+ const t = "_themeProvider_1lm79_1", o = "_root_1lm79_7", e = "_container_1lm79_36", n = "_media_1lm79_42", _ = "_background_1lm79_46", s = "_stepRoot_1lm79_59", c = "_content_1lm79_104", l = "_mediaInner_1lm79_169", i = "_stepTitle_1lm79_332", a = "_stepDescription_1lm79_355", r = "_stepIndicator_1lm79_369", d = "_stepIndicatorIcon_1lm79_386", m = "_focusBox_1lm79_405", p = "_dropzone_1lm79_414", u = "_allSlidesLayout_1lm79_432", I = "_allSlidesLayoutStep_1lm79_438", S = {
2
2
  themeProvider: t,
3
3
  root: o,
4
4
  container: e,
@@ -6,32 +6,32 @@ const t = "_themeProvider_1fk4v_1", o = "_root_1fk4v_13", e = "_container_1fk4v_
6
6
  background: _,
7
7
  stepRoot: s,
8
8
  content: c,
9
- mediaInner: i,
10
- stepTitle: a,
11
- stepDescription: r,
12
- stepIndicator: d,
13
- stepIndicatorIcon: p,
14
- focusBox: l,
15
- dropzone: f,
16
- allSlidesLayout: k,
17
- allSlidesLayoutStep: v
9
+ mediaInner: l,
10
+ stepTitle: i,
11
+ stepDescription: a,
12
+ stepIndicator: r,
13
+ stepIndicatorIcon: d,
14
+ focusBox: m,
15
+ dropzone: p,
16
+ allSlidesLayout: u,
17
+ allSlidesLayoutStep: I
18
18
  };
19
19
  export {
20
- k as allSlidesLayout,
21
- v as allSlidesLayoutStep,
20
+ u as allSlidesLayout,
21
+ I as allSlidesLayoutStep,
22
22
  _ as background,
23
23
  e as container,
24
24
  c as content,
25
- u as default,
26
- f as dropzone,
27
- l as focusBox,
25
+ S as default,
26
+ p as dropzone,
27
+ m as focusBox,
28
28
  n as media,
29
- i as mediaInner,
29
+ l as mediaInner,
30
30
  o as root,
31
- r as stepDescription,
32
- d as stepIndicator,
33
- p as stepIndicatorIcon,
31
+ a as stepDescription,
32
+ r as stepIndicator,
33
+ d as stepIndicatorIcon,
34
34
  s as stepRoot,
35
- a as stepTitle,
35
+ i as stepTitle,
36
36
  t as themeProvider
37
37
  };
@@ -1,4 +1,4 @@
1
- const s = "_dragOptions_8pbru_1", t = {
1
+ const s = "_dragOptions_gdwk6_1", t = {
2
2
  dragOptions: s
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_optionsContainer_19qy4_1", n = {
1
+ const o = "_optionsContainer_1xro2_1", n = {
2
2
  optionsContainer: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const t = "_editableContent_14jzv_1", e = {
1
+ const t = "_editableContent_a0zig_1", e = {
2
2
  editableContent: t
3
3
  };
4
4
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"PictureSelectableCard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAYzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAQ1E,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,qBAAqB,+IAa7B,0BAA0B,6CAsI9B,CAAC;AAeF,eAAO,MAAM,uBAAuB,GAAI,uDAMrC,iBAAiB,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC,4CAsBD,CAAC"}
1
+ {"version":3,"file":"PictureSelectableCard.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,OAAO,CAAC;AAYzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAM1E,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC;AAEF,eAAO,MAAM,qBAAqB,+IAa7B,0BAA0B,6CAsI9B,CAAC;AAeF,eAAO,MAAM,uBAAuB,GAAI,uDAMrC,iBAAiB,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,YAAY,EAAE,EACrB,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,KAChC,IAAI,CAAC;CACX,CAAC,4CAoBD,CAAC"}
@@ -1,47 +1,47 @@
1
- import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
- import { memo as L, useMemo as N } from "react";
3
- import { useMantineTheme as _, parseThemeColor as x, Radio as z, alpha as p, Checkbox as P, Flex as A, ActionIcon as D } from "@mantine/core";
4
- import { IconTrash as w, IconPhoto as B } from "@tabler/icons-react";
5
- import { useAsyncStatus as H } from "../../../../../hooks/useAsyncStatus.js";
6
- import { combineClasses as h, STATIC_CLASSES as a } from "../../../helpers/staticClasses.js";
1
+ import { jsx as o, jsxs as p } from "react/jsx-runtime";
2
+ import { memo as x, useMemo as _ } from "react";
3
+ import { useMantineTheme as k, parseThemeColor as z, Radio as N, alpha as h, Checkbox as P, Flex as A, ActionIcon as D } from "@mantine/core";
4
+ import { IconTrash as H, IconPhoto as B } from "@tabler/icons-react";
5
+ import { useAsyncStatus as w } from "../../../../../hooks/useAsyncStatus.js";
6
+ import { combineClasses as I, STATIC_CLASSES as s } from "../../../helpers/staticClasses.js";
7
7
  import { useFormViewerStore as K } from "../../../store/formStore.js";
8
- import { EditableContent as R } from "../EditableContent/EditableContent.js";
8
+ import { EditableContent as M } from "../EditableContent/EditableContent.js";
9
9
  import u from "./SelectableCard.module.css.js";
10
- import { FilePicker as M } from "../../../../FilePicker/FilePicker.js";
11
- const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGGw0zERUSw0knTNr", oo = L(
10
+ import { FilePicker as X } from "../../../../FilePicker/FilePicker.js";
11
+ const Y = x(
12
12
  ({
13
13
  label: i,
14
14
  active: r,
15
- disabled: n,
15
+ disabled: c,
16
16
  hasInput: C,
17
17
  image: t,
18
18
  onClick: E,
19
- inputType: c,
19
+ inputType: n,
20
20
  onUpdate: e,
21
21
  onRemove: m,
22
- theme: l,
23
- onUpload: O
22
+ theme: a,
23
+ onUpload: S
24
24
  }) => {
25
- const { useStore: S } = K(), b = S((d) => d.editing), f = _(), s = x({
26
- color: l?.primaryColor || "",
27
- theme: f
28
- }), k = N(() => c === "radio" ? /* @__PURE__ */ o(
29
- z,
25
+ const { useStore: f } = K(), y = f((d) => d.editing), T = k(), l = z({
26
+ color: a?.primaryColor || "",
27
+ theme: T
28
+ }), b = _(() => n === "radio" ? /* @__PURE__ */ o(
29
+ N,
30
30
  {
31
31
  style: {
32
- "--color": s.value,
33
- "--color-shadow": p(s.value, 0.5)
32
+ "--color": l.value,
33
+ "--color-shadow": h(l.value, 0.5)
34
34
  },
35
35
  classNames: {
36
- radio: h(
36
+ radio: I(
37
37
  u.radio,
38
- a.RADIO,
39
- r ? a.RADIO_SELECTED : ""
38
+ s.RADIO,
39
+ r ? s.RADIO_SELECTED : ""
40
40
  )
41
41
  },
42
- disabled: n,
43
- size: l?.size,
44
- color: l?.primaryColor,
42
+ disabled: c,
43
+ size: a?.size,
44
+ color: a?.primaryColor,
45
45
  checked: r,
46
46
  readOnly: !0,
47
47
  radius: "xl"
@@ -51,64 +51,64 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
51
51
  {
52
52
  styles: {
53
53
  input: {
54
- "--color": s.value,
55
- "--color-shadow": p(s.value, 0.5)
54
+ "--color": l.value,
55
+ "--color-shadow": h(l.value, 0.5)
56
56
  }
57
57
  },
58
58
  classNames: {
59
- input: h(
59
+ input: I(
60
60
  u.checkbox,
61
- a.CHECKBOX,
62
- r ? a.CHECKBOX_SELECTED : ""
61
+ s.CHECKBOX,
62
+ r ? s.CHECKBOX_SELECTED : ""
63
63
  )
64
64
  },
65
- disabled: n,
66
- size: l?.size,
67
- color: l?.primaryColor,
65
+ disabled: c,
66
+ size: a?.size,
67
+ color: a?.primaryColor,
68
68
  checked: r,
69
69
  readOnly: !0
70
70
  }
71
71
  ), [
72
72
  r,
73
- s.value,
74
- n,
73
+ l.value,
75
74
  c,
76
- l?.primaryColor,
77
- l?.size
78
- ]), y = {
79
- "--text-color": s.value,
80
- "--border-color": s.value,
81
- "--bg-color": p(s.value, 0.05)
82
- }, g = e || m, v = h(
75
+ n,
76
+ a?.primaryColor,
77
+ a?.size
78
+ ]), v = {
79
+ "--text-color": l.value,
80
+ "--border-color": l.value,
81
+ "--bg-color": h(l.value, 0.05)
82
+ }, O = e || m, L = I(
83
83
  u.card,
84
- c === "radio" ? a.MULTIPLE_CHOICE_OPTION : a.CHECKBOX,
85
- r ? c === "radio" ? a.MULTIPLE_CHOICE_OPTION_SELECTED : a.CHECKBOX_SELECTED : ""
84
+ n === "radio" ? s.MULTIPLE_CHOICE_OPTION : s.CHECKBOX,
85
+ r ? n === "radio" ? s.MULTIPLE_CHOICE_OPTION_SELECTED : s.CHECKBOX_SELECTED : ""
86
86
  );
87
- return /* @__PURE__ */ I(
87
+ return /* @__PURE__ */ p(
88
88
  "div",
89
89
  {
90
- style: y,
91
- className: v,
90
+ style: v,
91
+ className: L,
92
92
  "data-active": r,
93
- "data-disabled": n,
94
- onClick: g ? void 0 : E,
95
- "data-radius": l?.borderRadius,
93
+ "data-disabled": c,
94
+ onClick: O ? void 0 : E,
95
+ "data-radius": a?.borderRadius,
96
96
  children: [
97
- b ? /* @__PURE__ */ o(
98
- j,
97
+ y ? /* @__PURE__ */ o(
98
+ F,
99
99
  {
100
100
  hasImage: !!t,
101
101
  onUpdate: (d) => e?.({ image: d.image }),
102
102
  onRemove: () => e?.({ image: void 0 }),
103
- onUpload: O,
104
- children: /* @__PURE__ */ o(T, { image: t })
103
+ onUpload: S,
104
+ children: /* @__PURE__ */ o(g, { image: t })
105
105
  }
106
- ) : /* @__PURE__ */ o(T, { image: t }),
107
- /* @__PURE__ */ I("div", { className: u.controls, children: [
108
- C && k,
109
- g ? /* @__PURE__ */ I(A, { miw: 0, flex: 1, children: [
106
+ ) : /* @__PURE__ */ o(g, { image: t }),
107
+ /* @__PURE__ */ p("div", { className: u.controls, children: [
108
+ C && b,
109
+ O ? /* @__PURE__ */ p(A, { miw: 0, flex: 1, children: [
110
110
  e && /* @__PURE__ */ o(
111
- R,
111
+ M,
112
112
  {
113
113
  value: i,
114
114
  placeholder: "Option",
@@ -117,14 +117,14 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
117
117
  }
118
118
  }
119
119
  ),
120
- m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(w, { size: "1em" }) })
120
+ m && /* @__PURE__ */ o(D, { color: "red", variant: "subtle", onClick: m, children: /* @__PURE__ */ o(H, { size: "1em" }) })
121
121
  ] }) : i
122
122
  ] })
123
123
  ]
124
124
  }
125
125
  );
126
126
  }
127
- ), T = ({ image: i }) => /* @__PURE__ */ o(
127
+ ), g = ({ image: i }) => /* @__PURE__ */ o(
128
128
  "div",
129
129
  {
130
130
  className: u.image,
@@ -133,31 +133,29 @@ const X = "a2SNktIFgNCvXITBZgpup1T8mtSdJIM6TIZlndbRuRg", F = "1kKxu8nbV5rsb4ieGG
133
133
  },
134
134
  children: !i && /* @__PURE__ */ o(B, { size: 32, color: "var(--primary-color)" })
135
135
  }
136
- ), j = ({
136
+ ), F = ({
137
137
  children: i,
138
138
  onUpdate: r,
139
- onRemove: n,
139
+ onRemove: c,
140
140
  hasImage: C,
141
141
  onUpload: t
142
142
  }) => {
143
- const { isLoading: E, onSubmit: c } = H();
143
+ const { isLoading: E, onSubmit: n } = w();
144
144
  return /* @__PURE__ */ o(
145
- M,
145
+ X,
146
146
  {
147
147
  hasImage: C,
148
148
  onChange: (e) => r?.({
149
149
  image: e
150
150
  }),
151
- unsplashClientId: X,
152
- giphyToken: F,
153
- onRemove: n,
154
- onUpload: (e, m) => c(async () => t?.(e, m)),
151
+ onRemove: c,
152
+ onUpload: (e, m) => n(async () => t?.(e, m)),
155
153
  uploading: E,
156
154
  children: i
157
155
  }
158
156
  );
159
157
  };
160
158
  export {
161
- oo as PictureSelectableCard,
162
- j as UploadOptionImageButton
159
+ Y as PictureSelectableCard,
160
+ F as UploadOptionImageButton
163
161
  };
@@ -1,15 +1,15 @@
1
- const o = "_card_18zj4_1", c = "_image_18zj4_95", _ = "_controls_18zj4_119", s = "_radio_18zj4_163", t = "_checkbox_18zj4_173", a = {
1
+ const o = "_card_aspur_1", c = "_image_aspur_48", s = "_controls_aspur_60", a = "_radio_aspur_82", r = "_checkbox_aspur_87", _ = {
2
2
  card: o,
3
3
  image: c,
4
- controls: _,
5
- radio: s,
6
- checkbox: t
4
+ controls: s,
5
+ radio: a,
6
+ checkbox: r
7
7
  };
8
8
  export {
9
9
  o as card,
10
- t as checkbox,
11
- _ as controls,
12
- a as default,
10
+ r as checkbox,
11
+ s as controls,
12
+ _ as default,
13
13
  c as image,
14
- s as radio
14
+ a as radio
15
15
  };
@@ -1,7 +1,7 @@
1
- const e = "_image_jcfli_1", a = {
2
- image: e
1
+ const a = "_image_1om5a_1", e = {
2
+ image: a
3
3
  };
4
4
  export {
5
- a as default,
6
- e as image
5
+ e as default,
6
+ a as image
7
7
  };