@kubit-ui-web/react-components 2.0.0-beta.24 → 2.0.0-beta.25

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.
@@ -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?: CheckboxLabelType;
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' | 'CONTAINER' | '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';
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;
@@ -2308,75 +2269,6 @@ declare type ComponentsTypesComponents = {
2308
2269
  };
2309
2270
  };
2310
2271
 
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
2272
  declare type CssAdvancedSelectorsType = {
2381
2273
  adjacent?: CssLibPropsType & {
2382
2274
  $target?: string;
@@ -3613,10 +3505,6 @@ export declare interface IconStyleProps extends CssLibPropsType {
3613
3505
 
3614
3506
  export declare type IImage = ImageStandAloneProps;
3615
3507
 
3616
- declare interface IInputLabelProps {
3617
- variant?: string;
3618
- }
3619
-
3620
3508
  /**
3621
3509
  * A flexible image component that supports generic customization.
3622
3510
  *
@@ -3957,7 +3845,6 @@ export declare interface InputStandAloneProps extends DataAttributes, Omit<Input
3957
3845
  required?: boolean;
3958
3846
  rightDecoration?: InputDecorationProps;
3959
3847
  leftDecoration?: InputDecorationProps;
3960
- label?: IInputLabelProps;
3961
3848
  /** Value to perform truncation logic */
3962
3849
  truncate?: boolean;
3963
3850
  /** 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.24",
3
+ "version": "2.0.0-beta.25",
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",
@@ -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",
@@ -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
- const { Container } = require('./container.js');
2
- module.exports = { ...module.exports, Container };
@@ -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';