@kubit-ui-web/react-components 2.0.0-beta.24 → 2.0.0-beta.26
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/cjs/components/checkbox/checkboxStandAlone.js +1 -1
- package/dist/cjs/components/dot/dot.js +1 -1
- package/dist/cjs/components/input/inputStandAlone.js +1 -1
- package/dist/cjs/components/link/linkStandAlone.js +1 -1
- package/dist/cjs/components/tooltip/components/tooltipTrigger.js +1 -1
- package/dist/cjs/components/tooltip/tooltipStandAlone.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/cjs/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/esm/components/checkbox/checkboxStandAlone.js +5 -5
- package/dist/esm/components/dot/dot.js +1 -1
- package/dist/esm/components/input/inputStandAlone.js +3 -3
- package/dist/esm/components/link/linkStandAlone.js +3 -3
- package/dist/esm/components/tooltip/components/tooltipTrigger.js +1 -1
- package/dist/esm/components/tooltip/tooltipStandAlone.js +6 -6
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.css +1 -1
- package/dist/esm/lib/designSystem/kubit/css/kubit.min.css +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1
- package/dist/styles/kubit/css/kubit.css +25 -150
- package/dist/styles/kubit/css/kubit.min.css +1 -1
- package/dist/types/index.d.ts +5 -161
- package/package.json +11 -9
- package/dist/cjs/components/container/container.js +0 -1
- package/dist/cjs/components/container/containerStandAlone.js +0 -1
- package/dist/cjs/components/container/index.js +0 -2
- package/dist/esm/components/container/container.js +0 -2
- package/dist/esm/components/container/containerStandAlone.js +0 -4
- package/dist/esm/components/container/index.js +0 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1034,10 +1034,6 @@ export declare interface CheckboxControlledProps<Variant = undefined extends str
|
|
|
1034
1034
|
|
|
1035
1035
|
export declare type CheckboxCssClasses = ComponentSelected<ComponentsTypesComponents['CHECKBOX']>;
|
|
1036
1036
|
|
|
1037
|
-
export declare type CheckboxLabelType = Omit<LabelStandAloneProps, 'children' | 'inputId'> & {
|
|
1038
|
-
content?: string | JSX.Element;
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
1037
|
export declare interface CheckboxMessageType {
|
|
1042
1038
|
message?: CommonTextProps;
|
|
1043
1039
|
icon?: CommonIconProps;
|
|
@@ -1059,7 +1055,9 @@ export declare interface CheckboxStandAloneProps extends InputActionsType_2, Dat
|
|
|
1059
1055
|
* Reference for the CheckboxStyled component (input element)
|
|
1060
1056
|
*/
|
|
1061
1057
|
inputRef?: Ref<HTMLInputElement>;
|
|
1062
|
-
label?:
|
|
1058
|
+
label?: CommonTextProps & {
|
|
1059
|
+
requiredSymbol?: string | JSX.Element;
|
|
1060
|
+
};
|
|
1063
1061
|
errorMessage?: CheckboxMessageType;
|
|
1064
1062
|
checkedIcon?: CommonIconProps;
|
|
1065
1063
|
checkboxBase?: {
|
|
@@ -1162,7 +1160,7 @@ declare type ComponentSelected<T> = Pick<T, NonVariablesKeys<T>>;
|
|
|
1162
1160
|
|
|
1163
1161
|
declare type ComponentSelected_2<T> = Pick<T, NonVariablesKeys_2<T>>;
|
|
1164
1162
|
|
|
1165
|
-
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | '
|
|
1163
|
+
declare type ComponentsTypesAvailableComponents = 'ACCORDION' | 'ALERT' | 'AVATAR' | 'BADGE' | 'BREADCRUMBS' | 'BUTTON' | 'CALENDAR' | 'CARD' | 'CAROUSEL' | 'CHECKBOX' | 'CHECKBOX_BASE' | 'CHIP' | 'DATA_TABLE' | 'DOT' | 'ERROR_MESSAGE' | 'ICON' | 'INPUT' | 'INPUT_BASE' | 'INPUT_DECORATION' | 'INPUT_SIGNATURE' | 'ITEM_ROVE' | 'LINK' | 'LINK_AS_BUTTON' | 'LIST_OPTIONS' | 'MODAL' | 'OPTION' | 'OVERLAY' | 'PAGE_CONTROL' | 'PAGINATION' | 'POPOVER' | 'PROGRESS_BAR' | 'RADIO_BUTTON' | 'SELECT' | 'SELECTOR_BOX_FILE' | 'SKELETON' | 'SLIDER' | 'SNACKBAR' | 'STEPPER_NUMBER' | 'TABLE' | 'TABLE_BODY' | 'TABLE_CAPTION' | 'TABLE_CELL' | 'TABLE_DIVIDER' | 'TABLE_FOOT' | 'TABLE_HEAD' | 'TABLE_ROW' | 'TABS' | 'TAG' | 'TEXT' | 'TEXT_AREA' | 'TEXT_COUNT' | 'TOGGLE' | 'TOOLTIP' | 'VIRTUAL_KEYBOARD';
|
|
1166
1164
|
|
|
1167
1165
|
declare type ComponentsTypesComponents = {
|
|
1168
1166
|
ACCORDION: {
|
|
@@ -1404,21 +1402,6 @@ declare type ComponentsTypesComponents = {
|
|
|
1404
1402
|
rangeitemtext: string;
|
|
1405
1403
|
};
|
|
1406
1404
|
};
|
|
1407
|
-
CONTAINER: {
|
|
1408
|
-
container: string;
|
|
1409
|
-
content: string;
|
|
1410
|
-
header: string;
|
|
1411
|
-
title: string;
|
|
1412
|
-
$_alternative: {
|
|
1413
|
-
container: string;
|
|
1414
|
-
};
|
|
1415
|
-
$_default: {
|
|
1416
|
-
container: string;
|
|
1417
|
-
};
|
|
1418
|
-
$_secondary: {
|
|
1419
|
-
container: string;
|
|
1420
|
-
};
|
|
1421
|
-
};
|
|
1422
1405
|
DATA_TABLE: {
|
|
1423
1406
|
data_table: string;
|
|
1424
1407
|
headboxshadow: string;
|
|
@@ -1630,33 +1613,11 @@ declare type ComponentsTypesComponents = {
|
|
|
1630
1613
|
optionscontainer: string;
|
|
1631
1614
|
title: string;
|
|
1632
1615
|
titlecontainer: string;
|
|
1633
|
-
$_code_viewer_subtheme: {
|
|
1634
|
-
list_options: string;
|
|
1635
|
-
};
|
|
1636
1616
|
$_default: {
|
|
1637
1617
|
list_options: string;
|
|
1638
1618
|
title: string;
|
|
1639
1619
|
titlecontainer: string;
|
|
1640
1620
|
};
|
|
1641
|
-
$_dropdown_selected_section: {
|
|
1642
|
-
list_options: string;
|
|
1643
|
-
optionscontainer: string;
|
|
1644
|
-
};
|
|
1645
|
-
$_input_dropdown_default: {
|
|
1646
|
-
list_options: string;
|
|
1647
|
-
};
|
|
1648
|
-
$_input_dropdown_section: {
|
|
1649
|
-
list_options: string;
|
|
1650
|
-
};
|
|
1651
|
-
$_input_search: {
|
|
1652
|
-
list_options: string;
|
|
1653
|
-
};
|
|
1654
|
-
$_side_menu_section: {
|
|
1655
|
-
list_options: string;
|
|
1656
|
-
optionscontainer: string;
|
|
1657
|
-
title: string;
|
|
1658
|
-
titlecontainer: string;
|
|
1659
|
-
};
|
|
1660
1621
|
};
|
|
1661
1622
|
MODAL: {
|
|
1662
1623
|
modal: string;
|
|
@@ -1685,55 +1646,12 @@ declare type ComponentsTypesComponents = {
|
|
|
1685
1646
|
labeliconcontainer: string;
|
|
1686
1647
|
sublabel: string;
|
|
1687
1648
|
sublabelcontainer: string;
|
|
1688
|
-
$
|
|
1689
|
-
option: string;
|
|
1690
|
-
label: string;
|
|
1691
|
-
};
|
|
1692
|
-
$_input_dropdown: {
|
|
1693
|
-
option: string;
|
|
1694
|
-
icon: string;
|
|
1695
|
-
label: string;
|
|
1696
|
-
labeliconcontainer: string;
|
|
1697
|
-
};
|
|
1698
|
-
$_input_option: {
|
|
1699
|
-
option: string;
|
|
1700
|
-
icon: string;
|
|
1701
|
-
label: string;
|
|
1702
|
-
labelhighlighted: string;
|
|
1703
|
-
labeliconcontainer: string;
|
|
1704
|
-
sublabel: string;
|
|
1705
|
-
};
|
|
1706
|
-
$_input_option_hightlighted: {
|
|
1707
|
-
option: string;
|
|
1708
|
-
icon: string;
|
|
1709
|
-
label: string;
|
|
1710
|
-
labelhighlighted: string;
|
|
1711
|
-
labeliconcontainer: string;
|
|
1712
|
-
sublabel: string;
|
|
1713
|
-
};
|
|
1714
|
-
$_inverted: {
|
|
1715
|
-
option: string;
|
|
1716
|
-
label: string;
|
|
1717
|
-
};
|
|
1718
|
-
$_side_menu_level_1: {
|
|
1649
|
+
$_default: {
|
|
1719
1650
|
option: string;
|
|
1720
1651
|
icon: string;
|
|
1721
1652
|
label: string;
|
|
1722
1653
|
labeliconcontainer: string;
|
|
1723
1654
|
};
|
|
1724
|
-
$_side_menu_level_2: {
|
|
1725
|
-
option: string;
|
|
1726
|
-
label: string;
|
|
1727
|
-
};
|
|
1728
|
-
$_topbar: {
|
|
1729
|
-
option: string;
|
|
1730
|
-
label: string;
|
|
1731
|
-
labelhighlighted: string;
|
|
1732
|
-
};
|
|
1733
|
-
$_topbar_tab: {
|
|
1734
|
-
option: string;
|
|
1735
|
-
label: string;
|
|
1736
|
-
};
|
|
1737
1655
|
};
|
|
1738
1656
|
OVERLAY: {
|
|
1739
1657
|
overlay: string;
|
|
@@ -2308,75 +2226,6 @@ declare type ComponentsTypesComponents = {
|
|
|
2308
2226
|
};
|
|
2309
2227
|
};
|
|
2310
2228
|
|
|
2311
|
-
/**
|
|
2312
|
-
* Container component for grouping content with consistent styling and structure.
|
|
2313
|
-
*
|
|
2314
|
-
* This component wraps its children in a styled container, optionally displaying a header/title.
|
|
2315
|
-
* It is useful for organizing related content, settings, or sections in a visually consistent way.
|
|
2316
|
-
* Supports custom CSS classes and theming via variants.
|
|
2317
|
-
*
|
|
2318
|
-
* Internally, it computes CSS classes using a custom hook and delegates rendering to {@link ContainerStandAlone}.
|
|
2319
|
-
*
|
|
2320
|
-
* This component accepts a generic type parameter `<Variant extends string>` to allow for custom variant values,
|
|
2321
|
-
* enabling flexible theming and styling.
|
|
2322
|
-
*
|
|
2323
|
-
* @example
|
|
2324
|
-
* ```tsx
|
|
2325
|
-
* <Container title={{ content: "Section Title" }}>
|
|
2326
|
-
* Section content goes here.
|
|
2327
|
-
* </Container>
|
|
2328
|
-
*
|
|
2329
|
-
* // With a custom variant type:
|
|
2330
|
-
* type MyVariant = "primary" | "secondary";
|
|
2331
|
-
* <Container<MyVariant> title={{ content: "Primary Section" }} variant="primary">
|
|
2332
|
-
* Primary section content.
|
|
2333
|
-
* </Container>
|
|
2334
|
-
* ```
|
|
2335
|
-
*/
|
|
2336
|
-
export declare const Container: ForwardRefExoticComponent<ContainerProps<string> & {
|
|
2337
|
-
children?: ReactNode | undefined;
|
|
2338
|
-
} & RefAttributes<HTMLDivElement>>;
|
|
2339
|
-
|
|
2340
|
-
declare type ContainerCssClasses = ComponentSelected<ComponentsTypesComponents['CONTAINER']>;
|
|
2341
|
-
|
|
2342
|
-
/**
|
|
2343
|
-
* Interface for the container component with a variant.
|
|
2344
|
-
* Extends the IContainerStandAlone interface and adds a variant and additional CSS classes.
|
|
2345
|
-
*
|
|
2346
|
-
* @template Variant - The type of the variant for the container.
|
|
2347
|
-
*/
|
|
2348
|
-
export declare interface ContainerProps<Variant extends string | unknown> extends Omit<ContainerStandAloneProps, 'cssClasses'> {
|
|
2349
|
-
variant?: Variant;
|
|
2350
|
-
additionalClasses?: Partial<ContainerCssClasses>;
|
|
2351
|
-
}
|
|
2352
|
-
|
|
2353
|
-
/**
|
|
2354
|
-
* Interface for the standalone container component.
|
|
2355
|
-
* It includes optional custom CSS classes, a title, and a data-testid attribute.
|
|
2356
|
-
*/
|
|
2357
|
-
export declare interface ContainerStandAloneProps extends DataAttributes {
|
|
2358
|
-
cssClasses?: ContainerCssClasses;
|
|
2359
|
-
title?: CommonTextProps;
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
|
-
/**
|
|
2363
|
-
* Interface representing the styles for the container component.
|
|
2364
|
-
*/
|
|
2365
|
-
export declare interface ContainerStyleProps extends CssLibPropsType {
|
|
2366
|
-
_header?: CssLibPropsType;
|
|
2367
|
-
_title?: CssLibPropsType;
|
|
2368
|
-
_content?: CssLibPropsType;
|
|
2369
|
-
}
|
|
2370
|
-
|
|
2371
|
-
/**
|
|
2372
|
-
* Type representing the styles for different variants of the container component.
|
|
2373
|
-
*
|
|
2374
|
-
* @template Variant - The type of the variant keys.
|
|
2375
|
-
*/
|
|
2376
|
-
export declare type ContainerVariantStyles<Variant extends string> = ContainerStyleProps & {
|
|
2377
|
-
[key in Variant]: ContainerStyleProps;
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
2229
|
declare type CssAdvancedSelectorsType = {
|
|
2381
2230
|
adjacent?: CssLibPropsType & {
|
|
2382
2231
|
$target?: string;
|
|
@@ -3613,10 +3462,6 @@ export declare interface IconStyleProps extends CssLibPropsType {
|
|
|
3613
3462
|
|
|
3614
3463
|
export declare type IImage = ImageStandAloneProps;
|
|
3615
3464
|
|
|
3616
|
-
declare interface IInputLabelProps {
|
|
3617
|
-
variant?: string;
|
|
3618
|
-
}
|
|
3619
|
-
|
|
3620
3465
|
/**
|
|
3621
3466
|
* A flexible image component that supports generic customization.
|
|
3622
3467
|
*
|
|
@@ -3957,7 +3802,6 @@ export declare interface InputStandAloneProps extends DataAttributes, Omit<Input
|
|
|
3957
3802
|
required?: boolean;
|
|
3958
3803
|
rightDecoration?: InputDecorationProps;
|
|
3959
3804
|
leftDecoration?: InputDecorationProps;
|
|
3960
|
-
label?: IInputLabelProps;
|
|
3961
3805
|
/** Value to perform truncation logic */
|
|
3962
3806
|
truncate?: boolean;
|
|
3963
3807
|
/** HTML Standard attribute to focus automatically
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubit-ui-web/react-components",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.26",
|
|
4
4
|
"description": "Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kubit",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": "
|
|
25
|
+
"node": ">=22"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"react",
|
|
@@ -119,7 +119,9 @@
|
|
|
119
119
|
"react-dom": ">=17.0.0 || >=18.3.1"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@floating-ui/dom": "^1.7.4"
|
|
122
|
+
"@floating-ui/dom": "^1.7.4",
|
|
123
|
+
"@types/prismjs": "^1.26.5",
|
|
124
|
+
"prismjs": "^1.30.0"
|
|
123
125
|
},
|
|
124
126
|
"devDependencies": {
|
|
125
127
|
"@figma/code-connect": "^1.3.12",
|
|
@@ -133,14 +135,14 @@
|
|
|
133
135
|
"@testing-library/react": "^16.3.1",
|
|
134
136
|
"@testing-library/user-event": "^14.6.1",
|
|
135
137
|
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
136
|
-
"@types/node": "^25.0.
|
|
138
|
+
"@types/node": "^25.0.7",
|
|
137
139
|
"@types/react": "^18.3.12",
|
|
138
140
|
"@types/react-dom": "^18.3.1",
|
|
139
141
|
"@types/testing-library__jest-dom": "^6.0.0",
|
|
140
142
|
"@vitejs/plugin-react": "^5.1.2",
|
|
141
|
-
"@vitest/coverage-v8": "^4.0.
|
|
142
|
-
"@vitest/ui": "^4.0.
|
|
143
|
-
"bernova": "1.0.
|
|
143
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
144
|
+
"@vitest/ui": "^4.0.17",
|
|
145
|
+
"bernova": "1.0.1",
|
|
144
146
|
"cssnano": "^7.1.2",
|
|
145
147
|
"eslint": "^9.39.2",
|
|
146
148
|
"eslint-config-kubit": "1.2.0",
|
|
@@ -157,11 +159,11 @@
|
|
|
157
159
|
"storybook-addon-pseudo-states": "^10.1.11",
|
|
158
160
|
"terser": "^5.44.1",
|
|
159
161
|
"typescript": "^5.9.3",
|
|
160
|
-
"typescript-eslint": "^8.
|
|
162
|
+
"typescript-eslint": "^8.53.0",
|
|
161
163
|
"vite": "7.3.1",
|
|
162
164
|
"vite-plugin-dts": "^4.5.4",
|
|
163
165
|
"vite-tsconfig-paths": "^6.0.4",
|
|
164
|
-
"vitest": "^4.0.
|
|
166
|
+
"vitest": "^4.0.17",
|
|
165
167
|
"vitest-axe": "^0.1.0"
|
|
166
168
|
},
|
|
167
169
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),r=require("../../lib/hooks/useClassName/useClassName.js"),a=require("./containerStandAlone.js"),n=s.forwardRef(({additionalClasses:s,children:n,variant:t,...i},o)=>{const l=r.useClassName({additionalClassNames:s,component:"CONTAINER",variant:t});return e.jsx(a.ContainerStandAlone,{ref:o,...i,cssClasses:l,children:n})});exports.Container=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("../text/text.js"),r=require("../../lib/utils/pickCustomAttributes/pickCustomAttributes.js"),i=require("../../lib/utils/process/processCommonProp.js"),o=t.forwardRef(({children:t,cssClasses:o,title:c,...a},n)=>{const l=r.pickCustomAttributes(a);return e.jsxs("div",{className:o?.container,"data-testid":"container",...l,children:[e.jsx("div",{className:o?.header,children:e.jsx(s.Text,{additionalClasses:{text:o?.title},...i.processTextProp(c)})}),e.jsx("div",{ref:n,className:o?.content,children:t})]})});exports.ContainerStandAlone=o;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{jsx as s}from"react/jsx-runtime";import{forwardRef as a}from"react";import{useClassName as r}from"../../lib/hooks/useClassName/useClassName.js";import{ContainerStandAlone as o}from"./containerStandAlone.js";const e=a(({additionalClasses:a,children:e,variant:t,...n},i)=>{const m=r({additionalClassNames:a,component:"CONTAINER",variant:t});/* @__PURE__ */
|
|
2
|
-
return s(o,{ref:i,...n,cssClasses:m,children:e})});export{e as Container};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{jsxs as t,jsx as s}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Text as r}from"../text/text.js";import{pickCustomAttributes as i}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processTextProp as o}from"../../lib/utils/process/processCommonProp.js";const c=e(({children:e,cssClasses:c,title:m,...a},l)=>{const n=i(a);/* @__PURE__ */
|
|
2
|
-
return t("div",{className:c?.container,"data-testid":"container",...n,children:[
|
|
3
|
-
/* @__PURE__ */s("div",{className:c?.header,children:/* @__PURE__ */s(r,{additionalClasses:{text:c?.title},...o(m)})}),
|
|
4
|
-
/* @__PURE__ */s("div",{ref:l,className:c?.content,children:e})]})});export{c as ContainerStandAlone};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Container } from './container.js';
|