From 0603df54d922c0d1bb4a2ab3777a320a70df3417 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Sat, 6 Apr 2024 23:39:18 +0300 Subject: [PATCH] Updated chips naming --- components/lib/chips/style/ChipsStyle.js | 10 +++---- .../lib/themes/primeone/base/chips/index.js | 26 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/components/lib/chips/style/ChipsStyle.js b/components/lib/chips/style/ChipsStyle.js index e8ed1be8a..93526ad21 100644 --- a/components/lib/chips/style/ChipsStyle.js +++ b/components/lib/chips/style/ChipsStyle.js @@ -12,15 +12,15 @@ const classes = { } ], container: ({ props, instance }) => [ - 'p-chips-list', + 'p-chips-group', { 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled' } ], - token: ({ state, index }) => ['p-chips-item', { 'p-focus': state.focusedIndex === index }], - label: 'p-chips-item-label', - removeTokenIcon: 'p-chips-item-icon', - inputToken: 'p-chips-input-item' + token: ({ state, index }) => ['p-chips-chip', { 'p-focus': state.focusedIndex === index }], + label: 'p-chips-chip-label', + removeTokenIcon: 'p-chips-chip-icon', + inputToken: 'p-chips-input-chip' }; export default BaseStyle.extend({ diff --git a/components/lib/themes/primeone/base/chips/index.js b/components/lib/themes/primeone/base/chips/index.js index fccbd6f25..deb04937a 100644 --- a/components/lib/themes/primeone/base/chips/index.js +++ b/components/lib/themes/primeone/base/chips/index.js @@ -4,7 +4,7 @@ export default { display: inline-flex; } -.p-chips-list { +.p-chips-group { margin: 0; padding: 0; list-style-type: none; @@ -25,34 +25,34 @@ export default { box-shadow: ${dt('chips.box.shadow')}; } -.p-chips:not(.p-disabled):hover .p-chips-list { +.p-chips:not(.p-disabled):hover .p-chips-group { border-color: ${dt('chips.hover.border.color')}; } -.p-chips:not(.p-disabled).p-focus .p-chips-list { +.p-chips:not(.p-disabled).p-focus .p-chips-group { border-color: ${dt('chips.focus.border.color')}; outline: 0 none; } -.p-chips.p-invalid .p-chips-list { +.p-chips.p-invalid .p-chips-group { border-color: ${dt('chips.invalid.border.color')}; } -.p-variant-filled.p-chips-list { +.p-variant-filled.p-chips-group { background: ${dt('chips.filled.background')}; } -.p-chips:not(.p-disabled).p-focus .p-variant-filled.p-chips-list { +.p-chips:not(.p-disabled).p-focus .p-variant-filled.p-chips-group { background: ${dt('chips.filled.focus.background')}; } -.p-chips.p-disabled .p-chips-list { +.p-chips.p-disabled .p-chips-group { opacity: 1; background: ${dt('chips.disabled.background')}; color: ${dt('chips.disabled.color')}; } -.p-chips-item { +.p-chips-chip { cursor: default; display: inline-flex; align-items: center; @@ -63,24 +63,24 @@ export default { border-radius: ${dt('rounded.sm')}; } -.p-chips-item.p-focus { +.p-chips-chip.p-focus { background: ${dt('chips.chip.focus.background')}; color: ${dt('chips.chip.focus.color')}; } -.p-chips-item-icon { +.p-chips-chip-icon { cursor: pointer; margin-left: 0.375rem; } -.p-chips-input-item { +.p-chips-input-chip { padding: 0.25rem 0; margin-left: 0.5rem; flex: 1 1 auto; display: inline-flex; } -.p-chips-input-item input { +.p-chips-input-chip input { border: 0 none; outline: 0 none; background-color: transparent; @@ -97,7 +97,7 @@ export default { margin: 0; } -.p-chips-input-item input::placeholder { +.p-chips-input-chip input::placeholder { color: ${dt('chips.placeholder.color')}; }