@shoplflow/base 0.4.0 → 0.6.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/dist/animation/fadeInOut.d.ts +17 -0
- package/dist/components/BackDrop/BackDrop.d.ts +3 -0
- package/dist/components/BackDrop/BackDrop.types.d.ts +5 -0
- package/dist/components/BackDrop/index.d.ts +2 -0
- package/dist/components/Chips/ChipButton/ChipButton.d.ts +3 -0
- package/dist/components/Chips/ChipButton/ChipButton.styled.d.ts +8 -0
- package/dist/components/Chips/ChipButton/ChipButton.types.d.ts +16 -0
- package/dist/components/Chips/ChipButton/index.d.ts +3 -0
- package/dist/components/Chips/ChipToggle/ChipToggle.d.ts +3 -0
- package/dist/components/Chips/ChipToggle/ChipToggle.styled.d.ts +8 -0
- package/dist/components/Chips/ChipToggle/ChipToggle.types.d.ts +16 -0
- package/dist/components/Chips/ChipToggle/index.d.ts +3 -0
- package/dist/components/Chips/index.d.ts +2 -0
- package/dist/components/Modal/Modal.styled.d.ts +28 -0
- package/dist/components/Modal/Modal.types.d.ts +55 -0
- package/dist/components/Modal/ModalBody.d.ts +3 -0
- package/dist/components/Modal/ModalContainer.d.ts +3 -0
- package/dist/components/Modal/ModalFooter.d.ts +3 -0
- package/dist/components/Modal/ModalHeader.d.ts +3 -0
- package/dist/components/Modal/index.d.ts +7 -0
- package/dist/components/Stack/Stack.d.ts +12 -0
- package/dist/components/Stack/Stack.styled.d.ts +6 -0
- package/dist/components/Stack/Stack.types.d.ts +52 -0
- package/dist/components/Stack/index.d.ts +4 -0
- package/dist/components/Text/Text.d.ts +4 -0
- package/dist/components/Text/Text.styled.d.ts +6 -0
- package/dist/components/Text/Text.types.d.ts +23 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/{index.css → global.css} +4 -2
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/useDomain.d.ts +6 -0
- package/dist/hooks/useHandleModal.d.ts +5 -0
- package/dist/hooks/useModalStore.d.ts +15 -0
- package/dist/hooks/useModalValue.d.ts +3 -0
- package/dist/hooks/useOnToggle.d.ts +11 -0
- package/dist/hooks/useOutsideClick.d.ts +14 -0
- package/dist/hooks/useResizeObserver.d.ts +9 -0
- package/dist/index.cjs +176 -6877
- package/dist/index.d.ts +5 -212
- package/dist/index.mjs +178 -0
- package/dist/providers/ShoplflowProvider.d.ts +8 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/styles/index.d.ts +9 -0
- package/dist/styles/tokens.d.ts +100 -0
- package/dist/styles/utils/getDisabledStyle.d.ts +1 -0
- package/dist/types/Domain.d.ts +1 -0
- package/dist/utils/getNextColor.d.ts +11 -0
- package/dist/utils/noop.d.ts +1 -0
- package/dist/utils/type/$values.d.ts +1 -0
- package/dist/utils/type/ComponentProps.d.ts +134 -0
- package/package.json +55 -38
- package/dist/emotion.d.cjs +0 -5
- package/dist/emotion.d.cjs.map +0 -1
- package/dist/emotion.d.d.cts +0 -5
- package/dist/emotion.d.d.ts +0 -5
- package/dist/emotion.d.js +0 -3
- package/dist/emotion.d.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.d.cts +0 -212
- package/dist/index.js +0 -6851
- package/dist/index.js.map +0 -1
package/dist/index.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/global.css"],"sourcesContent":["/* Generate by scripts/generate-tokens.js */\n/* eslint-disable */\n:root[data-shoplflow] {\n --font-weight-regular: 400;\n --font-weight-medium: 500;\n --font-weight-bold: 700;\n --border-radius04: 4px;\n --border-radius06: 6px;\n --border-radius08: 8px;\n --border-radius12: 12px;\n --border-radius16: 16px;\n --spacing04: 4px;\n --spacing06: 6px;\n --spacing08: 8px;\n --spacing12: 12px;\n --spacing16: 16px;\n --spacing20: 20px;\n --spacing24: 24px;\n --spacing30: 30px;\n --spacing32: 32px;\n --spacing40: 40px;\n --dropShadow: 0px 8px 16px 0px rgba(0,0,0,0.12);\n}\n:root[data-shoplflow][data-shoplflow=hada] {\n --coolgray300: #8092aa;\n --coolgray200: #cdd6e4;\n --coolgray100: #dce3ee;\n --coolgray50: #f1f4f6;\n --navy400: #35485b;\n --navy300: #406588;\n --neutral0: #ffffff;\n --neutral100: #f9f9f9;\n --neutral150: #f4f4f4;\n --neutral200: #eaeaea;\n --neutral300: #dddddd;\n --neutral350: #cccccc;\n --neutral400: #999999;\n --neutral500: #777777;\n --neutral600: #555555;\n --neutral700: #333333;\n --neutral400_5: #9999990d;\n --red300: #ff6666;\n --red200: #ff7979;\n --red100: #f9ebeb;\n --ocean300: #2f839f;\n --ocean200: #3eb0b8;\n --ocean100: #95d6d3;\n --purple400: #5c68c9;\n --purple300: #6979f8;\n --purple100: #eff1ff;\n --yellow300: #ffbb00;\n --yellow200: #ffda75;\n --yellow100: #fff7dd;\n --green300: #4dc9aa;\n --green200: #77d5bb;\n --green100: #d8f2eb;\n --shopl400: #2d89e4;\n --shopl300: #3299fe;\n --shopl200: #84c2fc;\n --shopl150: #d6e9fb;\n --shopl100: #eaf5ff;\n --hada400: #05a77b;\n --hada300: #02b585;\n --hada200: #61cbb5;\n --hada150: #c1e7dd;\n --hada100: #d9f4ed;\n --background: #f7f9fd;\n --primary100: #d9f4ed;\n --primary150: #c1e7dd;\n --primary200: #61cbb5;\n --primary300: #02b585;\n --primary400: #05a77b;\n .heading1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 38px;\n font-size: 32px;\n }\n .heading1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 38px;\n font-size: 32px;\n }\n .heading2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 28px;\n font-size: 24px;\n }\n .heading2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 28px;\n font-size: 24px;\n }\n .heading3_700 {\n font-weight: var(--font-weight-bold);\n line-height: 26px;\n font-size: 22px;\n }\n .heading3_400 {\n font-weight: var(--font-weight-regular);\n line-height: 26px;\n font-size: 22px;\n }\n .title1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 24px;\n font-size: 20px;\n }\n .title1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 24px;\n font-size: 20px;\n }\n .title2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 22px;\n font-size: 18px;\n }\n .title2_500 {\n font-weight: var(--font-weight-medium);\n line-height: 22px;\n font-size: 18px;\n }\n .title2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 22px;\n font-size: 18px;\n }\n .body1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 22px;\n font-size: 16px;\n }\n .body1_500 {\n font-weight: var(--font-weight-medium);\n line-height: 22px;\n font-size: 16px;\n }\n .body1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 22px;\n font-size: 16px;\n }\n .body2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 18px;\n font-size: 14px;\n }\n .body2_500 {\n font-weight: var(--font-weight-medium);\n line-height: 18px;\n font-size: 14px;\n }\n .body2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 18px;\n font-size: 14px;\n }\n .body3_400 {\n font-weight: var(--font-weight-regular);\n line-height: 18px;\n font-size: 13px;\n }\n .body3_500 {\n font-weight: var(--font-weight-medium);\n line-height: 18px;\n font-size: 13px;\n }\n .caption_400 {\n font-weight: var(--font-weight-regular);\n line-height: 16px;\n font-size: 12px;\n }\n}\n:root[data-shoplflow][data-shoplflow=shopl] {\n --coolgray300: #8092aa;\n --coolgray200: #cdd6e4;\n --coolgray100: #dce3ee;\n --coolgray50: #f1f4f6;\n --navy400: #35485b;\n --navy300: #406588;\n --neutral0: #ffffff;\n --neutral100: #f9f9f9;\n --neutral150: #f4f4f4;\n --neutral200: #eaeaea;\n --neutral300: #dddddd;\n --neutral350: #cccccc;\n --neutral400: #999999;\n --neutral500: #777777;\n --neutral600: #555555;\n --neutral700: #333333;\n --neutral400_5: #9999990d;\n --red300: #ff6666;\n --red200: #ff7979;\n --red100: #f9ebeb;\n --ocean300: #2f839f;\n --ocean200: #3eb0b8;\n --ocean100: #95d6d3;\n --purple400: #5c68c9;\n --purple300: #6979f8;\n --purple100: #eff1ff;\n --yellow300: #ffbb00;\n --yellow200: #ffda75;\n --yellow100: #fff7dd;\n --green300: #4dc9aa;\n --green200: #77d5bb;\n --green100: #d8f2eb;\n --shopl400: #2d89e4;\n --shopl300: #3299fe;\n --shopl200: #84c2fc;\n --shopl150: #d6e9fb;\n --shopl100: #eaf5ff;\n --hada400: #05a77b;\n --hada300: #02b585;\n --hada200: #61cbb5;\n --hada150: #c1e7dd;\n --hada100: #d9f4ed;\n --background: #f6f6f6;\n --primary100: #eaf5ff;\n --primary150: #d6e9fb;\n --primary200: #84c2fc;\n --primary300: #3299fe;\n --primary400: #2d89e4;\n .heading1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 34px;\n font-size: 28px;\n }\n .heading1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 34px;\n font-size: 28px;\n }\n .heading2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 28px;\n font-size: 24px;\n }\n .heading2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 28px;\n font-size: 24px;\n }\n .heading3_700 {\n font-weight: var(--font-weight-bold);\n line-height: 24px;\n font-size: 20px;\n }\n .heading3_400 {\n font-weight: var(--font-weight-regular);\n line-height: 24px;\n font-size: 20px;\n }\n .title1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 22px;\n font-size: 18px;\n }\n .title1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 22px;\n font-size: 18px;\n }\n .title2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 20px;\n font-size: 16px;\n }\n .title2_500 {\n font-weight: var(--font-weight-medium);\n line-height: 20px;\n font-size: 16px;\n }\n .title2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 20px;\n font-size: 16px;\n }\n .body1_700 {\n font-weight: var(--font-weight-bold);\n line-height: 18px;\n font-size: 14px;\n }\n .body1_500 {\n font-weight: var(--font-weight-medium);\n line-height: 18px;\n font-size: 14px;\n }\n .body1_400 {\n font-weight: var(--font-weight-regular);\n line-height: 18px;\n font-size: 14px;\n }\n .body2_700 {\n font-weight: var(--font-weight-bold);\n line-height: 16px;\n font-size: 13px;\n }\n .body2_500 {\n font-weight: var(--font-weight-medium);\n line-height: 16px;\n font-size: 13px;\n }\n .body2_400 {\n font-weight: var(--font-weight-regular);\n line-height: 16px;\n font-size: 13px;\n }\n .body3_400 {\n font-weight: var(--font-weight-regular);\n line-height: 16px;\n font-size: 12px;\n }\n .body3_500 {\n font-weight: var(--font-weight-medium);\n line-height: 16px;\n font-size: 12px;\n }\n .caption_400 {\n font-weight: var(--font-weight-regular);\n line-height: 16px;\n font-size: 12px;\n }\n}\n"],"mappings":";AAEA,KAAK,CAAC;AACJ,yBAAuB;AACvB,wBAAsB;AACtB,sBAAoB;AACpB,qBAAmB;AACnB,qBAAmB;AACnB,qBAAmB;AACnB,qBAAmB;AACnB,qBAAmB;AACnB,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc,IAAI,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C;AACA,KAAK,CAAC,eAAe,CAAC;AACpB,iBAAe;AACf,iBAAe;AACf,iBAAe;AACf,gBAAc;AACd,aAAW;AACX,aAAW;AACX,cAAY;AACZ,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,kBAAgB;AAChB,YAAU;AACV,YAAU;AACV,YAAU;AACV,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,aAAW;AACX,aAAW;AACX,aAAW;AACX,aAAW;AACX,aAAW;AACX,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACF;AACA,KAAK,CAAC,eAAe,CAAC;AACpB,iBAAe;AACf,iBAAe;AACf,iBAAe;AACf,gBAAc;AACd,aAAW;AACX,aAAW;AACX,cAAY;AACZ,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,kBAAgB;AAChB,YAAU;AACV,YAAU;AACV,YAAU;AACV,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,eAAa;AACb,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,cAAY;AACZ,aAAW;AACX,aAAW;AACX,aAAW;AACX,aAAW;AACX,aAAW;AACX,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,gBAAc;AACd,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACA,GAAC;AACC,iBAAa,IAAI;AACjB,iBAAa;AACb,eAAW;AACb;AACF;","names":[]}
|
package/dist/index.d.cts
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { ElementType, ComponentPropsWithoutRef, ComponentPropsWithRef, ReactElement, CSSProperties } from 'react';
|
|
4
|
-
import { CustomDomComponent } from 'framer-motion';
|
|
5
|
-
import * as _emotion_styled from '@emotion/styled';
|
|
6
|
-
import * as _emotion_react from '@emotion/react';
|
|
7
|
-
|
|
8
|
-
type DomainType = 'SHOPL' | 'HADA';
|
|
9
|
-
|
|
10
|
-
interface ShoplflowProviderProps {
|
|
11
|
-
domain?: DomainType;
|
|
12
|
-
children: React__default.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const ShoplflowProvider: ({ children, domain }: ShoplflowProviderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
15
|
-
|
|
16
|
-
type UseDarkModeProps = {
|
|
17
|
-
domain?: DomainType;
|
|
18
|
-
};
|
|
19
|
-
declare function useDomain({ domain }: UseDarkModeProps): null;
|
|
20
|
-
|
|
21
|
-
declare const fontWeightTokens: {
|
|
22
|
-
fontWeightRegular: string;
|
|
23
|
-
fontWeightMedium: string;
|
|
24
|
-
fontWeightBold: string;
|
|
25
|
-
};
|
|
26
|
-
declare const borderRadiusTokens: {
|
|
27
|
-
borderRadius04: string;
|
|
28
|
-
borderRadius06: string;
|
|
29
|
-
borderRadius08: string;
|
|
30
|
-
borderRadius12: string;
|
|
31
|
-
borderRadius16: string;
|
|
32
|
-
};
|
|
33
|
-
declare const colorTokens: {
|
|
34
|
-
coolgray300: string;
|
|
35
|
-
coolgray200: string;
|
|
36
|
-
coolgray100: string;
|
|
37
|
-
coolgray50: string;
|
|
38
|
-
navy400: string;
|
|
39
|
-
navy300: string;
|
|
40
|
-
neutral0: string;
|
|
41
|
-
neutral100: string;
|
|
42
|
-
neutral150: string;
|
|
43
|
-
neutral200: string;
|
|
44
|
-
neutral300: string;
|
|
45
|
-
neutral350: string;
|
|
46
|
-
neutral400: string;
|
|
47
|
-
neutral500: string;
|
|
48
|
-
neutral600: string;
|
|
49
|
-
neutral700: string;
|
|
50
|
-
neutral400_5: string;
|
|
51
|
-
red300: string;
|
|
52
|
-
red200: string;
|
|
53
|
-
red100: string;
|
|
54
|
-
ocean300: string;
|
|
55
|
-
ocean200: string;
|
|
56
|
-
ocean100: string;
|
|
57
|
-
purple400: string;
|
|
58
|
-
purple300: string;
|
|
59
|
-
purple100: string;
|
|
60
|
-
yellow300: string;
|
|
61
|
-
yellow200: string;
|
|
62
|
-
yellow100: string;
|
|
63
|
-
green300: string;
|
|
64
|
-
green200: string;
|
|
65
|
-
green100: string;
|
|
66
|
-
shopl400: string;
|
|
67
|
-
shopl300: string;
|
|
68
|
-
shopl200: string;
|
|
69
|
-
shopl150: string;
|
|
70
|
-
shopl100: string;
|
|
71
|
-
hada400: string;
|
|
72
|
-
hada300: string;
|
|
73
|
-
hada200: string;
|
|
74
|
-
hada150: string;
|
|
75
|
-
hada100: string;
|
|
76
|
-
background: string;
|
|
77
|
-
primary100: string;
|
|
78
|
-
primary150: string;
|
|
79
|
-
primary200: string;
|
|
80
|
-
primary300: string;
|
|
81
|
-
primary400: string;
|
|
82
|
-
};
|
|
83
|
-
declare const spacingTokens: {
|
|
84
|
-
spacing04: string;
|
|
85
|
-
spacing06: string;
|
|
86
|
-
spacing08: string;
|
|
87
|
-
spacing12: string;
|
|
88
|
-
spacing16: string;
|
|
89
|
-
spacing20: string;
|
|
90
|
-
spacing24: string;
|
|
91
|
-
spacing30: string;
|
|
92
|
-
spacing32: string;
|
|
93
|
-
spacing40: string;
|
|
94
|
-
};
|
|
95
|
-
declare const boxShadowTokens: {
|
|
96
|
-
dropShadow: string;
|
|
97
|
-
};
|
|
98
|
-
declare const typographyTokens: {
|
|
99
|
-
heading1_700: string;
|
|
100
|
-
heading1_400: string;
|
|
101
|
-
heading2_700: string;
|
|
102
|
-
heading2_400: string;
|
|
103
|
-
heading3_700: string;
|
|
104
|
-
heading3_400: string;
|
|
105
|
-
title1_700: string;
|
|
106
|
-
title1_400: string;
|
|
107
|
-
title2_700: string;
|
|
108
|
-
title2_500: string;
|
|
109
|
-
title2_400: string;
|
|
110
|
-
body1_700: string;
|
|
111
|
-
body1_500: string;
|
|
112
|
-
body1_400: string;
|
|
113
|
-
body2_700: string;
|
|
114
|
-
body2_500: string;
|
|
115
|
-
body2_400: string;
|
|
116
|
-
body3_400: string;
|
|
117
|
-
body3_500: string;
|
|
118
|
-
caption_400: string;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
type ColorTokens = keyof typeof colorTokens;
|
|
122
|
-
type SpacingTokens = keyof typeof spacingTokens;
|
|
123
|
-
type BorderRadiusTokens = keyof typeof borderRadiusTokens;
|
|
124
|
-
type BoxShadowTokens = keyof typeof boxShadowTokens;
|
|
125
|
-
type FontWeightTokens = keyof typeof fontWeightTokens;
|
|
126
|
-
type TypographyTokens = keyof typeof typographyTokens;
|
|
127
|
-
|
|
128
|
-
type StringElementType = ElementType & string;
|
|
129
|
-
type HTMLPropsWithOutRef<T extends StringElementType> = ComponentPropsWithoutRef<T>;
|
|
130
|
-
type RenderConfigProps = {
|
|
131
|
-
/**
|
|
132
|
-
* 랜더하려고 하는 HTML tag로 변환할 수 있습니다.
|
|
133
|
-
*
|
|
134
|
-
* 예를 들어 a tag로 변환한다면 as='a'로 작성해주세요.
|
|
135
|
-
*
|
|
136
|
-
* @see https://emotion.sh/docs/styled#as-prop
|
|
137
|
-
*/
|
|
138
|
-
as?: StringElementType;
|
|
139
|
-
};
|
|
140
|
-
interface ChildrenProps<Children = React__default.ReactNode> {
|
|
141
|
-
/**
|
|
142
|
-
* 컴포넌트 내부에 들어갈 children을 설정합니다.
|
|
143
|
-
*/
|
|
144
|
-
children?: Children;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithOutRef<T>;
|
|
148
|
-
type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
|
|
149
|
-
type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithOutRef<T> & StackProps>;
|
|
150
|
-
interface StackProps extends StackOptionProps, ChildrenProps {
|
|
151
|
-
}
|
|
152
|
-
interface StackOptionProps {
|
|
153
|
-
/**
|
|
154
|
-
* 요소들의 align-items 값
|
|
155
|
-
*/
|
|
156
|
-
align?: CSSProperties['alignItems'];
|
|
157
|
-
/**
|
|
158
|
-
* 요소들의 justify-content 값
|
|
159
|
-
*/
|
|
160
|
-
justify?: CSSProperties['justifyContent'];
|
|
161
|
-
/**
|
|
162
|
-
* 요소들의 flex-direction 값
|
|
163
|
-
* (값: row, column)
|
|
164
|
-
*/
|
|
165
|
-
direction?: CSSProperties['flexDirection'];
|
|
166
|
-
/**
|
|
167
|
-
* 요소들 사이의 간격
|
|
168
|
-
*/
|
|
169
|
-
spacing?: SpacingTokens;
|
|
170
|
-
/**
|
|
171
|
-
* flex-wrap 설정
|
|
172
|
-
*/
|
|
173
|
-
flexWrap?: CSSProperties['flexWrap'];
|
|
174
|
-
/**
|
|
175
|
-
* width 설정
|
|
176
|
-
*/
|
|
177
|
-
width?: CSSProperties['width'];
|
|
178
|
-
/**
|
|
179
|
-
* height 설정
|
|
180
|
-
*/
|
|
181
|
-
height?: CSSProperties['height'];
|
|
182
|
-
/**
|
|
183
|
-
* flex 설정
|
|
184
|
-
*/
|
|
185
|
-
flex?: CSSProperties['flex'];
|
|
186
|
-
/**
|
|
187
|
-
* background 설정
|
|
188
|
-
*/
|
|
189
|
-
background?: ColorTokens;
|
|
190
|
-
/**
|
|
191
|
-
* border-radius 설정
|
|
192
|
-
*/
|
|
193
|
-
radius?: BorderRadiusTokens;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
interface StackType extends StackComponentType {
|
|
197
|
-
Vertical: StackComponentType;
|
|
198
|
-
Horizontal: StackComponentType;
|
|
199
|
-
}
|
|
200
|
-
declare const Stack: StackType;
|
|
201
|
-
interface MotionStackType extends MotionStackComponentType {
|
|
202
|
-
Vertical: MotionStackComponentType;
|
|
203
|
-
Horizontal: MotionStackComponentType;
|
|
204
|
-
}
|
|
205
|
-
declare const MotionStack: MotionStackType;
|
|
206
|
-
|
|
207
|
-
declare const StyledStack: _emotion_styled.StyledComponent<{
|
|
208
|
-
theme?: _emotion_react.Theme | undefined;
|
|
209
|
-
as?: React.ElementType<any> | undefined;
|
|
210
|
-
} & StackOptionProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
211
|
-
|
|
212
|
-
export { BorderRadiusTokens, BoxShadowTokens, ColorTokens, FontWeightTokens, MotionStack, MotionStackComponentType, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledStack, TypographyTokens, borderRadiusTokens, colorTokens, fontWeightTokens, spacingTokens, typographyTokens, useDomain };
|