jamespot-react-components 1.3.100 → 1.3.102

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.
Files changed (54) hide show
  1. package/dist/jamespot-react-components.cjs +1960 -1590
  2. package/dist/jamespot-react-components.js +14132 -13318
  3. package/dist/src/components/Filters/JRCFilterBar/JRCFilterBar.d.ts +15 -0
  4. package/dist/src/components/Filters/JRCFilterBar/JRCFilterBar.stories.d.ts +5 -0
  5. package/dist/src/components/Filters/JRCFilterChip/JRCFilterChip.d.ts +26 -0
  6. package/dist/src/components/Filters/JRCFilterChip/JRCFilterChip.stories.d.ts +7 -0
  7. package/dist/src/components/Filters/JRCFilterClearAll/JRCFilterClearAll.d.ts +8 -0
  8. package/dist/src/components/Filters/JRCFilterClearAll/JRCFilterClearAll.stories.d.ts +5 -0
  9. package/dist/src/components/Filters/JRCFilterPicker/JRCFilterPicker.d.ts +20 -0
  10. package/dist/src/components/Filters/JRCFilterPicker/JRCFilterPicker.stories.d.ts +7 -0
  11. package/dist/src/components/Filters/JRCPrimarySearch/JRCPrimarySearch.d.ts +24 -0
  12. package/dist/src/components/Filters/JRCPrimarySearch/JRCPrimarySearch.stories.d.ts +5 -0
  13. package/dist/src/components/Filters/types.d.ts +31 -0
  14. package/dist/src/components/Form/Input/JRCInputCheckbox/components/CheckboxOrToggle.d.ts +1 -1
  15. package/dist/src/components/Form/Input/JRCInputColor/JRCInputColor.styles.d.ts +4 -4
  16. package/dist/src/components/Form/Input/JRCInputImage/JRCInputImage.styles.d.ts +6 -6
  17. package/dist/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +1 -1
  18. package/dist/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +17 -16
  19. package/dist/src/components/Form/Input/JRCInputText/JRCInputTextIconButton.d.ts +12 -0
  20. package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.d.ts +2 -1
  21. package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.stories.d.ts +3 -0
  22. package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +12 -12
  23. package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +5 -5
  24. package/dist/src/components/Form/Input/JRCStyledInput.d.ts +14 -14
  25. package/dist/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +10 -10
  26. package/dist/src/components/JRCButton/types.d.ts +5 -1
  27. package/dist/src/components/JRCCommentsBloc/components/{NewComment.d.ts → JRCNewComment.d.ts} +6 -3
  28. package/dist/src/components/JRCDisplayCard/JRCDisplayCard.d.ts +1 -1
  29. package/dist/src/components/JRCDisplayCard/JRCDisplayCard.stories.d.ts +1 -1
  30. package/dist/src/components/JRCDragNDrop/OneLevelStyles.d.ts +2 -2
  31. package/dist/src/components/JRCDragNDrop/styles.d.ts +2 -2
  32. package/dist/src/components/JRCDropDown/JRCDropDown.d.ts +7 -1
  33. package/dist/src/components/JRCFileRow/JRCFileRow.d.ts +13 -0
  34. package/dist/src/components/JRCFileRow/JRCFileRow.stories.d.ts +8 -0
  35. package/dist/src/components/JRCFileRow/JRCFileRow.styles.d.ts +27 -0
  36. package/dist/src/components/JRCFlex/JRCFlexBox.d.ts +1 -1
  37. package/dist/src/components/JRCList/JRCList.d.ts +7 -1
  38. package/dist/src/components/JRCList/JRCList.styles.d.ts +3 -1
  39. package/dist/src/components/JRCModal/JRCModal.styles.d.ts +5 -5
  40. package/dist/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +2 -1
  41. package/dist/src/components/JRCTabs/JRCTabs.d.ts +1 -1
  42. package/dist/src/components/JRCTypography/JRCTypography.d.ts +1 -1
  43. package/dist/src/components/JRCTypography/JRCTypography.types.d.ts +1 -1
  44. package/dist/src/components/Templates/template.styles.d.ts +7 -5
  45. package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.d.ts +2 -24
  46. package/dist/src/components/Widgets/JRCWidgetEmailsImap/styles.d.ts +2 -2
  47. package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.styles.d.ts +6 -6
  48. package/dist/src/components/index.d.ts +18 -3
  49. package/dist/src/hooks/index.d.ts +1 -0
  50. package/dist/src/hooks/useHorizontalOverflow.d.ts +6 -0
  51. package/dist/src/styles/theme.d.ts +11 -1
  52. package/dist/src/translation/lang.json.d.ts +29 -0
  53. package/dist/src/types.d.ts +1 -0
  54. package/package.json +3 -3
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { DataCy } from '../../../types/dataAttributes';
3
+ export interface JRCFilterBarProps extends DataCy {
4
+ /**
5
+ * All children (primary search, chips, picker, clear-all button) rendered inline
6
+ * in a flex-wrap row. The ordering of children is the layout order.
7
+ */
8
+ children: ReactNode;
9
+ }
10
+ /**
11
+ * Dumb layout wrapper for a filter bar: a column with one flex-wrap row for the
12
+ * filter controls. Empty-state handling and content composition are the consumer's
13
+ * responsibility — this component only provides the spacing and flex container.
14
+ */
15
+ export declare const JRCFilterBar: import('react').NamedExoticComponent<JRCFilterBarProps>;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { JRCFilterBarProps } from './JRCFilterBar';
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCFilterBarProps>;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { DataCy } from '../../../types/dataAttributes';
3
+ import { JRCFilterChipTag, JRCFilterField } from '../types';
4
+ export interface JRCFilterChipProps extends DataCy {
5
+ field: JRCFilterField;
6
+ /** Non-null string if the filter carries a displayable summary ("A, B, C", "≥ 10"…). */
7
+ summary?: string | null;
8
+ /** Whether the popover is open (controlled by the parent). */
9
+ isOpen: boolean;
10
+ /** Operator caption shown next to the field label in the popover header (e.g. "contains"). */
11
+ operatorLabel?: string;
12
+ /** Removable pills representing the individual values selected inside this filter. */
13
+ selectedTags?: JRCFilterChipTag[];
14
+ /** Input(s) to render inside the popover body. Injected by the consumer. */
15
+ children: ReactNode;
16
+ onToggle: () => void;
17
+ onRemove: () => void;
18
+ }
19
+ /**
20
+ * Dumb filter chip: a pill button that opens a popover containing filter inputs.
21
+ *
22
+ * The popover body is fully controlled by `children` — this component does NOT know
23
+ * about widgetType, value shape, or rendering logic. The consumer (layer 2) injects
24
+ * whatever input matches the filter's semantics.
25
+ */
26
+ export declare const JRCFilterChip: import('react').NamedExoticComponent<JRCFilterChipProps>;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { JRCFilterChip } from './JRCFilterChip';
3
+ declare const meta: Meta<typeof JRCFilterChip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof JRCFilterChip>;
6
+ export declare const Empty: Story;
7
+ export declare const WithValueAndTags: Story;
@@ -0,0 +1,8 @@
1
+ import { DataCy } from '../../../types/dataAttributes';
2
+ export interface JRCFilterClearAllProps extends DataCy {
3
+ onClick: () => void;
4
+ }
5
+ /**
6
+ * Dumb "Clear all filters" button. Styled as a discrete inline action next to the pills.
7
+ */
8
+ export declare const JRCFilterClearAll: import('react').NamedExoticComponent<JRCFilterClearAllProps>;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { JRCFilterClearAllProps } from './JRCFilterClearAll';
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCFilterClearAllProps>;
@@ -0,0 +1,20 @@
1
+ import { DataCy } from '../../../types/dataAttributes';
2
+ import { JRCFilterField } from '../types';
3
+ export interface JRCFilterPickerProps extends DataCy {
4
+ fields: JRCFilterField[];
5
+ activeFieldNames: Set<string>;
6
+ onSelect: (fieldName: string) => void;
7
+ }
8
+ /**
9
+ * Dumb filter picker: trigger + dropdown with searchable list of available fields.
10
+ *
11
+ * No dependency on widgetType, backend shape or i18n outside GLOBAL_Filter_*. The
12
+ * consumer passes a pre-built JRCFilterField[] (with icon/typeLabel already resolved)
13
+ * and a Set of names to mark as "already picked" (greyed out, not selectable).
14
+ *
15
+ * Open state, click-outside, Escape, and ARIA wiring (`aria-expanded`,
16
+ * `aria-controls`, `role="region"`) are delegated to `JRCDropDown`. The dynamic
17
+ * left/right alignment is computed on click before the dropdown mounts, so the
18
+ * initial render lands on the correct side without a flicker.
19
+ */
20
+ export declare const JRCFilterPicker: import('react').NamedExoticComponent<JRCFilterPickerProps>;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { JRCFilterPicker } from './JRCFilterPicker';
3
+ declare const meta: Meta<typeof JRCFilterPicker>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof JRCFilterPicker>;
6
+ export declare const Default: Story;
7
+ export declare const WithActiveFields: Story;
@@ -0,0 +1,24 @@
1
+ import { DataCy } from '../../../types/dataAttributes';
2
+ export interface JRCPrimarySearchProps extends DataCy {
3
+ value: string;
4
+ onChange: (value: string) => void;
5
+ onSubmit?: () => void;
6
+ placeholder: string;
7
+ name?: string;
8
+ }
9
+ /**
10
+ * Controlled search input for filter bars (icon + Enter-to-submit). Wraps
11
+ * `JRCInputTextIconButtonRaw` which is itself controlled — needed because
12
+ * the surrounding `JFilterBar` syncs the value with its Redux state
13
+ * (`state.searchText`) and needs to reset/seed it programmatically (e.g.
14
+ * "Clear all filters", URL params hydration).
15
+ *
16
+ * Note: not replaceable by `JRCInputSearchRaw` which is non-controlled
17
+ * (state interne via `useDebouncedCallback`, no `value` prop). Switching
18
+ * would break the bidirectional sync with the filter bar state.
19
+ *
20
+ * The surrounding component decides what the input actually filters on
21
+ * (e.g. `title` in Studio View). `onChange` fires on every keystroke — the
22
+ * parent is expected to debounce if needed.
23
+ */
24
+ export declare const JRCPrimarySearch: import('react').NamedExoticComponent<JRCPrimarySearchProps>;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react-vite';
2
+ import { JRCPrimarySearchProps } from './JRCPrimarySearch';
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCPrimarySearchProps>;
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ import { DataCy } from '../../types/dataAttributes';
3
+ /**
4
+ * Minimal field descriptor for the dumb Filter UI components.
5
+ *
6
+ * The layer-1 components have no knowledge of `widgetType` or any backend concept —
7
+ * they expose only what is needed for rendering: a stable `name`, a user-facing
8
+ * `label`, and optional presentation hints (`icon`, `typeLabel`). The upstream
9
+ * layer (react-core) maps a `widgetType` to these hints before passing the array in.
10
+ */
11
+ export interface JRCFilterField {
12
+ /** Stable identifier used as key and passed back in callbacks. */
13
+ name: string;
14
+ /** Display label (already translated if applicable). */
15
+ label: string;
16
+ /** Optional icon name rendered in the picker/chip (e.g. 'icon-text'). */
17
+ icon?: string;
18
+ /** Optional "type" caption displayed next to the label in the picker (e.g. "Text"). */
19
+ typeLabel?: string;
20
+ }
21
+ /** Selected value summary displayed as small removable pills inside a JRCFilterChip popover. */
22
+ export interface JRCFilterChipTag extends DataCy {
23
+ key: string;
24
+ label: string;
25
+ onRemove: () => void;
26
+ }
27
+ /** Props passed by a consumer that needs to render children inside the JRCFilterChip popover. */
28
+ export interface JRCFilterChipRenderProps {
29
+ field: JRCFilterField;
30
+ children?: ReactNode;
31
+ }
@@ -9,7 +9,7 @@ type CheckboxLabelProps = {
9
9
  $margin?: string;
10
10
  };
11
11
  export declare const FocusBackground: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
12
- variant?: "default" | "outlined";
12
+ $variant?: "default" | "outlined";
13
13
  }>> & string;
14
14
  export declare const CheckboxLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, CheckboxLabelProps>> & string;
15
15
  export declare const CheckboxOrToggle: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type"> & {
@@ -1,10 +1,10 @@
1
1
  export declare const CSSColorPicker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import('../../../../types/dataAttributes').DataCy & {
2
- error?: boolean;
3
- valid?: boolean;
2
+ $error?: boolean;
3
+ $valid?: boolean;
4
4
  readOnly?: boolean;
5
5
  } & {
6
- hasIconBefore?: boolean;
7
- hasIconAfter?: boolean;
6
+ $hasIconBefore?: boolean;
7
+ $hasIconAfter?: boolean;
8
8
  } & {
9
9
  $inputMargin?: string | undefined;
10
10
  } & {
@@ -1,13 +1,13 @@
1
1
  import { DropZoneDimensions } from './types';
2
2
  export declare const InputFileWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
3
  export declare const Grid: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
- position?: "right" | "bottom";
5
- columnCount: number;
4
+ $position?: "right" | "bottom";
5
+ $columnCount: number;
6
6
  }>> & string;
7
7
  export declare const DropZone: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
8
- position?: "right" | "bottom";
9
- columnCount: number;
10
- dzDimensions?: DropZoneDimensions;
8
+ $position?: "right" | "bottom";
9
+ $columnCount: number;
10
+ $dzDimensions?: DropZoneDimensions;
11
11
  }>> & string;
12
12
  export declare const ReadOnlyImg: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
13
13
  export declare const DropZoneButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
@@ -16,6 +16,6 @@ export declare const DropZoneButton: import('styled-components/dist/types').ISty
16
16
  }>> & string;
17
17
  export declare const DropZoneImage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
18
18
  export declare const ImageButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
19
- aspectRatio?: number;
19
+ $aspectRatio?: number;
20
20
  }>> & string;
21
21
  export declare const Img: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
@@ -20,7 +20,7 @@ export declare const RenderInput: import('react').ForwardRefExoticComponent<Data
20
20
  * validation props: required
21
21
  * @returns JSX.Element
22
22
  */
23
- export declare function JRCInputText<T extends FieldValues = FieldValues>({ htmlFor, label, description, helper, rules, ...props }: JRCInputFieldProps<T> & {
23
+ export declare function JRCInputText<T extends FieldValues = FieldValues>({ htmlFor, label, description, helper, rules, srOnly, labelIsLegend, ...props }: JRCInputFieldProps<T> & {
24
24
  width?: string;
25
25
  disabled?: boolean;
26
26
  autoComplete?: 'on' | 'off';
@@ -45,42 +45,43 @@ export declare const IconAfter: import('styled-components/dist/types').IStyledCo
45
45
  srOnly?: string;
46
46
  } & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
47
47
  export declare const InputIconButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
48
- error?: boolean;
49
- valid?: boolean;
48
+ $error?: boolean;
49
+ $valid?: boolean;
50
50
  readOnly?: boolean;
51
51
  } & {
52
- hasIconBefore?: boolean;
53
- hasIconAfter?: boolean;
52
+ $hasIconBefore?: boolean;
53
+ $hasIconAfter?: boolean;
54
54
  } & {
55
55
  $inputMargin?: string | undefined;
56
56
  } & import('react').RefAttributes<HTMLInputElement>, {
57
57
  hasIconButtonAfter: boolean;
58
+ $inputMargin?: string;
58
59
  }>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
59
- error?: boolean;
60
- valid?: boolean;
60
+ $error?: boolean;
61
+ $valid?: boolean;
61
62
  readOnly?: boolean;
62
63
  } & {
63
- hasIconBefore?: boolean;
64
- hasIconAfter?: boolean;
64
+ $hasIconBefore?: boolean;
65
+ $hasIconAfter?: boolean;
65
66
  } & {
66
67
  $inputMargin?: string | undefined;
67
68
  } & import('react').RefAttributes<HTMLInputElement>>, keyof import('react').Component<any, {}, any>>;
68
69
  export declare const InputTextStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
69
- error?: boolean;
70
- valid?: boolean;
70
+ $error?: boolean;
71
+ $valid?: boolean;
71
72
  readOnly?: boolean;
72
73
  } & {
73
- hasIconBefore?: boolean;
74
- hasIconAfter?: boolean;
74
+ $hasIconBefore?: boolean;
75
+ $hasIconAfter?: boolean;
75
76
  } & {
76
77
  $inputMargin?: string | undefined;
77
78
  } & import('react').RefAttributes<HTMLInputElement>, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
78
- error?: boolean;
79
- valid?: boolean;
79
+ $error?: boolean;
80
+ $valid?: boolean;
80
81
  readOnly?: boolean;
81
82
  } & {
82
- hasIconBefore?: boolean;
83
- hasIconAfter?: boolean;
83
+ $hasIconBefore?: boolean;
84
+ $hasIconAfter?: boolean;
84
85
  } & {
85
86
  $inputMargin?: string | undefined;
86
87
  } & import('react').RefAttributes<HTMLInputElement>>, keyof import('react').Component<any, {}, any>>;
@@ -2,6 +2,7 @@ import { ComponentPropsWithoutRef } from 'react';
2
2
  import { DataCy } from '../../../../types/dataAttributes';
3
3
  export type JRCInputTextIconButtonProps = DataCy & ComponentPropsWithoutRef<'input'> & {
4
4
  iconBefore: string;
5
+ inputMargin?: string;
5
6
  iconButtonAfter?: {
6
7
  icon: string;
7
8
  onClick: () => void;
@@ -10,4 +11,15 @@ export type JRCInputTextIconButtonProps = DataCy & ComponentPropsWithoutRef<'inp
10
11
  srOnly?: string;
11
12
  };
12
13
  };
14
+ export declare const JRCInputTextIconButtonRaw: import('react').ForwardRefExoticComponent<DataCy & Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
15
+ iconBefore: string;
16
+ inputMargin?: string;
17
+ iconButtonAfter?: {
18
+ icon: string;
19
+ onClick: () => void;
20
+ ariaExpanded?: boolean;
21
+ ariaControls?: string;
22
+ srOnly?: string;
23
+ };
24
+ } & import('react').RefAttributes<HTMLInputElement>>;
13
25
  export declare function JRCInputTextIconButton(props: any): import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,7 @@ import { FieldError } from 'react-hook-form';
3
3
  import { JRCTooltipProps } from '../../../JRCTooltip/types';
4
4
  type JRCInputTextRawProps = ComponentPropsWithoutRef<'input'> & {
5
5
  margin?: string | undefined;
6
+ inputMargin?: string | undefined;
6
7
  width?: string | undefined;
7
8
  readOnly?: boolean;
8
9
  disabled?: boolean;
@@ -15,5 +16,5 @@ type JRCInputTextRawProps = ComponentPropsWithoutRef<'input'> & {
15
16
  errors?: FieldError;
16
17
  customRef?: Ref<HTMLInputElement>;
17
18
  };
18
- export declare function JRCInputTextRaw(props: JRCInputTextRawProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function JRCInputTextRaw({ margin, width, isRequired, label, htmlFor, labelIsLegend, description, helper, errors, customRef, className, ...inputProps }: JRCInputTextRawProps): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
@@ -3,6 +3,7 @@ declare const _default: Meta;
3
3
  export default _default;
4
4
  export declare const InputTextRaw: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
5
5
  margin?: string | undefined;
6
+ inputMargin?: string | undefined;
6
7
  width?: string | undefined;
7
8
  readOnly?: boolean;
8
9
  disabled?: boolean;
@@ -17,6 +18,7 @@ export declare const InputTextRaw: import('storybook/internal/csf').AnnotatedSto
17
18
  }>;
18
19
  export declare const InputTextRawDisabled: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
19
20
  margin?: string | undefined;
21
+ inputMargin?: string | undefined;
20
22
  width?: string | undefined;
21
23
  readOnly?: boolean;
22
24
  disabled?: boolean;
@@ -31,6 +33,7 @@ export declare const InputTextRawDisabled: import('storybook/internal/csf').Anno
31
33
  }>;
32
34
  export declare const InputTextRawWithError: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
33
35
  margin?: string | undefined;
36
+ inputMargin?: string | undefined;
34
37
  width?: string | undefined;
35
38
  readOnly?: boolean;
36
39
  disabled?: boolean;
@@ -1,6 +1,6 @@
1
1
  export declare const StyledFieldWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, {
2
- margin?: string;
3
- width?: string;
2
+ $margin?: string;
3
+ $width?: string;
4
4
  }>> & string;
5
5
  export declare const Required: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('../../../Common/FastCss').FastCssProps & {
6
6
  id?: string;
@@ -29,25 +29,25 @@ export declare const Required: import('styled-components/dist/types').IStyledCom
29
29
  maxWidth?: string | number;
30
30
  whiteSpace?: import('react').CSSProperties["whiteSpace"];
31
31
  }>, never>, {
32
- error: boolean;
33
- }>> & string & Omit<({ variant, ellipsis, size, weight, color, align, hoverColor, maxWidth, whiteSpace, ...props }: import('../../../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
32
+ $error: boolean;
33
+ }>> & string & Omit<({ variant, ellipsis, size, weight, color, align, textAlign, hoverColor, maxWidth, whiteSpace, ...props }: import('../../../..').JRCTypographyProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
34
34
  export declare const LabelWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
35
35
  export declare const InputTextRawStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
36
- error?: boolean;
37
- valid?: boolean;
36
+ $error?: boolean;
37
+ $valid?: boolean;
38
38
  readOnly?: boolean;
39
39
  } & {
40
- hasIconBefore?: boolean;
41
- hasIconAfter?: boolean;
40
+ $hasIconBefore?: boolean;
41
+ $hasIconAfter?: boolean;
42
42
  } & {
43
43
  $inputMargin?: string | undefined;
44
44
  } & import('react').RefAttributes<HTMLInputElement>, never>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "css"> & import('../../../../types/dataAttributes').DataCy & {
45
- error?: boolean;
46
- valid?: boolean;
45
+ $error?: boolean;
46
+ $valid?: boolean;
47
47
  readOnly?: boolean;
48
48
  } & {
49
- hasIconBefore?: boolean;
50
- hasIconAfter?: boolean;
49
+ $hasIconBefore?: boolean;
50
+ $hasIconAfter?: boolean;
51
51
  } & {
52
52
  $inputMargin?: string | undefined;
53
53
  } & import('react').RefAttributes<HTMLInputElement>>, keyof import('react').Component<any, {}, any>>;
@@ -13,8 +13,8 @@ export declare const RelativeClickAwayListener: import('styled-components/dist/t
13
13
  className?: string;
14
14
  }) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
15
15
  export declare const OptionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
16
- isSelected?: boolean;
17
- isFocused?: boolean;
16
+ $isSelected?: boolean;
17
+ $isFocused?: boolean;
18
18
  }>> & string;
19
19
  export declare const NoOption: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
20
20
  export declare const OptionGroup: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -35,7 +35,7 @@ export declare const InputSelectCheckboxWrapper: import('styled-components/dist/
35
35
  export declare const CheckboxLabelButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
36
36
  export declare const InputSelectSearch: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
37
37
  export declare const OptionSelectCell: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
38
- isSelected: boolean;
38
+ $isSelected: boolean;
39
39
  }>> & string;
40
40
  export declare const ModalContentInputSelectList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
41
41
  export declare const ModalContentInputSelect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -43,9 +43,9 @@ export declare const FlexBoxTreeDescription: import('styled-components/dist/type
43
43
  export declare const NoResult: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
44
44
  export declare const WrapperList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
45
45
  export declare const ModalContentList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
46
- export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "inline" | "flex" | "position" | "x" | "y" | "padding" | "margin" | "textAlign" | "data-testid" | "direction" | "gap" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
46
+ export declare const NoOptionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "flex" | "position" | "x" | "y" | "padding" | "margin" | "textAlign" | "data-testid" | "$inline" | "direction" | "gap" | "childFull"> & Omit<import('../../../Common/FastCss').FastCssProps, "display"> & {
47
47
  direction?: import('../../../JRCFlex/JRCFlexBox').FlexDirection;
48
- inline?: boolean;
48
+ $inline?: boolean;
49
49
  flex?: boolean | string;
50
50
  gap?: number;
51
51
  x?: "flex-start" | "center" | "flex-end" | "space-around" | "space-between" | "space-evenly";
@@ -1,13 +1,13 @@
1
- import { DataCy } from '../../../types/dataAttributes';
2
1
  import { InputHTMLAttributes } from 'react';
2
+ import { DataCy } from '../../../types/dataAttributes';
3
3
  /**
4
4
  * Input state, if both booleans are false, the input is considered untouched or empty
5
5
  * @member error, the input is error regarding the validate hook
6
6
  * @member valid, the input is valid regarding the validate hook
7
7
  */
8
8
  type InputState = DataCy & {
9
- error?: boolean;
10
- valid?: boolean;
9
+ $error?: boolean;
10
+ $valid?: boolean;
11
11
  readOnly?: boolean;
12
12
  };
13
13
  /**
@@ -15,34 +15,34 @@ type InputState = DataCy & {
15
15
  * and the not-reset legacy style set with input[type="toto"]
16
16
  */
17
17
  type IconsProps = {
18
- hasIconBefore?: boolean;
19
- hasIconAfter?: boolean;
18
+ $hasIconBefore?: boolean;
19
+ $hasIconAfter?: boolean;
20
20
  };
21
21
  export type CommonStyledInputProps = InputState & IconsProps & {
22
22
  $inputMargin?: string | undefined;
23
23
  };
24
24
  export declare const cssStyledInput: import('styled-components').RuleSet<CommonStyledInputProps>;
25
25
  export declare const StyledInput: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "css"> & DataCy & {
26
- error?: boolean;
27
- valid?: boolean;
26
+ $error?: boolean;
27
+ $valid?: boolean;
28
28
  readOnly?: boolean;
29
29
  } & IconsProps & {
30
30
  $inputMargin?: string | undefined;
31
31
  } & import('react').RefAttributes<HTMLInputElement>>;
32
32
  type StyledSelectProps = DataCy & IconsProps & {
33
- searchable?: boolean;
34
- sizeVariant?: 's' | 'md';
35
- noMargin?: boolean;
33
+ $searchable?: boolean;
34
+ $sizeVariant?: 's' | 'md';
35
+ $noMargin?: boolean;
36
36
  };
37
37
  export declare const StyledSelect: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<InputHTMLAttributes<HTMLInputElement>, "css"> & DataCy & {
38
- error?: boolean;
39
- valid?: boolean;
38
+ $error?: boolean;
39
+ $valid?: boolean;
40
40
  readOnly?: boolean;
41
41
  } & IconsProps & {
42
42
  $inputMargin?: string | undefined;
43
43
  } & import('react').RefAttributes<HTMLInputElement>, StyledSelectProps>> & string & Omit<import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "css"> & DataCy & {
44
- error?: boolean;
45
- valid?: boolean;
44
+ $error?: boolean;
45
+ $valid?: boolean;
46
46
  readOnly?: boolean;
47
47
  } & IconsProps & {
48
48
  $inputMargin?: string | undefined;
@@ -1,23 +1,23 @@
1
1
  export declare const JRCAppLeftColumnWrapperTop: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
2
  export declare const ColumnRelativeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
- isMinimized: boolean;
3
+ $isMinimized: boolean;
4
4
  }>> & string;
5
5
  export declare const ColumnRelativeSticky: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
6
- isMinimized: boolean;
7
- isClosed: boolean;
6
+ $isMinimized: boolean;
7
+ $isClosed: boolean;
8
8
  }>> & string;
9
9
  export declare const ColumnRelativeTransition: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
10
- isMinimized: boolean;
10
+ $isMinimized: boolean;
11
11
  }>> & string;
12
12
  export declare const ColumnAppDefault: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
13
- isMinimized: boolean;
14
- isClosed: boolean;
13
+ $isMinimized: boolean;
14
+ $isClosed: boolean;
15
15
  }>> & string;
16
16
  export declare const ColumnAppMinimize: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
17
  export declare const MenuWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
18
- isMinimized: boolean;
18
+ $isMinimized: boolean;
19
19
  }>> & string;
20
- export declare const ItemsIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "isActive"> & import('../JRCTabs/JRCTabs').ItemProps, never>> & string;
20
+ export declare const ItemsIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$isActive"> & import('../JRCTabs/JRCTabs').ItemProps, never>> & string;
21
21
  export declare const TitleMenu: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "key" | keyof import('react').HTMLAttributes<HTMLHeadingElement>> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">, never>> & string;
22
22
  export declare const JRCIconButtonAppLeftColumn: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick"> & import('../../types/dataAttributes').DataCy & {
23
23
  icon: string;
@@ -65,10 +65,10 @@ export declare const JRCIconButtonAppLeftColumn: import('styled-components/dist/
65
65
  srOnly?: string;
66
66
  } & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
67
67
  export declare const AppLeftColumnIconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {
68
- isMinimized: boolean;
68
+ $isMinimized: boolean;
69
69
  }>> & string;
70
70
  export declare const AbsoluteContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
71
71
  export declare const AbsoluteContainerMinimized: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
72
- isMinimized: boolean;
72
+ $isMinimized: boolean;
73
73
  }>> & string;
74
74
  export declare const SectionMinimizesWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -56,4 +56,8 @@ export type StyledButtonProps = {
56
56
  $noMargin?: ButtonProps['noMargin'];
57
57
  $borderRadius?: ButtonProps['borderRadius'];
58
58
  $borderRadiusMode?: ButtonProps['borderRadiusMode'];
59
- } & Omit<ButtonProps, 'noMargin' | 'borderRadius' | 'borderRadiusMode'> & OutlineProps;
59
+ $iconRight?: ButtonProps['iconRight'];
60
+ $loader?: ButtonProps['loader'];
61
+ $float?: ButtonProps['float'];
62
+ $minWidth?: ButtonProps['minWidth'];
63
+ } & Omit<ButtonProps, 'noMargin' | 'borderRadius' | 'borderRadiusMode' | 'iconRight' | 'loader' | 'float' | 'minWidth'> & OutlineProps;
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  import { DriveOrFilebank } from '../../Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw';
4
4
  import { JRCInputTinyMCERawProps } from '../../Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw';
5
5
  import { TinyMCEExtension } from '../../Form/Input/JRCInputTinyMCERaw/types';
6
- type NewCommentProps = {
6
+ export type JRCNewCommentProps = {
7
7
  currentUser: jUserList;
8
8
  widgetListComponent: ReactNode;
9
9
  newWidgetsWrapperComponent: ReactNode;
@@ -18,6 +18,9 @@ type NewCommentProps = {
18
18
  socialQuestion?: boolean;
19
19
  deleteFile?: (id: number) => Promise<void>;
20
20
  additionalExtensions: Array<TinyMCEExtension>;
21
+ /** Open the TinyMCE editor on mount instead of waiting for a click on the placeholder. */
22
+ defaultExpanded?: boolean;
23
+ /** When false, the publish button is enabled even with empty content. Default true. */
24
+ requireContent?: boolean;
21
25
  };
22
- export declare const NewComment: ({ newWidgetsWrapperComponent, widgetListComponent, canComment, loading, currentUser, onComment, onError, tinyMCEConfig, token, activeDrives, canCreateWidget, socialQuestion, deleteFile, additionalExtensions, }: NewCommentProps) => import("react/jsx-runtime").JSX.Element;
23
- export {};
26
+ export declare const JRCNewComment: ({ newWidgetsWrapperComponent, widgetListComponent, canComment, loading, currentUser, onComment, onError, tinyMCEConfig, token, activeDrives, canCreateWidget, socialQuestion, deleteFile, additionalExtensions, defaultExpanded, requireContent, }: JRCNewCommentProps) => import("react/jsx-runtime").JSX.Element;
@@ -13,4 +13,4 @@ export type JRCDisplayCardProps = {
13
13
  href?: string;
14
14
  onClick?: () => void;
15
15
  };
16
- export declare const JRCDisplayCard: ({ children, href, onClick, ...props }: JRCDisplayCardProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const JRCDisplayCard: ({ children, href, onClick, loading, skeleton, width, height, aspectRatio, }: JRCDisplayCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { JRCDisplayCardProps } from './JRCDisplayCard';
2
2
  declare const _default: {
3
3
  title: string;
4
- component: ({ children, href, onClick, ...props }: JRCDisplayCardProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ children, href, onClick, loading, skeleton, width, height, aspectRatio, }: JRCDisplayCardProps) => import("react/jsx-runtime").JSX.Element;
5
5
  };
6
6
  export default _default;
7
7
  export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, JRCDisplayCardProps>;