@ezpg/app-ui 0.3.0 → 0.5.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 (194) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/lib/module/blocks/brand-profile-card/brand-profile-card.js +2 -2
  3. package/lib/module/blocks/brand-profile-card/brand-profile-card.js.map +1 -1
  4. package/lib/module/blocks/bulk-ship-list/bulk-ship-list.js +1 -1
  5. package/lib/module/blocks/bulk-ship-list/bulk-ship-list.js.map +1 -1
  6. package/lib/module/blocks/claim-row/claim-row.js +6 -5
  7. package/lib/module/blocks/claim-row/claim-row.js.map +1 -1
  8. package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js +1 -1
  9. package/lib/module/blocks/color-swatch-picker/color-swatch-picker.js.map +1 -1
  10. package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js +3 -3
  11. package/lib/module/blocks/copy-variant-picker/copy-variant-picker.js.map +1 -1
  12. package/lib/module/blocks/credit-wallet/credit-wallet.js +1 -1
  13. package/lib/module/blocks/credit-wallet/credit-wallet.js.map +1 -1
  14. package/lib/module/blocks/image-grid/image-grid.js +9 -9
  15. package/lib/module/blocks/image-grid/image-grid.js.map +1 -1
  16. package/lib/module/blocks/internal/format.js +4 -0
  17. package/lib/module/blocks/internal/format.js.map +1 -1
  18. package/lib/module/blocks/invoice-row/invoice-row.js +2 -2
  19. package/lib/module/blocks/invoice-row/invoice-row.js.map +1 -1
  20. package/lib/module/blocks/logo-candidate-grid/logo-candidate-grid.js +1 -1
  21. package/lib/module/blocks/logo-candidate-grid/logo-candidate-grid.js.map +1 -1
  22. package/lib/module/blocks/oauth-buttons/oauth-buttons.js +2 -2
  23. package/lib/module/blocks/oauth-buttons/oauth-buttons.js.map +1 -1
  24. package/lib/module/blocks/option-editor/option-editor.js +3 -3
  25. package/lib/module/blocks/option-editor/option-editor.js.map +1 -1
  26. package/lib/module/blocks/order-card/index.js +1 -1
  27. package/lib/module/blocks/order-card/index.js.map +1 -1
  28. package/lib/module/blocks/order-card/order-card.js +31 -9
  29. package/lib/module/blocks/order-card/order-card.js.map +1 -1
  30. package/lib/module/blocks/plan-card/plan-card.js +2 -2
  31. package/lib/module/blocks/plan-card/plan-card.js.map +1 -1
  32. package/lib/module/blocks/product-list-empty/product-list-empty.js +5 -5
  33. package/lib/module/blocks/product-list-empty/product-list-empty.js.map +1 -1
  34. package/lib/module/blocks/review-row/review-row.js +17 -17
  35. package/lib/module/blocks/review-row/review-row.js.map +1 -1
  36. package/lib/module/blocks/sales-chart/sales-chart.js +2 -2
  37. package/lib/module/blocks/sales-chart/sales-chart.js.map +1 -1
  38. package/lib/module/blocks/selection-bar/selection-bar.js +1 -1
  39. package/lib/module/blocks/selection-bar/selection-bar.js.map +1 -1
  40. package/lib/module/blocks/shipping-tracking-row/shipping-tracking-row.js +1 -1
  41. package/lib/module/blocks/shipping-tracking-row/shipping-tracking-row.js.map +1 -1
  42. package/lib/module/blocks/site-preview-frame/site-preview-frame.js +1 -1
  43. package/lib/module/blocks/site-preview-frame/site-preview-frame.js.map +1 -1
  44. package/lib/module/blocks/step-screen/step-screen.js +18 -14
  45. package/lib/module/blocks/step-screen/step-screen.js.map +1 -1
  46. package/lib/module/blocks/supply-item-card/supply-item-card.js +5 -5
  47. package/lib/module/blocks/supply-item-card/supply-item-card.js.map +1 -1
  48. package/lib/module/components/button/button.js +12 -17
  49. package/lib/module/components/button/button.js.map +1 -1
  50. package/lib/module/components/chip/chip.js +2 -2
  51. package/lib/module/components/chip/chip.js.map +1 -1
  52. package/lib/module/components/dialog/dialog.js +5 -5
  53. package/lib/module/components/dialog/dialog.js.map +1 -1
  54. package/lib/module/components/empty-state/empty-state.js +4 -4
  55. package/lib/module/components/empty-state/empty-state.js.map +1 -1
  56. package/lib/module/components/field/field.js +15 -14
  57. package/lib/module/components/field/field.js.map +1 -1
  58. package/lib/module/components/list-row/index.js.map +1 -1
  59. package/lib/module/components/list-row/list-row.js +38 -10
  60. package/lib/module/components/list-row/list-row.js.map +1 -1
  61. package/lib/module/components/segmented-tabs/segmented-tabs.js +2 -2
  62. package/lib/module/components/segmented-tabs/segmented-tabs.js.map +1 -1
  63. package/lib/module/components/status-badge/status-badge.js +1 -1
  64. package/lib/module/components/status-badge/status-badge.js.map +1 -1
  65. package/lib/module/components/text/text.js +5 -0
  66. package/lib/module/components/text/text.js.map +1 -1
  67. package/lib/module/components/toast/toast.js +4 -4
  68. package/lib/module/components/toast/toast.js.map +1 -1
  69. package/lib/module/index.js +1 -0
  70. package/lib/module/index.js.map +1 -1
  71. package/lib/module/templates/editor-template.js +142 -0
  72. package/lib/module/templates/editor-template.js.map +1 -0
  73. package/lib/module/templates/group.js +45 -0
  74. package/lib/module/templates/group.js.map +1 -0
  75. package/lib/module/templates/index.js +10 -0
  76. package/lib/module/templates/index.js.map +1 -0
  77. package/lib/module/templates/list-template.js +98 -0
  78. package/lib/module/templates/list-template.js.map +1 -0
  79. package/lib/module/templates/parts.js +115 -0
  80. package/lib/module/templates/parts.js.map +1 -0
  81. package/lib/module/templates/result-template.js +233 -0
  82. package/lib/module/templates/result-template.js.map +1 -0
  83. package/lib/module/templates/scroll-templates.js +100 -0
  84. package/lib/module/templates/scroll-templates.js.map +1 -0
  85. package/lib/module/templates/system-template.js +64 -0
  86. package/lib/module/templates/system-template.js.map +1 -0
  87. package/lib/module/theme/base.js +35 -2
  88. package/lib/module/theme/base.js.map +1 -1
  89. package/lib/module/theme/contract.js +6 -0
  90. package/lib/module/theme/contract.js.map +1 -0
  91. package/lib/module/theme/tokens.js +10 -2
  92. package/lib/module/theme/tokens.js.map +1 -1
  93. package/lib/typescript/src/blocks/claim-row/claim-row.d.ts.map +1 -1
  94. package/lib/typescript/src/blocks/color-swatch-picker/color-swatch-picker.d.ts.map +1 -1
  95. package/lib/typescript/src/blocks/image-grid/image-grid.d.ts.map +1 -1
  96. package/lib/typescript/src/blocks/internal/format.d.ts +1 -0
  97. package/lib/typescript/src/blocks/internal/format.d.ts.map +1 -1
  98. package/lib/typescript/src/blocks/invoice-row/invoice-row.d.ts.map +1 -1
  99. package/lib/typescript/src/blocks/oauth-buttons/oauth-buttons.d.ts.map +1 -1
  100. package/lib/typescript/src/blocks/order-card/index.d.ts +1 -1
  101. package/lib/typescript/src/blocks/order-card/index.d.ts.map +1 -1
  102. package/lib/typescript/src/blocks/order-card/order-card.d.ts +10 -0
  103. package/lib/typescript/src/blocks/order-card/order-card.d.ts.map +1 -1
  104. package/lib/typescript/src/blocks/product-list-empty/product-list-empty.d.ts.map +1 -1
  105. package/lib/typescript/src/blocks/review-row/review-row.d.ts.map +1 -1
  106. package/lib/typescript/src/blocks/step-screen/step-screen.d.ts +3 -1
  107. package/lib/typescript/src/blocks/step-screen/step-screen.d.ts.map +1 -1
  108. package/lib/typescript/src/components/button/button.d.ts +2 -2
  109. package/lib/typescript/src/components/button/button.d.ts.map +1 -1
  110. package/lib/typescript/src/components/empty-state/empty-state.d.ts.map +1 -1
  111. package/lib/typescript/src/components/field/field.d.ts.map +1 -1
  112. package/lib/typescript/src/components/list-row/index.d.ts +1 -1
  113. package/lib/typescript/src/components/list-row/index.d.ts.map +1 -1
  114. package/lib/typescript/src/components/list-row/list-row.d.ts +4 -1
  115. package/lib/typescript/src/components/list-row/list-row.d.ts.map +1 -1
  116. package/lib/typescript/src/components/status-badge/status-badge.d.ts +2 -1
  117. package/lib/typescript/src/components/status-badge/status-badge.d.ts.map +1 -1
  118. package/lib/typescript/src/components/text/text.d.ts +1 -1
  119. package/lib/typescript/src/components/text/text.d.ts.map +1 -1
  120. package/lib/typescript/src/components/toast/toast.d.ts +2 -1
  121. package/lib/typescript/src/components/toast/toast.d.ts.map +1 -1
  122. package/lib/typescript/src/index.d.ts +1 -0
  123. package/lib/typescript/src/index.d.ts.map +1 -1
  124. package/lib/typescript/src/templates/editor-template.d.ts +22 -0
  125. package/lib/typescript/src/templates/editor-template.d.ts.map +1 -0
  126. package/lib/typescript/src/templates/group.d.ts +8 -0
  127. package/lib/typescript/src/templates/group.d.ts.map +1 -0
  128. package/lib/typescript/src/templates/index.d.ts +15 -0
  129. package/lib/typescript/src/templates/index.d.ts.map +1 -0
  130. package/lib/typescript/src/templates/list-template.d.ts +27 -0
  131. package/lib/typescript/src/templates/list-template.d.ts.map +1 -0
  132. package/lib/typescript/src/templates/parts.d.ts +27 -0
  133. package/lib/typescript/src/templates/parts.d.ts.map +1 -0
  134. package/lib/typescript/src/templates/result-template.d.ts +21 -0
  135. package/lib/typescript/src/templates/result-template.d.ts.map +1 -0
  136. package/lib/typescript/src/templates/scroll-templates.d.ts +32 -0
  137. package/lib/typescript/src/templates/scroll-templates.d.ts.map +1 -0
  138. package/lib/typescript/src/templates/system-template.d.ts +12 -0
  139. package/lib/typescript/src/templates/system-template.d.ts.map +1 -0
  140. package/lib/typescript/src/theme/base.d.ts +35 -2
  141. package/lib/typescript/src/theme/base.d.ts.map +1 -1
  142. package/lib/typescript/src/theme/contract.d.ts +7 -0
  143. package/lib/typescript/src/theme/contract.d.ts.map +1 -0
  144. package/lib/typescript/src/theme/tokens.d.ts.map +1 -1
  145. package/lib/typescript/src/types/index.d.ts +23 -1
  146. package/lib/typescript/src/types/index.d.ts.map +1 -1
  147. package/package.json +1 -1
  148. package/src/blocks/brand-profile-card/brand-profile-card.tsx +2 -2
  149. package/src/blocks/bulk-ship-list/bulk-ship-list.tsx +1 -1
  150. package/src/blocks/claim-row/claim-row.tsx +12 -3
  151. package/src/blocks/color-swatch-picker/color-swatch-picker.tsx +5 -1
  152. package/src/blocks/copy-variant-picker/copy-variant-picker.tsx +3 -3
  153. package/src/blocks/credit-wallet/credit-wallet.tsx +1 -1
  154. package/src/blocks/image-grid/image-grid.tsx +15 -8
  155. package/src/blocks/internal/format.ts +5 -0
  156. package/src/blocks/invoice-row/invoice-row.tsx +5 -1
  157. package/src/blocks/logo-candidate-grid/logo-candidate-grid.tsx +1 -1
  158. package/src/blocks/oauth-buttons/oauth-buttons.tsx +6 -2
  159. package/src/blocks/option-editor/option-editor.tsx +3 -3
  160. package/src/blocks/order-card/index.ts +4 -0
  161. package/src/blocks/order-card/order-card.tsx +50 -6
  162. package/src/blocks/plan-card/plan-card.tsx +2 -2
  163. package/src/blocks/product-list-empty/product-list-empty.tsx +11 -4
  164. package/src/blocks/review-row/review-row.tsx +26 -15
  165. package/src/blocks/sales-chart/sales-chart.tsx +2 -2
  166. package/src/blocks/selection-bar/selection-bar.tsx +1 -1
  167. package/src/blocks/shipping-tracking-row/shipping-tracking-row.tsx +1 -1
  168. package/src/blocks/site-preview-frame/site-preview-frame.tsx +1 -1
  169. package/src/blocks/step-screen/step-screen.tsx +24 -12
  170. package/src/blocks/supply-item-card/supply-item-card.tsx +5 -5
  171. package/src/components/button/button.tsx +22 -14
  172. package/src/components/chip/chip.tsx +2 -2
  173. package/src/components/dialog/dialog.tsx +5 -5
  174. package/src/components/empty-state/empty-state.tsx +8 -4
  175. package/src/components/field/field.tsx +15 -14
  176. package/src/components/list-row/index.ts +1 -1
  177. package/src/components/list-row/list-row.tsx +35 -8
  178. package/src/components/segmented-tabs/segmented-tabs.tsx +2 -2
  179. package/src/components/status-badge/status-badge.tsx +3 -3
  180. package/src/components/text/text.tsx +4 -1
  181. package/src/components/toast/toast.tsx +6 -5
  182. package/src/index.tsx +1 -0
  183. package/src/templates/editor-template.tsx +164 -0
  184. package/src/templates/group.tsx +49 -0
  185. package/src/templates/index.ts +28 -0
  186. package/src/templates/list-template.tsx +124 -0
  187. package/src/templates/parts.tsx +138 -0
  188. package/src/templates/result-template.tsx +268 -0
  189. package/src/templates/scroll-templates.tsx +140 -0
  190. package/src/templates/system-template.tsx +70 -0
  191. package/src/theme/base.ts +38 -2
  192. package/src/theme/contract.ts +21 -0
  193. package/src/theme/tokens.ts +11 -0
  194. package/src/types/index.ts +15 -1
@@ -3,18 +3,19 @@ export declare const semantic: {
3
3
  readonly background: "#ffffff";
4
4
  readonly foreground: "#0a0a0a";
5
5
  readonly muted: "#f5f5f5";
6
- readonly mutedForeground: "#737373";
6
+ readonly mutedForeground: "#525252";
7
7
  readonly border: "#e5e5e5";
8
8
  readonly input: "#d4d4d4";
9
9
  readonly ring: "#a3a3a3";
10
10
  readonly primary: "#171717";
11
11
  readonly primaryForeground: "#fafafa";
12
- readonly danger: "#dc2626";
12
+ readonly danger: "#b91c1c";
13
13
  readonly dangerForeground: "#ffffff";
14
14
  readonly success: "#15803d";
15
15
  readonly successForeground: "#ffffff";
16
16
  readonly warning: "#f59e0b";
17
17
  readonly warningForeground: "#0a0a0a";
18
+ readonly warningText: "#b45309";
18
19
  readonly info: "#2563eb";
19
20
  readonly infoForeground: "#ffffff";
20
21
  };
@@ -34,6 +35,7 @@ export declare const semantic: {
34
35
  readonly successForeground: "#0a0a0a";
35
36
  readonly warning: "#fbbf24";
36
37
  readonly warningForeground: "#0a0a0a";
38
+ readonly warningText: "#fbbf24";
37
39
  readonly info: "#60a5fa";
38
40
  readonly infoForeground: "#0a0a0a";
39
41
  };
@@ -63,6 +65,11 @@ export declare const typography: {
63
65
  readonly lineHeight: 16;
64
66
  readonly fontWeight: "400";
65
67
  };
68
+ readonly label: {
69
+ readonly fontSize: 14;
70
+ readonly lineHeight: 20;
71
+ readonly fontWeight: "400";
72
+ };
66
73
  readonly body: {
67
74
  readonly fontSize: 15;
68
75
  readonly lineHeight: 22;
@@ -78,6 +85,11 @@ export declare const typography: {
78
85
  readonly lineHeight: 28;
79
86
  readonly fontWeight: "600";
80
87
  };
88
+ readonly screenTitle: {
89
+ readonly fontSize: 24;
90
+ readonly lineHeight: 32;
91
+ readonly fontWeight: "700";
92
+ };
81
93
  readonly display: {
82
94
  readonly fontSize: 28;
83
95
  readonly lineHeight: 34;
@@ -103,4 +115,25 @@ export declare const touch: {
103
115
  readonly ios: 44;
104
116
  readonly android: 48;
105
117
  };
118
+ export declare const layout: {
119
+ readonly screenX: 16;
120
+ readonly screenTop: 24;
121
+ readonly titleGap: 24;
122
+ readonly sectionGap: 32;
123
+ readonly groupGap: 12;
124
+ readonly itemGap: 8;
125
+ readonly footerTop: 12;
126
+ readonly footerBottom: 16;
127
+ };
128
+ export declare const controlSize: {
129
+ readonly sm: 44;
130
+ readonly md: 48;
131
+ readonly lg: 52;
132
+ };
133
+ export declare const frame: {
134
+ readonly header: 52;
135
+ readonly listRow: 56;
136
+ readonly listRow2: 72;
137
+ readonly listRow3: 88;
138
+ };
106
139
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/theme/base.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCX,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bb,CAAC;AAEX,eAAO,MAAM,MAAM;;;CAGT,CAAC;AAEX,eAAO,MAAM,MAAM;;CAET,CAAC;AAEX,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,eAAO,MAAM,KAAK;;;CAGR,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/theme/base.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCX,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCb,CAAC;AAEX,eAAO,MAAM,MAAM;;;CAGT,CAAC;AAEX,eAAO,MAAM,MAAM;;CAET,CAAC;AAEX,eAAO,MAAM,OAAO;;;CAGV,CAAC;AAEX,eAAO,MAAM,QAAQ;;;CAGX,CAAC;AAEX,eAAO,MAAM,KAAK;;;CAGR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;CAST,CAAC;AAEX,eAAO,MAAM,WAAW;;;;CAId,CAAC;AAEX,eAAO,MAAM,KAAK;;;;;CAKR,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const TONES: readonly ["neutral", "info", "success", "warning", "danger", "primary"];
2
+ export type Tone = (typeof TONES)[number];
3
+ export declare const BUTTON_VARIANTS: readonly ["primary", "secondary", "outline", "ghost", "danger"];
4
+ export type ButtonVariant = (typeof BUTTON_VARIANTS)[number];
5
+ export declare const BUTTON_SIZES: readonly ["sm", "md", "lg"];
6
+ export type ButtonSize = (typeof BUTTON_SIZES)[number];
7
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/theme/contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yEAOR,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,eAAe,iEAMlB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,YAAY,6BAA8B,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/theme/tokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAU,CAAC;AAatE,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,WAAW,CAAY,CAAC;AAEjE,eAAO,MAAM,MAAM,EAAE,WAWpB,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/theme/tokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAU,CAAC;AAgBtE,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,WAAW,CAAY,CAAC;AAEjE,eAAO,MAAM,MAAM,EAAE,WAmBpB,CAAC"}
@@ -16,10 +16,11 @@ export type ThemeColors = {
16
16
  successForeground: string;
17
17
  warning: string;
18
18
  warningForeground: string;
19
+ warningText: string;
19
20
  info: string;
20
21
  infoForeground: string;
21
22
  };
22
- export type TypographyVariant = 'caption' | 'body' | 'bodyLg' | 'title' | 'display';
23
+ export type TypographyVariant = 'caption' | 'label' | 'body' | 'bodyLg' | 'title' | 'screenTitle' | 'display';
23
24
  export type TypographyToken = {
24
25
  fontSize: number;
25
26
  lineHeight: number;
@@ -64,6 +65,27 @@ export type ThemeTokens = {
64
65
  md: number;
65
66
  };
66
67
  minTouchSize: number;
68
+ layout: {
69
+ screenX: number;
70
+ screenTop: number;
71
+ titleGap: number;
72
+ sectionGap: number;
73
+ groupGap: number;
74
+ itemGap: number;
75
+ footerTop: number;
76
+ footerBottom: number;
77
+ };
78
+ controlSize: {
79
+ sm: number;
80
+ md: number;
81
+ lg: number;
82
+ };
83
+ headerHeight: number;
84
+ listRow: {
85
+ oneLine: number;
86
+ twoLine: number;
87
+ threeLine: number;
88
+ };
67
89
  };
68
90
  export type Theme = ThemeTokens & {
69
91
  scheme: ColorScheme;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAA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OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAEhD,KAAK,WAAW,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,GAAG;IACtD,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;KAAE,CAAC;CAC1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezpg/app-ui",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "React Native UI components for EZPG partner apps",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -24,12 +24,12 @@ export type BrandProfileCardProps = {
24
24
  const useStyles = makeStyles((t) => ({
25
25
  head: { flexDirection: 'row', alignItems: 'center', gap: t.space[3] },
26
26
  logo: { width: 56 },
27
- title: { flex: 1, gap: 2 },
27
+ title: { flex: 1, gap: t.space[1] },
28
28
  row: { flexDirection: 'row', flexWrap: 'wrap', gap: t.space[2] },
29
29
  dot: {
30
30
  width: 20,
31
31
  height: 20,
32
- borderRadius: 10,
32
+ borderRadius: t.radius.full,
33
33
  borderWidth: 1,
34
34
  borderColor: t.colors.border,
35
35
  },
@@ -66,7 +66,7 @@ const useStyles = makeStyles((t) => ({
66
66
  height: FIELD_HEIGHT,
67
67
  alignItems: 'center',
68
68
  justifyContent: 'center',
69
- borderRadius: 10,
69
+ borderRadius: t.radius.md,
70
70
  borderWidth: 1,
71
71
  borderColor: t.colors.input,
72
72
  backgroundColor: t.colors.background,
@@ -1,3 +1,4 @@
1
+ import { deadlineTone } from '../internal/format';
1
2
  import { View, type StyleProp, type ViewStyle } from 'react-native';
2
3
  import { formatPrice } from '../../components/price/price';
3
4
  import { Text } from '../../components/text/text';
@@ -73,8 +74,16 @@ function formatDday(days: number): string {
73
74
  const useStyles = makeStyles((t) => ({
74
75
  row: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
75
76
  grow: { flex: 1 },
76
- head: { fontSize: 16, lineHeight: 24, fontVariant: ['tabular-nums'] },
77
- deadline: { fontSize: 14, lineHeight: 20, fontVariant: ['tabular-nums'] },
77
+ head: {
78
+ fontSize: t.typography.bodyLg.fontSize,
79
+ lineHeight: t.typography.bodyLg.lineHeight,
80
+ fontVariant: ['tabular-nums'],
81
+ },
82
+ deadline: {
83
+ fontSize: t.typography.label.fontSize,
84
+ lineHeight: t.typography.label.lineHeight,
85
+ fontVariant: ['tabular-nums'],
86
+ },
78
87
  }));
79
88
 
80
89
  export function ClaimRow({
@@ -112,7 +121,7 @@ export function ClaimRow({
112
121
  {deadline ? (
113
122
  <Text
114
123
  weight="bold"
115
- tone={days !== null && days <= 1 ? 'danger' : 'muted'}
124
+ tone={days === null ? 'muted' : deadlineTone(days)}
116
125
  style={s.deadline}
117
126
  >
118
127
  {deadline}
@@ -54,7 +54,11 @@ const useStyles = makeStyles((t) => ({
54
54
  alignItems: 'center',
55
55
  justifyContent: 'center',
56
56
  },
57
- line: { height: 6, borderRadius: 3, backgroundColor: t.colors.muted },
57
+ line: {
58
+ height: 6,
59
+ borderRadius: t.radius.full,
60
+ backgroundColor: t.colors.muted,
61
+ },
58
62
  long: { width: '70%' },
59
63
  short: { width: '45%' },
60
64
  }));
@@ -38,8 +38,8 @@ const useStyles = makeStyles((t) => ({
38
38
  radio: {
39
39
  width: 18,
40
40
  height: 18,
41
- marginTop: 2,
42
- borderRadius: 9,
41
+ marginTop: t.space[1],
42
+ borderRadius: t.radius.full,
43
43
  borderWidth: 2,
44
44
  borderColor: t.colors.border,
45
45
  alignItems: 'center',
@@ -49,7 +49,7 @@ const useStyles = makeStyles((t) => ({
49
49
  radioDot: {
50
50
  width: 8,
51
51
  height: 8,
52
- borderRadius: 4,
52
+ borderRadius: t.radius.full,
53
53
  backgroundColor: t.colors.primary,
54
54
  },
55
55
  body: { flex: 1, gap: t.space[2] },
@@ -26,7 +26,7 @@ const useStyles = makeStyles((t) => ({
26
26
  flexDirection: 'row',
27
27
  alignItems: 'center',
28
28
  justifyContent: 'space-between',
29
- minHeight: 44,
29
+ minHeight: t.controlSize.sm,
30
30
  paddingHorizontal: t.space[3],
31
31
  borderRadius: t.radius.md,
32
32
  backgroundColor: `${t.colors.warning}24`,
@@ -45,14 +45,18 @@ const useStyles = makeStyles((t) => ({
45
45
  borderRadius: RADIUS,
46
46
  },
47
47
  dim: { backgroundColor: `${t.colors.background}B3` },
48
- light: { gap: 2, backgroundColor: `${t.colors.background}D9` },
49
- failed: { fontSize: 12, lineHeight: 16, color: t.colors.danger },
48
+ light: { gap: t.space[1], backgroundColor: `${t.colors.background}D9` },
49
+ failed: {
50
+ fontSize: t.typography.caption.fontSize,
51
+ lineHeight: t.typography.caption.lineHeight,
52
+ color: t.colors.danger,
53
+ },
50
54
  cover: {
51
55
  position: 'absolute',
52
56
  left: 0,
53
57
  right: 0,
54
58
  bottom: 0,
55
- paddingVertical: 2,
59
+ paddingVertical: t.space[1],
56
60
  borderBottomLeftRadius: RADIUS,
57
61
  borderBottomRightRadius: RADIUS,
58
62
  backgroundColor: 'rgba(0, 0, 0, 0.6)',
@@ -62,15 +66,15 @@ const useStyles = makeStyles((t) => ({
62
66
  position: 'absolute',
63
67
  top: 0,
64
68
  right: 0,
65
- width: 44,
66
- height: 44,
69
+ width: t.minTouchSize,
70
+ height: t.minTouchSize,
67
71
  alignItems: 'flex-end',
68
72
  padding: t.space[1],
69
73
  },
70
74
  removeDot: {
71
75
  width: 22,
72
76
  height: 22,
73
- borderRadius: 11,
77
+ borderRadius: t.radius.full,
74
78
  alignItems: 'center',
75
79
  justifyContent: 'center',
76
80
  backgroundColor: t.colors.foreground,
@@ -79,13 +83,16 @@ const useStyles = makeStyles((t) => ({
79
83
  aspectRatio: 1,
80
84
  alignItems: 'center',
81
85
  justifyContent: 'center',
82
- gap: 2,
86
+ gap: t.space[1],
83
87
  borderRadius: RADIUS,
84
88
  borderWidth: 1,
85
89
  borderColor: t.colors.input,
86
90
  backgroundColor: t.colors.muted,
87
91
  },
88
- count: { fontSize: 13, fontVariant: ['tabular-nums'] },
92
+ count: {
93
+ fontSize: t.typography.label.fontSize,
94
+ fontVariant: ['tabular-nums'],
95
+ },
89
96
  }));
90
97
 
91
98
  const g = StyleSheet.create({
@@ -13,6 +13,11 @@ export function changeRate(current: number, previous: number): number | null {
13
13
  return ((current - previous) / Math.abs(previous)) * 100;
14
14
  }
15
15
 
16
+ export function deadlineTone(days: number): 'danger' | 'warning' | 'muted' {
17
+ if (days < 0) return 'danger';
18
+ return days === 0 ? 'warning' : 'muted';
19
+ }
20
+
16
21
  export function formatDeadline(days: number): string | null {
17
22
  if (days < 0) return '기한 지남';
18
23
  return ['오늘 마감', '내일 마감', '모레 마감'][days] ?? null;
@@ -25,7 +25,11 @@ export type InvoiceRowProps = {
25
25
  const useStyles = makeStyles((t) => ({
26
26
  row: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
27
27
  grow: { flex: 1 },
28
- head: { fontSize: 16, lineHeight: 24, fontVariant: ['tabular-nums'] },
28
+ head: {
29
+ fontSize: t.typography.bodyLg.fontSize,
30
+ lineHeight: t.typography.bodyLg.lineHeight,
31
+ fontVariant: ['tabular-nums'],
32
+ },
29
33
  action: { flex: 1 },
30
34
  }));
31
35
 
@@ -41,7 +41,7 @@ const useStyles = makeStyles((t) => ({
41
41
  right: t.space[2],
42
42
  width: 24,
43
43
  height: 24,
44
- borderRadius: 12,
44
+ borderRadius: t.radius.lg,
45
45
  alignItems: 'center',
46
46
  justifyContent: 'center',
47
47
  backgroundColor: t.colors.primary,
@@ -47,12 +47,16 @@ const useStyles = makeStyles((t) => ({
47
47
  justifyContent: 'center',
48
48
  gap: t.space[2],
49
49
  paddingHorizontal: t.space[4],
50
- borderRadius: 12,
50
+ borderRadius: t.radius.lg,
51
51
  borderWidth: 1,
52
52
  borderColor: 'transparent',
53
53
  },
54
54
  icon: { position: 'absolute', left: t.space[4] },
55
- label: { fontSize: 15, fontWeight: '600', fontFamily: t.fontFamily },
55
+ label: {
56
+ fontSize: t.typography.body.fontSize,
57
+ fontWeight: '600',
58
+ fontFamily: t.fontFamily,
59
+ },
56
60
  }));
57
61
 
58
62
  export function OAuthButtons({
@@ -49,12 +49,12 @@ const useStyles = makeStyles((t) => ({
49
49
  width: 20,
50
50
  height: t.minTouchSize,
51
51
  justifyContent: 'center',
52
- gap: 4,
52
+ gap: t.space[1],
53
53
  },
54
54
  bar: {
55
55
  height: 2,
56
- marginHorizontal: 3,
57
- borderRadius: 1,
56
+ marginHorizontal: t.space[1],
57
+ borderRadius: t.radius.full,
58
58
  backgroundColor: t.colors.mutedForeground,
59
59
  },
60
60
  }));
@@ -2,9 +2,13 @@ export {
2
2
  OrderCard,
3
3
  OrderSection,
4
4
  orderStatusLabel,
5
+ orderStatusText,
6
+ orderStatusTone,
5
7
  summarizeItems,
6
8
  type OrderAction,
7
9
  type OrderCardProps,
10
+ type OrderFulfillment,
11
+ type OrderStatusInput,
8
12
  type OrderItem,
9
13
  type OrderSectionProps,
10
14
  type OrderStatus,
@@ -1,3 +1,4 @@
1
+ import type { StatusBadgeTone } from '../../components/status-badge/status-badge';
1
2
  import type { ReactNode } from 'react';
2
3
  import { View, type StyleProp, type ViewStyle } from 'react-native';
3
4
  import { Button, type ButtonVariant } from '../../components/button/button';
@@ -7,7 +8,7 @@ import { ChevronGlyph } from '../../internal/glyphs';
7
8
  import { useTheme } from '../../theme/theme-provider';
8
9
  import { makeStyles } from '../../utils/styles';
9
10
  import { Card } from '../internal/card';
10
- import { formatDeadline } from '../internal/format';
11
+ import { deadlineTone, formatDeadline } from '../internal/format';
11
12
 
12
13
  export type OrderStatus =
13
14
  | 'pending_payment'
@@ -21,13 +22,46 @@ export type OrderStatus =
21
22
  export const orderStatusLabel: Record<OrderStatus, string> = {
22
23
  pending_payment: '결제 대기',
23
24
  paid: '신규',
24
- preparing: '배송 준비',
25
+ preparing: '상품 준비 중',
25
26
  shipped: '배송 중',
26
27
  delivered: '배송 완료',
27
28
  completed: '구매 확정',
28
- canceled: '취소',
29
+ canceled: '주문 취소',
29
30
  };
30
31
 
32
+ export type OrderFulfillment = 'ship' | 'pickup' | 'local' | 'visit' | 'none';
33
+
34
+ export type OrderStatusInput = {
35
+ status: OrderStatus;
36
+ fulfillment?: OrderFulfillment;
37
+ readyAt?: string | null;
38
+ awaitingDeposit?: boolean;
39
+ };
40
+
41
+ export const orderStatusTone: Record<OrderStatus, StatusBadgeTone> = {
42
+ pending_payment: 'neutral',
43
+ paid: 'warning',
44
+ preparing: 'warning',
45
+ shipped: 'info',
46
+ delivered: 'success',
47
+ completed: 'neutral',
48
+ canceled: 'neutral',
49
+ };
50
+
51
+ export function orderStatusText({
52
+ status,
53
+ fulfillment = 'ship',
54
+ readyAt,
55
+ awaitingDeposit,
56
+ }: OrderStatusInput): string {
57
+ if (status === 'pending_payment' && awaitingDeposit) return '입금 대기';
58
+ if (fulfillment === 'pickup') {
59
+ if (status === 'preparing' && readyAt) return '픽업 준비 완료';
60
+ if (status === 'delivered') return '수령 완료';
61
+ }
62
+ return orderStatusLabel[status];
63
+ }
64
+
31
65
  export type OrderItem = { name: string; option?: string; quantity: number };
32
66
 
33
67
  export type OrderAction = {
@@ -51,9 +85,15 @@ export type OrderCardProps = {
51
85
  const useStyles = makeStyles((t) => ({
52
86
  row: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
53
87
  grow: { flex: 1 },
54
- title: { fontSize: 16, lineHeight: 24 },
88
+ title: {
89
+ fontSize: t.typography.bodyLg.fontSize,
90
+ lineHeight: t.typography.bodyLg.lineHeight,
91
+ },
55
92
  amount: { fontVariant: ['tabular-nums'] },
56
- deadline: { fontSize: 14, lineHeight: 20 },
93
+ deadline: {
94
+ fontSize: t.typography.label.fontSize,
95
+ lineHeight: t.typography.label.lineHeight,
96
+ },
57
97
  action: { flex: 1 },
58
98
  compact: {
59
99
  flexDirection: 'row',
@@ -128,7 +168,11 @@ export function OrderCard({
128
168
  </Text>
129
169
  </View>
130
170
  {deadline ? (
131
- <Text weight="bold" tone="danger" style={s.deadline}>
171
+ <Text
172
+ weight={deadlineTone(dueInDays!) === 'muted' ? 'regular' : 'bold'}
173
+ tone={deadlineTone(dueInDays!)}
174
+ style={s.deadline}
175
+ >
132
176
  {deadline}
133
177
  </Text>
134
178
  ) : null}
@@ -36,7 +36,7 @@ const useStyles = makeStyles((t) => ({
36
36
  },
37
37
  head: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
38
38
  name: { flex: 1 },
39
- list: { gap: 6 },
39
+ list: { gap: t.space[2] },
40
40
  feature: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
41
41
  change: {
42
42
  flexDirection: 'row',
@@ -136,7 +136,7 @@ export function PlanCard({
136
136
  {!current && onSelect ? (
137
137
  <Button
138
138
  size="lg"
139
- variant={recommended ? 'solid' : 'outline'}
139
+ variant={recommended ? 'primary' : 'outline'}
140
140
  onPress={onSelect}
141
141
  >
142
142
  {proratedAmount !== undefined && proratedAmount > 0
@@ -61,16 +61,23 @@ const useStyles = makeStyles((t) => ({
61
61
  position: 'absolute',
62
62
  top: t.space[3],
63
63
  left: t.space[3],
64
- paddingHorizontal: 10,
64
+ paddingHorizontal: t.space[2],
65
65
  paddingVertical: t.space[1],
66
66
  borderRadius: t.radius.full,
67
67
  backgroundColor: t.colors.foreground,
68
68
  },
69
- badgeLabel: { color: t.colors.background, fontSize: 14 },
69
+ badgeLabel: {
70
+ color: t.colors.background,
71
+ fontSize: t.typography.label.fontSize,
72
+ },
70
73
  body: { gap: t.space[1], padding: t.space[4] },
71
74
  actions: { flexDirection: 'row', gap: t.space[2], marginTop: t.space[3] },
72
- edit: { flex: 1, height: 48 },
73
- dismiss: { width: 48, height: 48, paddingHorizontal: 0 },
75
+ edit: { flex: 1, height: t.controlSize.md },
76
+ dismiss: {
77
+ width: t.controlSize.md,
78
+ height: t.controlSize.md,
79
+ paddingHorizontal: 0,
80
+ },
74
81
  }));
75
82
 
76
83
  export function ProductListEmpty({
@@ -29,40 +29,43 @@ export type HiddenReviewsRowProps = {
29
29
  };
30
30
 
31
31
  const useStyles = makeStyles((t) => ({
32
- root: { gap: 10, paddingVertical: t.space[4] },
32
+ root: { gap: t.space[2], paddingVertical: t.space[4] },
33
33
  head: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
34
34
  stars: { letterSpacing: 1 },
35
- author: { flexShrink: 1, fontSize: 14 },
35
+ author: { flexShrink: 1, fontSize: t.typography.label.fontSize },
36
36
  more: {
37
- width: 44,
38
- height: 44,
37
+ width: t.minTouchSize,
38
+ height: t.minTouchSize,
39
39
  marginVertical: -t.space[3],
40
40
  marginLeft: 'auto',
41
41
  alignItems: 'center',
42
42
  justifyContent: 'center',
43
43
  },
44
- dots: { flexDirection: 'row', gap: 3 },
45
- dot: { width: 3.5, height: 3.5, borderRadius: 2 },
44
+ dots: { flexDirection: 'row', gap: t.space[1] },
45
+ dot: { width: 3.5, height: 3.5, borderRadius: t.radius.full },
46
46
  photos: { flexDirection: 'row', gap: t.space[2] },
47
47
  photo: { width: 72 },
48
48
  reply: {
49
49
  gap: t.space[1],
50
50
  marginLeft: t.space[3],
51
51
  paddingVertical: t.space[3],
52
- paddingHorizontal: 14,
53
- borderRadius: 10,
52
+ paddingHorizontal: t.space[4],
53
+ borderRadius: t.radius.lg,
54
54
  backgroundColor: t.colors.muted,
55
55
  },
56
- replyTitle: { fontSize: 13, lineHeight: 18 },
56
+ replyTitle: {
57
+ fontSize: t.typography.label.fontSize,
58
+ lineHeight: t.typography.label.lineHeight,
59
+ },
57
60
  replyButton: { alignSelf: 'flex-start' },
58
61
  hidden: {
59
62
  flexDirection: 'row',
60
63
  alignItems: 'center',
61
64
  gap: t.space[2],
62
- minHeight: 52,
63
- paddingLeft: 14,
65
+ minHeight: t.controlSize.lg,
66
+ paddingLeft: t.space[4],
64
67
  paddingRight: t.space[2],
65
- borderRadius: 10,
68
+ borderRadius: t.radius.lg,
66
69
  backgroundColor: t.colors.muted,
67
70
  },
68
71
  hiddenLabel: { flex: 1 },
@@ -184,18 +187,26 @@ export type ReviewSummaryProps = {
184
187
  const useSummaryStyles = makeStyles((t) => ({
185
188
  root: { flexDirection: 'row', alignItems: 'center', gap: t.space[5] },
186
189
  score: { alignItems: 'center', gap: t.space[1] },
187
- average: { fontSize: 36, lineHeight: 40, fontVariant: ['tabular-nums'] },
190
+ average: {
191
+ fontSize: t.typography.display.fontSize,
192
+ lineHeight: t.typography.display.lineHeight,
193
+ fontVariant: ['tabular-nums'],
194
+ },
188
195
  bars: { flex: 1, gap: t.space[1] },
189
196
  bar: { flexDirection: 'row', alignItems: 'center', gap: t.space[2] },
190
197
  digit: { width: 8, fontVariant: ['tabular-nums'] },
191
198
  track: {
192
199
  flex: 1,
193
200
  height: 6,
194
- borderRadius: 3,
201
+ borderRadius: t.radius.full,
195
202
  overflow: 'hidden',
196
203
  backgroundColor: t.colors.muted,
197
204
  },
198
- fill: { height: 6, borderRadius: 3, backgroundColor: t.colors.warning },
205
+ fill: {
206
+ height: 6,
207
+ borderRadius: t.radius.full,
208
+ backgroundColor: t.colors.warning,
209
+ },
199
210
  }));
200
211
 
201
212
  export function ReviewSummary({
@@ -33,10 +33,10 @@ const useStyles = makeStyles((t) => ({
33
33
  flexDirection: 'row',
34
34
  alignItems: 'center',
35
35
  justifyContent: 'space-between',
36
- minHeight: 44,
36
+ minHeight: t.controlSize.sm,
37
37
  },
38
38
  divided: { borderBottomWidth: 1, borderBottomColor: t.colors.border },
39
- net: { minHeight: 56 },
39
+ net: { minHeight: t.listRow.oneLine },
40
40
  netValue: { flexDirection: 'row', alignItems: 'baseline', gap: t.space[2] },
41
41
  down: { color: t.colors.info },
42
42
  }));