@kosdev-code/base-ui-components 0.1.0-dev.5596 → 0.1.0-dev.5623
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/components/atoms/tab/common/hooks/use-tab-context.d.ts +3 -1
- package/components/atoms/tab/common/hooks/use-tab-context.d.ts.map +1 -1
- package/components/atoms/tab/common/types.d.ts +1 -0
- package/components/atoms/tab/common/types.d.ts.map +1 -1
- package/components/atoms/tab/components/tab-trigger-list.d.ts.map +1 -1
- package/components/atoms/tab/components/tab-trigger.d.ts +7 -3
- package/components/atoms/tab/components/tab-trigger.d.ts.map +1 -1
- package/components/atoms/tab/index.d.ts +3 -2
- package/components/atoms/tab/index.d.ts.map +1 -1
- package/components/atoms/tab/tab.d.ts +3 -2
- package/components/atoms/tab/tab.d.ts.map +1 -1
- package/components/molecules/form/components/form-input.d.ts +2 -2
- package/components/molecules/form/components/form-input.d.ts.map +1 -1
- package/index.cjs +814 -715
- package/index.cjs.map +1 -1
- package/index.js +2965 -2783
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/styles/tokens/component-tokens/index.d.ts +17 -0
- package/styles/tokens/component-tokens/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/tab/index.d.ts +16 -0
- package/styles/tokens/component-tokens/tab/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/view/index.d.ts +1 -0
- package/styles/tokens/component-tokens/view/index.d.ts.map +1 -1
- package/styles/tokens/index.d.ts +17 -0
- package/styles/tokens/index.d.ts.map +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { TabVariant } from '../types';
|
|
2
|
+
|
|
2
3
|
export interface TabContextValue {
|
|
3
4
|
activeTab: string | undefined;
|
|
4
5
|
onTabChange: (value: string) => void;
|
|
6
|
+
variant: TabVariant;
|
|
5
7
|
}
|
|
6
8
|
export declare const TabContext: import('react').Context<TabContextValue | null>;
|
|
7
9
|
export declare const useTabContext: () => TabContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-tab-context.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/common/hooks/use-tab-context.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"use-tab-context.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/common/hooks/use-tab-context.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,OAAO,EAAE,UAAU,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,iDAA8C,CAAC;AAEtE,eAAO,MAAM,aAAa,uBAQzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/common/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/common/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-trigger-list.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/components/tab-trigger-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAOrD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,6BAGxB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"tab-trigger-list.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/components/tab-trigger-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAOrD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,6BAGxB,mBAAmB,qDAoCrB,CAAC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { IconColors, IconIds } from '../../icon';
|
|
2
2
|
|
|
3
|
-
interface TabTriggerProps {
|
|
3
|
+
export interface TabTriggerProps {
|
|
4
4
|
value: string;
|
|
5
5
|
text: string;
|
|
6
6
|
iconId?: IconIds;
|
|
7
7
|
iconColor?: IconColors;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
badge?: number | string;
|
|
11
|
+
onClose?: (value: string) => void;
|
|
12
|
+
closeable?: boolean;
|
|
13
|
+
maxWidth?: number | string;
|
|
9
14
|
}
|
|
10
|
-
export declare const TabTrigger: import('react').MemoExoticComponent<({ value, text, disabled, iconColor, iconId }: TabTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
11
|
-
export {};
|
|
15
|
+
export declare const TabTrigger: import('react').MemoExoticComponent<({ value, text, disabled, iconColor, iconId, tooltip, badge, onClose, closeable, maxWidth, }: TabTriggerProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
12
16
|
//# sourceMappingURL=tab-trigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-trigger.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/components/tab-trigger.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAQ,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAIjE,
|
|
1
|
+
{"version":3,"file":"tab-trigger.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/components/tab-trigger.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAQ,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAIjE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,UAAU,oIAYlB,eAAe,sDAoEnB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { useTabContext } from './common/hooks/use-tab-context';
|
|
2
2
|
export { Tab } from './tab';
|
|
3
|
-
export { TabTrigger } from './components/tab-trigger';
|
|
3
|
+
export { TabTrigger, type TabTriggerProps } from './components/tab-trigger';
|
|
4
4
|
export { TabTriggerList } from './components/tab-trigger-list';
|
|
5
|
-
export { TabPane } from './components/tab-pane';
|
|
5
|
+
export { TabPane, type TabPaneProps } from './components/tab-pane';
|
|
6
|
+
export type { TabVariant } from './common/types';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { TabOptions } from './common/types';
|
|
1
|
+
import { TabOptions, TabVariant } from './common/types';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
interface TabProps extends TabOptions {
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
variant?: TabVariant;
|
|
6
7
|
}
|
|
7
|
-
export declare const Tab: import('react').MemoExoticComponent<({ children, activeTab: controlledTab, onTabChange: controlledTabChange, defaultActiveTab, }: TabProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export declare const Tab: import('react').MemoExoticComponent<({ children, activeTab: controlledTab, onTabChange: controlledTabChange, defaultActiveTab, variant, }: TabProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=tab.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA2B,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/atoms/tab/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA2B,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG7D,UAAU,QAAS,SAAQ,UAAU;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB;AAED,eAAO,MAAM,GAAG,6IAOX,QAAQ,sDAkBZ,CAAC"}
|
|
@@ -2,11 +2,11 @@ import { BaseFormFieldProps } from '../common/types';
|
|
|
2
2
|
import { InputProps } from '../../../atoms';
|
|
3
3
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
4
4
|
|
|
5
|
-
export type FormInputProps<T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>> = BaseFormFieldProps<T, N> & Pick<InputProps, "type" | "className" | "placeholder" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIconId" | "autoFocus"> & {
|
|
5
|
+
export type FormInputProps<T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>> = BaseFormFieldProps<T, N> & Pick<InputProps, "type" | "className" | "placeholder" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIconId" | "suffixIcon" | "autoFocus"> & {
|
|
6
6
|
autoTrim?: boolean;
|
|
7
7
|
bold?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare const FormInput: <T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>>(props: BaseFormFieldProps<T, N> & Pick<InputProps, "autoFocus" | "className" | "placeholder" | "type" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIconId"> & {
|
|
9
|
+
export declare const FormInput: <T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>>(props: BaseFormFieldProps<T, N> & Pick<InputProps, "autoFocus" | "className" | "placeholder" | "type" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIcon" | "suffixIconId"> & {
|
|
10
10
|
autoTrim?: boolean | undefined;
|
|
11
11
|
bold?: boolean | undefined;
|
|
12
12
|
} & import('react').RefAttributes<HTMLInputElement>) => import('react').ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-input.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/form/components/form-input.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IACnC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,IAAI,CACF,UAAU,EACR,MAAM,GACN,WAAW,GACX,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,WAAW,CACd,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"form-input.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/form/components/form-input.tsx"],"names":[],"mappings":";AAIA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAKxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IACnC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,IAAI,CACF,UAAU,EACR,MAAM,GACN,WAAW,GACX,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,YAAY,GACZ,WAAW,CACd,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAyF7C,eAAO,MAAM,SAAS;;;iFAAoC,CAAC"}
|