@pop-ui/foundation 2.3.1 → 2.4.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.
@@ -3,6 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // DO NOT EDIT MANUALLY — changes will be overwritten on the next build
4
4
  // To update: modify the source in src/icons/*.tsx, src/illustrations/*.tsx, or src/brand/*.tsx, then run `yarn build`
5
5
  import { Path, Svg } from 'react-native-svg';
6
+ /** @deprecated Use IconChevronDown for new designs. */
6
7
  export default function IconHotelChevronDown({ size = 14, color = '#CDCDCD', variant: _variant = 'line', ...props }) {
7
8
  return (_jsx(Svg, { width: size, height: size, viewBox: "0 0 14 14", fill: "none", ...props, children: _jsx(Path, { d: "M1.79719 4.42211C2.09334 4.12596 2.57348 4.12596 2.86963 4.42211L7.00006 8.55256L11.1305 4.42211C11.4266 4.12596 11.9068 4.12596 12.2029 4.42211C12.4991 4.71826 12.4991 5.19841 12.2029 5.49456L7.53628 10.1612C7.24013 10.4574 6.75999 10.4574 6.46384 10.1612L1.79719 5.49456C1.50104 5.19841 1.50104 4.71826 1.79719 4.42211Z", fill: color }) }));
8
9
  }
@@ -3,6 +3,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // DO NOT EDIT MANUALLY — changes will be overwritten on the next build
4
4
  // To update: modify the source in src/icons/*.tsx, src/illustrations/*.tsx, or src/brand/*.tsx, then run `yarn build`
5
5
  import { Path, Svg } from 'react-native-svg';
6
+ /** @deprecated Use IconChevronDown with thick for new designs. */
6
7
  export default function IconHotelChevronDownBold({ size = 16, color = '#333333', variant: _variant = 'line', ...props }) {
7
8
  return (_jsx(Svg, { width: size, height: size, viewBox: "0 0 16 16", fill: "none", ...props, children: _jsx(Path, { d: "M12.6667 5.33329L8.00008 9.99996L3.33341 5.33329", fill: "none", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }));
8
9
  }
@@ -12,7 +12,8 @@ export const colors = Object.entries(rawColors).reduce((acc, [colorName, entry])
12
12
  if (typeof entryObj.value === 'string') {
13
13
  acc[colorName] = { default: entryObj.value };
14
14
  }
15
- else {
15
+ else if (Object.keys(entryObj).some((key) => /^\d+$/.test(key))) {
16
+ // Only palette scales belong in the swatch catalog and Mantine color tuples.
16
17
  // Nested shades (e.g. gray: { 50: { value: '#...', type: 'color' } })
17
18
  acc[colorName] = Object.entries(entryObj).reduce((shadeAcc, [shade, tokenValue]) => {
18
19
  if (tokenValue && typeof tokenValue.value === 'string') {
@@ -1,6 +1,13 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
+ export const ColorBorderDefault = "#cdcdcd";
5
+ export const ColorBorderHover = "#72eef1";
6
+ export const ColorBorderFocus = "#0fd3d8";
7
+ export const ColorBorderError = "#f03e3e";
8
+ export const ColorTextPlaceholder = "#666666";
9
+ export const ColorTextError = "#c92a2a";
10
+ export const ColorActionPrimaryBackground = "#0fd3d8";
4
11
  export const ColorWhite = "#ffffff";
5
12
  export const ColorBlack = "#000000";
6
13
  export const ColorGray25 = "#fbfbfb";
@@ -22,6 +22,8 @@ export declare const BorderRadius50 = 2;
22
22
 
23
23
  export declare const BorderRadius500 = 20;
24
24
 
25
+ export declare const ColorActionPrimaryBackground = "#0fd3d8";
26
+
25
27
  export declare const ColorAqua100 = "#c8fdff";
26
28
 
27
29
  export declare const ColorAqua200 = "#98f4f6";
@@ -66,6 +68,17 @@ export declare const ColorBlue800 = "#1849a9";
66
68
 
67
69
  export declare const ColorBlue900 = "#194185";
68
70
 
71
+ /**
72
+ * Do not edit directly, this file was auto-generated.
73
+ */
74
+ export declare const ColorBorderDefault = "#cdcdcd";
75
+
76
+ export declare const ColorBorderError = "#f03e3e";
77
+
78
+ export declare const ColorBorderFocus = "#0fd3d8";
79
+
80
+ export declare const ColorBorderHover = "#72eef1";
81
+
69
82
  export declare const ColorGrape100 = "#f3d9fa";
70
83
 
71
84
  export declare const ColorGrape200 = "#eebefa";
@@ -194,9 +207,10 @@ export declare const ColorRed900 = "#ab1313";
194
207
 
195
208
  export declare const colors: IColorPaletteType;
196
209
 
197
- /**
198
- * Do not edit directly, this file was auto-generated.
199
- */
210
+ export declare const ColorTextError = "#c92a2a";
211
+
212
+ export declare const ColorTextPlaceholder = "#666666";
213
+
200
214
  export declare const ColorWhite = "#ffffff";
201
215
 
202
216
  export declare const ColorYellow100 = "#ffff9f";
@@ -222,6 +236,17 @@ export declare const ColorYellow900 = "#e27500";
222
236
  /** 내부 Date 값 → 입력창 표시 문자열 */
223
237
  export declare const formatDateDisplay: (value: Date | Date[] | [Date | null, Date | null] | null | undefined, type: TDateDisplayType, format: string) => string;
224
238
 
239
+ /** Original Android images. mapSample is a sample, never a missing-location fallback. Web only. */
240
+ export declare const foundationImages: {
241
+ readonly favoriteOn: string;
242
+ readonly favoriteOff: string;
243
+ readonly mapSample: string;
244
+ readonly poploggerRecruitmentBanner: string;
245
+ readonly reviewStarOn: string;
246
+ readonly reviewStarOff: string;
247
+ readonly profilePlaceholder: string;
248
+ };
249
+
225
250
  export declare const getColorShades: (colorName: TColorName) => IColorShades;
226
251
 
227
252
  export declare const getColorValue: (colorName: TColorName, shade: string) => string | undefined;
@@ -230,7 +255,7 @@ export declare const getCSSVariableName: (colorName: string, shade: string) => s
230
255
 
231
256
  export declare const getCSSVariableRef: (colorName: string, shade: string) => string;
232
257
 
233
- /** Original Android images. mapSample is a sample, never a missing-location fallback. Web only. */
258
+ /** @deprecated Use foundationImages. */
234
259
  export declare const hotelSummaryImages: {
235
260
  readonly favoriteOn: string;
236
261
  readonly favoriteOff: string;
@@ -393,8 +418,10 @@ export declare function IconHotelCancellation({ size, color, variant: _variant,
393
418
 
394
419
  export declare function IconHotelCheck({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): JSX.Element;
395
420
 
421
+ /** @deprecated Use IconChevronDown for new designs. */
396
422
  export declare function IconHotelChevronDown({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): JSX.Element;
397
423
 
424
+ /** @deprecated Use IconChevronDown with thick for new designs. */
398
425
  export declare function IconHotelChevronDownBold({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): JSX.Element;
399
426
 
400
427
  export declare function IconHotelChevronRight({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import type { IIconLineOnlyProps } from '../../types/icon.native';
2
+ /** @deprecated Use IconChevronDown for new designs. */
2
3
  export default function IconHotelChevronDown({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import type { IIconLineOnlyProps } from '../../types/icon.native';
2
+ /** @deprecated Use IconChevronDown with thick for new designs. */
2
3
  export default function IconHotelChevronDownBold({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,13 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
+ export declare const ColorBorderDefault = "#cdcdcd";
5
+ export declare const ColorBorderHover = "#72eef1";
6
+ export declare const ColorBorderFocus = "#0fd3d8";
7
+ export declare const ColorBorderError = "#f03e3e";
8
+ export declare const ColorTextPlaceholder = "#666666";
9
+ export declare const ColorTextError = "#c92a2a";
10
+ export declare const ColorActionPrimaryBackground = "#0fd3d8";
4
11
  export declare const ColorWhite = "#ffffff";
5
12
  export declare const ColorBlack = "#000000";
6
13
  export declare const ColorGray25 = "#fbfbfb";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pop-ui/foundation",
3
3
  "type": "module",
4
- "version": "2.3.1",
4
+ "version": "2.4.0",
5
5
  "main": "./dist/foundation.umd.cjs",
6
6
  "module": "./dist/foundation.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -35,6 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "scripts": {
38
+ "assets:penpot": "tsx scripts/export-penpot-assets.ts",
38
39
  "dev": "vite",
39
40
  "build": "yarn generate:native && vite build && yarn build:native",
40
41
  "build:native": "tsc -p tsconfig.native.json",