@0610studio/zs-ui 0.0.13 → 0.0.15

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 (77) hide show
  1. package/build/index.d.ts +2 -1
  2. package/build/index.d.ts.map +1 -1
  3. package/build/index.js +4 -1
  4. package/build/index.js.map +1 -1
  5. package/build/model/index.d.ts +4 -0
  6. package/build/model/index.d.ts.map +1 -0
  7. package/build/model/index.js +4 -0
  8. package/build/model/index.js.map +1 -0
  9. package/build/types/index.d.ts +9 -0
  10. package/build/types/index.d.ts.map +1 -0
  11. package/build/types/index.js +2 -0
  12. package/build/types/index.js.map +1 -0
  13. package/package.json +6 -1
  14. package/.eslintrc.js +0 -5
  15. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  16. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  17. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  18. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  19. package/android/.gradle/8.9/gc.properties +0 -0
  20. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  21. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  22. package/android/.gradle/vcs-1/gc.properties +0 -0
  23. package/android/build.gradle +0 -43
  24. package/android/src/main/AndroidManifest.xml +0 -2
  25. package/android/src/main/java/kr/co/studio0610/zsui/ZsUiModule.kt +0 -47
  26. package/android/src/main/java/kr/co/studio0610/zsui/ZsUiView.kt +0 -7
  27. package/expo-module.config.json +0 -9
  28. package/ios/ZsUi.podspec +0 -27
  29. package/ios/ZsUiModule.swift +0 -44
  30. package/ios/ZsUiView.swift +0 -7
  31. package/src/ZsUi.types.ts +0 -7
  32. package/src/ZsUiModule.ts +0 -5
  33. package/src/ZsUiModule.web.ts +0 -13
  34. package/src/ZsUiView.tsx +0 -11
  35. package/src/ZsUiView.web.tsx +0 -11
  36. package/src/assets/SvgCheck.tsx +0 -16
  37. package/src/assets/SvgX.tsx +0 -22
  38. package/src/index.ts +0 -52
  39. package/src/model/types.ts +0 -104
  40. package/src/model/useNotify.ts +0 -14
  41. package/src/model/useNotifyProvider.tsx +0 -259
  42. package/src/model/useThemeProvider.tsx +0 -99
  43. package/src/model/utils.ts +0 -31
  44. package/src/notify/AlertNotify/index.tsx +0 -172
  45. package/src/notify/BottomSheetNotify/index.tsx +0 -177
  46. package/src/notify/BottomSheetNotify/model/useBottomSheetNotify.tsx +0 -270
  47. package/src/notify/BottomSheetNotify/types/index.ts +0 -3
  48. package/src/notify/BottomSheetNotify/ui/BSTextInput/index.tsx +0 -28
  49. package/src/notify/BottomSheetNotify/ui/ContentsComponent/index.tsx +0 -86
  50. package/src/notify/LoadingNotify/index.tsx +0 -46
  51. package/src/notify/PopOver/PopOverButton.tsx +0 -56
  52. package/src/notify/PopOver/PopOverMenu.tsx +0 -95
  53. package/src/notify/SnackbarNotify/index.tsx +0 -43
  54. package/src/notify/SnackbarNotify/ui/SnackbarItem.tsx +0 -103
  55. package/src/notify/index.ts +0 -21
  56. package/src/notify/ui/ModalBackground.tsx +0 -46
  57. package/src/theme/index.ts +0 -3
  58. package/src/theme/palette.ts +0 -384
  59. package/src/theme/types.ts +0 -170
  60. package/src/theme/typography.ts +0 -199
  61. package/src/ui/ThrottleButton/index.tsx +0 -119
  62. package/src/ui/ZSBottomButton/index.tsx +0 -151
  63. package/src/ui/ZSContainer/index.tsx +0 -92
  64. package/src/ui/ZSPressable/index.tsx +0 -82
  65. package/src/ui/ZSRadioGroup/index.tsx +0 -141
  66. package/src/ui/ZSText/index.tsx +0 -22
  67. package/src/ui/ZSTextField/index.tsx +0 -200
  68. package/src/ui/ZSTextField/ui/ButtonClose.tsx +0 -20
  69. package/src/ui/ZSTextField/ui/ErrorComponent.tsx +0 -25
  70. package/src/ui/ZSView/index.tsx +0 -30
  71. package/src/ui/atoms/AnimatedWrapper.tsx +0 -90
  72. package/src/ui/atoms/ScrollViewAtom.tsx +0 -17
  73. package/src/ui/atoms/TextAtom.tsx +0 -15
  74. package/src/ui/atoms/ViewAtom.tsx +0 -15
  75. package/src/ui/index.ts +0 -27
  76. package/src/ui/types.ts +0 -12
  77. package/tsconfig.json +0 -9
package/build/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { useTheme, NotifyProvider, ThemeProvider } from './model';
1
2
  import { ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton, types as uiTypes } from './ui';
2
3
  import { AlertNotify, BottomSheetNotify, SnackbarNotify, useNotifyProvider, useNotify, BSTextInput, PopOverButton, PopOverMenu, types as notifyTypes } from './notify';
3
- export { ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton, AlertNotify, BottomSheetNotify, SnackbarNotify, useNotifyProvider, useNotify, BSTextInput, PopOverButton, PopOverMenu, uiTypes, // UI 관련 타입
4
+ export { useTheme, NotifyProvider, ThemeProvider, ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton, AlertNotify, BottomSheetNotify, SnackbarNotify, useNotifyProvider, useNotify, BSTextInput, PopOverButton, PopOverMenu, uiTypes, // UI 관련 타입
4
5
  notifyTypes };
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,KAAK,IAAI,OAAO,EACjB,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,KAAK,IAAI,WAAW,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EAEd,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EAEX,OAAO,EAAO,WAAW;AACzB,WAAW,EACZ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,KAAK,IAAI,OAAO,EACjB,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,KAAK,IAAI,WAAW,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa,EAEb,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EAEd,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EAEX,OAAO,EAAO,WAAW;AACzB,WAAW,EACZ,CAAC"}
package/build/index.js CHANGED
@@ -1,6 +1,9 @@
1
+ import { useTheme, NotifyProvider, ThemeProvider, } from './model';
1
2
  import { ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton, types as uiTypes } from './ui';
2
3
  import { AlertNotify, BottomSheetNotify, SnackbarNotify, useNotifyProvider, useNotify, BSTextInput, PopOverButton, PopOverMenu, types as notifyTypes } from './notify';
3
- export { ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton,
4
+ export { useTheme, NotifyProvider, ThemeProvider,
5
+ // ---
6
+ ZSView, AnimatedWrapper, TextAtom, ScrollViewAtom, ZSContainer, ZSPressable, ZSText, ThrottleButton, ZSTextField, ZSRadioGroup, ZSBottomButton,
4
7
  // ---
5
8
  AlertNotify, BottomSheetNotify, SnackbarNotify, useNotifyProvider, useNotify, BSTextInput, PopOverButton, PopOverMenu,
6
9
  // ---
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,KAAK,IAAI,OAAO,EACjB,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,KAAK,IAAI,WAAW,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc;AACd,MAAM;AACN,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW;AACX,MAAM;AACN,OAAO,EAAO,WAAW;AACzB,WAAW,CAAG,eAAe;EAC9B,CAAC","sourcesContent":["import { \n ZSView,\n AnimatedWrapper,\n TextAtom,\n ScrollViewAtom,\n ZSContainer,\n ZSPressable,\n ZSText,\n ThrottleButton,\n ZSTextField,\n ZSRadioGroup,\n ZSBottomButton,\n types as uiTypes \n} from './ui';\n\nimport { \n AlertNotify, \n BottomSheetNotify, \n SnackbarNotify, \n useNotifyProvider, \n useNotify,\n BSTextInput,\n PopOverButton,\n PopOverMenu,\n types as notifyTypes \n} from './notify';\n\nexport {\n ZSView,\n AnimatedWrapper,\n TextAtom,\n ScrollViewAtom,\n ZSContainer,\n ZSPressable,\n ZSText,\n ThrottleButton,\n ZSTextField,\n ZSRadioGroup,\n ZSBottomButton,\n // ---\n AlertNotify, \n BottomSheetNotify, \n SnackbarNotify, \n useNotifyProvider, \n useNotify, \n BSTextInput,\n PopOverButton,\n PopOverMenu,\n // ---\n uiTypes, // UI 관련 타입\n notifyTypes // Notify 관련 타입\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa,GACd,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,KAAK,IAAI,OAAO,EACjB,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW,EACX,KAAK,IAAI,WAAW,EACrB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa;AACb,MAAM;AACN,MAAM,EACN,eAAe,EACf,QAAQ,EACR,cAAc,EACd,WAAW,EACX,WAAW,EACX,MAAM,EACN,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc;AACd,MAAM;AACN,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,aAAa,EACb,WAAW;AACX,MAAM;AACN,OAAO,EAAO,WAAW;AACzB,WAAW,CAAG,eAAe;EAC9B,CAAC","sourcesContent":["import {\n useTheme,\n NotifyProvider,\n ThemeProvider,\n} from './model'\n\nimport { \n ZSView,\n AnimatedWrapper,\n TextAtom,\n ScrollViewAtom,\n ZSContainer,\n ZSPressable,\n ZSText,\n ThrottleButton,\n ZSTextField,\n ZSRadioGroup,\n ZSBottomButton,\n types as uiTypes \n} from './ui';\n\nimport { \n AlertNotify, \n BottomSheetNotify, \n SnackbarNotify, \n useNotifyProvider, \n useNotify,\n BSTextInput,\n PopOverButton,\n PopOverMenu,\n types as notifyTypes \n} from './notify';\n\nexport {\n useTheme,\n NotifyProvider,\n ThemeProvider,\n // ---\n ZSView,\n AnimatedWrapper,\n TextAtom,\n ScrollViewAtom,\n ZSContainer,\n ZSPressable,\n ZSText,\n ThrottleButton,\n ZSTextField,\n ZSRadioGroup,\n ZSBottomButton,\n // ---\n AlertNotify, \n BottomSheetNotify, \n SnackbarNotify, \n useNotifyProvider, \n useNotify, \n BSTextInput,\n PopOverButton,\n PopOverMenu,\n // ---\n uiTypes, // UI 관련 타입\n notifyTypes // Notify 관련 타입\n};\n"]}
@@ -0,0 +1,4 @@
1
+ import { NotifyProvider } from "./useNotifyProvider";
2
+ import { ThemeProvider, useTheme } from "./useThemeProvider";
3
+ export { useTheme, NotifyProvider, ThemeProvider, };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa,GACd,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { NotifyProvider } from "./useNotifyProvider";
2
+ import { ThemeProvider, useTheme } from "./useThemeProvider";
3
+ export { useTheme, NotifyProvider, ThemeProvider, };
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,QAAQ,EACR,cAAc,EACd,aAAa,GACd,CAAA","sourcesContent":["import { NotifyProvider } from \"./useNotifyProvider\"; \nimport { ThemeProvider, useTheme } from \"./useThemeProvider\";\n\nexport {\n useTheme,\n NotifyProvider,\n ThemeProvider,\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import { BottomSheetNotifyRef } from "../notify/BottomSheetNotify/types";
2
+ import { ThemeProviderProps, ThemeProps, Palette } from "../model/useThemeProvider";
3
+ import { ZSTextProps } from "../ui/ZSText";
4
+ import { BoxStyle } from "../ui/ZSTextField";
5
+ import { ColorPalette, ColorPaletteExtend, ThemeTextType, ThemeBorderType, ThemeBackground, MainColors, Theme, TypographyVariants, ThemeFonts, TypoNumber, TypographyVariantsProps, TypoStyle, TypoOptions, TypoSubStyle, TextColorOptions } from "../theme/types";
6
+ import { SnackItem, ShowAlertProps, ShowSnackBarProps, ShowBottomSheetProps, PopOverMenuProps, CustomSnackbarProps, NotifyProviderProps, AlertAction, AlertActions, SnackType, HideOption, BottomSheetRef } from "../model/types";
7
+ import { RadioOption, ShadowLevel, ShadowStyle } from "../ui/types";
8
+ export type { BottomSheetNotifyRef, ThemeProviderProps, ThemeProps, Palette, ZSTextProps, BoxStyle, ColorPalette, ColorPaletteExtend, ThemeTextType, ThemeBorderType, ThemeBackground, MainColors, Theme, TypographyVariants, ThemeFonts, TypoNumber, TypographyVariantsProps, TypoStyle, TypoOptions, TypoSubStyle, TextColorOptions, SnackItem, ShowAlertProps, ShowSnackBarProps, ShowBottomSheetProps, PopOverMenuProps, CustomSnackbarProps, NotifyProviderProps, AlertAction, AlertActions, SnackType, HideOption, BottomSheetRef, RadioOption, ShadowLevel, ShadowStyle };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,OAAO,EACR,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EACV,KAAK,EACL,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,uBAAuB,EACvB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,cAAc,EACd,WAAW,EACX,WAAW,EACX,WAAW,EACZ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"","sourcesContent":["import { BottomSheetNotifyRef } from \"../notify/BottomSheetNotify/types\";\nimport {\n ThemeProviderProps,\n ThemeProps,\n Palette,\n} from \"../model/useThemeProvider\";\nimport { ZSTextProps } from \"../ui/ZSText\";\nimport { BoxStyle } from \"../ui/ZSTextField\";\nimport {\n ColorPalette,\n ColorPaletteExtend,\n ThemeTextType,\n ThemeBorderType,\n ThemeBackground,\n MainColors,\n Theme,\n TypographyVariants,\n ThemeFonts,\n TypoNumber,\n TypographyVariantsProps,\n TypoStyle,\n TypoOptions,\n TypoSubStyle,\n TextColorOptions\n} from \"../theme/types\";\nimport {\n SnackItem,\n ShowAlertProps,\n ShowSnackBarProps,\n ShowBottomSheetProps,\n PopOverMenuProps,\n CustomSnackbarProps,\n NotifyProviderProps,\n AlertAction,\n AlertActions,\n SnackType,\n HideOption,\n BottomSheetRef\n} from \"../model/types\";\nimport {\n RadioOption,\n ShadowLevel,\n ShadowStyle,\n} from \"../ui/types\";\n\nexport type {\n BottomSheetNotifyRef,\n ThemeProviderProps,\n ThemeProps,\n Palette,\n ZSTextProps,\n BoxStyle,\n ColorPalette,\n ColorPaletteExtend,\n ThemeTextType,\n ThemeBorderType,\n ThemeBackground,\n MainColors,\n Theme,\n TypographyVariants,\n ThemeFonts,\n TypoNumber,\n TypographyVariantsProps,\n TypoStyle,\n TypoOptions,\n TypoSubStyle,\n TextColorOptions,\n SnackItem,\n ShowAlertProps,\n ShowSnackBarProps,\n ShowBottomSheetProps,\n PopOverMenuProps,\n CustomSnackbarProps,\n NotifyProviderProps,\n AlertAction,\n AlertActions,\n SnackType,\n HideOption,\n BottomSheetRef,\n RadioOption,\n ShadowLevel,\n ShadowStyle\n};\n"]}
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "@0610studio/zs-ui",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "description": "EXPO ZS-UI",
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "types": "build/index.d.ts",
9
+ "files": [
10
+ "build/**/*",
11
+ "types/index.js",
12
+ "types/index.d.ts"
13
+ ],
9
14
  "scripts": {
10
15
  "start:android": "cd example && yarn install && npx expo run:android",
11
16
  "build": "expo-module build",
package/.eslintrc.js DELETED
@@ -1,5 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['universe/native', 'universe/web'],
4
- ignorePatterns: ['build'],
5
- };
File without changes
@@ -1,2 +0,0 @@
1
- #Tue Oct 22 20:15:01 KST 2024
2
- gradle.version=8.9
File without changes
@@ -1,43 +0,0 @@
1
- apply plugin: 'com.android.library'
2
-
3
- group = 'kr.co.studio0610.zsui'
4
- version = '0.1.0'
5
-
6
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
- apply from: expoModulesCorePlugin
8
- applyKotlinExpoModulesCorePlugin()
9
- useCoreDependencies()
10
- useExpoPublishing()
11
-
12
- // If you want to use the managed Android SDK versions from expo-modules-core, set this to true.
13
- // The Android SDK versions will be bumped from time to time in SDK releases and may introduce breaking changes in your module code.
14
- // Most of the time, you may like to manage the Android SDK versions yourself.
15
- def useManagedAndroidSdkVersions = false
16
- if (useManagedAndroidSdkVersions) {
17
- useDefaultAndroidSdkVersions()
18
- } else {
19
- buildscript {
20
- // Simple helper that allows the root project to override versions declared by this library.
21
- ext.safeExtGet = { prop, fallback ->
22
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
23
- }
24
- }
25
- project.android {
26
- compileSdkVersion safeExtGet("compileSdkVersion", 34)
27
- defaultConfig {
28
- minSdkVersion safeExtGet("minSdkVersion", 21)
29
- targetSdkVersion safeExtGet("targetSdkVersion", 34)
30
- }
31
- }
32
- }
33
-
34
- android {
35
- namespace "kr.co.studio0610.zsui"
36
- defaultConfig {
37
- versionCode 1
38
- versionName "0.1.0"
39
- }
40
- lintOptions {
41
- abortOnError false
42
- }
43
- }
@@ -1,2 +0,0 @@
1
- <manifest>
2
- </manifest>
@@ -1,47 +0,0 @@
1
- package kr.co.studio0610.zsui
2
-
3
- import expo.modules.kotlin.modules.Module
4
- import expo.modules.kotlin.modules.ModuleDefinition
5
-
6
- class ZsUiModule : Module() {
7
- // Each module class must implement the definition function. The definition consists of components
8
- // that describes the module's functionality and behavior.
9
- // See https://docs.expo.dev/modules/module-api for more details about available components.
10
- override fun definition() = ModuleDefinition {
11
- // Sets the name of the module that JavaScript code will use to refer to the module. Takes a string as an argument.
12
- // Can be inferred from module's class name, but it's recommended to set it explicitly for clarity.
13
- // The module will be accessible from `requireNativeModule('ZsUi')` in JavaScript.
14
- Name("ZsUi")
15
-
16
- // Sets constant properties on the module. Can take a dictionary or a closure that returns a dictionary.
17
- Constants(
18
- "PI" to Math.PI
19
- )
20
-
21
- // Defines event names that the module can send to JavaScript.
22
- Events("onChange")
23
-
24
- // Defines a JavaScript synchronous function that runs the native code on the JavaScript thread.
25
- Function("hello") {
26
- "Hello world! 👋"
27
- }
28
-
29
- // Defines a JavaScript function that always returns a Promise and whose native code
30
- // is by default dispatched on the different thread than the JavaScript runtime runs on.
31
- AsyncFunction("setValueAsync") { value: String ->
32
- // Send an event to JavaScript.
33
- sendEvent("onChange", mapOf(
34
- "value" to value
35
- ))
36
- }
37
-
38
- // Enables the module to be used as a native view. Definition components that are accepted as part of
39
- // the view definition: Prop, Events.
40
- View(ZsUiView::class) {
41
- // Defines a setter for the `name` prop.
42
- Prop("name") { view: ZsUiView, prop: String ->
43
- println(prop)
44
- }
45
- }
46
- }
47
- }
@@ -1,7 +0,0 @@
1
- package kr.co.studio0610.zsui
2
-
3
- import android.content.Context
4
- import expo.modules.kotlin.AppContext
5
- import expo.modules.kotlin.views.ExpoView
6
-
7
- class ZsUiView(context: Context, appContext: AppContext) : ExpoView(context, appContext)
@@ -1,9 +0,0 @@
1
- {
2
- "platforms": ["ios", "tvos", "android", "web"],
3
- "ios": {
4
- "modules": ["ZsUiModule"]
5
- },
6
- "android": {
7
- "modules": ["kr.co.studio0610.zsui.ZsUiModule"]
8
- }
9
- }
package/ios/ZsUi.podspec DELETED
@@ -1,27 +0,0 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = 'ZsUi'
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.description = package['description']
10
- s.license = package['license']
11
- s.author = package['author']
12
- s.homepage = package['homepage']
13
- s.platforms = { :ios => '13.4', :tvos => '13.4' }
14
- s.swift_version = '5.4'
15
- s.source = { git: 'https://github.com/0610studio' }
16
- s.static_framework = true
17
-
18
- s.dependency 'ExpoModulesCore'
19
-
20
- # Swift/Objective-C compatibility
21
- s.pod_target_xcconfig = {
22
- 'DEFINES_MODULE' => 'YES',
23
- 'SWIFT_COMPILATION_MODE' => 'wholemodule'
24
- }
25
-
26
- s.source_files = "**/*.{h,m,swift}"
27
- end
@@ -1,44 +0,0 @@
1
- import ExpoModulesCore
2
-
3
- public class ZsUiModule: Module {
4
- // Each module class must implement the definition function. The definition consists of components
5
- // that describes the module's functionality and behavior.
6
- // See https://docs.expo.dev/modules/module-api for more details about available components.
7
- public func definition() -> ModuleDefinition {
8
- // Sets the name of the module that JavaScript code will use to refer to the module. Takes a string as an argument.
9
- // Can be inferred from module's class name, but it's recommended to set it explicitly for clarity.
10
- // The module will be accessible from `requireNativeModule('ZsUi')` in JavaScript.
11
- Name("ZsUi")
12
-
13
- // Sets constant properties on the module. Can take a dictionary or a closure that returns a dictionary.
14
- Constants([
15
- "PI": Double.pi
16
- ])
17
-
18
- // Defines event names that the module can send to JavaScript.
19
- Events("onChange")
20
-
21
- // Defines a JavaScript synchronous function that runs the native code on the JavaScript thread.
22
- Function("hello") {
23
- return "Hello world! 👋"
24
- }
25
-
26
- // Defines a JavaScript function that always returns a Promise and whose native code
27
- // is by default dispatched on the different thread than the JavaScript runtime runs on.
28
- AsyncFunction("setValueAsync") { (value: String) in
29
- // Send an event to JavaScript.
30
- self.sendEvent("onChange", [
31
- "value": value
32
- ])
33
- }
34
-
35
- // Enables the module to be used as a native view. Definition components that are accepted as part of the
36
- // view definition: Prop, Events.
37
- View(ZsUiView.self) {
38
- // Defines a setter for the `name` prop.
39
- Prop("name") { (view: ZsUiView, prop: String) in
40
- print(prop)
41
- }
42
- }
43
- }
44
- }
@@ -1,7 +0,0 @@
1
- import ExpoModulesCore
2
-
3
- // This view will be used as a native component. Make sure to inherit from `ExpoView`
4
- // to apply the proper styling (e.g. border radius and shadows).
5
- class ZsUiView: ExpoView {
6
-
7
- }
package/src/ZsUi.types.ts DELETED
@@ -1,7 +0,0 @@
1
- export type ChangeEventPayload = {
2
- value: string;
3
- };
4
-
5
- export type ZsUiViewProps = {
6
- name: string;
7
- };
package/src/ZsUiModule.ts DELETED
@@ -1,5 +0,0 @@
1
- import { requireNativeModule } from 'expo-modules-core';
2
-
3
- // It loads the native module object from the JSI or falls back to
4
- // the bridge module (from NativeModulesProxy) if the remote debugger is on.
5
- export default requireNativeModule('ZsUi');
@@ -1,13 +0,0 @@
1
- import { EventEmitter } from 'expo-modules-core';
2
-
3
- const emitter = new EventEmitter({} as any);
4
-
5
- export default {
6
- PI: Math.PI,
7
- async setValueAsync(value: string): Promise<void> {
8
- emitter.emit('onChange', { value });
9
- },
10
- hello() {
11
- return 'Hello world! 👋';
12
- },
13
- };
package/src/ZsUiView.tsx DELETED
@@ -1,11 +0,0 @@
1
- import { requireNativeViewManager } from 'expo-modules-core';
2
- import * as React from 'react';
3
-
4
- import { ZsUiViewProps } from './ZsUi.types';
5
-
6
- const NativeView: React.ComponentType<ZsUiViewProps> =
7
- requireNativeViewManager('ZsUi');
8
-
9
- export default function ZsUiView(props: ZsUiViewProps) {
10
- return <NativeView {...props} />;
11
- }
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
-
3
- import { ZsUiViewProps } from './ZsUi.types';
4
-
5
- export default function ZsUiView(props: ZsUiViewProps) {
6
- return (
7
- <div>
8
- <span>{props.name}</span>
9
- </div>
10
- );
11
- }
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import Svg, { Path } from 'react-native-svg';
3
-
4
- export const SvgCheck = ({ size = 24, color = '#fff', strokeWidth = "2" }) => {
5
- return (
6
- <Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
7
- <Path
8
- d="M6 12L10.2426 16.2426L18.727 7.75732"
9
- stroke={color}
10
- strokeWidth={strokeWidth}
11
- strokeLinecap="round"
12
- strokeLinejoin="round"
13
- />
14
- </Svg>
15
- );
16
- };
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import Svg, { Path } from 'react-native-svg';
3
-
4
- export const SvgX = ({ size = 12, color = '#5E696E' }) => {
5
- const strokeWidth = size * 0.12;
6
-
7
- return (
8
- <Svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>
9
- <Path
10
- d={`
11
- M ${size * 0.25} ${size * 0.25}
12
- Q ${size / 2} ${size / 2} ${size * 0.75} ${size * 0.75}
13
- M ${size * 0.25} ${size * 0.75}
14
- Q ${size / 2} ${size / 2} ${size * 0.75} ${size * 0.25}
15
- `}
16
- stroke={color}
17
- strokeWidth={strokeWidth}
18
- strokeLinecap="round"
19
- />
20
- </Svg>
21
- );
22
- };
package/src/index.ts DELETED
@@ -1,52 +0,0 @@
1
- import {
2
- ZSView,
3
- AnimatedWrapper,
4
- TextAtom,
5
- ScrollViewAtom,
6
- ZSContainer,
7
- ZSPressable,
8
- ZSText,
9
- ThrottleButton,
10
- ZSTextField,
11
- ZSRadioGroup,
12
- ZSBottomButton,
13
- types as uiTypes
14
- } from './ui';
15
-
16
- import {
17
- AlertNotify,
18
- BottomSheetNotify,
19
- SnackbarNotify,
20
- useNotifyProvider,
21
- useNotify,
22
- BSTextInput,
23
- PopOverButton,
24
- PopOverMenu,
25
- types as notifyTypes
26
- } from './notify';
27
-
28
- export {
29
- ZSView,
30
- AnimatedWrapper,
31
- TextAtom,
32
- ScrollViewAtom,
33
- ZSContainer,
34
- ZSPressable,
35
- ZSText,
36
- ThrottleButton,
37
- ZSTextField,
38
- ZSRadioGroup,
39
- ZSBottomButton,
40
- // ---
41
- AlertNotify,
42
- BottomSheetNotify,
43
- SnackbarNotify,
44
- useNotifyProvider,
45
- useNotify,
46
- BSTextInput,
47
- PopOverButton,
48
- PopOverMenu,
49
- // ---
50
- uiTypes, // UI 관련 타입
51
- notifyTypes // Notify 관련 타입
52
- };
@@ -1,104 +0,0 @@
1
- import { ReactNode } from "react";
2
- import { TextProps, TouchableOpacityProps } from "react-native";
3
-
4
- export interface NotifyProps {
5
- alertVisible: boolean;
6
- setAlertVisible: (visible: boolean) => void;
7
- // ---
8
- snackItemStack: SnackItem[];
9
- hideSnackBar: (index: number) => void;
10
- // ---
11
- bottomSheetVisible: boolean;
12
- setBottomSheetVisible: (visible: boolean) => void;
13
- // ---
14
- loaderVisible: boolean;
15
- // ---
16
- popOverVisible: boolean;
17
- setPopOverVisible: (visible: boolean) => void;
18
- // ---
19
- showAlert: (props: ShowAlertProps) => void;
20
- showSnackBar: (props: ShowSnackBarProps) => void;
21
- showBottomSheet: (props: ShowBottomSheetProps) => void;
22
- showLoader: () => void;
23
- showPopOverMenu: (props: PopOverMenuProps) => void;
24
- // ---
25
- hideNotify: (option: HideOption) => void;
26
- }
27
-
28
- export interface PopOverMenuProps {
29
- px: number;
30
- py: number;
31
- component: React.ReactNode;
32
- }
33
-
34
- export interface ShowBottomSheetProps {
35
- backgroundColor?: string;
36
- isBottomRadius?: boolean;
37
- marginHorizontal?: number;
38
- isHandleVisible?: boolean;
39
- marginBottom?: number;
40
- padding?: number;
41
- component: React.ReactNode;
42
- contentsGestureEnable?: boolean;
43
- maxHeight?: number;
44
- isScrollView?: boolean;
45
- showsVerticalScrollIndicator?: boolean;
46
- headerComponent?: React.ReactNode;
47
- };
48
-
49
- export interface CustomSnackbarProps {
50
- snackType: SnackType;
51
- snackMessage: string;
52
- };
53
-
54
- export interface NotifyProviderProps {
55
- children: ReactNode;
56
- customSnackbar?: (props: CustomSnackbarProps) => React.ReactNode;
57
- loaderComponent?: () => React.ReactNode;
58
- };
59
-
60
- export interface AlertAction {
61
- label: string;
62
- onPress?: () => void;
63
- };
64
-
65
- export interface ShowAlertProps {
66
- title: string;
67
- informative: string;
68
- actions?: AlertActions;
69
- isBackgroundTouchClose?: boolean;
70
- titleStyle?: TextProps['style'];
71
- informativeStyle?: TextProps['style'];
72
- secondaryButtonStyle?: TouchableOpacityProps['style'];
73
- primaryButtonStyle?: TouchableOpacityProps['style'];
74
- secondaryButtonTextStyle?: TextProps['style'];
75
- primaryButtonTextStyle?: TextProps['style'];
76
- singleButtonTextStyle?: TextProps['style'];
77
- };
78
-
79
- export interface AlertActions {
80
- primary: AlertAction;
81
- secondary?: AlertAction;
82
- };
83
-
84
- export interface SnackItem {
85
- message: string;
86
- type: SnackType;
87
- index: number;
88
- snackbarDuration?: number;
89
- };
90
-
91
- export type SnackType = 'success' | 'error' | '';
92
-
93
- export type HideOption = 'all' | 'snack' | 'alert' | 'bottomSheet' | 'loader' | 'popOver';
94
-
95
- export interface ShowSnackBarProps {
96
- message: string;
97
- type?: SnackType;
98
- index?: number;
99
- snackbarDuration?: number;
100
- };
101
-
102
- export interface BottomSheetRef {
103
- handleVisible: (isOpen: boolean) => void;
104
- };
@@ -1,14 +0,0 @@
1
- import { createContext, useContext } from 'react';
2
- import { NotifyProps } from './types';
3
-
4
- const NotifyContext = createContext<NotifyProps | null>(null);
5
-
6
- export const useNotify = () => {
7
- const context = useContext(NotifyContext);
8
- if (!context) {
9
- throw new Error('useNotify must be used within a NotifyProvider');
10
- }
11
- return context;
12
- };
13
-
14
- export default NotifyContext;