@isi-ui7/corporate-themes 0.2.7 → 0.2.9
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/package.json +4 -4
- package/dist/LabelsContext.d.ts +0 -8
- package/dist/components/CorporateTheme.d.ts +0 -28
- package/dist/components/ThemeProvider.d.ts +0 -10
- package/dist/components/ThemeSwitcher.d.ts +0 -1
- package/dist/components.css +0 -14
- package/dist/context/ThemeContext.d.ts +0 -14
- package/dist/corporates/bca-syariah/index.d.ts +0 -14
- package/dist/corporates/bca-syariah/tokens.d.ts +0 -3
- package/dist/corporates/bjb-syariah/index.d.ts +0 -14
- package/dist/corporates/bjb-syariah/tokens.d.ts +0 -3
- package/dist/corporates/carbon-default/index.d.ts +0 -14
- package/dist/corporates/carbon-default/tokens.d.ts +0 -3
- package/dist/corporates/ihsan-solusi/index.d.ts +0 -14
- package/dist/corporates/ihsan-solusi/tokens.d.ts +0 -3
- package/dist/corporates/pos-indonesia/index.d.ts +0 -14
- package/dist/corporates/pos-indonesia/tokens.d.ts +0 -3
- package/dist/globals.css +0 -600
- package/dist/hooks/useBrandColors.d.ts +0 -1
- package/dist/hooks/useCorporateFeatures.d.ts +0 -7
- package/dist/hooks/useDensity.d.ts +0 -1
- package/dist/hooks/useFormVisualContract.d.ts +0 -27
- package/dist/hooks/useThemeTokens.d.ts +0 -1
- package/dist/hooks/useThemeVariant.d.ts +0 -4
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -447
- package/dist/labels.d.ts +0 -41
- package/dist/style.css +0 -1
- package/dist/tokens.d.ts +0 -3
- package/dist/types.d.ts +0 -52
- package/dist/utils/theme-utils.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isi-ui7/corporate-themes",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "Corporate themes (BCA Syariah, BJB Syariah, Pos Indonesia, Ihsan Solusi Informatika) with Carbon variants.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react-dom": "^18 || ^19"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@isi-ui7/bos7-shared": "0.
|
|
36
|
+
"@isi-ui7/bos7-shared": "0.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"react": "^19.0.0",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"typescript": "^5.3.3",
|
|
47
47
|
"vite": "^5.0.0",
|
|
48
48
|
"vite-plugin-dts": "^3.6.0",
|
|
49
|
-
"@isi-ui7/ui-shell": "0.2.8",
|
|
50
49
|
"@isi-ui7/modal-manager": "0.2.2",
|
|
51
50
|
"@isi-ui7/data-table": "0.2.5",
|
|
52
|
-
"@isi-ui7/editable-table": "0.2.3"
|
|
51
|
+
"@isi-ui7/editable-table": "0.2.3",
|
|
52
|
+
"@isi-ui7/ui-shell": "0.2.8"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "vite build && node scripts/build-css.mjs",
|
package/dist/LabelsContext.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Ui7Labels } from './labels';
|
|
3
|
-
|
|
4
|
-
export declare function LabelsProvider({ labels, children, }: {
|
|
5
|
-
labels?: Partial<Ui7Labels>;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare function useLabels(): Ui7Labels;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { CarbonThemeVariant } from '../types';
|
|
3
|
-
import { Ui7Labels } from '../labels';
|
|
4
|
-
|
|
5
|
-
type CorporateThemeProps<T extends ElementType> = {
|
|
6
|
-
as?: T;
|
|
7
|
-
className?: string;
|
|
8
|
-
corporateId?: string;
|
|
9
|
-
variant?: CarbonThemeVariant;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
} & Omit<React.ComponentPropsWithoutRef<T>, "as" | "className" | "children">;
|
|
12
|
-
type GlobalCorporateThemeProps = {
|
|
13
|
-
corporateId?: string;
|
|
14
|
-
variant?: CarbonThemeVariant;
|
|
15
|
-
labels?: Partial<Ui7Labels>;
|
|
16
|
-
children: ReactElement;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Scoped theme wrapper, similar to Carbon's <Theme>, that applies the corporate theme
|
|
20
|
-
* class to a container and provides a scoped ThemeContext value.
|
|
21
|
-
*/
|
|
22
|
-
export declare function CorporateTheme<T extends ElementType = "div">({ as, className, corporateId, variant, children, ...rest }: CorporateThemeProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
/**
|
|
24
|
-
* Global theme provider, analogous to Carbon's <GlobalTheme>.
|
|
25
|
-
* It sets the corporate/variant in context (and root classes via ThemeContextProvider).
|
|
26
|
-
*/
|
|
27
|
-
export declare function GlobalCorporateTheme({ corporateId, variant, labels, children }: GlobalCorporateThemeProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CarbonThemeVariant } from '../types';
|
|
3
|
-
|
|
4
|
-
type Props = {
|
|
5
|
-
corporateId?: string;
|
|
6
|
-
variant?: CarbonThemeVariant;
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare function ThemeProvider({ corporateId, variant, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ThemeSwitcher(): import("react/jsx-runtime").JSX.Element;
|