jamespot-react-components 1.3.83 → 1.3.84
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/CLAUDE.md +62 -0
- package/dist/jamespot-react-components.cjs +1079 -1051
- package/dist/jamespot-react-components.js +9900 -9787
- package/dist/src/components/Common/JRCConditionalWrapper.stories.d.ts +1 -1
- package/dist/src/components/Common/LimitLines.d.ts +1 -1
- package/dist/src/components/Common/Outline.stories.d.ts +1 -1
- package/dist/src/components/Deprecated/Deprecated_ClickAwayListener/ClickAwayListener.stories.d.ts +1 -1
- package/dist/src/components/Deprecated/Deprecated_JRCEllipsis/JRCEllipsis.stories.d.ts +1 -1
- package/dist/src/components/Form/Common/ClickAwayListener.stories.d.ts +1 -1
- package/dist/src/components/Form/Common/FormMessageFeedback.stories.d.ts +1 -1
- package/dist/src/components/Form/Input/Common/JRCFormErrors.stories.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.stories.d.ts +4 -4
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputCheckbox/JRCInputToggle.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColor.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputColor/JRCInputColorRaw.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputDate/JRCInputDate.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputDateMulti/JRCInputDateMulti.stories.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCInputDateTime/JRCInputDateTIme.stories.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCInputEmail/JRCInputEmail.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputFile/JRCInputFile.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvanced.stories.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw.d.ts +3 -2
- package/dist/src/components/Form/Input/JRCInputImage/JRCInputImage.stories.d.ts +3 -3
- package/dist/src/components/Form/Input/JRCInputRange/JRCInputRange.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputSearchRaw/JRCInputSearchRaw.stories.d.ts +1 -1
- package/dist/src/components/Form/Input/JRCInputSimpleFile/JRCInputSimpleFile.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputTime/JRCInputTime.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCInputTinyMCERaw/extensions/JIAExtension/JIATextGenerationExtension.d.ts +1 -0
- package/dist/src/components/Form/Input/JRCInputUrl/JRCInputUrl.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCInputAudience.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.stories.d.ts +2 -2
- package/dist/src/components/Form/Input/JRCSelect/JRCInputSelectList.stories.d.ts +2 -2
- package/dist/src/components/JRCAlbum/JRCAlbum.d.ts +1 -1
- package/dist/src/components/JRCAlbum/JRCAlbum.stories.d.ts +1 -1
- package/dist/src/components/JRCAlbum/components/AlbumItem.d.ts +2 -2
- package/dist/src/components/JRCAlbum/components/AlbumX1.d.ts +1 -1
- package/dist/src/components/JRCAlbum/styles.d.ts +4 -16
- package/dist/src/components/JRCAlbum/types.d.ts +5 -3
- package/dist/src/components/JRCAlert/JRCAlert.stories.d.ts +5 -5
- package/dist/src/components/JRCAppHeader/JRCAppHeader.stories.d.ts +2 -2
- package/dist/src/components/JRCAttachments/JRCAttachments.d.ts +7 -3
- package/dist/src/components/JRCAttachments/JRCAttachments.stories.d.ts +3 -2
- package/dist/src/components/JRCAvatar/JRCAvatar.d.ts +1 -1
- package/dist/src/components/JRCAvatar/JRCAvatar.stories.d.ts +2 -2
- package/dist/src/components/JRCAvatars/JRCAvatars.stories.d.ts +1 -1
- package/dist/src/components/JRCBreadcrumb/JRCBreadcrumb.stories.d.ts +2 -2
- package/dist/src/components/JRCBusinessContactList/JRCBusinessContactList.stories.d.ts +2 -2
- package/dist/src/components/JRCBusinessContacts/JRCBusinessContacts.stories.d.ts +1 -1
- package/dist/src/components/JRCButtonDownload/JRCButtonDownload.stories.d.ts +5 -5
- package/dist/src/components/JRCButtonDropdown/JRCButtonDropdown.stories.d.ts +1 -1
- package/dist/src/components/JRCButtonFile/JRCButtonFile.stories.d.ts +4 -4
- package/dist/src/components/JRCCalendar/JRCCalendar.d.ts +1 -1
- package/dist/src/components/JRCCalendar/JRCCalendar.stories.d.ts +1 -1
- package/dist/src/components/JRCCalendar/JRCCalendarModal.d.ts +4 -3
- package/dist/src/components/JRCCalendar/types.d.ts +4 -3
- package/dist/src/components/JRCCard/JRCCard.stories.d.ts +2 -2
- package/dist/src/components/JRCCard/JRCCardImg.stories.d.ts +2 -2
- package/dist/src/components/JRCCollapse/JRCCollapse.stories.d.ts +1 -1
- package/dist/src/components/JRCCommentsBloc/JRCComment.d.ts +5 -5
- package/dist/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +6 -6
- package/dist/src/components/JRCCommentsBloc/JRCCommentsBloc.stories.d.ts +2 -2
- package/dist/src/components/JRCCommentsBloc/components/EditComment.d.ts +2 -1
- package/dist/src/components/JRCCommentsBloc/components/NewComment.d.ts +2 -1
- package/dist/src/components/JRCCropImage/JRCCropImage.stories.d.ts +2 -2
- package/dist/src/components/JRCDate/JRCDate.stories.d.ts +1 -1
- package/dist/src/components/JRCDisplayCard/JRCDisplayCard.stories.d.ts +2 -2
- package/dist/src/components/JRCDragNDrop/JRCDndOneLevel.stories.d.ts +1 -1
- package/dist/src/components/JRCDragNDrop/JRCDndOneLevelWithStack.stories.d.ts +1 -1
- package/dist/src/components/JRCDragNDrop/JRCDndTwoLevelWithStack.stories.d.ts +1 -1
- package/dist/src/components/JRCDropDown/JRCDropDown.stories.d.ts +1 -1
- package/dist/src/components/JRCEditor/JRCEditor.stories.d.ts +1 -1
- package/dist/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +2 -2
- package/dist/src/components/JRCFile/JRCFile.stories.d.ts +2 -2
- package/dist/src/components/JRCFile/JRCFileAvatar.d.ts +7 -1
- package/dist/src/components/JRCFileViewer/JRCFileViewer.stories.d.ts +2 -2
- package/dist/src/components/JRCFlex/JRCFlexBox.stories.d.ts +1 -1
- package/dist/src/components/JRCFolders/JRCFolders.stories.d.ts +1 -1
- package/dist/src/components/JRCGifSelector/JRCGifSelector.stories.d.ts +1 -1
- package/dist/src/components/JRCGroupList/JRCGroupList.stories.d.ts +2 -2
- package/dist/src/components/JRCGroups/JRCGroups.stories.d.ts +1 -1
- package/dist/src/components/JRCHtml/JRCHtml.d.ts +10 -2
- package/dist/src/components/JRCHtml/JRCHtml.stories.d.ts +4 -2
- package/dist/src/components/JRCIcon/JRCIcon.stories.d.ts +1 -1
- package/dist/src/components/JRCIconButton/JRCIconButton.stories.d.ts +2 -2
- package/dist/src/components/JRCImg/JRCImg.stories.d.ts +3 -3
- package/dist/src/components/JRCList/JRCList.stories.d.ts +3 -3
- package/dist/src/components/JRCList/JRCListMockData.stories.d.ts +2 -2
- package/dist/src/components/JRCLoadMore/JRCLoadMore.stories.d.ts +1 -1
- package/dist/src/components/JRCLoader/JRCLoader.stories.d.ts +1 -1
- package/dist/src/components/JRCMediaLoader/JRCMediaLoader.stories.d.ts +1 -1
- package/dist/src/components/JRCMessage/JRCMessage.stories.d.ts +5 -5
- package/dist/src/components/JRCMetas/JRCMetas.d.ts +2 -1
- package/dist/src/components/JRCMetas/JRCMetas.stories.d.ts +3 -0
- package/dist/src/components/JRCModal/templates/JRCModal.stories.d.ts +2 -2
- package/dist/src/components/JRCModal/templates/JRCModalForm.stories.d.ts +2 -2
- package/dist/src/components/JRCModalImg/JRCModalImg.stories.d.ts +2 -2
- package/dist/src/components/JRCPagination/JRCPagination.stories.d.ts +2 -2
- package/dist/src/components/JRCPublishButton/JRCPublishButton.stories.d.ts +1 -1
- package/dist/src/components/JRCQRCode/JRCQRCode.stories.d.ts +1 -1
- package/dist/src/components/JRCSidePanelModal/JRCSidePanelModal.stories.d.ts +2 -2
- package/dist/src/components/JRCSidePanelModal/JRCSidePanelModalForm.stories.d.ts +2 -2
- package/dist/src/components/JRCSlider/JRCSlider.stories.d.ts +2 -2
- package/dist/src/components/JRCStyledHref/JRCStyledHref.stories.d.ts +2 -2
- package/dist/src/components/JRCTabs/JRCTabs.stories.d.ts +2 -2
- package/dist/src/components/JRCTag/JRCTag.stories.d.ts +2 -2
- package/dist/src/components/JRCTooltip/JRCTooltip.stories.d.ts +1 -1
- package/dist/src/components/JRCTypography/JRCTypography.stories.d.ts +1 -1
- package/dist/src/components/JRCUserList/JRCUserList.stories.d.ts +2 -2
- package/dist/src/components/JRCUserPopup/JRCUserPopup.stories.d.ts +2 -2
- package/dist/src/components/JRCUsers/JRCUsers.stories.d.ts +1 -1
- package/dist/src/components/Stepper/JRCStepper.stories.d.ts +1 -1
- package/dist/src/components/Templates/JRCTemplate.stories.d.ts +3 -3
- package/dist/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.d.ts +23 -5
- package/dist/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.stories.d.ts +3 -4
- package/dist/src/components/Widgets/JRCWidgetButton/JRCWidgetButton.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetSurveyDate/JRCWidgetSurveyDate.stories.d.ts +2 -2
- package/dist/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.stories.d.ts +4 -4
- package/dist/src/components/Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile.stories.d.ts +6 -6
- package/dist/src/components/Widgets/JRCWidgetWelcome/JRCWidgetWelcome.stories.d.ts +9 -9
- package/dist/src/hooks/UseDebounce.stories.d.ts +1 -1
- package/dist/src/styles/theme.d.ts +9 -7
- package/dist/src/translation/lang.json.d.ts +5 -0
- package/package.json +3 -6
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# CLAUDE.md — jamespot-react-components
|
|
2
|
+
|
|
3
|
+
Design system : composants UI réutilisables, Storybook, conformité RGAA. Consommé via le registre par core et extensions.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
src/
|
|
9
|
+
├── components/
|
|
10
|
+
│ └── JRC{Name}/
|
|
11
|
+
│ ├── JRC{Name}.tsx # Composant (préfixe JRC)
|
|
12
|
+
│ ├── JRC{Name}.stories.tsx # Story Storybook
|
|
13
|
+
│ ├── JRC{Name}.styles.tsx # Optionnel : styled-components séparés
|
|
14
|
+
│ └── JRC{Name}.test.tsx # Optionnel : test Jest unitaire
|
|
15
|
+
├── hooks/ # useDebounce, useThemeContext, …
|
|
16
|
+
├── styles/
|
|
17
|
+
│ ├── theme.tsx # ThemeType + initTheme()
|
|
18
|
+
│ └── styled-components.d.ts # Augmentation DefaultTheme
|
|
19
|
+
├── translation/
|
|
20
|
+
│ └── lang.json
|
|
21
|
+
└── types.ts # Re-exports des props
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Spécificités
|
|
25
|
+
|
|
26
|
+
- TS flags : `noImplicitOverride`, `noUnusedLocals`, `noUnusedParameters` (TODO : `exactOptionalPropertyTypes`)
|
|
27
|
+
- Couverture : 100% statements + functions (exclus : `Deprecated/`, `utils/utils.misc.ts`)
|
|
28
|
+
- Build : Vite library (ESM + CJS) avec `vite-plugin-css-injected-by-js` — CSS injecté dans le JS, pas de fichier séparé
|
|
29
|
+
|
|
30
|
+
### Cycle de vie des composants
|
|
31
|
+
|
|
32
|
+
| Préfixe / dossier | Statut | Obligation tests |
|
|
33
|
+
|-------------------|--------|------------------|
|
|
34
|
+
| `0-RGAA/Category/` | conforme | tests d'interaction + 100% statement |
|
|
35
|
+
| `untested/` | en cours | doit viser conformité |
|
|
36
|
+
| `BETA_` (dans `Beta/`) | expérimental | aucune |
|
|
37
|
+
| `Deprecated_` (dans `Deprecated/`) | à supprimer | aucune |
|
|
38
|
+
|
|
39
|
+
### Conventions Storybook spécifiques
|
|
40
|
+
|
|
41
|
+
- **Stories `0-RGAA/`** : `tags: ['testing']` (filtre du test runner) + `parameters: { mode: 'test' }` obligatoires
|
|
42
|
+
- Spy : `fn()` de `storybook/test`, **jamais** `jest.fn()`
|
|
43
|
+
- Setup : `IntlProvider` (locale: 'en') + `JRCThemeProvider`, portail `<div id="react-modal" />` pour modals, `@storybook/addon-a11y`
|
|
44
|
+
|
|
45
|
+
### Tokens du thème exposés
|
|
46
|
+
|
|
47
|
+
`ThemeType` est exporté pour augmentation `DefaultTheme` côté apps. La liste exhaustive des tokens (color/space/size/font/zIndex) est dans `ui/styled-components.md`.
|
|
48
|
+
|
|
49
|
+
### Scripts spécifiques
|
|
50
|
+
|
|
51
|
+
- `pnpm storybook` — dev port 6006
|
|
52
|
+
- `pnpm test:jest` — Jest unitaires uniquement (`--runInBand`)
|
|
53
|
+
- `pnpm test:storybook` — interaction tests (lance Storybook automatiquement)
|
|
54
|
+
- `pnpm test` — tout (jest + storybook)
|
|
55
|
+
|
|
56
|
+
## Voir aussi
|
|
57
|
+
|
|
58
|
+
- `.claude/rules/frontend/_shared/` — règles universelles
|
|
59
|
+
- `.claude/rules/frontend/ui/` — composants, styled-components, accessibilité, navigation, displayer
|
|
60
|
+
- `.claude/rules/frontend/ui/components.md` — réutilisation, registre, composition Raw/Wrapper
|
|
61
|
+
- `.claude/rules/frontend/ui/styled-components.md` — props transientes, theme, tokens
|
|
62
|
+
- `.claude/rules/frontend/ui/accessibility.md` — RGAA, tests Storybook, helpers (SROnly, SkipToContent)
|