@m1kapp/kit 0.0.41 → 0.0.43
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.
- package/dist/index.d.mts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/meta.json +40 -4
- package/dist/pwa.js +1 -1
- package/dist/pwa.mjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils.d.mts +27 -1
- package/dist/utils.d.ts +27 -1
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/templates/vite-app/index.html +3 -1
package/dist/index.d.mts
CHANGED
|
@@ -531,6 +531,10 @@ interface WatermarkProps {
|
|
|
531
531
|
zoom?: boolean | number;
|
|
532
532
|
}
|
|
533
533
|
/** Estimate rendered width of a string. CJK chars ≈ 1.0×, Latin ≈ 0.62× font size. */
|
|
534
|
+
/**
|
|
535
|
+
* `color` 는 액센트를 그대로 넣지 말 것 — 쨍한 색 위 워터마크 글자가 앱보다
|
|
536
|
+
* 시끄럽다. `watermarkTint(accent)`(utils)로 어두운 저채도 틴트를 만들어 쓴다.
|
|
537
|
+
*/
|
|
534
538
|
declare function Watermark({ children, color, text, maxWidth, sponsor, speed, hidePoweredBy, trackSlug, track, claimed, counts, zoom, }: WatermarkProps): react_jsx_runtime.JSX.Element;
|
|
535
539
|
|
|
536
540
|
declare const colors: {
|
|
@@ -1822,5 +1826,31 @@ interface IsoDuration {
|
|
|
1822
1826
|
declare function parseIsoDuration(duration: string): IsoDuration;
|
|
1823
1827
|
/** "PT1H2M3S" → 3723 (초) */
|
|
1824
1828
|
declare function isoDurationToSec(duration: string): number;
|
|
1829
|
+
/**
|
|
1830
|
+
* 뒤에 오는 말에 맞는 조사를 고른다.
|
|
1831
|
+
*
|
|
1832
|
+
* particle("하이브", "은", "는") // "는"
|
|
1833
|
+
* particle("서울", "으로", "로") // "로" (ㄹ 받침 특례)
|
|
1834
|
+
*/
|
|
1835
|
+
declare function particle(word: string, withFinal: string, withoutFinal: string): string;
|
|
1836
|
+
/** 낱말에 조사를 붙여 돌려준다. withParticle("Anysphere", "을", "를") → "Anysphere를" */
|
|
1837
|
+
declare const withParticle: (word: string, withFinal: string, withoutFinal: string) => string;
|
|
1838
|
+
/** 원화를 조/억으로. 1조 이상은 조(소수 1자리), 천조 이상은 쉼표 정수 조, 그 아래는 억. */
|
|
1839
|
+
declare function formatWon(n: number): string;
|
|
1840
|
+
/** formatWon 에서 " 원" 을 뗀 꼴. 좁은 칸·문장 속에 쓴다 — "6.0조", "8,508억". */
|
|
1841
|
+
declare function formatWonTight(n: number): string;
|
|
1842
|
+
/** 달러를 억 단위로 — "$190억", "$3.5억". 빼기표는 $ 앞에 둔다("-$49억"). */
|
|
1843
|
+
declare function formatDollarEok(n: number): string;
|
|
1844
|
+
/**
|
|
1845
|
+
* 액센트를 그대로 <Watermark color> 에 쓰면 배경이 앱보다 시끄럽다(쨍한 파랑 위
|
|
1846
|
+
* 워터마크 글자가 화면을 덮는다). 색조는 남기고 채도·명도를 눌러, nlnn 의
|
|
1847
|
+
* 어두운 올리브(#3d4230)처럼 앱이 도드라지는 배경을 만든다.
|
|
1848
|
+
*
|
|
1849
|
+
* <Watermark color={watermarkTint("#2563eb")} …> // 어두운 남색 슬레이트
|
|
1850
|
+
*/
|
|
1851
|
+
declare function watermarkTint(accentHex: string, { saturation, lightness }?: {
|
|
1852
|
+
saturation?: number | undefined;
|
|
1853
|
+
lightness?: number | undefined;
|
|
1854
|
+
}): string;
|
|
1825
1855
|
|
|
1826
|
-
export { APP_SHELL_HEADER_HEIGHT, ActionCard, type ActionCardLabels, type ActionCardProps, type ActionCardState, type ApiClient, type ApiClientOptions, ApiError, AppShell, AppShellContent, type AppShellContentProps, AppShellHeader, type AppShellHeaderProps, type AppShellProps, AsyncList, type AsyncListProps, type AsyncListStatus, Avatar, type AvatarProps, Badge, type BadgeProps, BarList, type BarListItem, type BarListProps, Button, type ButtonProps, Carousel, type CarouselProps, ChatBubble, type ChatBubbleProps, type ChatMessage, type ChatRole, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, type ColorName, ColorPicker, type ColorPickerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownLabels, type CountdownProps, type DateCount, type DayGroup, Dialog, type DialogProps, Divider, type DividerProps, EmojiButton, type EmojiButtonProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerProps, EmptyState, type EmptyStateProps, Fab, type FabProps, FetchProgress, type FetchProgressProps, Field, type FieldProps, FontLinks, type FontName, GrassMap, type GrassMapData, type GrassMapLabels, type GrassMapProps, IOSInstallSheet, IconButton, type IconButtonProps, Img, type ImgProps, InAppSheet, type InAppSheetProps, InlineEdit, type InlineEditProps, Input, type InputProps, type IsoDuration, KitStyles, LinkifiedText, type LinkifiedTextProps, ListRow, type ListRowProps, MediaCard, type MediaCardProps, MessageList, type MessageListProps, PWAInstallButton, type PWAInstallState, PoweredByKit, type PoweredByKitProps, ProgressRing, type ProgressRingProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, ShareButton, type ShareButtonProps, Skeleton, type SkeletonProps, StatChip, type StatChipProps, type Step, Stepper, type StepperProps, Switch, type SwitchProps, THEME_SCRIPT, Tab, TabBar, type TabBarProps, type TabProps, type TabRootProps, Textarea, type TextareaProps, ThemeButton, type ThemeButtonProps, ThemeDialog, type ThemeDialogLabels, type ThemeDialogProps, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, Typewriter, type TypewriterProps, TypingIndicator, type TypingIndicatorProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, type UseFetchOptions, type UseFetchResult, type UseFormSubmitOptions, type UseFormSubmitResult, type UseInViewOptions, type UseInViewResult, type UsePWAInstallReturn, type UsePollingOptions, type UsePollingResult, type UseShareOptions, type UseShareReturn, Watermark, type WatermarkProps, type WatermarkSponsor, clearFetchCache, cn, colors, createApiClient, createManifest, fillDateSeries, fontFamily, fonts, formatDayLabel, formatDuration, formatKoreanNumber, formatNumber, formatPrice, getFetchActiveCount, groupByDay, invalidateFetch, isoDurationToSec, mobileViewport, parseIsoDuration, postJson, relativeTime, subscribeFetchActivity, svgIcon, useCopy, useDebounce, useEscapeKey, useFetch, useFocusTrap, useFormSubmit, useImageLoader, useInView, useLocalStorage, usePWAInstall, usePolling, usePortalTarget, useScrollLock, useShare, useToast };
|
|
1856
|
+
export { APP_SHELL_HEADER_HEIGHT, ActionCard, type ActionCardLabels, type ActionCardProps, type ActionCardState, type ApiClient, type ApiClientOptions, ApiError, AppShell, AppShellContent, type AppShellContentProps, AppShellHeader, type AppShellHeaderProps, type AppShellProps, AsyncList, type AsyncListProps, type AsyncListStatus, Avatar, type AvatarProps, Badge, type BadgeProps, BarList, type BarListItem, type BarListProps, Button, type ButtonProps, Carousel, type CarouselProps, ChatBubble, type ChatBubbleProps, type ChatMessage, type ChatRole, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, type ColorName, ColorPicker, type ColorPickerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownLabels, type CountdownProps, type DateCount, type DayGroup, Dialog, type DialogProps, Divider, type DividerProps, EmojiButton, type EmojiButtonProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerProps, EmptyState, type EmptyStateProps, Fab, type FabProps, FetchProgress, type FetchProgressProps, Field, type FieldProps, FontLinks, type FontName, GrassMap, type GrassMapData, type GrassMapLabels, type GrassMapProps, IOSInstallSheet, IconButton, type IconButtonProps, Img, type ImgProps, InAppSheet, type InAppSheetProps, InlineEdit, type InlineEditProps, Input, type InputProps, type IsoDuration, KitStyles, LinkifiedText, type LinkifiedTextProps, ListRow, type ListRowProps, MediaCard, type MediaCardProps, MessageList, type MessageListProps, PWAInstallButton, type PWAInstallState, PoweredByKit, type PoweredByKitProps, ProgressRing, type ProgressRingProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, ShareButton, type ShareButtonProps, Skeleton, type SkeletonProps, StatChip, type StatChipProps, type Step, Stepper, type StepperProps, Switch, type SwitchProps, THEME_SCRIPT, Tab, TabBar, type TabBarProps, type TabProps, type TabRootProps, Textarea, type TextareaProps, ThemeButton, type ThemeButtonProps, ThemeDialog, type ThemeDialogLabels, type ThemeDialogProps, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, Typewriter, type TypewriterProps, TypingIndicator, type TypingIndicatorProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, type UseFetchOptions, type UseFetchResult, type UseFormSubmitOptions, type UseFormSubmitResult, type UseInViewOptions, type UseInViewResult, type UsePWAInstallReturn, type UsePollingOptions, type UsePollingResult, type UseShareOptions, type UseShareReturn, Watermark, type WatermarkProps, type WatermarkSponsor, clearFetchCache, cn, colors, createApiClient, createManifest, fillDateSeries, fontFamily, fonts, formatDayLabel, formatDollarEok, formatDuration, formatKoreanNumber, formatNumber, formatPrice, formatWon, formatWonTight, getFetchActiveCount, groupByDay, invalidateFetch, isoDurationToSec, mobileViewport, parseIsoDuration, particle, postJson, relativeTime, subscribeFetchActivity, svgIcon, useCopy, useDebounce, useEscapeKey, useFetch, useFocusTrap, useFormSubmit, useImageLoader, useInView, useLocalStorage, usePWAInstall, usePolling, usePortalTarget, useScrollLock, useShare, useToast, watermarkTint, withParticle };
|
package/dist/index.d.ts
CHANGED
|
@@ -531,6 +531,10 @@ interface WatermarkProps {
|
|
|
531
531
|
zoom?: boolean | number;
|
|
532
532
|
}
|
|
533
533
|
/** Estimate rendered width of a string. CJK chars ≈ 1.0×, Latin ≈ 0.62× font size. */
|
|
534
|
+
/**
|
|
535
|
+
* `color` 는 액센트를 그대로 넣지 말 것 — 쨍한 색 위 워터마크 글자가 앱보다
|
|
536
|
+
* 시끄럽다. `watermarkTint(accent)`(utils)로 어두운 저채도 틴트를 만들어 쓴다.
|
|
537
|
+
*/
|
|
534
538
|
declare function Watermark({ children, color, text, maxWidth, sponsor, speed, hidePoweredBy, trackSlug, track, claimed, counts, zoom, }: WatermarkProps): react_jsx_runtime.JSX.Element;
|
|
535
539
|
|
|
536
540
|
declare const colors: {
|
|
@@ -1822,5 +1826,31 @@ interface IsoDuration {
|
|
|
1822
1826
|
declare function parseIsoDuration(duration: string): IsoDuration;
|
|
1823
1827
|
/** "PT1H2M3S" → 3723 (초) */
|
|
1824
1828
|
declare function isoDurationToSec(duration: string): number;
|
|
1829
|
+
/**
|
|
1830
|
+
* 뒤에 오는 말에 맞는 조사를 고른다.
|
|
1831
|
+
*
|
|
1832
|
+
* particle("하이브", "은", "는") // "는"
|
|
1833
|
+
* particle("서울", "으로", "로") // "로" (ㄹ 받침 특례)
|
|
1834
|
+
*/
|
|
1835
|
+
declare function particle(word: string, withFinal: string, withoutFinal: string): string;
|
|
1836
|
+
/** 낱말에 조사를 붙여 돌려준다. withParticle("Anysphere", "을", "를") → "Anysphere를" */
|
|
1837
|
+
declare const withParticle: (word: string, withFinal: string, withoutFinal: string) => string;
|
|
1838
|
+
/** 원화를 조/억으로. 1조 이상은 조(소수 1자리), 천조 이상은 쉼표 정수 조, 그 아래는 억. */
|
|
1839
|
+
declare function formatWon(n: number): string;
|
|
1840
|
+
/** formatWon 에서 " 원" 을 뗀 꼴. 좁은 칸·문장 속에 쓴다 — "6.0조", "8,508억". */
|
|
1841
|
+
declare function formatWonTight(n: number): string;
|
|
1842
|
+
/** 달러를 억 단위로 — "$190억", "$3.5억". 빼기표는 $ 앞에 둔다("-$49억"). */
|
|
1843
|
+
declare function formatDollarEok(n: number): string;
|
|
1844
|
+
/**
|
|
1845
|
+
* 액센트를 그대로 <Watermark color> 에 쓰면 배경이 앱보다 시끄럽다(쨍한 파랑 위
|
|
1846
|
+
* 워터마크 글자가 화면을 덮는다). 색조는 남기고 채도·명도를 눌러, nlnn 의
|
|
1847
|
+
* 어두운 올리브(#3d4230)처럼 앱이 도드라지는 배경을 만든다.
|
|
1848
|
+
*
|
|
1849
|
+
* <Watermark color={watermarkTint("#2563eb")} …> // 어두운 남색 슬레이트
|
|
1850
|
+
*/
|
|
1851
|
+
declare function watermarkTint(accentHex: string, { saturation, lightness }?: {
|
|
1852
|
+
saturation?: number | undefined;
|
|
1853
|
+
lightness?: number | undefined;
|
|
1854
|
+
}): string;
|
|
1825
1855
|
|
|
1826
|
-
export { APP_SHELL_HEADER_HEIGHT, ActionCard, type ActionCardLabels, type ActionCardProps, type ActionCardState, type ApiClient, type ApiClientOptions, ApiError, AppShell, AppShellContent, type AppShellContentProps, AppShellHeader, type AppShellHeaderProps, type AppShellProps, AsyncList, type AsyncListProps, type AsyncListStatus, Avatar, type AvatarProps, Badge, type BadgeProps, BarList, type BarListItem, type BarListProps, Button, type ButtonProps, Carousel, type CarouselProps, ChatBubble, type ChatBubbleProps, type ChatMessage, type ChatRole, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, type ColorName, ColorPicker, type ColorPickerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownLabels, type CountdownProps, type DateCount, type DayGroup, Dialog, type DialogProps, Divider, type DividerProps, EmojiButton, type EmojiButtonProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerProps, EmptyState, type EmptyStateProps, Fab, type FabProps, FetchProgress, type FetchProgressProps, Field, type FieldProps, FontLinks, type FontName, GrassMap, type GrassMapData, type GrassMapLabels, type GrassMapProps, IOSInstallSheet, IconButton, type IconButtonProps, Img, type ImgProps, InAppSheet, type InAppSheetProps, InlineEdit, type InlineEditProps, Input, type InputProps, type IsoDuration, KitStyles, LinkifiedText, type LinkifiedTextProps, ListRow, type ListRowProps, MediaCard, type MediaCardProps, MessageList, type MessageListProps, PWAInstallButton, type PWAInstallState, PoweredByKit, type PoweredByKitProps, ProgressRing, type ProgressRingProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, ShareButton, type ShareButtonProps, Skeleton, type SkeletonProps, StatChip, type StatChipProps, type Step, Stepper, type StepperProps, Switch, type SwitchProps, THEME_SCRIPT, Tab, TabBar, type TabBarProps, type TabProps, type TabRootProps, Textarea, type TextareaProps, ThemeButton, type ThemeButtonProps, ThemeDialog, type ThemeDialogLabels, type ThemeDialogProps, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, Typewriter, type TypewriterProps, TypingIndicator, type TypingIndicatorProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, type UseFetchOptions, type UseFetchResult, type UseFormSubmitOptions, type UseFormSubmitResult, type UseInViewOptions, type UseInViewResult, type UsePWAInstallReturn, type UsePollingOptions, type UsePollingResult, type UseShareOptions, type UseShareReturn, Watermark, type WatermarkProps, type WatermarkSponsor, clearFetchCache, cn, colors, createApiClient, createManifest, fillDateSeries, fontFamily, fonts, formatDayLabel, formatDuration, formatKoreanNumber, formatNumber, formatPrice, getFetchActiveCount, groupByDay, invalidateFetch, isoDurationToSec, mobileViewport, parseIsoDuration, postJson, relativeTime, subscribeFetchActivity, svgIcon, useCopy, useDebounce, useEscapeKey, useFetch, useFocusTrap, useFormSubmit, useImageLoader, useInView, useLocalStorage, usePWAInstall, usePolling, usePortalTarget, useScrollLock, useShare, useToast };
|
|
1856
|
+
export { APP_SHELL_HEADER_HEIGHT, ActionCard, type ActionCardLabels, type ActionCardProps, type ActionCardState, type ApiClient, type ApiClientOptions, ApiError, AppShell, AppShellContent, type AppShellContentProps, AppShellHeader, type AppShellHeaderProps, type AppShellProps, AsyncList, type AsyncListProps, type AsyncListStatus, Avatar, type AvatarProps, Badge, type BadgeProps, BarList, type BarListItem, type BarListProps, Button, type ButtonProps, Carousel, type CarouselProps, ChatBubble, type ChatBubbleProps, type ChatMessage, type ChatRole, CodeBlock, type CodeBlockProps, Collapsible, type CollapsibleProps, type ColorName, ColorPicker, type ColorPickerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownLabels, type CountdownProps, type DateCount, type DayGroup, Dialog, type DialogProps, Divider, type DividerProps, EmojiButton, type EmojiButtonProps, EmojiPicker, type EmojiPickerLabels, type EmojiPickerProps, EmptyState, type EmptyStateProps, Fab, type FabProps, FetchProgress, type FetchProgressProps, Field, type FieldProps, FontLinks, type FontName, GrassMap, type GrassMapData, type GrassMapLabels, type GrassMapProps, IOSInstallSheet, IconButton, type IconButtonProps, Img, type ImgProps, InAppSheet, type InAppSheetProps, InlineEdit, type InlineEditProps, Input, type InputProps, type IsoDuration, KitStyles, LinkifiedText, type LinkifiedTextProps, ListRow, type ListRowProps, MediaCard, type MediaCardProps, MessageList, type MessageListProps, PWAInstallButton, type PWAInstallState, PoweredByKit, type PoweredByKitProps, ProgressRing, type ProgressRingProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, type SelectProps, ShareButton, type ShareButtonProps, Skeleton, type SkeletonProps, StatChip, type StatChipProps, type Step, Stepper, type StepperProps, Switch, type SwitchProps, THEME_SCRIPT, Tab, TabBar, type TabBarProps, type TabProps, type TabRootProps, Textarea, type TextareaProps, ThemeButton, type ThemeButtonProps, ThemeDialog, type ThemeDialogLabels, type ThemeDialogProps, type ToastOptions, ToastProvider, type ToastVariant, Tooltip, type TooltipProps, Typewriter, type TypewriterProps, TypingIndicator, type TypingIndicatorProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, type UseFetchOptions, type UseFetchResult, type UseFormSubmitOptions, type UseFormSubmitResult, type UseInViewOptions, type UseInViewResult, type UsePWAInstallReturn, type UsePollingOptions, type UsePollingResult, type UseShareOptions, type UseShareReturn, Watermark, type WatermarkProps, type WatermarkSponsor, clearFetchCache, cn, colors, createApiClient, createManifest, fillDateSeries, fontFamily, fonts, formatDayLabel, formatDollarEok, formatDuration, formatKoreanNumber, formatNumber, formatPrice, formatWon, formatWonTight, getFetchActiveCount, groupByDay, invalidateFetch, isoDurationToSec, mobileViewport, parseIsoDuration, particle, postJson, relativeTime, subscribeFetchActivity, svgIcon, useCopy, useDebounce, useEscapeKey, useFetch, useFocusTrap, useFormSubmit, useImageLoader, useInView, useLocalStorage, usePWAInstall, usePolling, usePortalTarget, useScrollLock, useShare, useToast, watermarkTint, withParticle };
|