@designbasekorea/ui-wc 0.6.0 → 0.6.1
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/esm/components/db-email-verify.d.ts +2 -0
- package/dist/esm/components/db-email-verify.js +1 -1
- package/dist/esm/components/db-phone-verify.d.ts +2 -0
- package/dist/esm/components/db-phone-verify.js +1 -1
- package/dist/esm/components/db-sidebar.d.ts +20 -0
- package/dist/esm/components/db-sidebar.js +1 -1
- package/dist/esm/components/db-two-factor.d.ts +11 -0
- package/dist/esm/components/db-two-factor.js +1 -1
- package/dist/esm/components/highlight-code.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +34 -0
- package/dist/index.esm.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.ts +83 -33
- package/dist/react/index.esm.js +1 -1
- package/package.json +2 -2
- /package/dist/chunks/{lottie-0e23d630.js → lottie-35a9b0f5.js} +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-bash.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-clike.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-css.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-javascript.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-json.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-jsx.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-markup.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-scss.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-tsx.js +0 -0
- /package/dist/esm/node_modules/{.pnpm/prismjs@1.30.0/node_modules/prismjs → prismjs}/components/prism-typescript.js +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -1656,11 +1656,19 @@ interface DbSidebarItem {
|
|
|
1656
1656
|
disabled?: boolean;
|
|
1657
1657
|
badge?: string | number;
|
|
1658
1658
|
badgeColor?: string;
|
|
1659
|
+
/** 프로필 메뉴 우측에 표시할 현재 값 (예: "System", "한국어") */
|
|
1660
|
+
value?: string;
|
|
1661
|
+
/** 2depth 선택 상태. 선택된 항목에는 체크 아이콘이 표시됩니다. */
|
|
1662
|
+
selected?: boolean;
|
|
1663
|
+
/** 프로필 메뉴에서 이 항목 앞에 구분선을 표시합니다. */
|
|
1664
|
+
dividerBefore?: boolean;
|
|
1659
1665
|
children?: DbSidebarItem[];
|
|
1660
1666
|
}
|
|
1661
1667
|
interface DbSidebarSection {
|
|
1662
1668
|
id: string;
|
|
1663
1669
|
title?: string;
|
|
1670
|
+
/** 이전 섹션과의 간격 */
|
|
1671
|
+
gap?: 'none' | 's' | 'm' | 'l';
|
|
1664
1672
|
items: DbSidebarItem[];
|
|
1665
1673
|
}
|
|
1666
1674
|
interface DbSidebarUserProfile {
|
|
@@ -1691,7 +1699,9 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1691
1699
|
private userMenuOpen;
|
|
1692
1700
|
private projectMenuOpen;
|
|
1693
1701
|
private flyoutItemId;
|
|
1702
|
+
private userFlyoutItemId;
|
|
1694
1703
|
private flyoutCloseTimer;
|
|
1704
|
+
private userFlyoutCloseTimer;
|
|
1695
1705
|
private outsideHandler;
|
|
1696
1706
|
static get observedAttributes(): string[];
|
|
1697
1707
|
connectedCallback(): void;
|
|
@@ -1726,6 +1736,12 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1726
1736
|
set bottomSections(value: DbSidebarSection[] | string);
|
|
1727
1737
|
get promoBanner(): DbSidebarPromoBanner | null;
|
|
1728
1738
|
set promoBanner(value: DbSidebarPromoBanner | string | null);
|
|
1739
|
+
get headerType(): 'default' | 'back';
|
|
1740
|
+
set headerType(value: 'default' | 'back');
|
|
1741
|
+
get backLabel(): string;
|
|
1742
|
+
set backLabel(value: string);
|
|
1743
|
+
get backHref(): string;
|
|
1744
|
+
set backHref(value: string);
|
|
1729
1745
|
private parseSections;
|
|
1730
1746
|
private parseUserMenuItems;
|
|
1731
1747
|
private parseUserProfile;
|
|
@@ -1741,9 +1757,13 @@ declare class DbSidebar extends HTMLElement {
|
|
|
1741
1757
|
private cancelFlyoutClose;
|
|
1742
1758
|
private showFlyout;
|
|
1743
1759
|
private scheduleFlyoutClose;
|
|
1760
|
+
private cancelUserFlyoutClose;
|
|
1761
|
+
private setUserFlyout;
|
|
1762
|
+
private scheduleUserFlyoutClose;
|
|
1744
1763
|
private syncHostClasses;
|
|
1745
1764
|
private dispatchItemClick;
|
|
1746
1765
|
private dispatchUserMenuItemClick;
|
|
1766
|
+
private dispatchBackClick;
|
|
1747
1767
|
private dispatchProjectChange;
|
|
1748
1768
|
private dispatchProjectManage;
|
|
1749
1769
|
private dispatchPromoCtaClick;
|
|
@@ -4225,6 +4245,7 @@ declare class DbPhoneVerify extends HTMLElement {
|
|
|
4225
4245
|
private codeBlock;
|
|
4226
4246
|
private errorEl;
|
|
4227
4247
|
get size(): Size$2;
|
|
4248
|
+
set size(v: Size$2);
|
|
4228
4249
|
get step(): 'phone' | 'code' | 'verified';
|
|
4229
4250
|
set step(v: 'phone' | 'code' | 'verified');
|
|
4230
4251
|
get phone(): string;
|
|
@@ -4234,6 +4255,7 @@ declare class DbPhoneVerify extends HTMLElement {
|
|
|
4234
4255
|
get code(): string;
|
|
4235
4256
|
set code(v: string);
|
|
4236
4257
|
get countdown(): number;
|
|
4258
|
+
set countdown(v: number);
|
|
4237
4259
|
connectedCallback(): void;
|
|
4238
4260
|
disconnectedCallback(): void;
|
|
4239
4261
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
@@ -4286,11 +4308,13 @@ declare class DbEmailVerify extends HTMLElement {
|
|
|
4286
4308
|
get mode(): 'code' | 'confirm';
|
|
4287
4309
|
set mode(v: 'code' | 'confirm');
|
|
4288
4310
|
get size(): Size$1;
|
|
4311
|
+
set size(v: Size$1);
|
|
4289
4312
|
get step(): 'email' | 'code' | 'sent' | 'verified';
|
|
4290
4313
|
set step(v: 'email' | 'code' | 'sent' | 'verified');
|
|
4291
4314
|
get email(): string;
|
|
4292
4315
|
set email(v: string);
|
|
4293
4316
|
get countdown(): number;
|
|
4317
|
+
set countdown(v: number);
|
|
4294
4318
|
connectedCallback(): void;
|
|
4295
4319
|
disconnectedCallback(): void;
|
|
4296
4320
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
@@ -4342,15 +4366,25 @@ declare class DbTwoFactor extends HTMLElement {
|
|
|
4342
4366
|
private otpInput;
|
|
4343
4367
|
private hintEl;
|
|
4344
4368
|
private timerEl;
|
|
4369
|
+
private codeHead;
|
|
4345
4370
|
private resendBtn;
|
|
4346
4371
|
private verifyBtn;
|
|
4347
4372
|
private backupBtn;
|
|
4348
4373
|
private errorEl;
|
|
4349
4374
|
private channelActions;
|
|
4375
|
+
private resendStatus;
|
|
4376
|
+
private backupBlock;
|
|
4377
|
+
private backupInput;
|
|
4378
|
+
private backupCancelBtn;
|
|
4379
|
+
private backupMode;
|
|
4380
|
+
private resendCount;
|
|
4350
4381
|
get method(): Method;
|
|
4351
4382
|
set method(v: Method);
|
|
4352
4383
|
get size(): Size;
|
|
4384
|
+
set size(v: Size);
|
|
4353
4385
|
get countdown(): number;
|
|
4386
|
+
set countdown(v: number);
|
|
4387
|
+
get maxResends(): number;
|
|
4354
4388
|
connectedCallback(): void;
|
|
4355
4389
|
disconnectedCallback(): void;
|
|
4356
4390
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
@@ -5288,18 +5322,18 @@ declare function ModalHeader({ className, children, ...props }: PartProps): reac
|
|
|
5288
5322
|
onFocusCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5289
5323
|
onBlur?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5290
5324
|
onBlurCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5291
|
-
onChange?: react.
|
|
5292
|
-
onChangeCapture?: react.
|
|
5325
|
+
onChange?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5326
|
+
onChangeCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5293
5327
|
onBeforeInput?: react.InputEventHandler<HTMLDivElement> | undefined;
|
|
5294
|
-
onBeforeInputCapture?: react.
|
|
5295
|
-
onInput?: react.
|
|
5296
|
-
onInputCapture?: react.
|
|
5297
|
-
onReset?: react.
|
|
5298
|
-
onResetCapture?: react.
|
|
5299
|
-
onSubmit?: react.
|
|
5300
|
-
onSubmitCapture?: react.
|
|
5301
|
-
onInvalid?: react.
|
|
5302
|
-
onInvalidCapture?: react.
|
|
5328
|
+
onBeforeInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5329
|
+
onInput?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5330
|
+
onInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5331
|
+
onReset?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5332
|
+
onResetCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5333
|
+
onSubmit?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5334
|
+
onSubmitCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5335
|
+
onInvalid?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5336
|
+
onInvalidCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5303
5337
|
onLoad?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5304
5338
|
onLoadCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5305
5339
|
onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -5570,18 +5604,18 @@ declare function ModalBody({ className, children, ...props }: PartProps): react.
|
|
|
5570
5604
|
onFocusCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5571
5605
|
onBlur?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5572
5606
|
onBlurCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5573
|
-
onChange?: react.
|
|
5574
|
-
onChangeCapture?: react.
|
|
5607
|
+
onChange?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5608
|
+
onChangeCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5575
5609
|
onBeforeInput?: react.InputEventHandler<HTMLDivElement> | undefined;
|
|
5576
|
-
onBeforeInputCapture?: react.
|
|
5577
|
-
onInput?: react.
|
|
5578
|
-
onInputCapture?: react.
|
|
5579
|
-
onReset?: react.
|
|
5580
|
-
onResetCapture?: react.
|
|
5581
|
-
onSubmit?: react.
|
|
5582
|
-
onSubmitCapture?: react.
|
|
5583
|
-
onInvalid?: react.
|
|
5584
|
-
onInvalidCapture?: react.
|
|
5610
|
+
onBeforeInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5611
|
+
onInput?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5612
|
+
onInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5613
|
+
onReset?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5614
|
+
onResetCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5615
|
+
onSubmit?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5616
|
+
onSubmitCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5617
|
+
onInvalid?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5618
|
+
onInvalidCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5585
5619
|
onLoad?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5586
5620
|
onLoadCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5587
5621
|
onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -5852,18 +5886,18 @@ declare function ModalFooter({ className, children, ...props }: PartProps): reac
|
|
|
5852
5886
|
onFocusCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5853
5887
|
onBlur?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5854
5888
|
onBlurCapture?: react.FocusEventHandler<HTMLDivElement> | undefined;
|
|
5855
|
-
onChange?: react.
|
|
5856
|
-
onChangeCapture?: react.
|
|
5889
|
+
onChange?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5890
|
+
onChangeCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5857
5891
|
onBeforeInput?: react.InputEventHandler<HTMLDivElement> | undefined;
|
|
5858
|
-
onBeforeInputCapture?: react.
|
|
5859
|
-
onInput?: react.
|
|
5860
|
-
onInputCapture?: react.
|
|
5861
|
-
onReset?: react.
|
|
5862
|
-
onResetCapture?: react.
|
|
5863
|
-
onSubmit?: react.
|
|
5864
|
-
onSubmitCapture?: react.
|
|
5865
|
-
onInvalid?: react.
|
|
5866
|
-
onInvalidCapture?: react.
|
|
5892
|
+
onBeforeInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5893
|
+
onInput?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5894
|
+
onInputCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5895
|
+
onReset?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5896
|
+
onResetCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5897
|
+
onSubmit?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5898
|
+
onSubmitCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5899
|
+
onInvalid?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5900
|
+
onInvalidCapture?: react.FormEventHandler<HTMLDivElement> | undefined;
|
|
5867
5901
|
onLoad?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5868
5902
|
onLoadCapture?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
5869
5903
|
onError?: react.ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -6191,6 +6225,7 @@ type TwoFactorProps = WebComponentProps & {
|
|
|
6191
6225
|
countdown?: number;
|
|
6192
6226
|
destination?: string;
|
|
6193
6227
|
resendLabel?: string;
|
|
6228
|
+
maxResends?: number;
|
|
6194
6229
|
manual?: boolean;
|
|
6195
6230
|
sending?: boolean;
|
|
6196
6231
|
verifying?: boolean;
|
|
@@ -6964,11 +6999,15 @@ type SidebarItem = {
|
|
|
6964
6999
|
disabled?: boolean;
|
|
6965
7000
|
badge?: string | number;
|
|
6966
7001
|
badgeColor?: string;
|
|
7002
|
+
value?: string;
|
|
7003
|
+
selected?: boolean;
|
|
7004
|
+
dividerBefore?: boolean;
|
|
6967
7005
|
children?: SidebarItem[];
|
|
6968
7006
|
};
|
|
6969
7007
|
type SidebarSection = {
|
|
6970
7008
|
id: string;
|
|
6971
7009
|
title?: string;
|
|
7010
|
+
gap?: 'none' | 's' | 'm' | 'l';
|
|
6972
7011
|
items: SidebarItem[];
|
|
6973
7012
|
};
|
|
6974
7013
|
type SidebarUserProfile = {
|
|
@@ -7008,6 +7047,9 @@ type SidebarProps = WebComponentProps & {
|
|
|
7008
7047
|
bottomItems?: SidebarItem[] | string;
|
|
7009
7048
|
bottomSections?: SidebarSection[] | string;
|
|
7010
7049
|
promoBanner?: SidebarPromoBanner | string;
|
|
7050
|
+
headerType?: 'default' | 'back';
|
|
7051
|
+
backLabel?: string;
|
|
7052
|
+
backHref?: string;
|
|
7011
7053
|
size?: 's' | 'm' | 'l';
|
|
7012
7054
|
variant?: 'default' | 'dark' | 'light';
|
|
7013
7055
|
position?: 'left' | 'right';
|
|
@@ -7016,6 +7058,14 @@ type SidebarProps = WebComponentProps & {
|
|
|
7016
7058
|
showLogo?: boolean;
|
|
7017
7059
|
fullHeight?: boolean;
|
|
7018
7060
|
shadow?: boolean;
|
|
7061
|
+
onBackClick?: DbEventHandler<{
|
|
7062
|
+
label: string;
|
|
7063
|
+
href: string;
|
|
7064
|
+
}>;
|
|
7065
|
+
onDbBackClick?: DbEventHandler<{
|
|
7066
|
+
label: string;
|
|
7067
|
+
href: string;
|
|
7068
|
+
}>;
|
|
7019
7069
|
};
|
|
7020
7070
|
type SpinnerProps = WebComponentProps & {
|
|
7021
7071
|
type?: 'circular' | 'dots' | 'bars' | 'pulse' | 'ripple';
|