@toss/tds-react-native 1.3.8 → 2.0.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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/agreement/Collapsible/AgreementCollapsibleTrigger.d.ts +10 -3
- package/dist/cjs/components/agreement/Collapsible/CollapsibleTrigger.d.ts +9 -3
- package/dist/cjs/components/dropdown/components/FixedFloatingDropdown.js +1 -1
- package/dist/cjs/components/dropdown/components/Trigger.js +1 -1
- package/dist/cjs/components/dropdown/contexts/DropdownContext.d.ts +2 -2
- package/dist/cjs/components/dropdown/types.d.ts +1 -1
- package/dist/cjs/components/highlight/hooks/useTimestampRef.d.ts +1 -1
- package/dist/cjs/components/icon-button/IconButton.d.ts +1 -1
- package/dist/cjs/components/keypad/FullSecureKeypad/SecureKeyButton.js +1 -1
- package/dist/cjs/components/keypad/FullSecureKeypad/index.d.ts +1 -1
- package/dist/cjs/components/navbar/ReactNavigationHelper/HeaderLeft.d.ts +1 -1
- package/dist/cjs/components/navbar/ReactNavigationHelper/HeaderRight.d.ts +1 -1
- package/dist/cjs/components/navbar/ReactNavigationHelper/HeaderTitle.d.ts +1 -1
- package/dist/cjs/components/navbar/ReactNavigationHelper/Right.d.ts +5 -2
- package/dist/cjs/components/navbar/ReactNavigationHelper/Right.js +1 -1
- package/dist/cjs/components/navbar/ReactNavigationHelper/index.d.ts +2 -2
- package/dist/cjs/components/numeric-spinner/useAccelerateInterval.js +1 -1
- package/dist/cjs/components/post/Header.d.ts +4 -4
- package/dist/cjs/components/post/List/PostList.js +1 -1
- package/dist/cjs/components/post/Post.d.ts +4 -4
- package/dist/cjs/components/radio/Radio.d.ts +0 -31
- package/dist/cjs/components/radio/Radio.js +1 -1
- package/dist/cjs/components/radio/index.d.ts +1 -1
- package/dist/cjs/components/radio/index.js +1 -1
- package/dist/cjs/components/search-field/SearchField.d.ts +1 -1
- package/dist/cjs/components/segmented-control/components/Item/Item.js +1 -1
- package/dist/cjs/components/segmented-control/contexts/ScrollContext.d.ts +1 -1
- package/dist/cjs/components/slider/Slider.js +1 -1
- package/dist/cjs/components/text-field/OldTextField/TDSTextField.d.ts +1 -1
- package/dist/cjs/components/text-field/OldTextField/hooks.d.ts +5 -5
- package/dist/cjs/components/text-field/OldTextField/index.d.ts +1 -1
- package/dist/cjs/components/text-field/OldTextField/styles.d.ts +3 -3
- package/dist/cjs/components/text-field/TextField/hooks/useTextFieldClearButtonControls.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldBig/TextFieldBig.Button.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldBig/TextFieldBig.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldHero/TextFieldHero.Button.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldHero/TextFieldHero.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldLine/TextFieldLine.Button.js +1 -1
- package/dist/cjs/components/text-field/TextField/variants/TextFieldLine/TextFieldLine.js +1 -1
- package/dist/cjs/components/toast/hooks/useTextLine.d.ts +1 -1
- package/dist/cjs/components/tooltip/components/Tooltip/FloatingTooltip.js +1 -1
- package/dist/cjs/components/tooltip/contexts/TooltipContext.d.ts +2 -2
- package/dist/cjs/components/tooltip/hooks/useCloseTooltip.js +1 -1
- package/dist/cjs/components/tooltip/hooks/useOnPressOutside.d.ts +1 -1
- package/dist/cjs/components/tooltip/hooks/useOnPressOutside.js +1 -1
- package/dist/cjs/components/txt/Txt.js +1 -1
- package/dist/cjs/core/color/Color.js +1 -1
- package/dist/cjs/core/color/ColorPreference.js +1 -1
- package/dist/cjs/core/contexts/AdaptiveColorProvider.js +1 -1
- package/dist/cjs/core/contexts/ColorPreferenceProvider.js +6 -1
- package/dist/cjs/core/contexts/GlobalEventProvider.js +2 -15
- package/dist/cjs/core/contexts/HideAccessibility.js +1 -1
- package/dist/cjs/core/contexts/SafeAreaProvider.js +1 -1
- package/dist/cjs/core/contexts/TDSProvider.js +4 -1
- package/dist/cjs/core/contexts/TypographyProvider.js +1 -2
- package/dist/cjs/core/contexts/index.js +1 -1
- package/dist/cjs/core/hooks/index.js +5 -1
- package/dist/cjs/core/hooks/useA11yCondition.js +3 -1
- package/dist/cjs/core/hooks/useTypographyLevel.js +2 -1
- package/dist/cjs/core/index.js +1 -1
- package/dist/cjs/core/overlay/OverlayController.js +2 -1
- package/dist/cjs/core/overlay/OverlayProvider.js +1 -1
- package/dist/cjs/core/overlay/_OverlayProvider.js +1 -1
- package/dist/cjs/core/overlay/index.js +1 -1
- package/dist/cjs/core/overlay/types.d.ts +1 -0
- package/dist/cjs/core/overlay/types.js +1 -1
- package/dist/cjs/core/overlay/useOverlay.js +1 -1
- package/dist/cjs/core/overlay/useOverlayBase.js +2 -1
- package/dist/cjs/core/overlay/useOverlayCache.js +1 -1
- package/dist/cjs/core/theme/ThemeProvider.js +1 -1
- package/dist/cjs/core/theme/deriveToken/BaseDerivedTokenGenerator.js +1 -1
- package/dist/cjs/core/theme/deriveToken/batchDerivedTokenGenerators.js +1 -1
- package/dist/cjs/core/theme/deriveToken/deriveToken.js +1 -1
- package/dist/cjs/core/theme/deriveToken/index.js +1 -1
- package/dist/cjs/core/theme/index.js +1 -1
- package/dist/cjs/core/theme/seedToken/index.js +1 -1
- package/dist/cjs/core/theme/seedToken/seedToken.js +1 -1
- package/dist/cjs/extensions/bridge/components/Icon.d.ts +2 -2
- package/dist/cjs/extensions/bridge/useBridge.js +1 -1
- package/dist/cjs/extensions/navigation/Navigation.d.ts +5 -4
- package/dist/cjs/extensions/navigation/Navigation.js +1 -1
- package/dist/cjs/extensions/overlay-extension/components/CapturePress.d.ts +1 -1
- package/dist/cjs/extensions/overlay-extension/components/CapturePress.js +1 -1
- package/dist/cjs/extensions/page-navbar/PageNavbar.d.ts +1 -1
- package/dist/cjs/extensions/tab-view/TabsContext.d.ts +1 -1
- package/dist/cjs/extensions/tab-view/TabsList.js +1 -1
- package/dist/cjs/extensions/tab-view/TabsViews.d.ts +1 -1
- package/dist/cjs/extensions/tab-view/TabsViews.js +1 -1
- package/dist/cjs/extensions/tab-view/hooks/useScrollStateChangedHandler.d.ts +1 -1
- package/dist/cjs/extensions/tab-view/utils/getTabData.js +1 -1
- package/dist/cjs/extensions/top-navigation/TopNavigation.d.ts +4 -16
- package/dist/cjs/extensions/top-navigation/TopNavigation.js +1 -1
- package/dist/cjs/extensions/top-navigation/constants.d.ts +15 -0
- package/dist/cjs/extensions/top-navigation/constants.js +1 -0
- package/dist/cjs/extensions/top-navigation/index.d.ts +1 -0
- package/dist/cjs/extensions/top-navigation/index.js +1 -1
- package/dist/cjs/interactions/pressable-effect/PressableEffect.d.ts +3 -1
- package/dist/cjs/utils/compat.d.ts +17 -0
- package/dist/cjs/utils/compat.js +1 -0
- package/dist/cjs/utils/isReactText.d.ts +2 -2
- package/dist/cjs/utils/mergeRefs.d.ts +2 -1
- package/dist/cjs/utils/testing/index.d.ts +1 -0
- package/dist/cjs/utils/testing/index.js +1 -1
- package/dist/cjs/utils/testing/mockAccessibilityInfo.d.ts +5 -2
- package/dist/cjs/utils/testing/mockAccessibilityInfo.js +1 -1
- package/dist/cjs/utils/testing/mockViewLayout.d.ts +27 -0
- package/dist/cjs/utils/testing/mockViewLayout.js +1 -0
- package/dist/esm/components/agreement/Collapsible/AgreementCollapsibleTrigger.d.ts +10 -3
- package/dist/esm/components/agreement/Collapsible/CollapsibleTrigger.d.ts +9 -3
- package/dist/esm/components/dropdown/components/FixedFloatingDropdown.js +1 -1
- package/dist/esm/components/dropdown/components/Trigger.js +1 -1
- package/dist/esm/components/dropdown/contexts/DropdownContext.d.ts +2 -2
- package/dist/esm/components/dropdown/types.d.ts +1 -1
- package/dist/esm/components/highlight/hooks/useTimestampRef.d.ts +1 -1
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -1
- package/dist/esm/components/keypad/FullSecureKeypad/SecureKeyButton.js +1 -1
- package/dist/esm/components/keypad/FullSecureKeypad/index.d.ts +1 -1
- package/dist/esm/components/navbar/ReactNavigationHelper/HeaderLeft.d.ts +1 -1
- package/dist/esm/components/navbar/ReactNavigationHelper/HeaderRight.d.ts +1 -1
- package/dist/esm/components/navbar/ReactNavigationHelper/HeaderTitle.d.ts +1 -1
- package/dist/esm/components/navbar/ReactNavigationHelper/Right.d.ts +5 -2
- package/dist/esm/components/navbar/ReactNavigationHelper/Right.js +1 -1
- package/dist/esm/components/navbar/ReactNavigationHelper/index.d.ts +2 -2
- package/dist/esm/components/numeric-spinner/useAccelerateInterval.js +1 -1
- package/dist/esm/components/post/Header.d.ts +4 -4
- package/dist/esm/components/post/List/PostList.js +1 -1
- package/dist/esm/components/post/Post.d.ts +4 -4
- package/dist/esm/components/radio/Radio.d.ts +0 -31
- package/dist/esm/components/radio/Radio.js +1 -1
- package/dist/esm/components/radio/index.d.ts +1 -1
- package/dist/esm/components/radio/index.js +1 -1
- package/dist/esm/components/search-field/SearchField.d.ts +1 -1
- package/dist/esm/components/segmented-control/components/Item/Item.js +1 -1
- package/dist/esm/components/segmented-control/contexts/ScrollContext.d.ts +1 -1
- package/dist/esm/components/slider/Slider.js +1 -1
- package/dist/esm/components/text-field/OldTextField/TDSTextField.d.ts +1 -1
- package/dist/esm/components/text-field/OldTextField/hooks.d.ts +5 -5
- package/dist/esm/components/text-field/OldTextField/index.d.ts +1 -1
- package/dist/esm/components/text-field/OldTextField/styles.d.ts +3 -3
- package/dist/esm/components/text-field/TextField/hooks/useTextFieldClearButtonControls.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldBig/TextFieldBig.Button.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldBig/TextFieldBig.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldHero/TextFieldHero.Button.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldHero/TextFieldHero.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldLine/TextFieldLine.Button.js +1 -1
- package/dist/esm/components/text-field/TextField/variants/TextFieldLine/TextFieldLine.js +1 -1
- package/dist/esm/components/toast/hooks/useTextLine.d.ts +1 -1
- package/dist/esm/components/tooltip/components/Tooltip/FloatingTooltip.js +1 -1
- package/dist/esm/components/tooltip/contexts/TooltipContext.d.ts +2 -2
- package/dist/esm/components/tooltip/hooks/useCloseTooltip.js +1 -1
- package/dist/esm/components/tooltip/hooks/useOnPressOutside.d.ts +1 -1
- package/dist/esm/components/tooltip/hooks/useOnPressOutside.js +1 -1
- package/dist/esm/components/txt/Txt.js +17 -1
- package/dist/esm/core/color/Color.js +1 -3
- package/dist/esm/core/contexts/AdaptiveColorProvider.js +1 -1
- package/dist/esm/core/contexts/ColorPreferenceProvider.js +1 -3
- package/dist/esm/core/contexts/GlobalEventProvider.js +1 -1
- package/dist/esm/core/contexts/HideAccessibility.js +1 -1
- package/dist/esm/core/contexts/SafeAreaProvider.js +1 -1
- package/dist/esm/core/contexts/TDSProvider.js +7 -1
- package/dist/esm/core/contexts/TypographyProvider.js +1 -1
- package/dist/esm/core/hooks/useA11yCondition.js +2 -1
- package/dist/esm/core/hooks/useTypographyLevel.js +1 -1
- package/dist/esm/core/overlay/OverlayController.js +1 -1
- package/dist/esm/core/overlay/OverlayProvider.js +1 -1
- package/dist/esm/core/overlay/_OverlayProvider.js +2 -1
- package/dist/esm/core/overlay/types.d.ts +1 -0
- package/dist/esm/core/overlay/useOverlay.js +1 -1
- package/dist/esm/core/overlay/useOverlayBase.js +1 -1
- package/dist/esm/core/theme/ThemeProvider.js +1 -1
- package/dist/esm/core/theme/deriveToken/deriveToken.js +1 -1
- package/dist/esm/core/theme/seedToken/seedToken.js +1 -1
- package/dist/esm/extensions/bridge/components/Icon.d.ts +2 -2
- package/dist/esm/extensions/bridge/useBridge.js +1 -1
- package/dist/esm/extensions/navigation/Navigation.d.ts +5 -4
- package/dist/esm/extensions/navigation/Navigation.js +1 -1
- package/dist/esm/extensions/overlay-extension/components/CapturePress.d.ts +1 -1
- package/dist/esm/extensions/overlay-extension/components/CapturePress.js +1 -1
- package/dist/esm/extensions/page-navbar/PageNavbar.d.ts +1 -1
- package/dist/esm/extensions/tab-view/TabsContext.d.ts +1 -1
- package/dist/esm/extensions/tab-view/TabsList.js +1 -1
- package/dist/esm/extensions/tab-view/TabsViews.d.ts +1 -1
- package/dist/esm/extensions/tab-view/TabsViews.js +1 -1
- package/dist/esm/extensions/tab-view/hooks/useScrollStateChangedHandler.d.ts +1 -1
- package/dist/esm/extensions/tab-view/utils/getTabData.js +1 -1
- package/dist/esm/extensions/top-navigation/TopNavigation.d.ts +4 -16
- package/dist/esm/extensions/top-navigation/TopNavigation.js +1 -1
- package/dist/esm/extensions/top-navigation/constants.d.ts +15 -0
- package/dist/esm/extensions/top-navigation/constants.js +1 -0
- package/dist/esm/extensions/top-navigation/index.d.ts +1 -0
- package/dist/esm/extensions/top-navigation/index.js +1 -1
- package/dist/esm/interactions/pressable-effect/PressableEffect.d.ts +3 -1
- package/dist/esm/utils/compat.d.ts +17 -0
- package/dist/esm/utils/compat.js +1 -0
- package/dist/esm/utils/isReactText.d.ts +2 -2
- package/dist/esm/utils/mergeRefs.d.ts +2 -1
- package/dist/esm/utils/testing/index.d.ts +1 -0
- package/dist/esm/utils/testing/index.js +1 -1
- package/dist/esm/utils/testing/mockAccessibilityInfo.d.ts +5 -2
- package/dist/esm/utils/testing/mockAccessibilityInfo.js +1 -1
- package/dist/esm/utils/testing/mockViewLayout.d.ts +27 -0
- package/dist/esm/utils/testing/mockViewLayout.js +1 -0
- package/package.json +21 -19
- package/dist/cjs/components/checkbox/utils/useId.d.ts +0 -1
- package/dist/cjs/components/checkbox/utils/useId.js +0 -1
- package/dist/esm/components/checkbox/utils/useId.d.ts +0 -1
- package/dist/esm/components/checkbox/utils/useId.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as o}from"react/jsx-runtime";import{useAdaptive as
|
|
1
|
+
"use strict";import{jsx as o}from"react/jsx-runtime";import{useAdaptive as p,useTypographyTheme as a}from"../../../core";import{Icon as y}from"../../icon";import{Txt as f}from"../../txt";import{useMemo as g}from"react";import{StyleSheet as u,TouchableOpacity as s}from"react-native";import{MAX_FONT_SIZE as T,MAX_LINE_HEIGHT as S}from"./constants";import{generateA11yRestProps as c}from"../../../utils/a11y";function x({name:e,type:r,...n}){const t=p();return o(s,{style:m.common,hitSlop:l,...c(n,{role:"button"}),children:o(y,{color:t.grey400,size:24,name:e,type:r})})}function _({children:e,...r}){const n=p(),{typography:t}=a(),h=g(()=>({fontSize:Math.min(t[i].fontSize,T),lineHeight:Math.min(t[i].lineHeight,S)}),[t]);return o(s,{style:[m.common,m.textButton],hitSlop:l,...c(r,{role:"button"}),children:o(f,{typography:i,color:n.grey800,fontWeight:"semiBold",style:h,children:e})})}const i="st10",m=u.create({common:{marginLeft:24},textButton:{marginRight:-4}}),l={left:8,right:8};export{x as RightIconButton,_ as RightTextButton};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BackButton } from './BackButton';
|
|
2
|
-
import { RightTextButton } from './Right';
|
|
2
|
+
import { RightIconButton, RightTextButton } from './Right';
|
|
3
3
|
import { SubtitleTxt, Title, TitleTxt } from './Title';
|
|
4
4
|
import { HeaderLeft } from './HeaderLeft';
|
|
5
5
|
import { HeaderRight } from './HeaderRight';
|
|
@@ -10,7 +10,7 @@ export declare const ReactNavigationNavbar: {
|
|
|
10
10
|
HeaderRight: typeof HeaderRight;
|
|
11
11
|
BackButton: typeof BackButton;
|
|
12
12
|
CloseButton: typeof CloseButton;
|
|
13
|
-
RightIconButton:
|
|
13
|
+
RightIconButton: typeof RightIconButton;
|
|
14
14
|
RightTextButton: typeof RightTextButton;
|
|
15
15
|
HeaderTitle: typeof HeaderTitle;
|
|
16
16
|
TitleTxt: typeof TitleTxt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{useCallback as c,useEffect as i,useRef as n}from"react";export function useAccelerateInterval(u,
|
|
1
|
+
"use strict";import{useCallback as c,useEffect as i,useRef as n}from"react";export function useAccelerateInterval(u,l){const r=n(null),e=n(null),a=n(0);i(()=>{e.current=u},[u]),i(()=>()=>{r.current&&clearTimeout(r.current)},[]);const t=c(({startMs:o,interval:s,minMs:f}=l)=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{e.current&&(e.current(),a.current+=1),t({startMs:o*s,interval:s,minMs:f})},Math.max(o,f))},[l]),m=c(()=>{a.current=0,r.current||t()},[t]),I=c(()=>{r.current&&(clearInterval(r.current),r.current=null)},[]);return{startInterval:m,stopInterval:I}}
|
|
@@ -25,10 +25,10 @@ export interface HeaderPublicProps extends TxtProps {
|
|
|
25
25
|
style?: ViewProps['style'];
|
|
26
26
|
}
|
|
27
27
|
export type PostH1Props = HeaderPublicProps;
|
|
28
|
-
export declare const PostH1: import("react").
|
|
28
|
+
export declare const PostH1: import("react").NamedExoticComponent<HeaderPublicProps & import("react").RefAttributes<Text>>;
|
|
29
29
|
export type PostH2Props = HeaderPublicProps;
|
|
30
|
-
export declare const PostH2: import("react").
|
|
30
|
+
export declare const PostH2: import("react").NamedExoticComponent<HeaderPublicProps & import("react").RefAttributes<Text>>;
|
|
31
31
|
export type PostH3Props = HeaderPublicProps;
|
|
32
|
-
export declare const PostH3: import("react").
|
|
32
|
+
export declare const PostH3: import("react").NamedExoticComponent<HeaderPublicProps & import("react").RefAttributes<Text>>;
|
|
33
33
|
export type PostH4Props = HeaderPublicProps;
|
|
34
|
-
export declare const PostH4: import("react").
|
|
34
|
+
export declare const PostH4: import("react").NamedExoticComponent<HeaderPublicProps & import("react").RefAttributes<Text>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as
|
|
1
|
+
"use strict";import{jsx as i,Fragment as d}from"react/jsx-runtime";import{Children as l,cloneElement as s,isValidElement as f}from"react";import{View as u}from"react-native";import{PreventFontScaling as P}from"../../../extensions/prevent-font-scaling";import{POST_LI as g,POST_OL as c,POST_UL as L}from"../constants";import{PostListProvider as T}from"./PostListProvider";const y=8;export function PostList({listType:r,typography:e="t5",paddingBottom:o=m[r].bottom,style:t,children:p}){return i(P,{limit:160,children:i(T,{listType:r,typography:e,children:i(u,{style:[{paddingTop:m[r].top,paddingRight:m[r].right,paddingBottom:o,paddingLeft:m[r].left},t],children:r==="ol"?i(_,{children:p}):i(x,{children:p})})})})}function _({children:r}){let e=0,o=0;return i(d,{children:l.toArray(r).filter(f).map(t=>{const p=t.type?.displayName,n=o===0?0:y;if(p===g)return e=e+1,o++,s(t,{order:e,...t.props,style:{marginTop:n,...t.props.style}});if(p===c){const a=t.props;return s(t,{...a,paddingBottom:a.paddingBottom??0,style:{marginTop:n,...a.style}})}return t})})}function x({children:r}){let e=0;return i(d,{children:l.toArray(r).filter(f).map(o=>{const t=o.type?.displayName,p=e===0?0:y;if(t===L){e++;const n=o.props;return s(o,{paddingBottom:n.paddingBottom??0,...n,style:{marginTop:p,...n.style}})}if(t===g){e++;const n=o.props;return s(o,{...n,style:{marginTop:p,...n.style}})}return o})})}const m={ol:{top:0,right:24,bottom:24,left:16},ul:{top:0,right:24,bottom:24,left:24}};
|
|
@@ -4,10 +4,10 @@ import { PostOl } from './List/PostOl';
|
|
|
4
4
|
import { PostUl } from './List/PostUl';
|
|
5
5
|
import { PostParagraph } from './Paragraph';
|
|
6
6
|
export declare const Post: {
|
|
7
|
-
H1: import("react").
|
|
8
|
-
H2: import("react").
|
|
9
|
-
H3: import("react").
|
|
10
|
-
H4: import("react").
|
|
7
|
+
H1: import("react").NamedExoticComponent<import("./Header").HeaderPublicProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
8
|
+
H2: import("react").NamedExoticComponent<import("./Header").HeaderPublicProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
9
|
+
H3: import("react").NamedExoticComponent<import("./Header").HeaderPublicProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
10
|
+
H4: import("react").NamedExoticComponent<import("./Header").HeaderPublicProps & import("react").RefAttributes<import("react-native").Text>>;
|
|
11
11
|
Paragraph: typeof PostParagraph;
|
|
12
12
|
Ol: typeof PostOl;
|
|
13
13
|
Li: typeof PostLi;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Control, FieldPathValue, FieldValues, Path, UseControllerProps } from 'react-hook-form';
|
|
3
2
|
import type { RadioOptionProps } from './RadioOption';
|
|
4
3
|
import RadioOption from './RadioOption';
|
|
5
4
|
interface RadioProps<Value> {
|
|
@@ -40,34 +39,4 @@ declare const Radio: {
|
|
|
40
39
|
<Value>({ value, children, disabled, onChange, horizontalMargin }: RadioProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
41
40
|
Option: typeof RadioOption;
|
|
42
41
|
};
|
|
43
|
-
interface RadioInputProps<FormData extends FieldValues, TName extends Path<FormData>, Value extends FieldPathValue<FormData, TName>> extends Omit<RadioProps<Value>, 'onChange' | 'value' | 'children'> {
|
|
44
|
-
/**
|
|
45
|
-
* @typedef { import('react-hook-form').UseControllerProps } UseControllerProps
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* The current selected value in the radio's options
|
|
49
|
-
* @type {UseControllerProps}
|
|
50
|
-
*/
|
|
51
|
-
controlerProps?: Omit<UseControllerProps<FormData, TName>, 'control' | 'name'>;
|
|
52
|
-
control: Control<FormData>;
|
|
53
|
-
name: TName;
|
|
54
|
-
onChange?: (value: Value) => void;
|
|
55
|
-
children: React.ReactNode | React.ReactNode[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* TDS Radio component which work with __useForm__.
|
|
59
|
-
* @see {@link Radio} for more information
|
|
60
|
-
*
|
|
61
|
-
* @export
|
|
62
|
-
* @template Value - The value of the radio option
|
|
63
|
-
* @param RadioInputProps props { children, controlerProps, onChange, horizontalMargin = 0 }. See {@link RadioInputProps}
|
|
64
|
-
* @example
|
|
65
|
-
* const { control, handleSubmit } = useForm();
|
|
66
|
-
* ...
|
|
67
|
-
* <RadioInput control={control} name="field1">
|
|
68
|
-
* <Radio.Option value="1">Option 1</Radio.Option>
|
|
69
|
-
* <Radio.Option value="2">Option 2</Radio.Option>
|
|
70
|
-
* </RadioInput>
|
|
71
|
-
*/
|
|
72
|
-
export declare function RadioInput<FormData extends FieldValues, TName extends Path<FormData>, Value extends FieldPathValue<FormData, TName>>({ controlerProps, control, name, children, ...rest }: RadioInputProps<FormData, TName, Value>): import("react/jsx-runtime").JSX.Element;
|
|
73
42
|
export { Radio };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as
|
|
1
|
+
"use strict";import{jsx as I,jsxs as O}from"react/jsx-runtime";import{colors as m}from"@toss/tds-colors";import r,{useCallback as T,useEffect as V,useRef as p,useState as k}from"react";import{Animated as o,StyleSheet as f}from"react-native";import{useAdaptive as P,useColorPreference as E}from"../../core";import N from"./RadioOption";const _={shadowColor:"#000",shadowOffset:{width:1,height:1},shadowOpacity:.09,shadowRadius:1,elevation:1},j={stiffness:150,damping:20,mass:1,overshootClamping:!1,restSpeedThreshold:.001,restDisplacementThreshold:.001},A=1,h=({value:a,children:i,disabled:y=!1,onChange:l,horizontalMargin:v=0})=>{const[s,S]=k(0),n=r.Children.map(i,e=>e.props),b=n.length,d=s/b,c=n.findIndex(e=>e.value===a),u=p(!0),t=p(new o.Value(0)).current,w=r.useCallback(e=>{l(e)},[l]),C=T(e=>{o.spring(t,{toValue:e,useNativeDriver:!0,...j}).start()},[t]);V(()=>{if(s===0)return;const e=c*(d*A);u.current===!0?(t.setValue(e),u.current=!1):C(e)},[c,d]);const R=P(),{colorPreference:x}=E();return O(o.View,{style:[g.defaultSegmentedControlWrapper,{backgroundColor:R.grey100,marginHorizontal:v}],onLayout:e=>{S(e.nativeEvent.layout.width)},accessibilityRole:"radiogroup",children:[I(o.View,{style:[g.movingSegmentStyle,_,f.absoluteFill,{backgroundColor:x==="light"?m.inverseGrey900:m.inverseGrey300,width:s/n.length-8},{transform:[{translateX:t}]}]}),r.Children.map(i,e=>r.cloneElement(e,{checked:e.props.value===a,disabled:e.props.disabled??y,onPress:w}))]})},g=f.create({defaultSegmentedControlWrapper:{position:"relative",display:"flex",flexDirection:"row",alignItems:"center",borderRadius:24,height:48},movingSegmentStyle:{top:0,marginVertical:4,marginHorizontal:4,borderRadius:20}});h.Option=N;export{h as Radio};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Radio
|
|
1
|
+
export { Radio } from './Radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export{Radio
|
|
1
|
+
"use strict";export{Radio}from"./Radio";
|
|
@@ -4,5 +4,5 @@ declare const SearchField: React.ForwardRefExoticComponent<{
|
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
hasClearButton?: boolean;
|
|
7
|
-
} & AccessibilityProps & Pick<import("react-native").TextInputProps, "defaultValue" | "value" | "onChange" | "
|
|
7
|
+
} & AccessibilityProps & Pick<import("react-native").TextInputProps, "defaultValue" | "value" | "onChange" | "autoFocus" | "editable" | "keyboardType" | "maxLength" | "placeholder"> & React.RefAttributes<TextInput>>;
|
|
8
8
|
export default SearchField;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as o}from"react/jsx-runtime";import{useCallback as y,useContext as u,useEffect as C,useState as E}from"react";import{View as T}from"react-native";import{useAdaptive as
|
|
1
|
+
"use strict";import{jsx as o}from"react/jsx-runtime";import{useCallback as y,useContext as u,useEffect as C,useState as E}from"react";import{View as T}from"react-native";import{useAdaptive as j}from"../../../../core";import{PreventFontScaling as A}from"../../../../extensions/prevent-font-scaling";import{PressableEffect as I}from"../../../../interactions/pressable-effect";import{Root as R,Text as V}from"../../../paragraph";import{AlignmentContext as w}from"../../contexts/AlignmentContext";import{RadioContext as F}from"../../contexts/RadioContext";import{useItemStyle as k}from"./useItemStyle";export function Item({style:f,children:p,value:n,disabled:g=!1,size:h,...b}){const{ensureFluidAlignment:x}=u(w),[i,S]=E(null),{setSelectedValue:c,selectedValue:v,setSelectedElementLayout:s,disabled:L}=u(F),t=L||g,l=k({size:h,disabled:t}),r=j(),e=v===n,P=y(()=>{c(n)},[n,c]),m=y(()=>{i!=null&&s(i)},[i,s]);return C(()=>{e&&m()},[e,m]),o(I,{onPress:t||e?void 0:P,onLayout:a=>{const d=a.nativeEvent.layout;S(d),e&&s(d)},style:[l.containerStyle,f],accessibilityRole:"radio",accessibilityState:{selected:e,disabled:t},disabled:t,...b,children:o(T,{style:{justifyContent:"center",alignItems:"center"},children:o(A,{limit:140,children:o(R,{typography:l.labelTypography,style:l.labelStyle,onTextLayout:a=>{x(a.nativeEvent.lines.length>1)},children:o(V,{color:t?r.grey400:e?r.grey800:r.grey600,fontWeight:e?"semiBold":"medium",children:p})})})})})}
|
|
@@ -2,7 +2,7 @@ import type { ReactNode, RefObject } from 'react';
|
|
|
2
2
|
import type { NativeScrollEvent, NativeSyntheticEvent, ScrollView } from 'react-native';
|
|
3
3
|
type ScrollHandlers = Set<(event: NativeSyntheticEvent<NativeScrollEvent>) => void>;
|
|
4
4
|
interface ScrollContextValues {
|
|
5
|
-
ref: RefObject<ScrollView> | null;
|
|
5
|
+
ref: RefObject<ScrollView | null> | null;
|
|
6
6
|
scrollHandlers: ScrollHandlers;
|
|
7
7
|
}
|
|
8
8
|
export declare const ScrollContext: import("react").Context<ScrollContextValues>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as l,jsxs as L}from"react/jsx-runtime";import{Gesture as G,GestureDetector as M}from"@granite-js/native/react-native-gesture-handler";import{colors as N}from"@toss/tds-colors";import{forwardRef as X,useEffect as w,useMemo as
|
|
1
|
+
"use strict";import{jsx as l,jsxs as L}from"react/jsx-runtime";import{Gesture as G,GestureDetector as M}from"@granite-js/native/react-native-gesture-handler";import{colors as N}from"@toss/tds-colors";import{forwardRef as X,useEffect as w,useMemo as F,useRef as I,useState as _}from"react";import{Animated as h,View as R}from"react-native";import{styles as d}from"./styles";import{useScreenReaderMode as C}from"./useA11yMode";import{clamp as E,getNearestSteppedValue as D}from"./utils";export const Slider=X(function({min:r=0,max:o=100,value:s=r+o/2,step:c=1,onChange:f,color:k=N.blue400,style:S,...g},A){if(!Number.isInteger(c)||c<=0)throw new Error("step\uC740 \uC591\uC758 \uC815\uC218\uB9CC \uC0AC\uC6A9\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4");const[i,y]=_({container:0,thumb:0}),a=I(new h.Value(0)).current,u=i.container!==0&&i.thumb!==0,W=e=>{const t=i.container,n=i.thumb,m=t-n;return e===void 0||t===0||n===0||e<=n/2?r:e>=t-n/2?o:D(r+(o-r)*((e-n/2)/m),r,o,c)},b=e=>{const t=i.container,n=i.thumb,m=t-n;return(e-r)/(o-r)*m},p=e=>{const t=W(e);f?.(t),a.setValue(b(t))},j=F(()=>G.Pan().onUpdate(e=>{p(e.x)}).onStart(e=>{p(e.x)}),[u]);w(()=>{u&&a.setValue(b(s))},[u]);const V=C();w(()=>{V&&a.setValue(b(s))},[V,s]);const v=e=>{switch(e.nativeEvent.actionName){case"increment":f?.(E(s+c,r,o));break;case"decrement":f?.(E(s-c,r,o));break;default:break}};return l(M,{gesture:j,children:L(R,{ref:A,style:[d.slider,S],onLayout:e=>{const{width:t}=e.nativeEvent.layout;y(n=>({...n,container:t}))},accessible:!0,accessibilityRole:"adjustable",accessibilityValue:{min:r,max:o,now:s},accessibilityActions:[{name:"increment"},{name:"decrement"}],accessibilityLiveRegion:"polite",onAccessibilityAction:v,...g,children:[l(R,{style:d.track,pointerEvents:"none",children:l(h.View,{style:[d.progress,{backgroundColor:k,transform:[{translateX:a}]}]})}),l(h.View,{onLayout:e=>{const{width:t}=e.nativeEvent.layout;y(n=>({...n,thumb:t}))},style:[d.thumb,{opacity:u?1:0,transform:[{translateX:a}]}],pointerEvents:"none"})]})})});
|
|
@@ -8,6 +8,6 @@ export type TDSTextFieldState = 'default' | 'focused' | 'error' | 'disabled';
|
|
|
8
8
|
export type TDSTextFieldProps = Omit<ComponentProps<typeof TextInput>, 'clearButtonMode'> & Omit<TDSTextFieldContainerProps, 'focus' | 'children' | 'onPress'> & Pick<TDSTextFieldContentProps, 'leftItem' | 'rightItem'> & {
|
|
9
9
|
contentStyle?: StyleProp<ViewStyle>;
|
|
10
10
|
};
|
|
11
|
-
export declare const TDSTextField: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "clearButtonMode"> & Omit<TDSTextFieldContainerProps, "children" | "
|
|
11
|
+
export declare const TDSTextField: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "clearButtonMode"> & Omit<TDSTextFieldContainerProps, "children" | "onPress" | "focus"> & Pick<TDSTextFieldContentProps, "leftItem" | "rightItem"> & {
|
|
12
12
|
contentStyle?: StyleProp<ViewStyle>;
|
|
13
13
|
} & import("react").RefAttributes<TextInput>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { TDSTextFieldSize, TDSTextFieldState } from './TDSTextField';
|
|
2
2
|
export declare function useElementStyle(size: TDSTextFieldSize, state: TDSTextFieldState): {
|
|
3
3
|
label: Omit<import("react-native").TextStyle, "color"> & {
|
|
4
|
-
color
|
|
4
|
+
color?: import("../../txt").TxtStyleProps["color"];
|
|
5
5
|
};
|
|
6
6
|
input: Omit<import("react-native").TextStyle, "color"> & {
|
|
7
|
-
color
|
|
7
|
+
color?: import("../../txt").TxtStyleProps["color"];
|
|
8
8
|
};
|
|
9
9
|
inputContainer: Omit<import("react-native").ViewStyle, "borderBottomColor" | "backgroundColor"> & {
|
|
10
|
-
borderBottomColor
|
|
11
|
-
backgroundColor
|
|
10
|
+
borderBottomColor?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
12
|
};
|
|
13
13
|
helpText: Omit<import("react-native").TextStyle, "color"> & {
|
|
14
|
-
color
|
|
14
|
+
color?: import("../../txt").TxtStyleProps["color"];
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TDSTextFieldItem } from './TDSTextFieldItem';
|
|
2
2
|
import { TextFieldSelectButton } from './TDSTextFieldSelectButton';
|
|
3
3
|
/** @deprecated */
|
|
4
|
-
declare const OldTextField: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "clearButtonMode"> & Omit<import("./TDSTextFieldContainer").TDSTextFieldContainerProps, "children" | "
|
|
4
|
+
declare const OldTextField: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "clearButtonMode"> & Omit<import("./TDSTextFieldContainer").TDSTextFieldContainerProps, "children" | "onPress" | "focus"> & Pick<import("./TDSTextFieldContent").TDSTextFieldContentProps, "leftItem" | "rightItem"> & {
|
|
5
5
|
contentStyle?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
6
6
|
} & import("react").RefAttributes<import("react-native").TextInput>>;
|
|
7
7
|
/** @deprecated */
|
|
@@ -2,7 +2,7 @@ import type { TextStyle, ViewStyle } from 'react-native';
|
|
|
2
2
|
import type { TxtStyleProps } from '../../txt';
|
|
3
3
|
import type { TDSTextFieldSize, TDSTextFieldState } from './TDSTextField';
|
|
4
4
|
type TextStyleByVariant = Record<`${TDSTextFieldSize}-${TDSTextFieldState}`, Omit<TextStyle, 'color'> & {
|
|
5
|
-
color
|
|
5
|
+
color?: TxtStyleProps['color'];
|
|
6
6
|
}>;
|
|
7
7
|
export declare const getLabelStyle: ({ grey700, grey800 }: {
|
|
8
8
|
grey700: string;
|
|
@@ -14,8 +14,8 @@ export declare const getHelpTextStyle: ({ grey500, grey600, grey700, }: {
|
|
|
14
14
|
grey700: string;
|
|
15
15
|
}) => TextStyleByVariant;
|
|
16
16
|
type ViewStyleByVariant = Record<`${TDSTextFieldSize}-${TDSTextFieldState}`, Omit<ViewStyle, 'borderBottomColor' | 'backgroundColor'> & {
|
|
17
|
-
borderBottomColor
|
|
18
|
-
backgroundColor
|
|
17
|
+
borderBottomColor?: string;
|
|
18
|
+
backgroundColor?: string;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const getInputContainerStyle: ({ grey50, grey100, grey200, }: {
|
|
21
21
|
grey50: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{useCallback as s,useRef as l,useState as c}from"react";import{hasValue as a}from"../utils/hasValue";import{useIsMountedRef as f}from"./useIsMountedRef";export function useTextFieldClearButtonControls(
|
|
1
|
+
"use strict";import{useCallback as s,useRef as l,useState as c}from"react";import{hasValue as a}from"../utils/hasValue";import{useIsMountedRef as f}from"./useIsMountedRef";export function useTextFieldClearButtonControls(n){const[o,t]=c(!1),u=f(),e=l(null),r=s(()=>{t(!0)},[]),i=s(()=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{u.mounted&&t(!1)},100)},[u]);return{isVisible:o&&a(n.value),onInputFocus:r,onInputBlur:i}}
|
package/dist/esm/components/text-field/TextField/variants/TextFieldBig/TextFieldBig.Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{
|
|
1
|
+
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{forwardRef as b,useState as w}from"react";import{Pressable as W,StyleSheet as v,View as f}from"react-native";import{useAdaptive as S}from"../../../../../core";import{Txt as u}from"../../../../txt";import{TextFieldButtonArrow as j}from"../../components/TextFieldButtonArrow";import{TextFieldButtonText as D}from"../../components/TextFieldButtonText";import{TextFieldContainer as L}from"../../components/TextFieldContainer";import{TextFieldHelp as V}from"../../components/TextFieldHelp";import{TextFieldLabel as R}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as k}from"../../hooks/useLabelControls";import{useTextFieldDefaultLineBorderColor as A}from"../../hooks/useTextFieldDefaultLineBorderColor";import{useTextFieldDefaultPlaceholderColor as G}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as H}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as I}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as P}from"../../hooks/useTextFieldValueControls";export const TextFieldBigButton=b(function({prefix:n,right:h,suffix:d,placeholder:x,style:q,containerStyle:g,...e},p){const l=S(),[o,a]=w(!1),{value:c}=P(e),y=c!=="",s=k(e,o),B=I(e,o),C=A(e,o),T=G(e,o),F=H(e,o);return m(L,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:g,children:[t(R,{color:s.color,opacity:s.opacity,children:e.label}),t(W,{ref:p,accessibilityState:{disabled:e.disabled},accessibilityRole:"button",onFocus:r=>{e.onFocus?.(r),a(!0)},onBlur:r=>{e.onBlur?.(r),a(!1)},...e,children:m(f,{style:[i.inputContainer,{borderBottomWidth:2,borderBottomColor:C}],children:[n?t(u,{typography:"t1",fontWeight:"semiBold",color:l.grey800,style:i.prefix,children:n}):null,t(D,{typography:"t1",fontWeight:"semiBold",placeholder:x,placeholderColor:T,color:F,style:{flexGrow:1},children:c}),d?t(u,{typography:"t1",fontWeight:"semiBold",color:y?l.grey800:l.grey500,children:d}):null,t(f,{style:i.rightContainer,children:h??t(j,{})})]})}),e.help!=null?t(V,{color:B.color,children:e.help}):null]})});const i=v.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as o,jsxs as f}from"react/jsx-runtime";import{forwardRef as
|
|
1
|
+
"use strict";import{jsx as o,jsxs as f}from"react/jsx-runtime";import{forwardRef as v,useState as S}from"react";import{StyleSheet as W,TextInput as j,View as h}from"react-native";import{useAdaptive as D,useTypographyTheme as L}from"../../../../../core";import{Txt as u}from"../../../../txt";import{TextFieldContainer as V}from"../../components/TextFieldContainer";import{TextFieldHelp as I}from"../../components/TextFieldHelp";import{TextFieldLabel as k}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as z}from"../../hooks/useLabelControls";import{useTextFieldDefaultLineBorderColor as G}from"../../hooks/useTextFieldDefaultLineBorderColor";import{useTextFieldDefaultPlaceholderColor as H}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as R}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as _}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as A}from"../../hooks/useTextFieldValueControls";export const TextFieldBig=v(function({prefix:n,right:a,suffix:d,style:g,containerStyle:x,...e},p){const l=D(),{typography:y}=L(),[t,c]=S(!1),{value:s,onChangeText:T}=A(e),C=s!=="",m=z(e,t),F=_(e,t),B=G(e,t),b=H(e,t),w=R(e,t);return f(V,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:x,children:[o(k,{color:m.color,opacity:m.opacity,children:e.label}),f(h,{style:[i.inputContainer,{borderBottomWidth:2,borderBottomColor:B}],children:[n?o(u,{typography:"t1",fontWeight:"semiBold",color:l.grey800,style:i.prefix,children:n}):null,o(j,{...e,ref:p,value:s,editable:e.editable??!e.disabled,placeholderTextColor:b,onChangeText:T,onFocus:r=>{e.onFocus?.(r),c(!0)},onBlur:r=>{e.onFocus?.(r),c(!1)},style:[{flexGrow:1,flexBasis:0,fontWeight:"600",fontSize:y.t1.fontSize,color:w,padding:0},g]}),d?o(u,{typography:"t1",fontWeight:"semiBold",color:C?l.grey800:l.grey500,children:d}):null,a?o(h,{style:i.rightContainer,children:a}):null]}),e.help!=null?o(I,{color:F.color,children:e.help}):null]})});const i=W.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
package/dist/esm/components/text-field/TextField/variants/TextFieldHero/TextFieldHero.Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{
|
|
1
|
+
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{forwardRef as b,useState as B}from"react";import{Pressable as w,StyleSheet as v,View as f}from"react-native";import{useAdaptive as S}from"../../../../../core";import{Txt as h}from"../../../../txt";import{TextFieldButtonArrow as W}from"../../components/TextFieldButtonArrow";import{TextFieldButtonText as j}from"../../components/TextFieldButtonText";import{TextFieldContainer as H}from"../../components/TextFieldContainer";import{TextFieldHelp as V}from"../../components/TextFieldHelp";import{TextFieldLabel as D}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as L}from"../../hooks/useLabelControls";import{useTextFieldDefaultPlaceholderColor as R}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as k}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as A}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as G}from"../../hooks/useTextFieldValueControls";export const TextFieldHeroButton=b(function({prefix:n,right:u,suffix:d,placeholder:x,containerStyle:g,style:P,...e},p){const l=S(),[o,a]=B(!1),{value:c}=G(e),y=c!=="",s=L(e,o),T=A(e,o),C=k(e,o),F=R(e,o);return m(H,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:g,children:[t(D,{color:s.color,opacity:s.opacity,children:e.label}),t(w,{ref:p,accessibilityState:{disabled:e.disabled},accessibilityRole:"button",onFocus:r=>{e.onFocus?.(r),a(!0)},onBlur:r=>{e.onBlur?.(r),a(!1)},...e,children:m(f,{style:[i.inputContainer],children:[n?t(h,{typography:"t1",fontWeight:"semiBold",color:l.grey800,style:i.prefix,children:n}):null,t(j,{typography:"t1",fontWeight:"semiBold",placeholder:x,placeholderColor:F,color:C,style:{flexGrow:1},children:c}),d?t(h,{typography:"t1",fontWeight:"semiBold",color:y?l.grey800:l.grey500,children:d}):null,t(f,{style:i.rightContainer,children:u??t(W,{})})]})}),e.help!=null?t(V,{color:T.color,children:e.help}):null]})});const i=v.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{forwardRef as w,useState as
|
|
1
|
+
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{forwardRef as w,useState as v}from"react";import{StyleSheet as S,TextInput as W,View as h}from"react-native";import{useAdaptive as j,useTypographyTheme as H}from"../../../../../core";import{Txt as u}from"../../../../txt";import{TextFieldContainer as V}from"../../components/TextFieldContainer";import{TextFieldHelp as D}from"../../components/TextFieldHelp";import{TextFieldLabel as I}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as L}from"../../hooks/useLabelControls";import{useTextFieldDefaultPlaceholderColor as k}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as z}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as G}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as R}from"../../hooks/useTextFieldValueControls";export const TextFieldHero=w(function({prefix:n,right:a,suffix:d,containerStyle:x,style:g,...e},p){const l=j(),{typography:y}=H(),[o,c]=v(!1),{value:s,onChangeText:T}=R(e),C=s!=="",f=L(e,o),F=G(e,o),b=z(e,o),B=k(e,o);return m(V,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:x,children:[t(I,{color:f.color,opacity:f.opacity,children:e.label}),m(h,{style:[r.inputContainer],children:[n?t(u,{typography:"t1",fontWeight:"semiBold",color:l.grey800,style:r.prefix,children:n}):null,t(W,{...e,ref:p,value:s,editable:e.editable??!e.disabled,placeholderTextColor:B,onChangeText:T,onFocus:i=>{e.onFocus?.(i),c(!0)},onBlur:i=>{e.onFocus?.(i),c(!1)},style:[{flexGrow:1,flexBasis:0,fontWeight:"600",fontSize:y.t1.fontSize,color:b,padding:0},g]}),d?t(u,{typography:"t1",fontWeight:"semiBold",color:C?l.grey800:l.grey500,children:d}):null,a?t(h,{style:r.rightContainer,children:a}):null]}),e.help!=null?t(D,{color:F.color,children:e.help}):null]})});const r=S.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
package/dist/esm/components/text-field/TextField/variants/TextFieldLine/TextFieldLine.Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{
|
|
1
|
+
"use strict";import{jsx as t,jsxs as m}from"react/jsx-runtime";import{forwardRef as b,useState as w}from"react";import{Pressable as L,StyleSheet as W,View as f}from"react-native";import{useAdaptive as v}from"../../../../../core";import{Txt as u}from"../../../../txt";import{TextFieldButtonArrow as S}from"../../components/TextFieldButtonArrow";import{TextFieldButtonText as j}from"../../components/TextFieldButtonText";import{TextFieldContainer as D}from"../../components/TextFieldContainer";import{TextFieldHelp as V}from"../../components/TextFieldHelp";import{TextFieldLabel as R}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as k}from"../../hooks/useLabelControls";import{useTextFieldDefaultLineBorderColor as A}from"../../hooks/useTextFieldDefaultLineBorderColor";import{useTextFieldDefaultPlaceholderColor as G}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as H}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as I}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as P}from"../../hooks/useTextFieldValueControls";export const TextFieldLineButton=b(function({prefix:n,right:h,suffix:d,containerStyle:x,placeholder:g,style:q,...e},p){const l=v(),[o,a]=w(!1),{value:c}=P(e),y=c!=="",s=k(e,o),C=I(e,o),T=A(e,o),B=G(e,o),F=H(e,o);return m(D,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:x,children:[t(R,{color:s.color,opacity:s.opacity,children:e.label}),t(L,{ref:p,accessibilityState:{disabled:e.disabled},accessibilityRole:"button",onFocus:r=>{e.onFocus?.(r),a(!0)},onBlur:r=>{e.onBlur?.(r),a(!1)},...e,children:m(f,{style:[i.inputContainer,{borderBottomWidth:2,borderBottomColor:T}],children:[n?t(u,{fontWeight:"semiBold",typography:"t3",color:l.grey800,style:i.prefix,children:n}):null,t(j,{typography:"t3",fontWeight:"semiBold",placeholder:g,placeholderColor:B,color:F,style:{flexGrow:1},children:c}),d?t(u,{fontWeight:"semiBold",typography:"t3",color:y?l.grey800:l.grey500,children:d}):null,t(f,{style:i.rightContainer,children:h??t(S,{})})]})}),e.help!=null?t(V,{color:C.color,children:e.help}):null]})});const i=W.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as o,jsxs as f}from"react/jsx-runtime";import{forwardRef as
|
|
1
|
+
"use strict";import{jsx as o,jsxs as f}from"react/jsx-runtime";import{forwardRef as v,useState as L}from"react";import{StyleSheet as S,TextInput as W,View as h}from"react-native";import{useAdaptive as j,useTypographyTheme as D}from"../../../../../core";import{Txt as u}from"../../../../txt";import{TextFieldContainer as V}from"../../components/TextFieldContainer";import{TextFieldHelp as I}from"../../components/TextFieldHelp";import{TextFieldLabel as k}from"../../components/TextFieldLabel";import{useTextFieldLabelControls as z}from"../../hooks/useLabelControls";import{useTextFieldDefaultLineBorderColor as G}from"../../hooks/useTextFieldDefaultLineBorderColor";import{useTextFieldDefaultPlaceholderColor as H}from"../../hooks/useTextFieldDefaultPlaceholderColor";import{useTextFieldDefaultTextColor as R}from"../../hooks/useTextFieldDefaultTextColor";import{useTextFieldHelpControls as _}from"../../hooks/useTextFieldHelpControls";import{useTextFieldValueControls as A}from"../../hooks/useTextFieldValueControls";export const TextFieldLine=v(function({prefix:n,right:a,suffix:d,containerStyle:x,style:g,...e},p){const l=j(),{typography:y}=D(),[t,c]=L(!1),{value:s,onChangeText:T}=A(e),C=s!=="",m=z(e,t),F=_(e,t),b=G(e,t),B=H(e,t),w=R(e,t);return f(V,{paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,style:x,children:[o(k,{color:m.color,opacity:m.opacity,children:e.label}),f(h,{style:[i.inputContainer,{borderBottomWidth:2,borderBottomColor:b}],children:[n?o(u,{fontWeight:"semiBold",typography:"t3",color:l.grey800,style:i.prefix,children:n}):null,o(W,{...e,ref:p,value:s,editable:e.editable??!e.disabled,placeholderTextColor:B,onChangeText:T,onFocus:r=>{e.onFocus?.(r),c(!0)},onBlur:r=>{e.onFocus?.(r),c(!1)},style:[{flexGrow:1,flexBasis:0,fontWeight:"600",fontSize:y.t3.fontSize,color:w,padding:0},g]}),d?o(u,{fontWeight:"semiBold",typography:"t3",color:C?l.grey800:l.grey500,children:d}):null,a?o(h,{style:i.rightContainer,children:a}):null]}),e.help!=null?o(I,{color:F.color,children:e.help}):null]})});const i=S.create({labelContainer:{paddingBottom:6},prefix:{paddingRight:8},inputContainer:{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:"transparent",paddingBottom:4,paddingVertical:0,position:"relative",overflow:"hidden",fontWeight:600,width:"100%",borderWidth:0},rightContainer:{display:"flex",alignItems:"center",marginLeft:8,flexGrow:0,flexShrink:0}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type TextLine = 'single' | 'multiple';
|
|
2
2
|
export declare const useTextLine: () => {
|
|
3
3
|
textLine: TextLine;
|
|
4
|
-
updateTextLine: (event: import("react-native").
|
|
4
|
+
updateTextLine: (event: import("react-native").TextLayoutEvent) => void;
|
|
5
5
|
};
|
|
6
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as e,jsxs as
|
|
1
|
+
"use strict";import{jsx as e,jsxs as b}from"react/jsx-runtime";import{AnimateRallyPresence as k}from"../../../../interactions/rally";import{useAdaptive as O}from"../../../../core";import*as q from"../../../paragraph";import{cloneElement as z,forwardRef as x,useEffect as D,useMemo as I,useRef as G,useState as T}from"react";import{Dimensions as J,Pressable as K,StyleSheet as N,View as p}from"react-native";import{useTooltip as A}from"../../contexts/TooltipContext";import{useAnchorPosition as Q}from"../../hooks/useAnchorPosition";import{useOnPressOutside as U}from"../../hooks/useOnPressOutside";import{mergeRefs as H}from"../../utils/mergeRefs";import{Anchor as X}from"./Anchor";import{getTooltipStyle as Y,TooltipBase as Z}from"./TooltipBase";function W(f){return new Promise(i=>{f.measure((r,n,s,o)=>{i({width:s,height:o})})})}export const FloatingTooltip=x(function({open:i,children:r,...n},s){const{targetRef:o}=A(),a=r.ref,l=r.props,u=z(r,{...l,collapsable:!1,onPress:()=>{n.onChildrenPress?.(),l?.onPress?.()},ref:a!=null?H(a,o):o});return b(p,{style:{position:"relative",zIndex:9e3},children:[u,e(k,{children:i&&e(p,{style:[N.absoluteFill,{width:J.get("window").width}],pointerEvents:"box-none",children:e($,{ref:s,...n})})})]})});const $=x(function({message:i,messageAlign:r,placement:n,contentPositionByRatio:s,size:o="medium",motion:a,onPress:l,onPressOutside:u},v){const c=G(null),y=O(),{targetRef:P,offset:h}=A(),[d,F]=T(null),[g,S]=T(null),t=I(()=>Y(o),[o]),C=H(v,c),E=Q({anchorPositionByRatio:s,anchorWidth:t.anchorWidth,tooltipWidth:g?.width??0,size:o});return U({ref:c,onPressOutside:u}),D(()=>{function m(){const w=P?.current,R=c.current;w!=null&&R!=null&&h!=null&&(async()=>{const{width:L,height:_}=await W(w),{width:j,height:B}=await W(R),M=L/2-j/2,V=n==="top"?-B-h-t.anchorHeight:_+t.anchorHeight+h;F({left:M,top:V})})()}requestAnimationFrame(()=>{m()})},[P,n,t,h]),d==null||g==null?e(K,{ref:C,collapsable:!1,pointerEvents:"box-only",style:{opacity:0,position:"absolute",backgroundColor:y.floatBackground,borderRadius:t.borderRadius,paddingHorizontal:t.paddingHorizontal/2,paddingVertical:t.paddingVertical/2},onLayout:m=>{S(m.nativeEvent.layout)},onPress:l,children:b(p,{children:[e(p,{style:{position:"absolute",width:t.anchorWidth,height:t.anchorHeight},children:e(X,{size:o})}),e(q.Text,{typography:t.typography,color:y.grey800,fontWeight:t.fontWeight,children:i})]})}):e(Z,{ref:c,size:o,placement:n,messageAlign:r,message:i,motion:a,left:d.left,top:d.top,contentHeight:g.height,anchorMarginLeft:E,onPress:l})});
|
|
@@ -9,8 +9,8 @@ interface TooltipProviderProps {
|
|
|
9
9
|
autoFlip?: boolean;
|
|
10
10
|
}
|
|
11
11
|
interface State {
|
|
12
|
-
targetRef: RefObject<View> | null;
|
|
13
|
-
floatingRef: RefObject<View> | null;
|
|
12
|
+
targetRef: RefObject<View | null> | null;
|
|
13
|
+
floatingRef: RefObject<View | null> | null;
|
|
14
14
|
flipped: boolean;
|
|
15
15
|
offset: number;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{useEffect as c,useRef as f}from"react";export function useCloseTooltip({open:r,duration:u,onClose:t}){const e=f();c(()=>(r&&t&&(e.current=setTimeout(()=>{t()},u)),()=>{e.current&&clearTimeout(e.current)}),[t,u,r])}
|
|
1
|
+
"use strict";import{useEffect as c,useRef as f}from"react";export function useCloseTooltip({open:r,duration:u,onClose:t}){const e=f(null);c(()=>(r&&t&&(e.current=setTimeout(()=>{t()},u)),()=>{e.current&&clearTimeout(e.current)}),[t,u,r])}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{useGlobalEvent as
|
|
1
|
+
"use strict";import{useGlobalEvent as d}from"../../../core";import{useEffect as u}from"react";import{findNodeHandle as i}from"react-native";import{selectByRNVersion as a}from"../../../utils/compat";export const useOnPressOutside=({ref:t,onPressOutside:e,interactive:l})=>{const o=d();u(()=>{if(e&&t.current!=null){const r=s=>{a({"0.84":()=>{s.target!==t.current&&e()},"0.72":()=>{const n=i(s.target),c=i(t.current);n!==c&&e()}})};return o.addEventListener("touchEnd",r),()=>{o.removeEventListener("touchEnd",r)}}},[t,e,l,o])};
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const a=i;(function(u,t){const x=i,f=u();for(;;)try{if(-parseInt(x(148))/1*(parseInt(x(133))/2)+parseInt(x(136))/3*(parseInt(x(131))/4)+-parseInt(x(149))/5+-parseInt(x(138))/6*(-parseInt(x(153))/7)+-parseInt(x(147))/8*(parseInt(x(137))/9)+parseInt(x(129))/10*(-parseInt(x(127))/11)+-parseInt(x(134))/12===t)break;f.push(f.shift())}catch{f.push(f.shift())}})(p,778182);function e(u){const t=i;let x="";for(let f=0;f<u.length;f++)x+=String[t(146)](u.charCodeAt(f)^146);return x}function c(u){let t="";for(let x=0;x<u.length;x++)t+=String.fromCharCode(u.charCodeAt(x)^205);return t}function b(u){let t="";for(let x=0;x<u.length;x++)t+=String.fromCharCode(u.charCodeAt(x)^235);return t}function p(){const u=['i&)(a%!r%o"]jvzUYJ0Ufmh`lh_',"6LnvxLO","639gwBYZB","84Fyxgnw",'$>A@y=9-=*:u%15mqbHf%""-',"\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9","\xC3\xC2\xDF\xC0\xCC\xC1","\v\x071","\xFF\xF7\xF6\xFB\xE7\xFF","\xFD\xEA\xE8\xFA\xE3\xEE\xFD","\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C","fromCharCode","34856KPkEYr","1vnSzLV","486890CUitZv","\xE1\xE6\xEB\xFE\xF7"," u$y)|<(|!o",'(BED A=1A.>y)59qufL`/+"',"647731WGgjPz","\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",`,,
|
|
2
|
+
\x07`,"\x9A\x97\x94\x9C","\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB","76461OuPOSJ","LfihDeaUeRb@MY]8<-p8IPKCOKB","1250WOgmXB","function","2985944FJHTvX",'z7:9r62&6#3n{*.fj[Aewx({o"',"965084dCimMT","3025320AKqbwy"];return p=function(){return u},p()}function o(u){let t="";for(let x=0;x<u.length;x++)t+=String.fromCharCode(u.charCodeAt(x)^248);return t}function n(u){const t=i;let x="";for(let f=0;f<u.length;f++)x+=String[t(146)](u.charCodeAt(f)^115);return x}function r(u){let t="";for(let x=0;x<u.length;x++)t+=String.fromCharCode(u.charCodeAt(x)^173);return t}function l(u){let t="";for(let x=0;x<u.length;x++)t+=String.fromCharCode(u.charCodeAt(x)^143);return t}import{jsx as I}from"react/jsx-runtime";import{forwardRef as A}from"react";import{Platform as O,StyleSheet as P,Text as v}from"react-native";import{fontWeightMap as w}from"../../constants";import{useAdaptive as U,useTypographyTheme as J}from"../../core";export function toFontWeightStyle(u){return{[b("\x8D\x84\x85\x9F\xBC\x8E\x82\x8C\x83\x9F")]:w[u],[n(`\x075
|
|
3
|
+
`)]:fontFamilyByFontWeightMap[O.OS===function(){return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!="function"?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]("w&x($zt",71)}()?function(){return typeof global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]!="function"?"":global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]("z){+' w",68)}():function(){return typeof global[r("\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9",173)]!="function"?"":global[r("\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9",173)]("8=@",49)}()][u]}}const T=A(function({[r("\xCE\xC5\xC4\xC1\xC9\xDF\xC8\xC3")]:t,[n(`\0\x07
|
|
4
|
+
`)]:x,[n(`\x07
|
|
5
|
+
\x1B
|
|
6
|
+
`)]:f=function(){return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]("(E",76)}(),[e("\xF4\xFD\xFC\xE6\xC5\xF7\xFB\xF5\xFA\xE6")]:g=function(){return typeof global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]!="function"?"":global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]("J<=J@4D",40)}(),[n("")]:d,[c("\xB9\xA8\xB5\xB9\x8C\xA1\xA4\xAA\xA3")]:s,...y},h){const C=i,m=U(),{[r("\xD9\xD4\xDD\xC2\xCA\xDF\xCC\xDD\xC5\xD4")]:S}=J();return I(v,{[c("\xBF\xA8\xAB")]:h,[e("\xF3\xFE\xFE\xFD\xE5\xD4\xFD\xFC\xE6\xC1\xF1\xF3\xFE\xFB\xFC\xF5")]:!1,[n(`1 \x07\x07
|
|
7
|
+
:< `)]:function(){const _=i;return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)](_(151),72)}(),[e(C(150))]:[H.base,S[f],{[l("\xEC\xE0\xE3\xE0\xFD")]:d??m.grey900,[e("\xE6\xF7\xEA\xE6\xD3\xFE\xFB\xF5\xFC")]:s},toFontWeightStyle(g),x],...y,[n("\x1B")]:t})}),H=P.create({[b("\x89\x8A\x98\x8E")]:{[r("\xCB\xC2\xC3\xD9\xEB\xCC\xC0\xC4\xC1\xD4")]:function(){return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]("u254=l0, 0z-5gt#'0^bS",60)}(),[r("\xCB\xC1\xC8\xD5\xFE\xC5\xDF\xC4\xC3\xC6")]:1}});export const fontFamilyByFontWeightMap={[e("\xFB\xFD\xE1")]:{[c("\xB9\xA5\xA4\xA3")]:function(){return typeof global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]!="function"?"":global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]("s032k/+|/y,gt#'_cT:Xtqq|",62)}(),[o("\x9D\x80\x8C\x8A\x99\xB4\x91\x9F\x90\x8C")]:function(){return typeof global[r("\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9",173)]!="function"?"":global[r("\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9",173)]("IcfeAb^RbO_=JVZ59*m.JGGR",104)}(),[r("\xC8\xD5\xD9\xDF\xCC\xC1\xC4\xCA\xC5\xD9")]:function(){const u=i;return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!="function"?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)](u(139),48)}(),[n("\x1B\x07")]:function(){const u=i;return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o(u(145),248)]("g$'&_#|p#m [htxSWH.Lheep",74)}(),[b("\x85\x84\x99\x86\x8A\x87")]:function(){const u=i;return typeof global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]!==u(130)?"":global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]("&@CB{?;/?,<w'37osdJn#$1'x+",46)}(),[o("\x8A\x9D\x9F\x8D\x94\x99\x8A")]:function(){return typeof global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]!="function"?"":global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]('6PSR.OK?O<L*7CG"&tZ!34A7+;',30)}(),[l("\xE2\xEA\xEB\xE6\xFA\xE2")]:function(){return typeof global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]!="function"?"":global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]('%?BAz>:.>+;v&26nrcIh" $/&',47)}(),[r("\xDE\xC8\xC0\xC4\xEF\xC2\xC1\xC9")]:function(){return typeof global[n(`,,
|
|
8
|
+
\x07`,115)]!="function"?"":global[n(`,,
|
|
9
|
+
\x07`,115)]("IcfeAb^RbO_=JVZ59*m5FMH@LH?",104)}(),[o("\x8B\x9D\x95\x91\x9A\x97\x94\x9C")]:function(){const u=i;return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)](u(135),72)}(),[o(a(156))]:function(){return typeof global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]!="function"?"":global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]("YsvuQrnbr_oMZfjEI: 4`\\S",88)}(),[r("\xC8\xD5\xD9\xDF\xCC\xEF\xC2\xC1\xC9")]:function(){return typeof global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]!="function"?"":global[b("\xB4\xB4\x8F\x8E\x88\x99\x92\x9B\x9F",235)]("ZtwvRsocs`pN[gkFJ;!8jebPP\\XO",87)}(),[n("\v\x07")]:function(){return typeof global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)]!="function"?"":global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)]("_y|{WxthxeuS`lpKO@&=ojgUUa]T",82)}(),[l("\xE7\xEA\xEE\xF9\xF6")]:function(){return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!="function"?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]("XrutPqmaq^nLYeiDH9|9UPdf",89)}(),[b("\x89\x87\x8A\x88\x80")]:function(){return typeof global[n(`,,
|
|
10
|
+
\x07`,115)]!="function"?"":global[n(`,,
|
|
11
|
+
\x07`,115)](`.HKJ&GC7G4D"/;?w{lRf2&'.`,38)}()},[r("\xCC\xC3\xC9\xDF\xC2\xC4\xC9")]:{[b("\x9F\x83\x82\x85")]:function(){const u=a;return typeof global[o(u(145),248)]!="function"?"":global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]('6PSR.OK?O<L*7CG"&tZx744?',30)}(),[b("\x8E\x93\x9F\x99\x8A\xA7\x82\x8C\x83\x9F")]:function(){return typeof global[n(`,,
|
|
12
|
+
\x07`,115)]!="function"?"":global[n(`,,
|
|
13
|
+
\x07`,115)]("7QTS/PL@P=M+8DH#'u[y855@",29)}(),[l("\xEA\xF7\xFB\xFD\xEE\xE3\xE6\xE8\xE7\xFB")]:function(){const u=a;return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!==u(130)?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)](`!;>=v:6*:'7r".2jn_Ec"||*`,51)}(),[l("\xE3\xE6\xE8\xE7\xFB")]:function(){return typeof global[n(`,,
|
|
14
|
+
\x07`,115)]!="function"?"":global[n(`,,
|
|
15
|
+
\x07`,115)](";UXW3TPDTAQ/<HL'+y_ <99D",25)}(),[r(a(141))]:function(){const u=a;return typeof global[e(u(154),146)]!="function"?"":global[e("\xCD\xCD\xF6\xF7\xF1\xE0\xEB\xE2\xE6",146)]("+EHG#D@4D1A|,8<txiOs()6, 0",41)}(),[l(a(144))]:function(){const u=a;return typeof global[r(u(140),173)]!="function"?"":global[r("\xF2\xF2\xC9\xC8\xCE\xDF\xD4\xDD\xD9",173)](u(132),55)}(),[e(a(143))]:function(){const u=a;return typeof global[l(u(126),143)]!==u(130)?"":global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)]("IcfeAb^RbO_=JVZ59*m/FDHSJ",104)}(),[l("\xFC\xEA\xE2\xE6\xCD\xE0\xE3\xEB")]:function(){const u=a;return typeof global[n(u(155),115)]!="function"?"":global[n(`,,
|
|
16
|
+
\x07`,115)](u(128),8)}(),[e("\xE1\xF7\xFF\xFB\xF0\xFD\xFE\xF6")]:function(){const u=a;return typeof global[o("\xA7\xA7\x9C\x9D\x9B\x8A\x81\x88\x8C",248)]!="function"?"":global[o(u(145),248)]('.HKJ&GC7G4D"/;?w{lRw+2-%1-$',38)}(),[l("\xED\xE0\xE3\xEB")]:function(){const u=a;return typeof global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)]!="function"?"":global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)](u(152),44)}(),[n(a(142))]:function(){const u=a;return typeof global[n(`,,
|
|
17
|
+
\x07`,115)]!="function"?"":global[n(u(155),115)]('e"%$]!zn!k{YfrvQUF,Cupm[[gcZ',76)}(),[o("\x9D\x80\x8C\x8A\x99\x9A\x97\x94\x9C")]:function(){return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!="function"?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]('e"%$]!zn!k{YfrvQUF,Cupm[[gcZ',76)}(),[c("\xA5\xA8\xAC\xBB\xB4")]:function(){return typeof global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)]!="function"?"":global[l("\xD0\xD0\xEB\xEA\xEC\xFD\xF6\xFF\xFB",143)](`j'*)b&"s&p#^kw{VZK1Kgbvx`,71)}(),[o("\x9A\x94\x99\x9B\x93")]:function(){return typeof global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]!="function"?"":global[c("\x92\x92\xA9\xA8\xAE\xBF\xB4\xBD\xB9",205)]("]wzyUvrfvcsQ^jnIM>$8aUV]",84)}()}};function i(u,t){const x=p();return i=function(f,g){return f=f-126,x[f]},i(u,t)}export default T;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";function n(o){let r="";for(let t=0;t<o.length;t++)r+=String.fromCharCode(o.charCodeAt(t)^
|
|
2
|
-
`,122)]!="function"?"":global[n(`%%\b
|
|
3
|
-
`,122)]("ZVSS^",111)}()?0:1,e=c[t][a];return[[t,e],[i,e]]}));return{...x,...r}};
|
|
1
|
+
"use strict";function n(o){let r="";for(let t=0;t<o.length;t++)r+=String.fromCharCode(o.charCodeAt(t)^233);return r}import{adaptive as a,adaptiveDictionary as c,colors as l}from"@toss/tds-colors";export const getColorMap=o=>{const r=Object.fromEntries(Object.entries(a).flatMap(([t,x])=>{const i=o===function(){return typeof global[n("\xB6\xB6\x8D\x8C\x8A\x9B\x90\x99\x9D",233)]!="function"?"":global[n("\xB6\xB6\x8D\x8C\x8A\x9B\x90\x99\x9D",233)]("njggr",91)}()?0:1,e=c[t][i];return[[t,e],[x,e]]}));return{...l,...r}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function x(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^89);return e}function c(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^151);return e}function C(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^71);return e}function o(r){let e="";for(let t=0;t<r.length;t++)e+=String.fromCharCode(r.charCodeAt(t)^239);return e}import{jsx as u}from"react/jsx-runtime";import{colorsByPreference as n}from"@toss/tds-colors";import{createContext as i,useContext as l,useMemo as f}from"react";import{useColorPreference as a}from"./ColorPreferenceProvider";export const defaultAdaptiveColorValue={[o("\x8E\x8B\x8E\x9F\x9B\x86\x99\x8A")]:n[function(){return typeof global[o("\xB0\xB0\x8B\x8A\x8C\x9D\x96\x9F\x9B",239)]!="function"?"":global[o("\xB0\xB0\x8B\x8A\x8C\x9D\x96\x9F\x9B",239)]("PLIIT",28)}()]},AdaptiveColorContext=i(defaultAdaptiveColorValue);export function AdaptiveColorProvider({[x(":105=+<7")]:r}){const{[x(":656+ +<?<+<7:<")]:e}=a(),t=f(()=>({[o("\x8E\x8B\x8E\x9F\x9B\x86\x99\x8A")]:n[e]}),[e]);return u(AdaptiveColorContext.Provider,{[x("/85,<")]:t,[o("\x8C\x87\x86\x83\x8B\x9D\x8A\x81")]:r})}export function useAdaptive(){const r=l(AdaptiveColorContext);if(r==null)throw new Error("useAdaptive\uB294 AdaptiveColorProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorThemeProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return r.adaptive}
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
2
|
-
`,126)]!="function"?"":global[e(`!!\x1B\f\x07
|
|
3
|
-
`,126)]("VROOZ",115)}(),B={[e("\f.\f\x1B\x1B\f\x1B\x1B")]:n};export const ColorPreferenceContext=l(B);export function ColorPreferenceProvider({[e("\f.\f\x1B\x1B\f\x1B\x1B")]:x,[e("\f\x1B")]:o}){const r=x??n,t=u(()=>({[e("\f.\f\x1B\x1B\f\x1B\x1B")]:r}),[r]);return f(ColorPreferenceContext.Provider,{[e("\b\v\x1B")]:t,[e("\f\x1B")]:o})}export function useColorPreference(){const x=c(ColorPreferenceContext);if(x==null)throw new Error("useColorPreference\uC740 ColorPreferenceProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorPreferenceProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return x}
|
|
1
|
+
"use strict";function x(e){let r="";for(let E=0;E<e.length;E++)r+=String.fromCharCode(e.charCodeAt(E)^138);return r}import{jsx as t}from"react/jsx-runtime";import{createContext as n,useContext as l,useMemo as c}from"react";const o=function(){return typeof global[x("\xD5\xD5\xEE\xEF\xE9\xF8\xF3\xFA\xFE",138)]!="function"?"":global[x("\xD5\xD5\xEE\xEF\xE9\xF8\xF3\xFA\xFE",138)]("51..9",55)}(),f={[x("\xE9\xE5\xE6\xE5\xF8\xDA\xF8\xEF\xEC\xEF\xF8\xEF\xE4\xE9\xEF")]:o};export const ColorPreferenceContext=n(f);export function ColorPreferenceProvider({[x("\xE9\xE5\xE6\xE5\xF8\xDA\xF8\xEF\xEC\xEF\xF8\xEF\xE4\xE9\xEF")]:e,[x("\xE9\xE2\xE3\xE6\xEE\xF8\xEF\xE4")]:r}){const E=e??o,F=c(()=>({[x("\xE9\xE5\xE6\xE5\xF8\xDA\xF8\xEF\xEC\xEF\xF8\xEF\xE4\xE9\xEF")]:E}),[E]);return t(ColorPreferenceContext.Provider,{[x("\xFC\xEB\xE6\xFF\xEF")]:F,[x("\xE9\xE2\xE3\xE6\xEE\xF8\xEF\xE4")]:r})}export function useColorPreference(){const e=l(ColorPreferenceContext);if(e==null)throw new Error("useColorPreference\uC740 ColorPreferenceProvider \uC548\uC5D0\uC11C\uB9CC \uC0AC\uC6A9 \uAC00\uB2A5\uD569\uB2C8\uB2E4. ColorPreferenceProvider \uB97C \uCD94\uAC00\uD574\uC8FC\uC138\uC694.");return e}
|