@cnamts/synapse 1.0.26 → 1.0.27
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/{AutocompleteFilter-BPR-a55G.js → AutocompleteFilter-C9eLKyW8.js} +3 -3
- package/dist/{DateFilter-CknrJWs2.js → DateFilter-y-GLkAkn.js} +8 -8
- package/dist/{NumberFilter-DJ-yNlzv.js → NumberFilter-DN6hIBS7.js} +1 -1
- package/dist/{PeriodFilter-CiB5Oa9Z.js → PeriodFilter-MoUUp9qS.js} +1 -1
- package/dist/{SelectFilter-EiafX97M.js → SelectFilter-bCbrdLmu.js} +1 -1
- package/dist/{TextFilter-BzOmpdxj.js → TextFilter-CvjgEaoM.js} +4 -4
- package/dist/apLightTheme2026-ug4Y23ns.js +611 -0
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +2369 -353
- package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +18 -0
- package/dist/components/Customs/Selects/SyAutocomplete/utils/ariaManager.d.ts +1 -1
- package/dist/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.d.ts +3 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +9 -10
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +1 -0
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +15 -0
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +3 -3
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +3 -3
- package/dist/components/Customs/SyIconButton/SyIconButton.d.ts +18 -0
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +20 -38
- package/dist/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.d.ts +50 -0
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +6 -6
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +147 -136
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +62 -54
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +27 -24
- package/dist/components/DatePicker/composables/index.d.ts +1 -0
- package/dist/components/DatePicker/composables/useDatePickerValidationBridge.d.ts +51 -0
- package/dist/components/MonthPicker/MonthPicker.d.ts +23 -23
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +23 -23
- package/dist/components/NirField/NirField.d.ts +56 -56
- package/dist/components/PasswordField/PasswordField.d.ts +3 -3
- package/dist/components/PeriodField/PeriodField.d.ts +236 -212
- package/dist/components/PhoneField/PhoneField.d.ts +23 -23
- package/dist/components/SyTextArea/SyTextArea.d.ts +25 -15
- package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +20 -0
- package/dist/components/SyTextArea/locales.d.ts +1 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +1 -0
- package/dist/components/Tables/SyTable/SyTable.d.ts +1 -0
- package/dist/components/Tables/common/SyTablePagination.d.ts +25 -25
- package/dist/components/Tables/common/types.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +160 -160
- package/dist/composables/unifyValidation/useValidation.d.ts +16 -14
- package/dist/design-system-v3.js +81 -80
- package/dist/designTokens/tokens/amelipro/apContextual.d.ts +6 -6
- package/dist/designTokens/tokens/amelipro/apDarkTheme.d.ts +3 -1
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +53 -100
- package/dist/designTokens/tokens/baseContextualTokens.d.ts +0 -6
- package/dist/designTokens/tokens/baseTokens.d.ts +232 -0
- package/dist/designTokens/tokens/cnam/cnamContextual.d.ts +6 -6
- package/dist/designTokens/tokens/cnam/cnamDarkTheme.d.ts +1 -1
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +57 -101
- package/dist/designTokens/tokens/pa/paContextual.d.ts +0 -6
- package/dist/designTokens/tokens/pa/paDarkTheme.d.ts +1 -1
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +53 -97
- package/dist/designTokens/tokens/pa/paSemantic.d.ts +1 -0
- package/dist/designTokens/tokens/semanticTokens.d.ts +112 -0
- package/dist/main-CI6Q9nmO.js +39234 -0
- package/dist/synapse.css +1 -1
- package/dist/vuetifyConfig.js +208 -72
- package/package.json +4 -2
- package/src/assets/overrides/_icons.scss +5 -4
- package/src/assets/overrides/_otp.scss +4 -4
- package/src/assets/overrides/_typography.scss +2 -1
- package/src/assets/overrides/_utilities.scss +1 -42
- package/src/components/ChipList/ChipList.vue +30 -18
- package/src/components/ChipList/tests/chipList.spec.ts +4 -4
- package/src/components/CopyBtn/CopyBtn.vue +2 -2
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +4 -0
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +7 -6
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +223 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.stories.ts +283 -351
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +182 -218
- package/src/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.ts +101 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +761 -1
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +3 -1
- package/src/components/Customs/Selects/SyAutocomplete/utils/useKeyboardHandler.ts +79 -5
- package/src/components/Customs/Selects/SyAutocomplete/validation/Validation.stories.ts +1029 -0
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +9 -491
- package/src/components/Customs/Selects/SySelect/SySelect.vue +46 -79
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +3 -0
- package/src/components/Customs/Selects/SySelect/composables/useSySelectValidation.ts +64 -0
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +196 -0
- package/src/components/Customs/Selects/SySelect/validation/Validation.stories.ts +1026 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +18 -7
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +2 -2
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +8 -8
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +8 -8
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +1 -1
- package/src/components/Customs/SyIcon/accessibilite/Accessibility.mdx +0 -6
- package/src/components/Customs/SyIcon/utils/tests/iconUtils.spec.ts +107 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.mdx +2 -2
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +395 -200
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +82 -127
- package/src/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.ts +127 -0
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.a11y.spec.ts +93 -1
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.spec.ts +146 -9
- package/src/components/Customs/SyRadioGroup/tests/SyRadioGroup.visual.cy.ts +165 -0
- package/src/components/Customs/SyRadioGroup/validation/Validation.stories.ts +773 -0
- package/src/components/Customs/SyTabs/config.ts +3 -3
- package/src/components/Customs/SyTabs/tests/SyTabs.spec.ts +265 -0
- package/src/components/Customs/SyTabs/tests/useTabTransition.spec.ts +188 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +10 -29
- package/src/components/Customs/SyTextField/SyTextField.vue +23 -15
- package/src/components/DataList/DataList.stories.ts +1 -1
- package/src/components/DataListItem/tests/DataListItem.spec.ts +3 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +37 -142
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.coverage.spec.ts +156 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.spec.ts +495 -4
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +47 -66
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +206 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/bridge-integration.regression.spec.ts +210 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/calendar-navigation.regression.spec.ts +214 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/validation-cross.regression.spec.ts +194 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/validation-success-messages.regression.spec.ts +83 -0
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +129 -54
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +320 -0
- package/src/components/DatePicker/composables/index.ts +1 -0
- package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +360 -0
- package/src/components/DatePicker/composables/tests/useDatePickerValidationBridge.spec.ts +129 -0
- package/src/components/DatePicker/composables/useDatePickerValidationBridge.ts +205 -0
- package/src/components/DatePicker/docExamples/BidirectionalComplexValidation.vue +1 -1
- package/src/components/DatePicker/docExamples/DatePickerBidirectionalValidation.vue +1 -1
- package/src/components/DatePicker/tests/exposed-methods.coverage.spec.ts +75 -0
- package/src/components/DialogBox/DialogBox.vue +1 -1
- package/src/components/FileList/UploadItem/UploadItem.vue +4 -4
- package/src/components/FileUpload/FileUpload.vue +2 -2
- package/src/components/FileUpload/FileUploadContent.vue +1 -1
- package/src/components/FilterInline/FilterInline.mdx +2 -2
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +1 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +2 -2
- package/src/components/FooterBar/FooterBar.vue +7 -7
- package/src/components/FranceConnectBtn/FranceConnectBtn.vue +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +2 -2
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +7 -7
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +2 -2
- package/src/components/HeaderLoading/tests/HeaderLoading.spec.ts +87 -8
- package/src/components/HeaderNavigationBar/HorizontalNavbar/HorizontalNavbar.vue +3 -3
- package/src/components/HeaderNavigationBar/HorizontalNavbar/tests/HorizontalNavbar.spec.ts +589 -0
- package/src/components/HeaderToolbar/tests/HeaderToolBar.spec.ts +153 -1
- package/src/components/HeaderToolbar/tests/useMobileRightMenu.spec.ts +258 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +2 -2
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +1 -1
- package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +184 -0
- package/src/components/MonthPicker/MonthPickerVisual/MonthSelector.vue +3 -3
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerFooter.vue +1 -1
- package/src/components/MonthPicker/MonthPickerVisual/VisualPickerHeader.vue +2 -2
- package/src/components/MonthPicker/MonthPickerVisual/YearSelector.vue +1 -1
- package/src/components/NirField/NirField.vue +3 -3
- package/src/components/NotificationBar/Notification/Notification.vue +12 -12
- package/src/components/NotificationBar/NotificationBar.stories.ts +8 -8
- package/src/components/PaginatedTable/Pagination.vue +2 -2
- package/src/components/PasswordField/PasswordField.vue +8 -8
- package/src/components/PasswordField/tests/PasswordField.spec.ts +3 -3
- package/src/components/RangeField/RangeSlider/RangeSlider.vue +2 -2
- package/src/components/RangeField/RangeSlider/Tooltip/Tooltip.vue +1 -1
- package/src/components/StatusPage/tests/StatusPage.spec.ts +149 -0
- package/src/components/SubHeader/SubHeader.vue +1 -1
- package/src/components/SyAlert/SyAlert.vue +23 -23
- package/src/components/SyTextArea/SyTextArea.stories.ts +177 -131
- package/src/components/SyTextArea/SyTextArea.vue +235 -83
- package/src/components/SyTextArea/composables/useSyTextAreaValidation.ts +81 -0
- package/src/components/SyTextArea/locales.ts +1 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +449 -1
- package/src/components/SyTextArea/useDefaultValidationRules.ts +2 -7
- package/src/components/SyTextArea/validation/Validation.stories.ts +856 -0
- package/src/components/TableToolbar/TableToolbar.vue +6 -6
- package/src/components/TableToolbar/accessibilite/Accessibility.mdx +81 -7
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +163 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +2 -1
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +67 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +94 -0
- package/src/components/Tables/SyTable/SyTable.vue +2 -1
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +64 -0
- package/src/components/Tables/common/TableHeader.vue +2 -2
- package/src/components/Tables/common/filters/logics/tests/NumberFilterLogic.spec.ts +176 -0
- package/src/components/Tables/common/filters/logics/tests/SelectFilterLogic.spec.ts +111 -0
- package/src/components/Tables/common/tableStyles.scss +6 -6
- package/src/components/Tables/common/types.ts +2 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/composables/date/tests/useDateFormatDayjs.spec.ts +31 -0
- package/src/composables/date/tests/useHolidayDay.spec.ts +109 -0
- package/src/composables/rules/tests/useFieldValidation.spec.ts +374 -0
- package/src/composables/tests/useError.spec.ts +30 -0
- package/src/composables/tests/useFormFieldErrorHandling.spec.ts +234 -0
- package/src/composables/unifyValidation/documentationValidationProps.ts +5 -5
- package/src/composables/unifyValidation/tests/documentationValidationProps.spec.ts +177 -0
- package/src/composables/unifyValidation/tests/useCustomValidation.spec.ts +30 -0
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +6 -2
- package/src/composables/unifyValidation/useCustomValidation.ts +19 -9
- package/src/composables/unifyValidation/useValidation.ts +18 -21
- package/src/composables/useFilterable/useFilterable.spec.ts +42 -0
- package/src/composables/useFilterable/useFilterable.ts +11 -7
- package/src/composables/useFormFieldErrorHandling.ts +2 -2
- package/src/composantsVuetify/VBtn/VBtn.mdx +9 -39
- package/src/composantsVuetify/VBtn/v-btn.stories.ts +26 -86
- package/src/designTokens/tokens/amelipro/apContextual.ts +6 -0
- package/src/designTokens/tokens/amelipro/apDarkTheme.ts +2 -2
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +72 -103
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/baseContextualTokens.ts +1 -6
- package/src/designTokens/tokens/baseTokens.ts +232 -0
- package/src/designTokens/tokens/cnam/cnamContextual.ts +6 -0
- package/src/designTokens/tokens/cnam/cnamDarkTheme.ts +2 -2
- package/src/designTokens/tokens/cnam/cnamLightTheme.ts +76 -104
- package/src/designTokens/tokens/pa/paDarkTheme.ts +2 -2
- package/src/designTokens/tokens/pa/paLightTheme.ts +73 -99
- package/src/designTokens/tokens/pa/paSemantic.ts +2 -0
- package/src/designTokens/tokens/semanticTokens.ts +114 -0
- package/src/stories/Components/Components.stories.ts +7 -3
- package/src/stories/DesignTokens/ColorIntegrationExample.vue +2 -3
- package/src/stories/DesignTokens/Colors.mdx +6 -8
- package/src/stories/DesignTokens/colors.stories.ts +244 -1081
- package/src/utils/amelipro/toKebabCase/tests/toKebabCase.spec.ts +52 -0
- package/src/utils/formatNir/tests/formatNir.spec.ts +34 -0
- package/src/utils/tests/insertAt.spec.ts +44 -0
- package/dist/apLightTheme-DS0Uy44H.js +0 -954
- package/dist/components/RatingPicker/tests/RatingPicker.a11y.spect.d.ts +0 -1
- package/dist/main-BsJ9ec3i.js +0 -38954
- package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.events.spec.ts +0 -178
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
- /package/src/components/RatingPicker/tests/{RatingPicker.a11y.spect.ts → RatingPicker.a11y.spec.ts} +0 -0
|
@@ -98,16 +98,20 @@ export default function useFilterable(model: Ref<FilterProp>, emits) {
|
|
|
98
98
|
= typedValue.from !== undefined && typedValue.to !== undefined
|
|
99
99
|
|
|
100
100
|
if (isPeriodField) {
|
|
101
|
-
|
|
101
|
+
const hasFrom = typedValue.from !== null
|
|
102
|
+
const hasTo = typedValue.to !== null
|
|
103
|
+
|
|
104
|
+
if (!hasFrom && !hasTo) {
|
|
102
105
|
return []
|
|
103
106
|
}
|
|
104
107
|
|
|
105
|
-
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
const text = hasFrom && hasTo
|
|
109
|
+
? `${typedValue.from} – ${typedValue.to}`
|
|
110
|
+
: hasFrom
|
|
111
|
+
? `${typedValue.from} –`
|
|
112
|
+
: `– ${typedValue.to}`
|
|
113
|
+
|
|
114
|
+
return [{ text, value: typedValue }]
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
// Handle single select objects (VSelect with return-object but without multiple)
|
|
@@ -84,8 +84,8 @@ export const useFormFieldErrorHandling = (
|
|
|
84
84
|
|
|
85
85
|
const result = await validation.validateField(
|
|
86
86
|
value,
|
|
87
|
-
[...defaultRules.value, ...props.customRules
|
|
88
|
-
props.customWarningRules
|
|
87
|
+
[...defaultRules.value, ...(props.customRules ?? [])],
|
|
88
|
+
props.customWarningRules ?? [],
|
|
89
89
|
)
|
|
90
90
|
|
|
91
91
|
return !result.hasError
|
|
@@ -12,55 +12,25 @@ Pour l'API complète du composant, consulter la [documentation Vuetify](https://
|
|
|
12
12
|
## Primary
|
|
13
13
|
|
|
14
14
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
15
|
-
<Canvas of={VBtnStories.
|
|
16
|
-
<Canvas of={VBtnStories.
|
|
17
|
-
<Canvas of={VBtnStories.
|
|
18
|
-
<Canvas of={VBtnStories.PrimaryText} />
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
## Primary – Désactivé
|
|
22
|
-
|
|
23
|
-
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
24
|
-
<Canvas of={VBtnStories.PrimaryElevatedDisabled} />
|
|
25
|
-
<Canvas of={VBtnStories.PrimaryOutlinedDisabled} />
|
|
26
|
-
<Canvas of={VBtnStories.PrimaryTonalDisabled} />
|
|
27
|
-
<Canvas of={VBtnStories.PrimaryTextDisabled} />
|
|
15
|
+
<Canvas of={VBtnStories.Primary} />
|
|
16
|
+
<Canvas of={VBtnStories.PrimaryLoading} />
|
|
17
|
+
<Canvas of={VBtnStories.PrimaryDisabled} />
|
|
28
18
|
</div>
|
|
29
19
|
|
|
30
20
|
## Secondary
|
|
31
21
|
|
|
32
22
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
33
|
-
<Canvas of={VBtnStories.
|
|
34
|
-
<Canvas of={VBtnStories.
|
|
35
|
-
<Canvas of={VBtnStories.
|
|
36
|
-
<Canvas of={VBtnStories.SecondaryText} />
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
## Secondary – Désactivé
|
|
40
|
-
|
|
41
|
-
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
42
|
-
<Canvas of={VBtnStories.SecondaryElevatedDisabled} />
|
|
43
|
-
<Canvas of={VBtnStories.SecondaryOutlinedDisabled} />
|
|
44
|
-
<Canvas of={VBtnStories.SecondaryTonalDisabled} />
|
|
45
|
-
<Canvas of={VBtnStories.SecondaryTextDisabled} />
|
|
23
|
+
<Canvas of={VBtnStories.Secondary} />
|
|
24
|
+
<Canvas of={VBtnStories.SecondaryLoading} />
|
|
25
|
+
<Canvas of={VBtnStories.SecondaryDisabled} />
|
|
46
26
|
</div>
|
|
47
27
|
|
|
48
28
|
## Tertiary
|
|
49
29
|
|
|
50
30
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
51
|
-
<Canvas of={VBtnStories.
|
|
52
|
-
<Canvas of={VBtnStories.
|
|
53
|
-
<Canvas of={VBtnStories.
|
|
54
|
-
<Canvas of={VBtnStories.TertiaryText} />
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
## Tertiary – Désactivé
|
|
58
|
-
|
|
59
|
-
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '12px', alignItems: 'center', padding: '24px' }}>
|
|
60
|
-
<Canvas of={VBtnStories.TertiaryElevatedDisabled} />
|
|
61
|
-
<Canvas of={VBtnStories.TertiaryOutlinedDisabled} />
|
|
62
|
-
<Canvas of={VBtnStories.TertiaryTonalDisabled} />
|
|
63
|
-
<Canvas of={VBtnStories.TertiaryTextDisabled} />
|
|
31
|
+
<Canvas of={VBtnStories.Tertiary} />
|
|
32
|
+
<Canvas of={VBtnStories.TertiaryLoading} />
|
|
33
|
+
<Canvas of={VBtnStories.TertiaryDisabled} />
|
|
64
34
|
</div>
|
|
65
35
|
|
|
66
36
|
## Variants disponibles
|
|
@@ -8,7 +8,7 @@ const meta: Meta = {
|
|
|
8
8
|
return { args }
|
|
9
9
|
},
|
|
10
10
|
template: `
|
|
11
|
-
<v-btn :color="args.color" :variant="args.variant" :disabled="args.disabled">
|
|
11
|
+
<v-btn :color="args.color" :variant="args.variant" :disabled="args.disabled" :loading="args.loading">
|
|
12
12
|
{{ args.label }}
|
|
13
13
|
</v-btn>
|
|
14
14
|
`,
|
|
@@ -19,103 +19,43 @@ export default meta
|
|
|
19
19
|
type Story = StoryObj<typeof meta>
|
|
20
20
|
|
|
21
21
|
// --- Primary ---
|
|
22
|
-
export const
|
|
23
|
-
args: { label: 'Button primary
|
|
22
|
+
export const Primary: Story = {
|
|
23
|
+
args: { label: 'Button primary', color: 'primary', variant: 'elevated', disabled: false },
|
|
24
24
|
parameters: { docs: { source: { code: `<v-btn color="primary" variant="elevated">Button</v-btn>` } } },
|
|
25
25
|
}
|
|
26
|
-
export const
|
|
27
|
-
args: { label: 'Button primary
|
|
28
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="
|
|
29
|
-
}
|
|
30
|
-
export const PrimaryTonal: Story = {
|
|
31
|
-
args: { label: 'Button primary tonal', color: 'primary', variant: 'tonal', disabled: false },
|
|
32
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="tonal">Button</v-btn>` } } },
|
|
33
|
-
}
|
|
34
|
-
export const PrimaryText: Story = {
|
|
35
|
-
args: { label: 'Button primary text', color: 'primary', variant: 'text', disabled: false },
|
|
36
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="text">Button</v-btn>` } } },
|
|
26
|
+
export const PrimaryLoading: Story = {
|
|
27
|
+
args: { label: 'Button primary loading', color: 'primary', variant: 'elevated', disabled: false, loading: true },
|
|
28
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="elevated" loading>Button</v-btn>` } } },
|
|
37
29
|
}
|
|
38
|
-
export const
|
|
39
|
-
args: { label: 'Button primary
|
|
30
|
+
export const PrimaryDisabled: Story = {
|
|
31
|
+
args: { label: 'Button primary disabled', color: 'primary', variant: 'elevated', disabled: true },
|
|
40
32
|
parameters: { docs: { source: { code: `<v-btn color="primary" variant="elevated" disabled>Button</v-btn>` } } },
|
|
41
33
|
}
|
|
42
|
-
export const PrimaryOutlinedDisabled: Story = {
|
|
43
|
-
args: { label: 'Button primary outlined disabled', color: 'primary', variant: 'outlined', disabled: true },
|
|
44
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="outlined" disabled>Button</v-btn>` } } },
|
|
45
|
-
}
|
|
46
|
-
export const PrimaryTonalDisabled: Story = {
|
|
47
|
-
args: { label: 'Button primary tonal disabled', color: 'primary', variant: 'tonal', disabled: true },
|
|
48
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="tonal" disabled>Button</v-btn>` } } },
|
|
49
|
-
}
|
|
50
|
-
export const PrimaryTextDisabled: Story = {
|
|
51
|
-
args: { label: 'Button primary text disabled', color: 'primary', variant: 'text', disabled: true },
|
|
52
|
-
parameters: { docs: { source: { code: `<v-btn color="primary" variant="text" disabled>Button</v-btn>` } } },
|
|
53
|
-
}
|
|
54
34
|
|
|
55
35
|
// --- Secondary ---
|
|
56
|
-
export const
|
|
57
|
-
args: { label: 'Button secondary
|
|
58
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
59
|
-
}
|
|
60
|
-
export const SecondaryOutlined: Story = {
|
|
61
|
-
args: { label: 'Button secondary outlined', color: 'secondary', variant: 'outlined', disabled: false },
|
|
62
|
-
parameters: { docs: { source: { code: `<v-btn color="secondary" variant="outlined">Button</v-btn>` } } },
|
|
63
|
-
}
|
|
64
|
-
export const SecondaryTonal: Story = {
|
|
65
|
-
args: { label: 'Button secondary tonal', color: 'secondary', variant: 'tonal', disabled: false },
|
|
66
|
-
parameters: { docs: { source: { code: `<v-btn color="secondary" variant="tonal">Button</v-btn>` } } },
|
|
67
|
-
}
|
|
68
|
-
export const SecondaryText: Story = {
|
|
69
|
-
args: { label: 'Button secondary text', color: 'secondary', variant: 'text', disabled: false },
|
|
70
|
-
parameters: { docs: { source: { code: `<v-btn color="secondary" variant="text">Button</v-btn>` } } },
|
|
71
|
-
}
|
|
72
|
-
export const SecondaryElevatedDisabled: Story = {
|
|
73
|
-
args: { label: 'Button secondary elevated disabled', color: 'secondary', variant: 'elevated', disabled: true },
|
|
74
|
-
parameters: { docs: { source: { code: `<v-btn color="secondary" variant="elevated" disabled>Button</v-btn>` } } },
|
|
75
|
-
}
|
|
76
|
-
export const SecondaryOutlinedDisabled: Story = {
|
|
77
|
-
args: { label: 'Button secondary outlined disabled', color: 'secondary', variant: 'outlined', disabled: true },
|
|
78
|
-
parameters: { docs: { source: { code: `<v-btn color="secondary" variant="outlined" disabled>Button</v-btn>` } } },
|
|
36
|
+
export const Secondary: Story = {
|
|
37
|
+
args: { label: 'Button secondary ', color: 'primary', variant: 'outlined', disabled: false },
|
|
38
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="outlined">Button</v-btn>` } } },
|
|
79
39
|
}
|
|
80
|
-
export const
|
|
81
|
-
args: { label: 'Button secondary
|
|
82
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
40
|
+
export const SecondaryLoading: Story = {
|
|
41
|
+
args: { label: 'Button secondary loading', color: 'primary', variant: 'outlined', disabled: false, loading: true },
|
|
42
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="outlined" loading>Button</v-btn>` } } },
|
|
83
43
|
}
|
|
84
|
-
export const
|
|
85
|
-
args: { label: 'Button secondary
|
|
86
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
44
|
+
export const SecondaryDisabled: Story = {
|
|
45
|
+
args: { label: 'Button secondary disabled', color: 'primary', variant: 'outlined', disabled: true },
|
|
46
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="outlined" disabled>Button</v-btn>` } } },
|
|
87
47
|
}
|
|
88
48
|
|
|
89
49
|
// --- Tertiary ---
|
|
90
|
-
export const
|
|
91
|
-
args: { label: 'Button tertiary
|
|
92
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
93
|
-
}
|
|
94
|
-
export const TertiaryOutlined: Story = {
|
|
95
|
-
args: { label: 'Button tertiary outlined', color: 'tertiary', variant: 'outlined', disabled: false },
|
|
96
|
-
parameters: { docs: { source: { code: `<v-btn color="tertiary" variant="outlined">Button</v-btn>` } } },
|
|
97
|
-
}
|
|
98
|
-
export const TertiaryTonal: Story = {
|
|
99
|
-
args: { label: 'Button tertiary tonal', color: 'tertiary', variant: 'tonal', disabled: false },
|
|
100
|
-
parameters: { docs: { source: { code: `<v-btn color="tertiary" variant="tonal">Button</v-btn>` } } },
|
|
101
|
-
}
|
|
102
|
-
export const TertiaryText: Story = {
|
|
103
|
-
args: { label: 'Button tertiary text', color: 'tertiary', variant: 'text', disabled: false },
|
|
104
|
-
parameters: { docs: { source: { code: `<v-btn color="tertiary" variant="text">Button</v-btn>` } } },
|
|
105
|
-
}
|
|
106
|
-
export const TertiaryElevatedDisabled: Story = {
|
|
107
|
-
args: { label: 'Button tertiary elevated disabled', color: 'tertiary', variant: 'elevated', disabled: true },
|
|
108
|
-
parameters: { docs: { source: { code: `<v-btn color="tertiary" variant="elevated" disabled>Button</v-btn>` } } },
|
|
109
|
-
}
|
|
110
|
-
export const TertiaryOutlinedDisabled: Story = {
|
|
111
|
-
args: { label: 'Button tertiary outlined disabled', color: 'tertiary', variant: 'outlined', disabled: true },
|
|
112
|
-
parameters: { docs: { source: { code: `<v-btn color="tertiary" variant="outlined" disabled>Button</v-btn>` } } },
|
|
50
|
+
export const Tertiary: Story = {
|
|
51
|
+
args: { label: 'Button tertiary', color: 'primary', variant: 'text', disabled: false },
|
|
52
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="text">Button</v-btn>` } } },
|
|
113
53
|
}
|
|
114
|
-
export const
|
|
115
|
-
args: { label: 'Button tertiary
|
|
116
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
54
|
+
export const TertiaryLoading: Story = {
|
|
55
|
+
args: { label: 'Button tertiary loading', color: 'primary', variant: 'text', disabled: false, loading: true },
|
|
56
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="text" loading>Button</v-btn>` } } },
|
|
117
57
|
}
|
|
118
|
-
export const
|
|
119
|
-
args: { label: 'Button tertiary
|
|
120
|
-
parameters: { docs: { source: { code: `<v-btn color="
|
|
58
|
+
export const TertiaryDisabled: Story = {
|
|
59
|
+
args: { label: 'Button tertiary disabled', color: 'primary', variant: 'text', disabled: true },
|
|
60
|
+
parameters: { docs: { source: { code: `<v-btn color="primary" variant="text" disabled>Button</v-btn>` } } },
|
|
121
61
|
}
|
|
@@ -1,106 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { apColorsTokens } from './apColors'
|
|
3
|
-
import { baseColors } from '../baseColors'
|
|
1
|
+
import { baseTokens } from '../baseTokens'
|
|
4
2
|
|
|
5
3
|
export const apLightTheme = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
borderDisabledOnDark: apSemanticTokens.colors.border.disabledOnDark,
|
|
78
|
-
textBase: apSemanticTokens.colors.text.base,
|
|
79
|
-
textAccentPrimary: apSemanticTokens.colors.text.accentPrimary,
|
|
80
|
-
textAccentPrimaryContrasted: apSemanticTokens.colors.text.accentPrimaryContrasted,
|
|
81
|
-
textAccentSecondary: apSemanticTokens.colors.text.accentSecondary,
|
|
82
|
-
textSubdued: apSemanticTokens.colors.text.subdued,
|
|
83
|
-
textInfo: apSemanticTokens.colors.text.info,
|
|
84
|
-
textSuccess: apSemanticTokens.colors.text.success,
|
|
85
|
-
textWarning: apSemanticTokens.colors.text.warning,
|
|
86
|
-
textError: apSemanticTokens.colors.text.error,
|
|
87
|
-
textDisabled: apSemanticTokens.colors.text.disabled,
|
|
88
|
-
textOnDark: apSemanticTokens.colors.text.onDark,
|
|
89
|
-
textSubduedOnDark: apSemanticTokens.colors.text.subduedOnDark,
|
|
90
|
-
textDisabledOnDark: apSemanticTokens.colors.text.disabledOnDark,
|
|
91
|
-
iconBase: apSemanticTokens.colors.icon.base,
|
|
92
|
-
iconSubdued: apSemanticTokens.colors.icon.subdued,
|
|
93
|
-
iconSubduedOnDark: apSemanticTokens.colors.icon.subduedOnDark,
|
|
94
|
-
iconAccentPrimary: apSemanticTokens.colors.icon.accentPrimary,
|
|
95
|
-
iconAccentPrimaryContrasted: apSemanticTokens.colors.icon.accentPrimaryContrasted,
|
|
96
|
-
iconAccentSecondary: apSemanticTokens.colors.icon.accentSecondary,
|
|
97
|
-
iconInfo: apSemanticTokens.colors.icon.info,
|
|
98
|
-
iconSuccess: apSemanticTokens.colors.icon.success,
|
|
99
|
-
iconWarning: apSemanticTokens.colors.icon.warning,
|
|
100
|
-
iconError: apSemanticTokens.colors.icon.error,
|
|
101
|
-
iconOnDark: apSemanticTokens.colors.icon.onDark,
|
|
102
|
-
iconDisabled: apSemanticTokens.colors.icon.disabled,
|
|
103
|
-
iconDisabledOnDark: apSemanticTokens.colors.icon.disabledOnDark,
|
|
104
|
-
feedbackOnSuccess: baseColors.white.base,
|
|
105
|
-
colorPrimary: baseColors.cyan.base,
|
|
4
|
+
risquePro: baseTokens.color.red.base,
|
|
5
|
+
|
|
6
|
+
// Border
|
|
7
|
+
border: baseTokens.color.cyan.darken20,
|
|
8
|
+
borderVariant: baseTokens.color.grey.lighten40,
|
|
9
|
+
borderBright: baseTokens.color.white.base,
|
|
10
|
+
borderDim: baseTokens.color.white.alpha40,
|
|
11
|
+
|
|
12
|
+
// Disabled
|
|
13
|
+
disabled: baseTokens.color.grey.lighten80,
|
|
14
|
+
inverseSurface: baseTokens.color.grey.base,
|
|
15
|
+
onDisabled: baseTokens.color.grey.lighten40,
|
|
16
|
+
onDisabledVariant: baseTokens.color.white.alpha40,
|
|
17
|
+
|
|
18
|
+
// Primary
|
|
19
|
+
primary: baseTokens.color.cyan.darken20,
|
|
20
|
+
onPrimary: baseTokens.color.white.base,
|
|
21
|
+
primaryVariant: baseTokens.color.cyan.darken40,
|
|
22
|
+
onPrimaryVariant: baseTokens.color.white.base,
|
|
23
|
+
|
|
24
|
+
// Secondary
|
|
25
|
+
secondary: baseTokens.color.cyan.darken60,
|
|
26
|
+
onSecondary: baseTokens.color.white.base,
|
|
27
|
+
secondaryVariant: baseTokens.color.cyan.darken80,
|
|
28
|
+
onSecondaryVariant: baseTokens.color.white.base,
|
|
29
|
+
|
|
30
|
+
// Overlay
|
|
31
|
+
overlay: baseTokens.color.grey.alpha40,
|
|
32
|
+
|
|
33
|
+
// Surface
|
|
34
|
+
surface: baseTokens.color.white.base,
|
|
35
|
+
surfaceBright: baseTokens.color.cyan.lighten97,
|
|
36
|
+
surfaceDim: baseTokens.color.cyan.lighten80,
|
|
37
|
+
onSurface: baseTokens.color.grey.darken60,
|
|
38
|
+
onSurfaceVariant: baseTokens.color.grey.base,
|
|
39
|
+
|
|
40
|
+
// Background
|
|
41
|
+
background: baseTokens.color.cyan.lighten97,
|
|
42
|
+
backgroundVariant: baseTokens.color.white.base,
|
|
43
|
+
onBackground: baseTokens.color.grey.darken60,
|
|
44
|
+
onBackgroundVariant: baseTokens.color.grey.lighten40,
|
|
45
|
+
|
|
46
|
+
// Feedback
|
|
47
|
+
info: baseTokens.color.parma.darken40,
|
|
48
|
+
infoVariant: baseTokens.color.parma.lighten80,
|
|
49
|
+
onInfo: baseTokens.color.white.base,
|
|
50
|
+
onInfoVariant: baseTokens.color.parma.darken60,
|
|
51
|
+
error: baseTokens.color.red.darken20,
|
|
52
|
+
onError: baseTokens.color.white.base,
|
|
53
|
+
errorVariant: baseTokens.color.red.lighten90,
|
|
54
|
+
onErrorVariant: baseTokens.color.red.darken60,
|
|
55
|
+
success: baseTokens.color.forestGreen.base,
|
|
56
|
+
onSuccess: baseTokens.color.white.base,
|
|
57
|
+
successVariant: baseTokens.color.forestGreen.lighten90,
|
|
58
|
+
onSuccessVariant: baseTokens.color.forestGreen.darken60,
|
|
59
|
+
warning: baseTokens.color.yellow.base,
|
|
60
|
+
onWarning: baseTokens.color.grey.darken60,
|
|
61
|
+
warningVariant: baseTokens.color.yellow.lighten80,
|
|
62
|
+
onWarningVariant: baseTokens.color.yellow.darken60,
|
|
63
|
+
|
|
64
|
+
// Interaction
|
|
65
|
+
interactionLightenEnabled: baseTokens.color.none,
|
|
66
|
+
interactionLightenHover: baseTokens.color.white.alpha20,
|
|
67
|
+
interactionLightenSelected: baseTokens.color.white.alpha20,
|
|
68
|
+
interactionLightenPressed: baseTokens.color.white.alpha38,
|
|
69
|
+
interactionDarkEnabled: baseTokens.color.transparentCyan.alpha00,
|
|
70
|
+
interactionDarkHover: baseTokens.color.transparentCyan.alpha08,
|
|
71
|
+
interactionDarkPressed: baseTokens.color.transparentCyan.alpha18,
|
|
72
|
+
interactionDarkenEnabled: baseTokens.color.transparentBlack.alpha00,
|
|
73
|
+
interactionDarkenHover: baseTokens.color.transparentBlack.alpha20,
|
|
74
|
+
interactionDarkenPressed: baseTokens.color.transparentBlack.alpha40,
|
|
106
75
|
}
|
|
@@ -79,7 +79,7 @@ export const apSemanticTokens = {
|
|
|
79
79
|
overlay: {
|
|
80
80
|
fullpage: apColorsTokens.grey.darken60,
|
|
81
81
|
onDark: apColorsTokens.cyan.darken40,
|
|
82
|
-
onLight: apColorsTokens.
|
|
82
|
+
onLight: apColorsTokens.cyan.darken20,
|
|
83
83
|
},
|
|
84
84
|
interactive: {
|
|
85
85
|
selectionEnabled: apColorsTokens.white.base,
|
|
@@ -26,12 +26,6 @@ export const baseContextualTokens = {
|
|
|
26
26
|
default: '24px',
|
|
27
27
|
large: '32px',
|
|
28
28
|
},
|
|
29
|
-
radius: {
|
|
30
|
-
rounded0: '0',
|
|
31
|
-
rounded: '4px',
|
|
32
|
-
roundedLg: '8px',
|
|
33
|
-
roundedPill: '64px',
|
|
34
|
-
},
|
|
35
29
|
padding: {
|
|
36
30
|
0: '0',
|
|
37
31
|
2: '8px',
|
|
@@ -43,6 +37,7 @@ export const baseContextualTokens = {
|
|
|
43
37
|
14: '56px',
|
|
44
38
|
16: '64px',
|
|
45
39
|
},
|
|
40
|
+
|
|
46
41
|
fontSize: {
|
|
47
42
|
titres: '24px',
|
|
48
43
|
titresAlternatifs: '20px',
|